{"version":3,"file":"item-DsvD7jQK.js","sources":["../../Client/node_modules/@react-aria/collections/dist/BaseCollection.mjs","../../Client/node_modules/@react-aria/collections/dist/Document.mjs","../../Client/node_modules/@react-aria/collections/dist/useCachedChildren.mjs","../../Client/node_modules/@react-aria/utils/dist/getScrollParents.mjs","../../Client/node_modules/@react-aria/utils/dist/useEvent.mjs","../../Client/node_modules/@react-aria/utils/dist/scrollIntoView.mjs","../../Client/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../../Client/node_modules/use-sync-external-store/shim/index.js","../../Client/node_modules/@react-aria/collections/dist/CollectionBuilder.mjs","../../Client/node_modules/react-aria-components/dist/Collection.mjs","../../Client/node_modules/@react-aria/interactions/dist/useLongPress.mjs","../../Client/node_modules/@react-aria/i18n/dist/useCollator.mjs","../../Client/node_modules/@react-aria/listbox/dist/utils.mjs","../../Client/node_modules/@react-aria/selection/dist/utils.mjs","../../Client/node_modules/@react-aria/selection/dist/useTypeSelect.mjs","../../Client/node_modules/@react-aria/selection/dist/useSelectableCollection.mjs","../../Client/node_modules/@react-aria/selection/dist/useSelectableItem.mjs","../../Client/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs","../../Client/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs","../../Client/node_modules/@react-aria/selection/dist/useSelectableList.mjs","../../Client/node_modules/@react-aria/listbox/dist/useListBox.mjs","../../Client/node_modules/@react-stately/collections/dist/Item.mjs","../../Client/node_modules/@react-stately/collections/dist/CollectionBuilder.mjs","../../Client/node_modules/@react-stately/collections/dist/useCollection.mjs","../../Client/node_modules/@react-stately/collections/dist/getChildNodes.mjs","../../Client/node_modules/@react-stately/collections/dist/getItemCount.mjs","../../Client/node_modules/@react-aria/listbox/dist/useOption.mjs","../../Client/node_modules/@react-aria/listbox/dist/useListBoxSection.mjs","../../Client/node_modules/@react-stately/list/dist/ListCollection.mjs","../../Client/node_modules/@react-stately/selection/dist/Selection.mjs","../../Client/node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs","../../Client/node_modules/@react-stately/selection/dist/SelectionManager.mjs","../../Client/node_modules/@react-stately/list/dist/useListState.mjs","../../Client/node_modules/react-aria-components/dist/DragAndDrop.mjs","../../Client/node_modules/react-aria-components/dist/Header.mjs","../../Client/node_modules/react-aria-components/dist/Separator.mjs","../../Client/node_modules/react-aria-components/dist/ListBox.mjs","../../Client/node_modules/@mui/icons-material/CheckCircle.js","../../Client/webkit/internal/listBoxItem.tsx","../../Client/webkit/internal/popover/index.tsx","../../Client/node_modules/@mui/icons-material/KeyboardArrowDown.js","../../Client/webkit/internal/listBox.tsx","../../Client/webkit/components/select/internal.tsx","../../Client/webkit/components/select/index.tsx","../../Client/webkit/components/select/item.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */ class $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {\n    get childNodes() {\n        throw new Error('childNodes is not supported');\n    }\n    clone() {\n        let node = new $23b9f4fcf0fe224b$export$d68d59712b04d9d1(this.type, this.key);\n        node.value = this.value;\n        node.level = this.level;\n        node.hasChildNodes = this.hasChildNodes;\n        node.rendered = this.rendered;\n        node.textValue = this.textValue;\n        node['aria-label'] = this['aria-label'];\n        node.index = this.index;\n        node.parentKey = this.parentKey;\n        node.prevKey = this.prevKey;\n        node.nextKey = this.nextKey;\n        node.firstChildKey = this.firstChildKey;\n        node.lastChildKey = this.lastChildKey;\n        node.props = this.props;\n        node.render = this.render;\n        return node;\n    }\n    constructor(type, key){\n        this.value = null;\n        this.level = 0;\n        this.hasChildNodes = false;\n        this.rendered = null;\n        this.textValue = '';\n        this['aria-label'] = undefined;\n        this.index = 0;\n        this.parentKey = null;\n        this.prevKey = null;\n        this.nextKey = null;\n        this.firstChildKey = null;\n        this.lastChildKey = null;\n        this.props = {};\n        this.type = type;\n        this.key = key;\n    }\n}\nclass $23b9f4fcf0fe224b$export$408d25a4e12db025 {\n    get size() {\n        return this.keyMap.size;\n    }\n    getKeys() {\n        return this.keyMap.keys();\n    }\n    *[Symbol.iterator]() {\n        let node = this.firstKey != null ? this.keyMap.get(this.firstKey) : undefined;\n        while(node){\n            yield node;\n            node = node.nextKey != null ? this.keyMap.get(node.nextKey) : undefined;\n        }\n    }\n    getChildren(key) {\n        let keyMap = this.keyMap;\n        return {\n            *[Symbol.iterator] () {\n                let parent = keyMap.get(key);\n                let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;\n                while(node){\n                    yield node;\n                    node = node.nextKey != null ? keyMap.get(node.nextKey) : undefined;\n                }\n            }\n        };\n    }\n    getKeyBefore(key) {\n        let node = this.keyMap.get(key);\n        if (!node) return null;\n        if (node.prevKey != null) {\n            node = this.keyMap.get(node.prevKey);\n            while(node && node.type !== 'item' && node.lastChildKey != null)node = this.keyMap.get(node.lastChildKey);\n            var _node_key;\n            return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;\n        }\n        return node.parentKey;\n    }\n    getKeyAfter(key) {\n        let node = this.keyMap.get(key);\n        if (!node) return null;\n        if (node.type !== 'item' && node.firstChildKey != null) return node.firstChildKey;\n        while(node){\n            if (node.nextKey != null) return node.nextKey;\n            if (node.parentKey != null) node = this.keyMap.get(node.parentKey);\n            else return null;\n        }\n        return null;\n    }\n    getFirstKey() {\n        return this.firstKey;\n    }\n    getLastKey() {\n        let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;\n        while((node === null || node === void 0 ? void 0 : node.lastChildKey) != null)node = this.keyMap.get(node.lastChildKey);\n        var _node_key;\n        return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;\n    }\n    getItem(key) {\n        var _this_keyMap_get;\n        return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;\n    }\n    at() {\n        throw new Error('Not implemented');\n    }\n    clone() {\n        // We need to clone using this.constructor so that subclasses have the right prototype.\n        // TypeScript isn't happy about this yet.\n        // https://github.com/microsoft/TypeScript/issues/3841\n        let Constructor = this.constructor;\n        let collection = new Constructor();\n        collection.keyMap = new Map(this.keyMap);\n        collection.firstKey = this.firstKey;\n        collection.lastKey = this.lastKey;\n        return collection;\n    }\n    addNode(node) {\n        if (this.frozen) throw new Error('Cannot add a node to a frozen collection');\n        this.keyMap.set(node.key, node);\n    }\n    removeNode(key) {\n        if (this.frozen) throw new Error('Cannot remove a node to a frozen collection');\n        this.keyMap.delete(key);\n    }\n    commit(firstKey, lastKey, isSSR = false) {\n        if (this.frozen) throw new Error('Cannot commit a frozen collection');\n        this.firstKey = firstKey;\n        this.lastKey = lastKey;\n        this.frozen = !isSSR;\n    }\n    constructor(){\n        this.keyMap = new Map();\n        this.firstKey = null;\n        this.lastKey = null;\n        this.frozen = false;\n    }\n}\n\n\nexport {$23b9f4fcf0fe224b$export$d68d59712b04d9d1 as CollectionNode, $23b9f4fcf0fe224b$export$408d25a4e12db025 as BaseCollection};\n//# sourceMappingURL=BaseCollection.module.js.map\n","import {CollectionNode as $23b9f4fcf0fe224b$export$d68d59712b04d9d1} from \"./BaseCollection.mjs\";\n\n/*\n * Copyright 2024 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 */ \nclass $681cc3c98f569e39$export$410b0c854570d131 {\n    *[Symbol.iterator]() {\n        let node = this.firstChild;\n        while(node){\n            yield node;\n            node = node.nextSibling;\n        }\n    }\n    get firstChild() {\n        return this._firstChild;\n    }\n    set firstChild(firstChild) {\n        this._firstChild = firstChild;\n        this.ownerDocument.markDirty(this);\n    }\n    get lastChild() {\n        return this._lastChild;\n    }\n    set lastChild(lastChild) {\n        this._lastChild = lastChild;\n        this.ownerDocument.markDirty(this);\n    }\n    get previousSibling() {\n        return this._previousSibling;\n    }\n    set previousSibling(previousSibling) {\n        this._previousSibling = previousSibling;\n        this.ownerDocument.markDirty(this);\n    }\n    get nextSibling() {\n        return this._nextSibling;\n    }\n    set nextSibling(nextSibling) {\n        this._nextSibling = nextSibling;\n        this.ownerDocument.markDirty(this);\n    }\n    get parentNode() {\n        return this._parentNode;\n    }\n    set parentNode(parentNode) {\n        this._parentNode = parentNode;\n        this.ownerDocument.markDirty(this);\n    }\n    get isConnected() {\n        var _this_parentNode;\n        return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;\n    }\n    appendChild(child) {\n        this.ownerDocument.startTransaction();\n        if (child.parentNode) child.parentNode.removeChild(child);\n        if (this.firstChild == null) this.firstChild = child;\n        if (this.lastChild) {\n            this.lastChild.nextSibling = child;\n            child.index = this.lastChild.index + 1;\n            child.previousSibling = this.lastChild;\n        } else {\n            child.previousSibling = null;\n            child.index = 0;\n        }\n        child.parentNode = this;\n        child.nextSibling = null;\n        this.lastChild = child;\n        this.ownerDocument.markDirty(this);\n        if (child.hasSetProps) // Only add the node to the collection if we already received props for it.\n        // Otherwise wait until then so we have the correct id for the node.\n        this.ownerDocument.addNode(child);\n        this.ownerDocument.endTransaction();\n        this.ownerDocument.queueUpdate();\n    }\n    insertBefore(newNode, referenceNode) {\n        if (referenceNode == null) return this.appendChild(newNode);\n        this.ownerDocument.startTransaction();\n        if (newNode.parentNode) newNode.parentNode.removeChild(newNode);\n        newNode.nextSibling = referenceNode;\n        newNode.previousSibling = referenceNode.previousSibling;\n        newNode.index = referenceNode.index;\n        if (this.firstChild === referenceNode) this.firstChild = newNode;\n        else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;\n        referenceNode.previousSibling = newNode;\n        newNode.parentNode = referenceNode.parentNode;\n        let node = referenceNode;\n        while(node){\n            node.index++;\n            node = node.nextSibling;\n        }\n        if (newNode.hasSetProps) this.ownerDocument.addNode(newNode);\n        this.ownerDocument.endTransaction();\n        this.ownerDocument.queueUpdate();\n    }\n    removeChild(child) {\n        if (child.parentNode !== this || !this.ownerDocument.isMounted) return;\n        this.ownerDocument.startTransaction();\n        let node = child.nextSibling;\n        while(node){\n            node.index--;\n            node = node.nextSibling;\n        }\n        if (child.nextSibling) child.nextSibling.previousSibling = child.previousSibling;\n        if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;\n        if (this.firstChild === child) this.firstChild = child.nextSibling;\n        if (this.lastChild === child) this.lastChild = child.previousSibling;\n        child.parentNode = null;\n        child.nextSibling = null;\n        child.previousSibling = null;\n        child.index = 0;\n        this.ownerDocument.removeNode(child);\n        this.ownerDocument.endTransaction();\n        this.ownerDocument.queueUpdate();\n    }\n    addEventListener() {}\n    removeEventListener() {}\n    constructor(ownerDocument){\n        this._firstChild = null;\n        this._lastChild = null;\n        this._previousSibling = null;\n        this._nextSibling = null;\n        this._parentNode = null;\n        this.ownerDocument = ownerDocument;\n    }\n}\nclass $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {\n    get index() {\n        return this._index;\n    }\n    set index(index) {\n        this._index = index;\n        this.ownerDocument.markDirty(this);\n    }\n    get level() {\n        if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (this.node.type === 'item' ? 1 : 0);\n        return 0;\n    }\n    updateNode() {\n        var _this_previousSibling, _this_nextSibling, _this_firstChild, _this_lastChild;\n        let node = this.ownerDocument.getMutableNode(this);\n        node.index = this.index;\n        node.level = this.level;\n        node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.node.key : null;\n        var _this_previousSibling_node_key;\n        node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === void 0 ? void 0 : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== void 0 ? _this_previousSibling_node_key : null;\n        var _this_nextSibling_node_key;\n        node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === void 0 ? void 0 : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== void 0 ? _this_nextSibling_node_key : null;\n        node.hasChildNodes = !!this.firstChild;\n        var _this_firstChild_node_key;\n        node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null;\n        var _this_lastChild_node_key;\n        node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null;\n    }\n    setProps(obj, ref, rendered, render) {\n        let node = this.ownerDocument.getMutableNode(this);\n        let { value: value, textValue: textValue, id: id, ...props } = obj;\n        props.ref = ref;\n        node.props = props;\n        node.rendered = rendered;\n        node.render = render;\n        node.value = value;\n        node.textValue = textValue || (typeof props.children === 'string' ? props.children : '') || obj['aria-label'] || '';\n        if (id != null && id !== node.key) {\n            if (this.hasSetProps) throw new Error('Cannot change the id of an item');\n            node.key = id;\n        }\n        // If this is the first time props have been set, end the transaction started in the constructor\n        // so this node can be emitted.\n        if (!this.hasSetProps) {\n            this.ownerDocument.addNode(this);\n            this.ownerDocument.endTransaction();\n            this.hasSetProps = true;\n        }\n        this.ownerDocument.queueUpdate();\n    }\n    get style() {\n        return {};\n    }\n    hasAttribute() {}\n    setAttribute() {}\n    setAttributeNS() {}\n    removeAttribute() {}\n    constructor(type, ownerDocument){\n        super(ownerDocument);\n        this.nodeType = 8 // COMMENT_NODE (we'd use ELEMENT_NODE but React DevTools will fail to get its dimensions)\n        ;\n        this._index = 0;\n        this.hasSetProps = false;\n        this.node = new (0, $23b9f4fcf0fe224b$export$d68d59712b04d9d1)(type, `react-aria-${++ownerDocument.nodeId}`);\n        // Start a transaction so that no updates are emitted from the collection\n        // until the props for this node are set. We don't know the real id for the\n        // node until then, so we need to avoid emitting collections in an inconsistent state.\n        this.ownerDocument.startTransaction();\n    }\n}\nclass $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export$410b0c854570d131 {\n    get isConnected() {\n        return this.isMounted;\n    }\n    createElement(type) {\n        return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);\n    }\n    /**\n   * Lazily gets a mutable instance of a Node. If the node has already\n   * been cloned during this update cycle, it just returns the existing one.\n   */ getMutableNode(element) {\n        let node = element.node;\n        if (!this.mutatedNodes.has(element)) {\n            node = element.node.clone();\n            this.mutatedNodes.add(element);\n            element.node = node;\n        }\n        this.markDirty(element);\n        return node;\n    }\n    getMutableCollection() {\n        if (!this.isSSR && !this.collectionMutated) {\n            this.collection = this.collection.clone();\n            this.collectionMutated = true;\n        }\n        return this.collection;\n    }\n    markDirty(node) {\n        this.dirtyNodes.add(node);\n    }\n    startTransaction() {\n        this.transactionCount++;\n    }\n    endTransaction() {\n        this.transactionCount--;\n    }\n    addNode(element) {\n        let collection = this.getMutableCollection();\n        if (!collection.getItem(element.node.key)) {\n            collection.addNode(element.node);\n            for (let child of element)this.addNode(child);\n        }\n        this.markDirty(element);\n    }\n    removeNode(node) {\n        for (let child of node)this.removeNode(child);\n        let collection = this.getMutableCollection();\n        collection.removeNode(node.node.key);\n        this.markDirty(node);\n    }\n    /** Finalizes the collection update, updating all nodes and freezing the collection. */ getCollection() {\n        if (this.transactionCount > 0) return this.collection;\n        this.updateCollection();\n        return this.collection;\n    }\n    updateCollection() {\n        for (let element of this.dirtyNodes)if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && element.isConnected) element.updateNode();\n        this.dirtyNodes.clear();\n        if (this.mutatedNodes.size || this.collectionMutated) {\n            var _this_firstChild, _this_lastChild;\n            let collection = this.getMutableCollection();\n            for (let element of this.mutatedNodes)if (element.isConnected) collection.addNode(element.node);\n            var _this_firstChild_node_key, _this_lastChild_node_key;\n            collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);\n            this.mutatedNodes.clear();\n        }\n        this.collectionMutated = false;\n    }\n    queueUpdate() {\n        // Don't emit any updates if there is a transaction in progress.\n        // queueUpdate should be called again after the transaction.\n        if (this.dirtyNodes.size === 0 || this.transactionCount > 0) return;\n        for (let fn of this.subscriptions)fn();\n    }\n    subscribe(fn) {\n        this.subscriptions.add(fn);\n        return ()=>this.subscriptions.delete(fn);\n    }\n    resetAfterSSR() {\n        if (this.isSSR) {\n            this.isSSR = false;\n            this.firstChild = null;\n            this.lastChild = null;\n            this.nodeId = 0;\n        }\n    }\n    constructor(collection){\n        // @ts-ignore\n        super(null);\n        this.nodeType = 11 // DOCUMENT_FRAGMENT_NODE\n        ;\n        this.ownerDocument = this;\n        this.dirtyNodes = new Set();\n        this.isSSR = false;\n        this.nodeId = 0;\n        this.nodesByProps = new WeakMap();\n        this.isMounted = true;\n        this.mutatedNodes = new Set();\n        this.subscriptions = new Set();\n        this.transactionCount = 0;\n        this.collection = collection;\n        this.collectionMutated = true;\n    }\n}\n\n\nexport {$681cc3c98f569e39$export$410b0c854570d131 as BaseNode, $681cc3c98f569e39$export$dc064fe9e59310fd as ElementNode, $681cc3c98f569e39$export$b34a105447964f9f as Document};\n//# sourceMappingURL=Document.module.js.map\n","import {useMemo as $luMFQ$useMemo, cloneElement as $luMFQ$cloneElement} from \"react\";\n\n/*\n * Copyright 2024 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 $e948873055cbafe4$export$727c8fc270210f13(props) {\n    let { children: children, items: items, idScope: idScope, addIdAndValue: addIdAndValue, dependencies: dependencies = [] } = props;\n    // Invalidate the cache whenever the parent value changes.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    let cache = (0, $luMFQ$useMemo)(()=>new WeakMap(), dependencies);\n    return (0, $luMFQ$useMemo)(()=>{\n        if (items && typeof children === 'function') {\n            let res = [];\n            for (let item of items){\n                let rendered = cache.get(item);\n                if (!rendered) {\n                    rendered = children(item);\n                    var _rendered_props_id, _ref;\n                    // @ts-ignore\n                    let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;\n                    // eslint-disable-next-line max-depth\n                    if (key == null) throw new Error('Could not determine key for item');\n                    // eslint-disable-next-line max-depth\n                    if (idScope) key = idScope + ':' + key;\n                    // Note: only works if wrapped Item passes through id...\n                    rendered = (0, $luMFQ$cloneElement)(rendered, addIdAndValue ? {\n                        key: key,\n                        id: key,\n                        value: item\n                    } : {\n                        key: key\n                    });\n                    cache.set(item, rendered);\n                }\n                res.push(rendered);\n            }\n            return res;\n        } else if (typeof children !== 'function') return children;\n    }, [\n        children,\n        items,\n        cache,\n        idScope,\n        addIdAndValue\n    ]);\n}\n\n\nexport {$e948873055cbafe4$export$727c8fc270210f13 as useCachedChildren};\n//# sourceMappingURL=useCachedChildren.module.js.map\n","import {isScrollable as $cc38e7bd3fc7b213$export$2bb74740c4e19def} from \"./isScrollable.mjs\";\n\n/*\n * Copyright 2024 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 $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {\n    const scrollParents = [];\n    while(node && node !== document.documentElement){\n        if ((0, $cc38e7bd3fc7b213$export$2bb74740c4e19def)(node, checkForOverflow)) scrollParents.push(node);\n        node = node.parentElement;\n    }\n    return scrollParents;\n}\n\n\nexport {$a40c673dc9f6d9c7$export$94ed1c92c7beeb22 as getScrollParents};\n//# sourceMappingURL=getScrollParents.module.js.map\n","import {useEffectEvent as $8ae05eaa5c114e9c$export$7f54fc3180508a52} from \"./useEffectEvent.mjs\";\nimport {useEffect as $ceQd6$useEffect} from \"react\";\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 */ \n\nfunction $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {\n    let handleEvent = (0, $8ae05eaa5c114e9c$export$7f54fc3180508a52)(handler);\n    let isDisabled = handler == null;\n    (0, $ceQd6$useEffect)(()=>{\n        if (isDisabled || !ref.current) return;\n        let element = ref.current;\n        element.addEventListener(event, handleEvent, options);\n        return ()=>{\n            element.removeEventListener(event, handleEvent, options);\n        };\n    }, [\n        ref,\n        event,\n        options,\n        isDisabled,\n        handleEvent\n    ]);\n}\n\n\nexport {$e9faafb641e167db$export$90fc3a17d93f704c as useEvent};\n//# sourceMappingURL=useEvent.module.js.map\n","import {getScrollParents as $a40c673dc9f6d9c7$export$94ed1c92c7beeb22} from \"./getScrollParents.mjs\";\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 $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {\n    let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'left');\n    let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, 'top');\n    let width = element.offsetWidth;\n    let height = element.offsetHeight;\n    let x = scrollView.scrollLeft;\n    let y = scrollView.scrollTop;\n    // Account for top/left border offsetting the scroll top/Left\n    let { borderTopWidth: borderTopWidth, borderLeftWidth: borderLeftWidth } = getComputedStyle(scrollView);\n    let borderAdjustedX = scrollView.scrollLeft + parseInt(borderLeftWidth, 10);\n    let borderAdjustedY = scrollView.scrollTop + parseInt(borderTopWidth, 10);\n    // Ignore end/bottom border via clientHeight/Width instead of offsetHeight/Width\n    let maxX = borderAdjustedX + scrollView.clientWidth;\n    let maxY = borderAdjustedY + scrollView.clientHeight;\n    if (offsetX <= x) x = offsetX - parseInt(borderLeftWidth, 10);\n    else if (offsetX + width > maxX) x += offsetX + width - maxX;\n    if (offsetY <= borderAdjustedY) y = offsetY - parseInt(borderTopWidth, 10);\n    else if (offsetY + height > maxY) y += offsetY + height - maxY;\n    scrollView.scrollLeft = x;\n    scrollView.scrollTop = y;\n}\n/**\n * Computes the offset left or top from child to ancestor by accumulating\n * offsetLeft or offsetTop through intervening offsetParents.\n */ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {\n    const prop = axis === 'left' ? 'offsetLeft' : 'offsetTop';\n    let sum = 0;\n    while(child.offsetParent){\n        sum += child[prop];\n        if (child.offsetParent === ancestor) break;\n        else if (child.offsetParent.contains(ancestor)) {\n            // If the ancestor is not `position:relative`, then we stop at\n            // _its_ offset parent, and we subtract off _its_ offset, so that\n            // we end up with the proper offset from child to ancestor.\n            sum -= ancestor[prop];\n            break;\n        }\n        child = child.offsetParent;\n    }\n    return sum;\n}\nfunction $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {\n    if (document.contains(targetElement)) {\n        let root = document.scrollingElement || document.documentElement;\n        let isScrollPrevented = window.getComputedStyle(root).overflow === 'hidden';\n        // If scrolling is not currently prevented then we aren’t in a overlay nor is a overlay open, just use element.scrollIntoView to bring the element into view\n        if (!isScrollPrevented) {\n            var // use scrollIntoView({block: 'nearest'}) instead of .focus to check if the element is fully in view or not since .focus()\n            // won't cause a scroll if the element is already focused and doesn't behave consistently when an element is partially out of view horizontally vs vertically\n            _targetElement_scrollIntoView;\n            let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();\n            targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {\n                block: 'nearest'\n            });\n            let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();\n            // Account for sub pixel differences from rounding\n            if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {\n                var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;\n                opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {\n                    block: 'center',\n                    inline: 'center'\n                });\n                (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {\n                    block: 'nearest'\n                });\n            }\n        } else {\n            let scrollParents = (0, $a40c673dc9f6d9c7$export$94ed1c92c7beeb22)(targetElement);\n            // If scrolling is prevented, we don't want to scroll the body since it might move the overlay partially offscreen and the user can't scroll it back into view.\n            for (let scrollParent of scrollParents)$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);\n        }\n    }\n}\n\n\nexport {$2f04cbc44ee30ce0$export$53a0910f038337bd as scrollIntoView, $2f04cbc44ee30ce0$export$c826860796309d1b as scrollIntoViewport};\n//# sourceMappingURL=scrollIntoView.module.js.map\n","/**\n * @license React\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var e=require(\"react\");function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k=\"function\"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}\nfunction r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u=\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('../cjs/use-sync-external-store-shim.production.min.js');\n} else {\n  module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","import {BaseCollection as $23b9f4fcf0fe224b$export$408d25a4e12db025} from \"./BaseCollection.mjs\";\nimport {Document as $681cc3c98f569e39$export$b34a105447964f9f} from \"./Document.mjs\";\nimport {useCachedChildren as $e948873055cbafe4$export$727c8fc270210f13} from \"./useCachedChildren.mjs\";\nimport {Hidden as $f39a9eba43920ace$export$8dc98ba7eadeaa56} from \"./Hidden.mjs\";\nimport {createPortal as $95feo$createPortal} from \"react-dom\";\nimport $95feo$react, {createContext as $95feo$createContext, useContext as $95feo$useContext, useRef as $95feo$useRef, useCallback as $95feo$useCallback, useState as $95feo$useState, forwardRef as $95feo$forwardRef, useMemo as $95feo$useMemo} from \"react\";\nimport {useIsSSR as $95feo$useIsSSR} from \"@react-aria/ssr\";\nimport {useLayoutEffect as $95feo$useLayoutEffect} from \"@react-aria/utils\";\nimport {useSyncExternalStore as $95feo$useSyncExternalStore} from \"use-sync-external-store/shim/index.js\";\n\n/*\n * Copyright 2024 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\n\n\n\nconst $e1995378a142960e$var$ShallowRenderContext = /*#__PURE__*/ (0, $95feo$createContext)(false);\nconst $e1995378a142960e$var$CollectionDocumentContext = /*#__PURE__*/ (0, $95feo$createContext)(null);\nfunction $e1995378a142960e$export$bf788dd355e3a401(props) {\n    // If a document was provided above us, we're already in a hidden tree. Just render the content.\n    let doc = (0, $95feo$useContext)($e1995378a142960e$var$CollectionDocumentContext);\n    if (doc) // The React types prior to 18 did not allow returning ReactNode from components\n    // even though the actual implementation since React 16 did.\n    // We must return ReactElement so that TS does not complain that <CollectionBuilder>\n    // is not a valid JSX element with React 16 and 17 types.\n    // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20544\n    return props.content;\n    // Otherwise, render a hidden copy of the children so that we can build the collection before constructing the state.\n    // This should always come before the real DOM content so we have built the collection by the time it renders during SSR.\n    // This is fine. CollectionDocumentContext never changes after mounting.\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    let { collection: collection, document: document } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);\n    return /*#__PURE__*/ (0, $95feo$react).createElement((0, $95feo$react).Fragment, null, /*#__PURE__*/ (0, $95feo$react).createElement((0, $f39a9eba43920ace$export$8dc98ba7eadeaa56), null, /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {\n        value: document\n    }, props.content)), /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$CollectionInner, {\n        render: props.children,\n        collection: collection\n    }));\n}\nfunction $e1995378a142960e$var$CollectionInner({ collection: collection, render: render }) {\n    return render(collection);\n}\n// React 16 and 17 don't support useSyncExternalStore natively, and the shim provided by React does not support getServerSnapshot.\n// This wrapper uses the shim, but additionally calls getServerSnapshot during SSR (according to SSRProvider).\nfunction $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {\n    let isSSR = (0, $95feo$useIsSSR)();\n    let isSSRRef = (0, $95feo$useRef)(isSSR);\n    // This is read immediately inside the wrapper, which also runs during render.\n    // We just need a ref to avoid invalidating the callback itself, which\n    // would cause React to re-run the callback more than necessary.\n    // eslint-disable-next-line rulesdir/pure-render\n    isSSRRef.current = isSSR;\n    let getSnapshotWrapper = (0, $95feo$useCallback)(()=>{\n        return isSSRRef.current ? getServerSnapshot() : getSnapshot();\n    }, [\n        getSnapshot,\n        getServerSnapshot\n    ]);\n    return (0, $95feo$useSyncExternalStore)(subscribe, getSnapshotWrapper);\n}\nconst $e1995378a142960e$var$useSyncExternalStore = typeof (0, $95feo$react)['useSyncExternalStore'] === 'function' ? (0, $95feo$react)['useSyncExternalStore'] : $e1995378a142960e$var$useSyncExternalStoreFallback;\nfunction $e1995378a142960e$var$useCollectionDocument(createCollection) {\n    // The document instance is mutable, and should never change between renders.\n    // useSyncExternalStore is used to subscribe to updates, which vends immutable Collection objects.\n    let [document] = (0, $95feo$useState)(()=>new (0, $681cc3c98f569e39$export$b34a105447964f9f)((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new (0, $23b9f4fcf0fe224b$export$408d25a4e12db025)()));\n    let subscribe = (0, $95feo$useCallback)((fn)=>document.subscribe(fn), [\n        document\n    ]);\n    let getSnapshot = (0, $95feo$useCallback)(()=>{\n        let collection = document.getCollection();\n        if (document.isSSR) // After SSR is complete, reset the document to empty so it is ready for React to render the portal into.\n        // We do this _after_ getting the collection above so that the collection still has content in it from SSR\n        // during the current render, before React has finished the client render.\n        document.resetAfterSSR();\n        return collection;\n    }, [\n        document\n    ]);\n    let getServerSnapshot = (0, $95feo$useCallback)(()=>{\n        document.isSSR = true;\n        return document.getCollection();\n    }, [\n        document\n    ]);\n    let collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n    (0, $95feo$useLayoutEffect)(()=>{\n        document.isMounted = true;\n        return ()=>{\n            // Mark unmounted so we can skip all of the collection updates caused by \n            // React calling removeChild on every item in the collection.\n            document.isMounted = false;\n        };\n    }, [\n        document\n    ]);\n    return {\n        collection: collection,\n        document: document\n    };\n}\nconst $e1995378a142960e$var$SSRContext = /*#__PURE__*/ (0, $95feo$createContext)(null);\nfunction $e1995378a142960e$var$useSSRCollectionNode(Type, props, ref, rendered, children, render) {\n    // During SSR, portals are not supported, so the collection children will be wrapped in an SSRContext.\n    // Since SSR occurs only once, we assume that the elements are rendered in order and never re-render.\n    // Therefore we can create elements in our collection document during render so that they are in the\n    // collection by the time we need to use the collection to render to the real DOM.\n    // After hydration, we switch to client rendering using the portal.\n    let itemRef = (0, $95feo$useCallback)((element)=>{\n        element === null || element === void 0 ? void 0 : element.setProps(props, ref, rendered, render);\n    }, [\n        props,\n        ref,\n        rendered,\n        render\n    ]);\n    let parentNode = (0, $95feo$useContext)($e1995378a142960e$var$SSRContext);\n    if (parentNode) {\n        // Guard against double rendering in strict mode.\n        let element = parentNode.ownerDocument.nodesByProps.get(props);\n        if (!element) {\n            element = parentNode.ownerDocument.createElement(Type);\n            element.setProps(props, ref, rendered, render);\n            parentNode.appendChild(element);\n            parentNode.ownerDocument.updateCollection();\n            parentNode.ownerDocument.nodesByProps.set(props, element);\n        }\n        return children ? /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$SSRContext.Provider, {\n            value: element\n        }, children) : null;\n    }\n    // @ts-ignore\n    return /*#__PURE__*/ (0, $95feo$react).createElement(Type, {\n        ref: itemRef\n    }, children);\n}\nfunction $e1995378a142960e$export$18af5c7a9e9b3664(type, render) {\n    let Component = ({ node: node })=>render(node.props, node.props.ref, node);\n    let Result = (0, $95feo$forwardRef)((props, ref)=>{\n        let isShallow = (0, $95feo$useContext)($e1995378a142960e$var$ShallowRenderContext);\n        if (!isShallow) {\n            if (render.length >= 3) throw new Error(render.name + ' cannot be rendered outside a collection.');\n            return render(props, ref);\n        }\n        return $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, 'children' in props ? props.children : null, null, (node)=>/*#__PURE__*/ (0, $95feo$react).createElement(Component, {\n                node: node\n            }));\n    });\n    // @ts-ignore\n    Result.displayName = render.name;\n    return Result;\n}\nfunction $e1995378a142960e$export$e953bb1cd0f19726(type, render, useChildren = $e1995378a142960e$var$useCollectionChildren) {\n    let Component = ({ node: node })=>render(node.props, node.props.ref, node);\n    let Result = (0, $95feo$forwardRef)((props, ref)=>{\n        let children = useChildren(props);\n        var _useSSRCollectionNode;\n        return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, null, children, (node)=>/*#__PURE__*/ (0, $95feo$react).createElement(Component, {\n                node: node\n            }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : /*#__PURE__*/ (0, $95feo$react).createElement((0, $95feo$react).Fragment, null);\n    });\n    // @ts-ignore\n    Result.displayName = render.name;\n    return Result;\n}\nfunction $e1995378a142960e$var$useCollectionChildren(options) {\n    return (0, $e948873055cbafe4$export$727c8fc270210f13)({\n        ...options,\n        addIdAndValue: true\n    });\n}\nconst $e1995378a142960e$var$CollectionContext = /*#__PURE__*/ (0, $95feo$createContext)(null);\nfunction $e1995378a142960e$export$fb8073518f34e6ec(props) {\n    let ctx = (0, $95feo$useContext)($e1995378a142960e$var$CollectionContext);\n    let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);\n    let idScope = props.idScope || (ctx === null || ctx === void 0 ? void 0 : ctx.idScope);\n    let children = $e1995378a142960e$var$useCollectionChildren({\n        ...props,\n        idScope: idScope,\n        dependencies: dependencies\n    });\n    let doc = (0, $95feo$useContext)($e1995378a142960e$var$CollectionDocumentContext);\n    if (doc) children = /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$CollectionRoot, null, children);\n    // Propagate dependencies and idScope to child collections.\n    ctx = (0, $95feo$useMemo)(()=>({\n            dependencies: dependencies,\n            idScope: idScope\n        }), [\n        idScope,\n        ...dependencies\n    ]);\n    return /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$CollectionContext.Provider, {\n        value: ctx\n    }, children);\n}\nfunction $e1995378a142960e$var$CollectionRoot({ children: children }) {\n    let doc = (0, $95feo$useContext)($e1995378a142960e$var$CollectionDocumentContext);\n    let wrappedChildren = (0, $95feo$useMemo)(()=>/*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {\n            value: null\n        }, /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$ShallowRenderContext.Provider, {\n            value: true\n        }, children)), [\n        children\n    ]);\n    // During SSR, we render the content directly, and append nodes to the document during render.\n    // The collection children return null so that nothing is actually rendered into the HTML.\n    return (0, $95feo$useIsSSR)() ? /*#__PURE__*/ (0, $95feo$react).createElement($e1995378a142960e$var$SSRContext.Provider, {\n        value: doc\n    }, wrappedChildren) : /*#__PURE__*/ (0, $95feo$createPortal)(wrappedChildren, doc);\n}\n\n\nexport {$e1995378a142960e$export$bf788dd355e3a401 as CollectionBuilder, $e1995378a142960e$export$18af5c7a9e9b3664 as createLeafComponent, $e1995378a142960e$export$e953bb1cd0f19726 as createBranchComponent, $e1995378a142960e$export$fb8073518f34e6ec as Collection};\n//# sourceMappingURL=CollectionBuilder.module.js.map\n","import {createBranchComponent as $18I52$createBranchComponent, useCachedChildren as $18I52$useCachedChildren} from \"@react-aria/collections\";\nimport $18I52$react, {createContext as $18I52$createContext, useContext as $18I52$useContext, useMemo as $18I52$useMemo} from \"react\";\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 */ \n\nconst $7135fc7d473fd974$export$d40e14dec8b060a8 = /*#__PURE__*/ (0, $18I52$createContext)(null);\nconst $7135fc7d473fd974$export$6e2c8f0811a474ce = /*#__PURE__*/ (0, $18I52$createBranchComponent)('section', (props, ref, section)=>{\n    let { render: render } = (0, $18I52$useContext)($7135fc7d473fd974$export$d40e14dec8b060a8);\n    return render(props, ref, section);\n});\nconst $7135fc7d473fd974$export$a164736487e3f0ae = {\n    CollectionRoot ({ collection: collection, renderDropIndicator: renderDropIndicator }) {\n        return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);\n    },\n    CollectionBranch ({ collection: collection, parent: parent, renderDropIndicator: renderDropIndicator }) {\n        return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);\n    }\n};\nfunction $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {\n    return (0, $18I52$useCachedChildren)({\n        items: parent ? collection.getChildren(parent.key) : collection,\n        dependencies: [\n            renderDropIndicator\n        ],\n        children (node) {\n            var _collection_getItem;\n            let rendered = node.render(node);\n            if (!renderDropIndicator || node.type !== 'item') return rendered;\n            let key = node.key;\n            let keyAfter = collection.getKeyAfter(key);\n            return /*#__PURE__*/ (0, $18I52$react).createElement((0, $18I52$react).Fragment, null, renderDropIndicator({\n                type: 'item',\n                key: key,\n                dropPosition: 'before'\n            }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== 'item') && renderDropIndicator({\n                type: 'item',\n                key: key,\n                dropPosition: 'after'\n            }));\n        }\n    });\n}\nconst $7135fc7d473fd974$export$4feb769f8ddf26c5 = /*#__PURE__*/ (0, $18I52$createContext)($7135fc7d473fd974$export$a164736487e3f0ae);\nfunction $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {\n    return (0, $18I52$useMemo)(()=>focusedKey != null ? new Set([\n            focusedKey\n        ]) : null, [\n        focusedKey\n    ]);\n}\n\n\nexport {$7135fc7d473fd974$export$d40e14dec8b060a8 as SectionContext, $7135fc7d473fd974$export$6e2c8f0811a474ce as Section, $7135fc7d473fd974$export$a164736487e3f0ae as DefaultCollectionRenderer, $7135fc7d473fd974$export$4feb769f8ddf26c5 as CollectionRendererContext, $7135fc7d473fd974$export$90e00781bc59d8f9 as usePersistedKeys};\n//# sourceMappingURL=Collection.module.js.map\n","import {usePress as $f6c31cce2adf654f$export$45712eceda6fad21} from \"./usePress.mjs\";\nimport {useGlobalListeners as $4k2kv$useGlobalListeners, useDescription as $4k2kv$useDescription, mergeProps as $4k2kv$mergeProps} from \"@react-aria/utils\";\nimport {useRef as $4k2kv$useRef} 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\nconst $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;\nfunction $8a26561d2877236e$export$c24ed0104d07eab9(props) {\n    let { isDisabled: isDisabled, onLongPressStart: onLongPressStart, onLongPressEnd: onLongPressEnd, onLongPress: onLongPress, threshold: threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription: accessibilityDescription } = props;\n    const timeRef = (0, $4k2kv$useRef)(undefined);\n    let { addGlobalListener: addGlobalListener, removeGlobalListener: removeGlobalListener } = (0, $4k2kv$useGlobalListeners)();\n    let { pressProps: pressProps } = (0, $f6c31cce2adf654f$export$45712eceda6fad21)({\n        isDisabled: isDisabled,\n        onPressStart (e) {\n            e.continuePropagation();\n            if (e.pointerType === 'mouse' || e.pointerType === 'touch') {\n                if (onLongPressStart) onLongPressStart({\n                    ...e,\n                    type: 'longpressstart'\n                });\n                timeRef.current = setTimeout(()=>{\n                    // Prevent other usePress handlers from also handling this event.\n                    e.target.dispatchEvent(new PointerEvent('pointercancel', {\n                        bubbles: true\n                    }));\n                    if (onLongPress) onLongPress({\n                        ...e,\n                        type: 'longpress'\n                    });\n                    timeRef.current = undefined;\n                }, threshold);\n                // Prevent context menu, which may be opened on long press on touch devices\n                if (e.pointerType === 'touch') {\n                    let onContextMenu = (e)=>{\n                        e.preventDefault();\n                    };\n                    addGlobalListener(e.target, 'contextmenu', onContextMenu, {\n                        once: true\n                    });\n                    addGlobalListener(window, 'pointerup', ()=>{\n                        // If no contextmenu event is fired quickly after pointerup, remove the handler\n                        // so future context menu events outside a long press are not prevented.\n                        setTimeout(()=>{\n                            removeGlobalListener(e.target, 'contextmenu', onContextMenu);\n                        }, 30);\n                    }, {\n                        once: true\n                    });\n                }\n            }\n        },\n        onPressEnd (e) {\n            if (timeRef.current) clearTimeout(timeRef.current);\n            if (onLongPressEnd && (e.pointerType === 'mouse' || e.pointerType === 'touch')) onLongPressEnd({\n                ...e,\n                type: 'longpressend'\n            });\n        }\n    });\n    let descriptionProps = (0, $4k2kv$useDescription)(onLongPress && !isDisabled ? accessibilityDescription : undefined);\n    return {\n        longPressProps: (0, $4k2kv$mergeProps)(pressProps, descriptionProps)\n    };\n}\n\n\nexport {$8a26561d2877236e$export$c24ed0104d07eab9 as useLongPress};\n//# sourceMappingURL=useLongPress.module.js.map\n","import {useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7} from \"./context.mjs\";\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 */ \nlet $325a3faab7a68acd$var$cache = new Map();\nfunction $325a3faab7a68acd$export$a16aca283550c30d(options) {\n    let { locale: locale } = (0, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();\n    let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n    if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);\n    let formatter = new Intl.Collator(locale, options);\n    $325a3faab7a68acd$var$cache.set(cacheKey, formatter);\n    return formatter;\n}\n\n\nexport {$325a3faab7a68acd$export$a16aca283550c30d as useCollator};\n//# sourceMappingURL=useCollator.module.js.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 */ const $b1f0cad8af73213b$export$3585ede4d035bf14 = new WeakMap();\nfunction $b1f0cad8af73213b$var$normalizeKey(key) {\n    if (typeof key === 'string') return key.replace(/\\s*/g, '');\n    return '' + key;\n}\nfunction $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {\n    let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);\n    if (!data) throw new Error('Unknown list');\n    return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;\n}\n\n\nexport {$b1f0cad8af73213b$export$3585ede4d035bf14 as listData, $b1f0cad8af73213b$export$9145995848b05025 as getItemId};\n//# sourceMappingURL=utils.module.js.map\n","import {isAppleDevice as $jUnAJ$isAppleDevice, isMac as $jUnAJ$isMac} from \"@react-aria/utils\";\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 $feb5ffebff200149$export$d3e3bd3e26688c04(e) {\n    // Ctrl + Arrow Up/Arrow Down has a system wide meaning on macOS, so use Alt instead.\n    // On Windows and Ubuntu, Alt + Space has a system wide meaning.\n    return (0, $jUnAJ$isAppleDevice)() ? e.altKey : e.ctrlKey;\n}\nfunction $feb5ffebff200149$export$16792effe837dba3(e) {\n    if ((0, $jUnAJ$isMac)()) return e.metaKey;\n    return e.ctrlKey;\n}\n\n\nexport {$feb5ffebff200149$export$d3e3bd3e26688c04 as isNonContiguousSelectionModifier, $feb5ffebff200149$export$16792effe837dba3 as isCtrlKeyPressed};\n//# sourceMappingURL=utils.module.js.map\n","import {useRef as $dAE4Y$useRef} 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 * Controls how long to wait before clearing the typeahead buffer.\n */ const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1000; // 1 second\nfunction $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {\n    let { keyboardDelegate: keyboardDelegate, selectionManager: selectionManager, onTypeSelect: onTypeSelect } = options;\n    let state = (0, $dAE4Y$useRef)({\n        search: '',\n        timeout: null\n    }).current;\n    let onKeyDown = (e)=>{\n        let character = $fb3050f43d946246$var$getStringForKey(e.key);\n        if (!character || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target)) return;\n        // Do not propagate the Spacebar event if it's meant to be part of the search.\n        // When we time out, the search term becomes empty, hence the check on length.\n        // Trimming is to account for the case of pressing the Spacebar more than once,\n        // which should cycle through the selection/deselection of the focused item.\n        if (character === ' ' && state.search.trim().length > 0) {\n            e.preventDefault();\n            if (!('continuePropagation' in e)) e.stopPropagation();\n        }\n        state.search += character;\n        // Use the delegate to find a key to focus.\n        // Prioritize items after the currently focused item, falling back to searching the whole list.\n        let key = keyboardDelegate.getKeyForSearch(state.search, selectionManager.focusedKey);\n        // If no key found, search from the top.\n        if (key == null) key = keyboardDelegate.getKeyForSearch(state.search);\n        if (key != null) {\n            selectionManager.setFocusedKey(key);\n            if (onTypeSelect) onTypeSelect(key);\n        }\n        clearTimeout(state.timeout);\n        state.timeout = setTimeout(()=>{\n            state.search = '';\n        }, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);\n    };\n    return {\n        typeSelectProps: {\n            // Using a capturing listener to catch the keydown event before\n            // other hooks in order to handle the Spacebar event.\n            onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : null\n        }\n    };\n}\nfunction $fb3050f43d946246$var$getStringForKey(key) {\n    // If the key is of length 1, it is an ASCII value.\n    // Otherwise, if there are no ASCII characters in the key name,\n    // it is a Unicode character.\n    // See https://www.w3.org/TR/uievents-key/\n    if (key.length === 1 || !/^[A-Z]/i.test(key)) return key;\n    return '';\n}\n\n\nexport {$fb3050f43d946246$export$e32c88dfddc6e1d8 as useTypeSelect};\n//# sourceMappingURL=useTypeSelect.module.js.map\n","import {isCtrlKeyPressed as $feb5ffebff200149$export$16792effe837dba3, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {useTypeSelect as $fb3050f43d946246$export$e32c88dfddc6e1d8} from \"./useTypeSelect.mjs\";\nimport {flushSync as $3H3GQ$flushSync} from \"react-dom\";\nimport {useRef as $3H3GQ$useRef, useEffect as $3H3GQ$useEffect} from \"react\";\nimport {getFocusableTreeWalker as $3H3GQ$getFocusableTreeWalker, focusSafely as $3H3GQ$focusSafely} from \"@react-aria/focus\";\nimport {useRouter as $3H3GQ$useRouter, focusWithoutScrolling as $3H3GQ$focusWithoutScrolling, useEvent as $3H3GQ$useEvent, scrollIntoViewport as $3H3GQ$scrollIntoViewport, scrollIntoView as $3H3GQ$scrollIntoView, mergeProps as $3H3GQ$mergeProps} from \"@react-aria/utils\";\nimport {getInteractionModality as $3H3GQ$getInteractionModality} from \"@react-aria/interactions\";\nimport {useLocale as $3H3GQ$useLocale} from \"@react-aria/i18n\";\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\n\n\nfunction $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {\n    let { selectionManager: manager, keyboardDelegate: delegate, ref: ref, autoFocus: autoFocus = false, shouldFocusWrap: shouldFocusWrap = false, disallowEmptySelection: disallowEmptySelection = false, disallowSelectAll: disallowSelectAll = false, selectOnFocus: selectOnFocus = manager.selectionBehavior === 'replace', disallowTypeAhead: disallowTypeAhead = false, shouldUseVirtualFocus: shouldUseVirtualFocus, allowsTabNavigation: allowsTabNavigation = false, isVirtualized: isVirtualized, scrollRef: // If no scrollRef is provided, assume the collection ref is the scrollable region\n    scrollRef = ref, linkBehavior: linkBehavior = 'action' } = options;\n    let { direction: direction } = (0, $3H3GQ$useLocale)();\n    let router = (0, $3H3GQ$useRouter)();\n    let onKeyDown = (e)=>{\n        // Prevent option + tab from doing anything since it doesn't move focus to the cells, only buttons/checkboxes\n        if (e.altKey && e.key === 'Tab') e.preventDefault();\n        // Keyboard events bubble through portals. Don't handle keyboard events\n        // for elements outside the collection (e.g. menus).\n        if (!ref.current.contains(e.target)) return;\n        const navigateToKey = (key, childFocus)=>{\n            if (key != null) {\n                if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {\n                    // Set focused key and re-render synchronously to bring item into view if needed.\n                    (0, $3H3GQ$flushSync)(()=>{\n                        manager.setFocusedKey(key, childFocus);\n                    });\n                    let item = scrollRef.current.querySelector(`[data-key=\"${CSS.escape(key.toString())}\"]`);\n                    let itemProps = manager.getItemProps(key);\n                    router.open(item, e, itemProps.href, itemProps.routerOptions);\n                    return;\n                }\n                manager.setFocusedKey(key, childFocus);\n                if (manager.isLink(key) && linkBehavior === 'override') return;\n                if (e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(key);\n                else if (selectOnFocus && !(0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.replaceSelection(key);\n            }\n        };\n        switch(e.key){\n            case 'ArrowDown':\n                if (delegate.getKeyBelow) {\n                    var _delegate_getFirstKey, _delegate_getFirstKey1;\n                    e.preventDefault();\n                    let nextKey = manager.focusedKey != null ? delegate.getKeyBelow(manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);\n                    if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);\n                    navigateToKey(nextKey);\n                }\n                break;\n            case 'ArrowUp':\n                if (delegate.getKeyAbove) {\n                    var _delegate_getLastKey, _delegate_getLastKey1;\n                    e.preventDefault();\n                    let nextKey = manager.focusedKey != null ? delegate.getKeyAbove(manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);\n                    if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);\n                    navigateToKey(nextKey);\n                }\n                break;\n            case 'ArrowLeft':\n                if (delegate.getKeyLeftOf) {\n                    var _delegate_getFirstKey2, _delegate_getLastKey2;\n                    e.preventDefault();\n                    let nextKey = delegate.getKeyLeftOf(manager.focusedKey);\n                    if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);\n                    navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');\n                }\n                break;\n            case 'ArrowRight':\n                if (delegate.getKeyRightOf) {\n                    var _delegate_getLastKey3, _delegate_getFirstKey3;\n                    e.preventDefault();\n                    let nextKey = delegate.getKeyRightOf(manager.focusedKey);\n                    if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);\n                    navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');\n                }\n                break;\n            case 'Home':\n                if (delegate.getFirstKey) {\n                    e.preventDefault();\n                    let firstKey = delegate.getFirstKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));\n                    manager.setFocusedKey(firstKey);\n                    if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(firstKey);\n                    else if (selectOnFocus) manager.replaceSelection(firstKey);\n                }\n                break;\n            case 'End':\n                if (delegate.getLastKey) {\n                    e.preventDefault();\n                    let lastKey = delegate.getLastKey(manager.focusedKey, (0, $feb5ffebff200149$export$16792effe837dba3)(e));\n                    manager.setFocusedKey(lastKey);\n                    if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && e.shiftKey && manager.selectionMode === 'multiple') manager.extendSelection(lastKey);\n                    else if (selectOnFocus) manager.replaceSelection(lastKey);\n                }\n                break;\n            case 'PageDown':\n                if (delegate.getKeyPageBelow) {\n                    e.preventDefault();\n                    let nextKey = delegate.getKeyPageBelow(manager.focusedKey);\n                    navigateToKey(nextKey);\n                }\n                break;\n            case 'PageUp':\n                if (delegate.getKeyPageAbove) {\n                    e.preventDefault();\n                    let nextKey = delegate.getKeyPageAbove(manager.focusedKey);\n                    navigateToKey(nextKey);\n                }\n                break;\n            case 'a':\n                if ((0, $feb5ffebff200149$export$16792effe837dba3)(e) && manager.selectionMode === 'multiple' && disallowSelectAll !== true) {\n                    e.preventDefault();\n                    manager.selectAll();\n                }\n                break;\n            case 'Escape':\n                if (!disallowEmptySelection && manager.selectedKeys.size !== 0) {\n                    e.stopPropagation();\n                    e.preventDefault();\n                    manager.clearSelection();\n                }\n                break;\n            case 'Tab':\n                if (!allowsTabNavigation) {\n                    // There may be elements that are \"tabbable\" inside a collection (e.g. in a grid cell).\n                    // However, collections should be treated as a single tab stop, with arrow key navigation internally.\n                    // We don't control the rendering of these, so we can't override the tabIndex to prevent tabbing.\n                    // Instead, we handle the Tab key, and move focus manually to the first/last tabbable element\n                    // in the collection, so that the browser default behavior will apply starting from that element\n                    // rather than the currently focused one.\n                    if (e.shiftKey) ref.current.focus();\n                    else {\n                        let walker = (0, $3H3GQ$getFocusableTreeWalker)(ref.current, {\n                            tabbable: true\n                        });\n                        let next;\n                        let last;\n                        do {\n                            last = walker.lastChild();\n                            if (last) next = last;\n                        }while (last);\n                        if (next && !next.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(next);\n                    }\n                    break;\n                }\n        }\n    };\n    // Store the scroll position so we can restore it later.\n    /// TODO: should this happen all the time??\n    let scrollPos = (0, $3H3GQ$useRef)({\n        top: 0,\n        left: 0\n    });\n    (0, $3H3GQ$useEvent)(scrollRef, 'scroll', isVirtualized ? null : ()=>{\n        scrollPos.current = {\n            top: scrollRef.current.scrollTop,\n            left: scrollRef.current.scrollLeft\n        };\n    });\n    let onFocus = (e)=>{\n        if (manager.isFocused) {\n            // If a focus event bubbled through a portal, reset focus state.\n            if (!e.currentTarget.contains(e.target)) manager.setFocused(false);\n            return;\n        }\n        // Focus events can bubble through portals. Ignore these events.\n        if (!e.currentTarget.contains(e.target)) return;\n        manager.setFocused(true);\n        if (manager.focusedKey == null) {\n            let navigateToFirstKey = (key)=>{\n                if (key != null) {\n                    manager.setFocusedKey(key);\n                    if (selectOnFocus) manager.replaceSelection(key);\n                }\n            };\n            // If the user hasn't yet interacted with the collection, there will be no focusedKey set.\n            // Attempt to detect whether the user is tabbing forward or backward into the collection\n            // and either focus the first or last item accordingly.\n            let relatedTarget = e.relatedTarget;\n            var _manager_lastSelectedKey, _manager_firstSelectedKey;\n            if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : delegate.getLastKey());\n            else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : delegate.getFirstKey());\n        } else if (!isVirtualized) {\n            // Restore the scroll position to what it was before.\n            scrollRef.current.scrollTop = scrollPos.current.top;\n            scrollRef.current.scrollLeft = scrollPos.current.left;\n        }\n        if (manager.focusedKey != null) {\n            // Refocus and scroll the focused item into view if it exists within the scrollable region.\n            let element = scrollRef.current.querySelector(`[data-key=\"${CSS.escape(manager.focusedKey.toString())}\"]`);\n            if (element) {\n                // This prevents a flash of focus on the first/last element in the collection, or the collection itself.\n                if (!element.contains(document.activeElement)) (0, $3H3GQ$focusWithoutScrolling)(element);\n                let modality = (0, $3H3GQ$getInteractionModality)();\n                if (modality === 'keyboard') (0, $3H3GQ$scrollIntoViewport)(element, {\n                    containingElement: ref.current\n                });\n            }\n        }\n    };\n    let onBlur = (e)=>{\n        // Don't set blurred and then focused again if moving focus within the collection.\n        if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);\n    };\n    const autoFocusRef = (0, $3H3GQ$useRef)(autoFocus);\n    (0, $3H3GQ$useEffect)(()=>{\n        if (autoFocusRef.current) {\n            let focusedKey = null;\n            // Check focus strategy to determine which item to focus\n            if (autoFocus === 'first') focusedKey = delegate.getFirstKey();\n            if (autoFocus === 'last') focusedKey = delegate.getLastKey();\n            // If there are any selected keys, make the first one the new focus target\n            let selectedKeys = manager.selectedKeys;\n            if (selectedKeys.size) {\n                for (let key of selectedKeys)if (manager.canSelectItem(key)) {\n                    focusedKey = key;\n                    break;\n                }\n            }\n            manager.setFocused(true);\n            manager.setFocusedKey(focusedKey);\n            // If no default focus key is selected, focus the collection itself.\n            if (focusedKey == null && !shouldUseVirtualFocus) (0, $3H3GQ$focusSafely)(ref.current);\n        }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, []);\n    // Scroll the focused element into view when the focusedKey changes.\n    let lastFocusedKey = (0, $3H3GQ$useRef)(manager.focusedKey);\n    (0, $3H3GQ$useEffect)(()=>{\n        if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || autoFocusRef.current) && (scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current)) {\n            let modality = (0, $3H3GQ$getInteractionModality)();\n            let element = ref.current.querySelector(`[data-key=\"${CSS.escape(manager.focusedKey.toString())}\"]`);\n            if (!element) // If item element wasn't found, return early (don't update autoFocusRef and lastFocusedKey).\n            // The collection may initially be empty (e.g. virtualizer), so wait until the element exists.\n            return;\n            if (modality === 'keyboard' || autoFocusRef.current) {\n                (0, $3H3GQ$scrollIntoView)(scrollRef.current, element);\n                // Avoid scroll in iOS VO, since it may cause overlay to close (i.e. RAC submenu)\n                if (modality !== 'virtual') (0, $3H3GQ$scrollIntoViewport)(element, {\n                    containingElement: ref.current\n                });\n            }\n        }\n        // If the focused key becomes null (e.g. the last item is deleted), focus the whole collection.\n        if (manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) (0, $3H3GQ$focusSafely)(ref.current);\n        lastFocusedKey.current = manager.focusedKey;\n        autoFocusRef.current = false;\n    });\n    // Intercept FocusScope restoration since virtualized collections can reuse DOM nodes.\n    (0, $3H3GQ$useEvent)(ref, 'react-aria-focus-scope-restore', (e)=>{\n        e.preventDefault();\n        manager.setFocused(true);\n    });\n    let handlers = {\n        onKeyDown: onKeyDown,\n        onFocus: onFocus,\n        onBlur: onBlur,\n        onMouseDown (e) {\n            // Ignore events that bubbled through portals.\n            if (scrollRef.current === e.target) // Prevent focus going to the collection when clicking on the scrollbar.\n            e.preventDefault();\n        }\n    };\n    let { typeSelectProps: typeSelectProps } = (0, $fb3050f43d946246$export$e32c88dfddc6e1d8)({\n        keyboardDelegate: delegate,\n        selectionManager: manager\n    });\n    if (!disallowTypeAhead) handlers = (0, $3H3GQ$mergeProps)(typeSelectProps, handlers);\n    // If nothing is focused within the collection, make the collection itself tabbable.\n    // This will be marshalled to either the first or last item depending on where focus came from.\n    // If using virtual focus, don't set a tabIndex at all so that VoiceOver on iOS 14 doesn't try\n    // to move real DOM focus to the element anyway.\n    let tabIndex;\n    if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;\n    return {\n        collectionProps: {\n            ...handlers,\n            tabIndex: tabIndex\n        }\n    };\n}\n\n\nexport {$ae20dd8cbca75726$export$d6daf82dcd84e87c as useSelectableCollection};\n//# sourceMappingURL=useSelectableCollection.module.js.map\n","import {isCtrlKeyPressed as $feb5ffebff200149$export$16792effe837dba3, isNonContiguousSelectionModifier as $feb5ffebff200149$export$d3e3bd3e26688c04} from \"./utils.mjs\";\nimport {focusSafely as $581M0$focusSafely} from \"@react-aria/focus\";\nimport {useRouter as $581M0$useRouter, openLink as $581M0$openLink, mergeProps as $581M0$mergeProps} from \"@react-aria/utils\";\nimport {usePress as $581M0$usePress, useLongPress as $581M0$useLongPress} from \"@react-aria/interactions\";\nimport {useEffect as $581M0$useEffect, useRef as $581M0$useRef} 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\nfunction $880e95eb8b93ba9a$export$ecf600387e221c37(options) {\n    let { selectionManager: manager, key: key, ref: ref, shouldSelectOnPressUp: shouldSelectOnPressUp, shouldUseVirtualFocus: shouldUseVirtualFocus, focus: focus, isDisabled: isDisabled, onAction: onAction, allowsDifferentPressOrigin: allowsDifferentPressOrigin, linkBehavior: linkBehavior = 'action' } = options;\n    let router = (0, $581M0$useRouter)();\n    let onSelect = (e)=>{\n        if (e.pointerType === 'keyboard' && (0, $feb5ffebff200149$export$d3e3bd3e26688c04)(e)) manager.toggleSelection(key);\n        else {\n            if (manager.selectionMode === 'none') return;\n            if (manager.isLink(key)) {\n                if (linkBehavior === 'selection') {\n                    let itemProps = manager.getItemProps(key);\n                    router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n                    // Always set selected keys back to what they were so that select and combobox close.\n                    manager.setSelectedKeys(manager.selectedKeys);\n                    return;\n                } else if (linkBehavior === 'override' || linkBehavior === 'none') return;\n            }\n            if (manager.selectionMode === 'single') {\n                if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);\n                else manager.replaceSelection(key);\n            } else if (e && e.shiftKey) manager.extendSelection(key);\n            else if (manager.selectionBehavior === 'toggle' || e && ((0, $feb5ffebff200149$export$16792effe837dba3)(e) || e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n            manager.toggleSelection(key);\n            else manager.replaceSelection(key);\n        }\n    };\n    // Focus the associated DOM node when this item becomes the focusedKey\n    (0, $581M0$useEffect)(()=>{\n        let isFocused = key === manager.focusedKey;\n        if (isFocused && manager.isFocused && !shouldUseVirtualFocus) {\n            if (focus) focus();\n            else if (document.activeElement !== ref.current) (0, $581M0$focusSafely)(ref.current);\n        }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, [\n        ref,\n        key,\n        manager.focusedKey,\n        manager.childFocusStrategy,\n        manager.isFocused,\n        shouldUseVirtualFocus\n    ]);\n    isDisabled = isDisabled || manager.isDisabled(key);\n    // Set tabIndex to 0 if the element is focused, or -1 otherwise so that only the last focused\n    // item is tabbable.  If using virtual focus, don't set a tabIndex at all so that VoiceOver\n    // on iOS 14 doesn't try to move real DOM focus to the item anyway.\n    let itemProps = {};\n    if (!shouldUseVirtualFocus && !isDisabled) itemProps = {\n        tabIndex: key === manager.focusedKey ? 0 : -1,\n        onFocus (e) {\n            if (e.target === ref.current) manager.setFocusedKey(key);\n        }\n    };\n    else if (isDisabled) itemProps.onMouseDown = (e)=>{\n        // Prevent focus going to the body when clicking on a disabled item.\n        e.preventDefault();\n    };\n    // With checkbox selection, onAction (i.e. navigation) becomes primary, and occurs on a single click of the row.\n    // Clicking the checkbox enters selection mode, after which clicking anywhere on any row toggles selection for that row.\n    // With highlight selection, onAction is secondary, and occurs on double click. Single click selects the row.\n    // With touch, onAction occurs on single tap, and long press enters selection mode.\n    let isLinkOverride = manager.isLink(key) && linkBehavior === 'override';\n    let hasLinkAction = manager.isLink(key) && linkBehavior !== 'selection' && linkBehavior !== 'none';\n    let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride;\n    let allowsActions = (onAction || hasLinkAction) && !isDisabled;\n    let hasPrimaryAction = allowsActions && (manager.selectionBehavior === 'replace' ? !allowsSelection : !allowsSelection || manager.isEmpty);\n    let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === 'replace';\n    let hasAction = hasPrimaryAction || hasSecondaryAction;\n    let modality = (0, $581M0$useRef)(null);\n    let longPressEnabled = hasAction && allowsSelection;\n    let longPressEnabledOnPressStart = (0, $581M0$useRef)(false);\n    let hadPrimaryActionOnPressStart = (0, $581M0$useRef)(false);\n    let performAction = (e)=>{\n        if (onAction) onAction();\n        if (hasLinkAction) {\n            let itemProps = manager.getItemProps(key);\n            router.open(ref.current, e, itemProps.href, itemProps.routerOptions);\n        }\n    };\n    // By default, selection occurs on pointer down. This can be strange if selecting an\n    // item causes the UI to disappear immediately (e.g. menus).\n    // If shouldSelectOnPressUp is true, we use onPressUp instead of onPressStart.\n    // onPress requires a pointer down event on the same element as pointer up. For menus,\n    // we want to be able to have the pointer down on the trigger that opens the menu and\n    // the pointer up on the menu item rather than requiring a separate press.\n    // For keyboard events, selection still occurs on key down.\n    let itemPressProps = {};\n    if (shouldSelectOnPressUp) {\n        itemPressProps.onPressStart = (e)=>{\n            modality.current = e.pointerType;\n            longPressEnabledOnPressStart.current = longPressEnabled;\n            if (e.pointerType === 'keyboard' && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey())) onSelect(e);\n        };\n        // If allowsDifferentPressOrigin, make selection happen on pressUp (e.g. open menu on press down, selection on menu item happens on press up.)\n        // Otherwise, have selection happen onPress (prevents listview row selection when clicking on interactable elements in the row)\n        if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e)=>{\n            if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== 'mouse') {\n                if (e.pointerType === 'keyboard' && !$880e95eb8b93ba9a$var$isActionKey()) return;\n                performAction(e);\n            } else if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n        };\n        else {\n            itemPressProps.onPressUp = hasPrimaryAction ? null : (e)=>{\n                if (e.pointerType !== 'keyboard' && allowsSelection) onSelect(e);\n            };\n            itemPressProps.onPress = hasPrimaryAction ? performAction : null;\n        }\n    } else {\n        itemPressProps.onPressStart = (e)=>{\n            modality.current = e.pointerType;\n            longPressEnabledOnPressStart.current = longPressEnabled;\n            hadPrimaryActionOnPressStart.current = hasPrimaryAction;\n            // Select on mouse down unless there is a primary action which will occur on mouse up.\n            // For keyboard, select on key down. If there is an action, the Space key selects on key down,\n            // and the Enter key performs onAction on key up.\n            if (allowsSelection && (e.pointerType === 'mouse' && !hasPrimaryAction || e.pointerType === 'keyboard' && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey()))) onSelect(e);\n        };\n        itemPressProps.onPress = (e)=>{\n            // Selection occurs on touch up. Primary actions always occur on pointer up.\n            // Both primary and secondary actions occur on Enter key up. The only exception\n            // is secondary actions, which occur on double click with a mouse.\n            if (e.pointerType === 'touch' || e.pointerType === 'pen' || e.pointerType === 'virtual' || e.pointerType === 'keyboard' && hasAction && $880e95eb8b93ba9a$var$isActionKey() || e.pointerType === 'mouse' && hadPrimaryActionOnPressStart.current) {\n                if (hasAction) performAction(e);\n                else if (allowsSelection) onSelect(e);\n            }\n        };\n    }\n    itemProps['data-key'] = key;\n    itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;\n    let { pressProps: pressProps, isPressed: isPressed } = (0, $581M0$usePress)(itemPressProps);\n    // Double clicking with a mouse with selectionBehavior = 'replace' performs an action.\n    let onDoubleClick = hasSecondaryAction ? (e)=>{\n        if (modality.current === 'mouse') {\n            e.stopPropagation();\n            e.preventDefault();\n            performAction(e);\n        }\n    } : undefined;\n    // Long pressing an item with touch when selectionBehavior = 'replace' switches the selection behavior\n    // to 'toggle'. This changes the single tap behavior from performing an action (i.e. navigating) to\n    // selecting, and may toggle the appearance of a UI affordance like checkboxes on each item.\n    let { longPressProps: longPressProps } = (0, $581M0$useLongPress)({\n        isDisabled: !longPressEnabled,\n        onLongPress (e) {\n            if (e.pointerType === 'touch') {\n                onSelect(e);\n                manager.setSelectionBehavior('toggle');\n            }\n        }\n    });\n    // Prevent native drag and drop on long press if we also select on long press.\n    // Once the user is in selection mode, they can long press again to drag.\n    // Use a capturing listener to ensure this runs before useDrag, regardless of\n    // the order the props get merged.\n    let onDragStartCapture = (e)=>{\n        if (modality.current === 'touch' && longPressEnabledOnPressStart.current) e.preventDefault();\n    };\n    // Prevent default on link clicks so that we control exactly\n    // when they open (to match selection behavior).\n    let onClick = manager.isLink(key) ? (e)=>{\n        if (!(0, $581M0$openLink).isOpening) e.preventDefault();\n    } : undefined;\n    return {\n        itemProps: (0, $581M0$mergeProps)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {\n            onDoubleClick: onDoubleClick,\n            onDragStartCapture: onDragStartCapture,\n            onClick: onClick\n        }),\n        isPressed: isPressed,\n        isSelected: manager.isSelected(key),\n        isFocused: manager.isFocused && manager.focusedKey === key,\n        isDisabled: isDisabled,\n        allowsSelection: allowsSelection,\n        hasAction: hasAction\n    };\n}\nfunction $880e95eb8b93ba9a$var$isActionKey() {\n    let event = window.event;\n    return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';\n}\nfunction $880e95eb8b93ba9a$var$isSelectionKey() {\n    let event = window.event;\n    return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';\n}\n\n\nexport {$880e95eb8b93ba9a$export$ecf600387e221c37 as useSelectableItem};\n//# sourceMappingURL=useSelectableItem.module.js.map\n","/*\n * Copyright 2024 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 */ class $657e4dc4a6e88df0$export$8f5ed9ff9f511381 {\n    getItemRect(key) {\n        let container = this.ref.current;\n        let item = key != null ? container.querySelector(`[data-key=\"${CSS.escape(key.toString())}\"]`) : null;\n        if (!item) return null;\n        let containerRect = container.getBoundingClientRect();\n        let itemRect = item.getBoundingClientRect();\n        return {\n            x: itemRect.left - containerRect.left + container.scrollLeft,\n            y: itemRect.top - containerRect.top + container.scrollTop,\n            width: itemRect.width,\n            height: itemRect.height\n        };\n    }\n    getContentSize() {\n        let container = this.ref.current;\n        return {\n            width: container.scrollWidth,\n            height: container.scrollHeight\n        };\n    }\n    getVisibleRect() {\n        let container = this.ref.current;\n        return {\n            x: container.scrollLeft,\n            y: container.scrollTop,\n            width: container.offsetWidth,\n            height: container.offsetHeight\n        };\n    }\n    constructor(ref){\n        this.ref = ref;\n    }\n}\n\n\nexport {$657e4dc4a6e88df0$export$8f5ed9ff9f511381 as DOMLayoutDelegate};\n//# sourceMappingURL=DOMLayoutDelegate.module.js.map\n","import {DOMLayoutDelegate as $657e4dc4a6e88df0$export$8f5ed9ff9f511381} from \"./DOMLayoutDelegate.mjs\";\nimport {isScrollable as $eak97$isScrollable} from \"@react-aria/utils\";\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\nclass $2a25aae57d74318e$export$a05409b8bb224a5a {\n    isDisabled(item) {\n        var _item_props;\n        return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));\n    }\n    getNextKey(key) {\n        key = this.collection.getKeyAfter(key);\n        while(key != null){\n            let item = this.collection.getItem(key);\n            if (item.type === 'item' && !this.isDisabled(item)) return key;\n            key = this.collection.getKeyAfter(key);\n        }\n        return null;\n    }\n    getPreviousKey(key) {\n        key = this.collection.getKeyBefore(key);\n        while(key != null){\n            let item = this.collection.getItem(key);\n            if (item.type === 'item' && !this.isDisabled(item)) return key;\n            key = this.collection.getKeyBefore(key);\n        }\n        return null;\n    }\n    findKey(key, nextKey, shouldSkip) {\n        let itemRect = this.layoutDelegate.getItemRect(key);\n        if (!itemRect) return null;\n        // Find the item above or below in the same column.\n        let prevRect = itemRect;\n        do {\n            key = nextKey(key);\n            itemRect = this.layoutDelegate.getItemRect(key);\n        }while (itemRect && shouldSkip(prevRect, itemRect));\n        return key;\n    }\n    isSameRow(prevRect, itemRect) {\n        return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;\n    }\n    isSameColumn(prevRect, itemRect) {\n        return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;\n    }\n    getKeyBelow(key) {\n        if (this.layout === 'grid' && this.orientation === 'vertical') return this.findKey(key, (key)=>this.getNextKey(key), this.isSameRow);\n        else return this.getNextKey(key);\n    }\n    getKeyAbove(key) {\n        if (this.layout === 'grid' && this.orientation === 'vertical') return this.findKey(key, (key)=>this.getPreviousKey(key), this.isSameRow);\n        else return this.getPreviousKey(key);\n    }\n    getNextColumn(key, right) {\n        return right ? this.getPreviousKey(key) : this.getNextKey(key);\n    }\n    getKeyRightOf(key) {\n        if (this.layout === 'grid') {\n            if (this.orientation === 'vertical') return this.getNextColumn(key, this.direction === 'rtl');\n            else return this.findKey(key, (key)=>this.getNextColumn(key, this.direction === 'rtl'), this.isSameColumn);\n        } else if (this.orientation === 'horizontal') return this.getNextColumn(key, this.direction === 'rtl');\n        return null;\n    }\n    getKeyLeftOf(key) {\n        if (this.layout === 'grid') {\n            if (this.orientation === 'vertical') return this.getNextColumn(key, this.direction === 'ltr');\n            else return this.findKey(key, (key)=>this.getNextColumn(key, this.direction === 'ltr'), this.isSameColumn);\n        } else if (this.orientation === 'horizontal') return this.getNextColumn(key, this.direction === 'ltr');\n        return null;\n    }\n    getFirstKey() {\n        let key = this.collection.getFirstKey();\n        while(key != null){\n            let item = this.collection.getItem(key);\n            if ((item === null || item === void 0 ? void 0 : item.type) === 'item' && !this.isDisabled(item)) return key;\n            key = this.collection.getKeyAfter(key);\n        }\n        return null;\n    }\n    getLastKey() {\n        let key = this.collection.getLastKey();\n        while(key != null){\n            let item = this.collection.getItem(key);\n            if (item.type === 'item' && !this.isDisabled(item)) return key;\n            key = this.collection.getKeyBefore(key);\n        }\n        return null;\n    }\n    getKeyPageAbove(key) {\n        let menu = this.ref.current;\n        let itemRect = this.layoutDelegate.getItemRect(key);\n        if (!itemRect) return null;\n        if (!(0, $eak97$isScrollable)(menu)) return this.getFirstKey();\n        if (this.orientation === 'horizontal') {\n            let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);\n            while(itemRect && itemRect.x > pageX){\n                key = this.getKeyAbove(key);\n                itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n            }\n        } else {\n            let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);\n            while(itemRect && itemRect.y > pageY){\n                key = this.getKeyAbove(key);\n                itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n            }\n        }\n        return key !== null && key !== void 0 ? key : this.getFirstKey();\n    }\n    getKeyPageBelow(key) {\n        let menu = this.ref.current;\n        let itemRect = this.layoutDelegate.getItemRect(key);\n        if (!itemRect) return null;\n        if (!(0, $eak97$isScrollable)(menu)) return this.getLastKey();\n        if (this.orientation === 'horizontal') {\n            let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);\n            while(itemRect && itemRect.x < pageX){\n                key = this.getKeyBelow(key);\n                itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n            }\n        } else {\n            let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);\n            while(itemRect && itemRect.y < pageY){\n                key = this.getKeyBelow(key);\n                itemRect = key == null ? null : this.layoutDelegate.getItemRect(key);\n            }\n        }\n        return key !== null && key !== void 0 ? key : this.getLastKey();\n    }\n    getKeyForSearch(search, fromKey) {\n        if (!this.collator) return null;\n        let collection = this.collection;\n        let key = fromKey || this.getFirstKey();\n        while(key != null){\n            let item = collection.getItem(key);\n            let substring = item.textValue.slice(0, search.length);\n            if (item.textValue && this.collator.compare(substring, search) === 0) return key;\n            key = this.getKeyBelow(key);\n        }\n        return null;\n    }\n    constructor(...args){\n        if (args.length === 1) {\n            let opts = args[0];\n            this.collection = opts.collection;\n            this.ref = opts.ref;\n            this.collator = opts.collator;\n            this.disabledKeys = opts.disabledKeys || new Set();\n            this.disabledBehavior = opts.disabledBehavior || 'all';\n            this.orientation = opts.orientation || 'vertical';\n            this.direction = opts.direction;\n            this.layout = opts.layout || 'stack';\n            this.layoutDelegate = opts.layoutDelegate || new (0, $657e4dc4a6e88df0$export$8f5ed9ff9f511381)(opts.ref);\n        } else {\n            this.collection = args[0];\n            this.disabledKeys = args[1];\n            this.ref = args[2];\n            this.collator = args[3];\n            this.layout = 'stack';\n            this.orientation = 'vertical';\n            this.disabledBehavior = 'all';\n            this.layoutDelegate = new (0, $657e4dc4a6e88df0$export$8f5ed9ff9f511381)(this.ref);\n        }\n        // If this is a vertical stack, remove the left/right methods completely\n        // so they aren't called by useDroppableCollection.\n        if (this.layout === 'stack' && this.orientation === 'vertical') {\n            this.getKeyLeftOf = undefined;\n            this.getKeyRightOf = undefined;\n        }\n    }\n}\n\n\nexport {$2a25aae57d74318e$export$a05409b8bb224a5a as ListKeyboardDelegate};\n//# sourceMappingURL=ListKeyboardDelegate.module.js.map\n","import {useSelectableCollection as $ae20dd8cbca75726$export$d6daf82dcd84e87c} from \"./useSelectableCollection.mjs\";\nimport {ListKeyboardDelegate as $2a25aae57d74318e$export$a05409b8bb224a5a} from \"./ListKeyboardDelegate.mjs\";\nimport {useCollator as $1aJk5$useCollator} from \"@react-aria/i18n\";\nimport {useMemo as $1aJk5$useMemo} 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\nfunction $982254629710d113$export$b95089534ab7c1fd(props) {\n    let { selectionManager: selectionManager, collection: collection, disabledKeys: disabledKeys, ref: ref, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate } = props;\n    // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n    // When virtualized, the layout object will be passed in as a prop and override this.\n    let collator = (0, $1aJk5$useCollator)({\n        usage: 'search',\n        sensitivity: 'base'\n    });\n    let disabledBehavior = selectionManager.disabledBehavior;\n    let delegate = (0, $1aJk5$useMemo)(()=>keyboardDelegate || new (0, $2a25aae57d74318e$export$a05409b8bb224a5a)({\n            collection: collection,\n            disabledKeys: disabledKeys,\n            disabledBehavior: disabledBehavior,\n            ref: ref,\n            collator: collator,\n            layoutDelegate: layoutDelegate\n        }), [\n        keyboardDelegate,\n        layoutDelegate,\n        collection,\n        disabledKeys,\n        ref,\n        collator,\n        disabledBehavior\n    ]);\n    let { collectionProps: collectionProps } = (0, $ae20dd8cbca75726$export$d6daf82dcd84e87c)({\n        ...props,\n        ref: ref,\n        selectionManager: selectionManager,\n        keyboardDelegate: delegate\n    });\n    return {\n        listProps: collectionProps\n    };\n}\n\n\nexport {$982254629710d113$export$b95089534ab7c1fd as useSelectableList};\n//# sourceMappingURL=useSelectableList.module.js.map\n","import {listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from \"./utils.mjs\";\nimport {filterDOMProps as $by1yQ$filterDOMProps, useId as $by1yQ$useId, mergeProps as $by1yQ$mergeProps} from \"@react-aria/utils\";\nimport {useFocusWithin as $by1yQ$useFocusWithin} from \"@react-aria/interactions\";\nimport {useLabel as $by1yQ$useLabel} from \"@react-aria/label\";\nimport {useSelectableList as $by1yQ$useSelectableList} from \"@react-aria/selection\";\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\nfunction $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {\n    let domProps = (0, $by1yQ$filterDOMProps)(props, {\n        labelable: true\n    });\n    // Use props instead of state here. We don't want this to change due to long press.\n    let selectionBehavior = props.selectionBehavior || 'toggle';\n    let linkBehavior = props.linkBehavior || (selectionBehavior === 'replace' ? 'action' : 'override');\n    if (selectionBehavior === 'toggle' && linkBehavior === 'action') // linkBehavior=\"action\" does not work with selectionBehavior=\"toggle\" because there is no way\n    // to initiate selection (checkboxes are not allowed inside a listbox). Link items will not be\n    // selectable in this configuration.\n    linkBehavior = 'override';\n    let { listProps: listProps } = (0, $by1yQ$useSelectableList)({\n        ...props,\n        ref: ref,\n        selectionManager: state.selectionManager,\n        collection: state.collection,\n        disabledKeys: state.disabledKeys,\n        linkBehavior: linkBehavior\n    });\n    let { focusWithinProps: focusWithinProps } = (0, $by1yQ$useFocusWithin)({\n        onFocusWithin: props.onFocus,\n        onBlurWithin: props.onBlur,\n        onFocusWithinChange: props.onFocusChange\n    });\n    // Share list id and some props with child options.\n    let id = (0, $by1yQ$useId)(props.id);\n    (0, $b1f0cad8af73213b$export$3585ede4d035bf14).set(state, {\n        id: id,\n        shouldUseVirtualFocus: props.shouldUseVirtualFocus,\n        shouldSelectOnPressUp: props.shouldSelectOnPressUp,\n        shouldFocusOnHover: props.shouldFocusOnHover,\n        isVirtualized: props.isVirtualized,\n        onAction: props.onAction,\n        linkBehavior: linkBehavior\n    });\n    let { labelProps: labelProps, fieldProps: fieldProps } = (0, $by1yQ$useLabel)({\n        ...props,\n        id: id,\n        // listbox is not an HTML input element so it\n        // shouldn't be labeled by a <label> element.\n        labelElementType: 'span'\n    });\n    return {\n        labelProps: labelProps,\n        listBoxProps: (0, $by1yQ$mergeProps)(domProps, focusWithinProps, state.selectionManager.selectionMode === 'multiple' ? {\n            'aria-multiselectable': 'true'\n        } : {}, {\n            role: 'listbox',\n            ...(0, $by1yQ$mergeProps)(fieldProps, listProps)\n        })\n    };\n}\n\n\nexport {$c132121280ec012d$export$50eacbbf140a3141 as useListBox};\n//# sourceMappingURL=useListBox.module.js.map\n","import $6Fm0V$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 */ \nfunction $c1d7fb2ec91bae71$var$Item(props) {\n    return null;\n}\n$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {\n    let { childItems: childItems, title: title, children: children } = props;\n    let rendered = props.title || props.children;\n    let textValue = props.textValue || (typeof rendered === 'string' ? rendered : '') || props['aria-label'] || '';\n    // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.\n    if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning)) console.warn('<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.');\n    yield {\n        type: 'item',\n        props: props,\n        rendered: rendered,\n        textValue: textValue,\n        'aria-label': props['aria-label'],\n        hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),\n        *childNodes () {\n            if (childItems) for (let child of childItems)yield {\n                type: 'item',\n                value: child\n            };\n            else if (title) {\n                let items = [];\n                (0, $6Fm0V$react).Children.forEach(children, (child)=>{\n                    items.push({\n                        type: 'item',\n                        element: child\n                    });\n                });\n                yield* items;\n            }\n        }\n    };\n};\nfunction $c1d7fb2ec91bae71$var$hasChildItems(props) {\n    if (props.hasChildItems != null) return props.hasChildItems;\n    if (props.childItems) return true;\n    if (props.title && (0, $6Fm0V$react).Children.count(props.children) > 0) return true;\n    return false;\n}\n// We don't want getCollectionNode to show up in the type definition\nlet $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;\n\n\nexport {$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as Item};\n//# sourceMappingURL=Item.module.js.map\n","import $fzaAv$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 */ \nclass $eb2240fc39a57fa5$export$bf788dd355e3a401 {\n    build(props, context) {\n        this.context = context;\n        return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));\n    }\n    *iterateCollection(props) {\n        let { children: children, items: items } = props;\n        if (typeof children === 'function') {\n            if (!items) throw new Error('props.children was a function but props.items is missing');\n            for (let item of props.items)yield* this.getFullNode({\n                value: item\n            }, {\n                renderer: children\n            });\n        } else {\n            let items = [];\n            (0, $fzaAv$react).Children.forEach(children, (child)=>{\n                items.push(child);\n            });\n            let index = 0;\n            for (let item of items){\n                let nodes = this.getFullNode({\n                    element: item,\n                    index: index\n                }, {});\n                for (let node of nodes){\n                    index++;\n                    yield node;\n                }\n            }\n        }\n    }\n    getKey(item, partialNode, state, parentKey) {\n        if (item.key != null) return item.key;\n        if (partialNode.type === 'cell' && partialNode.key != null) return `${parentKey}${partialNode.key}`;\n        let v = partialNode.value;\n        if (v != null) {\n            var _v_key;\n            let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;\n            if (key == null) throw new Error('No key found for item');\n            return key;\n        }\n        return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;\n    }\n    getChildState(state, partialNode) {\n        return {\n            renderer: partialNode.renderer || state.renderer\n        };\n    }\n    *getFullNode(partialNode, state, parentKey, parentNode) {\n        // If there's a value instead of an element on the node, and a parent renderer function is available,\n        // use it to render an element for the value.\n        let element = partialNode.element;\n        if (!element && partialNode.value && state && state.renderer) {\n            let cached = this.cache.get(partialNode.value);\n            if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {\n                cached.index = partialNode.index;\n                cached.parentKey = parentNode ? parentNode.key : null;\n                yield cached;\n                return;\n            }\n            element = state.renderer(partialNode.value);\n        }\n        // If there's an element with a getCollectionNode function on its type, then it's a supported component.\n        // Call this function to get a partial node, and recursively build a full node from there.\n        if ((0, $fzaAv$react).isValidElement(element)) {\n            let type = element.type;\n            if (typeof type !== 'function' && typeof type.getCollectionNode !== 'function') {\n                let name = typeof element.type === 'function' ? element.type.name : element.type;\n                throw new Error(`Unknown element <${name}> in collection.`);\n            }\n            let childNodes = type.getCollectionNode(element.props, this.context);\n            let index = partialNode.index;\n            let result = childNodes.next();\n            while(!result.done && result.value){\n                let childNode = result.value;\n                partialNode.index = index;\n                let nodeKey = childNode.key;\n                if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);\n                let nodes = this.getFullNode({\n                    ...childNode,\n                    key: nodeKey,\n                    index: index,\n                    wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)\n                }, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);\n                let children = [\n                    ...nodes\n                ];\n                for (let node of children){\n                    // Cache the node based on its value\n                    node.value = childNode.value || partialNode.value;\n                    if (node.value) this.cache.set(node.value, node);\n                    // The partial node may have specified a type for the child in order to specify a constraint.\n                    // Verify that the full node that was built recursively matches this type.\n                    if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);\n                    index++;\n                    yield node;\n                }\n                result = childNodes.next(children);\n            }\n            return;\n        }\n        // Ignore invalid elements\n        if (partialNode.key == null) return;\n        // Create full node\n        let builder = this;\n        let node = {\n            type: partialNode.type,\n            props: partialNode.props,\n            key: partialNode.key,\n            parentKey: parentNode ? parentNode.key : null,\n            value: partialNode.value,\n            level: parentNode ? parentNode.level + 1 : 0,\n            index: partialNode.index,\n            rendered: partialNode.rendered,\n            textValue: partialNode.textValue,\n            'aria-label': partialNode['aria-label'],\n            wrapper: partialNode.wrapper,\n            shouldInvalidate: partialNode.shouldInvalidate,\n            hasChildNodes: partialNode.hasChildNodes,\n            childNodes: $eb2240fc39a57fa5$var$iterable(function*() {\n                if (!partialNode.hasChildNodes) return;\n                let index = 0;\n                for (let child of partialNode.childNodes()){\n                    // Ensure child keys are globally unique by prepending the parent node's key\n                    if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.\n                    // Currently this line will have issues when a parent has a key `a` and a child with key `bc`\n                    // but another parent has key `ab` and its child has a key `c`. The combined keys would result in both\n                    // children having a key of `abc`.\n                    child.key = `${node.key}${child.key}`;\n                    child.index = index;\n                    let nodes = builder.getFullNode(child, builder.getChildState(state, child), node.key, node);\n                    for (let node of nodes){\n                        index++;\n                        yield node;\n                    }\n                }\n            })\n        };\n        yield node;\n    }\n    constructor(){\n        this.cache = new WeakMap();\n    }\n}\n// Wraps an iterator function as an iterable object, and caches the results.\nfunction $eb2240fc39a57fa5$var$iterable(iterator) {\n    let cache = [];\n    let iterable = null;\n    return {\n        *[Symbol.iterator] () {\n            for (let item of cache)yield item;\n            if (!iterable) iterable = iterator();\n            for (let item of iterable){\n                cache.push(item);\n                yield item;\n            }\n        }\n    };\n}\nfunction $eb2240fc39a57fa5$var$compose(outer, inner) {\n    if (outer && inner) return (element)=>outer(inner(element));\n    if (outer) return outer;\n    if (inner) return inner;\n}\nfunction $eb2240fc39a57fa5$var$capitalize(str) {\n    return str[0].toUpperCase() + str.slice(1);\n}\n\n\nexport {$eb2240fc39a57fa5$export$bf788dd355e3a401 as CollectionBuilder};\n//# sourceMappingURL=CollectionBuilder.module.js.map\n","import {CollectionBuilder as $eb2240fc39a57fa5$export$bf788dd355e3a401} from \"./CollectionBuilder.mjs\";\nimport {useMemo as $lbNth$useMemo} 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\nfunction $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {\n    let builder = (0, $lbNth$useMemo)(()=>new (0, $eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);\n    let { children: children, items: items, collection: collection } = props;\n    let result = (0, $lbNth$useMemo)(()=>{\n        if (collection) return collection;\n        let nodes = builder.build({\n            children: children,\n            items: items\n        }, context);\n        return factory(nodes);\n    }, [\n        builder,\n        children,\n        items,\n        collection,\n        context,\n        factory\n    ]);\n    return result;\n}\n\n\nexport {$7613b1592d41b092$export$6cd28814d92fa9c9 as useCollection};\n//# sourceMappingURL=useCollection.module.js.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 $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {\n    // New API: call collection.getChildren with the node key.\n    if (typeof collection.getChildren === 'function') return collection.getChildren(node.key);\n    // Old API: access childNodes directly.\n    return node.childNodes;\n}\nfunction $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {\n    return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);\n}\nfunction $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {\n    if (index < 0) return undefined;\n    let i = 0;\n    for (let item of iterable){\n        if (i === index) return item;\n        i++;\n    }\n}\nfunction $c5a24bc478652b5f$export$7475b2c64539e4cf(iterable) {\n    let lastItem = undefined;\n    for (let value of iterable)lastItem = value;\n    return lastItem;\n}\nfunction $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {\n    // If the two nodes have the same parent, compare their indices.\n    if (a.parentKey === b.parentKey) return a.index - b.index;\n    // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.\n    // Include the base nodes in case we are comparing nodes of different levels so that we can compare the higher node to the lower level node's\n    // ancestor of the same level\n    let aAncestors = [\n        ...$c5a24bc478652b5f$var$getAncestors(collection, a),\n        a\n    ];\n    let bAncestors = [\n        ...$c5a24bc478652b5f$var$getAncestors(collection, b),\n        b\n    ];\n    let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i)=>a !== bAncestors[i]);\n    if (firstNonMatchingAncestor !== -1) {\n        // Compare the indices of two children within the common ancestor.\n        a = aAncestors[firstNonMatchingAncestor];\n        b = bAncestors[firstNonMatchingAncestor];\n        return a.index - b.index;\n    }\n    // If there isn't a non matching ancestor, we might be in a case where one of the nodes is the ancestor of the other.\n    if (aAncestors.findIndex((node)=>node === b) >= 0) return 1;\n    else if (bAncestors.findIndex((node)=>node === a) >= 0) return -1;\n    // 🤷\n    return -1;\n}\nfunction $c5a24bc478652b5f$var$getAncestors(collection, node) {\n    let parents = [];\n    while((node === null || node === void 0 ? void 0 : node.parentKey) != null){\n        node = collection.getItem(node.parentKey);\n        parents.unshift(node);\n    }\n    return parents;\n}\n\n\nexport {$c5a24bc478652b5f$export$1005530eda016c13 as getChildNodes, $c5a24bc478652b5f$export$fbdeaa6a76694f71 as getFirstItem, $c5a24bc478652b5f$export$5f3398f8733f90e2 as getNthItem, $c5a24bc478652b5f$export$7475b2c64539e4cf as getLastItem, $c5a24bc478652b5f$export$8c434b3a7a4dad6 as compareNodeOrder};\n//# sourceMappingURL=getChildNodes.module.js.map\n","import {getChildNodes as $c5a24bc478652b5f$export$1005530eda016c13} from \"./getChildNodes.mjs\";\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 $453cc9f0df89c0a5$var$cache = new WeakMap();\nfunction $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {\n    let count = $453cc9f0df89c0a5$var$cache.get(collection);\n    if (count != null) return count;\n    count = 0;\n    let countItems = (items)=>{\n        for (let item of items)if (item.type === 'section') countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));\n        else count++;\n    };\n    countItems(collection);\n    $453cc9f0df89c0a5$var$cache.set(collection, count);\n    return count;\n}\n\n\nexport {$453cc9f0df89c0a5$export$77d5aafae4e095b2 as getItemCount};\n//# sourceMappingURL=getItemCount.module.js.map\n","import {getItemId as $b1f0cad8af73213b$export$9145995848b05025, listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from \"./utils.mjs\";\nimport {useSlotId as $fcwmx$useSlotId, isMac as $fcwmx$isMac, isWebKit as $fcwmx$isWebKit, chain as $fcwmx$chain, filterDOMProps as $fcwmx$filterDOMProps, useLinkProps as $fcwmx$useLinkProps, mergeProps as $fcwmx$mergeProps} from \"@react-aria/utils\";\nimport {getItemCount as $fcwmx$getItemCount} from \"@react-stately/collections\";\nimport {useHover as $fcwmx$useHover, isFocusVisible as $fcwmx$isFocusVisible} from \"@react-aria/interactions\";\nimport {useSelectableItem as $fcwmx$useSelectableItem} from \"@react-aria/selection\";\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\nfunction $293f70390ea03370$export$497855f14858aa34(props, state, ref) {\n    var _item_props, _item_props1;\n    let { key: key } = props;\n    let data = (0, $b1f0cad8af73213b$export$3585ede4d035bf14).get(state);\n    var _props_isDisabled;\n    let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);\n    var _props_isSelected;\n    let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);\n    var _props_shouldSelectOnPressUp;\n    let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;\n    var _props_shouldFocusOnHover;\n    let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;\n    var _props_shouldUseVirtualFocus;\n    let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;\n    var _props_isVirtualized;\n    let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;\n    let labelId = (0, $fcwmx$useSlotId)();\n    let descriptionId = (0, $fcwmx$useSlotId)();\n    let optionProps = {\n        role: 'option',\n        'aria-disabled': isDisabled || undefined,\n        'aria-selected': state.selectionManager.selectionMode !== 'none' ? isSelected : undefined\n    };\n    // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply \"text\".\n    // We should not map slots to the label and description on Safari and instead just have VoiceOver read the textContent.\n    // https://bugs.webkit.org/show_bug.cgi?id=209279\n    if (!((0, $fcwmx$isMac)() && (0, $fcwmx$isWebKit)())) {\n        optionProps['aria-label'] = props['aria-label'];\n        optionProps['aria-labelledby'] = labelId;\n        optionProps['aria-describedby'] = descriptionId;\n    }\n    let item = state.collection.getItem(key);\n    if (isVirtualized) {\n        let index = Number(item === null || item === void 0 ? void 0 : item.index);\n        optionProps['aria-posinset'] = Number.isNaN(index) ? undefined : index + 1;\n        optionProps['aria-setsize'] = (0, $fcwmx$getItemCount)(state.collection);\n    }\n    let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? ()=>{\n        var _data_onAction;\n        return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);\n    } : undefined;\n    let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = (0, $fcwmx$useSelectableItem)({\n        selectionManager: state.selectionManager,\n        key: key,\n        ref: ref,\n        shouldSelectOnPressUp: shouldSelectOnPressUp,\n        allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,\n        isVirtualized: isVirtualized,\n        shouldUseVirtualFocus: shouldUseVirtualFocus,\n        isDisabled: isDisabled,\n        onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? (0, $fcwmx$chain)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined,\n        linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior\n    });\n    let { hoverProps: hoverProps } = (0, $fcwmx$useHover)({\n        isDisabled: isDisabled || !shouldFocusOnHover,\n        onHoverStart () {\n            if (!(0, $fcwmx$isFocusVisible)()) {\n                state.selectionManager.setFocused(true);\n                state.selectionManager.setFocusedKey(key);\n            }\n        }\n    });\n    let domProps = (0, $fcwmx$filterDOMProps)(item === null || item === void 0 ? void 0 : item.props);\n    delete domProps.id;\n    let linkProps = (0, $fcwmx$useLinkProps)(item === null || item === void 0 ? void 0 : item.props);\n    return {\n        optionProps: {\n            ...optionProps,\n            ...(0, $fcwmx$mergeProps)(domProps, itemProps, hoverProps, linkProps),\n            id: (0, $b1f0cad8af73213b$export$9145995848b05025)(state, key)\n        },\n        labelProps: {\n            id: labelId\n        },\n        descriptionProps: {\n            id: descriptionId\n        },\n        isFocused: isFocused,\n        isFocusVisible: isFocused && (0, $fcwmx$isFocusVisible)(),\n        isSelected: isSelected,\n        isDisabled: isDisabled,\n        isPressed: isPressed,\n        allowsSelection: allowsSelection,\n        hasAction: hasAction\n    };\n}\n\n\nexport {$293f70390ea03370$export$497855f14858aa34 as useOption};\n//# sourceMappingURL=useOption.module.js.map\n","import {useId as $8pE4M$useId} from \"@react-aria/utils\";\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 $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {\n    let { heading: heading, 'aria-label': ariaLabel } = props;\n    let headingId = (0, $8pE4M$useId)();\n    return {\n        itemProps: {\n            role: 'presentation'\n        },\n        headingProps: heading ? {\n            // Techincally, listbox cannot contain headings according to ARIA.\n            // We hide the heading from assistive technology, using role=\"presentation\",\n            // and only use it as a visual label for the nested group.\n            id: headingId,\n            role: 'presentation'\n        } : {},\n        groupProps: {\n            role: 'group',\n            'aria-label': ariaLabel,\n            'aria-labelledby': heading ? headingId : undefined\n        }\n    };\n}\n\n\nexport {$af383d3bef1cfdc9$export$c3f9f39876e4bc7 as useListBoxSection};\n//# sourceMappingURL=useListBoxSection.module.js.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 */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n    *[Symbol.iterator]() {\n        yield* this.iterable;\n    }\n    get size() {\n        return this.keyMap.size;\n    }\n    getKeys() {\n        return this.keyMap.keys();\n    }\n    getKeyBefore(key) {\n        let node = this.keyMap.get(key);\n        return node ? node.prevKey : null;\n    }\n    getKeyAfter(key) {\n        let node = this.keyMap.get(key);\n        return node ? node.nextKey : null;\n    }\n    getFirstKey() {\n        return this.firstKey;\n    }\n    getLastKey() {\n        return this.lastKey;\n    }\n    getItem(key) {\n        return this.keyMap.get(key);\n    }\n    at(idx) {\n        const keys = [\n            ...this.getKeys()\n        ];\n        return this.getItem(keys[idx]);\n    }\n    getChildren(key) {\n        let node = this.keyMap.get(key);\n        return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n    }\n    constructor(nodes){\n        this.keyMap = new Map();\n        this.iterable = nodes;\n        let visit = (node)=>{\n            this.keyMap.set(node.key, node);\n            if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n        };\n        for (let node of nodes)visit(node);\n        let last;\n        let index = 0;\n        for (let [key, node] of this.keyMap){\n            if (last) {\n                last.nextKey = key;\n                node.prevKey = last.key;\n            } else {\n                this.firstKey = key;\n                node.prevKey = undefined;\n            }\n            if (node.type === 'item') node.index = index++;\n            last = node;\n            // Set nextKey as undefined since this might be the last node\n            // If it isn't the last node, last.nextKey will properly set at start of new loop\n            last.nextKey = undefined;\n        }\n        this.lastKey = last === null || last === void 0 ? void 0 : last.key;\n    }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n//# sourceMappingURL=ListCollection.module.js.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 */ class $e40ea825a81a3709$export$52baac22726c72bf extends Set {\n    constructor(keys, anchorKey, currentKey){\n        super(keys);\n        if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {\n            this.anchorKey = anchorKey || keys.anchorKey;\n            this.currentKey = currentKey || keys.currentKey;\n        } else {\n            this.anchorKey = anchorKey;\n            this.currentKey = currentKey;\n        }\n    }\n}\n\n\nexport {$e40ea825a81a3709$export$52baac22726c72bf as Selection};\n//# sourceMappingURL=Selection.module.js.map\n","import {Selection as $e40ea825a81a3709$export$52baac22726c72bf} from \"./Selection.mjs\";\nimport {useControlledState as $6tM1y$useControlledState} from \"@react-stately/utils\";\nimport {useRef as $6tM1y$useRef, useState as $6tM1y$useState, useMemo as $6tM1y$useMemo, useEffect as $6tM1y$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 */ \n\n\nfunction $7af3f5b51489e0b5$var$equalSets(setA, setB) {\n    if (setA.size !== setB.size) return false;\n    for (let item of setA){\n        if (!setB.has(item)) return false;\n    }\n    return true;\n}\nfunction $7af3f5b51489e0b5$export$253fe78d46329472(props) {\n    let { selectionMode: selectionMode = 'none', disallowEmptySelection: disallowEmptySelection, allowDuplicateSelectionEvents: allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = 'toggle', disabledBehavior: disabledBehavior = 'all' } = props;\n    // We want synchronous updates to `isFocused` and `focusedKey` after their setters are called.\n    // But we also need to trigger a react re-render. So, we have both a ref (sync) and state (async).\n    let isFocusedRef = (0, $6tM1y$useRef)(false);\n    let [, setFocused] = (0, $6tM1y$useState)(false);\n    let focusedKeyRef = (0, $6tM1y$useRef)(null);\n    let childFocusStrategyRef = (0, $6tM1y$useRef)(null);\n    let [, setFocusedKey] = (0, $6tM1y$useState)(null);\n    let selectedKeysProp = (0, $6tM1y$useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [\n        props.selectedKeys\n    ]);\n    let defaultSelectedKeys = (0, $6tM1y$useMemo)(()=>$7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new (0, $e40ea825a81a3709$export$52baac22726c72bf)()), [\n        props.defaultSelectedKeys\n    ]);\n    let [selectedKeys, setSelectedKeys] = (0, $6tM1y$useControlledState)(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);\n    let disabledKeysProp = (0, $6tM1y$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n        props.disabledKeys\n    ]);\n    let [selectionBehavior, setSelectionBehavior] = (0, $6tM1y$useState)(selectionBehaviorProp);\n    // If the selectionBehavior prop is set to replace, but the current state is toggle (e.g. due to long press\n    // to enter selection mode on touch), and the selection becomes empty, reset the selection behavior.\n    if (selectionBehaviorProp === 'replace' && selectionBehavior === 'toggle' && typeof selectedKeys === 'object' && selectedKeys.size === 0) setSelectionBehavior('replace');\n    // If the selectionBehavior prop changes, update the state as well.\n    let lastSelectionBehavior = (0, $6tM1y$useRef)(selectionBehaviorProp);\n    (0, $6tM1y$useEffect)(()=>{\n        if (selectionBehaviorProp !== lastSelectionBehavior.current) {\n            setSelectionBehavior(selectionBehaviorProp);\n            lastSelectionBehavior.current = selectionBehaviorProp;\n        }\n    }, [\n        selectionBehaviorProp\n    ]);\n    return {\n        selectionMode: selectionMode,\n        disallowEmptySelection: disallowEmptySelection,\n        selectionBehavior: selectionBehavior,\n        setSelectionBehavior: setSelectionBehavior,\n        get isFocused () {\n            return isFocusedRef.current;\n        },\n        setFocused (f) {\n            isFocusedRef.current = f;\n            setFocused(f);\n        },\n        get focusedKey () {\n            return focusedKeyRef.current;\n        },\n        get childFocusStrategy () {\n            return childFocusStrategyRef.current;\n        },\n        setFocusedKey (k, childFocusStrategy = 'first') {\n            focusedKeyRef.current = k;\n            childFocusStrategyRef.current = childFocusStrategy;\n            setFocusedKey(k);\n        },\n        selectedKeys: selectedKeys,\n        setSelectedKeys (keys) {\n            if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);\n        },\n        disabledKeys: disabledKeysProp,\n        disabledBehavior: disabledBehavior\n    };\n}\nfunction $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {\n    if (!selection) return defaultValue;\n    return selection === 'all' ? 'all' : new (0, $e40ea825a81a3709$export$52baac22726c72bf)(selection);\n}\n\n\nexport {$7af3f5b51489e0b5$export$253fe78d46329472 as useMultipleSelectionState};\n//# sourceMappingURL=useMultipleSelectionState.module.js.map\n","import {Selection as $e40ea825a81a3709$export$52baac22726c72bf} from \"./Selection.mjs\";\nimport {compareNodeOrder as $jkhUT$compareNodeOrder, getFirstItem as $jkhUT$getFirstItem, getChildNodes as $jkhUT$getChildNodes} from \"@react-stately/collections\";\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\nclass $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {\n    /**\n   * The type of selection that is allowed in the collection.\n   */ get selectionMode() {\n        return this.state.selectionMode;\n    }\n    /**\n   * Whether the collection allows empty selection.\n   */ get disallowEmptySelection() {\n        return this.state.disallowEmptySelection;\n    }\n    /**\n   * The selection behavior for the collection.\n   */ get selectionBehavior() {\n        return this.state.selectionBehavior;\n    }\n    /**\n   * Sets the selection behavior for the collection.\n   */ setSelectionBehavior(selectionBehavior) {\n        this.state.setSelectionBehavior(selectionBehavior);\n    }\n    /**\n   * Whether the collection is currently focused.\n   */ get isFocused() {\n        return this.state.isFocused;\n    }\n    /**\n   * Sets whether the collection is focused.\n   */ setFocused(isFocused) {\n        this.state.setFocused(isFocused);\n    }\n    /**\n   * The current focused key in the collection.\n   */ get focusedKey() {\n        return this.state.focusedKey;\n    }\n    /** Whether the first or last child of the focused key should receive focus. */ get childFocusStrategy() {\n        return this.state.childFocusStrategy;\n    }\n    /**\n   * Sets the focused key.\n   */ setFocusedKey(key, childFocusStrategy) {\n        if (key == null || this.collection.getItem(key)) this.state.setFocusedKey(key, childFocusStrategy);\n    }\n    /**\n   * The currently selected keys in the collection.\n   */ get selectedKeys() {\n        return this.state.selectedKeys === 'all' ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;\n    }\n    /**\n   * The raw selection value for the collection.\n   * Either 'all' for select all, or a set of keys.\n   */ get rawSelection() {\n        return this.state.selectedKeys;\n    }\n    /**\n   * Returns whether a key is selected.\n   */ isSelected(key) {\n        if (this.state.selectionMode === 'none') return false;\n        key = this.getKey(key);\n        return this.state.selectedKeys === 'all' ? this.canSelectItem(key) : this.state.selectedKeys.has(key);\n    }\n    /**\n   * Whether the selection is empty.\n   */ get isEmpty() {\n        return this.state.selectedKeys !== 'all' && this.state.selectedKeys.size === 0;\n    }\n    /**\n   * Whether all items in the collection are selected.\n   */ get isSelectAll() {\n        if (this.isEmpty) return false;\n        if (this.state.selectedKeys === 'all') return true;\n        if (this._isSelectAll != null) return this._isSelectAll;\n        let allKeys = this.getSelectAllKeys();\n        let selectedKeys = this.state.selectedKeys;\n        this._isSelectAll = allKeys.every((k)=>selectedKeys.has(k));\n        return this._isSelectAll;\n    }\n    get firstSelectedKey() {\n        let first = null;\n        for (let key of this.state.selectedKeys){\n            let item = this.collection.getItem(key);\n            if (!first || item && (0, $jkhUT$compareNodeOrder)(this.collection, item, first) < 0) first = item;\n        }\n        return first === null || first === void 0 ? void 0 : first.key;\n    }\n    get lastSelectedKey() {\n        let last = null;\n        for (let key of this.state.selectedKeys){\n            let item = this.collection.getItem(key);\n            if (!last || item && (0, $jkhUT$compareNodeOrder)(this.collection, item, last) > 0) last = item;\n        }\n        return last === null || last === void 0 ? void 0 : last.key;\n    }\n    get disabledKeys() {\n        return this.state.disabledKeys;\n    }\n    get disabledBehavior() {\n        return this.state.disabledBehavior;\n    }\n    /**\n   * Extends the selection to the given key.\n   */ extendSelection(toKey) {\n        if (this.selectionMode === 'none') return;\n        if (this.selectionMode === 'single') {\n            this.replaceSelection(toKey);\n            return;\n        }\n        toKey = this.getKey(toKey);\n        let selection;\n        // Only select the one key if coming from a select all.\n        if (this.state.selectedKeys === 'all') selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)([\n            toKey\n        ], toKey, toKey);\n        else {\n            let selectedKeys = this.state.selectedKeys;\n            let anchorKey = selectedKeys.anchorKey || toKey;\n            selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)(selectedKeys, anchorKey, toKey);\n            for (let key of this.getKeyRange(anchorKey, selectedKeys.currentKey || toKey))selection.delete(key);\n            for (let key of this.getKeyRange(toKey, anchorKey))if (this.canSelectItem(key)) selection.add(key);\n        }\n        this.state.setSelectedKeys(selection);\n    }\n    getKeyRange(from, to) {\n        let fromItem = this.collection.getItem(from);\n        let toItem = this.collection.getItem(to);\n        if (fromItem && toItem) {\n            if ((0, $jkhUT$compareNodeOrder)(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);\n            return this.getKeyRangeInternal(to, from);\n        }\n        return [];\n    }\n    getKeyRangeInternal(from, to) {\n        let keys = [];\n        let key = from;\n        while(key){\n            let item = this.collection.getItem(key);\n            if (item && item.type === 'item' || item.type === 'cell' && this.allowsCellSelection) keys.push(key);\n            if (key === to) return keys;\n            key = this.collection.getKeyAfter(key);\n        }\n        return [];\n    }\n    getKey(key) {\n        let item = this.collection.getItem(key);\n        if (!item) // ¯\\_(ツ)_/¯\n        return key;\n        // If cell selection is allowed, just return the key.\n        if (item.type === 'cell' && this.allowsCellSelection) return key;\n        // Find a parent item to select\n        while(item.type !== 'item' && item.parentKey != null)item = this.collection.getItem(item.parentKey);\n        if (!item || item.type !== 'item') return null;\n        return item.key;\n    }\n    /**\n   * Toggles whether the given key is selected.\n   */ toggleSelection(key) {\n        if (this.selectionMode === 'none') return;\n        if (this.selectionMode === 'single' && !this.isSelected(key)) {\n            this.replaceSelection(key);\n            return;\n        }\n        key = this.getKey(key);\n        if (key == null) return;\n        let keys = new (0, $e40ea825a81a3709$export$52baac22726c72bf)(this.state.selectedKeys === 'all' ? this.getSelectAllKeys() : this.state.selectedKeys);\n        if (keys.has(key)) keys.delete(key);\n        else if (this.canSelectItem(key)) {\n            keys.add(key);\n            keys.anchorKey = key;\n            keys.currentKey = key;\n        }\n        if (this.disallowEmptySelection && keys.size === 0) return;\n        this.state.setSelectedKeys(keys);\n    }\n    /**\n   * Replaces the selection with only the given key.\n   */ replaceSelection(key) {\n        if (this.selectionMode === 'none') return;\n        key = this.getKey(key);\n        if (key == null) return;\n        let selection = this.canSelectItem(key) ? new (0, $e40ea825a81a3709$export$52baac22726c72bf)([\n            key\n        ], key, key) : new (0, $e40ea825a81a3709$export$52baac22726c72bf)();\n        this.state.setSelectedKeys(selection);\n    }\n    /**\n   * Replaces the selection with the given keys.\n   */ setSelectedKeys(keys) {\n        if (this.selectionMode === 'none') return;\n        let selection = new (0, $e40ea825a81a3709$export$52baac22726c72bf)();\n        for (let key of keys){\n            key = this.getKey(key);\n            if (key != null) {\n                selection.add(key);\n                if (this.selectionMode === 'single') break;\n            }\n        }\n        this.state.setSelectedKeys(selection);\n    }\n    getSelectAllKeys() {\n        let keys = [];\n        let addKeys = (key)=>{\n            while(key != null){\n                if (this.canSelectItem(key)) {\n                    let item = this.collection.getItem(key);\n                    if (item.type === 'item') keys.push(key);\n                    // Add child keys. If cell selection is allowed, then include item children too.\n                    if (item.hasChildNodes && (this.allowsCellSelection || item.type !== 'item')) addKeys((0, $jkhUT$getFirstItem)((0, $jkhUT$getChildNodes)(item, this.collection)).key);\n                }\n                key = this.collection.getKeyAfter(key);\n            }\n        };\n        addKeys(this.collection.getFirstKey());\n        return keys;\n    }\n    /**\n   * Selects all items in the collection.\n   */ selectAll() {\n        if (!this.isSelectAll && this.selectionMode === 'multiple') this.state.setSelectedKeys('all');\n    }\n    /**\n   * Removes all keys from the selection.\n   */ clearSelection() {\n        if (!this.disallowEmptySelection && (this.state.selectedKeys === 'all' || this.state.selectedKeys.size > 0)) this.state.setSelectedKeys(new (0, $e40ea825a81a3709$export$52baac22726c72bf)());\n    }\n    /**\n   * Toggles between select all and an empty selection.\n   */ toggleSelectAll() {\n        if (this.isSelectAll) this.clearSelection();\n        else this.selectAll();\n    }\n    select(key, e) {\n        if (this.selectionMode === 'none') return;\n        if (this.selectionMode === 'single') {\n            if (this.isSelected(key) && !this.disallowEmptySelection) this.toggleSelection(key);\n            else this.replaceSelection(key);\n        } else if (this.selectionBehavior === 'toggle' || e && (e.pointerType === 'touch' || e.pointerType === 'virtual')) // if touch or virtual (VO) then we just want to toggle, otherwise it's impossible to multi select because they don't have modifier keys\n        this.toggleSelection(key);\n        else this.replaceSelection(key);\n    }\n    /**\n   * Returns whether the current selection is equal to the given selection.\n   */ isSelectionEqual(selection) {\n        if (selection === this.state.selectedKeys) return true;\n        // Check if the set of keys match.\n        let selectedKeys = this.selectedKeys;\n        if (selection.size !== selectedKeys.size) return false;\n        for (let key of selection){\n            if (!selectedKeys.has(key)) return false;\n        }\n        for (let key of selectedKeys){\n            if (!selection.has(key)) return false;\n        }\n        return true;\n    }\n    canSelectItem(key) {\n        var _item_props;\n        if (this.state.selectionMode === 'none' || this.state.disabledKeys.has(key)) return false;\n        let item = this.collection.getItem(key);\n        if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;\n        return true;\n    }\n    isDisabled(key) {\n        var _this_collection_getItem_props, _this_collection_getItem;\n        return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));\n    }\n    isLink(key) {\n        var _this_collection_getItem_props, _this_collection_getItem;\n        return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);\n    }\n    getItemProps(key) {\n        var _this_collection_getItem;\n        return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;\n    }\n    constructor(collection, state, options){\n        this.collection = collection;\n        this.state = state;\n        var _options_allowsCellSelection;\n        this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;\n        this._isSelectAll = null;\n    }\n}\n\n\nexport {$d496c0a20b6e58ec$export$6c8a5aaad13c9852 as SelectionManager};\n//# sourceMappingURL=SelectionManager.module.js.map\n","import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from \"./ListCollection.mjs\";\nimport {useMultipleSelectionState as $d5vlZ$useMultipleSelectionState, SelectionManager as $d5vlZ$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $d5vlZ$useMemo, useCallback as $d5vlZ$useCallback, useRef as $d5vlZ$useRef, useEffect as $d5vlZ$useEffect} from \"react\";\nimport {useCollection as $d5vlZ$useCollection} from \"@react-stately/collections\";\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\nfunction $e72dd72e1c76a225$export$2f645645f7bca764(props) {\n    let { filter: filter } = props;\n    let selectionState = (0, $d5vlZ$useMultipleSelectionState)(props);\n    let disabledKeys = (0, $d5vlZ$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n        props.disabledKeys\n    ]);\n    let factory = (0, $d5vlZ$useCallback)((nodes)=>filter ? new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [\n        filter\n    ]);\n    let context = (0, $d5vlZ$useMemo)(()=>({\n            suppressTextValueWarning: props.suppressTextValueWarning\n        }), [\n        props.suppressTextValueWarning\n    ]);\n    let collection = (0, $d5vlZ$useCollection)(props, factory, context);\n    let selectionManager = (0, $d5vlZ$useMemo)(()=>new (0, $d5vlZ$SelectionManager)(collection, selectionState), [\n        collection,\n        selectionState\n    ]);\n    // Reset focused key if that item is deleted from the collection.\n    const cachedCollection = (0, $d5vlZ$useRef)(null);\n    (0, $d5vlZ$useEffect)(()=>{\n        if (selectionState.focusedKey != null && !collection.getItem(selectionState.focusedKey)) {\n            const startItem = cachedCollection.current.getItem(selectionState.focusedKey);\n            const cachedItemNodes = [\n                ...cachedCollection.current.getKeys()\n            ].map((key)=>{\n                const itemNode = cachedCollection.current.getItem(key);\n                return itemNode.type === 'item' ? itemNode : null;\n            }).filter((node)=>node !== null);\n            const itemNodes = [\n                ...collection.getKeys()\n            ].map((key)=>{\n                const itemNode = collection.getItem(key);\n                return itemNode.type === 'item' ? itemNode : null;\n            }).filter((node)=>node !== null);\n            const diff = cachedItemNodes.length - itemNodes.length;\n            let index = Math.min(diff > 1 ? Math.max(startItem.index - diff + 1, 0) : startItem.index, itemNodes.length - 1);\n            let newNode;\n            let isReverseSearching = false;\n            while(index >= 0){\n                if (!selectionManager.isDisabled(itemNodes[index].key)) {\n                    newNode = itemNodes[index];\n                    break;\n                }\n                // Find next, not disabled item.\n                if (index < itemNodes.length - 1 && !isReverseSearching) index++;\n                else {\n                    isReverseSearching = true;\n                    if (index > startItem.index) index = startItem.index;\n                    index--;\n                }\n            }\n            selectionState.setFocusedKey(newNode ? newNode.key : null);\n        }\n        cachedCollection.current = collection;\n    }, [\n        collection,\n        selectionManager,\n        selectionState,\n        selectionState.focusedKey\n    ]);\n    return {\n        collection: collection,\n        disabledKeys: disabledKeys,\n        selectionManager: selectionManager\n    };\n}\n\n\nexport {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState};\n//# sourceMappingURL=useListState.module.js.map\n","import $f3JOg$react, {createContext as $f3JOg$createContext, useContext as $f3JOg$useContext, forwardRef as $f3JOg$forwardRef, useCallback as $f3JOg$useCallback, useMemo as $f3JOg$useMemo} from \"react\";\n\n/*\n * Copyright 2024 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 $612b8eb6cb90e02d$export$d188a835a7bc5783 = /*#__PURE__*/ (0, $f3JOg$createContext)({});\nconst $612b8eb6cb90e02d$export$f55761759794cf55 = /*#__PURE__*/ (0, $f3JOg$createContext)(null);\nfunction $612b8eb6cb90e02d$var$DropIndicator(props, ref) {\n    let { render: render } = (0, $f3JOg$useContext)($612b8eb6cb90e02d$export$f55761759794cf55);\n    return /*#__PURE__*/ (0, $f3JOg$react).createElement((0, $f3JOg$react).Fragment, null, render(props, ref));\n}\n/**\n * A DropIndicator is rendered between items in a collection to indicate where dropped data will be inserted.\n */ const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /*#__PURE__*/ (0, $f3JOg$forwardRef)($612b8eb6cb90e02d$var$DropIndicator);\nfunction $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {\n    var _dragAndDropHooks_isVirtualDragging;\n    let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;\n    let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);\n    let fn = (0, $f3JOg$useCallback)((target)=>{\n        // Only show drop indicators when virtual dragging or this is the current drop target.\n        if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /*#__PURE__*/ (0, $f3JOg$react).createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {\n            target: target\n        });\n    // We invalidate whenever the target changes.\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    }, [\n        dropState === null || dropState === void 0 ? void 0 : dropState.target,\n        isVirtualDragging,\n        renderDropIndicator\n    ]);\n    return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : undefined;\n}\nfunction $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {\n    var _dragAndDropHooks_isVirtualDragging, _dropState_target;\n    // Persist the focused key and the drop target key.\n    let focusedKey = selectionManager.focusedKey;\n    let dropTargetKey = null;\n    if ((dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === void 0 ? void 0 : (_dropState_target = dropState.target) === null || _dropState_target === void 0 ? void 0 : _dropState_target.type) === 'item') {\n        dropTargetKey = dropState.target.key;\n        var _dropState_collection_getKeyAfter;\n        if (dropState.target.dropPosition === 'after') // Normalize to the \"before\" drop position since we only render those to the DOM.\n        dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== void 0 ? _dropState_collection_getKeyAfter : dropTargetKey;\n    }\n    return (0, $f3JOg$useMemo)(()=>{\n        return new Set([\n            focusedKey,\n            dropTargetKey\n        ].filter((k)=>k !== null));\n    }, [\n        focusedKey,\n        dropTargetKey\n    ]);\n}\n\n\nexport {$612b8eb6cb90e02d$export$d188a835a7bc5783 as DragAndDropContext, $612b8eb6cb90e02d$export$f55761759794cf55 as DropIndicatorContext, $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 as DropIndicator, $612b8eb6cb90e02d$export$971707d8a129a1f7 as useRenderDropIndicator, $612b8eb6cb90e02d$export$d1e8e3fbb7461f6 as useDndPersistedKeys};\n//# sourceMappingURL=DragAndDrop.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {createLeafComponent as $i47tY$createLeafComponent} from \"@react-aria/collections\";\nimport $i47tY$react, {createContext as $i47tY$createContext} from \"react\";\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 */ \n\n\nconst $72a5793c14baf454$export$e0e4026c12a8bdbb = /*#__PURE__*/ (0, $i47tY$createContext)({});\nconst $72a5793c14baf454$export$8b251419efc915eb = /*#__PURE__*/ (0, $i47tY$createLeafComponent)('header', function Header(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);\n    return /*#__PURE__*/ (0, $i47tY$react).createElement(\"header\", {\n        className: \"react-aria-Header\",\n        ...props,\n        ref: ref\n    }, props.children);\n});\n\n\nexport {$72a5793c14baf454$export$e0e4026c12a8bdbb as HeaderContext, $72a5793c14baf454$export$8b251419efc915eb as Header};\n//# sourceMappingURL=Header.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415} from \"./utils.mjs\";\nimport {useSeparator as $i9JCE$useSeparator} from \"react-aria\";\nimport {createLeafComponent as $i9JCE$createLeafComponent} from \"@react-aria/collections\";\nimport {filterDOMProps as $i9JCE$filterDOMProps} from \"@react-aria/utils\";\nimport $i9JCE$react, {createContext as $i9JCE$createContext} from \"react\";\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 */ \n\n\n\n\nconst $431f98aba6844401$export$6615d83f6de245ce = /*#__PURE__*/ (0, $i9JCE$createContext)({});\nconst $431f98aba6844401$export$1ff3c3f08ae963c0 = /*#__PURE__*/ (0, $i9JCE$createLeafComponent)('separator', function Separator(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $431f98aba6844401$export$6615d83f6de245ce);\n    let { elementType: elementType, orientation: orientation, style: style, className: className } = props;\n    let Element = elementType || 'hr';\n    if (Element === 'hr' && orientation === 'vertical') Element = 'div';\n    let { separatorProps: separatorProps } = (0, $i9JCE$useSeparator)({\n        elementType: elementType,\n        orientation: orientation\n    });\n    return /*#__PURE__*/ (0, $i9JCE$react).createElement(Element, {\n        ...(0, $i9JCE$filterDOMProps)(props),\n        ...separatorProps,\n        style: style,\n        className: className !== null && className !== void 0 ? className : 'react-aria-Separator',\n        ref: ref,\n        slot: props.slot || undefined\n    });\n});\n\n\nexport {$431f98aba6844401$export$6615d83f6de245ce as SeparatorContext, $431f98aba6844401$export$1ff3c3f08ae963c0 as Separator};\n//# sourceMappingURL=Separator.module.js.map\n","import {CollectionRendererContext as $7135fc7d473fd974$export$4feb769f8ddf26c5, SectionContext as $7135fc7d473fd974$export$d40e14dec8b060a8} from \"./Collection.mjs\";\nimport {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8} from \"./utils.mjs\";\nimport {DragAndDropContext as $612b8eb6cb90e02d$export$d188a835a7bc5783, DropIndicatorContext as $612b8eb6cb90e02d$export$f55761759794cf55, useDndPersistedKeys as $612b8eb6cb90e02d$export$d1e8e3fbb7461f6, useRenderDropIndicator as $612b8eb6cb90e02d$export$971707d8a129a1f7} from \"./DragAndDrop.mjs\";\nimport {HeaderContext as $72a5793c14baf454$export$e0e4026c12a8bdbb} from \"./Header.mjs\";\nimport {SeparatorContext as $431f98aba6844401$export$6615d83f6de245ce} from \"./Separator.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useLocale as $e8Bmu$useLocale, useCollator as $e8Bmu$useCollator, ListKeyboardDelegate as $e8Bmu$ListKeyboardDelegate, useListBox as $e8Bmu$useListBox, useFocusRing as $e8Bmu$useFocusRing, FocusScope as $e8Bmu$FocusScope, mergeProps as $e8Bmu$mergeProps, useListBoxSection as $e8Bmu$useListBoxSection, useOption as $e8Bmu$useOption, useHover as $e8Bmu$useHover} from \"react-aria\";\nimport {CollectionBuilder as $e8Bmu$CollectionBuilder, Collection as $e8Bmu$Collection, createLeafComponent as $e8Bmu$createLeafComponent} from \"@react-aria/collections\";\nimport {useListState as $e8Bmu$useListState} from \"react-stately\";\nimport {filterDOMProps as $e8Bmu$filterDOMProps, useObjectRef as $e8Bmu$useObjectRef} from \"@react-aria/utils\";\nimport $e8Bmu$react, {createContext as $e8Bmu$createContext, useContext as $e8Bmu$useContext, forwardRef as $e8Bmu$forwardRef, useMemo as $e8Bmu$useMemo, useRef as $e8Bmu$useRef, useEffect as $e8Bmu$useEffect} from \"react\";\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 */ \n\n\n\n\n\n\n\n\n\n\nconst $eed445e0843c11d0$export$7ff8f37d2d81a48d = /*#__PURE__*/ (0, $e8Bmu$createContext)(null);\nconst $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /*#__PURE__*/ (0, $e8Bmu$createContext)(null);\nfunction $eed445e0843c11d0$var$ListBox(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);\n    let state = (0, $e8Bmu$useContext)($eed445e0843c11d0$export$7c5906fe4f1f2af2);\n    // The structure of ListBox is a bit strange because it needs to work inside other components like ComboBox and Select.\n    // Those components render two copies of their children so that the collection can be built even when the popover is closed.\n    // The first copy sends a collection document via context which we render the collection portal into.\n    // The second copy sends a ListState object via context which we use to render the ListBox without rebuilding the state.\n    // Otherwise, we have a standalone ListBox, so we need to create a collection and state ourselves.\n    if (state) return /*#__PURE__*/ (0, $e8Bmu$react).createElement($eed445e0843c11d0$var$ListBoxInner, {\n        state: state,\n        props: props,\n        listBoxRef: ref\n    });\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $e8Bmu$CollectionBuilder), {\n        content: /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $e8Bmu$Collection), props)\n    }, (collection)=>/*#__PURE__*/ (0, $e8Bmu$react).createElement($eed445e0843c11d0$var$StandaloneListBox, {\n            props: props,\n            listBoxRef: ref,\n            collection: collection\n        }));\n}\nfunction $eed445e0843c11d0$var$StandaloneListBox({ props: props, listBoxRef: listBoxRef, collection: collection }) {\n    props = {\n        ...props,\n        collection: collection,\n        children: null,\n        items: null\n    };\n    let state = (0, $e8Bmu$useListState)(props);\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement($eed445e0843c11d0$var$ListBoxInner, {\n        state: state,\n        props: props,\n        listBoxRef: listBoxRef\n    });\n}\n/**\n * A listbox displays a list of options and allows a user to select one or more of them.\n */ const $eed445e0843c11d0$export$41f133550aa26f48 = /*#__PURE__*/ (0, $e8Bmu$forwardRef)($eed445e0843c11d0$var$ListBox);\nfunction $eed445e0843c11d0$var$ListBoxInner({ state: state, props: props, listBoxRef: listBoxRef }) {\n    let { dragAndDropHooks: dragAndDropHooks, layout: layout = 'stack', orientation: orientation = 'vertical' } = props;\n    let { collection: collection, selectionManager: selectionManager } = state;\n    let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);\n    let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);\n    let { direction: direction } = (0, $e8Bmu$useLocale)();\n    let { disabledBehavior: disabledBehavior, disabledKeys: disabledKeys } = selectionManager;\n    let collator = (0, $e8Bmu$useCollator)({\n        usage: 'search',\n        sensitivity: 'base'\n    });\n    let { isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot: CollectionRoot } = (0, $e8Bmu$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));\n    let keyboardDelegate = (0, $e8Bmu$useMemo)(()=>props.keyboardDelegate || new (0, $e8Bmu$ListKeyboardDelegate)({\n            collection: collection,\n            collator: collator,\n            ref: listBoxRef,\n            disabledKeys: disabledKeys,\n            disabledBehavior: disabledBehavior,\n            layout: layout,\n            orientation: orientation,\n            direction: direction,\n            layoutDelegate: layoutDelegate\n        }), [\n        collection,\n        collator,\n        listBoxRef,\n        disabledBehavior,\n        disabledKeys,\n        orientation,\n        direction,\n        props.keyboardDelegate,\n        layout,\n        layoutDelegate\n    ]);\n    let { listBoxProps: listBoxProps } = (0, $e8Bmu$useListBox)({\n        ...props,\n        shouldSelectOnPressUp: isListDraggable || props.shouldSelectOnPressUp,\n        keyboardDelegate: keyboardDelegate,\n        isVirtualized: isVirtualized\n    }, state, listBoxRef);\n    let dragHooksProvided = (0, $e8Bmu$useRef)(isListDraggable);\n    let dropHooksProvided = (0, $e8Bmu$useRef)(isListDroppable);\n    (0, $e8Bmu$useEffect)(()=>{\n        if (dragHooksProvided.current !== isListDraggable) console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n        if (dropHooksProvided.current !== isListDroppable) console.warn('Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');\n    }, [\n        isListDraggable,\n        isListDroppable\n    ]);\n    let dragState = undefined;\n    let dropState = undefined;\n    let droppableCollection = undefined;\n    let isRootDropTarget = false;\n    let dragPreview = null;\n    let preview = (0, $e8Bmu$useRef)(null);\n    if (isListDraggable && dragAndDropHooks) {\n        dragState = dragAndDropHooks.useDraggableCollectionState({\n            collection: collection,\n            selectionManager: selectionManager,\n            preview: dragAndDropHooks.renderDragPreview ? preview : undefined\n        });\n        dragAndDropHooks.useDraggableCollection({}, dragState, listBoxRef);\n        let DragPreview = dragAndDropHooks.DragPreview;\n        dragPreview = dragAndDropHooks.renderDragPreview ? /*#__PURE__*/ (0, $e8Bmu$react).createElement(DragPreview, {\n            ref: preview\n        }, dragAndDropHooks.renderDragPreview) : null;\n    }\n    if (isListDroppable && dragAndDropHooks) {\n        dropState = dragAndDropHooks.useDroppableCollectionState({\n            collection: collection,\n            selectionManager: selectionManager\n        });\n        let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, listBoxRef, {\n            orientation: orientation,\n            layout: layout,\n            direction: direction\n        });\n        droppableCollection = dragAndDropHooks.useDroppableCollection({\n            keyboardDelegate: keyboardDelegate,\n            dropTargetDelegate: dropTargetDelegate\n        }, dropState, listBoxRef);\n        isRootDropTarget = dropState.isDropTarget({\n            type: 'root'\n        });\n    }\n    let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $e8Bmu$useFocusRing)();\n    let renderValues = {\n        isDropTarget: isRootDropTarget,\n        isEmpty: state.collection.size === 0,\n        isFocused: isFocused,\n        isFocusVisible: isFocusVisible,\n        layout: props.layout || 'stack',\n        state: state\n    };\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        className: props.className,\n        style: props.style,\n        defaultClassName: 'react-aria-ListBox',\n        values: renderValues\n    });\n    let emptyState = null;\n    if (state.collection.size === 0 && props.renderEmptyState) emptyState = /*#__PURE__*/ (0, $e8Bmu$react).createElement(\"div\", {\n        // eslint-disable-next-line\n        role: \"option\",\n        style: {\n            display: 'contents'\n        }\n    }, props.renderEmptyState(renderValues));\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $e8Bmu$FocusScope), null, /*#__PURE__*/ (0, $e8Bmu$react).createElement(\"div\", {\n        ...(0, $e8Bmu$filterDOMProps)(props),\n        ...(0, $e8Bmu$mergeProps)(listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),\n        ...renderProps,\n        ref: listBoxRef,\n        slot: props.slot || undefined,\n        onScroll: props.onScroll,\n        \"data-drop-target\": isRootDropTarget || undefined,\n        \"data-empty\": state.collection.size === 0 || undefined,\n        \"data-focused\": isFocused || undefined,\n        \"data-focus-visible\": isFocusVisible || undefined,\n        \"data-layout\": props.layout || 'stack',\n        \"data-orientation\": props.orientation || 'vertical'\n    }, /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n        values: [\n            [\n                $eed445e0843c11d0$export$7ff8f37d2d81a48d,\n                props\n            ],\n            [\n                $eed445e0843c11d0$export$7c5906fe4f1f2af2,\n                state\n            ],\n            [\n                (0, $612b8eb6cb90e02d$export$d188a835a7bc5783),\n                {\n                    dragAndDropHooks: dragAndDropHooks,\n                    dragState: dragState,\n                    dropState: dropState\n                }\n            ],\n            [\n                (0, $431f98aba6844401$export$6615d83f6de245ce),\n                {\n                    elementType: 'div'\n                }\n            ],\n            [\n                (0, $612b8eb6cb90e02d$export$f55761759794cf55),\n                {\n                    render: $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper\n                }\n            ],\n            [\n                (0, $7135fc7d473fd974$export$d40e14dec8b060a8),\n                {\n                    render: $eed445e0843c11d0$var$ListBoxSection\n                }\n            ]\n        ]\n    }, /*#__PURE__*/ (0, $e8Bmu$react).createElement(CollectionRoot, {\n        collection: collection,\n        scrollRef: listBoxRef,\n        persistedKeys: (0, $612b8eb6cb90e02d$export$d1e8e3fbb7461f6)(selectionManager, dragAndDropHooks, dropState),\n        renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)\n    })), emptyState, dragPreview));\n}\nfunction $eed445e0843c11d0$var$ListBoxSection(props, ref, section) {\n    let state = (0, $e8Bmu$useContext)($eed445e0843c11d0$export$7c5906fe4f1f2af2);\n    let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $e8Bmu$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));\n    let { CollectionBranch: CollectionBranch } = (0, $e8Bmu$useContext)((0, $7135fc7d473fd974$export$4feb769f8ddf26c5));\n    let [headingRef, heading] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();\n    var _props_arialabel;\n    let { headingProps: headingProps, groupProps: groupProps } = (0, $e8Bmu$useListBoxSection)({\n        heading: heading,\n        'aria-label': (_props_arialabel = props['aria-label']) !== null && _props_arialabel !== void 0 ? _props_arialabel : undefined\n    });\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        defaultClassName: 'react-aria-Section',\n        className: props.className,\n        style: props.style,\n        values: {}\n    });\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement(\"section\", {\n        ...(0, $e8Bmu$filterDOMProps)(props),\n        ...groupProps,\n        ...renderProps,\n        ref: ref\n    }, /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $72a5793c14baf454$export$e0e4026c12a8bdbb).Provider, {\n        value: {\n            ...headingProps,\n            ref: headingRef\n        }\n    }, /*#__PURE__*/ (0, $e8Bmu$react).createElement(CollectionBranch, {\n        collection: state.collection,\n        parent: section,\n        renderDropIndicator: (0, $612b8eb6cb90e02d$export$971707d8a129a1f7)(dragAndDropHooks, dropState)\n    })));\n}\nconst $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ (0, $e8Bmu$createLeafComponent)('item', function ListBoxItem(props, forwardedRef, item) {\n    let ref = (0, $e8Bmu$useObjectRef)(forwardedRef);\n    let state = (0, $e8Bmu$useContext)($eed445e0843c11d0$export$7c5906fe4f1f2af2);\n    let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (0, $e8Bmu$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));\n    let { optionProps: optionProps, labelProps: labelProps, descriptionProps: descriptionProps, ...states } = (0, $e8Bmu$useOption)({\n        key: item.key,\n        'aria-label': props === null || props === void 0 ? void 0 : props['aria-label']\n    }, state, ref);\n    let { hoverProps: hoverProps, isHovered: isHovered } = (0, $e8Bmu$useHover)({\n        isDisabled: !states.allowsSelection && !states.hasAction,\n        onHoverStart: item.props.onHoverStart,\n        onHoverChange: item.props.onHoverChange,\n        onHoverEnd: item.props.onHoverEnd\n    });\n    let draggableItem = null;\n    if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({\n        key: item.key\n    }, dragState);\n    let droppableItem = null;\n    if (dropState && dragAndDropHooks) droppableItem = dragAndDropHooks.useDroppableItem({\n        target: {\n            type: 'item',\n            key: item.key,\n            dropPosition: 'on'\n        }\n    }, dropState, ref);\n    let isDragging = dragState && dragState.isDragging(item.key);\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...props,\n        id: undefined,\n        children: props.children,\n        defaultClassName: 'react-aria-ListBoxItem',\n        values: {\n            ...states,\n            isHovered: isHovered,\n            selectionMode: state.selectionManager.selectionMode,\n            selectionBehavior: state.selectionManager.selectionBehavior,\n            allowsDragging: !!dragState,\n            isDragging: isDragging,\n            isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget\n        }\n    });\n    (0, $e8Bmu$useEffect)(()=>{\n        if (!item.textValue) console.warn('A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.');\n    }, [\n        item.textValue\n    ]);\n    let ElementType = props.href ? 'a' : 'div';\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement(ElementType, {\n        ...(0, $e8Bmu$mergeProps)(optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),\n        ...renderProps,\n        ref: ref,\n        \"data-allows-dragging\": !!dragState || undefined,\n        \"data-selected\": states.isSelected || undefined,\n        \"data-disabled\": states.isDisabled || undefined,\n        \"data-hovered\": isHovered || undefined,\n        \"data-focused\": states.isFocused || undefined,\n        \"data-focus-visible\": states.isFocusVisible || undefined,\n        \"data-pressed\": states.isPressed || undefined,\n        \"data-dragging\": isDragging || undefined,\n        \"data-drop-target\": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || undefined,\n        \"data-selection-mode\": state.selectionManager.selectionMode === 'none' ? undefined : state.selectionManager.selectionMode\n    }, /*#__PURE__*/ (0, $e8Bmu$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n        values: [\n            [\n                (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n                {\n                    slots: {\n                        label: labelProps,\n                        description: descriptionProps\n                    }\n                }\n            ]\n        ]\n    }, renderProps.children));\n});\nfunction $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper(props, ref) {\n    ref = (0, $e8Bmu$useObjectRef)(ref);\n    let { dragAndDropHooks: dragAndDropHooks, dropState: dropState } = (0, $e8Bmu$useContext)((0, $612b8eb6cb90e02d$export$d188a835a7bc5783));\n    let { dropIndicatorProps: dropIndicatorProps, isHidden: isHidden, isDropTarget: isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, ref);\n    if (isHidden) return null;\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement($eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef, {\n        ...props,\n        dropIndicatorProps: dropIndicatorProps,\n        isDropTarget: isDropTarget,\n        ref: ref\n    });\n}\nfunction $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {\n    let { dropIndicatorProps: dropIndicatorProps, isDropTarget: isDropTarget, ...otherProps } = props;\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...otherProps,\n        defaultClassName: 'react-aria-DropIndicator',\n        values: {\n            isDropTarget: isDropTarget\n        }\n    });\n    return /*#__PURE__*/ (0, $e8Bmu$react).createElement(\"div\", {\n        ...dropIndicatorProps,\n        ...renderProps,\n        // eslint-disable-next-line\n        role: \"option\",\n        ref: ref,\n        \"data-drop-target\": isDropTarget || undefined\n    });\n}\nconst $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = /*#__PURE__*/ (0, $e8Bmu$forwardRef)($eed445e0843c11d0$var$ListBoxDropIndicator);\n\n\nexport {$eed445e0843c11d0$export$7ff8f37d2d81a48d as ListBoxContext, $eed445e0843c11d0$export$7c5906fe4f1f2af2 as ListStateContext, $eed445e0843c11d0$export$41f133550aa26f48 as ListBox, $eed445e0843c11d0$export$a11e76429ed99b4 as ListBoxItem};\n//# sourceMappingURL=ListBox.module.js.map\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z\"\n}), 'CheckCircle');","import CheckCircle from '@mui/icons-material/CheckCircle';\r\nimport { DesignContext } from '@webkit/design/context';\r\nimport { useContext, useRef, useState } from 'react';\r\nimport { mergeProps, useFocus, useOption } from 'react-aria';\r\nimport { ListBoxItem as AriaListBoxItem, ListBoxItemProps } from 'react-aria-components';\r\nimport { ListState, Node } from 'react-stately';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = Omit<ListBoxItemProps, 'className' | 'children' | 'onAction'> & {\r\n    onClick?: () => void;\r\n};\r\n\r\nconst styles = {\r\n    item: tv({\r\n        base: 'flex flex-row border-0 border-solid text-sm cursor-pointer outline-none',\r\n        variants: {\r\n            isFocused: {\r\n                true: '',\r\n            },\r\n            design: {\r\n                standard: 'text-brand-gray-350',\r\n                landing: 'text-brand-gray-350',\r\n                'single-quote-element': 'border-b-slate-150 text-brand-gray-350',\r\n                'multi-quote-element': 'border-b-slate-150 text-brand-gray-350',\r\n            },\r\n        },\r\n        compoundVariants: [\r\n            {\r\n                isFocused: true,\r\n                design: 'standard',\r\n                className: 'bg-brand-gray-650 text-white',\r\n            },\r\n            {\r\n                isFocused: true,\r\n                design: 'landing',\r\n                className: 'bg-brand-gray-650 text-white',\r\n            },\r\n        ],\r\n    }),\r\n};\r\n\r\nexport function ListBoxItem(props: Props) {\r\n    const design = useContext(DesignContext);\r\n    return (\r\n        <AriaListBoxItem {...props} className='outline-none'>\r\n            {({ isSelected, isFocused }) => (\r\n                <div className={styles.item({ design, isFocused })} onClick={props.onClick}>\r\n                    <span className='flex-1 p-3 tracking-[0.5px] font-sans inline-block text-sm'>\r\n                        {props.textValue}\r\n                    </span>\r\n\r\n                    {isSelected && (\r\n                        <div className='flex items-center justify-center basis-10 text-lg'>\r\n                            <CheckCircle fontSize='inherit' className='text-brand-green-250' />\r\n                        </div>\r\n                    )}\r\n                </div>\r\n            )}\r\n        </AriaListBoxItem>\r\n    );\r\n}\r\n\r\n/** Renders a list box item with a custom-built component as children. Includes the same overall formatting as the text-based list box item. */\r\nexport function ListBoxItemWithComponent(props: Props & { component: JSX.Element }) {\r\n    const design = useContext(DesignContext);\r\n    return (\r\n        <AriaListBoxItem {...props} className='outline-none'>\r\n            {({ isSelected, isFocused }) => (\r\n                <div className={styles.item({ design, isFocused })} onClick={props.onClick}>\r\n                    <div className='flex-1 p-3 tracking-[0.5px] font-sans inline-block text-sm'>{props.component}</div>\r\n\r\n                    {isSelected && (\r\n                        <div className='flex items-center justify-center basis-10 text-lg'>\r\n                            <CheckCircle fontSize='inherit' className='text-brand-green-250' />\r\n                        </div>\r\n                    )}\r\n                </div>\r\n            )}\r\n        </AriaListBoxItem>\r\n    );\r\n}\r\n\r\nexport function CustomListBoxItem<T>({ item, state }: { item: Node<T>; state: ListState<T> }) {\r\n    const ref = useRef(null),\r\n        { optionProps, labelProps } = useOption({ key: item.key }, state, ref),\r\n        { focusProps } = useFocus({ onFocusChange: focused => setFocused(focused) }),\r\n        [isFocused, setFocused] = useState<boolean>(false),\r\n        isSelected = state.selectionManager.selectedKeys.has(item.key),\r\n        design = useContext(DesignContext);\r\n\r\n    return (\r\n        <li {...mergeProps(optionProps, focusProps)} ref={ref} className='outline-none' data-focus-visible={isFocused}>\r\n            <div className={styles.item({ design, isFocused })}>\r\n                <span\r\n                    {...labelProps}\r\n                    className='flex-1 p-3 tracking-[0.5px] font-sans inline-block text-sm outline-none'\r\n                >\r\n                    {item.textValue}\r\n                </span>\r\n                {isSelected && (\r\n                    <div className='flex items-center justify-center basis-10 text-lg'>\r\n                        <CheckCircle fontSize='inherit' className='text-brand-green-250' />\r\n                    </div>\r\n                )}\r\n            </div>\r\n        </li>\r\n    );\r\n}\r\n","import { Design, DesignContext } from '@webkit/design/context';\r\nimport { PropsWithChildren, useContext, useEffect, useRef } from 'react';\r\nimport { useInteractOutside } from 'react-aria';\r\nimport { Popover as AriaPopover, OverlayTriggerStateContext, PopoverProps } from 'react-aria-components';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = PropsWithChildren &\r\n    Omit<PopoverProps, 'className'> & {\r\n        // The design of the popover which drives look and feel.\r\n        design?: Design;\r\n\r\n        // When true, renders an arrow indicator pointing to the trigger element. Defaults to false.\r\n        withArrow?: boolean;\r\n    };\r\n\r\nconst styles = {\r\n    popover: tv({\r\n        base: 'swyfft-popover entering:animate-in entering:fade-in exiting:animate-out exiting:fade-out w-[--trigger-width] box-border list-none m-0 p-0 outline-none',\r\n        variants: {\r\n            design: {\r\n                standard: '',\r\n                landing: '',\r\n                'single-quote-element': '',\r\n                'multi-quote-element': '',\r\n            },\r\n        },\r\n    }),\r\n\r\n    arrow: tv({\r\n        base: 'border-8 border-solid border-transparent w-0 m-auto',\r\n        variants: {\r\n            placement: {\r\n                top: 'bottom-0 border-t-brand-gray-750',\r\n                bottom: 'border-b-brand-gray-750',\r\n                left: '',\r\n                right: '',\r\n                center: '',\r\n            },\r\n        },\r\n    }),\r\n};\r\n\r\nexport function Popover(props: Props) {\r\n    const design = useContext(DesignContext),\r\n        ref = useRef<HTMLDivElement>(null),\r\n        state = useContext(OverlayTriggerStateContext);\r\n\r\n    useInteractOutside({\r\n        ref,\r\n        onInteractOutside: () => state && state.close(),\r\n    });\r\n\r\n    useEffect(() => {\r\n        if (state && props.onOpenChange) props.onOpenChange(state.isOpen);\r\n    }, [state?.isOpen]);\r\n\r\n    useEffect(() => {\r\n        function onEscapeKeyDown(e: KeyboardEvent) {\r\n            if (e.key === 'Escape' && state) {\r\n                state.close();\r\n            }\r\n        }\r\n\r\n        function onScroll() {\r\n            if (state) {\r\n                state.close();\r\n            }\r\n        }\r\n\r\n        document.addEventListener('scroll', onScroll);\r\n        document.addEventListener('keyup', onEscapeKeyDown);\r\n        return () => {\r\n            document.removeEventListener('keyup', onEscapeKeyDown);\r\n            document.removeEventListener('scroll', onScroll);\r\n        };\r\n    }, []);\r\n\r\n    return (\r\n        <AriaPopover {...props} {...state} className={styles.popover({ design })} ref={ref} isNonModal>\r\n            {({ placement }) => (\r\n                <>\r\n                    {props.withArrow && placement === 'bottom' && <div className={styles.arrow({ placement })}></div>}\r\n\r\n                    <div className='scrollbar bg-brand-gray-750 rounded shadow-md max-h-80 overflow-auto'>\r\n                        {props.children}\r\n                    </div>\r\n\r\n                    {props.withArrow && placement === 'top' && <div className={styles.arrow({ placement })}></div>}\r\n                </>\r\n            )}\r\n        </AriaPopover>\r\n    );\r\n}\r\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n  d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\"\n}), 'KeyboardArrowDown');","import React, { useEffect } from 'react';\r\nimport type { AriaListBoxProps } from 'react-aria';\r\nimport { useListState } from 'react-stately';\r\nimport { useListBox } from 'react-aria';\r\nimport { CustomListBoxItem } from './listBoxItem';\r\n\r\nexport function ListBox<T extends object>(props: AriaListBoxProps<T>) {\r\n    const state = useListState(props),\r\n        ref = React.useRef(null),\r\n        { listBoxProps } = useListBox({ ...props, shouldFocusOnHover: true, autoFocus: true }, state, ref);\r\n\r\n    return (\r\n        <ul {...listBoxProps} ref={ref} className='box-border list-none m-0 p-0 outline-none text-xs'>\r\n            {[...state.collection].map(item => (\r\n                <CustomListBoxItem key={item.key} item={item} state={state} />\r\n            ))}\r\n        </ul>\r\n    );\r\n}\r\n","import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';\r\nimport { ItemProps } from '@react-types/shared';\r\nimport { FormLabel } from '@webkit/components/formLabel';\r\nimport { DesignContext } from '@webkit/design/context';\r\nimport { ListBox } from '@webkit/internal/listBox';\r\nimport { Popover } from '@webkit/internal/popover';\r\nimport { ButtonInput } from '@webkit/internal/wrapper';\r\nimport { Value } from '@webkit/validation/value';\r\nimport React, { Children, ReactElement, useContext, useEffect, useRef, useState } from 'react';\r\nimport { DialogTrigger } from 'react-aria-components';\r\nimport { tv } from 'tailwind-variants';\r\n\r\nexport type InternalSelectProps<TValue = string | string[]> = {\r\n    /** The underlying value for the select component. */\r\n    value: Value<TValue | null>;\r\n\r\n    /** A function that is called when the user selects an item from the list. */\r\n    onSelectionChange: (selection: TValue) => void;\r\n\r\n    /** An optional label that appears above the select component. */\r\n    label?: string;\r\n\r\n    /** An optional flag indicating whether the select component is disabled. If true, the select component will be disabled. */\r\n    isDisabled?: boolean;\r\n\r\n    /** An optional ID for the select component. If provided, the ID will be rendered into the underlying DOM. */\r\n    id?: string;\r\n\r\n    /** An optional placeholder value for the select component. This string will be visible in the trigger when no item is selected. */\r\n    placeholder?: string;\r\n\r\n    /** The mode of the select component. One of 'single' or 'multiple'. Defaults to 'single'. */\r\n    mode?: 'single' | 'multiple';\r\n\r\n    /** The collection items to display in the selection popover. */\r\n    children: ReactElement<ItemProps<object>>[];\r\n};\r\n\r\nconst styles = {\r\n    placeholder: tv({\r\n        base: 'text-brand-gray-450 pr-3 truncate',\r\n        variants: {\r\n            design: {\r\n                standard: '',\r\n                landing: 'italic',\r\n                'single-quote-element': '',\r\n                'multi-quote-element': '',\r\n            },\r\n        },\r\n    }),\r\n\r\n    multiSelectItem: tv({\r\n        base: 'bg-brand-green-250 text-white px-[6px] pt-[2px] pb-[1px] rounded-[3px] mr-1 inline-block',\r\n        variants: {\r\n            design: {\r\n                standard: '',\r\n                landing: 'rounded-full px-2',\r\n                'single-quote-element': '',\r\n                'multi-quote-element': '',\r\n            },\r\n        },\r\n    }),\r\n};\r\n\r\nexport function InternalSelect<TValue extends string | string[]>({\r\n    value,\r\n    onSelectionChange,\r\n    label,\r\n    isDisabled,\r\n    id,\r\n    placeholder,\r\n    mode = 'single',\r\n    children,\r\n}: InternalSelectProps<TValue>) {\r\n    const design = useContext(DesignContext),\r\n        trigger = useRef<HTMLButtonElement>(null),\r\n        [isOpen, setOpen] = useState<boolean>(false),\r\n        [width, setWidth] = useState<number>(0),\r\n        items = Children.map(children, item => ({ key: item.key, value: item.props.children }));\r\n\r\n    useEffect(() => {\r\n        if (!trigger.current) return;\r\n\r\n        setWidth(trigger.current.getBoundingClientRect().width);\r\n    }, [trigger.current]);\r\n\r\n    useEffect(() => {\r\n        function onKeyUp(event: KeyboardEvent) {\r\n            if (event.key === 'Escape' || event.key === 'Tab') {\r\n                setOpen(false);\r\n                event.preventDefault();\r\n            }\r\n        }\r\n\r\n        document.addEventListener('keyup', onKeyUp);\r\n        return () => document.removeEventListener('keyup', onKeyUp);\r\n    }, []);\r\n\r\n    return (\r\n        <div className='flex flex-col w-full'>\r\n            {label && <FormLabel>{label}</FormLabel>}\r\n\r\n            <DialogTrigger isOpen={isOpen} onOpenChange={setOpen}>\r\n                <ButtonInput\r\n                    id={id}\r\n                    icon={<KeyboardArrowDownIcon color='inherit' fontSize='inherit' />}\r\n                    isValid={value.valid}\r\n                    error={value.error}\r\n                    isDisabled={isDisabled}\r\n                    aria-label={label || placeholder || value.name}\r\n                    ref={trigger}\r\n                >\r\n                    <div className='text-sm text-left w-full h-full flex items-center'>\r\n                        {!value.content?.length && (\r\n                            <span className={styles.placeholder({ design })}>{placeholder || ''}</span>\r\n                        )}\r\n\r\n                        {value.content && value.content.length > 0 && (\r\n                            <span className='flex-1 pr-[20px] truncate'>\r\n                                {Array.isArray(value.content)\r\n                                    ? value.content.sort().map(v => (\r\n                                          <span key={v} className={styles.multiSelectItem({ design })}>\r\n                                              {items.find(i => i.key === v)?.value}\r\n                                          </span>\r\n                                      ))\r\n                                    : items.find(i => i.key === value.content)?.value}\r\n                            </span>\r\n                        )}\r\n                    </div>\r\n                </ButtonInput>\r\n\r\n                <Popover style={{ '--trigger-width': `${width}px` } as React.CSSProperties}>\r\n                    <ListBox\r\n                        selectionMode={mode}\r\n                        selectionBehavior='toggle'\r\n                        selectedKeys={Array.isArray(value.content) ? value.content || '' : [value.content || '']}\r\n                        aria-label={label || placeholder || value.name}\r\n                        autoFocus={true}\r\n                        onSelectionChange={selection => {\r\n                            const selectionArray = [...selection];\r\n                            if (mode === 'single') {\r\n                                if (selectionArray.length) onSelectionChange(selectionArray[0] as TValue);\r\n                                setOpen(false);\r\n                            } else {\r\n                                onSelectionChange(selectionArray as TValue);\r\n                            }\r\n                        }}\r\n                    >\r\n                        {children}\r\n                    </ListBox>\r\n                </Popover>\r\n            </DialogTrigger>\r\n        </div>\r\n    );\r\n}\r\n","import { InternalSelect, InternalSelectProps } from './internal';\r\n\r\nexport type SelectProps = Omit<InternalSelectProps<string>, 'mode'>;\r\nexport type MultiSelectProps = Omit<InternalSelectProps<string[]>, 'mode'>;\r\n\r\nexport function Select(props: SelectProps) {\r\n    return <InternalSelect<string> {...props} mode='single' />;\r\n}\r\n\r\nexport function MultiSelect(props: MultiSelectProps) {\r\n    return <InternalSelect<string[]> {...props} mode='multiple' />;\r\n}\r\n","import { Item } from 'react-stately';\r\n\r\ntype Props = {\r\n    /** The key used as an ID for the item. */\r\n    key: string;\r\n\r\n    /** The text displayed to the user. */\r\n    children: string;\r\n};\r\n\r\nexport function SelectItem(props: Props) {\r\n    return <Item key={props.key}>{props.children}</Item>;\r\n}\r\n\r\n/**\r\n * The underlying Item element uses this generator method for retrieving an item's node. It\r\n * needs to be on SelectItem as well as the useListBox hook expects it.\r\n */\r\nSelectItem.getCollectionNode = (Item as any).getCollectionNode;\r\n"],"names":["$23b9f4fcf0fe224b$export$d68d59712b04d9d1","node","type","key","$23b9f4fcf0fe224b$export$408d25a4e12db025","keyMap","parent","_node_key","_this_keyMap_get","Constructor","collection","firstKey","lastKey","isSSR","$681cc3c98f569e39$export$410b0c854570d131","firstChild","lastChild","previousSibling","nextSibling","parentNode","_this_parentNode","child","newNode","referenceNode","ownerDocument","$681cc3c98f569e39$export$dc064fe9e59310fd","index","_this_previousSibling","_this_nextSibling","_this_firstChild","_this_lastChild","_this_previousSibling_node_key","_this_nextSibling_node_key","_this_firstChild_node_key","_this_lastChild_node_key","obj","ref","rendered","render","value","textValue","id","props","$681cc3c98f569e39$export$b34a105447964f9f","element","fn","$e948873055cbafe4$export$727c8fc270210f13","children","items","idScope","addIdAndValue","dependencies","cache","$luMFQ$useMemo","res","item","_rendered_props_id","_ref","$luMFQ$cloneElement","$a40c673dc9f6d9c7$export$94ed1c92c7beeb22","checkForOverflow","scrollParents","$cc38e7bd3fc7b213$export$2bb74740c4e19def","$e9faafb641e167db$export$90fc3a17d93f704c","event","handler","options","handleEvent","$8ae05eaa5c114e9c$export$7f54fc3180508a52","isDisabled","$ceQd6$useEffect","$2f04cbc44ee30ce0$export$53a0910f038337bd","scrollView","offsetX","$2f04cbc44ee30ce0$var$relativeOffset","offsetY","width","height","x","y","borderTopWidth","borderLeftWidth","borderAdjustedX","borderAdjustedY","maxX","maxY","ancestor","axis","prop","sum","$2f04cbc44ee30ce0$export$c826860796309d1b","targetElement","opts","root","scrollParent","_targetElement_scrollIntoView","originalLeft","originalTop","newLeft","newTop","_opts_containingElement_scrollIntoView","_opts_containingElement","_targetElement_scrollIntoView1","e","require$$0","h","a","b","k","l","m","n","p","q","d","f","c","g","r","t","u","useSyncExternalStoreShim_production_min","shimModule","$e1995378a142960e$var$ShallowRenderContext","$95feo$createContext","$e1995378a142960e$var$CollectionDocumentContext","$e1995378a142960e$export$bf788dd355e3a401","$95feo$useContext","document","$e1995378a142960e$var$useCollectionDocument","$95feo$react","$f39a9eba43920ace$export$8dc98ba7eadeaa56","$e1995378a142960e$var$CollectionInner","$e1995378a142960e$var$useSyncExternalStoreFallback","subscribe","getSnapshot","getServerSnapshot","$95feo$useIsSSR","isSSRRef","$95feo$useRef","getSnapshotWrapper","$95feo$useCallback","$95feo$useSyncExternalStore","$e1995378a142960e$var$useSyncExternalStore","createCollection","$95feo$useState","$95feo$useLayoutEffect","$e1995378a142960e$var$SSRContext","$e1995378a142960e$var$useSSRCollectionNode","Type","itemRef","$e1995378a142960e$export$18af5c7a9e9b3664","Component","Result","$95feo$forwardRef","$e1995378a142960e$export$e953bb1cd0f19726","useChildren","$e1995378a142960e$var$useCollectionChildren","_useSSRCollectionNode","$e1995378a142960e$var$CollectionContext","$e1995378a142960e$export$fb8073518f34e6ec","ctx","$e1995378a142960e$var$CollectionRoot","$95feo$useMemo","doc","wrappedChildren","$95feo$createPortal","$7135fc7d473fd974$export$d40e14dec8b060a8","$18I52$createContext","$7135fc7d473fd974$export$6e2c8f0811a474ce","$18I52$createBranchComponent","section","$18I52$useContext","$7135fc7d473fd974$export$a164736487e3f0ae","renderDropIndicator","$7135fc7d473fd974$var$useCollectionRender","$18I52$useCachedChildren","_collection_getItem","keyAfter","$18I52$react","$7135fc7d473fd974$export$4feb769f8ddf26c5","$8a26561d2877236e$var$DEFAULT_THRESHOLD","$8a26561d2877236e$export$c24ed0104d07eab9","onLongPressStart","onLongPressEnd","onLongPress","threshold","accessibilityDescription","timeRef","$4k2kv$useRef","addGlobalListener","removeGlobalListener","$4k2kv$useGlobalListeners","pressProps","$f6c31cce2adf654f$export$45712eceda6fad21","onContextMenu","descriptionProps","$4k2kv$useDescription","$4k2kv$mergeProps","$325a3faab7a68acd$var$cache","$325a3faab7a68acd$export$a16aca283550c30d","locale","$18f2051aff69b9bf$export$43bb16f9c6d9e3f7","cacheKey","formatter","$b1f0cad8af73213b$export$3585ede4d035bf14","$b1f0cad8af73213b$var$normalizeKey","$b1f0cad8af73213b$export$9145995848b05025","state","itemKey","data","$feb5ffebff200149$export$d3e3bd3e26688c04","$jUnAJ$isAppleDevice","$feb5ffebff200149$export$16792effe837dba3","$jUnAJ$isMac","$fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS","$fb3050f43d946246$export$e32c88dfddc6e1d8","keyboardDelegate","selectionManager","onTypeSelect","$dAE4Y$useRef","onKeyDown","character","$fb3050f43d946246$var$getStringForKey","$ae20dd8cbca75726$export$d6daf82dcd84e87c","manager","delegate","autoFocus","shouldFocusWrap","disallowEmptySelection","disallowSelectAll","selectOnFocus","disallowTypeAhead","shouldUseVirtualFocus","allowsTabNavigation","isVirtualized","scrollRef","linkBehavior","direction","$3H3GQ$useLocale","router","$3H3GQ$useRouter","navigateToKey","childFocus","$3H3GQ$flushSync","itemProps","_delegate_getFirstKey","_delegate_getFirstKey1","nextKey","_delegate_getLastKey","_delegate_getLastKey1","_delegate_getFirstKey2","_delegate_getLastKey2","_delegate_getLastKey3","_delegate_getFirstKey3","walker","$3H3GQ$getFocusableTreeWalker","next","last","$3H3GQ$focusWithoutScrolling","scrollPos","$3H3GQ$useRef","$3H3GQ$useEvent","onFocus","navigateToFirstKey","relatedTarget","_manager_lastSelectedKey","_manager_firstSelectedKey","$3H3GQ$getInteractionModality","$3H3GQ$scrollIntoViewport","onBlur","autoFocusRef","$3H3GQ$useEffect","focusedKey","selectedKeys","$3H3GQ$focusSafely","lastFocusedKey","modality","$3H3GQ$scrollIntoView","handlers","typeSelectProps","$3H3GQ$mergeProps","tabIndex","$880e95eb8b93ba9a$export$ecf600387e221c37","shouldSelectOnPressUp","focus","onAction","allowsDifferentPressOrigin","$581M0$useRouter","onSelect","$581M0$useEffect","$581M0$focusSafely","isLinkOverride","hasLinkAction","allowsSelection","allowsActions","hasPrimaryAction","hasSecondaryAction","hasAction","$581M0$useRef","longPressEnabled","longPressEnabledOnPressStart","hadPrimaryActionOnPressStart","performAction","itemPressProps","$880e95eb8b93ba9a$var$isSelectionKey","$880e95eb8b93ba9a$var$isActionKey","isPressed","$581M0$usePress","onDoubleClick","longPressProps","$581M0$useLongPress","onDragStartCapture","onClick","$581M0$openLink","$581M0$mergeProps","$657e4dc4a6e88df0$export$8f5ed9ff9f511381","container","containerRect","itemRect","$2a25aae57d74318e$export$a05409b8bb224a5a","_item_props","shouldSkip","prevRect","right","menu","$eak97$isScrollable","pageX","pageY","search","fromKey","substring","args","$982254629710d113$export$b95089534ab7c1fd","disabledKeys","layoutDelegate","collator","$1aJk5$useCollator","disabledBehavior","$1aJk5$useMemo","collectionProps","$c132121280ec012d$export$50eacbbf140a3141","domProps","$by1yQ$filterDOMProps","selectionBehavior","listProps","$by1yQ$useSelectableList","focusWithinProps","$by1yQ$useFocusWithin","$by1yQ$useId","labelProps","fieldProps","$by1yQ$useLabel","$by1yQ$mergeProps","$c1d7fb2ec91bae71$var$Item","context","childItems","title","$c1d7fb2ec91bae71$var$hasChildItems","$6Fm0V$react","$c1d7fb2ec91bae71$export$6d08773d2e66f8f2","$eb2240fc39a57fa5$export$bf788dd355e3a401","$eb2240fc39a57fa5$var$iterable","$fzaAv$react","nodes","partialNode","parentKey","v","_v_key","cached","name","childNodes","result","childNode","nodeKey","$eb2240fc39a57fa5$var$compose","$eb2240fc39a57fa5$var$capitalize","builder","iterator","iterable","outer","inner","str","$7613b1592d41b092$export$6cd28814d92fa9c9","factory","$lbNth$useMemo","$c5a24bc478652b5f$export$1005530eda016c13","$c5a24bc478652b5f$export$fbdeaa6a76694f71","$c5a24bc478652b5f$export$5f3398f8733f90e2","$c5a24bc478652b5f$export$8c434b3a7a4dad6","aAncestors","$c5a24bc478652b5f$var$getAncestors","bAncestors","firstNonMatchingAncestor","i","parents","$453cc9f0df89c0a5$var$cache","$453cc9f0df89c0a5$export$77d5aafae4e095b2","count","countItems","$293f70390ea03370$export$497855f14858aa34","_item_props1","_props_isDisabled","_props_isSelected","isSelected","_props_shouldSelectOnPressUp","_props_shouldFocusOnHover","shouldFocusOnHover","_props_shouldUseVirtualFocus","_props_isVirtualized","labelId","$fcwmx$useSlotId","descriptionId","optionProps","$fcwmx$isMac","$fcwmx$isWebKit","$fcwmx$getItemCount","_data_onAction","isFocused","$fcwmx$useSelectableItem","$fcwmx$chain","hoverProps","$fcwmx$useHover","$fcwmx$isFocusVisible","$fcwmx$filterDOMProps","linkProps","$fcwmx$useLinkProps","$fcwmx$mergeProps","$af383d3bef1cfdc9$export$c3f9f39876e4bc7","heading","ariaLabel","headingId","$8pE4M$useId","$a02d57049d202695$export$d085fb9e920b5ca7","idx","keys","visit","$e40ea825a81a3709$export$52baac22726c72bf","anchorKey","currentKey","$7af3f5b51489e0b5$var$equalSets","setA","setB","$7af3f5b51489e0b5$export$253fe78d46329472","selectionMode","allowDuplicateSelectionEvents","selectionBehaviorProp","isFocusedRef","$6tM1y$useRef","setFocused","$6tM1y$useState","focusedKeyRef","childFocusStrategyRef","setFocusedKey","selectedKeysProp","$6tM1y$useMemo","$7af3f5b51489e0b5$var$convertSelection","defaultSelectedKeys","setSelectedKeys","$6tM1y$useControlledState","disabledKeysProp","setSelectionBehavior","lastSelectionBehavior","$6tM1y$useEffect","childFocusStrategy","selection","defaultValue","$d496c0a20b6e58ec$export$6c8a5aaad13c9852","allKeys","first","$jkhUT$compareNodeOrder","toKey","from","to","fromItem","toItem","addKeys","$jkhUT$getFirstItem","$jkhUT$getChildNodes","_this_collection_getItem_props","_this_collection_getItem","_options_allowsCellSelection","$e72dd72e1c76a225$export$2f645645f7bca764","filter","selectionState","$d5vlZ$useMultipleSelectionState","$d5vlZ$useMemo","$d5vlZ$useCallback","$d5vlZ$useCollection","$d5vlZ$SelectionManager","cachedCollection","$d5vlZ$useRef","$d5vlZ$useEffect","startItem","cachedItemNodes","itemNode","itemNodes","diff","isReverseSearching","$612b8eb6cb90e02d$export$d188a835a7bc5783","$f3JOg$createContext","$612b8eb6cb90e02d$export$f55761759794cf55","$612b8eb6cb90e02d$var$DropIndicator","$f3JOg$useContext","$f3JOg$react","$612b8eb6cb90e02d$export$62ed72bc21f6b8a6","$f3JOg$forwardRef","$612b8eb6cb90e02d$export$971707d8a129a1f7","dragAndDropHooks","dropState","_dragAndDropHooks_isVirtualDragging","isVirtualDragging","$f3JOg$useCallback","target","$612b8eb6cb90e02d$export$d1e8e3fbb7461f6","_dropState_target","dropTargetKey","_dropState_collection_getKeyAfter","$f3JOg$useMemo","$72a5793c14baf454$export$e0e4026c12a8bdbb","$i47tY$createContext","$431f98aba6844401$export$6615d83f6de245ce","$i9JCE$createContext","$eed445e0843c11d0$export$7ff8f37d2d81a48d","$e8Bmu$createContext","$eed445e0843c11d0$export$7c5906fe4f1f2af2","$eed445e0843c11d0$var$ListBox","$64fa3d84918910a7$export$29f1550f4b0d4415","$e8Bmu$useContext","$e8Bmu$react","$eed445e0843c11d0$var$ListBoxInner","$e8Bmu$CollectionBuilder","$e8Bmu$Collection","$eed445e0843c11d0$var$StandaloneListBox","listBoxRef","$e8Bmu$useListState","$eed445e0843c11d0$export$41f133550aa26f48","$e8Bmu$forwardRef","layout","orientation","isListDraggable","isListDroppable","$e8Bmu$useLocale","$e8Bmu$useCollator","ctxDropTargetDelegate","CollectionRoot","$e8Bmu$useMemo","$e8Bmu$ListKeyboardDelegate","listBoxProps","$e8Bmu$useListBox","dragHooksProvided","$e8Bmu$useRef","dropHooksProvided","$e8Bmu$useEffect","dragState","droppableCollection","isRootDropTarget","dragPreview","preview","DragPreview","dropTargetDelegate","focusProps","isFocusVisible","$e8Bmu$useFocusRing","renderValues","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","emptyState","$e8Bmu$FocusScope","$e8Bmu$filterDOMProps","$e8Bmu$mergeProps","$64fa3d84918910a7$export$2881499e37b75b9a","$eed445e0843c11d0$var$ListBoxDropIndicatorWrapper","$eed445e0843c11d0$var$ListBoxSection","CollectionBranch","headingRef","$64fa3d84918910a7$export$9d4c57ee4c6ffdd8","_props_arialabel","headingProps","groupProps","$e8Bmu$useListBoxSection","$eed445e0843c11d0$export$a11e76429ed99b4","$e8Bmu$createLeafComponent","forwardedRef","$e8Bmu$useObjectRef","states","$e8Bmu$useOption","isHovered","$e8Bmu$useHover","draggableItem","droppableItem","isDragging","ElementType","$514c0188e459b4c0$export$9afb8bc826b033ea","dropIndicatorProps","isHidden","isDropTarget","$eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef","$eed445e0843c11d0$var$ListBoxDropIndicator","otherProps","_interopRequireDefault","CheckCircle","_createSvgIcon","_jsxRuntime","require$$2","styles","tv","ListBoxItem","design","useContext","DesignContext","jsx","AriaListBoxItem","ListBoxItemWithComponent","CustomListBoxItem","useRef","useOption","useFocus","focused","useState","mergeProps","jsxs","Popover","OverlayTriggerStateContext","useInteractOutside","useEffect","onEscapeKeyDown","onScroll","AriaPopover","placement","Fragment","KeyboardArrowDown","ListBox","useListState","React","useListBox","InternalSelect","onSelectionChange","label","placeholder","mode","trigger","isOpen","setOpen","setWidth","Children","onKeyUp","FormLabel","DialogTrigger","ButtonInput","KeyboardArrowDownIcon","_a","_b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