{
  "version": 3,
  "sources": ["/cdn/shop/t/39/assets/theme.js?customer_posted=true"],
  "sourcesContent": ["\n/*\n* @license\n* Pipeline Theme (c) Groupthought Themes\n*\n* This file is included for advanced development by\n* Shopify Agencies.  Modified versions of the theme\n* code are not supported by Shopify or Groupthought.\n*\n*/\n\n(function (AOS, FlickityFade, scrollLock, Flickity, MicroModal, Rellax, themeCurrency, axios, themeAddresses, Sqrl) {\n    'use strict';\n\n    function _interopNamespaceDefault(e) {\n        var n = Object.create(null);\n        if (e) {\n            Object.keys(e).forEach(function (k) {\n                if (k !== 'default') {\n                    var d = Object.getOwnPropertyDescriptor(e, k);\n                    Object.defineProperty(n, k, d.get ? d : {\n                        enumerable: true,\n                        get: function () { return e[k]; }\n                    });\n                }\n            });\n        }\n        n.default = e;\n        return Object.freeze(n);\n    }\n\n    var Sqrl__namespace = /*#__PURE__*/_interopNamespaceDefault(Sqrl);\n\n    (function() {\n        const env = {\"NODE_ENV\":\"production\"};\n        try {\n            if (process) {\n                process.env = Object.assign({}, process.env);\n                Object.assign(process.env, env);\n                return;\n            }\n        } catch (e) {} // avoid ReferenceError: process is not defined\n        globalThis.process = { env:env };\n    })();\n\n    // From https://developer.chrome.com/blog/using-requestidlecallback/#checking-for-requestidlecallback\n    window.requestIdleCallback = window.requestIdleCallback || function(cb) {\n        var start = Date.now();\n        return setTimeout(function() {\n            cb({\n                didTimeout: false,\n                timeRemaining: function() {\n                    return Math.max(0, 50 - (Date.now() - start));\n                }\n            });\n        }, 1);\n    };\n    window.cancelIdleCallback = window.cancelIdleCallback || function(id) {\n        clearTimeout(id);\n    };\n\n    function moveModals(container) {\n        const modals = container.querySelectorAll('[data-modal]');\n        const modalBin = document.querySelector('[data-modal-container]');\n        modals.forEach((element)=>{\n            const alreadyAdded = modalBin.querySelector(`[id=\"${element.id}\"]`);\n            if (!alreadyAdded) {\n                modalBin.appendChild(element);\n            }\n        });\n    }\n\n    function floatLabels(container) {\n        const floats = container.querySelectorAll('.float__wrapper');\n        floats.forEach((element)=>{\n            const label = element.querySelector('label');\n            const input = element.querySelector('input, textarea');\n            if (label) {\n                input.addEventListener('keyup', (event)=>{\n                    if (event.target.value !== '') {\n                        label.classList.add('label--float');\n                    } else {\n                        label.classList.remove('label--float');\n                    }\n                });\n            }\n            if (input && input.value && input.value.length) {\n                label.classList.add('label--float');\n            }\n        });\n    }\n    function errorTabIndex(container) {\n        const errata = container.querySelectorAll('.errors');\n        errata.forEach((element)=>{\n            element.setAttribute('tabindex', '0');\n            element.setAttribute('aria-live', 'assertive');\n            element.setAttribute('role', 'alert');\n        });\n    }\n\n    function readHeights() {\n        const h = {};\n        h.windowHeight = window.innerHeight;\n        h.announcementHeight = getHeight$1('[data-announcement-bar]');\n        h.toolbarHeight = getHeight$1('[data-toolbar-height]');\n        h.footerHeight = getHeight$1('[data-section-type*=\"footer\"]');\n        h.menuHeight = getHeight$1('[data-header-height]');\n        h.headerHeight = h.menuHeight + h.announcementHeight;\n        h.logoHeight = getFooterLogoWithPadding();\n        h.stickyHeader = document.querySelector('[data-header-sticky=\"sticky\"]') ? h.menuHeight : 0;\n        h.backfillHeight = getHeight$1('[data-header-backfill]');\n        return h;\n    }\n    function setVarsOnResize() {\n        document.addEventListener('theme:resize', resizeVars);\n        setVars();\n    }\n    function setVars() {\n        const { windowHeight , announcementHeight , toolbarHeight , headerHeight , logoHeight , menuHeight , footerHeight , stickyHeader , backfillHeight  } = readHeights();\n        document.documentElement.style.setProperty('--scrollbar-width', `${getScrollbarWidth()}px`);\n        document.documentElement.style.setProperty('--footer-logo', `${logoHeight}px`);\n        document.documentElement.style.setProperty('--full-screen', `${windowHeight}px`);\n        document.documentElement.style.setProperty('--three-quarters', `${windowHeight * 0.75}px`);\n        document.documentElement.style.setProperty('--two-thirds', `${windowHeight * 0.66}px`);\n        document.documentElement.style.setProperty('--one-half', `${windowHeight * 0.5}px`);\n        document.documentElement.style.setProperty('--one-third', `${windowHeight * 0.33}px`);\n        document.documentElement.style.setProperty('--one-fifth', `${windowHeight * 0.2}px`);\n        document.documentElement.style.setProperty('--menu-height', `${menuHeight}px`);\n        document.documentElement.style.setProperty('--announcement-height', `${announcementHeight}px`);\n        document.documentElement.style.setProperty('--toolbar-height', `${toolbarHeight}px`);\n        document.documentElement.style.setProperty('--header-height', `${headerHeight}px`);\n        document.documentElement.style.setProperty('--footer-height', `${footerHeight}px`);\n        document.documentElement.style.setProperty('--content-full', `${windowHeight - headerHeight - logoHeight / 2}px`);\n        document.documentElement.style.setProperty('--menu-height-sticky', `${stickyHeader}px`);\n        // if backfill estimation is within 1px rounded, don't force a layout shift\n        let newBackfill = Math.abs(backfillHeight - menuHeight) > 1 ? `${menuHeight}px` : 'auto';\n        document.documentElement.style.setProperty('--menu-backfill-height', newBackfill);\n    }\n    function resizeVars() {\n        // restrict the heights that are changed on resize to avoid iOS jump when URL bar is shown and hidden\n        const { windowHeight , announcementHeight , toolbarHeight , headerHeight , logoHeight , menuHeight , footerHeight , stickyHeader , backfillHeight  } = readHeights();\n        document.documentElement.style.setProperty('--scrollbar-width', `${getScrollbarWidth()}px`);\n        document.documentElement.style.setProperty('--full-screen', `${windowHeight}px`);\n        document.documentElement.style.setProperty('--menu-height', `${menuHeight}px`);\n        document.documentElement.style.setProperty('--announcement-height', `${announcementHeight}px`);\n        document.documentElement.style.setProperty('--toolbar-height', `${toolbarHeight}px`);\n        document.documentElement.style.setProperty('--header-height', `${headerHeight}px`);\n        document.documentElement.style.setProperty('--footer-height', `${footerHeight}px`);\n        document.documentElement.style.setProperty('--content-full', `${windowHeight - headerHeight - logoHeight / 2}px`);\n        document.documentElement.style.setProperty('--menu-height-sticky', `${stickyHeader}px`);\n        // if backfill estimation is within 1px rounded, don't force a layout shift\n        let newBackfill = Math.abs(backfillHeight - menuHeight) > 1 ? `${menuHeight}px` : 'auto';\n        document.documentElement.style.setProperty('--menu-backfill-height', newBackfill);\n    }\n    function getHeight$1(selector) {\n        const el = document.querySelector(selector);\n        if (el) {\n            return el.clientHeight;\n        } else {\n            return 0;\n        }\n    }\n    function getFooterLogoWithPadding() {\n        const height = getHeight$1('[data-footer-logo]');\n        if (height > 0) {\n            return height + 20;\n        } else {\n            return 0;\n        }\n    }\n    function getScrollbarWidth() {\n        // Creating invisible container\n        const outer = document.createElement('div');\n        outer.style.visibility = 'hidden';\n        outer.style.overflow = 'scroll'; // forcing scrollbar to appear\n        outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps\n        document.body.appendChild(outer);\n        // Creating inner element and placing it in the container\n        const inner = document.createElement('div');\n        outer.appendChild(inner);\n        // Calculating difference between container's full width and the child width\n        const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;\n        // Removing temporary elements from the DOM\n        outer.parentNode.removeChild(outer);\n        return scrollbarWidth;\n    }\n\n    function singles(frame, wrappers) {\n        // sets the height of any frame passed in with the\n        // tallest js-overflow-content as well as any image in that frame\n        let padding = 64;\n        let tallest = 0;\n        wrappers.forEach((wrap)=>{\n            if (wrap.offsetHeight > tallest) {\n                const getMarginTop = parseInt(window.getComputedStyle(wrap).marginTop);\n                const getMarginBottom = parseInt(window.getComputedStyle(wrap).marginBottom);\n                const getMargin = getMarginTop + getMarginBottom;\n                if (getMargin > padding) {\n                    padding = getMargin;\n                }\n                tallest = wrap.offsetHeight;\n            }\n        });\n        const images = frame.querySelectorAll('[data-overflow-background]');\n        const frames = [\n            frame,\n            ...images\n        ];\n        frames.forEach((el)=>{\n            el.style.setProperty('min-height', `calc(${tallest + padding}px + var(--menu-height))`);\n        });\n    }\n    function doubles(section) {\n        let footerLogoH = document.querySelector('[data-footer-logo]') ? document.querySelector('[data-footer-logo]').clientHeight + 20 : 0;\n        const lastSection = document.querySelector('#MainContent .shopify-section:last-child [data-section-id]');\n        const lastSectionAttrID = lastSection ? lastSection.getAttribute('data-section-id') : null;\n        if (lastSectionAttrID !== null && section.getAttribute('data-section-id') !== lastSectionAttrID || !lastSection) {\n            footerLogoH = 0;\n        }\n        if (window.innerWidth < window.theme.sizes.medium) {\n            // if we are below the small breakpoint, the double section acts like two independent\n            // single frames\n            let singleFrames = section.querySelectorAll('[data-overflow-frame]');\n            singleFrames.forEach((singleframe)=>{\n                const wrappers = singleframe.querySelectorAll('[data-overflow-content]');\n                singles(singleframe, wrappers);\n            });\n            return;\n        }\n        // Javascript can't execute calc() (from `--outer` variable) - create a new div with width property instead `getPropertyValue('--outer')`\n        const htmlObject = document.createElement('div');\n        section.prepend(htmlObject);\n        htmlObject.style.display = 'none';\n        htmlObject.style.width = getComputedStyle(section).getPropertyValue('--outer');\n        const padding = parseInt(getComputedStyle(htmlObject).getPropertyValue('width')) * 2;\n        section.firstChild.remove();\n        let tallest = 0;\n        const frames = section.querySelectorAll('[data-overflow-frame]');\n        const contentWrappers = section.querySelectorAll('[data-overflow-content]');\n        contentWrappers.forEach((content)=>{\n            if (content.offsetHeight > tallest) {\n                tallest = content.offsetHeight;\n            }\n        });\n        const images = section.querySelectorAll('[data-overflow-background]');\n        let applySizes = [\n            ...frames,\n            ...images\n        ];\n        applySizes.forEach((el)=>{\n            el.style.setProperty('min-height', `${tallest + padding}px`);\n        });\n        section.style.setProperty('min-height', `${tallest + padding + 2 + footerLogoH}px`);\n    }\n    function preventOverflow(container) {\n        const singleFrames = container.querySelectorAll('.js-overflow-container');\n        if (singleFrames) {\n            singleFrames.forEach((frame)=>{\n                const wrappers = frame.querySelectorAll('.js-overflow-content');\n                singles(frame, wrappers);\n                document.addEventListener('theme:resize', ()=>{\n                    singles(frame, wrappers);\n                });\n            });\n            // Reload slides if container has slideshow\n            const slideshows = container.querySelectorAll('[data-slideshow-wrapper]');\n            if (slideshows.length) {\n                slideshows.forEach((slideshow)=>{\n                    const slideshowInstance = FlickityFade.data(slideshow);\n                    if (typeof slideshowInstance !== 'undefined') {\n                        slideshowInstance.reloadCells();\n                    }\n                });\n            }\n        }\n        const doubleSections = container.querySelectorAll('[data-overflow-wrapper]');\n        if (doubleSections) {\n            doubleSections.forEach((section)=>{\n                doubles(section);\n                document.addEventListener('theme:resize', ()=>{\n                    doubles(section);\n                });\n            });\n        }\n    }\n\n    // Adapted from https://github.com/component/debounce/blob/master/index.js\n    /**\n     * Returns a function, that, as long as it continues to be invoked, will not\n     * be triggered. The function will be called after it stops being called for\n     * N milliseconds. If `immediate` is passed, trigger the function on the\n     * leading edge, instead of the trailing. The function also has a property 'clear'\n     * that is a function which will clear the timer to prevent previously scheduled executions.\n     *\n     * @source underscore.js\n     * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n     * @param {Function} function to wrap\n     * @param {Number} timeout in ms (`100`)\n     * @param {Boolean} whether to execute at the beginning (`false`)\n     * @api public\n     */ function debounce$1(func, wait = 500, immediate = false) {\n        var timeout, args, context, timestamp, result;\n        if (wait == null) wait = 100;\n        function later() {\n            var last = Date.now() - timestamp;\n            if (last < wait && last >= 0) {\n                timeout = setTimeout(later, wait - last);\n            } else {\n                timeout = null;\n                if (!immediate) {\n                    result = func.apply(context, args);\n                    context = args = null;\n                }\n            }\n        }\n        var debounced = function() {\n            context = this;\n            args = arguments;\n            timestamp = Date.now();\n            var callNow = immediate && !timeout;\n            if (!timeout) timeout = setTimeout(later, wait);\n            if (callNow) {\n                result = func.apply(context, args);\n                context = args = null;\n            }\n            return result;\n        };\n        debounced.clear = function() {\n            if (timeout) {\n                clearTimeout(timeout);\n                timeout = null;\n            }\n        };\n        debounced.flush = function() {\n            if (timeout) {\n                result = func.apply(context, args);\n                context = args = null;\n                clearTimeout(timeout);\n                timeout = null;\n            }\n        };\n        return debounced;\n    }\n\n    let lastWindowWidth = window.innerWidth;\n    let lastWindowHeight = window.innerHeight;\n    function dispatch$2() {\n        document.dispatchEvent(new CustomEvent('theme:resize', {\n            bubbles: true\n        }));\n        if (lastWindowWidth !== window.innerWidth) {\n            document.dispatchEvent(new CustomEvent('theme:resize:width', {\n                bubbles: true\n            }));\n            lastWindowWidth = window.innerWidth;\n        }\n        if (lastWindowHeight !== window.innerHeight) {\n            document.dispatchEvent(new CustomEvent('theme:resize:height', {\n                bubbles: true\n            }));\n            lastWindowHeight = window.innerHeight;\n        }\n    }\n    let raf;\n    function resizeListener() {\n        window.addEventListener('resize', ()=>{\n            if (raf) {\n                window.cancelAnimationFrame(raf);\n            }\n            raf = window.requestAnimationFrame(debounce$1(dispatch$2, 50));\n        });\n    }\n\n    let prev = window.pageYOffset;\n    let up = null;\n    let down = null;\n    let wasUp = null;\n    let wasDown = null;\n    let scrollLockTimer = 0;\n    function dispatch$1() {\n        const position = window.pageYOffset;\n        if (position > prev) {\n            down = true;\n            up = false;\n        } else if (position < prev) {\n            down = false;\n            up = true;\n        } else {\n            up = null;\n            down = null;\n        }\n        prev = position;\n        document.dispatchEvent(new CustomEvent('theme:scroll', {\n            detail: {\n                up,\n                down,\n                position\n            },\n            bubbles: false\n        }));\n        if (up && !wasUp) {\n            document.dispatchEvent(new CustomEvent('theme:scroll:up', {\n                detail: {\n                    position\n                },\n                bubbles: false\n            }));\n        }\n        if (down && !wasDown) {\n            document.dispatchEvent(new CustomEvent('theme:scroll:down', {\n                detail: {\n                    position\n                },\n                bubbles: false\n            }));\n        }\n        wasDown = down;\n        wasUp = up;\n    }\n    function lock(e) {\n        // Prevent body scroll lock race conditions\n        setTimeout(()=>{\n            if (scrollLockTimer) {\n                clearTimeout(scrollLockTimer);\n            }\n            scrollLock.disablePageScroll(e.detail, {\n                allowTouchMove: (el)=>el.tagName === 'TEXTAREA'\n            });\n            document.documentElement.setAttribute('data-scroll-locked', '');\n        });\n    }\n    function unlock(e) {\n        const timeout = e.detail;\n        if (timeout) {\n            scrollLockTimer = setTimeout(removeScrollLock, timeout);\n        } else {\n            removeScrollLock();\n        }\n    }\n    function removeScrollLock() {\n        scrollLock.clearQueueScrollLocks();\n        scrollLock.enablePageScroll();\n        document.documentElement.removeAttribute('data-scroll-locked');\n    }\n    function scrollListener() {\n        let raf;\n        window.addEventListener('scroll', function() {\n            if (raf) {\n                window.cancelAnimationFrame(raf);\n            }\n            raf = window.requestAnimationFrame(dispatch$1);\n        }, {\n            passive: true\n        });\n        window.addEventListener('theme:scroll:lock', lock);\n        window.addEventListener('theme:scroll:unlock', unlock);\n    }\n\n    const selectors$14 = {\n        time: 'time',\n        days: '[data-days]',\n        hours: '[data-hours]',\n        minutes: '[data-minutes]',\n        seconds: '[data-seconds]',\n        shopifySection: '.shopify-section'\n    };\n    const attributes$2 = {\n        expirationBehavior: 'data-expiration-behavior'\n    };\n    const classes$E = {\n        showMessage: 'show-message',\n        hideCountdown: 'hidden'\n    };\n    const settings = {\n        hideSection: 'hide-section',\n        showMessage: 'show-message'\n    };\n    let CountdownTimer = class CountdownTimer extends HTMLElement {\n        connectedCallback() {\n            if (isNaN(this.endDate)) {\n                this.onComplete();\n                return;\n            }\n            if (this.endDate <= Date.now()) {\n                this.onComplete();\n                return;\n            }\n            // Update the countdown every second\n            this.interval = setInterval(this.update, 1000);\n        }\n        disconnectedCallback() {\n            this.stopTimer();\n        }\n        convertTime(timeInMs) {\n            const days = this.formatDigits(parseInt(timeInMs / this.daysInMs, 10));\n            timeInMs -= days * this.daysInMs;\n            const hours = this.formatDigits(parseInt(timeInMs / this.hoursInMs, 10));\n            timeInMs -= hours * this.hoursInMs;\n            const minutes = this.formatDigits(parseInt(timeInMs / this.minutesInMs, 10));\n            timeInMs -= minutes * this.minutesInMs;\n            const seconds = this.formatDigits(parseInt(timeInMs / this.secondsInMs, 10));\n            return {\n                days: days,\n                hours: hours,\n                minutes: minutes,\n                seconds: seconds\n            };\n        }\n        // Make numbers less than 10 to appear with a leading zero like 01, 02, 03\n        formatDigits(number) {\n            if (number < 10) number = '0' + number;\n            return number;\n        }\n        render(timer) {\n            this.days.textContent = timer.days;\n            this.hours.textContent = timer.hours;\n            this.minutes.textContent = timer.minutes;\n            this.seconds.textContent = timer.seconds;\n        }\n        stopTimer() {\n            clearInterval(this.interval);\n        }\n        onComplete() {\n            this.render({\n                days: 0,\n                hours: 0,\n                minutes: 0,\n                seconds: 0\n            });\n            if (this.shouldHideOnComplete) {\n                this.shopifySection.classList.add(classes$E.hideCountdown);\n            }\n            if (this.shouldShowMessage) {\n                this.classList.add(classes$E.showMessage);\n            }\n        }\n        // Function to update the countdown\n        update() {\n            const timeNow = new Date().getTime();\n            const timeDiff = this.endDate - timeNow;\n            if (timeDiff <= 0) {\n                this.stopTimer();\n                this.onComplete();\n            }\n            const timeRemaining = this.convertTime(timeDiff);\n            this.render(timeRemaining);\n        }\n        constructor(){\n            super();\n            this.shopifySection = this.closest(selectors$14.shopifySection);\n            this.expirationBehavior = this.getAttribute(attributes$2.expirationBehavior);\n            this.time = this.querySelector(selectors$14.time);\n            this.days = this.querySelector(selectors$14.days);\n            this.hours = this.querySelector(selectors$14.hours);\n            this.minutes = this.querySelector(selectors$14.minutes);\n            this.seconds = this.querySelector(selectors$14.seconds);\n            // Get the current and expiration dates in Unix timestamp format (milliseconds)\n            this.endDate = Date.parse(this.time.dateTime);\n            this.daysInMs = 1000 * 60 * 60 * 24;\n            this.hoursInMs = this.daysInMs / 24;\n            this.minutesInMs = this.hoursInMs / 60;\n            this.secondsInMs = this.minutesInMs / 60;\n            this.shouldHideOnComplete = this.expirationBehavior === settings.hideSection;\n            this.shouldShowMessage = this.expirationBehavior === settings.showMessage;\n            this.update = this.update.bind(this);\n        }\n    };\n\n    resizeListener();\n    scrollListener();\n    // Tasks to run when the DOM elements are available\n    window.addEventListener('DOMContentLoaded', ()=>{\n        setVarsOnResize();\n        floatLabels(document);\n        errorTabIndex(document);\n        moveModals(document);\n        if (window.theme.settings.animate_scroll) {\n            AOS.refresh();\n        }\n    });\n    // Tasks to run when entire page has finished loading including images, stylesheets, async scripts, etc\n    window.addEventListener('load', ()=>{\n        // Fix any text overflow in position:absolute elements\n        preventOverflow(document);\n    });\n    document.addEventListener('shopify:section:load', (e)=>{\n        const container = e.target;\n        floatLabels(container);\n        errorTabIndex(container);\n        moveModals(container);\n        preventOverflow(container);\n        if (window.theme.settings.animate_scroll) {\n            AOS.refresh();\n        }\n    });\n    document.addEventListener('shopify:section:reorder', ()=>{\n        document.dispatchEvent(new CustomEvent('theme:header:check', {\n            bubbles: false\n        }));\n    });\n    if (!customElements.get('countdown-timer')) {\n        customElements.define('countdown-timer', CountdownTimer);\n    }\n\n    const showElement = (elem, removeProp = false, prop = 'block')=>{\n        if (elem) {\n            if (removeProp) {\n                elem.style.removeProperty('display');\n            } else {\n                elem.style.display = prop;\n            }\n        }\n    };\n\n    function FetchError(object) {\n        this.status = object.status || null;\n        this.headers = object.headers || null;\n        this.json = object.json || null;\n        this.body = object.body || null;\n    }\n    FetchError.prototype = Error.prototype;\n\n    const selectors$13 = {\n        scrollbar: 'data-scrollbar-slider',\n        scrollbarArrowPrev: '[data-scrollbar-arrow-prev]',\n        scrollbarArrowNext: '[data-scrollbar-arrow-next]'\n    };\n    const classes$D = {\n        hidden: 'is-hidden'\n    };\n    const times$1 = {\n        delay: 200\n    };\n    let NativeScrollbar = class NativeScrollbar {\n        init() {\n            if (this.arrowNext && this.arrowPrev) {\n                if (window.isRTL) {\n                    this.togglePrevArrow();\n                } else {\n                    this.toggleNextArrow();\n                }\n                this.events();\n            }\n        }\n        resize() {\n            document.addEventListener('theme:resize', ()=>{\n                if (window.isRTL) {\n                    this.togglePrevArrow();\n                } else {\n                    this.toggleNextArrow();\n                }\n            });\n        }\n        events() {\n            this.arrowNext.addEventListener('click', (event)=>{\n                event.preventDefault();\n                this.goToNext();\n            });\n            this.arrowPrev.addEventListener('click', (event)=>{\n                event.preventDefault();\n                this.goToPrev();\n            });\n            this.scrollbar.addEventListener('scroll', ()=>{\n                this.togglePrevArrow();\n                this.toggleNextArrow();\n            });\n        }\n        goToNext() {\n            const position = this.scrollbar.getBoundingClientRect().width / 2 + this.scrollbar.scrollLeft;\n            this.move(position);\n            this.arrowPrev.classList.remove(classes$D.hidden);\n            this.toggleNextArrow();\n        }\n        goToPrev() {\n            const position = this.scrollbar.scrollLeft - this.scrollbar.getBoundingClientRect().width / 2;\n            this.move(position);\n            this.arrowNext.classList.remove(classes$D.hidden);\n            this.togglePrevArrow();\n        }\n        toggleNextArrow() {\n            setTimeout(()=>{\n                if (window.isRTL) {\n                    this.arrowNext.classList.toggle(classes$D.hidden, this.scrollbar.scrollLeft === 0);\n                } else {\n                    this.arrowNext.classList.toggle(classes$D.hidden, Math.round(this.scrollbar.scrollLeft + this.scrollbar.getBoundingClientRect().width + 1) >= this.scrollbar.scrollWidth);\n                }\n            }, times$1.delay);\n        }\n        togglePrevArrow() {\n            setTimeout(()=>{\n                if (window.isRTL) {\n                    this.arrowPrev.classList.toggle(classes$D.hidden, Math.abs(this.scrollbar.scrollLeft) + this.scrollbar.getBoundingClientRect().width + 1 >= this.scrollbar.scrollWidth);\n                } else {\n                    this.arrowPrev.classList.toggle(classes$D.hidden, this.scrollbar.scrollLeft <= 0);\n                }\n            }, times$1.delay);\n        }\n        scrollToVisibleElement() {\n            [].forEach.call(this.scrollbar.children, (element)=>{\n                element.addEventListener('click', (event)=>{\n                    if (event.target.tagName.toLowerCase() === 'a' || event.currentTarget && event.currentTarget.tagName.toLowerCase() === 'a' || event.currentTarget && event.currentTarget.querySelector('a')) {\n                        event.preventDefault();\n                    }\n                    this.move(element.offsetLeft - element.clientWidth);\n                });\n            });\n        }\n        move(offsetLeft) {\n            this.scrollbar.scrollTo({\n                top: 0,\n                left: offsetLeft,\n                behavior: 'smooth'\n            });\n        }\n        constructor(scrollbar){\n            this.scrollbar = scrollbar;\n            this.arrowNext = this.scrollbar.parentNode.querySelector(selectors$13.scrollbarArrowNext);\n            this.arrowPrev = this.scrollbar.parentNode.querySelector(selectors$13.scrollbarArrowPrev);\n            this.init();\n            this.resize();\n            if (this.scrollbar.hasAttribute(selectors$13.scrollbar)) {\n                this.scrollToVisibleElement();\n            }\n        }\n    };\n\n    const selectors$12 = {\n        siblingsInnerHolder: '[data-sibling-inner]'\n    };\n    let Siblings = class Siblings {\n        init() {\n            this.siblings.forEach((sibling)=>{\n                new NativeScrollbar(sibling);\n            });\n        }\n        constructor(holder){\n            this.siblings = holder.querySelectorAll(selectors$12.siblingsInnerHolder);\n            this.init();\n        }\n    };\n    const siblings = {\n        onLoad () {\n            new Siblings(this.container);\n        }\n    };\n\n    const cookieDefaultValues = {\n        expires: 7,\n        path: '/',\n        domain: window.location.hostname\n    };\n    let Cookies = class Cookies {\n        /**\n       * Write cookie\n       * @param value - String\n       */ write(value) {\n            document.cookie = `${this.options.name}=${value}; expires=${this.options.expires}; path=${this.options.path}; domain=${this.options.domain}`;\n        }\n        /**\n       * Read cookies and returns an array of values\n       * @returns Array\n       */ read() {\n            let cookieValuesArr = [];\n            const hasCookieWithThisName = document.cookie.split('; ').find((row)=>row.startsWith(this.options.name)\n            );\n            if (document.cookie.indexOf('; ') !== -1 && hasCookieWithThisName) {\n                const cookieValue = document.cookie.split('; ').find((row)=>row.startsWith(this.options.name)\n                ).split('=')[1];\n                if (cookieValue !== null) {\n                    cookieValuesArr = cookieValue.split(',');\n                }\n            }\n            return cookieValuesArr;\n        }\n        destroy() {\n            document.cookie = `${this.options.name}=null; expires=${this.options.expires}; path=${this.options.path}; domain=${this.options.domain}`;\n        }\n        remove(removedValue) {\n            const cookieValue = this.read();\n            const position = cookieValue.indexOf(removedValue);\n            if (position !== -1) {\n                cookieValue.splice(position, 1);\n                this.write(cookieValue);\n            }\n        }\n        constructor(options = {}){\n            this.options = {\n                ...cookieDefaultValues,\n                ...options\n            };\n        }\n    };\n\n    const config = {\n        howManyToShow: 4,\n        howManyToStoreInMemory: 10,\n        wrapper: '[data-recently-viewed-products]',\n        limit: 'data-limit',\n        recentTabLink: '[data-recent-link-tab]',\n        recentWrapper: '[data-recent-wrapper]',\n        recentViewedTab: '[data-recently-viewed-tab]',\n        tabsHolderScroll: '[data-tabs-holder-scroll]',\n        apiContent: '[data-api-content]',\n        dataMinimum: 'data-minimum',\n        dataItemId: 'data-item-id'\n    };\n    const classes$C = {\n        hide: 'hide',\n        containerWithoutTabsNav: 'section-without-title--skip'\n    };\n    const cookieConfig = {\n        expires: 90,\n        name: 'shopify_recently_viewed'\n    };\n    const sections$o = [];\n    const excludedHandles = [];\n    let RecentProducts = class RecentProducts {\n        renderProducts() {\n            const recentlyViewedHandlesArray = this.cookie.read();\n            const arrayURLs = [];\n            let counter = 0;\n            if (recentlyViewedHandlesArray.length > 0) {\n                for(let index = 0; index < recentlyViewedHandlesArray.length; index++){\n                    const handle = recentlyViewedHandlesArray[index];\n                    if (excludedHandles.includes(handle)) {\n                        continue;\n                    }\n                    const url = `${window.theme.routes.root_url}products/${handle}?section_id=api-product-grid-item`;\n                    arrayURLs.push(url);\n                    counter++;\n                    if (counter === this.howManyToShow || counter === recentlyViewedHandlesArray.length - 1) {\n                        break;\n                    }\n                }\n                if (arrayURLs.length > 0 && arrayURLs.length >= this.minimum) {\n                    this.container.classList.remove(classes$C.hide);\n                    if (this.recentViewedLink && this.recentViewedLink.previousElementSibling) {\n                        this.tabsHolderScroll.classList.remove(classes$C.hide);\n                        this.container.classList.add(classes$C.containerWithoutTabsNav);\n                    }\n                    const fecthRequests = arrayURLs.map((url)=>fetch(url, {\n                            mode: 'no-cors'\n                        }).then(this.handleErrors)\n                    );\n                    const productMarkups = [];\n                    Promise.allSettled(fecthRequests).then((responses)=>{\n                        return Promise.all(responses.map(async (response)=>{\n                            if (response.status === 'fulfilled') {\n                                productMarkups.push(await response.value.text());\n                            }\n                        }));\n                    }).then(()=>{\n                        productMarkups.forEach((markup)=>{\n                            const buffer = document.createElement('div');\n                            const slide = document.createElement('div');\n                            buffer.innerHTML = markup;\n                            const item = buffer.querySelector(`[${config.dataItemId}]`);\n                            const isEmptyProduct = item.getAttribute(config.dataItemId) === '';\n                            if (isEmptyProduct) {\n                                return;\n                            }\n                            slide.classList.add('product-grid-slide');\n                            slide.setAttribute('data-carousel-slide', null);\n                            slide.setAttribute('data-item', null);\n                            slide.innerHTML = buffer.querySelector(config.apiContent).innerHTML;\n                            this.wrapper.appendChild(slide);\n                        });\n                        new Siblings(this.container);\n                    }).then(()=>{\n                        showElement(this.wrapper, true);\n                        this.container.dispatchEvent(new CustomEvent('theme:recent-products:added', {\n                            bubbles: true\n                        }));\n                    });\n                } else if (this.recentViewedTab) {\n                    const hasSiblingTabs = Array.prototype.filter.call(this.recentViewedTab.parentNode.children, (child)=>{\n                        return child !== this.recentViewedTab;\n                    }).length > 1;\n                    if (this.recentViewedLink && this.recentViewedLink.previousElementSibling) {\n                        this.tabsHolderScroll.classList.add(classes$C.hide);\n                        this.container.classList.remove(classes$C.containerWithoutTabsNav);\n                    }\n                    if (!hasSiblingTabs) {\n                        this.container.classList.add(classes$C.hide);\n                    }\n                } else {\n                    this.container.classList.add(classes$C.hide);\n                }\n            }\n        }\n        handleErrors(response) {\n            if (!response.ok) {\n                return response.text().then(function(text) {\n                    const e = new FetchError({\n                        status: response.statusText,\n                        headers: response.headers,\n                        text: text\n                    });\n                    throw e;\n                });\n            }\n            return response;\n        }\n        constructor(section){\n            this.container = section.container;\n            this.cookie = new Cookies(cookieConfig);\n            this.wrapper = this.container.querySelector(config.wrapper);\n            if (this.wrapper === null) {\n                return;\n            }\n            this.howManyToShow = parseInt(this.container.querySelector(config.recentWrapper).getAttribute(config.limit)) || config.howManyToShow;\n            this.minimum = parseInt(this.container.querySelector(config.recentWrapper).getAttribute(config.dataMinimum));\n            this.recentViewedTab = this.container.querySelector(config.recentViewedTab);\n            this.recentViewedLink = this.container.querySelector(config.recentTabLink);\n            this.tabsHolderScroll = this.container.querySelector(config.tabsHolderScroll);\n            this.renderProducts();\n        }\n    };\n    let RecordRecentlyViewed = class RecordRecentlyViewed {\n        updateCookie() {\n            let recentlyViewed = this.cookie.read();\n            // In what position is that product in memory.\n            const position = recentlyViewed.indexOf(this.handle);\n            // If not in memory.\n            if (position === -1) {\n                // Add product at the start of the list.\n                recentlyViewed.unshift(this.handle);\n                // Only keep what we need.\n                recentlyViewed = recentlyViewed.splice(0, config.howManyToStoreInMemory);\n            } else {\n                // Remove the product and place it at start of list.\n                recentlyViewed.splice(position, 1);\n                recentlyViewed.unshift(this.handle);\n            }\n            // Update cookie.\n            const recentlyViewedString = recentlyViewed.join(',');\n            this.cookie.write(recentlyViewedString);\n        }\n        constructor(handle){\n            this.handle = encodeURIComponent(handle);\n            this.cookie = new Cookies(cookieConfig);\n            if (typeof this.handle === 'undefined') {\n                return;\n            }\n            excludedHandles.push(this.handle);\n            this.updateCookie();\n        }\n    };\n    const recentProducts = {\n        onLoad () {\n            sections$o[this.id] = new RecentProducts(this);\n        }\n    };\n\n    /**\n     * Checks the device resolution/touch\n     * -----------------------------------------------------------------------------\n     *\n     * Ensures that we always know if we are using a Touch, Mobile, Tablet, or Desktop device.\n     *\n     * if (resolution.isMobile) {}\n     *\n     * It refreshes dynamically. We can also check when that happens by using the onChange method:\n     *\n     * resolution.onChange(() => {\n     *  // only triggers once when we hop between different media screen sizes\n     *  // for example, from Mobile(<= 768px) to Tablet(>= 769px and <=1100px)\n     *  // or from Tablet(>= 769px and <=1100px) to Desktop(>=1101px)\n     *\n     *  if (resolution.isMobile() || resolution.isTouch()) {}\n     * });\n     *\n     */ function resolution() {\n        const touchQuery = `(any-pointer: coarse)`;\n        const mobileQuery = `(max-width: ${window.theme.sizes.medium}px)`;\n        const tabletQuery = `(min-width: ${window.theme.sizes.medium + 1}px) and (max-width: ${window.theme.sizes.large}px)`;\n        const desktopQuery = `(min-width: ${window.theme.sizes.large + 1}px)`;\n        resolution.isTouch = ()=>{\n            const touchMatches = window.matchMedia(touchQuery).matches;\n            document.documentElement.classList.toggle('supports-touch', touchMatches);\n            return touchMatches;\n        };\n        resolution.isMobile = ()=>window.matchMedia(mobileQuery).matches\n        ;\n        resolution.isTablet = ()=>window.matchMedia(tabletQuery).matches\n        ;\n        resolution.isDesktop = ()=>window.matchMedia(desktopQuery).matches\n        ;\n        const queries = [\n            [\n                touchQuery,\n                resolution.isTouch\n            ],\n            [\n                mobileQuery,\n                resolution.isMobile\n            ],\n            [\n                tabletQuery,\n                resolution.isTablet\n            ],\n            [\n                desktopQuery,\n                resolution.isDesktop\n            ], \n        ];\n        resolution.onChange = (callback)=>{\n            queries.forEach((query)=>{\n                window.matchMedia(query[0]).addEventListener('change', ()=>{\n                    if (query[1]() && callback) callback();\n                });\n            });\n        };\n    }resolution();\n\n    const selectors$11 = {\n        holderItems: '[data-custom-scrollbar-items]',\n        scrollbar: '[data-custom-scrollbar]',\n        scrollbarTrack: '[data-custom-scrollbar-track]'\n    };\n    const classes$B = {\n        hide: 'hide'\n    };\n    const sections$n = {};\n    let CustomScrollbar = class CustomScrollbar {\n        events() {\n            this.holderItems.addEventListener('scroll', this.calculatePosition.bind(this));\n            this.holderItems.addEventListener('theme:carousel:scroll', this.calculatePosition.bind(this));\n            document.addEventListener('theme:resize:width', this.calculateTrackWidth.bind(this));\n            document.addEventListener('theme:resize:width', this.calculatePosition.bind(this));\n        }\n        calculateTrackWidth() {\n            // Javascript can't execute calc() (from `--outer` variable) - create a new div with width property instead `getPropertyValue('--outer')` to can get the width of `after` on the holder\n            const htmlObject = document.createElement('div');\n            this.holderItems.prepend(htmlObject);\n            htmlObject.style.display = 'none';\n            htmlObject.style.width = getComputedStyle(this.holderItems).getPropertyValue('--outer');\n            const widthAfter = parseInt(getComputedStyle(htmlObject).getPropertyValue('width'));\n            this.holderItems.firstChild.remove();\n            this.scrollbarWidth = this.scrollbar.clientWidth === 0 ? this.scrollbar.parentNode.getBoundingClientRect().width : this.scrollbar.clientWidth;\n            setTimeout(()=>{\n                const childWidth = this.children[0].clientWidth;\n                const childMarginRight = Number(getComputedStyle(this.children[0]).marginRight.replace('px', ''));\n                const childMarginLeft = Number(getComputedStyle(this.children[0]).marginLeft.replace('px', ''));\n                // Minus `childMarginRight` is added to the end with minus because the last child doesn't have margin-right\n                this.scrollWidth = this.children.length * (childWidth + childMarginRight + childMarginLeft) + widthAfter - childMarginRight;\n                this.trackWidth = (this.scrollbarWidth + widthAfter) / this.scrollWidth * 100;\n                this.trackWidth = this.trackWidth < 5 ? 5 : this.trackWidth;\n                this.scrollbar.style.setProperty('--track-width', `${this.trackWidth}%`);\n                const hideScrollbar = Math.ceil(this.trackWidth) >= 100;\n                this.scrollbar.classList.toggle(classes$B.hide, hideScrollbar);\n            }, 100);\n        }\n        calculatePosition() {\n            // Math.abs() to ensure this works when RTL\n            let position = Math.abs(this.holderItems.scrollLeft) / (this.holderItems.scrollWidth - this.holderItems.clientWidth);\n            position *= this.scrollbar.clientWidth - this.scrollbarTrack.clientWidth;\n            position = position < 0 ? 0 : position;\n            position = isNaN(position) ? 0 : position;\n            this.scrollbar.style.setProperty('--position', `${Math.round(position)}px`);\n            document.dispatchEvent(new CustomEvent('theme:scrollbar:scroll', {\n                bubbles: true,\n                detail: {\n                    holder: this.holderItems\n                }\n            }));\n        }\n        constructor(holder, children = null){\n            this.holderItems = holder.querySelector(selectors$11.holderItems);\n            this.scrollbar = holder.querySelector(selectors$11.scrollbar);\n            this.scrollbarTrack = holder.querySelector(selectors$11.scrollbarTrack);\n            this.trackWidth = 0;\n            this.scrollWidth = 0;\n            if (this.scrollbar && this.holderItems) {\n                this.children = children || this.holderItems.children;\n                this.events();\n                this.calculateTrackWidth();\n            }\n        }\n    };\n    const customScrollbar = {\n        onLoad () {\n            sections$n[this.id] = new CustomScrollbar(this.container);\n        }\n    };\n\n    const selectors$10 = {\n        carousel: '[data-carousel]',\n        carouselWithProgress: 'data-carousel-progress',\n        carouselSlide: '[data-carousel-slide]',\n        carouselFirstSlidePhoto: '[data-grid-slide]',\n        pgiFirstSlidePhoto: 'product-grid-item-variant:not([hidden]) [data-grid-slide]',\n        wrapper: '[data-wrapper]',\n        carouselTrack: '[data-carousel-track]',\n        slider: '.flickity-slider',\n        carouselOptions: 'data-options',\n        carouselCustomScrollbar: 'data-custom-scrollbar-items',\n        carouselPrev: '.flickity-button.previous',\n        carouselNext: '.flickity-button.next',\n        recentlyViewHolder: 'data-recently-viewed-products',\n        relatedHolder: 'data-related-products',\n        sectionHolder: '[data-section-id]'\n    };\n    const classes$A = {\n        wrapper: 'wrapper',\n        arrowsForceTop: 'flickity-force-arrows-top',\n        arrowsOnSide: 'not-moved-arrows',\n        hide: 'hide',\n        flickityEnabled: 'flickity-enabled',\n        hiddenArrows: 'hidden-arrows',\n        flickityStatic: 'flickity-static'\n    };\n    const offsets$1 = {\n        additionalOffsetWrapper: 112\n    };\n    let Carousel = class Carousel extends HTMLElement {\n        connectedCallback() {\n            this.carousel = this.container.querySelector(selectors$10.carousel);\n            this.carouselTrack = this.container.querySelector(selectors$10.carouselTrack);\n            this.wrapper = this.container.closest(selectors$10.wrapper);\n            this.section = this.container.closest(selectors$10.sectionHolder);\n            this.slidesVisible = null;\n            this.carouselInstance = null;\n            this.carouselPrev = null;\n            this.carouselNext = null;\n            this.customOptions = {};\n            this.toggleWrapperModifierEvent = ()=>this.toggleWrapperModifier()\n            ;\n            if (this.carousel && this.carousel.hasAttribute(selectors$10.recentlyViewHolder)) {\n                // Check carousel in recently viewed products\n                this.section.addEventListener('theme:recent-products:added', ()=>{\n                    this.init();\n                });\n            } else if (this.carousel && this.carousel.hasAttribute(selectors$10.relatedHolder)) {\n                // Check carousel in recommendation products but without overwrite option\n                this.section.addEventListener('theme:related-products:added', ()=>{\n                    this.init();\n                });\n            } else {\n                this.init();\n            }\n        }\n        init() {\n            if (!this.carousel) {\n                return;\n            }\n            this.slidesTotal = this.carousel.querySelectorAll(selectors$10.carouselSlide).length;\n            this.getGridLayout();\n            this.trackVisibleSlides();\n            if (this.carousel.hasAttribute(selectors$10.carouselOptions)) {\n                this.customOptions = JSON.parse(decodeURIComponent(this.carousel.getAttribute(selectors$10.carouselOptions)));\n            }\n            this.initCarousel();\n            this.calculatedArrowsTopPosition();\n            this.toggleWrapperModifier();\n            document.addEventListener('theme:resize:width', this.toggleWrapperModifierEvent);\n            if (this.carousel.hasAttribute(selectors$10.carouselWithProgress)) {\n                this.progressBarCalculate();\n            }\n            if (this.carousel.hasAttribute(selectors$10.carouselCustomScrollbar)) {\n                new CustomScrollbar(this.container);\n            }\n        }\n        initCarousel() {\n            this.options = {\n                accessibility: true,\n                contain: true,\n                freeScroll: true,\n                prevNextButtons: true,\n                wrapArround: false,\n                groupCells: false,\n                autoPlay: false,\n                pageDots: false,\n                cellAlign: window.isRTL ? 'right' : 'left',\n                rightToLeft: window.isRTL,\n                dragThreshold: 10,\n                arrowShape: {\n                    x0: 10,\n                    x1: 60,\n                    y1: 50,\n                    x2: 67.5,\n                    y2: 42.5,\n                    x3: 25\n                },\n                on: {\n                    ready: ()=>{\n                        this.removeIncorrectAria();\n                    },\n                    resize: ()=>{\n                        this.toggleArrows();\n                        this.calculatedArrowsTopPosition();\n                        setTimeout(()=>{\n                            this.visibleSlides();\n                        }, 100);\n                    }\n                },\n                ...this.customOptions\n            };\n            this.carouselInstance = new Flickity(this.carousel, this.options);\n            this.carouselPrev = this.carousel.querySelector(selectors$10.carouselPrev);\n            this.carouselNext = this.carousel.querySelector(selectors$10.carouselNext);\n            this.container.addEventListener('theme:tab:change', ()=>{\n                this.carouselInstance.resize();\n                this.carouselPrev = this.carousel.querySelector(selectors$10.carouselPrev);\n                this.carouselNext = this.carousel.querySelector(selectors$10.carouselNext);\n            });\n            this.carouselInstance.on('dragStart', ()=>{\n                this.carouselInstance.slider.style.pointerEvents = 'none';\n                if (!resolution.isMobile) this.containDrag();\n            });\n            this.carouselInstance.on('dragEnd', ()=>{\n                this.carouselInstance.slider.style.pointerEvents = 'auto';\n                if (!resolution.isMobile) this.containDrag();\n            });\n            this.carouselInstance.on('change', (index)=>this.lockArrows(index)\n            );\n            setTimeout(()=>{\n                this.visibleSlides();\n            }, 100);\n            if (Shopify.designMode) {\n                setTimeout(()=>{\n                    if (this.carouselInstance.options.watchCSS && !this.carousel.classList.contains(classes$A.flickityEnabled)) {\n                        this.carouselInstance.destroy();\n                        this.carouselInstance = new Flickity(this.carousel, this.options);\n                        this.carouselInstance.resize();\n                        this.carouselPrev = this.carousel.querySelector(selectors$10.carouselPrev);\n                        this.carouselNext = this.carousel.querySelector(selectors$10.carouselNext);\n                    } else {\n                        this.carouselInstance.resize();\n                    }\n                }, 10);\n            }\n            this.carousel.classList.toggle(classes$A.flickityStatic, this.smallItems === this.carousel.querySelectorAll(selectors$10.carouselSlide).length);\n            new Siblings(this.container);\n        }\n        calculatedArrowsTopPosition() {\n            const carouselFirstSlidePhoto = this.container.querySelector(selectors$10.carouselFirstSlidePhoto);\n            const pgiFirstSlidePhoto = this.container.querySelector(selectors$10.pgiFirstSlidePhoto);\n            if (pgiFirstSlidePhoto) {\n                const buttonOffset = pgiFirstSlidePhoto.offsetHeight / 2;\n                this.carousel.style.setProperty('--buttons-top', `${buttonOffset}px`);\n            } else if (carouselFirstSlidePhoto) {\n                const buttonOffset = carouselFirstSlidePhoto.offsetHeight / 2;\n                this.carousel.style.setProperty('--buttons-top', `${buttonOffset}px`);\n            }\n        }\n        toggleWrapperModifier() {\n            if (!this.wrapper) {\n                return;\n            }\n            const scrollbarWidth = Number(getComputedStyle(document.documentElement).getPropertyValue('--scrollbar-width').replace('px', ''));\n            const wrapperWidth = this.wrapper.clientWidth;\n            this.wrapperWidthWithGutter = wrapperWidth + offsets$1.additionalOffsetWrapper + scrollbarWidth;\n            if (window.innerWidth >= this.wrapperWidthWithGutter) {\n                // the screen is wide, have the arrows beside the carousel\n                this.wrapper.classList.remove(classes$A.arrowsForceTop);\n                this.section.classList.add(classes$A.arrowsOnSide);\n            }\n            if (window.innerWidth < this.wrapperWidthWithGutter) {\n                // the screen is too narrow for arrows beside the carousel\n                // add the wrapper--full class to trick the layout\n                this.wrapper.classList.add(classes$A.arrowsForceTop);\n                this.section.classList.remove(classes$A.arrowsOnSide);\n            }\n        }\n        progressBarCalculate() {\n            if (this.carouselInstance !== null && this.carouselTrack) {\n                this.carouselInstance.on('scroll', (progress)=>{\n                    progress = Math.max(0, Math.min(1, progress)) * 100 + '%';\n                    this.carouselTrack.style.width = progress;\n                });\n            }\n        }\n        getGridLayout() {\n            this.largeItems = Number(getComputedStyle(this.carousel).getPropertyValue('--grid-large-items')) || 3;\n            this.mediumItems = Number(getComputedStyle(this.carousel).getPropertyValue('--grid-medium-items')) || this.largeItems;\n            this.smallItems = Number(getComputedStyle(this.carousel).getPropertyValue('--grid-small-items')) || this.mediumItems || this.largeItems;\n        }\n        visibleSlides() {\n            if (!this.carousel) {\n                return;\n            }\n            this.getGridLayout();\n            const carouselWidth = this.carousel.clientWidth || this.carouselInstance.size.width;\n            const slideWidth = this.carouselInstance !== null && this.carouselInstance.selectedElement ? this.carouselInstance.selectedElement.clientWidth : this.carousel.querySelector(selectors$10.carouselSlide).clientWidth;\n            const countSlides = this.carouselInstance !== null && this.carouselInstance.slides ? this.carouselInstance.slides.length : this.carousel.querySelectorAll(selectors$10.carouselSlide).length;\n            const numberOfVisibleSlides = Math.floor(carouselWidth / slideWidth);\n            this.section.classList.remove(classes$A.hiddenArrows);\n            if (this.carouselPrev && this.carouselNext) {\n                this.carouselPrev.classList.remove(classes$A.hide);\n                this.carouselNext.classList.remove(classes$A.hide);\n            }\n            // Desktop\n            if (window.innerWidth > window.theme.sizes.large && !this.options.groupCells) {\n                if (numberOfVisibleSlides <= this.largeItems && countSlides <= this.largeItems && this.carouselPrev && this.carouselNext) {\n                    this.hideArrows();\n                }\n            }\n            // Tablet\n            if (window.innerWidth >= window.theme.sizes.medium && window.innerWidth <= window.theme.sizes.large && !this.options.groupCells) {\n                if (numberOfVisibleSlides <= this.mediumItems && countSlides <= this.mediumItems && this.carouselPrev && this.carouselNext) {\n                    this.hideArrows();\n                }\n            }\n            // Mobile\n            if (window.innerWidth < window.theme.sizes.medium && !this.options.groupCells) {\n                if (numberOfVisibleSlides <= this.smallItems && countSlides <= this.smallItems && this.carouselPrev && this.carouselNext) {\n                    this.hideArrows();\n                }\n            }\n        }\n        trackVisibleSlides() {\n            const isSmallDown = window.matchMedia(`(max-width: ${window.theme.sizes.medium - 1}px)`);\n            const isTablet = window.matchMedia(`(min-width: ${window.theme.sizes.medium}px) and (max-width: ${window.theme.sizes.large - 1}px)`);\n            const isDesktop = window.matchMedia(`(min-width: ${window.theme.sizes.large}px)`);\n            isSmallDown.addEventListener('change', (event)=>{\n                event.matches ? this.slidesVisible = this.smallItems : true;\n            });\n            isSmallDown.matches ? this.slidesVisible = this.smallItems : true;\n            isTablet.addEventListener('change', (event)=>{\n                event.matches ? this.slidesVisible = this.mediumItems : true;\n            });\n            isTablet.matches ? this.slidesVisible = this.mediumItems : true;\n            isDesktop.addEventListener('change', (event)=>{\n                event.matches ? this.slidesVisible = this.largeItems : true;\n            });\n            isDesktop.matches ? this.slidesVisible = this.largeItems : true;\n        }\n        containDrag() {\n            // Dragging agressively in flickity will select the last cell in the list\n            // instead of the first cell of the last slide (slide is a set of cells).\n            // We detect drag events, and move the selection back to the first cell\n            // of the last slide -- the lastSelectableCell.\n            const lastSelectableCell = this.slidesTotal - this.slidesVisible;\n            if (this.carouselInstance.selectedIndex >= lastSelectableCell) {\n                this.carouselInstance.select(lastSelectableCell);\n                this.lockArrows(this.carouselInstance.selectedIndex);\n            }\n        }\n        lockArrows(index) {\n            if (this.options.wrapAround || this.options.groupCells) {\n                return;\n            }\n            const nextIndex = parseInt(index);\n            const lastSelectableCell = this.slidesTotal - this.slidesVisible;\n            this.carouselNext.disabled = nextIndex >= lastSelectableCell;\n        }\n        showArrows() {\n            this.carouselPrev.classList.remove(classes$A.hide);\n            this.carouselNext.classList.remove(classes$A.hide);\n            this.section.classList.remove(classes$A.hiddenArrows);\n        }\n        hideArrows() {\n            this.carouselPrev.classList.add(classes$A.hide);\n            this.carouselNext.classList.add(classes$A.hide);\n            this.section.classList.add(classes$A.hiddenArrows);\n        }\n        toggleArrows() {\n            if (this.carouselPrev && this.carouselNext) {\n                if (this.carouselPrev.disabled && this.carouselNext.disabled) {\n                    this.hideArrows();\n                } else {\n                    this.showArrows();\n                }\n            }\n        }\n        // Flickity VERY annoyingly adds aria-hidden=\"true\" to all slides except the current one which causes lighthouse accessibility failure\n        // see https://github.com/metafizzy/flickity/issues/1228\n        removeIncorrectAria() {\n            const slidesHidden = this.carousel.querySelectorAll('[aria-hidden=\"true\"]');\n            slidesHidden.forEach((el)=>el.removeAttribute('aria-hidden')\n            );\n        }\n        constructor(){\n            super();\n            this.container = this;\n        }\n    };\n    if (!customElements.get('flickity-carousel')) {\n        customElements.define('flickity-carousel', Carousel);\n    }\n\n    const selectors$$ = {\n        templateAddresses: '[data-address-wrapper]',\n        addressNewForm: '[data-new-address-form]',\n        addressNewFormInner: '[new-address-form-inner]',\n        btnNew: '.address-new-toggle',\n        btnEdit: '.address-edit-toggle',\n        btnDelete: '.address-delete',\n        classHide: 'hide',\n        dataFormId: 'data-form-id',\n        dataConfirmMessage: 'data-confirm-message',\n        defaultConfirmMessage: 'Are you sure you wish to delete this address?',\n        editAddress: '#EditAddress',\n        addressCountryNew: 'AddressCountryNew',\n        addressProvinceNew: 'AddressProvinceNew',\n        addressProvinceContainerNew: 'AddressProvinceContainerNew',\n        addressCountryOption: '.address-country-option',\n        addressCountry: 'AddressCountry',\n        addressProvince: 'AddressProvince',\n        addressProvinceContainer: 'AddressProvinceContainer'\n    };\n    let Addresses = class Addresses {\n        init() {\n            if (this.addressNewForm) {\n                const section = this.section;\n                const newAddressFormInner = this.addressNewForm.querySelector(selectors$$.addressNewFormInner);\n                this.customerAddresses();\n                const newButtons = section.querySelectorAll(selectors$$.btnNew);\n                if (newButtons.length) {\n                    newButtons.forEach((element)=>{\n                        element.addEventListener('click', function() {\n                            newAddressFormInner.classList.toggle(selectors$$.classHide);\n                        });\n                    });\n                }\n                const editButtons = section.querySelectorAll(selectors$$.btnEdit);\n                if (editButtons.length) {\n                    editButtons.forEach((element)=>{\n                        element.addEventListener('click', function() {\n                            const formId = this.getAttribute(selectors$$.dataFormId);\n                            section.querySelector(`${selectors$$.editAddress}_${formId}`).classList.toggle(selectors$$.classHide);\n                        });\n                    });\n                }\n                const deleteButtons = section.querySelectorAll(selectors$$.btnDelete);\n                if (deleteButtons.length) {\n                    deleteButtons.forEach((element)=>{\n                        element.addEventListener('click', function() {\n                            const formId = this.getAttribute(selectors$$.dataFormId);\n                            const confirmMessage = this.getAttribute(selectors$$.dataConfirmMessage);\n                            if (confirm(confirmMessage || selectors$$.defaultConfirmMessage)) {\n                                Shopify.postLink(window.theme.routes.account_addresses_url + '/' + formId, {\n                                    parameters: {\n                                        _method: 'delete'\n                                    }\n                                });\n                            }\n                        });\n                    });\n                }\n            }\n        }\n        customerAddresses() {\n            // Initialize observers on address selectors, defined in shopify_common.js\n            if (Shopify.CountryProvinceSelector) {\n                new Shopify.CountryProvinceSelector(selectors$$.addressCountryNew, selectors$$.addressProvinceNew, {\n                    hideElement: selectors$$.addressProvinceContainerNew\n                });\n            }\n            // Initialize each edit form's country/province selector\n            const countryOptions = this.section.querySelectorAll(selectors$$.addressCountryOption);\n            countryOptions.forEach((element)=>{\n                const formId = element.getAttribute(selectors$$.dataFormId);\n                const countrySelector = `${selectors$$.addressCountry}_${formId}`;\n                const provinceSelector = `${selectors$$.addressProvince}_${formId}`;\n                const containerSelector = `${selectors$$.addressProvinceContainer}_${formId}`;\n                new Shopify.CountryProvinceSelector(countrySelector, provinceSelector, {\n                    hideElement: containerSelector\n                });\n            });\n        }\n        constructor(section){\n            this.section = section;\n            this.addressNewForm = this.section.querySelector(selectors$$.addressNewForm);\n            this.init();\n        }\n    };\n    const template = document.querySelector(selectors$$.templateAddresses);\n    if (template) {\n        new Addresses(template);\n    }\n\n    /**\n     * Password Template Script\n     * ------------------------------------------------------------------------------\n     * A file that contains code for the Password template.\n     *\n     * @namespace password\n     */ (function() {\n        var recoverPasswordForm = document.querySelector('#RecoverPassword');\n        if (recoverPasswordForm) {\n            customerLogin();\n        }\n        function customerLogin() {\n            var config = {\n                recoverPasswordForm: '#RecoverPassword',\n                hideRecoverPasswordLink: '#HideRecoverPasswordLink'\n            };\n            checkUrlHash();\n            resetPasswordSuccess();\n            document.querySelector(config.recoverPasswordForm).addEventListener('click', onShowHidePasswordForm);\n            document.querySelector(config.hideRecoverPasswordLink).addEventListener('click', onShowHidePasswordForm);\n            function onShowHidePasswordForm(evt) {\n                evt.preventDefault();\n                toggleRecoverPasswordForm();\n            }\n            function checkUrlHash() {\n                var hash = window.location.hash;\n                // Allow deep linking to recover password form\n                if (hash === '#recover') {\n                    toggleRecoverPasswordForm();\n                }\n            }\n            /**\n         *  Show/Hide recover password form\n         */ function toggleRecoverPasswordForm() {\n                var emailValue = document.querySelector('#CustomerEmail').value;\n                document.querySelector('#RecoverEmail').value = emailValue;\n                document.querySelector('#RecoverPasswordForm').classList.toggle('display-none');\n                document.querySelector('#CustomerLoginForm').classList.toggle('display-none');\n            }\n            /**\n         *  Show reset password success message\n         */ function resetPasswordSuccess() {\n                var formSuccess = document.querySelector('.reset-password-success');\n                // check if reset password form was successfully submited.\n                if (formSuccess) {\n                    document.querySelector('#ResetSuccess').classList.remove('display-none');\n                }\n            }\n        }\n    })();\n\n    window.Shopify = window.Shopify || {};\n    window.Shopify.theme = window.Shopify.theme || {};\n    window.Shopify.theme.sections = window.Shopify.theme.sections || {};\n    window.Shopify.theme.sections.registered = window.Shopify.theme.sections.registered || {};\n    window.Shopify.theme.sections.instances = window.Shopify.theme.sections.instances || [];\n    const registered = window.Shopify.theme.sections.registered;\n    const instances = window.Shopify.theme.sections.instances;\n    const selectors$_ = {\n        id: 'data-section-id',\n        type: 'data-section-type'\n    };\n    let Registration = class Registration {\n        getStack() {\n            return this.callStack;\n        }\n        constructor(type = null, components = []){\n            this.type = type;\n            this.components = validateComponentsArray(components);\n            this.callStack = {\n                onLoad: [],\n                onUnload: [],\n                onSelect: [],\n                onDeselect: [],\n                onBlockSelect: [],\n                onBlockDeselect: [],\n                onReorder: []\n            };\n            components.forEach((comp)=>{\n                for (const [key, value] of Object.entries(comp)){\n                    const arr = this.callStack[key];\n                    if (Array.isArray(arr) && typeof value === 'function') {\n                        arr.push(value);\n                    } else {\n                        console.warn(`Unregisted function: '${key}' in component: '${this.type}'`);\n                        console.warn(value);\n                    }\n                }\n            });\n        }\n    };\n    let Section = class Section {\n        callFunctions(key, e = null) {\n            this.callStack[key].forEach((func)=>{\n                const props = {\n                    id: this.id,\n                    type: this.type,\n                    container: this.container\n                };\n                if (e) {\n                    func.call(props, e);\n                } else {\n                    func.call(props);\n                }\n            });\n        }\n        onLoad() {\n            this.callFunctions('onLoad');\n        }\n        onUnload() {\n            this.callFunctions('onUnload');\n        }\n        onSelect(e) {\n            this.callFunctions('onSelect', e);\n        }\n        onDeselect(e) {\n            this.callFunctions('onDeselect', e);\n        }\n        onBlockSelect(e) {\n            this.callFunctions('onBlockSelect', e);\n        }\n        onBlockDeselect(e) {\n            this.callFunctions('onBlockDeselect', e);\n        }\n        onReorder(e) {\n            this.callFunctions('onReorder', e);\n        }\n        constructor(container, registration){\n            this.container = validateContainerElement(container);\n            this.id = container.getAttribute(selectors$_.id);\n            this.type = registration.type;\n            this.callStack = registration.getStack();\n            try {\n                this.onLoad();\n            } catch (e) {\n                // We catch all errors throw in sections in order to prevent minor errors in apps from breaking everything else\n                console.warn(`Error in section: ${this.id}`);\n                console.warn(this);\n                console.error(e);\n            }\n        }\n    };\n    function validateContainerElement(container) {\n        if (!(container instanceof Element)) {\n            throw new TypeError('Theme Sections: Attempted to load section. The section container provided is not a DOM element.');\n        }\n        if (container.getAttribute(selectors$_.id) === null) {\n            throw new Error('Theme Sections: The section container provided does not have an id assigned to the ' + selectors$_.id + ' attribute.');\n        }\n        return container;\n    }\n    function validateComponentsArray(value) {\n        if (typeof value !== 'undefined' && typeof value !== 'object' || value === null) {\n            throw new TypeError('Theme Sections: The components object provided is not a valid');\n        }\n        return value;\n    }\n    /*\n     * @shopify/theme-sections\n     * -----------------------------------------------------------------------------\n     *\n     * A framework to provide structure to your Shopify sections and a load and unload\n     * lifecycle. The lifecycle is automatically connected to theme editor events so\n     * that your sections load and unload as the editor changes the content and\n     * settings of your sections.\n     */ function register(type, components) {\n        if (typeof type !== 'string') {\n            throw new TypeError('Theme Sections: The first argument for .register must be a string that specifies the type of the section being registered');\n        }\n        if (typeof registered[type] !== 'undefined') {\n            throw new Error('Theme Sections: A section of type \"' + type + '\" has already been registered. You cannot register the same section type twice');\n        }\n        if (!Array.isArray(components)) {\n            components = [\n                components\n            ];\n        }\n        const section = new Registration(type, components);\n        registered[type] = section;\n        return registered;\n    }\n    function load(types, containers) {\n        types = normalizeType(types);\n        if (typeof containers === 'undefined') {\n            containers = document.querySelectorAll('[' + selectors$_.type + ']');\n        }\n        containers = normalizeContainers(containers);\n        types.forEach(function(type) {\n            const registration = registered[type];\n            if (typeof registration === 'undefined') {\n                return;\n            }\n            containers = containers.filter(function(container) {\n                // Filter from list of containers because container already has an instance loaded\n                if (isInstance(container)) {\n                    return false;\n                }\n                // Filter from list of containers because container doesn't have data-section-type attribute\n                if (container.getAttribute(selectors$_.type) === null) {\n                    return false;\n                }\n                // Keep in list of containers because current type doesn't match\n                if (container.getAttribute(selectors$_.type) !== type) {\n                    return true;\n                }\n                instances.push(new Section(container, registration));\n                // Filter from list of containers because container now has an instance loaded\n                return false;\n            });\n        });\n    }\n    function unload(selector) {\n        var instancesToUnload = getInstances(selector);\n        instancesToUnload.forEach(function(instance) {\n            var index = instances.map(function(e) {\n                return e.id;\n            }).indexOf(instance.id);\n            instances.splice(index, 1);\n            instance.onUnload();\n        });\n    }\n    function reorder(selector) {\n        var instancesToReorder = getInstances(selector);\n        instancesToReorder.forEach(function(instance) {\n            instance.onReorder();\n        });\n    }\n    function getInstances(selector) {\n        var filteredInstances = [];\n        // Fetch first element if its an array\n        if (NodeList.prototype.isPrototypeOf(selector) || Array.isArray(selector)) {\n            var firstElement = selector[0];\n        }\n        // If selector element is DOM element\n        if (selector instanceof Element || firstElement instanceof Element) {\n            var containers = normalizeContainers(selector);\n            containers.forEach(function(container) {\n                filteredInstances = filteredInstances.concat(instances.filter(function(instance) {\n                    return instance.container === container;\n                }));\n            });\n        // If select is type string\n        } else if (typeof selector === 'string' || typeof firstElement === 'string') {\n            var types = normalizeType(selector);\n            types.forEach(function(type) {\n                filteredInstances = filteredInstances.concat(instances.filter(function(instance) {\n                    return instance.type === type;\n                }));\n            });\n        }\n        return filteredInstances;\n    }\n    function getInstanceById(id) {\n        var instance;\n        for(var i = 0; i < instances.length; i++){\n            if (instances[i].id === id) {\n                instance = instances[i];\n                break;\n            }\n        }\n        return instance;\n    }\n    function isInstance(selector) {\n        return getInstances(selector).length > 0;\n    }\n    function normalizeType(types) {\n        // If '*' then fetch all registered section types\n        if (types === '*') {\n            types = Object.keys(registered);\n        // If a single section type string is passed, put it in an array\n        } else if (typeof types === 'string') {\n            types = [\n                types\n            ];\n        // If single section constructor is passed, transform to array with section\n        // type string\n        } else if (types.constructor === Section) {\n            types = [\n                types.prototype.type\n            ];\n        // If array of typed section constructors is passed, transform the array to\n        // type strings\n        } else if (Array.isArray(types) && types[0].constructor === Section) {\n            types = types.map(function(Section1) {\n                return Section1.type;\n            });\n        }\n        types = types.map(function(type) {\n            return type.toLowerCase();\n        });\n        return types;\n    }\n    function normalizeContainers(containers) {\n        // Nodelist with entries\n        if (NodeList.prototype.isPrototypeOf(containers) && containers.length > 0) {\n            containers = Array.prototype.slice.call(containers);\n        // Empty Nodelist\n        } else if (NodeList.prototype.isPrototypeOf(containers) && containers.length === 0) {\n            containers = [];\n        // Handle null (document.querySelector() returns null with no match)\n        } else if (containers === null) {\n            containers = [];\n        // Single DOM element\n        } else if (!Array.isArray(containers) && containers instanceof Element) {\n            containers = [\n                containers\n            ];\n        }\n        return containers;\n    }\n    if (window.Shopify.designMode) {\n        document.addEventListener('shopify:section:load', function(event) {\n            var id = event.detail.sectionId;\n            var container = event.target.querySelector('[' + selectors$_.id + '=\"' + id + '\"]');\n            if (container !== null) {\n                load(container.getAttribute(selectors$_.type), container);\n            }\n        });\n        document.addEventListener('shopify:section:reorder', function(event) {\n            var id = event.detail.sectionId;\n            var container = event.target.querySelector('[' + selectors$_.id + '=\"' + id + '\"]');\n            var instance = getInstances(container)[0];\n            if (typeof instance === 'object') {\n                reorder(container);\n            }\n        });\n        document.addEventListener('shopify:section:unload', function(event) {\n            var id = event.detail.sectionId;\n            var container = event.target.querySelector('[' + selectors$_.id + '=\"' + id + '\"]');\n            var instance = getInstances(container)[0];\n            if (typeof instance === 'object') {\n                unload(container);\n            }\n        });\n        document.addEventListener('shopify:section:select', function(event) {\n            var instance = getInstanceById(event.detail.sectionId);\n            if (typeof instance === 'object') {\n                instance.onSelect(event);\n            }\n        });\n        document.addEventListener('shopify:section:deselect', function(event) {\n            var instance = getInstanceById(event.detail.sectionId);\n            if (typeof instance === 'object') {\n                instance.onDeselect(event);\n            }\n        });\n        document.addEventListener('shopify:block:select', function(event) {\n            var instance = getInstanceById(event.detail.sectionId);\n            if (typeof instance === 'object') {\n                instance.onBlockSelect(event);\n            }\n        });\n        document.addEventListener('shopify:block:deselect', function(event) {\n            var instance = getInstanceById(event.detail.sectionId);\n            if (typeof instance === 'object') {\n                instance.onBlockDeselect(event);\n            }\n        });\n    }\n\n    /**\n     * A11y Helpers\n     * -----------------------------------------------------------------------------\n     * A collection of useful functions that help make your theme more accessible\n     */ /**\n     * Moves focus to an HTML element\n     * eg for In-page links, after scroll, focus shifts to content area so that\n     * next `tab` is where user expects. Used in bindInPageLinks()\n     * eg move focus to a modal that is opened. Used in trapFocus()\n     *\n     * @param {Element} container - Container DOM element to trap focus inside of\n     * @param {Object} options - Settings unique to your theme\n     * @param {string} options.className - Class name to apply to element on focus.\n     */ function forceFocus(element, options) {\n        options = options || {};\n        element.focus();\n        if (typeof options.className !== 'undefined') {\n            element.classList.add(options.className);\n        }\n        element.addEventListener('blur', callback);\n        function callback(event) {\n            event.target.removeEventListener(event.type, callback);\n            if (typeof options.className !== 'undefined') {\n                element.classList.remove(options.className);\n            }\n        }\n    }\n    /**\n     * If there's a hash in the url, focus the appropriate element\n     * This compensates for older browsers that do not move keyboard focus to anchor links.\n     * Recommendation: To be called once the page in loaded.\n     *\n     * @param {Object} options - Settings unique to your theme\n     * @param {string} options.className - Class name to apply to element on focus.\n     * @param {string} options.ignore - Selector for elements to not include.\n     */ function focusHash(options) {\n        options = options || {};\n        var hash = window.location.hash;\n        var element = document.getElementById(hash.slice(1));\n        // if we are to ignore this element, early return\n        if (element && options.ignore && element.matches(options.ignore)) {\n            return false;\n        }\n        if (hash && element) {\n            forceFocus(element, options);\n        }\n    }\n    /**\n     * When an in-page (url w/hash) link is clicked, focus the appropriate element\n     * This compensates for older browsers that do not move keyboard focus to anchor links.\n     * Recommendation: To be called once the page in loaded.\n     *\n     * @param {Object} options - Settings unique to your theme\n     * @param {string} options.className - Class name to apply to element on focus.\n     * @param {string} options.ignore - CSS selector for elements to not include.\n     */ function bindInPageLinks(options) {\n        options = options || {};\n        var links = Array.prototype.slice.call(document.querySelectorAll('a[href^=\"#\"]'));\n        function queryCheck(selector) {\n            return document.getElementById(selector) !== null;\n        }\n        return links.filter(function(link) {\n            if (link.hash === '#' || link.hash === '') {\n                return false;\n            }\n            if (options.ignore && link.matches(options.ignore)) {\n                return false;\n            }\n            if (!queryCheck(link.hash.substr(1))) {\n                return false;\n            }\n            var element = document.querySelector(link.hash);\n            if (!element) {\n                return false;\n            }\n            link.addEventListener('click', function() {\n                forceFocus(element, options);\n            });\n            return true;\n        });\n    }\n    function focusable$1(container) {\n        var elements = Array.prototype.slice.call(container.querySelectorAll('[tabindex],' + '[draggable],' + 'a[href],' + 'area,' + 'button:enabled,' + 'input:not([type=hidden]):enabled,' + 'object,' + 'select:enabled,' + 'textarea:enabled' + '[data-focus-element]'));\n        // Filter out elements that are not visible.\n        // Copied from jQuery https://github.com/jquery/jquery/blob/2d4f53416e5f74fa98e0c1d66b6f3c285a12f0ce/src/css/hiddenVisibleSelectors.js\n        return elements.filter(function(element) {\n            return Boolean(element.offsetWidth || element.offsetHeight || element.getClientRects().length);\n        });\n    }\n    /**\n     * Traps the focus in a particular container\n     *\n     * @param {Element} container - Container DOM element to trap focus inside of\n     * @param {Element} elementToFocus - Element to be focused on first\n     * @param {Object} options - Settings unique to your theme\n     * @param {string} options.className - Class name to apply to element on focus.\n     */ var trapFocusHandlers = {};\n    function trapFocus(container, options) {\n        options = options || {};\n        var elements = focusable$1(container);\n        var elementToFocus = options.elementToFocus || container;\n        var first = elements[0];\n        var last = elements[elements.length - 1];\n        removeTrapFocus();\n        trapFocusHandlers.focusin = function(event) {\n            if (container !== event.target && !container.contains(event.target) && first && first === event.target) {\n                first.focus();\n            }\n            if (event.target !== container && event.target !== last && event.target !== first) return;\n            document.addEventListener('keydown', trapFocusHandlers.keydown);\n        };\n        trapFocusHandlers.focusout = function() {\n            document.removeEventListener('keydown', trapFocusHandlers.keydown);\n        };\n        trapFocusHandlers.keydown = function(event) {\n            if (event.code !== 'Tab') return; // If not TAB key\n            // On the last focusable element and tab forward, focus the first element.\n            if (event.target === last && !event.shiftKey) {\n                event.preventDefault();\n                first.focus();\n            }\n            //  On the first focusable element and tab backward, focus the last element.\n            if ((event.target === container || event.target === first) && event.shiftKey) {\n                event.preventDefault();\n                last.focus();\n            }\n        };\n        document.addEventListener('focusout', trapFocusHandlers.focusout);\n        document.addEventListener('focusin', trapFocusHandlers.focusin);\n        forceFocus(elementToFocus, options);\n    }\n    /**\n     * Removes the trap of focus from the page\n     */ function removeTrapFocus() {\n        document.removeEventListener('focusin', trapFocusHandlers.focusin);\n        document.removeEventListener('focusout', trapFocusHandlers.focusout);\n        document.removeEventListener('keydown', trapFocusHandlers.keydown);\n    }\n    /**\n     * Add a preventive message to external links and links that open to a new window.\n     * @param {string} elements - Specific elements to be targeted\n     * @param {object} options.messages - Custom messages to overwrite with keys: newWindow, external, newWindowExternal\n     * @param {string} options.messages.newWindow - When the link opens in a new window (e.g. target=\"_blank\")\n     * @param {string} options.messages.external - When the link is to a different host domain.\n     * @param {string} options.messages.newWindowExternal - When the link is to a different host domain and opens in a new window.\n     * @param {object} options.prefix - Prefix to namespace \"id\" of the messages\n     */ function accessibleLinks(elements, options) {\n        if (typeof elements !== 'string') {\n            throw new TypeError(elements + ' is not a String.');\n        }\n        elements = document.querySelectorAll(elements);\n        if (elements.length === 0) {\n            return;\n        }\n        options = options || {};\n        options.messages = options.messages || {};\n        var messages1 = {\n            newWindow: options.messages.newWindow || 'Opens in a new window.',\n            external: options.messages.external || 'Opens external website.',\n            newWindowExternal: options.messages.newWindowExternal || 'Opens external website in a new window.'\n        };\n        var prefix = options.prefix || 'a11y';\n        var messageSelectors = {\n            newWindow: prefix + '-new-window-message',\n            external: prefix + '-external-message',\n            newWindowExternal: prefix + '-new-window-external-message'\n        };\n        function generateHTML(messages) {\n            var container = document.createElement('ul');\n            var htmlMessages = Object.keys(messages).reduce(function(html, key) {\n                return html += '<li id=' + messageSelectors[key] + '>' + messages[key] + '</li>';\n            }, '');\n            container.setAttribute('hidden', true);\n            container.innerHTML = htmlMessages;\n            document.body.appendChild(container);\n        }\n        function externalSite(link) {\n            return link.hostname !== window.location.hostname;\n        }\n        elements.forEach(function(link) {\n            var target = link.getAttribute('target');\n            var rel = link.getAttribute('rel');\n            var isExternal = externalSite(link);\n            var isTargetBlank = target === '_blank';\n            var missingRelNoopener = rel === null || rel.indexOf('noopener') === -1;\n            if (isTargetBlank && missingRelNoopener) {\n                var relValue = rel === null ? 'noopener' : rel + ' noopener';\n                link.setAttribute('rel', relValue);\n            }\n            if (isExternal && isTargetBlank) {\n                link.setAttribute('aria-describedby', messageSelectors.newWindowExternal);\n            } else if (isExternal) {\n                link.setAttribute('aria-describedby', messageSelectors.external);\n            } else if (isTargetBlank) {\n                link.setAttribute('aria-describedby', messageSelectors.newWindow);\n            }\n        });\n        generateHTML(messages1);\n    }\n\n    var a11y = /*#__PURE__*/Object.freeze({\n        __proto__: null,\n        accessibleLinks: accessibleLinks,\n        bindInPageLinks: bindInPageLinks,\n        focusHash: focusHash,\n        focusable: focusable$1,\n        forceFocus: forceFocus,\n        removeTrapFocus: removeTrapFocus,\n        trapFocus: trapFocus\n    });\n\n    const selectors$Z = {\n        focusable: 'button, [href], select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n    };\n    function modal(unique) {\n        const uniqueID = `data-popup-${unique}`;\n        MicroModal.init({\n            openTrigger: uniqueID,\n            disableScroll: true,\n            onShow: (modal1, el, event)=>{\n                event.preventDefault();\n                const firstFocus = modal1.querySelector(selectors$Z.focusable);\n                trapFocus(modal1, {\n                    elementToFocus: firstFocus\n                });\n            },\n            onClose: (modal, el, event)=>{\n                event.preventDefault();\n                removeTrapFocus();\n                el.focus();\n            }\n        });\n    }\n\n    const selectors$Y = {\n        trigger: '[data-toggle-password-modal]',\n        errors: '.storefront-password-form .errors'\n    };\n    const sections$m = {};\n    let PasswordPage = class PasswordPage {\n        init() {\n            modal('password');\n            if (this.errors) {\n                this.trigger.click();\n            }\n        }\n        constructor(section){\n            this.container = section.container;\n            this.trigger = this.container.querySelector(selectors$Y.trigger);\n            this.errors = this.container.querySelector(selectors$Y.errors);\n            this.init();\n        }\n    };\n    const passwordSection = {\n        onLoad () {\n            sections$m[this.id] = new PasswordPage(this);\n        }\n    };\n    register('password', passwordSection);\n\n    /**\n     * Gift Card Template Script\n     * ------------------------------------------------------------------------------\n     * A file that contains scripts highly couple code to the Gift Card template.\n     */ (function() {\n        var config = {\n            qrCode: '#QrCode',\n            giftCardCode: '.giftcard__code'\n        };\n        // init QR code\n        const qrCode = document.querySelector(config.qrCode);\n        if (qrCode) {\n            function loadGiftCard() {\n                const qrCodeText = qrCode.getAttribute('data-identifier');\n                new QRCode(qrCode, {\n                    text: qrCodeText,\n                    width: 120,\n                    height: 120\n                });\n            }\n            window.addEventListener('load', loadGiftCard);\n        }\n        const giftCardCode = document.querySelector(config.giftCardCode);\n        if (giftCardCode) {\n            // Auto-select gift card code on click, based on ID passed to the function\n            function selectText() {\n                var text = document.querySelector('#GiftCardDigits');\n                var range = '';\n                if (document.body.createTextRange) {\n                    range = document.body.createTextRange();\n                    range.moveToElementText(text);\n                    range.select();\n                } else if (window.getSelection) {\n                    var selection = window.getSelection();\n                    range = document.createRange();\n                    range.selectNodeContents(text);\n                    selection.removeAllRanges();\n                    selection.addRange(range);\n                }\n            }\n            giftCardCode.addEventListener('click', selectText());\n        }\n    })();\n\n    const selectors$X = {\n        parallaxWrapper: '[data-parallax-wrapper]',\n        parallaxImg: '[data-parallax-img]'\n    };\n    let sections$l = {};\n    const parallaxImage = {\n        onLoad () {\n            sections$l[this.id] = [];\n            const frames = this.container.querySelectorAll(selectors$X.parallaxWrapper);\n            frames.forEach((frame)=>{\n                const inner = frame.querySelector(selectors$X.parallaxImg);\n                sections$l[this.id].push(new Rellax(inner, {\n                    center: true,\n                    round: true,\n                    frame: frame\n                }));\n            });\n        },\n        onUnload: function() {\n            sections$l[this.id].forEach((image)=>{\n                if (typeof image.destroy === 'function') {\n                    image.destroy();\n                }\n            });\n        }\n    };\n\n    register('article', parallaxImage);\n\n    const selectors$W = {\n        frame: '[data-ticker-frame]',\n        scale: '[data-ticker-scale]',\n        text: '[data-ticker-text]'\n    };\n    const attributes$1 = {\n        clone: 'data-clone',\n        ariaHidden: 'aria-hidden'\n    };\n    const classes$z = {\n        animationClass: 'ticker--animated',\n        unloadedClass: 'ticker--unloaded',\n        comparitorClass: 'ticker__comparitor'\n    };\n    const sections$k = {};\n    let Ticker = class Ticker {\n        init() {\n            this.addComparitor();\n            this.resizeEvent = debounce$1(()=>this.checkWidth()\n            , 300);\n            this.listen();\n        }\n        addComparitor() {\n            this.comparitor = this.text.cloneNode(true);\n            this.comparitor.classList.add(classes$z.comparitorClass);\n            this.frame.appendChild(this.comparitor);\n            this.scale.classList.remove(classes$z.unloadedClass);\n        }\n        unload() {\n            document.removeEventListener('theme:resize', this.resizeEvent);\n        }\n        listen() {\n            document.addEventListener('theme:resize', this.resizeEvent);\n            this.checkWidth();\n        }\n        checkWidth() {\n            const padding = window.getComputedStyle(this.frame).paddingLeft.replace('px', '') * 2;\n            // Animate all the items - cloned too\n            Array.from(this.text.parentNode.children).forEach((child)=>{\n                child.classList.add(classes$z.animationClass);\n            });\n            if (this.frame.clientWidth - padding < this.comparitor.clientWidth || this.stopClone) {\n                if (this.scale.childElementCount === 1) {\n                    this.clone = this.text.cloneNode(true);\n                    this.clone.setAttribute(attributes$1.ariaHidden, true);\n                    this.clone.setAttribute(attributes$1.clone, '');\n                    this.scale.appendChild(this.clone);\n                    if (this.stopClone) {\n                        for(let index = 0; index < 10; index++){\n                            const cloneSecond = this.text.cloneNode(true);\n                            cloneSecond.setAttribute(attributes$1.ariaHidden, true);\n                            cloneSecond.setAttribute(attributes$1.clone, '');\n                            this.scale.appendChild(cloneSecond);\n                        }\n                    }\n                }\n                const animationTimeFrame = this.text.clientWidth / this.space * this.timeIndex;\n                this.scale.style.setProperty('--animation-time', `${animationTimeFrame}s`);\n            } else {\n                let clone = this.scale.querySelector(`[${attributes$1.clone}]`);\n                if (clone) {\n                    this.scale.removeChild(clone);\n                }\n                this.text.classList.remove(classes$z.animationClass);\n            }\n        }\n        constructor(el, stopClone = false){\n            this.frame = el;\n            this.stopClone = stopClone;\n            this.scale = this.frame.querySelector(selectors$W.scale);\n            this.text = this.frame.querySelector(selectors$W.text);\n            this.space = 100; // 100px\n            this.timeIndex = 1.63; // 100px going to move for 1.63s\n            this.init();\n        }\n    };\n    const ticker = {\n        onLoad () {\n            sections$k[this.id] = [];\n            const el1 = this.container.querySelectorAll(selectors$W.frame);\n            el1.forEach((el)=>{\n                sections$k[this.id].push(new Ticker(el));\n            });\n        },\n        onUnload () {\n            sections$k[this.id].forEach((el)=>{\n                if (typeof el.unload === 'function') {\n                    el.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$V = {\n        frame: '[data-ticker-frame]',\n        slideValue: 'data-slide',\n        tickerScale: '[data-ticker-scale]',\n        tickerText: '[data-ticker-text]'\n    };\n    const classes$y = {\n        trickerAnimated: 'ticker--animated'\n    };\n    const sections$j = {};\n    let Bar = class Bar {\n        init() {\n            this.initTickers(true);\n        }\n        /**\n       * Init tickers in sliders\n       */ initTickers(stopClone = false) {\n            const frame = this.container.querySelector(selectors$V.frame);\n            if (frame) {\n                new Ticker(frame, stopClone);\n            }\n        }\n        toggleTicker(e, isStopped) {\n            const tickerScale = this.container.querySelector(selectors$V.tickerScale);\n            const element = this.container.querySelector(`[${selectors$V.slideValue}=\"${e.detail.blockId}\"]`);\n            if (!element || !tickerScale) return;\n            if (isStopped) {\n                const gutter = Number(getComputedStyle(element).getPropertyValue('--gutter').replace('px', ''));\n                const leftPosition = -(element.offsetLeft - gutter);\n                tickerScale.setAttribute('data-stop', '');\n                tickerScale.querySelectorAll(selectors$V.tickerText).forEach((textHolder)=>{\n                    textHolder.classList.remove(classes$y.trickerAnimated);\n                    textHolder.style.transform = `translate3d(${leftPosition}px, 0, 0)`;\n                });\n            }\n            if (!isStopped) {\n                tickerScale.querySelectorAll(selectors$V.tickerText).forEach((textHolder)=>{\n                    textHolder.classList.add(classes$y.trickerAnimated);\n                    textHolder.removeAttribute('style');\n                });\n                tickerScale.removeAttribute('data-stop');\n            }\n        }\n        onBlockSelect(e) {\n            this.toggleTicker(e, true);\n        }\n        onBlockDeselect(e) {\n            this.toggleTicker(e, false);\n        }\n        constructor(section){\n            this.container = section.container;\n            this.init();\n        }\n    };\n    const logos = {\n        onLoad () {\n            sections$j[this.id] = [];\n            sections$j[this.id].push(new Bar(this));\n        },\n        onBlockSelect (e) {\n            sections$j[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(e);\n                }\n            });\n        },\n        onBlockDeselect (e) {\n            sections$j[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockDeselect(e);\n                }\n            });\n        }\n    };\n    register('logos', logos);\n\n    register('blog', parallaxImage);\n\n    var selectors$U = {\n        drawerWrappper: '[data-drawer]',\n        drawerScrolls: '[data-drawer-scrolls]',\n        input: '[data-predictive-search-input]',\n        underlay: '[data-drawer-underlay]',\n        stagger: '[data-stagger-animation]',\n        drawerToggle: 'data-drawer-toggle',\n        firstFocus: 'data-first-focus',\n        children: ':scope > * > [data-animates]',\n        focusable: 'button, [href], select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n    };\n    var classes$x = {\n        isVisible: 'drawer--visible',\n        displayNone: 'display-none'\n    };\n    var sections$i = {};\n    let Drawer = class Drawer {\n        unload() {\n        // wipe listeners\n        }\n        connectToggle() {\n            this.buttons.forEach((btn)=>{\n                btn.addEventListener('click', (function(e) {\n                    e.preventDefault();\n                    this.drawer.dispatchEvent(new CustomEvent('theme:drawer:toggle', {\n                        bubbles: false\n                    }));\n                }).bind(this));\n            });\n        }\n        connectDrawer() {\n            this.drawer.addEventListener('theme:drawer:toggle', (function() {\n                if (this.drawer.classList.contains(classes$x.isVisible)) {\n                    this.drawer.dispatchEvent(new CustomEvent('theme:drawer:close', {\n                        bubbles: false\n                    }));\n                } else {\n                    this.drawer.dispatchEvent(new CustomEvent('theme:drawer:open', {\n                        bubbles: false\n                    }));\n                }\n            }).bind(this));\n            this.drawer.addEventListener('theme:drawer:close', this.hideDrawer.bind(this));\n            this.drawer.addEventListener('theme:drawer:open', this.showDrawer.bind(this));\n        }\n        staggerChildAnimations() {\n            this.staggers.forEach((el)=>{\n                const children = el.querySelectorAll(selectors$U.children);\n                children.forEach((child, index)=>{\n                    child.style.transitionDelay = `${index * 50 + 10}ms`;\n                });\n            });\n        }\n        closers() {\n            this.drawer.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Escape') {\n                    return;\n                }\n                this.hideDrawer();\n            }).bind(this));\n            this.underlay.addEventListener('click', (function() {\n                this.hideDrawer();\n            }).bind(this));\n        }\n        setFocus() {\n            const closeButton = this.drawer.querySelector(selectors$U.firstFocus);\n            trapFocus(this.drawer, {\n                elementToFocus: closeButton\n            });\n        }\n        showDrawer() {\n            this.drawer.classList.remove(classes$x.displayNone);\n            // animates after display none is removed\n            setTimeout(()=>{\n                this.buttons.forEach((el)=>el.setAttribute('aria-expanded', true)\n                );\n                this.drawer.classList.add(classes$x.isVisible);\n                document.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                    bubbles: true,\n                    detail: this.drawerScrolls\n                }));\n                this.drawer.addEventListener('transitionend', this.setFocus.bind(this), {\n                    once: true\n                });\n                this.drawer.addEventListener('transitioncancel', this.setFocus.bind(this), {\n                    once: true\n                });\n            }, 1);\n        }\n        hideDrawer() {\n            window.theme.state.cartOpen = false;\n            this.buttons.forEach((el)=>el.setAttribute('aria-expanded', true)\n            );\n            this.drawer.classList.remove(classes$x.isVisible);\n            this.drawerScrolls.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                bubbles: true\n            }));\n            document.dispatchEvent(new CustomEvent('theme:sliderule:close', {\n                bubbles: false\n            }));\n            removeTrapFocus();\n            this.buttons[0].focus({\n                preventScroll: true\n            });\n            // adds display none after animations\n            setTimeout(()=>{\n                if (!this.drawer.classList.contains(classes$x.isVisible)) {\n                    this.drawer.classList.add(classes$x.displayNone);\n                }\n            }, 800);\n        }\n        constructor(el){\n            this.drawer = el;\n            this.drawerScrolls = this.drawer.querySelector(selectors$U.drawerScrolls);\n            this.underlay = this.drawer.querySelector(selectors$U.underlay);\n            this.key = this.drawer.dataset.drawer;\n            const btnSelector = `[${selectors$U.drawerToggle}='${this.key}']`;\n            this.buttons = document.querySelectorAll(btnSelector);\n            this.staggers = this.drawer.querySelectorAll(selectors$U.stagger);\n            this.connectToggle();\n            this.connectDrawer();\n            this.closers();\n            this.staggerChildAnimations();\n        }\n    };\n    const drawer = {\n        onLoad () {\n            sections$i[this.id] = [];\n            const els = this.container.querySelectorAll(selectors$U.drawerWrappper);\n            els.forEach((el)=>{\n                sections$i[this.id].push(new Drawer(el));\n            });\n        },\n        onUnload: function() {\n            sections$i[this.id].forEach((el)=>{\n                if (typeof el.unload === 'function') {\n                    el.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$T = {\n        announcement: '[data-announcement-bar]',\n        transparent: 'data-header-transparent',\n        header: '[data-header-wrapper] header'\n    };\n    const classes$w = {\n        stuck: 'js__header__stuck',\n        stuckAnimated: 'js__header__stuck--animated',\n        triggerAnimation: 'js__header__stuck--trigger-animation',\n        stuckBackdrop: 'js__header__stuck__backdrop'\n    };\n    let sections$h = {};\n    let Sticky = class Sticky {\n        unload() {\n            document.removeEventListener('theme:scroll', this.listen);\n            document.removeEventListener('theme:scroll:up', this.scrollUpDirectional);\n            document.removeEventListener('theme:scroll:down', this.scrollDownDirectional);\n        }\n        listen() {\n            if (this.sticks || this.animated) {\n                document.addEventListener('theme:scroll', (e)=>{\n                    if (e.detail.down) {\n                        if (!this.currentlyStuck && e.detail.position > this.stickDown) {\n                            this.stickSimple();\n                        }\n                        if (!this.currentlyBlurred && e.detail.position > this.blur) {\n                            this.addBlur();\n                        }\n                    } else {\n                        if (e.detail.position <= this.stickUp) {\n                            this.unstickSimple();\n                        }\n                        if (e.detail.position <= this.blur) {\n                            this.removeBlur();\n                        }\n                    }\n                });\n            }\n            if (this.animated) {\n                document.addEventListener('theme:scroll:up', this.scrollUpDirectional.bind(this));\n                document.addEventListener('theme:scroll:down', this.scrollDownDirectional.bind(this));\n            }\n        }\n        stickSimple() {\n            if (this.animated) {\n                this.cls.add(classes$w.stuckAnimated);\n            }\n            this.cls.add(classes$w.stuck);\n            this.wrapper.setAttribute(selectors$T.transparent, false);\n            this.currentlyStuck = true;\n        }\n        unstickSimple() {\n            this.cls.remove(classes$w.stuck);\n            this.wrapper.setAttribute(selectors$T.transparent, this.transparent);\n            if (this.animated) {\n                this.cls.remove(classes$w.stuckAnimated);\n            }\n            this.currentlyStuck = false;\n        }\n        scrollDownInit() {\n            if (window.scrollY > this.stickDown) {\n                this.stickSimple();\n            }\n            if (window.scrollY > this.blur) {\n                this.addBlur();\n            }\n        }\n        stickDirectional() {\n            this.cls.add(classes$w.triggerAnimation);\n        }\n        unstickDirectional() {\n            this.cls.remove(classes$w.triggerAnimation);\n        }\n        scrollDownDirectional() {\n            this.unstickDirectional();\n        }\n        scrollUpDirectional() {\n            if (window.scrollY <= this.stickDown) {\n                this.unstickDirectional();\n            } else {\n                this.stickDirectional();\n            }\n        }\n        addBlur() {\n            this.cls.add(classes$w.stuckBackdrop);\n            this.currentlyBlurred = true;\n        }\n        removeBlur() {\n            this.cls.remove(classes$w.stuckBackdrop);\n            this.currentlyBlurred = false;\n        }\n        constructor(el){\n            this.wrapper = el;\n            this.type = this.wrapper.dataset.headerSticky;\n            this.transparent = this.wrapper.dataset.headerTransparent;\n            this.sticks = this.type === 'sticky';\n            this.animated = this.type === 'directional';\n            this.currentlyStuck = false;\n            this.cls = this.wrapper.classList;\n            const announcementEl = document.querySelector(selectors$T.announcement);\n            const announcementHeight = announcementEl ? announcementEl.clientHeight : 0;\n            const headerHeight = document.querySelector(selectors$T.header).clientHeight;\n            this.blur = headerHeight + announcementHeight;\n            this.stickDown = headerHeight + announcementHeight;\n            this.stickUp = announcementHeight;\n            if (this.wrapper.getAttribute(selectors$T.transparent) !== 'false') {\n                this.blur = announcementHeight;\n            }\n            if (this.sticks) {\n                this.stickDown = announcementHeight;\n                this.scrollDownInit();\n            }\n            this.listen();\n        }\n    };\n    const stickyHeader = {\n        onLoad () {\n            sections$h = new Sticky(this.container);\n        },\n        onUnload: function() {\n            if (typeof sections$h.unload === 'function') {\n                sections$h.unload();\n            }\n        }\n    };\n\n    const selectors$S = {\n        disclosureToggle: 'data-hover-disclosure-toggle',\n        disclosureWrappper: '[data-hover-disclosure]',\n        link: '[data-top-link]',\n        wrapper: '[data-header-wrapper]',\n        stagger: '[data-stagger]',\n        staggerPair: '[data-stagger-first]',\n        staggerAfter: '[data-stagger-second]',\n        staggerImage: '[data-grid-item], [data-header-image]'\n    };\n    const classes$v = {\n        isVisible: 'is-visible',\n        meganavVisible: 'meganav--visible',\n        grandparent: 'grandparent'\n    };\n    let sections$g = {};\n    let disclosures = {};\n    let HoverDisclosure = class HoverDisclosure {\n        onBlockSelect(evt) {\n            if (this.disclosure.contains(evt.target)) {\n                this.showDisclosure();\n            }\n        }\n        onBlockDeselect(evt) {\n            if (this.disclosure.contains(evt.target)) {\n                this.hideDisclosure();\n            }\n        }\n        showDisclosure() {\n            if (this.grandparent) {\n                this.wrapper.classList.add(classes$v.meganavVisible);\n            } else {\n                this.wrapper.classList.remove(classes$v.meganavVisible);\n            }\n            this.trigger.setAttribute('aria-expanded', true);\n            this.trigger.classList.add(classes$v.isVisible);\n            this.disclosure.classList.add(classes$v.isVisible);\n        }\n        hideDisclosure() {\n            this.disclosure.classList.remove(classes$v.isVisible);\n            this.trigger.classList.remove(classes$v.isVisible);\n            this.trigger.setAttribute('aria-expanded', false);\n            this.wrapper.classList.remove(classes$v.meganavVisible);\n        }\n        staggerChildAnimations() {\n            const simple = this.disclosure.querySelectorAll(selectors$S.stagger);\n            simple.forEach((el, index)=>{\n                el.style.transitionDelay = `${index * 50 + 10}ms`;\n            });\n            const pairs = this.disclosure.querySelectorAll(selectors$S.staggerPair);\n            pairs.forEach((child, i)=>{\n                const d1 = i * 150;\n                child.style.transitionDelay = `${d1}ms`;\n                child.parentElement.querySelectorAll(selectors$S.staggerAfter).forEach((grandchild, i2)=>{\n                    const di1 = i2 + 1;\n                    const d2 = di1 * 20;\n                    grandchild.style.transitionDelay = `${d1 + d2}ms`;\n                });\n            });\n            const images = this.disclosure.querySelectorAll(selectors$S.staggerImage);\n            images.forEach((el, index)=>{\n                el.style.transitionDelay = `${(index + 1) * 80}ms`;\n            });\n        }\n        handleTablets() {\n            // first click opens the popup, second click opens the link\n            this.trigger.addEventListener('touchstart', (function(e) {\n                const isOpen = this.disclosure.classList.contains(classes$v.isVisible);\n                if (!isOpen) {\n                    e.preventDefault();\n                    this.showDisclosure();\n                }\n            }).bind(this), {\n                passive: true\n            });\n        }\n        connectHoverToggle() {\n            this.trigger.addEventListener('pointerenter', this.showDisclosure.bind(this));\n            this.link.addEventListener('focus', this.showDisclosure.bind(this));\n            this.trigger.addEventListener('pointerleave', this.hideDisclosure.bind(this));\n            this.trigger.addEventListener('focusout', (function(e) {\n                const inMenu = this.trigger.contains(e.relatedTarget);\n                if (!inMenu) {\n                    this.hideDisclosure();\n                }\n            }).bind(this));\n            this.disclosure.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Escape') {\n                    return;\n                }\n                this.hideDisclosure();\n            }).bind(this));\n        }\n        constructor(el){\n            this.disclosure = el;\n            this.wrapper = el.closest(selectors$S.wrapper);\n            this.key = this.disclosure.id;\n            const btnSelector = `[${selectors$S.disclosureToggle}='${this.key}']`;\n            this.trigger = document.querySelector(btnSelector);\n            this.link = this.trigger.querySelector(selectors$S.link);\n            this.grandparent = this.trigger.classList.contains(classes$v.grandparent);\n            this.trigger.setAttribute('aria-haspopup', true);\n            this.trigger.setAttribute('aria-expanded', false);\n            this.trigger.setAttribute('aria-controls', this.key);\n            this.connectHoverToggle();\n            this.handleTablets();\n            this.staggerChildAnimations();\n        }\n    };\n    const hoverDisclosure = {\n        onLoad () {\n            sections$g[this.id] = [];\n            disclosures = this.container.querySelectorAll(selectors$S.disclosureWrappper);\n            disclosures.forEach((el)=>{\n                sections$g[this.id].push(new HoverDisclosure(el));\n            });\n        },\n        onBlockSelect (evt) {\n            sections$g[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(evt);\n                }\n            });\n        },\n        onBlockDeselect (evt) {\n            sections$g[this.id].forEach((el)=>{\n                if (typeof el.onBlockDeselect === 'function') {\n                    el.onBlockDeselect(evt);\n                }\n            });\n        },\n        onUnload: function() {\n            sections$g[this.id].forEach((el)=>{\n                if (typeof el.unload === 'function') {\n                    el.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$R = {\n        item: '[data-main-menu-text-item]',\n        wrapper: '[data-text-items-wrapper]',\n        text: '.navtext',\n        isActive: 'data-menu-active',\n        sectionOuter: '[data-header-wrapper]',\n        underlineCurrent: 'data-underline-current',\n        defaultItem: '.menu__item.main-menu--active .navtext, .header__desktop__button.main-menu--active .navtext'\n    };\n    let sections$f = {};\n    let defaultPositions = null;\n    let HoverLine = class HoverLine {\n        init() {\n            if (this.itemList.length) {\n                this.listen();\n                this.listenResize();\n                this.textBottom = null;\n                this.setHeight();\n                if (defaultPositions) {\n                    if (this.defaultItem) {\n                        const startingLeft = Math.round(this.defaultItem.getBoundingClientRect().left) || 0;\n                        this.sectionOuter.style.setProperty('--bar-left', `${startingLeft}px`);\n                    }\n                    this.reset();\n                } else {\n                    // initialize at left edge of first item im menu\n                    const startingLeft = Math.round(this.sectionOuter.querySelector(selectors$R.item).getBoundingClientRect().left);\n                    this.sectionOuter.style.setProperty('--bar-left', `${startingLeft}px`);\n                    this.sectionOuter.style.setProperty('--bar-width', '0px');\n                }\n                this.sectionOuter.style.setProperty('--bar-opacity', '1');\n            }\n        }\n        unload() {\n            document.removeEventListener('theme:resize', this.reset);\n            defaultPositions = null;\n        }\n        listenResize() {\n            document.addEventListener('theme:resize', this.reset.bind(this));\n        }\n        setDefault() {\n            if (this.defaultItem) {\n                defaultPositions = {\n                    left: Math.round(this.defaultItem.getBoundingClientRect().left) || null,\n                    width: this.defaultItem.clientWidth || null\n                };\n            }\n        }\n        setHeight() {\n            const height = this.wrapper.clientHeight;\n            const text = this.itemList[0].querySelector(selectors$R.text);\n            const textHeight = text.clientHeight;\n            const textBottom = Math.floor(height / 2 - textHeight / 2) - 4;\n            if (this.textBottom !== textBottom) {\n                this.sectionOuter.style.setProperty('--bar-text', `${textHeight}px`);\n                this.sectionOuter.style.setProperty('--bar-bottom', `${textBottom}px`);\n                this.textBottom = textBottom;\n            }\n        }\n        listen() {\n            this.itemList.forEach((element)=>{\n                element.addEventListener('pointerenter', (evt)=>{\n                    const item = evt.target.querySelector(selectors$R.text);\n                    this.startBar(item);\n                });\n            });\n            this.wrapper.addEventListener('pointerleave', this.clearBar.bind(this));\n        }\n        startBar(item) {\n            this.setHeight();\n            let active = this.sectionOuter.getAttribute(selectors$R.isActive) !== 'false';\n            let left = Math.round(item.getBoundingClientRect().left);\n            let width = item.clientWidth;\n            if (active) {\n                this.render(width, left);\n            } else {\n                this.sectionOuter.setAttribute(selectors$R.isActive, true);\n                this.render(0, left);\n                setTimeout(()=>{\n                    this.render(width, left);\n                }, 10);\n            }\n        }\n        render(width, left) {\n            this.sectionOuter.style.setProperty('--bar-left', `${left}px`);\n            this.sectionOuter.style.setProperty('--bar-width', `${width}px`);\n        }\n        reset() {\n            this.setDefault();\n            if (defaultPositions && defaultPositions.left && defaultPositions.width) {\n                this.sectionOuter.style.setProperty('--bar-left', `${defaultPositions.left}px`);\n                this.sectionOuter.style.setProperty('--bar-width', `${defaultPositions.width}px`);\n            } else {\n                this.sectionOuter.style.setProperty('--bar-width', '0px');\n            }\n        }\n        clearBar() {\n            // allow the bar to jump between text sections for cart and main menu\n            this.sectionOuter.setAttribute(selectors$R.isActive, false);\n            setTimeout(()=>{\n                let active = this.sectionOuter.getAttribute(selectors$R.isActive) !== 'false';\n                if (!active) {\n                    this.reset();\n                }\n            }, 150);\n        }\n        constructor(el){\n            this.wrapper = el;\n            this.itemList = this.wrapper.querySelectorAll(selectors$R.item);\n            this.sectionOuter = document.querySelector(selectors$R.sectionOuter);\n            this.underlineCurrent = this.sectionOuter.getAttribute(selectors$R.underlineCurrent) === 'true';\n            this.defaultItem = null;\n            if (this.underlineCurrent) {\n                this.defaultItem = this.wrapper.querySelector(selectors$R.defaultItem);\n            }\n            this.setDefault();\n            document.fonts.ready.then(()=>{\n                this.init();\n            });\n        }\n    };\n    const hoverUnderline = {\n        onLoad () {\n            sections$f[this.id] = [];\n            const els = this.container.querySelectorAll(selectors$R.wrapper);\n            els.forEach((el)=>{\n                sections$f[this.id].push(new HoverLine(el));\n            });\n        },\n        onUnload: function() {\n            sections$f[this.id].forEach((el)=>{\n                if (typeof el.unload === 'function') {\n                    el.unload();\n                }\n            });\n            delete sections$f[this.id];\n        }\n    };\n\n    const selectors$Q = {\n        price: 'data-header-cart-price',\n        count: 'data-header-cart-count',\n        dot: 'data-header-cart-full'\n    };\n    let Totals = class Totals {\n        listen() {\n            document.addEventListener('theme:cart:change', (function(event) {\n                this.cart = event.detail.cart;\n                this.update();\n            }).bind(this));\n        }\n        update() {\n            if (this.cart) {\n                this.prices.forEach((price)=>{\n                    price.setAttribute(selectors$Q.price, this.cart.total_price);\n                    const newTotal = themeCurrency.formatMoney(this.cart.total_price, theme.moneyFormat);\n                    price.innerHTML = newTotal;\n                });\n                this.counts.forEach((count)=>{\n                    count.setAttribute(selectors$Q.count, this.cart.item_count);\n                    count.innerHTML = `(${this.cart.item_count})`;\n                });\n                this.dots.forEach((dot)=>{\n                    const full = this.cart.item_count > 0;\n                    dot.setAttribute(selectors$Q.dot, full);\n                });\n            }\n        }\n        constructor(el){\n            this.section = el;\n            this.counts = this.section.querySelectorAll(`[${selectors$Q.count}]`);\n            this.prices = this.section.querySelectorAll(`[${selectors$Q.price}]`);\n            this.dots = this.section.querySelectorAll(`[${selectors$Q.dot}]`);\n            this.cart = null;\n            this.listen();\n        }\n    };\n    const headerTotals = {\n        onLoad () {\n            new Totals(this.container);\n        }\n    };\n\n    const selectors$P = {\n        wrapper: '[data-search-popdown-wrap]',\n        popdownTrigger: 'data-popdown-toggle',\n        close: '[data-close-popdown]',\n        input: '[data-predictive-search-input]',\n        underlay: '[data-search-underlay]'\n    };\n    const classes$u = {\n        underlayVisible: 'underlay--visible',\n        isVisible: 'is-visible'\n    };\n    let sections$e = {};\n    let SearchPopdownTriggers = class SearchPopdownTriggers {\n        initTriggerEvents() {\n            this.trigger.setAttribute('aria-haspopup', true);\n            this.trigger.setAttribute('aria-expanded', false);\n            this.trigger.setAttribute('aria-controls', this.key);\n            this.trigger.addEventListener('click', (function(evt) {\n                evt.preventDefault();\n                this.showPopdown();\n            }).bind(this));\n            this.trigger.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Space') {\n                    return;\n                }\n                this.showPopdown();\n            }).bind(this));\n        }\n        initPopdownEvents() {\n            this.popdown.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Escape') {\n                    return;\n                }\n                this.hidePopdown();\n            }).bind(this));\n            this.close.addEventListener('click', (function() {\n                this.hidePopdown();\n            }).bind(this));\n            this.underlay.addEventListener('click', (function() {\n                this.hidePopdown();\n            }).bind(this));\n        }\n        hidePopdown() {\n            this.popdown.classList.remove(classes$u.isVisible);\n            this.underlay.classList.remove(classes$u.underlayVisible);\n            this.trigger.focus();\n            removeTrapFocus();\n            this.popdown.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                bubbles: true\n            }));\n        }\n        showPopdown() {\n            this.popdown.classList.add(classes$u.isVisible);\n            this.underlay.classList.add(classes$u.underlayVisible);\n            trapFocus(this.popdown, {\n                elementToFocus: this.input\n            });\n            this.popdown.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                bubbles: true\n            }));\n        }\n        constructor(trigger){\n            this.trigger = trigger;\n            this.key = this.trigger.getAttribute(selectors$P.popdownTrigger);\n            this.popdown = document.querySelector(`[id='${this.key}']`);\n            this.input = this.popdown.querySelector(selectors$P.input);\n            this.close = this.popdown.querySelector(selectors$P.close);\n            this.wrapper = this.popdown.closest(selectors$P.wrapper);\n            this.underlay = this.wrapper.querySelector(selectors$P.underlay);\n            this.initTriggerEvents();\n            this.initPopdownEvents();\n        }\n    };\n    const searchPopdown = {\n        onLoad () {\n            sections$e[this.id] = {};\n            const trigger = this.container.querySelector(`[${selectors$P.popdownTrigger}]`);\n            if (trigger) {\n                sections$e[this.id] = new SearchPopdownTriggers(trigger);\n            }\n        },\n        onUnload: function() {\n            if (typeof sections$e[this.id].unload === 'function') {\n                sections$e[this.id].unload();\n            }\n        }\n    };\n\n    const selectors$O = {\n        wrapper: '[data-product-add-popdown-wrapper]',\n        closeDrawer: '[data-close-popdown]',\n        apiContent: '[data-api-content]',\n        cartAjaxEnabled: '[data-ajax-disable=\"false\"]',\n        cartAjaxDisabled: '[data-ajax-disable=\"true\"]',\n        cartToggleButton: '[data-drawer-toggle=\"drawer-cart\"]',\n        cartDrawer: '[data-drawer=\"drawer-cart\"]'\n    };\n    const classes$t = {\n        visible: 'is-visible',\n        focusEnable: 'focus-enabled'\n    };\n    let globalTimer;\n    let CartPopdown = class CartPopdown {\n        renderPopdown(event) {\n            const variant = event.detail.variant;\n            const url = `${window.theme.routes.root_url}variants/${variant.id}/?section_id=api-product-popdown`;\n            const instance = this;\n            axios.get(url).then(function(response) {\n                // handle success\n                const fresh = document.createElement('div');\n                fresh.innerHTML = response.data;\n                instance.popdown.innerHTML = fresh.querySelector(selectors$O.apiContent).innerHTML;\n                instance.connectCartButton();\n                instance.connectCloseButton();\n                // If user is navigating with keyboard, focus on the view cart button after popdown opens\n                if (document.body.classList.contains(classes$t.focusEnable)) {\n                    const cartButton = instance.popdown.querySelector(selectors$O.cartToggleButton);\n                    setTimeout(()=>{\n                        cartButton.focus();\n                    }, 0);\n                }\n            }).catch(function(error) {\n                console.warn(error);\n            });\n        }\n        connectCloseButton() {\n            // Enable close button\n            this.popdown.classList.add(classes$t.visible);\n            const closer = this.popdown.querySelector(selectors$O.closeDrawer);\n            closer.addEventListener('click', (function(e) {\n                e.preventDefault();\n                this.popdown.classList.remove(classes$t.visible);\n            }).bind(this));\n            this.popdownTimer();\n        }\n        connectCartButton() {\n            // Hook into cart drawer\n            const cartButton = this.popdown.querySelector(selectors$O.cartToggleButton);\n            const cartDrawer = document.querySelector(selectors$O.cartDrawer);\n            if (cartDrawer) {\n                cartButton.addEventListener('click', (function(e) {\n                    e.preventDefault();\n                    this.popdown.classList.remove(classes$t.visible);\n                    cartDrawer.dispatchEvent(new CustomEvent('theme:drawer:open', {\n                        bubbles: false\n                    }));\n                }).bind(this));\n            }\n        }\n        popdownTimer() {\n            clearTimeout(globalTimer);\n            globalTimer = setTimeout(()=>{\n                if (this.popdown.contains(document.activeElement)) {\n                    // While the user is focused inside of the popdown keep restarting the auto-close timer\n                    this.popdownTimer();\n                } else {\n                    this.popdown.classList.remove(classes$t.visible);\n                }\n            }, 5000);\n        }\n        constructor(){\n            this.popdown = document.querySelector(selectors$O.wrapper);\n            this.cartAjaxEnabled = document.querySelector(selectors$O.cartAjaxEnabled);\n            this.cartAjaxDisabled = document.querySelector(selectors$O.cartAjaxDisabled);\n            document.addEventListener('theme:cart:popdown', (e)=>{\n                if (this.cartAjaxEnabled) {\n                    // if we are on the cart page, refresh the cart without popdown\n                    this.cartAjaxEnabled.dispatchEvent(new CustomEvent('theme:cart:reload', {\n                        bubbles: true\n                    }));\n                } else if (this.cartAjaxDisabled) {\n                    // ajax is disabled, refresh the whole page\n                    window.location.reload();\n                } else {\n                    this.renderPopdown(e);\n                }\n            });\n        }\n    };\n    const cartPopdown = {\n        onLoad () {\n            new CartPopdown(this);\n        }\n    };\n\n    function getScript(url, callback, callbackError) {\n        let head = document.getElementsByTagName('head')[0];\n        let done = false;\n        let script = document.createElement('script');\n        script.src = url;\n        // Attach handlers for all browsers\n        script.onload = script.onreadystatechange = function() {\n            if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {\n                done = true;\n                callback();\n            } else {\n                callbackError();\n            }\n        };\n        head.appendChild(script);\n    }\n\n    const loaders = {};\n    function loadScript(options = {}) {\n        if (!options.type) {\n            options.type = 'json';\n        }\n        if (options.url) {\n            if (loaders[options.url]) {\n                return loaders[options.url];\n            } else {\n                return getScriptWithPromise(options.url, options.type);\n            }\n        } else if (options.json) {\n            if (loaders[options.json]) {\n                return Promise.resolve(loaders[options.json]);\n            } else {\n                const request = window.fetch(options.json).then((response)=>{\n                    return response.json();\n                }).then((response)=>{\n                    loaders[options.json] = response;\n                    return response;\n                }).catch((error)=>{\n                    loaders[options.json] = null;\n                });\n                loaders[options.json] = request;\n                return request;\n            }\n        } else if (options.name) {\n            const key = ''.concat(options.name, options.version);\n            if (loaders[key]) {\n                return loaders[key];\n            } else {\n                return loadShopifyWithPromise(options);\n            }\n        } else {\n            return Promise.reject();\n        }\n    }function getScriptWithPromise(url, type) {\n        const loader = new Promise((resolve, reject)=>{\n            if (type === 'text') {\n                fetch(url).then((response)=>response.text()\n                ).then((data)=>{\n                    resolve(data);\n                }).catch((error)=>{\n                    reject(error);\n                });\n            } else {\n                getScript(url, function() {\n                    resolve();\n                }, function() {\n                    reject();\n                });\n            }\n        });\n        loaders[url] = loader;\n        return loader;\n    }\n    function loadShopifyWithPromise(options) {\n        const key = ''.concat(options.name, options.version);\n        const loader = new Promise((resolve, reject)=>{\n            try {\n                window.Shopify.loadFeatures([\n                    {\n                        name: options.name,\n                        version: options.version,\n                        onLoad: (err)=>{\n                            onLoadFromShopify(resolve, reject, err);\n                        }\n                    }, \n                ]);\n            } catch (err) {\n                reject(err);\n            }\n        });\n        loaders[key] = loader;\n        return loader;\n    }\n    function onLoadFromShopify(resolve, reject, err) {\n        if (err) {\n            return reject(err);\n        } else {\n            return resolve();\n        }\n    }\n\n    const selectors$N = {\n        wrapper: '[data-swapper-wrapper]',\n        target: '[data-swapper-target]',\n        hover: 'data-swapper-hover'\n    };\n    let sections$d = {};\n    let Swapper = class Swapper {\n        init() {\n            this.hovers.forEach((hover)=>{\n                hover.addEventListener('mouseenter', (function() {\n                    const newContent = hover.getAttribute(selectors$N.hover);\n                    this.target.innerHTML = `${newContent}`;\n                }).bind(this));\n            });\n            this.hovers.forEach((hover)=>{\n                hover.addEventListener('mouseleave', (function() {\n                    this.target.innerHTML = this.deafaultContent;\n                }).bind(this));\n            });\n            this.hovers.forEach((hover)=>{\n                hover.addEventListener('click', (function() {\n                    const clickedContent = hover.getAttribute(selectors$N.hover);\n                    this.deafaultContent = `${clickedContent}`;\n                }).bind(this));\n            });\n        }\n        constructor(el){\n            this.container = el;\n            this.target = this.container.querySelector(selectors$N.target);\n            this.hovers = this.container.querySelectorAll(`[${selectors$N.hover}]`);\n            if (this.target && this.hovers.length) {\n                this.deafaultContent = this.target.innerHTML;\n                this.init();\n            }\n        }\n    };\n    function makeSwappers(container) {\n        sections$d[container.id] = [];\n        const els = container.querySelectorAll(selectors$N.wrapper);\n        els.forEach((el)=>{\n            sections$d[container.id].push(new Swapper(el));\n        });\n    }\n    const swapperSection = {\n        onLoad () {\n            makeSwappers(this.container);\n        }\n    };\n\n    const defaults = {\n        color: 'ash'\n    };\n    const selectors$M = {\n        swatch: 'data-swatch',\n        outerGrid: '[data-grid-item]',\n        dataGridImageDefault: 'data-grid-image-default',\n        dataGridImageTarget: 'data-grid-image-target',\n        image: 'data-swatch-image',\n        imageId: 'data-swatch-image-id',\n        variant: 'data-swatch-variant'\n    };\n    const classes$s = {\n        fade: 'is-fade'\n    };\n    let ColorMatch = class ColorMatch {\n        getColor() {\n            return this.match;\n        }\n        init() {\n            const getColors = loadScript({\n                json: window.theme.assets.swatches\n            });\n            return getColors.then((colors)=>{\n                return this.matchColors(colors, this.settings.color);\n            }).catch((e)=>{\n                console.log('failed to load swatch colors script');\n                console.log(e);\n            });\n        }\n        matchColors(colors, name) {\n            let bg = '#E5E5E5';\n            let img = null;\n            const path = window.theme.assets.base || '/';\n            const comparisonName = name.toLowerCase().replace(/\\s/g, '');\n            const array = colors.colors;\n            if (array) {\n                const variantNameMatch = (nameObject)=>{\n                    const indexName = Object.keys(nameObject).toString();\n                    const neatName = indexName.toLowerCase().replace(/\\s/g, '');\n                    return neatName === comparisonName;\n                };\n                const position = array.findIndex(variantNameMatch);\n                if (position > -1) {\n                    const value = Object.values(array[position])[0];\n                    const valueLowerCase = value.toLowerCase();\n                    if (valueLowerCase.includes('.jpg') || valueLowerCase.includes('.jpeg') || valueLowerCase.includes('.png') || valueLowerCase.includes('.svg')) {\n                        img = `${path}${encodeURIComponent(value)}`;\n                        bg = '#888888';\n                    } else {\n                        bg = value;\n                    }\n                }\n            }\n            return {\n                color: this.settings.color,\n                path: img,\n                hex: bg\n            };\n        }\n        constructor(options = {}){\n            this.settings = {\n                ...defaults,\n                ...options\n            };\n            this.match = this.init();\n        }\n    };\n    let RadioSwatch = class RadioSwatch extends HTMLElement {\n        connectedCallback() {\n            this.element = this.querySelector(`[${selectors$M.swatch}]`);\n            this.colorString = this.element.getAttribute(selectors$M.swatch);\n            this.image = this.element.getAttribute(selectors$M.image);\n            this.imageId = this.element.getAttribute(selectors$M.imageId);\n            this.variant = this.element.getAttribute(selectors$M.variant);\n            this.outer = this.element.closest(selectors$M.outerGrid);\n            this.media = null;\n            this.imageSlide = null;\n            this.imageDefault = null;\n            this.stopSlideAnimation = false;\n            // Set swatch color for the old-swatch system\n            if (this.element.getAttribute(selectors$M.swatch) != '') {\n                const matcher = new ColorMatch({\n                    color: this.colorString\n                });\n                matcher.getColor().then((result)=>{\n                    this.colorMatch = result;\n                    this.setStyles();\n                });\n            }\n            this.init();\n        }\n        init() {\n            // Change PGI slider image\n            if (this.variant && this.outer) {\n                // Get images on quickview load\n                this.outer.addEventListener('theme:quickview:media', (e)=>{\n                    if (e && e.detail && e.detail.media) {\n                        this.media = e.detail.media;\n                    }\n                });\n            }\n        }\n        setStyles() {\n            if (this.colorMatch.hex) {\n                this.element.style.setProperty('--swatch', `${this.colorMatch.hex}`);\n            }\n            if (this.colorMatch.path) {\n                this.element.style.setProperty('background-image', `url(${this.colorMatch.path})`);\n                this.element.style.setProperty('background-size', 'cover');\n            }\n        }\n        replaceImage() {\n            // Add new loaded image in PGI slider\n            if (this.imageReplace && this.imageSlide && this.imageId) {\n                if (this.imageSlide.hasAttribute(selectors$M.dataGridImageTarget) && this.imageSlide.getAttribute(selectors$M.dataGridImageTarget) !== this.imageId) {\n                    this.imageSlide.classList.add(classes$s.fade);\n                    const timeoutDelay = parseFloat(window.getComputedStyle(this.imageSlide).getPropertyValue('animation-duration')) * 1000;\n                    setTimeout(()=>{\n                        this.imageSlide.classList.remove(classes$s.fade);\n                    }, timeoutDelay);\n                }\n                this.imageSlide.setAttribute(selectors$M.dataGridImageTarget, this.imageId);\n                this.imageSlide.style.setProperty('background-color', '#fff');\n                if (!this.imageSlide.hasAttribute(selectors$M.dataGridImageDefault)) {\n                    this.imageSlide.setAttribute(selectors$M.dataGridImageDefault, window.getComputedStyle(this.imageSlide).backgroundImage);\n                }\n                this.imageSlide.style.setProperty('background-image', this.imageReplace);\n            }\n        }\n    };\n    const swatchGridSection = {\n        onLoad () {\n            makeSwappers(this.container);\n        }\n    };\n\n    const selectors$L = {\n        dataGridItemVariant: 'data-grid-item-variant',\n        dataGridImageTarget: 'data-grid-image-target',\n        dataSwatchGridImageIndex: 'data-grid-image',\n        dataGridImage: 'data-grid-image',\n        dataSwatchImageId: 'data-swatch-image-id',\n        dataSwatchIndex: 'data-swatch-index'\n    };\n    let ProductGridItem = class ProductGridItem extends HTMLElement {\n        connectedCallback() {\n            if (this.gridItemVariantLinks.length) {\n                this.gridItemVariantLinks.forEach((element)=>{\n                    if (!element.hasAttribute(selectors$L.dataGridItemVariant)) return;\n                    this.swatchHoverEvent(element);\n                    this.swatchClickEvent(element);\n                });\n            }\n        }\n        swatchHoverEvent(swatchLink) {\n            swatchLink.addEventListener('mouseenter', ()=>{\n                if (swatchLink.hasAttribute(selectors$L.dataGridItemVariant)) {\n                    const product = swatchLink.getAttribute(selectors$L.dataGridItemVariant);\n                    // Ensure all images are loaded for this swatch\n                    this.container.querySelectorAll(`product-grid-item-variant[${selectors$L.dataGridItemVariant}=\"${product}\"] product-grid-item-image`).forEach((image)=>{\n                        image.setAttribute('loading', 'eager');\n                    });\n                }\n            });\n        }\n        swatchClickEvent(swatchLink) {\n            swatchLink.addEventListener('click', (e)=>{\n                e.preventDefault();\n                this.container.querySelectorAll(`a[${selectors$L.dataGridItemVariant}]`).forEach((link)=>link.removeAttribute('aria-selected')\n                );\n                swatchLink.setAttribute('aria-selected', 'true');\n                if (swatchLink.hasAttribute(selectors$L.dataGridItemVariant)) {\n                    const swatchLinkVariant = swatchLink.getAttribute(selectors$L.dataGridItemVariant);\n                    // Show content for swatch\n                    this.container.querySelectorAll(`product-grid-item-variant[${selectors$L.dataGridItemVariant}]`).forEach((swatchElement)=>{\n                        const swatchElementVariant = swatchElement.getAttribute(selectors$L.dataGridItemVariant);\n                        if (swatchElementVariant === swatchLinkVariant) {\n                            swatchElement.removeAttribute('hidden');\n                        } else {\n                            swatchElement.setAttribute('hidden', '');\n                        }\n                    });\n                }\n            });\n        }\n        constructor(){\n            super();\n            this.container = this;\n            this.gridItemVariantLinks = this.container.querySelectorAll(`a[${selectors$L.dataGridItemVariant}]`);\n        }\n    };\n\n    const selectors$K = {\n        productGridItemLink: '[data-grid-link]',\n        dataGridImages: 'data-grid-images',\n        dataGridImage: 'data-grid-image',\n        dataGridImageTarget: 'data-grid-image-target',\n        dataGridCurrentImage: 'data-grid-current-image',\n        dataGridPagination: 'data-grid-pagination',\n        dataGridPage: 'data-grid-page',\n        dataGridItemVariant: 'data-grid-item-variant',\n        dataSlideForFilterSelectedVariant: 'data-slide-for-filter-selected-variant',\n        dataSlideForVariantMedia: 'data-slide-for-variant-media',\n        dataSlideshowStyle: 'data-slideshow-style',\n        styleWidth: '--width'\n    };\n    const classes$r = {\n        fade: 'is-fade',\n        active: 'is-active',\n        mobile: 'is-mobile',\n        pagination: 'product-grid-item__pagination',\n        productGridItemImage: 'product-grid-item__image'\n    };\n    // Only create pagination if the style is cycle_images\n    // If the style is second_immediately we show the second image immmidiately\n    // without pagination or a timer. If the style is disabled we do nothing on\n    // hover, only change images on swatch click\n    let ProductGridItemVariant = class ProductGridItemVariant extends HTMLElement {\n        static get observedAttributes() {\n            return [\n                'hidden'\n            ];\n        }\n        /*\n      Ensure that image at index is loaded\n      */ preloadImage(index) {\n            // For now, we don't have a mobile slideshow so do not preload\n            if (this.isMobile) return;\n            const childElement = [\n                ...this.images\n            ][index];\n            if (!childElement) {\n                throw new Error(`No child element at index ${index}`);\n            }\n            childElement.setAttribute('loading', 'eager');\n        }\n        /*\n      Load all images by replacing each template with it's content\n      */ preloadImages() {\n            [\n                ...this.imagesHolder.children\n            ].forEach((_el, i)=>this.preloadImage(i)\n            );\n        }\n        connectedCallback() {\n            this.toggleMobile();\n            document.addEventListener('theme:resize:width', ()=>this.toggleMobile()\n            );\n            if (this.isMobile) return;\n            if (this.imageCount > 1) {\n                // Create slider of PGI images if the images are more than 1\n                this.createPaging();\n                this.container.addEventListener('theme:swatch:change', this.swatchChangeEvent);\n                this.container.addEventListener('mouseenter', this.mouseEnterEvent);\n                this.container.addEventListener('mouseleave', this.mouseLeaveEvent);\n            }\n            this.intersectionObserver.observe(this.container);\n        }\n        disconnectedCallback() {\n            this.container.removeEventListener('theme:swatch:change', this.swatchChangeEvent);\n            this.container.removeEventListener('mouseenter', this.mouseEnterEvent);\n            this.container.removeEventListener('mouseleave', this.mouseLeaveEvent);\n        }\n        swatchChangeEvent(e) {\n            // Change the image if the swatch is clicked\n            const id = e.detail.id;\n            const target = this.container.querySelector(`[${selectors$K.dataGridImageTarget}=\"${id}\"]`);\n            if (target) {\n                const index = target.getAttribute(selectors$K.dataGridImage);\n                this.pagingProgressCounter = 0;\n                this.changeImage(index);\n                if (e.detail.stopSlideAnimation) {\n                    this.stopPaging();\n                }\n            }\n        }\n        mouseEnterEvent() {\n            this.preloadImages();\n            switch(this.slideshowStyle){\n                case 'cycle_images':\n                    // Start slideshow\n                    this.pagingProgressPause = this.isMobile;\n                    this.progressPaging();\n                    break;\n                case 'second_immediately':\n                    this.changeImage(this.getNextIndex());\n                    break;\n                case 'disabled':\n                    break;\n                default:\n                    throw new Error(`Unknown option ${this.slideshowStyle}`);\n            }\n        }\n        mouseLeaveEvent() {\n            // Stop slideshow and rewind to first image\n            this.pagingProgressPause = true;\n            this.resetSlideshow();\n            this.progressPaging();\n        }\n        attributeChangedCallback(name, prevValue, newValue) {\n            if (name === 'hidden' && prevValue == null && newValue != null) {\n                // When hiding or showing a PGI, reset it's slideshow to show the image for the current variant\n                this.showVariant();\n            }\n        }\n        toggleMobile() {\n            this.container.classList.toggle(classes$r.mobile, this.isMobile);\n        }\n        get isMobile() {\n            const windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\n            return windowWidth < window.theme.sizes.medium;\n        }\n        resetSlideshow() {\n            const forcedDefaultSlide = this.container.querySelector(`[${selectors$K.dataSlideForFilterSelectedVariant}]`);\n            // if a variant is selected by a collection filter show the variant image instead of the image at [0]\n            if (forcedDefaultSlide) {\n                let imageIndex = Number(forcedDefaultSlide.getAttribute(selectors$K.dataGridImage));\n                this.changeImage(imageIndex);\n            } else {\n                this.changeImage(0);\n            }\n            this.pagingProgressPause = true;\n        }\n        showVariant() {\n            const variantImage = this.container.querySelector(`[${selectors$K.dataSlideForVariantMedia}]`);\n            // if a swatch is clicked, show the variant image instead of the image at [0]\n            if (variantImage) {\n                let imageIndex = Number(variantImage.getAttribute(selectors$K.dataGridImage));\n                this.changeImage(imageIndex);\n            } else {\n                this.changeImage(0);\n            }\n            this.pagingProgressPause = true;\n        }\n        getNextIndex() {\n            let currentImage = this.container.querySelector(`[${selectors$K.dataGridImage}][${selectors$K.dataGridCurrentImage}]`);\n            if (currentImage) {\n                const currentIndex = Number(currentImage.getAttribute(selectors$K.dataGridImage));\n                const nextIndex = (currentIndex + 1) % this.imageCount;\n                return nextIndex;\n            } else {\n                return 0;\n            }\n        }\n        changeImage(index) {\n            const currentImage = this.images[index % this.imageCount];\n            if (!currentImage) return;\n            this.activeImages.forEach((image)=>image.removeAttribute(selectors$K.dataGridCurrentImage)\n            );\n            currentImage.setAttribute(selectors$K.dataGridCurrentImage, 'true');\n            if (this.slideshowStyle === 'cycle_images') {\n                this.changePaging(index);\n            }\n        }\n        changePaging(index = 0) {\n            // Change active class on slider pagination\n            const activePage = this.container.querySelector(`[${selectors$K.dataGridPage}].${classes$r.active}`);\n            const currentPage = this.container.querySelector(`[${selectors$K.dataGridPage}=\"${index}\"]`);\n            if (activePage) {\n                activePage.style.setProperty(selectors$K.styleWidth, '100%');\n                activePage.classList.remove(classes$r.active);\n            }\n            if (currentPage) {\n                currentPage.classList.add(classes$r.active);\n                this.progressPaging();\n            }\n        }\n        progressPaging() {\n            // Play/pause the PGI images slider\n            const element = this.container.querySelector(`[${selectors$K.dataGridPage}].${classes$r.active}`);\n            if (!element || this.isMobile) return;\n            this.stopPaging();\n            if (this.pagingProgressCounter === 0) {\n                element.style.setProperty(selectors$K.styleWidth, '0%');\n            }\n            this.interval = setInterval(()=>{\n                if (this.pagingProgressCounter >= 100 && !this.pagingProgressPause) {\n                    this.stopPaging();\n                    this.pagingProgressCounter = 0;\n                    this.changeImage(this.getNextIndex());\n                } else if (!this.pagingProgressPause) {\n                    this.pagingProgressCounter++;\n                    element.style.setProperty(selectors$K.styleWidth, `${this.pagingProgressCounter}%`);\n                }\n            }, this.timeout / 100);\n        }\n        stopPaging() {\n            // Stop slider\n            if (this.interval) {\n                clearInterval(this.interval);\n            }\n        }\n        createPaging() {\n            // Create pagination of PGI images slider\n            if (this.imagesHolder && this.slideshowStyle === 'cycle_images') {\n                let pagination = '';\n                for(let index = 0; index < this.imageCount; index++){\n                    let activeClass = '';\n                    if (index === 0) {\n                        activeClass = `class=\"${classes$r.active}\"`;\n                    }\n                    pagination += `<span ${activeClass} ${selectors$K.dataGridPage}=\"${index}\">${index + 1}</span>`;\n                }\n                if (pagination !== '') {\n                    let pagingContainer = this.container.querySelector(`[${selectors$K.dataGridPagination}]`);\n                    if (!pagingContainer) {\n                        pagingContainer = document.createElement('div');\n                        pagingContainer.className = classes$r.pagination;\n                        pagingContainer.setAttribute(selectors$K.dataGridPagination, '');\n                    }\n                    pagingContainer.innerHTML = pagination;\n                    this.imagesHolder.parentElement.prepend(pagingContainer);\n                }\n            }\n        }\n        removePaging() {\n            // Remove the slider pagination holder\n            const pagingContainer = this.container.querySelector(`[${selectors$K.dataGridPagination}]`);\n            if (pagingContainer) {\n                pagingContainer.remove();\n            }\n        }\n        get imagesHolder() {\n            return this.container.querySelector(`[${selectors$K.dataGridImages}]`);\n        }\n        get images() {\n            return this.imagesHolder.querySelectorAll(`[${selectors$K.dataGridImage}]`);\n        }\n        get activeImages() {\n            return this.imagesHolder.querySelectorAll(`[${selectors$K.dataGridImage}][${selectors$K.dataGridCurrentImage}]`);\n        }\n        get links() {\n            return this.container.querySelectorAll(selectors$K.productGridItemLink);\n        }\n        get slideshowStyle() {\n            return this.container.getAttribute(selectors$K.dataSlideshowStyle);\n        }\n        get imageCount() {\n            return this.images.length;\n        }\n        constructor(){\n            super();\n            this.container = this;\n            this.mobileStopSlideshow = 'true';\n            this.timeout = window.theme.settings.cycle_images_hover_delay * 1000 || 1500;\n            this.interval = null;\n            this.pagingProgressPause = false;\n            this.pagingProgressCounter = 0;\n            this.siblingsFetchCounter = 0;\n            this.siblingLoadImageIndex = null;\n            this.intersectionObserver = new IntersectionObserver((entries)=>{\n                entries.forEach((entry)=>{\n                    if (entry.isIntersecting) {\n                        // As soon as grid item is on-screen preload second slideshow image so that it appears immediately when hovering\n                        if (this.imageCount > 1) {\n                            this.preloadImage(1);\n                        }\n                    }\n                });\n            }, {\n                threshold: 0.1\n            });\n        }\n    };\n\n    const selectors$J = {\n        dataGridCurrentImage: 'data-grid-current-image'\n    };\n    const classes$q = {\n        active: 'is-active'\n    };\n    let ProductGridItemImage = class ProductGridItemImage extends HTMLElement {\n        static get observedAttributes() {\n            return [\n                'loading',\n                selectors$J.dataGridCurrentImage\n            ];\n        }\n        connectedCallback() {\n            if (this.getAttribute(selectors$J.dataGridCurrentImage) === null) {\n                this.hide();\n            } else {\n                this.show();\n            }\n        }\n        attributeChangedCallback(name, _oldValue, newValue) {\n            switch(name){\n                case 'loading':\n                    if (newValue === null || newValue === 'eager') {\n                        this.eagerLoad();\n                    }\n                    break;\n                case selectors$J.dataGridCurrentImage:\n                    if (newValue === null) {\n                        this.hide();\n                    } else {\n                        this.show();\n                    }\n                    break;\n            }\n        }\n        show() {\n            this.classList.add(classes$q.active);\n        }\n        hide() {\n            this.classList.remove(classes$q.active);\n        }\n        // Ensure that child image has loaded in case the child was wrapped in `<template>` to prevent eager loading\n        eagerLoad() {\n            const childElement = this.firstElementChild;\n            switch(childElement.nodeName){\n                case 'TEMPLATE':\n                    // For template children, replace the template with the child img tag which will load the image\n                    const template = childElement;\n                    const templateContent = template.content;\n                    // Make sure template children images load immediatley\n                    templateContent.querySelectorAll('img').forEach((imgEl)=>{\n                        imgEl.setAttribute('loading', 'eager');\n                        imgEl.setAttribute('fetchpriority', 'high');\n                    });\n                    template.replaceWith(templateContent);\n                    break;\n                case 'IMG':\n                    // For image children, make sure they load immediately if they were otherwise set to lazy load\n                    childElement.setAttribute('loading', 'eager');\n                    childElement.setAttribute('fetchpriority', 'high');\n                    break;\n            }\n        }\n    };\n\n    const selectors$I = {\n        popoutWrapper: '[data-popout]',\n        popoutList: '[data-popout-list]',\n        popoutListScroll: 'data-popout-list-scroll',\n        popoutToggle: 'data-popout-toggle',\n        popoutInput: '[data-popout-input]',\n        popoutOptions: '[data-popout-option]',\n        popoutPrevent: 'data-popout-prevent',\n        popoutQuantity: 'data-quantity-field',\n        dataValue: 'data-value',\n        ariaExpanded: 'aria-expanded',\n        ariaCurrent: 'aria-current'\n    };\n    const classes$p = {\n        listVisible: 'popout-list--visible',\n        currentSuffix: '--current'\n    };\n    let PopoutSelect = class PopoutSelect extends HTMLElement {\n        unload() {\n            if (this.popoutOptions.length) {\n                this.popoutOptions.forEach((element)=>{\n                    element.removeEventListener('theme:popout:click', this.popupOptionsClick.bind(this));\n                    element.removeEventListener('click', this._connectOptionsDispatch.bind(this));\n                });\n            }\n            this.popoutToggle.removeEventListener('click', this.popupToggleClick.bind(this));\n            this.popoutToggle.removeEventListener('focusout', this.popupToggleFocusout.bind(this));\n            this.popoutList.removeEventListener('focusout', this.popupListFocusout.bind(this));\n            this.container.removeEventListener('keyup', this.containerKeyup.bind(this));\n            if (this.outsidePopupToggle) {\n                this.outsidePopupToggle.removeEventListener('click', this.popupToggleClick.bind(this));\n                this.outsidePopupToggle.removeEventListener('focusout', this.popupToggleFocusout.bind(this));\n            }\n        }\n        popupToggleClick(evt) {\n            const ariaExpanded = evt.currentTarget.getAttribute(selectors$I.ariaExpanded) === 'true';\n            evt.currentTarget.setAttribute(selectors$I.ariaExpanded, !ariaExpanded);\n            this.popoutList.classList.toggle(classes$p.listVisible);\n            this.popupListMaxWidth();\n            if (this.popoutList.hasAttribute(selectors$I.popoutListScroll)) {\n                setTimeout(()=>{\n                    this.popoutList.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                        bubbles: true\n                    }));\n                }, 1);\n            }\n        }\n        popupToggleFocusout(evt) {\n            const popoutLostFocus = this.container.contains(evt.relatedTarget);\n            if (!popoutLostFocus) {\n                this._hideList();\n            }\n        }\n        popupListFocusout(evt) {\n            const childInFocus = evt.currentTarget.contains(evt.relatedTarget);\n            const isVisible = this.popoutList.classList.contains(classes$p.listVisible);\n            if (isVisible && !childInFocus) {\n                this._hideList();\n            }\n        }\n        popupListMaxWidth() {\n            this.popoutList.style.maxWidth = `${parseInt(document.body.clientWidth - this.popoutList.getBoundingClientRect().left)}px`;\n        }\n        popupOptionsClick(evt) {\n            const link = evt.target.closest(selectors$I.popoutOptions);\n            if (link.attributes.href.value === '#') {\n                evt.preventDefault();\n                let attrValue = '';\n                if (evt.currentTarget.getAttribute(selectors$I.dataValue)) {\n                    attrValue = evt.currentTarget.getAttribute(selectors$I.dataValue);\n                }\n                this.popoutInput.value = attrValue;\n                if (this.popoutPrevent) {\n                    this.popoutInput.dispatchEvent(new Event('change'));\n                    if (!evt.detail.preventTrigger && this.popoutInput.hasAttribute(selectors$I.popoutQuantity)) {\n                        this.popoutInput.dispatchEvent(new Event('input'));\n                    }\n                    const currentElement = this.popoutList.querySelector(`[class*=\"${classes$p.currentSuffix}\"]`);\n                    let targetClass = classes$p.currentSuffix;\n                    if (currentElement && currentElement.classList.length) {\n                        for (const currentElementClass of currentElement.classList){\n                            if (currentElementClass.includes(classes$p.currentSuffix)) {\n                                targetClass = currentElementClass;\n                                break;\n                            }\n                        }\n                    }\n                    const listTargetElement = this.popoutList.querySelector(`.${targetClass}`);\n                    if (listTargetElement) {\n                        listTargetElement.classList.remove(`${targetClass}`);\n                        evt.currentTarget.parentElement.classList.add(`${targetClass}`);\n                    }\n                    const targetAttribute = this.popoutList.querySelector(`[${selectors$I.ariaCurrent}]`);\n                    if (targetAttribute && targetAttribute.hasAttribute(`${selectors$I.ariaCurrent}`)) {\n                        targetAttribute.removeAttribute(`${selectors$I.ariaCurrent}`);\n                        evt.currentTarget.setAttribute(`${selectors$I.ariaCurrent}`, 'true');\n                    }\n                    if (attrValue !== '') {\n                        this.replaceTextContent(this.popoutToggle, attrValue);\n                        if (this.outsidePopupToggle) {\n                            this.replaceTextContent(this.outsidePopupToggle, attrValue);\n                        }\n                    }\n                    this.popupToggleFocusout(evt);\n                    this.popupListFocusout(evt);\n                } else {\n                    this._submitForm(attrValue);\n                }\n            }\n        }\n        replaceTextContent(elem, newContent) {\n            Array.from(elem.childNodes).forEach((node)=>{\n                if (node.nodeType === Node.TEXT_NODE) {\n                    node.textContent = newContent;\n                }\n            });\n        }\n        updatePopout(evt) {\n            const targetElement = this.popoutList.querySelector(`[${selectors$I.dataValue}=\"${this.popoutInput.value}\"]`);\n            if (targetElement) {\n                targetElement.dispatchEvent(new CustomEvent('theme:popout:click', {\n                    cancelable: true,\n                    bubbles: true,\n                    detail: {\n                        preventTrigger: true\n                    }\n                }));\n            }\n        }\n        containerKeyup(evt) {\n            if (evt.code !== 'Escape') {\n                return;\n            }\n            this._hideList();\n            this.popoutToggle.focus();\n        }\n        bodyClick(evt) {\n            const isOption = this.container.contains(evt.target);\n            const isVisible = this.popoutList.classList.contains(classes$p.listVisible);\n            this.outsidePopupToggle === evt.target;\n            if (isVisible && !isOption) {\n                this._hideList();\n            }\n        }\n        _connectToggle() {\n            this.popoutToggle.addEventListener('click', this.popupToggleClick.bind(this));\n            if (this.outsidePopupToggle) {\n                this.outsidePopupToggle.addEventListener('click', this.popupToggleClick.bind(this));\n            }\n        }\n        _connectOptions() {\n            if (this.popoutOptions.length) {\n                this.popoutOptions.forEach((element)=>{\n                    element.addEventListener('theme:popout:click', this.popupOptionsClick.bind(this));\n                    element.addEventListener('click', this._connectOptionsDispatch.bind(this));\n                });\n            }\n        }\n        _connectOptionsDispatch(evt) {\n            const event = new CustomEvent('theme:popout:click', {\n                cancelable: true,\n                bubbles: true,\n                detail: {\n                    preventTrigger: false\n                }\n            });\n            if (!evt.target.dispatchEvent(event)) {\n                evt.preventDefault();\n            }\n        }\n        _onFocusOut() {\n            this.popoutToggle.addEventListener('focusout', this.popupToggleFocusout.bind(this));\n            if (this.outsidePopupToggle) {\n                this.outsidePopupToggle.addEventListener('focusout', this.popupToggleFocusout.bind(this));\n            }\n            this.popoutList.addEventListener('focusout', this.popupListFocusout.bind(this));\n            this.container.addEventListener('keyup', this.containerKeyup.bind(this));\n            document.body.addEventListener('click', this.bodyClick.bind(this));\n        }\n        _submitForm(value) {\n            const form = this.container.closest('form');\n            if (form) {\n                form.submit();\n            }\n        }\n        _hideList() {\n            this.popoutList.classList.remove(classes$p.listVisible);\n            this.popoutToggle.setAttribute(selectors$I.ariaExpanded, false);\n            if (this.outsidePopupToggle) {\n                this.outsidePopupToggle.setAttribute(selectors$I.ariaExpanded, false);\n            }\n        }\n        constructor(){\n            super();\n            this.container = this.querySelector(selectors$I.popoutWrapper);\n            this.popoutList = this.container.querySelector(selectors$I.popoutList);\n            this.popoutToggle = this.container.querySelector(`[${selectors$I.popoutToggle}]`);\n            this.outsidePopupToggle = document.querySelector(`[${selectors$I.popoutToggle}=\"${this.popoutList.id}\"]`);\n            this.popoutInput = this.container.querySelector(selectors$I.popoutInput);\n            this.popoutOptions = this.container.querySelectorAll(selectors$I.popoutOptions);\n            this.popoutPrevent = this.container.getAttribute(selectors$I.popoutPrevent) === 'true';\n            this._connectOptions();\n            this._connectToggle();\n            this._onFocusOut();\n            this.popupListMaxWidth();\n            if (this.popoutInput && this.popoutInput.hasAttribute(selectors$I.popoutQuantity)) {\n                document.addEventListener('theme:popout:update', this.updatePopout.bind(this));\n            }\n            document.addEventListener('theme:resize', ()=>{\n                this.popupListMaxWidth();\n            });\n        }\n    };\n\n    const slideDown = (target, duration = 500, checkHidden = true)=>{\n        let display = window.getComputedStyle(target).display;\n        if (checkHidden && display !== 'none') {\n            return;\n        }\n        target.style.removeProperty('display');\n        if (display === 'none') display = 'block';\n        target.style.display = display;\n        let height = target.offsetHeight;\n        target.style.overflow = 'hidden';\n        target.style.height = 0;\n        target.style.paddingTop = 0;\n        target.style.paddingBottom = 0;\n        target.style.marginTop = 0;\n        target.style.marginBottom = 0;\n        target.offsetHeight;\n        target.style.boxSizing = 'border-box';\n        target.style.transitionTimingFunction = 'cubic-bezier(0.215, 0.61, 0.355, 1)';\n        target.style.transitionProperty = 'height, margin, padding';\n        target.style.transitionDuration = duration + 'ms';\n        target.style.height = height + 'px';\n        target.style.removeProperty('padding-top');\n        target.style.removeProperty('padding-bottom');\n        target.style.removeProperty('margin-top');\n        target.style.removeProperty('margin-bottom');\n        window.setTimeout(()=>{\n            target.style.removeProperty('height');\n            target.style.removeProperty('overflow');\n            target.style.removeProperty('transition-duration');\n            target.style.removeProperty('transition-property');\n            target.style.removeProperty('transition-timing-function');\n        }, duration);\n    };\n\n    const slideUp = (target, duration = 500)=>{\n        target.style.transitionProperty = 'height, margin, padding';\n        target.style.transitionTimingFunction = 'cubic-bezier(0.215, 0.61, 0.355, 1)';\n        target.style.transitionDuration = duration + 'ms';\n        target.style.boxSizing = 'border-box';\n        target.style.height = target.offsetHeight + 'px';\n        target.offsetHeight;\n        target.style.overflow = 'hidden';\n        target.style.height = 0;\n        target.style.paddingTop = 0;\n        target.style.paddingBottom = 0;\n        target.style.marginTop = 0;\n        target.style.marginBottom = 0;\n        window.setTimeout(()=>{\n            target.style.display = 'none';\n            target.style.removeProperty('height');\n            target.style.removeProperty('padding-top');\n            target.style.removeProperty('padding-bottom');\n            target.style.removeProperty('margin-top');\n            target.style.removeProperty('margin-bottom');\n            target.style.removeProperty('overflow');\n            target.style.removeProperty('transition-duration');\n            target.style.removeProperty('transition-property');\n            target.style.removeProperty('transition-timing-function');\n        }, duration);\n    };\n\n    const selectors$H = {\n        accordionGroup: '[data-accordion-group]',\n        accordionToggle: 'data-accordion-trigger',\n        accordionBody: '[data-accordion-body]',\n        accordionBodyMobile: 'data-accordion-body-mobile',\n        rangeSlider: 'data-range-holder',\n        section: '[data-section-id]'\n    };\n    const classes$o = {\n        open: 'accordion-is-open'\n    };\n    let sections$c = {};\n    let Accordion = class Accordion {\n        mobileAccordions() {\n            if (window.innerWidth < window.theme.sizes.medium) {\n                this.init();\n                this.setDefaultState();\n            } else {\n                this.resetMobileAccordions();\n                this.body.removeAttribute('style');\n            }\n            document.addEventListener('theme:resize', ()=>{\n                if (window.innerWidth < window.theme.sizes.medium) {\n                    this.init();\n                    this.setDefaultState();\n                } else {\n                    this.resetMobileAccordions();\n                    this.body.removeAttribute('style');\n                }\n            });\n        }\n        init() {\n            this.trigger.setAttribute('aria-haspopup', true);\n            this.trigger.setAttribute('aria-expanded', false);\n            this.trigger.setAttribute('aria-controls', this.key);\n            this.setDefaultState();\n            this.trigger.addEventListener('click', this.toggleEvent);\n            this.body.addEventListener('keyup', this.keyboardEvent);\n            this.body.addEventListener('theme:accordion:close', this.hideEvent);\n        }\n        hideEvents() {\n            this.hideAccordion();\n        }\n        clickEvents(e) {\n            e.preventDefault();\n            this.toggleState();\n        }\n        keyboardEvents(e) {\n            if (e.code !== 'Escape') {\n                return;\n            }\n            this.hideAccordion();\n            this.trigger.focus();\n        }\n        resetMobileAccordions() {\n            this.trigger.removeEventListener('click', this.toggleEvent);\n            this.body.removeEventListener('keyup', this.keyboardEvent);\n            this.body.removeEventListener('theme:accordion:close', this.hideEvent);\n        }\n        setDefaultState() {\n            if (this.trigger.classList.contains(classes$o.open)) {\n                showElement(this.body);\n            } else {\n                this.hideAccordion();\n            }\n        }\n        getSiblings() {\n            const section = this.body.closest(selectors$H.section);\n            const groupsArray = [\n                ...section.querySelectorAll(selectors$H.accordionGroup)\n            ];\n            const syncWrapper = groupsArray.filter((el)=>el.contains(this.body)\n            ).shift();\n            if (syncWrapper) {\n                const allChilden = [\n                    ...syncWrapper.querySelectorAll(selectors$H.accordionBody)\n                ];\n                const onlySiblings = allChilden.filter((el)=>!el.contains(this.body)\n                );\n                return onlySiblings;\n            } else return [];\n        }\n        closeSiblings() {\n            this.syncBodies.forEach((accordionBody)=>{\n                accordionBody.dispatchEvent(new CustomEvent('theme:accordion:close', {\n                    bubbles: false\n                }));\n            });\n        }\n        toggleState() {\n            if (this.trigger.classList.contains(classes$o.open)) {\n                this.hideAccordion();\n            } else {\n                this.showAccordion();\n                this.closeSiblings();\n                // Collection filters\n                // Accordion with range slider custom event to reload\n                if (this.body.hasAttribute(selectors$H.rangeSlider)) {\n                    setTimeout(()=>{\n                        document.dispatchEvent(new CustomEvent('theme:price-range:reset', {\n                            bubbles: false\n                        }));\n                    }, 400);\n                }\n            }\n        }\n        hideAccordion() {\n            this.trigger.classList.remove(classes$o.open);\n            slideUp(this.body);\n        }\n        showAccordion() {\n            this.trigger.classList.add(classes$o.open);\n            slideDown(this.body);\n            setTimeout(()=>{\n                this.checkInViewportAndScrollTo();\n            }, 600);\n        }\n        checkInViewportAndScrollTo() {\n            const rect = this.trigger.getBoundingClientRect();\n            const windowScrollY = (window.pageYOffset || document.documentElement.scrollTop) - (document.documentElement.clientTop || 0);\n            const inViewport = rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);\n            if (!inViewport) {\n                window.scrollTo({\n                    top: windowScrollY + rect.top,\n                    left: 0,\n                    behavior: 'smooth'\n                });\n            }\n        }\n        onBlockSelect(evt) {\n            if (this.body.contains(evt.target)) {\n                this.showAccordion();\n            }\n        }\n        onBlockDeselect(evt) {\n            if (this.body.contains(evt.target)) {\n                this.hideAccordion();\n            }\n        }\n        constructor(el){\n            this.body = el;\n            this.key = this.body.id;\n            const btnSelector = `[${selectors$H.accordionToggle}='${this.key}']`;\n            this.trigger = document.querySelector(btnSelector);\n            this.toggleEvent = (e)=>this.clickEvents(e)\n            ;\n            this.keyboardEvent = (e)=>this.keyboardEvents(e)\n            ;\n            this.hideEvent = ()=>this.hideEvents()\n            ;\n            this.syncBodies = this.getSiblings();\n            if (this.body.hasAttribute(selectors$H.accordionBodyMobile)) {\n                this.mobileAccordions();\n            } else {\n                this.init();\n            }\n        }\n    };\n    const accordion = {\n        onLoad () {\n            sections$c[this.id] = [];\n            const els = this.container.querySelectorAll(selectors$H.accordionBody);\n            els.forEach((el)=>{\n                sections$c[this.id].push(new Accordion(el));\n            });\n        },\n        onUnload: function() {\n            sections$c[this.id].forEach((el)=>{\n                if (typeof el.unload === 'function') {\n                    el.unload();\n                }\n            });\n        },\n        onSelect: function() {\n            if (this.type === 'accordion-single') {\n                this.container.querySelector(`[${selectors$H.accordionToggle}]`).click();\n            }\n        },\n        onDeselect: function() {\n            if (this.type === 'accordion-single') {\n                this.container.querySelector(`[${selectors$H.accordionToggle}]`).click();\n            }\n        },\n        onBlockSelect (evt) {\n            sections$c[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(evt);\n                }\n            });\n        },\n        onBlockDeselect (evt) {\n            sections$c[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockDeselect(evt);\n                }\n            });\n        }\n    };\n\n    const hideElement = (elem)=>{\n        if (elem) {\n            elem.style.display = 'none';\n        }\n    };\n\n    const selectors$G = {\n        inputSearch: 'input[type=\"search\"]',\n        focusedElements: '[aria-selected=\"true\"] a',\n        resetButton: 'button[type=\"reset\"]'\n    };\n    const classes$n = {\n        hidden: 'is-hidden'\n    };\n    let HeaderSearchForm = class HeaderSearchForm extends HTMLElement {\n        toggleResetButton() {\n            const resetIsHidden = this.resetButton.classList.contains(classes$n.hidden);\n            if (this.input.value.length > 0 && resetIsHidden) {\n                this.resetButton.classList.remove(classes$n.hidden);\n            } else if (this.input.value.length === 0 && !resetIsHidden) {\n                this.resetButton.classList.add(classes$n.hidden);\n            }\n        }\n        onChange() {\n            this.toggleResetButton();\n        }\n        shouldResetForm() {\n            return !document.querySelector(selectors$G.focusedElements);\n        }\n        onFormReset(event) {\n            // Prevent default so the form reset doesn't set the value gotten from the url on page load\n            event.preventDefault();\n            // Don't reset if the user has selected an element on the predictive search dropdown\n            if (this.shouldResetForm()) {\n                this.input.value = '';\n                this.toggleResetButton();\n                event.target.querySelector(selectors$G.inputSearch).focus();\n            }\n        }\n        constructor(){\n            super();\n            this.input = this.querySelector(selectors$G.inputSearch);\n            this.resetButton = this.querySelector(selectors$G.resetButton);\n            if (this.input) {\n                this.input.form.addEventListener('reset', this.onFormReset.bind(this));\n                this.input.addEventListener('input', debounce$1((event)=>{\n                    this.onChange(event);\n                }, 300).bind(this));\n            }\n        }\n    };\n    customElements.define('header-search-form', HeaderSearchForm);\n\n    const selectors$F = {\n        allVisibleElements: '[role=\"option\"]',\n        ariaSelected: '[aria-selected=\"true\"]',\n        predictiveSearch: 'predictive-search',\n        predictiveSearchResults: '[data-predictive-search-results]',\n        predictiveSearchStatus: '[data-predictive-search-status]',\n        searchInput: '[data-predictive-search-input]',\n        searchResultsLiveRegion: '[data-predictive-search-live-region-count-value]',\n        searchResultsGroupsWrapper: 'data-search-results-groups-wrapper',\n        searchForText: '[data-predictive-search-search-for-text]',\n        sectionPredictiveSearch: '#shopify-section-predictive-search',\n        selectedLink: '[aria-selected=\"true\"] a',\n        selectedOption: '[aria-selected=\"true\"] a, button[aria-selected=\"true\"]',\n        loader: '[data-loading-indicator]'\n    };\n    let PredictiveSearch = class PredictiveSearch extends HeaderSearchForm {\n        connectedCallback() {\n            this.input.addEventListener('focus', this.onFocus.bind(this));\n            this.input.form.addEventListener('submit', this.onFormSubmit.bind(this));\n            this.addEventListener('focusout', this.onFocusOut.bind(this));\n            this.addEventListener('keyup', this.onKeyup.bind(this));\n            this.addEventListener('keydown', this.onKeydown.bind(this));\n        }\n        getQuery() {\n            return this.input.value.trim();\n        }\n        onChange() {\n            super.onChange();\n            const newSearchTerm = this.getQuery();\n            if (!this.searchTerm || !newSearchTerm.startsWith(this.searchTerm)) {\n                var // Remove the results when they are no longer relevant for the new search term\n                // so they don't show up when the dropdown opens again\n                ref;\n                (ref = this.querySelector(selectors$F.searchResultsGroupsWrapper)) === null || ref === void 0 ? void 0 : ref.remove();\n            }\n            // Update the term asap, don't wait for the predictive search query to finish loading\n            this.updateSearchForTerm(this.searchTerm, newSearchTerm);\n            this.searchTerm = newSearchTerm;\n            if (!this.searchTerm.length) {\n                this.reset();\n                return;\n            }\n            this.getSearchResults(this.searchTerm);\n        }\n        onFormSubmit(event) {\n            if (!this.getQuery().length || this.querySelector(selectors$F.selectedLink)) event.preventDefault();\n        }\n        onFormReset(event) {\n            super.onFormReset(event);\n            if (super.shouldResetForm()) {\n                this.searchTerm = '';\n                this.abortController.abort();\n                this.abortController = new AbortController();\n                this.closeResults(true);\n            }\n        }\n        shouldResetForm() {\n            return !document.querySelector(selectors$F.selectedLink);\n        }\n        onFocus() {\n            const currentSearchTerm = this.getQuery();\n            if (!currentSearchTerm.length) return;\n            if (this.searchTerm !== currentSearchTerm) {\n                // Search term was changed from other search input, treat it as a user change\n                this.onChange();\n            } else if (this.getAttribute('results') === 'true') {\n                this.open();\n            } else {\n                this.getSearchResults(this.searchTerm);\n            }\n        }\n        onFocusOut() {\n            setTimeout(()=>{\n                if (!this.contains(document.activeElement)) this.close();\n            });\n        }\n        onKeyup(event) {\n            if (!this.getQuery().length) this.close(true);\n            event.preventDefault();\n            switch(event.code){\n                case 'ArrowUp':\n                    this.switchOption('up');\n                    break;\n                case 'ArrowDown':\n                    this.switchOption('down');\n                    break;\n                case 'Enter':\n                    this.selectOption();\n                    break;\n            }\n        }\n        onKeydown(event) {\n            // Prevent the cursor from moving in the input when using the up and down arrow keys\n            if (event.code === 'ArrowUp' || event.code === 'ArrowDown') {\n                event.preventDefault();\n            }\n        }\n        updateSearchForTerm(previousTerm, newTerm) {\n            const searchForTextElement = this.querySelector(selectors$F.searchForText);\n            const currentButtonText = searchForTextElement === null || searchForTextElement === void 0 ? void 0 : searchForTextElement.innerText;\n            if (currentButtonText) {\n                var ref;\n                if (((ref = currentButtonText.match(previousTerm)) === null || ref === void 0 ? void 0 : ref.length) > 1) {\n                    // The new term matches part of the button text and not just the search term, do not replace to avoid mistakes\n                    return;\n                }\n                const newButtonText = currentButtonText.replace(previousTerm, newTerm);\n                searchForTextElement.innerText = newButtonText;\n            }\n        }\n        switchOption(direction) {\n            if (!this.getAttribute('open')) return;\n            const moveUp = direction === 'up';\n            const selectedElement = this.querySelector(selectors$F.ariaSelected);\n            // Filter out hidden elements (duplicated page and article resources) thanks\n            // to this https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent\n            const allVisibleElements = Array.from(this.querySelectorAll(selectors$F.allVisibleElements)).filter((element)=>element.offsetParent !== null\n            );\n            let activeElementIndex = 0;\n            if (moveUp && !selectedElement) return;\n            let selectedElementIndex = -1;\n            let i = 0;\n            while(selectedElementIndex === -1 && i <= allVisibleElements.length){\n                if (allVisibleElements[i] === selectedElement) {\n                    selectedElementIndex = i;\n                }\n                i++;\n            }\n            this.statusElement.textContent = '';\n            if (!moveUp && selectedElement) {\n                activeElementIndex = selectedElementIndex === allVisibleElements.length - 1 ? 0 : selectedElementIndex + 1;\n            } else if (moveUp) {\n                activeElementIndex = selectedElementIndex === 0 ? allVisibleElements.length - 1 : selectedElementIndex - 1;\n            }\n            if (activeElementIndex === selectedElementIndex) return;\n            const activeElement = allVisibleElements[activeElementIndex];\n            activeElement.setAttribute('aria-selected', true);\n            if (selectedElement) selectedElement.setAttribute('aria-selected', false);\n            this.input.setAttribute('aria-activedescendant', activeElement.id);\n        }\n        selectOption() {\n            const selectedOption = this.querySelector(selectors$F.selectedOption);\n            if (selectedOption) selectedOption.click();\n        }\n        getSearchResults(searchTerm) {\n            const queryKey = searchTerm.replace(' ', '-').toLowerCase();\n            this.setLiveRegionLoadingState();\n            if (this.cachedResults[queryKey]) {\n                this.renderSearchResults(this.cachedResults[queryKey]);\n                return;\n            }\n            showElement(this.loader);\n            fetch(`${theme.routes.predictive_search_url}?q=${encodeURIComponent(searchTerm)}&section_id=predictive-search`, {\n                signal: this.abortController.signal\n            }).then(this.handleErrors).then((response)=>response.text()\n            ).then((response)=>{\n                const resultsMarkup = new DOMParser().parseFromString(response, 'text/html').querySelector(selectors$F.sectionPredictiveSearch).innerHTML;\n                // Save bandwidth keeping the cache in all instances synced\n                this.allPredictiveSearchInstances.forEach((predictiveSearchInstance)=>{\n                    predictiveSearchInstance.cachedResults[queryKey] = resultsMarkup;\n                });\n                this.renderSearchResults(resultsMarkup);\n            }).catch((e)=>{\n                console.error(e);\n            }).finally(()=>{\n                hideElement(this.loader);\n            });\n        }\n        setLiveRegionLoadingState() {\n            this.statusElement = this.statusElement || this.querySelector(selectors$F.predictiveSearchStatus);\n            this.loadingText = this.loadingText || this.getAttribute('data-loading-text');\n            this.setLiveRegionText(this.loadingText);\n            this.setAttribute('loading', true);\n        }\n        setLiveRegionText(statusText) {\n            this.statusElement.setAttribute('aria-hidden', 'false');\n            this.statusElement.textContent = statusText;\n            setTimeout(()=>{\n                this.statusElement.setAttribute('aria-hidden', 'true');\n            }, 1000);\n        }\n        renderSearchResults(resultsMarkup) {\n            this.predictiveSearchResults.innerHTML = resultsMarkup;\n            this.setAttribute('results', true);\n            this.setLiveRegionResults();\n            this.open();\n        }\n        setLiveRegionResults() {\n            this.removeAttribute('loading');\n            this.setLiveRegionText(this.querySelector(selectors$F.searchResultsLiveRegion).textContent);\n        }\n        open() {\n            this.setAttribute('open', true);\n            this.input.setAttribute('aria-expanded', true);\n            this.isOpen = true;\n        }\n        close(clearSearchTerm = false) {\n            this.closeResults(clearSearchTerm);\n            this.isOpen = false;\n        }\n        closeResults(clearSearchTerm = false) {\n            var ref;\n            if (clearSearchTerm) {\n                this.input.value = '';\n                this.removeAttribute('results');\n            }\n            const selected = this.querySelector(selectors$F.ariaSelected);\n            if (selected) selected.setAttribute('aria-selected', false);\n            this.input.setAttribute('aria-activedescendant', '');\n            this.removeAttribute('loading');\n            this.removeAttribute('open');\n            this.input.setAttribute('aria-expanded', false);\n            (ref = this.predictiveSearchResults) === null || ref === void 0 ? void 0 : ref.removeAttribute('style');\n        }\n        reset() {\n            this.predictiveSearchResults.innerHTML = '';\n            this.input.val = '';\n            this.a11y.removeTrapFocus();\n        }\n        handleErrors(response) {\n            if (!response.ok) {\n                return response.json().then(function(json) {\n                    const e = new FetchError({\n                        status: response.statusText,\n                        headers: response.headers,\n                        json: json\n                    });\n                    throw e;\n                });\n            }\n            return response;\n        }\n        constructor(){\n            super();\n            this.wrapper = this;\n            this.a11y = a11y;\n            this.abortController = new AbortController();\n            this.allPredictiveSearchInstances = document.querySelectorAll(selectors$F.predictiveSearch);\n            this.cachedResults = {};\n            this.input = this.wrapper.querySelector(selectors$F.searchInput);\n            this.isOpen = false;\n            this.predictiveSearchResults = this.querySelector(selectors$F.predictiveSearchResults);\n            this.searchTerm = '';\n            this.loader = this.wrapper.querySelector(selectors$F.loader);\n        }\n    };\n\n    function getWindowWidth() {\n        return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\n    }\n    function isDesktop() {\n        return getWindowWidth() >= window.theme.sizes.small;\n    }\n    function isMobile() {\n        return getWindowWidth() < window.theme.sizes.small;\n    }\n\n    const selectors$E = {\n        inputSearch: 'input[type=\"search\"]'\n    };\n    let MainSearch = class MainSearch extends HeaderSearchForm {\n        setupEventListeners() {\n            let allSearchForms = [];\n            this.allSearchInputs.forEach((input)=>allSearchForms.push(input.form)\n            );\n            this.input.addEventListener('focus', this.onInputFocus.bind(this));\n            if (allSearchForms.length < 2) return;\n            allSearchForms.forEach((form)=>form.addEventListener('reset', this.onFormReset.bind(this))\n            );\n            this.allSearchInputs.forEach((input)=>input.addEventListener('input', this.onInput.bind(this))\n            );\n        }\n        onFormReset(event) {\n            super.onFormReset(event);\n            if (super.shouldResetForm()) {\n                this.keepInSync('', this.input);\n            }\n        }\n        onInput(event) {\n            const target = event.target;\n            this.keepInSync(target.value, target);\n        }\n        onInputFocus() {\n            if (!isDesktop()) {\n                this.scrollIntoView({\n                    behavior: 'smooth'\n                });\n            }\n        }\n        keepInSync(value, target) {\n            this.allSearchInputs.forEach((input)=>{\n                if (input !== target) {\n                    input.value = value;\n                }\n            });\n        }\n        constructor(){\n            super();\n            this.allSearchInputs = document.querySelectorAll(selectors$E.inputSearch);\n            this.setupEventListeners();\n        }\n    };\n\n    const selectors$D = {\n        drawer: 'data-drawer-scrolls',\n        slideruleOpen: 'data-sliderule-open',\n        slideruleClose: 'data-sliderule-close',\n        sliderulePane: 'data-sliderule-pane',\n        slideruleWrappper: '[data-sliderule]',\n        dataAnimates: 'data-animates',\n        children: `:scope > [data-animates],\n             :scope > * > [data-animates],\n             :scope > * > * >[data-animates],\n             :scope .sliderule-grid  > *`\n    };\n    const classes$m = {\n        isVisible: 'is-visible',\n        isHiding: 'is-hiding',\n        isHidden: 'is-hidden'\n    };\n    let sections$b = {};\n    let HeaderMobileSliderule = class HeaderMobileSliderule {\n        clickEvents() {\n            this.trigger.addEventListener('click', (function() {\n                this.showSliderule();\n            }).bind(this));\n            this.exit.forEach((element)=>{\n                element.addEventListener('click', (function() {\n                    this.hideSliderule();\n                }).bind(this));\n            });\n        }\n        keyboardEvents() {\n            this.trigger.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Space') {\n                    return;\n                }\n                this.showSliderule();\n            }).bind(this));\n            this.sliderule.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Escape') {\n                    return;\n                }\n                this.hideSliderule();\n                this.buttons[0].focus();\n            }).bind(this));\n        }\n        staggerChildAnimations(reverse = false) {\n            const childrenArr = reverse ? Array.prototype.slice.call(this.children).slice().reverse() : this.children;\n            childrenArr.forEach((child, index)=>{\n                child.style.transitionDelay = index * 50 + 10 + 'ms';\n            });\n        }\n        hideSliderule(close = false) {\n            const paneStyle = window.getComputedStyle(this.pane);\n            const paneTransitionDuration = parseFloat(paneStyle.getPropertyValue('transition-duration')) * 1000;\n            const children = close ? this.pane.querySelectorAll(`.${classes$m.isVisible}`) : this.children;\n            this.pane.style.setProperty('--sliderule-height', 'auto');\n            this.staggerChildAnimations(true);\n            this.pane.classList.add(classes$m.isHiding);\n            this.sliderule.classList.add(classes$m.isHiding);\n            this.sliderule.classList.remove(classes$m.isVisible);\n            children.forEach((el)=>{\n                el.classList.remove(classes$m.isVisible);\n            });\n            const newPosition = parseInt(this.pane.dataset.sliderulePane, 10) - 1;\n            this.pane.setAttribute(selectors$D.sliderulePane, newPosition);\n            const hidedSelector = close ? `[${selectors$D.dataAnimates}].${classes$m.isHidden}` : `[${selectors$D.dataAnimates}=\"${newPosition}\"].${classes$m.isHidden}`;\n            const hidedItems = this.pane.querySelectorAll(hidedSelector);\n            if (hidedItems.length) {\n                hidedItems.forEach((element)=>{\n                    element.classList.remove(classes$m.isHidden);\n                });\n            }\n            setTimeout(()=>{\n                this.pane.classList.remove(classes$m.isHiding);\n                this.sliderule.classList.remove(classes$m.isHiding);\n                this.staggerChildAnimations();\n            }, paneTransitionDuration);\n        }\n        showSliderule() {\n            this.pane.style.setProperty('--sliderule-height', 'auto');\n            this.sliderule.classList.add(classes$m.isVisible);\n            this.children.forEach((el)=>{\n                el.classList.add(classes$m.isVisible);\n            });\n            const oldPosition = parseInt(this.pane.dataset.sliderulePane, 10);\n            const newPosition = oldPosition + 1;\n            this.pane.setAttribute(selectors$D.sliderulePane, newPosition);\n            const hidedItems = this.pane.querySelectorAll(`[${selectors$D.dataAnimates}=\"${oldPosition}\"]`);\n            if (hidedItems.length) {\n                const hidedItemsTransition = parseFloat(window.getComputedStyle(hidedItems[0]).getPropertyValue('transition-duration')) * 1000;\n                setTimeout(()=>{\n                    hidedItems.forEach((element)=>{\n                        element.classList.add(classes$m.isHidden);\n                    });\n                }, hidedItemsTransition);\n            }\n            const newHeight = parseInt(this.trigger.nextElementSibling.offsetHeight);\n            this.pane.style.setProperty('--sliderule-height', `${newHeight}px`);\n            const drawerScrollY = this.drawer.scrollTop;\n            const scrollToElement = this.pane.offsetTop;\n            const enableScrollTo = scrollToElement < drawerScrollY && this.pane.offsetHeight >= this.drawer.offsetHeight;\n            if (enableScrollTo) {\n                this.drawer.scrollTo({\n                    top: scrollToElement,\n                    left: 0,\n                    behavior: 'smooth'\n                });\n            }\n        }\n        closeSliderule() {\n            if (this.pane && this.pane.hasAttribute(selectors$D.sliderulePane) && parseInt(this.pane.getAttribute(selectors$D.sliderulePane)) > 0) {\n                this.hideSliderule(true);\n                if (parseInt(this.pane.getAttribute(selectors$D.sliderulePane)) > 0) {\n                    this.pane.setAttribute(selectors$D.sliderulePane, 0);\n                }\n            }\n        }\n        constructor(el){\n            this.sliderule = el;\n            this.wrapper = el.closest(selectors$D.wrapper);\n            this.key = this.sliderule.id;\n            const btnSelector = `[${selectors$D.slideruleOpen}='${this.key}']`;\n            const exitSelector = `[${selectors$D.slideruleClose}='${this.key}']`;\n            this.trigger = document.querySelector(btnSelector);\n            this.drawer = document.querySelector(`[${selectors$D.drawer}]`);\n            this.exit = document.querySelectorAll(exitSelector);\n            this.pane = document.querySelector(`[${selectors$D.sliderulePane}]`);\n            this.children = this.sliderule.querySelectorAll(selectors$D.children);\n            this.trigger.setAttribute('aria-haspopup', true);\n            this.trigger.setAttribute('aria-expanded', false);\n            this.trigger.setAttribute('aria-controls', this.key);\n            this.clickEvents();\n            this.staggerChildAnimations();\n            document.addEventListener('theme:sliderule:close', this.closeSliderule.bind(this));\n        }\n    };\n    const headerMobileSliderule = {\n        onLoad () {\n            sections$b[this.id] = [];\n            const els = this.container.querySelectorAll(selectors$D.slideruleWrappper);\n            els.forEach((el)=>{\n                sections$b[this.id].push(new HeaderMobileSliderule(el));\n            });\n        }\n    };\n\n    const selectors$C = {\n        widthContent: '[data-takes-space]',\n        desktop: '[data-header-desktop]',\n        cloneClass: 'js__header__clone',\n        showMobileClass: 'js__show__mobile',\n        backfill: '[data-header-backfill]',\n        transparent: 'data-header-transparent',\n        overrideBorder: 'header-override-border',\n        firstSectionHasImage: '.main-content > .shopify-section:first-child [data-overlay-header]',\n        preventTransparentHeader: '.main-content > .shopify-section:first-child [data-prevent-transparent-header]',\n        deadLink: '.navlink[href=\"#\"]'\n    };\n    const classes$l = {\n        hasOverlay: 'has-overlay'\n    };\n    let sections$a = {};\n    let Header = class Header {\n        unload() {\n            document.removeEventListener('theme:resize', this.checkWidth);\n        }\n        checkForImage() {\n            this.overlayedImages = document.querySelectorAll(selectors$C.firstSectionHasImage);\n            let preventTransparentHeader = document.querySelectorAll(selectors$C.preventTransparentHeader).length;\n            if (this.overlayedImages.length && !preventTransparentHeader && this.transparent) {\n                // is transparent and has image, overlay the image\n                document.querySelector(selectors$C.backfill).style.display = 'none';\n                this.listenOverlay();\n            } else {\n                this.wrapper.setAttribute(selectors$C.transparent, false);\n            }\n            if (this.overlayedImages.length && !preventTransparentHeader && !this.transparent) {\n                // Have image but not transparent, remove border bottom\n                this.wrapper.classList.add(selectors$C.overrideBorder);\n                this.subtractHeaderHeight();\n            }\n        }\n        listenOverlay() {\n            document.addEventListener('theme:resize', this.checkWidth.bind(this));\n            this.subtractAnnouncementHeight();\n        }\n        listenWidth() {\n            document.addEventListener('theme:resize', this.checkWidth.bind(this));\n            this.checkWidth();\n        }\n        killDeadLinks() {\n            this.deadLinks.forEach((el)=>{\n                el.onclick = (e)=>{\n                    e.preventDefault();\n                };\n            });\n        }\n        subtractAnnouncementHeight() {\n            const { windowHeight , announcementHeight  } = readHeights();\n            this.overlayedImages.forEach((el)=>{\n                el.style.setProperty('--full-screen', `${windowHeight - announcementHeight}px`);\n                el.classList.add(classes$l.hasOverlay);\n            });\n        }\n        subtractHeaderHeight() {\n            const { windowHeight , headerHeight  } = readHeights();\n            this.overlayedImages.forEach((el)=>{\n                el.style.setProperty('--full-screen', `${windowHeight - headerHeight}px`);\n            });\n        }\n        checkWidth() {\n            if (document.body.clientWidth < this.minWidth) {\n                this.wrapper.classList.add(selectors$C.showMobileClass);\n            } else {\n                this.wrapper.classList.remove(selectors$C.showMobileClass);\n            }\n        }\n        getMinWidth() {\n            const comparitor = this.wrapper.cloneNode(true);\n            comparitor.classList.add(selectors$C.cloneClass);\n            document.body.appendChild(comparitor);\n            const wideElements = comparitor.querySelectorAll(selectors$C.widthContent);\n            let minWidth = 0;\n            if (wideElements.length === 3) {\n                minWidth = _sumSplitWidths(wideElements);\n            } else {\n                minWidth = _sumWidths(wideElements);\n            }\n            document.body.removeChild(comparitor);\n            return minWidth + wideElements.length * 20;\n        }\n        constructor(el){\n            this.wrapper = el;\n            this.style = this.wrapper.dataset.style;\n            this.desktop = this.wrapper.querySelector(selectors$C.desktop);\n            this.transparent = this.wrapper.getAttribute(selectors$C.transparent) !== 'false';\n            this.overlayedImages = document.querySelectorAll(selectors$C.firstSectionHasImage);\n            this.deadLinks = document.querySelectorAll(selectors$C.deadLink);\n            this.killDeadLinks();\n            if (this.style !== 'drawer' && this.desktop) {\n                this.minWidth = this.getMinWidth();\n                this.listenWidth();\n            }\n            this.checkForImage();\n            window.dispatchEvent(new Event('resize'));\n            document.addEventListener('theme:header:check', this.checkForImage.bind(this));\n        }\n    };\n    function _sumSplitWidths(nodes) {\n        let arr = [];\n        nodes.forEach((el)=>{\n            arr.push(el.clientWidth);\n        });\n        if (arr[0] > arr[2]) {\n            arr[2] = arr[0];\n        } else {\n            arr[0] = arr[2];\n        }\n        const width = arr.reduce((a, b)=>a + b\n        );\n        return width;\n    }\n    function _sumWidths(nodes) {\n        let width = 0;\n        nodes.forEach((el)=>{\n            width += el.clientWidth;\n        });\n        return width;\n    }\n    const header = {\n        onLoad () {\n            sections$a = new Header(this.container);\n        },\n        onUnload: function() {\n            if (typeof sections$a.unload === 'function') {\n                sections$a.unload();\n            }\n        }\n    };\n    register('header', [\n        header,\n        drawer,\n        headerMobileSliderule,\n        stickyHeader,\n        hoverDisclosure,\n        hoverUnderline,\n        headerTotals,\n        searchPopdown,\n        cartPopdown,\n        swatchGridSection,\n        accordion,\n        ticker\n    ]);\n    if (!customElements.get('popout-select')) {\n        customElements.define('popout-select', PopoutSelect);\n    }\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n    if (!customElements.get('predictive-search')) {\n        customElements.define('predictive-search', PredictiveSearch);\n    }\n    if (!customElements.get('main-search')) {\n        customElements.define('main-search', MainSearch);\n    }\n\n    const selectors$B = {\n        newsletterForm: '[data-newsletter-form]'\n    };\n    const classes$k = {\n        success: 'has-success',\n        error: 'has-error'\n    };\n    const sections$9 = {};\n    let NewsletterCheckForResult = class NewsletterCheckForResult {\n        init() {\n            this.newsletter.addEventListener('submit', this.newsletterSubmit);\n            this.showMessage();\n        }\n        newsletterSubmitEvent(e) {\n            if (this.stopSubmit) {\n                e.preventDefault();\n                e.stopImmediatePropagation();\n                this.removeStorage();\n                this.writeStorage();\n                this.stopSubmit = false;\n                this.newsletter.submit();\n            }\n        }\n        checkForChallengePage() {\n            this.isChallengePage = window.location.pathname === '/challenge';\n        }\n        writeStorage() {\n            if (this.sessionStorage !== undefined) {\n                this.sessionStorage.setItem('newsletter_form_id', this.newsletter.id);\n            }\n        }\n        readStorage() {\n            this.formID = this.sessionStorage.getItem('newsletter_form_id');\n        }\n        removeStorage() {\n            this.sessionStorage.removeItem('newsletter_form_id');\n        }\n        showMessage() {\n            this.readStorage();\n            if (this.newsletter.id === this.formID) {\n                const newsletter = document.getElementById(this.formID);\n                if (window.location.search.indexOf('?customer_posted=true') !== -1) {\n                    newsletter.classList.remove(classes$k.error);\n                    newsletter.classList.add(classes$k.success);\n                } else if (window.location.search.indexOf('accepts_marketing') !== -1) {\n                    newsletter.classList.remove(classes$k.success);\n                    newsletter.classList.add(classes$k.error);\n                }\n                // Prevents the form from scrolling subsequent pagloads\n                this.removeStorage();\n                this.scrollToForm(newsletter);\n            }\n        }\n        scrollToForm(newsletter) {\n            const rect = newsletter.getBoundingClientRect();\n            const isVisible = rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);\n            if (!isVisible) {\n                setTimeout(()=>{\n                    window.scroll({\n                        top: rect.top,\n                        left: 0,\n                        behavior: 'smooth'\n                    });\n                }, 400);\n            }\n        }\n        unload() {\n            this.newsletter.removeEventListener('submit', this.newsletterSubmit);\n        }\n        constructor(newsletter){\n            this.sessionStorage = window.sessionStorage;\n            this.newsletter = newsletter;\n            this.stopSubmit = true;\n            this.isChallengePage = false;\n            this.formID = null;\n            this.checkForChallengePage();\n            this.newsletterSubmit = (e)=>this.newsletterSubmitEvent(e)\n            ;\n            if (!this.isChallengePage) {\n                this.init();\n            }\n        }\n    };\n    const newsletterCheckForResultSection = {\n        onLoad () {\n            sections$9[this.id] = [];\n            const newsletters = this.container.querySelectorAll(selectors$B.newsletterForm);\n            newsletters.forEach((form)=>{\n                sections$9[this.id].push(new NewsletterCheckForResult(form));\n            });\n        },\n        onUnload () {\n            sections$9[this.id].forEach((form)=>{\n                if (typeof form.unload === 'function') {\n                    form.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$A = {\n        shopPayWrapper: '[data-shop-pay-wrapper]',\n        shopLoginButton: 'shop-login-button',\n        shopFollowButton: 'shop-follow-button',\n        followOnShopButton: 'follow-on-shop-button',\n        heartIcon: 'heart-icon',\n        shopLogo: 'shop-logo'\n    };\n    const sections$8 = {};\n    let ShopPayLink = class ShopPayLink {\n        init() {\n            if (!this.shopLoginButton || !this.shopPayWrapper) return;\n            this.mainButtonStyles = `\n      :host {\n        --bg-color: ${this.shopPayWrapper.dataset.bg};\n        --text-color: ${this.shopPayWrapper.dataset.text};\n        --hover-color: ${this.shopPayWrapper.dataset.hover};\n      }\n\n      .follow-icon-wrapper:before {\n        background: var(--bg-color);\n        border-color: var(--text-color);\n      }\n\n      .button:not(.button--following):focus-visible .follow-icon-wrapper:before,\n      .button:not(.button--following):hover .follow-icon-wrapper:before {\n        background: var(--bg-color);\n        border-color: var(--hover-color);\n      }\n\n      .button {\n        background: transparent;\n        color: var(--text-color);\n      }\n\n      .following-text {\n        color: var(--text-color);\n      }\n\n      .button--following:focus-visible,\n      .button--following:hover {\n        background: var(--bg-color);\n      }\n\n      .button:not(.button--following):focus-visible .follow-icon-wrapper:before,\n      .button:not(.button--following):hover .follow-icon-wrapper:before {\n        background: var(--bg-color);\n        border-color: var(--hover-color);\n      }\n    `;\n            this.svgIconsStyles = `\n      :host {\n        color: ${this.shopPayWrapper.dataset.text};\n      }\n    `;\n            customElements.whenDefined(selectors$A.shopLoginButton).then((res)=>{\n                requestAnimationFrame(()=>{\n                    const shadowRoot1 = this.shopLoginButton.shadowRoot;\n                    const shopFollowButton = shadowRoot1 === null || shadowRoot1 === void 0 ? void 0 : shadowRoot1.querySelector(selectors$A.shopFollowButton);\n                    const shadowRoot2 = shopFollowButton === null || shopFollowButton === void 0 ? void 0 : shopFollowButton.shadowRoot;\n                    const followOnShopButton = shadowRoot2 === null || shadowRoot2 === void 0 ? void 0 : shadowRoot2.querySelector(selectors$A.followOnShopButton);\n                    const shadowRoot3 = followOnShopButton === null || followOnShopButton === void 0 ? void 0 : followOnShopButton.shadowRoot;\n                    if (shadowRoot3) this.overwriteStyles(shadowRoot3.host.shadowRoot, this.mainButtonStyles);\n                    const heartIcon = shadowRoot3.querySelector(selectors$A.heartIcon);\n                    const shadowRoot4 = heartIcon === null || heartIcon === void 0 ? void 0 : heartIcon.shadowRoot;\n                    const shopLogo = shadowRoot3.querySelector(selectors$A.shopLogo);\n                    const shadowRoot5 = shopLogo === null || shopLogo === void 0 ? void 0 : shopLogo.shadowRoot;\n                    if (shadowRoot4) this.overwriteStyles(shadowRoot4.host.shadowRoot, this.svgIconsStyles);\n                    if (shadowRoot5) this.overwriteStyles(shadowRoot5.host.shadowRoot, this.svgIconsStyles);\n                });\n            });\n        }\n        overwriteStyles(element, styles) {\n            let style = document.createElement('style');\n            style.innerHTML = styles;\n            element.appendChild(style);\n        }\n        constructor(container){\n            this.container = container;\n            this.shopPayWrapper = document.querySelector(selectors$A.shopPayWrapper);\n            this.shopLoginButton = document.querySelector(selectors$A.shopLoginButton);\n            this.init();\n        }\n    };\n    const shopPayLink = {\n        onLoad () {\n            sections$8[this.id] = new ShopPayLink(this.container);\n        }\n    };\n\n    register('footer', [\n        accordion,\n        newsletterCheckForResultSection,\n        shopPayLink\n    ]);\n    if (!customElements.get('popout-select')) {\n        customElements.define('popout-select', PopoutSelect);\n    }\n\n    const defaultOptions$1 = {\n        cc_load_policy: 1,\n        iv_load_policy: 3,\n        modestbranding: 1,\n        playsinline: 1,\n        controls: 1,\n        showinfo: 0,\n        ecver: 2,\n        fs: 1,\n        rel: 0\n    };\n    const selectors$z = {\n        player: 'iframe, [data-replace]',\n        videoId: 'data-video-id'\n    };\n    function embedYoutube(uniqueKey, options) {\n        const playerOptions = {\n            ...defaultOptions$1,\n            ...options\n        };\n        const playerWrapper = document.querySelector(`[data-player=\"${uniqueKey}\"]`);\n        const playerElement = playerWrapper.querySelector(selectors$z.player);\n        const youtubeKey = playerWrapper.querySelector(`[${selectors$z.videoId}]`).getAttribute(selectors$z.videoId);\n        loadScript({\n            url: 'https://www.youtube.com/iframe_api'\n        });\n        const playerPromise = window.youtubeLoaderPromise.then(()=>{\n            let player = new window.YT.Player(playerElement, {\n                videoId: youtubeKey,\n                playerVars: {\n                    ...playerOptions\n                },\n                events: {\n                    onStateChange: (event)=>{\n                        // We need these play/pause events because the YouTube video does not emit the regular play/pause events on Mobile\n                        if (event.data == 1) {\n                            playerWrapper.dispatchEvent(new CustomEvent('play'));\n                        } else if (event.data == 2) {\n                            playerWrapper.dispatchEvent(new CustomEvent('pause'));\n                        }\n                    }\n                }\n            });\n            playerWrapper.addEventListener('pause', ()=>{\n                try {\n                    player.pauseVideo();\n                } catch (e) {\n                    console.warn(e);\n                }\n            });\n            playerWrapper.addEventListener('play', ()=>{\n                try {\n                    if (player.playVideo) {\n                        player.playVideo();\n                    } else {\n                        player.addEventListener('onReady', ()=>{\n                            player.playVideo();\n                        });\n                    }\n                } catch (e) {\n                    console.warn(e);\n                }\n            });\n            playerWrapper.addEventListener('destroy', ()=>{\n                try {\n                    if (player.destroy) {\n                        player.destroy();\n                    }\n                } catch (e) {\n                    console.warn(e);\n                }\n            });\n            return player;\n        }).catch((err)=>{\n            console.error(err);\n        });\n        return playerPromise;\n    }window.youtubeLoaderPromise = new Promise((resolve)=>{\n        window.onYouTubeIframeAPIReady = function() {\n            resolve();\n        };\n    });\n\n    const defaultOptions = {\n        autoplay: true,\n        loop: true,\n        controls: true,\n        muted: false,\n        playsinline: true\n    };\n    const selectors$y = {\n        player: 'iframe, [data-replace]',\n        videoId: 'data-video-id'\n    };\n    function embedVimeo(uniqueKey, options) {\n        const playerOptions = {\n            ...defaultOptions,\n            ...options\n        };\n        const playerWrapper = document.querySelector(`[data-player=\"${uniqueKey}\"]`);\n        const playerElement = playerWrapper.querySelector(selectors$y.player);\n        const vimeoKey = playerWrapper.querySelector(`[${selectors$y.videoId}]`).getAttribute(selectors$y.videoId);\n        const loadedPromise = loadScript({\n            url: 'https://player.vimeo.com/api/player.js'\n        });\n        const vimeoSelector = `select-${uniqueKey}`;\n        playerElement.setAttribute('id', vimeoSelector);\n        const returnPlayer = loadedPromise.then(()=>{\n            const player = new window.Vimeo.Player(vimeoSelector, {\n                ...playerOptions,\n                id: vimeoKey\n            });\n            // We need these play/pause events because the Vimeo video does not emit the regular play/pause events on Mobile\n            player.on('play', ()=>{\n                playerWrapper.dispatchEvent(new CustomEvent('play'));\n            });\n            player.on('pause', ()=>{\n                playerWrapper.dispatchEvent(new CustomEvent('pause'));\n            });\n            playerWrapper.addEventListener('pause', ()=>{\n                try {\n                    if (player.pause) {\n                        player.pause();\n                    }\n                } catch (e) {\n                    console.warn(e);\n                }\n            });\n            playerWrapper.addEventListener('play', ()=>{\n                if (player.play) {\n                    // Check if it is paused to avoid playing an already playing video which sometimes results in an error\n                    player.getPaused().then((paused)=>{\n                        if (paused) {\n                            player.play();\n                        }\n                    });\n                }\n            });\n            playerWrapper.addEventListener('destroy', ()=>{\n                try {\n                    if (player.destroy) {\n                        player.destroy();\n                    }\n                } catch (e) {\n                    console.log(e);\n                }\n            });\n            return player;\n        }).catch((err)=>{\n            console.error(err);\n        });\n        return returnPlayer;\n    }\n\n    const selectors$x = {\n        videoPopup: '[data-video-popup]',\n        videoAutoplay: '[data-video-autoplay]',\n        attrUnique: 'data-unique',\n        attrVideoId: 'data-video-id',\n        attrVideoType: 'data-video-type',\n        attrPlayer: 'data-player'\n    };\n    let PopupVideo = class PopupVideo {\n        init() {\n            this.triggers.forEach((trigger)=>{\n                const unique = trigger.getAttribute(selectors$x.attrUnique);\n                const video = trigger.getAttribute(selectors$x.attrVideoId);\n                const type = trigger.getAttribute(selectors$x.attrVideoType);\n                // Find the modal body, which has been moved to the document root\n                // and append a unique ID for youtube and vimeo to init players.\n                const uniqueKey = `${video}-${unique}`;\n                const player = document.querySelector(`[${selectors$x.attrPlayer}=\"${uniqueKey}\"]`);\n                // Modal Event Logic:\n                // When a modal opens it creates and plays the video\n                // When a modal opens it pauses background videos in this section\n                // --\n                // When a modal closes it destroys the player\n                // When a modal closes it plays background videos anywhere on the page\n                MicroModal.init({\n                    onShow: ()=>{\n                        if (this.backgroundVideo && typeof this.backgroundVideo.pause === 'function') {\n                            this.backgroundVideo.pause();\n                        }\n                        let playerPromise = {};\n                        if (type === 'youtube') {\n                            playerPromise = embedYoutube(uniqueKey);\n                        } else if (type === 'vimeo') {\n                            playerPromise = embedVimeo(uniqueKey);\n                        }\n                        playerPromise.then(()=>{\n                            player.dispatchEvent(new CustomEvent('play'));\n                        });\n                    },\n                    onClose: (modal, el, event)=>{\n                        event.preventDefault();\n                        player.dispatchEvent(new CustomEvent('destroy'));\n                        if (this.backgroundVideo && typeof this.backgroundVideo.play === 'function') {\n                            this.backgroundVideo.play();\n                        }\n                    },\n                    openTrigger: `data-trigger-${video}-${unique}`\n                });\n            });\n        }\n        constructor(section){\n            this.container = section.container;\n            this.triggers = this.container.querySelectorAll(selectors$x.videoPopup);\n            this.backgroundVideo = this.container.querySelector(selectors$x.videoAutoplay);\n            this.init();\n        }\n    };\n    const popupVideoSection = {\n        onLoad () {\n            new PopupVideo(this);\n        }\n    };\n\n    const selectors$w = {\n        button: '[data-scroll-down]'\n    };\n    let ScrollButton = class ScrollButton {\n        init() {\n            const buttons = this.wrapper.querySelectorAll(selectors$w.button);\n            if (buttons) {\n                buttons.forEach((btn)=>{\n                    btn.addEventListener('click', this.scroll.bind(this));\n                });\n            }\n        }\n        scroll() {\n            const bottom = this.wrapper.offsetTop + this.wrapper.clientHeight;\n            window.scroll({\n                top: bottom,\n                left: 0,\n                behavior: 'smooth'\n            });\n        }\n        constructor(el){\n            this.wrapper = el;\n            this.init();\n        }\n    };\n    const scrollButton = {\n        onLoad () {\n            this.scrollButton = new ScrollButton(this.container);\n        },\n        onUnload: function() {\n            delete this.scrollButton;\n        }\n    };\n\n    register('video', [\n        parallaxImage,\n        scrollButton,\n        popupVideoSection\n    ]);\n\n    register('page-faq', accordion);\n\n    register('hero', [\n        parallaxImage,\n        scrollButton,\n        customScrollbar\n    ]);\n\n    const selectors$v = {\n        slider: '[data-slider]',\n        photo: '[data-grid-slide]',\n        wrapper: '[data-wrapper]',\n        carouselCustomScrollbar: 'data-custom-scrollbar-items'\n    };\n    const attributes = {\n        showDots: 'data-show-dots'\n    };\n    const classes$j = {\n        wrapper: 'wrapper',\n        wrapperModifier: 'wrapper--full',\n        hide: 'hide'\n    };\n    const offsets = {\n        scrollbarWidth: window.innerWidth - document.documentElement.clientWidth,\n        additionalOffsetWrapper: 112\n    };\n    const sections$7 = {};\n    let Slider = class Slider {\n        init() {\n            const instance = this;\n            const sliderOptions = {\n                initialIndex: 0,\n                accessibility: true,\n                autoPlay: false,\n                contain: true,\n                pageDots: this.pageDots,\n                adaptiveHeight: false,\n                wrapAround: false,\n                groupCells: false,\n                cellAlign: 'left',\n                freeScroll: true,\n                prevNextButtons: true,\n                draggable: true,\n                rightToLeft: window.isRTL,\n                watchCSS: true,\n                arrowShape: {\n                    x0: 10,\n                    x1: 60,\n                    y1: 50,\n                    x2: 67.5,\n                    y2: 42.5,\n                    x3: 25\n                },\n                on: {\n                    ready: function() {\n                        instance.removeIncorrectAria();\n                    }\n                }\n            };\n            this.flkty = new Flickity(this.slideshow, sliderOptions);\n            this.container.addEventListener('theme:tab:change', ()=>{\n                this.flkty.resize();\n            });\n            this.toggleWrapperModifier();\n            document.addEventListener('theme:resize:width', this.toggleWrapperModifier.bind(this));\n            if (this.slideshow.hasAttribute(selectors$v.carouselCustomScrollbar)) {\n                new CustomScrollbar(this.container);\n            }\n            new Siblings(this.container);\n        }\n        toggleWrapperModifier() {\n            if (!this.wrapper.classList.contains(classes$j.wrapper)) {\n                return;\n            }\n            this.wrapper.classList.toggle(classes$j.wrapperModifier, this.wrapperWidthWithGutter >= window.innerWidth);\n        }\n        // Flickity VERY annoyingly adds aria-hidden=\"true\" to all slides except the current one which causes lighthouse accessibility failure\n        // see https://github.com/metafizzy/flickity/issues/1228\n        removeIncorrectAria() {\n            const slidesHidden = this.slideshow.querySelectorAll('[aria-hidden=\"true\"]');\n            slidesHidden.forEach((el)=>el.removeAttribute('aria-hidden')\n            );\n        }\n        onUnload() {\n            if (this.slideshow && this.flkty) {\n                this.flkty.options.watchCSS = false;\n                this.flkty.destroy();\n            }\n        }\n        constructor(container, el){\n            this.container = container;\n            this.slideshow = el;\n            this.wrapper = this.container.querySelector(selectors$v.wrapper);\n            this.wrapperWidth = Number(getComputedStyle(document.documentElement).getPropertyValue('--LAYOUT-WIDTH').replace('px', ''));\n            this.wrapperWidthWithGutter = this.wrapperWidth + offsets.additionalOffsetWrapper + offsets.scrollbarWidth;\n            this.pageDots = this.slideshow.getAttribute(attributes.showDots) === 'true';\n            this.firstPhoto = this.container.querySelector(selectors$v.photo);\n            if (this.firstPhoto) {\n                const buttonOffset = this.firstPhoto.offsetHeight / 2;\n                this.slideshow.style.setProperty('--buttons-top', `${buttonOffset}px`);\n            }\n            if (!this.slideshow) return;\n            this.flkty = null;\n            this.init();\n        }\n    };\n    const productSliderSection = {\n        onLoad () {\n            sections$7[this.id] = [];\n            const els = this.container.querySelectorAll(selectors$v.slider);\n            els.forEach((el)=>{\n                sections$7[this.id].push(new Slider(this.container, el));\n            });\n        },\n        onUnload (e) {\n            sections$7[this.id].forEach((el)=>{\n                if (typeof el.onUnload === 'function') {\n                    el.onUnload(e);\n                }\n            });\n        }\n    };\n\n    register('custom-content', [\n        parallaxImage,\n        popupVideoSection,\n        swatchGridSection,\n        productSliderSection\n    ]);\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    const sections$6 = [];\n    const selectors$u = {\n        wrapper: '[data-slideshow-wrapper]',\n        speed: 'data-slideshow-speed',\n        autoplay: 'data-slideshow-autoplay',\n        slideCount: 'data-slideshow-slides',\n        prevButton: '[data-slide-custom-prev]',\n        nextButton: '[data-slide-custom-next]',\n        slideshoIndex: 'data-slideshow-index'\n    };\n    const classes$i = {\n        isEnable: 'flickity-enabled'\n    };\n    let Slideshow = class Slideshow {\n        init() {\n            const settings = {\n                autoPlay: this.autoplay && this.speed ? parseInt(this.speed) : false,\n                contain: false,\n                pageDots: true,\n                adaptiveHeight: true,\n                accessibility: true,\n                wrapAround: this.slideCount !== 2,\n                prevNextButtons: false,\n                draggable: true,\n                fade: true,\n                rightToLeft: window.isRTL\n            };\n            this.flkty = new FlickityFade(this.wrapper, settings);\n            if (this.prevButtons.length) {\n                this.prevButtons.forEach((e)=>{\n                    e.onclick = ()=>{\n                        this.flkty.previous(true, false);\n                    };\n                });\n            }\n            if (this.nextButtons.length) {\n                this.nextButtons.forEach((e)=>{\n                    e.onclick = ()=>{\n                        this.flkty.next(true, false);\n                    };\n                });\n            }\n            document.addEventListener('theme:scroll', this.scrollEvent);\n        }\n        scrollEvents() {\n            if (this.flkty && this.autoplay && this.speed) {\n                const slideshow = this.flkty.element;\n                const slideshowBottomPosition = slideshow.getBoundingClientRect().top + window.scrollY + slideshow.offsetHeight;\n                if (window.pageYOffset > slideshowBottomPosition) {\n                    if (this.flkty.player.state === 'playing') {\n                        this.flkty.pausePlayer();\n                    }\n                } else if (this.flkty.player.state === 'paused') {\n                    this.flkty.playPlayer();\n                }\n            }\n        }\n        unload() {\n            document.removeEventListener('theme:scroll', this.scrollEvent);\n            if (this.flkty && this.wrapper && this.wrapper.classList.contains(classes$i.isEnable)) {\n                this.flkty.destroy();\n            }\n        }\n        onBlockSelect(evt) {\n            const indexEl = evt.target.closest(`[${selectors$u.slideshoIndex}]`);\n            const slideIndex = indexEl.getAttribute(selectors$u.slideshoIndex);\n            const select = parseInt(slideIndex);\n            this.flkty.selectCell(select);\n            this.flkty.stopPlayer();\n        }\n        onBlockDeselect() {\n            if (this.autoplay) {\n                this.flkty.playPlayer();\n            }\n        }\n        constructor(section){\n            this.container = section.container;\n            this.wrapper = section.container.querySelector(selectors$u.wrapper);\n            this.speed = this.wrapper.getAttribute(selectors$u.speed);\n            this.autoplay = this.wrapper.getAttribute(selectors$u.autoplay) === 'true';\n            this.slideCount = parseInt(this.wrapper.getAttribute(selectors$u.slideCount), 10);\n            this.prevButtons = this.wrapper.querySelectorAll(selectors$u.prevButton);\n            this.nextButtons = this.wrapper.querySelectorAll(selectors$u.nextButton);\n            this.flkty = null;\n            this.scrollEvent = ()=>this.scrollEvents()\n            ;\n            this.init();\n        }\n    };\n    const slideshowSection = {\n        onLoad () {\n            sections$6[this.id] = new Slideshow(this);\n        },\n        onUnload () {\n            if (typeof sections$6[this.id].unload === 'function') {\n                sections$6[this.id].unload();\n            }\n        },\n        onBlockSelect (evt) {\n            if (typeof sections$6[this.id].onBlockSelect === 'function') {\n                sections$6[this.id].onBlockSelect(evt);\n            }\n        },\n        onBlockDeselect (evt) {\n            if (typeof sections$6[this.id].onBlockSelect === 'function') {\n                sections$6[this.id].onBlockDeselect(evt);\n            }\n        }\n    };\n    register('slideshow', [\n        slideshowSection,\n        parallaxImage,\n        scrollButton\n    ]);\n\n    const selectors$t = {\n        rangeSlider: '[data-range-slider]',\n        rangeDotLeft: '[data-range-left]',\n        rangeDotRight: '[data-range-right]',\n        rangeLine: '[data-range-line]',\n        rangeHolder: '[data-range-holder]',\n        dataMin: 'data-se-min',\n        dataMax: 'data-se-max',\n        dataMinValue: 'data-se-min-value',\n        dataMaxValue: 'data-se-max-value',\n        dataStep: 'data-se-step',\n        dataFilterUpdate: 'data-range-filter-update',\n        priceMin: '[data-field-price-min]',\n        priceMax: '[data-field-price-max]'\n    };\n    const classes$h = {\n        isInitialized: 'is-initialized'\n    };\n    let RangeSlider = class RangeSlider {\n        init() {\n            this.setDefaultValues();\n            // link events\n            this.touchLeft.addEventListener('mousedown', this.onStartEvent);\n            this.touchRight.addEventListener('mousedown', this.onStartEvent);\n            this.touchLeft.addEventListener('touchstart', this.onStartEvent);\n            this.touchRight.addEventListener('touchstart', this.onStartEvent);\n            // initialize\n            this.slider.classList.add(classes$h.isInitialized);\n        }\n        setDefaultValues() {\n            // retrieve default values\n            let defaultMinValue = this.min;\n            if (this.slider.hasAttribute(selectors$t.dataMinValue)) {\n                defaultMinValue = parseFloat(this.slider.getAttribute(selectors$t.dataMinValue));\n            }\n            let defaultMaxValue = this.max;\n            if (this.slider.hasAttribute(selectors$t.dataMaxValue)) {\n                defaultMaxValue = parseFloat(this.slider.getAttribute(selectors$t.dataMaxValue));\n            }\n            // check values are correct\n            if (defaultMinValue < this.min) {\n                defaultMinValue = this.min;\n            }\n            if (defaultMaxValue > this.max) {\n                defaultMaxValue = this.max;\n            }\n            if (defaultMinValue > defaultMaxValue) {\n                defaultMinValue = defaultMaxValue;\n            }\n            if (this.slider.getAttribute(selectors$t.dataStep)) {\n                this.step = Math.abs(parseFloat(this.slider.getAttribute(selectors$t.dataStep)));\n            }\n            // initial reset\n            this.reset();\n            // usefull values, min, max, normalize fact is the width of both touch buttons\n            this.maxX = this.slider.offsetWidth - this.touchRight.offsetWidth;\n            this.selectedTouch = null;\n            this.initialValue = this.lineSpan.offsetWidth - this.normalizeFact;\n            // set defualt values\n            this.setMinValue(defaultMinValue);\n            this.setMaxValue(defaultMaxValue);\n        }\n        reset() {\n            this.touchLeft.style.left = '0px';\n            this.touchRight.style.left = this.slider.offsetWidth - this.touchLeft.offsetWidth + 'px';\n            this.lineSpan.style.marginLeft = '0px';\n            this.lineSpan.style.width = this.slider.offsetWidth - this.touchLeft.offsetWidth + 'px';\n            this.startX = 0;\n            this.x = 0;\n        }\n        setMinValue(minValue) {\n            const ratio = (minValue - this.min) / (this.max - this.min);\n            this.touchLeft.style.left = Math.ceil(ratio * (this.slider.offsetWidth - (this.touchLeft.offsetWidth + this.normalizeFact))) + 'px';\n            this.lineSpan.style.marginLeft = this.touchLeft.offsetLeft + 'px';\n            this.lineSpan.style.width = this.touchRight.offsetLeft - this.touchLeft.offsetLeft + 'px';\n            this.slider.setAttribute(selectors$t.dataMinValue, minValue);\n        }\n        setMaxValue(maxValue) {\n            const ratio = (maxValue - this.min) / (this.max - this.min);\n            this.touchRight.style.left = Math.ceil(ratio * (this.slider.offsetWidth - (this.touchLeft.offsetWidth + this.normalizeFact)) + this.normalizeFact) + 'px';\n            this.lineSpan.style.marginLeft = this.touchLeft.offsetLeft + 'px';\n            this.lineSpan.style.width = this.touchRight.offsetLeft - this.touchLeft.offsetLeft + 'px';\n            this.slider.setAttribute(selectors$t.dataMaxValue, maxValue);\n        }\n        onStart(event) {\n            // Prevent default dragging of selected content\n            event.preventDefault();\n            let eventTouch = event;\n            if (event.touches) {\n                eventTouch = event.touches[0];\n            }\n            if (event.currentTarget === this.touchLeft) {\n                this.x = this.touchLeft.offsetLeft;\n            } else if (event.currentTarget === this.touchRight) {\n                this.x = this.touchRight.offsetLeft;\n            }\n            this.startX = eventTouch.pageX - this.x;\n            this.selectedTouch = event.currentTarget;\n            document.addEventListener('mousemove', this.onMoveEvent);\n            document.addEventListener('mouseup', this.onStopEvent);\n            document.addEventListener('touchmove', this.onMoveEvent);\n            document.addEventListener('touchend', this.onStopEvent);\n        }\n        onMove(event) {\n            let eventTouch = event;\n            if (event.touches) {\n                eventTouch = event.touches[0];\n            }\n            this.x = eventTouch.pageX - this.startX;\n            if (this.selectedTouch === this.touchLeft) {\n                if (this.x > this.touchRight.offsetLeft - this.selectedTouch.offsetWidth + 10) {\n                    this.x = this.touchRight.offsetLeft - this.selectedTouch.offsetWidth + 10;\n                } else if (this.x < 0) {\n                    this.x = 0;\n                }\n                this.selectedTouch.style.left = this.x + 'px';\n            } else if (this.selectedTouch === this.touchRight) {\n                if (this.x < this.touchLeft.offsetLeft + this.touchLeft.offsetWidth - 10) {\n                    this.x = this.touchLeft.offsetLeft + this.touchLeft.offsetWidth - 10;\n                } else if (this.x > this.maxX) {\n                    this.x = this.maxX;\n                }\n                this.selectedTouch.style.left = this.x + 'px';\n            }\n            // update line span\n            this.lineSpan.style.marginLeft = this.touchLeft.offsetLeft + 'px';\n            this.lineSpan.style.width = this.touchRight.offsetLeft - this.touchLeft.offsetLeft + 'px';\n            // write new value\n            this.calculateValue();\n            // call on change\n            if (this.slider.getAttribute('on-change')) {\n                const fn = new Function('min, max', this.slider.getAttribute('on-change'));\n                fn(this.slider.getAttribute(selectors$t.dataMinValue), this.slider.getAttribute(selectors$t.dataMaxValue));\n            }\n            this.onChange(this.slider.getAttribute(selectors$t.dataMinValue), this.slider.getAttribute(selectors$t.dataMaxValue));\n        }\n        onStop(event) {\n            document.removeEventListener('mousemove', this.onMoveEvent);\n            document.removeEventListener('mouseup', this.onStopEvent);\n            document.removeEventListener('touchmove', this.onMoveEvent);\n            document.removeEventListener('touchend', this.onStopEvent);\n            this.selectedTouch = null;\n            // write new value\n            this.calculateValue();\n            // call did changed\n            this.onChanged(this.slider.getAttribute(selectors$t.dataMinValue), this.slider.getAttribute(selectors$t.dataMaxValue));\n        }\n        onChange(min, max) {\n            const rangeHolder = this.slider.closest(selectors$t.rangeHolder);\n            if (rangeHolder) {\n                const priceMin = rangeHolder.querySelector(selectors$t.priceMin);\n                const priceMax = rangeHolder.querySelector(selectors$t.priceMax);\n                if (priceMin && priceMax) {\n                    priceMin.value = min;\n                    priceMax.value = max;\n                }\n            }\n        }\n        onChanged(min, max) {\n            if (this.slider.hasAttribute(selectors$t.dataFilterUpdate)) {\n                this.slider.dispatchEvent(new CustomEvent('theme:range:update', {\n                    bubbles: true\n                }));\n            }\n        }\n        calculateValue() {\n            const newValue = (this.lineSpan.offsetWidth - this.normalizeFact) / this.initialValue;\n            let minValue = this.lineSpan.offsetLeft / this.initialValue;\n            let maxValue = minValue + newValue;\n            minValue = minValue * (this.max - this.min) + this.min;\n            maxValue = maxValue * (this.max - this.min) + this.min;\n            if (this.step !== 0.0) {\n                let multi = Math.floor(minValue / this.step);\n                minValue = this.step * multi;\n                multi = Math.floor(maxValue / this.step);\n                maxValue = this.step * multi;\n            }\n            if (this.selectedTouch === this.touchLeft) {\n                this.slider.setAttribute(selectors$t.dataMinValue, minValue);\n            }\n            if (this.selectedTouch === this.touchRight) {\n                this.slider.setAttribute(selectors$t.dataMaxValue, maxValue);\n            }\n        }\n        constructor(section){\n            this.container = section.container;\n            this.slider = section.querySelector(selectors$t.rangeSlider);\n            if (this.slider) {\n                this.onMoveEvent = (event)=>this.onMove(event)\n                ;\n                this.onStopEvent = (event)=>this.onStop(event)\n                ;\n                this.onStartEvent = (event)=>this.onStart(event)\n                ;\n                this.startX = 0;\n                this.x = 0;\n                // retrieve touch button\n                this.touchLeft = this.slider.querySelector(selectors$t.rangeDotLeft);\n                this.touchRight = this.slider.querySelector(selectors$t.rangeDotRight);\n                this.lineSpan = this.slider.querySelector(selectors$t.rangeLine);\n                // get some properties\n                this.min = parseFloat(this.slider.getAttribute(selectors$t.dataMin));\n                this.max = parseFloat(this.slider.getAttribute(selectors$t.dataMax));\n                this.step = 0.0;\n                // normalize flag\n                this.normalizeFact = 26;\n                this.init();\n                document.addEventListener('theme:price-range:reset', ()=>{\n                    this.setDefaultValues();\n                });\n            }\n        }\n    };\n\n    const throttle$1 = (fn, wait)=>{\n        let prev, next;\n        return function invokeFn(...args) {\n            const now = Date.now();\n            next = clearTimeout(next);\n            if (!prev || now - prev >= wait) {\n                // eslint-disable-next-line prefer-spread\n                fn.apply(null, args);\n                prev = now;\n            } else {\n                next = setTimeout(invokeFn.bind(null, ...args), wait - (now - prev));\n            }\n        };\n    };\n\n    const selectors$s = {\n        filtersWrappper: 'data-filters',\n        underlay: '[data-filters-underlay]',\n        filtersHideDesktop: 'data-default-hide',\n        filtersToggle: 'data-filters-toggle',\n        focusable: 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n        groupHeading: 'data-group-heading',\n        showMore: 'data-show-more'\n    };\n    const classes$g = {\n        show: 'drawer--visible',\n        defaultVisible: 'filters--default-visible',\n        hide: 'hidden',\n        expand: 'is-expanded',\n        hidden: 'is-hidden',\n        focusEnable: 'focus-enabled'\n    };\n    const sections$5 = {};\n    let Filters = class Filters {\n        unload() {\n            if (this.filtersToggleButtons.length) {\n                this.filtersToggleButtons.forEach((element)=>{\n                    element.removeEventListener('click', this.connectToggleMemory);\n                });\n            }\n            if (this.showMoreButtons.length) {\n                this.showMoreButtons.forEach((button)=>{\n                    button.removeEventListener('click', this.connectShowHiddenOptions);\n                });\n            }\n        }\n        expandingEvents() {\n            if (this.showMoreButtons.length) {\n                this.showMoreButtons.forEach((button)=>{\n                    button.addEventListener('click', throttle$1(this.connectShowHiddenOptions, 500));\n                });\n            }\n        }\n        showHiddenOptions(evt) {\n            const element = evt.target.hasAttribute(selectors$s.showMore) ? evt.target : evt.target.closest(`[${selectors$s.showMore}]`);\n            element.classList.add(classes$g.hidden);\n            element.previousElementSibling.querySelectorAll(`.${classes$g.hidden}`).forEach((option)=>{\n                option.classList.remove(classes$g.hidden);\n            });\n        }\n        connectToggle(refresh = false) {\n            this.filtersToggleButtons.forEach((button)=>{\n                const isDynamic = button.closest(`[${selectors$s.filtersWrappper}]`) !== null;\n                if (isDynamic && refresh || isDynamic && !refresh || !isDynamic && !refresh) {\n                    button.addEventListener('click', this.connectToggleMemory.bind(this));\n                }\n            });\n        }\n        connectToggleFunction(evt) {\n            const ariaExpanded = evt.currentTarget.getAttribute('aria-expanded') === 'true';\n            if (ariaExpanded) {\n                this.hideFilters();\n            } else {\n                this.showFilters();\n            }\n        }\n        onFocusOut() {\n            this.container.addEventListener('focusout', (function(evt) {\n                if (window.innerWidth >= window.theme.sizes.medium) {\n                    return;\n                }\n                const childInFocus = evt.currentTarget.contains(evt.relatedTarget);\n                const isVisible = this.container.classList.contains(classes$g.show);\n                const isFocusEnabled = document.body.classList.contains(classes$g.focusEnable);\n                if (isFocusEnabled && isVisible && !childInFocus) {\n                    this.hideFilters();\n                }\n            }).bind(this));\n            this.container.addEventListener('keyup', (function(evt) {\n                if (evt.code !== 'Escape') {\n                    return;\n                }\n                this.hideFilters();\n                this.filtersToggleButtons[0].focus();\n            }).bind(this));\n            this.underlay.addEventListener('click', (function() {\n                this.hideFilters();\n            }).bind(this));\n        }\n        getShowOnLoad() {\n            const selector = `[${selectors$s.filtersHideDesktop}='false']`;\n            const showOnDesktop = document.querySelector(selector);\n            const isDesktop = window.innerWidth >= window.theme.sizes.medium;\n            if (showOnDesktop && isDesktop) {\n                return true;\n            } else {\n                return false;\n            }\n        }\n        showFilters() {\n            this.filtersToggleButtons = document.querySelectorAll(this.selector);\n            this.container.classList.remove(classes$g.hide);\n            // animates after display none is removed\n            setTimeout(()=>{\n                this.filtersToggleButtons.forEach((btn)=>btn.setAttribute('aria-expanded', true)\n                );\n                this.filtersToggleButtons.forEach((btn)=>btn.classList.add(classes$g.show)\n                );\n                this.container.classList.add(classes$g.show);\n                this.container.querySelector(selectors$s.focusable).focus();\n            }, 1);\n        }\n        hideFilters() {\n            this.filtersToggleButtons = document.querySelectorAll(this.selector);\n            this.filtersToggleButtons.forEach((btn)=>btn.setAttribute('aria-expanded', false)\n            );\n            this.container.classList.remove(classes$g.show);\n            this.container.classList.remove(classes$g.defaultVisible);\n            this.filtersToggleButtons.forEach((btn)=>btn.classList.remove(classes$g.show)\n            );\n            this.filtersToggleButtons.forEach((btn)=>btn.classList.remove(classes$g.defaultVisible)\n            );\n            // adds display none after animations\n            setTimeout(()=>{\n                if (!this.container.classList.contains(classes$g.show)) {\n                    this.container.classList.add(classes$g.hide);\n                }\n            }, 800);\n        }\n        constructor(filters, refresh = false){\n            this.container = filters;\n            this.underlay = this.container.querySelector(selectors$s.underlay);\n            this.groupHeadings = this.container.querySelectorAll(`[${selectors$s.groupHeading}]`);\n            this.showMoreButtons = this.container.querySelectorAll(`[${selectors$s.showMore}]`);\n            this.triggerKey = this.container.getAttribute(selectors$s.filtersWrappper);\n            this.selector = `[${selectors$s.filtersToggle}='${this.triggerKey}']`;\n            this.filtersToggleButtons = document.querySelectorAll(this.selector);\n            this.connectToggleMemory = (evt)=>this.connectToggleFunction(evt)\n            ;\n            this.connectShowHiddenOptions = (evt)=>this.showHiddenOptions(evt)\n            ;\n            this.connectToggle(refresh);\n            this.onFocusOut();\n            this.expandingEvents();\n            if (this.getShowOnLoad()) {\n                this.showFilters();\n            } else {\n                this.hideFilters();\n            }\n        }\n    };\n    const collectionFiltersSidebar = {\n        onLoad () {\n            sections$5[this.id] = [];\n            const wrappers = this.container.querySelectorAll(`[${selectors$s.filtersWrappper}]`);\n            wrappers.forEach((wrapper)=>{\n                sections$5[this.id].push(new Filters(wrapper));\n            });\n        },\n        onUnload: function() {\n            sections$5[this.id].forEach((filters)=>{\n                if (typeof filters.unload === 'function') {\n                    filters.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$r = {\n        collectionSidebar: '[data-collection-sidebar]',\n        form: '[data-sidebar-filter-form]',\n        inputs: 'input, select, label, textarea',\n        priceMin: 'data-field-price-min',\n        priceMax: 'data-field-price-max',\n        rangeMin: 'data-se-min-value',\n        rangeMax: 'data-se-max-value',\n        rangeMinDefault: 'data-se-min',\n        rangeMaxDefault: 'data-se-max',\n        productsContainer: '[data-products-grid]',\n        filterUpdateUrlButton: '[data-filter-update-url]',\n        activeFiltersHolder: '[data-active-filters]',\n        activeFiltersCount: '[data-active-filters-count]',\n        productsCount: '[data-products-count]',\n        dataSort: 'data-sort-enabled',\n        collectionTools: '[data-collection-tools]',\n        filtersWrappper: '[data-filters]',\n        headerSticky: '[data-header-sticky=\"sticky\"]',\n        headerHeight: '[data-header-height]',\n        gridLarge: 'data-grid-large',\n        gridSmall: 'data-grid-small',\n        accordionBody: '[data-accordion-body]',\n        checkedOption: 'input:checked',\n        optionHolder: '[data-option-holder]'\n    };\n    const classes$f = {\n        classHidden: 'is-hidden',\n        classLoading: 'is-loading'\n    };\n    const times = {\n        loadingDelay: 1000,\n        scrollTime: 1000\n    };\n    let FiltersForm = class FiltersForm {\n        init() {\n            this.showAllOptions();\n            if (this.form) {\n                new RangeSlider(this.form);\n                this.sidebar.addEventListener('input', debounce$1((e)=>{\n                    const type = e.type;\n                    const target = e.target;\n                    if (!selectors$r.inputs.includes(type) || !this.form || typeof this.form.submit !== 'function') {\n                        return;\n                    }\n                    const priceMin = this.form.querySelector(`[${selectors$r.priceMin}]`);\n                    const priceMax = this.form.querySelector(`[${selectors$r.priceMax}]`);\n                    if (target.hasAttribute(selectors$r.priceMin) || target.hasAttribute(selectors$r.priceMax)) {\n                        const rangeMin = this.form.querySelector(`[${selectors$r.rangeMin}]`);\n                        const rangeMax = this.form.querySelector(`[${selectors$r.rangeMax}]`);\n                        const rangeMinDefault = parseInt(rangeMin.getAttribute(selectors$r.rangeMinDefault));\n                        const rangeMaxDefault = parseInt(rangeMax.getAttribute(selectors$r.rangeMaxDefault));\n                        if (priceMin.value && !priceMax.value) {\n                            priceMax.value = rangeMaxDefault;\n                        }\n                        if (priceMax.value && !priceMin.value) {\n                            priceMin.value = rangeMinDefault;\n                        }\n                        if (priceMin.value <= rangeMinDefault && priceMax.value >= rangeMaxDefault) {\n                            priceMin.placeholder = rangeMinDefault;\n                            priceMax.placeholder = rangeMaxDefault;\n                            priceMin.value = '';\n                            priceMax.value = '';\n                        }\n                    }\n                    this.filtering(e);\n                }, 1500));\n                this.form.addEventListener('theme:range:update', (e)=>this.updateRange(e)\n                );\n            }\n            if (this.sidebar) {\n                this.sidebar.addEventListener('click', (e)=>this.updateFilterFromUrl(e)\n                );\n            }\n            if (this.activeFiltersHolder) {\n                this.activeFiltersHolder.addEventListener('click', (e)=>this.updateFilterFromUrl(e)\n                );\n            }\n            if (this.productsContainer) {\n                this.productsContainer.addEventListener('click', (e)=>this.updateFilterFromUrl(e)\n                );\n            }\n            // Color swatches tooltips\n            makeSwappers(this.sidebar);\n        }\n        /**\n       * Update range slider (price money)\n       * @param {Object} e\n       */ updateRange(e) {\n            if (this.form && typeof this.form.submit === 'function') {\n                const rangeMin = this.form.querySelector(`[${selectors$r.rangeMin}]`);\n                const rangeMax = this.form.querySelector(`[${selectors$r.rangeMax}]`);\n                const priceMin = this.form.querySelector(`[${selectors$r.priceMin}]`);\n                const priceMax = this.form.querySelector(`[${selectors$r.priceMax}]`);\n                const checkElements = rangeMin && rangeMax && priceMin && priceMax;\n                if (checkElements && rangeMin.hasAttribute(selectors$r.rangeMin) && rangeMax.hasAttribute(selectors$r.rangeMax)) {\n                    const priceMinValue = parseInt(priceMin.placeholder);\n                    const priceMaxValue = parseInt(priceMax.placeholder);\n                    const rangeMinValue = parseInt(rangeMin.getAttribute(selectors$r.rangeMin));\n                    const rangeMaxValue = parseInt(rangeMax.getAttribute(selectors$r.rangeMax));\n                    if (priceMinValue !== rangeMinValue || priceMaxValue !== rangeMaxValue) {\n                        priceMin.value = rangeMinValue;\n                        priceMax.value = rangeMaxValue;\n                        this.filtering(e);\n                    }\n                }\n            }\n        }\n        /**\n       * Update filter on last clicked element\n       * @param {Object} e\n       */ updateFilterFromUrl(e) {\n            const target = e.target;\n            if (target.matches(selectors$r.filterUpdateUrlButton) || target.closest(selectors$r.filterUpdateUrlButton) && target) {\n                e.preventDefault();\n                const button = target.matches(selectors$r.filterUpdateUrlButton) ? target : target.closest(selectors$r.filterUpdateUrlButton);\n                this.filtering(e, button.getAttribute('href'));\n            }\n        }\n        /**\n       * Add filters to history api\n       *\n       * @param {Object} e\n       * @param {String} replaceHref\n       */ addToHistory(e, replaceHref = '') {\n            const sortValue = this.sort ? this.sort.getAttribute(selectors$r.dataSort) : '';\n            if (!e || e && e.type !== 'popstate') {\n                if (replaceHref === '') {\n                    const searchParams = new window.URL(window.location.href).searchParams;\n                    const filterUrlParams = Object.fromEntries(searchParams);\n                    const filterUrlRemoveString = searchParams.toString();\n                    if (filterUrlRemoveString.includes('filter.') || filterUrlRemoveString.includes('sort_by') || filterUrlRemoveString.includes('page')) {\n                        for(const key in filterUrlParams){\n                            if (key.includes('filter.') || key.includes('sort_by') || key.includes('page')) {\n                                searchParams.delete(key);\n                            }\n                        }\n                    }\n                    if (this.form) {\n                        const formParams = new URLSearchParams(new FormData(this.form));\n                        for (let [key, val] of formParams.entries()){\n                            if (key.includes('filter.') && val) {\n                                searchParams.append(key, val);\n                            }\n                        }\n                        // if submitted price equal to price range min and max remove price parameters\n                        const rangeMin = this.form.querySelector(`[${selectors$r.rangeMin}]`);\n                        const rangeMax = this.form.querySelector(`[${selectors$r.rangeMax}]`);\n                        const priceMin = this.form.querySelector(`[${selectors$r.priceMin}]`);\n                        const priceMax = this.form.querySelector(`[${selectors$r.priceMax}]`);\n                        const checkElements = rangeMin && rangeMax && priceMin && priceMax;\n                        if (checkElements && rangeMin.hasAttribute(selectors$r.rangeMinDefault) && rangeMax.hasAttribute(selectors$r.rangeMaxDefault)) {\n                            const rangeMinDefault = parseFloat(rangeMin.getAttribute(selectors$r.rangeMinDefault), 10);\n                            const rangeMaxDefault = parseFloat(rangeMax.getAttribute(selectors$r.rangeMaxDefault), 10);\n                            const priceMinValue = priceMin.value === '' ? parseFloat(priceMin.placeholder, 10) : parseFloat(priceMin.value, 10);\n                            const priceMaxValue = priceMax.value === '' ? parseFloat(priceMax.placeholder, 10) : parseFloat(priceMax.value, 10);\n                            if (priceMinValue <= rangeMinDefault && priceMaxValue >= rangeMaxDefault) {\n                                searchParams.delete('filter.v.price.gte');\n                                searchParams.delete('filter.v.price.lte');\n                            }\n                        }\n                    }\n                    if (sortValue || e && e.detail && e.detail.href) {\n                        const sortString = sortValue ? sortValue : e.detail.params;\n                        searchParams.set('sort_by', sortString);\n                    }\n                    const filterUrlString = searchParams.toString();\n                    const filterNewParams = filterUrlString ? `?${filterUrlString}` : location.pathname;\n                    window.history.pushState(null, '', filterNewParams);\n                    return;\n                }\n                window.history.pushState(null, '', replaceHref);\n            }\n        }\n        /**\n       * Get filter result and append them to their holders\n       */ getFilterResult() {\n            this.productsContainer.classList.add(classes$f.classLoading);\n            this.getGridValues();\n            // use the section_id to target the collection section and exclude other sections on the page\n            const url = new window.URL(window.location.href);\n            const params = url.searchParams;\n            params.set('section_id', this.section.id);\n            fetch(`${window.location.pathname}${url.search}`).then((response)=>response.text()\n            ).then((response)=>{\n                const responseHolder = document.createElement('div');\n                responseHolder.innerHTML = response;\n                if (this.sidebar) {\n                    this.sidebar.innerHTML = responseHolder.querySelector(selectors$r.collectionSidebar).innerHTML;\n                }\n                if (this.activeFiltersCount) {\n                    this.activeFiltersCount.innerHTML = responseHolder.querySelector(selectors$r.activeFiltersCount).innerHTML;\n                }\n                this.productsContainer.innerHTML = responseHolder.querySelector(selectors$r.productsContainer).innerHTML;\n                // Show active filters holder\n                this.activeFiltersHolder.innerHTML = responseHolder.querySelector(selectors$r.activeFiltersHolder).innerHTML;\n                this.activeFiltersHolder.parentNode.classList.toggle(classes$f.classHidden, this.activeFiltersHolder.innerHTML === '');\n                if (this.productsCount) {\n                    this.productsCount.innerHTML = responseHolder.querySelector(selectors$r.productsCount).innerHTML;\n                }\n                this.setGridValues();\n                this.refreshFunctionalities();\n                setTimeout(()=>{\n                    this.productsContainer.classList.remove(classes$f.classLoading);\n                }, times.loadingDelay);\n            });\n        }\n        /**\n       * Refresh functionalities\n       */ refreshFunctionalities() {\n            // Init range slider\n            this.form = this.container.querySelector(selectors$r.form);\n            if (this.form) {\n                new RangeSlider(this.form);\n                this.form.addEventListener('theme:range:update', (e)=>this.updateRange(e)\n                );\n            }\n            // Init filters\n            const filters = this.container.querySelectorAll(selectors$r.filtersWrappper);\n            filters.forEach((filter)=>{\n                new Filters(filter, true);\n            });\n            // Init accordions\n            const accordions = this.container.querySelectorAll(selectors$r.accordionBody);\n            accordions.forEach((accordion)=>{\n                new Accordion(accordion);\n            });\n            // Init siblings\n            new Siblings(this.container);\n            // Color swatches tooltips\n            if (this.sidebar) {\n                makeSwappers(this.sidebar);\n            }\n            this.showAllOptions();\n        }\n        // Get grid values\n        getGridValues() {\n            if (this.layoutLarge) {\n                this.layoutLargeValue = this.layoutLarge.getAttribute(selectors$r.gridLarge);\n            }\n            if (this.layoutSmall) {\n                this.layoutSmallValue = this.layoutSmall.getAttribute(selectors$r.gridSmall);\n            }\n        }\n        // Set grid values on AJAX\n        setGridValues() {\n            if (this.layoutLarge) {\n                this.layoutLarge = this.container.querySelector(`[${selectors$r.gridLarge}]`);\n                this.layoutLarge.setAttribute(selectors$r.gridLarge, this.layoutLargeValue);\n            }\n            if (this.layoutSmall) {\n                this.layoutSmall = this.container.querySelector(`[${selectors$r.gridSmall}]`);\n                this.layoutSmall.setAttribute(selectors$r.gridSmall, this.layoutSmallValue);\n            }\n        }\n        // Show all options if in the filter have selected option but it is hidden\n        showAllOptions() {\n            const checkedOptions = this.container.querySelectorAll(selectors$r.checkedOption);\n            checkedOptions.forEach((option)=>{\n                if (option.closest(selectors$r.optionHolder) && option.closest(selectors$r.optionHolder).classList.contains(classes$f.classHidden)) {\n                    const button = option.closest(selectors$r.accordionBody).nextElementSibling;\n                    if (!button.classList.contains(selectors$r.classHidden)) {\n                        button.dispatchEvent(new Event('click'));\n                    }\n                }\n            });\n        }\n        /**\n       * Filtering method and scroll at the top on the section\n       * @param {Object} e\n       * @param {String} replaceHref\n       */ filtering(e, replaceHref = '') {\n            if (e.state === null) return; // skip when we update the url with a button with href=\"#id\" used for link\n            // Scroll to filter tools\n            const headerH = this.headerIsSticky ? document.querySelector(selectors$r.headerHeight).getBoundingClientRect().height : 0;\n            const scrollToElement = this.container.offsetTop - headerH;\n            let options = {\n                root: null,\n                rootMargin: `${headerH}px`,\n                threshold: 1.0\n            };\n            const handleFilterAndScroll = (entries)=>{\n                const [entry] = entries;\n                setTimeout(()=>{\n                    this.addToHistory(e, replaceHref);\n                    this.getFilterResult();\n                }, entry.isIntersecting ? 10 : times.scrollTime);\n                observer.unobserve(this.productsContainer);\n                if (entry.isIntersecting) return;\n                window.scrollTo({\n                    top: scrollToElement,\n                    left: 0,\n                    behavior: 'smooth'\n                });\n            };\n            const observer = new IntersectionObserver(handleFilterAndScroll, options);\n            observer.observe(this.productsContainer);\n        }\n        constructor(section){\n            this.section = section;\n            this.container = this.section.container;\n            this.sidebar = this.container.querySelector(selectors$r.collectionSidebar);\n            this.form = section.container.querySelector(selectors$r.form);\n            this.sort = this.container.querySelector(`[${selectors$r.dataSort}]`);\n            this.productsContainer = this.container.querySelector(selectors$r.productsContainer);\n            this.activeFiltersHolder = this.container.querySelector(selectors$r.activeFiltersHolder);\n            this.activeFiltersCount = this.container.querySelector(selectors$r.activeFiltersCount);\n            this.productsCount = this.container.querySelector(selectors$r.productsCount);\n            this.headerIsSticky = document.querySelector(selectors$r.headerSticky) !== null;\n            this.layoutLarge = this.container.querySelector(`[${selectors$r.gridLarge}]`);\n            this.layoutSmall = this.container.querySelector(`[${selectors$r.gridSmall}]`);\n            if (this.productsContainer && this.sidebar) {\n                this.init();\n            }\n            if (this.sort) {\n                this.container.addEventListener('theme:form:filter', (e)=>this.filtering(e)\n                );\n            }\n            if (this.sidebar || this.sort) {\n                window.addEventListener('popstate', (e)=>this.filtering(e)\n                );\n            }\n        }\n    };\n    const collectionFiltersForm = {\n        onLoad () {\n            this.filterForm = new FiltersForm(this);\n        },\n        onUnload () {\n            if (this.filterForm && typeof this.filterForm.unload === 'function') {\n                this.filterForm.unload();\n            }\n        }\n    };\n\n    register('search-page', [\n        collectionFiltersSidebar,\n        collectionFiltersForm,\n        swatchGridSection,\n        accordion\n    ]);\n    if (!customElements.get('popout-select')) {\n        customElements.define('popout-select', PopoutSelect);\n    }\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    const selectors$q = {\n        zoomImage: '[data-image-zoom]',\n        modalContainer: '[data-modal-container]',\n        attrUnique: 'data-unique',\n        image: 'data-src'\n    };\n    let GalleryZoom = class GalleryZoom {\n        init() {\n            this.triggers.forEach((trigger)=>{\n                const unique = trigger.getAttribute(selectors$q.attrUnique);\n                const modalIsAdded = this.modalContainer.querySelector(`#zoom-${unique}`);\n                if (modalIsAdded) {\n                    const newModal = this.container.querySelector(`#zoom-${unique}`);\n                    if (newModal) {\n                        modalIsAdded.parentNode.removeChild(modalIsAdded);\n                        this.modalContainer.appendChild(newModal);\n                    }\n                }\n                MicroModal.init({\n                    disableScroll: true,\n                    openTrigger: `data-popup-${unique}`,\n                    onShow: (modal)=>{\n                        var images = modal.querySelectorAll(`[${selectors$q.image}]`, modal);\n                        images.forEach((image)=>{\n                            if (image.getAttribute('src') === null) {\n                                const bigImage = image.getAttribute(selectors$q.image);\n                                image.setAttribute('src', bigImage);\n                            }\n                        });\n                    },\n                    onClose: (modal, el, event)=>{\n                        event.preventDefault();\n                    }\n                });\n            });\n        }\n        constructor(container){\n            this.container = container;\n            this.triggers = this.container.querySelectorAll(selectors$q.zoomImage);\n            this.modalContainer = document.querySelector(selectors$q.modalContainer);\n            this.init();\n        }\n    };\n    const galleryZoomSection = {\n        onLoad () {\n            new GalleryZoom(this.container);\n        }\n    };\n\n    register('gallery', [\n        galleryZoomSection,\n        popupVideoSection,\n        customScrollbar\n    ]);\n\n    const tokensReducer = (acc, token)=>{\n        const { el , elStyle , elHeight , rowsLimit , rowsWrapped , options  } = acc;\n        let oldBuffer = acc.buffer;\n        let newBuffer = oldBuffer;\n        if (rowsWrapped === rowsLimit + 1) {\n            return {\n                ...acc\n            };\n        }\n        const textBeforeWrap = oldBuffer;\n        let newRowsWrapped = rowsWrapped;\n        let newHeight = elHeight;\n        el.innerHTML = newBuffer = oldBuffer.length ? `${oldBuffer}${options.delimiter}${token}${options.replaceStr}` : `${token}${options.replaceStr}`;\n        if (parseFloat(elStyle.height) > parseFloat(elHeight)) {\n            newRowsWrapped++;\n            newHeight = elStyle.height;\n            if (newRowsWrapped === rowsLimit + 1) {\n                el.innerHTML = newBuffer = textBeforeWrap[textBeforeWrap.length - 1] === '.' && options.replaceStr === '...' ? `${textBeforeWrap}..` : `${textBeforeWrap}${options.replaceStr}`;\n                return {\n                    ...acc,\n                    elHeight: newHeight,\n                    rowsWrapped: newRowsWrapped\n                };\n            }\n        }\n        el.innerHTML = newBuffer = textBeforeWrap.length ? `${textBeforeWrap}${options.delimiter}${token}` : `${token}`;\n        return {\n            ...acc,\n            buffer: newBuffer,\n            elHeight: newHeight,\n            rowsWrapped: newRowsWrapped\n        };\n    };\n    const ellipsis = (selector = '', rows = 1, options = {})=>{\n        const defaultOptions = {\n            replaceStr: '...',\n            debounceDelay: 250,\n            delimiter: ' '\n        };\n        const opts = {\n            ...defaultOptions,\n            ...options\n        };\n        const elements = selector && (selector instanceof NodeList ? selector : selector.nodeType === 1 // if node type is Node.ELEMENT_NODE\n         ? [\n            selector\n        ] // wrap it in (NodeList) if it is a single node\n         : document.querySelectorAll(selector));\n        for(let i = 0; i < elements.length; i++){\n            const el = elements[i];\n            const elementHtml = el.innerHTML;\n            const commentRegex = /<!--[\\s\\S]*?-->/g;\n            const htmlWithoutComments = elementHtml.replace(commentRegex, '');\n            const splittedText = htmlWithoutComments.split(opts.delimiter);\n            el.innerHTML = '';\n            const elStyle = window.getComputedStyle(el);\n            splittedText.reduce(tokensReducer, {\n                el,\n                buffer: el.innerHTML,\n                elStyle,\n                elHeight: 0,\n                rowsLimit: rows,\n                rowsWrapped: 0,\n                options: opts\n            });\n        }\n    };\n\n    function isTouch() {\n        const isTouch1 = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n        document.documentElement.classList.toggle('supports-touch', isTouch1);\n        return isTouch1;\n    }isTouch();\n\n    let modelJsonSections = {};\n    let models = {};\n    let xrButtons = {};\n    const selectors$p = {\n        productSlideshow: '[data-product-slideshow]',\n        productXr: '[data-shopify-xr]',\n        dataMediaId: 'data-media-id',\n        dataModelId: 'data-model-id',\n        modelViewer: 'model-viewer',\n        dataModel3d: 'data-shopify-model3d-id',\n        modelJson: '#ModelJson-'\n    };\n    function initSectionModels(modelViewerContainer, sectionId) {\n        modelJsonSections[sectionId] = {\n            loaded: false\n        };\n        const mediaId = modelViewerContainer.getAttribute(selectors$p.dataMediaId);\n        const modelViewerElement = modelViewerContainer.querySelector(selectors$p.modelViewer);\n        const modelId = modelViewerElement.getAttribute(selectors$p.dataModelId);\n        if (modelViewerContainer.closest(selectors$p.productSlideshow) !== null) {\n            const xrButton = modelViewerContainer.closest(selectors$p.productSlideshow).parentElement.querySelector(selectors$p.productXr);\n            xrButtons[sectionId] = {\n                $element: xrButton,\n                defaultId: modelId\n            };\n        }\n        models[mediaId] = {\n            modelId: modelId,\n            mediaId: mediaId,\n            sectionId: sectionId,\n            $container: modelViewerContainer,\n            $element: modelViewerElement\n        };\n        window.Shopify.loadFeatures([\n            {\n                name: 'shopify-xr',\n                version: '1.0',\n                onLoad: setupShopifyXr\n            },\n            {\n                name: 'model-viewer-ui',\n                version: '1.0',\n                onLoad: setupModelViewerUi\n            }, \n        ]);\n    }function setupShopifyXr(errors) {\n        if (errors) {\n            console.warn(errors);\n            return;\n        }\n        if (!window.ShopifyXR) {\n            document.addEventListener('shopify_xr_initialized', function() {\n                setupShopifyXr();\n            });\n            return;\n        }\n        for(const sectionId in modelJsonSections){\n            if (modelJsonSections.hasOwnProperty(sectionId)) {\n                const modelSection = modelJsonSections[sectionId];\n                if (modelSection.loaded) continue;\n                const modelJson = document.querySelector(`${selectors$p.modelJson}${sectionId}`);\n                if (modelJson) {\n                    window.ShopifyXR.addModels(JSON.parse(modelJson.innerHTML));\n                    modelSection.loaded = true;\n                }\n            }\n        }\n        window.ShopifyXR.setupXRElements();\n    }\n    function setupModelViewerUi(errors) {\n        if (errors) {\n            console.warn(errors);\n            return;\n        }\n        for(const key in models){\n            if (models.hasOwnProperty(key)) {\n                const model = models[key];\n                if (!model.modelViewerUi) {\n                    model.modelViewerUi = new Shopify.ModelViewerUI(model.$element);\n                }\n                setupModelViewerListeners(model);\n            }\n        }\n    }\n    function setupModelViewerListeners(model) {\n        const xrButton = xrButtons[model.sectionId];\n        model.$container.addEventListener('pause', function() {\n            if (model.modelViewerUi.pause) {\n                model.modelViewerUi.pause();\n            }\n        });\n        model.$container.addEventListener('play', function() {\n            if (model.modelViewerUi.play) {\n                model.modelViewerUi.play();\n                if (xrButton && xrButton.$element && model && model.modelId && selectors$p.dataModel3d) {\n                    xrButton.$element.setAttribute(selectors$p.dataModel3d, model.modelId);\n                }\n            }\n        });\n        model.$element.addEventListener('shopify_model_viewer_ui_toggle_play', ()=>{\n            model.$container.dispatchEvent(new CustomEvent('theme:media:play'));\n        });\n        model.$element.addEventListener('shopify_model_viewer_ui_toggle_pause', ()=>{\n            model.$container.dispatchEvent(new CustomEvent('theme:media:pause'));\n        });\n    }\n\n    async function productNativeVideo(uniqueKey) {\n        const playerElement = document.querySelector(`[data-player=\"${uniqueKey}\"]`);\n        const videoElement = playerElement.querySelector('video');\n        const videoLoad = {\n            name: 'video-ui',\n            version: '1.0'\n        };\n        await loadScript(videoLoad);\n        const player = new window.Shopify.Plyr(videoElement);\n        playerElement.addEventListener('pause', ()=>{\n            if (player.pause) {\n                player.pause();\n            }\n        });\n        playerElement.addEventListener('play', ()=>{\n            try {\n                if (player.play) {\n                    // Check if it is paused to avoid playing an already playing video which sometimes results in error\n                    if (player.paused) {\n                        player.play();\n                    }\n                } else {\n                    player.addEventListener('onReady', ()=>{\n                        player.play();\n                    });\n                }\n            } catch (e) {\n                console.warn(e);\n            }\n        });\n        playerElement.addEventListener('destroy', ()=>{\n            try {\n                if (player.destroy) {\n                    player.destroy();\n                }\n            } catch (e) {\n                console.warn(e);\n            }\n        });\n        return player;\n    }\n\n    const selectors$o = {\n        productSlideshow: '[data-product-slideshow]',\n        slideshowMobileStyle: 'data-slideshow-mobile-style',\n        slideshowDesktopStyle: 'data-slideshow-desktop-style',\n        productThumbs: '[data-product-thumbs]',\n        leftThumbsHolder: '[data-thumbs-holder]',\n        thumbImage: '[data-slideshow-thumbnail]',\n        mediaSlide: '[data-media-slide]',\n        dataMediaId: 'data-media-id',\n        dataMediaSelect: 'data-media-select',\n        mediaType: 'data-type',\n        videoPlayerExternal: '[data-type=\"external_video\"]',\n        videoPlayerNative: '[data-type=\"video\"]',\n        modelViewer: '[data-type=\"model\"]',\n        modelViewerTag: 'model-viewer',\n        allPlayers: '[data-player]',\n        loopVideo: 'data-enable-video-looping',\n        verticalAlignment: '[data-thumbnails-left]',\n        arrowPrev: '[data-thumbs-arrow-prev]',\n        arrowNext: '[data-thumbs-arrow-next]',\n        aspectRatio: 'data-aspect-ratio',\n        flickitylockHeight: 'flickity-lock-height'\n    };\n    const classes$e = {\n        flickityDisableClass: 'flickity-disabled-mobile',\n        flickityEnabled: 'flickity-enabled',\n        selected: 'is-selected',\n        active: 'is-activated',\n        show: 'show',\n        enableVideoDraggable: 'enable-video-draggable',\n        hide: 'hide'\n    };\n    let Media = class Media {\n        init() {\n            this.storeEvents();\n            this.connectSliderMediaEvents();\n            this.detectVideos();\n            this.detect3d();\n            this.scrollThumbs();\n            document.addEventListener('theme:resize:width', ()=>{\n                this.scrollThumbs();\n            });\n            resolution.onChange(()=>{\n                this.connectSliderMediaEvents();\n            });\n        }\n        connectSliderMediaEvents() {\n            resolution.isMobile() ? this.createMobileSlider() : this.createDesktopSlider();\n        }\n        createMobileSlider() {\n            if (this.hasDesktopSlider && this.flkty) {\n                this.destroySlider();\n                this.hasDesktopSlider = false;\n            }\n            // defaults to \"thumbs\" option\n            const mobileOptions = {\n                autoPlay: false,\n                prevNextButtons: false,\n                pageDots: false,\n                adaptiveHeight: true,\n                accessibility: true,\n                watchCSS: false,\n                wrapAround: true,\n                rightToLeft: window.isRTL,\n                dragThreshold: 80,\n                contain: true,\n                fade: true\n            };\n            if (this.mobileStyle == 'carousel') {\n                mobileOptions.contain = false;\n                mobileOptions.dragThreshold = 10;\n                mobileOptions.fade = false;\n            }\n            if (this.mobileStyle == 'slideshow') {\n                mobileOptions.pageDots = true;\n                mobileOptions.fade = false;\n                mobileOptions.dragThreshold = 10;\n            }\n            if (this.mobileStyle == 'none') return;\n            this.createSlider(mobileOptions);\n            this.hasMobileSlider = true;\n        }\n        createDesktopSlider() {\n            if (this.hasMobileSlider && this.flkty) {\n                this.destroySlider();\n                this.hasMobileSlider = false;\n            }\n            if (this.desktopStyle == 'none') {\n                return;\n            }\n            const desktopOptions = {\n                autoPlay: false,\n                prevNextButtons: false,\n                pageDots: false,\n                adaptiveHeight: true,\n                accessibility: true,\n                watchCSS: false,\n                wrapAround: true,\n                rightToLeft: window.isRTL,\n                dragThreshold: 80,\n                contain: true,\n                fade: true\n            };\n            this.createSlider(desktopOptions);\n            this.hasDesktopSlider = true;\n        }\n        createSlider(options) {\n            this.flkty = new Flickity(this.slideshow, options);\n            this.flkty.resize();\n            this.currentSlide = this.slideshow.querySelectorAll(selectors$o.mediaSlide)[0];\n            this.setDraggable();\n            this.addEventListeners();\n        }\n        destroySlider() {\n            this.removeEventListeners();\n            this.flkty.destroy();\n        }\n        storeEvents() {\n            this.storeFlktyChange = (e)=>this.doFlktyChange(e)\n            ;\n            this.storeFlktySettle = (e)=>this.doFlktySettle(e)\n            ;\n            this.storeImageChange = (e)=>this.doImageChange(e)\n            ;\n            this.storeArrowPrevClick = (e)=>this.doArrowPrevClick(e)\n            ;\n            this.storeArrowNextClick = (e)=>this.doArrowNextClick(e)\n            ;\n            this.storeThumbClick = (e)=>this.doThumbClick(e)\n            ;\n            this.storeThumbContainerScroll = (e)=>this.doThumbContainerScroll(e)\n            ;\n        }\n        addEventListeners() {\n            var ref, ref1, ref2;\n            this.flkty.on('change', this.storeFlktyChange);\n            this.flkty.on('settle', this.storeFlktySettle);\n            this.slideshow.addEventListener('theme:image:change', this.storeImageChange);\n            (ref = this.arrowPrev) === null || ref === void 0 ? void 0 : ref.addEventListener('click', this.storeArrowPrevClick);\n            (ref1 = this.arrowNext) === null || ref1 === void 0 ? void 0 : ref1.addEventListener('click', this.storeArrowNextClick);\n            (ref2 = this.thumbs) === null || ref2 === void 0 ? void 0 : ref2.addEventListener('scroll', this.storeThumbContainerScroll);\n            this.thumbImages.forEach((thumb)=>{\n                thumb.addEventListener('click', this.storeThumbClick);\n            });\n        }\n        removeEventListeners() {\n            var ref, ref3, ref4;\n            this.flkty.on('change', this.storeFlktyChange);\n            this.flkty.on('settle', this.storeFlktySettle);\n            this.slideshow.removeEventListener('theme:image:change', this.storeImageChange);\n            (ref = this.arrowPrev) === null || ref === void 0 ? void 0 : ref.removeEventListener('click', this.storeArrowPrevClick);\n            (ref3 = this.arrowNext) === null || ref3 === void 0 ? void 0 : ref3.removeEventListener('click', this.storeArrowNextClick);\n            (ref4 = this.thumbs) === null || ref4 === void 0 ? void 0 : ref4.removeEventListener('scroll', this.storeThumbContainerScroll);\n            this.thumbImages.forEach((thumb)=>{\n                thumb.removeEventListener('click', this.storeThumbClick);\n            });\n        }\n        addMediaEventListeners(media) {\n            if (!media) return;\n            media.addEventListener('play', ()=>{\n                if (resolution.isMobile() || resolution.isTouch()) {\n                    this.updateDraggable(false);\n                }\n            });\n            media.addEventListener('pause', ()=>{\n                if (resolution.isMobile() || resolution.isTouch()) {\n                    this.updateDraggable(true);\n                }\n            });\n        }\n        doFlktyChange(index) {\n            var ref, ref5;\n            // Pause previous slide media\n            if (this.mediaType === 'model' || this.mediaType === 'video' || this.mediaType === 'external_video') {\n                this.currentSlide.dispatchEvent(new CustomEvent('pause'));\n            }\n            this.currentSlide = this.flkty.cells[index].element;\n            this.slideshow.classList.remove(selectors$o.flickitylockHeight);\n            const id = this.currentSlide.getAttribute(selectors$o.dataMediaId);\n            const currentThumb = (ref = this.thumbWrapper) === null || ref === void 0 ? void 0 : ref.querySelector(`[${selectors$o.dataMediaSelect}=\"${id}\"]`);\n            (ref5 = this.thumbWrapper) === null || ref5 === void 0 ? void 0 : ref5.querySelector(`.${classes$e.active}`).classList.remove(classes$e.active);\n            currentThumb === null || currentThumb === void 0 ? void 0 : currentThumb.classList.add(classes$e.active);\n            this.scrollThumbs();\n            // when swatch images are hidden by specific alt-text, the slider breaks on change so we select the featured variant image to \"fix\" it\n            // Timeout is needed to slow it down a bit until the images refresh and the currentThumb variable has the right value\n            setTimeout(()=>{\n                if ((currentThumb === null || currentThumb === void 0 ? void 0 : currentThumb.classList.contains(classes$e.hide)) || this.currentSlide.classList.contains(classes$e.hide)) {\n                    //Select the next visible media - the image may not be apart of any group and is at the end.\n                    let length = this.flkty.cells.length;\n                    //Move to index 0 if drag is to the left otherwise increase index\n                    const moveLeft = this.flkty.dragStartPosition < this.flkty.dragX;\n                    for(let n = 0; n < length; n++){\n                        let position = moveLeft ? index - n : index + n;\n                        // When index - n is negative add length to wrap\n                        if (position < 0) position = position + length;\n                        // When index + n is >= length minus length to wrap\n                        if (position >= length) position = position - length;\n                        const mediaSelect = this.flkty.cells[position].element;\n                        if (!mediaSelect.classList.contains(classes$e.hide)) {\n                            this.lastMediaSelect = mediaSelect.getAttribute(selectors$o.dataMediaId);\n                            break;\n                        }\n                    }\n                    if (this.lastMediaSelect) {\n                        this.slideshow.dispatchEvent(new CustomEvent('theme:image:change', {\n                            detail: {\n                                id: this.lastMediaSelect\n                            }\n                        }));\n                    } else window.location.reload();\n                }\n            });\n        }\n        doFlktySettle(index) {\n            this.allSlides = this.flkty.cells;\n            this.currentSlide = this.flkty.cells[index].element;\n            this.setDraggable();\n            const isFocusEnabled = document.body.classList.contains(selectors$o.focusEnabled);\n            if (isFocusEnabled) this.currentSlide.dispatchEvent(new Event('focus'));\n            this.scrollThumbs();\n        }\n        doImageChange(event) {\n            var mediaId = event.detail.id;\n            this.lastMediaSelect = mediaId;\n            const mediaIdString = `[${selectors$o.dataMediaId}=\"${mediaId}\"]`;\n            const matchesMedia = (cell)=>{\n                return cell.element.matches(mediaIdString);\n            };\n            const index = this.flkty.cells.findIndex(matchesMedia);\n            this.flkty.select(index);\n            this.scrollThumbs();\n        }\n        doThumbContainerScroll() {\n            this.scrollThumbs('scroll');\n        }\n        doArrowPrevClick() {\n            this.scrollThumbs('clickPrev');\n        }\n        doArrowNextClick() {\n            this.scrollThumbs('clickNext');\n        }\n        doThumbClick(event) {\n            const id = event.currentTarget.getAttribute(selectors$o.dataMediaSelect);\n            this.slideshow.dispatchEvent(new CustomEvent('theme:image:change', {\n                detail: {\n                    id: id\n                }\n            }));\n        }\n        setDraggable() {\n            if (this.currentSlide) {\n                this.mediaType = this.currentSlide.getAttribute(selectors$o.mediaType);\n                if (this.mediaType === 'model' || this.mediaType === 'video' || this.mediaType === 'external_video') {\n                    if (!resolution.isMobile() || !resolution.isTouch()) {\n                        // Play on Desktop\n                        this.currentSlide.dispatchEvent(new CustomEvent('play'));\n                        this.updateDraggable(false);\n                    } else {\n                        this.updateDraggable(true); // Triggering this to ensure the first video also has the 'draggable' elements active on Mobile\n                    }\n                } else {\n                    this.updateDraggable(true);\n                }\n            }\n        }\n        updateDraggable(state) {\n            if (!this.flkty) return;\n            this.flkty.options.draggable = state;\n            this.flkty.updateDraggable();\n            this.slideshow.classList.toggle(classes$e.enableVideoDraggable, state);\n        }\n        detect3d() {\n            const modelViewerElements = this.container.querySelectorAll(selectors$o.modelViewer);\n            if (modelViewerElements) {\n                modelViewerElements.forEach((element)=>{\n                    initSectionModels(element, this.section.id);\n                    element.addEventListener('theme:media:play', ()=>{\n                        this.updateDraggable(false);\n                    });\n                    element.addEventListener('theme:media:pause', ()=>{\n                        this.updateDraggable(true);\n                    });\n                });\n                document.addEventListener('shopify_xr_launch', (function() {\n                    this.container.querySelectorAll(selectors$o.allPlayers).forEach((player)=>{\n                        player.dispatchEvent(new CustomEvent('pause'));\n                    });\n                }).bind(this));\n            }\n        }\n        detectVideos() {\n            const playerElements = this.section.container.querySelectorAll(`${selectors$o.videoPlayerExternal}, ${selectors$o.videoPlayerNative}`);\n            for (var player of playerElements){\n                const uniqueKey = player.dataset.player;\n                const host = player.dataset.host;\n                let videoPlayerPromise;\n                if (host === 'youtube') {\n                    // Youtube\n                    videoPlayerPromise = embedYoutube(uniqueKey);\n                } else if (host === 'vimeo') {\n                    // Vimeo\n                    videoPlayerPromise = embedVimeo(uniqueKey);\n                } else {\n                    // Native video\n                    videoPlayerPromise = productNativeVideo(uniqueKey);\n                }\n                if (this.loopVideo === true) {\n                    videoPlayerPromise.then((videoPlayer)=>{\n                        if (host) {\n                            // Youtube and Vimeo\n                            return _setToLoop(videoPlayer, host);\n                        } else {\n                            // Native video\n                            videoPlayer.loop = true;\n                            return videoPlayer;\n                        }\n                    }).catch((err)=>{\n                        console.error(err);\n                    });\n                }\n                this.addMediaEventListeners(player);\n            }\n        }\n        pauseAllMedia() {\n            const all = this.container.querySelector(selectors$o.mediaSlide);\n            all.dispatchEvent(new CustomEvent('pause'));\n        }\n        pauseOtherMedia(uniqueKey) {\n            const otherMedia = this.container.querySelector(`${selectors$o.mediaSlide}:not([data-player=\"${uniqueKey}\"])`);\n            otherMedia.dispatchEvent(new CustomEvent('pause'));\n        }\n        destroy() {\n            this.container.querySelectorAll(selectors$o.allPlayers).forEach((player)=>{\n                player.dispatchEvent(new CustomEvent('destroy'));\n            });\n        }\n        scrollThumbs(event) {\n            this.thumbs = this.container.querySelector(selectors$o.productThumbs);\n            if (this.thumbs) {\n                this.thumb = this.thumbs.querySelector(`.${classes$e.active}`);\n                this.thumbItems = this.container.querySelectorAll(selectors$o.thumbImage);\n                this.lastThumb = this.thumbItems[this.thumbItems.length - 1];\n                if (!this.thumb) return;\n                this.thumbsScrollTop = this.thumbs.scrollTop;\n                this.thumbsScrollLeft = this.thumbs.scrollLeft;\n                this.thumbsWidth = this.thumbs.offsetWidth;\n                this.thumbsHeight = this.slideshow.offsetWidth / this.thumb.getAttribute(selectors$o.aspectRatio);\n                this.thumbsPositionBottom = this.thumbsScrollTop + this.thumbsHeight;\n                this.thumbsPositionRight = this.thumbsScrollLeft + this.thumbsWidth;\n                this.checkThumbPositions();\n                this.toggleToActiveThumb(event);\n                this.toggleArrows();\n            }\n        }\n        checkThumbPositions() {\n            this.thumbWidth = this.thumb.offsetWidth;\n            this.thumbHeight = this.thumb.offsetHeight;\n            this.thumbPosTop = this.thumb.offsetTop;\n            this.thumbPosLeft = this.thumb.offsetLeft;\n            this.lastThumbRightPos = this.lastThumb.offsetLeft + this.thumbWidth;\n            this.lastThumbBottomPos = this.lastThumb.offsetTop + this.thumbHeight;\n            this.scrollTopPosition = this.thumbPosTop + this.thumbHeight / 2 - this.thumbsHeight / 2;\n            this.scrollLeftPosition = this.thumbPosLeft + this.thumbWidth / 2 - this.thumbsWidth / 2;\n            this.topCheck = this.thumbsScrollTop > 0;\n            this.bottomCheck = this.thumbsPositionBottom < this.lastThumbBottomPos;\n            this.leftCheck = this.thumbsScrollLeft > 0;\n            this.rightCheck = this.thumbsPositionRight < this.lastThumbRightPos;\n            this.verticalCheck = this.bottomCheck || this.topCheck;\n            this.horizontalCheck = this.rightCheck || this.leftCheck;\n        }\n        toggleToActiveThumb(event) {\n            if (event !== 'scroll') {\n                if (event == 'clickPrev') {\n                    if (this.verticalCheck) {\n                        this.scrollTopPosition = this.thumbsScrollTop - this.thumbsHeight;\n                        this.scrollLeftPosition = 0;\n                    } else {\n                        this.scrollTopPosition = 0;\n                        this.scrollLeftPosition = this.thumbsScrollLeft - this.thumbsWidth;\n                    }\n                }\n                if (event == 'clickNext') {\n                    if (this.verticalCheck) {\n                        this.scrollTopPosition = this.thumbsScrollTop + this.thumbsHeight;\n                        this.scrollLeftPosition = 0;\n                    } else {\n                        this.scrollTopPosition = 0;\n                        this.scrollLeftPosition = this.thumbsScrollLeft + this.thumbsWidth;\n                    }\n                }\n                this.thumbs.scrollTo({\n                    top: this.scrollTopPosition,\n                    left: this.scrollLeftPosition,\n                    behavior: 'smooth'\n                });\n            }\n        }\n        toggleArrows() {\n            if (this.verticalCheck || this.verticalAlignment && !this.verticalCheck) {\n                this.arrowPrev.classList.toggle(classes$e.show, this.topCheck);\n                this.arrowNext.classList.toggle(classes$e.show, this.bottomCheck);\n            }\n            if (this.horizontalCheck || !this.verticalAlignment && !this.horizontalCheck) {\n                this.arrowPrev.classList.toggle(classes$e.show, this.leftCheck);\n                this.arrowNext.classList.toggle(classes$e.show, this.rightCheck);\n            }\n        }\n        constructor(section){\n            var ref, ref6;\n            this.section = section;\n            this.container = section.container;\n            this.slideshow = this.container.querySelector(selectors$o.productSlideshow);\n            this.mobileStyle = ((ref = this.slideshow) === null || ref === void 0 ? void 0 : ref.getAttribute(selectors$o.slideshowMobileStyle)) || 'none';\n            this.desktopStyle = ((ref6 = this.slideshow) === null || ref6 === void 0 ? void 0 : ref6.getAttribute(selectors$o.slideshowDesktopStyle)) || 'none';\n            this.arrowPrev = this.container.querySelector(selectors$o.arrowPrev);\n            this.arrowNext = this.container.querySelector(selectors$o.arrowNext);\n            this.leftThumbsHolder = this.container.querySelector(selectors$o.leftThumbsHolder);\n            this.thumbWrapper = this.container.querySelector(selectors$o.productThumbs);\n            this.thumbImages = this.container.querySelectorAll(selectors$o.thumbImage);\n            this.loopVideo = this.container.getAttribute(selectors$o.loopVideo) === 'true';\n            this.verticalAlignment = Boolean(this.container.querySelector(selectors$o.verticalAlignment));\n            this.flkty = null;\n            this.lastMediaSelect = null;\n            this.thumbs = this.container.querySelector(selectors$o.productThumbs);\n            this.currentSlide = null;\n            this.mediaType = null;\n            this.hasMobileSlider = false;\n            this.hasDesktopSlider = false;\n            this.init();\n        }\n    };\n    function _setToLoop(player, host) {\n        if (host === 'youtube') {\n            player.addEventListener('onStateChange', (event)=>{\n                if (event.data === 0) {\n                    // video is over, replay\n                    event.target.playVideo();\n                }\n            });\n        } else if (host === 'vimeo') {\n            player.on('ended', ()=>{\n                // video is over, replay\n                player.play();\n            });\n        }\n        return player;\n    }\n\n    const selectors$n = {\n        pickupContainer: 'data-store-availability-container',\n        shopifySection: '[data-api-content]',\n        drawer: '[data-pickup-drawer]',\n        drawerOpen: '[data-pickup-drawer-open]',\n        drawerClose: '[data-pickup-drawer-close]',\n        drawerBody: '[data-pickup-body]'\n    };\n    const classes$d = {\n        isVisible: 'drawer--visible',\n        isHidden: 'hide',\n        isPickupVisible: 'is-pickup-visible'\n    };\n    let PickupAvailability = class PickupAvailability extends HTMLElement {\n        connectedCallback() {\n            this.container = this;\n            this.drawer = this.container.querySelector(selectors$n.drawer);\n            this.buttonDrawerOpen = this.container.querySelector(selectors$n.drawerOpen);\n            this.buttonDrawerClose = this.container.querySelectorAll(selectors$n.drawerClose);\n            this.drawerBody = this.container.querySelector(selectors$n.drawerBody);\n            if (this.buttonDrawerOpen) {\n                var ref;\n                (ref = this.buttonDrawerOpen) === null || ref === void 0 ? void 0 : ref.addEventListener('click', ()=>this.openDrawer()\n                );\n            }\n            if (this.buttonDrawerClose) {\n                this.buttonDrawerClose.forEach((element)=>{\n                    element.addEventListener('click', ()=>this.closeDrawer()\n                    );\n                });\n            }\n        }\n        openDrawer() {\n            if (this.drawer) {\n                document.body.classList.add(classes$d.isPickupVisible);\n                this.drawer.classList.add(classes$d.isVisible);\n                this.drawer.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                    bubbles: true\n                }));\n                this.drawerBody.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                    bubbles: true\n                }));\n            }\n        }\n        closeDrawer() {\n            if (this.drawer) {\n                document.body.classList.remove(classes$d.isPickupVisible);\n                this.drawer.classList.remove(classes$d.isVisible);\n                this.drawer.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                    bubbles: true\n                }));\n                this.drawerBody.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                    bubbles: true\n                }));\n            }\n        }\n        handleErrors(response) {\n            if (!response.ok) {\n                return response.json().then(function(json) {\n                    const e = new FetchError({\n                        status: response.statusText,\n                        headers: response.headers,\n                        json: json\n                    });\n                    throw e;\n                });\n            }\n            return response;\n        }\n    };\n\n    let ProductComplimentary = class ProductComplimentary extends HTMLElement {\n        connectedCallback() {\n            fetch(this.dataset.url).then((response)=>response.text()\n            ).then((text)=>{\n                const fresh = document.createElement('div');\n                fresh.innerHTML = text;\n                const newContent = fresh.querySelector('[data-api-content]');\n                if (newContent) {\n                    this.innerHTML = newContent.innerHTML;\n                }\n                const loader = this.closest('[data-product-complimentary-loaded]');\n                if (loader && newContent.innerHTML.trim() !== '') {\n                    // js-unloaded state hides the wrapper pre-render and\n                    // keeps it hidden for empty recommendations\n                    loader.classList.remove('js-unloaded');\n                }\n            }).catch((e)=>{\n                console.error(e);\n            });\n        }\n        constructor(){\n            super();\n        }\n    };\n\n    const selectors$m = {\n        slideshow: '[data-product-slideshow]',\n        singeImage: '[data-product-image]',\n        zoomButton: '[data-zoom-button]',\n        zoomWrapper: '[data-zoom-wrapper]',\n        mediaId: 'data-media-id'\n    };\n    function productPhotoswipeZoom(container, json) {\n        const loadedPromise = loadScript({\n            url: window.theme.assets.photoswipe\n        });\n        const returnZoom = loadedPromise.then(()=>{\n            const PhotoSwipe = window.themePhotoswipe.PhotoSwipe.default;\n            const PhotoSwipeUI = window.themePhotoswipe.PhotoSwipeUI.default;\n            const triggers = container.querySelectorAll(selectors$m.zoomButton);\n            triggers.forEach((trigger)=>{\n                trigger.addEventListener('click', (event)=>{\n                    const el = container.querySelector(selectors$m.zoomWrapper);\n                    const dataId = event.target.closest(`[${selectors$m.mediaId}]`).getAttribute(selectors$m.mediaId).toString();\n                    const items = [];\n                    for(let i = 0; i < json.media.length; i++){\n                        if (json.media[i].media_type === 'image') {\n                            items[items.length] = {\n                                src: json.media[i].src,\n                                w: json.media[i].width,\n                                h: json.media[i].height,\n                                id: json.media[i].id\n                            };\n                        }\n                    }\n                    const findImage = (element)=>element.id.toString() === dataId\n                    ;\n                    const index = items.findIndex(findImage);\n                    const options = {\n                        index,\n                        showHideOpacity: true,\n                        showAnimationDuration: 150,\n                        hideAnimationDuration: 250,\n                        bgOpacity: 1,\n                        spacing: 0,\n                        allowPanToNext: false,\n                        maxSpreadZoom: 3,\n                        history: false,\n                        loop: true,\n                        pinchToClose: false,\n                        modal: false,\n                        closeOnScroll: false,\n                        closeOnVerticalDrag: true,\n                        getDoubleTapZoom: function getDoubleTapZoom(isMouseClick, item) {\n                            if (isMouseClick) {\n                                return 1.67;\n                            } else {\n                                return item.initialZoomLevel < 0.7 ? 1 : 1.3;\n                            }\n                        },\n                        getThumbBoundsFn: function getThumbBoundsFn() {\n                            let imageLocation = container.querySelector(selectors$m.slideshow);\n                            if (!imageLocation) {\n                                imageLocation = container.querySelector(selectors$m.singeImage);\n                            }\n                            const pageYScroll = window.pageYOffset || document.documentElement.scrollTop;\n                            const rect = imageLocation.getBoundingClientRect();\n                            return {\n                                x: rect.left,\n                                y: rect.top + pageYScroll,\n                                w: rect.width\n                            };\n                        }\n                    };\n                    el.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                        bubbles: true\n                    }));\n                    // Initializes and opens PhotoSwipe\n                    const gallery = new PhotoSwipe(el, PhotoSwipeUI, items, options);\n                    gallery.init();\n                    gallery.listen('close', function() {\n                        document.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                            bubbles: true\n                        }));\n                    });\n                });\n            });\n        }).catch((e)=>console.error(e)\n        );\n        return returnZoom;\n    }\n\n    const selectors$l = {\n        body: 'body',\n        dataRelatedSectionElem: '[data-related-section]',\n        dataTabsHolder: '[data-tabs-holder]',\n        dataTab: 'data-tab',\n        dataTabIndex: 'data-tab-index',\n        blockId: 'data-block-id',\n        tabsLi: '.tabs > button',\n        tabLink: '.tab-link',\n        tabLinkRecent: '.tab-link__recent',\n        tabContent: '.tab-content',\n        scrollbarHolder: '[data-scrollbar]',\n        scrollbarArrowPrev: '[data-scrollbar-arrow-prev]',\n        scrollbarArrowNext: '[data-scrollbar-arrow-next]',\n        firstElement: 'a:first-child, input:first-child'\n    };\n    const classes$c = {\n        classCurrent: 'current',\n        classHide: 'hide',\n        classAlt: 'alt',\n        isFocused: 'is-focused'\n    };\n    const sections$4 = {};\n    let GlobalTabs = class GlobalTabs {\n        init() {\n            const ctx = this.container;\n            const tabsNavList = ctx.querySelectorAll(selectors$l.tabsLi);\n            const firstTabLink = ctx.querySelector(`${selectors$l.tabLink}-0`);\n            const firstTabContent = ctx.querySelector(`${selectors$l.tabContent}-0`);\n            if (firstTabContent) {\n                firstTabContent.classList.add(classes$c.classCurrent);\n            }\n            if (firstTabLink) {\n                firstTabLink.classList.add(classes$c.classCurrent);\n            }\n            this.checkVisibleTabLinks();\n            this.container.addEventListener('theme:tabs:check', ()=>this.checkRecentTab()\n            );\n            this.container.addEventListener('theme:tabs:hide', ()=>this.hideRelatedTab()\n            );\n            if (tabsNavList.length) {\n                tabsNavList.forEach((element)=>{\n                    const tabId = parseInt(element.getAttribute(selectors$l.dataTab));\n                    const tab = ctx.querySelector(`${selectors$l.tabContent}-${tabId}`);\n                    element.addEventListener('click', ()=>{\n                        this.tabChange(element, tab);\n                    });\n                    element.addEventListener('keyup', (event)=>{\n                        if ((event.code === 'Space' || event.code === 'Enter') && this.body.classList.contains(classes$c.isFocused)) {\n                            this.tabChange(element, tab);\n                            if (tab.querySelector('a, input')) {\n                                this.accessibility.lastFocused = element;\n                                this.accessibility.a11y.trapFocus(tab, {\n                                    elementToFocus: tab.querySelector(selectors$l.firstElement)\n                                });\n                            }\n                        }\n                    });\n                });\n            }\n        }\n        tabChange(element, tab) {\n            this.container.querySelector(`${selectors$l.tabsLi}.${classes$c.classCurrent}`).classList.remove(classes$c.classCurrent);\n            this.container.querySelector(`${selectors$l.tabContent}.${classes$c.classCurrent}`).classList.remove(classes$c.classCurrent);\n            element.classList.add(classes$c.classCurrent);\n            tab.classList.add(classes$c.classCurrent);\n            if (element.classList.contains(classes$c.classHide)) {\n                tab.classList.add(classes$c.classHide);\n            }\n            this.checkVisibleTabLinks();\n            this.container.dispatchEvent(new CustomEvent('theme:tab:change'));\n        }\n        initNativeScrollbar() {\n            if (this.scrollbarHolder.length) {\n                this.scrollbarHolder.forEach((scrollbar)=>{\n                    new NativeScrollbar(scrollbar);\n                });\n            }\n        }\n        checkVisibleTabLinks() {\n            const tabsNavList = this.container.querySelectorAll(selectors$l.tabsLi);\n            const tabsNavListHided = this.container.querySelectorAll(`${selectors$l.tabLink}.${classes$c.classHide}`);\n            const difference = tabsNavList.length - tabsNavListHided.length;\n            if (difference < 2) {\n                this.container.classList.add(classes$c.classAlt);\n            } else {\n                this.container.classList.remove(classes$c.classAlt);\n            }\n        }\n        checkRecentTab() {\n            const tabLink = this.container.querySelector(selectors$l.tabLinkRecent);\n            if (tabLink) {\n                tabLink.classList.remove(classes$c.classHide);\n                const tabLinkIdx = parseInt(tabLink.getAttribute(selectors$l.dataTab));\n                const tabContent = this.container.querySelector(`${selectors$l.tabContent}[${selectors$l.dataTabIndex}=\"${tabLinkIdx}\"]`);\n                if (tabContent) {\n                    tabContent.classList.remove(classes$c.classHide);\n                }\n                this.checkVisibleTabLinks();\n                this.initNativeScrollbar();\n            }\n        }\n        hideRelatedTab() {\n            const relatedSection = this.container.querySelector(selectors$l.dataRelatedSectionElem);\n            if (!relatedSection) {\n                return;\n            }\n            const parentTabContent = relatedSection.closest(`${selectors$l.tabContent}.${classes$c.classCurrent}`);\n            if (!parentTabContent) {\n                return;\n            }\n            const parentTabContentIdx = parseInt(parentTabContent.getAttribute(selectors$l.dataTabIndex));\n            const tabsNavList = this.container.querySelectorAll(selectors$l.tabsLi);\n            if (tabsNavList.length > parentTabContentIdx) {\n                const nextTabsNavLink = tabsNavList[parentTabContentIdx].nextElementSibling;\n                if (nextTabsNavLink) {\n                    tabsNavList[parentTabContentIdx].classList.add(classes$c.classHide);\n                    nextTabsNavLink.dispatchEvent(new Event('click'));\n                    this.initNativeScrollbar();\n                }\n            }\n        }\n        onBlockSelect(evt) {\n            const element = this.container.querySelector(`${selectors$l.tabLink}[${selectors$l.blockId}=\"${evt.detail.blockId}\"]`);\n            if (element) {\n                element.dispatchEvent(new Event('click'));\n                element.parentNode.scrollTo({\n                    top: 0,\n                    left: element.offsetLeft - element.clientWidth,\n                    behavior: 'smooth'\n                });\n            }\n        }\n        constructor(holder){\n            this.container = holder;\n            this.body = document.querySelector(selectors$l.body);\n            this.accessibility = window.accessibility;\n            if (this.container) {\n                this.scrollbarHolder = this.container.querySelectorAll(selectors$l.scrollbarHolder);\n                this.init();\n                // Init native scrollbar\n                this.initNativeScrollbar();\n            }\n        }\n    };\n    const tabs$1 = {\n        onLoad () {\n            sections$4[this.id] = [];\n            const tabHolders = this.container.querySelectorAll(selectors$l.dataTabsHolder);\n            tabHolders.forEach((holder)=>{\n                sections$4[this.id].push(new GlobalTabs(holder));\n            });\n        },\n        onBlockSelect (e) {\n            sections$4[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(e);\n                }\n            });\n        }\n    };\n\n    const selectors$k = {\n        urlInput: '[data-share-url]',\n        section: 'data-section-type',\n        shareDetails: '[data-share-details]',\n        shareSummary: '[data-share-summary]',\n        shareCopy: '[data-share-copy]',\n        shareButton: '[data-share-button]',\n        closeButton: '[data-close-button]',\n        successMessage: '[data-success-message]',\n        shareHolder: '[data-share-holder]'\n    };\n    const classes$b = {\n        hidden: 'is-hidden'\n    };\n    let ShareButton = class ShareButton extends HTMLElement {\n        connectedCallback() {\n            this.container = this.closest(`[${selectors$k.section}]`);\n            this.mainDetailsToggle = this.querySelector(selectors$k.shareDetails);\n            this.shareButton = this.querySelector(selectors$k.shareButton);\n            this.shareCopy = this.querySelector(selectors$k.shareCopy);\n            this.shareSummary = this.querySelector(selectors$k.shareSummary);\n            this.closeButton = this.querySelector(selectors$k.closeButton);\n            this.successMessage = this.querySelector(selectors$k.successMessage);\n            this.shareHolder = this.querySelector(selectors$k.shareHolder);\n            this.urlInput = this.querySelector(selectors$k.urlInput);\n            this.urlToShare = this.urlInput ? this.urlInput.value : document.location.href;\n            this.init();\n        }\n        init() {\n            if (navigator.share) {\n                this.mainDetailsToggle.classList.add(classes$b.hidden);\n                this.shareButton.classList.remove(classes$b.hidden);\n                this.shareButton.addEventListener('click', ()=>{\n                    navigator.share({\n                        url: this.urlToShare,\n                        title: document.title\n                    });\n                });\n            } else {\n                this.mainDetailsToggle.addEventListener('toggle', this.toggleDetails.bind(this));\n                this.mainDetailsToggle.addEventListener('focusout', ()=>{\n                    setTimeout(()=>{\n                        if (!this.contains(document.activeElement)) {\n                            this.close();\n                        }\n                    });\n                });\n                this.shareCopy.addEventListener('click', this.copyToClipboard.bind(this));\n                this.closeButton.addEventListener('click', this.close.bind(this));\n                this.container.addEventListener('keyup', this.keyboardEvents.bind(this));\n            }\n        }\n        toggleDetails() {\n            if (!this.mainDetailsToggle.open) {\n                this.successMessage.classList.add(classes$b.hidden);\n                this.successMessage.textContent = '';\n                this.closeButton.classList.add(classes$b.hidden);\n                this.shareCopy.focus();\n            }\n        }\n        copyToClipboard() {\n            navigator.clipboard.writeText(this.urlInput.value).then(()=>{\n                this.successMessage.classList.remove(classes$b.hidden);\n                this.successMessage.textContent = theme.strings.successMessage;\n                this.closeButton.classList.remove(classes$b.hidden);\n                this.closeButton.focus();\n            });\n        }\n        close() {\n            this.mainDetailsToggle.removeAttribute('open');\n            this.shareSummary.setAttribute('aria-expanded', false);\n        }\n        keyboardEvents(e) {\n            if (e.code !== 'Escape') {\n                return;\n            }\n            this.mainDetailsToggle.focus();\n            this.close();\n        }\n    };\n\n    const selectors$j = {\n        sizeButton: '[data-size-button]',\n        mediaHolder: '[data-media-slide]'\n    };\n    const classes$a = {\n        classExpanded: 'is-expanded'\n    };\n    let ImageCaption = class ImageCaption {\n        init() {\n            this.sizeButtons.forEach((button)=>{\n                button.addEventListener('click', ()=>{\n                    button.classList.toggle(classes$a.classExpanded);\n                    button.closest(selectors$j.mediaHolder).classList.toggle(classes$a.classExpanded);\n                });\n            });\n        }\n        constructor(container){\n            this.container = container;\n            this.sizeButtons = this.container.querySelectorAll(selectors$j.sizeButton);\n            if (this.sizeButtons.length > 0) {\n                this.init();\n            }\n        }\n    };\n\n    const selectors$i = {\n        productJson: '[data-product-json]',\n        zoomButton: '[data-zoom-button]',\n        toggleTruncateHolder: '[data-truncated-holder]',\n        toggleTruncateButton: '[data-truncated-button]',\n        toggleTruncateContent: 'data-truncated-content'\n    };\n    const classes$9 = {\n        classExpanded: 'is-expanded',\n        classVisible: 'is-visible'\n    };\n    const sections$3 = [];\n    let ProductTemplate = class ProductTemplate {\n        init() {\n            this.zoomEnabled = this.container.querySelector(selectors$i.zoomButton) !== null;\n            if (this.zoomEnabled) {\n                productPhotoswipeZoom(this.container, this.product);\n            }\n            if (this.truncateElementHolder && this.truncateElement) {\n                setTimeout(this.resizeEventTruncate, 50);\n                document.addEventListener('theme:resize', this.resizeEventTruncate);\n            }\n            new ImageCaption(this.container);\n        }\n        truncateText() {\n            if (this.truncateElementHolder.classList.contains(classes$9.classVisible)) return;\n            const styles = this.truncateElement.querySelectorAll('style');\n            if (styles.length) {\n                styles.forEach((style)=>{\n                    this.truncateElementHolder.prepend(style);\n                });\n            }\n            const truncateElementCloned = this.truncateElement.cloneNode(true);\n            const truncateElementClass = this.truncateElement.getAttribute(selectors$i.toggleTruncateContent);\n            const truncateNextElement = this.truncateElement.nextElementSibling;\n            if (truncateNextElement) {\n                truncateNextElement.remove();\n            }\n            this.truncateElement.parentElement.append(truncateElementCloned);\n            const truncateAppendedElement = this.truncateElement.nextElementSibling;\n            truncateAppendedElement.classList.add(truncateElementClass);\n            truncateAppendedElement.removeAttribute(selectors$i.toggleTruncateContent);\n            showElement(truncateAppendedElement);\n            ellipsis(truncateAppendedElement, 5, {\n                replaceStr: '',\n                delimiter: ' '\n            });\n            hideElement(truncateAppendedElement);\n            if (this.truncateElement.innerHTML !== truncateAppendedElement.innerHTML) {\n                this.truncateElementHolder.classList.add(classes$9.classExpanded);\n            } else {\n                truncateAppendedElement.remove();\n                this.truncateElementHolder.classList.remove(classes$9.classExpanded);\n            }\n            this.toggleTruncatedContent(this.truncateElementHolder);\n        }\n        toggleTruncatedContent(holder) {\n            const toggleButton = holder.querySelector(selectors$i.toggleTruncateButton);\n            if (toggleButton) {\n                toggleButton.addEventListener('click', (e)=>{\n                    e.preventDefault();\n                    holder.classList.remove(classes$9.classExpanded);\n                    holder.classList.add(classes$9.classVisible);\n                });\n            }\n        }\n        onBlockSelect(event) {\n            const block = this.container.querySelector(`[data-block-id=\"${event.detail.blockId}\"]`);\n            if (block) {\n                block.dispatchEvent(new Event('click'));\n            }\n        }\n        onBlockDeselect(event) {\n            const block = this.container.querySelector(`[data-block-id=\"${event.detail.blockId}\"]`);\n            if (block) {\n                block.dispatchEvent(new Event('click'));\n            }\n        }\n        onUnload() {\n            this.media.destroy();\n            if (this.truncateElementHolder && this.truncateElement) {\n                document.removeEventListener('theme:resize', this.resizeEventTruncate);\n            }\n        }\n        constructor(section){\n            this.section = section;\n            this.id = section.id;\n            this.container = section.container;\n            this.settings = section.settings;\n            modal(this.id);\n            this.media = new Media(section);\n            const productJSON = this.container.querySelector(selectors$i.productJson);\n            if (productJSON && productJSON.innerHTML !== '') {\n                this.product = JSON.parse(productJSON.innerHTML);\n            } else {\n                console.error('Missing product JSON');\n                return;\n            }\n            this.truncateElementHolder = this.container.querySelector(selectors$i.toggleTruncateHolder);\n            this.truncateElement = this.container.querySelector(`[${selectors$i.toggleTruncateContent}]`);\n            this.resizeEventTruncate = ()=>this.truncateText()\n            ;\n            this.init();\n        }\n    };\n    const productSection = {\n        onLoad () {\n            sections$3[this.id] = new ProductTemplate(this);\n        },\n        onUnload () {\n            if (typeof sections$3[this.id].unload === 'function') {\n                sections$3[this.id].unload();\n            }\n        },\n        onBlockSelect (evt) {\n            if (typeof sections$3[this.id].onBlockSelect === 'function') {\n                sections$3[this.id].onBlockSelect(evt);\n            }\n        },\n        onBlockDeselect (evt) {\n            if (typeof sections$3[this.id].onBlockDeselect === 'function') {\n                sections$3[this.id].onBlockDeselect(evt);\n            }\n        }\n    };\n    register('product', [\n        productSection,\n        accordion,\n        tabs$1,\n        swapperSection\n    ]);\n    if (!customElements.get('pickup-availability')) {\n        customElements.define('pickup-availability', PickupAvailability);\n    }\n    if (!customElements.get('product-complimentary')) {\n        customElements.define('product-complimentary', ProductComplimentary);\n    }\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('popout-select')) {\n        customElements.define('popout-select', PopoutSelect);\n    }\n    if (!customElements.get('share-button')) {\n        customElements.define('share-button', ShareButton);\n    }\n\n    const selectors$h = {\n        toggle: 'data-toggle-grid',\n        large: 'data-grid-large',\n        small: 'data-grid-small'\n    };\n    const classes$8 = {\n        active: 'is-active'\n    };\n    const options = {\n        breakpoint: window.theme.sizes.small\n    };\n    var sections$2 = {};\n    let Toggle = class Toggle {\n        init() {\n            this.toggle.addEventListener('click', this.toggleFunction);\n            document.addEventListener('theme:resize:width', this.toggleFunction);\n            this.toggleEvent(false);\n        }\n        unload() {\n            this.toggle.removeEventListener('click', this.toggleFunction);\n            document.removeEventListener('theme:resize:width', this.toggleFunction);\n        }\n        toggleEvent(evt = true) {\n            const clickEvent = evt && evt.type === 'click';\n            const isLarge = window.innerWidth >= options.breakpoint;\n            const selector = isLarge ? selectors$h.large : selectors$h.small;\n            const grid = this.container.querySelector(`[${selector}]`);\n            const gridNumber = grid.getAttribute(selector);\n            const activeToggle = this.toggle.parentElement.querySelector(`[${selectors$h.toggle}].${classes$8.active}`);\n            let currentToggle = this.toggle.parentElement.querySelector(`[${selectors$h.toggle}=\"${gridNumber}\"]`);\n            if (clickEvent) {\n                currentToggle = this.toggle;\n                grid.setAttribute(selector, this.value);\n            }\n            if (activeToggle) {\n                activeToggle.classList.remove(classes$8.active);\n            }\n            if (currentToggle) {\n                currentToggle.classList.add(classes$8.active);\n            }\n        }\n        constructor(toggle, container){\n            this.container = container || document;\n            this.toggle = toggle;\n            this.value = this.toggle.getAttribute(selectors$h.toggle);\n            this.toggleFunction = (evt)=>this.toggleEvent(evt)\n            ;\n            this.init();\n        }\n    };\n    const toggleSection = {\n        onLoad () {\n            sections$2[this.id] = [];\n            const buttons = this.container.querySelectorAll(`[${selectors$h.toggle}]`);\n            buttons.forEach((button)=>{\n                sections$2[this.id].push(new Toggle(button, this.container));\n            });\n        },\n        onUnload: function() {\n            sections$2[this.id].forEach((toggle)=>{\n                if (typeof toggle.unload === 'function') {\n                    toggle.unload();\n                }\n            });\n        }\n    };\n\n    const selectors$g = {\n        sort: 'data-sort-enabled',\n        sortLinks: '[data-sort-link]',\n        sortButtonText: '[data-sort-button-text]',\n        sortValue: 'data-value'\n    };\n    const classes$7 = {\n        active: 'popout-list__item--current'\n    };\n    let Sort = class Sort {\n        init() {\n            this.sortLinks.forEach((link)=>{\n                link.addEventListener('click', (e)=>{\n                    e.preventDefault();\n                    this.sortingResults(e);\n                });\n            });\n        }\n        sortingResults(e) {\n            const link = e.currentTarget;\n            const sort = link.getAttribute(selectors$g.sortValue);\n            const text = link.innerText;\n            this.sortButtonText.innerText = text;\n            this.sortButtonText.parentNode.dispatchEvent(new Event('click'));\n            this.sort.querySelector(`.${classes$7.active}`).classList.remove(classes$7.active);\n            link.parentNode.classList.add(classes$7.active);\n            this.sort.setAttribute(selectors$g.sort, sort);\n            this.container.dispatchEvent(new CustomEvent('theme:form:filter', {\n                bubbles: true,\n                detail: {\n                    params: sort\n                }\n            }));\n        }\n        constructor(section){\n            this.container = section.container;\n            this.sort = this.container.querySelector(`[${selectors$g.sort}]`);\n            this.sortLinks = this.container.querySelectorAll(selectors$g.sortLinks);\n            this.sortButtonText = this.container.querySelector(selectors$g.sortButtonText);\n            if (this.sort) {\n                this.init();\n            }\n        }\n    };\n\n    var selectors$f = {\n        swatch: 'data-swatch'\n    };\n    let Collection = class Collection {\n        init() {\n            new Sort(this.section);\n        }\n        constructor(section){\n            this.section = section;\n            this.container = this.section.container;\n            this.swatches = this.container.querySelectorAll(`[${selectors$f.swatch}]`);\n            this.init();\n        }\n    };\n    const collectionSection = {\n        onLoad () {\n            this.collection = new Collection(this);\n        }\n    };\n    register('collection', [\n        collectionSection,\n        collectionFiltersSidebar,\n        collectionFiltersForm,\n        toggleSection,\n        swatchGridSection,\n        accordion,\n        siblings\n    ]);\n    if (!customElements.get('popout-select')) {\n        customElements.define('popout-select', PopoutSelect);\n    }\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    register('collection-row', [\n        swatchGridSection,\n        siblings,\n        customScrollbar,\n        parallaxImage\n    ]);\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    register('collection-tabs', [\n        tabs$1,\n        productSliderSection,\n        swatchGridSection\n    ]);\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    var styles = {};\n    styles.basic = [];\n    /* eslint-disable */ styles.light = [\n        {\n            featureType: 'administrative',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'on'\n                },\n                {\n                    lightness: '64'\n                },\n                {\n                    hue: '#ff0000'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    color: '#bdbdbd'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#f0f0f0'\n                },\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape.natural.landcover',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape.natural.terrain',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'labels',\n            stylers: [\n                {\n                    lightness: '100'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'on'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    saturation: '-41'\n                },\n                {\n                    color: '#e8ede7'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'all',\n            stylers: [\n                {\n                    saturation: '-100'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'labels',\n            stylers: [\n                {\n                    lightness: '25'\n                },\n                {\n                    gamma: '1.06'\n                },\n                {\n                    saturation: '-100'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    gamma: '10.00'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                },\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    gamma: '10.00'\n                },\n                {\n                    lightness: '100'\n                },\n                {\n                    weight: '0.4'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                },\n                {\n                    weight: '0.01'\n                },\n                {\n                    lightness: '39'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.50'\n                },\n                {\n                    gamma: '10.00'\n                },\n                {\n                    lightness: '100'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#cfe5ee'\n                },\n                {\n                    visibility: 'on'\n                }\n            ]\n        }, \n    ];\n    styles.light_blank = [\n        {\n            featureType: 'all',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                },\n                {\n                    lightness: '64'\n                },\n                {\n                    hue: '#ff0000'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    color: '#bdbdbd'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#f0f0f0'\n                },\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape.natural.landcover',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape.natural.terrain',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'labels',\n            stylers: [\n                {\n                    lightness: '100'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'on'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    saturation: '-41'\n                },\n                {\n                    color: '#e8ede7'\n                }\n            ]\n        },\n        {\n            featureType: 'poi.park',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'all',\n            stylers: [\n                {\n                    saturation: '-100'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'labels',\n            stylers: [\n                {\n                    lightness: '25'\n                },\n                {\n                    gamma: '1.06'\n                },\n                {\n                    saturation: '-100'\n                },\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    gamma: '10.00'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                },\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    gamma: '10.00'\n                },\n                {\n                    lightness: '100'\n                },\n                {\n                    weight: '0.4'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                },\n                {\n                    weight: '0.01'\n                },\n                {\n                    lightness: '39'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.50'\n                },\n                {\n                    gamma: '10.00'\n                },\n                {\n                    lightness: '100'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#cfe5ee'\n                },\n                {\n                    visibility: 'on'\n                }\n            ]\n        }, \n    ];\n    styles.white_blank = [\n        {\n            featureType: 'all',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    color: '#444444'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#f2f2f2'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'all',\n            stylers: [\n                {\n                    saturation: -100\n                },\n                {\n                    lightness: 45\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#e4e4e4'\n                },\n                {\n                    visibility: 'on'\n                }\n            ]\n        }, \n    ];\n    styles.white_label = [\n        {\n            featureType: 'all',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels',\n            stylers: [\n                {\n                    gamma: '3.86'\n                },\n                {\n                    lightness: '100'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    color: '#cccccc'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#f2f2f2'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'all',\n            stylers: [\n                {\n                    saturation: -100\n                },\n                {\n                    lightness: 45\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels.text',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'all',\n            stylers: [\n                {\n                    color: '#e4e4e4'\n                },\n                {\n                    visibility: 'on'\n                }\n            ]\n        }, \n    ];\n    styles.dark_blank = [\n        {\n            featureType: 'all',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    saturation: 36\n                },\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 40\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    visibility: 'on'\n                },\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 16\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 20\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                },\n                {\n                    weight: 1.2\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 20\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 21\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                },\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 29\n                },\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 18\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 16\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 19\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                }\n            ]\n        }, \n    ];\n    styles.dark_label = [\n        {\n            featureType: 'all',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.text.fill',\n            stylers: [\n                {\n                    saturation: 36\n                },\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 40\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    visibility: 'on'\n                },\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 16\n                }\n            ]\n        },\n        {\n            featureType: 'all',\n            elementType: 'labels.icon',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 20\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                },\n                {\n                    weight: 1.2\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                },\n                {\n                    lightness: '-82'\n                }\n            ]\n        },\n        {\n            featureType: 'administrative',\n            elementType: 'labels.text.stroke',\n            stylers: [\n                {\n                    invert_lightness: true\n                },\n                {\n                    weight: '7.15'\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 20\n                }\n            ]\n        },\n        {\n            featureType: 'landscape',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'poi',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 21\n                }\n            ]\n        },\n        {\n            featureType: 'road',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'simplified'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.fill',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                },\n                {\n                    weight: '0.8'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 29\n                },\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.highway',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 18\n                }\n            ]\n        },\n        {\n            featureType: 'road.arterial',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 16\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'geometry.stroke',\n            stylers: [\n                {\n                    weight: '0.01'\n                }\n            ]\n        },\n        {\n            featureType: 'road.local',\n            elementType: 'labels',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'all',\n            stylers: [\n                {\n                    visibility: 'off'\n                }\n            ]\n        },\n        {\n            featureType: 'transit',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 19\n                }\n            ]\n        },\n        {\n            featureType: 'water',\n            elementType: 'geometry',\n            stylers: [\n                {\n                    color: '#000000'\n                },\n                {\n                    lightness: 17\n                }\n            ]\n        }, \n    ];\n    /* eslint-enable */ function mapStyle(key) {\n        return styles[key];\n    }\n\n    window.theme.allMaps = window.theme.allMaps || {};\n    let allMaps = window.theme.allMaps;\n    const selectors$e = {\n        mapContainer: '[data-map-container]',\n        style: 'data-style',\n        apiKey: 'data-api-key',\n        zoom: 'data-zoom',\n        address: 'data-address',\n        latLongCorrection: 'data-latlong-correction',\n        lat: 'data-lat',\n        long: 'data-long'\n    };\n    let Map$1 = class Map {\n        initMaps() {\n            const urlKey = `https://maps.googleapis.com/maps/api/js?key=${this.key}`;\n            loadScript({\n                url: urlKey\n            }).then(()=>{\n                return this.enableCorrection === 'true' && this.lat !== '' && this.long !== '' ? new window.google.maps.LatLng(this.lat, this.long) : geocodeAddressPromise(this.address);\n            }).then((center)=>{\n                var zoom = parseInt(this.zoomString, 10);\n                const styles = mapStyle(this.styleString);\n                var mapOptions = {\n                    zoom,\n                    styles,\n                    center,\n                    draggable: true,\n                    clickableIcons: false,\n                    scrollwheel: false,\n                    zoomControl: false,\n                    disableDefaultUI: true\n                };\n                const map = createMap(this.mapWrap, mapOptions);\n                return map;\n            }).then((map)=>{\n                this.map = map;\n                allMaps[this.id] = map;\n            }).catch((e)=>{\n                console.log('Failed to load Google Map');\n                console.log(e);\n            });\n        }\n        onUnload() {\n            if (typeof window.google !== 'undefined') {\n                window.google.maps.event.clearListeners(this.map, 'resize');\n            }\n        }\n        constructor(section){\n            this.container = section.container;\n            this.mapWrap = this.container.querySelector(selectors$e.mapContainer);\n            this.styleString = this.container.getAttribute(selectors$e.style) || '';\n            this.key = this.container.getAttribute(selectors$e.apiKey);\n            this.zoomString = this.container.getAttribute(selectors$e.zoom) || 14;\n            this.address = this.container.getAttribute(selectors$e.address);\n            this.enableCorrection = this.container.getAttribute(selectors$e.latLongCorrection);\n            this.lat = this.container.getAttribute(selectors$e.lat);\n            this.long = this.container.getAttribute(selectors$e.long);\n            if (this.key) {\n                this.initMaps();\n            }\n        }\n    };\n    function createMap(container, options) {\n        var map = new window.google.maps.Map(container, options);\n        var center = map.getCenter();\n        new window.google.maps.Marker({\n            map: map,\n            position: center\n        });\n        window.google.maps.event.addDomListener(window, 'resize', function() {\n            window.google.maps.event.trigger(map, 'resize');\n            map.setCenter(center);\n        });\n        return map;\n    }\n    function geocodeAddressPromise(address) {\n        return new Promise((resolve, reject)=>{\n            var geocoder = new window.google.maps.Geocoder();\n            geocoder.geocode({\n                address: address\n            }, function(results, status) {\n                if (status == 'OK') {\n                    var latLong = {\n                        lat: results[0].geometry.location.lat(),\n                        lng: results[0].geometry.location.lng()\n                    };\n                    resolve(latLong);\n                } else {\n                    reject(status);\n                }\n            });\n        });\n    }\n    const mapSection = {\n        onLoad () {\n            allMaps[this.id] = new Map$1(this);\n        },\n        onUnload () {\n            if (typeof allMaps[this.id].unload === 'function') {\n                allMaps[this.id].unload();\n            }\n        }\n    };\n    register('section-map', [\n        mapSection,\n        parallaxImage\n    ]);\n\n    register('section-columns', [\n        popupVideoSection,\n        customScrollbar\n    ]);\n\n    const selectors$d = {\n        dataRelatedSectionElem: '[data-related-section]',\n        dataRelatedProduct: '[data-grid-item]',\n        carousel: '[data-carousel]',\n        dataLimit: 'data-limit',\n        dataMinimum: 'data-minimum',\n        dataLargeLayout: 'data-layout-desktop',\n        dataMediumLayout: 'data-layout-tablet',\n        dataSmallLayout: 'data-layout-mobile',\n        recentlyViewed: '[data-recent-wrapper]',\n        recentlyViewedWrapper: '[data-recently-viewed-wrapper]',\n        productId: 'data-product-id'\n    };\n    let Related = class Related {\n        init() {\n            const relatedSection1 = this.container.querySelector(selectors$d.dataRelatedSectionElem);\n            if (!relatedSection1) {\n                return;\n            }\n            const productId = relatedSection1.getAttribute(selectors$d.productId);\n            const limit = relatedSection1.getAttribute(selectors$d.dataLimit);\n            const layoutLarge = relatedSection1.getAttribute(selectors$d.dataLargeLayout);\n            const layoutMedium = relatedSection1.getAttribute(selectors$d.dataMediumLayout);\n            const layoutSmall = relatedSection1.getAttribute(selectors$d.dataSmallLayout);\n            const route = window.theme.routes.product_recommendations_url || '/recommendations/products/';\n            const requestUrl = `${route}?section_id=related&limit=${limit}&product_id=${productId}`;\n            axios.get(requestUrl).then((response)=>{\n                const fresh = document.createElement('div');\n                fresh.innerHTML = response.data;\n                const inner = fresh.querySelector(selectors$d.dataRelatedSectionElem);\n                if (inner.querySelector(selectors$d.dataRelatedProduct)) {\n                    const innerHtml = inner.innerHTML;\n                    relatedSection1.innerHTML = innerHtml;\n                    relatedSection1.querySelector(selectors$d.carousel).style.setProperty('--grid-large-items', layoutLarge);\n                    relatedSection1.querySelector(selectors$d.carousel).style.setProperty('--grid-medium-items', layoutMedium);\n                    relatedSection1.querySelector(selectors$d.carousel).style.setProperty('--grid-small-items', layoutSmall);\n                    relatedSection1.dispatchEvent(new CustomEvent('theme:related-products:added', {\n                        bubbles: true\n                    }));\n                } else {\n                    relatedSection1.dispatchEvent(new CustomEvent('theme:tabs:hide', {\n                        bubbles: true\n                    }));\n                }\n            }).catch(function(error) {\n                console.warn(error);\n            });\n        }\n        recent() {\n            const recentlyViewedHolder = this.container.querySelector(selectors$d.recentlyViewed);\n            const recentlyViewedWrapper = this.container.querySelector(selectors$d.recentlyViewedWrapper);\n            const recentProducts1 = this.container.querySelectorAll(selectors$d.dataRelatedProduct);\n            const minimumNumberProducts = recentlyViewedHolder.hasAttribute(selectors$d.dataMinimum) ? parseInt(recentlyViewedHolder.getAttribute(selectors$d.dataMinimum)) : 4;\n            const checkRecentInRelated = !recentlyViewedWrapper && recentProducts1.length > 0;\n            const checkRecentOutsideRelated = recentlyViewedWrapper && recentProducts1.length >= minimumNumberProducts;\n            if (checkRecentInRelated || checkRecentOutsideRelated) {\n                recentlyViewedHolder.dispatchEvent(new CustomEvent('theme:tabs:check', {\n                    bubbles: true\n                }));\n            }\n        }\n        constructor(section){\n            this.section = section;\n            this.container = section.container;\n            this.init();\n            this.container.addEventListener('theme:recent-products:added', ()=>{\n                this.recent();\n            });\n        }\n    };\n    const relatedSection = {\n        onLoad () {\n            this.section = new Related(this);\n        }\n    };\n    register('related', [\n        relatedSection,\n        tabs$1,\n        recentProducts\n    ]);\n    if (!customElements.get('radio-swatch')) {\n        customElements.define('radio-swatch', RadioSwatch);\n    }\n    if (!customElements.get('product-grid-item')) {\n        customElements.define('product-grid-item', ProductGridItem);\n    }\n    if (!customElements.get('product-grid-item-variant')) {\n        customElements.define('product-grid-item-variant', ProductGridItemVariant);\n    }\n    if (!customElements.get('product-grid-item-image')) {\n        customElements.define('product-grid-item-image', ProductGridItemImage);\n    }\n\n    const selectors$c = {\n        cartNote: '[data-cart-note]'\n    };\n    class CartNotes {\n        initInputs() {\n            this.inputs.forEach((input)=>{\n                input.addEventListener('input', debounce$1((function(e) {\n                    const note = e.target.value.toString() || '';\n                    this.saveNotes(note);\n                }).bind(this), 300));\n            });\n        }\n        saveNotes(newNote) {\n            window.fetch(`${window.theme.routes.cart}/update.js`, {\n                method: 'post',\n                headers: {\n                    'Content-Type': 'application/json'\n                },\n                body: JSON.stringify({\n                    note: newNote\n                })\n            }).catch((e)=>{\n                console.error(e);\n            });\n        }\n        constructor(element){\n            this.inputs = element.querySelectorAll(selectors$c.cartNote);\n            this.initInputs();\n        }\n    }\n\n    const getUrlString = (params, keys = [], isArray = false)=>{\n        const p = Object.keys(params).map((key)=>{\n            let val = params[key];\n            if (Object.prototype.toString.call(val) === '[object Object]' || Array.isArray(val)) {\n                if (Array.isArray(params)) {\n                    keys.push('');\n                } else {\n                    keys.push(key);\n                }\n                return getUrlString(val, keys, Array.isArray(val));\n            } else {\n                let tKey = key;\n                if (keys.length > 0) {\n                    const tKeys = isArray ? keys : [\n                        ...keys,\n                        key\n                    ];\n                    tKey = tKeys.reduce((str, k)=>{\n                        return str === '' ? k : `${str}[${k}]`;\n                    }, '');\n                }\n                if (isArray) {\n                    return `${tKey}[]=${val}`;\n                } else {\n                    return `${tKey}=${val}`;\n                }\n            }\n        }).join('&');\n        keys.pop();\n        return p;\n    };\n\n    const selectors$b = {\n        html: 'html',\n        submitButton: '[data-submit-shipping]',\n        form: '[data-shipping-estimate-form]',\n        template: '[data-response-template]',\n        country: '#estimate_address_country',\n        province: '#estimate_address_province',\n        zip: '#estimate_address_zip',\n        wrapper: '[data-response-wrapper]',\n        defaultData: 'data-default-fullname',\n        lang: 'lang',\n        defaultData: 'data-default'\n    };\n    const classes$6 = {\n        success: 'shipping--success',\n        error: 'errors',\n        disable: 'disabled'\n    };\n    class ShippingCalculator {\n        enableButtons() {\n            this.button.removeAttribute('disabled');\n            this.button.classList.remove(classes$6.disable);\n        }\n        disableButtons() {\n            this.button.setAttribute('disabled', 'disabled');\n            this.button.classList.add(classes$6.disable);\n        }\n        render(rates) {\n            if (this.template && this.ratesWrapper) {\n                const rendered = Sqrl__namespace.render(this.template, rates);\n                this.ratesWrapper.innerHTML = rendered;\n            }\n            this.enableButtons();\n            this.ratesWrapper.style.removeProperty('display');\n        }\n        estimate(shipping_address) {\n            const encodedShippingAddressData = encodeURI(getUrlString({\n                shipping_address: shipping_address\n            }));\n            const url = `${window.theme.routes.cart}/shipping_rates.json?${encodedShippingAddressData}`;\n            const instance = this;\n            axios.get(url).then(function(response) {\n                // handle success\n                const items = instance.sanitize(response);\n                instance.render(items);\n                instance.enableButtons();\n                instance.ratesWrapper.style.removeProperty('display');\n            }).catch(function(error) {\n                // handle errors\n                const errors = instance.sanitizeErrors(error);\n                instance.render(errors);\n            });\n        }\n        sanitize(response) {\n            const sanitized = {};\n            sanitized.class = classes$6.success;\n            sanitized.items = [];\n            if (response.data.shipping_rates && response.data.shipping_rates.length > 0) {\n                const rates = response.data.shipping_rates;\n                rates.forEach((r)=>{\n                    let item = {};\n                    item.title = r.presentment_name;\n                    item.value = themeCurrency.formatMoney(r.price, theme.moneyFormat);\n                    sanitized.items.push(item);\n                });\n            } else {\n                sanitized.items[0] = {\n                    value: theme.strings.noShippingAvailable\n                };\n            }\n            return sanitized;\n        }\n        sanitizeErrors(response) {\n            const errors = {};\n            errors.class = classes$6.error;\n            errors.items = [];\n            if (typeof response.data === 'object') {\n                for (const [key, value] of Object.entries(response.data)){\n                    let item = {};\n                    item.title = key.toString();\n                    item.value = value.toString();\n                    errors.items.push(item);\n                }\n            } else {\n                errors.items[0] = {\n                    value: theme.strings.noShippingAvailable\n                };\n            }\n            return errors;\n        }\n        init() {\n            const htmlEl = document.querySelector(selectors$b.html);\n            let locale = 'en';\n            if (htmlEl.hasAttribute(selectors$b.lang) && htmlEl.getAttribute(selectors$b.lang) !== '') {\n                locale = htmlEl.getAttribute(selectors$b.lang);\n            }\n            if (this.form) {\n                themeAddresses.AddressForm(this.form, locale, {\n                    shippingCountriesOnly: true\n                });\n            }\n            if (this.country && this.country.hasAttribute(selectors$b.defaultData) && this.province && this.province.hasAttribute(selectors$b.defaultData)) {\n                this.country.addEventListener('change', function() {\n                    this.country.removeAttribute(selectors$b.defaultData);\n                    this.province.removeAttribute(selectors$b.defaultData);\n                });\n            }\n            if (this.button) {\n                this.button.addEventListener('click', (function(e) {\n                    e.preventDefault();\n                    this.disableButtons();\n                    while(this.ratesWrapper.firstChild)this.ratesWrapper.removeChild(this.ratesWrapper.firstChild);\n                    this.ratesWrapper.style.display = 'none';\n                    const shippingAddress = {};\n                    let elemCountryVal = this.country.value;\n                    let elemProvinceVal = this.province.value;\n                    const elemCountryData = this.country.getAttribute(selectors$b.defaultData);\n                    if (elemCountryVal === '' && elemCountryData && elemCountryData !== '') {\n                        elemCountryVal = elemCountryData;\n                    }\n                    const elemProvinceData = this.province.getAttribute(selectors$b.defaultData);\n                    if (elemProvinceVal === '' && elemProvinceData && elemProvinceData !== '') {\n                        elemProvinceVal = elemProvinceData;\n                    }\n                    shippingAddress.zip = this.zip.value || '';\n                    shippingAddress.country = elemCountryVal || '';\n                    shippingAddress.province = elemProvinceVal || '';\n                    this.estimate(shippingAddress);\n                }).bind(this));\n            }\n        }\n        constructor(section){\n            this.button = section.container.querySelector(selectors$b.submitButton);\n            this.template = section.container.querySelector(selectors$b.template).innerHTML;\n            this.ratesWrapper = section.container.querySelector(selectors$b.wrapper);\n            this.form = section.container.querySelector(selectors$b.form);\n            this.country = section.container.querySelector(selectors$b.country);\n            this.province = section.container.querySelector(selectors$b.province);\n            this.zip = section.container.querySelector(selectors$b.zip);\n            this.init();\n        }\n    }\n\n    const selectors$a = {\n        cartMessage: '[data-cart-message]',\n        cartMessageValue: 'data-cart-message',\n        leftToSpend: '[data-left-to-spend]',\n        cartProgress: '[data-cart-progress]',\n        limit: 'data-limit',\n        percent: 'data-percent'\n    };\n    const classes$5 = {\n        isHidden: 'is-hidden',\n        isSuccess: 'is-success'\n    };\n    let CartShippingMessage = class CartShippingMessage {\n        init() {\n            this.cartFreeLimitShipping = Number(this.cartMessage[0].getAttribute(selectors$a.limit)) * 100 * this.rate;\n            this.shippingAmount = 0;\n            this.circumference = 28 * Math.PI; // radius - stroke * 4 * PI\n            this.exchangeRateConversions(this.cartFreeLimitShipping, this.shippingAmount);\n            this.cartBarProgress();\n            this.listen();\n        }\n        listen() {\n            document.addEventListener('theme:cart:change', (function(event) {\n                this.cart = event.detail.cart;\n                this.render();\n            }).bind(this));\n        }\n        render() {\n            const totalPrice = this.cart.total_price;\n            this.freeShippingMessageHandle(totalPrice);\n            if (this.cart && this.cart.total_price) {\n                // Build cart again if the quantity of the changed product is 0 or cart discounts are changed\n                if (this.cartMessage.length > 0) {\n                    this.shippingAmount = totalPrice;\n                    this.updateProgress();\n                }\n            }\n        }\n        freeShippingMessageHandle(total) {\n            if (this.cartMessage.length > 0) {\n                this.container.querySelectorAll(selectors$a.cartMessage).forEach((message)=>{\n                    const hasFreeShipping = message.hasAttribute(selectors$a.cartMessageValue) && message.getAttribute(selectors$a.cartMessageValue) === 'true' && total >= this.cartFreeLimitShipping && total !== 0;\n                    message.classList.toggle(classes$5.isSuccess, hasFreeShipping);\n                });\n            }\n        }\n        cartBarProgress(progress = null) {\n            this.container.querySelectorAll(selectors$a.cartProgress).forEach((element)=>{\n                this.setProgress(element, progress === null ? element.getAttribute(selectors$a.percent) : progress);\n            });\n        }\n        setProgress(holder, percent) {\n            const offset = this.circumference - percent / 100 * this.circumference / 2;\n            holder.style.strokeDashoffset = offset;\n        }\n        updateProgress() {\n            const newPercentValue = this.shippingAmount / this.cartFreeLimitShipping * 100;\n            this.exchangeRateConversions(this.cartFreeLimitShipping, this.shippingAmount);\n            this.cartBarProgress(newPercentValue > 100 ? 100 : newPercentValue);\n        }\n        exchangeRateConversions(cartFreeLimitShipping, shippingAmount) {\n            const leftToSpend = theme.settings.currency_code_enable ? themeCurrency.formatMoney(cartFreeLimitShipping - shippingAmount, theme.moneyFormat) + ` ${theme.currencyCode}` : themeCurrency.formatMoney(cartFreeLimitShipping - shippingAmount, theme.moneyFormat);\n            this.container.querySelectorAll(selectors$a.leftToSpend).forEach((element)=>{\n                element.innerHTML = leftToSpend.replace('.00', '');\n            });\n        }\n        constructor(section){\n            this.container = section;\n            this.cartMessage = this.container.querySelectorAll(selectors$a.cartMessage);\n            this.rate = window.Shopify.currency.rate;\n            if (this.cartMessage.length > 0) {\n                this.init();\n            }\n        }\n    };\n\n    const selectors$9 = {\n        wrapper: '[data-quantity-selector]',\n        increase: '[data-increase-quantity]',\n        decrease: '[data-decrease-quantity]',\n        input: '[data-quantity-input]'\n    };\n    let Quantity = class Quantity {\n        initButtons() {\n            this.increase.addEventListener('click', (function(e) {\n                e.preventDefault();\n                let v = parseInt(this.input.value, 10);\n                v = isNaN(v) ? 0 : v;\n                v++;\n                this.input.value = v;\n                this.input.dispatchEvent(new Event('change'));\n            }).bind(this));\n            this.decrease.addEventListener('click', (function(e) {\n                e.preventDefault();\n                let v = parseInt(this.input.value, 10);\n                v = isNaN(v) ? 0 : v;\n                v--;\n                v = Math.max(this.min, v);\n                this.input.value = v;\n                this.input.dispatchEvent(new Event('change'));\n            }).bind(this));\n        }\n        constructor(wrapper){\n            this.wrapper = wrapper;\n            this.increase = this.wrapper.querySelector(selectors$9.increase);\n            this.decrease = this.wrapper.querySelector(selectors$9.decrease);\n            this.input = this.wrapper.querySelector(selectors$9.input);\n            this.min = parseInt(this.input.getAttribute('min'), 10);\n            this.initButtons();\n        }\n    };\n    function initQtySection(container) {\n        const quantityWrappers = container.querySelectorAll(selectors$9.wrapper);\n        quantityWrappers.forEach((qty)=>{\n            new Quantity(qty);\n        });\n    }\n\n    const selectors$8 = {\n        drawer: '[data-drawer=\"drawer-cart\"]',\n        shipping: '[data-shipping-estimate-form]',\n        loader: '[data-cart-loading]',\n        form: '[data-cart-form]',\n        emptystate: '[data-cart-empty]',\n        progress: '[data-cart-progress]',\n        items: '[data-line-items]',\n        subtotal: '[data-cart-subtotal]',\n        bottom: '[data-cart-bottom]',\n        quantity: '[data-quantity-selector]',\n        errors: '[data-form-errors]',\n        item: '[data-cart-item]',\n        finalPrice: '[data-cart-final]',\n        key: 'data-update-cart',\n        remove: 'data-remove-key',\n        pageUpsellWrapper: '[data-cart-page-upsell-wrapper]',\n        cartPage: '[data-section-type=\"cart\"]',\n        bar: '[data-cart-bar]',\n        ship: '[data-cart-message]',\n        itemLoadbar: '[data-item-loadbar]',\n        cartMessageContainer: '[data-cart-message-container]',\n        apiContent: '[data-api-content]'\n    };\n    const classes$4 = {\n        hidden: 'cart--hidden',\n        loading: 'cart--loading'\n    };\n    let CartItems = class CartItems {\n        listen() {\n            document.addEventListener('theme:cart:change', (function(event) {\n                this.cart = event.detail.cart;\n                this.stale = true;\n            }).bind(this));\n            document.addEventListener('theme:cart:init', (function() {\n                this.init();\n            }).bind(this));\n            document.addEventListener('theme:cart:reload', (function() {\n                this.stale = true;\n                if (this.cart) {\n                    this.loadHTML();\n                } else {\n                    this.init().then(()=>this.loadHTML()\n                    );\n                }\n            }).bind(this));\n            if (this.drawer) {\n                this.drawer.addEventListener('theme:drawer:open', (function() {\n                    if (this.cart) {\n                        this.loadHTML();\n                    } else {\n                        this.init().then(()=>this.loadHTML()\n                        );\n                    }\n                    // tell the add to cart whether to open a popdown\n                    window.theme.state.cartOpen = true;\n                }).bind(this));\n                this.drawer.addEventListener('theme:drawer:close', function() {\n                    window.theme.state.cartOpen = false;\n                });\n            }\n            new CartNotes(this.container);\n            new CartShippingMessage(this.container);\n        }\n        init() {\n            return window.fetch(`${window.theme.routes.cart}.js`).then(this.handleErrors).then((response)=>{\n                return response.json();\n            }).then((response)=>{\n                this.cart = response;\n                this.fireChange(response);\n                return response;\n            }).catch((e)=>{\n                console.error(e);\n            });\n        }\n        loadHTML(plain = false) {\n            if (this.stale) {\n                if (this.cart && this.cart.item_count > 0) {\n                    this.loadForm(plain);\n                } else {\n                    this.showEmpty();\n                    this.cartMessages.forEach((message)=>{\n                        new CartShippingMessage(message);\n                    });\n                }\n            }\n            this.stale = false;\n        }\n        initInputs() {\n            this.inputs = this.container.querySelectorAll(`[${selectors$8.key}]`);\n            this.inputs.forEach((input)=>{\n                const key = input.getAttribute(selectors$8.key);\n                input.addEventListener('change', (function(e) {\n                    const quantity = parseInt(e.target.value, 10);\n                    this.latestClick = e.target.closest(selectors$8.item);\n                    this.lockState();\n                    this.updateCart(key, quantity);\n                }).bind(this));\n            });\n        }\n        initRemove() {\n            this.removers = this.container.querySelectorAll(`[${selectors$8.remove}]`);\n            this.removers.forEach((remover)=>{\n                const key = remover.getAttribute(selectors$8.remove);\n                remover.addEventListener('click', (function(e) {\n                    e.preventDefault();\n                    this.latestClick = e.target.closest(selectors$8.item);\n                    this.lockState();\n                    this.updateCart(key, 0);\n                }).bind(this));\n            });\n        }\n        lockState() {\n            this.latestClick.querySelector(selectors$8.itemLoadbar).style.display = 'block';\n            this.loader.classList.add(classes$4.loading);\n        }\n        updateCart(clickedKey, newQuantity) {\n            window.fetch(`${window.theme.routes.cart}/change.js`, {\n                method: 'post',\n                headers: {\n                    'Content-Type': 'application/json'\n                },\n                body: JSON.stringify({\n                    id: clickedKey,\n                    quantity: newQuantity\n                })\n            }).then(this.handleErrors).then((response)=>{\n                return response.json();\n            }).then((response)=>{\n                this.cart = response;\n                slideUp(this.errors);\n                this.fireChange(response);\n                this.stale = true;\n                this.loadHTML();\n            }).catch((e)=>{\n                if (e instanceof FetchError) {\n                    var ref, ref1;\n                    let defaultMessage = window.theme.strings.stockout || 'Could not update cart, please reload';\n                    let messageText = ((ref = e.json) === null || ref === void 0 ? void 0 : ref.message) || e.message || defaultMessage;\n                    let descriptionText = ((ref1 = e.json) === null || ref1 === void 0 ? void 0 : ref1.description) || '';\n                    // Low stock erros have the same text content for heading and description\n                    let contentToShow = messageText === descriptionText ? `<p>${messageText}</p>` : `<p>${messageText}</p> <p>${descriptionText}</p>`;\n                    this.showError(contentToShow);\n                    this.loadForm(); // Reset form for cases like \"stockout\"\n                } else {\n                    let error = `<p>${e.message || defaultMessage}</p>`;\n                    this.showError(error);\n                    throw e;\n                }\n            });\n        }\n        fireChange(newCart) {\n            document.dispatchEvent(new CustomEvent('theme:cart:change', {\n                detail: {\n                    cart: newCart\n                },\n                bubbles: true\n            }));\n        }\n        updateTotal() {\n            if (this.cart && this.cart.total_price != undefined) {\n                const price = themeCurrency.formatMoney(this.cart.total_price, theme.moneyFormat);\n                this.finalPrice.innerHTML = price + ` ${theme.currencyCode}`;\n            }\n            if (this.subtotal && this.cart) {\n                window.fetch(`${window.theme.routes.root_url}?section_id=api-cart-subtotal`).then(this.handleErrors).then((response)=>{\n                    return response.text();\n                }).then((response)=>{\n                    const fresh = document.createElement('div');\n                    fresh.innerHTML = response;\n                    this.subtotal.innerHTML = fresh.querySelector(selectors$8.apiContent).innerHTML;\n                });\n            }\n        }\n        showError(message) {\n            slideUp(this.errors);\n            this.errors.innerHTML = message;\n            window.setTimeout(()=>{\n                slideDown(this.errors);\n            }, 600);\n        }\n        loadForm(plain = false) {\n            if (plain) {\n                this.showForm();\n                this.initQuantity();\n                this.initQuickview();\n                this.updateTotal();\n                return;\n            }\n            window.fetch(`${window.theme.routes.root_url}?section_id=api-cart-items`).then(this.handleErrors).then((response)=>{\n                return response.text();\n            }).then((response)=>{\n                const fresh = document.createElement('div');\n                fresh.innerHTML = response;\n                this.items.innerHTML = fresh.querySelector(selectors$8.apiContent).innerHTML;\n                this.showForm();\n                this.initQuantity();\n                this.initQuickview();\n                this.updateTotal();\n            });\n        }\n        initQuickview() {\n            const pageUpsellWrapper = this.items.querySelector(selectors$8.pageUpsellWrapper);\n            const oldPageUpsellWrapper = this.bottom.querySelector(selectors$8.pageUpsellWrapper);\n            if (oldPageUpsellWrapper) {\n                oldPageUpsellWrapper.remove();\n            }\n            // Move the upsell to the bottom of the cart beside the checkout button\n            if (this.cartPage && pageUpsellWrapper) {\n                this.bottom.insertBefore(pageUpsellWrapper, this.bottom.firstChild);\n                Alpine.initTree(this.bottom); // Neccesary since we're moving the element around and Alpine isn't able to keep track of tha\n            }\n        }\n        initQuantity() {\n            initQtySection(this.container);\n            this.initInputs();\n            this.initRemove();\n        }\n        showForm() {\n            if (this.bar) {\n                this.bar.classList.remove(classes$4.hidden);\n            }\n            if (this.ship) {\n                this.ship.classList.remove(classes$4.hidden);\n            }\n            if (this.progress) {\n                this.progress.classList.remove(classes$4.hidden);\n            }\n            this.form.classList.remove(classes$4.hidden);\n            this.bottom.classList.remove(classes$4.hidden);\n            this.loader.classList.remove(classes$4.loading);\n            this.emptystate.classList.add(classes$4.hidden);\n        }\n        showEmpty() {\n            if (this.bar) {\n                this.bar.classList.add(classes$4.hidden);\n            }\n            if (this.ship) {\n                this.ship.classList.add(classes$4.hidden);\n            }\n            if (this.progress) {\n                this.progress.classList.add(classes$4.hidden);\n            }\n            this.emptystate.classList.remove(classes$4.hidden);\n            this.loader.classList.remove(classes$4.loading);\n            this.form.classList.add(classes$4.hidden);\n            this.bottom.classList.add(classes$4.hidden);\n        }\n        handleErrors(response) {\n            if (!response.ok) {\n                return response.json().then(function(json) {\n                    const e = new FetchError({\n                        status: response.statusText,\n                        headers: response.headers,\n                        json: json\n                    });\n                    throw e;\n                });\n            }\n            return response;\n        }\n        constructor(section){\n            this.section = section;\n            this.container = section.container;\n            this.cartMessages = document.querySelectorAll(selectors$8.cartMessageContainer);\n            this.bar = this.container.querySelector(selectors$8.bar);\n            this.ship = this.container.querySelector(selectors$8.ship);\n            this.drawer = this.container.querySelector(selectors$8.drawer);\n            this.form = this.container.querySelector(selectors$8.form);\n            this.loader = this.container.querySelector(selectors$8.loader);\n            this.bottom = this.container.querySelector(selectors$8.bottom);\n            this.items = this.container.querySelector(selectors$8.items);\n            this.subtotal = this.container.querySelector(selectors$8.subtotal);\n            this.errors = this.container.querySelector(selectors$8.errors);\n            this.finalPrice = this.container.querySelector(selectors$8.finalPrice);\n            this.emptystate = this.container.querySelector(selectors$8.emptystate);\n            this.progress = this.container.querySelector(selectors$8.progress);\n            this.latestClick = null;\n            this.cart = null;\n            this.stale = true;\n            this.cartPage = document.querySelector(selectors$8.cartPage);\n            this.listen();\n        }\n    };\n    const cartDrawer = {\n        onLoad () {\n            const isDrawerCart = document.querySelector(selectors$8.drawer);\n            if (isDrawerCart) {\n                this.cart = new CartItems(this);\n            }\n            const hasShipping = this.container.querySelector(selectors$8.shipping);\n            if (hasShipping) {\n                new ShippingCalculator(this);\n            }\n        },\n        onUnload: function() {\n            if (this.cart && typeof this.cart.unload === 'function') {\n                this.cart.unload();\n            }\n        }\n    };\n\n    const selectors$7 = {\n        ajaxDisable: 'data-ajax-disable',\n        shipping: '[data-shipping-estimate-form]',\n        input: '[data-update-cart]',\n        update: '[data-update-button]',\n        bottom: '[data-cart-bottom]',\n        upsellWrapper: '[data-cart-page-upsell-wrapper]'\n    };\n    const classes$3 = {\n        dirty: 'cart--dirty',\n        heartBeat: 'heart-beat'\n    };\n    const cartSection = {\n        onLoad () {\n            const hasShipping = this.container.querySelector(selectors$7.shipping);\n            if (hasShipping) {\n                new ShippingCalculator(this);\n            }\n            this.disabled = this.container.getAttribute(selectors$7.ajaxDisable) == 'true';\n            if (this.disabled) {\n                this.cart = new AjaxDisabledCart(this);\n                return;\n            }\n            this.cart = new CartItems(this);\n            const initPromise = this.cart.init();\n            initPromise.then(()=>{\n                this.cart.loadHTML(true);\n            });\n        }\n    };\n    let AjaxDisabledCart = class AjaxDisabledCart {\n        initQuantity() {\n            initQtySection(this.container);\n        }\n        moveUpsell() {\n            const bottom = this.container.querySelector(selectors$7.bottom);\n            bottom.insertBefore(this.upsellWrapper, bottom.firstChild);\n        }\n        initInputs() {\n            this.inputs.forEach((input)=>{\n                input.addEventListener('change', (function() {\n                    this.updateBtn.classList.add(classes$3.dirty);\n                    this.updateBtn.classList.add(classes$3.heartBeat);\n                    setTimeout((function() {\n                        this.updateBtn.classList.remove(classes$3.heartBeat);\n                    }).bind(this), 1300);\n                }).bind(this));\n            });\n        }\n        constructor(section){\n            window.theme.state.cartOpen = true;\n            this.section = section;\n            this.container = section.container;\n            this.inputs = this.container.querySelectorAll(selectors$7.input);\n            this.quantityWrappers = this.container.querySelectorAll(selectors$7.qty);\n            this.updateBtn = this.container.querySelector(selectors$7.update);\n            this.upsellWrapper = this.container.querySelector(selectors$7.upsellWrapper);\n            this.initQuantity();\n            this.initInputs();\n            if (this.upsellWrapper) {\n                this.moveUpsell();\n            }\n            document.addEventListener('theme:cart:reload', (function() {\n                window.location.reload();\n            }).bind(this));\n        }\n    };\n    register('cart', [\n        cartSection,\n        accordion\n    ]);\n\n    register('cart-drawer', [\n        drawer,\n        cartDrawer,\n        accordion\n    ]);\n\n    register('accordion-single', accordion);\n\n    const fadeIn = (el, display, callback = null)=>{\n        el.style.opacity = 0;\n        el.style.display = 'block';\n        (function fade() {\n            let val = parseFloat(el.style.opacity);\n            if (!((val += 0.1) > 1)) {\n                el.style.opacity = val;\n                requestAnimationFrame(fade);\n            }\n            if (val === 1 && typeof callback === 'function') {\n                callback();\n            }\n        })();\n    };\n\n    const fadeOut = (el, callback = null)=>{\n        el.style.opacity = 1;\n        (function fade() {\n            if ((el.style.opacity -= 0.1) < 0) {\n                el.style.display = 'none';\n            } else {\n                requestAnimationFrame(fade);\n            }\n            if (parseFloat(el.style.opacity) === 0 && typeof callback === 'function') {\n                callback();\n            }\n        })();\n    };\n\n    const selectors$6 = {\n        tracking: '[data-tracking-consent]',\n        trackingAccept: '[data-confirm-cookies]',\n        close: '[data-close-modal]',\n        popupInner: '[data-popup-inner]',\n        newsletterPopup: '[data-newsletter]',\n        newsletterPopupHolder: '[data-newsletter-holder]',\n        newsletterField: '[data-newsletter-field]',\n        newsletterForm: '[data-newsletter-form]',\n        promoPopup: '[data-promo-text]',\n        delayAttribite: 'data-popup-delay',\n        cookieNameAttribute: 'data-cookie-name',\n        dataTargetReferrer: 'data-target-referrer'\n    };\n    const classes$2 = {\n        hide: 'hide',\n        hasValue: 'has-value',\n        success: 'has-success',\n        error: 'has-error',\n        desktop: 'desktop',\n        mobile: 'mobile'\n    };\n    let sections$1 = {};\n    let PopupCookie = class PopupCookie {\n        write() {\n            const hasCookie = document.cookie.indexOf('; ') !== -1 && !document.cookie.split('; ').find((row)=>row.startsWith(this.name)\n            );\n            if (hasCookie || document.cookie.indexOf('; ') === -1) {\n                document.cookie = `${this.name}=${this.value}; expires=${this.configuration.expires}; path=${this.configuration.path}; domain=${this.configuration.domain}`;\n            }\n        }\n        read() {\n            if (document.cookie.indexOf('; ') !== -1 && document.cookie.split('; ').find((row)=>row.startsWith(this.name)\n            )) {\n                const returnCookie = document.cookie.split('; ').find((row)=>row.startsWith(this.name)\n                ).split('=')[1];\n                return returnCookie;\n            } else return false;\n        }\n        destroy() {\n            if (document.cookie.split('; ').find((row)=>row.startsWith(this.name)\n            )) {\n                document.cookie = `${this.name}=null; expires=${this.configuration.expires}; path=${this.configuration.path}; domain=${this.configuration.domain}`;\n            }\n        }\n        constructor(name, value){\n            this.configuration = {\n                expires: null,\n                path: '/',\n                domain: window.location.hostname\n            };\n            this.name = name;\n            this.value = value;\n        }\n    };\n    let DelayShow = class DelayShow {\n        hide() {\n            this.show = false;\n        }\n        always() {\n            if (this.show) {\n                fadeIn(this.element);\n            }\n        }\n        delayed() {\n            // Show popup after 10s\n            setTimeout(()=>{\n                this.always();\n            }, 10000);\n        }\n        // Scroll to the bottom of the page\n        bottom() {\n            let raf;\n            const onScroll = ()=>{\n                if (raf) {\n                    window.cancelAnimationFrame(raf);\n                }\n                raf = window.requestAnimationFrame(()=>{\n                    window.requestIdleCallback(()=>{\n                        if (Math.round(window.scrollY + window.innerHeight) >= Math.round(document.body.clientHeight)) {\n                            this.always();\n                            window.removeEventListener('scroll', onScroll, {\n                                passive: true\n                            });\n                        }\n                    }, {\n                        timeout: 300\n                    });\n                });\n            };\n            window.addEventListener('scroll', onScroll, {\n                passive: true\n            });\n        }\n        onScroll() {}\n        // Idle for 1 min\n        idle() {\n            let timer = 0;\n            let idleTime = 60000;\n            const documentEvents = [\n                'mousemove',\n                'mousedown',\n                'click',\n                'touchmove',\n                'touchstart',\n                'touchend',\n                'keydown',\n                'keypress'\n            ];\n            const windowEvents = [\n                'load',\n                'resize',\n                'scroll'\n            ];\n            const startTimer = ()=>{\n                timer = setTimeout(()=>{\n                    timer = 0;\n                    this.always();\n                }, idleTime);\n                documentEvents.forEach((eventType)=>{\n                    document.addEventListener(eventType, resetTimer);\n                });\n                windowEvents.forEach((eventType)=>{\n                    window.addEventListener(eventType, resetTimer);\n                });\n            };\n            const resetTimer = ()=>{\n                if (timer) {\n                    clearTimeout(timer);\n                }\n                documentEvents.forEach((eventType)=>{\n                    document.removeEventListener(eventType, resetTimer);\n                });\n                windowEvents.forEach((eventType)=>{\n                    window.removeEventListener(eventType, resetTimer);\n                });\n                startTimer();\n            };\n            startTimer();\n        }\n        constructor(holder, element){\n            this.show = true;\n            this.element = element;\n            this.delay = holder.getAttribute(selectors$6.delayAttribite);\n            if (this.delay === 'always') {\n                this.always();\n            }\n            if (this.delay === 'delayed') {\n                this.delayed();\n            }\n            if (this.delay === 'bottom') {\n                this.bottom();\n            }\n            if (this.delay === 'idle') {\n                this.idle();\n            }\n        }\n    };\n    let TargetReferrer = class TargetReferrer {\n        init() {\n            if (this.locationPath.indexOf(this.el.getAttribute(selectors$6.dataTargetReferrer)) === -1 && !window.Shopify.designMode) {\n                this.el.parentNode.removeChild(this.el);\n            }\n        }\n        constructor(el){\n            this.el = el;\n            this.locationPath = location.href;\n            if (!this.el.hasAttribute(selectors$6.dataTargetReferrer)) {\n                return;\n            }\n            this.init();\n        }\n    };\n    let Tracking = class Tracking {\n        init() {\n            if (this.showPopup) {\n                fadeIn(this.modalInner);\n            }\n            this.clickEvents();\n        }\n        clickEvents() {\n            this.close.addEventListener('click', (event)=>{\n                event.preventDefault();\n                window.Shopify.customerPrivacy.setTrackingConsent(false, ()=>fadeOut(this.modalInner)\n                );\n            });\n            this.acceptButton.addEventListener('click', (event)=>{\n                event.preventDefault();\n                window.Shopify.customerPrivacy.setTrackingConsent(true, ()=>fadeOut(this.modalInner)\n                );\n            });\n            document.addEventListener('trackingConsentAccepted', function() {\n                console.log('trackingConsentAccepted event fired');\n            });\n        }\n        onBlockSelect(evt) {\n            if (this.popup.contains(evt.target) && this.showPopup) {\n                fadeIn(this.modalInner);\n            }\n        }\n        onBlockDeselect(evt) {\n            if (this.popup.contains(evt.target)) {\n                fadeOut(this.modalInner);\n            }\n        }\n        constructor(el){\n            this.popup = el;\n            this.modal = document.querySelector(selectors$6.tracking);\n            this.modalInner = this.popup.querySelector(selectors$6.popupInner);\n            this.close = this.modal.querySelector(selectors$6.close);\n            this.acceptButton = this.modal.querySelector(selectors$6.trackingAccept);\n            this.enable = this.modal.getAttribute('data-enable') === 'true';\n            this.showPopup = false;\n            window.Shopify.loadFeatures([\n                {\n                    name: 'consent-tracking-api',\n                    version: '0.1'\n                }, \n            ], (error)=>{\n                if (error) {\n                    throw error;\n                }\n                const userCanBeTracked = window.Shopify.customerPrivacy.userCanBeTracked();\n                const userTrackingConsent = window.Shopify.customerPrivacy.getTrackingConsent();\n                this.showPopup = !userCanBeTracked && userTrackingConsent === 'no_interaction' && this.enable;\n                if (window.Shopify.designMode) {\n                    this.showPopup = true;\n                }\n                this.init();\n            });\n        }\n    };\n    let PromoText = class PromoText {\n        init() {\n            const cookieExists = this.cookie.read() !== false;\n            if (!cookieExists || window.Shopify.designMode) {\n                if (!window.Shopify.designMode) {\n                    new DelayShow(this.popup, this.popupInner);\n                } else {\n                    fadeIn(this.popupInner);\n                }\n                this.clickEvents();\n            }\n        }\n        clickEvents() {\n            this.close.addEventListener('click', (event)=>{\n                event.preventDefault();\n                fadeOut(this.popupInner);\n                this.cookie.write();\n            });\n        }\n        onBlockSelect(evt) {\n            if (this.popup.classList.contains(classes$2.mobile)) {\n                this.hasDeviceClass = classes$2.mobile;\n            }\n            if (this.popup.classList.contains(classes$2.desktop)) {\n                this.hasDeviceClass = classes$2.desktop;\n            }\n            if (this.hasDeviceClass !== '') {\n                this.popup.classList.remove(this.hasDeviceClass);\n            }\n            if (this.popup.contains(evt.target)) {\n                fadeIn(this.popupInner);\n            }\n        }\n        onBlockDeselect(evt) {\n            if (this.popup.contains(evt.target)) {\n                fadeOut(this.popupInner);\n            }\n            if (this.hasDeviceClass !== '') {\n                this.popup.classList.add(this.hasDeviceClass);\n            }\n        }\n        constructor(el){\n            this.popup = el;\n            this.popupInner = this.popup.querySelector(selectors$6.popupInner);\n            this.close = this.popup.querySelector(selectors$6.close);\n            this.cookie = new PopupCookie(this.popup.getAttribute(selectors$6.cookieNameAttribute), 'user_has_closed');\n            this.isTargeted = new TargetReferrer(this.popup);\n            this.hasDeviceClass = '';\n            this.init();\n        }\n    };\n    let NewsletterPopup = class NewsletterPopup {\n        init() {\n            const cookieExists = this.cookie.read() !== false;\n            if (!cookieExists || window.Shopify.designMode) {\n                this.show();\n                this.checkForSuccess();\n            }\n        }\n        show() {\n            if (!window.Shopify.designMode) {\n                this.delayShow = new DelayShow(this.popup, this.popupInner);\n            } else {\n                fadeIn(this.popupInner);\n            }\n            this.inputField();\n            this.closePopup();\n        }\n        preventDelayShow() {\n            //prevent delay show from showing the popup after close\n            if (this.delayShow) {\n                this.delayShow.hide();\n            }\n        }\n        checkForSuccess() {\n            //check for success or error message to show the form without delay\n            const hasError = this.form.classList.contains(classes$2.error);\n            const hasSuccess = this.form.classList.contains(classes$2.success);\n            if (hasSuccess || hasError) {\n                fadeIn(this.popupInner);\n                this.preventDelayShow();\n                //write cookie if has success\n                if (hasSuccess) {\n                    this.cookie.write();\n                }\n            }\n        }\n        closePopup() {\n            this.close.addEventListener('click', (event)=>{\n                event.preventDefault();\n                fadeOut(this.popupInner);\n                this.cookie.write();\n                this.preventDelayShow();\n            });\n        }\n        inputField() {\n            this.newsletterField.addEventListener('input', ()=>{\n                if (this.newsletterField.value !== '') {\n                    this.holder.classList.add(classes$2.hasValue, this.newsletterField.value !== '');\n                }\n            });\n            this.newsletterField.addEventListener('focus', ()=>{\n                if (this.newsletterField.value !== '') {\n                    this.holder.classList.add(classes$2.hasValue, this.newsletterField.value !== '');\n                }\n            });\n            this.newsletterField.addEventListener('focusout', ()=>{\n                setTimeout(()=>{\n                    this.holder.classList.remove(classes$2.hasValue);\n                }, 2000);\n            });\n        }\n        onBlockSelect(evt) {\n            if (this.popup.contains(evt.target)) {\n                fadeIn(this.popupInner);\n            }\n        }\n        onBlockDeselect(evt) {\n            if (this.popup.contains(evt.target)) {\n                fadeOut(this.popupInner);\n            }\n        }\n        constructor(el){\n            this.popup = el;\n            this.popupInner = this.popup.querySelector(selectors$6.popupInner);\n            this.holder = this.popup.querySelector(selectors$6.newsletterPopupHolder);\n            this.close = this.popup.querySelector(selectors$6.close);\n            this.newsletterField = this.popup.querySelector(selectors$6.newsletterField);\n            this.cookie = new PopupCookie(this.popup.getAttribute(selectors$6.cookieNameAttribute), 'newsletter_is_closed');\n            this.form = this.popup.querySelector(selectors$6.newsletterForm);\n            this.isTargeted = new TargetReferrer(this.popup);\n            this.delayShow = null;\n            this.init();\n        }\n    };\n    const popupSection = {\n        onLoad () {\n            sections$1[this.id] = [];\n            const tracking = this.container.querySelectorAll(selectors$6.tracking);\n            tracking.forEach((el)=>{\n                sections$1[this.id].push(new Tracking(el));\n            });\n            const newsletterPopup = this.container.querySelectorAll(selectors$6.newsletterPopup);\n            newsletterPopup.forEach((el)=>{\n                sections$1[this.id].push(new NewsletterPopup(el));\n            });\n            const promoPopup = this.container.querySelectorAll(selectors$6.promoPopup);\n            promoPopup.forEach((el)=>{\n                sections$1[this.id].push(new PromoText(el));\n            });\n        },\n        onBlockSelect (evt) {\n            sections$1[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(evt);\n                }\n            });\n        },\n        onBlockDeselect (evt) {\n            sections$1[this.id].forEach((el)=>{\n                if (typeof el.onBlockDeselect === 'function') {\n                    el.onBlockDeselect(evt);\n                }\n            });\n        }\n    };\n    register('popups', [\n        newsletterCheckForResultSection,\n        popupSection\n    ]);\n\n    const selectors$5 = {\n        dot: 'data-look-dot',\n        productsHolder: 'data-products-holder',\n        slider: '[data-carousel]',\n        buttonClose: '[data-button-close-holder]',\n        slideIndex: 'data-carousel-index',\n        blockId: 'data-block-id',\n        focusable: 'button'\n    };\n    const classes$1 = {\n        active: 'is-active',\n        expand: 'is-expanded'\n    };\n    const sections = {};\n    let Look = class Look {\n        init() {\n            this.keyEvents = (e)=>this.keyboardEventShowProductHolder(e)\n            ;\n            this.keyCloseEvent = (e)=>this.hideProductsHolder(e)\n            ;\n            this.clickEventsDot = (e)=>this.clickEventShowProductsHolder(e)\n            ;\n            this.clickEventToClose = (e)=>this.clickEventCloseProductsHolder(e)\n            ;\n            this.toggleOnResize = (e)=>debounce$1(this.onResize(e), 200)\n            ;\n            this.initSlider();\n            this.addEvents();\n        }\n        /**\n       * Init slider and add event for select slide\n       */ initSlider() {\n            if (!this.slider) {\n                return;\n            }\n            this.carousel = Flickity.data(this.slider);\n            this.carousel.options.wrapAround = true;\n            this.carousel.options.freeScroll = false;\n            this.carousel.resize();\n            this.carousel.on('change', (index)=>{\n                this.currentDot = this.container.querySelector(`[${selectors$5.dot}=\"${index}\"]`);\n                this.currentDot.classList.add(classes$1.active);\n                this.removeClassOnSiblingDots();\n            });\n        }\n        /**\n       * Add events\n       */ addEvents() {\n            this.dots.forEach((dot)=>{\n                dot.addEventListener('click', this.clickEventsDot);\n                dot.addEventListener('keyup', this.keyEvents);\n            });\n            document.addEventListener('keyup', this.keyCloseEvent);\n            document.addEventListener('theme:resize', this.toggleOnResize);\n            if (this.buttonClose) {\n                this.buttonClose.addEventListener('click', this.clickEventToClose);\n            }\n        }\n        /**\n       * Show products holder\n       */ showProductsHolder() {\n            const selectCellAnimate = !this.productsHolder.classList.contains(classes$1.expand);\n            this.currentDot.classList.toggle(classes$1.active);\n            this.productsHolder.classList.toggle(classes$1.expand, this.currentDot.classList.contains(classes$1.active));\n            if (isMobile()) {\n                this.productsHolder.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                    bubbles: true\n                }));\n            }\n            if (this.currentDot.classList.contains(classes$1.active)) {\n                this.hasDefaultOpen = true;\n                this.carousel.selectCell(Number(this.currentDot.getAttribute(selectors$5.dot)), true, selectCellAnimate);\n            }\n            this.removeClassOnSiblingDots();\n        }\n        /**\n       * Hide products holder on keypress button 'escape'\n       * @param {Object} e\n       * @returns\n       */ hideProductsHolder(e) {\n            if (e.code !== 'Escape') {\n                return;\n            }\n            this.removeClasses();\n            removeTrapFocus();\n            this.currentDot.focus();\n        }\n        /**\n       * Remove classes on productsHolder and currentDot\n       */ removeClasses() {\n            this.productsHolder.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                bubbles: true\n            }));\n            this.productsHolder.classList.remove(classes$1.expand);\n            this.currentDot.classList.remove(classes$1.active);\n            this.hasDefaultOpen = false;\n        }\n        /**\n       * Click event method for show products holder\n       * @param {Object} e\n       */ clickEventShowProductsHolder(e) {\n            this.currentDot = e.currentTarget;\n            this.showProductsHolder();\n        }\n        /**\n       * Click event method for hide products holder\n       */ clickEventCloseProductsHolder() {\n            this.removeClasses();\n        }\n        /**\n       * Keyboard event method for show products holder and active trapfocus\n       * @param {Object} e\n       * @returns\n       */ keyboardEventShowProductHolder(e) {\n            if (e.code !== 'Enter' && e.code !== 'Space') {\n                return;\n            }\n            setTimeout(()=>{\n                const firstFocus = this.productsHolder.querySelector(selectors$5.focusable);\n                trapFocus(this.productsHolder, {\n                    elementToFocus: firstFocus\n                });\n            }, 400);\n        }\n        /**\n       * Hide default expanded for mobile devices and show if exists for larger devices\n       */ onResize() {\n            if (this.currentDot) {\n                if (window.innerWidth < window.theme.sizes.medium) {\n                    this.removeClasses();\n                } else if (this.hasDefaultOpen) {\n                    this.currentDot.classList.add(classes$1.active);\n                    this.productsHolder.classList.add(classes$1.expand);\n                }\n            }\n        }\n        /**\n       * Remove events\n       */ removeEvents() {\n            this.dots.forEach((dot)=>{\n                dot.removeEventListener('click', this.clickEventsDot);\n                dot.removeEventListener('keyup', this.keyEvents);\n            });\n            document.removeEventListener('keyup', this.keyCloseEvent);\n            document.removeEventListener('theme:resize', this.toggleOnResize);\n            if (this.buttonClose) {\n                this.buttonClose.removeEventListener('click', this.clickEventToClose);\n            }\n        }\n        /**\n       * Remove active class on sibling dots\n       */ removeClassOnSiblingDots() {\n            for (let sibling of this.currentDot.parentNode.children){\n                if (sibling !== this.currentDot) {\n                    sibling.classList.remove(classes$1.active);\n                }\n            }\n        }\n        onUnload() {\n            if (this.slider && this.carousel) {\n                this.carousel.destroy();\n            }\n            this.removeEvents();\n        }\n        onBlockSelect(e) {\n            if (this.slider && this.carousel) {\n                const slide = this.container.querySelector(`[${selectors$5.blockId}=\"${e.detail.blockId}\"]`);\n                this.productsHolder.classList.add(classes$1.expand);\n                this.carousel.selectCell(Number(slide.getAttribute(selectors$5.slideIndex)), true, true);\n            }\n        }\n        onBlockDeselect() {\n            if (window.innerWidth < window.theme.sizes.medium) {\n                this.productsHolder.classList.remove(classes$1.expand);\n                this.currentDot.classList.remove(classes$1.active);\n            }\n        }\n        constructor(section){\n            this.section = section;\n            this.container = this.section.container;\n            this.dots = this.container.querySelectorAll(`[${selectors$5.dot}]`);\n            this.productsHolder = this.container.querySelector(`[${selectors$5.productsHolder}]`);\n            this.slider = this.container.querySelector(selectors$5.slider);\n            this.buttonClose = this.container.querySelector(selectors$5.buttonClose);\n            this.currentDot = this.container.querySelector(`[${selectors$5.dot}].${classes$1.active}`);\n            this.hasDefaultOpen = Boolean(this.currentDot);\n            this.init();\n        }\n    };\n    const lookSection = {\n        onLoad () {\n            sections[this.id] = [];\n            sections[this.id].push(new Look(this));\n        },\n        onUnload () {\n            sections[this.id].forEach((el)=>{\n                if (typeof el.onUnload === 'function') {\n                    el.onUnload();\n                }\n            });\n        },\n        onBlockSelect (e) {\n            sections[this.id].forEach((el)=>{\n                if (typeof el.onBlockSelect === 'function') {\n                    el.onBlockSelect(e);\n                }\n            });\n        },\n        onBlockDeselect (e) {\n            sections[this.id].forEach((el)=>{\n                if (typeof el.onBlockDeselect === 'function') {\n                    el.onBlockDeselect(e);\n                }\n            });\n        }\n    };\n    register('look', [\n        lookSection\n    ]);\n\n    register('featured-article', parallaxImage);\n\n    const wrap$1 = (toWrap, wrapperClass = '', wrapper)=>{\n        wrapper = wrapper || document.createElement('div');\n        wrapper.classList.add(wrapperClass);\n        toWrap.parentNode.insertBefore(wrapper, toWrap);\n        return wrapper.appendChild(toWrap);\n    };\n\n    // Animate on scroll\n    if (window.theme.settings.animate_scroll) {\n        AOS.init({\n            once: true\n        });\n    }\n    document.addEventListener('DOMContentLoaded', function() {\n        // Detect menu height early to prevent CLS\n        const menuEl = document.querySelector('[data-header-height]');\n        if (menuEl) {\n            const menuHeight = menuEl.clientHeight || 0;\n            document.documentElement.style.setProperty('--menu-height', `${menuHeight}px`);\n        }\n        // Load all registered sections on the page.\n        load('*');\n        // Animate on hover\n        if (window.theme.settings.animate_hover) {\n            document.body.classList.add('theme-animate-hover');\n        }\n        // Target tables to make them scrollable\n        const tableSelectors = '.rte table';\n        const tables = document.querySelectorAll(tableSelectors);\n        tables.forEach((table)=>{\n            wrap$1(table, 'rte__table-wrapper');\n        });\n        // Target iframes to make them responsive\n        const iframeSelectors = '.rte iframe[src*=\"youtube.com/embed\"], .rte iframe[src*=\"player.vimeo\"], .rte iframe#admin_bar_iframe';\n        const frames = document.querySelectorAll(iframeSelectors);\n        frames.forEach((frame)=>{\n            wrap$1(frame, 'rte__video-wrapper');\n        });\n        document.addEventListener('mousedown', ()=>{\n            document.body.classList.remove('focus-enabled');\n        });\n        document.addEventListener('keyup', (event)=>{\n            if (event.code === 'Tab') {\n                document.body.classList.add('focus-enabled');\n            }\n        });\n        // Apply a specific class to the html element for browser support of cookies.\n        if (window.navigator.cookieEnabled) {\n            document.documentElement.className = document.documentElement.className.replace('supports-no-cookies', 'supports-cookies');\n        }\n        // Common a11y fixes\n        focusHash();\n        bindInPageLinks();\n        let hasNativeSmoothScroll = 'scrollBehavior' in document.documentElement.style;\n        if (!hasNativeSmoothScroll) {\n            loadScript({\n                url: window.theme.assets.smoothscroll\n            });\n        }\n    });\n\n    // node_modules/tabbable/dist/index.esm.js\n    var candidateSelectors = [\n        \"input\",\n        \"select\",\n        \"textarea\",\n        \"a[href]\",\n        \"button\",\n        \"[tabindex]\",\n        \"audio[controls]\",\n        \"video[controls]\",\n        '[contenteditable]:not([contenteditable=\"false\"])',\n        \"details>summary:first-of-type\",\n        \"details\"\n    ];\n    var candidateSelector = /* @__PURE__ */ candidateSelectors.join(\",\");\n    var matches = typeof Element === \"undefined\" ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\n    var getCandidates = function getCandidates2(el, includeContainer, filter) {\n        var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n        if (includeContainer && matches.call(el, candidateSelector)) {\n            candidates.unshift(el);\n        }\n        candidates = candidates.filter(filter);\n        return candidates;\n    };\n    var isContentEditable = function isContentEditable2(node) {\n        return node.contentEditable === \"true\";\n    };\n    var getTabindex = function getTabindex2(node) {\n        var tabindexAttr = parseInt(node.getAttribute(\"tabindex\"), 10);\n        if (!isNaN(tabindexAttr)) {\n            return tabindexAttr;\n        }\n        if (isContentEditable(node)) {\n            return 0;\n        }\n        if ((node.nodeName === \"AUDIO\" || node.nodeName === \"VIDEO\" || node.nodeName === \"DETAILS\") && node.getAttribute(\"tabindex\") === null) {\n            return 0;\n        }\n        return node.tabIndex;\n    };\n    var sortOrderedTabbables = function sortOrderedTabbables2(a, b) {\n        return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n    };\n    var isInput = function isInput2(node) {\n        return node.tagName === \"INPUT\";\n    };\n    var isHiddenInput = function isHiddenInput2(node) {\n        return isInput(node) && node.type === \"hidden\";\n    };\n    var isDetailsWithSummary = function isDetailsWithSummary2(node) {\n        var r = node.tagName === \"DETAILS\" && Array.prototype.slice.apply(node.children).some(function(child) {\n            return child.tagName === \"SUMMARY\";\n        });\n        return r;\n    };\n    var getCheckedRadio = function getCheckedRadio2(nodes, form) {\n        for(var i = 0; i < nodes.length; i++){\n            if (nodes[i].checked && nodes[i].form === form) {\n                return nodes[i];\n            }\n        }\n    };\n    var isTabbableRadio = function isTabbableRadio2(node) {\n        if (!node.name) {\n            return true;\n        }\n        var radioScope = node.form || node.ownerDocument;\n        var queryRadios = function queryRadios2(name) {\n            return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n        };\n        var radioSet;\n        if (typeof window !== \"undefined\" && typeof window.CSS !== \"undefined\" && typeof window.CSS.escape === \"function\") {\n            radioSet = queryRadios(window.CSS.escape(node.name));\n        } else {\n            try {\n                radioSet = queryRadios(node.name);\n            } catch (err) {\n                console.error(\"Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s\", err.message);\n                return false;\n            }\n        }\n        var checked = getCheckedRadio(radioSet, node.form);\n        return !checked || checked === node;\n    };\n    var isRadio$1 = function isRadio2(node) {\n        return isInput(node) && node.type === \"radio\";\n    };\n    var isNonTabbableRadio = function isNonTabbableRadio2(node) {\n        return isRadio$1(node) && !isTabbableRadio(node);\n    };\n    var isHidden = function isHidden2(node, displayCheck) {\n        if (getComputedStyle(node).visibility === \"hidden\") {\n            return true;\n        }\n        var isDirectSummary = matches.call(node, \"details>summary:first-of-type\");\n        var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n        if (matches.call(nodeUnderDetails, \"details:not([open]) *\")) {\n            return true;\n        }\n        if (!displayCheck || displayCheck === \"full\") {\n            while(node){\n                if (getComputedStyle(node).display === \"none\") {\n                    return true;\n                }\n                node = node.parentElement;\n            }\n        } else if (displayCheck === \"non-zero-area\") {\n            var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;\n            return width === 0 && height === 0;\n        }\n        return false;\n    };\n    var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {\n        if (isInput(node) || node.tagName === \"SELECT\" || node.tagName === \"TEXTAREA\" || node.tagName === \"BUTTON\") {\n            var parentNode = node.parentElement;\n            while(parentNode){\n                if (parentNode.tagName === \"FIELDSET\" && parentNode.disabled) {\n                    for(var i = 0; i < parentNode.children.length; i++){\n                        var child = parentNode.children.item(i);\n                        if (child.tagName === \"LEGEND\") {\n                            if (child.contains(node)) {\n                                return false;\n                            }\n                            return true;\n                        }\n                    }\n                    return true;\n                }\n                parentNode = parentNode.parentElement;\n            }\n        }\n        return false;\n    };\n    var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {\n        if (node.disabled || isHiddenInput(node) || isHidden(node, options.displayCheck) || isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n            return false;\n        }\n        return true;\n    };\n    var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {\n        if (!isNodeMatchingSelectorFocusable(options, node) || isNonTabbableRadio(node) || getTabindex(node) < 0) {\n            return false;\n        }\n        return true;\n    };\n    var tabbable = function tabbable2(el, options) {\n        options = options || {};\n        var regularTabbables = [];\n        var orderedTabbables = [];\n        var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n        candidates.forEach(function(candidate, i) {\n            var candidateTabindex = getTabindex(candidate);\n            if (candidateTabindex === 0) {\n                regularTabbables.push(candidate);\n            } else {\n                orderedTabbables.push({\n                    documentOrder: i,\n                    tabIndex: candidateTabindex,\n                    node: candidate\n                });\n            }\n        });\n        var tabbableNodes = orderedTabbables.sort(sortOrderedTabbables).map(function(a) {\n            return a.node;\n        }).concat(regularTabbables);\n        return tabbableNodes;\n    };\n    var focusable = function focusable2(el, options) {\n        options = options || {};\n        var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n        return candidates;\n    };\n    var focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat(\"iframe\").join(\",\");\n    var isFocusable = function isFocusable2(node, options) {\n        options = options || {};\n        if (!node) {\n            throw new Error(\"No node provided\");\n        }\n        if (matches.call(node, focusableCandidateSelector) === false) {\n            return false;\n        }\n        return isNodeMatchingSelectorFocusable(options, node);\n    };\n    // node_modules/focus-trap/dist/focus-trap.esm.js\n    function ownKeys$1(object, enumerableOnly) {\n        var keys = Object.keys(object);\n        if (Object.getOwnPropertySymbols) {\n            var symbols = Object.getOwnPropertySymbols(object);\n            if (enumerableOnly) {\n                symbols = symbols.filter(function(sym) {\n                    return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n                });\n            }\n            keys.push.apply(keys, symbols);\n        }\n        return keys;\n    }\n    function _objectSpread2(target) {\n        for(var i = 1; i < arguments.length; i++){\n            var source = arguments[i] != null ? arguments[i] : {};\n            if (i % 2) {\n                ownKeys$1(Object(source), true).forEach(function(key) {\n                    _defineProperty(target, key, source[key]);\n                });\n            } else if (Object.getOwnPropertyDescriptors) {\n                Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n            } else {\n                ownKeys$1(Object(source)).forEach(function(key) {\n                    Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n                });\n            }\n        }\n        return target;\n    }\n    function _defineProperty(obj, key, value) {\n        if (key in obj) {\n            Object.defineProperty(obj, key, {\n                value,\n                enumerable: true,\n                configurable: true,\n                writable: true\n            });\n        } else {\n            obj[key] = value;\n        }\n        return obj;\n    }\n    var activeFocusTraps = function() {\n        var trapQueue = [];\n        return {\n            activateTrap: function activateTrap(trap) {\n                if (trapQueue.length > 0) {\n                    var activeTrap = trapQueue[trapQueue.length - 1];\n                    if (activeTrap !== trap) {\n                        activeTrap.pause();\n                    }\n                }\n                var trapIndex = trapQueue.indexOf(trap);\n                if (trapIndex === -1) {\n                    trapQueue.push(trap);\n                } else {\n                    trapQueue.splice(trapIndex, 1);\n                    trapQueue.push(trap);\n                }\n            },\n            deactivateTrap: function deactivateTrap(trap) {\n                var trapIndex = trapQueue.indexOf(trap);\n                if (trapIndex !== -1) {\n                    trapQueue.splice(trapIndex, 1);\n                }\n                if (trapQueue.length > 0) {\n                    trapQueue[trapQueue.length - 1].unpause();\n                }\n            }\n        };\n    }();\n    var isSelectableInput = function isSelectableInput2(node) {\n        return node.tagName && node.tagName.toLowerCase() === \"input\" && typeof node.select === \"function\";\n    };\n    var isEscapeEvent = function isEscapeEvent2(e) {\n        return e.key === \"Escape\" || e.key === \"Esc\" || e.keyCode === 27;\n    };\n    var isTabEvent = function isTabEvent2(e) {\n        return e.key === \"Tab\" || e.keyCode === 9;\n    };\n    var delay = function delay2(fn) {\n        return setTimeout(fn, 0);\n    };\n    var findIndex = function findIndex2(arr, fn) {\n        var idx = -1;\n        arr.every(function(value, i) {\n            if (fn(value)) {\n                idx = i;\n                return false;\n            }\n            return true;\n        });\n        return idx;\n    };\n    var valueOrHandler = function valueOrHandler2(value) {\n        for(var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n            params[_key - 1] = arguments[_key];\n        }\n        return typeof value === \"function\" ? value.apply(void 0, params) : value;\n    };\n    var createFocusTrap = function createFocusTrap2(elements, userOptions) {\n        var doc = document;\n        var config = _objectSpread2({\n            returnFocusOnDeactivate: true,\n            escapeDeactivates: true,\n            delayInitialFocus: true\n        }, userOptions);\n        var state = {\n            // @type {Array<HTMLElement>}\n            containers: [],\n            // list of objects identifying the first and last tabbable nodes in all containers/groups in\n            //  the trap\n            // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap\n            //  is active, but the trap should never get to a state where there isn't at least one group\n            //  with at least one tabbable node in it (that would lead to an error condition that would\n            //  result in an error being thrown)\n            // @type {Array<{ container: HTMLElement, firstTabbableNode: HTMLElement|null, lastTabbableNode: HTMLElement|null }>}\n            tabbableGroups: [],\n            nodeFocusedBeforeActivation: null,\n            mostRecentlyFocusedNode: null,\n            active: false,\n            paused: false,\n            // timer ID for when delayInitialFocus is true and initial focus in this trap\n            //  has been delayed during activation\n            delayInitialFocusTimer: void 0\n        };\n        var trap;\n        var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {\n            return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];\n        };\n        var containersContain = function containersContain2(element) {\n            return state.containers.some(function(container) {\n                return container.contains(element);\n            });\n        };\n        var getNodeForOption = function getNodeForOption2(optionName) {\n            var optionValue = config[optionName];\n            if (!optionValue) {\n                return null;\n            }\n            var node = optionValue;\n            if (typeof optionValue === \"string\") {\n                node = doc.querySelector(optionValue);\n                if (!node) {\n                    throw new Error(\"`\".concat(optionName, \"` refers to no known node\"));\n                }\n            }\n            if (typeof optionValue === \"function\") {\n                node = optionValue();\n                if (!node) {\n                    throw new Error(\"`\".concat(optionName, \"` did not return a node\"));\n                }\n            }\n            return node;\n        };\n        var getInitialFocusNode = function getInitialFocusNode2() {\n            var node;\n            if (getOption({}, \"initialFocus\") === false) {\n                return false;\n            }\n            if (getNodeForOption(\"initialFocus\") !== null) {\n                node = getNodeForOption(\"initialFocus\");\n            } else if (containersContain(doc.activeElement)) {\n                node = doc.activeElement;\n            } else {\n                var firstTabbableGroup = state.tabbableGroups[0];\n                var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n                node = firstTabbableNode || getNodeForOption(\"fallbackFocus\");\n            }\n            if (!node) {\n                throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n            }\n            return node;\n        };\n        var updateTabbableNodes = function updateTabbableNodes2() {\n            state.tabbableGroups = state.containers.map(function(container) {\n                var tabbableNodes = tabbable(container);\n                if (tabbableNodes.length > 0) {\n                    return {\n                        container,\n                        firstTabbableNode: tabbableNodes[0],\n                        lastTabbableNode: tabbableNodes[tabbableNodes.length - 1]\n                    };\n                }\n                return void 0;\n            }).filter(function(group) {\n                return !!group;\n            });\n            if (state.tabbableGroups.length <= 0 && !getNodeForOption(\"fallbackFocus\")) {\n                throw new Error(\"Your focus-trap must have at least one container with at least one tabbable node in it at all times\");\n            }\n        };\n        var tryFocus = function tryFocus2(node) {\n            if (node === false) {\n                return;\n            }\n            if (node === doc.activeElement) {\n                return;\n            }\n            if (!node || !node.focus) {\n                tryFocus2(getInitialFocusNode());\n                return;\n            }\n            node.focus({\n                preventScroll: !!config.preventScroll\n            });\n            state.mostRecentlyFocusedNode = node;\n            if (isSelectableInput(node)) {\n                node.select();\n            }\n        };\n        var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {\n            var node = getNodeForOption(\"setReturnFocus\");\n            return node ? node : previousActiveElement;\n        };\n        var checkPointerDown = function checkPointerDown2(e) {\n            if (containersContain(e.target)) {\n                return;\n            }\n            if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n                trap.deactivate({\n                    // if, on deactivation, we should return focus to the node originally-focused\n                    //  when the trap was activated (or the configured `setReturnFocus` node),\n                    //  then assume it's also OK to return focus to the outside node that was\n                    //  just clicked, causing deactivation, as long as that node is focusable;\n                    //  if it isn't focusable, then return focus to the original node focused\n                    //  on activation (or the configured `setReturnFocus` node)\n                    // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,\n                    //  which will result in the outside click setting focus to the node\n                    //  that was clicked, whether it's focusable or not; by setting\n                    //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused\n                    //  on activation (or the configured `setReturnFocus` node)\n                    returnFocus: config.returnFocusOnDeactivate && !isFocusable(e.target)\n                });\n                return;\n            }\n            if (valueOrHandler(config.allowOutsideClick, e)) {\n                return;\n            }\n            e.preventDefault();\n        };\n        var checkFocusIn = function checkFocusIn2(e) {\n            var targetContained = containersContain(e.target);\n            if (targetContained || e.target instanceof Document) {\n                if (targetContained) {\n                    state.mostRecentlyFocusedNode = e.target;\n                }\n            } else {\n                e.stopImmediatePropagation();\n                tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());\n            }\n        };\n        var checkTab = function checkTab2(e) {\n            updateTabbableNodes();\n            var destinationNode = null;\n            if (state.tabbableGroups.length > 0) {\n                var containerIndex = findIndex(state.tabbableGroups, function(_ref) {\n                    var container = _ref.container;\n                    return container.contains(e.target);\n                });\n                if (containerIndex < 0) {\n                    if (e.shiftKey) {\n                        destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;\n                    } else {\n                        destinationNode = state.tabbableGroups[0].firstTabbableNode;\n                    }\n                } else if (e.shiftKey) {\n                    var startOfGroupIndex = findIndex(state.tabbableGroups, function(_ref2) {\n                        var firstTabbableNode = _ref2.firstTabbableNode;\n                        return e.target === firstTabbableNode;\n                    });\n                    if (startOfGroupIndex < 0 && state.tabbableGroups[containerIndex].container === e.target) {\n                        startOfGroupIndex = containerIndex;\n                    }\n                    if (startOfGroupIndex >= 0) {\n                        var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n                        var destinationGroup = state.tabbableGroups[destinationGroupIndex];\n                        destinationNode = destinationGroup.lastTabbableNode;\n                    }\n                } else {\n                    var lastOfGroupIndex = findIndex(state.tabbableGroups, function(_ref3) {\n                        var lastTabbableNode = _ref3.lastTabbableNode;\n                        return e.target === lastTabbableNode;\n                    });\n                    if (lastOfGroupIndex < 0 && state.tabbableGroups[containerIndex].container === e.target) {\n                        lastOfGroupIndex = containerIndex;\n                    }\n                    if (lastOfGroupIndex >= 0) {\n                        var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n                        var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];\n                        destinationNode = _destinationGroup.firstTabbableNode;\n                    }\n                }\n            } else {\n                destinationNode = getNodeForOption(\"fallbackFocus\");\n            }\n            if (destinationNode) {\n                e.preventDefault();\n                tryFocus(destinationNode);\n            }\n        };\n        var checkKey = function checkKey2(e) {\n            if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates) !== false) {\n                e.preventDefault();\n                trap.deactivate();\n                return;\n            }\n            if (isTabEvent(e)) {\n                checkTab(e);\n                return;\n            }\n        };\n        var checkClick = function checkClick2(e) {\n            if (valueOrHandler(config.clickOutsideDeactivates, e)) {\n                return;\n            }\n            if (containersContain(e.target)) {\n                return;\n            }\n            if (valueOrHandler(config.allowOutsideClick, e)) {\n                return;\n            }\n            e.preventDefault();\n            e.stopImmediatePropagation();\n        };\n        var addListeners = function addListeners2() {\n            if (!state.active) {\n                return;\n            }\n            activeFocusTraps.activateTrap(trap);\n            state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {\n                tryFocus(getInitialFocusNode());\n            }) : tryFocus(getInitialFocusNode());\n            doc.addEventListener(\"focusin\", checkFocusIn, true);\n            doc.addEventListener(\"mousedown\", checkPointerDown, {\n                capture: true,\n                passive: false\n            });\n            doc.addEventListener(\"touchstart\", checkPointerDown, {\n                capture: true,\n                passive: false\n            });\n            doc.addEventListener(\"click\", checkClick, {\n                capture: true,\n                passive: false\n            });\n            doc.addEventListener(\"keydown\", checkKey, {\n                capture: true,\n                passive: false\n            });\n            return trap;\n        };\n        var removeListeners = function removeListeners2() {\n            if (!state.active) {\n                return;\n            }\n            doc.removeEventListener(\"focusin\", checkFocusIn, true);\n            doc.removeEventListener(\"mousedown\", checkPointerDown, true);\n            doc.removeEventListener(\"touchstart\", checkPointerDown, true);\n            doc.removeEventListener(\"click\", checkClick, true);\n            doc.removeEventListener(\"keydown\", checkKey, true);\n            return trap;\n        };\n        trap = {\n            activate: function activate(activateOptions) {\n                if (state.active) {\n                    return this;\n                }\n                var onActivate = getOption(activateOptions, \"onActivate\");\n                var onPostActivate = getOption(activateOptions, \"onPostActivate\");\n                var checkCanFocusTrap = getOption(activateOptions, \"checkCanFocusTrap\");\n                if (!checkCanFocusTrap) {\n                    updateTabbableNodes();\n                }\n                state.active = true;\n                state.paused = false;\n                state.nodeFocusedBeforeActivation = doc.activeElement;\n                if (onActivate) {\n                    onActivate();\n                }\n                var finishActivation = function finishActivation2() {\n                    if (checkCanFocusTrap) {\n                        updateTabbableNodes();\n                    }\n                    addListeners();\n                    if (onPostActivate) {\n                        onPostActivate();\n                    }\n                };\n                if (checkCanFocusTrap) {\n                    checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);\n                    return this;\n                }\n                finishActivation();\n                return this;\n            },\n            deactivate: function deactivate(deactivateOptions) {\n                if (!state.active) {\n                    return this;\n                }\n                clearTimeout(state.delayInitialFocusTimer);\n                state.delayInitialFocusTimer = void 0;\n                removeListeners();\n                state.active = false;\n                state.paused = false;\n                activeFocusTraps.deactivateTrap(trap);\n                var onDeactivate = getOption(deactivateOptions, \"onDeactivate\");\n                var onPostDeactivate = getOption(deactivateOptions, \"onPostDeactivate\");\n                var checkCanReturnFocus = getOption(deactivateOptions, \"checkCanReturnFocus\");\n                if (onDeactivate) {\n                    onDeactivate();\n                }\n                var returnFocus = getOption(deactivateOptions, \"returnFocus\", \"returnFocusOnDeactivate\");\n                var finishDeactivation = function finishDeactivation2() {\n                    delay(function() {\n                        if (returnFocus) {\n                            tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));\n                        }\n                        if (onPostDeactivate) {\n                            onPostDeactivate();\n                        }\n                    });\n                };\n                if (returnFocus && checkCanReturnFocus) {\n                    checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);\n                    return this;\n                }\n                finishDeactivation();\n                return this;\n            },\n            pause: function pause() {\n                if (state.paused || !state.active) {\n                    return this;\n                }\n                state.paused = true;\n                removeListeners();\n                return this;\n            },\n            unpause: function unpause() {\n                if (!state.paused || !state.active) {\n                    return this;\n                }\n                state.paused = false;\n                updateTabbableNodes();\n                addListeners();\n                return this;\n            },\n            updateContainerElements: function updateContainerElements(containerElements) {\n                var elementsAsArray = [].concat(containerElements).filter(Boolean);\n                state.containers = elementsAsArray.map(function(element) {\n                    return typeof element === \"string\" ? doc.querySelector(element) : element;\n                });\n                if (state.active) {\n                    updateTabbableNodes();\n                }\n                return this;\n            }\n        };\n        trap.updateContainerElements(elements);\n        return trap;\n    };\n    // packages/focus/src/index.js\n    function src_default$4(Alpine) {\n        let lastFocused;\n        let currentFocused;\n        window.addEventListener(\"focusin\", ()=>{\n            lastFocused = currentFocused;\n            currentFocused = document.activeElement;\n        });\n        Alpine.magic(\"focus\", (el)=>{\n            let within = el;\n            return {\n                __noscroll: false,\n                __wrapAround: false,\n                within (el2) {\n                    within = el2;\n                    return this;\n                },\n                withoutScrolling () {\n                    this.__noscroll = true;\n                    return this;\n                },\n                noscroll () {\n                    this.__noscroll = true;\n                    return this;\n                },\n                withWrapAround () {\n                    this.__wrapAround = true;\n                    return this;\n                },\n                wrap () {\n                    return this.withWrapAround();\n                },\n                focusable (el2) {\n                    return isFocusable(el2);\n                },\n                previouslyFocused () {\n                    return lastFocused;\n                },\n                lastFocused () {\n                    return lastFocused;\n                },\n                focused () {\n                    return currentFocused;\n                },\n                focusables () {\n                    if (Array.isArray(within)) return within;\n                    return focusable(within, {\n                        displayCheck: \"none\"\n                    });\n                },\n                all () {\n                    return this.focusables();\n                },\n                isFirst (el2) {\n                    let els = this.all();\n                    return els[0] && els[0].isSameNode(el2);\n                },\n                isLast (el2) {\n                    let els = this.all();\n                    return els.length && els.slice(-1)[0].isSameNode(el2);\n                },\n                getFirst () {\n                    return this.all()[0];\n                },\n                getLast () {\n                    return this.all().slice(-1)[0];\n                },\n                getNext () {\n                    let list = this.all();\n                    let current = document.activeElement;\n                    if (list.indexOf(current) === -1) return;\n                    if (this.__wrapAround && list.indexOf(current) === list.length - 1) {\n                        return list[0];\n                    }\n                    return list[list.indexOf(current) + 1];\n                },\n                getPrevious () {\n                    let list = this.all();\n                    let current = document.activeElement;\n                    if (list.indexOf(current) === -1) return;\n                    if (this.__wrapAround && list.indexOf(current) === 0) {\n                        return list.slice(-1)[0];\n                    }\n                    return list[list.indexOf(current) - 1];\n                },\n                first () {\n                    this.focus(this.getFirst());\n                },\n                last () {\n                    this.focus(this.getLast());\n                },\n                next () {\n                    this.focus(this.getNext());\n                },\n                previous () {\n                    this.focus(this.getPrevious());\n                },\n                prev () {\n                    return this.previous();\n                },\n                focus (el2) {\n                    if (!el2) return;\n                    setTimeout(()=>{\n                        if (!el2.hasAttribute(\"tabindex\")) el2.setAttribute(\"tabindex\", \"0\");\n                        el2.focus({\n                            preventScroll: this._noscroll\n                        });\n                    });\n                }\n            };\n        });\n        Alpine.directive(\"trap\", Alpine.skipDuringClone((el, { expression , modifiers  }, { effect , evaluateLater , cleanup  })=>{\n            let evaluator = evaluateLater(expression);\n            let oldValue = false;\n            let trap = createFocusTrap(el, {\n                escapeDeactivates: false,\n                allowOutsideClick: true,\n                fallbackFocus: ()=>el\n                ,\n                initialFocus: el.querySelector(\"[autofocus]\")\n            });\n            let undoInert = ()=>{};\n            let undoDisableScrolling = ()=>{};\n            const releaseFocus = ()=>{\n                undoInert();\n                undoInert = ()=>{};\n                undoDisableScrolling();\n                undoDisableScrolling = ()=>{};\n                trap.deactivate({\n                    returnFocus: !modifiers.includes(\"noreturn\")\n                });\n            };\n            effect(()=>evaluator((value)=>{\n                    if (oldValue === value) return;\n                    if (value && !oldValue) {\n                        setTimeout(()=>{\n                            if (modifiers.includes(\"inert\")) undoInert = setInert(el);\n                            if (modifiers.includes(\"noscroll\")) undoDisableScrolling = disableScrolling();\n                            trap.activate();\n                        });\n                    }\n                    if (!value && oldValue) {\n                        releaseFocus();\n                    }\n                    oldValue = !!value;\n                })\n            );\n            cleanup(releaseFocus);\n        }, // When cloning, we only want to add aria-hidden attributes to the\n        // DOM and not try to actually trap, as trapping can mess with the\n        // live DOM and isn't just isolated to the cloned DOM.\n        (el, { expression , modifiers  }, { evaluate  })=>{\n            if (modifiers.includes(\"inert\") && evaluate(expression)) setInert(el);\n        }));\n    }\n    function setInert(el) {\n        let undos = [];\n        crawlSiblingsUp(el, (sibling)=>{\n            let cache = sibling.hasAttribute(\"aria-hidden\");\n            sibling.setAttribute(\"aria-hidden\", \"true\");\n            undos.push(()=>cache || sibling.removeAttribute(\"aria-hidden\")\n            );\n        });\n        return ()=>{\n            while(undos.length)undos.pop()();\n        };\n    }\n    function crawlSiblingsUp(el, callback) {\n        if (el.isSameNode(document.body) || !el.parentNode) return;\n        Array.from(el.parentNode.children).forEach((sibling)=>{\n            if (sibling.isSameNode(el)) {\n                crawlSiblingsUp(el.parentNode, callback);\n            } else {\n                callback(sibling);\n            }\n        });\n    }\n    function disableScrolling() {\n        let overflow = document.documentElement.style.overflow;\n        let paddingRight = document.documentElement.style.paddingRight;\n        let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n        document.documentElement.style.overflow = \"hidden\";\n        document.documentElement.style.paddingRight = `${scrollbarWidth}px`;\n        return ()=>{\n            document.documentElement.style.overflow = overflow;\n            document.documentElement.style.paddingRight = paddingRight;\n        };\n    }\n    // packages/focus/builds/module.js\n    var module_default$4 = src_default$4;\n\n    // packages/intersect/src/index.js\n    function src_default$3(Alpine) {\n        Alpine.directive(\"intersect\", Alpine.skipDuringClone((el, { value , expression , modifiers  }, { evaluateLater , cleanup  })=>{\n            let evaluate = evaluateLater(expression);\n            let options = {\n                rootMargin: getRootMargin(modifiers),\n                threshold: getThreshold(modifiers)\n            };\n            let observer = new IntersectionObserver((entries)=>{\n                entries.forEach((entry)=>{\n                    if (entry.isIntersecting === (value === \"leave\")) return;\n                    evaluate();\n                    modifiers.includes(\"once\") && observer.disconnect();\n                });\n            }, options);\n            observer.observe(el);\n            cleanup(()=>{\n                observer.disconnect();\n            });\n        }));\n    }\n    function getThreshold(modifiers) {\n        if (modifiers.includes(\"full\")) return 0.99;\n        if (modifiers.includes(\"half\")) return 0.5;\n        if (!modifiers.includes(\"threshold\")) return 0;\n        let threshold = modifiers[modifiers.indexOf(\"threshold\") + 1];\n        if (threshold === \"100\") return 1;\n        if (threshold === \"0\") return 0;\n        return Number(`.${threshold}`);\n    }\n    function getLengthValue(rawValue) {\n        let match = rawValue.match(/^(-?[0-9]+)(px|%)?$/);\n        return match ? match[1] + (match[2] || \"px\") : void 0;\n    }\n    function getRootMargin(modifiers) {\n        const key = \"margin\";\n        const fallback = \"0px 0px 0px 0px\";\n        const index = modifiers.indexOf(key);\n        if (index === -1) return fallback;\n        let values = [];\n        for(let i = 1; i < 5; i++){\n            values.push(getLengthValue(modifiers[index + i] || \"\"));\n        }\n        values = values.filter((v)=>v !== void 0\n        );\n        return values.length ? values.join(\" \").trim() : fallback;\n    }\n    // packages/intersect/builds/module.js\n    var module_default$3 = src_default$3;\n\n    // packages/collapse/src/index.js\n    function src_default$2(Alpine) {\n        Alpine.directive(\"collapse\", collapse);\n        collapse.inline = (el, { modifiers  })=>{\n            if (!modifiers.includes(\"min\")) return;\n            el._x_doShow = ()=>{};\n            el._x_doHide = ()=>{};\n        };\n        function collapse(el, { modifiers  }) {\n            let duration = modifierValue$1(modifiers, \"duration\", 250) / 1e3;\n            let floor = modifierValue$1(modifiers, \"min\", 0);\n            let fullyHide = !modifiers.includes(\"min\");\n            if (!el._x_isShown) el.style.height = `${floor}px`;\n            if (!el._x_isShown && fullyHide) el.hidden = true;\n            if (!el._x_isShown) el.style.overflow = \"hidden\";\n            let setFunction = (el2, styles)=>{\n                let revertFunction = Alpine.setStyles(el2, styles);\n                return styles.height ? ()=>{} : revertFunction;\n            };\n            let transitionStyles = {\n                transitionProperty: \"height\",\n                transitionDuration: `${duration}s`,\n                transitionTimingFunction: \"cubic-bezier(0.4, 0.0, 0.2, 1)\"\n            };\n            el._x_transition = {\n                in (before = ()=>{}, after = ()=>{}) {\n                    if (fullyHide) el.hidden = false;\n                    if (fullyHide) el.style.display = null;\n                    let current = el.getBoundingClientRect().height;\n                    el.style.height = \"auto\";\n                    let full = el.getBoundingClientRect().height;\n                    if (current === full) {\n                        current = floor;\n                    }\n                    Alpine.transition(el, Alpine.setStyles, {\n                        during: transitionStyles,\n                        start: {\n                            height: current + \"px\"\n                        },\n                        end: {\n                            height: full + \"px\"\n                        }\n                    }, ()=>el._x_isShown = true\n                    , ()=>{\n                        if (Math.abs(el.getBoundingClientRect().height - full) < 1) {\n                            el.style.overflow = null;\n                        }\n                    });\n                },\n                out (before = ()=>{}, after = ()=>{}) {\n                    let full = el.getBoundingClientRect().height;\n                    Alpine.transition(el, setFunction, {\n                        during: transitionStyles,\n                        start: {\n                            height: full + \"px\"\n                        },\n                        end: {\n                            height: floor + \"px\"\n                        }\n                    }, ()=>el.style.overflow = \"hidden\"\n                    , ()=>{\n                        el._x_isShown = false;\n                        if (el.style.height == `${floor}px` && fullyHide) {\n                            el.style.display = \"none\";\n                            el.hidden = true;\n                        }\n                    });\n                }\n            };\n        }\n    }\n    function modifierValue$1(modifiers, key, fallback) {\n        if (modifiers.indexOf(key) === -1) return fallback;\n        const rawValue = modifiers[modifiers.indexOf(key) + 1];\n        if (!rawValue) return fallback;\n        if (key === \"duration\") {\n            let match = rawValue.match(/([0-9]+)ms/);\n            if (match) return match[1];\n        }\n        if (key === \"min\") {\n            let match = rawValue.match(/([0-9]+)px/);\n            if (match) return match[1];\n        }\n        return rawValue;\n    }\n    // packages/collapse/builds/module.js\n    var module_default$2 = src_default$2;\n\n    // packages/morph/src/morph.js\n    function morph(from, toHtml, options) {\n        monkeyPatchDomSetAttributeToAllowAtSymbols();\n        let context = createMorphContext(options);\n        let toEl = typeof toHtml === \"string\" ? createElement(toHtml) : toHtml;\n        if (window.Alpine && window.Alpine.closestDataStack && !from._x_dataStack) {\n            toEl._x_dataStack = window.Alpine.closestDataStack(from);\n            toEl._x_dataStack && window.Alpine.cloneNode(from, toEl);\n        }\n        context.patch(from, toEl);\n        return from;\n    }\n    function morphBetween(startMarker, endMarker, toHtml, options = {}) {\n        monkeyPatchDomSetAttributeToAllowAtSymbols();\n        let context = createMorphContext(options);\n        let fromContainer = startMarker.parentNode;\n        let fromBlock = new Block(startMarker, endMarker);\n        let toContainer = typeof toHtml === \"string\" ? (()=>{\n            let container = document.createElement(\"div\");\n            container.insertAdjacentHTML(\"beforeend\", toHtml);\n            return container;\n        })() : toHtml;\n        let toStartMarker = document.createComment(\"[morph-start]\");\n        let toEndMarker = document.createComment(\"[morph-end]\");\n        toContainer.insertBefore(toStartMarker, toContainer.firstChild);\n        toContainer.appendChild(toEndMarker);\n        let toBlock = new Block(toStartMarker, toEndMarker);\n        if (window.Alpine && window.Alpine.closestDataStack) {\n            toContainer._x_dataStack = window.Alpine.closestDataStack(fromContainer);\n            toContainer._x_dataStack && window.Alpine.cloneNode(fromContainer, toContainer);\n        }\n        context.patchChildren(fromBlock, toBlock);\n    }\n    function createMorphContext(options = {}) {\n        let defaultGetKey = (el)=>el.getAttribute(\"key\")\n        ;\n        let noop = ()=>{};\n        let context = {\n            key: options.key || defaultGetKey,\n            lookahead: options.lookahead || false,\n            updating: options.updating || noop,\n            updated: options.updated || noop,\n            removing: options.removing || noop,\n            removed: options.removed || noop,\n            adding: options.adding || noop,\n            added: options.added || noop\n        };\n        context.patch = function(from, to) {\n            if (context.differentElementNamesTypesOrKeys(from, to)) {\n                return context.swapElements(from, to);\n            }\n            let updateChildrenOnly = false;\n            let skipChildren = false;\n            let skipUntil = (predicate)=>context.skipUntilCondition = predicate\n            ;\n            if (shouldSkipChildren(context.updating, ()=>skipChildren = true\n            , skipUntil, from, to, ()=>updateChildrenOnly = true\n            )) return;\n            if (from.nodeType === 1 && window.Alpine) {\n                window.Alpine.cloneNode(from, to);\n                if (from._x_teleport && to._x_teleport) {\n                    context.patch(from._x_teleport, to._x_teleport);\n                }\n            }\n            if (textOrComment(to)) {\n                context.patchNodeValue(from, to);\n                context.updated(from, to);\n                return;\n            }\n            if (!updateChildrenOnly) {\n                context.patchAttributes(from, to);\n            }\n            context.updated(from, to);\n            if (!skipChildren) {\n                context.patchChildren(from, to);\n            }\n        };\n        context.differentElementNamesTypesOrKeys = function(from, to) {\n            return from.nodeType != to.nodeType || from.nodeName != to.nodeName || context.getKey(from) != context.getKey(to);\n        };\n        context.swapElements = function(from, to) {\n            if (shouldSkip(context.removing, from)) return;\n            let toCloned = to.cloneNode(true);\n            if (shouldSkip(context.adding, toCloned)) return;\n            from.replaceWith(toCloned);\n            context.removed(from);\n            context.added(toCloned);\n        };\n        context.patchNodeValue = function(from, to) {\n            let value = to.nodeValue;\n            if (from.nodeValue !== value) {\n                from.nodeValue = value;\n            }\n        };\n        context.patchAttributes = function(from, to) {\n            if (from._x_transitioning) return;\n            if (from._x_isShown && !to._x_isShown) {\n                return;\n            }\n            if (!from._x_isShown && to._x_isShown) {\n                return;\n            }\n            let domAttributes = Array.from(from.attributes);\n            let toAttributes = Array.from(to.attributes);\n            for(let i = domAttributes.length - 1; i >= 0; i--){\n                let name = domAttributes[i].name;\n                if (!to.hasAttribute(name)) {\n                    from.removeAttribute(name);\n                }\n            }\n            for(let i1 = toAttributes.length - 1; i1 >= 0; i1--){\n                let name = toAttributes[i1].name;\n                let value = toAttributes[i1].value;\n                if (from.getAttribute(name) !== value) {\n                    from.setAttribute(name, value);\n                }\n            }\n        };\n        context.patchChildren = function(from, to) {\n            let fromKeys = context.keyToMap(from.children);\n            let fromKeyHoldovers = {};\n            let currentTo = getFirstNode(to);\n            let currentFrom = getFirstNode(from);\n            while(currentTo){\n                seedingMatchingId(currentTo, currentFrom);\n                let toKey = context.getKey(currentTo);\n                let fromKey = context.getKey(currentFrom);\n                if (context.skipUntilCondition) {\n                    let fromDone = !currentFrom || context.skipUntilCondition(currentFrom);\n                    let toDone = !currentTo || context.skipUntilCondition(currentTo);\n                    if (fromDone && toDone) {\n                        context.skipUntilCondition = null;\n                    } else {\n                        if (!fromDone) currentFrom = currentFrom && getNextSibling(from, currentFrom);\n                        if (!toDone) currentTo = currentTo && getNextSibling(to, currentTo);\n                        continue;\n                    }\n                }\n                if (!currentFrom) {\n                    if (toKey && fromKeyHoldovers[toKey]) {\n                        let holdover = fromKeyHoldovers[toKey];\n                        from.appendChild(holdover);\n                        currentFrom = holdover;\n                        fromKey = context.getKey(currentFrom);\n                    } else {\n                        if (!shouldSkip(context.adding, currentTo)) {\n                            let clone = currentTo.cloneNode(true);\n                            from.appendChild(clone);\n                            context.added(clone);\n                        }\n                        currentTo = getNextSibling(to, currentTo);\n                        continue;\n                    }\n                }\n                let isIf = (node)=>node && node.nodeType === 8 && node.textContent === \"[if BLOCK]><![endif]\"\n                ;\n                let isEnd = (node)=>node && node.nodeType === 8 && node.textContent === \"[if ENDBLOCK]><![endif]\"\n                ;\n                if (isIf(currentTo) && isIf(currentFrom)) {\n                    let nestedIfCount = 0;\n                    let fromBlockStart = currentFrom;\n                    while(currentFrom){\n                        let next = getNextSibling(from, currentFrom);\n                        if (isIf(next)) {\n                            nestedIfCount++;\n                        } else if (isEnd(next) && nestedIfCount > 0) {\n                            nestedIfCount--;\n                        } else if (isEnd(next) && nestedIfCount === 0) {\n                            currentFrom = next;\n                            break;\n                        }\n                        currentFrom = next;\n                    }\n                    let fromBlockEnd = currentFrom;\n                    nestedIfCount = 0;\n                    let toBlockStart = currentTo;\n                    while(currentTo){\n                        let next = getNextSibling(to, currentTo);\n                        if (isIf(next)) {\n                            nestedIfCount++;\n                        } else if (isEnd(next) && nestedIfCount > 0) {\n                            nestedIfCount--;\n                        } else if (isEnd(next) && nestedIfCount === 0) {\n                            currentTo = next;\n                            break;\n                        }\n                        currentTo = next;\n                    }\n                    let toBlockEnd = currentTo;\n                    let fromBlock = new Block(fromBlockStart, fromBlockEnd);\n                    let toBlock = new Block(toBlockStart, toBlockEnd);\n                    context.patchChildren(fromBlock, toBlock);\n                    continue;\n                }\n                if (currentFrom.nodeType === 1 && context.lookahead && !currentFrom.isEqualNode(currentTo)) {\n                    let nextToElementSibling = getNextSibling(to, currentTo);\n                    let found = false;\n                    while(!found && nextToElementSibling){\n                        if (nextToElementSibling.nodeType === 1 && currentFrom.isEqualNode(nextToElementSibling)) {\n                            found = true;\n                            currentFrom = context.addNodeBefore(from, currentTo, currentFrom);\n                            fromKey = context.getKey(currentFrom);\n                        }\n                        nextToElementSibling = getNextSibling(to, nextToElementSibling);\n                    }\n                }\n                if (toKey !== fromKey) {\n                    if (!toKey && fromKey) {\n                        fromKeyHoldovers[fromKey] = currentFrom;\n                        currentFrom = context.addNodeBefore(from, currentTo, currentFrom);\n                        fromKeyHoldovers[fromKey].remove();\n                        currentFrom = getNextSibling(from, currentFrom);\n                        currentTo = getNextSibling(to, currentTo);\n                        continue;\n                    }\n                    if (toKey && !fromKey) {\n                        if (fromKeys[toKey]) {\n                            currentFrom.replaceWith(fromKeys[toKey]);\n                            currentFrom = fromKeys[toKey];\n                            fromKey = context.getKey(currentFrom);\n                        }\n                    }\n                    if (toKey && fromKey) {\n                        let fromKeyNode = fromKeys[toKey];\n                        if (fromKeyNode) {\n                            fromKeyHoldovers[fromKey] = currentFrom;\n                            currentFrom.replaceWith(fromKeyNode);\n                            currentFrom = fromKeyNode;\n                            fromKey = context.getKey(currentFrom);\n                        } else {\n                            fromKeyHoldovers[fromKey] = currentFrom;\n                            currentFrom = context.addNodeBefore(from, currentTo, currentFrom);\n                            fromKeyHoldovers[fromKey].remove();\n                            currentFrom = getNextSibling(from, currentFrom);\n                            currentTo = getNextSibling(to, currentTo);\n                            continue;\n                        }\n                    }\n                }\n                let currentFromNext = currentFrom && getNextSibling(from, currentFrom);\n                context.patch(currentFrom, currentTo);\n                currentTo = currentTo && getNextSibling(to, currentTo);\n                currentFrom = currentFromNext;\n            }\n            let removals = [];\n            while(currentFrom){\n                if (!shouldSkip(context.removing, currentFrom)) removals.push(currentFrom);\n                currentFrom = getNextSibling(from, currentFrom);\n            }\n            while(removals.length){\n                let domForRemoval = removals.shift();\n                domForRemoval.remove();\n                context.removed(domForRemoval);\n            }\n        };\n        context.getKey = function(el) {\n            return el && el.nodeType === 1 && context.key(el);\n        };\n        context.keyToMap = function(els) {\n            let map = {};\n            for (let el of els){\n                let theKey = context.getKey(el);\n                if (theKey) {\n                    map[theKey] = el;\n                }\n            }\n            return map;\n        };\n        context.addNodeBefore = function(parent, node, beforeMe) {\n            if (!shouldSkip(context.adding, node)) {\n                let clone = node.cloneNode(true);\n                parent.insertBefore(clone, beforeMe);\n                context.added(clone);\n                return clone;\n            }\n            return node;\n        };\n        return context;\n    }\n    morph.step = ()=>{};\n    morph.log = ()=>{};\n    function shouldSkip(hook, ...args) {\n        let skip = false;\n        hook(...args, ()=>skip = true\n        );\n        return skip;\n    }\n    function shouldSkipChildren(hook, skipChildren, skipUntil, ...args) {\n        let skip = false;\n        hook(...args, ()=>skip = true\n        , skipChildren, skipUntil);\n        return skip;\n    }\n    var patched = false;\n    function createElement(html) {\n        const template = document.createElement(\"template\");\n        template.innerHTML = html;\n        return template.content.firstElementChild;\n    }\n    function textOrComment(el) {\n        return el.nodeType === 3 || el.nodeType === 8;\n    }\n    var Block = class {\n        get children() {\n            let children = [];\n            let currentNode = this.startComment.nextSibling;\n            while(currentNode && currentNode !== this.endComment){\n                children.push(currentNode);\n                currentNode = currentNode.nextSibling;\n            }\n            return children;\n        }\n        appendChild(child) {\n            this.endComment.before(child);\n        }\n        get firstChild() {\n            let first = this.startComment.nextSibling;\n            if (first === this.endComment) return;\n            return first;\n        }\n        nextNode(reference) {\n            let next = reference.nextSibling;\n            if (next === this.endComment) return;\n            return next;\n        }\n        insertBefore(newNode, reference) {\n            reference.before(newNode);\n            return newNode;\n        }\n        constructor(start, end){\n            this.startComment = start;\n            this.endComment = end;\n        }\n    };\n    function getFirstNode(parent) {\n        return parent.firstChild;\n    }\n    function getNextSibling(parent, reference) {\n        let next;\n        if (parent instanceof Block) {\n            next = parent.nextNode(reference);\n        } else {\n            next = reference.nextSibling;\n        }\n        return next;\n    }\n    function monkeyPatchDomSetAttributeToAllowAtSymbols() {\n        if (patched) return;\n        patched = true;\n        let original = Element.prototype.setAttribute;\n        let hostDiv = document.createElement(\"div\");\n        Element.prototype.setAttribute = function newSetAttribute(name, value) {\n            if (!name.includes(\"@\")) {\n                return original.call(this, name, value);\n            }\n            hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`;\n            let attr = hostDiv.firstElementChild.getAttributeNode(name);\n            hostDiv.firstElementChild.removeAttributeNode(attr);\n            this.setAttributeNode(attr);\n        };\n    }\n    function seedingMatchingId(to, from) {\n        let fromId = from && from._x_bindings && from._x_bindings.id;\n        if (!fromId) return;\n        if (!to.setAttribute) return;\n        to.setAttribute(\"id\", fromId);\n        to.id = fromId;\n    }\n    // packages/morph/src/index.js\n    function src_default$1(Alpine) {\n        Alpine.morph = morph;\n        Alpine.morphBetween = morphBetween;\n    }\n    // packages/morph/builds/module.js\n    var module_default$1 = src_default$1;\n\n    // packages/alpinejs/src/scheduler.js\n    var flushPending = false;\n    var flushing = false;\n    var queue = [];\n    var lastFlushedIndex = -1;\n    function scheduler(callback) {\n        queueJob(callback);\n    }\n    function queueJob(job) {\n        if (!queue.includes(job)) queue.push(job);\n        queueFlush();\n    }\n    function dequeueJob(job) {\n        let index = queue.indexOf(job);\n        if (index !== -1 && index > lastFlushedIndex) queue.splice(index, 1);\n    }\n    function queueFlush() {\n        if (!flushing && !flushPending) {\n            flushPending = true;\n            queueMicrotask(flushJobs);\n        }\n    }\n    function flushJobs() {\n        flushPending = false;\n        flushing = true;\n        for(let i = 0; i < queue.length; i++){\n            queue[i]();\n            lastFlushedIndex = i;\n        }\n        queue.length = 0;\n        lastFlushedIndex = -1;\n        flushing = false;\n    }\n    // packages/alpinejs/src/reactivity.js\n    var reactive;\n    var effect;\n    var release;\n    var raw;\n    var shouldSchedule = true;\n    function disableEffectScheduling(callback) {\n        shouldSchedule = false;\n        callback();\n        shouldSchedule = true;\n    }\n    function setReactivityEngine(engine) {\n        reactive = engine.reactive;\n        release = engine.release;\n        effect = (callback)=>engine.effect(callback, {\n                scheduler: (task)=>{\n                    if (shouldSchedule) {\n                        scheduler(task);\n                    } else {\n                        task();\n                    }\n                }\n            })\n        ;\n        raw = engine.raw;\n    }\n    function overrideEffect(override) {\n        effect = override;\n    }\n    function elementBoundEffect(el) {\n        let cleanup2 = ()=>{};\n        let wrappedEffect = (callback)=>{\n            let effectReference = effect(callback);\n            if (!el._x_effects) {\n                el._x_effects = /* @__PURE__ */ new Set();\n                el._x_runEffects = ()=>{\n                    el._x_effects.forEach((i)=>i()\n                    );\n                };\n            }\n            el._x_effects.add(effectReference);\n            cleanup2 = ()=>{\n                if (effectReference === void 0) return;\n                el._x_effects.delete(effectReference);\n                release(effectReference);\n            };\n            return effectReference;\n        };\n        return [\n            wrappedEffect,\n            ()=>{\n                cleanup2();\n            }\n        ];\n    }\n    function watch(getter, callback) {\n        let firstTime = true;\n        let oldValue;\n        let effectReference = effect(()=>{\n            let value = getter();\n            JSON.stringify(value);\n            if (!firstTime) {\n                queueMicrotask(()=>{\n                    callback(value, oldValue);\n                    oldValue = value;\n                });\n            } else {\n                oldValue = value;\n            }\n            firstTime = false;\n        });\n        return ()=>release(effectReference)\n        ;\n    }\n    // packages/alpinejs/src/mutation.js\n    var onAttributeAddeds = [];\n    var onElRemoveds = [];\n    var onElAddeds = [];\n    function onElAdded(callback) {\n        onElAddeds.push(callback);\n    }\n    function onElRemoved(el, callback) {\n        if (typeof callback === \"function\") {\n            if (!el._x_cleanups) el._x_cleanups = [];\n            el._x_cleanups.push(callback);\n        } else {\n            callback = el;\n            onElRemoveds.push(callback);\n        }\n    }\n    function onAttributesAdded(callback) {\n        onAttributeAddeds.push(callback);\n    }\n    function onAttributeRemoved(el, name, callback) {\n        if (!el._x_attributeCleanups) el._x_attributeCleanups = {};\n        if (!el._x_attributeCleanups[name]) el._x_attributeCleanups[name] = [];\n        el._x_attributeCleanups[name].push(callback);\n    }\n    function cleanupAttributes(el, names) {\n        if (!el._x_attributeCleanups) return;\n        Object.entries(el._x_attributeCleanups).forEach(([name, value])=>{\n            if (names === void 0 || names.includes(name)) {\n                value.forEach((i)=>i()\n                );\n                delete el._x_attributeCleanups[name];\n            }\n        });\n    }\n    function cleanupElement(el) {\n        var ref, ref1;\n        (ref = el._x_effects) === null || ref === void 0 ? void 0 : ref.forEach(dequeueJob);\n        while((ref1 = el._x_cleanups) === null || ref1 === void 0 ? void 0 : ref1.length)el._x_cleanups.pop()();\n    }\n    var observer$1 = new MutationObserver(onMutate);\n    var currentlyObserving = false;\n    function startObservingMutations() {\n        observer$1.observe(document, {\n            subtree: true,\n            childList: true,\n            attributes: true,\n            attributeOldValue: true\n        });\n        currentlyObserving = true;\n    }\n    function stopObservingMutations() {\n        flushObserver();\n        observer$1.disconnect();\n        currentlyObserving = false;\n    }\n    var queuedMutations = [];\n    function flushObserver() {\n        let records = observer$1.takeRecords();\n        queuedMutations.push(()=>records.length > 0 && onMutate(records)\n        );\n        let queueLengthWhenTriggered = queuedMutations.length;\n        queueMicrotask(()=>{\n            if (queuedMutations.length === queueLengthWhenTriggered) {\n                while(queuedMutations.length > 0)queuedMutations.shift()();\n            }\n        });\n    }\n    function mutateDom(callback) {\n        if (!currentlyObserving) return callback();\n        stopObservingMutations();\n        let result = callback();\n        startObservingMutations();\n        return result;\n    }\n    var isCollecting = false;\n    var deferredMutations = [];\n    function deferMutations() {\n        isCollecting = true;\n    }\n    function flushAndStopDeferringMutations() {\n        isCollecting = false;\n        onMutate(deferredMutations);\n        deferredMutations = [];\n    }\n    function onMutate(mutations) {\n        if (isCollecting) {\n            deferredMutations = deferredMutations.concat(mutations);\n            return;\n        }\n        let addedNodes = [];\n        let removedNodes = /* @__PURE__ */ new Set();\n        let addedAttributes = /* @__PURE__ */ new Map();\n        let removedAttributes = /* @__PURE__ */ new Map();\n        for(let i1 = 0; i1 < mutations.length; i1++){\n            if (mutations[i1].target._x_ignoreMutationObserver) continue;\n            if (mutations[i1].type === \"childList\") {\n                mutations[i1].removedNodes.forEach((node)=>{\n                    if (node.nodeType !== 1) return;\n                    if (!node._x_marker) return;\n                    removedNodes.add(node);\n                });\n                mutations[i1].addedNodes.forEach((node)=>{\n                    if (node.nodeType !== 1) return;\n                    if (removedNodes.has(node)) {\n                        removedNodes.delete(node);\n                        return;\n                    }\n                    if (node._x_marker) return;\n                    addedNodes.push(node);\n                });\n            }\n            if (mutations[i1].type === \"attributes\") {\n                let el = mutations[i1].target;\n                let name = mutations[i1].attributeName;\n                let oldValue = mutations[i1].oldValue;\n                let add2 = ()=>{\n                    if (!addedAttributes.has(el)) addedAttributes.set(el, []);\n                    addedAttributes.get(el).push({\n                        name,\n                        value: el.getAttribute(name)\n                    });\n                };\n                let remove = ()=>{\n                    if (!removedAttributes.has(el)) removedAttributes.set(el, []);\n                    removedAttributes.get(el).push(name);\n                };\n                if (el.hasAttribute(name) && oldValue === null) {\n                    add2();\n                } else if (el.hasAttribute(name)) {\n                    remove();\n                    add2();\n                } else {\n                    remove();\n                }\n            }\n        }\n        removedAttributes.forEach((attrs, el)=>{\n            cleanupAttributes(el, attrs);\n        });\n        addedAttributes.forEach((attrs, el)=>{\n            onAttributeAddeds.forEach((i)=>i(el, attrs)\n            );\n        });\n        for (let node2 of removedNodes){\n            if (addedNodes.some((i)=>i.contains(node2)\n            )) continue;\n            onElRemoveds.forEach((i)=>i(node2)\n            );\n        }\n        for (let node1 of addedNodes){\n            if (!node1.isConnected) continue;\n            onElAddeds.forEach((i)=>i(node1)\n            );\n        }\n        addedNodes = null;\n        removedNodes = null;\n        addedAttributes = null;\n        removedAttributes = null;\n    }\n    // packages/alpinejs/src/scope.js\n    function scope(node) {\n        return mergeProxies(closestDataStack(node));\n    }\n    function addScopeToNode(node, data2, referenceNode) {\n        node._x_dataStack = [\n            data2,\n            ...closestDataStack(referenceNode || node)\n        ];\n        return ()=>{\n            node._x_dataStack = node._x_dataStack.filter((i)=>i !== data2\n            );\n        };\n    }\n    function closestDataStack(node) {\n        if (node._x_dataStack) return node._x_dataStack;\n        if (typeof ShadowRoot === \"function\" && node instanceof ShadowRoot) {\n            return closestDataStack(node.host);\n        }\n        if (!node.parentNode) {\n            return [];\n        }\n        return closestDataStack(node.parentNode);\n    }\n    function mergeProxies(objects) {\n        return new Proxy({\n            objects\n        }, mergeProxyTrap);\n    }\n    var mergeProxyTrap = {\n        ownKeys ({ objects  }) {\n            return Array.from(new Set(objects.flatMap((i)=>Object.keys(i)\n            )));\n        },\n        has ({ objects  }, name) {\n            if (name == Symbol.unscopables) return false;\n            return objects.some((obj)=>Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name)\n            );\n        },\n        get ({ objects  }, name, thisProxy) {\n            if (name == \"toJSON\") return collapseProxies;\n            return Reflect.get(objects.find((obj)=>Reflect.has(obj, name)\n            ) || {}, name, thisProxy);\n        },\n        set ({ objects  }, name, value, thisProxy) {\n            const target = objects.find((obj)=>Object.prototype.hasOwnProperty.call(obj, name)\n            ) || objects[objects.length - 1];\n            const descriptor = Object.getOwnPropertyDescriptor(target, name);\n            if ((descriptor === null || descriptor === void 0 ? void 0 : descriptor.set) && (descriptor === null || descriptor === void 0 ? void 0 : descriptor.get)) return descriptor.set.call(thisProxy, value) || true;\n            return Reflect.set(target, name, value);\n        }\n    };\n    function collapseProxies() {\n        let keys = Reflect.ownKeys(this);\n        return keys.reduce((acc, key)=>{\n            acc[key] = Reflect.get(this, key);\n            return acc;\n        }, {});\n    }\n    // packages/alpinejs/src/interceptor.js\n    function initInterceptors(data2) {\n        let isObject2 = (val)=>typeof val === \"object\" && !Array.isArray(val) && val !== null\n        ;\n        let recurse = (obj, basePath = \"\")=>{\n            Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value , enumerable  }])=>{\n                if (enumerable === false || value === void 0) return;\n                if (typeof value === \"object\" && value !== null && value.__v_skip) return;\n                let path = basePath === \"\" ? key : `${basePath}.${key}`;\n                if (typeof value === \"object\" && value !== null && value._x_interceptor) {\n                    obj[key] = value.initialize(data2, path, key);\n                } else {\n                    if (isObject2(value) && value !== obj && !(value instanceof Element)) {\n                        recurse(value, path);\n                    }\n                }\n            });\n        };\n        return recurse(data2);\n    }\n    function interceptor(callback, mutateObj = ()=>{}) {\n        let obj = {\n            initialValue: void 0,\n            _x_interceptor: true,\n            initialize (data2, path, key) {\n                return callback(this.initialValue, ()=>get(data2, path)\n                , (value)=>set(data2, path, value)\n                , path, key);\n            }\n        };\n        mutateObj(obj);\n        return (initialValue)=>{\n            if (typeof initialValue === \"object\" && initialValue !== null && initialValue._x_interceptor) {\n                let initialize = obj.initialize.bind(obj);\n                obj.initialize = (data2, path, key)=>{\n                    let innerValue = initialValue.initialize(data2, path, key);\n                    obj.initialValue = innerValue;\n                    return initialize(data2, path, key);\n                };\n            } else {\n                obj.initialValue = initialValue;\n            }\n            return obj;\n        };\n    }\n    function get(obj, path) {\n        return path.split(\".\").reduce((carry, segment)=>carry[segment]\n        , obj);\n    }\n    function set(obj, path, value) {\n        if (typeof path === \"string\") path = path.split(\".\");\n        if (path.length === 1) obj[path[0]] = value;\n        else if (path.length === 0) throw error;\n        else {\n            if (obj[path[0]]) return set(obj[path[0]], path.slice(1), value);\n            else {\n                obj[path[0]] = {};\n                return set(obj[path[0]], path.slice(1), value);\n            }\n        }\n    }\n    // packages/alpinejs/src/magics.js\n    var magics = {};\n    function magic(name, callback) {\n        magics[name] = callback;\n    }\n    function injectMagics(obj, el) {\n        let memoizedUtilities = getUtilities(el);\n        Object.entries(magics).forEach(([name, callback])=>{\n            Object.defineProperty(obj, `$${name}`, {\n                get () {\n                    return callback(el, memoizedUtilities);\n                },\n                enumerable: false\n            });\n        });\n        return obj;\n    }\n    function getUtilities(el) {\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        let utils = {\n            interceptor,\n            ...utilities\n        };\n        onElRemoved(el, cleanup2);\n        return utils;\n    }\n    // packages/alpinejs/src/utils/error.js\n    function tryCatch(el, expression, callback, ...args) {\n        try {\n            return callback(...args);\n        } catch (e) {\n            handleError(e, el, expression);\n        }\n    }\n    function handleError(error2, el, expression = void 0) {\n        error2 = Object.assign(error2 !== null && error2 !== void 0 ? error2 : {\n            message: \"No error message given.\"\n        }, {\n            el,\n            expression\n        });\n        console.warn(`Alpine Expression Error: ${error2.message}\n\n${expression ? 'Expression: \"' + expression + '\"\\n\\n' : \"\"}`, el);\n        setTimeout(()=>{\n            throw error2;\n        }, 0);\n    }\n    // packages/alpinejs/src/evaluator.js\n    var shouldAutoEvaluateFunctions = true;\n    function dontAutoEvaluateFunctions(callback) {\n        let cache = shouldAutoEvaluateFunctions;\n        shouldAutoEvaluateFunctions = false;\n        let result = callback();\n        shouldAutoEvaluateFunctions = cache;\n        return result;\n    }\n    function evaluate(el, expression, extras = {}) {\n        let result;\n        evaluateLater(el, expression)((value)=>result = value\n        , extras);\n        return result;\n    }\n    function evaluateLater(...args) {\n        return theEvaluatorFunction(...args);\n    }\n    var theEvaluatorFunction = normalEvaluator;\n    function setEvaluator(newEvaluator) {\n        theEvaluatorFunction = newEvaluator;\n    }\n    function normalEvaluator(el, expression) {\n        let overriddenMagics = {};\n        injectMagics(overriddenMagics, el);\n        let dataStack = [\n            overriddenMagics,\n            ...closestDataStack(el)\n        ];\n        let evaluator = typeof expression === \"function\" ? generateEvaluatorFromFunction(dataStack, expression) : generateEvaluatorFromString(dataStack, expression, el);\n        return tryCatch.bind(null, el, expression, evaluator);\n    }\n    function generateEvaluatorFromFunction(dataStack, func) {\n        return (receiver = ()=>{}, { scope: scope2 = {} , params =[]  } = {})=>{\n            let result = func.apply(mergeProxies([\n                scope2,\n                ...dataStack\n            ]), params);\n            runIfTypeOfFunction(receiver, result);\n        };\n    }\n    var evaluatorMemo = {};\n    function generateFunctionFromString(expression, el) {\n        if (evaluatorMemo[expression]) {\n            return evaluatorMemo[expression];\n        }\n        let AsyncFunction = Object.getPrototypeOf(async function() {}).constructor;\n        let rightSideSafeExpression = /^[\\n\\s]*if.*\\(.*\\)/.test(expression.trim()) || /^(let|const)\\s/.test(expression.trim()) ? `(async()=>{ ${expression} })()` : expression;\n        const safeAsyncFunction = ()=>{\n            try {\n                let func2 = new AsyncFunction([\n                    \"__self\",\n                    \"scope\"\n                ], `with (scope) { __self.result = ${rightSideSafeExpression} }; __self.finished = true; return __self.result;`);\n                Object.defineProperty(func2, \"name\", {\n                    value: `[Alpine] ${expression}`\n                });\n                return func2;\n            } catch (error2) {\n                handleError(error2, el, expression);\n                return Promise.resolve();\n            }\n        };\n        let func = safeAsyncFunction();\n        evaluatorMemo[expression] = func;\n        return func;\n    }\n    function generateEvaluatorFromString(dataStack, expression, el) {\n        let func = generateFunctionFromString(expression, el);\n        return (receiver = ()=>{}, { scope: scope2 = {} , params =[]  } = {})=>{\n            func.result = void 0;\n            func.finished = false;\n            let completeScope = mergeProxies([\n                scope2,\n                ...dataStack\n            ]);\n            if (typeof func === \"function\") {\n                let promise = func(func, completeScope).catch((error2)=>handleError(error2, el, expression)\n                );\n                if (func.finished) {\n                    runIfTypeOfFunction(receiver, func.result, completeScope, params, el);\n                    func.result = void 0;\n                } else {\n                    promise.then((result)=>{\n                        runIfTypeOfFunction(receiver, result, completeScope, params, el);\n                    }).catch((error2)=>handleError(error2, el, expression)\n                    ).finally(()=>func.result = void 0\n                    );\n                }\n            }\n        };\n    }\n    function runIfTypeOfFunction(receiver, value, scope2, params, el) {\n        if (shouldAutoEvaluateFunctions && typeof value === \"function\") {\n            let result = value.apply(scope2, params);\n            if (result instanceof Promise) {\n                result.then((i)=>runIfTypeOfFunction(receiver, i, scope2, params)\n                ).catch((error2)=>handleError(error2, el, value)\n                );\n            } else {\n                receiver(result);\n            }\n        } else if (typeof value === \"object\" && value instanceof Promise) {\n            value.then((i)=>receiver(i)\n            );\n        } else {\n            receiver(value);\n        }\n    }\n    // packages/alpinejs/src/directives.js\n    var prefixAsString = \"x-\";\n    function prefix(subject = \"\") {\n        return prefixAsString + subject;\n    }\n    function setPrefix(newPrefix) {\n        prefixAsString = newPrefix;\n    }\n    var directiveHandlers = {};\n    function directive(name, callback) {\n        directiveHandlers[name] = callback;\n        return {\n            before (directive2) {\n                if (!directiveHandlers[directive2]) {\n                    console.warn(String.raw`Cannot find directive \\`${directive2}\\`. \\`${name}\\` will use the default order of execution`);\n                    return;\n                }\n                const pos = directiveOrder.indexOf(directive2);\n                directiveOrder.splice(pos >= 0 ? pos : directiveOrder.indexOf(\"DEFAULT\"), 0, name);\n            }\n        };\n    }\n    function directiveExists(name) {\n        return Object.keys(directiveHandlers).includes(name);\n    }\n    function directives(el, attributes, originalAttributeOverride) {\n        attributes = Array.from(attributes);\n        if (el._x_virtualDirectives) {\n            let vAttributes = Object.entries(el._x_virtualDirectives).map(([name, value])=>({\n                    name,\n                    value\n                })\n            );\n            let staticAttributes = attributesOnly(vAttributes);\n            vAttributes = vAttributes.map((attribute)=>{\n                if (staticAttributes.find((attr)=>attr.name === attribute.name\n                )) {\n                    return {\n                        name: `x-bind:${attribute.name}`,\n                        value: `\"${attribute.value}\"`\n                    };\n                }\n                return attribute;\n            });\n            attributes = attributes.concat(vAttributes);\n        }\n        let transformedAttributeMap = {};\n        let directives2 = attributes.map(toTransformedAttributes((newName, oldName)=>transformedAttributeMap[newName] = oldName\n        )).filter(outNonAlpineAttributes).map(toParsedDirectives(transformedAttributeMap, originalAttributeOverride)).sort(byPriority);\n        return directives2.map((directive2)=>{\n            return getDirectiveHandler(el, directive2);\n        });\n    }\n    function attributesOnly(attributes) {\n        return Array.from(attributes).map(toTransformedAttributes()).filter((attr)=>!outNonAlpineAttributes(attr)\n        );\n    }\n    var isDeferringHandlers = false;\n    var directiveHandlerStacks = /* @__PURE__ */ new Map();\n    var currentHandlerStackKey = Symbol();\n    function deferHandlingDirectives(callback) {\n        isDeferringHandlers = true;\n        let key = Symbol();\n        currentHandlerStackKey = key;\n        directiveHandlerStacks.set(key, []);\n        let flushHandlers = ()=>{\n            while(directiveHandlerStacks.get(key).length)directiveHandlerStacks.get(key).shift()();\n            directiveHandlerStacks.delete(key);\n        };\n        let stopDeferring = ()=>{\n            isDeferringHandlers = false;\n            flushHandlers();\n        };\n        callback(flushHandlers);\n        stopDeferring();\n    }\n    function getElementBoundUtilities(el) {\n        let cleanups = [];\n        let cleanup2 = (callback)=>cleanups.push(callback)\n        ;\n        let [effect3, cleanupEffect] = elementBoundEffect(el);\n        cleanups.push(cleanupEffect);\n        let utilities = {\n            Alpine: alpine_default,\n            effect: effect3,\n            cleanup: cleanup2,\n            evaluateLater: evaluateLater.bind(evaluateLater, el),\n            evaluate: evaluate.bind(evaluate, el)\n        };\n        let doCleanup = ()=>cleanups.forEach((i)=>i()\n            )\n        ;\n        return [\n            utilities,\n            doCleanup\n        ];\n    }\n    function getDirectiveHandler(el, directive2) {\n        let noop = ()=>{};\n        let handler4 = directiveHandlers[directive2.type] || noop;\n        let [utilities, cleanup2] = getElementBoundUtilities(el);\n        onAttributeRemoved(el, directive2.original, cleanup2);\n        let fullHandler = ()=>{\n            if (el._x_ignore || el._x_ignoreSelf) return;\n            handler4.inline && handler4.inline(el, directive2, utilities);\n            handler4 = handler4.bind(handler4, el, directive2, utilities);\n            isDeferringHandlers ? directiveHandlerStacks.get(currentHandlerStackKey).push(handler4) : handler4();\n        };\n        fullHandler.runCleanups = cleanup2;\n        return fullHandler;\n    }\n    var startingWith = (subject, replacement)=>({ name , value  })=>{\n            if (name.startsWith(subject)) name = name.replace(subject, replacement);\n            return {\n                name,\n                value\n            };\n        }\n    ;\n    var into = (i)=>i\n    ;\n    function toTransformedAttributes(callback = ()=>{}) {\n        return ({ name , value  })=>{\n            let { name: newName , value: newValue  } = attributeTransformers.reduce((carry, transform)=>{\n                return transform(carry);\n            }, {\n                name,\n                value\n            });\n            if (newName !== name) callback(newName, name);\n            return {\n                name: newName,\n                value: newValue\n            };\n        };\n    }\n    var attributeTransformers = [];\n    function mapAttributes(callback) {\n        attributeTransformers.push(callback);\n    }\n    function outNonAlpineAttributes({ name  }) {\n        return alpineAttributeRegex().test(name);\n    }\n    var alpineAttributeRegex = ()=>new RegExp(`^${prefixAsString}([^:^.]+)\\\\b`)\n    ;\n    function toParsedDirectives(transformedAttributeMap, originalAttributeOverride) {\n        return ({ name , value  })=>{\n            let typeMatch = name.match(alpineAttributeRegex());\n            let valueMatch = name.match(/:([a-zA-Z0-9\\-_:]+)/);\n            let modifiers = name.match(/\\.[^.\\]]+(?=[^\\]]*$)/g) || [];\n            let original = originalAttributeOverride || transformedAttributeMap[name] || name;\n            return {\n                type: typeMatch ? typeMatch[1] : null,\n                value: valueMatch ? valueMatch[1] : null,\n                modifiers: modifiers.map((i)=>i.replace(\".\", \"\")\n                ),\n                expression: value,\n                original\n            };\n        };\n    }\n    var DEFAULT = \"DEFAULT\";\n    var directiveOrder = [\n        \"ignore\",\n        \"ref\",\n        \"data\",\n        \"id\",\n        \"anchor\",\n        \"bind\",\n        \"init\",\n        \"for\",\n        \"model\",\n        \"modelable\",\n        \"transition\",\n        \"show\",\n        \"if\",\n        DEFAULT,\n        \"teleport\"\n    ];\n    function byPriority(a, b) {\n        let typeA = directiveOrder.indexOf(a.type) === -1 ? DEFAULT : a.type;\n        let typeB = directiveOrder.indexOf(b.type) === -1 ? DEFAULT : b.type;\n        return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB);\n    }\n    // packages/alpinejs/src/utils/dispatch.js\n    function dispatch(el, name, detail = {}) {\n        el.dispatchEvent(new CustomEvent(name, {\n            detail,\n            bubbles: true,\n            // Allows events to pass the shadow DOM barrier.\n            composed: true,\n            cancelable: true\n        }));\n    }\n    // packages/alpinejs/src/utils/walk.js\n    function walk(el, callback) {\n        if (typeof ShadowRoot === \"function\" && el instanceof ShadowRoot) {\n            Array.from(el.children).forEach((el2)=>walk(el2, callback)\n            );\n            return;\n        }\n        let skip = false;\n        callback(el, ()=>skip = true\n        );\n        if (skip) return;\n        let node = el.firstElementChild;\n        while(node){\n            walk(node, callback);\n            node = node.nextElementSibling;\n        }\n    }\n    // packages/alpinejs/src/utils/warn.js\n    function warn(message, ...args) {\n        console.warn(`Alpine Warning: ${message}`, ...args);\n    }\n    // packages/alpinejs/src/lifecycle.js\n    var started = false;\n    function start$1() {\n        if (started) warn(\"Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.\");\n        started = true;\n        if (!document.body) warn(\"Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?\");\n        dispatch(document, \"alpine:init\");\n        dispatch(document, \"alpine:initializing\");\n        startObservingMutations();\n        onElAdded((el)=>initTree(el, walk)\n        );\n        onElRemoved((el)=>destroyTree(el)\n        );\n        onAttributesAdded((el, attrs)=>{\n            directives(el, attrs).forEach((handle)=>handle()\n            );\n        });\n        let outNestedComponents = (el)=>!closestRoot(el.parentElement, true)\n        ;\n        Array.from(document.querySelectorAll(allSelectors().join(\",\"))).filter(outNestedComponents).forEach((el)=>{\n            initTree(el);\n        });\n        dispatch(document, \"alpine:initialized\");\n        setTimeout(()=>{\n            warnAboutMissingPlugins();\n        });\n    }\n    var rootSelectorCallbacks = [];\n    var initSelectorCallbacks = [];\n    function rootSelectors() {\n        return rootSelectorCallbacks.map((fn)=>fn()\n        );\n    }\n    function allSelectors() {\n        return rootSelectorCallbacks.concat(initSelectorCallbacks).map((fn)=>fn()\n        );\n    }\n    function addRootSelector(selectorCallback) {\n        rootSelectorCallbacks.push(selectorCallback);\n    }\n    function addInitSelector(selectorCallback) {\n        initSelectorCallbacks.push(selectorCallback);\n    }\n    function closestRoot(el, includeInitSelectors = false) {\n        return findClosest(el, (element)=>{\n            const selectors = includeInitSelectors ? allSelectors() : rootSelectors();\n            if (selectors.some((selector)=>element.matches(selector)\n            )) return true;\n        });\n    }\n    function findClosest(el, callback) {\n        if (!el) return;\n        if (callback(el)) return el;\n        if (el._x_teleportBack) el = el._x_teleportBack;\n        if (!el.parentElement) return;\n        return findClosest(el.parentElement, callback);\n    }\n    function isRoot(el) {\n        return rootSelectors().some((selector)=>el.matches(selector)\n        );\n    }\n    var initInterceptors2 = [];\n    function interceptInit(callback) {\n        initInterceptors2.push(callback);\n    }\n    var markerDispenser = 1;\n    function initTree(el, walker = walk, intercept = ()=>{}) {\n        if (findClosest(el, (i)=>i._x_ignore\n        )) return;\n        deferHandlingDirectives(()=>{\n            walker(el, (el2, skip)=>{\n                if (el2._x_marker) return;\n                intercept(el2, skip);\n                initInterceptors2.forEach((i)=>i(el2, skip)\n                );\n                directives(el2, el2.attributes).forEach((handle)=>handle()\n                );\n                if (!el2._x_ignore) el2._x_marker = markerDispenser++;\n                el2._x_ignore && skip();\n            });\n        });\n    }\n    function destroyTree(root, walker = walk) {\n        walker(root, (el)=>{\n            cleanupElement(el);\n            cleanupAttributes(el);\n            delete el._x_marker;\n        });\n    }\n    function warnAboutMissingPlugins() {\n        let pluginDirectives = [\n            [\n                \"ui\",\n                \"dialog\",\n                [\n                    \"[x-dialog], [x-popover]\"\n                ]\n            ],\n            [\n                \"anchor\",\n                \"anchor\",\n                [\n                    \"[x-anchor]\"\n                ]\n            ],\n            [\n                \"sort\",\n                \"sort\",\n                [\n                    \"[x-sort]\"\n                ]\n            ]\n        ];\n        pluginDirectives.forEach(([plugin2, directive2, selectors])=>{\n            if (directiveExists(directive2)) return;\n            selectors.some((selector)=>{\n                if (document.querySelector(selector)) {\n                    warn(`found \"${selector}\", but missing ${plugin2} plugin`);\n                    return true;\n                }\n            });\n        });\n    }\n    // packages/alpinejs/src/nextTick.js\n    var tickStack = [];\n    var isHolding = false;\n    function nextTick(callback = ()=>{}) {\n        queueMicrotask(()=>{\n            isHolding || setTimeout(()=>{\n                releaseNextTicks();\n            });\n        });\n        return new Promise((res)=>{\n            tickStack.push(()=>{\n                callback();\n                res();\n            });\n        });\n    }\n    function releaseNextTicks() {\n        isHolding = false;\n        while(tickStack.length)tickStack.shift()();\n    }\n    function holdNextTicks() {\n        isHolding = true;\n    }\n    // packages/alpinejs/src/utils/classes.js\n    function setClasses(el, value) {\n        if (Array.isArray(value)) {\n            return setClassesFromString(el, value.join(\" \"));\n        } else if (typeof value === \"object\" && value !== null) {\n            return setClassesFromObject(el, value);\n        } else if (typeof value === \"function\") {\n            return setClasses(el, value());\n        }\n        return setClassesFromString(el, value);\n    }\n    function setClassesFromString(el, classString) {\n        let missingClasses = (classString2)=>classString2.split(\" \").filter((i)=>!el.classList.contains(i)\n            ).filter(Boolean)\n        ;\n        let addClassesAndReturnUndo = (classes)=>{\n            el.classList.add(...classes);\n            return ()=>{\n                el.classList.remove(...classes);\n            };\n        };\n        classString = classString === true ? classString = \"\" : classString || \"\";\n        return addClassesAndReturnUndo(missingClasses(classString));\n    }\n    function setClassesFromObject(el, classObject) {\n        let split = (classString)=>classString.split(\" \").filter(Boolean)\n        ;\n        let forAdd = Object.entries(classObject).flatMap(([classString, bool])=>bool ? split(classString) : false\n        ).filter(Boolean);\n        let forRemove = Object.entries(classObject).flatMap(([classString, bool])=>!bool ? split(classString) : false\n        ).filter(Boolean);\n        let added = [];\n        let removed = [];\n        forRemove.forEach((i)=>{\n            if (el.classList.contains(i)) {\n                el.classList.remove(i);\n                removed.push(i);\n            }\n        });\n        forAdd.forEach((i)=>{\n            if (!el.classList.contains(i)) {\n                el.classList.add(i);\n                added.push(i);\n            }\n        });\n        return ()=>{\n            removed.forEach((i)=>el.classList.add(i)\n            );\n            added.forEach((i)=>el.classList.remove(i)\n            );\n        };\n    }\n    // packages/alpinejs/src/utils/styles.js\n    function setStyles(el, value) {\n        if (typeof value === \"object\" && value !== null) {\n            return setStylesFromObject(el, value);\n        }\n        return setStylesFromString(el, value);\n    }\n    function setStylesFromObject(el, value) {\n        let previousStyles = {};\n        Object.entries(value).forEach(([key, value2])=>{\n            previousStyles[key] = el.style[key];\n            if (!key.startsWith(\"--\")) {\n                key = kebabCase(key);\n            }\n            el.style.setProperty(key, value2);\n        });\n        setTimeout(()=>{\n            if (el.style.length === 0) {\n                el.removeAttribute(\"style\");\n            }\n        });\n        return ()=>{\n            setStyles(el, previousStyles);\n        };\n    }\n    function setStylesFromString(el, value) {\n        let cache = el.getAttribute(\"style\", value);\n        el.setAttribute(\"style\", value);\n        return ()=>{\n            el.setAttribute(\"style\", cache || \"\");\n        };\n    }\n    function kebabCase(subject) {\n        return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n    }\n    // packages/alpinejs/src/utils/once.js\n    function once(callback, fallback = ()=>{}) {\n        let called = false;\n        return function() {\n            if (!called) {\n                called = true;\n                callback.apply(this, arguments);\n            } else {\n                fallback.apply(this, arguments);\n            }\n        };\n    }\n    // packages/alpinejs/src/directives/x-transition.js\n    directive(\"transition\", (el, { value , modifiers , expression  }, { evaluate: evaluate2  })=>{\n        if (typeof expression === \"function\") expression = evaluate2(expression);\n        if (expression === false) return;\n        if (!expression || typeof expression === \"boolean\") {\n            registerTransitionsFromHelper(el, modifiers, value);\n        } else {\n            registerTransitionsFromClassString(el, expression, value);\n        }\n    });\n    function registerTransitionsFromClassString(el, classString, stage) {\n        registerTransitionObject(el, setClasses, \"\");\n        let directiveStorageMap = {\n            \"enter\": (classes)=>{\n                el._x_transition.enter.during = classes;\n            },\n            \"enter-start\": (classes)=>{\n                el._x_transition.enter.start = classes;\n            },\n            \"enter-end\": (classes)=>{\n                el._x_transition.enter.end = classes;\n            },\n            \"leave\": (classes)=>{\n                el._x_transition.leave.during = classes;\n            },\n            \"leave-start\": (classes)=>{\n                el._x_transition.leave.start = classes;\n            },\n            \"leave-end\": (classes)=>{\n                el._x_transition.leave.end = classes;\n            }\n        };\n        directiveStorageMap[stage](classString);\n    }\n    function registerTransitionsFromHelper(el, modifiers, stage) {\n        registerTransitionObject(el, setStyles);\n        let doesntSpecify = !modifiers.includes(\"in\") && !modifiers.includes(\"out\") && !stage;\n        let transitioningIn = doesntSpecify || modifiers.includes(\"in\") || [\n            \"enter\"\n        ].includes(stage);\n        let transitioningOut = doesntSpecify || modifiers.includes(\"out\") || [\n            \"leave\"\n        ].includes(stage);\n        if (modifiers.includes(\"in\") && !doesntSpecify) {\n            modifiers = modifiers.filter((i, index)=>index < modifiers.indexOf(\"out\")\n            );\n        }\n        if (modifiers.includes(\"out\") && !doesntSpecify) {\n            modifiers = modifiers.filter((i, index)=>index > modifiers.indexOf(\"out\")\n            );\n        }\n        let wantsAll = !modifiers.includes(\"opacity\") && !modifiers.includes(\"scale\");\n        let wantsOpacity = wantsAll || modifiers.includes(\"opacity\");\n        let wantsScale = wantsAll || modifiers.includes(\"scale\");\n        let opacityValue = wantsOpacity ? 0 : 1;\n        let scaleValue = wantsScale ? modifierValue(modifiers, \"scale\", 95) / 100 : 1;\n        let delay = modifierValue(modifiers, \"delay\", 0) / 1e3;\n        let origin = modifierValue(modifiers, \"origin\", \"center\");\n        let property = \"opacity, transform\";\n        let durationIn = modifierValue(modifiers, \"duration\", 150) / 1e3;\n        let durationOut = modifierValue(modifiers, \"duration\", 75) / 1e3;\n        let easing = `cubic-bezier(0.4, 0.0, 0.2, 1)`;\n        if (transitioningIn) {\n            el._x_transition.enter.during = {\n                transformOrigin: origin,\n                transitionDelay: `${delay}s`,\n                transitionProperty: property,\n                transitionDuration: `${durationIn}s`,\n                transitionTimingFunction: easing\n            };\n            el._x_transition.enter.start = {\n                opacity: opacityValue,\n                transform: `scale(${scaleValue})`\n            };\n            el._x_transition.enter.end = {\n                opacity: 1,\n                transform: `scale(1)`\n            };\n        }\n        if (transitioningOut) {\n            el._x_transition.leave.during = {\n                transformOrigin: origin,\n                transitionDelay: `${delay}s`,\n                transitionProperty: property,\n                transitionDuration: `${durationOut}s`,\n                transitionTimingFunction: easing\n            };\n            el._x_transition.leave.start = {\n                opacity: 1,\n                transform: `scale(1)`\n            };\n            el._x_transition.leave.end = {\n                opacity: opacityValue,\n                transform: `scale(${scaleValue})`\n            };\n        }\n    }\n    function registerTransitionObject(el, setFunction, defaultValue = {}) {\n        if (!el._x_transition) el._x_transition = {\n            enter: {\n                during: defaultValue,\n                start: defaultValue,\n                end: defaultValue\n            },\n            leave: {\n                during: defaultValue,\n                start: defaultValue,\n                end: defaultValue\n            },\n            in (before = ()=>{}, after = ()=>{}) {\n                transition(el, setFunction, {\n                    during: this.enter.during,\n                    start: this.enter.start,\n                    end: this.enter.end\n                }, before, after);\n            },\n            out (before = ()=>{}, after = ()=>{}) {\n                transition(el, setFunction, {\n                    during: this.leave.during,\n                    start: this.leave.start,\n                    end: this.leave.end\n                }, before, after);\n            }\n        };\n    }\n    window.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value, show, hide) {\n        const nextTick2 = document.visibilityState === \"visible\" ? requestAnimationFrame : setTimeout;\n        let clickAwayCompatibleShow = ()=>nextTick2(show)\n        ;\n        if (value) {\n            if (el._x_transition && (el._x_transition.enter || el._x_transition.leave)) {\n                el._x_transition.enter && (Object.entries(el._x_transition.enter.during).length || Object.entries(el._x_transition.enter.start).length || Object.entries(el._x_transition.enter.end).length) ? el._x_transition.in(show) : clickAwayCompatibleShow();\n            } else {\n                el._x_transition ? el._x_transition.in(show) : clickAwayCompatibleShow();\n            }\n            return;\n        }\n        el._x_hidePromise = el._x_transition ? new Promise((resolve, reject)=>{\n            el._x_transition.out(()=>{}, ()=>resolve(hide)\n            );\n            el._x_transitioning && el._x_transitioning.beforeCancel(()=>reject({\n                    isFromCancelledTransition: true\n                })\n            );\n        }) : Promise.resolve(hide);\n        queueMicrotask(()=>{\n            let closest = closestHide(el);\n            if (closest) {\n                if (!closest._x_hideChildren) closest._x_hideChildren = [];\n                closest._x_hideChildren.push(el);\n            } else {\n                nextTick2(()=>{\n                    let hideAfterChildren = (el2)=>{\n                        let carry = Promise.all([\n                            el2._x_hidePromise,\n                            ...(el2._x_hideChildren || []).map(hideAfterChildren)\n                        ]).then(([i])=>{\n                            return i === null || i === void 0 ? void 0 : i();\n                        });\n                        delete el2._x_hidePromise;\n                        delete el2._x_hideChildren;\n                        return carry;\n                    };\n                    hideAfterChildren(el).catch((e)=>{\n                        if (!e.isFromCancelledTransition) throw e;\n                    });\n                });\n            }\n        });\n    };\n    function closestHide(el) {\n        let parent = el.parentNode;\n        if (!parent) return;\n        return parent._x_hidePromise ? parent : closestHide(parent);\n    }\n    function transition(el, setFunction, { during , start: start2 , end  } = {}, before = ()=>{}, after = ()=>{}) {\n        if (el._x_transitioning) el._x_transitioning.cancel();\n        if (Object.keys(during).length === 0 && Object.keys(start2).length === 0 && Object.keys(end).length === 0) {\n            before();\n            after();\n            return;\n        }\n        let undoStart, undoDuring, undoEnd;\n        performTransition(el, {\n            start () {\n                undoStart = setFunction(el, start2);\n            },\n            during () {\n                undoDuring = setFunction(el, during);\n            },\n            before,\n            end () {\n                undoStart();\n                undoEnd = setFunction(el, end);\n            },\n            after,\n            cleanup () {\n                undoDuring();\n                undoEnd();\n            }\n        });\n    }\n    function performTransition(el, stages) {\n        let interrupted, reachedBefore, reachedEnd;\n        let finish = once(()=>{\n            mutateDom(()=>{\n                interrupted = true;\n                if (!reachedBefore) stages.before();\n                if (!reachedEnd) {\n                    stages.end();\n                    releaseNextTicks();\n                }\n                stages.after();\n                if (el.isConnected) stages.cleanup();\n                delete el._x_transitioning;\n            });\n        });\n        el._x_transitioning = {\n            beforeCancels: [],\n            beforeCancel (callback) {\n                this.beforeCancels.push(callback);\n            },\n            cancel: once(function() {\n                while(this.beforeCancels.length){\n                    this.beforeCancels.shift()();\n                }\n                finish();\n            }),\n            finish\n        };\n        mutateDom(()=>{\n            stages.start();\n            stages.during();\n        });\n        holdNextTicks();\n        requestAnimationFrame(()=>{\n            if (interrupted) return;\n            let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n            let delay = Number(getComputedStyle(el).transitionDelay.replace(/,.*/, \"\").replace(\"s\", \"\")) * 1e3;\n            if (duration === 0) duration = Number(getComputedStyle(el).animationDuration.replace(\"s\", \"\")) * 1e3;\n            mutateDom(()=>{\n                stages.before();\n            });\n            reachedBefore = true;\n            requestAnimationFrame(()=>{\n                if (interrupted) return;\n                mutateDom(()=>{\n                    stages.end();\n                });\n                releaseNextTicks();\n                setTimeout(el._x_transitioning.finish, duration + delay);\n                reachedEnd = true;\n            });\n        });\n    }\n    function modifierValue(modifiers, key, fallback) {\n        if (modifiers.indexOf(key) === -1) return fallback;\n        const rawValue = modifiers[modifiers.indexOf(key) + 1];\n        if (!rawValue) return fallback;\n        if (key === \"scale\") {\n            if (isNaN(rawValue)) return fallback;\n        }\n        if (key === \"duration\" || key === \"delay\") {\n            let match = rawValue.match(/([0-9]+)ms/);\n            if (match) return match[1];\n        }\n        if (key === \"origin\") {\n            if ([\n                \"top\",\n                \"right\",\n                \"left\",\n                \"center\",\n                \"bottom\"\n            ].includes(modifiers[modifiers.indexOf(key) + 2])) {\n                return [\n                    rawValue,\n                    modifiers[modifiers.indexOf(key) + 2]\n                ].join(\" \");\n            }\n        }\n        return rawValue;\n    }\n    // packages/alpinejs/src/clone.js\n    var isCloning = false;\n    function skipDuringClone(callback, fallback = ()=>{}) {\n        return (...args)=>isCloning ? fallback(...args) : callback(...args)\n        ;\n    }\n    function onlyDuringClone(callback) {\n        return (...args)=>isCloning && callback(...args)\n        ;\n    }\n    var interceptors = [];\n    function interceptClone(callback) {\n        interceptors.push(callback);\n    }\n    function cloneNode(from, to) {\n        interceptors.forEach((i)=>i(from, to)\n        );\n        isCloning = true;\n        dontRegisterReactiveSideEffects(()=>{\n            initTree(to, (el, callback)=>{\n                callback(el, ()=>{});\n            });\n        });\n        isCloning = false;\n    }\n    var isCloningLegacy = false;\n    function clone$1(oldEl, newEl) {\n        if (!newEl._x_dataStack) newEl._x_dataStack = oldEl._x_dataStack;\n        isCloning = true;\n        isCloningLegacy = true;\n        dontRegisterReactiveSideEffects(()=>{\n            cloneTree(newEl);\n        });\n        isCloning = false;\n        isCloningLegacy = false;\n    }\n    function cloneTree(el) {\n        let hasRunThroughFirstEl = false;\n        let shallowWalker = (el2, callback)=>{\n            walk(el2, (el3, skip)=>{\n                if (hasRunThroughFirstEl && isRoot(el3)) return skip();\n                hasRunThroughFirstEl = true;\n                callback(el3, skip);\n            });\n        };\n        initTree(el, shallowWalker);\n    }\n    function dontRegisterReactiveSideEffects(callback) {\n        let cache = effect;\n        overrideEffect((callback2, el)=>{\n            let storedEffect = cache(callback2);\n            release(storedEffect);\n            return ()=>{};\n        });\n        callback();\n        overrideEffect(cache);\n    }\n    // packages/alpinejs/src/utils/bind.js\n    function bind(el, name, value, modifiers = []) {\n        if (!el._x_bindings) el._x_bindings = reactive({});\n        el._x_bindings[name] = value;\n        name = modifiers.includes(\"camel\") ? camelCase(name) : name;\n        switch(name){\n            case \"value\":\n                bindInputValue(el, value);\n                break;\n            case \"style\":\n                bindStyles(el, value);\n                break;\n            case \"class\":\n                bindClasses(el, value);\n                break;\n            case \"selected\":\n            case \"checked\":\n                bindAttributeAndProperty(el, name, value);\n                break;\n            default:\n                bindAttribute(el, name, value);\n                break;\n        }\n    }\n    function bindInputValue(el, value) {\n        if (isRadio(el)) {\n            if (el.attributes.value === void 0) {\n                el.value = value;\n            }\n            if (window.fromModel) {\n                if (typeof value === \"boolean\") {\n                    el.checked = safeParseBoolean(el.value) === value;\n                } else {\n                    el.checked = checkedAttrLooseCompare(el.value, value);\n                }\n            }\n        } else if (isCheckbox(el)) {\n            if (Number.isInteger(value)) {\n                el.value = value;\n            } else if (!Array.isArray(value) && typeof value !== \"boolean\" && ![\n                null,\n                void 0\n            ].includes(value)) {\n                el.value = String(value);\n            } else {\n                if (Array.isArray(value)) {\n                    el.checked = value.some((val)=>checkedAttrLooseCompare(val, el.value)\n                    );\n                } else {\n                    el.checked = !!value;\n                }\n            }\n        } else if (el.tagName === \"SELECT\") {\n            updateSelect(el, value);\n        } else {\n            if (el.value === value) return;\n            el.value = value === void 0 ? \"\" : value;\n        }\n    }\n    function bindClasses(el, value) {\n        if (el._x_undoAddedClasses) el._x_undoAddedClasses();\n        el._x_undoAddedClasses = setClasses(el, value);\n    }\n    function bindStyles(el, value) {\n        if (el._x_undoAddedStyles) el._x_undoAddedStyles();\n        el._x_undoAddedStyles = setStyles(el, value);\n    }\n    function bindAttributeAndProperty(el, name, value) {\n        bindAttribute(el, name, value);\n        setPropertyIfChanged(el, name, value);\n    }\n    function bindAttribute(el, name, value) {\n        if ([\n            null,\n            void 0,\n            false\n        ].includes(value) && attributeShouldntBePreservedIfFalsy(name)) {\n            el.removeAttribute(name);\n        } else {\n            if (isBooleanAttr(name)) value = name;\n            setIfChanged(el, name, value);\n        }\n    }\n    function setIfChanged(el, attrName, value) {\n        if (el.getAttribute(attrName) != value) {\n            el.setAttribute(attrName, value);\n        }\n    }\n    function setPropertyIfChanged(el, propName, value) {\n        if (el[propName] !== value) {\n            el[propName] = value;\n        }\n    }\n    function updateSelect(el, value) {\n        const arrayWrappedValue = [].concat(value).map((value2)=>{\n            return value2 + \"\";\n        });\n        Array.from(el.options).forEach((option)=>{\n            option.selected = arrayWrappedValue.includes(option.value);\n        });\n    }\n    function camelCase(subject) {\n        return subject.toLowerCase().replace(/-(\\w)/g, (match, char)=>char.toUpperCase()\n        );\n    }\n    function checkedAttrLooseCompare(valueA, valueB) {\n        return valueA == valueB;\n    }\n    function safeParseBoolean(rawValue) {\n        if ([\n            1,\n            \"1\",\n            \"true\",\n            \"on\",\n            \"yes\",\n            true\n        ].includes(rawValue)) {\n            return true;\n        }\n        if ([\n            0,\n            \"0\",\n            \"false\",\n            \"off\",\n            \"no\",\n            false\n        ].includes(rawValue)) {\n            return false;\n        }\n        return rawValue ? Boolean(rawValue) : null;\n    }\n    var booleanAttributes = /* @__PURE__ */ new Set([\n        \"allowfullscreen\",\n        \"async\",\n        \"autofocus\",\n        \"autoplay\",\n        \"checked\",\n        \"controls\",\n        \"default\",\n        \"defer\",\n        \"disabled\",\n        \"formnovalidate\",\n        \"inert\",\n        \"ismap\",\n        \"itemscope\",\n        \"loop\",\n        \"multiple\",\n        \"muted\",\n        \"nomodule\",\n        \"novalidate\",\n        \"open\",\n        \"playsinline\",\n        \"readonly\",\n        \"required\",\n        \"reversed\",\n        \"selected\",\n        \"shadowrootclonable\",\n        \"shadowrootdelegatesfocus\",\n        \"shadowrootserializable\"\n    ]);\n    function isBooleanAttr(attrName) {\n        return booleanAttributes.has(attrName);\n    }\n    function attributeShouldntBePreservedIfFalsy(name) {\n        return ![\n            \"aria-pressed\",\n            \"aria-checked\",\n            \"aria-expanded\",\n            \"aria-selected\"\n        ].includes(name);\n    }\n    function getBinding(el, name, fallback) {\n        if (el._x_bindings && el._x_bindings[name] !== void 0) return el._x_bindings[name];\n        return getAttributeBinding(el, name, fallback);\n    }\n    function extractProp(el, name, fallback, extract = true) {\n        if (el._x_bindings && el._x_bindings[name] !== void 0) return el._x_bindings[name];\n        if (el._x_inlineBindings && el._x_inlineBindings[name] !== void 0) {\n            let binding = el._x_inlineBindings[name];\n            binding.extract = extract;\n            return dontAutoEvaluateFunctions(()=>{\n                return evaluate(el, binding.expression);\n            });\n        }\n        return getAttributeBinding(el, name, fallback);\n    }\n    function getAttributeBinding(el, name, fallback) {\n        let attr = el.getAttribute(name);\n        if (attr === null) return typeof fallback === \"function\" ? fallback() : fallback;\n        if (attr === \"\") return true;\n        if (isBooleanAttr(name)) {\n            return !![\n                name,\n                \"true\"\n            ].includes(attr);\n        }\n        return attr;\n    }\n    function isCheckbox(el) {\n        return el.type === \"checkbox\" || el.localName === \"ui-checkbox\" || el.localName === \"ui-switch\";\n    }\n    function isRadio(el) {\n        return el.type === \"radio\" || el.localName === \"ui-radio\";\n    }\n    // packages/alpinejs/src/utils/debounce.js\n    function debounce(func, wait) {\n        var timeout;\n        return function() {\n            var context = this, args = arguments;\n            var later = function() {\n                timeout = null;\n                func.apply(context, args);\n            };\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n        };\n    }\n    // packages/alpinejs/src/utils/throttle.js\n    function throttle(func, limit) {\n        let inThrottle;\n        return function() {\n            let context = this, args = arguments;\n            if (!inThrottle) {\n                func.apply(context, args);\n                inThrottle = true;\n                setTimeout(()=>inThrottle = false\n                , limit);\n            }\n        };\n    }\n    // packages/alpinejs/src/entangle.js\n    function entangle({ get: outerGet , set: outerSet  }, { get: innerGet , set: innerSet  }) {\n        let firstRun = true;\n        let outerHash;\n        let reference = effect(()=>{\n            let outer = outerGet();\n            let inner = innerGet();\n            if (firstRun) {\n                innerSet(cloneIfObject(outer));\n                firstRun = false;\n            } else {\n                let outerHashLatest = JSON.stringify(outer);\n                let innerHashLatest = JSON.stringify(inner);\n                if (outerHashLatest !== outerHash) {\n                    innerSet(cloneIfObject(outer));\n                } else if (outerHashLatest !== innerHashLatest) {\n                    outerSet(cloneIfObject(inner));\n                } else ;\n            }\n            outerHash = JSON.stringify(outerGet());\n            JSON.stringify(innerGet());\n        });\n        return ()=>{\n            release(reference);\n        };\n    }\n    function cloneIfObject(value) {\n        return typeof value === \"object\" ? JSON.parse(JSON.stringify(value)) : value;\n    }\n    // packages/alpinejs/src/plugin.js\n    function plugin(callback) {\n        let callbacks = Array.isArray(callback) ? callback : [\n            callback\n        ];\n        callbacks.forEach((i)=>i(alpine_default)\n        );\n    }\n    // packages/alpinejs/src/store.js\n    var stores = {};\n    var isReactive = false;\n    function store(name, value) {\n        if (!isReactive) {\n            stores = reactive(stores);\n            isReactive = true;\n        }\n        if (value === void 0) {\n            return stores[name];\n        }\n        stores[name] = value;\n        initInterceptors(stores[name]);\n        if (typeof value === \"object\" && value !== null && value.hasOwnProperty(\"init\") && typeof value.init === \"function\") {\n            stores[name].init();\n        }\n    }\n    function getStores() {\n        return stores;\n    }\n    // packages/alpinejs/src/binds.js\n    var binds = {};\n    function bind2(name, bindings) {\n        let getBindings = typeof bindings !== \"function\" ? ()=>bindings\n         : bindings;\n        if (name instanceof Element) {\n            return applyBindingsObject(name, getBindings());\n        } else {\n            binds[name] = getBindings;\n        }\n        return ()=>{};\n    }\n    function injectBindingProviders(obj) {\n        Object.entries(binds).forEach(([name, callback])=>{\n            Object.defineProperty(obj, name, {\n                get () {\n                    return (...args)=>{\n                        return callback(...args);\n                    };\n                }\n            });\n        });\n        return obj;\n    }\n    function applyBindingsObject(el, obj, original) {\n        let cleanupRunners = [];\n        while(cleanupRunners.length)cleanupRunners.pop()();\n        let attributes = Object.entries(obj).map(([name, value])=>({\n                name,\n                value\n            })\n        );\n        let staticAttributes = attributesOnly(attributes);\n        attributes = attributes.map((attribute)=>{\n            if (staticAttributes.find((attr)=>attr.name === attribute.name\n            )) {\n                return {\n                    name: `x-bind:${attribute.name}`,\n                    value: `\"${attribute.value}\"`\n                };\n            }\n            return attribute;\n        });\n        directives(el, attributes, original).map((handle)=>{\n            cleanupRunners.push(handle.runCleanups);\n            handle();\n        });\n        return ()=>{\n            while(cleanupRunners.length)cleanupRunners.pop()();\n        };\n    }\n    // packages/alpinejs/src/datas.js\n    var datas = {};\n    function data(name, callback) {\n        datas[name] = callback;\n    }\n    function injectDataProviders(obj, context) {\n        Object.entries(datas).forEach(([name, callback])=>{\n            Object.defineProperty(obj, name, {\n                get () {\n                    return (...args)=>{\n                        return callback.bind(context)(...args);\n                    };\n                },\n                enumerable: false\n            });\n        });\n        return obj;\n    }\n    // packages/alpinejs/src/alpine.js\n    var Alpine$1 = {\n        get reactive () {\n            return reactive;\n        },\n        get release () {\n            return release;\n        },\n        get effect () {\n            return effect;\n        },\n        get raw () {\n            return raw;\n        },\n        version: \"3.14.9\",\n        flushAndStopDeferringMutations,\n        dontAutoEvaluateFunctions,\n        disableEffectScheduling,\n        startObservingMutations,\n        stopObservingMutations,\n        setReactivityEngine,\n        onAttributeRemoved,\n        onAttributesAdded,\n        closestDataStack,\n        skipDuringClone,\n        onlyDuringClone,\n        addRootSelector,\n        addInitSelector,\n        interceptClone,\n        addScopeToNode,\n        deferMutations,\n        mapAttributes,\n        evaluateLater,\n        interceptInit,\n        setEvaluator,\n        mergeProxies,\n        extractProp,\n        findClosest,\n        onElRemoved,\n        closestRoot,\n        destroyTree,\n        interceptor,\n        // INTERNAL: not public API and is subject to change without major release.\n        transition,\n        // INTERNAL\n        setStyles,\n        // INTERNAL\n        mutateDom,\n        directive,\n        entangle,\n        throttle,\n        debounce,\n        evaluate,\n        initTree,\n        nextTick,\n        prefixed: prefix,\n        prefix: setPrefix,\n        plugin,\n        magic,\n        store,\n        start: start$1,\n        clone: clone$1,\n        // INTERNAL\n        cloneNode,\n        // INTERNAL\n        bound: getBinding,\n        $data: scope,\n        watch,\n        walk,\n        data,\n        bind: bind2\n    };\n    var alpine_default = Alpine$1;\n    // node_modules/@vue/shared/dist/shared.esm-bundler.js\n    function makeMap(str, expectsLowerCase) {\n        const map = /* @__PURE__ */ Object.create(null);\n        const list = str.split(\",\");\n        for(let i = 0; i < list.length; i++){\n            map[list[i]] = true;\n        }\n        return (val)=>!!map[val]\n        ;\n    }\n    var EMPTY_OBJ = Object.freeze({}) ;\n    var hasOwnProperty = Object.prototype.hasOwnProperty;\n    var hasOwn = (val, key)=>hasOwnProperty.call(val, key)\n    ;\n    var isArray = Array.isArray;\n    var isMap = (val)=>toTypeString(val) === \"[object Map]\"\n    ;\n    var isString = (val)=>typeof val === \"string\"\n    ;\n    var isSymbol = (val)=>typeof val === \"symbol\"\n    ;\n    var isObject$1 = (val)=>val !== null && typeof val === \"object\"\n    ;\n    var objectToString = Object.prototype.toString;\n    var toTypeString = (value)=>objectToString.call(value)\n    ;\n    var toRawType = (value)=>{\n        return toTypeString(value).slice(8, -1);\n    };\n    var isIntegerKey = (key)=>isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key\n    ;\n    var cacheStringFunction = (fn)=>{\n        const cache = /* @__PURE__ */ Object.create(null);\n        return (str)=>{\n            const hit = cache[str];\n            return hit || (cache[str] = fn(str));\n        };\n    };\n    var capitalize = cacheStringFunction((str)=>str.charAt(0).toUpperCase() + str.slice(1)\n    );\n    var hasChanged = (value, oldValue)=>value !== oldValue && (value === value || oldValue === oldValue)\n    ;\n    // node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js\n    var targetMap = /* @__PURE__ */ new WeakMap();\n    var effectStack = [];\n    var activeEffect;\n    var ITERATE_KEY = Symbol(\"iterate\" );\n    var MAP_KEY_ITERATE_KEY = Symbol(\"Map key iterate\" );\n    function isEffect(fn) {\n        return fn && fn._isEffect === true;\n    }\n    function effect2(fn, options = EMPTY_OBJ) {\n        if (isEffect(fn)) {\n            fn = fn.raw;\n        }\n        const effect3 = createReactiveEffect(fn, options);\n        if (!options.lazy) {\n            effect3();\n        }\n        return effect3;\n    }\n    function stop(effect3) {\n        if (effect3.active) {\n            cleanup(effect3);\n            if (effect3.options.onStop) {\n                effect3.options.onStop();\n            }\n            effect3.active = false;\n        }\n    }\n    var uid = 0;\n    function createReactiveEffect(fn, options) {\n        const effect3 = function reactiveEffect() {\n            if (!effect3.active) {\n                return fn();\n            }\n            if (!effectStack.includes(effect3)) {\n                cleanup(effect3);\n                try {\n                    enableTracking();\n                    effectStack.push(effect3);\n                    activeEffect = effect3;\n                    return fn();\n                } finally{\n                    effectStack.pop();\n                    resetTracking();\n                    activeEffect = effectStack[effectStack.length - 1];\n                }\n            }\n        };\n        effect3.id = uid++;\n        effect3.allowRecurse = !!options.allowRecurse;\n        effect3._isEffect = true;\n        effect3.active = true;\n        effect3.raw = fn;\n        effect3.deps = [];\n        effect3.options = options;\n        return effect3;\n    }\n    function cleanup(effect3) {\n        const { deps  } = effect3;\n        if (deps.length) {\n            for(let i = 0; i < deps.length; i++){\n                deps[i].delete(effect3);\n            }\n            deps.length = 0;\n        }\n    }\n    var shouldTrack = true;\n    var trackStack = [];\n    function pauseTracking() {\n        trackStack.push(shouldTrack);\n        shouldTrack = false;\n    }\n    function enableTracking() {\n        trackStack.push(shouldTrack);\n        shouldTrack = true;\n    }\n    function resetTracking() {\n        const last = trackStack.pop();\n        shouldTrack = last === void 0 ? true : last;\n    }\n    function track(target, type, key) {\n        if (!shouldTrack || activeEffect === void 0) {\n            return;\n        }\n        let depsMap = targetMap.get(target);\n        if (!depsMap) {\n            targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n        }\n        let dep = depsMap.get(key);\n        if (!dep) {\n            depsMap.set(key, dep = /* @__PURE__ */ new Set());\n        }\n        if (!dep.has(activeEffect)) {\n            dep.add(activeEffect);\n            activeEffect.deps.push(dep);\n            if (activeEffect.options.onTrack) {\n                activeEffect.options.onTrack({\n                    effect: activeEffect,\n                    target,\n                    type,\n                    key\n                });\n            }\n        }\n    }\n    function trigger(target, type, key, newValue, oldValue, oldTarget) {\n        const depsMap = targetMap.get(target);\n        if (!depsMap) {\n            return;\n        }\n        const effects = /* @__PURE__ */ new Set();\n        const add2 = (effectsToAdd)=>{\n            if (effectsToAdd) {\n                effectsToAdd.forEach((effect3)=>{\n                    if (effect3 !== activeEffect || effect3.allowRecurse) {\n                        effects.add(effect3);\n                    }\n                });\n            }\n        };\n        if (type === \"clear\") {\n            depsMap.forEach(add2);\n        } else if (key === \"length\" && isArray(target)) {\n            depsMap.forEach((dep, key2)=>{\n                if (key2 === \"length\" || key2 >= newValue) {\n                    add2(dep);\n                }\n            });\n        } else {\n            if (key !== void 0) {\n                add2(depsMap.get(key));\n            }\n            switch(type){\n                case \"add\":\n                    if (!isArray(target)) {\n                        add2(depsMap.get(ITERATE_KEY));\n                        if (isMap(target)) {\n                            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n                        }\n                    } else if (isIntegerKey(key)) {\n                        add2(depsMap.get(\"length\"));\n                    }\n                    break;\n                case \"delete\":\n                    if (!isArray(target)) {\n                        add2(depsMap.get(ITERATE_KEY));\n                        if (isMap(target)) {\n                            add2(depsMap.get(MAP_KEY_ITERATE_KEY));\n                        }\n                    }\n                    break;\n                case \"set\":\n                    if (isMap(target)) {\n                        add2(depsMap.get(ITERATE_KEY));\n                    }\n                    break;\n            }\n        }\n        const run = (effect3)=>{\n            if (effect3.options.onTrigger) {\n                effect3.options.onTrigger({\n                    effect: effect3,\n                    target,\n                    key,\n                    type,\n                    newValue,\n                    oldValue,\n                    oldTarget\n                });\n            }\n            if (effect3.options.scheduler) {\n                effect3.options.scheduler(effect3);\n            } else {\n                effect3();\n            }\n        };\n        effects.forEach(run);\n    }\n    var isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\n    var builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol).map((key)=>Symbol[key]\n    ).filter(isSymbol));\n    var get2 = /* @__PURE__ */ createGetter();\n    var readonlyGet = /* @__PURE__ */ createGetter(true);\n    var arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();\n    function createArrayInstrumentations() {\n        const instrumentations = {};\n        [\n            \"includes\",\n            \"indexOf\",\n            \"lastIndexOf\"\n        ].forEach((key)=>{\n            instrumentations[key] = function(...args) {\n                const arr = toRaw(this);\n                for(let i = 0, l = this.length; i < l; i++){\n                    track(arr, \"get\", i + \"\");\n                }\n                const res = arr[key](...args);\n                if (res === -1 || res === false) {\n                    return arr[key](...args.map(toRaw));\n                } else {\n                    return res;\n                }\n            };\n        });\n        [\n            \"push\",\n            \"pop\",\n            \"shift\",\n            \"unshift\",\n            \"splice\"\n        ].forEach((key)=>{\n            instrumentations[key] = function(...args) {\n                pauseTracking();\n                const res = toRaw(this)[key].apply(this, args);\n                resetTracking();\n                return res;\n            };\n        });\n        return instrumentations;\n    }\n    function createGetter(isReadonly = false, shallow = false) {\n        return function get3(target, key, receiver) {\n            if (key === \"__v_isReactive\") {\n                return !isReadonly;\n            } else if (key === \"__v_isReadonly\") {\n                return isReadonly;\n            } else if (key === \"__v_raw\" && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {\n                return target;\n            }\n            const targetIsArray = isArray(target);\n            if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\n                return Reflect.get(arrayInstrumentations, key, receiver);\n            }\n            const res = Reflect.get(target, key, receiver);\n            if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n                return res;\n            }\n            if (!isReadonly) {\n                track(target, \"get\", key);\n            }\n            if (shallow) {\n                return res;\n            }\n            if (isRef(res)) {\n                const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\n                return shouldUnwrap ? res.value : res;\n            }\n            if (isObject$1(res)) {\n                return isReadonly ? readonly(res) : reactive2(res);\n            }\n            return res;\n        };\n    }\n    var set2 = /* @__PURE__ */ createSetter();\n    function createSetter(shallow = false) {\n        return function set3(target, key, value, receiver) {\n            let oldValue = target[key];\n            if (!shallow) {\n                value = toRaw(value);\n                oldValue = toRaw(oldValue);\n                if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n                    oldValue.value = value;\n                    return true;\n                }\n            }\n            const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n            const result = Reflect.set(target, key, value, receiver);\n            if (target === toRaw(receiver)) {\n                if (!hadKey) {\n                    trigger(target, \"add\", key, value);\n                } else if (hasChanged(value, oldValue)) {\n                    trigger(target, \"set\", key, value, oldValue);\n                }\n            }\n            return result;\n        };\n    }\n    function deleteProperty(target, key) {\n        const hadKey = hasOwn(target, key);\n        const oldValue = target[key];\n        const result = Reflect.deleteProperty(target, key);\n        if (result && hadKey) {\n            trigger(target, \"delete\", key, void 0, oldValue);\n        }\n        return result;\n    }\n    function has(target, key) {\n        const result = Reflect.has(target, key);\n        if (!isSymbol(key) || !builtInSymbols.has(key)) {\n            track(target, \"has\", key);\n        }\n        return result;\n    }\n    function ownKeys(target) {\n        track(target, \"iterate\", isArray(target) ? \"length\" : ITERATE_KEY);\n        return Reflect.ownKeys(target);\n    }\n    var mutableHandlers = {\n        get: get2,\n        set: set2,\n        deleteProperty,\n        has,\n        ownKeys\n    };\n    var readonlyHandlers = {\n        get: readonlyGet,\n        set (target, key) {\n            {\n                console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\n            }\n            return true;\n        },\n        deleteProperty (target, key) {\n            {\n                console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\n            }\n            return true;\n        }\n    };\n    var toReactive = (value)=>isObject$1(value) ? reactive2(value) : value\n    ;\n    var toReadonly = (value)=>isObject$1(value) ? readonly(value) : value\n    ;\n    var toShallow = (value)=>value\n    ;\n    var getProto = (v)=>Reflect.getPrototypeOf(v)\n    ;\n    function get$1(target, key, isReadonly = false, isShallow = false) {\n        target = target[\"__v_raw\"];\n        const rawTarget = toRaw(target);\n        const rawKey = toRaw(key);\n        if (key !== rawKey) {\n            !isReadonly && track(rawTarget, \"get\", key);\n        }\n        !isReadonly && track(rawTarget, \"get\", rawKey);\n        const { has: has2  } = getProto(rawTarget);\n        const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n        if (has2.call(rawTarget, key)) {\n            return wrap(target.get(key));\n        } else if (has2.call(rawTarget, rawKey)) {\n            return wrap(target.get(rawKey));\n        } else if (target !== rawTarget) {\n            target.get(key);\n        }\n    }\n    function has$1(key, isReadonly = false) {\n        const target = this[\"__v_raw\"];\n        const rawTarget = toRaw(target);\n        const rawKey = toRaw(key);\n        if (key !== rawKey) {\n            !isReadonly && track(rawTarget, \"has\", key);\n        }\n        !isReadonly && track(rawTarget, \"has\", rawKey);\n        return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n    }\n    function size(target, isReadonly = false) {\n        target = target[\"__v_raw\"];\n        !isReadonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n        return Reflect.get(target, \"size\", target);\n    }\n    function add(value) {\n        value = toRaw(value);\n        const target = toRaw(this);\n        const proto = getProto(target);\n        const hadKey = proto.has.call(target, value);\n        if (!hadKey) {\n            target.add(value);\n            trigger(target, \"add\", value, value);\n        }\n        return this;\n    }\n    function set$1(key, value) {\n        value = toRaw(value);\n        const target = toRaw(this);\n        const { has: has2 , get: get3  } = getProto(target);\n        let hadKey = has2.call(target, key);\n        if (!hadKey) {\n            key = toRaw(key);\n            hadKey = has2.call(target, key);\n        } else {\n            checkIdentityKeys(target, has2, key);\n        }\n        const oldValue = get3.call(target, key);\n        target.set(key, value);\n        if (!hadKey) {\n            trigger(target, \"add\", key, value);\n        } else if (hasChanged(value, oldValue)) {\n            trigger(target, \"set\", key, value, oldValue);\n        }\n        return this;\n    }\n    function deleteEntry(key) {\n        const target = toRaw(this);\n        const { has: has2 , get: get3  } = getProto(target);\n        let hadKey = has2.call(target, key);\n        if (!hadKey) {\n            key = toRaw(key);\n            hadKey = has2.call(target, key);\n        } else {\n            checkIdentityKeys(target, has2, key);\n        }\n        const oldValue = get3 ? get3.call(target, key) : void 0;\n        const result = target.delete(key);\n        if (hadKey) {\n            trigger(target, \"delete\", key, void 0, oldValue);\n        }\n        return result;\n    }\n    function clear() {\n        const target = toRaw(this);\n        const hadItems = target.size !== 0;\n        const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;\n        const result = target.clear();\n        if (hadItems) {\n            trigger(target, \"clear\", void 0, void 0, oldTarget);\n        }\n        return result;\n    }\n    function createForEach(isReadonly, isShallow) {\n        return function forEach(callback, thisArg) {\n            const observed = this;\n            const target = observed[\"__v_raw\"];\n            const rawTarget = toRaw(target);\n            const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n            !isReadonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n            return target.forEach((value, key)=>{\n                return callback.call(thisArg, wrap(value), wrap(key), observed);\n            });\n        };\n    }\n    function createIterableMethod(method, isReadonly, isShallow) {\n        return function(...args) {\n            const target = this[\"__v_raw\"];\n            const rawTarget = toRaw(target);\n            const targetIsMap = isMap(rawTarget);\n            const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n            const isKeyOnly = method === \"keys\" && targetIsMap;\n            const innerIterator = target[method](...args);\n            const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\n            !isReadonly && track(rawTarget, \"iterate\", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\n            return {\n                // iterator protocol\n                next () {\n                    const { value , done  } = innerIterator.next();\n                    return done ? {\n                        value,\n                        done\n                    } : {\n                        value: isPair ? [\n                            wrap(value[0]),\n                            wrap(value[1])\n                        ] : wrap(value),\n                        done\n                    };\n                },\n                // iterable protocol\n                [Symbol.iterator] () {\n                    return this;\n                }\n            };\n        };\n    }\n    function createReadonlyMethod(type) {\n        return function(...args) {\n            {\n                const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n                console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\n            }\n            return type === \"delete\" ? false : this;\n        };\n    }\n    function createInstrumentations() {\n        const mutableInstrumentations2 = {\n            get (key) {\n                return get$1(this, key);\n            },\n            get size () {\n                return size(this);\n            },\n            has: has$1,\n            add,\n            set: set$1,\n            delete: deleteEntry,\n            clear,\n            forEach: createForEach(false, false)\n        };\n        const shallowInstrumentations2 = {\n            get (key) {\n                return get$1(this, key, false, true);\n            },\n            get size () {\n                return size(this);\n            },\n            has: has$1,\n            add,\n            set: set$1,\n            delete: deleteEntry,\n            clear,\n            forEach: createForEach(false, true)\n        };\n        const readonlyInstrumentations2 = {\n            get (key) {\n                return get$1(this, key, true);\n            },\n            get size () {\n                return size(this, true);\n            },\n            has (key) {\n                return has$1.call(this, key, true);\n            },\n            add: createReadonlyMethod(\"add\"),\n            set: createReadonlyMethod(\"set\"),\n            delete: createReadonlyMethod(\"delete\"),\n            clear: createReadonlyMethod(\"clear\"),\n            forEach: createForEach(true, false)\n        };\n        const shallowReadonlyInstrumentations2 = {\n            get (key) {\n                return get$1(this, key, true, true);\n            },\n            get size () {\n                return size(this, true);\n            },\n            has (key) {\n                return has$1.call(this, key, true);\n            },\n            add: createReadonlyMethod(\"add\"),\n            set: createReadonlyMethod(\"set\"),\n            delete: createReadonlyMethod(\"delete\"),\n            clear: createReadonlyMethod(\"clear\"),\n            forEach: createForEach(true, true)\n        };\n        const iteratorMethods = [\n            \"keys\",\n            \"values\",\n            \"entries\",\n            Symbol.iterator\n        ];\n        iteratorMethods.forEach((method)=>{\n            mutableInstrumentations2[method] = createIterableMethod(method, false, false);\n            readonlyInstrumentations2[method] = createIterableMethod(method, true, false);\n            shallowInstrumentations2[method] = createIterableMethod(method, false, true);\n            shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true);\n        });\n        return [\n            mutableInstrumentations2,\n            readonlyInstrumentations2,\n            shallowInstrumentations2,\n            shallowReadonlyInstrumentations2\n        ];\n    }\n    var [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations();\n    function createInstrumentationGetter(isReadonly, shallow) {\n        const instrumentations = isReadonly ? readonlyInstrumentations : mutableInstrumentations;\n        return (target, key, receiver)=>{\n            if (key === \"__v_isReactive\") {\n                return !isReadonly;\n            } else if (key === \"__v_isReadonly\") {\n                return isReadonly;\n            } else if (key === \"__v_raw\") {\n                return target;\n            }\n            return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);\n        };\n    }\n    var mutableCollectionHandlers = {\n        get: /* @__PURE__ */ createInstrumentationGetter(false)\n    };\n    var readonlyCollectionHandlers = {\n        get: /* @__PURE__ */ createInstrumentationGetter(true)\n    };\n    function checkIdentityKeys(target, has2, key) {\n        const rawKey = toRaw(key);\n        if (rawKey !== key && has2.call(target, rawKey)) {\n            const type = toRawType(target);\n            console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);\n        }\n    }\n    var reactiveMap = /* @__PURE__ */ new WeakMap();\n    var shallowReactiveMap = /* @__PURE__ */ new WeakMap();\n    var readonlyMap = /* @__PURE__ */ new WeakMap();\n    var shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\n    function targetTypeMap(rawType) {\n        switch(rawType){\n            case \"Object\":\n            case \"Array\":\n                return 1;\n            case \"Map\":\n            case \"Set\":\n            case \"WeakMap\":\n            case \"WeakSet\":\n                return 2;\n            default:\n                return 0;\n        }\n    }\n    function getTargetType(value) {\n        return value[\"__v_skip\"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));\n    }\n    function reactive2(target) {\n        if (target && target[\"__v_isReadonly\"]) {\n            return target;\n        }\n        return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\n    }\n    function readonly(target) {\n        return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\n    }\n    function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\n        if (!isObject$1(target)) {\n            {\n                console.warn(`value cannot be made reactive: ${String(target)}`);\n            }\n            return target;\n        }\n        if (target[\"__v_raw\"] && !(isReadonly && target[\"__v_isReactive\"])) {\n            return target;\n        }\n        const existingProxy = proxyMap.get(target);\n        if (existingProxy) {\n            return existingProxy;\n        }\n        const targetType = getTargetType(target);\n        if (targetType === 0) {\n            return target;\n        }\n        const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);\n        proxyMap.set(target, proxy);\n        return proxy;\n    }\n    function toRaw(observed) {\n        return observed && toRaw(observed[\"__v_raw\"]) || observed;\n    }\n    function isRef(r) {\n        return Boolean(r && r.__v_isRef === true);\n    }\n    // packages/alpinejs/src/magics/$nextTick.js\n    magic(\"nextTick\", ()=>nextTick\n    );\n    // packages/alpinejs/src/magics/$dispatch.js\n    magic(\"dispatch\", (el)=>dispatch.bind(dispatch, el)\n    );\n    // packages/alpinejs/src/magics/$watch.js\n    magic(\"watch\", (el, { evaluateLater: evaluateLater2 , cleanup: cleanup2  })=>(key, callback)=>{\n            let evaluate2 = evaluateLater2(key);\n            let getter = ()=>{\n                let value;\n                evaluate2((i)=>value = i\n                );\n                return value;\n            };\n            let unwatch = watch(getter, callback);\n            cleanup2(unwatch);\n        }\n    );\n    // packages/alpinejs/src/magics/$store.js\n    magic(\"store\", getStores);\n    // packages/alpinejs/src/magics/$data.js\n    magic(\"data\", (el)=>scope(el)\n    );\n    // packages/alpinejs/src/magics/$root.js\n    magic(\"root\", (el)=>closestRoot(el)\n    );\n    // packages/alpinejs/src/magics/$refs.js\n    magic(\"refs\", (el)=>{\n        if (el._x_refs_proxy) return el._x_refs_proxy;\n        el._x_refs_proxy = mergeProxies(getArrayOfRefObject(el));\n        return el._x_refs_proxy;\n    });\n    function getArrayOfRefObject(el) {\n        let refObjects = [];\n        findClosest(el, (i)=>{\n            if (i._x_refs) refObjects.push(i._x_refs);\n        });\n        return refObjects;\n    }\n    // packages/alpinejs/src/ids.js\n    var globalIdMemo = {};\n    function findAndIncrementId(name) {\n        if (!globalIdMemo[name]) globalIdMemo[name] = 0;\n        return ++globalIdMemo[name];\n    }\n    function closestIdRoot(el, name) {\n        return findClosest(el, (element)=>{\n            if (element._x_ids && element._x_ids[name]) return true;\n        });\n    }\n    function setIdRoot(el, name) {\n        if (!el._x_ids) el._x_ids = {};\n        if (!el._x_ids[name]) el._x_ids[name] = findAndIncrementId(name);\n    }\n    // packages/alpinejs/src/magics/$id.js\n    magic(\"id\", (el, { cleanup: cleanup2  })=>(name, key = null)=>{\n            let cacheKey = `${name}${key ? `-${key}` : \"\"}`;\n            return cacheIdByNameOnElement(el, cacheKey, cleanup2, ()=>{\n                let root = closestIdRoot(el, name);\n                let id = root ? root._x_ids[name] : findAndIncrementId(name);\n                return key ? `${name}-${id}-${key}` : `${name}-${id}`;\n            });\n        }\n    );\n    interceptClone((from, to)=>{\n        if (from._x_id) {\n            to._x_id = from._x_id;\n        }\n    });\n    function cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {\n        if (!el._x_id) el._x_id = {};\n        if (el._x_id[cacheKey]) return el._x_id[cacheKey];\n        let output = callback();\n        el._x_id[cacheKey] = output;\n        cleanup2(()=>{\n            delete el._x_id[cacheKey];\n        });\n        return output;\n    }\n    // packages/alpinejs/src/magics/$el.js\n    magic(\"el\", (el)=>el\n    );\n    // packages/alpinejs/src/magics/index.js\n    warnMissingPluginMagic(\"Focus\", \"focus\", \"focus\");\n    warnMissingPluginMagic(\"Persist\", \"persist\", \"persist\");\n    function warnMissingPluginMagic(name, magicName, slug) {\n        magic(magicName, (el)=>warn(`You can't use [$${magicName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el)\n        );\n    }\n    // packages/alpinejs/src/directives/x-modelable.js\n    directive(\"modelable\", (el, { expression  }, { effect: effect3 , evaluateLater: evaluateLater2 , cleanup: cleanup2  })=>{\n        let func = evaluateLater2(expression);\n        let innerGet = ()=>{\n            let result;\n            func((i)=>result = i\n            );\n            return result;\n        };\n        let evaluateInnerSet = evaluateLater2(`${expression} = __placeholder`);\n        let innerSet = (val)=>evaluateInnerSet(()=>{}, {\n                scope: {\n                    \"__placeholder\": val\n                }\n            })\n        ;\n        let initialValue = innerGet();\n        innerSet(initialValue);\n        queueMicrotask(()=>{\n            if (!el._x_model) return;\n            el._x_removeModelListeners[\"default\"]();\n            let outerGet = el._x_model.get;\n            let outerSet = el._x_model.set;\n            let releaseEntanglement = entangle({\n                get () {\n                    return outerGet();\n                },\n                set (value) {\n                    outerSet(value);\n                }\n            }, {\n                get () {\n                    return innerGet();\n                },\n                set (value) {\n                    innerSet(value);\n                }\n            });\n            cleanup2(releaseEntanglement);\n        });\n    });\n    // packages/alpinejs/src/directives/x-teleport.js\n    directive(\"teleport\", (el, { modifiers , expression  }, { cleanup: cleanup2  })=>{\n        if (el.tagName.toLowerCase() !== \"template\") warn(\"x-teleport can only be used on a <template> tag\", el);\n        let target = getTarget(expression);\n        let clone2 = el.content.cloneNode(true).firstElementChild;\n        el._x_teleport = clone2;\n        clone2._x_teleportBack = el;\n        el.setAttribute(\"data-teleport-template\", true);\n        clone2.setAttribute(\"data-teleport-target\", true);\n        if (el._x_forwardEvents) {\n            el._x_forwardEvents.forEach((eventName)=>{\n                clone2.addEventListener(eventName, (e)=>{\n                    e.stopPropagation();\n                    el.dispatchEvent(new e.constructor(e.type, e));\n                });\n            });\n        }\n        addScopeToNode(clone2, {}, el);\n        let placeInDom = (clone3, target2, modifiers2)=>{\n            if (modifiers2.includes(\"prepend\")) {\n                target2.parentNode.insertBefore(clone3, target2);\n            } else if (modifiers2.includes(\"append\")) {\n                target2.parentNode.insertBefore(clone3, target2.nextSibling);\n            } else {\n                target2.appendChild(clone3);\n            }\n        };\n        mutateDom(()=>{\n            placeInDom(clone2, target, modifiers);\n            skipDuringClone(()=>{\n                initTree(clone2);\n            })();\n        });\n        el._x_teleportPutBack = ()=>{\n            let target2 = getTarget(expression);\n            mutateDom(()=>{\n                placeInDom(el._x_teleport, target2, modifiers);\n            });\n        };\n        cleanup2(()=>mutateDom(()=>{\n                clone2.remove();\n                destroyTree(clone2);\n            })\n        );\n    });\n    var teleportContainerDuringClone = document.createElement(\"div\");\n    function getTarget(expression) {\n        let target = skipDuringClone(()=>{\n            return document.querySelector(expression);\n        }, ()=>{\n            return teleportContainerDuringClone;\n        })();\n        if (!target) warn(`Cannot find x-teleport element for selector: \"${expression}\"`);\n        return target;\n    }\n    // packages/alpinejs/src/directives/x-ignore.js\n    var handler = ()=>{};\n    handler.inline = (el, { modifiers  }, { cleanup: cleanup2  })=>{\n        modifiers.includes(\"self\") ? el._x_ignoreSelf = true : el._x_ignore = true;\n        cleanup2(()=>{\n            modifiers.includes(\"self\") ? delete el._x_ignoreSelf : delete el._x_ignore;\n        });\n    };\n    directive(\"ignore\", handler);\n    // packages/alpinejs/src/directives/x-effect.js\n    directive(\"effect\", skipDuringClone((el, { expression  }, { effect: effect3  })=>{\n        effect3(evaluateLater(el, expression));\n    }));\n    // packages/alpinejs/src/utils/on.js\n    function on(el, event, modifiers, callback) {\n        let listenerTarget = el;\n        let handler4 = (e)=>callback(e)\n        ;\n        let options = {};\n        let wrapHandler = (callback2, wrapper)=>(e)=>wrapper(callback2, e)\n        ;\n        if (modifiers.includes(\"dot\")) event = dotSyntax(event);\n        if (modifiers.includes(\"camel\")) event = camelCase2(event);\n        if (modifiers.includes(\"passive\")) options.passive = true;\n        if (modifiers.includes(\"capture\")) options.capture = true;\n        if (modifiers.includes(\"window\")) listenerTarget = window;\n        if (modifiers.includes(\"document\")) listenerTarget = document;\n        if (modifiers.includes(\"debounce\")) {\n            let nextModifier = modifiers[modifiers.indexOf(\"debounce\") + 1] || \"invalid-wait\";\n            let wait = isNumeric$1(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n            handler4 = debounce(handler4, wait);\n        }\n        if (modifiers.includes(\"throttle\")) {\n            let nextModifier = modifiers[modifiers.indexOf(\"throttle\") + 1] || \"invalid-wait\";\n            let wait = isNumeric$1(nextModifier.split(\"ms\")[0]) ? Number(nextModifier.split(\"ms\")[0]) : 250;\n            handler4 = throttle(handler4, wait);\n        }\n        if (modifiers.includes(\"prevent\")) handler4 = wrapHandler(handler4, (next, e)=>{\n            e.preventDefault();\n            next(e);\n        });\n        if (modifiers.includes(\"stop\")) handler4 = wrapHandler(handler4, (next, e)=>{\n            e.stopPropagation();\n            next(e);\n        });\n        if (modifiers.includes(\"once\")) {\n            handler4 = wrapHandler(handler4, (next, e)=>{\n                next(e);\n                listenerTarget.removeEventListener(event, handler4, options);\n            });\n        }\n        if (modifiers.includes(\"away\") || modifiers.includes(\"outside\")) {\n            listenerTarget = document;\n            handler4 = wrapHandler(handler4, (next, e)=>{\n                if (el.contains(e.target)) return;\n                if (e.target.isConnected === false) return;\n                if (el.offsetWidth < 1 && el.offsetHeight < 1) return;\n                if (el._x_isShown === false) return;\n                next(e);\n            });\n        }\n        if (modifiers.includes(\"self\")) handler4 = wrapHandler(handler4, (next, e)=>{\n            e.target === el && next(e);\n        });\n        if (isKeyEvent(event) || isClickEvent(event)) {\n            handler4 = wrapHandler(handler4, (next, e)=>{\n                if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) {\n                    return;\n                }\n                next(e);\n            });\n        }\n        listenerTarget.addEventListener(event, handler4, options);\n        return ()=>{\n            listenerTarget.removeEventListener(event, handler4, options);\n        };\n    }\n    function dotSyntax(subject) {\n        return subject.replace(/-/g, \".\");\n    }\n    function camelCase2(subject) {\n        return subject.toLowerCase().replace(/-(\\w)/g, (match, char)=>char.toUpperCase()\n        );\n    }\n    function isNumeric$1(subject) {\n        return !Array.isArray(subject) && !isNaN(subject);\n    }\n    function kebabCase2(subject) {\n        if ([\n            \" \",\n            \"_\"\n        ].includes(subject)) return subject;\n        return subject.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[_\\s]/, \"-\").toLowerCase();\n    }\n    function isKeyEvent(event) {\n        return [\n            \"keydown\",\n            \"keyup\"\n        ].includes(event);\n    }\n    function isClickEvent(event) {\n        return [\n            \"contextmenu\",\n            \"click\",\n            \"mouse\"\n        ].some((i)=>event.includes(i)\n        );\n    }\n    function isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {\n        let keyModifiers = modifiers.filter((i)=>{\n            return ![\n                \"window\",\n                \"document\",\n                \"prevent\",\n                \"stop\",\n                \"once\",\n                \"capture\",\n                \"self\",\n                \"away\",\n                \"outside\",\n                \"passive\"\n            ].includes(i);\n        });\n        if (keyModifiers.includes(\"debounce\")) {\n            let debounceIndex = keyModifiers.indexOf(\"debounce\");\n            keyModifiers.splice(debounceIndex, isNumeric$1((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n        }\n        if (keyModifiers.includes(\"throttle\")) {\n            let debounceIndex = keyModifiers.indexOf(\"throttle\");\n            keyModifiers.splice(debounceIndex, isNumeric$1((keyModifiers[debounceIndex + 1] || \"invalid-wait\").split(\"ms\")[0]) ? 2 : 1);\n        }\n        if (keyModifiers.length === 0) return false;\n        if (keyModifiers.length === 1 && keyToModifiers(e.key).includes(keyModifiers[0])) return false;\n        const systemKeyModifiers = [\n            \"ctrl\",\n            \"shift\",\n            \"alt\",\n            \"meta\",\n            \"cmd\",\n            \"super\"\n        ];\n        const selectedSystemKeyModifiers = systemKeyModifiers.filter((modifier)=>keyModifiers.includes(modifier)\n        );\n        keyModifiers = keyModifiers.filter((i)=>!selectedSystemKeyModifiers.includes(i)\n        );\n        if (selectedSystemKeyModifiers.length > 0) {\n            const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter((modifier)=>{\n                if (modifier === \"cmd\" || modifier === \"super\") modifier = \"meta\";\n                return e[`${modifier}Key`];\n            });\n            if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {\n                if (isClickEvent(e.type)) return false;\n                if (keyToModifiers(e.key).includes(keyModifiers[0])) return false;\n            }\n        }\n        return true;\n    }\n    function keyToModifiers(key) {\n        if (!key) return [];\n        key = kebabCase2(key);\n        let modifierToKeyMap = {\n            \"ctrl\": \"control\",\n            \"slash\": \"/\",\n            \"space\": \" \",\n            \"spacebar\": \" \",\n            \"cmd\": \"meta\",\n            \"esc\": \"escape\",\n            \"up\": \"arrow-up\",\n            \"down\": \"arrow-down\",\n            \"left\": \"arrow-left\",\n            \"right\": \"arrow-right\",\n            \"period\": \".\",\n            \"comma\": \",\",\n            \"equal\": \"=\",\n            \"minus\": \"-\",\n            \"underscore\": \"_\"\n        };\n        modifierToKeyMap[key] = key;\n        return Object.keys(modifierToKeyMap).map((modifier)=>{\n            if (modifierToKeyMap[modifier] === key) return modifier;\n        }).filter((modifier)=>modifier\n        );\n    }\n    // packages/alpinejs/src/directives/x-model.js\n    directive(\"model\", (el, { modifiers , expression  }, { effect: effect3 , cleanup: cleanup2  })=>{\n        let scopeTarget = el;\n        if (modifiers.includes(\"parent\")) {\n            scopeTarget = el.parentNode;\n        }\n        let evaluateGet = evaluateLater(scopeTarget, expression);\n        let evaluateSet;\n        if (typeof expression === \"string\") {\n            evaluateSet = evaluateLater(scopeTarget, `${expression} = __placeholder`);\n        } else if (typeof expression === \"function\" && typeof expression() === \"string\") {\n            evaluateSet = evaluateLater(scopeTarget, `${expression()} = __placeholder`);\n        } else {\n            evaluateSet = ()=>{};\n        }\n        let getValue = ()=>{\n            let result;\n            evaluateGet((value)=>result = value\n            );\n            return isGetterSetter(result) ? result.get() : result;\n        };\n        let setValue = (value)=>{\n            let result;\n            evaluateGet((value2)=>result = value2\n            );\n            if (isGetterSetter(result)) {\n                result.set(value);\n            } else {\n                evaluateSet(()=>{}, {\n                    scope: {\n                        \"__placeholder\": value\n                    }\n                });\n            }\n        };\n        if (typeof expression === \"string\" && el.type === \"radio\") {\n            mutateDom(()=>{\n                if (!el.hasAttribute(\"name\")) el.setAttribute(\"name\", expression);\n            });\n        }\n        var event = el.tagName.toLowerCase() === \"select\" || [\n            \"checkbox\",\n            \"radio\"\n        ].includes(el.type) || modifiers.includes(\"lazy\") ? \"change\" : \"input\";\n        let removeListener = isCloning ? ()=>{} : on(el, event, modifiers, (e)=>{\n            setValue(getInputValue(el, modifiers, e, getValue()));\n        });\n        if (modifiers.includes(\"fill\")) {\n            if ([\n                void 0,\n                null,\n                \"\"\n            ].includes(getValue()) || isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === \"select\" && el.multiple) {\n                setValue(getInputValue(el, modifiers, {\n                    target: el\n                }, getValue()));\n            }\n        }\n        if (!el._x_removeModelListeners) el._x_removeModelListeners = {};\n        el._x_removeModelListeners[\"default\"] = removeListener;\n        cleanup2(()=>el._x_removeModelListeners[\"default\"]()\n        );\n        if (el.form) {\n            let removeResetListener = on(el.form, \"reset\", [], (e)=>{\n                nextTick(()=>el._x_model && el._x_model.set(getInputValue(el, modifiers, {\n                        target: el\n                    }, getValue()))\n                );\n            });\n            cleanup2(()=>removeResetListener()\n            );\n        }\n        el._x_model = {\n            get () {\n                return getValue();\n            },\n            set (value) {\n                setValue(value);\n            }\n        };\n        el._x_forceModelUpdate = (value)=>{\n            if (value === void 0 && typeof expression === \"string\" && expression.match(/\\./)) value = \"\";\n            window.fromModel = true;\n            mutateDom(()=>bind(el, \"value\", value)\n            );\n            delete window.fromModel;\n        };\n        effect3(()=>{\n            let value = getValue();\n            if (modifiers.includes(\"unintrusive\") && document.activeElement.isSameNode(el)) return;\n            el._x_forceModelUpdate(value);\n        });\n    });\n    function getInputValue(el, modifiers, event, currentValue) {\n        return mutateDom(()=>{\n            if (event instanceof CustomEvent && event.detail !== void 0) return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;\n            else if (isCheckbox(el)) {\n                if (Array.isArray(currentValue)) {\n                    let newValue = null;\n                    if (modifiers.includes(\"number\")) {\n                        newValue = safeParseNumber(event.target.value);\n                    } else if (modifiers.includes(\"boolean\")) {\n                        newValue = safeParseBoolean(event.target.value);\n                    } else {\n                        newValue = event.target.value;\n                    }\n                    return event.target.checked ? currentValue.includes(newValue) ? currentValue : currentValue.concat([\n                        newValue\n                    ]) : currentValue.filter((el2)=>!checkedAttrLooseCompare2(el2, newValue)\n                    );\n                } else {\n                    return event.target.checked;\n                }\n            } else if (el.tagName.toLowerCase() === \"select\" && el.multiple) {\n                if (modifiers.includes(\"number\")) {\n                    return Array.from(event.target.selectedOptions).map((option)=>{\n                        let rawValue = option.value || option.text;\n                        return safeParseNumber(rawValue);\n                    });\n                } else if (modifiers.includes(\"boolean\")) {\n                    return Array.from(event.target.selectedOptions).map((option)=>{\n                        let rawValue = option.value || option.text;\n                        return safeParseBoolean(rawValue);\n                    });\n                }\n                return Array.from(event.target.selectedOptions).map((option)=>{\n                    return option.value || option.text;\n                });\n            } else {\n                let newValue;\n                if (isRadio(el)) {\n                    if (event.target.checked) {\n                        newValue = event.target.value;\n                    } else {\n                        newValue = currentValue;\n                    }\n                } else {\n                    newValue = event.target.value;\n                }\n                if (modifiers.includes(\"number\")) {\n                    return safeParseNumber(newValue);\n                } else if (modifiers.includes(\"boolean\")) {\n                    return safeParseBoolean(newValue);\n                } else if (modifiers.includes(\"trim\")) {\n                    return newValue.trim();\n                } else {\n                    return newValue;\n                }\n            }\n        });\n    }\n    function safeParseNumber(rawValue) {\n        let number = rawValue ? parseFloat(rawValue) : null;\n        return isNumeric2(number) ? number : rawValue;\n    }\n    function checkedAttrLooseCompare2(valueA, valueB) {\n        return valueA == valueB;\n    }\n    function isNumeric2(subject) {\n        return !Array.isArray(subject) && !isNaN(subject);\n    }\n    function isGetterSetter(value) {\n        return value !== null && typeof value === \"object\" && typeof value.get === \"function\" && typeof value.set === \"function\";\n    }\n    // packages/alpinejs/src/directives/x-cloak.js\n    directive(\"cloak\", (el)=>queueMicrotask(()=>mutateDom(()=>el.removeAttribute(prefix(\"cloak\"))\n            )\n        )\n    );\n    // packages/alpinejs/src/directives/x-init.js\n    addInitSelector(()=>`[${prefix(\"init\")}]`\n    );\n    directive(\"init\", skipDuringClone((el, { expression  }, { evaluate: evaluate2  })=>{\n        if (typeof expression === \"string\") {\n            return !!expression.trim() && evaluate2(expression, {}, false);\n        }\n        return evaluate2(expression, {}, false);\n    }));\n    // packages/alpinejs/src/directives/x-text.js\n    directive(\"text\", (el, { expression  }, { effect: effect3 , evaluateLater: evaluateLater2  })=>{\n        let evaluate2 = evaluateLater2(expression);\n        effect3(()=>{\n            evaluate2((value)=>{\n                mutateDom(()=>{\n                    el.textContent = value;\n                });\n            });\n        });\n    });\n    // packages/alpinejs/src/directives/x-html.js\n    directive(\"html\", (el, { expression  }, { effect: effect3 , evaluateLater: evaluateLater2  })=>{\n        let evaluate2 = evaluateLater2(expression);\n        effect3(()=>{\n            evaluate2((value)=>{\n                mutateDom(()=>{\n                    el.innerHTML = value;\n                    el._x_ignoreSelf = true;\n                    initTree(el);\n                    delete el._x_ignoreSelf;\n                });\n            });\n        });\n    });\n    // packages/alpinejs/src/directives/x-bind.js\n    mapAttributes(startingWith(\":\", into(prefix(\"bind:\"))));\n    var handler2 = (el, { value , modifiers , expression , original  }, { effect: effect3 , cleanup: cleanup2  })=>{\n        if (!value) {\n            let bindingProviders = {};\n            injectBindingProviders(bindingProviders);\n            let getBindings = evaluateLater(el, expression);\n            getBindings((bindings)=>{\n                applyBindingsObject(el, bindings, original);\n            }, {\n                scope: bindingProviders\n            });\n            return;\n        }\n        if (value === \"key\") return storeKeyForXFor(el, expression);\n        if (el._x_inlineBindings && el._x_inlineBindings[value] && el._x_inlineBindings[value].extract) {\n            return;\n        }\n        let evaluate2 = evaluateLater(el, expression);\n        effect3(()=>evaluate2((result)=>{\n                if (result === void 0 && typeof expression === \"string\" && expression.match(/\\./)) {\n                    result = \"\";\n                }\n                mutateDom(()=>bind(el, value, result, modifiers)\n                );\n            })\n        );\n        cleanup2(()=>{\n            el._x_undoAddedClasses && el._x_undoAddedClasses();\n            el._x_undoAddedStyles && el._x_undoAddedStyles();\n        });\n    };\n    handler2.inline = (el, { value , modifiers , expression  })=>{\n        if (!value) return;\n        if (!el._x_inlineBindings) el._x_inlineBindings = {};\n        el._x_inlineBindings[value] = {\n            expression,\n            extract: false\n        };\n    };\n    directive(\"bind\", handler2);\n    function storeKeyForXFor(el, expression) {\n        el._x_keyExpression = expression;\n    }\n    // packages/alpinejs/src/directives/x-data.js\n    addRootSelector(()=>`[${prefix(\"data\")}]`\n    );\n    directive(\"data\", (el, { expression  }, { cleanup: cleanup2  })=>{\n        if (shouldSkipRegisteringDataDuringClone(el)) return;\n        expression = expression === \"\" ? \"{}\" : expression;\n        let magicContext = {};\n        injectMagics(magicContext, el);\n        let dataProviderContext = {};\n        injectDataProviders(dataProviderContext, magicContext);\n        let data2 = evaluate(el, expression, {\n            scope: dataProviderContext\n        });\n        if (data2 === void 0 || data2 === true) data2 = {};\n        injectMagics(data2, el);\n        let reactiveData = reactive(data2);\n        initInterceptors(reactiveData);\n        let undo = addScopeToNode(el, reactiveData);\n        reactiveData[\"init\"] && evaluate(el, reactiveData[\"init\"]);\n        cleanup2(()=>{\n            reactiveData[\"destroy\"] && evaluate(el, reactiveData[\"destroy\"]);\n            undo();\n        });\n    });\n    interceptClone((from, to)=>{\n        if (from._x_dataStack) {\n            to._x_dataStack = from._x_dataStack;\n            to.setAttribute(\"data-has-alpine-state\", true);\n        }\n    });\n    function shouldSkipRegisteringDataDuringClone(el) {\n        if (!isCloning) return false;\n        if (isCloningLegacy) return true;\n        return el.hasAttribute(\"data-has-alpine-state\");\n    }\n    // packages/alpinejs/src/directives/x-show.js\n    directive(\"show\", (el, { modifiers , expression  }, { effect: effect3  })=>{\n        let evaluate2 = evaluateLater(el, expression);\n        if (!el._x_doHide) el._x_doHide = ()=>{\n            mutateDom(()=>{\n                el.style.setProperty(\"display\", \"none\", modifiers.includes(\"important\") ? \"important\" : void 0);\n            });\n        };\n        if (!el._x_doShow) el._x_doShow = ()=>{\n            mutateDom(()=>{\n                if (el.style.length === 1 && el.style.display === \"none\") {\n                    el.removeAttribute(\"style\");\n                } else {\n                    el.style.removeProperty(\"display\");\n                }\n            });\n        };\n        let hide = ()=>{\n            el._x_doHide();\n            el._x_isShown = false;\n        };\n        let show = ()=>{\n            el._x_doShow();\n            el._x_isShown = true;\n        };\n        let clickAwayCompatibleShow = ()=>setTimeout(show)\n        ;\n        let toggle = once((value)=>value ? show() : hide()\n        , (value)=>{\n            if (typeof el._x_toggleAndCascadeWithTransitions === \"function\") {\n                el._x_toggleAndCascadeWithTransitions(el, value, show, hide);\n            } else {\n                value ? clickAwayCompatibleShow() : hide();\n            }\n        });\n        let oldValue;\n        let firstTime = true;\n        effect3(()=>evaluate2((value)=>{\n                if (!firstTime && value === oldValue) return;\n                if (modifiers.includes(\"immediate\")) value ? clickAwayCompatibleShow() : hide();\n                toggle(value);\n                oldValue = value;\n                firstTime = false;\n            })\n        );\n    });\n    // packages/alpinejs/src/directives/x-for.js\n    directive(\"for\", (el, { expression  }, { effect: effect3 , cleanup: cleanup2  })=>{\n        let iteratorNames = parseForExpression(expression);\n        let evaluateItems = evaluateLater(el, iteratorNames.items);\n        let evaluateKey = evaluateLater(el, // the x-bind:key expression is stored for our use instead of evaluated.\n        el._x_keyExpression || \"index\");\n        el._x_prevKeys = [];\n        el._x_lookup = {};\n        effect3(()=>loop(el, iteratorNames, evaluateItems, evaluateKey)\n        );\n        cleanup2(()=>{\n            Object.values(el._x_lookup).forEach((el2)=>mutateDom(()=>{\n                    destroyTree(el2);\n                    el2.remove();\n                })\n            );\n            delete el._x_prevKeys;\n            delete el._x_lookup;\n        });\n    });\n    function loop(el, iteratorNames, evaluateItems, evaluateKey) {\n        let isObject2 = (i)=>typeof i === \"object\" && !Array.isArray(i)\n        ;\n        let templateEl = el;\n        evaluateItems((items)=>{\n            if (isNumeric3(items) && items >= 0) {\n                items = Array.from(Array(items).keys(), (i)=>i + 1\n                );\n            }\n            if (items === void 0) items = [];\n            let lookup = el._x_lookup;\n            let prevKeys = el._x_prevKeys;\n            let scopes = [];\n            let keys = [];\n            if (isObject2(items)) {\n                items = Object.entries(items).map(([key, value])=>{\n                    let scope2 = getIterationScopeVariables(iteratorNames, value, key, items);\n                    evaluateKey((value2)=>{\n                        if (keys.includes(value2)) warn(\"Duplicate key on x-for\", el);\n                        keys.push(value2);\n                    }, {\n                        scope: {\n                            index: key,\n                            ...scope2\n                        }\n                    });\n                    scopes.push(scope2);\n                });\n            } else {\n                for(let i = 0; i < items.length; i++){\n                    let scope2 = getIterationScopeVariables(iteratorNames, items[i], i, items);\n                    evaluateKey((value)=>{\n                        if (keys.includes(value)) warn(\"Duplicate key on x-for\", el);\n                        keys.push(value);\n                    }, {\n                        scope: {\n                            index: i,\n                            ...scope2\n                        }\n                    });\n                    scopes.push(scope2);\n                }\n            }\n            let adds = [];\n            let moves = [];\n            let removes = [];\n            let sames = [];\n            for(let i7 = 0; i7 < prevKeys.length; i7++){\n                let key = prevKeys[i7];\n                if (keys.indexOf(key) === -1) removes.push(key);\n            }\n            prevKeys = prevKeys.filter((key)=>!removes.includes(key)\n            );\n            let lastKey = \"template\";\n            for(let i2 = 0; i2 < keys.length; i2++){\n                let key = keys[i2];\n                let prevIndex = prevKeys.indexOf(key);\n                if (prevIndex === -1) {\n                    prevKeys.splice(i2, 0, key);\n                    adds.push([\n                        lastKey,\n                        i2\n                    ]);\n                } else if (prevIndex !== i2) {\n                    let keyInSpot = prevKeys.splice(i2, 1)[0];\n                    let keyForSpot = prevKeys.splice(prevIndex - 1, 1)[0];\n                    prevKeys.splice(i2, 0, keyForSpot);\n                    prevKeys.splice(prevIndex, 0, keyInSpot);\n                    moves.push([\n                        keyInSpot,\n                        keyForSpot\n                    ]);\n                } else {\n                    sames.push(key);\n                }\n                lastKey = key;\n            }\n            for(let i3 = 0; i3 < removes.length; i3++){\n                let key = removes[i3];\n                if (!(key in lookup)) continue;\n                mutateDom(()=>{\n                    destroyTree(lookup[key]);\n                    lookup[key].remove();\n                });\n                delete lookup[key];\n            }\n            for(let i4 = 0; i4 < moves.length; i4++){\n                let [keyInSpot, keyForSpot] = moves[i4];\n                let elInSpot = lookup[keyInSpot];\n                let elForSpot = lookup[keyForSpot];\n                let marker = document.createElement(\"div\");\n                mutateDom(()=>{\n                    if (!elForSpot) warn(`x-for \":key\" is undefined or invalid`, templateEl, keyForSpot, lookup);\n                    elForSpot.after(marker);\n                    elInSpot.after(elForSpot);\n                    elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);\n                    marker.before(elInSpot);\n                    elInSpot._x_currentIfEl && elInSpot.after(elInSpot._x_currentIfEl);\n                    marker.remove();\n                });\n                elForSpot._x_refreshXForScope(scopes[keys.indexOf(keyForSpot)]);\n            }\n            for(let i5 = 0; i5 < adds.length; i5++){\n                let [lastKey2, index] = adds[i5];\n                let lastEl = lastKey2 === \"template\" ? templateEl : lookup[lastKey2];\n                if (lastEl._x_currentIfEl) lastEl = lastEl._x_currentIfEl;\n                let scope2 = scopes[index];\n                let key = keys[index];\n                let clone2 = document.importNode(templateEl.content, true).firstElementChild;\n                let reactiveScope = reactive(scope2);\n                addScopeToNode(clone2, reactiveScope, templateEl);\n                clone2._x_refreshXForScope = (newScope)=>{\n                    Object.entries(newScope).forEach(([key2, value])=>{\n                        reactiveScope[key2] = value;\n                    });\n                };\n                mutateDom(()=>{\n                    lastEl.after(clone2);\n                    skipDuringClone(()=>initTree(clone2)\n                    )();\n                });\n                if (typeof key === \"object\") {\n                    warn(\"x-for key cannot be an object, it must be a string or an integer\", templateEl);\n                }\n                lookup[key] = clone2;\n            }\n            for(let i6 = 0; i6 < sames.length; i6++){\n                lookup[sames[i6]]._x_refreshXForScope(scopes[keys.indexOf(sames[i6])]);\n            }\n            templateEl._x_prevKeys = keys;\n        });\n    }\n    function parseForExpression(expression) {\n        let forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\n        let stripParensRE = /^\\s*\\(|\\)\\s*$/g;\n        let forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\n        let inMatch = expression.match(forAliasRE);\n        if (!inMatch) return;\n        let res = {};\n        res.items = inMatch[2].trim();\n        let item = inMatch[1].replace(stripParensRE, \"\").trim();\n        let iteratorMatch = item.match(forIteratorRE);\n        if (iteratorMatch) {\n            res.item = item.replace(forIteratorRE, \"\").trim();\n            res.index = iteratorMatch[1].trim();\n            if (iteratorMatch[2]) {\n                res.collection = iteratorMatch[2].trim();\n            }\n        } else {\n            res.item = item;\n        }\n        return res;\n    }\n    function getIterationScopeVariables(iteratorNames, item, index, items) {\n        let scopeVariables = {};\n        if (/^\\[.*\\]$/.test(iteratorNames.item) && Array.isArray(item)) {\n            let names = iteratorNames.item.replace(\"[\", \"\").replace(\"]\", \"\").split(\",\").map((i)=>i.trim()\n            );\n            names.forEach((name, i)=>{\n                scopeVariables[name] = item[i];\n            });\n        } else if (/^\\{.*\\}$/.test(iteratorNames.item) && !Array.isArray(item) && typeof item === \"object\") {\n            let names = iteratorNames.item.replace(\"{\", \"\").replace(\"}\", \"\").split(\",\").map((i)=>i.trim()\n            );\n            names.forEach((name)=>{\n                scopeVariables[name] = item[name];\n            });\n        } else {\n            scopeVariables[iteratorNames.item] = item;\n        }\n        if (iteratorNames.index) scopeVariables[iteratorNames.index] = index;\n        if (iteratorNames.collection) scopeVariables[iteratorNames.collection] = items;\n        return scopeVariables;\n    }\n    function isNumeric3(subject) {\n        return !Array.isArray(subject) && !isNaN(subject);\n    }\n    // packages/alpinejs/src/directives/x-ref.js\n    function handler3() {}\n    handler3.inline = (el, { expression  }, { cleanup: cleanup2  })=>{\n        let root = closestRoot(el);\n        if (!root._x_refs) root._x_refs = {};\n        root._x_refs[expression] = el;\n        cleanup2(()=>delete root._x_refs[expression]\n        );\n    };\n    directive(\"ref\", handler3);\n    // packages/alpinejs/src/directives/x-if.js\n    directive(\"if\", (el, { expression  }, { effect: effect3 , cleanup: cleanup2  })=>{\n        if (el.tagName.toLowerCase() !== \"template\") warn(\"x-if can only be used on a <template> tag\", el);\n        let evaluate2 = evaluateLater(el, expression);\n        let show = ()=>{\n            if (el._x_currentIfEl) return el._x_currentIfEl;\n            let clone2 = el.content.cloneNode(true).firstElementChild;\n            addScopeToNode(clone2, {}, el);\n            mutateDom(()=>{\n                el.after(clone2);\n                skipDuringClone(()=>initTree(clone2)\n                )();\n            });\n            el._x_currentIfEl = clone2;\n            el._x_undoIf = ()=>{\n                mutateDom(()=>{\n                    destroyTree(clone2);\n                    clone2.remove();\n                });\n                delete el._x_currentIfEl;\n            };\n            return clone2;\n        };\n        let hide = ()=>{\n            if (!el._x_undoIf) return;\n            el._x_undoIf();\n            delete el._x_undoIf;\n        };\n        effect3(()=>evaluate2((value)=>{\n                value ? show() : hide();\n            })\n        );\n        cleanup2(()=>el._x_undoIf && el._x_undoIf()\n        );\n    });\n    // packages/alpinejs/src/directives/x-id.js\n    directive(\"id\", (el, { expression  }, { evaluate: evaluate2  })=>{\n        let names = evaluate2(expression);\n        names.forEach((name)=>setIdRoot(el, name)\n        );\n    });\n    interceptClone((from, to)=>{\n        if (from._x_ids) {\n            to._x_ids = from._x_ids;\n        }\n    });\n    // packages/alpinejs/src/directives/x-on.js\n    mapAttributes(startingWith(\"@\", into(prefix(\"on:\"))));\n    directive(\"on\", skipDuringClone((el, { value , modifiers , expression  }, { cleanup: cleanup2  })=>{\n        let evaluate2 = expression ? evaluateLater(el, expression) : ()=>{};\n        if (el.tagName.toLowerCase() === \"template\") {\n            if (!el._x_forwardEvents) el._x_forwardEvents = [];\n            if (!el._x_forwardEvents.includes(value)) el._x_forwardEvents.push(value);\n        }\n        let removeListener = on(el, value, modifiers, (e)=>{\n            evaluate2(()=>{}, {\n                scope: {\n                    \"$event\": e\n                },\n                params: [\n                    e\n                ]\n            });\n        });\n        cleanup2(()=>removeListener()\n        );\n    }));\n    // packages/alpinejs/src/directives/index.js\n    warnMissingPluginDirective(\"Collapse\", \"collapse\", \"collapse\");\n    warnMissingPluginDirective(\"Intersect\", \"intersect\", \"intersect\");\n    warnMissingPluginDirective(\"Focus\", \"trap\", \"focus\");\n    warnMissingPluginDirective(\"Mask\", \"mask\", \"mask\");\n    function warnMissingPluginDirective(name, directiveName, slug) {\n        directive(directiveName, (el)=>warn(`You can't use [x-${directiveName}] without first installing the \"${name}\" plugin here: https://alpinejs.dev/plugins/${slug}`, el)\n        );\n    }\n    // packages/alpinejs/src/index.js\n    alpine_default.setEvaluator(normalEvaluator);\n    alpine_default.setReactivityEngine({\n        reactive: reactive2,\n        effect: effect2,\n        release: stop,\n        raw: toRaw\n    });\n    var src_default = alpine_default;\n    // packages/alpinejs/builds/module.js\n    var module_default = src_default;\n\n    function isFormDataSubmitterSupported() {\n        try {\n            new FormData(document.createElement('form'), // @ts-expect-error if FormData supports the submitter parameter, this will throw\n            0);\n        } catch (e) {\n            return false;\n        }\n    }\n    // Inspired by https://github.com/remix-run/react-router/blob/9afac15d8cbe30b37d0f9e8b89c9f1e430dfe35a/packages/react-router-dom/dom.ts#L250\n    function getFormSubmissionInfo(target, submitter) {\n        let method;\n        let action;\n        let formData = undefined;\n        let defaultMethod = 'GET';\n        if (isFormElement(target)) {\n            action = target.action;\n            method = target.getAttribute('method') || defaultMethod;\n            formData = new FormData(target, submitter || null);\n        } else if (isButtonElement(target) || isInputElement(target) && (target.type === 'submit' || target.type === 'image')) {\n            let form = target.form;\n            if (form == null) {\n                throw new Error(`Cannot submit a <button> or <input type=\"submit\"> without a <form>`);\n            }\n            let attr = target.formAction || form.action;\n            action = attr;\n            method = target.getAttribute('formmethod') || form.getAttribute('method') || defaultMethod;\n            // Build a FormData object populated from a form and submitter\n            formData = new FormData(form, target);\n            // If this browser doesn't support the `FormData(el, submitter)` format,\n            // then tack on the submitter value at the end.  This is a lightweight\n            // solution that is not 100% spec compliant.  For complete support in older\n            // browsers, consider using the `formdata-submitter-polyfill` package\n            if (!isFormDataSubmitterSupported()) {\n                let { name , type , value  } = target;\n                if (type === 'image') {\n                    let prefix = name ? `${name}.` : '';\n                    formData.append(`${prefix}x`, '0');\n                    formData.append(`${prefix}y`, '0');\n                } else if (name) {\n                    formData.append(name, value);\n                }\n            }\n        } else if (isHtmlElement(target)) {\n            throw new Error(`Cannot submit element that is not <form>, <button>, or ` + `<input type=\"submit|image\">`);\n        } else {\n            method = defaultMethod;\n            action = null;\n        }\n        return {\n            action,\n            method: method.toUpperCase(),\n            formData\n        };\n    }\n    function isModifiedEvent(event) {\n        return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n    }\n    // Inspired by https://github.com/remix-run/react-router/blob/9afac15d8cbe30b37d0f9e8b89c9f1e430dfe35a/packages/react-router-dom/dom.ts#L36\n    function shouldProcessLinkClick(event, target) {\n        return event.button === 0 && (!target || target === '_self') && !isModifiedEvent(event) // Ignore clicks with modifier keys\n        ;\n    }\n    function isHtmlElement(node) {\n        return node != undefined && node != null && typeof node.tagName === 'string' && node.nodeType === Node.ELEMENT_NODE;\n    }\n    function isAnchorElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'A';\n    }\n    function isFormElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'FORM';\n    }\n    function isInputElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'INPUT';\n    }\n    function isInputNumberElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'INPUT' && node.getAttribute('type') == 'number';\n    }\n    function isButtonElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'BUTTON';\n    }\n    function isTemplateElement(node) {\n        return isHtmlElement(node) && node.nodeName === 'TEMPLATE';\n    }\n\n    function cache(Alpine1) {\n        Alpine1.store('cache', cacheStore());\n        Alpine1.directive('cache', ($el, { modifiers , expression  }, { Alpine , evaluate  })=>{\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if ($el.nodeName !== 'SCRIPT') {\n                throw new Error('Can only be used on script tags');\n            }\n            // Do nothing if the script tag is empty\n            if (((_a = $el.textContent) === null || _a === void 0 ? void 0 : _a.trim()) == '') {\n                return;\n            }\n            let json;\n            try {\n                json = JSON.parse($el.textContent || '{}');\n            } catch (e) {\n                throw new Error(`Could not parse ${$el.textContent} as JSON: ${e}`);\n            }\n            const resourceName = modifiers[0];\n            if (!resourceName) {\n                throw new Error('Must specify a store to cache to e.g. x-cache.products');\n            }\n            const cache = Alpine.store('cache').resources;\n            const cacheResource = cache[resourceName];\n            if (!cacheResource) {\n                throw new Error(`Could not find resource named ${resourceName}. Did you define it in the cache store?`);\n            }\n            if (expression) {\n                const cacheKey = evaluate(expression);\n                cacheResource.set(cacheKey, json);\n            } else {\n                if (isSingletonResource(cacheResource)) {\n                    cacheResource.set(json);\n                } else {\n                    cacheResource.upsert(json);\n                }\n            }\n        }).before('bind');\n        Alpine1.magic('cache', ()=>{\n            return Alpine1.store('cache').resources;\n        });\n    }function isSingletonResource(x) {\n        if ('isSingleton' in x && x.isSingleton) {\n            return true;\n        }\n        return false;\n    }\n    // TODO test me and document me\n    function buildResource(builder) {\n        return {\n            records: {},\n            set (key, value) {\n                this.records[key] = value;\n            },\n            populate (records) {\n                this.records = records;\n            },\n            upsert (records) {\n                this.records = Object.assign(Object.assign({}, this.records), records);\n            },\n            evict (key) {\n                delete this.records[key];\n            },\n            reset () {\n                this.records = {};\n            },\n            get (key) {\n                const result = this.records[key];\n                if (!result) {\n                    return null;\n                }\n                if (builder) {\n                    return builder(result);\n                }\n                return result;\n            },\n            get isSingleton () {\n                return false;\n            }\n        };\n    }\n    // TODO test me and document me\n    function buildSingletonResource(builder) {\n        return {\n            record: null,\n            set (value) {\n                this.record = value;\n            },\n            evict () {\n                this.record = null;\n            },\n            reset () {\n                this.record = null;\n            },\n            get () {\n                const result = this.record;\n                if (!result) {\n                    return null;\n                }\n                if (builder) {\n                    return builder(result);\n                }\n                return result;\n            },\n            get isSingleton () {\n                return true;\n            }\n        };\n    }\n    function cacheStore() {\n        return {\n            resources: {},\n            reset () {\n                Object.keys(this.resources).forEach((key)=>{\n                    this.resources[key].reset();\n                });\n            },\n            addResource (key, options) {\n                if (options === null || options === void 0 ? void 0 : options.singleton) {\n                    this.resources[key] = buildSingletonResource(options === null || options === void 0 ? void 0 : options.builder);\n                } else {\n                    this.resources[key] = buildResource(options === null || options === void 0 ? void 0 : options.builder);\n                }\n            }\n        };\n    }\n\n    function isPlainObject(x) {\n        return typeof x === 'object' && x !== null && !Array.isArray(x) && !(x instanceof Date);\n    }\n    /**\n     * Copy a property on an object and deletes the old property, all while preserving the property descriptor (e.g. getters/setters)\n     * @param obj - The object to copy the property from\n     * @param newObj - The object to copy the property to\n     * @param oldName - The name of the property to copy\n     * @param optionalNewName - The new name of the property (optional, defaults to oldName)\n     */ function copyProperty(obj, newObj, oldName, optionalNewName) {\n        const newName = oldName;\n        const descriptor = Object.getOwnPropertyDescriptor(obj, oldName);\n        if (!descriptor) throw new Error(`Property ${String(oldName)} not found on object`);\n        Object.defineProperty(newObj, newName, descriptor);\n    }\n    function trackProperty(obj, key, trackingKey) {\n        return new Proxy(obj, {\n            set (target, prop, value, receiver) {\n                if (prop == key) {\n                    receiver[trackingKey] = receiver[key];\n                }\n                return Reflect.set(target, prop, value, receiver);\n            }\n        });\n    }\n\n    /**\n     * Returns the modulo of n and m handling negative numbers correctly\n     *\n     * e.g.\n     * mod(1, 5) = 1\n     * mod(7, 5) = 2\n     * mod(-1, 5) = 4\n     * @param n\n     * @param m\n     * @returns\n     */ function mod(n, m) {\n        return (n % m + m) % m;\n    }\n    /**\n     * Return whether a string is numeric\n     * @param value\n     * @returns\n     */ function isNumeric(value) {\n        if (typeof value == 'number') return true;\n        return !isNaN(value) && !isNaN(parseFloat(value)); // ...and ensure strings of whitespace fail\n    }\n\n    var ThemeEditorEvent;\n    (function(ThemeEditorEvent1) {\n        ThemeEditorEvent1[\"INSPECTOR_ACTIVATED\"] = \"shopify:inspector:activate\";\n        ThemeEditorEvent1[\"INSPECTOR_DEACTIVATED\"] = \"shopify:inspector:deactivate\";\n        ThemeEditorEvent1[\"SECTION_LOAD\"] = \"shopify:section:load\";\n        ThemeEditorEvent1[\"SECTION_UNLOAD\"] = \"shopify:section:unload\";\n        ThemeEditorEvent1[\"SECTION_SELECT\"] = \"shopify:section:select\";\n        ThemeEditorEvent1[\"SECTION_DESELECT\"] = \"shopify:section:deselect\";\n        ThemeEditorEvent1[\"SECTION_REORDER\"] = \"shopify:section:reorder\";\n        ThemeEditorEvent1[\"BLOCK_SELECT\"] = \"shopify:block:select\";\n        ThemeEditorEvent1[\"BLOCK_DESELECT\"] = \"shopify:block:deselect\";\n    })(ThemeEditorEvent || (ThemeEditorEvent = {}));\n\n    var ThemeEvent;\n    (function(ThemeEvent1) {\n        ThemeEvent1[ThemeEvent1[\"theme:cart:add\"] = 0] = \"theme:cart:add\";\n        ThemeEvent1[ThemeEvent1[\"theme:cart:update\"] = 1] = \"theme:cart:update\";\n        ThemeEvent1[ThemeEvent1[\"theme:section:navigate\"] = 2] = \"theme:section:navigate\";\n        ThemeEvent1[ThemeEvent1[\"theme:section:load\"] = 3] = \"theme:section:load\";\n        ThemeEvent1[ThemeEvent1[\"theme:section:update\"] = 4] = \"theme:section:update\";\n    })(ThemeEvent || (ThemeEvent = {}));\n\n    /**\n     * Returns the containing section element of the current element, or the current element if it is a section\n     */ function closestSectionEl($el) {\n        if (!isHtmlElement($el)) {\n            throw new Error(`Expected HTMLElement but got ${$el}`);\n        }\n        if ($el.classList.contains('shopify-section')) {\n            return $el;\n        }\n        return $el.closest('.shopify-section');\n    }\n    function bindAllThemeSections(Alpine, cb) {\n        document.addEventListener('alpine:init', ()=>{\n            const sections = document.getElementsByClassName('shopify-section');\n            for (const el of sections){\n                if (isHtmlElement(el)) {\n                    cb(el);\n                }\n            }\n            // Re-bind sections when they are re-loaded by the theme editor\n            window.addEventListener(ThemeEditorEvent.SECTION_LOAD, (e)=>{\n                var _a;\n                if ((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode) {\n                    const loadedEvent = e;\n                    const section = document.getElementById(`shopify-section-${loadedEvent.detail.sectionId}`);\n                    if (section) {\n                        Alpine.deferMutations();\n                        cb(section);\n                        Alpine.flushAndStopDeferringMutations();\n                    }\n                }\n            });\n        });\n    }\n\n    /**\n     * StateMachine: A generic finite state machine implementation.\n     *\n     * A state machine is a conceptual model used to design systems and applications. It consists of a finite set of states and\n     * transitions between those states, often driven by events. State machines are ideal for situations where an application or system\n     * can be thought of as having distinct states with well-defined transitions, such as user interfaces, protocols, and life cycles.\n     *\n     * @template TStates A tuple of string literals representing the possible states.\n     * @template TTransitions A mapping of each state to an array of states to which it can transition.\n     * @template TState The current state of the machine, must be one of TStates.\n     *\n     * The `StateMachine` class provides mechanisms to manage states, transitions, and listeners that react to state changes.\n     *\n     * Usage example:\n     *\n     * // Define states and transitions\n     * const states = ['idle', 'loading', 'success', 'error'] as const;\n     * const transitions = {\n     *   idle: ['loading'],\n     *   loading: ['success', 'error'],\n     *   success: ['idle'],\n     *   error: ['idle'],\n     * };\n     *\n     * // Create a state machine\n     * const machine = new StateMachine('idle', states, transitions);\n     *\n     * // Listen for state changes\n     * machine.on((newState, prevState) => {\n     *   console.log(`Transitioned from ${prevState} to ${newState}`);\n     * });\n     *\n     * // Change state\n     * machine.state = 'loading';\n     *\n     * Features:\n     * - Strongly typed states and transitions ensure only valid state changes are possible.\n     * - Event listeners for state changes, to react to or log transitions.\n     * - Custom error handling for invalid transitions.\n     *\n     * The class manages the current state privately and allows state changes only through the state setter,\n     * which checks for valid transitions and notifies listeners.\n     */ class StateMachine {\n        /**\n         *  Attempts to transition the state machine to a new state. Validates the transition against the defined rules\n         *  and, if valid, updates the state and triggers the listeners. Throws an error if the transition is invalid.\n         */ set state(newState) {\n            const validTransitions = intersectArrays(this.states, this.transitions[this._state] || []);\n            if (validTransitions.includes(newState)) {\n                let prevState = this._state;\n                this._prevState = prevState;\n                this._state = newState;\n                this.listeners.forEach((listener)=>listener(newState, prevState)\n                );\n            } else {\n                throw new Error(`Invalid transition from ${this._state} to ${newState}`);\n            }\n        }\n        /**\n         * Transitions the state machine to a new state, but only temporarily. After the specified timeout, the state will transition to the next state\n         * This method is useful for UI interactions that should only be visible for a short period of time, such as a success message after a form submission.\n         */ setTransientState(transientState, nextState, timeout) {\n            return new Promise((resolve)=>{\n                // Transition to the transient state immediately\n                this._state = transientState;\n                // Then, after a timeout, transition to the next state\n                setTimeout(()=>{\n                    this._state = nextState;\n                    resolve();\n                }, timeout);\n            });\n        }\n        /**\n         * Returns the current state of the state machine.\n         */ get state() {\n            return this._state;\n        }\n        /**\n         * Returns the previous state of the state machine (if this is the initial state it will return null)\n         */ get prevState() {\n            return this._prevState;\n        }\n        /**\n         * Registers a new listener function to be called when the state changes.\n         * @param listener\n         */ on(listener) {\n            this.listeners.push(listener);\n        }\n        /**\n         * Removes a previously registered listener function so that it will no longer be called on state changes.\n         * @param listener\n         */ off(listener) {\n            const index = this.listeners.indexOf(listener);\n            if (index !== -1) {\n                this.listeners.splice(index, 1);\n            }\n        }\n        /**\n         * Initializes the state machine with the specified initial state, possible states, and valid transitions.\n         *\n         * @param initialState The starting state of the state machine.\n         * @param states An array of possible states the state machine can be in.\n         * @param transitions A record mapping each state to an array of states to which it can transition.\n         *\n         */ constructor(initialState, states, transitions){\n            this._prevState = null;\n            this.listeners = [];\n            this._state = initialState;\n            this.states = states;\n            this.transitions = transitions;\n        }\n    }\n    function intersectArrays(arr1, arr2) {\n        const set2 = new Set(arr2);\n        return arr1.filter((x)=>set2.has(x)\n        );\n    }\n\n    const DEFAULT_LIST_STATE_NAME = 'listState';\n    function listState(Alpine) {\n        Alpine.directive('list-state', ($el, { value , expression , modifiers  }, { evaluate  })=>{\n            if (value == 'item') {\n                const $data = Alpine.$data($el);\n                let scope = `$${DEFAULT_LIST_STATE_NAME}`;\n                if (modifiers.includes('for') && modifiers.length >= 2) {\n                    const forIndex = modifiers.indexOf('for');\n                    scope = `$${modifiers[forIndex + 1]}`;\n                }\n                if (!(scope in $data)) {\n                    throw new Error(`x-list-state:item must be used within x-list-state directive. To register an item in a scoped list state, use $myScopeName.register($el)`);\n                }\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            init () {\n                                $data[scope].register(this.$el);\n                            },\n                            destroy () {\n                                $data[scope].unregister(this.$el);\n                            }\n                        };\n                    }\n                });\n            } else if (value == null) {\n                let options = {};\n                let scope = `$${DEFAULT_LIST_STATE_NAME}`;\n                if (modifiers.includes('as') && modifiers.length >= 2) {\n                    const asIndex = modifiers.indexOf('as');\n                    scope = `$${modifiers[asIndex + 1]}`;\n                }\n                if (expression) {\n                    let evalutatedExpression = evaluate(expression === '' ? '{}' : expression);\n                    if (isPlainObject(evalutatedExpression)) {\n                        options = evalutatedExpression;\n                        if (options.scope) {\n                            scope = `$${options.scope}`;\n                        }\n                    }\n                }\n                let state;\n                if (options.multiple || modifiers.includes('multiple')) {\n                    options = options;\n                    if (options === null || options === void 0 ? void 0 : options.selectedIndices) {\n                        if (!(options.selectedIndices instanceof Set)) {\n                            throw new Error('selectedIndices must be a Set');\n                        }\n                    }\n                    state = buildMultiSelectListState(options);\n                } else {\n                    options = options;\n                    state = buildSingleSelectListState(options);\n                }\n                Alpine.addScopeToNode($el, {\n                    [scope]: Alpine.reactive(state)\n                });\n            } else {\n                throw new Error(`Unknown directive: x-list-state:${value}`);\n            }\n        }).before('bind');\n    }function buildSingleSelectListState(options) {\n        let state = {\n            previousSelectedIndex: null,\n            selectedIndex: null,\n            items: new Set(),\n            get totalItems () {\n                return this.items.size;\n            },\n            isSelected (index) {\n                return this.selectedIndex == index;\n            },\n            register (el) {\n                this.items.add(el);\n            },\n            unregister (el) {\n                this.items.delete(el);\n            },\n            indexOf (el) {\n                return Array.from(this.items).indexOf(el);\n            },\n            toggle (index) {\n                this.selectedIndex == index ? this.deselect(index) : this.select(index);\n            },\n            select (index) {\n                this.selectedIndex = index;\n            },\n            deselect (index) {\n                if (this.selectedIndex == index) {\n                    this.selectedIndex = null;\n                }\n            }\n        };\n        if ('selectedIndex' in options) {\n            copyProperty(options, state, 'selectedIndex');\n        }\n        return state;\n    }\n    function buildMultiSelectListState(options) {\n        let state = {\n            selectedIndices: new Set(),\n            items: new Set(),\n            get totalItems () {\n                return this.items.size;\n            },\n            isSelected (index) {\n                return this.selectedIndices.has(index);\n            },\n            register (el) {\n                this.items.add(el);\n            },\n            unregister (el) {\n                this.items.delete(el);\n            },\n            indexOf (el) {\n                return Array.from(this.items).indexOf(el);\n            },\n            toggle (index) {\n                this.selectedIndices.has(index) ? this.deselect(index) : this.select(index);\n            },\n            select (index) {\n                const selected = this.selectedIndices;\n                selected.add(index);\n                // Copy to a new set so that reactivity works\n                this.selectedIndices = new Set(Array.from(selected));\n            },\n            deselect (index) {\n                const selected = this.selectedIndices;\n                selected.delete(index);\n                // Copy to a new set so that reactivity works\n                this.selectedIndices = new Set(Array.from(selected));\n            }\n        };\n        if ('selectedIndices' in options) {\n            copyProperty(options, state, 'selectedIndices');\n        }\n        return state;\n    }\n\n    undefined && undefined.__rest || function(s, e) {\n        var t = {};\n        for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n        if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++){\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n        }\n        return t;\n    };\n\n    const DEFAULT_MAX_REPEAT_TIME_IN_MS = 1500;\n    /**\n     * Allow repeatedly triggering an action while the mouse is held down or while element is being touched\n     *\n     * e.g.\n     *\n     * <button x-hold.250ms=\"console.log('clicked')\">Hold me down</button>\n     */ function hold(Alpine) {\n        Alpine.directive('hold', ($el, { modifiers , expression  }, { evaluate  })=>{\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            let firstModifier = modifiers[0] || '';\n            let time = isNumeric(firstModifier.split('ms')[0]) ? Number(firstModifier.split('ms')[0]) : 25;\n            let maxModifierIndex = modifiers.indexOf('max');\n            let maxValueModifier = modifiers[maxModifierIndex + 1];\n            let maxTime = isNumeric(maxValueModifier === null || maxValueModifier === void 0 ? void 0 : maxValueModifier.split('ms')[0]) ? Number(maxValueModifier.split('ms')[0]) : DEFAULT_MAX_REPEAT_TIME_IN_MS;\n            Alpine.bind($el, {\n                ['x-data'] () {\n                    return {\n                        __intervalId: undefined,\n                        __onPointerDown (e) {\n                            var _a;\n                            if (isHtmlElement(e.target)) {\n                                if ((_a = e.target) === null || _a === void 0 ? void 0 : _a.hasPointerCapture(e.pointerId)) {\n                                    e.target.releasePointerCapture(e.pointerId);\n                                }\n                            }\n                            let repeats = 0;\n                            this.__intervalId = window.setInterval(()=>{\n                                evaluate(expression);\n                                repeats += 1;\n                                if (repeats * time >= maxTime) {\n                                    // Automatically stop the intervals after a certain amount of time\n                                    // in case somehow the pointerup event is not triggered or there is some\n                                    // other bug that causes the interval to not be cleared\n                                    window.clearInterval(this.__intervalId);\n                                }\n                            }, time);\n                        },\n                        __onPointerUp (_e) {\n                            window.clearInterval(this.__intervalId);\n                        },\n                        __onPointerLeave (_e) {\n                            window.clearInterval(this.__intervalId);\n                        },\n                        destroy () {\n                            window.clearInterval(this.__intervalId);\n                        }\n                    };\n                },\n                '@pointerdown': '__onPointerDown',\n                '@pointerup.window': '__onPointerUp',\n                '@pointerleave': '__onPointerLeave'\n            });\n        }).before('bind');\n    }\n\n    function addUniqueItem(arr, item) {\n        if (arr.indexOf(item) === -1) arr.push(item);\n    }\n    function removeItem(arr, item) {\n        const index = arr.indexOf(item);\n        if (index > -1) arr.splice(index, 1);\n    }\n\n    const clamp = (min, max, v)=>{\n        if (v > max) return max;\n        if (v < min) return min;\n        return v;\n    };\n\n    function formatErrorMessage(message, errorCode) {\n        return errorCode ? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}` : message;\n    }\n\n    let warning = ()=>{};\n    let invariant = ()=>{};\n    if (process.env.NODE_ENV !== \"production\") {\n        warning = (check, message, errorCode)=>{\n            if (!check && typeof console !== \"undefined\") {\n                console.warn(formatErrorMessage(message, errorCode));\n            }\n        };\n        invariant = (check, message, errorCode)=>{\n            if (!check) {\n                throw new Error(formatErrorMessage(message, errorCode));\n            }\n        };\n    }\n\n    const MotionGlobalConfig = {};\n\n    /**\n     * Check if value is a numerical string, ie a string that is purely a number eg \"100\" or \"-100.1\"\n     */ const isNumericalString = (v)=>/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(v)\n    ;\n\n    function isObject(value) {\n        return typeof value === \"object\" && value !== null;\n    }\n\n    /**\n     * Check if the value is a zero value string like \"0px\" or \"0%\"\n     */ const isZeroValueString = (v)=>/^0[^.\\s]+$/u.test(v)\n    ;\n\n    /*#__NO_SIDE_EFFECTS__*/ function memo(callback) {\n        let result;\n        return ()=>{\n            if (result === undefined) result = callback();\n            return result;\n        };\n    }\n\n    /*#__NO_SIDE_EFFECTS__*/ const noop = (any)=>any\n    ;\n\n    /**\n     * Pipe\n     * Compose other transformers to run linearily\n     * pipe(min(20), max(40))\n     * @param  {...functions} transformers\n     * @return {function}\n     */ const combineFunctions = (a, b)=>(v)=>b(a(v))\n    ;\n    const pipe = (...transformers)=>transformers.reduce(combineFunctions)\n    ;\n\n    /*\n      Progress within given range\n\n      Given a lower limit and an upper limit, we return the progress\n      (expressed as a number 0-1) represented by the given value, and\n      limit that progress to within 0-1.\n\n      @param [number]: Lower limit\n      @param [number]: Upper limit\n      @param [number]: Value to find progress within given range\n      @return [number]: Progress of value within range as expressed 0-1\n    */ /*#__NO_SIDE_EFFECTS__*/ const progress = (from, to, value)=>{\n        const toFromDifference = to - from;\n        return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\n    };\n\n    let SubscriptionManager = class SubscriptionManager {\n        add(handler) {\n            addUniqueItem(this.subscriptions, handler);\n            return ()=>removeItem(this.subscriptions, handler)\n            ;\n        }\n        notify(a, b, c) {\n            const numSubscriptions = this.subscriptions.length;\n            if (!numSubscriptions) return;\n            if (numSubscriptions === 1) {\n                /**\n                 * If there's only a single handler we can just call it without invoking a loop.\n                 */ this.subscriptions[0](a, b, c);\n            } else {\n                for(let i = 0; i < numSubscriptions; i++){\n                    /**\n                     * Check whether the handler exists before firing as it's possible\n                     * the subscriptions were modified during this loop running.\n                     */ const handler = this.subscriptions[i];\n                    handler && handler(a, b, c);\n                }\n            }\n        }\n        getSize() {\n            return this.subscriptions.length;\n        }\n        clear() {\n            this.subscriptions.length = 0;\n        }\n        constructor(){\n            this.subscriptions = [];\n        }\n    };\n\n    /**\n     * Converts seconds to milliseconds\n     *\n     * @param seconds - Time in seconds.\n     * @return milliseconds - Converted time in milliseconds.\n     */ /*#__NO_SIDE_EFFECTS__*/ const secondsToMilliseconds = (seconds)=>seconds * 1000\n    ;\n    /*#__NO_SIDE_EFFECTS__*/ const millisecondsToSeconds = (milliseconds)=>milliseconds / 1000\n    ;\n\n    /*\n      Convert velocity into velocity per second\n\n      @param [number]: Unit per frame\n      @param [number]: Frame duration in ms\n    */ function velocityPerSecond(velocity, frameDuration) {\n        return frameDuration ? velocity * (1000 / frameDuration) : 0;\n    }\n\n    const warned = new Set();\n    function warnOnce(condition, message, errorCode) {\n        if (condition || warned.has(message)) return;\n        console.warn(formatErrorMessage(message, errorCode));\n        warned.add(message);\n    }\n\n    const wrap = (min, max, v)=>{\n        const rangeSize = max - min;\n        return ((v - min) % rangeSize + rangeSize) % rangeSize + min;\n    };\n\n    /*\n      Bezier function generator\n      This has been modified from Ga\u00EBtan Renaudeau's BezierEasing\n      https://github.com/gre/bezier-easing/blob/master/src/index.js\n      https://github.com/gre/bezier-easing/blob/master/LICENSE\n      \n      I've removed the newtonRaphsonIterate algo because in benchmarking it\n      wasn't noticeably faster than binarySubdivision, indeed removing it\n      usually improved times, depending on the curve.\n      I also removed the lookup table, as for the added bundle size and loop we're\n      only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n      to 12 to compensate and this still tended to be faster for no perceivable\n      loss in accuracy.\n      Usage\n        const easeOut = cubicBezier(.17,.67,.83,.67);\n        const x = easeOut(0.5); // returns 0.627...\n    */ // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\n    const calcBezier = (t, a1, a2)=>(((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) * t\n    ;\n    const subdivisionPrecision = 0.0000001;\n    const subdivisionMaxIterations = 12;\n    function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n        let currentX;\n        let currentT;\n        let i = 0;\n        do {\n            currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n            currentX = calcBezier(currentT, mX1, mX2) - x;\n            if (currentX > 0.0) {\n                upperBound = currentT;\n            } else {\n                lowerBound = currentT;\n            }\n        }while (Math.abs(currentX) > subdivisionPrecision && ++i < subdivisionMaxIterations)\n        return currentT;\n    }\n    function cubicBezier(mX1, mY1, mX2, mY2) {\n        // If this is a linear gradient, return linear easing\n        if (mX1 === mY1 && mX2 === mY2) return noop;\n        const getTForX = (aX)=>binarySubdivide(aX, 0, 1, mX1, mX2)\n        ;\n        // If animation is at start/end, return t without easing\n        return (t)=>t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2)\n        ;\n    }\n\n    // Accepts an easing function and returns a new one that outputs mirrored values for\n    // the second half of the animation. Turns easeIn into easeInOut.\n    const mirrorEasing = (easing)=>(p)=>p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2\n    ;\n\n    // Accepts an easing function and returns a new one that outputs reversed values.\n    // Turns easeIn into easeOut.\n    const reverseEasing = (easing)=>(p)=>1 - easing(1 - p)\n    ;\n\n    const backOut = /*@__PURE__*/ cubicBezier(0.33, 1.53, 0.69, 0.99);\n    const backIn = /*@__PURE__*/ reverseEasing(backOut);\n    const backInOut = /*@__PURE__*/ mirrorEasing(backIn);\n\n    const anticipate = (p)=>(p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)))\n    ;\n\n    const circIn = (p)=>1 - Math.sin(Math.acos(p))\n    ;\n    const circOut = reverseEasing(circIn);\n    const circInOut = mirrorEasing(circIn);\n\n    const easeIn = /*@__PURE__*/ cubicBezier(0.42, 0, 1, 1);\n    const easeOut = /*@__PURE__*/ cubicBezier(0, 0, 0.58, 1);\n    const easeInOut = /*@__PURE__*/ cubicBezier(0.42, 0, 0.58, 1);\n\n    const isEasingArray = (ease)=>{\n        return Array.isArray(ease) && typeof ease[0] !== \"number\";\n    };\n\n    function getEasingForSegment(easing, i) {\n        return isEasingArray(easing) ? easing[wrap(0, easing.length, i)] : easing;\n    }\n\n    const isBezierDefinition = (easing)=>Array.isArray(easing) && typeof easing[0] === \"number\"\n    ;\n\n    const easingLookup = {\n        linear: noop,\n        easeIn,\n        easeInOut,\n        easeOut,\n        circIn,\n        circInOut,\n        circOut,\n        backIn,\n        backInOut,\n        backOut,\n        anticipate\n    };\n    const isValidEasing = (easing)=>{\n        return typeof easing === \"string\";\n    };\n    const easingDefinitionToFunction = (definition)=>{\n        if (isBezierDefinition(definition)) {\n            // If cubic bezier definition, create bezier curve\n            invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`, \"cubic-bezier-length\");\n            const [x1, y1, x2, y2] = definition;\n            return cubicBezier(x1, y1, x2, y2);\n        } else if (isValidEasing(definition)) {\n            // Else lookup from table\n            invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`, \"invalid-easing-type\");\n            return easingLookup[definition];\n        }\n        return definition;\n    };\n\n    const stepsOrder = [\n        \"setup\",\n        \"read\",\n        \"resolveKeyframes\",\n        \"preUpdate\",\n        \"update\",\n        \"preRender\",\n        \"render\",\n        \"postRender\"\n    ];\n\n    const statsBuffer = {\n        value: null,\n        addProjectionMetrics: null\n    };\n\n    function createRenderStep(runNextFrame, stepName) {\n        /**\n         * We create and reuse two queues, one to queue jobs for the current frame\n         * and one for the next. We reuse to avoid triggering GC after x frames.\n         */ let thisFrame = new Set();\n        let nextFrame = new Set();\n        /**\n         * Track whether we're currently processing jobs in this step. This way\n         * we can decide whether to schedule new jobs for this frame or next.\n         */ let isProcessing = false;\n        let flushNextFrame = false;\n        /**\n         * A set of processes which were marked keepAlive when scheduled.\n         */ const toKeepAlive = new WeakSet();\n        let latestFrameData = {\n            delta: 0.0,\n            timestamp: 0.0,\n            isProcessing: false\n        };\n        let numCalls = 0;\n        function triggerCallback(callback) {\n            if (toKeepAlive.has(callback)) {\n                step.schedule(callback);\n                runNextFrame();\n            }\n            numCalls++;\n            callback(latestFrameData);\n        }\n        const step = {\n            /**\n             * Schedule a process to run on the next frame.\n             */ schedule: (callback, keepAlive = false, immediate = false)=>{\n                const addToCurrentFrame = immediate && isProcessing;\n                const queue = addToCurrentFrame ? thisFrame : nextFrame;\n                if (keepAlive) toKeepAlive.add(callback);\n                if (!queue.has(callback)) queue.add(callback);\n                return callback;\n            },\n            /**\n             * Cancel the provided callback from running on the next frame.\n             */ cancel: (callback)=>{\n                nextFrame.delete(callback);\n                toKeepAlive.delete(callback);\n            },\n            /**\n             * Execute all schedule callbacks.\n             */ process: (frameData)=>{\n                latestFrameData = frameData;\n                /**\n                 * If we're already processing we've probably been triggered by a flushSync\n                 * inside an existing process. Instead of executing, mark flushNextFrame\n                 * as true and ensure we flush the following frame at the end of this one.\n                 */ if (isProcessing) {\n                    flushNextFrame = true;\n                    return;\n                }\n                isProcessing = true;\n                [thisFrame, nextFrame] = [\n                    nextFrame,\n                    thisFrame\n                ];\n                // Execute this frame\n                thisFrame.forEach(triggerCallback);\n                /**\n                 * If we're recording stats then\n                 */ if (stepName && statsBuffer.value) {\n                    statsBuffer.value.frameloop[stepName].push(numCalls);\n                }\n                numCalls = 0;\n                // Clear the frame so no callbacks remain. This is to avoid\n                // memory leaks should this render step not run for a while.\n                thisFrame.clear();\n                isProcessing = false;\n                if (flushNextFrame) {\n                    flushNextFrame = false;\n                    step.process(frameData);\n                }\n            }\n        };\n        return step;\n    }\n\n    const maxElapsed$1 = 40;\n    function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {\n        let runNextFrame = false;\n        let useDefaultElapsed = true;\n        const state = {\n            delta: 0.0,\n            timestamp: 0.0,\n            isProcessing: false\n        };\n        const flagRunNextFrame = ()=>runNextFrame = true\n        ;\n        const steps = stepsOrder.reduce((acc, key)=>{\n            acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : undefined);\n            return acc;\n        }, {});\n        const { setup , read , resolveKeyframes , preUpdate , update , preRender , render , postRender ,  } = steps;\n        const processBatch = ()=>{\n            const timestamp = MotionGlobalConfig.useManualTiming ? state.timestamp : performance.now();\n            runNextFrame = false;\n            if (!MotionGlobalConfig.useManualTiming) {\n                state.delta = useDefaultElapsed ? 1000 / 60 : Math.max(Math.min(timestamp - state.timestamp, maxElapsed$1), 1);\n            }\n            state.timestamp = timestamp;\n            state.isProcessing = true;\n            // Unrolled render loop for better per-frame performance\n            setup.process(state);\n            read.process(state);\n            resolveKeyframes.process(state);\n            preUpdate.process(state);\n            update.process(state);\n            preRender.process(state);\n            render.process(state);\n            postRender.process(state);\n            state.isProcessing = false;\n            if (runNextFrame && allowKeepAlive) {\n                useDefaultElapsed = false;\n                scheduleNextBatch(processBatch);\n            }\n        };\n        const wake = ()=>{\n            runNextFrame = true;\n            useDefaultElapsed = true;\n            if (!state.isProcessing) {\n                scheduleNextBatch(processBatch);\n            }\n        };\n        const schedule = stepsOrder.reduce((acc, key)=>{\n            const step = steps[key];\n            acc[key] = (process, keepAlive = false, immediate = false)=>{\n                if (!runNextFrame) wake();\n                return step.schedule(process, keepAlive, immediate);\n            };\n            return acc;\n        }, {});\n        const cancel = (process)=>{\n            for(let i = 0; i < stepsOrder.length; i++){\n                steps[stepsOrder[i]].cancel(process);\n            }\n        };\n        return {\n            schedule,\n            cancel,\n            state,\n            steps\n        };\n    }\n\n    const { schedule: frame , cancel: cancelFrame , state: frameData , steps: frameSteps ,  } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true);\n\n    let now;\n    function clearTime() {\n        now = undefined;\n    }\n    /**\n     * An eventloop-synchronous alternative to performance.now().\n     *\n     * Ensures that time measurements remain consistent within a synchronous context.\n     * Usually calling performance.now() twice within the same synchronous context\n     * will return different values which isn't useful for animations when we're usually\n     * trying to sync animations to the same frame.\n     */ const time = {\n        now: ()=>{\n            if (now === undefined) {\n                time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming ? frameData.timestamp : performance.now());\n            }\n            return now;\n        },\n        set: (newTime)=>{\n            now = newTime;\n            queueMicrotask(clearTime);\n        }\n    };\n\n    const checkStringStartsWith = (token)=>(key)=>typeof key === \"string\" && key.startsWith(token)\n    ;\n    const isCSSVariableName = /*@__PURE__*/ checkStringStartsWith(\"--\");\n    const startsAsVariableToken = /*@__PURE__*/ checkStringStartsWith(\"var(--\");\n    const isCSSVariableToken = (value)=>{\n        const startsWithToken = startsAsVariableToken(value);\n        if (!startsWithToken) return false;\n        // Ensure any comments are stripped from the value as this can harm performance of the regex.\n        return singleCssVariableRegex.test(value.split(\"/*\")[0].trim());\n    };\n    const singleCssVariableRegex = /var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;\n\n    const number = {\n        test: (v)=>typeof v === \"number\"\n        ,\n        parse: parseFloat,\n        transform: (v)=>v\n    };\n    const alpha = {\n        ...number,\n        transform: (v)=>clamp(0, 1, v)\n    };\n    const scale = {\n        ...number,\n        default: 1\n    };\n\n    // If this number is a decimal, make it just five decimal places\n    // to avoid exponents\n    const sanitize = (v)=>Math.round(v * 100000) / 100000\n    ;\n\n    const floatRegex = /-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;\n\n    function isNullish(v) {\n        return v == null;\n    }\n\n    const singleColorRegex = /^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;\n\n    /**\n     * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,\n     * but false if a number or multiple colors\n     */ const isColorString = (type, testProp)=>(v)=>{\n            return Boolean(typeof v === \"string\" && singleColorRegex.test(v) && v.startsWith(type) || testProp && !isNullish(v) && Object.prototype.hasOwnProperty.call(v, testProp));\n        }\n    ;\n    const splitColor = (aName, bName, cName)=>(v)=>{\n            if (typeof v !== \"string\") return v;\n            const [a, b, c, alpha] = v.match(floatRegex);\n            return {\n                [aName]: parseFloat(a),\n                [bName]: parseFloat(b),\n                [cName]: parseFloat(c),\n                alpha: alpha !== undefined ? parseFloat(alpha) : 1\n            };\n        }\n    ;\n\n    const clampRgbUnit = (v)=>clamp(0, 255, v)\n    ;\n    const rgbUnit = {\n        ...number,\n        transform: (v)=>Math.round(clampRgbUnit(v))\n    };\n    const rgba = {\n        test: /*@__PURE__*/ isColorString(\"rgb\", \"red\"),\n        parse: /*@__PURE__*/ splitColor(\"red\", \"green\", \"blue\"),\n        transform: ({ red , green , blue , alpha: alpha$1 = 1  })=>\"rgba(\" + rgbUnit.transform(red) + \", \" + rgbUnit.transform(green) + \", \" + rgbUnit.transform(blue) + \", \" + sanitize(alpha.transform(alpha$1)) + \")\"\n    };\n\n    function parseHex(v) {\n        let r = \"\";\n        let g = \"\";\n        let b = \"\";\n        let a = \"\";\n        // If we have 6 characters, ie #FF0000\n        if (v.length > 5) {\n            r = v.substring(1, 3);\n            g = v.substring(3, 5);\n            b = v.substring(5, 7);\n            a = v.substring(7, 9);\n        // Or we have 3 characters, ie #F00\n        } else {\n            r = v.substring(1, 2);\n            g = v.substring(2, 3);\n            b = v.substring(3, 4);\n            a = v.substring(4, 5);\n            r += r;\n            g += g;\n            b += b;\n            a += a;\n        }\n        return {\n            red: parseInt(r, 16),\n            green: parseInt(g, 16),\n            blue: parseInt(b, 16),\n            alpha: a ? parseInt(a, 16) / 255 : 1\n        };\n    }\n    const hex = {\n        test: /*@__PURE__*/ isColorString(\"#\"),\n        parse: parseHex,\n        transform: rgba.transform\n    };\n\n    /*#__NO_SIDE_EFFECTS__*/ const createUnitType = (unit)=>({\n            test: (v)=>typeof v === \"string\" && v.endsWith(unit) && v.split(\" \").length === 1\n            ,\n            parse: parseFloat,\n            transform: (v)=>`${v}${unit}`\n        })\n    ;\n    const degrees = /*@__PURE__*/ createUnitType(\"deg\");\n    const percent = /*@__PURE__*/ createUnitType(\"%\");\n    const px = /*@__PURE__*/ createUnitType(\"px\");\n    const vh = /*@__PURE__*/ createUnitType(\"vh\");\n    const vw = /*@__PURE__*/ createUnitType(\"vw\");\n    const progressPercentage = /*@__PURE__*/ (()=>({\n            ...percent,\n            parse: (v)=>percent.parse(v) / 100\n            ,\n            transform: (v)=>percent.transform(v * 100)\n        })\n    )();\n\n    const hsla = {\n        test: /*@__PURE__*/ isColorString(\"hsl\", \"hue\"),\n        parse: /*@__PURE__*/ splitColor(\"hue\", \"saturation\", \"lightness\"),\n        transform: ({ hue , saturation , lightness , alpha: alpha$1 = 1  })=>{\n            return \"hsla(\" + Math.round(hue) + \", \" + percent.transform(sanitize(saturation)) + \", \" + percent.transform(sanitize(lightness)) + \", \" + sanitize(alpha.transform(alpha$1)) + \")\";\n        }\n    };\n\n    const color = {\n        test: (v)=>rgba.test(v) || hex.test(v) || hsla.test(v)\n        ,\n        parse: (v)=>{\n            if (rgba.test(v)) {\n                return rgba.parse(v);\n            } else if (hsla.test(v)) {\n                return hsla.parse(v);\n            } else {\n                return hex.parse(v);\n            }\n        },\n        transform: (v)=>{\n            return typeof v === \"string\" ? v : v.hasOwnProperty(\"red\") ? rgba.transform(v) : hsla.transform(v);\n        },\n        getAnimatableNone: (v)=>{\n            const parsed = color.parse(v);\n            parsed.alpha = 0;\n            return color.transform(parsed);\n        }\n    };\n\n    const colorRegex = /(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;\n\n    function test(v) {\n        var ref, ref1;\n        return isNaN(v) && typeof v === \"string\" && (((ref = v.match(floatRegex)) === null || ref === void 0 ? void 0 : ref.length) || 0) + (((ref1 = v.match(colorRegex)) === null || ref1 === void 0 ? void 0 : ref1.length) || 0) > 0;\n    }\n    const NUMBER_TOKEN = \"number\";\n    const COLOR_TOKEN = \"color\";\n    const VAR_TOKEN = \"var\";\n    const VAR_FUNCTION_TOKEN = \"var(\";\n    const SPLIT_TOKEN = \"${}\";\n    // this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`\n    const complexRegex = /var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;\n    function analyseComplexValue(value) {\n        const originalValue = value.toString();\n        const values = [];\n        const indexes = {\n            color: [],\n            number: [],\n            var: []\n        };\n        const types = [];\n        let i = 0;\n        const tokenised = originalValue.replace(complexRegex, (parsedValue)=>{\n            if (color.test(parsedValue)) {\n                indexes.color.push(i);\n                types.push(COLOR_TOKEN);\n                values.push(color.parse(parsedValue));\n            } else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n                indexes.var.push(i);\n                types.push(VAR_TOKEN);\n                values.push(parsedValue);\n            } else {\n                indexes.number.push(i);\n                types.push(NUMBER_TOKEN);\n                values.push(parseFloat(parsedValue));\n            }\n            ++i;\n            return SPLIT_TOKEN;\n        });\n        const split = tokenised.split(SPLIT_TOKEN);\n        return {\n            values,\n            split,\n            indexes,\n            types\n        };\n    }\n    function parseComplexValue(v) {\n        return analyseComplexValue(v).values;\n    }\n    function createTransformer(source) {\n        const { split , types  } = analyseComplexValue(source);\n        const numSections = split.length;\n        return (v)=>{\n            let output = \"\";\n            for(let i = 0; i < numSections; i++){\n                output += split[i];\n                if (v[i] !== undefined) {\n                    const type = types[i];\n                    if (type === NUMBER_TOKEN) {\n                        output += sanitize(v[i]);\n                    } else if (type === COLOR_TOKEN) {\n                        output += color.transform(v[i]);\n                    } else {\n                        output += v[i];\n                    }\n                }\n            }\n            return output;\n        };\n    }\n    const convertNumbersToZero = (v)=>typeof v === \"number\" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v\n    ;\n    function getAnimatableNone$1(v) {\n        const parsed = parseComplexValue(v);\n        const transformer = createTransformer(v);\n        return transformer(parsed.map(convertNumbersToZero));\n    }\n    const complex = {\n        test,\n        parse: parseComplexValue,\n        createTransformer,\n        getAnimatableNone: getAnimatableNone$1\n    };\n\n    // Adapted from https://gist.github.com/mjackson/5311256\n    function hueToRgb(p, q, t) {\n        if (t < 0) t += 1;\n        if (t > 1) t -= 1;\n        if (t < 1 / 6) return p + (q - p) * 6 * t;\n        if (t < 1 / 2) return q;\n        if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;\n        return p;\n    }\n    function hslaToRgba({ hue , saturation , lightness , alpha  }) {\n        hue /= 360;\n        saturation /= 100;\n        lightness /= 100;\n        let red = 0;\n        let green = 0;\n        let blue = 0;\n        if (!saturation) {\n            red = green = blue = lightness;\n        } else {\n            const q = lightness < 0.5 ? lightness * (1 + saturation) : lightness + saturation - lightness * saturation;\n            const p = 2 * lightness - q;\n            red = hueToRgb(p, q, hue + 1 / 3);\n            green = hueToRgb(p, q, hue);\n            blue = hueToRgb(p, q, hue - 1 / 3);\n        }\n        return {\n            red: Math.round(red * 255),\n            green: Math.round(green * 255),\n            blue: Math.round(blue * 255),\n            alpha\n        };\n    }\n\n    function mixImmediate(a, b) {\n        return (p)=>p > 0 ? b : a\n        ;\n    }\n\n    /*\n      Value in range from progress\n\n      Given a lower limit and an upper limit, we return the value within\n      that range as expressed by progress (usually a number from 0 to 1)\n\n      So progress = 0.5 would change\n\n      from -------- to\n\n      to\n\n      from ---- to\n\n      E.g. from = 10, to = 20, progress = 0.5 => 15\n\n      @param [number]: Lower limit of range\n      @param [number]: Upper limit of range\n      @param [number]: The progress between lower and upper limits expressed 0-1\n      @return [number]: Value as calculated from progress within range (not limited within range)\n    */ const mixNumber$1 = (from, to, progress)=>{\n        return from + (to - from) * progress;\n    };\n\n    // Linear color space blending\n    // Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n    // Demonstrated http://codepen.io/osublake/pen/xGVVaN\n    const mixLinearColor = (from, to, v)=>{\n        const fromExpo = from * from;\n        const expo = v * (to * to - fromExpo) + fromExpo;\n        return expo < 0 ? 0 : Math.sqrt(expo);\n    };\n    const colorTypes = [\n        hex,\n        rgba,\n        hsla\n    ];\n    const getColorType = (v)=>colorTypes.find((type)=>type.test(v)\n        )\n    ;\n    function asRGBA(color) {\n        const type = getColorType(color);\n        warning(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`, \"color-not-animatable\");\n        if (!Boolean(type)) return false;\n        let model = type.parse(color);\n        if (type === hsla) {\n            // TODO Remove this cast - needed since Motion's stricter typing\n            model = hslaToRgba(model);\n        }\n        return model;\n    }\n    const mixColor = (from, to)=>{\n        const fromRGBA = asRGBA(from);\n        const toRGBA = asRGBA(to);\n        if (!fromRGBA || !toRGBA) {\n            return mixImmediate(from, to);\n        }\n        const blended = {\n            ...fromRGBA\n        };\n        return (v)=>{\n            blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n            blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n            blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n            blended.alpha = mixNumber$1(fromRGBA.alpha, toRGBA.alpha, v);\n            return rgba.transform(blended);\n        };\n    };\n\n    const invisibleValues = new Set([\n        \"none\",\n        \"hidden\"\n    ]);\n    /**\n     * Returns a function that, when provided a progress value between 0 and 1,\n     * will return the \"none\" or \"hidden\" string only when the progress is that of\n     * the origin or target.\n     */ function mixVisibility(origin, target) {\n        if (invisibleValues.has(origin)) {\n            return (p)=>p <= 0 ? origin : target\n            ;\n        } else {\n            return (p)=>p >= 1 ? target : origin\n            ;\n        }\n    }\n\n    function mixNumber(a, b) {\n        return (p)=>mixNumber$1(a, b, p)\n        ;\n    }\n    function getMixer(a) {\n        if (typeof a === \"number\") {\n            return mixNumber;\n        } else if (typeof a === \"string\") {\n            return isCSSVariableToken(a) ? mixImmediate : color.test(a) ? mixColor : mixComplex;\n        } else if (Array.isArray(a)) {\n            return mixArray;\n        } else if (typeof a === \"object\") {\n            return color.test(a) ? mixColor : mixObject;\n        }\n        return mixImmediate;\n    }\n    function mixArray(a, b) {\n        const output = [\n            ...a\n        ];\n        const numValues = output.length;\n        const blendValue = a.map((v, i)=>getMixer(v)(v, b[i])\n        );\n        return (p)=>{\n            for(let i = 0; i < numValues; i++){\n                output[i] = blendValue[i](p);\n            }\n            return output;\n        };\n    }\n    function mixObject(a, b) {\n        const output = {\n            ...a,\n            ...b\n        };\n        const blendValue = {};\n        for(const key1 in output){\n            if (a[key1] !== undefined && b[key1] !== undefined) {\n                blendValue[key1] = getMixer(a[key1])(a[key1], b[key1]);\n            }\n        }\n        return (v)=>{\n            for(const key in blendValue){\n                output[key] = blendValue[key](v);\n            }\n            return output;\n        };\n    }\n    function matchOrder(origin, target) {\n        const orderedOrigin = [];\n        const pointers = {\n            color: 0,\n            var: 0,\n            number: 0\n        };\n        for(let i = 0; i < target.values.length; i++){\n            const type = target.types[i];\n            const originIndex = origin.indexes[type][pointers[type]];\n            var _originIndex;\n            const originValue = (_originIndex = origin.values[originIndex]) !== null && _originIndex !== void 0 ? _originIndex : 0;\n            orderedOrigin[i] = originValue;\n            pointers[type]++;\n        }\n        return orderedOrigin;\n    }\n    const mixComplex = (origin, target)=>{\n        const template = complex.createTransformer(target);\n        const originStats = analyseComplexValue(origin);\n        const targetStats = analyseComplexValue(target);\n        const canInterpolate = originStats.indexes.var.length === targetStats.indexes.var.length && originStats.indexes.color.length === targetStats.indexes.color.length && originStats.indexes.number.length >= targetStats.indexes.number.length;\n        if (canInterpolate) {\n            if (invisibleValues.has(origin) && !targetStats.values.length || invisibleValues.has(target) && !originStats.values.length) {\n                return mixVisibility(origin, target);\n            }\n            return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);\n        } else {\n            warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, \"complex-values-different\");\n            return mixImmediate(origin, target);\n        }\n    };\n\n    function mix(from, to, p) {\n        if (typeof from === \"number\" && typeof to === \"number\" && typeof p === \"number\") {\n            return mixNumber$1(from, to, p);\n        }\n        const mixer = getMixer(from);\n        return mixer(from, to);\n    }\n\n    const frameloopDriver = (update)=>{\n        const passTimestamp = ({ timestamp  })=>update(timestamp)\n        ;\n        return {\n            start: (keepAlive = true)=>frame.update(passTimestamp, keepAlive)\n            ,\n            stop: ()=>cancelFrame(passTimestamp)\n            ,\n            /**\n             * If we're processing this frame we can use the\n             * framelocked timestamp to keep things in sync.\n             */ now: ()=>frameData.isProcessing ? frameData.timestamp : time.now()\n        };\n    };\n\n    const generateLinearEasing = (easing, duration, resolution = 10 // as milliseconds\n    )=>{\n        let points = \"\";\n        const numPoints = Math.max(Math.round(duration / resolution), 2);\n        for(let i = 0; i < numPoints; i++){\n            points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + \", \";\n        }\n        return `linear(${points.substring(0, points.length - 2)})`;\n    };\n\n    /**\n     * Implement a practical max duration for keyframe generation\n     * to prevent infinite loops\n     */ const maxGeneratorDuration = 20000;\n    function calcGeneratorDuration(generator) {\n        let duration = 0;\n        const timeStep = 50;\n        let state = generator.next(duration);\n        while(!state.done && duration < maxGeneratorDuration){\n            duration += timeStep;\n            state = generator.next(duration);\n        }\n        return duration >= maxGeneratorDuration ? Infinity : duration;\n    }\n\n    /**\n     * Create a progress => progress easing function from a generator.\n     */ function createGeneratorEasing(options, scale = 100, createGenerator) {\n        const generator = createGenerator({\n            ...options,\n            keyframes: [\n                0,\n                scale\n            ]\n        });\n        const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n        return {\n            type: \"keyframes\",\n            ease: (progress)=>{\n                return generator.next(duration * progress).value / scale;\n            },\n            duration: millisecondsToSeconds(duration)\n        };\n    }\n\n    const velocitySampleDuration = 5; // ms\n    function calcGeneratorVelocity(resolveValue, t, current) {\n        const prevT = Math.max(t - velocitySampleDuration, 0);\n        return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n    }\n\n    const springDefaults = {\n        // Default spring physics\n        stiffness: 100,\n        damping: 10,\n        mass: 1.0,\n        velocity: 0.0,\n        // Default duration/bounce-based options\n        duration: 800,\n        bounce: 0.3,\n        visualDuration: 0.3,\n        // Rest thresholds\n        restSpeed: {\n            granular: 0.01,\n            default: 2\n        },\n        restDelta: {\n            granular: 0.005,\n            default: 0.5\n        },\n        // Limits\n        minDuration: 0.01,\n        maxDuration: 10.0,\n        minDamping: 0.05,\n        maxDamping: 1\n    };\n\n    const safeMin = 0.001;\n    function findSpring({ duration =springDefaults.duration , bounce =springDefaults.bounce , velocity =springDefaults.velocity , mass =springDefaults.mass ,  }) {\n        let envelope;\n        let derivative;\n        warning(duration <= secondsToMilliseconds(springDefaults.maxDuration), \"Spring duration must be 10 seconds or less\", \"spring-duration-limit\");\n        let dampingRatio = 1 - bounce;\n        /**\n         * Restrict dampingRatio and duration to within acceptable ranges.\n         */ dampingRatio = clamp(springDefaults.minDamping, springDefaults.maxDamping, dampingRatio);\n        duration = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(duration));\n        if (dampingRatio < 1) {\n            /**\n             * Underdamped spring\n             */ envelope = (undampedFreq)=>{\n                const exponentialDecay = undampedFreq * dampingRatio;\n                const delta = exponentialDecay * duration;\n                const a = exponentialDecay - velocity;\n                const b = calcAngularFreq(undampedFreq, dampingRatio);\n                const c = Math.exp(-delta);\n                return safeMin - a / b * c;\n            };\n            derivative = (undampedFreq)=>{\n                const exponentialDecay = undampedFreq * dampingRatio;\n                const delta = exponentialDecay * duration;\n                const d = delta * velocity + velocity;\n                const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n                const f = Math.exp(-delta);\n                const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n                const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n                return factor * ((d - e) * f) / g;\n            };\n        } else {\n            /**\n             * Critically-damped spring\n             */ envelope = (undampedFreq)=>{\n                const a = Math.exp(-undampedFreq * duration);\n                const b = (undampedFreq - velocity) * duration + 1;\n                return -safeMin + a * b;\n            };\n            derivative = (undampedFreq)=>{\n                const a = Math.exp(-undampedFreq * duration);\n                const b = (velocity - undampedFreq) * (duration * duration);\n                return a * b;\n            };\n        }\n        const initialGuess = 5 / duration;\n        const undampedFreq1 = approximateRoot(envelope, derivative, initialGuess);\n        duration = secondsToMilliseconds(duration);\n        if (isNaN(undampedFreq1)) {\n            return {\n                stiffness: springDefaults.stiffness,\n                damping: springDefaults.damping,\n                duration\n            };\n        } else {\n            const stiffness = Math.pow(undampedFreq1, 2) * mass;\n            return {\n                stiffness,\n                damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n                duration\n            };\n        }\n    }\n    const rootIterations = 12;\n    function approximateRoot(envelope, derivative, initialGuess) {\n        let result = initialGuess;\n        for(let i = 1; i < rootIterations; i++){\n            result = result - envelope(result) / derivative(result);\n        }\n        return result;\n    }\n    function calcAngularFreq(undampedFreq, dampingRatio) {\n        return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n    }\n\n    const durationKeys = [\n        \"duration\",\n        \"bounce\"\n    ];\n    const physicsKeys = [\n        \"stiffness\",\n        \"damping\",\n        \"mass\"\n    ];\n    function isSpringType(options, keys) {\n        return keys.some((key)=>options[key] !== undefined\n        );\n    }\n    function getSpringOptions(options) {\n        let springOptions = {\n            velocity: springDefaults.velocity,\n            stiffness: springDefaults.stiffness,\n            damping: springDefaults.damping,\n            mass: springDefaults.mass,\n            isResolvedFromDuration: false,\n            ...options\n        };\n        // stiffness/damping/mass overrides duration/bounce\n        if (!isSpringType(options, physicsKeys) && isSpringType(options, durationKeys)) {\n            if (options.visualDuration) {\n                const visualDuration = options.visualDuration;\n                const root = 2 * Math.PI / (visualDuration * 1.2);\n                const stiffness = root * root;\n                const damping = 2 * clamp(0.05, 1, 1 - (options.bounce || 0)) * Math.sqrt(stiffness);\n                springOptions = {\n                    ...springOptions,\n                    mass: springDefaults.mass,\n                    stiffness,\n                    damping\n                };\n            } else {\n                const derived = findSpring(options);\n                springOptions = {\n                    ...springOptions,\n                    ...derived,\n                    mass: springDefaults.mass\n                };\n                springOptions.isResolvedFromDuration = true;\n            }\n        }\n        return springOptions;\n    }\n    function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {\n        const options = typeof optionsOrVisualDuration !== \"object\" ? {\n            visualDuration: optionsOrVisualDuration,\n            keyframes: [\n                0,\n                1\n            ],\n            bounce\n        } : optionsOrVisualDuration;\n        let { restSpeed , restDelta  } = options;\n        const origin = options.keyframes[0];\n        const target = options.keyframes[options.keyframes.length - 1];\n        /**\n         * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n         * to reduce GC during animation.\n         */ const state = {\n            done: false,\n            value: origin\n        };\n        const { stiffness , damping , mass , duration , velocity , isResolvedFromDuration ,  } = getSpringOptions({\n            ...options,\n            velocity: -millisecondsToSeconds(options.velocity || 0)\n        });\n        const initialVelocity = velocity || 0.0;\n        const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n        const initialDelta = target - origin;\n        const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n        /**\n         * If we're working on a granular scale, use smaller defaults for determining\n         * when the spring is finished.\n         *\n         * These defaults have been selected emprically based on what strikes a good\n         * ratio between feeling good and finishing as soon as changes are imperceptible.\n         */ const isGranularScale = Math.abs(initialDelta) < 5;\n        restSpeed || (restSpeed = isGranularScale ? springDefaults.restSpeed.granular : springDefaults.restSpeed.default);\n        restDelta || (restDelta = isGranularScale ? springDefaults.restDelta.granular : springDefaults.restDelta.default);\n        let resolveSpring;\n        if (dampingRatio < 1) {\n            const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n            // Underdamped spring\n            resolveSpring = (t)=>{\n                const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n                return target - envelope * ((initialVelocity + dampingRatio * undampedAngularFreq * initialDelta) / angularFreq * Math.sin(angularFreq * t) + initialDelta * Math.cos(angularFreq * t));\n            };\n        } else if (dampingRatio === 1) {\n            // Critically damped spring\n            resolveSpring = (t)=>target - Math.exp(-undampedAngularFreq * t) * (initialDelta + (initialVelocity + undampedAngularFreq * initialDelta) * t)\n            ;\n        } else {\n            // Overdamped spring\n            const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n            resolveSpring = (t)=>{\n                const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n                // When performing sinh or cosh values can hit Infinity so we cap them here\n                const freqForT = Math.min(dampedAngularFreq * t, 300);\n                return target - envelope * ((initialVelocity + dampingRatio * undampedAngularFreq * initialDelta) * Math.sinh(freqForT) + dampedAngularFreq * initialDelta * Math.cosh(freqForT)) / dampedAngularFreq;\n            };\n        }\n        const generator = {\n            calculatedDuration: isResolvedFromDuration ? duration || null : null,\n            next: (t)=>{\n                const current = resolveSpring(t);\n                if (!isResolvedFromDuration) {\n                    let currentVelocity = t === 0 ? initialVelocity : 0.0;\n                    /**\n                     * We only need to calculate velocity for under-damped springs\n                     * as over- and critically-damped springs can't overshoot, so\n                     * checking only for displacement is enough.\n                     */ if (dampingRatio < 1) {\n                        currentVelocity = t === 0 ? secondsToMilliseconds(initialVelocity) : calcGeneratorVelocity(resolveSpring, t, current);\n                    }\n                    const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n                    const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;\n                    state.done = isBelowVelocityThreshold && isBelowDisplacementThreshold;\n                } else {\n                    state.done = t >= duration;\n                }\n                state.value = state.done ? target : current;\n                return state;\n            },\n            toString: ()=>{\n                const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n                const easing = generateLinearEasing((progress)=>generator.next(calculatedDuration * progress).value\n                , calculatedDuration, 30);\n                return calculatedDuration + \"ms \" + easing;\n            },\n            toTransition: ()=>{}\n        };\n        return generator;\n    }\n    spring.applyToOptions = (options)=>{\n        const generatorOptions = createGeneratorEasing(options, 100, spring);\n        options.ease = generatorOptions.ease;\n        options.duration = secondsToMilliseconds(generatorOptions.duration);\n        options.type = \"keyframes\";\n        return options;\n    };\n\n    function inertia({ keyframes , velocity =0.0 , power =0.8 , timeConstant =325 , bounceDamping =10 , bounceStiffness =500 , modifyTarget , min , max , restDelta =0.5 , restSpeed ,  }) {\n        const origin = keyframes[0];\n        const state = {\n            done: false,\n            value: origin\n        };\n        const isOutOfBounds = (v)=>min !== undefined && v < min || max !== undefined && v > max\n        ;\n        const nearestBoundary = (v)=>{\n            if (min === undefined) return max;\n            if (max === undefined) return min;\n            return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n        };\n        let amplitude = power * velocity;\n        const ideal = origin + amplitude;\n        const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n        /**\n         * If the target has changed we need to re-calculate the amplitude, otherwise\n         * the animation will start from the wrong position.\n         */ if (target !== ideal) amplitude = target - origin;\n        const calcDelta = (t)=>-amplitude * Math.exp(-t / timeConstant)\n        ;\n        const calcLatest = (t)=>target + calcDelta(t)\n        ;\n        const applyFriction = (t)=>{\n            const delta = calcDelta(t);\n            const latest = calcLatest(t);\n            state.done = Math.abs(delta) <= restDelta;\n            state.value = state.done ? target : latest;\n        };\n        /**\n         * Ideally this would resolve for t in a stateless way, we could\n         * do that by always precalculating the animation but as we know\n         * this will be done anyway we can assume that spring will\n         * be discovered during that.\n         */ let timeReachedBoundary;\n        let spring$1;\n        const checkCatchBoundary = (t)=>{\n            if (!isOutOfBounds(state.value)) return;\n            timeReachedBoundary = t;\n            spring$1 = spring({\n                keyframes: [\n                    state.value,\n                    nearestBoundary(state.value)\n                ],\n                velocity: calcGeneratorVelocity(calcLatest, t, state.value),\n                damping: bounceDamping,\n                stiffness: bounceStiffness,\n                restDelta,\n                restSpeed\n            });\n        };\n        checkCatchBoundary(0);\n        return {\n            calculatedDuration: null,\n            next: (t)=>{\n                /**\n                 * We need to resolve the friction to figure out if we need a\n                 * spring but we don't want to do this twice per frame. So here\n                 * we flag if we updated for this frame and later if we did\n                 * we can skip doing it again.\n                 */ let hasUpdatedFrame = false;\n                if (!spring$1 && timeReachedBoundary === undefined) {\n                    hasUpdatedFrame = true;\n                    applyFriction(t);\n                    checkCatchBoundary(t);\n                }\n                /**\n                 * If we have a spring and the provided t is beyond the moment the friction\n                 * animation crossed the min/max boundary, use the spring.\n                 */ if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {\n                    return spring$1.next(t - timeReachedBoundary);\n                } else {\n                    !hasUpdatedFrame && applyFriction(t);\n                    return state;\n                }\n            }\n        };\n    }\n\n    function createMixers(output, ease, customMixer) {\n        const mixers = [];\n        const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;\n        const numMixers = output.length - 1;\n        for(let i = 0; i < numMixers; i++){\n            let mixer = mixerFactory(output[i], output[i + 1]);\n            if (ease) {\n                const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n                mixer = pipe(easingFunction, mixer);\n            }\n            mixers.push(mixer);\n        }\n        return mixers;\n    }\n    /**\n     * Create a function that maps from a numerical input array to a generic output array.\n     *\n     * Accepts:\n     *   - Numbers\n     *   - Colors (hex, hsl, hsla, rgb, rgba)\n     *   - Complex (combinations of one or more numbers or strings)\n     *\n     * ```jsx\n     * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n     *\n     * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n     * ```\n     *\n     * TODO Revisit this approach once we've moved to data models for values,\n     * probably not needed to pregenerate mixer functions.\n     *\n     * @public\n     */ function interpolate(input, output, { clamp: isClamp = true , ease , mixer  } = {}) {\n        const inputLength = input.length;\n        invariant(inputLength === output.length, \"Both input and output ranges must be the same length\", \"range-length\");\n        /**\n         * If we're only provided a single input, we can just make a function\n         * that returns the output.\n         */ if (inputLength === 1) return ()=>output[0]\n        ;\n        if (inputLength === 2 && output[0] === output[1]) return ()=>output[1]\n        ;\n        const isZeroDeltaRange = input[0] === input[1];\n        // If input runs highest -> lowest, reverse both arrays\n        if (input[0] > input[inputLength - 1]) {\n            input = [\n                ...input\n            ].reverse();\n            output = [\n                ...output\n            ].reverse();\n        }\n        const mixers = createMixers(output, ease, mixer);\n        const numMixers = mixers.length;\n        const interpolator = (v)=>{\n            if (isZeroDeltaRange && v < input[0]) return output[0];\n            let i = 0;\n            if (numMixers > 1) {\n                for(; i < input.length - 2; i++){\n                    if (v < input[i + 1]) break;\n                }\n            }\n            const progressInRange = progress(input[i], input[i + 1], v);\n            return mixers[i](progressInRange);\n        };\n        return isClamp ? (v)=>interpolator(clamp(input[0], input[inputLength - 1], v))\n         : interpolator;\n    }\n\n    function fillOffset(offset, remaining) {\n        const min = offset[offset.length - 1];\n        for(let i = 1; i <= remaining; i++){\n            const offsetProgress = progress(0, remaining, i);\n            offset.push(mixNumber$1(min, 1, offsetProgress));\n        }\n    }\n\n    function defaultOffset$1(arr) {\n        const offset = [\n            0\n        ];\n        fillOffset(offset, arr.length - 1);\n        return offset;\n    }\n\n    function convertOffsetToTimes(offset, duration) {\n        return offset.map((o)=>o * duration\n        );\n    }\n\n    function defaultEasing(values, easing) {\n        return values.map(()=>easing || easeInOut\n        ).splice(0, values.length - 1);\n    }\n    function keyframes({ duration =300 , keyframes: keyframeValues , times , ease =\"easeInOut\" ,  }) {\n        /**\n         * Easing functions can be externally defined as strings. Here we convert them\n         * into actual functions.\n         */ const easingFunctions = isEasingArray(ease) ? ease.map(easingDefinitionToFunction) : easingDefinitionToFunction(ease);\n        /**\n         * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n         * to reduce GC during animation.\n         */ const state = {\n            done: false,\n            value: keyframeValues[0]\n        };\n        /**\n         * Create a times array based on the provided 0-1 offsets\n         */ const absoluteTimes = convertOffsetToTimes(// Only use the provided offsets if they're the correct length\n        // TODO Maybe we should warn here if there's a length mismatch\n        times && times.length === keyframeValues.length ? times : defaultOffset$1(keyframeValues), duration);\n        const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n            ease: Array.isArray(easingFunctions) ? easingFunctions : defaultEasing(keyframeValues, easingFunctions)\n        });\n        return {\n            calculatedDuration: duration,\n            next: (t)=>{\n                state.value = mapTimeToKeyframe(t);\n                state.done = t >= duration;\n                return state;\n            }\n        };\n    }\n\n    const isNotNull$1 = (value)=>value !== null\n    ;\n    function getFinalKeyframe$1(keyframes, { repeat , repeatType =\"loop\"  }, finalKeyframe, speed = 1) {\n        const resolvedKeyframes = keyframes.filter(isNotNull$1);\n        const useFirstKeyframe = speed < 0 || repeat && repeatType !== \"loop\" && repeat % 2 === 1;\n        const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n        return !index || finalKeyframe === undefined ? resolvedKeyframes[index] : finalKeyframe;\n    }\n\n    const transitionTypeMap = {\n        decay: inertia,\n        inertia,\n        tween: keyframes,\n        keyframes: keyframes,\n        spring\n    };\n    function replaceTransitionType(transition) {\n        if (typeof transition.type === \"string\") {\n            transition.type = transitionTypeMap[transition.type];\n        }\n    }\n\n    let WithPromise = class WithPromise {\n        get finished() {\n            return this._finished;\n        }\n        updateFinished() {\n            this._finished = new Promise((resolve)=>{\n                this.resolve = resolve;\n            });\n        }\n        notifyFinished() {\n            this.resolve();\n        }\n        /**\n         * Allows the animation to be awaited.\n         *\n         * @deprecated Use `finished` instead.\n         */ then(onResolve, onReject) {\n            return this.finished.then(onResolve, onReject);\n        }\n        constructor(){\n            this.updateFinished();\n        }\n    };\n\n    const percentToProgress = (percent)=>percent / 100\n    ;\n    let JSAnimation = class JSAnimation extends WithPromise {\n        initAnimation() {\n            const { options  } = this;\n            replaceTransitionType(options);\n            const { type =keyframes , repeat =0 , repeatDelay =0 , repeatType , velocity =0 ,  } = options;\n            let { keyframes: keyframes$1  } = options;\n            const generatorFactory = type || keyframes;\n            if (process.env.NODE_ENV !== \"production\" && generatorFactory !== keyframes) {\n                invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`, \"spring-two-frames\");\n            }\n            if (generatorFactory !== keyframes && typeof keyframes$1[0] !== \"number\") {\n                this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n                keyframes$1 = [\n                    0,\n                    100\n                ];\n            }\n            const generator = generatorFactory({\n                ...options,\n                keyframes: keyframes$1\n            });\n            /**\n             * If we have a mirror repeat type we need to create a second generator that outputs the\n             * mirrored (not reversed) animation and later ping pong between the two generators.\n             */ if (repeatType === \"mirror\") {\n                this.mirroredGenerator = generatorFactory({\n                    ...options,\n                    keyframes: [\n                        ...keyframes$1\n                    ].reverse(),\n                    velocity: -velocity\n                });\n            }\n            /**\n             * If duration is undefined and we have repeat options,\n             * we need to calculate a duration from the generator.\n             *\n             * We set it to the generator itself to cache the duration.\n             * Any timeline resolver will need to have already precalculated\n             * the duration by this step.\n             */ if (generator.calculatedDuration === null) {\n                generator.calculatedDuration = calcGeneratorDuration(generator);\n            }\n            const { calculatedDuration  } = generator;\n            this.calculatedDuration = calculatedDuration;\n            this.resolvedDuration = calculatedDuration + repeatDelay;\n            this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;\n            this.generator = generator;\n        }\n        updateTime(timestamp) {\n            const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;\n            // Update currentTime\n            if (this.holdTime !== null) {\n                this.currentTime = this.holdTime;\n            } else {\n                // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n                // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n                // example.\n                this.currentTime = animationTime;\n            }\n        }\n        tick(timestamp, sample = false) {\n            const { generator , totalDuration , mixKeyframes , mirroredGenerator , resolvedDuration , calculatedDuration ,  } = this;\n            if (this.startTime === null) return generator.next(0);\n            const { delay =0 , keyframes: keyframes1 , repeat , repeatType , repeatDelay , type , onUpdate , finalKeyframe ,  } = this.options;\n            /**\n             * requestAnimationFrame timestamps can come through as lower than\n             * the startTime as set by performance.now(). Here we prevent this,\n             * though in the future it could be possible to make setting startTime\n             * a pending operation that gets resolved here.\n             */ if (this.speed > 0) {\n                this.startTime = Math.min(this.startTime, timestamp);\n            } else if (this.speed < 0) {\n                this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n            }\n            if (sample) {\n                this.currentTime = timestamp;\n            } else {\n                this.updateTime(timestamp);\n            }\n            // Rebase on delay\n            const timeWithoutDelay = this.currentTime - delay * (this.playbackSpeed >= 0 ? 1 : -1);\n            const isInDelayPhase = this.playbackSpeed >= 0 ? timeWithoutDelay < 0 : timeWithoutDelay > totalDuration;\n            this.currentTime = Math.max(timeWithoutDelay, 0);\n            // If this animation has finished, set the current time  to the total duration.\n            if (this.state === \"finished\" && this.holdTime === null) {\n                this.currentTime = totalDuration;\n            }\n            let elapsed = this.currentTime;\n            let frameGenerator = generator;\n            if (repeat) {\n                /**\n                 * Get the current progress (0-1) of the animation. If t is >\n                 * than duration we'll get values like 2.5 (midway through the\n                 * third iteration)\n                 */ const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;\n                /**\n                 * Get the current iteration (0 indexed). For instance the floor of\n                 * 2.5 is 2.\n                 */ let currentIteration = Math.floor(progress);\n                /**\n                 * Get the current progress of the iteration by taking the remainder\n                 * so 2.5 is 0.5 through iteration 2\n                 */ let iterationProgress = progress % 1.0;\n                /**\n                 * If iteration progress is 1 we count that as the end\n                 * of the previous iteration.\n                 */ if (!iterationProgress && progress >= 1) {\n                    iterationProgress = 1;\n                }\n                iterationProgress === 1 && currentIteration--;\n                currentIteration = Math.min(currentIteration, repeat + 1);\n                /**\n                 * Reverse progress if we're not running in \"normal\" direction\n                 */ const isOddIteration = Boolean(currentIteration % 2);\n                if (isOddIteration) {\n                    if (repeatType === \"reverse\") {\n                        iterationProgress = 1 - iterationProgress;\n                        if (repeatDelay) {\n                            iterationProgress -= repeatDelay / resolvedDuration;\n                        }\n                    } else if (repeatType === \"mirror\") {\n                        frameGenerator = mirroredGenerator;\n                    }\n                }\n                elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n            }\n            /**\n             * If we're in negative time, set state as the initial keyframe.\n             * This prevents delay: x, duration: 0 animations from finishing\n             * instantly.\n             */ const state = isInDelayPhase ? {\n                done: false,\n                value: keyframes1[0]\n            } : frameGenerator.next(elapsed);\n            if (mixKeyframes) {\n                state.value = mixKeyframes(state.value);\n            }\n            let { done  } = state;\n            if (!isInDelayPhase && calculatedDuration !== null) {\n                done = this.playbackSpeed >= 0 ? this.currentTime >= totalDuration : this.currentTime <= 0;\n            }\n            const isAnimationFinished = this.holdTime === null && (this.state === \"finished\" || this.state === \"running\" && done);\n            // TODO: The exception for inertia could be cleaner here\n            if (isAnimationFinished && type !== inertia) {\n                state.value = getFinalKeyframe$1(keyframes1, this.options, finalKeyframe, this.speed);\n            }\n            if (onUpdate) {\n                onUpdate(state.value);\n            }\n            if (isAnimationFinished) {\n                this.finish();\n            }\n            return state;\n        }\n        /**\n         * Allows the returned animation to be awaited or promise-chained. Currently\n         * resolves when the animation finishes at all but in a future update could/should\n         * reject if its cancels.\n         */ then(resolve, reject) {\n            return this.finished.then(resolve, reject);\n        }\n        get duration() {\n            return millisecondsToSeconds(this.calculatedDuration);\n        }\n        get time() {\n            return millisecondsToSeconds(this.currentTime);\n        }\n        set time(newTime) {\n            var ref;\n            newTime = secondsToMilliseconds(newTime);\n            this.currentTime = newTime;\n            if (this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0) {\n                this.holdTime = newTime;\n            } else if (this.driver) {\n                this.startTime = this.driver.now() - newTime / this.playbackSpeed;\n            }\n            (ref = this.driver) === null || ref === void 0 ? void 0 : ref.start(false);\n        }\n        get speed() {\n            return this.playbackSpeed;\n        }\n        set speed(newSpeed) {\n            this.updateTime(time.now());\n            const hasChanged = this.playbackSpeed !== newSpeed;\n            this.playbackSpeed = newSpeed;\n            if (hasChanged) {\n                this.time = millisecondsToSeconds(this.currentTime);\n            }\n        }\n        play() {\n            var _options, ref;\n            if (this.isStopped) return;\n            const { driver =frameloopDriver , startTime  } = this.options;\n            if (!this.driver) {\n                this.driver = driver((timestamp)=>this.tick(timestamp)\n                );\n            }\n            (ref = (_options = this.options).onPlay) === null || ref === void 0 ? void 0 : ref.call(_options);\n            const now = this.driver.now();\n            if (this.state === \"finished\") {\n                this.updateFinished();\n                this.startTime = now;\n            } else if (this.holdTime !== null) {\n                this.startTime = now - this.holdTime;\n            } else if (!this.startTime) {\n                this.startTime = startTime !== null && startTime !== void 0 ? startTime : now;\n            }\n            if (this.state === \"finished\" && this.speed < 0) {\n                this.startTime += this.calculatedDuration;\n            }\n            this.holdTime = null;\n            /**\n             * Set playState to running only after we've used it in\n             * the previous logic.\n             */ this.state = \"running\";\n            this.driver.start();\n        }\n        pause() {\n            this.state = \"paused\";\n            this.updateTime(time.now());\n            this.holdTime = this.currentTime;\n        }\n        complete() {\n            if (this.state !== \"running\") {\n                this.play();\n            }\n            this.state = \"finished\";\n            this.holdTime = null;\n        }\n        finish() {\n            var _options, ref;\n            this.notifyFinished();\n            this.teardown();\n            this.state = \"finished\";\n            (ref = (_options = this.options).onComplete) === null || ref === void 0 ? void 0 : ref.call(_options);\n        }\n        cancel() {\n            var _options, ref;\n            this.holdTime = null;\n            this.startTime = 0;\n            this.tick(0);\n            this.teardown();\n            (ref = (_options = this.options).onCancel) === null || ref === void 0 ? void 0 : ref.call(_options);\n        }\n        teardown() {\n            this.state = \"idle\";\n            this.stopDriver();\n            this.startTime = this.holdTime = null;\n        }\n        stopDriver() {\n            if (!this.driver) return;\n            this.driver.stop();\n            this.driver = undefined;\n        }\n        sample(sampleTime) {\n            this.startTime = 0;\n            return this.tick(sampleTime, true);\n        }\n        attachTimeline(timeline) {\n            var ref;\n            if (this.options.allowFlatten) {\n                this.options.type = \"keyframes\";\n                this.options.ease = \"linear\";\n                this.initAnimation();\n            }\n            (ref = this.driver) === null || ref === void 0 ? void 0 : ref.stop();\n            return timeline.observe(this);\n        }\n        constructor(options){\n            super();\n            this.state = \"idle\";\n            this.startTime = null;\n            this.isStopped = false;\n            /**\n             * The current time of the animation.\n             */ this.currentTime = 0;\n            /**\n             * The time at which the animation was paused.\n             */ this.holdTime = null;\n            /**\n             * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.\n             */ this.playbackSpeed = 1;\n            /**\n             * This method is bound to the instance to fix a pattern where\n             * animation.stop is returned as a reference from a useEffect.\n             */ this.stop = ()=>{\n                var _options, ref;\n                const { motionValue  } = this.options;\n                if (motionValue && motionValue.updatedAt !== time.now()) {\n                    this.tick(time.now());\n                }\n                this.isStopped = true;\n                if (this.state === \"idle\") return;\n                this.teardown();\n                (ref = (_options = this.options).onStop) === null || ref === void 0 ? void 0 : ref.call(_options);\n            };\n            this.options = options;\n            this.initAnimation();\n            this.play();\n            if (options.autoplay === false) this.pause();\n        }\n    };\n\n    function fillWildcards(keyframes) {\n        for(let i = 1; i < keyframes.length; i++){\n            var _i;\n            (_i = keyframes[i]) !== null && _i !== void 0 ? _i : keyframes[i] = keyframes[i - 1];\n        }\n    }\n\n    const radToDeg = (rad)=>rad * 180 / Math.PI\n    ;\n    const rotate = (v)=>{\n        const angle = radToDeg(Math.atan2(v[1], v[0]));\n        return rebaseAngle(angle);\n    };\n    const matrix2dParsers = {\n        x: 4,\n        y: 5,\n        translateX: 4,\n        translateY: 5,\n        scaleX: 0,\n        scaleY: 3,\n        scale: (v)=>(Math.abs(v[0]) + Math.abs(v[3])) / 2\n        ,\n        rotate,\n        rotateZ: rotate,\n        skewX: (v)=>radToDeg(Math.atan(v[1]))\n        ,\n        skewY: (v)=>radToDeg(Math.atan(v[2]))\n        ,\n        skew: (v)=>(Math.abs(v[1]) + Math.abs(v[2])) / 2\n    };\n    const rebaseAngle = (angle)=>{\n        angle = angle % 360;\n        if (angle < 0) angle += 360;\n        return angle;\n    };\n    const rotateZ = rotate;\n    const scaleX = (v)=>Math.sqrt(v[0] * v[0] + v[1] * v[1])\n    ;\n    const scaleY = (v)=>Math.sqrt(v[4] * v[4] + v[5] * v[5])\n    ;\n    const matrix3dParsers = {\n        x: 12,\n        y: 13,\n        z: 14,\n        translateX: 12,\n        translateY: 13,\n        translateZ: 14,\n        scaleX,\n        scaleY,\n        scale: (v)=>(scaleX(v) + scaleY(v)) / 2\n        ,\n        rotateX: (v)=>rebaseAngle(radToDeg(Math.atan2(v[6], v[5])))\n        ,\n        rotateY: (v)=>rebaseAngle(radToDeg(Math.atan2(-v[2], v[0])))\n        ,\n        rotateZ,\n        rotate: rotateZ,\n        skewX: (v)=>radToDeg(Math.atan(v[4]))\n        ,\n        skewY: (v)=>radToDeg(Math.atan(v[1]))\n        ,\n        skew: (v)=>(Math.abs(v[1]) + Math.abs(v[4])) / 2\n    };\n    function defaultTransformValue(name) {\n        return name.includes(\"scale\") ? 1 : 0;\n    }\n    function parseValueFromTransform(transform, name) {\n        if (!transform || transform === \"none\") {\n            return defaultTransformValue(name);\n        }\n        const matrix3dMatch = transform.match(/^matrix3d\\(([-\\d.e\\s,]+)\\)$/u);\n        let parsers;\n        let match;\n        if (matrix3dMatch) {\n            parsers = matrix3dParsers;\n            match = matrix3dMatch;\n        } else {\n            const matrix2dMatch = transform.match(/^matrix\\(([-\\d.e\\s,]+)\\)$/u);\n            parsers = matrix2dParsers;\n            match = matrix2dMatch;\n        }\n        if (!match) {\n            return defaultTransformValue(name);\n        }\n        const valueParser = parsers[name];\n        const values = match[1].split(\",\").map(convertTransformToNumber);\n        return typeof valueParser === \"function\" ? valueParser(values) : values[valueParser];\n    }\n    const readTransformValue = (instance, name)=>{\n        const { transform =\"none\"  } = getComputedStyle(instance);\n        return parseValueFromTransform(transform, name);\n    };\n    function convertTransformToNumber(value) {\n        return parseFloat(value.trim());\n    }\n\n    /**\n     * Generate a list of every possible transform key.\n     */ const transformPropOrder = [\n        \"transformPerspective\",\n        \"x\",\n        \"y\",\n        \"z\",\n        \"translateX\",\n        \"translateY\",\n        \"translateZ\",\n        \"scale\",\n        \"scaleX\",\n        \"scaleY\",\n        \"rotate\",\n        \"rotateX\",\n        \"rotateY\",\n        \"rotateZ\",\n        \"skew\",\n        \"skewX\",\n        \"skewY\", \n    ];\n    /**\n     * A quick lookup for transform props.\n     */ const transformProps = /*@__PURE__*/ (()=>new Set(transformPropOrder)\n    )();\n\n    const isNumOrPxType = (v)=>v === number || v === px\n    ;\n    const transformKeys = new Set([\n        \"x\",\n        \"y\",\n        \"z\"\n    ]);\n    const nonTranslationalTransformKeys = transformPropOrder.filter((key)=>!transformKeys.has(key)\n    );\n    function removeNonTranslationalTransform(visualElement) {\n        const removedTransforms = [];\n        nonTranslationalTransformKeys.forEach((key)=>{\n            const value = visualElement.getValue(key);\n            if (value !== undefined) {\n                removedTransforms.push([\n                    key,\n                    value.get()\n                ]);\n                value.set(key.startsWith(\"scale\") ? 1 : 0);\n            }\n        });\n        return removedTransforms;\n    }\n    const positionalValues = {\n        // Dimensions\n        width: ({ x  }, { paddingLeft =\"0\" , paddingRight =\"0\"  })=>x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight)\n        ,\n        height: ({ y  }, { paddingTop =\"0\" , paddingBottom =\"0\"  })=>y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom)\n        ,\n        top: (_bbox, { top  })=>parseFloat(top)\n        ,\n        left: (_bbox, { left  })=>parseFloat(left)\n        ,\n        bottom: ({ y  }, { top  })=>parseFloat(top) + (y.max - y.min)\n        ,\n        right: ({ x  }, { left  })=>parseFloat(left) + (x.max - x.min)\n        ,\n        // Transform\n        x: (_bbox, { transform  })=>parseValueFromTransform(transform, \"x\")\n        ,\n        y: (_bbox, { transform  })=>parseValueFromTransform(transform, \"y\")\n    };\n    // Alias translate longform names\n    positionalValues.translateX = positionalValues.x;\n    positionalValues.translateY = positionalValues.y;\n\n    const toResolve = new Set();\n    let isScheduled = false;\n    let anyNeedsMeasurement = false;\n    let isForced = false;\n    function measureAllKeyframes() {\n        if (anyNeedsMeasurement) {\n            const resolversToMeasure = Array.from(toResolve).filter((resolver)=>resolver.needsMeasurement\n            );\n            const elementsToMeasure = new Set(resolversToMeasure.map((resolver)=>resolver.element\n            ));\n            const transformsToRestore = new Map();\n            /**\n             * Write pass\n             * If we're measuring elements we want to remove bounding box-changing transforms.\n             */ elementsToMeasure.forEach((element)=>{\n                const removedTransforms = removeNonTranslationalTransform(element);\n                if (!removedTransforms.length) return;\n                transformsToRestore.set(element, removedTransforms);\n                element.render();\n            });\n            // Read\n            resolversToMeasure.forEach((resolver)=>resolver.measureInitialState()\n            );\n            // Write\n            elementsToMeasure.forEach((element)=>{\n                element.render();\n                const restore = transformsToRestore.get(element);\n                if (restore) {\n                    restore.forEach(([key, value])=>{\n                        var ref;\n                        (ref = element.getValue(key)) === null || ref === void 0 ? void 0 : ref.set(value);\n                    });\n                }\n            });\n            // Read\n            resolversToMeasure.forEach((resolver)=>resolver.measureEndState()\n            );\n            // Write\n            resolversToMeasure.forEach((resolver)=>{\n                if (resolver.suspendedScrollY !== undefined) {\n                    window.scrollTo(0, resolver.suspendedScrollY);\n                }\n            });\n        }\n        anyNeedsMeasurement = false;\n        isScheduled = false;\n        toResolve.forEach((resolver)=>resolver.complete(isForced)\n        );\n        toResolve.clear();\n    }\n    function readAllKeyframes() {\n        toResolve.forEach((resolver)=>{\n            resolver.readKeyframes();\n            if (resolver.needsMeasurement) {\n                anyNeedsMeasurement = true;\n            }\n        });\n    }\n    function flushKeyframeResolvers() {\n        isForced = true;\n        readAllKeyframes();\n        measureAllKeyframes();\n        isForced = false;\n    }\n    let KeyframeResolver = class KeyframeResolver {\n        scheduleResolve() {\n            this.state = \"scheduled\";\n            if (this.isAsync) {\n                toResolve.add(this);\n                if (!isScheduled) {\n                    isScheduled = true;\n                    frame.read(readAllKeyframes);\n                    frame.resolveKeyframes(measureAllKeyframes);\n                }\n            } else {\n                this.readKeyframes();\n                this.complete();\n            }\n        }\n        readKeyframes() {\n            const { unresolvedKeyframes , name , element , motionValue  } = this;\n            // If initial keyframe is null we need to read it from the DOM\n            if (unresolvedKeyframes[0] === null) {\n                const currentValue = motionValue === null || motionValue === void 0 ? void 0 : motionValue.get();\n                // TODO: This doesn't work if the final keyframe is a wildcard\n                const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n                if (currentValue !== undefined) {\n                    unresolvedKeyframes[0] = currentValue;\n                } else if (element && name) {\n                    const valueAsRead = element.readValue(name, finalKeyframe);\n                    if (valueAsRead !== undefined && valueAsRead !== null) {\n                        unresolvedKeyframes[0] = valueAsRead;\n                    }\n                }\n                if (unresolvedKeyframes[0] === undefined) {\n                    unresolvedKeyframes[0] = finalKeyframe;\n                }\n                if (motionValue && currentValue === undefined) {\n                    motionValue.set(unresolvedKeyframes[0]);\n                }\n            }\n            fillWildcards(unresolvedKeyframes);\n        }\n        setFinalKeyframe() {}\n        measureInitialState() {}\n        renderEndStyles() {}\n        measureEndState() {}\n        complete(isForcedComplete = false) {\n            this.state = \"complete\";\n            this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n            toResolve.delete(this);\n        }\n        cancel() {\n            if (this.state === \"scheduled\") {\n                toResolve.delete(this);\n                this.state = \"pending\";\n            }\n        }\n        resume() {\n            if (this.state === \"pending\") this.scheduleResolve();\n        }\n        constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false){\n            this.state = \"pending\";\n            /**\n             * Track whether this resolver is async. If it is, it'll be added to the\n             * resolver queue and flushed in the next frame. Resolvers that aren't going\n             * to trigger read/write thrashing don't need to be async.\n             */ this.isAsync = false;\n            /**\n             * Track whether this resolver needs to perform a measurement\n             * to resolve its keyframes.\n             */ this.needsMeasurement = false;\n            this.unresolvedKeyframes = [\n                ...unresolvedKeyframes\n            ];\n            this.onComplete = onComplete;\n            this.name = name;\n            this.motionValue = motionValue;\n            this.element = element;\n            this.isAsync = isAsync;\n        }\n    };\n\n    const isCSSVar = (name)=>name.startsWith(\"--\")\n    ;\n\n    function setStyle(element, name, value) {\n        isCSSVar(name) ? element.style.setProperty(name, value) : element.style[name] = value;\n    }\n\n    const supportsScrollTimeline = /* @__PURE__ */ memo(()=>window.ScrollTimeline !== undefined\n    );\n\n    /**\n     * Add the ability for test suites to manually set support flags\n     * to better test more environments.\n     */ const supportsFlags = {};\n\n    function memoSupports(callback, supportsFlag) {\n        const memoized = memo(callback);\n        var _supportsFlag;\n        return ()=>(_supportsFlag = supportsFlags[supportsFlag]) !== null && _supportsFlag !== void 0 ? _supportsFlag : memoized()\n        ;\n    }\n\n    const supportsLinearEasing = /*@__PURE__*/ memoSupports(()=>{\n        try {\n            document.createElement(\"div\").animate({\n                opacity: 0\n            }, {\n                easing: \"linear(0, 1)\"\n            });\n        } catch (e) {\n            return false;\n        }\n        return true;\n    }, \"linearEasing\");\n\n    const cubicBezierAsString = ([a, b, c, d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`\n    ;\n\n    const supportedWaapiEasing = {\n        linear: \"linear\",\n        ease: \"ease\",\n        easeIn: \"ease-in\",\n        easeOut: \"ease-out\",\n        easeInOut: \"ease-in-out\",\n        circIn: /*@__PURE__*/ cubicBezierAsString([\n            0,\n            0.65,\n            0.55,\n            1\n        ]),\n        circOut: /*@__PURE__*/ cubicBezierAsString([\n            0.55,\n            0,\n            1,\n            0.45\n        ]),\n        backIn: /*@__PURE__*/ cubicBezierAsString([\n            0.31,\n            0.01,\n            0.66,\n            -0.59\n        ]),\n        backOut: /*@__PURE__*/ cubicBezierAsString([\n            0.33,\n            1.53,\n            0.69,\n            0.99\n        ])\n    };\n\n    function mapEasingToNativeEasing(easing, duration) {\n        if (!easing) {\n            return undefined;\n        } else if (typeof easing === \"function\") {\n            return supportsLinearEasing() ? generateLinearEasing(easing, duration) : \"ease-out\";\n        } else if (isBezierDefinition(easing)) {\n            return cubicBezierAsString(easing);\n        } else if (Array.isArray(easing)) {\n            return easing.map((segmentEasing)=>mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut\n            );\n        } else {\n            return supportedWaapiEasing[easing];\n        }\n    }\n\n    function startWaapiAnimation(element, valueName, keyframes, { delay =0 , duration =300 , repeat =0 , repeatType =\"loop\" , ease =\"easeOut\" , times ,  } = {}, pseudoElement = undefined) {\n        const keyframeOptions = {\n            [valueName]: keyframes\n        };\n        if (times) keyframeOptions.offset = times;\n        const easing = mapEasingToNativeEasing(ease, duration);\n        /**\n         * If this is an easing array, apply to keyframes, not animation as a whole\n         */ if (Array.isArray(easing)) keyframeOptions.easing = easing;\n        const options = {\n            delay,\n            duration,\n            easing: !Array.isArray(easing) ? easing : \"linear\",\n            fill: \"both\",\n            iterations: repeat + 1,\n            direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\"\n        };\n        if (pseudoElement) options.pseudoElement = pseudoElement;\n        const animation = element.animate(keyframeOptions, options);\n        return animation;\n    }\n\n    function isGenerator(type) {\n        return typeof type === \"function\" && \"applyToOptions\" in type;\n    }\n\n    function applyGeneratorOptions({ type , ...options }) {\n        if (isGenerator(type) && supportsLinearEasing()) {\n            return type.applyToOptions(options);\n        } else {\n            var _duration;\n            (_duration = options.duration) !== null && _duration !== void 0 ? _duration : options.duration = 300;\n            var _ease;\n            (_ease = options.ease) !== null && _ease !== void 0 ? _ease : options.ease = \"easeOut\";\n        }\n        return options;\n    }\n\n    /**\n     * NativeAnimation implements AnimationPlaybackControls for the browser's Web Animations API.\n     */ let NativeAnimation = class NativeAnimation extends WithPromise {\n        play() {\n            if (this.isStopped) return;\n            this.animation.play();\n            if (this.state === \"finished\") {\n                this.updateFinished();\n            }\n        }\n        pause() {\n            this.animation.pause();\n        }\n        complete() {\n            var _animation, ref;\n            (ref = (_animation = this.animation).finish) === null || ref === void 0 ? void 0 : ref.call(_animation);\n        }\n        cancel() {\n            try {\n                this.animation.cancel();\n            } catch (e) {}\n        }\n        stop() {\n            if (this.isStopped) return;\n            this.isStopped = true;\n            const { state  } = this;\n            if (state === \"idle\" || state === \"finished\") {\n                return;\n            }\n            if (this.updateMotionValue) {\n                this.updateMotionValue();\n            } else {\n                this.commitStyles();\n            }\n            if (!this.isPseudoElement) this.cancel();\n        }\n        /**\n         * WAAPI doesn't natively have any interruption capabilities.\n         *\n         * In this method, we commit styles back to the DOM before cancelling\n         * the animation.\n         *\n         * This is designed to be overridden by NativeAnimationExtended, which\n         * will create a renderless JS animation and sample it twice to calculate\n         * its current value, \"previous\" value, and therefore allow\n         * Motion to also correctly calculate velocity for any subsequent animation\n         * while deferring the commit until the next animation frame.\n         */ commitStyles() {\n            if (!this.isPseudoElement) {\n                var _animation, ref;\n                (ref = (_animation = this.animation).commitStyles) === null || ref === void 0 ? void 0 : ref.call(_animation);\n            }\n        }\n        get duration() {\n            var ref, ref1;\n            const duration = ((ref = this.animation.effect) === null || ref === void 0 ? void 0 : (ref1 = ref.getComputedTiming) === null || ref1 === void 0 ? void 0 : ref1.call(ref).duration) || 0;\n            return millisecondsToSeconds(Number(duration));\n        }\n        get time() {\n            return millisecondsToSeconds(Number(this.animation.currentTime) || 0);\n        }\n        set time(newTime) {\n            this.finishedTime = null;\n            this.animation.currentTime = secondsToMilliseconds(newTime);\n        }\n        /**\n         * The playback speed of the animation.\n         * 1 = normal speed, 2 = double speed, 0.5 = half speed.\n         */ get speed() {\n            return this.animation.playbackRate;\n        }\n        set speed(newSpeed) {\n            // Allow backwards playback after finishing\n            if (newSpeed < 0) this.finishedTime = null;\n            this.animation.playbackRate = newSpeed;\n        }\n        get state() {\n            return this.finishedTime !== null ? \"finished\" : this.animation.playState;\n        }\n        get startTime() {\n            return Number(this.animation.startTime);\n        }\n        set startTime(newStartTime) {\n            this.animation.startTime = newStartTime;\n        }\n        /**\n         * Attaches a timeline to the animation, for instance the `ScrollTimeline`.\n         */ attachTimeline({ timeline , observe  }) {\n            if (this.allowFlatten) {\n                var ref;\n                (ref = this.animation.effect) === null || ref === void 0 ? void 0 : ref.updateTiming({\n                    easing: \"linear\"\n                });\n            }\n            this.animation.onfinish = null;\n            if (timeline && supportsScrollTimeline()) {\n                this.animation.timeline = timeline;\n                return noop;\n            } else {\n                return observe(this);\n            }\n        }\n        constructor(options){\n            super();\n            this.finishedTime = null;\n            this.isStopped = false;\n            if (!options) return;\n            const { element , name , keyframes , pseudoElement , allowFlatten =false , finalKeyframe , onComplete ,  } = options;\n            this.isPseudoElement = Boolean(pseudoElement);\n            this.allowFlatten = allowFlatten;\n            this.options = options;\n            invariant(typeof options.type !== \"string\", `Mini animate() doesn't support \"type\" as a string.`, \"mini-spring\");\n            const transition = applyGeneratorOptions(options);\n            this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);\n            if (transition.autoplay === false) {\n                this.animation.pause();\n            }\n            this.animation.onfinish = ()=>{\n                this.finishedTime = this.time;\n                if (!pseudoElement) {\n                    const keyframe = getFinalKeyframe$1(keyframes, this.options, finalKeyframe, this.speed);\n                    if (this.updateMotionValue) {\n                        this.updateMotionValue(keyframe);\n                    } else {\n                        /**\n                         * If we can, we want to commit the final style as set by the user,\n                         * rather than the computed keyframe value supplied by the animation.\n                         */ setStyle(element, name, keyframe);\n                    }\n                    this.animation.cancel();\n                }\n                onComplete === null || onComplete === void 0 ? void 0 : onComplete();\n                this.notifyFinished();\n            };\n        }\n    };\n\n    const unsupportedEasingFunctions = {\n        anticipate,\n        backInOut,\n        circInOut\n    };\n    function isUnsupportedEase(key) {\n        return key in unsupportedEasingFunctions;\n    }\n    function replaceStringEasing(transition) {\n        if (typeof transition.ease === \"string\" && isUnsupportedEase(transition.ease)) {\n            transition.ease = unsupportedEasingFunctions[transition.ease];\n        }\n    }\n\n    /**\n     * 10ms is chosen here as it strikes a balance between smooth\n     * results (more than one keyframe per frame at 60fps) and\n     * keyframe quantity.\n     */ const sampleDelta = 10; //ms\n    let NativeAnimationExtended = class NativeAnimationExtended extends NativeAnimation {\n        /**\n         * WAAPI doesn't natively have any interruption capabilities.\n         *\n         * Rather than read commited styles back out of the DOM, we can\n         * create a renderless JS animation and sample it twice to calculate\n         * its current value, \"previous\" value, and therefore allow\n         * Motion to calculate velocity for any subsequent animation.\n         */ updateMotionValue(value) {\n            const { motionValue , onUpdate , onComplete , element , ...options } = this.options;\n            if (!motionValue) return;\n            if (value !== undefined) {\n                motionValue.set(value);\n                return;\n            }\n            const sampleAnimation = new JSAnimation({\n                ...options,\n                autoplay: false\n            });\n            var _finishedTime;\n            const sampleTime = secondsToMilliseconds((_finishedTime = this.finishedTime) !== null && _finishedTime !== void 0 ? _finishedTime : this.time);\n            motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);\n            sampleAnimation.stop();\n        }\n        constructor(options){\n            /**\n             * The base NativeAnimation function only supports a subset\n             * of Motion easings, and WAAPI also only supports some\n             * easing functions via string/cubic-bezier definitions.\n             *\n             * This function replaces those unsupported easing functions\n             * with a JS easing function. This will later get compiled\n             * to a linear() easing function.\n             */ replaceStringEasing(options);\n            /**\n             * Ensure we replace the transition type with a generator function\n             * before passing to WAAPI.\n             *\n             * TODO: Does this have a better home? It could be shared with\n             * JSAnimation.\n             */ replaceTransitionType(options);\n            super(options);\n            if (options.startTime) {\n                this.startTime = options.startTime;\n            }\n            this.options = options;\n        }\n    };\n\n    /**\n     * Check if a value is animatable. Examples:\n     *\n     * \u2705: 100, \"100px\", \"#fff\"\n     * \u274C: \"block\", \"url(2.jpg)\"\n     * @param value\n     *\n     * @internal\n     */ const isAnimatable = (value, name)=>{\n        // If the list of keys that might be non-animatable grows, replace with Set\n        if (name === \"zIndex\") return false;\n        // If it's a number or a keyframes array, we can animate it. We might at some point\n        // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n        // but for now lets leave it like this for performance reasons\n        if (typeof value === \"number\" || Array.isArray(value)) return true;\n        if (typeof value === \"string\" && (complex.test(value) || value === \"0\") && !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n        ) {\n            return true;\n        }\n        return false;\n    };\n\n    function hasKeyframesChanged(keyframes) {\n        const current = keyframes[0];\n        if (keyframes.length === 1) return true;\n        for(let i = 0; i < keyframes.length; i++){\n            if (keyframes[i] !== current) return true;\n        }\n    }\n    function canAnimate(keyframes, name, type, velocity) {\n        /**\n         * Check if we're able to animate between the start and end keyframes,\n         * and throw a warning if we're attempting to animate between one that's\n         * animatable and another that isn't.\n         */ const originKeyframe = keyframes[0];\n        if (originKeyframe === null) return false;\n        /**\n         * These aren't traditionally animatable but we do support them.\n         * In future we could look into making this more generic or replacing\n         * this function with mix() === mixImmediate\n         */ if (name === \"display\" || name === \"visibility\") return true;\n        const targetKeyframe = keyframes[keyframes.length - 1];\n        const isOriginAnimatable = isAnimatable(originKeyframe, name);\n        const isTargetAnimatable = isAnimatable(targetKeyframe, name);\n        warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from \"${originKeyframe}\" to \"${targetKeyframe}\". \"${isOriginAnimatable ? targetKeyframe : originKeyframe}\" is not an animatable value.`, \"value-not-animatable\");\n        // Always skip if any of these are true\n        if (!isOriginAnimatable || !isTargetAnimatable) {\n            return false;\n        }\n        return hasKeyframesChanged(keyframes) || (type === \"spring\" || isGenerator(type)) && velocity;\n    }\n\n    function makeAnimationInstant(options) {\n        options.duration = 0;\n        options.type === \"keyframes\";\n    }\n\n    /**\n     * A list of values that can be hardware-accelerated.\n     */ const acceleratedValues = new Set([\n        \"opacity\",\n        \"clipPath\",\n        \"filter\",\n        \"transform\"\n    ]);\n    const supportsWaapi = /*@__PURE__*/ memo(()=>Object.hasOwnProperty.call(Element.prototype, \"animate\")\n    );\n    function supportsBrowserAnimation(options) {\n        var ref;\n        const { motionValue , name , repeatDelay , repeatType , damping , type  } = options;\n        const subject = motionValue === null || motionValue === void 0 ? void 0 : (ref = motionValue.owner) === null || ref === void 0 ? void 0 : ref.current;\n        /**\n         * We use this check instead of isHTMLElement() because we explicitly\n         * **don't** want elements in different timing contexts (i.e. popups)\n         * to be accelerated, as it's not possible to sync these animations\n         * properly with those driven from the main window frameloop.\n         */ if (!(subject instanceof HTMLElement)) {\n            return false;\n        }\n        const { onUpdate , transformTemplate  } = motionValue.owner.getProps();\n        return supportsWaapi() && name && acceleratedValues.has(name) && (name !== \"transform\" || !transformTemplate) && /**\n             * If we're outputting values to onUpdate then we can't use WAAPI as there's\n             * no way to read the value from WAAPI every frame.\n             */ !onUpdate && !repeatDelay && repeatType !== \"mirror\" && damping !== 0 && type !== \"inertia\";\n    }\n\n    /**\n     * Maximum time allowed between an animation being created and it being\n     * resolved for us to use the latter as the start time.\n     *\n     * This is to ensure that while we prefer to \"start\" an animation as soon\n     * as it's triggered, we also want to avoid a visual jump if there's a big delay\n     * between these two moments.\n     */ const MAX_RESOLVE_DELAY = 40;\n    let AsyncMotionValueAnimation = class AsyncMotionValueAnimation extends WithPromise {\n        onKeyframesResolved(keyframes, finalKeyframe, options, sync) {\n            this.keyframeResolver = undefined;\n            const { name , type , velocity , delay , isHandoff , onUpdate  } = options;\n            this.resolvedAt = time.now();\n            /**\n             * If we can't animate this value with the resolved keyframes\n             * then we should complete it immediately.\n             */ if (!canAnimate(keyframes, name, type, velocity)) {\n                if (MotionGlobalConfig.instantAnimations || !delay) {\n                    onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(getFinalKeyframe$1(keyframes, options, finalKeyframe));\n                }\n                keyframes[0] = keyframes[keyframes.length - 1];\n                makeAnimationInstant(options);\n                options.repeat = 0;\n            }\n            /**\n             * Resolve startTime for the animation.\n             *\n             * This method uses the createdAt and resolvedAt to calculate the\n             * animation startTime. *Ideally*, we would use the createdAt time as t=0\n             * as the following frame would then be the first frame of the animation in\n             * progress, which would feel snappier.\n             *\n             * However, if there's a delay (main thread work) between the creation of\n             * the animation and the first commited frame, we prefer to use resolvedAt\n             * to avoid a sudden jump into the animation.\n             */ const startTime = sync ? !this.resolvedAt ? this.createdAt : this.resolvedAt - this.createdAt > MAX_RESOLVE_DELAY ? this.resolvedAt : this.createdAt : undefined;\n            const resolvedOptions = {\n                startTime,\n                finalKeyframe,\n                ...options,\n                keyframes\n            };\n            /**\n             * Animate via WAAPI if possible. If this is a handoff animation, the optimised animation will be running via\n             * WAAPI. Therefore, this animation must be JS to ensure it runs \"under\" the\n             * optimised animation.\n             */ const animation = !isHandoff && supportsBrowserAnimation(resolvedOptions) ? new NativeAnimationExtended({\n                ...resolvedOptions,\n                element: resolvedOptions.motionValue.owner.current\n            }) : new JSAnimation(resolvedOptions);\n            animation.finished.then(()=>this.notifyFinished()\n            ).catch(noop);\n            if (this.pendingTimeline) {\n                this.stopTimeline = animation.attachTimeline(this.pendingTimeline);\n                this.pendingTimeline = undefined;\n            }\n            this._animation = animation;\n        }\n        get finished() {\n            if (!this._animation) {\n                return this._finished;\n            } else {\n                return this.animation.finished;\n            }\n        }\n        then(onResolve, _onReject) {\n            return this.finished.finally(onResolve).then(()=>{});\n        }\n        get animation() {\n            if (!this._animation) {\n                var ref;\n                (ref = this.keyframeResolver) === null || ref === void 0 ? void 0 : ref.resume();\n                flushKeyframeResolvers();\n            }\n            return this._animation;\n        }\n        get duration() {\n            return this.animation.duration;\n        }\n        get time() {\n            return this.animation.time;\n        }\n        set time(newTime) {\n            this.animation.time = newTime;\n        }\n        get speed() {\n            return this.animation.speed;\n        }\n        get state() {\n            return this.animation.state;\n        }\n        set speed(newSpeed) {\n            this.animation.speed = newSpeed;\n        }\n        get startTime() {\n            return this.animation.startTime;\n        }\n        attachTimeline(timeline) {\n            if (this._animation) {\n                this.stopTimeline = this.animation.attachTimeline(timeline);\n            } else {\n                this.pendingTimeline = timeline;\n            }\n            return ()=>this.stop()\n            ;\n        }\n        play() {\n            this.animation.play();\n        }\n        pause() {\n            this.animation.pause();\n        }\n        complete() {\n            this.animation.complete();\n        }\n        cancel() {\n            var ref;\n            if (this._animation) {\n                this.animation.cancel();\n            }\n            (ref = this.keyframeResolver) === null || ref === void 0 ? void 0 : ref.cancel();\n        }\n        constructor({ autoplay =true , delay =0 , type =\"keyframes\" , repeat =0 , repeatDelay =0 , repeatType =\"loop\" , keyframes , name , motionValue , element , ...options }){\n            var ref2;\n            super();\n            /**\n             * Bound to support return animation.stop pattern\n             */ this.stop = ()=>{\n                var ref;\n                if (this._animation) {\n                    var _obj, ref1;\n                    this._animation.stop();\n                    (ref1 = (_obj = this).stopTimeline) === null || ref1 === void 0 ? void 0 : ref1.call(_obj);\n                }\n                (ref = this.keyframeResolver) === null || ref === void 0 ? void 0 : ref.cancel();\n            };\n            this.createdAt = time.now();\n            const optionsWithDefaults = {\n                autoplay,\n                delay,\n                type,\n                repeat,\n                repeatDelay,\n                repeatType,\n                name,\n                motionValue,\n                element,\n                ...options\n            };\n            const KeyframeResolver$1 = (element === null || element === void 0 ? void 0 : element.KeyframeResolver) || KeyframeResolver;\n            this.keyframeResolver = new KeyframeResolver$1(keyframes, (resolvedKeyframes, finalKeyframe, forced)=>this.onKeyframesResolved(resolvedKeyframes, finalKeyframe, optionsWithDefaults, !forced)\n            , name, motionValue, element);\n            (ref2 = this.keyframeResolver) === null || ref2 === void 0 ? void 0 : ref2.scheduleResolve();\n        }\n    };\n\n    let GroupAnimation = class GroupAnimation {\n        get finished() {\n            return Promise.all(this.animations.map((animation)=>animation.finished\n            ));\n        }\n        /**\n         * TODO: Filter out cancelled or stopped animations before returning\n         */ getAll(propName) {\n            return this.animations[0][propName];\n        }\n        setAll(propName, newValue) {\n            for(let i = 0; i < this.animations.length; i++){\n                this.animations[i][propName] = newValue;\n            }\n        }\n        attachTimeline(timeline) {\n            const subscriptions = this.animations.map((animation)=>animation.attachTimeline(timeline)\n            );\n            return ()=>{\n                subscriptions.forEach((cancel, i)=>{\n                    cancel && cancel();\n                    this.animations[i].stop();\n                });\n            };\n        }\n        get time() {\n            return this.getAll(\"time\");\n        }\n        set time(time) {\n            this.setAll(\"time\", time);\n        }\n        get speed() {\n            return this.getAll(\"speed\");\n        }\n        set speed(speed) {\n            this.setAll(\"speed\", speed);\n        }\n        get state() {\n            return this.getAll(\"state\");\n        }\n        get startTime() {\n            return this.getAll(\"startTime\");\n        }\n        get duration() {\n            let max = 0;\n            for(let i = 0; i < this.animations.length; i++){\n                max = Math.max(max, this.animations[i].duration);\n            }\n            return max;\n        }\n        runAll(methodName) {\n            this.animations.forEach((controls)=>controls[methodName]()\n            );\n        }\n        play() {\n            this.runAll(\"play\");\n        }\n        pause() {\n            this.runAll(\"pause\");\n        }\n        cancel() {\n            this.runAll(\"cancel\");\n        }\n        complete() {\n            this.runAll(\"complete\");\n        }\n        constructor(animations){\n            // Bound to accomadate common `return animation.stop` pattern\n            this.stop = ()=>this.runAll(\"stop\")\n            ;\n            this.animations = animations.filter(Boolean);\n        }\n    };\n\n    let GroupAnimationWithThen = class GroupAnimationWithThen extends GroupAnimation {\n        then(onResolve, _onReject) {\n            return this.finished.finally(onResolve).then(()=>{});\n        }\n    };\n\n    let NativeAnimationWrapper = class NativeAnimationWrapper extends NativeAnimation {\n        constructor(animation){\n            super();\n            this.animation = animation;\n            animation.onfinish = ()=>{\n                this.finishedTime = this.time;\n                this.notifyFinished();\n            };\n        }\n    };\n\n    /**\n     * Parse Framer's special CSS variable format into a CSS token and a fallback.\n     *\n     * ```\n     * `var(--foo, #fff)` => [`--foo`, '#fff']\n     * ```\n     *\n     * @param current\n     */ const splitCSSVariableRegex = // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n    /^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;\n    function parseCSSVariable(current) {\n        const match = splitCSSVariableRegex.exec(current);\n        if (!match) return [\n            , \n        ];\n        const [, token1, token2, fallback] = match;\n        return [\n            `--${token1 !== null && token1 !== void 0 ? token1 : token2}`,\n            fallback\n        ];\n    }\n    const maxDepth = 4;\n    function getVariableValue(current, element, depth = 1) {\n        invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`, \"max-css-var-depth\");\n        const [token, fallback] = parseCSSVariable(current);\n        // No CSS variable detected\n        if (!token) return;\n        // Attempt to read this CSS variable off the element\n        const resolved = window.getComputedStyle(element).getPropertyValue(token);\n        if (resolved) {\n            const trimmed = resolved.trim();\n            return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n        }\n        return isCSSVariableToken(fallback) ? getVariableValue(fallback, element, depth + 1) : fallback;\n    }\n\n    function getValueTransition$1(transition, key) {\n        var ref, ref1;\n        return (ref1 = (ref = transition === null || transition === void 0 ? void 0 : transition[key]) !== null && ref !== void 0 ? ref : transition === null || transition === void 0 ? void 0 : transition[\"default\"]) !== null && ref1 !== void 0 ? ref1 : transition;\n    }\n\n    const positionalKeys = new Set([\n        \"width\",\n        \"height\",\n        \"top\",\n        \"left\",\n        \"right\",\n        \"bottom\",\n        ...transformPropOrder, \n    ]);\n\n    /**\n     * ValueType for \"auto\"\n     */ const auto = {\n        test: (v)=>v === \"auto\"\n        ,\n        parse: (v)=>v\n    };\n\n    /**\n     * Tests a provided value against a ValueType\n     */ const testValueType = (v)=>(type)=>type.test(v)\n    ;\n\n    /**\n     * A list of value types commonly used for dimensions\n     */ const dimensionValueTypes = [\n        number,\n        px,\n        percent,\n        degrees,\n        vw,\n        vh,\n        auto\n    ];\n    /**\n     * Tests a dimensional value against the list of dimension ValueTypes\n     */ const findDimensionValueType = (v)=>dimensionValueTypes.find(testValueType(v))\n    ;\n\n    function isNone(value) {\n        if (typeof value === \"number\") {\n            return value === 0;\n        } else if (value !== null) {\n            return value === \"none\" || value === \"0\" || isZeroValueString(value);\n        } else {\n            return true;\n        }\n    }\n\n    /**\n     * Properties that should default to 1 or 100%\n     */ const maxDefaults = new Set([\n        \"brightness\",\n        \"contrast\",\n        \"saturate\",\n        \"opacity\"\n    ]);\n    function applyDefaultFilter(v) {\n        const [name, value] = v.slice(0, -1).split(\"(\");\n        if (name === \"drop-shadow\") return v;\n        const [number] = value.match(floatRegex) || [];\n        if (!number) return v;\n        const unit = value.replace(number, \"\");\n        let defaultValue = maxDefaults.has(name) ? 1 : 0;\n        if (number !== value) defaultValue *= 100;\n        return name + \"(\" + defaultValue + unit + \")\";\n    }\n    const functionRegex = /\\b([a-z-]*)\\(.*?\\)/gu;\n    const filter = {\n        ...complex,\n        getAnimatableNone: (v)=>{\n            const functions = v.match(functionRegex);\n            return functions ? functions.map(applyDefaultFilter).join(\" \") : v;\n        }\n    };\n\n    const int = {\n        ...number,\n        transform: Math.round\n    };\n\n    const transformValueTypes = {\n        rotate: degrees,\n        rotateX: degrees,\n        rotateY: degrees,\n        rotateZ: degrees,\n        scale,\n        scaleX: scale,\n        scaleY: scale,\n        scaleZ: scale,\n        skew: degrees,\n        skewX: degrees,\n        skewY: degrees,\n        distance: px,\n        translateX: px,\n        translateY: px,\n        translateZ: px,\n        x: px,\n        y: px,\n        z: px,\n        perspective: px,\n        transformPerspective: px,\n        opacity: alpha,\n        originX: progressPercentage,\n        originY: progressPercentage,\n        originZ: px\n    };\n\n    const numberValueTypes = {\n        // Border props\n        borderWidth: px,\n        borderTopWidth: px,\n        borderRightWidth: px,\n        borderBottomWidth: px,\n        borderLeftWidth: px,\n        borderRadius: px,\n        radius: px,\n        borderTopLeftRadius: px,\n        borderTopRightRadius: px,\n        borderBottomRightRadius: px,\n        borderBottomLeftRadius: px,\n        // Positioning props\n        width: px,\n        maxWidth: px,\n        height: px,\n        maxHeight: px,\n        top: px,\n        right: px,\n        bottom: px,\n        left: px,\n        // Spacing props\n        padding: px,\n        paddingTop: px,\n        paddingRight: px,\n        paddingBottom: px,\n        paddingLeft: px,\n        margin: px,\n        marginTop: px,\n        marginRight: px,\n        marginBottom: px,\n        marginLeft: px,\n        // Misc\n        backgroundPositionX: px,\n        backgroundPositionY: px,\n        ...transformValueTypes,\n        zIndex: int,\n        // SVG\n        fillOpacity: alpha,\n        strokeOpacity: alpha,\n        numOctaves: int\n    };\n\n    /**\n     * A map of default value types for common values\n     */ const defaultValueTypes = {\n        ...numberValueTypes,\n        // Color props\n        color,\n        backgroundColor: color,\n        outlineColor: color,\n        fill: color,\n        stroke: color,\n        // Border props\n        borderColor: color,\n        borderTopColor: color,\n        borderRightColor: color,\n        borderBottomColor: color,\n        borderLeftColor: color,\n        filter,\n        WebkitFilter: filter\n    };\n    /**\n     * Gets the default ValueType for the provided value key\n     */ const getDefaultValueType = (key)=>defaultValueTypes[key]\n    ;\n\n    function getAnimatableNone(key, value) {\n        let defaultValueType = getDefaultValueType(key);\n        if (defaultValueType !== filter) defaultValueType = complex;\n        // If value is not recognised as animatable, ie \"none\", create an animatable version origin based on the target\n        return defaultValueType.getAnimatableNone ? defaultValueType.getAnimatableNone(value) : undefined;\n    }\n\n    /**\n     * If we encounter keyframes like \"none\" or \"0\" and we also have keyframes like\n     * \"#fff\" or \"200px 200px\" we want to find a keyframe to serve as a template for\n     * the \"none\" keyframes. In this case \"#fff\" or \"200px 200px\" - then these get turned into\n     * zero equivalents, i.e. \"#fff0\" or \"0px 0px\".\n     */ const invalidTemplates = new Set([\n        \"auto\",\n        \"none\",\n        \"0\"\n    ]);\n    function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n        let i = 0;\n        let animatableTemplate = undefined;\n        while(i < unresolvedKeyframes.length && !animatableTemplate){\n            const keyframe = unresolvedKeyframes[i];\n            if (typeof keyframe === \"string\" && !invalidTemplates.has(keyframe) && analyseComplexValue(keyframe).values.length) {\n                animatableTemplate = unresolvedKeyframes[i];\n            }\n            i++;\n        }\n        if (animatableTemplate && name) {\n            for (const noneIndex of noneKeyframeIndexes){\n                unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);\n            }\n        }\n    }\n\n    let DOMKeyframesResolver = class DOMKeyframesResolver extends KeyframeResolver {\n        readKeyframes() {\n            const { unresolvedKeyframes , element , name  } = this;\n            if (!element || !element.current) return;\n            super.readKeyframes();\n            /**\n             * If any keyframe is a CSS variable, we need to find its value by sampling the element\n             */ for(let i = 0; i < unresolvedKeyframes.length; i++){\n                let keyframe = unresolvedKeyframes[i];\n                if (typeof keyframe === \"string\") {\n                    keyframe = keyframe.trim();\n                    if (isCSSVariableToken(keyframe)) {\n                        const resolved = getVariableValue(keyframe, element.current);\n                        if (resolved !== undefined) {\n                            unresolvedKeyframes[i] = resolved;\n                        }\n                        if (i === unresolvedKeyframes.length - 1) {\n                            this.finalKeyframe = keyframe;\n                        }\n                    }\n                }\n            }\n            /**\n             * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n             * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n             * have a far bigger performance impact.\n             */ this.resolveNoneKeyframes();\n            /**\n             * Check to see if unit type has changed. If so schedule jobs that will\n             * temporarily set styles to the destination keyframes.\n             * Skip if we have more than two keyframes or this isn't a positional value.\n             * TODO: We can throw if there are multiple keyframes and the value type changes.\n             */ if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n                return;\n            }\n            const [origin, target] = unresolvedKeyframes;\n            const originType = findDimensionValueType(origin);\n            const targetType = findDimensionValueType(target);\n            /**\n             * Either we don't recognise these value types or we can animate between them.\n             */ if (originType === targetType) return;\n            /**\n             * If both values are numbers or pixels, we can animate between them by\n             * converting them to numbers.\n             */ if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n                for(let i = 0; i < unresolvedKeyframes.length; i++){\n                    const value = unresolvedKeyframes[i];\n                    if (typeof value === \"string\") {\n                        unresolvedKeyframes[i] = parseFloat(value);\n                    }\n                }\n            } else if (positionalValues[name]) {\n                /**\n                 * Else, the only way to resolve this is by measuring the element.\n                 */ this.needsMeasurement = true;\n            }\n        }\n        resolveNoneKeyframes() {\n            const { unresolvedKeyframes , name  } = this;\n            const noneKeyframeIndexes = [];\n            for(let i = 0; i < unresolvedKeyframes.length; i++){\n                if (unresolvedKeyframes[i] === null || isNone(unresolvedKeyframes[i])) {\n                    noneKeyframeIndexes.push(i);\n                }\n            }\n            if (noneKeyframeIndexes.length) {\n                makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n            }\n        }\n        measureInitialState() {\n            const { element , unresolvedKeyframes , name  } = this;\n            if (!element || !element.current) return;\n            if (name === \"height\") {\n                this.suspendedScrollY = window.pageYOffset;\n            }\n            this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n            unresolvedKeyframes[0] = this.measuredOrigin;\n            // Set final key frame to measure after next render\n            const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n            if (measureKeyframe !== undefined) {\n                element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n            }\n        }\n        measureEndState() {\n            var ref;\n            const { element , name , unresolvedKeyframes  } = this;\n            if (!element || !element.current) return;\n            const value = element.getValue(name);\n            value && value.jump(this.measuredOrigin, false);\n            const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n            const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n            unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n            if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n                this.finalKeyframe = finalKeyframe;\n            }\n            // If we removed transform values, reapply them before the next render\n            if ((ref = this.removedTransforms) === null || ref === void 0 ? void 0 : ref.length) {\n                this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue])=>{\n                    element.getValue(unsetTransformName).set(unsetTransformValue);\n                });\n            }\n            this.resolveNoneKeyframes();\n        }\n        constructor(unresolvedKeyframes, onComplete, name, motionValue, element){\n            super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n        }\n    };\n\n    function camelToDash$1(str) {\n        return str.replace(/([A-Z])/g, (match)=>`-${match.toLowerCase()}`\n        );\n    }\n\n    function resolveElements(elementOrSelector, scope, selectorCache) {\n        if (elementOrSelector instanceof EventTarget) {\n            return [\n                elementOrSelector\n            ];\n        } else if (typeof elementOrSelector === \"string\") {\n            let root = document;\n            var ref;\n            const elements = (ref = selectorCache === null || selectorCache === void 0 ? void 0 : selectorCache[elementOrSelector]) !== null && ref !== void 0 ? ref : root.querySelectorAll(elementOrSelector);\n            return elements ? Array.from(elements) : [];\n        }\n        return Array.from(elementOrSelector);\n    }\n\n    function createSelectorEffect(subjectEffect) {\n        return (subject, values)=>{\n            const elements = resolveElements(subject);\n            const subscriptions = [];\n            for (const element of elements){\n                const remove = subjectEffect(element, values);\n                subscriptions.push(remove);\n            }\n            return ()=>{\n                for (const remove of subscriptions)remove();\n            };\n        };\n    }\n\n    /**\n     * Provided a value and a ValueType, returns the value as that value type.\n     */ const getValueAsType = (value, type)=>{\n        return type && typeof value === \"number\" ? type.transform(value) : value;\n    };\n\n    let MotionValueState = class MotionValueState {\n        set(name, value, render, computed, useDefaultValueType = true) {\n            const existingValue = this.values.get(name);\n            if (existingValue) {\n                existingValue.onRemove();\n            }\n            const onChange = ()=>{\n                const v = value.get();\n                if (useDefaultValueType) {\n                    this.latest[name] = getValueAsType(v, numberValueTypes[name]);\n                } else {\n                    this.latest[name] = v;\n                }\n                render && frame.render(render);\n            };\n            onChange();\n            const cancelOnChange = value.on(\"change\", onChange);\n            computed && value.addDependent(computed);\n            const remove = ()=>{\n                cancelOnChange();\n                render && cancelFrame(render);\n                this.values.delete(name);\n                computed && value.removeDependent(computed);\n            };\n            this.values.set(name, {\n                value,\n                onRemove: remove\n            });\n            return remove;\n        }\n        get(name) {\n            var ref;\n            return (ref = this.values.get(name)) === null || ref === void 0 ? void 0 : ref.value;\n        }\n        destroy() {\n            for (const value of this.values.values()){\n                value.onRemove();\n            }\n        }\n        constructor(){\n            this.latest = {};\n            this.values = new Map();\n        }\n    };\n\n    function createEffect(addValue) {\n        const stateCache = new WeakMap();\n        const subscriptions = [];\n        return (subject, values)=>{\n            var ref;\n            const state = (ref = stateCache.get(subject)) !== null && ref !== void 0 ? ref : new MotionValueState();\n            stateCache.set(subject, state);\n            for(const key in values){\n                const value = values[key];\n                const remove = addValue(subject, state, key, value);\n                subscriptions.push(remove);\n            }\n            return ()=>{\n                for (const cancel of subscriptions)cancel();\n            };\n        };\n    }\n\n    function canSetAsProperty(element, name) {\n        if (!(name in element)) return false;\n        const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(element), name) || Object.getOwnPropertyDescriptor(element, name);\n        // Check if it has a setter\n        return descriptor && typeof descriptor.set === \"function\";\n    }\n    const addAttrValue = (element, state, key, value)=>{\n        const isProp = canSetAsProperty(element, key);\n        const name = isProp ? key : key.startsWith(\"data\") || key.startsWith(\"aria\") ? camelToDash$1(key) : key;\n        /**\n         * Set attribute directly via property if available\n         */ const render = isProp ? ()=>{\n            element[name] = state.latest[key];\n        } : ()=>{\n            const v = state.latest[key];\n            if (v === null || v === undefined) {\n                element.removeAttribute(name);\n            } else {\n                element.setAttribute(name, String(v));\n            }\n        };\n        return state.set(key, value, render);\n    };\n    const attrEffect = /*@__PURE__*/ createSelectorEffect(/*@__PURE__*/ createEffect(addAttrValue));\n\n    const propEffect = /*@__PURE__*/ createEffect((subject, state, key, value)=>{\n        return state.set(key, value, ()=>{\n            subject[key] = state.latest[key];\n        }, undefined, false);\n    });\n\n    /**\n     * Checks if an element is an HTML element in a way\n     * that works across iframes\n     */ function isHTMLElement(element) {\n        return isObject(element) && \"offsetHeight\" in element;\n    }\n\n    /**\n     * Maximum time between the value of two frames, beyond which we\n     * assume the velocity has since been 0.\n     */ const MAX_VELOCITY_DELTA = 30;\n    const isFloat = (value)=>{\n        return !isNaN(parseFloat(value));\n    };\n    const collectMotionValues = {\n        current: undefined\n    };\n    /**\n     * `MotionValue` is used to track the state and velocity of motion values.\n     *\n     * @public\n     */ let MotionValue = class MotionValue {\n        setCurrent(current) {\n            this.current = current;\n            this.updatedAt = time.now();\n            if (this.canTrackVelocity === null && current !== undefined) {\n                this.canTrackVelocity = isFloat(this.current);\n            }\n        }\n        setPrevFrameValue(prevFrameValue = this.current) {\n            this.prevFrameValue = prevFrameValue;\n            this.prevUpdatedAt = this.updatedAt;\n        }\n        /**\n         * Adds a function that will be notified when the `MotionValue` is updated.\n         *\n         * It returns a function that, when called, will cancel the subscription.\n         *\n         * When calling `onChange` inside a React component, it should be wrapped with the\n         * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n         * from the `useEffect` function to ensure you don't add duplicate subscribers..\n         *\n         * ```jsx\n         * export const MyComponent = () => {\n         *   const x = useMotionValue(0)\n         *   const y = useMotionValue(0)\n         *   const opacity = useMotionValue(1)\n         *\n         *   useEffect(() => {\n         *     function updateOpacity() {\n         *       const maxXY = Math.max(x.get(), y.get())\n         *       const newOpacity = transform(maxXY, [0, 100], [1, 0])\n         *       opacity.set(newOpacity)\n         *     }\n         *\n         *     const unsubscribeX = x.on(\"change\", updateOpacity)\n         *     const unsubscribeY = y.on(\"change\", updateOpacity)\n         *\n         *     return () => {\n         *       unsubscribeX()\n         *       unsubscribeY()\n         *     }\n         *   }, [])\n         *\n         *   return <motion.div style={{ x }} />\n         * }\n         * ```\n         *\n         * @param subscriber - A function that receives the latest value.\n         * @returns A function that, when called, will cancel this subscription.\n         *\n         * @deprecated\n         */ onChange(subscription) {\n            if (process.env.NODE_ENV !== \"production\") {\n                warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n            }\n            return this.on(\"change\", subscription);\n        }\n        on(eventName, callback) {\n            if (!this.events[eventName]) {\n                this.events[eventName] = new SubscriptionManager();\n            }\n            const unsubscribe = this.events[eventName].add(callback);\n            if (eventName === \"change\") {\n                return ()=>{\n                    unsubscribe();\n                    /**\n                     * If we have no more change listeners by the start\n                     * of the next frame, stop active animations.\n                     */ frame.read(()=>{\n                        if (!this.events.change.getSize()) {\n                            this.stop();\n                        }\n                    });\n                };\n            }\n            return unsubscribe;\n        }\n        clearListeners() {\n            for(const eventManagers in this.events){\n                this.events[eventManagers].clear();\n            }\n        }\n        /**\n         * Attaches a passive effect to the `MotionValue`.\n         */ attach(passiveEffect, stopPassiveEffect) {\n            this.passiveEffect = passiveEffect;\n            this.stopPassiveEffect = stopPassiveEffect;\n        }\n        /**\n         * Sets the state of the `MotionValue`.\n         *\n         * @remarks\n         *\n         * ```jsx\n         * const x = useMotionValue(0)\n         * x.set(10)\n         * ```\n         *\n         * @param latest - Latest value to set.\n         * @param render - Whether to notify render subscribers. Defaults to `true`\n         *\n         * @public\n         */ set(v) {\n            if (!this.passiveEffect) {\n                this.updateAndNotify(v);\n            } else {\n                this.passiveEffect(v, this.updateAndNotify);\n            }\n        }\n        setWithVelocity(prev, current, delta) {\n            this.set(current);\n            this.prev = undefined;\n            this.prevFrameValue = prev;\n            this.prevUpdatedAt = this.updatedAt - delta;\n        }\n        /**\n         * Set the state of the `MotionValue`, stopping any active animations,\n         * effects, and resets velocity to `0`.\n         */ jump(v, endAnimation = true) {\n            this.updateAndNotify(v);\n            this.prev = v;\n            this.prevUpdatedAt = this.prevFrameValue = undefined;\n            endAnimation && this.stop();\n            if (this.stopPassiveEffect) this.stopPassiveEffect();\n        }\n        dirty() {\n            var ref;\n            (ref = this.events.change) === null || ref === void 0 ? void 0 : ref.notify(this.current);\n        }\n        addDependent(dependent) {\n            if (!this.dependents) {\n                this.dependents = new Set();\n            }\n            this.dependents.add(dependent);\n        }\n        removeDependent(dependent) {\n            if (this.dependents) {\n                this.dependents.delete(dependent);\n            }\n        }\n        /**\n         * Returns the latest state of `MotionValue`\n         *\n         * @returns - The latest state of `MotionValue`\n         *\n         * @public\n         */ get() {\n            if (collectMotionValues.current) {\n                collectMotionValues.current.push(this);\n            }\n            return this.current;\n        }\n        /**\n         * @public\n         */ getPrevious() {\n            return this.prev;\n        }\n        /**\n         * Returns the latest velocity of `MotionValue`\n         *\n         * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n         *\n         * @public\n         */ getVelocity() {\n            const currentTime = time.now();\n            if (!this.canTrackVelocity || this.prevFrameValue === undefined || currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n                return 0;\n            }\n            const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n            // Casts because of parseFloat's poor typing\n            return velocityPerSecond(parseFloat(this.current) - parseFloat(this.prevFrameValue), delta);\n        }\n        /**\n         * Registers a new animation to control this `MotionValue`. Only one\n         * animation can drive a `MotionValue` at one time.\n         *\n         * ```jsx\n         * value.start()\n         * ```\n         *\n         * @param animation - A function that starts the provided animation\n         */ start(startAnimation) {\n            this.stop();\n            return new Promise((resolve)=>{\n                this.hasAnimated = true;\n                this.animation = startAnimation(resolve);\n                if (this.events.animationStart) {\n                    this.events.animationStart.notify();\n                }\n            }).then(()=>{\n                if (this.events.animationComplete) {\n                    this.events.animationComplete.notify();\n                }\n                this.clearAnimation();\n            });\n        }\n        /**\n         * Stop the currently active animation.\n         *\n         * @public\n         */ stop() {\n            if (this.animation) {\n                this.animation.stop();\n                if (this.events.animationCancel) {\n                    this.events.animationCancel.notify();\n                }\n            }\n            this.clearAnimation();\n        }\n        /**\n         * Returns `true` if this value is currently animating.\n         *\n         * @public\n         */ isAnimating() {\n            return !!this.animation;\n        }\n        clearAnimation() {\n            delete this.animation;\n        }\n        /**\n         * Destroy and clean up subscribers to this `MotionValue`.\n         *\n         * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n         * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n         * created a `MotionValue` via the `motionValue` function.\n         *\n         * @public\n         */ destroy() {\n            var ref, ref1;\n            (ref = this.dependents) === null || ref === void 0 ? void 0 : ref.clear();\n            (ref1 = this.events.destroy) === null || ref1 === void 0 ? void 0 : ref1.notify();\n            this.clearListeners();\n            this.stop();\n            if (this.stopPassiveEffect) {\n                this.stopPassiveEffect();\n            }\n        }\n        /**\n         * @param init - The initiating value\n         * @param config - Optional configuration options\n         *\n         * -  `transformer`: A function to transform incoming values with.\n         */ constructor(init, options = {}){\n            /**\n             * Tracks whether this value can output a velocity. Currently this is only true\n             * if the value is numerical, but we might be able to widen the scope here and support\n             * other value types.\n             *\n             * @internal\n             */ this.canTrackVelocity = null;\n            /**\n             * An object containing a SubscriptionManager for each active event.\n             */ this.events = {};\n            this.updateAndNotify = (v)=>{\n                const currentTime = time.now();\n                /**\n                 * If we're updating the value during another frame or eventloop\n                 * than the previous frame, then the we set the previous frame value\n                 * to current.\n                 */ if (this.updatedAt !== currentTime) {\n                    this.setPrevFrameValue();\n                }\n                this.prev = this.current;\n                this.setCurrent(v);\n                // Update update subscribers\n                if (this.current !== this.prev) {\n                    var ref;\n                    (ref = this.events.change) === null || ref === void 0 ? void 0 : ref.notify(this.current);\n                    if (this.dependents) {\n                        for (const dependent of this.dependents){\n                            dependent.dirty();\n                        }\n                    }\n                }\n            };\n            this.hasAnimated = false;\n            this.setCurrent(init);\n            this.owner = options.owner;\n        }\n    };\n    function motionValue(init, options) {\n        return new MotionValue(init, options);\n    }\n\n    const translateAlias$1 = {\n        x: \"translateX\",\n        y: \"translateY\",\n        z: \"translateZ\",\n        transformPerspective: \"perspective\"\n    };\n    function buildTransform$1(state) {\n        let transform = \"\";\n        let transformIsDefault = true;\n        /**\n         * Loop over all possible transforms in order, adding the ones that\n         * are present to the transform string.\n         */ for(let i = 0; i < transformPropOrder.length; i++){\n            const key = transformPropOrder[i];\n            const value = state.latest[key];\n            if (value === undefined) continue;\n            let valueIsDefault = true;\n            if (typeof value === \"number\") {\n                valueIsDefault = value === (key.startsWith(\"scale\") ? 1 : 0);\n            } else {\n                valueIsDefault = parseFloat(value) === 0;\n            }\n            if (!valueIsDefault) {\n                transformIsDefault = false;\n                const transformName = translateAlias$1[key] || key;\n                const valueToRender = state.latest[key];\n                transform += `${transformName}(${valueToRender}) `;\n            }\n        }\n        return transformIsDefault ? \"none\" : transform.trim();\n    }\n\n    const originProps = new Set([\n        \"originX\",\n        \"originY\",\n        \"originZ\"\n    ]);\n    const addStyleValue = (element, state, key, value)=>{\n        let render = undefined;\n        let computed = undefined;\n        if (transformProps.has(key)) {\n            if (!state.get(\"transform\")) {\n                // If this is an HTML element, we need to set the transform-box to fill-box\n                // to normalise the transform relative to the element's bounding box\n                if (!isHTMLElement(element) && !state.get(\"transformBox\")) {\n                    addStyleValue(element, state, \"transformBox\", new MotionValue(\"fill-box\"));\n                }\n                state.set(\"transform\", new MotionValue(\"none\"), ()=>{\n                    element.style.transform = buildTransform$1(state);\n                });\n            }\n            computed = state.get(\"transform\");\n        } else if (originProps.has(key)) {\n            if (!state.get(\"transformOrigin\")) {\n                state.set(\"transformOrigin\", new MotionValue(\"\"), ()=>{\n                    var _originX;\n                    const originX = (_originX = state.latest.originX) !== null && _originX !== void 0 ? _originX : \"50%\";\n                    var _originY;\n                    const originY = (_originY = state.latest.originY) !== null && _originY !== void 0 ? _originY : \"50%\";\n                    var _originZ;\n                    const originZ = (_originZ = state.latest.originZ) !== null && _originZ !== void 0 ? _originZ : 0;\n                    element.style.transformOrigin = `${originX} ${originY} ${originZ}`;\n                });\n            }\n            computed = state.get(\"transformOrigin\");\n        } else if (isCSSVar(key)) {\n            render = ()=>{\n                element.style.setProperty(key, state.latest[key]);\n            };\n        } else {\n            render = ()=>{\n                element.style[key] = state.latest[key];\n            };\n        }\n        return state.set(key, value, render, computed);\n    };\n    const styleEffect = /*@__PURE__*/ createSelectorEffect(/*@__PURE__*/ createEffect(addStyleValue));\n\n    const toPx = px.transform;\n    function addSVGPathValue(element, state, key, value) {\n        frame.render(()=>element.setAttribute(\"pathLength\", \"1\")\n        );\n        if (key === \"pathOffset\") {\n            return state.set(key, value, ()=>element.setAttribute(\"stroke-dashoffset\", toPx(-state.latest[key]))\n            );\n        } else {\n            if (!state.get(\"stroke-dasharray\")) {\n                state.set(\"stroke-dasharray\", new MotionValue(\"1 1\"), ()=>{\n                    const { pathLength =1 , pathSpacing  } = state.latest;\n                    element.setAttribute(\"stroke-dasharray\", `${toPx(pathLength)} ${toPx(pathSpacing !== null && pathSpacing !== void 0 ? pathSpacing : 1 - Number(pathLength))}`);\n                });\n            }\n            return state.set(key, value, undefined, state.get(\"stroke-dasharray\"));\n        }\n    }\n    const addSVGValue = (element, state, key, value)=>{\n        if (key.startsWith(\"path\")) {\n            return addSVGPathValue(element, state, key, value);\n        } else if (key.startsWith(\"attr\")) {\n            return addAttrValue(element, state, convertAttrKey(key), value);\n        }\n        const handler = key in element.style ? addStyleValue : addAttrValue;\n        return handler(element, state, key, value);\n    };\n    const svgEffect = /*@__PURE__*/ createSelectorEffect(/*@__PURE__*/ createEffect(addSVGValue));\n    function convertAttrKey(key) {\n        return key.replace(/^attr([A-Z])/, (_, firstChar)=>firstChar.toLowerCase()\n        );\n    }\n\n    const { schedule: microtask , cancel: cancelMicrotask  } = /* @__PURE__ */ createRenderBatcher(queueMicrotask, false);\n\n    /**\n     * Checks if an element is an SVG element in a way\n     * that works across iframes\n     */ function isSVGElement(element) {\n        return isObject(element) && \"ownerSVGElement\" in element;\n    }\n\n    const resizeHandlers = new WeakMap();\n    let observer;\n    const getSize = (borderBoxAxis, svgAxis, htmlAxis)=>(target, borderBoxSize)=>{\n            if (borderBoxSize && borderBoxSize[0]) {\n                return borderBoxSize[0][borderBoxAxis + \"Size\"];\n            } else if (isSVGElement(target) && \"getBBox\" in target) {\n                return target.getBBox()[svgAxis];\n            } else {\n                return target[htmlAxis];\n            }\n        }\n    ;\n    const getWidth = /*@__PURE__*/ getSize(\"inline\", \"width\", \"offsetWidth\");\n    const getHeight = /*@__PURE__*/ getSize(\"block\", \"height\", \"offsetHeight\");\n    function notifyTarget({ target , borderBoxSize  }) {\n        var ref;\n        (ref = resizeHandlers.get(target)) === null || ref === void 0 ? void 0 : ref.forEach((handler)=>{\n            handler(target, {\n                get width () {\n                    return getWidth(target, borderBoxSize);\n                },\n                get height () {\n                    return getHeight(target, borderBoxSize);\n                }\n            });\n        });\n    }\n    function notifyAll(entries) {\n        entries.forEach(notifyTarget);\n    }\n    function createResizeObserver() {\n        if (typeof ResizeObserver === \"undefined\") return;\n        observer = new ResizeObserver(notifyAll);\n    }\n    function resizeElement(target, handler) {\n        if (!observer) createResizeObserver();\n        const elements = resolveElements(target);\n        elements.forEach((element)=>{\n            let elementHandlers = resizeHandlers.get(element);\n            if (!elementHandlers) {\n                elementHandlers = new Set();\n                resizeHandlers.set(element, elementHandlers);\n            }\n            elementHandlers.add(handler);\n            observer === null || observer === void 0 ? void 0 : observer.observe(element);\n        });\n        return ()=>{\n            elements.forEach((element)=>{\n                const elementHandlers = resizeHandlers.get(element);\n                elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);\n                if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {\n                    observer === null || observer === void 0 ? void 0 : observer.unobserve(element);\n                }\n            });\n        };\n    }\n\n    const windowCallbacks = new Set();\n    let windowResizeHandler;\n    function createWindowResizeHandler() {\n        windowResizeHandler = ()=>{\n            const info = {\n                get width () {\n                    return window.innerWidth;\n                },\n                get height () {\n                    return window.innerHeight;\n                }\n            };\n            windowCallbacks.forEach((callback)=>callback(info)\n            );\n        };\n        window.addEventListener(\"resize\", windowResizeHandler);\n    }\n    function resizeWindow(callback) {\n        windowCallbacks.add(callback);\n        if (!windowResizeHandler) createWindowResizeHandler();\n        return ()=>{\n            windowCallbacks.delete(callback);\n            if (!windowCallbacks.size && typeof windowResizeHandler === \"function\") {\n                window.removeEventListener(\"resize\", windowResizeHandler);\n                windowResizeHandler = undefined;\n            }\n        };\n    }\n\n    function resize(a, b) {\n        return typeof a === \"function\" ? resizeWindow(a) : resizeElement(a, b);\n    }\n\n    function observeTimeline(update, timeline) {\n        let prevProgress;\n        const onFrame = ()=>{\n            const { currentTime  } = timeline;\n            const percentage = currentTime === null ? 0 : currentTime.value;\n            const progress = percentage / 100;\n            if (prevProgress !== progress) {\n                update(progress);\n            }\n            prevProgress = progress;\n        };\n        frame.preUpdate(onFrame, true);\n        return ()=>cancelFrame(onFrame)\n        ;\n    }\n\n    /**\n     * Checks if an element is specifically an SVGSVGElement (the root SVG element)\n     * in a way that works across iframes\n     */ function isSVGSVGElement(element) {\n        return isSVGElement(element) && element.tagName === \"svg\";\n    }\n\n    function getOriginIndex(from, total) {\n        if (from === \"first\") {\n            return 0;\n        } else {\n            const lastIndex = total - 1;\n            return from === \"last\" ? lastIndex : lastIndex / 2;\n        }\n    }\n    function stagger(duration = 0.1, { startDelay =0 , from =0 , ease  } = {}) {\n        return (i, total)=>{\n            const fromIndex = typeof from === \"number\" ? from : getOriginIndex(from, total);\n            const distance = Math.abs(fromIndex - i);\n            let delay = duration * distance;\n            if (ease) {\n                const maxDelay = total * duration;\n                const easingFunction = easingDefinitionToFunction(ease);\n                delay = easingFunction(delay / maxDelay) * maxDelay;\n            }\n            return startDelay + delay;\n        };\n    }\n\n    function transform(...args) {\n        const useImmediate = !Array.isArray(args[0]);\n        const argOffset = useImmediate ? 0 : -1;\n        const inputValue = args[0 + argOffset];\n        const inputRange = args[1 + argOffset];\n        const outputRange = args[2 + argOffset];\n        const options = args[3 + argOffset];\n        const interpolator = interpolate(inputRange, outputRange, options);\n        return useImmediate ? interpolator(inputValue) : interpolator;\n    }\n\n    function subscribeValue(inputValues, outputValue, getLatest) {\n        const update = ()=>outputValue.set(getLatest())\n        ;\n        const scheduleUpdate = ()=>frame.preRender(update, false, true)\n        ;\n        const subscriptions = inputValues.map((v)=>v.on(\"change\", scheduleUpdate)\n        );\n        outputValue.on(\"destroy\", ()=>{\n            subscriptions.forEach((unsubscribe)=>unsubscribe()\n            );\n            cancelFrame(update);\n        });\n    }\n\n    /**\n     * Create a `MotionValue` that transforms the output of other `MotionValue`s by\n     * passing their latest values through a transform function.\n     *\n     * Whenever a `MotionValue` referred to in the provided function is updated,\n     * it will be re-evaluated.\n     *\n     * ```jsx\n     * const x = motionValue(0)\n     * const y = transformValue(() => x.get() * 2) // double x\n     * ```\n     *\n     * @param transformer - A transform function. This function must be pure with no side-effects or conditional statements.\n     * @returns `MotionValue`\n     *\n     * @public\n     */ function transformValue(transform) {\n        const collectedValues = [];\n        /**\n         * Open session of collectMotionValues. Any MotionValue that calls get()\n         * inside transform will be saved into this array.\n         */ collectMotionValues.current = collectedValues;\n        const initialValue = transform();\n        collectMotionValues.current = undefined;\n        const value = motionValue(initialValue);\n        subscribeValue(collectedValues, value, transform);\n        return value;\n    }\n\n    /**\n     * Create a `MotionValue` that maps the output of another `MotionValue` by\n     * mapping it from one range of values into another.\n     *\n     * @remarks\n     *\n     * Given an input range of `[-200, -100, 100, 200]` and an output range of\n     * `[0, 1, 1, 0]`, the returned `MotionValue` will:\n     *\n     * - When provided a value between `-200` and `-100`, will return a value between `0` and  `1`.\n     * - When provided a value between `-100` and `100`, will return `1`.\n     * - When provided a value between `100` and `200`, will return a value between `1` and  `0`\n     *\n     * The input range must be a linear series of numbers. The output range\n     * can be any value type supported by Motion: numbers, colors, shadows, etc.\n     *\n     * Every value in the output range must be of the same type and in the same format.\n     *\n     * ```jsx\n     * const x = motionValue(0)\n     * const xRange = [-200, -100, 100, 200]\n     * const opacityRange = [0, 1, 1, 0]\n     * const opacity = mapValue(x, xRange, opacityRange)\n     * ```\n     *\n     * @param inputValue - `MotionValue`\n     * @param inputRange - A linear series of numbers (either all increasing or decreasing)\n     * @param outputRange - A series of numbers, colors or strings. Must be the same length as `inputRange`.\n     * @param options -\n     *\n     *  - clamp: boolean. Clamp values to within the given range. Defaults to `true`\n     *  - ease: EasingFunction[]. Easing functions to use on the interpolations between each value in the input and output ranges. If provided as an array, the array must be one item shorter than the input and output ranges, as the easings apply to the transition between each.\n     *\n     * @returns `MotionValue`\n     *\n     * @public\n     */ function mapValue(inputValue, inputRange, outputRange, options) {\n        const map = transform(inputRange, outputRange, options);\n        return transformValue(()=>map(inputValue.get())\n        );\n    }\n\n    const isMotionValue = (value)=>Boolean(value && value.getVelocity)\n    ;\n\n    /**\n     * Create a `MotionValue` that animates to its latest value using a spring.\n     * Can either be a value or track another `MotionValue`.\n     *\n     * ```jsx\n     * const x = motionValue(0)\n     * const y = transformValue(() => x.get() * 2) // double x\n     * ```\n     *\n     * @param transformer - A transform function. This function must be pure with no side-effects or conditional statements.\n     * @returns `MotionValue`\n     *\n     * @public\n     */ function springValue(source, options) {\n        const initialValue = isMotionValue(source) ? source.get() : source;\n        const value = motionValue(initialValue);\n        attachSpring(value, source, options);\n        return value;\n    }\n    function attachSpring(value, source, options) {\n        const initialValue = value.get();\n        let activeAnimation = null;\n        let latestValue = initialValue;\n        let latestSetter;\n        const unit = typeof initialValue === \"string\" ? initialValue.replace(/[\\d.-]/g, \"\") : undefined;\n        const stopAnimation = ()=>{\n            if (activeAnimation) {\n                activeAnimation.stop();\n                activeAnimation = null;\n            }\n        };\n        const startAnimation = ()=>{\n            stopAnimation();\n            activeAnimation = new JSAnimation({\n                keyframes: [\n                    asNumber(value.get()),\n                    asNumber(latestValue)\n                ],\n                velocity: value.getVelocity(),\n                type: \"spring\",\n                restDelta: 0.001,\n                restSpeed: 0.01,\n                ...options,\n                onUpdate: latestSetter\n            });\n        };\n        value.attach((v, set)=>{\n            latestValue = v;\n            latestSetter = (latest)=>set(parseValue(latest, unit))\n            ;\n            frame.postRender(startAnimation);\n            return value.get();\n        }, stopAnimation);\n        if (isMotionValue(source)) {\n            const removeSourceOnChange = source.on(\"change\", (v)=>value.set(parseValue(v, unit))\n            );\n            const removeValueOnDestroy = value.on(\"destroy\", removeSourceOnChange);\n            return ()=>{\n                removeSourceOnChange();\n                removeValueOnDestroy();\n            };\n        }\n        return stopAnimation;\n    }\n    function parseValue(v, unit) {\n        return unit ? v + unit : v;\n    }\n    function asNumber(v) {\n        return typeof v === \"number\" ? v : parseFloat(v);\n    }\n\n    /**\n     * A list of all ValueTypes\n     */ const valueTypes = [\n        ...dimensionValueTypes,\n        color,\n        complex\n    ];\n    /**\n     * Tests a value against the list of ValueTypes\n     */ const findValueType = (v)=>valueTypes.find(testValueType(v))\n    ;\n\n    function chooseLayerType(valueName) {\n        if (valueName === \"layout\") return \"group\";\n        if (valueName === \"enter\" || valueName === \"new\") return \"new\";\n        if (valueName === \"exit\" || valueName === \"old\") return \"old\";\n        return \"group\";\n    }\n\n    let pendingRules = {};\n    let style = null;\n    const css = {\n        set: (selector, values)=>{\n            pendingRules[selector] = values;\n        },\n        commit: ()=>{\n            if (!style) {\n                style = document.createElement(\"style\");\n                style.id = \"motion-view\";\n            }\n            let cssText = \"\";\n            for(const selector in pendingRules){\n                const rule = pendingRules[selector];\n                cssText += `${selector} {\\n`;\n                for (const [property, value] of Object.entries(rule)){\n                    cssText += `  ${property}: ${value};\\n`;\n                }\n                cssText += \"}\\n\";\n            }\n            style.textContent = cssText;\n            document.head.appendChild(style);\n            pendingRules = {};\n        },\n        remove: ()=>{\n            if (style && style.parentElement) {\n                style.parentElement.removeChild(style);\n            }\n        }\n    };\n\n    function getViewAnimationLayerInfo(pseudoElement) {\n        const match = pseudoElement.match(/::view-transition-(old|new|group|image-pair)\\((.*?)\\)/);\n        if (!match) return null;\n        return {\n            layer: match[2],\n            type: match[1]\n        };\n    }\n\n    function filterViewAnimations(animation) {\n        var ref;\n        const { effect  } = animation;\n        if (!effect) return false;\n        return effect.target === document.documentElement && ((ref = effect.pseudoElement) === null || ref === void 0 ? void 0 : ref.startsWith(\"::view-transition\"));\n    }\n    function getViewAnimations() {\n        return document.getAnimations().filter(filterViewAnimations);\n    }\n\n    function hasTarget(target, targets) {\n        return targets.has(target) && Object.keys(targets.get(target)).length > 0;\n    }\n\n    const definitionNames = [\n        \"layout\",\n        \"enter\",\n        \"exit\",\n        \"new\",\n        \"old\"\n    ];\n    function startViewAnimation(builder) {\n        const { update , targets , options: defaultOptions  } = builder;\n        if (!document.startViewTransition) {\n            return new Promise(async (resolve)=>{\n                await update();\n                resolve(new GroupAnimation([]));\n            });\n        }\n        // TODO: Go over existing targets and ensure they all have ids\n        /**\n         * If we don't have any animations defined for the root target,\n         * remove it from being captured.\n         */ if (!hasTarget(\"root\", targets)) {\n            css.set(\":root\", {\n                \"view-transition-name\": \"none\"\n            });\n        }\n        /**\n         * Set the timing curve to linear for all view transition layers.\n         * This gets baked into the keyframes, which can't be changed\n         * without breaking the generated animation.\n         *\n         * This allows us to set easing via updateTiming - which can be changed.\n         */ css.set(\"::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)\", {\n            \"animation-timing-function\": \"linear !important\"\n        });\n        css.commit(); // Write\n        const transition = document.startViewTransition(async ()=>{\n            await update();\n        // TODO: Go over new targets and ensure they all have ids\n        });\n        transition.finished.finally(()=>{\n            css.remove(); // Write\n        });\n        return new Promise((resolve)=>{\n            transition.ready.then(()=>{\n                const generatedViewAnimations = getViewAnimations();\n                const animations = [];\n                /**\n                 * Create animations for each of our explicitly-defined subjects.\n                 */ targets.forEach((definition, target)=>{\n                    // TODO: If target is not \"root\", resolve elements\n                    // and iterate over each\n                    for (const key of definitionNames){\n                        if (!definition[key]) continue;\n                        const { keyframes , options  } = definition[key];\n                        for (let [valueName, valueKeyframes] of Object.entries(keyframes)){\n                            if (!valueKeyframes) continue;\n                            const valueOptions = {\n                                ...getValueTransition$1(defaultOptions, valueName),\n                                ...getValueTransition$1(options, valueName)\n                            };\n                            const type = chooseLayerType(key);\n                            /**\n                             * If this is an opacity animation, and keyframes are not an array,\n                             * we need to convert them into an array and set an initial value.\n                             */ if (valueName === \"opacity\" && !Array.isArray(valueKeyframes)) {\n                                const initialValue = type === \"new\" ? 0 : 1;\n                                valueKeyframes = [\n                                    initialValue,\n                                    valueKeyframes\n                                ];\n                            }\n                            /**\n                             * Resolve stagger function if provided.\n                             */ if (typeof valueOptions.delay === \"function\") {\n                                valueOptions.delay = valueOptions.delay(0, 1);\n                            }\n                            valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));\n                            valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));\n                            const animation = new NativeAnimation({\n                                ...valueOptions,\n                                element: document.documentElement,\n                                name: valueName,\n                                pseudoElement: `::view-transition-${type}(${target})`,\n                                keyframes: valueKeyframes\n                            });\n                            animations.push(animation);\n                        }\n                    }\n                });\n                /**\n                 * Handle browser generated animations\n                 */ for (const animation1 of generatedViewAnimations){\n                    if (animation1.playState === \"finished\") continue;\n                    const { effect  } = animation1;\n                    if (!effect || !(effect instanceof KeyframeEffect)) continue;\n                    const { pseudoElement  } = effect;\n                    if (!pseudoElement) continue;\n                    const name = getViewAnimationLayerInfo(pseudoElement);\n                    if (!name) continue;\n                    const targetDefinition = targets.get(name.layer);\n                    if (!targetDefinition) {\n                        /**\n                         * If transition name is group then update the timing of the animation\n                         * whereas if it's old or new then we could possibly replace it using\n                         * the above method.\n                         */ const transitionName = name.type === \"group\" ? \"layout\" : \"\";\n                        let animationTransition = {\n                            ...getValueTransition$1(defaultOptions, transitionName)\n                        };\n                        animationTransition.duration && (animationTransition.duration = secondsToMilliseconds(animationTransition.duration));\n                        animationTransition = applyGeneratorOptions(animationTransition);\n                        const easing = mapEasingToNativeEasing(animationTransition.ease, animationTransition.duration);\n                        var _delay;\n                        effect.updateTiming({\n                            delay: secondsToMilliseconds((_delay = animationTransition.delay) !== null && _delay !== void 0 ? _delay : 0),\n                            duration: animationTransition.duration,\n                            easing\n                        });\n                        animations.push(new NativeAnimationWrapper(animation1));\n                    } else if (hasOpacity(targetDefinition, \"enter\") && hasOpacity(targetDefinition, \"exit\") && effect.getKeyframes().some((keyframe)=>keyframe.mixBlendMode\n                    )) {\n                        animations.push(new NativeAnimationWrapper(animation1));\n                    } else {\n                        animation1.cancel();\n                    }\n                }\n                resolve(new GroupAnimation(animations));\n            });\n        });\n    }\n    function hasOpacity(target, key) {\n        var ref;\n        return target === null || target === void 0 ? void 0 : (ref = target[key]) === null || ref === void 0 ? void 0 : ref.keyframes.opacity;\n    }\n\n    let builders = [];\n    let current = null;\n    function next() {\n        current = null;\n        const [nextBuilder] = builders;\n        if (nextBuilder) start(nextBuilder);\n    }\n    function start(builder) {\n        removeItem(builders, builder);\n        current = builder;\n        startViewAnimation(builder).then((animation)=>{\n            builder.notifyReady(animation);\n            animation.finished.finally(next);\n        });\n    }\n    function processQueue() {\n        var ref;\n        /**\n         * Iterate backwards over the builders array. We can ignore the\n         * \"wait\" animations. If we have an interrupting animation in the\n         * queue then we need to batch all preceeding animations into it.\n         * Currently this only batches the update functions but will also\n         * need to batch the targets.\n         */ for(let i = builders.length - 1; i >= 0; i--){\n            const builder = builders[i];\n            const { interrupt  } = builder.options;\n            if (interrupt === \"immediate\") {\n                const batchedUpdates = builders.slice(0, i + 1).map((b)=>b.update\n                );\n                const remaining = builders.slice(i + 1);\n                builder.update = ()=>{\n                    batchedUpdates.forEach((update)=>update()\n                    );\n                };\n                // Put the current builder at the front, followed by any \"wait\" builders\n                builders = [\n                    builder,\n                    ...remaining\n                ];\n                break;\n            }\n        }\n        if (!current || ((ref = builders[0]) === null || ref === void 0 ? void 0 : ref.options.interrupt) === \"immediate\") {\n            next();\n        }\n    }\n    function addToQueue(builder) {\n        builders.push(builder);\n        microtask.render(processQueue);\n    }\n\n    let ViewTransitionBuilder = class ViewTransitionBuilder {\n        get(subject) {\n            this.currentSubject = subject;\n            return this;\n        }\n        layout(keyframes, options) {\n            this.updateTarget(\"layout\", keyframes, options);\n            return this;\n        }\n        new(keyframes, options) {\n            this.updateTarget(\"new\", keyframes, options);\n            return this;\n        }\n        old(keyframes, options) {\n            this.updateTarget(\"old\", keyframes, options);\n            return this;\n        }\n        enter(keyframes, options) {\n            this.updateTarget(\"enter\", keyframes, options);\n            return this;\n        }\n        exit(keyframes, options) {\n            this.updateTarget(\"exit\", keyframes, options);\n            return this;\n        }\n        crossfade(options) {\n            this.updateTarget(\"enter\", {\n                opacity: 1\n            }, options);\n            this.updateTarget(\"exit\", {\n                opacity: 0\n            }, options);\n            return this;\n        }\n        updateTarget(target, keyframes, options = {}) {\n            const { currentSubject , targets  } = this;\n            if (!targets.has(currentSubject)) {\n                targets.set(currentSubject, {});\n            }\n            const targetData = targets.get(currentSubject);\n            targetData[target] = {\n                keyframes,\n                options\n            };\n        }\n        then(resolve, reject) {\n            return this.readyPromise.then(resolve, reject);\n        }\n        constructor(update, options = {}){\n            this.currentSubject = \"root\";\n            this.targets = new Map();\n            this.notifyReady = noop;\n            this.readyPromise = new Promise((resolve)=>{\n                this.notifyReady = resolve;\n            });\n            this.update = update;\n            this.options = {\n                interrupt: \"wait\",\n                ...options\n            };\n            addToQueue(this);\n        }\n    };\n    function animateView(update, defaultOptions = {}) {\n        return new ViewTransitionBuilder(update, defaultOptions);\n    }\n\n    function isDOMKeyframes(keyframes) {\n        return typeof keyframes === \"object\" && !Array.isArray(keyframes);\n    }\n\n    function resolveSubjects(subject, keyframes, scope, selectorCache) {\n        if (typeof subject === \"string\" && isDOMKeyframes(keyframes)) {\n            return resolveElements(subject, scope, selectorCache);\n        } else if (subject instanceof NodeList) {\n            return Array.from(subject);\n        } else if (Array.isArray(subject)) {\n            return subject;\n        } else {\n            return [\n                subject\n            ];\n        }\n    }\n\n    function calculateRepeatDuration(duration, repeat, _repeatDelay) {\n        return duration * (repeat + 1);\n    }\n\n    /**\n     * Given a absolute or relative time definition and current/prev time state of the sequence,\n     * calculate an absolute time for the next keyframes.\n     */ function calcNextTime(current, next, prev, labels) {\n        if (typeof next === \"number\") {\n            return next;\n        } else if (next.startsWith(\"-\") || next.startsWith(\"+\")) {\n            return Math.max(0, current + parseFloat(next));\n        } else if (next === \"<\") {\n            return prev;\n        } else if (next.startsWith(\"<\")) {\n            return Math.max(0, prev + parseFloat(next.slice(1)));\n        } else {\n            var ref;\n            return (ref = labels.get(next)) !== null && ref !== void 0 ? ref : current;\n        }\n    }\n\n    function eraseKeyframes(sequence, startTime, endTime) {\n        for(let i = 0; i < sequence.length; i++){\n            const keyframe = sequence[i];\n            if (keyframe.at > startTime && keyframe.at < endTime) {\n                removeItem(sequence, keyframe);\n                // If we remove this item we have to push the pointer back one\n                i--;\n            }\n        }\n    }\n    function addKeyframes(sequence, keyframes, easing, offset, startTime, endTime) {\n        /**\n         * Erase every existing value between currentTime and targetTime,\n         * this will essentially splice this timeline into any currently\n         * defined ones.\n         */ eraseKeyframes(sequence, startTime, endTime);\n        for(let i = 0; i < keyframes.length; i++){\n            sequence.push({\n                value: keyframes[i],\n                at: mixNumber$1(startTime, endTime, offset[i]),\n                easing: getEasingForSegment(easing, i)\n            });\n        }\n    }\n\n    /**\n     * Take an array of times that represent repeated keyframes. For instance\n     * if we have original times of [0, 0.5, 1] then our repeated times will\n     * be [0, 0.5, 1, 1, 1.5, 2]. Loop over the times and scale them back\n     * down to a 0-1 scale.\n     */ function normalizeTimes(times, repeat) {\n        for(let i = 0; i < times.length; i++){\n            times[i] = times[i] / (repeat + 1);\n        }\n    }\n\n    function compareByTime(a, b) {\n        if (a.at === b.at) {\n            if (a.value === null) return 1;\n            if (b.value === null) return -1;\n            return 0;\n        } else {\n            return a.at - b.at;\n        }\n    }\n\n    const defaultSegmentEasing = \"easeInOut\";\n    const MAX_REPEAT = 20;\n    function createAnimationsFromSequence(sequence, { defaultTransition ={} , ...sequenceTransition } = {}, scope, generators) {\n        const defaultDuration = defaultTransition.duration || 0.3;\n        const animationDefinitions = new Map();\n        const sequences = new Map();\n        const elementCache = {};\n        const timeLabels = new Map();\n        let prevTime = 0;\n        let currentTime = 0;\n        let totalDuration = 0;\n        /**\n         * Build the timeline by mapping over the sequence array and converting\n         * the definitions into keyframes and offsets with absolute time values.\n         * These will later get converted into relative offsets in a second pass.\n         */ for(let i1 = 0; i1 < sequence.length; i1++){\n            const segment = sequence[i1];\n            /**\n             * If this is a timeline label, mark it and skip the rest of this iteration.\n             */ if (typeof segment === \"string\") {\n                timeLabels.set(segment, currentTime);\n                continue;\n            } else if (!Array.isArray(segment)) {\n                timeLabels.set(segment.name, calcNextTime(currentTime, segment.at, prevTime, timeLabels));\n                continue;\n            }\n            let [subject, keyframes, transition = {}] = segment;\n            /**\n             * If a relative or absolute time value has been specified we need to resolve\n             * it in relation to the currentTime.\n             */ if (transition.at !== undefined) {\n                currentTime = calcNextTime(currentTime, transition.at, prevTime, timeLabels);\n            }\n            /**\n             * Keep track of the maximum duration in this definition. This will be\n             * applied to currentTime once the definition has been parsed.\n             */ let maxDuration = 0;\n            const resolveValueSequence = (valueKeyframes, valueTransition, valueSequence, elementIndex = 0, numSubjects = 0)=>{\n                const valueKeyframesAsList = keyframesAsList(valueKeyframes);\n                const { delay =0 , times =defaultOffset$1(valueKeyframesAsList) , type =\"keyframes\" , repeat , repeatType , repeatDelay =0 , ...remainingTransition } = valueTransition;\n                let { ease =defaultTransition.ease || \"easeOut\" , duration  } = valueTransition;\n                /**\n                 * Resolve stagger() if defined.\n                 */ const calculatedDelay = typeof delay === \"function\" ? delay(elementIndex, numSubjects) : delay;\n                /**\n                 * If this animation should and can use a spring, generate a spring easing function.\n                 */ const numKeyframes = valueKeyframesAsList.length;\n                const createGenerator = isGenerator(type) ? type : generators === null || generators === void 0 ? void 0 : generators[type || \"keyframes\"];\n                if (numKeyframes <= 2 && createGenerator) {\n                    /**\n                     * As we're creating an easing function from a spring,\n                     * ideally we want to generate it using the real distance\n                     * between the two keyframes. However this isn't always\n                     * possible - in these situations we use 0-100.\n                     */ let absoluteDelta = 100;\n                    if (numKeyframes === 2 && isNumberKeyframesArray(valueKeyframesAsList)) {\n                        const delta = valueKeyframesAsList[1] - valueKeyframesAsList[0];\n                        absoluteDelta = Math.abs(delta);\n                    }\n                    const springTransition = {\n                        ...remainingTransition\n                    };\n                    if (duration !== undefined) {\n                        springTransition.duration = secondsToMilliseconds(duration);\n                    }\n                    const springEasing = createGeneratorEasing(springTransition, absoluteDelta, createGenerator);\n                    ease = springEasing.ease;\n                    duration = springEasing.duration;\n                }\n                duration !== null && duration !== void 0 ? duration : duration = defaultDuration;\n                const startTime = currentTime + calculatedDelay;\n                /**\n                 * If there's only one time offset of 0, fill in a second with length 1\n                 */ if (times.length === 1 && times[0] === 0) {\n                    times[1] = 1;\n                }\n                /**\n                 * Fill out if offset if fewer offsets than keyframes\n                 */ const remainder = times.length - valueKeyframesAsList.length;\n                remainder > 0 && fillOffset(times, remainder);\n                /**\n                 * If only one value has been set, ie [1], push a null to the start of\n                 * the keyframe array. This will let us mark a keyframe at this point\n                 * that will later be hydrated with the previous value.\n                 */ valueKeyframesAsList.length === 1 && valueKeyframesAsList.unshift(null);\n                /**\n                 * Handle repeat options\n                 */ if (repeat) {\n                    invariant(repeat < MAX_REPEAT, \"Repeat count too high, must be less than 20\", \"repeat-count-high\");\n                    duration = calculateRepeatDuration(duration, repeat);\n                    const originalKeyframes = [\n                        ...valueKeyframesAsList\n                    ];\n                    const originalTimes = [\n                        ...times\n                    ];\n                    ease = Array.isArray(ease) ? [\n                        ...ease\n                    ] : [\n                        ease\n                    ];\n                    const originalEase = [\n                        ...ease\n                    ];\n                    for(let repeatIndex = 0; repeatIndex < repeat; repeatIndex++){\n                        valueKeyframesAsList.push(...originalKeyframes);\n                        for(let keyframeIndex = 0; keyframeIndex < originalKeyframes.length; keyframeIndex++){\n                            times.push(originalTimes[keyframeIndex] + (repeatIndex + 1));\n                            ease.push(keyframeIndex === 0 ? \"linear\" : getEasingForSegment(originalEase, keyframeIndex - 1));\n                        }\n                    }\n                    normalizeTimes(times, repeat);\n                }\n                const targetTime = startTime + duration;\n                /**\n                 * Add keyframes, mapping offsets to absolute time.\n                 */ addKeyframes(valueSequence, valueKeyframesAsList, ease, times, startTime, targetTime);\n                maxDuration = Math.max(calculatedDelay + duration, maxDuration);\n                totalDuration = Math.max(targetTime, totalDuration);\n            };\n            if (isMotionValue(subject)) {\n                const subjectSequence = getSubjectSequence(subject, sequences);\n                resolveValueSequence(keyframes, transition, getValueSequence(\"default\", subjectSequence));\n            } else {\n                const subjects = resolveSubjects(subject, keyframes, scope, elementCache);\n                const numSubjects = subjects.length;\n                /**\n                 * For every element in this segment, process the defined values.\n                 */ for(let subjectIndex = 0; subjectIndex < numSubjects; subjectIndex++){\n                    /**\n                     * Cast necessary, but we know these are of this type\n                     */ keyframes = keyframes;\n                    transition = transition;\n                    const thisSubject = subjects[subjectIndex];\n                    const subjectSequence = getSubjectSequence(thisSubject, sequences);\n                    for(const key in keyframes){\n                        resolveValueSequence(keyframes[key], getValueTransition(transition, key), getValueSequence(key, subjectSequence), subjectIndex, numSubjects);\n                    }\n                }\n            }\n            prevTime = currentTime;\n            currentTime += maxDuration;\n        }\n        /**\n         * For every element and value combination create a new animation.\n         */ sequences.forEach((valueSequences, element)=>{\n            for(const key in valueSequences){\n                const valueSequence = valueSequences[key];\n                /**\n                 * Arrange all the keyframes in ascending time order.\n                 */ valueSequence.sort(compareByTime);\n                const keyframes = [];\n                const valueOffset = [];\n                const valueEasing = [];\n                /**\n                 * For each keyframe, translate absolute times into\n                 * relative offsets based on the total duration of the timeline.\n                 */ for(let i = 0; i < valueSequence.length; i++){\n                    const { at , value , easing  } = valueSequence[i];\n                    keyframes.push(value);\n                    valueOffset.push(progress(0, totalDuration, at));\n                    valueEasing.push(easing || \"easeOut\");\n                }\n                /**\n                 * If the first keyframe doesn't land on offset: 0\n                 * provide one by duplicating the initial keyframe. This ensures\n                 * it snaps to the first keyframe when the animation starts.\n                 */ if (valueOffset[0] !== 0) {\n                    valueOffset.unshift(0);\n                    keyframes.unshift(keyframes[0]);\n                    valueEasing.unshift(defaultSegmentEasing);\n                }\n                /**\n                 * If the last keyframe doesn't land on offset: 1\n                 * provide one with a null wildcard value. This will ensure it\n                 * stays static until the end of the animation.\n                 */ if (valueOffset[valueOffset.length - 1] !== 1) {\n                    valueOffset.push(1);\n                    keyframes.push(null);\n                }\n                if (!animationDefinitions.has(element)) {\n                    animationDefinitions.set(element, {\n                        keyframes: {},\n                        transition: {}\n                    });\n                }\n                const definition = animationDefinitions.get(element);\n                definition.keyframes[key] = keyframes;\n                definition.transition[key] = {\n                    ...defaultTransition,\n                    duration: totalDuration,\n                    ease: valueEasing,\n                    times: valueOffset,\n                    ...sequenceTransition\n                };\n            }\n        });\n        return animationDefinitions;\n    }\n    function getSubjectSequence(subject, sequences) {\n        !sequences.has(subject) && sequences.set(subject, {});\n        return sequences.get(subject);\n    }\n    function getValueSequence(name, sequences) {\n        if (!sequences[name]) sequences[name] = [];\n        return sequences[name];\n    }\n    function keyframesAsList(keyframes) {\n        return Array.isArray(keyframes) ? keyframes : [\n            keyframes\n        ];\n    }\n    function getValueTransition(transition, key) {\n        return transition && transition[key] ? {\n            ...transition,\n            ...transition[key]\n        } : {\n            ...transition\n        };\n    }\n    const isNumber = (keyframe)=>typeof keyframe === \"number\"\n    ;\n    const isNumberKeyframesArray = (keyframes)=>keyframes.every(isNumber)\n    ;\n\n    const visualElementStore = new WeakMap();\n\n    const isKeyframesTarget = (v)=>{\n        return Array.isArray(v);\n    };\n\n    function getValueState(visualElement) {\n        const state = [\n            {},\n            {}\n        ];\n        visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key)=>{\n            state[0][key] = value.get();\n            state[1][key] = value.getVelocity();\n        });\n        return state;\n    }\n    function resolveVariantFromProps(props, definition, custom, visualElement) {\n        /**\n         * If the variant definition is a function, resolve.\n         */ if (typeof definition === \"function\") {\n            const [current, velocity] = getValueState(visualElement);\n            definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n        }\n        /**\n         * If the variant definition is a variant label, or\n         * the function returned a variant label, resolve.\n         */ if (typeof definition === \"string\") {\n            definition = props.variants && props.variants[definition];\n        }\n        /**\n         * At this point we've resolved both functions and variant labels,\n         * but the resolved variant label might itself have been a function.\n         * If so, resolve. This can only have returned a valid target object.\n         */ if (typeof definition === \"function\") {\n            const [current, velocity] = getValueState(visualElement);\n            definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n        }\n        return definition;\n    }\n\n    function resolveVariant(visualElement, definition, custom) {\n        const props = visualElement.getProps();\n        return resolveVariantFromProps(props, definition, props.custom, visualElement);\n    }\n\n    /**\n     * Set VisualElement's MotionValue, creating a new MotionValue for it if\n     * it doesn't exist.\n     */ function setMotionValue(visualElement, key, value) {\n        if (visualElement.hasValue(key)) {\n            visualElement.getValue(key).set(value);\n        } else {\n            visualElement.addValue(key, motionValue(value));\n        }\n    }\n    function resolveFinalValueInKeyframes(v) {\n        // TODO maybe throw if v.length - 1 is placeholder token?\n        return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;\n    }\n    function setTarget(visualElement, definition) {\n        const resolved = resolveVariant(visualElement, definition);\n        let { transitionEnd ={} , transition ={} , ...target } = resolved || {};\n        target = {\n            ...target,\n            ...transitionEnd\n        };\n        for(const key in target){\n            const value = resolveFinalValueInKeyframes(target[key]);\n            setMotionValue(visualElement, key, value);\n        }\n    }\n\n    function isWillChangeMotionValue(value) {\n        return Boolean(isMotionValue(value) && value.add);\n    }\n\n    function addValueToWillChange(visualElement, key) {\n        const willChange = visualElement.getValue(\"willChange\");\n        /**\n         * It could be that a user has set willChange to a regular MotionValue,\n         * in which case we can't add the value to it.\n         */ if (isWillChangeMotionValue(willChange)) {\n            return willChange.add(key);\n        } else if (!willChange && MotionGlobalConfig.WillChange) {\n            const newWillChange = new MotionGlobalConfig.WillChange(\"auto\");\n            visualElement.addValue(\"willChange\", newWillChange);\n            newWillChange.add(key);\n        }\n    }\n\n    /**\n     * Convert camelCase to dash-case properties.\n     */ const camelToDash = (str)=>str.replace(/([a-z])([A-Z])/gu, \"$1-$2\").toLowerCase()\n    ;\n\n    const optimizedAppearDataId = \"framerAppearId\";\n    const optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\n    function getOptimisedAppearId(visualElement) {\n        return visualElement.props[optimizedAppearDataAttribute];\n    }\n\n    const isNotNull = (value)=>value !== null\n    ;\n    function getFinalKeyframe(keyframes, { repeat , repeatType =\"loop\"  }, finalKeyframe) {\n        const resolvedKeyframes = keyframes.filter(isNotNull);\n        const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1 ? 0 : resolvedKeyframes.length - 1;\n        return !index || finalKeyframe === undefined ? resolvedKeyframes[index] : finalKeyframe;\n    }\n\n    const underDampedSpring = {\n        type: \"spring\",\n        stiffness: 500,\n        damping: 25,\n        restSpeed: 10\n    };\n    const criticallyDampedSpring = (target)=>({\n            type: \"spring\",\n            stiffness: 550,\n            damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n            restSpeed: 10\n        })\n    ;\n    const keyframesTransition = {\n        type: \"keyframes\",\n        duration: 0.8\n    };\n    /**\n     * Default easing curve is a slightly shallower version of\n     * the default browser easing curve.\n     */ const ease = {\n        type: \"keyframes\",\n        ease: [\n            0.25,\n            0.1,\n            0.35,\n            1\n        ],\n        duration: 0.3\n    };\n    const getDefaultTransition = (valueKey, { keyframes  })=>{\n        if (keyframes.length > 2) {\n            return keyframesTransition;\n        } else if (transformProps.has(valueKey)) {\n            return valueKey.startsWith(\"scale\") ? criticallyDampedSpring(keyframes[1]) : underDampedSpring;\n        }\n        return ease;\n    };\n\n    /**\n     * Decide whether a transition is defined on a given Transition.\n     * This filters out orchestration options and returns true\n     * if any options are left.\n     */ function isTransitionDefined({ when , delay: _delay , delayChildren , staggerChildren , staggerDirection , repeat , repeatType , repeatDelay , from , elapsed , ...transition }) {\n        return !!Object.keys(transition).length;\n    }\n\n    const animateMotionValue = (name, value, target, transition = {}, element, isHandoff)=>(onComplete)=>{\n            const valueTransition = getValueTransition$1(transition, name) || {};\n            /**\n         * Most transition values are currently completely overwritten by value-specific\n         * transitions. In the future it'd be nicer to blend these transitions. But for now\n         * delay actually does inherit from the root transition if not value-specific.\n         */ const delay = valueTransition.delay || transition.delay || 0;\n            /**\n         * Elapsed isn't a public transition option but can be passed through from\n         * optimized appear effects in milliseconds.\n         */ let { elapsed =0  } = transition;\n            elapsed = elapsed - secondsToMilliseconds(delay);\n            const options = {\n                keyframes: Array.isArray(target) ? target : [\n                    null,\n                    target\n                ],\n                ease: \"easeOut\",\n                velocity: value.getVelocity(),\n                ...valueTransition,\n                delay: -elapsed,\n                onUpdate: (v)=>{\n                    value.set(v);\n                    valueTransition.onUpdate && valueTransition.onUpdate(v);\n                },\n                onComplete: ()=>{\n                    onComplete();\n                    valueTransition.onComplete && valueTransition.onComplete();\n                },\n                name,\n                motionValue: value,\n                element: isHandoff ? undefined : element\n            };\n            /**\n         * If there's no transition defined for this value, we can generate\n         * unique transition settings for this value.\n         */ if (!isTransitionDefined(valueTransition)) {\n                Object.assign(options, getDefaultTransition(name, options));\n            }\n            /**\n         * Both WAAPI and our internal animation functions use durations\n         * as defined by milliseconds, while our external API defines them\n         * as seconds.\n         */ options.duration && (options.duration = secondsToMilliseconds(options.duration));\n            options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n            /**\n         * Support deprecated way to set initial value. Prefer keyframe syntax.\n         */ if (options.from !== undefined) {\n                options.keyframes[0] = options.from;\n            }\n            let shouldSkip = false;\n            if (options.type === false || options.duration === 0 && !options.repeatDelay) {\n                makeAnimationInstant(options);\n                if (options.delay === 0) {\n                    shouldSkip = true;\n                }\n            }\n            if (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations) {\n                shouldSkip = true;\n                makeAnimationInstant(options);\n                options.delay = 0;\n            }\n            /**\n         * If the transition type or easing has been explicitly set by the user\n         * then we don't want to allow flattening the animation.\n         */ options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n            /**\n         * If we can or must skip creating the animation, and apply only\n         * the final keyframe, do so. We also check once keyframes are resolved but\n         * this early check prevents the need to create an animation at all.\n         */ if (shouldSkip && !isHandoff && value.get() !== undefined) {\n                const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n                if (finalKeyframe !== undefined) {\n                    frame.update(()=>{\n                        options.onUpdate(finalKeyframe);\n                        options.onComplete();\n                    });\n                    return;\n                }\n            }\n            return valueTransition.isSync ? new JSAnimation(options) : new AsyncMotionValueAnimation(options);\n        }\n    ;\n\n    /**\n     * Decide whether we should block this animation. Previously, we achieved this\n     * just by checking whether the key was listed in protectedKeys, but this\n     * posed problems if an animation was triggered by afterChildren and protectedKeys\n     * had been set to true in the meantime.\n     */ function shouldBlockAnimation({ protectedKeys , needsAnimating  }, key) {\n        const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n        needsAnimating[key] = false;\n        return shouldBlock;\n    }\n    function animateTarget(visualElement, targetAndTransition, { delay =0 , transitionOverride , type  } = {}) {\n        let { transition =visualElement.getDefaultTransition() , transitionEnd , ...target } = targetAndTransition;\n        if (transitionOverride) transition = transitionOverride;\n        const animations = [];\n        const animationTypeState = type && visualElement.animationState && visualElement.animationState.getState()[type];\n        for(const key in target){\n            var _key;\n            const value = visualElement.getValue(key, (_key = visualElement.latestValues[key]) !== null && _key !== void 0 ? _key : null);\n            const valueTarget = target[key];\n            if (valueTarget === undefined || animationTypeState && shouldBlockAnimation(animationTypeState, key)) {\n                continue;\n            }\n            const valueTransition = {\n                delay,\n                ...getValueTransition$1(transition || {}, key)\n            };\n            /**\n             * If the value is already at the defined target, skip the animation.\n             */ const currentValue = value.get();\n            if (currentValue !== undefined && !value.isAnimating && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) {\n                continue;\n            }\n            /**\n             * If this is the first time a value is being animated, check\n             * to see if we're handling off from an existing animation.\n             */ let isHandoff = false;\n            if (window.MotionHandoffAnimation) {\n                const appearId = getOptimisedAppearId(visualElement);\n                if (appearId) {\n                    const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n                    if (startTime !== null) {\n                        valueTransition.startTime = startTime;\n                        isHandoff = true;\n                    }\n                }\n            }\n            addValueToWillChange(visualElement, key);\n            value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && positionalKeys.has(key) ? {\n                type: false\n            } : valueTransition, visualElement, isHandoff));\n            const animation = value.animation;\n            if (animation) {\n                animations.push(animation);\n            }\n        }\n        if (transitionEnd) {\n            Promise.all(animations).then(()=>{\n                frame.update(()=>{\n                    transitionEnd && setTarget(visualElement, transitionEnd);\n                });\n            });\n        }\n        return animations;\n    }\n\n    /**\n     * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n     * it's easier to consider each axis individually. This function returns a bounding box\n     * as a map of single-axis min/max values.\n     */ function convertBoundingBoxToBox({ top , left , right , bottom ,  }) {\n        return {\n            x: {\n                min: left,\n                max: right\n            },\n            y: {\n                min: top,\n                max: bottom\n            }\n        };\n    }\n    /**\n     * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n     * provided by Framer to allow measured points to be corrected for device scaling. This is used\n     * when measuring DOM elements and DOM event points.\n     */ function transformBoxPoints(point, transformPoint) {\n        if (!transformPoint) return point;\n        const topLeft = transformPoint({\n            x: point.left,\n            y: point.top\n        });\n        const bottomRight = transformPoint({\n            x: point.right,\n            y: point.bottom\n        });\n        return {\n            top: topLeft.y,\n            left: topLeft.x,\n            bottom: bottomRight.y,\n            right: bottomRight.x\n        };\n    }\n\n    function measureViewportBox(instance, transformPoint) {\n        return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));\n    }\n\n    const featureProps = {\n        animation: [\n            \"animate\",\n            \"variants\",\n            \"whileHover\",\n            \"whileTap\",\n            \"exit\",\n            \"whileInView\",\n            \"whileFocus\",\n            \"whileDrag\", \n        ],\n        exit: [\n            \"exit\"\n        ],\n        drag: [\n            \"drag\",\n            \"dragControls\"\n        ],\n        focus: [\n            \"whileFocus\"\n        ],\n        hover: [\n            \"whileHover\",\n            \"onHoverStart\",\n            \"onHoverEnd\"\n        ],\n        tap: [\n            \"whileTap\",\n            \"onTap\",\n            \"onTapStart\",\n            \"onTapCancel\"\n        ],\n        pan: [\n            \"onPan\",\n            \"onPanStart\",\n            \"onPanSessionStart\",\n            \"onPanEnd\"\n        ],\n        inView: [\n            \"whileInView\",\n            \"onViewportEnter\",\n            \"onViewportLeave\"\n        ],\n        layout: [\n            \"layout\",\n            \"layoutId\"\n        ]\n    };\n    const featureDefinitions = {};\n    for(const key in featureProps){\n        featureDefinitions[key] = {\n            isEnabled: (props)=>featureProps[key].some((name)=>!!props[name]\n                )\n        };\n    }\n\n    const createAxis = ()=>({\n            min: 0,\n            max: 0\n        })\n    ;\n    const createBox = ()=>({\n            x: createAxis(),\n            y: createAxis()\n        })\n    ;\n\n    const isBrowser = typeof window !== \"undefined\";\n\n    // Does this device prefer reduced motion? Returns `null` server-side.\n    const prefersReducedMotion = {\n        current: null\n    };\n    const hasReducedMotionListener = {\n        current: false\n    };\n\n    function initPrefersReducedMotion() {\n        hasReducedMotionListener.current = true;\n        if (!isBrowser) return;\n        if (window.matchMedia) {\n            const motionMediaQuery = window.matchMedia(\"(prefers-reduced-motion)\");\n            const setReducedMotionPreferences = ()=>prefersReducedMotion.current = motionMediaQuery.matches\n            ;\n            motionMediaQuery.addEventListener(\"change\", setReducedMotionPreferences);\n            setReducedMotionPreferences();\n        } else {\n            prefersReducedMotion.current = false;\n        }\n    }\n\n    function isAnimationControls(v) {\n        return v !== null && typeof v === \"object\" && typeof v.start === \"function\";\n    }\n\n    /**\n     * Decides if the supplied variable is variant label\n     */ function isVariantLabel(v) {\n        return typeof v === \"string\" || Array.isArray(v);\n    }\n\n    const variantPriorityOrder = [\n        \"animate\",\n        \"whileInView\",\n        \"whileFocus\",\n        \"whileHover\",\n        \"whileTap\",\n        \"whileDrag\",\n        \"exit\", \n    ];\n    const variantProps = [\n        \"initial\",\n        ...variantPriorityOrder\n    ];\n\n    function isControllingVariants(props) {\n        return isAnimationControls(props.animate) || variantProps.some((name)=>isVariantLabel(props[name])\n        );\n    }\n    function isVariantNode(props) {\n        return Boolean(isControllingVariants(props) || props.variants);\n    }\n\n    function updateMotionValuesFromProps(element, next, prev) {\n        for(const key in next){\n            const nextValue = next[key];\n            const prevValue = prev[key];\n            if (isMotionValue(nextValue)) {\n                /**\n                 * If this is a motion value found in props or style, we want to add it\n                 * to our visual element's motion value map.\n                 */ element.addValue(key, nextValue);\n            } else if (isMotionValue(prevValue)) {\n                /**\n                 * If we're swapping from a motion value to a static value,\n                 * create a new motion value from that\n                 */ element.addValue(key, motionValue(nextValue, {\n                    owner: element\n                }));\n            } else if (prevValue !== nextValue) {\n                /**\n                 * If this is a flat value that has changed, update the motion value\n                 * or create one if it doesn't exist. We only want to do this if we're\n                 * not handling the value with our animation state.\n                 */ if (element.hasValue(key)) {\n                    const existingValue = element.getValue(key);\n                    if (existingValue.liveStyle === true) {\n                        existingValue.jump(nextValue);\n                    } else if (!existingValue.hasAnimated) {\n                        existingValue.set(nextValue);\n                    }\n                } else {\n                    const latestValue = element.getStaticValue(key);\n                    element.addValue(key, motionValue(latestValue !== undefined ? latestValue : nextValue, {\n                        owner: element\n                    }));\n                }\n            }\n        }\n        // Handle removed values\n        for(const key1 in prev){\n            if (next[key1] === undefined) element.removeValue(key1);\n        }\n        return next;\n    }\n\n    const propEventHandlers = [\n        \"AnimationStart\",\n        \"AnimationComplete\",\n        \"Update\",\n        \"BeforeLayoutMeasure\",\n        \"LayoutMeasure\",\n        \"LayoutAnimationStart\",\n        \"LayoutAnimationComplete\", \n    ];\n    /**\n     * A VisualElement is an imperative abstraction around UI elements such as\n     * HTMLElement, SVGElement, Three.Object3D etc.\n     */ let VisualElement = class VisualElement {\n        /**\n         * This method takes React props and returns found MotionValues. For example, HTML\n         * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n         *\n         * This isn't an abstract method as it needs calling in the constructor, but it is\n         * intended to be one.\n         */ scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n            return {};\n        }\n        mount(instance) {\n            var ref;\n            this.current = instance;\n            visualElementStore.set(instance, this);\n            if (this.projection && !this.projection.instance) {\n                this.projection.mount(instance);\n            }\n            if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n                this.removeFromVariantTree = this.parent.addVariantChild(this);\n            }\n            this.values.forEach((value, key)=>this.bindToMotionValue(key, value)\n            );\n            if (!hasReducedMotionListener.current) {\n                initPrefersReducedMotion();\n            }\n            this.shouldReduceMotion = this.reducedMotionConfig === \"never\" ? false : this.reducedMotionConfig === \"always\" ? true : prefersReducedMotion.current;\n            if (process.env.NODE_ENV !== \"production\") {\n                warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n            }\n            (ref = this.parent) === null || ref === void 0 ? void 0 : ref.addChild(this);\n            this.update(this.props, this.presenceContext);\n        }\n        unmount() {\n            var ref;\n            this.projection && this.projection.unmount();\n            cancelFrame(this.notifyUpdate);\n            cancelFrame(this.render);\n            this.valueSubscriptions.forEach((remove)=>remove()\n            );\n            this.valueSubscriptions.clear();\n            this.removeFromVariantTree && this.removeFromVariantTree();\n            (ref = this.parent) === null || ref === void 0 ? void 0 : ref.removeChild(this);\n            for(const key in this.events){\n                this.events[key].clear();\n            }\n            for(const key1 in this.features){\n                const feature = this.features[key1];\n                if (feature) {\n                    feature.unmount();\n                    feature.isMounted = false;\n                }\n            }\n            this.current = null;\n        }\n        addChild(child) {\n            this.children.add(child);\n            var _enteringChildren;\n            (_enteringChildren = this.enteringChildren) !== null && _enteringChildren !== void 0 ? _enteringChildren : this.enteringChildren = new Set();\n            this.enteringChildren.add(child);\n        }\n        removeChild(child) {\n            this.children.delete(child);\n            this.enteringChildren && this.enteringChildren.delete(child);\n        }\n        bindToMotionValue(key, value) {\n            if (this.valueSubscriptions.has(key)) {\n                this.valueSubscriptions.get(key)();\n            }\n            const valueIsTransform = transformProps.has(key);\n            if (valueIsTransform && this.onBindTransform) {\n                this.onBindTransform();\n            }\n            const removeOnChange = value.on(\"change\", (latestValue)=>{\n                this.latestValues[key] = latestValue;\n                this.props.onUpdate && frame.preRender(this.notifyUpdate);\n                if (valueIsTransform && this.projection) {\n                    this.projection.isTransformDirty = true;\n                }\n                this.scheduleRender();\n            });\n            let removeSyncCheck;\n            if (window.MotionCheckAppearSync) {\n                removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n            }\n            this.valueSubscriptions.set(key, ()=>{\n                removeOnChange();\n                if (removeSyncCheck) removeSyncCheck();\n                if (value.owner) value.stop();\n            });\n        }\n        sortNodePosition(other) {\n            /**\n             * If these nodes aren't even of the same type we can't compare their depth.\n             */ if (!this.current || !this.sortInstanceNodePosition || this.type !== other.type) {\n                return 0;\n            }\n            return this.sortInstanceNodePosition(this.current, other.current);\n        }\n        updateFeatures() {\n            let key = \"animation\";\n            for(key in featureDefinitions){\n                const featureDefinition = featureDefinitions[key];\n                if (!featureDefinition) continue;\n                const { isEnabled , Feature: FeatureConstructor  } = featureDefinition;\n                /**\n                 * If this feature is enabled but not active, make a new instance.\n                 */ if (!this.features[key] && FeatureConstructor && isEnabled(this.props)) {\n                    this.features[key] = new FeatureConstructor(this);\n                }\n                /**\n                 * If we have a feature, mount or update it.\n                 */ if (this.features[key]) {\n                    const feature = this.features[key];\n                    if (feature.isMounted) {\n                        feature.update();\n                    } else {\n                        feature.mount();\n                        feature.isMounted = true;\n                    }\n                }\n            }\n        }\n        triggerBuild() {\n            this.build(this.renderState, this.latestValues, this.props);\n        }\n        /**\n         * Measure the current viewport box with or without transforms.\n         * Only measures axis-aligned boxes, rotate and skew must be manually\n         * removed with a re-render to work.\n         */ measureViewportBox() {\n            return this.current ? this.measureInstanceViewportBox(this.current, this.props) : createBox();\n        }\n        getStaticValue(key) {\n            return this.latestValues[key];\n        }\n        setStaticValue(key, value) {\n            this.latestValues[key] = value;\n        }\n        /**\n         * Update the provided props. Ensure any newly-added motion values are\n         * added to our map, old ones removed, and listeners updated.\n         */ update(props, presenceContext) {\n            if (props.transformTemplate || this.props.transformTemplate) {\n                this.scheduleRender();\n            }\n            this.prevProps = this.props;\n            this.props = props;\n            this.prevPresenceContext = this.presenceContext;\n            this.presenceContext = presenceContext;\n            /**\n             * Update prop event handlers ie onAnimationStart, onAnimationComplete\n             */ for(let i = 0; i < propEventHandlers.length; i++){\n                const key = propEventHandlers[i];\n                if (this.propEventSubscriptions[key]) {\n                    this.propEventSubscriptions[key]();\n                    delete this.propEventSubscriptions[key];\n                }\n                const listenerName = \"on\" + key;\n                const listener = props[listenerName];\n                if (listener) {\n                    this.propEventSubscriptions[key] = this.on(key, listener);\n                }\n            }\n            this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps, this), this.prevMotionValues);\n            if (this.handleChildMotionValue) {\n                this.handleChildMotionValue();\n            }\n        }\n        getProps() {\n            return this.props;\n        }\n        /**\n         * Returns the variant definition with a given name.\n         */ getVariant(name) {\n            return this.props.variants ? this.props.variants[name] : undefined;\n        }\n        /**\n         * Returns the defined default transition on this component.\n         */ getDefaultTransition() {\n            return this.props.transition;\n        }\n        getTransformPagePoint() {\n            return this.props.transformPagePoint;\n        }\n        getClosestVariantNode() {\n            return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : undefined;\n        }\n        /**\n         * Add a child visual element to our set of children.\n         */ addVariantChild(child) {\n            const closestVariantNode = this.getClosestVariantNode();\n            if (closestVariantNode) {\n                closestVariantNode.variantChildren && closestVariantNode.variantChildren.add(child);\n                return ()=>closestVariantNode.variantChildren.delete(child)\n                ;\n            }\n        }\n        /**\n         * Add a motion value and bind it to this visual element.\n         */ addValue(key, value) {\n            // Remove existing value if it exists\n            const existingValue = this.values.get(key);\n            if (value !== existingValue) {\n                if (existingValue) this.removeValue(key);\n                this.bindToMotionValue(key, value);\n                this.values.set(key, value);\n                this.latestValues[key] = value.get();\n            }\n        }\n        /**\n         * Remove a motion value and unbind any active subscriptions.\n         */ removeValue(key) {\n            this.values.delete(key);\n            const unsubscribe = this.valueSubscriptions.get(key);\n            if (unsubscribe) {\n                unsubscribe();\n                this.valueSubscriptions.delete(key);\n            }\n            delete this.latestValues[key];\n            this.removeValueFromRenderState(key, this.renderState);\n        }\n        /**\n         * Check whether we have a motion value for this key\n         */ hasValue(key) {\n            return this.values.has(key);\n        }\n        getValue(key, defaultValue) {\n            if (this.props.values && this.props.values[key]) {\n                return this.props.values[key];\n            }\n            let value = this.values.get(key);\n            if (value === undefined && defaultValue !== undefined) {\n                value = motionValue(defaultValue === null ? undefined : defaultValue, {\n                    owner: this\n                });\n                this.addValue(key, value);\n            }\n            return value;\n        }\n        /**\n         * If we're trying to animate to a previously unencountered value,\n         * we need to check for it in our state and as a last resort read it\n         * directly from the instance (which might have performance implications).\n         */ readValue(key, target) {\n            var ref;\n            let value = this.latestValues[key] !== undefined || !this.current ? this.latestValues[key] : (ref = this.getBaseTargetFromProps(this.props, key)) !== null && ref !== void 0 ? ref : this.readValueFromInstance(this.current, key, this.options);\n            if (value !== undefined && value !== null) {\n                if (typeof value === \"string\" && (isNumericalString(value) || isZeroValueString(value))) {\n                    // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n                    value = parseFloat(value);\n                } else if (!findValueType(value) && complex.test(target)) {\n                    value = getAnimatableNone(key, target);\n                }\n                this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n            }\n            return isMotionValue(value) ? value.get() : value;\n        }\n        /**\n         * Set the base target to later animate back to. This is currently\n         * only hydrated on creation and when we first read a value.\n         */ setBaseTarget(key, value) {\n            this.baseTarget[key] = value;\n        }\n        /**\n         * Find the base target for a value thats been removed from all animation\n         * props.\n         */ getBaseTarget(key) {\n            const { initial  } = this.props;\n            let valueFromInitial;\n            if (typeof initial === \"string\" || typeof initial === \"object\") {\n                var ref;\n                const variant = resolveVariantFromProps(this.props, initial, (ref = this.presenceContext) === null || ref === void 0 ? void 0 : ref.custom);\n                if (variant) {\n                    valueFromInitial = variant[key];\n                }\n            }\n            /**\n             * If this value still exists in the current initial variant, read that.\n             */ if (initial && valueFromInitial !== undefined) {\n                return valueFromInitial;\n            }\n            /**\n             * Alternatively, if this VisualElement config has defined a getBaseTarget\n             * so we can read the value from an alternative source, try that.\n             */ const target = this.getBaseTargetFromProps(this.props, key);\n            if (target !== undefined && !isMotionValue(target)) return target;\n            /**\n             * If the value was initially defined on initial, but it doesn't any more,\n             * return undefined. Otherwise return the value as initially read from the DOM.\n             */ return this.initialValues[key] !== undefined && valueFromInitial === undefined ? undefined : this.baseTarget[key];\n        }\n        on(eventName, callback) {\n            if (!this.events[eventName]) {\n                this.events[eventName] = new SubscriptionManager();\n            }\n            return this.events[eventName].add(callback);\n        }\n        notify(eventName, ...args) {\n            if (this.events[eventName]) {\n                this.events[eventName].notify(...args);\n            }\n        }\n        scheduleRenderMicrotask() {\n            microtask.render(this.render);\n        }\n        constructor({ parent , props , presenceContext , reducedMotionConfig , blockInitialAnimation , visualState ,  }, options = {}){\n            /**\n             * A reference to the current underlying Instance, e.g. a HTMLElement\n             * or Three.Mesh etc.\n             */ this.current = null;\n            /**\n             * A set containing references to this VisualElement's children.\n             */ this.children = new Set();\n            /**\n             * Determine what role this visual element should take in the variant tree.\n             */ this.isVariantNode = false;\n            this.isControllingVariants = false;\n            /**\n             * Decides whether this VisualElement should animate in reduced motion\n             * mode.\n             *\n             * TODO: This is currently set on every individual VisualElement but feels\n             * like it could be set globally.\n             */ this.shouldReduceMotion = null;\n            /**\n             * A map of all motion values attached to this visual element. Motion\n             * values are source of truth for any given animated value. A motion\n             * value might be provided externally by the component via props.\n             */ this.values = new Map();\n            this.KeyframeResolver = KeyframeResolver;\n            /**\n             * Cleanup functions for active features (hover/tap/exit etc)\n             */ this.features = {};\n            /**\n             * A map of every subscription that binds the provided or generated\n             * motion values onChange listeners to this visual element.\n             */ this.valueSubscriptions = new Map();\n            /**\n             * A reference to the previously-provided motion values as returned\n             * from scrapeMotionValuesFromProps. We use the keys in here to determine\n             * if any motion values need to be removed after props are updated.\n             */ this.prevMotionValues = {};\n            /**\n             * An object containing a SubscriptionManager for each active event.\n             */ this.events = {};\n            /**\n             * An object containing an unsubscribe function for each prop event subscription.\n             * For example, every \"Update\" event can have multiple subscribers via\n             * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n             */ this.propEventSubscriptions = {};\n            this.notifyUpdate = ()=>this.notify(\"Update\", this.latestValues)\n            ;\n            this.render = ()=>{\n                if (!this.current) return;\n                this.triggerBuild();\n                this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n            };\n            this.renderScheduledAt = 0.0;\n            this.scheduleRender = ()=>{\n                const now = time.now();\n                if (this.renderScheduledAt < now) {\n                    this.renderScheduledAt = now;\n                    frame.render(this.render, false, true);\n                }\n            };\n            const { latestValues , renderState  } = visualState;\n            this.latestValues = latestValues;\n            this.baseTarget = {\n                ...latestValues\n            };\n            this.initialValues = props.initial ? {\n                ...latestValues\n            } : {};\n            this.renderState = renderState;\n            this.parent = parent;\n            this.props = props;\n            this.presenceContext = presenceContext;\n            this.depth = parent ? parent.depth + 1 : 0;\n            this.reducedMotionConfig = reducedMotionConfig;\n            this.options = options;\n            this.blockInitialAnimation = Boolean(blockInitialAnimation);\n            this.isControllingVariants = isControllingVariants(props);\n            this.isVariantNode = isVariantNode(props);\n            if (this.isVariantNode) {\n                this.variantChildren = new Set();\n            }\n            this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n            /**\n             * Any motion values that are provided to the element when created\n             * aren't yet bound to the element, as this would technically be impure.\n             * However, we iterate through the motion values and set them to the\n             * initial values for this component.\n             *\n             * TODO: This is impure and we should look at changing this to run on mount.\n             * Doing so will break some tests but this isn't necessarily a breaking change,\n             * more a reflection of the test.\n             */ const { willChange , ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n            for(const key in initialMotionValues){\n                const value = initialMotionValues[key];\n                if (latestValues[key] !== undefined && isMotionValue(value)) {\n                    value.set(latestValues[key]);\n                }\n            }\n        }\n    };\n\n    let DOMVisualElement = class DOMVisualElement extends VisualElement {\n        sortInstanceNodePosition(a, b) {\n            /**\n             * compareDocumentPosition returns a bitmask, by using the bitwise &\n             * we're returning true if 2 in that bitmask is set to true. 2 is set\n             * to true if b preceeds a.\n             */ return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n        }\n        getBaseTargetFromProps(props, key) {\n            return props.style ? props.style[key] : undefined;\n        }\n        removeValueFromRenderState(key, { vars , style  }) {\n            delete vars[key];\n            delete style[key];\n        }\n        handleChildMotionValue() {\n            if (this.childSubscription) {\n                this.childSubscription();\n                delete this.childSubscription;\n            }\n            const { children  } = this.props;\n            if (isMotionValue(children)) {\n                this.childSubscription = children.on(\"change\", (latest)=>{\n                    if (this.current) {\n                        this.current.textContent = `${latest}`;\n                    }\n                });\n            }\n        }\n        constructor(){\n            super(...arguments);\n            this.KeyframeResolver = DOMKeyframesResolver;\n        }\n    };\n\n    const translateAlias = {\n        x: \"translateX\",\n        y: \"translateY\",\n        z: \"translateZ\",\n        transformPerspective: \"perspective\"\n    };\n    const numTransforms = transformPropOrder.length;\n    /**\n     * Build a CSS transform style from individual x/y/scale etc properties.\n     *\n     * This outputs with a default order of transforms/scales/rotations, this can be customised by\n     * providing a transformTemplate function.\n     */ function buildTransform(latestValues, transform, transformTemplate) {\n        // The transform string we're going to build into.\n        let transformString = \"\";\n        let transformIsDefault = true;\n        /**\n         * Loop over all possible transforms in order, adding the ones that\n         * are present to the transform string.\n         */ for(let i = 0; i < numTransforms; i++){\n            const key = transformPropOrder[i];\n            const value = latestValues[key];\n            if (value === undefined) continue;\n            let valueIsDefault = true;\n            if (typeof value === \"number\") {\n                valueIsDefault = value === (key.startsWith(\"scale\") ? 1 : 0);\n            } else {\n                valueIsDefault = parseFloat(value) === 0;\n            }\n            if (!valueIsDefault || transformTemplate) {\n                const valueAsType = getValueAsType(value, numberValueTypes[key]);\n                if (!valueIsDefault) {\n                    transformIsDefault = false;\n                    const transformName = translateAlias[key] || key;\n                    transformString += `${transformName}(${valueAsType}) `;\n                }\n                if (transformTemplate) {\n                    transform[key] = valueAsType;\n                }\n            }\n        }\n        transformString = transformString.trim();\n        // If we have a custom `transform` template, pass our transform values and\n        // generated transformString to that before returning\n        if (transformTemplate) {\n            transformString = transformTemplate(transform, transformIsDefault ? \"\" : transformString);\n        } else if (transformIsDefault) {\n            transformString = \"none\";\n        }\n        return transformString;\n    }\n\n    function buildHTMLStyles(state, latestValues, transformTemplate) {\n        const { style , vars , transformOrigin  } = state;\n        // Track whether we encounter any transform or transformOrigin values.\n        let hasTransform = false;\n        let hasTransformOrigin = false;\n        /**\n         * Loop over all our latest animated values and decide whether to handle them\n         * as a style or CSS variable.\n         *\n         * Transforms and transform origins are kept separately for further processing.\n         */ for(const key in latestValues){\n            const value = latestValues[key];\n            if (transformProps.has(key)) {\n                // If this is a transform, flag to enable further transform processing\n                hasTransform = true;\n                continue;\n            } else if (isCSSVariableName(key)) {\n                vars[key] = value;\n                continue;\n            } else {\n                // Convert the value to its default value type, ie 0 -> \"0px\"\n                const valueAsType = getValueAsType(value, numberValueTypes[key]);\n                if (key.startsWith(\"origin\")) {\n                    // If this is a transform origin, flag and enable further transform-origin processing\n                    hasTransformOrigin = true;\n                    transformOrigin[key] = valueAsType;\n                } else {\n                    style[key] = valueAsType;\n                }\n            }\n        }\n        if (!latestValues.transform) {\n            if (hasTransform || transformTemplate) {\n                style.transform = buildTransform(latestValues, state.transform, transformTemplate);\n            } else if (style.transform) {\n                /**\n                 * If we have previously created a transform but currently don't have any,\n                 * reset transform style to none.\n                 */ style.transform = \"none\";\n            }\n        }\n        /**\n         * Build a transformOrigin style. Uses the same defaults as the browser for\n         * undefined origins.\n         */ if (hasTransformOrigin) {\n            const { originX =\"50%\" , originY =\"50%\" , originZ =0 ,  } = transformOrigin;\n            style.transformOrigin = `${originX} ${originY} ${originZ}`;\n        }\n    }\n\n    function renderHTML(element, { style , vars  }, styleProp, projection) {\n        const elementStyle = element.style;\n        let key;\n        for(key in style){\n            // CSSStyleDeclaration has [index: number]: string; in the types, so we use that as key type.\n            elementStyle[key] = style[key];\n        }\n        // Write projection styles directly to element style\n        projection === null || projection === void 0 ? void 0 : projection.applyProjectionStyles(elementStyle, styleProp);\n        for(key in vars){\n            // Loop over any CSS variables and assign those.\n            // They can only be assigned using `setProperty`.\n            elementStyle.setProperty(key, vars[key]);\n        }\n    }\n\n    const scaleCorrectors = {};\n\n    function isForcedMotionValue(key, { layout , layoutId  }) {\n        return transformProps.has(key) || key.startsWith(\"origin\") || (layout || layoutId !== undefined) && (!!scaleCorrectors[key] || key === \"opacity\");\n    }\n\n    function scrapeMotionValuesFromProps$1(props, prevProps, visualElement) {\n        const { style  } = props;\n        const newValues = {};\n        for(const key in style){\n            var ref;\n            if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((ref = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || ref === void 0 ? void 0 : ref.liveStyle) !== undefined) {\n                newValues[key] = style[key];\n            }\n        }\n        return newValues;\n    }\n\n    function getComputedStyle$1(element) {\n        return window.getComputedStyle(element);\n    }\n    let HTMLVisualElement = class HTMLVisualElement extends DOMVisualElement {\n        readValueFromInstance(instance, key) {\n            if (transformProps.has(key)) {\n                var ref;\n                return ((ref = this.projection) === null || ref === void 0 ? void 0 : ref.isProjecting) ? defaultTransformValue(key) : readTransformValue(instance, key);\n            } else {\n                const computedStyle = getComputedStyle$1(instance);\n                const value = (isCSSVariableName(key) ? computedStyle.getPropertyValue(key) : computedStyle[key]) || 0;\n                return typeof value === \"string\" ? value.trim() : value;\n            }\n        }\n        measureInstanceViewportBox(instance, { transformPagePoint  }) {\n            return measureViewportBox(instance, transformPagePoint);\n        }\n        build(renderState, latestValues, props) {\n            buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n        }\n        scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n            return scrapeMotionValuesFromProps$1(props, prevProps, visualElement);\n        }\n        constructor(){\n            super(...arguments);\n            this.type = \"html\";\n            this.renderInstance = renderHTML;\n        }\n    };\n\n    function isObjectKey(key, object) {\n        return key in object;\n    }\n    let ObjectVisualElement = class ObjectVisualElement extends VisualElement {\n        readValueFromInstance(instance, key) {\n            if (isObjectKey(key, instance)) {\n                const value = instance[key];\n                if (typeof value === \"string\" || typeof value === \"number\") {\n                    return value;\n                }\n            }\n            return undefined;\n        }\n        getBaseTargetFromProps() {\n            return undefined;\n        }\n        removeValueFromRenderState(key, renderState) {\n            delete renderState.output[key];\n        }\n        measureInstanceViewportBox() {\n            return createBox();\n        }\n        build(renderState, latestValues) {\n            Object.assign(renderState.output, latestValues);\n        }\n        renderInstance(instance, { output  }) {\n            Object.assign(instance, output);\n        }\n        sortInstanceNodePosition() {\n            return 0;\n        }\n        constructor(){\n            super(...arguments);\n            this.type = \"object\";\n        }\n    };\n\n    const dashKeys = {\n        offset: \"stroke-dashoffset\",\n        array: \"stroke-dasharray\"\n    };\n    const camelKeys = {\n        offset: \"strokeDashoffset\",\n        array: \"strokeDasharray\"\n    };\n    /**\n     * Build SVG path properties. Uses the path's measured length to convert\n     * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n     * and stroke-dasharray attributes.\n     *\n     * This function is mutative to reduce per-frame GC.\n     */ function buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n        // Normalise path length by setting SVG attribute pathLength to 1\n        attrs.pathLength = 1;\n        // We use dash case when setting attributes directly to the DOM node and camel case\n        // when defining props on a React component.\n        const keys = useDashCase ? dashKeys : camelKeys;\n        // Build the dash offset\n        attrs[keys.offset] = px.transform(-offset);\n        // Build the dash array\n        const pathLength = px.transform(length);\n        const pathSpacing = px.transform(spacing);\n        attrs[keys.array] = `${pathLength} ${pathSpacing}`;\n    }\n\n    /**\n     * Build SVG visual attributes, like cx and style.transform\n     */ function buildSVGAttrs(state, { attrX , attrY , attrScale , pathLength , pathSpacing =1 , pathOffset =0 , // This is object creation, which we try to avoid per-frame.\n    ...latest }, isSVGTag, transformTemplate, styleProp) {\n        buildHTMLStyles(state, latest, transformTemplate);\n        /**\n         * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n         * as normal HTML tags.\n         */ if (isSVGTag) {\n            if (state.style.viewBox) {\n                state.attrs.viewBox = state.style.viewBox;\n            }\n            return;\n        }\n        state.attrs = state.style;\n        state.style = {};\n        const { attrs , style  } = state;\n        /**\n         * However, we apply transforms as CSS transforms.\n         * So if we detect a transform, transformOrigin we take it from attrs and copy it into style.\n         */ if (attrs.transform) {\n            style.transform = attrs.transform;\n            delete attrs.transform;\n        }\n        if (style.transform || attrs.transformOrigin) {\n            var _transformOrigin;\n            style.transformOrigin = (_transformOrigin = attrs.transformOrigin) !== null && _transformOrigin !== void 0 ? _transformOrigin : \"50% 50%\";\n            delete attrs.transformOrigin;\n        }\n        if (style.transform) {\n            var ref;\n            /**\n             * SVG's element transform-origin uses its own median as a reference.\n             * Therefore, transformBox becomes a fill-box\n             */ style.transformBox = (ref = styleProp === null || styleProp === void 0 ? void 0 : styleProp.transformBox) !== null && ref !== void 0 ? ref : \"fill-box\";\n            delete attrs.transformBox;\n        }\n        // Render attrX/attrY/attrScale as attributes\n        if (attrX !== undefined) attrs.x = attrX;\n        if (attrY !== undefined) attrs.y = attrY;\n        if (attrScale !== undefined) attrs.scale = attrScale;\n        // Build SVG path if one has been defined\n        if (pathLength !== undefined) {\n            buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n        }\n    }\n\n    /**\n     * A set of attribute names that are always read/written as camel case.\n     */ const camelCaseAttributes = new Set([\n        \"baseFrequency\",\n        \"diffuseConstant\",\n        \"kernelMatrix\",\n        \"kernelUnitLength\",\n        \"keySplines\",\n        \"keyTimes\",\n        \"limitingConeAngle\",\n        \"markerHeight\",\n        \"markerWidth\",\n        \"numOctaves\",\n        \"targetX\",\n        \"targetY\",\n        \"surfaceScale\",\n        \"specularConstant\",\n        \"specularExponent\",\n        \"stdDeviation\",\n        \"tableValues\",\n        \"viewBox\",\n        \"gradientTransform\",\n        \"pathLength\",\n        \"startOffset\",\n        \"textLength\",\n        \"lengthAdjust\", \n    ]);\n\n    const isSVGTag = (tag)=>typeof tag === \"string\" && tag.toLowerCase() === \"svg\"\n    ;\n\n    function renderSVG(element, renderState, _styleProp, projection) {\n        renderHTML(element, renderState, undefined, projection);\n        for(const key in renderState.attrs){\n            element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);\n        }\n    }\n\n    function scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n        const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);\n        for(const key in props){\n            if (isMotionValue(props[key]) || isMotionValue(prevProps[key])) {\n                const targetKey = transformPropOrder.indexOf(key) !== -1 ? \"attr\" + key.charAt(0).toUpperCase() + key.substring(1) : key;\n                newValues[targetKey] = props[key];\n            }\n        }\n        return newValues;\n    }\n\n    let SVGVisualElement = class SVGVisualElement extends DOMVisualElement {\n        getBaseTargetFromProps(props, key) {\n            return props[key];\n        }\n        readValueFromInstance(instance, key) {\n            if (transformProps.has(key)) {\n                const defaultType = getDefaultValueType(key);\n                return defaultType ? defaultType.default || 0 : 0;\n            }\n            key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n            return instance.getAttribute(key);\n        }\n        scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n            return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n        }\n        build(renderState, latestValues, props) {\n            buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate, props.style);\n        }\n        renderInstance(instance, renderState, styleProp, projection) {\n            renderSVG(instance, renderState, styleProp, projection);\n        }\n        mount(instance) {\n            this.isSVGTag = isSVGTag(instance.tagName);\n            super.mount(instance);\n        }\n        constructor(){\n            super(...arguments);\n            this.type = \"svg\";\n            this.isSVGTag = false;\n            this.measureInstanceViewportBox = createBox;\n        }\n    };\n\n    function createDOMVisualElement(element) {\n        const options = {\n            presenceContext: null,\n            props: {},\n            visualState: {\n                renderState: {\n                    transform: {},\n                    transformOrigin: {},\n                    style: {},\n                    vars: {},\n                    attrs: {}\n                },\n                latestValues: {}\n            }\n        };\n        const node = isSVGElement(element) && !isSVGSVGElement(element) ? new SVGVisualElement(options) : new HTMLVisualElement(options);\n        node.mount(element);\n        visualElementStore.set(element, node);\n    }\n    function createObjectVisualElement(subject) {\n        const options = {\n            presenceContext: null,\n            props: {},\n            visualState: {\n                renderState: {\n                    output: {}\n                },\n                latestValues: {}\n            }\n        };\n        const node = new ObjectVisualElement(options);\n        node.mount(subject);\n        visualElementStore.set(subject, node);\n    }\n\n    function animateSingleValue(value, keyframes, options) {\n        const motionValue$1 = isMotionValue(value) ? value : motionValue(value);\n        motionValue$1.start(animateMotionValue(\"\", motionValue$1, keyframes, options));\n        return motionValue$1.animation;\n    }\n\n    function isSingleValue(subject, keyframes) {\n        return isMotionValue(subject) || typeof subject === \"number\" || typeof subject === \"string\" && !isDOMKeyframes(keyframes);\n    }\n    /**\n     * Implementation\n     */ function animateSubject(subject, keyframes, options, scope) {\n        const animations = [];\n        if (isSingleValue(subject, keyframes)) {\n            animations.push(animateSingleValue(subject, isDOMKeyframes(keyframes) ? keyframes.default || keyframes : keyframes, options ? options.default || options : options));\n        } else {\n            const subjects = resolveSubjects(subject, keyframes, scope);\n            const numSubjects = subjects.length;\n            invariant(Boolean(numSubjects), \"No valid elements provided.\", \"no-valid-elements\");\n            for(let i = 0; i < numSubjects; i++){\n                const thisSubject = subjects[i];\n                invariant(thisSubject !== null, \"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.\", \"animate-null\");\n                const createVisualElement = thisSubject instanceof Element ? createDOMVisualElement : createObjectVisualElement;\n                if (!visualElementStore.has(thisSubject)) {\n                    createVisualElement(thisSubject);\n                }\n                const visualElement = visualElementStore.get(thisSubject);\n                const transition = {\n                    ...options\n                };\n                /**\n                 * Resolve stagger function if provided.\n                 */ if (\"delay\" in transition && typeof transition.delay === \"function\") {\n                    transition.delay = transition.delay(i, numSubjects);\n                }\n                animations.push(...animateTarget(visualElement, {\n                    ...keyframes,\n                    transition\n                }, {}));\n            }\n        }\n        return animations;\n    }\n\n    function animateSequence(sequence, options, scope) {\n        const animations = [];\n        const animationDefinitions = createAnimationsFromSequence(sequence, options, scope, {\n            spring\n        });\n        animationDefinitions.forEach(({ keyframes , transition  }, subject)=>{\n            animations.push(...animateSubject(subject, keyframes, transition));\n        });\n        return animations;\n    }\n\n    function isSequence(value) {\n        return Array.isArray(value) && value.some(Array.isArray);\n    }\n    /**\n     * Creates an animation function that is optionally scoped\n     * to a specific element.\n     */ function createScopedAnimate(scope) {\n        /**\n         * Implementation\n         */ function scopedAnimate(subjectOrSequence, optionsOrKeyframes, options) {\n            let animations = [];\n            if (isSequence(subjectOrSequence)) {\n                animations = animateSequence(subjectOrSequence, optionsOrKeyframes, scope);\n            } else {\n                animations = animateSubject(subjectOrSequence, optionsOrKeyframes, options, scope);\n            }\n            const animation = new GroupAnimationWithThen(animations);\n            return animation;\n        }\n        return scopedAnimate;\n    }\n    const animate = createScopedAnimate();\n\n    /**\n     * A time in milliseconds, beyond which we consider the scroll velocity to be 0.\n     */ const maxElapsed = 50;\n    const createAxisInfo = ()=>({\n            current: 0,\n            offset: [],\n            progress: 0,\n            scrollLength: 0,\n            targetOffset: 0,\n            targetLength: 0,\n            containerLength: 0,\n            velocity: 0\n        })\n    ;\n    const createScrollInfo = ()=>({\n            time: 0,\n            x: createAxisInfo(),\n            y: createAxisInfo()\n        })\n    ;\n    const keys = {\n        x: {\n            length: \"Width\",\n            position: \"Left\"\n        },\n        y: {\n            length: \"Height\",\n            position: \"Top\"\n        }\n    };\n    function updateAxisInfo(element, axisName, info, time) {\n        const axis = info[axisName];\n        const { length , position  } = keys[axisName];\n        const prev = axis.current;\n        const prevTime = info.time;\n        axis.current = element[`scroll${position}`];\n        axis.scrollLength = element[`scroll${length}`] - element[`client${length}`];\n        axis.offset.length = 0;\n        axis.offset[0] = 0;\n        axis.offset[1] = axis.scrollLength;\n        axis.progress = progress(0, axis.scrollLength, axis.current);\n        const elapsed = time - prevTime;\n        axis.velocity = elapsed > maxElapsed ? 0 : velocityPerSecond(axis.current - prev, elapsed);\n    }\n    function updateScrollInfo(element, info, time) {\n        updateAxisInfo(element, \"x\", info, time);\n        updateAxisInfo(element, \"y\", info, time);\n        info.time = time;\n    }\n\n    function calcInset(element, container) {\n        const inset = {\n            x: 0,\n            y: 0\n        };\n        let current = element;\n        while(current && current !== container){\n            if (isHTMLElement(current)) {\n                inset.x += current.offsetLeft;\n                inset.y += current.offsetTop;\n                current = current.offsetParent;\n            } else if (current.tagName === \"svg\") {\n                /**\n                 * This isn't an ideal approach to measuring the offset of <svg /> tags.\n                 * It would be preferable, given they behave like HTMLElements in most ways\n                 * to use offsetLeft/Top. But these don't exist on <svg />. Likewise we\n                 * can't use .getBBox() like most SVG elements as these provide the offset\n                 * relative to the SVG itself, which for <svg /> is usually 0x0.\n                 */ const svgBoundingBox = current.getBoundingClientRect();\n                current = current.parentElement;\n                const parentBoundingBox = current.getBoundingClientRect();\n                inset.x += svgBoundingBox.left - parentBoundingBox.left;\n                inset.y += svgBoundingBox.top - parentBoundingBox.top;\n            } else if (current instanceof SVGGraphicsElement) {\n                const { x , y  } = current.getBBox();\n                inset.x += x;\n                inset.y += y;\n                let svg = null;\n                let parent = current.parentNode;\n                while(!svg){\n                    if (parent.tagName === \"svg\") {\n                        svg = parent;\n                    }\n                    parent = current.parentNode;\n                }\n                current = svg;\n            } else {\n                break;\n            }\n        }\n        return inset;\n    }\n\n    const namedEdges = {\n        start: 0,\n        center: 0.5,\n        end: 1\n    };\n    function resolveEdge(edge, length, inset = 0) {\n        let delta = 0;\n        /**\n         * If we have this edge defined as a preset, replace the definition\n         * with the numerical value.\n         */ if (edge in namedEdges) {\n            edge = namedEdges[edge];\n        }\n        /**\n         * Handle unit values\n         */ if (typeof edge === \"string\") {\n            const asNumber = parseFloat(edge);\n            if (edge.endsWith(\"px\")) {\n                delta = asNumber;\n            } else if (edge.endsWith(\"%\")) {\n                edge = asNumber / 100;\n            } else if (edge.endsWith(\"vw\")) {\n                delta = asNumber / 100 * document.documentElement.clientWidth;\n            } else if (edge.endsWith(\"vh\")) {\n                delta = asNumber / 100 * document.documentElement.clientHeight;\n            } else {\n                edge = asNumber;\n            }\n        }\n        /**\n         * If the edge is defined as a number, handle as a progress value.\n         */ if (typeof edge === \"number\") {\n            delta = length * edge;\n        }\n        return inset + delta;\n    }\n\n    const defaultOffset = [\n        0,\n        0\n    ];\n    function resolveOffset(offset, containerLength, targetLength, targetInset) {\n        let offsetDefinition = Array.isArray(offset) ? offset : defaultOffset;\n        let targetPoint = 0;\n        let containerPoint = 0;\n        if (typeof offset === \"number\") {\n            /**\n             * If we're provided offset: [0, 0.5, 1] then each number x should become\n             * [x, x], so we default to the behaviour of mapping 0 => 0 of both target\n             * and container etc.\n             */ offsetDefinition = [\n                offset,\n                offset\n            ];\n        } else if (typeof offset === \"string\") {\n            offset = offset.trim();\n            if (offset.includes(\" \")) {\n                offsetDefinition = offset.split(\" \");\n            } else {\n                /**\n                 * If we're provided a definition like \"100px\" then we want to apply\n                 * that only to the top of the target point, leaving the container at 0.\n                 * Whereas a named offset like \"end\" should be applied to both.\n                 */ offsetDefinition = [\n                    offset,\n                    namedEdges[offset] ? offset : `0`\n                ];\n            }\n        }\n        targetPoint = resolveEdge(offsetDefinition[0], targetLength, targetInset);\n        containerPoint = resolveEdge(offsetDefinition[1], containerLength);\n        return targetPoint - containerPoint;\n    }\n\n    const ScrollOffset = {\n        Enter: [\n            [\n                0,\n                1\n            ],\n            [\n                1,\n                1\n            ], \n        ],\n        Exit: [\n            [\n                0,\n                0\n            ],\n            [\n                1,\n                0\n            ], \n        ],\n        Any: [\n            [\n                1,\n                0\n            ],\n            [\n                0,\n                1\n            ], \n        ],\n        All: [\n            [\n                0,\n                0\n            ],\n            [\n                1,\n                1\n            ], \n        ]\n    };\n\n    const point = {\n        x: 0,\n        y: 0\n    };\n    function getTargetSize(target) {\n        return \"getBBox\" in target && target.tagName !== \"svg\" ? target.getBBox() : {\n            width: target.clientWidth,\n            height: target.clientHeight\n        };\n    }\n    function resolveOffsets(container, info, options) {\n        const { offset: offsetDefinition = ScrollOffset.All  } = options;\n        const { target =container , axis =\"y\"  } = options;\n        const lengthLabel = axis === \"y\" ? \"height\" : \"width\";\n        const inset = target !== container ? calcInset(target, container) : point;\n        /**\n         * Measure the target and container. If they're the same thing then we\n         * use the container's scrollWidth/Height as the target, from there\n         * all other calculations can remain the same.\n         */ const targetSize = target === container ? {\n            width: container.scrollWidth,\n            height: container.scrollHeight\n        } : getTargetSize(target);\n        const containerSize = {\n            width: container.clientWidth,\n            height: container.clientHeight\n        };\n        /**\n         * Reset the length of the resolved offset array rather than creating a new one.\n         * TODO: More reusable data structures for targetSize/containerSize would also be good.\n         */ info[axis].offset.length = 0;\n        /**\n         * Populate the offset array by resolving the user's offset definition into\n         * a list of pixel scroll offets.\n         */ let hasChanged = !info[axis].interpolate;\n        const numOffsets = offsetDefinition.length;\n        for(let i = 0; i < numOffsets; i++){\n            const offset = resolveOffset(offsetDefinition[i], containerSize[lengthLabel], targetSize[lengthLabel], inset[axis]);\n            if (!hasChanged && offset !== info[axis].interpolatorOffsets[i]) {\n                hasChanged = true;\n            }\n            info[axis].offset[i] = offset;\n        }\n        /**\n         * If the pixel scroll offsets have changed, create a new interpolator function\n         * to map scroll value into a progress.\n         */ if (hasChanged) {\n            info[axis].interpolate = interpolate(info[axis].offset, defaultOffset$1(offsetDefinition), {\n                clamp: false\n            });\n            info[axis].interpolatorOffsets = [\n                ...info[axis].offset\n            ];\n        }\n        info[axis].progress = clamp(0, 1, info[axis].interpolate(info[axis].current));\n    }\n\n    function measure(container, target = container, info) {\n        /**\n         * Find inset of target within scrollable container\n         */ info.x.targetOffset = 0;\n        info.y.targetOffset = 0;\n        if (target !== container) {\n            let node = target;\n            while(node && node !== container){\n                info.x.targetOffset += node.offsetLeft;\n                info.y.targetOffset += node.offsetTop;\n                node = node.offsetParent;\n            }\n        }\n        info.x.targetLength = target === container ? target.scrollWidth : target.clientWidth;\n        info.y.targetLength = target === container ? target.scrollHeight : target.clientHeight;\n        info.x.containerLength = container.clientWidth;\n        info.y.containerLength = container.clientHeight;\n        /**\n         * In development mode ensure scroll containers aren't position: static as this makes\n         * it difficult to measure their relative positions.\n         */ if (process.env.NODE_ENV !== \"production\") {\n            if (container && target && target !== container) {\n                warnOnce(getComputedStyle(container).position !== \"static\", \"Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.\");\n            }\n        }\n    }\n    function createOnScrollHandler(element, onScroll, info, options = {}) {\n        return {\n            measure: (time)=>{\n                measure(element, options.target, info);\n                updateScrollInfo(element, info, time);\n                if (options.offset || options.target) {\n                    resolveOffsets(element, info, options);\n                }\n            },\n            notify: ()=>onScroll(info)\n        };\n    }\n\n    const scrollListeners = new WeakMap();\n    const resizeListeners = new WeakMap();\n    const onScrollHandlers = new WeakMap();\n    const getEventTarget = (element)=>element === document.scrollingElement ? window : element\n    ;\n    function scrollInfo(onScroll, { container =document.scrollingElement , ...options } = {}) {\n        if (!container) return noop;\n        let containerHandlers = onScrollHandlers.get(container);\n        /**\n         * Get the onScroll handlers for this container.\n         * If one isn't found, create a new one.\n         */ if (!containerHandlers) {\n            containerHandlers = new Set();\n            onScrollHandlers.set(container, containerHandlers);\n        }\n        /**\n         * Create a new onScroll handler for the provided callback.\n         */ const info = createScrollInfo();\n        const containerHandler = createOnScrollHandler(container, onScroll, info, options);\n        containerHandlers.add(containerHandler);\n        /**\n         * Check if there's a scroll event listener for this container.\n         * If not, create one.\n         */ if (!scrollListeners.has(container)) {\n            const measureAll = ()=>{\n                for (const handler of containerHandlers){\n                    handler.measure(frameData.timestamp);\n                }\n                frame.preUpdate(notifyAll);\n            };\n            const notifyAll = ()=>{\n                for (const handler of containerHandlers){\n                    handler.notify();\n                }\n            };\n            const listener = ()=>frame.read(measureAll)\n            ;\n            scrollListeners.set(container, listener);\n            const target = getEventTarget(container);\n            window.addEventListener(\"resize\", listener, {\n                passive: true\n            });\n            if (container !== document.documentElement) {\n                resizeListeners.set(container, resize(container, listener));\n            }\n            target.addEventListener(\"scroll\", listener, {\n                passive: true\n            });\n            listener();\n        }\n        const listener = scrollListeners.get(container);\n        frame.read(listener, false, true);\n        return ()=>{\n            cancelFrame(listener);\n            /**\n             * Check if we even have any handlers for this container.\n             */ const currentHandlers = onScrollHandlers.get(container);\n            if (!currentHandlers) return;\n            currentHandlers.delete(containerHandler);\n            if (currentHandlers.size) return;\n            /**\n             * If no more handlers, remove the scroll listener too.\n             */ const scrollListener = scrollListeners.get(container);\n            scrollListeners.delete(container);\n            if (scrollListener) {\n                var ref;\n                getEventTarget(container).removeEventListener(\"scroll\", scrollListener);\n                (ref = resizeListeners.get(container)) === null || ref === void 0 ? void 0 : ref();\n                window.removeEventListener(\"resize\", scrollListener);\n            }\n        };\n    }\n\n    const timelineCache = new Map();\n    function scrollTimelineFallback(options) {\n        const currentTime = {\n            value: 0\n        };\n        const cancel = scrollInfo((info)=>{\n            currentTime.value = info[options.axis].progress * 100;\n        }, options);\n        return {\n            currentTime,\n            cancel\n        };\n    }\n    function getTimeline({ source , container , ...options }) {\n        const { axis  } = options;\n        if (source) container = source;\n        var ref;\n        const containerCache = (ref = timelineCache.get(container)) !== null && ref !== void 0 ? ref : new Map();\n        timelineCache.set(container, containerCache);\n        var _target;\n        const targetKey = (_target = options.target) !== null && _target !== void 0 ? _target : \"self\";\n        var ref1;\n        const targetCache = (ref1 = containerCache.get(targetKey)) !== null && ref1 !== void 0 ? ref1 : {};\n        var _offset;\n        const axisKey = axis + ((_offset = options.offset) !== null && _offset !== void 0 ? _offset : []).join(\",\");\n        if (!targetCache[axisKey]) {\n            targetCache[axisKey] = !options.target && supportsScrollTimeline() ? new ScrollTimeline({\n                source: container,\n                axis\n            }) : scrollTimelineFallback({\n                container,\n                ...options\n            });\n        }\n        return targetCache[axisKey];\n    }\n\n    function attachToAnimation(animation, options) {\n        const timeline = getTimeline(options);\n        return animation.attachTimeline({\n            timeline: options.target ? undefined : timeline,\n            observe: (valueAnimation)=>{\n                valueAnimation.pause();\n                return observeTimeline((progress)=>{\n                    valueAnimation.time = valueAnimation.duration * progress;\n                }, timeline);\n            }\n        });\n    }\n\n    /**\n     * If the onScroll function has two arguments, it's expecting\n     * more specific information about the scroll from scrollInfo.\n     */ function isOnScrollWithInfo(onScroll) {\n        return onScroll.length === 2;\n    }\n    function attachToFunction(onScroll, options) {\n        if (isOnScrollWithInfo(onScroll)) {\n            return scrollInfo((info)=>{\n                onScroll(info[options.axis].progress, info);\n            }, options);\n        } else {\n            return observeTimeline(onScroll, getTimeline(options));\n        }\n    }\n\n    function scroll(onScroll, { axis =\"y\" , container =document.scrollingElement , ...options } = {}) {\n        if (!container) return noop;\n        const optionsWithDefaults = {\n            axis,\n            container,\n            ...options\n        };\n        return typeof onScroll === \"function\" ? attachToFunction(onScroll, optionsWithDefaults) : attachToAnimation(onScroll, optionsWithDefaults);\n    }\n\n    const thresholds = {\n        some: 0,\n        all: 1\n    };\n    function inView(elementOrSelector, onStart, { root , margin: rootMargin , amount =\"some\"  } = {}) {\n        const elements = resolveElements(elementOrSelector);\n        const activeIntersections = new WeakMap();\n        const onIntersectionChange = (entries)=>{\n            entries.forEach((entry)=>{\n                const onEnd = activeIntersections.get(entry.target);\n                /**\n                 * If there's no change to the intersection, we don't need to\n                 * do anything here.\n                 */ if (entry.isIntersecting === Boolean(onEnd)) return;\n                if (entry.isIntersecting) {\n                    const newOnEnd = onStart(entry.target, entry);\n                    if (typeof newOnEnd === \"function\") {\n                        activeIntersections.set(entry.target, newOnEnd);\n                    } else {\n                        observer.unobserve(entry.target);\n                    }\n                } else if (typeof onEnd === \"function\") {\n                    onEnd(entry);\n                    activeIntersections.delete(entry.target);\n                }\n            });\n        };\n        const observer = new IntersectionObserver(onIntersectionChange, {\n            root,\n            rootMargin,\n            threshold: typeof amount === \"number\" ? amount : thresholds[amount]\n        });\n        elements.forEach((element)=>observer.observe(element)\n        );\n        return ()=>observer.disconnect()\n        ;\n    }\n\n    /**\n     * Enables the creation of disclosure components, commonly known as accordions or collapsible sections.\n     * A disclosure component typically consists of a button that controls the visibility of an\n     * associated content area.\n     *\n     * Note: requires method-ui 'animations' plugin\n     *\n     * See https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/ for more information about disclosures\n     *\n     * Usage:\n     * - x-disclosure - Applied to the root element of a disclosure component. It can optionally accept an expression that\n     *   2-way binds to the internal isExpanded state of the disclosure e.g. `x-disclosure=\"isExpanded\"`. If no expression is provided, the disclosure is closed by default\n     *   If your disclosure is _not_ animated, use the .noanimate modifier to prevent the disclosure from waiting for animations to complete before transitioning to expanded and vice versa.\n     * - x-disclosure:button - Marks an element as the button that toggles the visibility of the\n     *   disclosure content. This element is typically a button or a similar interactive element.\n     * - `data-skip-animation-wait` - Add this attribute to elements when you don't want to wait for their animations to complete before state transitions.\n     *\n     * @example\n     *\n     * <div x-disclosure>\n     *   <button x-disclosure:button>Open SESAME</button>\n     *   <div x-disclosure:panel>\n     *     <p>Hello world</p>\n     *   </div>\n     * </div>\n     *\n     * @example Initially expanded\n     *\n     * <div x-disclosure=\"true\">\n     *   <button x-disclosure:button>Open SESAME</button>\n     *   <div x-disclosure:panel>\n     *     <p>Hello world</p>\n     *   </div>\n     * </div>\n     *\n     * or\n     *\n     * <div x-disclosure=\"{ isExpanded: true }\">\n     *   <button x-disclosure:button>Open SESAME</button>\n     *   <div x-disclosure:panel>\n     *     <p>Hello world</p>\n     *   </div>\n     * </div>\n     *\n     * @example Bound to external state\n     *\n     * <div x-data=\"{isExpandedExternal: true}\">\n     *   <div x-show=\"isExpandedExternal\">Im open!</div>\n     *\n     *   <div x-disclosure=\"{\n     *     get isExpanded() {\n     *       return this.isExpandedExternal\n     *     },\n     *     set isExpanded(value) {\n     *       this.isExpandedExternal = value\n     *     }\n     *   }\">\n     *     <button x-disclosure:button>Open SESAME</button>\n     *     <div x-disclosure:panel>\n     *       <p>Hello world</p>\n     *     </div>\n     *   </div>\n     * </div>\n     *\n     * The '$disclosure' magic property provides an API for managing the state of the disclosure\n     * component, including checking its open/closed status and programmatically toggling its state.\n     *\n     * ## Disclosure Groups\n     *\n     * Disclosure groups are a collection of disclosures that are managed as a single accordion.\n     * This is useful for creating multi-step forms or other UI elements that require the disclosure\n     * of multiple sections.\n     *\n     * @example\n     *\n     * <div x-disclosure-group>\n     *   <div x-disclosure\n     *     <button x-disclosure:button>Open SESAME 1</button>\n     *     <div x-disclosure:panel>\n     *       <p>Hello world 1</p>\n     *     </div>\n     *   </div>\n     *  <div x-disclosure>\n     *     <button x-disclosure:button>Open SESAME 2</button>\n     *     <div x-disclosure:panel>\n     *       <p>Hello world 2</p>\n     *     </div>\n     *   </div>\n     * </div>\n     *\n     * The '$disclosureGroup' magic property provides an API for managing the state of the disclosure group,\n     * including checking the expanded index and programmatically toggling the state of the disclosures.\n     *\n     */ function disclosure(Alpine) {\n        Alpine.directive('disclosure', ($el, data, utilities)=>{\n            if (data.value === 'panel') {\n                handlePanel($el, Alpine);\n            } else if (data.value === 'button') {\n                handleButton($el, Alpine);\n            } else if (data.value === null) {\n                handleRoot$4($el, Alpine, data, utilities);\n            } else {\n                throw new Error(`Unknown directive: x-disclosure:${data.value}`);\n            }\n        }).before('bind');\n        Alpine.directive('disclosure-group', ($el, data, utilities)=>{\n            if (data.value === null) {\n                handleDisclosureGroup($el, Alpine, data, utilities);\n            } else {\n                throw new Error(`Unknown directive: x-disclosure-group:${data.value}`);\n            }\n        }).before('bind');\n        Alpine.magic('disclosure', handleDisclosureMagic(Alpine));\n        Alpine.magic('disclosureGroup', handleDisclosureGroupMagic(Alpine));\n    }function handleDisclosureMagic(Alpine) {\n        return function($el) {\n            const $data = Alpine.$data($el);\n            return {\n                get isExpanded () {\n                    var _a;\n                    return (_a = $data.__disclosure_state) === null || _a === void 0 ? void 0 : _a.isExpanded;\n                },\n                set isExpanded (value){\n                    if (!$data.__disclosure_state) return;\n                    $data.__disclosure_state.isExpanded = value;\n                },\n                get isCollapsed () {\n                    var _a1;\n                    return (_a1 = $data.__disclosure_state) === null || _a1 === void 0 ? void 0 : _a1.isCollapsed;\n                },\n                get isInGroup () {\n                    return $data.__disclosure_isInGroup;\n                },\n                get groupIndex () {\n                    return $data.__disclosure_groupIndex;\n                },\n                toggle () {\n                    var _a;\n                    (_a = $data.__disclosure_state) === null || _a === void 0 ? void 0 : _a.toggle();\n                },\n                expand () {\n                    var _a;\n                    (_a = $data.__disclosure_state) === null || _a === void 0 ? void 0 : _a.expand();\n                },\n                collapse () {\n                    var _a;\n                    (_a = $data.__disclosure_state) === null || _a === void 0 ? void 0 : _a.collapse();\n                },\n                waitForAnimations () {\n                    return $data.__disclosure_waitForAnimations();\n                }\n            };\n        };\n    }\n    function handleDisclosureGroupMagic(Alpine) {\n        return function($el) {\n            const $data = Alpine.$data($el);\n            return $data.__disclosure_group_state || {};\n        };\n    }\n    function handlePanel($el, Alpine) {\n        if (!$el._x_doShow) {\n            $el._x_doShow = ()=>{};\n        }\n        if (!$el._x_doHide) {\n            $el._x_doHide = ()=>{};\n        }\n        Alpine.bind($el, {\n            ':id': `$el.id || $id('disclosure-panel')`,\n            role: 'group',\n            'x-show': '$disclosure.isExpanded',\n            'x-init' () {\n                this.__disclosure_contentEl = this.$el;\n                // TODO investigate hooking into Alpine's el._x_doShow / el._x_doHide hooks instead of this\n                const addHidden = ()=>{\n                    Alpine.mutateDom(()=>{\n                        // TODO add support for `hidden=\"until-found\"`\n                        this.$el.setAttribute('hidden', '');\n                        this.$el.style.setProperty('display', 'none');\n                    });\n                };\n                const removeHidden = ()=>{\n                    Alpine.mutateDom(()=>{\n                        this.$el.removeAttribute('hidden');\n                        this.$el.style.removeProperty('display');\n                    });\n                };\n                // Set initial hidden state\n                if (this.__disclosure_state.isExpanded) {\n                    removeHidden();\n                } else {\n                    addHidden();\n                }\n                this.$watch('__disclosure_state.isExpanded', async (isExpanded)=>{\n                    if (isExpanded) {\n                        removeHidden();\n                    } else {\n                        if (this.__disclosure_animated) {\n                            await this.__disclosure_waitForAnimations();\n                            // If the disclosure re-expanded before the animation completed, don't hide it\n                            if (this.__disclosure_state.isExpanded) return;\n                            addHidden();\n                        } else {\n                            addHidden();\n                        }\n                    }\n                });\n            },\n            ':aria-labelledby': '__disclosure_buttonEl?.id',\n            'data-morph-children-only': ''\n        });\n    }\n    function handleButton($el, Alpine) {\n        Alpine.bind($el, {\n            role: 'button',\n            ':id': `$el.id || $id('disclosure-button')`,\n            'x-init': '__disclosure_buttonEl = $el',\n            '@click.stop.prevent': '$disclosure.toggle()',\n            ':aria-controls': '__disclosure_contentEl?.id',\n            ':aria-expanded': '$disclosure.isExpanded'\n        });\n    }\n    function handleDisclosureGroup($el, Alpine, { expression , modifiers  }, { evaluate  }) {\n        let options = evaluate(expression === '' ? '{}' : expression);\n        if (options !== undefined && options !== null && !isPlainObject(options)) {\n            throw new Error(`options must be an object, but got ${options}`);\n        }\n        let state;\n        if (options.multiple || modifiers.includes('multiple')) {\n            state = buildMultiSelectDisclosureGroupState(options);\n        } else {\n            state = buildSingleSelectDisclosureGroupState(options);\n        }\n        Alpine.bind($el, {\n            ['x-data'] () {\n                return {\n                    __disclosure_group_state: state\n                };\n            }\n        });\n    }\n    function handleRoot$4($el, Alpine, { modifiers , expression  }, { evaluate  }) {\n        const $data = Alpine.$data($el);\n        const isInDisclosureGroup = !!$data.__disclosure_group_state;\n        // Track the depth of the disclosure group so that we can exclude the children of a grouped disclosure from also having their state controlled by the group state\n        let groupDepth = $data.__disclosure_groupDepth;\n        if (isInDisclosureGroup) {\n            if (groupDepth === undefined || groupDepth === null) {\n                groupDepth = 0;\n            }\n            groupDepth++;\n        }\n        const isDirectChildOfDisclosureGroup = isInDisclosureGroup && groupDepth === 1;\n        const animated = !modifiers.includes('noanimate');\n        const expand = modifiers.includes('expand');\n        let options = {};\n        // Evaluate the x-disclosure expression to get the initial expanded state of the disclosure (e.g. true or false)\n        if (expression) {\n            let evalutatedExpression = evaluate(expression === '' ? '{}' : expression);\n            if (evalutatedExpression === true || evalutatedExpression === false) {\n                options.isExpanded = evalutatedExpression;\n            } else if (isPlainObject(evalutatedExpression)) {\n                options = evalutatedExpression;\n            }\n        } else {\n            // If there's no expression, but the .expand modifier is used, the disclosure is expanded by default\n            if (expand) {\n                options.isExpanded = true;\n            }\n        }\n        let state = buildDisclosureState(options);\n        // If a x-disclosure is the child of a x-disclosure-group its 'isExpanded' state is derived from the group's expanded state instead of having its own state\n        // This allows us to close disclosure when another one in the group is opened\n        // For clarity: the groupDepth check here ensures that e.g. if you have a popup inside of a tab\n        // that opening or closing the popup doesn't affect the state of the tabs (i.e the disclosure group)\n        if (isDirectChildOfDisclosureGroup) {\n            state = buildDisclosureState({\n                get isExpanded () {\n                    var _a, _b;\n                    const index = (_b = (_a = $data.__disclosure_group_state).indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, $el);\n                    const isExpanded = $data.__disclosure_group_state.isExpanded(index);\n                    return isExpanded;\n                },\n                set isExpanded (value){\n                    var _a2, _b1;\n                    const index = (_b1 = (_a2 = $data.__disclosure_group_state).indexOf) === null || _b1 === void 0 ? void 0 : _b1.call(_a2, $el);\n                    if (value) {\n                        $data.__disclosure_group_state.expand(index);\n                    } else {\n                        $data.__disclosure_group_state.collapse(index);\n                    }\n                }\n            });\n        }\n        Alpine.bind($el, {\n            ':id': `$el.id || $id('disclosure')`,\n            ['x-data'] () {\n                return {\n                    __disclosure_buttonEl: null,\n                    __disclosure_contentEl: null,\n                    __disclosure_state: state,\n                    __disclosure_animated: animated,\n                    __disclosure_groupDepth: groupDepth,\n                    init () {\n                        this.$watch('__disclosure_state.isExpanded', (isExpanded)=>{\n                            this.$dispatch(isExpanded ? 'expand' : 'collapse');\n                        });\n                        if (isDirectChildOfDisclosureGroup) {\n                            // Register this element with the disclosure group so we can keep track of it's index\n                            this.$data.__disclosure_group_state.register(this.$el);\n                            if (options.isExpanded) {\n                                this.__disclosure_state.expand();\n                            }\n                        }\n                    },\n                    destroy () {\n                        if (isDirectChildOfDisclosureGroup) {\n                            this.$data.__disclosure_group_state.unregister(this.$el);\n                        }\n                    },\n                    async __disclosure_waitForAnimations () {\n                        return await this.$waitForAnimations({\n                            subtree: true,\n                            target: this.__disclosure_contentEl\n                        });\n                    },\n                    get __disclosure_isInGroup () {\n                        return isInDisclosureGroup;\n                    },\n                    get __disclosure_groupIndex () {\n                        var _a, _b;\n                        if (!this.__disclosure_isInGroup) return null;\n                        return (_b = (_a = $data.__disclosure_group_state).indexOf) === null || _b === void 0 ? void 0 : _b.call(_a, this.$el);\n                    }\n                };\n            },\n            ['x-id']: \"['disclosure', 'disclosure-panel', 'disclosure-button']\"\n        });\n    }\n    function buildDisclosureState(options) {\n        var _a;\n        let state = {\n            isExpanded: (_a = options === null || options === void 0 ? void 0 : options.isExpanded) !== null && _a !== void 0 ? _a : false,\n            expand () {\n                this.isExpanded = true;\n            },\n            collapse () {\n                this.isExpanded = false;\n            },\n            toggle () {\n                this.isExpanded = !this.isExpanded;\n            },\n            get isCollapsed () {\n                return !this.isExpanded;\n            }\n        };\n        if ((options === null || options === void 0 ? void 0 : options.isExpanded) !== undefined) {\n            const isExpandedDescriptor = Object.getOwnPropertyDescriptor(options, 'isExpanded');\n            Object.defineProperty(state, 'isExpanded', isExpandedDescriptor);\n        }\n        return state;\n    }\n    function buildSingleSelectDisclosureGroupState(options) {\n        var _a;\n        let state = {\n            expandedIndex: (_a = options === null || options === void 0 ? void 0 : options.initiallyExpandedIndex) !== null && _a !== void 0 ? _a : null,\n            items: new Set(),\n            isExpanded (index) {\n                return this.expandedIndex === index;\n            },\n            register (el) {\n                this.items.add(el);\n            },\n            unregister (el) {\n                this.items.delete(el);\n            },\n            indexOf (el) {\n                return Array.from(this.items).indexOf(el);\n            },\n            toggle (index) {\n                this.expandedIndex === index ? this.collapse(index) : this.expand(index);\n            },\n            expand (index) {\n                this.expandedIndex = index;\n            },\n            collapse (index) {\n                if (this.expandedIndex === index) {\n                    this.expandedIndex = null;\n                }\n            }\n        };\n        if (options && 'expandedIndex' in options) {\n            copyProperty(options, state, 'expandedIndex');\n        }\n        return state;\n    }\n    function buildMultiSelectDisclosureGroupState(options) {\n        var _a;\n        let state = {\n            expandedIndices: (_a = options === null || options === void 0 ? void 0 : options.initiallyExpandedIndices) !== null && _a !== void 0 ? _a : new Set(),\n            items: new Set(),\n            isExpanded (index) {\n                return this.expandedIndices.has(index);\n            },\n            register (el) {\n                this.items.add(el);\n            },\n            unregister (el) {\n                this.items.delete(el);\n            },\n            indexOf (el) {\n                return Array.from(this.items).indexOf(el);\n            },\n            toggle (index) {\n                this.expandedIndices.has(index) ? this.collapse(index) : this.expand(index);\n            },\n            expand (index) {\n                const expanded = this.expandedIndices;\n                expanded.add(index);\n                // Copy to a new set so that reactivity works\n                this.expandedIndices = new Set(Array.from(expanded));\n            },\n            collapse (index) {\n                const expanded = this.expandedIndices;\n                expanded.delete(index);\n                // Copy to a new set so that reactivity works\n                this.expandedIndices = new Set(Array.from(expanded));\n            }\n        };\n        if (options && 'expandedIndices' in options) {\n            copyProperty(options, state, 'expandedIndices');\n        }\n        return state;\n    }\n\n    function section(Alpine) {\n        Alpine.store('sectionData', {});\n        /**\n         * Get and set data for the closest ancestor section in a global Alpien store keyed by section id\n         * This is most useful for the theme editor when you want to maintain state between section content updates\n         */ Alpine.magic('sectionData', ($el)=>{\n            var _a;\n            const sectionId = (_a = closestSectionEl($el)) === null || _a === void 0 ? void 0 : _a.id;\n            return new Proxy({}, {\n                get (_target, prop) {\n                    if (!sectionId) return null;\n                    if (!(sectionId in Alpine.store('sectionData'))) return null;\n                    return Alpine.store('sectionData')[sectionId][prop];\n                },\n                set (_target, prop, value) {\n                    if (!sectionId) return false;\n                    if (!(sectionId in Alpine.store('sectionData'))) {\n                        Alpine.store('sectionData')[sectionId] = {};\n                    }\n                    Alpine.store('sectionData')[sectionId][prop] = value;\n                    return true;\n                }\n            });\n        });\n        Alpine.magic('sectionEl', ($el)=>{\n            return closestSectionEl($el);\n        });\n        Alpine.magic('sectionId', ($el)=>{\n            var _a;\n            return (_a = closestSectionEl($el)) === null || _a === void 0 ? void 0 : _a.id;\n        });\n    }\n\n    const DATA_EXCLUDE_SUBTREE_ATTRIBUTE = 'data-skip-animation-wait';\n    const DEFAULT_EXCLUDE_SUBTREE_FILTER = (element)=>element.hasAttribute(DATA_EXCLUDE_SUBTREE_ATTRIBUTE)\n    ;\n    const ANIMATION_START_TIMEOUT = 50; // ms\n    const ANIMATION_COMPLETION_TIMEOUT = 2000; // ms\n    function animationUtils(Alpine) {\n        Alpine.magic('waitForAnimations', function($el) {\n            return async function(options) {\n                var _a;\n                const parentEl = (_a = options === null || options === void 0 ? void 0 : options.target) !== null && _a !== void 0 ? _a : $el;\n                const animations = await getPendingAnimations(parentEl, options);\n                return getCompletedAnimations(parentEl, animations, options === null || options === void 0 ? void 0 : options.subtree, options === null || options === void 0 ? void 0 : options.excludeSubtree);\n            };\n        });\n    }/**\n     * Returns a promise that resolves when all animations on the element have started. Waits for a short period of time, and if no animations have started it will reject with an error\n     *\n     * @param $el Element to check for animations\n     * @returns\n     */ async function getPendingAnimations($el, options = {}) {\n        return new Promise((resolve, reject)=>{\n            let startTimeout = ANIMATION_START_TIMEOUT;\n            if ((options === null || options === void 0 ? void 0 : options.startTimeout) !== undefined) {\n                if (options.startTimeout === false) {\n                    startTimeout = 0;\n                } else {\n                    startTimeout = options.startTimeout;\n                }\n            }\n            // Wait for a short period of time, and if no animations have started output an error\n            setTimeout(()=>{\n                let animations = $el.getAnimations(options);\n                if (options.excludeSubtree) {\n                    animations = filterSubtreeAnimations($el, animations, options.excludeSubtree);\n                }\n                if (animations.length === 0) {\n                    warnForNoAnimationsStarted($el, options === null || options === void 0 ? void 0 : options.subtree);\n                    resolve([]);\n                } else {\n                    resolve(animations);\n                }\n            }, startTimeout);\n        });\n    }\n    /**\n     * Returns a promise that resolves when all animations on the element have finished, or rejects if any animations don't finish within a timeout\n     * @param $el Element animations are occuring on\n     * @param animations Animations to wait for\n     * @param subtree Whether to include animations in subtree\n     * @param excludeSubtree Optional filter to exclude certain animations in subtree\n     */ async function getCompletedAnimations($el, animations, subtree = false, excludeSubtree = DEFAULT_EXCLUDE_SUBTREE_FILTER) {\n        let timedOutAnimations = [];\n        let filteredAnimations = filterSubtreeAnimations($el, animations, excludeSubtree);\n        const animationPromises = filteredAnimations.map((animation)=>animation.finished\n        );\n        await promiseAllSettledWithTimeout(animationPromises, ANIMATION_COMPLETION_TIMEOUT).then((results)=>{\n            results.forEach((result, i)=>{\n                if (result.status === 'rejected' && result.reason === 'timeout') {\n                    timedOutAnimations = [\n                        ...timedOutAnimations,\n                        filteredAnimations[i]\n                    ];\n                }\n            });\n        });\n        if (timedOutAnimations.length > 0) {\n            warnForNoAnimationsFinished($el, filteredAnimations, timedOutAnimations, subtree);\n            return [];\n        }\n        return filteredAnimations;\n    }\n    function warnForNoAnimationsStarted($el, subtree = false) {\n        if (process.env.NODE_ENV !== 'development') return;\n        if (subtree) {\n            console.warn(`Expected animations or transitions to start on element or its descendants, but none did after waiting ${ANIMATION_START_TIMEOUT}ms`, $el);\n        } else {\n            console.warn(`Expected animations or transitions to start on element, but none did after waiting ${ANIMATION_START_TIMEOUT}ms`, $el);\n        }\n    }\n    function warnForNoAnimationsFinished($el, started, unfinished, subtree = false) {\n        if (process.env.NODE_ENV !== 'development') return;\n        if (subtree) {\n            console.warn(`Expected all animations or transitions on element and its descendants to finish within ${ANIMATION_COMPLETION_TIMEOUT}ms, but ${unfinished.length} of ${started.length} did not`, $el, unfinished);\n        } else {\n            console.warn(`Expected all animations or transitions on element to finish within ${ANIMATION_COMPLETION_TIMEOUT}ms, but ${unfinished.length} of ${started.length} did not`, $el, unfinished);\n        }\n    }\n    function promiseAllSettledWithTimeout(promises, timeoutMs) {\n        return Promise.allSettled(promises.map((promise)=>withTimeout(promise, timeoutMs)\n        ));\n    }\n    async function withTimeout(promise, timeoutMs) {\n        let timeoutHandle;\n        const timeoutPromise = new Promise((_resolve, reject)=>{\n            timeoutHandle = setTimeout(()=>{\n                reject('timeout');\n            }, timeoutMs);\n        });\n        return Promise.race([\n            promise,\n            timeoutPromise\n        ]).then((result)=>{\n            clearTimeout(timeoutHandle);\n            return result;\n        }).catch((error)=>{\n            clearTimeout(timeoutHandle);\n            throw error;\n        });\n    }\n    function isKeyframeEffect(effect) {\n        return effect instanceof KeyframeEffect;\n    }\n    /**\n     * Filters out any animations who's target element matches the filter or any of its ancestors\n     * @param animations\n     * @param filter\n     */ function filterSubtreeAnimations(rootEl, animations, filter) {\n        // Traverse up the tree from the animated element to the root element, and check if any of the ancestors are excluded by the filter\n        const hasExcludedAncestor = (animatedElement)=>{\n            let parent = animatedElement.parentElement;\n            if (animatedElement === rootEl) {\n                return false;\n            }\n            if (parent === rootEl) {\n                return false;\n            }\n            while(parent){\n                if (filter(parent)) return true;\n                parent = parent.parentElement;\n            }\n            return false;\n        };\n        // Only return animations that are not excluded by the filter\n        return animations.filter((animation)=>{\n            if (isKeyframeEffect(animation.effect)) {\n                const target = animation.effect.target;\n                if (!target) {\n                    return true;\n                }\n                if (filter(target)) {\n                    return false;\n                }\n                return !hasExcludedAncestor(target);\n            } else {\n                return true;\n            }\n        });\n    }\n\n    /**\n     * Enable the creation and management of asynchronous forms which provide an interface for handling form submissions\n     * with various states such as idle, pending, success, and error as well as serializing form data\n     *\n     * Notes:\n     * - Requires method-ui 'fetch' plugin\n     *\n     * Usage:\n     * - x-async-form - Applied to the form element, initializing the async form functionality and adding a data context for child directives\n     * - x-async-form:context - Defines the context for the async form, allowing sharing of form state with other elements.\n     * - x-async-form:form - Binds to the form element to handle form submissions.\n     *\n     * The '$asyncForm' magic property provides a comprehensive API for managing the form state, including form data, response, parsed body, and error messages.\n     *\n     * Usage with form elements:\n     * x-async-form may be used in conjunction with HTML form elements to handle asynchronous form submissions.\n     *\n     * e.g.\n     *\n     * <form x-async-form='({ action, method, formData  }) => yourFunction(action)' action=\"/some/url\">\n     *   <div x-text=\"`state: ${$asyncForm.state}`\"></div>\n     *   <div x-text=\"`error: ${$asyncForm.errorMessage}`\"></div>\n     *   <input type=\"text\" name=\"testField1\" value=\"\">\n     *   <input type=\"checkbox\" name=\"testField2\" value=\"true\">\n     *   <button type=\"submit\">Submit</button>\n     * </form>\n     *\n     * This will initialize the async form functionality, handle form submissions, and update the form state accordingly.\n     *\n     * Note: Consider using 'x-fetch-form' for a more streamlined experience. It wraps this plugin and automatically calls fetch, saving you a step.\n     *\n     */ function asyncForm(Alpine) {\n        Alpine.directive('async-form', ($el, data, utilities)=>{\n            if (data.value == 'form') {\n                handleForm$1($el, Alpine, data, utilities);\n            } else if (data.value == 'context') {\n                handleContext($el, Alpine, data, utilities);\n            } else {\n                if (!data.expression) {\n                    throw new Error('x-async-form directive requires a an async callback function');\n                }\n                if (!isFormElement($el)) {\n                    throw new Error('x-async-form directive can only be used on form elements');\n                }\n                Alpine.bind($el, {\n                    [`x-async-form:context.${data.modifiers.join('.')}`]: data.expression,\n                    [`x-async-form:form.${data.modifiers.join('.')}`]: ''\n                });\n            }\n        }).before('bind');\n        Alpine.magic('asyncForm', handleAsyncFormMagic(Alpine));\n    }function handleAsyncFormMagic(Alpine) {\n        return function($el) {\n            const $data = Alpine.$data($el);\n            return {\n                get formData () {\n                    return $data.__asyncForm_formData;\n                },\n                get state () {\n                    return $data.__asyncForm_state;\n                },\n                get response () {\n                    return $data.__asyncForm_response;\n                },\n                get parsedBody () {\n                    return $data.__asyncForm_parsedBody;\n                },\n                get reset () {\n                    return $data.__asyncForm_reset();\n                },\n                get errorMessage () {\n                    return $data.__asyncForm_errorMessage;\n                },\n                get errorDescription () {\n                    return $data.__asyncForm_errorDescription;\n                }\n            };\n        };\n    }\n    function handleContext($el, Alpine, { expression , modifiers  }, { evaluateLater  }) {\n        if (!expression) {\n            throw new Error('x-async-form:context directive requires a fetch promise or callback function that returns a fetch promise');\n        }\n        let getCallbackFn = evaluateLater(expression);\n        const errorTimeout = getErrorTimeoutModifier(modifiers) || false;\n        const successTimeout = getSuccessTimeoutModifier(modifiers) || 1000;\n        Alpine.bind($el, {\n            'x-data' () {\n                return {\n                    __asyncForm_formEl: null,\n                    __asyncForm_stateMachine: new StateMachine('idle', [\n                        'idle',\n                        'pending',\n                        'success',\n                        'error'\n                    ], {\n                        idle: [\n                            'pending'\n                        ],\n                        pending: [\n                            'success',\n                            'error',\n                            'pending'\n                        ],\n                        success: [\n                            'idle',\n                            'pending'\n                        ],\n                        error: [\n                            'idle',\n                            'pending'\n                        ]\n                    }),\n                    __asyncForm_callback: null,\n                    __asyncForm_formData: null,\n                    __asyncForm_response: null,\n                    __asyncForm_parsedBody: null,\n                    __asyncForm_errorMessage: null,\n                    __asyncForm_errorDescription: null,\n                    __asyncForm_successTimeout: successTimeout || false,\n                    __asyncForm_errorTimeout: errorTimeout || false,\n                    init () {\n                        this.$watch('__asyncForm_state', (state, prevState)=>{\n                            if ((prevState == 'success' || prevState == 'error') && state == 'idle') {\n                                // Wipe form data after a successful or failed submission\n                                this.__asyncForm_formData = null;\n                            }\n                            if (prevState == 'success' && state == 'idle') {\n                                // Clear error message after a successful submission\n                                this.__asyncForm_errorMessage = null;\n                                this.__asyncForm_errorDescription = null;\n                            }\n                        });\n                        Alpine.effect(()=>{\n                            // Create a function which wraps the passed in callback function / expression and allows us to call it when the user clicks the link\n                            this.__asyncForm_callback = async (info)=>{\n                                let resultPromise;\n                                Alpine.dontAutoEvaluateFunctions(()=>{\n                                    getCallbackFn(async (result)=>{\n                                        if (typeof result === 'function') {\n                                            resultPromise = result.bind(this)(info);\n                                        } else {\n                                            throw new Error(`x-async-link expects an async function as its expression`);\n                                        }\n                                    });\n                                });\n                                return resultPromise;\n                            };\n                        });\n                    },\n                    get __asyncForm_state () {\n                        return this.__asyncForm_stateMachine.state;\n                    },\n                    set __asyncForm_state (state){\n                        this.__asyncForm_stateMachine.state = state;\n                    },\n                    get __asyncForm_form () {\n                        var _a;\n                        let form = null;\n                        if (this.$el.tagName === 'FORM') {\n                            form = this.$el;\n                        }\n                        if (this.__asyncForm_formEl && ((_a = this.__asyncForm_formEl) === null || _a === void 0 ? void 0 : _a.tagName) === 'FORM') {\n                            form = this.__asyncForm_formEl;\n                        }\n                        return form;\n                    },\n                    async __asyncForm_submit (info) {\n                        this.__asyncForm_state = 'pending';\n                        this.$dispatch('async-form:pending');\n                        try {\n                            // Run provided callback function\n                            const response = await this.__asyncForm_callback.bind(this)(info);\n                            return await this.__asyncForm_handleResponse(response);\n                        } catch (e) {\n                            if (e.name == 'AbortError') {\n                                this.__asyncForm_reset();\n                                return false;\n                            } else {\n                                this.__asyncForm_handleError(String((e === null || e === void 0 ? void 0 : e.message) || e));\n                                throw e;\n                            }\n                        }\n                    },\n                    async __asyncForm_handleResponse (response) {\n                        this.__asyncForm_response = response;\n                        this.__asyncForm_parsedBody = await parseResponseBody(response);\n                        if (!response || (response === null || response === void 0 ? void 0 : response.status) == undefined) {\n                            // Handle the response object not being a fetch request\n                            this.__asyncForm_handleSuccess();\n                            return response;\n                        } else if (response.status === 200) {\n                            this.__asyncForm_handleSuccess();\n                            return response;\n                        } else {\n                            let message = getErrorMessage(response, this.__asyncForm_parsedBody);\n                            let description = getErrorDescription(response, this.__asyncForm_parsedBody);\n                            this.__asyncForm_handleError(message, description);\n                            return response;\n                        }\n                    },\n                    async __asyncForm_handleSuccess () {\n                        this.$dispatch('async-form:success', this.__asyncForm_formData);\n                        if (successTimeout) {\n                            // Transition to success state then back to initial state after a timeout\n                            this.__asyncForm_stateMachine.setTransientState('success', 'idle', successTimeout);\n                        } else {\n                            this.__asyncForm_state = 'success';\n                        }\n                    },\n                    async __asyncForm_handleError (message, description) {\n                        this.$dispatch(`async-form:error`, {\n                            message: this.__asyncForm_errorMessage,\n                            description: this.__asyncForm_errorDescription\n                        });\n                        if (errorTimeout) {\n                            // Transition to error state then back to initial state after a timeout\n                            this.__asyncForm_stateMachine.setTransientState('error', 'idle', errorTimeout);\n                        } else {\n                            this.__asyncForm_state = 'error';\n                        }\n                        this.__asyncForm_errorMessage = message;\n                        this.__asyncForm_errorDescription = description;\n                    },\n                    __asyncForm_reset () {\n                        this.__asyncForm_state == 'idle';\n                        this.__asyncForm_response == null;\n                        this.__asyncForm_parsedBody == null;\n                        this.__asyncForm_errorMessage == null;\n                        this.__asyncForm_errorDescription == null;\n                        this.__asyncForm_formData == null;\n                    }\n                };\n            }\n        });\n    }\n    function handleForm$1($el, Alpine, { expression  }, {}) {\n        if (!isFormElement($el)) {\n            throw new Error('x-async-form:form directive can only be used on form elements');\n        }\n        Alpine.bind($el, {\n            'x-data' () {\n                return {\n                    __asyncForm_form_onSubmit (e) {\n                        var _a;\n                        // Prevent default form submission behaviour so we dont get a full page reload\n                        e.preventDefault();\n                        let { action: formAction , method , formData  } = getFormSubmissionInfo($el, e.submitter);\n                        let action = ((_a = this.__asyncForm_formEl) === null || _a === void 0 ? void 0 : _a.dataset.asyncAction) || formAction;\n                        this.__asyncForm_formData = formData || null;\n                        this.__asyncForm_submit({\n                            action,\n                            method,\n                            formData\n                        });\n                    },\n                    init () {\n                        if (this.__asyncForm_submit == undefined) {\n                            throw new Error('x-async-form:form directive must be used within an x-async-form:context directive');\n                        }\n                    }\n                };\n            },\n            'x-init': '__asyncForm_formEl = $el',\n            '@submit': '__asyncForm_form_onSubmit'\n        });\n    }\n    function getErrorTimeoutModifier(modifiers) {\n        let errorTimeout = false;\n        if (modifiers.includes('wait-error')) {\n            const rawValue = modifiers[modifiers.indexOf('wait-error') + 1];\n            let match = rawValue.match(/([0-9]+)ms/);\n            if (match) errorTimeout = Number(match[1]);\n        }\n        return errorTimeout;\n    }\n    function getSuccessTimeoutModifier(modifiers) {\n        let successTimeout = false;\n        if (modifiers.includes('wait-success')) {\n            const rawValue = modifiers[modifiers.indexOf('wait-success') + 1];\n            let match = rawValue.match(/([0-9]+)ms/);\n            if (match) successTimeout = Number(match[1]);\n        }\n        return successTimeout;\n    }\n    async function parseResponseBody(response) {\n        var _a;\n        if (!response) return null;\n        // Bail out if the response is not similar to a standard fetch Response object\n        if (!isPlainObject(response) || !('json' in response)) {\n            return null;\n        }\n        // Note: we clone the response here in case the body has already been read\n        if ((_a = response.headers.get('Content-Type')) === null || _a === void 0 ? void 0 : _a.includes('text/html')) {\n            return await response.clone().text();\n        } else {\n            // Try to parse the body as json, if it fails, return the original response\n            try {\n                return await response.clone().json();\n            } catch (e) {\n                return await response.clone().text();\n            }\n        }\n    }\n    function getErrorMessage(response, parsedBody) {\n        if (isPlainObject(parsedBody) && parsedBody.message) {\n            return parsedBody.message;\n        }\n        return response.statusText;\n    }\n    function getErrorDescription(response, parsedBody) {\n        if (isPlainObject(parsedBody)) {\n            if (parsedBody.description) {\n                return parsedBody.description;\n            }\n            if (parsedBody.error) {\n                return parsedBody.error;\n            }\n        }\n        return null;\n    }\n\n    /**\n     * A plugin that makes it easy to progressively enhance links so that they can be\n     * call endpoints via the fetch API and display pending states\n     * while the request is in progress\n     *\n     * The x-async-link expects a either a promise or a function that returns a promise.\n     *\n     * @example\n     *\n     * <a\n     *   href=\"/some-page\"\n     *   x-async-link=\"fetchSomeData\"\n     *   :class=\"{ 'opacity-50': $asyncLink.state == 'pending' }\"\n     * >Click Me</a>\n     *\n     * @example\n     *\n     * <div x-async-link:context=\"fetch(`${$url}.js`)\">\n     *   <div x-show=\"$asyncLink.state == 'pending'\">Loading!</div>\n     *   <a href=\"/some-page\" x-async-link:link >Click Me</a>\n     * </div>\n     *\n     * TODO:\n     * - Document events\n     */ function asyncLink(Alpine) {\n        Alpine.directive('async-link', ($el, data, { evaluateLater  })=>{\n            if (data.value == 'link') {\n                if (!isAnchorElement($el)) {\n                    throw new Error('x-async-link:link directive can only be used on anchor elements');\n                }\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            __asyncLink_onClick (e) {\n                                if (!shouldProcessLinkClick(e, $el.target)) return;\n                                // If some other function has already prevented the default action, do nothing\n                                if (e.defaultPrevented) return;\n                                // If the link is not an anchor tag, do nothing\n                                if (!this.$el.href) return;\n                                e.preventDefault();\n                                this.__asyncLink_load(this.$el.href);\n                            },\n                            init () {\n                                if (this.__asyncLink_state == undefined) {\n                                    throw new Error('x-async-link:link directive must be used within an x-async-link:context directive');\n                                }\n                            }\n                        };\n                    },\n                    '@click': '__asyncLink_onClick'\n                });\n            } else if (data.value == 'context') {\n                if (!data.expression) {\n                    throw new Error('x-async-link:context directive requires a an async callback function');\n                }\n                let getCallbackFn = evaluateLater(data.expression);\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            __asyncLink_pendingHref: null,\n                            __asyncLink_stateMachine: new StateMachine('idle', [\n                                'idle',\n                                'pending'\n                            ], {\n                                idle: [\n                                    'pending'\n                                ],\n                                pending: [\n                                    'pending',\n                                    'idle'\n                                ]\n                            }),\n                            __asyncLink_callback: null,\n                            __asyncLink_errorMessage: null,\n                            __asyncLink_errorDescription: null,\n                            init () {\n                                this.$watch('__asyncLink_state', (state)=>{\n                                    this.$dispatch(`async-link:${state}`);\n                                });\n                                Alpine.effect(()=>{\n                                    // Create a function which wraps the passed in callback function / expression and allows us to call it when the user clicks the link\n                                    this.__asyncLink_callback = async (href)=>{\n                                        let resultPromise;\n                                        Alpine.dontAutoEvaluateFunctions(()=>{\n                                            getCallbackFn(async (result)=>{\n                                                if (typeof result === 'function') {\n                                                    resultPromise = result.bind(this)(href);\n                                                } else {\n                                                    throw new Error(`x-async-link expects an async function as its expression`);\n                                                }\n                                            }, {\n                                                params: [\n                                                    href\n                                                ],\n                                                scope: {\n                                                    $href: href\n                                                }\n                                            });\n                                        });\n                                        return resultPromise;\n                                    };\n                                });\n                            },\n                            get __asyncLink_state () {\n                                return this.__asyncLink_stateMachine.state;\n                            },\n                            get __asyncLink_prevState () {\n                                return this.__asyncLink_stateMachine.prevState;\n                            },\n                            set __asyncLink_state (state){\n                                this.__asyncLink_stateMachine.state = state;\n                            },\n                            async __asyncLink_load (href) {\n                                this.__asyncLink_state = 'pending';\n                                this.__asyncLink_pendingHref = href;\n                                try {\n                                    // Run provided callback function\n                                    const response = await this.__asyncLink_callback.bind(this)(href);\n                                    if (!response || (response === null || response === void 0 ? void 0 : response.status) == undefined) {\n                                        // Handle the response object not being a fetch request\n                                        this.__asyncLink_handleSuccess();\n                                        return response;\n                                    } else if (response.status === 200) {\n                                        this.__asyncLink_handleSuccess();\n                                        return response;\n                                    } else if (response.status === 422) {\n                                        const body = await response.json();\n                                        this.__asyncLink_handleError(body.message, body.description);\n                                        return response;\n                                    } else {\n                                        this.__asyncLink_handleError(response.statusText);\n                                        return response;\n                                    }\n                                } catch (e) {\n                                    if (e.name == 'AbortError') {\n                                        this.__asyncLink_pendingHref = null;\n                                        this.__asyncLink_state = 'idle';\n                                        return false;\n                                    } else {\n                                        this.__asyncLink_handleError(String((e === null || e === void 0 ? void 0 : e.message) || e));\n                                        throw e;\n                                    }\n                                }\n                            },\n                            async __asyncLink_handleSuccess () {\n                                this.$dispatch('async-link:loaded', this.__asyncLink_pendingHref);\n                                this.__asyncLink_state = 'idle';\n                                this.__asyncLink_pendingHref = null;\n                            },\n                            async __asyncLink_handleError (message, description) {\n                                this.__asyncLink_state = 'idle';\n                                this.__asyncLink_errorMessage = message;\n                                this.__asyncLink_errorDescription = description;\n                                this.__asyncLink_pendingHref = null;\n                            },\n                            __asyncLink_reset () {\n                                this.__asyncLink_state = 'idle';\n                                this.__asyncLink_errorMessage = null;\n                                this.__asyncLink_errorDescription = null;\n                                this.__asyncLink_pendingHref = null;\n                            }\n                        };\n                    }\n                });\n            } else {\n                if (!data.expression) {\n                    throw new Error('x-async-link directive requires a an async callback function');\n                }\n                if (!isAnchorElement($el)) {\n                    throw new Error('x-async-link directive can only be used on anchor elements');\n                }\n                Alpine.bind($el, {\n                    'x-async-link:context': data.expression,\n                    [`x-async-link:link.${data.modifiers.join('.')}`]: ''\n                });\n            }\n        }).before('bind');\n        Alpine.magic('asyncLink', ($el)=>{\n            const $data = Alpine.$data($el);\n            return {\n                get pendingHref () {\n                    return $data.__asyncLink_pendingHref;\n                },\n                get state () {\n                    return $data.__asyncLink_state;\n                },\n                get reset () {\n                    return $data.__asyncLink_reset();\n                },\n                get errorMessage () {\n                    return $data.__asyncLink_errorMessage;\n                },\n                get errorDescription () {\n                    return $data.__asyncLink_errorDescription;\n                }\n            };\n        });\n    }\n\n    /**\n     * This Alpine.js plugin provides a directive for handling navigation via links and forms,\n     * allowing for asynchronous navigation without a full page reload. This is particularly useful\n     * for creating single-page applications or enhancing user experience with faster navigation.\n     *\n     * The core functionality of this plugin is to interrupt the default page reloading behavior\n     * of links and forms, and instead call a custom navigation callback function. This function\n     * is responsible for re-rendering the page content dynamically.\n     *\n     * ## Custom Navigation Callback\n     *\n     * The `x-router` directive requires an async callback function that returns a fetch promise.\n     * This function is crucial as it defines how the page content should be re-rendered when\n     * navigation occurs. You can specify this callback using the `x-router` directive with an expression:\n     *\n     * ```html\n     * <div x-router=\"customNavigate\">\n     *   <!-- Custom navigation logic here -->\n     * </div>\n     * ```\n     *\n     * The expression should be an async function that handles the fetch request and updates the view accordingly.\n     *\n     * ## Usage\n     *\n     * ### Link Navigation\n     *\n     * To use the `x-router` directive for link navigation, add the `x-router:link` directive to an anchor element:\n     *\n     * ```html\n     * <a x-router:link href=\"/new-page\">Go to New Page</a>\n     * ```\n     *\n     * When the link is clicked, the plugin will handle the navigation asynchronously using the custom callback.\n     *\n     * ### Form Navigation\n     *\n     * To use the `x-router` directive for form navigation, add the `x-router:form` directive to a form element:\n     *\n     * ```html\n     * <form x-router:form action=\"/submit-form\" method=\"POST\">\n     *   <input type=\"text\" name=\"example\" />\n     *   <button type=\"submit\">Submit</button>\n     * </form>\n     * ```\n     *\n     * When the form is submitted, the plugin will handle the navigation asynchronously using the custom callback.\n     *\n     * ## History Management\n     *\n     * The plugin also manages browser history to ensure that back/forward navigation works as expected.\n     *\n     * When the user navigates back or forward, the plugin will reload the page to reflect the correct state.\n     *\n     * ## Example\n     *\n     * ```html\n     * <a x-router:link href=\"/new-page\">Go to New Page</a>\n     *\n     * <form x-router:form action=\"/submit-form\" method=\"POST\">\n     *   <input type=\"text\" name=\"example\" />\n     *   <button type=\"submit\">Submit</button>\n     * </form>\n     *\n     * <div x-router=\"customNavigate\">\n     *   <!-- Custom navigation logic here -->\n     * </div>\n     * ```\n     */ function router(Alpine) {\n        Alpine.directive('router', ($el, data, { evaluateLater  })=>{\n            const historyMode1 = getHistoryModeModifier(data.modifiers);\n            if (data.value == 'link') {\n                Alpine.bind($el, {\n                    [`x-async-link`] () {\n                        return async (href)=>{\n                            const url = getNavigationUrl({\n                                action: href\n                            }).toString();\n                            return this.__router_navigate(url, historyMode1);\n                        };\n                    }\n                });\n            } else if (data.value == 'form') {\n                Alpine.bind($el, {\n                    [`x-async-form`] () {\n                        return async (info)=>{\n                            const url = getNavigationUrl(info).toString();\n                            return this.__router_navigate(url, historyMode1);\n                        };\n                    }\n                });\n            } else {\n                if (!data.expression) {\n                    throw new Error('x-router directive requires an async callback function that returns a fetch promise');\n                }\n                let getCallbackFn = evaluateLater(data.expression);\n                if (!window._x_router_initialized) {\n                    // Add initial state to the history object so that popstate event is fired when the user navigates back/forward\n                    window.history.replaceState({\n                        fromRouter: true,\n                        url: document.location.href\n                    }, '', document.location.href);\n                    // Reload the page when the user navigates back/forward since our usage of pushState/replaceState would cause the browser not to trigger a page reload\n                    window.addEventListener('popstate', (event)=>{\n                        var _a;\n                        if ((_a = event.state) === null || _a === void 0 ? void 0 : _a.fromRouter) {\n                            // NOTE this is a quick fix in order to get back/forward buttons working as expected with the router,\n                            // however a better solution for things like the collection view would probably be to call the callback function\n                            // with the correct href and then update the view accordingly without a page reload i.e. when using $sectionApi.\n                            // We'll revisit that when we have time\n                            window.location.reload();\n                        }\n                    });\n                    window._x_router_initialized = true;\n                }\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            __router_callback: null,\n                            init () {\n                                Alpine.effect(()=>{\n                                    // Create a function which wraps the passed in callback function / expression and allows us to call it when the user clicks the link\n                                    this.__router_callback = async (href)=>{\n                                        let resultPromise;\n                                        Alpine.dontAutoEvaluateFunctions(()=>{\n                                            getCallbackFn(async (result)=>{\n                                                if (typeof result === 'function') {\n                                                    resultPromise = result.bind(this)(href);\n                                                } else {\n                                                    throw new Error(`x-async-link expects an async function as its expression`);\n                                                }\n                                            });\n                                        });\n                                        return resultPromise;\n                                    };\n                                });\n                            },\n                            async __router_navigate (urlOrHref, historyMode) {\n                                const url = new URL(urlOrHref);\n                                if (historyMode == 'replace') {\n                                    window.history.replaceState({\n                                        fromRouter: true,\n                                        url: url.toString()\n                                    }, '', url.toString());\n                                } else if (historyMode == 'push') {\n                                    window.history.pushState({\n                                        fromRouter: true,\n                                        url: url.toString()\n                                    }, '', url.toString());\n                                }\n                                const promise = this.__router_callback(url);\n                                return promise;\n                            }\n                        };\n                    }\n                });\n            }\n        }).before('bind');\n        Alpine.magic('router', ($el)=>{\n            const $data = Alpine.$data($el);\n            return {\n                navigate (url, historyMode) {\n                    return $data.__router_navigate(url, historyMode);\n                }\n            };\n        });\n    }function getHistoryModeModifier(modifiers, defaultMode = 'push') {\n        if (modifiers.includes('replace')) {\n            return 'replace';\n        } else if (modifiers.includes('push')) {\n            return 'push';\n        } else if (modifiers.includes('nopush')) {\n            return 'none';\n        } else {\n            return defaultMode;\n        }\n    }\n    function getNavigationUrl(navigationInfo) {\n        let url = new URL(navigationInfo.action);\n        if ((navigationInfo === null || navigationInfo === void 0 ? void 0 : navigationInfo.formData) && (navigationInfo === null || navigationInfo === void 0 ? void 0 : navigationInfo.method) === 'GET') {\n            let formData = navigationInfo.formData;\n            let searchParams = new URLSearchParams(formData);\n            url.search = searchParams.toString();\n        }\n        return url;\n    }\n\n    const DEFAULT_SLIDE_DURATION = 1000;\n    /**\n     * TODO document me\n     */ function slideshow(Alpine) {\n        Alpine.directive('slideshow', ($el, data, utilities)=>{\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (data.value === 'slide') {\n                handleSlide($el, Alpine);\n            } else if (data.value === 'control') {\n                handleControl($el, Alpine);\n            } else if (data.value === 'play') {\n                handlePlayButton($el, Alpine);\n            } else if (data.value === 'pause') {\n                handlePauseButton($el, Alpine);\n            } else if (data.value === 'next') {\n                handleNextButton($el, Alpine);\n            } else if (data.value === 'prev') {\n                handlePrevButton($el, Alpine);\n            } else if (data.value === 'toggle') {\n                handleToggleButton($el, Alpine);\n            } else if (data.value === 'viewport') {\n                handleViewport($el, Alpine);\n            } else if (data.value === null) {\n                handleRoot$3($el, Alpine, data, utilities);\n            } else {\n                throw new Error(`Unknown directive: x-slideshow:${data.value}`);\n            }\n        }).before('bind');\n        Alpine.magic('slideshow', function($el) {\n            const $data = Alpine.$data($el);\n            // Could probably just rename __slideshow_state to $slideshow and get rid of this magic\n            // but I want to think through the implications of that before establishing a precedent\n            return $data.__slideshow_state || {};\n        });\n        Alpine.magic('slide', function($el) {\n            const $data = Alpine.$data($el);\n            return {\n                get slideIndex () {\n                    return $data.__slideshowSlide_slideIndex;\n                },\n                get isCurrentSlide () {\n                    return $data.__slideshowSlide_isCurrentSlide;\n                },\n                get wasLastSlide () {\n                    return $data.__slideshowSlide_wasLastSlide;\n                }\n            };\n        });\n    }function handleControl($el, Alpine) {\n        Alpine.bind($el, {\n            ':aria-controls': '$id(\"slideshow\")'\n        });\n    }\n    function handlePlayButton($el, Alpine) {\n        Alpine.bind($el, {\n            '@click': '$slideshow.play()',\n            'x-slideshow:control': ''\n        });\n    }\n    function handlePauseButton($el, Alpine) {\n        Alpine.bind($el, {\n            '@click': '$slideshow.pause()',\n            'x-slideshow:control': ''\n        });\n    }\n    function handleNextButton($el, Alpine) {\n        Alpine.bind($el, {\n            '@click': '$slideshow.pause(); $slideshow.next()',\n            'x-slideshow:control': ''\n        });\n    }\n    function handlePrevButton($el, Alpine) {\n        Alpine.bind($el, {\n            '@click': '$slideshow.pause(); $slideshow.prev()',\n            'x-slideshow:control': ''\n        });\n    }\n    function handleToggleButton($el, Alpine) {\n        Alpine.bind($el, {\n            '@click': '$slideshow.toggle()',\n            'x-slideshow:control': ''\n        });\n    }\n    function handleSlide($el, Alpine) {\n        Alpine.bind($el, {\n            ['x-data'] () {\n                return {\n                    init () {\n                        this.__slideshow_state.register(this.$el);\n                    },\n                    destroy () {\n                        this.__slideshow_state.unregister(this.$el);\n                    },\n                    get __slideshowSlide_slideIndex () {\n                        return Array.from(this.__slideshow_state.slides).indexOf(this.$el);\n                    },\n                    get __slideshowSlide_isCurrentSlide () {\n                        return this.__slideshow_state.currentSlideIndex === this.__slideshowSlide_slideIndex;\n                    },\n                    get __slideshowSlide_wasLastSlide () {\n                        return this.__slideshow_state.lastSlideIndex === this.__slideshowSlide_slideIndex;\n                    }\n                };\n            },\n            role: 'group',\n            'aria-roledescription': 'slide'\n        });\n    }\n    function handleViewport($el, Alpine) {\n        Alpine.bind($el, {\n            ':id': `$id('slideshow')`,\n            role: 'region',\n            'aria-roledescription': 'carousel',\n            ':aria-live': '$slideshow.state == \"playing\" ? \"off\" : \"polite\"',\n            '@keydown.left.stop.prevent': '$slideshow.prev()',\n            '@keydown.right.stop.prevent': '$slideshow.next()',\n            '@focus': '$slideshow.pause()'\n        });\n    }\n    function handleRoot$3($el, Alpine, data, { evaluate  }) {\n        let slideDuration = DEFAULT_SLIDE_DURATION;\n        const autoplay = data.modifiers.includes('autoplay');\n        if (data.modifiers.includes('duration')) {\n            const rawValue = data.modifiers[data.modifiers.indexOf('duration') + 1];\n            // Support x-slideshow.duration.500ms which will wait 500ms before transitioning to next slide\n            let match = rawValue.match(/([0-9]+)ms/);\n            if (match) slideDuration = Number(match[1]);\n        }\n        let expression = data.expression === '' ? '{}' : data.expression;\n        let options = evaluate(expression);\n        options.slideDuration = slideDuration;\n        options.autoplay = autoplay;\n        if (options !== undefined && options !== null && !isPlainObject(options)) {\n            throw new Error(`options must be an object, but got ${options}`);\n        }\n        let state = buildSlideshowState(options);\n        Alpine.bind($el, {\n            ['x-data'] () {\n                return {\n                    __slideshow_autoplayTimeoutId: undefined,\n                    __slideshow_animationFrameId: undefined,\n                    __slideshow_state: state,\n                    init () {\n                        let lastTimestamp;\n                        const updateProgress = (timestamp)=>{\n                            if (lastTimestamp === undefined) lastTimestamp = timestamp;\n                            const deltaTime = timestamp - lastTimestamp;\n                            lastTimestamp = timestamp;\n                            // Update the elapsed time\n                            this.__slideshow_state.currentSlideElapsedTime = Math.round(this.__slideshow_state.currentSlideElapsedTime + deltaTime);\n                            // Request the next frame if playing\n                            if (this.__slideshow_state.state === 'playing') {\n                                this.__slideshow_animationFrameId = requestAnimationFrame(updateProgress);\n                            }\n                        };\n                        const startProgressUpdates = ()=>{\n                            // Cancel any existing animation frame\n                            if (this.__slideshow_animationFrameId !== undefined) {\n                                cancelAnimationFrame(this.__slideshow_animationFrameId);\n                            }\n                            // Start updating progress\n                            lastTimestamp = undefined;\n                            this.__slideshow_animationFrameId = requestAnimationFrame(updateProgress);\n                        };\n                        const stopProgressUpdates = ()=>{\n                            if (this.__slideshow_animationFrameId !== undefined) {\n                                cancelAnimationFrame(this.__slideshow_animationFrameId);\n                                this.__slideshow_animationFrameId = undefined;\n                            }\n                        };\n                        const scheduleNextSlide = ()=>{\n                            // Clear any existing timeout\n                            if (this.__slideshow_autoplayTimeoutId !== undefined) {\n                                clearTimeout(this.__slideshow_autoplayTimeoutId);\n                                this.__slideshow_autoplayTimeoutId = undefined;\n                            }\n                            if (this.__slideshow_state.state === 'playing') {\n                                // Start progress updates\n                                startProgressUpdates();\n                                // Schedule the next slide\n                                const remainingTime = this.__slideshow_state.slideDuration - this.__slideshow_state.currentSlideElapsedTime;\n                                this.__slideshow_autoplayTimeoutId = window.setTimeout(()=>{\n                                    // Move to the next slide\n                                    this.__slideshow_state.next();\n                                    // Reset elapsed time\n                                    this.__slideshow_state.currentSlideElapsedTime = 0;\n                                    // Schedule next slide\n                                    scheduleNextSlide();\n                                }, remainingTime);\n                            } else {\n                                // Slideshow is paused, stop progress updates\n                                stopProgressUpdates();\n                            }\n                        };\n                        // Watch for changes in play state\n                        this.$watch('__slideshow_state.state', ()=>{\n                            scheduleNextSlide();\n                        });\n                        // Watch for slide changes (e.g., manual navigation)\n                        this.$watch('__slideshow_state.currentSlideIndex', (_nextIndex, prevIndex)=>{\n                            // Reset elapsed time and schedule next slide\n                            this.__slideshow_state.currentSlideElapsedTime = 0;\n                            scheduleNextSlide();\n                        });\n                        // Initial scheduling\n                        scheduleNextSlide();\n                    },\n                    destroy () {\n                        if (this.__slideshow_autoplayTimeoutId !== undefined) {\n                            clearTimeout(this.__slideshow_autoplayTimeoutId);\n                        }\n                        if (this.__slideshow_animationFrameId !== undefined) {\n                            cancelAnimationFrame(this.__slideshow_animationFrameId);\n                        }\n                    }\n                };\n            },\n            'x-id': \"['slideshow']\"\n        });\n    }\n    function buildSlideshowState(options = {}) {\n        let state = {\n            state: options.autoplay ? 'playing' : 'paused',\n            slideDuration: options.slideDuration || 1000,\n            currentSlideIndex: options.initialSlideIndex || 0,\n            currentSlideElapsedTime: 0,\n            slides: new Set(),\n            lastSlideIndex: null,\n            get totalSlides () {\n                return this.slides.size;\n            },\n            get nextSlideIndex () {\n                return mod(this.currentSlideIndex + 1, this.totalSlides);\n            },\n            get prevSlideIndex () {\n                return mod(this.currentSlideIndex - 1, this.totalSlides);\n            },\n            register (el) {\n                this.slides.add(el);\n            },\n            unregister (el) {\n                this.slides.delete(el);\n            },\n            next () {\n                this.currentSlideIndex = this.nextSlideIndex;\n            },\n            prev () {\n                this.currentSlideIndex = this.prevSlideIndex;\n            },\n            play () {\n                if (this.state === 'playing') return;\n                this.state = 'playing';\n            },\n            pause () {\n                if (this.state === 'paused') return;\n                this.state = 'paused';\n            },\n            toggle () {\n                if (this.state === 'playing') {\n                    this.pause();\n                } else {\n                    this.play();\n                }\n            }\n        };\n        state = trackProperty(state, 'currentSlideIndex', 'lastSlideIndex');\n        if ((options === null || options === void 0 ? void 0 : options.state) !== undefined) {\n            copyProperty(options, state, 'state');\n        }\n        if ((options === null || options === void 0 ? void 0 : options.currentSlideIndex) !== undefined) {\n            copyProperty(options, state, 'currentSlideIndex');\n        }\n        return state;\n    }\n\n    /**\n     * Plugin to make it easy to integrate with the theme editor\n     *\n     * TODO: more docs!\n     *\n     * @example\n     *\n     * <div>\n     *   <div\n     *     x-disclosure\n     *     {% if request.design_mode %}\n     *       @shopify:section:select.window=\"\n     *         if($isSelectedSection) {\n     *           $disclosure.expand()\n     *         }\n     *       \"\n     *       @shopify:section:deselect.window=\"\n     *         if($wasSelectedSection) {\n     *           $disclosure.collapse()\n     *         }\n     *       \"\n     *     {% endif %}\n     *   >\n     *     <button x-disclosure:button>Toggle</button>\n     *     <div x-disclosure:panel>My content</div>\n     *   </div>\n     * </div>\n     */ function themeEditor(Alpine) {\n        Alpine.magic('isSelectedSection', handleIsSelectedSectionMagic(Alpine));\n        Alpine.magic('isSelectedBlock', handleIsSelectedBlockMagic(Alpine));\n        Alpine.magic('isInSelectedBlockTree', handleIsInSelectedBlockTreeMagic(Alpine));\n        Alpine.magic('containsSelectedBlock', handleContainsSelectedBlockMagic(Alpine));\n        Alpine.magic('wasSelectedSection', handleWasSelectedSectionMagic(Alpine));\n        Alpine.magic('wasInSelectedBlockTree', handleWasInSelectedBlockTreeMagic(Alpine));\n        Alpine.magic('wasSelectedBlock', handleWasSelectedBlockMagic(Alpine));\n        Alpine.magic('selectedSection', handleSelectedSectionMagic(Alpine));\n        Alpine.magic('selectedBlock', handleSelectedBlockMagic(Alpine));\n        Alpine.magic('prevSelectedSection', handlePrevSelectedSectionMagic(Alpine));\n        Alpine.magic('prevSelectedBlock', handlePrevSelectedBlockMagic(Alpine));\n        Alpine.store('themeEditor', themeEditorStore);\n    }/**\n     * Returns the  selected section in the theme editor\n     */ function handleSelectedSectionMagic(Alpine) {\n        return function(_$el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return null;\n            const selectedSection = Alpine.store('themeEditor').selectedSection;\n            return selectedSection;\n        };\n    }\n    /**\n     * Returns the previously selected section in the theme editor\n     */ function handlePrevSelectedSectionMagic(Alpine) {\n        return function(_$el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return null;\n            const selectedSection = Alpine.store('themeEditor').prevSelectedSection;\n            return selectedSection;\n        };\n    }\n    /**\n     * Returns the previously selected block in the theme editor\n     */ function handlePrevSelectedBlockMagic(Alpine) {\n        return function(_$el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return null;\n            const selectedBlock = Alpine.store('themeEditor').prevSelectedBlock;\n            return selectedBlock;\n        };\n    }\n    /**\n     * Returns the selected block in the theme editor\n     */ function handleSelectedBlockMagic(Alpine) {\n        return function(_$el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return null;\n            const selectedBlock = Alpine.store('themeEditor').selectedBlock;\n            return selectedBlock;\n        };\n    }\n    /**\n     * Returns whether the current element is the selected section in the theme editor or a descendant of it\n     */ function handleIsSelectedSectionMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            if (!isHtmlElement) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            const el = closestSectionEl($el);\n            const selectedSection = Alpine.store('themeEditor').selectedSection;\n            if (!el) return false;\n            if (!selectedSection) return false;\n            return el.id == selectedSection.id;\n        };\n    }\n    /**\n     * Returns whether the current element is the previously selected section in the theme editor or a descendant of it\n     */ function handleWasSelectedSectionMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            if (!isHtmlElement) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            const el = closestSectionEl($el);\n            const prevSelectedSection = Alpine.store('themeEditor').prevSelectedSection;\n            if (!el) return false;\n            if (!prevSelectedSection) return false;\n            return el.id == prevSelectedSection.id;\n        };\n    }\n    /**\n     * Returns whether the current element is the selected block in the theme editor\n     */ function handleIsSelectedBlockMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            const el = $el.closest('[data-shopify-editor-block]');\n            const selectedBlock = Alpine.store('themeEditor').selectedBlock;\n            if (!el) return false;\n            if (!selectedBlock) return false;\n            return el === selectedBlock;\n        };\n    }\n    /**\n     * Returns whether the current element is the selected block, a descendant of it, or a parent of it\n     */ function handleIsInSelectedBlockTreeMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            const el = $el.closest('[data-shopify-editor-block]');\n            const selectedBlock = Alpine.store('themeEditor').selectedBlock;\n            if (!el) return false;\n            if (!selectedBlock) return false;\n            return el.contains(selectedBlock) || el === selectedBlock || selectedBlock.contains(el);\n        };\n    }\n    /**\n     * Returns whether the current element is or contains the selected block in the theme editor\n     */ function handleContainsSelectedBlockMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            const el = $el.closest('[data-shopify-editor-block]');\n            const selectedBlock = Alpine.store('themeEditor').selectedBlock;\n            if (!el) return false;\n            if (!selectedBlock) return false;\n            return el.contains(selectedBlock) || el === selectedBlock;\n        };\n    }\n    /**\n     * Returns whether the current element is the selected block in the theme editor\n     */ function handleWasSelectedBlockMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            const el = $el.closest('[data-shopify-editor-block]');\n            const selectedBlock = Alpine.store('themeEditor').prevSelectedBlock;\n            if (!el) return false;\n            if (!selectedBlock) return false;\n            return el == selectedBlock;\n        };\n    }\n    /**\n     * Returns whether the current element was the selected block, a descendant of it, or an ancestor of it\n     */ function handleWasInSelectedBlockTreeMagic(Alpine) {\n        return function($el) {\n            var _a;\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            const el = $el.closest('[data-shopify-editor-block]');\n            const selectedBlock = Alpine.store('themeEditor').prevSelectedBlock;\n            if (!el) return false;\n            if (!selectedBlock) return false;\n            return el.contains(selectedBlock) || el === selectedBlock || selectedBlock.contains(el);\n        };\n    }\n    const themeEditorStore = {\n        isInspectorActive: false,\n        selectedSectionId: null,\n        prevSelectedSectionId: null,\n        selectedBlock: null,\n        prevSelectedBlock: null,\n        get selectedSection () {\n            if (!this.selectedSectionId) return null;\n            return document.getElementById(`shopify-section-${this.selectedSectionId}`);\n        },\n        get prevSelectedSection () {\n            if (!this.prevSelectedSectionId) return null;\n            return document.getElementById(`shopify-section-${this.prevSelectedSectionId}`);\n        },\n        init () {\n            window.addEventListener(ThemeEditorEvent.INSPECTOR_ACTIVATED, ()=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                this.isInspectorActive = true;\n            });\n            window.addEventListener(ThemeEditorEvent.INSPECTOR_DEACTIVATED, ()=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                this.isInspectorActive = false;\n            });\n            window.addEventListener(ThemeEditorEvent.SECTION_SELECT, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                const sectionSelectEvent = e;\n                if (this.selectedSectionId !== null) {\n                    this.prevSelectedSectionId = this.selectedSectionId;\n                }\n                this.selectedSectionId = sectionSelectEvent.detail.sectionId;\n            });\n            window.addEventListener(ThemeEditorEvent.SECTION_DESELECT, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                this.prevSelectedSectionId = this.selectedSectionId;\n                this.selectedSectionId = null;\n            });\n            window.addEventListener(ThemeEditorEvent.BLOCK_SELECT, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                const blockSelectEvent = e;\n                this.prevSelectedBlock = this.selectedBlock;\n                this.selectedBlock = blockSelectEvent.target;\n            });\n            window.addEventListener(ThemeEditorEvent.BLOCK_DESELECT, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n                this.prevSelectedBlock = this.selectedBlock;\n                this.selectedBlock = null;\n            });\n            window.addEventListener(ThemeEditorEvent.SECTION_LOAD, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            // NOOP for now\n            });\n            window.addEventListener(ThemeEditorEvent.SECTION_UNLOAD, (e)=>{\n                var _a;\n                if (!((_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.designMode)) return false;\n            // NOOP for now\n            });\n        }\n    };\n\n    function prettyPrintError(err) {\n        let output = '';\n        if (typeof err === 'string') {\n            output = err;\n        } else if (err instanceof Error) {\n            output = err.message;\n        } else if (err && typeof err.toString === 'function') {\n            output = err.toString();\n        } else if (err && typeof err.message === 'string') {\n            output = err.message;\n        } else {\n            output = 'An unknown error occurred.';\n        }\n        return output;\n    }\n\n    /**\n     * Function that combines some default morph behavior with custom behavior\n     * @param options - The custom behavior to combine with the default behavior\n     * @returns The combined morph behavior\n     */ function buildMorphConfig(options) {\n        return Object.assign(Object.assign({}, options), {\n            updating (el, toEl, childrenOnly, skip) {\n                var _a;\n                // Allow elements to opt-out of resetting their alpine state by adding the data-morph-children-only attribute\n                if (el.hasAttribute && el.hasAttribute('data-morph-children-only')) {\n                    childrenOnly();\n                }\n                // Allow elements to opt-out of morphing altogether with data-morph-skip\n                if (el.hasAttribute && el.hasAttribute('data-morph-skip')) {\n                    skip();\n                }\n                (_a = options === null || options === void 0 ? void 0 : options.updating) === null || _a === void 0 ? void 0 : _a.call(options, el, toEl, childrenOnly, skip);\n            },\n            removing (el, skip) {\n                var _a;\n                // Allow elements to opt-out of morphing altogether with data-morph-skip\n                if (el.hasAttribute && el.hasAttribute('data-morph-skip')) {\n                    skip();\n                }\n                (_a = options === null || options === void 0 ? void 0 : options.removing) === null || _a === void 0 ? void 0 : _a.call(options, el, skip);\n            }\n        });\n    }\n\n    let FetchBatcher = class FetchBatcher {\n        // Main method to handle incoming requests\n        request(url) {\n            return new Promise((resolve, reject)=>{\n                const baseUrl = this.getBaseUrl(url);\n                const queryParams = this.getQueryParams(url);\n                const sectionsParam = queryParams.getAll('sections').concat(queryParams.getAll('section_id')).concat(queryParams.getAll('sections[]'));\n                if (!this.batchMap.has(baseUrl)) {\n                    this.batchMap.set(baseUrl, new Set());\n                }\n                const sectionsSet = this.batchMap.get(baseUrl);\n                if (sectionsSet) {\n                    sectionsParam.forEach((section)=>sectionsSet.add(section)\n                    );\n                }\n                if (!this.requestPromises.has(baseUrl)) {\n                    this.requestPromises.set(baseUrl, []);\n                }\n                const promisesList = this.requestPromises.get(baseUrl);\n                if (promisesList) {\n                    promisesList.push({\n                        resolve,\n                        reject\n                    });\n                }\n                // Set a timeout to batch requests\n                if (!this.timeoutMap.has(baseUrl)) {\n                    const timeoutId = setTimeout(()=>{\n                        this.fetchBatch(baseUrl);\n                    }, this.timeoutDuration);\n                    this.timeoutMap.set(baseUrl, timeoutId);\n                }\n            });\n        }\n        // Extract base URL from full URL\n        getBaseUrl(url) {\n            const [baseUrl, _queryParams] = url.split('?');\n            return baseUrl;\n        }\n        // Extract query parameters from full URL\n        getQueryParams(url) {\n            const [_baseUrl, queryParams] = url.split('?');\n            return new URLSearchParams(queryParams);\n        }\n        // Construct the batched URL with all sections\n        buildBatchUrl(baseUrl, sections) {\n            return `${baseUrl}?sections=${Array.from(sections).join(',')}`;\n        }\n        // Fetch batched request\n        async fetchBatch(baseUrl) {\n            const sections = this.batchMap.get(baseUrl);\n            if (!sections) return;\n            const batchUrl = this.buildBatchUrl(baseUrl, sections);\n            this.batchMap.delete(baseUrl);\n            this.timeoutMap.delete(baseUrl);\n            try {\n                const response = await fetch(batchUrl);\n                if (response.ok) {\n                    const data = await response.json();\n                    const requestPromises = this.requestPromises.get(baseUrl);\n                    if (requestPromises) {\n                        requestPromises.forEach(({ resolve  })=>resolve(data)\n                        );\n                        this.requestPromises.delete(baseUrl);\n                    }\n                } else {\n                    throw response.statusText;\n                }\n            } catch (error) {\n                const requestPromises = this.requestPromises.get(baseUrl);\n                if (requestPromises) {\n                    requestPromises.forEach(({ reject  })=>reject(error)\n                    );\n                    this.requestPromises.delete(baseUrl);\n                }\n            }\n        }\n        constructor(timeoutDuration = 100){\n            this.batchMap = new Map();\n            this.timeoutMap = new Map();\n            this.timeoutDuration = timeoutDuration;\n            this.requestPromises = new Map();\n        }\n    };\n\n    var __rest$1 = undefined && undefined.__rest || function(s, e) {\n        var t = {};\n        for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n        if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++){\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n        }\n        return t;\n    };\n    const THEME_SECTION_CONTEXT_KEY = Symbol('THEME_SECTION_CONTEXT_KEY');\n    const THEME_SECTION_FRAME_CONTEXT_KEY = Symbol('THEME_SECTION_FRAME_CONTEXT_KEY');\n    const fetchBatcher = new FetchBatcher();\n    const DEFAULT_MORPH_CONFIG = {\n        updating (el, _toEl, _childrenOnly, skip) {\n            // Skip any built-in shopify elements\n            if (el.hasAttribute && el.hasAttribute('data-shopify')) {\n                skip();\n            }\n        },\n        removing (el, skip) {\n            // Skip any built-in shopify elements\n            if (el.hasAttribute && el.hasAttribute('data-shopify')) {\n                skip();\n            }\n        }\n    };\n    var sectionApi = ((options)=>{\n        let morphConfig = (options === null || options === void 0 ? void 0 : options.morphConfig) || DEFAULT_MORPH_CONFIG;\n        return function(Alpine) {\n            if ('morph' in Alpine === false) {\n                throw new Error('The x-section-api directive requires the @alpinejs/morph plugin');\n            }\n            if (!Alpine.store('cache')) {\n                throw new Error('The x-section-api directive requires the method-ui cache plugin');\n            }\n            if (!Alpine.store('cache').resources.sectionHtml) {\n                Alpine.store('cache').addResource('sectionHtml');\n            }\n            Alpine.directive('section-api', ($el, data, utilities)=>{\n                if (!isHtmlElement($el)) {\n                    throw new Error(`Expected HTMLElement but got ${$el}`);\n                }\n                if (data.value === 'frame') {\n                    handleFrame($el, data, utilities, Alpine, morphConfig);\n                } else if (data.value === 'form') {\n                    handleForm($el, data, utilities, Alpine);\n                } else if (data.value === 'link') {\n                    handleLink($el, data, utilities, Alpine);\n                } else if (data.value === null) {\n                    handleRoot$2($el, data, utilities, Alpine, morphConfig);\n                } else {\n                    throw new Error(`Unknown directive: x-section-api:${data.value}`);\n                }\n            }).before('bind');\n            Alpine.magic('sectionApi', handleSectionMagic(Alpine));\n            Alpine.magic('sectionApiFrame', handleFrameMagic(Alpine));\n            Alpine.magic('sectionApiCache', handleSectionCacheMagic(Alpine));\n            bindAllThemeSections(Alpine, (el)=>{\n                // Add x-section-api directive to all sections making it possible to reload them via section rendering API with $sectionApi.load(...)\n                const sectionIdForSectionRenderingApi = el.id.split('shopify-section-')[1]; // e.g. section-featured-product from shopify-section-section-featured-product\n                Alpine.bind(el, {\n                    ['x-section-api']: sectionIdForSectionRenderingApi\n                });\n            });\n        };\n    });\n    function handleSectionMagic(Alpine) {\n        return function($el) {\n            const context = Alpine.$data($el)[THEME_SECTION_CONTEXT_KEY];\n            return {\n                get morphConfig () {\n                    return context === null || context === void 0 ? void 0 : context.morphConfig;\n                },\n                set morphConfig (value){\n                    context.morphConfig = value;\n                },\n                get sectionId () {\n                    return context === null || context === void 0 ? void 0 : context.sectionId;\n                },\n                get state () {\n                    return context === null || context === void 0 ? void 0 : context.state;\n                },\n                get error () {\n                    return context === null || context === void 0 ? void 0 : context.error;\n                },\n                update (options) {\n                    return context === null || context === void 0 ? void 0 : context.update(options);\n                },\n                load (options) {\n                    return context === null || context === void 0 ? void 0 : context.load(options);\n                },\n                navigate (url, historyMode) {\n                    return context === null || context === void 0 ? void 0 : context.navigate(url, historyMode);\n                }\n            };\n        };\n    }\n    function handleFrameMagic(Alpine) {\n        return function($el) {\n            const context = Alpine.$data($el)[THEME_SECTION_FRAME_CONTEXT_KEY];\n            return {\n                get morphConfig () {\n                    return context === null || context === void 0 ? void 0 : context.morphConfig;\n                },\n                set morphConfig (value){\n                    context.morphConfig = value;\n                },\n                get el () {\n                    return context === null || context === void 0 ? void 0 : context.rootEl;\n                },\n                get state () {\n                    return context === null || context === void 0 ? void 0 : context.state;\n                },\n                get error () {\n                    return context === null || context === void 0 ? void 0 : context.error;\n                },\n                update (options) {\n                    return context === null || context === void 0 ? void 0 : context.update(options);\n                },\n                load (options) {\n                    return context === null || context === void 0 ? void 0 : context.load(options);\n                }\n            };\n        };\n    }\n    function handleSectionCacheMagic(Alpine) {\n        return function() {\n            return {\n                set (sectionId, html, options) {\n                    const url = buildSectionUrl(sectionId, options);\n                    Alpine.store('cache').resources.sectionHtml.set(url, html);\n                },\n                get (sectionId, options) {\n                    const url = buildSectionUrl(sectionId, options);\n                    return Alpine.store('cache').resources.sectionHtml.get(url);\n                }\n            };\n        };\n    }\n    // TODO refactor this to use Alpine.morphBetween: https://github.com/alpinejs/alpine/blob/df63fe2f6eb416bb7f46c449f2ee6aaf3c0b304e/packages/morph/src/morph.js#L33\n    function handleFrame($el, data, { cleanup  }, Alpine, morphConfig) {\n        const rootContext = Alpine.$data($el)[THEME_SECTION_CONTEXT_KEY];\n        if (!rootContext) return;\n        const sectionId = rootContext.sectionId;\n        const frameContext = buildContext(Alpine, $el, sectionId, {\n            targetId: $el.id,\n            rootEl: rootContext.rootEl,\n            morphConfig\n        });\n        if (!$el.hasAttribute('id')) {\n            throw new Error(`Elements using x-section-api:frame must have a unique id property`);\n        }\n        Alpine.addScopeToNode($el, {\n            [THEME_SECTION_FRAME_CONTEXT_KEY]: frameContext\n        });\n        $el._x_sectionApi_isFrame = true;\n        $el._x_sectionApi_isIsolatedFrame = data.modifiers.includes('isolate');\n        cleanup(()=>{\n            var _a;\n            // Abort any pending fetches when element is removed from DOM\n            (_a = frameContext.abortController) === null || _a === void 0 ? void 0 : _a.abort();\n            // Delete custom properties from element\n            delete $el._x_sectionApi_isFrame;\n            delete $el._x_sectionApi_isIsolatedFrame;\n        });\n    }\n    function handleForm($el, data, _utilities, Alpine) {\n        if (!isFormElement($el)) {\n            throw new Error('x-section-api:form directive can only be used on form elements');\n        }\n        if ($el.method.toLowerCase() == 'post') {\n            throw new Error('x-section-api:form directive does not support POST requests');\n        }\n        Alpine.bind($el, {\n            [`x-router:form.${data.modifiers}`]: ''\n        });\n    }\n    function handleLink($el, data, _utilities, Alpine) {\n        if (!isAnchorElement($el)) {\n            throw new Error('x-section-api:link directive can only be used on anchor elements');\n        }\n        Alpine.bind($el, {\n            [`x-router:link.${data.modifiers}`]: ''\n        });\n    }\n    function handleRoot$2($el, data, { cleanup  }, Alpine, morphConfig) {\n        // Grab section id from directive expression\n        const sectionId = data.expression;\n        const context = buildContext(Alpine, $el, sectionId, {\n            morphConfig\n        });\n        // Section will update automatically when the section HTML is updated\n        // const subscribe = data.modifiers.includes('subscribe');\n        Alpine.addScopeToNode($el, {\n            [THEME_SECTION_CONTEXT_KEY]: context\n        });\n        // if (subscribe) {\n        //   context.subscribe();\n        // }\n        Alpine.bind($el, {\n            'aria-atomic': 'true',\n            [':aria-busy'] () {\n                return context.state == 'loading';\n            },\n            [`x-router`] () {\n                return async (url)=>{\n                    const baseUrl = `${url.pathname}${url.search}`;\n                    window.dispatchEvent(new CustomEvent('theme:section:navigate', {\n                        detail: {\n                            sectionId,\n                            url: baseUrl\n                        }\n                    }));\n                    return context.update({\n                        baseUrl\n                    });\n                };\n            }\n        });\n        cleanup(()=>{\n            var _a;\n            // Abort any pending fetches when element is removed from DOM\n            (_a = context.abortController) === null || _a === void 0 ? void 0 : _a.abort();\n        // context.unsubscribe();\n        });\n    }\n    function buildContext(Alpine, $el, sectionId1, options1) {\n        return Alpine.reactive({\n            rootEl: (options1 === null || options1 === void 0 ? void 0 : options1.rootEl) || $el,\n            state: 'initial',\n            error: null,\n            targetId: (options1 === null || options1 === void 0 ? void 0 : options1.targetId) || null,\n            sectionId: sectionId1,\n            pendingUrl: null,\n            abortController: null,\n            subscription: null,\n            morphConfig: (options1 === null || options1 === void 0 ? void 0 : options1.morphConfig) || DEFAULT_MORPH_CONFIG,\n            buildUrl (options) {\n                var _a;\n                return buildSectionUrl((_a = options === null || options === void 0 ? void 0 : options.sectionId) !== null && _a !== void 0 ? _a : this.sectionId, Object.assign(Object.assign({}, options), {\n                    targetId: this.targetId\n                }));\n            },\n            update: async function(options) {\n                const _update = async ()=>{\n                    var _a;\n                    const cachePolicy = (_a = options === null || options === void 0 ? void 0 : options.cachePolicy) !== null && _a !== void 0 ? _a : 'cache-and-network';\n                    if (cachePolicy == 'cache-only') {\n                        const cachedHtml = Alpine.store('cache').resources.sectionHtml.get(this.buildUrl(options));\n                        if (cachedHtml) {\n                            this.updateHtml(cachedHtml, {\n                                mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                            });\n                        }\n                        return cachedHtml;\n                    } else if (cachePolicy == 'network-only') {\n                        const updatedHtml = await this.load(options);\n                        if (updatedHtml) {\n                            this.updateHtml(updatedHtml, {\n                                mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                            });\n                        }\n                        return updatedHtml;\n                    } else if (cachePolicy == 'cache-first') {\n                        const cachedHtml = Alpine.store('cache').resources.sectionHtml.get(this.buildUrl(options));\n                        if (cachedHtml) {\n                            this.updateHtml(cachedHtml, {\n                                mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                            });\n                            return cachedHtml;\n                        } else {\n                            const updatedHtml = await this.load(options);\n                            if (updatedHtml) {\n                                this.updateHtml(updatedHtml, {\n                                    mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                    morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                                });\n                            }\n                            return updatedHtml;\n                        }\n                    } else if (cachePolicy == 'cache-and-network') {\n                        const cachedHtml = Alpine.store('cache').resources.sectionHtml.get(this.buildUrl(options));\n                        if (cachedHtml) {\n                            this.updateHtml(cachedHtml, {\n                                mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                            });\n                        }\n                        const updatedHtml = await this.load(options);\n                        if (updatedHtml) {\n                            this.updateHtml(updatedHtml, {\n                                mode: options === null || options === void 0 ? void 0 : options.htmlMode,\n                                morphConfig: options === null || options === void 0 ? void 0 : options.morphConfig\n                            });\n                        }\n                        return updatedHtml;\n                    } else {\n                        throw new Error(`Unknown cache policy: ${cachePolicy}`);\n                    }\n                };\n                if (options === null || options === void 0 ? void 0 : options.waitForIdle) {\n                    return new Promise(async (resolve)=>{\n                        window.requestIdleCallback(async ()=>{\n                            const result = await _update();\n                            resolve(result);\n                        });\n                    });\n                } else {\n                    return _update();\n                }\n            },\n            load: async function(options) {\n                var _a;\n                try {\n                    const _b = options || {}, { url , baseUrl , sectionId , batch  } = _b, fetchOptions = __rest$1(_b, [\n                        \"url\",\n                        \"baseUrl\",\n                        \"sectionId\",\n                        \"batch\"\n                    ]);\n                    // Allow overriding the section rendering API for a single request\n                    const requestUrl = url !== null && url !== void 0 ? url : this.buildUrl({\n                        baseUrl,\n                        sectionId\n                    });\n                    this.state = 'loading';\n                    window.dispatchEvent(new CustomEvent('theme:section:load', {\n                        detail: {\n                            sectionId: this.sectionId\n                        }\n                    }));\n                    this.pendingUrl = requestUrl;\n                    if (batch) {\n                        const result = await fetchBatcher.request(requestUrl);\n                        // Grab the HTML for this section from the batch result\n                        const html = result[this.sectionId];\n                        // Store that HTML in the cache\n                        Alpine.store('cache').resources.sectionHtml.set(this.buildUrl({\n                            baseUrl,\n                            sectionId\n                        }), html);\n                        this.state = 'loaded';\n                        return html;\n                    } else {\n                        if ((options === null || options === void 0 ? void 0 : options.abortPending) != false) {\n                            (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();\n                        }\n                        this.abortController = new AbortController();\n                        const result = await fetch(requestUrl, Object.assign({\n                            signal: this.abortController.signal\n                        }, fetchOptions));\n                        // TODO figure out what to do in error cases, right now we just throw an error...\n                        if (!result.ok) {\n                            throw new Error(result.statusText);\n                        }\n                        const responseHtml = await result.text();\n                        Alpine.store('cache').resources.sectionHtml.set(this.buildUrl({\n                            baseUrl,\n                            sectionId\n                        }), responseHtml);\n                        this.state = 'loaded';\n                        return responseHtml;\n                    }\n                } catch (e) {\n                    if (e.name == 'AbortError') ; else {\n                        // Update state so UI can display error\n                        this.state = 'error';\n                        this.error = prettyPrintError(e);\n                        throw e;\n                    }\n                } finally{\n                    this.pendingUrl = null;\n                }\n            },\n            navigate: async function(url, historyMode) {\n                const $data = Alpine.$data($el);\n                return $data.$router.navigate(url, historyMode);\n            },\n            // TODO implement subscriptions, and ensure they can't cause infinite loops\n            // subscribe(options) {\n            //   this.subscription = Alpine.effect(() => {\n            //     const subscriptionUrl = this.buildUrl(options);\n            //     const html = Alpine.store('cache').resources.sectionHtml.get(subscriptionUrl);\n            //     if (typeof html == 'string') {\n            //       this.updateHtml(html, {mode: options?.htmlMode});\n            //     }\n            //   });\n            // },\n            // unsubscribe() {\n            //   if (this.subscription) {\n            //     Alpine.release(this.subscription);\n            //     this.subscription = null;\n            //   }\n            // },\n            updateHtml (html, options) {\n                var _a1;\n                // Shopify inserts an extra comment when using section rendering API in the theme editor which\n                // breaks the morphing process. This removes it.\n                const sanitizedHtml = html.replace(/<!--shopify:rendered_by_section_api-->/g, '');\n                const morphConfig = (_a1 = options === null || options === void 0 ? void 0 : options.morphConfig) !== null && _a1 !== void 0 ? _a1 : this.morphConfig;\n                if ((options === null || options === void 0 ? void 0 : options.mode) == 'replace') {\n                    Alpine.mutateDom(()=>{\n                        this.rootEl.innerHTML = sanitizedHtml;\n                        // Re-initialize alpine on cloned node\n                        Alpine.skipDuringClone(()=>Alpine.initTree(this.rootEl)\n                        )();\n                    });\n                } else {\n                    Alpine.morph(this.rootEl, sanitizedHtml, buildMorphConfig({\n                        updating: (fromEl, toEl, childrenOnly, skip)=>{\n                            var _a;\n                            if (isHtmlElement(fromEl) && isHtmlElement(toEl)) {\n                                if (fromEl == this.rootEl) {\n                                    // Skip morphing the root section el itself, only morph children\n                                    childrenOnly();\n                                } else {\n                                    // Check if the directive element is a frame or a section\n                                    if ($el._x_sectionApi_isFrame) {\n                                        if (fromEl._x_sectionApi_isFrame) {\n                                            if (this.targetId == fromEl.id) {\n                                                // Skip morphing the frame section el itself, only morph children\n                                                childrenOnly();\n                                            } else {\n                                                // Skip updating other frames\n                                                skip();\n                                            }\n                                        } else if (!fromEl.contains($el) && !$el.contains(fromEl)) {\n                                            // Skip any element which is not part of the frame's tree\n                                            skip();\n                                        }\n                                    } else {\n                                        // Skip updating isolated frames inside of sections\n                                        if (fromEl._x_sectionApi_isFrame && fromEl._x_sectionApi_isIsolatedFrame) {\n                                            skip();\n                                        }\n                                    }\n                                }\n                                (_a = morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.updating) === null || _a === void 0 ? void 0 : _a.call(morphConfig, fromEl, toEl, childrenOnly, skip);\n                            }\n                        },\n                        updated: morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.updated,\n                        removing: morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.removing,\n                        removed: morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.removed,\n                        adding: morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.adding,\n                        added: morphConfig === null || morphConfig === void 0 ? void 0 : morphConfig.added\n                    }));\n                }\n                window.dispatchEvent(new CustomEvent('theme:section:update', {\n                    detail: {\n                        sectionId: this.sectionId\n                    }\n                }));\n            }\n        });\n    }\n    function buildSectionUrl(sectionId, options) {\n        var _a, _b, _c;\n        const DEFAULT_BASE_URL = ((_b = (_a = window.theme) === null || _a === void 0 ? void 0 : _a.routes) === null || _b === void 0 ? void 0 : _b.root) || '/';\n        // This is such an ugly hack but unfortunately necessary until this is fixed: https://github.com/whatwg/url/issues/531\n        const FAKE_HOST = 'https://fake-host';\n        const fullUrl = new URL((_c = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _c !== void 0 ? _c : DEFAULT_BASE_URL, FAKE_HOST);\n        let sanitizedSectionId;\n        // Handle case of section ID from section DOM element being passed in (i.e. prepended with 'shopify-section-')\n        if (sectionId.startsWith('shopify-section-')) {\n            sanitizedSectionId = sectionId.split('shopify-section-')[1];\n        } else {\n            sanitizedSectionId = sectionId;\n        }\n        if (options === null || options === void 0 ? void 0 : options.targetId) {\n            fullUrl.hash = options.targetId;\n        }\n        fullUrl.searchParams.append('section_id', sanitizedSectionId);\n        return fullUrl.toString().replace(FAKE_HOST, '');\n    }\n\n    var __rest = undefined && undefined.__rest || function(s, e) {\n        var t = {};\n        for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n        if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++){\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n        }\n        return t;\n    };\n    const ANIMATE_CONTEXT_KEY = Symbol('ANIMATE_CONTEXT_KEY');\n    function motion(Alpine) {\n        Alpine.directive('animate', ($el, { expression , modifiers  }, { evaluateLater , effect  })=>{\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!expression) {\n                throw new Error('Expected x-animate to be passed a motion keyframes object but was passed nothing. See https://motion.dev/dom/animate#keyframes');\n            }\n            const keyframesFn = evaluateLater(expression);\n            const context = Alpine.reactive({\n                controls: null\n            });\n            // Autoplay the animation unless .pause modifier is present\n            const autoplay = !modifiers.includes('pause');\n            effect(()=>{\n                keyframesFn((keyframes)=>{\n                    if (!isPlainObject(keyframes)) {\n                        throw new Error(String.raw`Expected x-animate to be passed a motion keyframes object but got '${String(keyframes)}'. See https://motion.dev/dom/animate#keyframes`);\n                    }\n                    context.controls = animate($el, keyframes, {\n                        autoplay\n                    });\n                });\n                // Make controls available on node\n                Alpine.addScopeToNode($el, {\n                    [ANIMATE_CONTEXT_KEY]: context\n                });\n            });\n        });\n        Alpine.directive('animate-scroll', ($el, { expression  }, { evaluate  })=>{\n            if (!isHtmlElement($el)) {\n                throw new Error(`Expected HTMLElement but got ${$el}`);\n            }\n            if (!expression) {\n                throw new Error('Expected x-animate to be passed a motion keyframes object but was passed nothing. See https://motion.dev/dom/animate#keyframes');\n            }\n            const keyframes = evaluate(expression);\n            Alpine.bind($el, {\n                'x-data' () {\n                    return {\n                        __animateScroll_isVisible: false,\n                        __animateScroll_animation: null,\n                        __animateScroll_cancelScrollAnimation: null,\n                        init () {\n                            this.__animateScroll_animation = animate($el, keyframes);\n                            this.$watch('__animateScroll_isVisible', (isVisible)=>{\n                                var _a, _b;\n                                if (isVisible) {\n                                    (_a = this.__animateScroll_cancelScrollAnimation) === null || _a === void 0 ? void 0 : _a.call(this);\n                                    this.__animateScroll_cancelScrollAnimation = scroll(this.__animateScroll_animation, {\n                                        target: $el,\n                                        offset: [\n                                            '0% 100%',\n                                            '100% 0%'\n                                        ]\n                                    });\n                                } else {\n                                    (_b = this.__animateScroll_cancelScrollAnimation) === null || _b === void 0 ? void 0 : _b.call(this);\n                                }\n                            });\n                        },\n                        destroy () {\n                            var _a;\n                            (_a = this.__animateScroll_cancelScrollAnimation) === null || _a === void 0 ? void 0 : _a.call(this);\n                        }\n                    };\n                },\n                'x-intersect:enter': '__animateScroll_isVisible = true',\n                'x-intersect:leave': '__animateScroll_isVisible = false'\n            });\n        });\n        Alpine.directive('animate-scroll-stagger', ($el, { expression , value  }, { evaluate  })=>{\n            if (value == 'enter') {\n                const keyframes = evaluate(expression);\n                Alpine.bind($el, {\n                    'x-init' () {\n                        this.$data.__animateScrollStagger_enterKeyframes = keyframes;\n                    }\n                });\n            } else if (value == 'leave') {\n                const keyframes = evaluate(expression);\n                Alpine.bind($el, {\n                    'x-init' () {\n                        this.$data.__animateScrollStagger_leaveKeyframes = keyframes;\n                    }\n                });\n            } else {\n                const _a1 = expression ? evaluate(expression) : {}, { selector: optionalSelector , stagger: optionalStagger , scrollOffset: optionalScrollOffset  } = _a1, visibleKeyframes1 = __rest(_a1, [\n                    \"selector\",\n                    \"stagger\",\n                    \"scrollOffset\"\n                ]);\n                const selector = optionalSelector || '[data-animate-stagger-item]';\n                let stagger1 = optionalStagger || 0.2;\n                let scrollOffset = optionalScrollOffset || [\n                    '25% 100%',\n                    '0% 50%',\n                    '0% 0%',\n                    '75% 0%'\n                ];\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            __animateScrollStagger_cancelScroll: null,\n                            __animateScrollStagger_fitsInViewport: null,\n                            __animateScrollStagger_didBeginFullyVisible: false,\n                            __animateScrollStagger_wasFullyVisible: null,\n                            __animateScrollStagger_isFullyVisible: null,\n                            __animateScrollStagger_wasPartiallyVisible: null,\n                            __animateScrollStagger_isPartiallyVisible: null,\n                            __animateScrollStagger_enterKeyframes: {},\n                            __animateScrollStagger_visibleKeyframes: visibleKeyframes1,\n                            __animateScrollStagger_leaveKeyframes: {},\n                            get __animateScrollStagger_items () {\n                                return Array.from($el.querySelectorAll(selector));\n                            },\n                            init () {\n                                this.$watch('__animateScrollStagger_wasFullyVisible', (isFullyVisible)=>{\n                                    this.__animateScrollStagger_wasFullyVisible = isFullyVisible;\n                                });\n                                this.$watch('__animateScrollStagger_wasPartiallyVisible', (isPartiallyVisible)=>{\n                                    this.__animateScrollStagger_wasPartiallyVisible = isPartiallyVisible;\n                                });\n                            },\n                            destroy () {\n                                this.__animateScrollStagger_cancelScrollAnimation();\n                            },\n                            __animateScrollStagger_startScrollAnimation () {\n                                if (this.__animateScrollStagger_cancelScroll !== null) return;\n                                // Duration of the staggerItem animation. Doesn't have any effect when using the scroll animation\n                                const staggerItemDuration = 1.0;\n                                // The offset (in terms of % of staggerItem duration) that each staggerItem should be offset from the previous staggerItem\n                                const staggerItemOffset = stagger1 || 0.2;\n                                // When each staggerItem animation should start in relation to the previous staggerItem\n                                const at = `-${staggerItemDuration * (1 - staggerItemOffset)}`;\n                                // staggerItem animation sequence when element enters the viewport\n                                const entrySequence = this.__animateScrollStagger_items.map((staggerEl)=>[\n                                        staggerEl,\n                                        this.__animateScrollStagger_enterKeyframes,\n                                        {\n                                            duration: staggerItemDuration,\n                                            at: at\n                                        }, \n                                    ]\n                                );\n                                const visibleKeyframes = this.__animateScrollStagger_visibleKeyframes !== null && Object.keys(this.__animateScrollStagger_visibleKeyframes).length > 0 ? this.__animateScrollStagger_visibleKeyframes : buildStaticKeyframes(this.__animateScrollStagger_enterKeyframes);\n                                // Sequence to run when the element is fully visible where no animation occurs\n                                const visibleSequence = this.__animateScrollStagger_items.map((staggerEl)=>[\n                                        staggerEl,\n                                        visibleKeyframes,\n                                        {\n                                            duration: staggerItemDuration,\n                                            at: at\n                                        }, \n                                    ]\n                                );\n                                // staggerItem animation sequence when element exits the viewport\n                                const exitSequence = this.__animateScrollStagger_items.map((staggerEl)=>[\n                                        staggerEl,\n                                        this.__animateScrollStagger_leaveKeyframes,\n                                        {\n                                            duration: staggerItemDuration,\n                                            at: at\n                                        }, \n                                    ]\n                                );\n                                if (this.__animateScrollStagger_fitsInViewport == false) {\n                                    // If the element doesn't fit in the viewport height wise we only use the entry sequence\n                                    // and run it the whole time the element is in the viewport\n                                    this.__animateScrollStagger_cancelScroll = scroll(animate(entrySequence), {\n                                        target: $el,\n                                        offset: [\n                                            '0% 100%',\n                                            '100% 0%'\n                                        ]\n                                    });\n                                } else {\n                                    this.__animateScrollStagger_cancelScroll = scroll(animate([\n                                        ...entrySequence,\n                                        ...visibleSequence,\n                                        ...exitSequence\n                                    ]), {\n                                        target: $el,\n                                        offset: scrollOffset\n                                    });\n                                }\n                            },\n                            __animateScrollStagger_cancelScrollAnimation () {\n                                var _a;\n                                (_a = this.__animateScrollStagger_cancelScroll) === null || _a === void 0 ? void 0 : _a.call(this);\n                                this.__animateScrollStagger_cancelScroll = null;\n                            }\n                        };\n                    },\n                    'x-intersect:enter.threshold.0': '__animateScrollStagger_isPartiallyVisible = true',\n                    'x-intersect:leave.threshold.0': '__animateScrollStagger_isPartiallyVisible = false',\n                    'x-intersect:enter.full': '__animateScrollStagger_isFullyVisible = true',\n                    'x-intersect:leave.full': '__animateScrollStagger_isFullyVisible = false',\n                    async 'x-effect' () {\n                        if (this.__animateScrollStagger_wasFullyVisible == null && this.__animateScrollStagger_isFullyVisible) {\n                            // Whenever the element is fully visible, play the in view animation then start the scroll animation once it's done\n                            this.__animateScrollStagger_startScrollAnimation();\n                        } else if (this.__animateScrollStagger_isFullyVisible == false) {\n                            if (this.__animateScrollStagger_isPartiallyVisible == true) {\n                                // Whenever the element is partially visible, start the scroll animation\n                                this.__animateScrollStagger_startScrollAnimation();\n                            } else if (this.__animateScrollStagger_wasPartiallyVisible == true && this.__animateScrollStagger_isPartiallyVisible == false) {\n                                // Stop the scroll animation when element has fully exited the viewport\n                                this.__animateScrollStagger_cancelScrollAnimation();\n                            }\n                        }\n                    },\n                    'x-resize' () {\n                        this.__animateScrollStagger_fitsInViewport = this.$height <= window.innerHeight;\n                    }\n                });\n            }\n        });\n        Alpine.magic('m', handleMotionMagic());\n        Alpine.magic('animation', ($el)=>{\n            const context = Alpine.$data($el)[ANIMATE_CONTEXT_KEY];\n            if (!context) throw new Error('$animation needs to be used on or inside an element with x-animate directive');\n            return context.controls;\n        });\n    }// TODO Test me\n    /**\n     * Creates a reactive motion value that updates Alpine state when the motion value changes.\n     *\n     * @param Alpine\n     * @param initialMotionValue\n     * @returns MotionValue<T>\n     */ function reactiveMotionValue(_Alpine, initialMotionValue) {\n        const value = motionValue(initialMotionValue);\n        const reactiveValue = _Alpine.reactive({\n            value: value.get()\n        });\n        value.on('change', (newValue)=>{\n            reactiveValue.value = newValue;\n        });\n        return new Proxy(value, {\n            get (target, prop, receiver) {\n                if (prop === 'get') {\n                    // Calling this here is a bit of a hack to make vue/reactivity pick up changes to the motion value\n                    reactiveValue.value;\n                }\n                return Reflect.get(target, prop, receiver);\n            }\n        });\n    }\n    function handleMotionMagic(_Alpine) {\n        return function(_$el) {\n            return {\n                animate,\n                stagger,\n                spring,\n                scroll,\n                inView,\n                motionValue,\n                mapValue,\n                transformValue,\n                springValue,\n                attrEffect,\n                svgEffect,\n                propEffect,\n                styleEffect,\n                animateView,\n                transform\n            };\n        };\n    }\n    /**\n     * Builds a keyframes object that has the last value of each keyframe\n     *\n     * @param enterKeyframes\n     * @returns ObjectTarget<{}>\n     */ function buildStaticKeyframes(enterKeyframes) {\n        return Object.entries(enterKeyframes).reduce((keyframes, [key, value])=>{\n            return Object.assign(Object.assign({}, keyframes), {\n                [key]: Array.isArray(value) ? value.length > 1 ? [\n                    value[1],\n                    value[1]\n                ] : value[0] : [\n                    value,\n                    value\n                ]\n            });\n        }, {});\n    }\n\n    /**\n     * Enables the creation of stepper components.\n     * The 'x-stepper' directive provide functionality for managing stepper input fields.\n     *\n     * x-stepper -  The root element of the stepper, initializing the stepper functionality and adding a data context for child directives. Use the 'modal' modifier (x-dialog.modal) to make the dialog modal.\n     * x-stepper:input - The input element\n     * x-stepper:minus - The minus button\n     * x-stepper:plus - The plus button\n     *\n     * @example\n     *\n      <div x-stepper>\n        <button type=\"button\" x-stepper:minus>\u2212</button>\n        <input type=\"number\" name=\"stepper\" min=\"1\" max=\"10\" value=\"1\" x-stepper:input>\n        <button type=\"button\" x-stepper:plus>+</button>\n      </div>\n\n     */ function stepper(Alpine) {\n        Alpine.directive('stepper', ($el, data)=>{\n            if (data.value == 'input') {\n                handleInput($el, Alpine);\n            } else if (data.value == 'minus') {\n                handleButtonMinus($el, Alpine);\n            } else if (data.value == 'plus') {\n                handleButtonPlus($el, Alpine);\n            } else if (data.value == null) {\n                handleRoot$1($el, Alpine);\n            } else {\n                throw new Error(`Unknown directive: x-stepper:${data.value}`);\n            }\n        }).before('bind');\n        Alpine.magic('stepper', ($el)=>{\n            const $data = Alpine.$data($el);\n            return {\n                value: $data.__stepper_value\n            };\n        });\n    }function handleInput($el, Alpine) {\n        if (isInputNumberElement($el)) {\n            const $data = Alpine.$data($el);\n            $data.__stepper_min = Number($el.min);\n            $data.__stepper_max = $el.max ? Number($el.max) : null;\n            Alpine.bind($el, {\n                'x-init': '__stepper_input = $el',\n                'x-model.fill.number': '__stepper_value'\n            });\n        } else {\n            throw new Error(`Expected <input type=\"number\"> tag for x-stepper:input but got ${$el}`);\n        }\n    }\n    function handleButtonMinus($el, Alpine) {\n        if (isButtonElement($el)) {\n            Alpine.bind($el, {\n                '@click.prevent' () {\n                    this.__stepper_decrement();\n                },\n                ':disabled': '__stepper_isAtMin'\n            });\n        } else {\n            throw new Error(`Expected <button> tag for x-stepper:minus but got ${$el}`);\n        }\n    }\n    function handleButtonPlus($el, Alpine) {\n        if (isButtonElement($el)) {\n            Alpine.bind($el, {\n                '@click.prevent' () {\n                    this.__stepper_increment();\n                },\n                ':disabled': '__stepper_isAtMax'\n            });\n        } else {\n            throw new Error(`Expected <button> tag for x-stepper:plus but got ${$el}`);\n        }\n    }\n    function handleRoot$1($el, Alpine) {\n        Alpine.bind($el, {\n            ['x-data'] () {\n                return stepper$1();\n            },\n            'x-modelable': '__stepper_value',\n            '@click.self' () {\n                var _a;\n                (_a = this.__stepper_input) === null || _a === void 0 ? void 0 : _a.focus();\n            }\n        });\n    }\n    function stepper$1() {\n        return {\n            __stepper_input: null,\n            __stepper_min: 0,\n            __stepper_max: null,\n            __stepper_value: null,\n            get __stepper_isAtMin () {\n                return this.__stepper_min === this.__stepper_value;\n            },\n            get __stepper_isAtMax () {\n                return this.__stepper_max === this.__stepper_value;\n            },\n            __stepper_decrement () {\n                var _a, _b;\n                if ((_a = this.__stepper_input) === null || _a === void 0 ? void 0 : _a.disabled) return;\n                (_b = this.__stepper_input) === null || _b === void 0 ? void 0 : _b.stepDown();\n                this.__stepper_updateValue();\n                this.$dispatch('decrement', this.__stepper_value);\n            },\n            __stepper_increment () {\n                var _a, _b;\n                if ((_a = this.__stepper_input) === null || _a === void 0 ? void 0 : _a.disabled) return;\n                (_b = this.__stepper_input) === null || _b === void 0 ? void 0 : _b.stepUp();\n                this.__stepper_updateValue();\n                this.$dispatch('increment', this.__stepper_value);\n            },\n            __stepper_updateValue () {\n                var _a;\n                this.__stepper_value = Number((_a = this.__stepper_input) === null || _a === void 0 ? void 0 : _a.value) || 0;\n            }\n        };\n    }\n\n    function clone(Alpine) {\n        Alpine.directive('clone', ($targetEl, { expression  }, { effect , evaluateLater , cleanup  })=>{\n            // Function which will evaluate to the source element that will be cloned into the target element\n            const sourceElFn = evaluateLater(expression);\n            if (!isHtmlElement($targetEl)) {\n                throw new Error(`Expected HTMLElement but got ${$targetEl}`);\n            }\n            $targetEl._x_insertClone = (sourceEl)=>{\n                var _a;\n                if (!isHtmlElement(sourceEl)) return;\n                if (!isTemplateElement($targetEl)) {\n                    throw new Error(`x-clone can only be used on a <template> tag`);\n                }\n                if ($targetEl._x_clonedElement) {\n                    (_a = $targetEl._x_undoClone) === null || _a === void 0 ? void 0 : _a.call($targetEl);\n                }\n                let clone = isTemplateElement(sourceEl) ? sourceEl.content.cloneNode(true).firstElementChild : sourceEl.cloneNode(true);\n                if (!clone) return;\n                // Add new parent element's scope to cloned element\n                Alpine.addScopeToNode(clone, {}, $targetEl);\n                Alpine.mutateDom(()=>{\n                    // Insert cloned node after element with x-clone attribute\n                    $targetEl.after(clone);\n                    // Re-initialize alpine on cloned node\n                    Alpine.skipDuringClone(()=>Alpine.initTree(clone)\n                    )();\n                });\n                $targetEl._x_clonedElement = clone;\n                $targetEl._x_undoClone = ()=>{\n                    Alpine.destroyTree(clone);\n                    clone.remove();\n                    delete $targetEl._x_clonedElement;\n                };\n            };\n            effect(()=>{\n                sourceElFn(($sourceEl)=>{\n                    $targetEl._x_insertClone($sourceEl);\n                });\n            });\n            cleanup(()=>$targetEl._x_undoClone && $targetEl._x_undoClone()\n            );\n        }).before('bind');\n        Alpine.magic('clone', ($el)=>{\n            return $el._x_insertClone;\n        });\n    }\n\n    /**\n     * Formats a number as currency based on locale and currency settings.\n     * Supports displaying currency symbol, code, or name. Allows optional rounding and customization of display.\n     * Utilizes the Intl.NumberFormat API to manage currency formatting complexities, providing better consistency\n     * across different markets, locales, and currencies, in contrast to Shopify's Liquid limitations.\n     *\n     * Expects the following code in theme.liquid:\n     *  window.theme.currency: {\n     *    currencyCode: '{{ cart.currency.iso_code }}',\n     *    locale:  '{{ request.locale.iso_code }}'\n     *  };\n     *  window.theme.translations: {\n     *    other: {\n     *      free: {{ 'other.free' | t | json }},\n     *    }\n     *  };\n     *\n     *\n     * Using money_with_trailing_zeros with CurrencyFormat={rounded: true | false | undefined}\n     * - true matches `money | rounded`\n     * - undefined matches `money_without_trailing_zeros`\n     * - false matches `money`\n     *\n     * References:\n     * - ISO 4217 currency codes via Unicode CLDR for currency translation.\n     * - Uses browser\u2019s Intl.NumberFormat for better handling across locales, removing Liquid inconsistencies.\n     */ function formatCurrency(amount, format = {}) {\n        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n        // Set up defaults\n        let defaultCurrency = 'USD'; // Fallback if nothing is available\n        let defaultLocale = 'en-US'; // Fallback if locale isn't provided\n        let defaultFreeTranslation;\n        // Retrieve defaults from theme/Shopify if present\n        if (typeof window !== 'undefined') {\n            defaultCurrency = ((_b = (_a = window.theme) === null || _a === void 0 ? void 0 : _a.currency) === null || _b === void 0 ? void 0 : _b.currencyCode) || ((_d = (_c = window.Shopify) === null || _c === void 0 ? void 0 : _c.currency) === null || _d === void 0 ? void 0 : _d.active) || defaultCurrency;\n            defaultLocale = ((_f = (_e = window.theme) === null || _e === void 0 ? void 0 : _e.currency) === null || _f === void 0 ? void 0 : _f.locale) || ((_g = window.Shopify) === null || _g === void 0 ? void 0 : _g.locale) || defaultLocale;\n            defaultFreeTranslation = (_k = (_j = (_h = window.theme) === null || _h === void 0 ? void 0 : _h.translations) === null || _j === void 0 ? void 0 : _j.other) === null || _k === void 0 ? void 0 : _k.free;\n        }\n        // Destructure format options, applying defaults\n        const { form ='short' , rounded , currency =defaultCurrency , locale =defaultLocale , legacyFormat  } = format;\n        // Handle null, undefined, or NaN amount\n        if (amount == null || isNaN(amount)) {\n            return 'x.xx'; // Fallback to generic price with no language context\n        }\n        // Handle 'Free' case or zero\n        if (amount === 0 && form === 'short' && rounded === true && defaultFreeTranslation) {\n            return defaultFreeTranslation;\n        }\n        // Liquid returns cents for all currencies including YEN\n        const amountInDollars = amount / 100;\n        // Use legacy formatting if specified\n        let amountWithSymbol;\n        if (legacyFormat) {\n            amountWithSymbol = formatCurrencyLegacy(amountInDollars, {\n                currency,\n                legacyFormat,\n                rounded: format.rounded\n            });\n        } else {\n            amountWithSymbol = formatCurrencyNew(amountInDollars, {\n                currency,\n                locale,\n                rounded: format.rounded\n            });\n        }\n        // Append currency code if explicit form is specified\n        const codeString = form === 'explicit' ? ` ${currency}` : '';\n        return `${amountWithSymbol}${codeString}`;\n    }\n    function formatCurrencyNew(amount, format) {\n        // Configure Intl.NumberFormat options\n        const options = {\n            style: 'currency',\n            currency: format.currency,\n            currencyDisplay: 'symbol'\n        };\n        // Adjust fraction digits based on the amount and rounding option\n        if (format.rounded) {\n            options.maximumFractionDigits = 0;\n        }\n        // Use Intl.NumberFormat to format the currency\n        let price = new Intl.NumberFormat(format.locale, options).format(amount);\n        // Remove decimals if they are zeros and rounding is not specified\n        if (typeof format.rounded === 'undefined') {\n            // ([.,]00)\u2003\u2013 matches \u201C.00\u201D or \u201C,00\u201D\n            // (?=\\D*$)\u2003\u2013 ensures that only non-digits follow the decimals\u201D\n            price = price.replace(/([.,]00)(?=\\D*$)/g, '');\n        }\n        return price;\n    }\n    /**\n     * Deprecated liquid Currency Helpers\n     * -----------------------------------------------------------------------------\n     * Based on @shopify/theme-currency but updated with new liquid currency options.\n     * This function should be phased out in favor of the new `formatCurrency`.\n     */ function formatCurrencyLegacy(amount, format) {\n        var _a;\n        // Destructure format options, applying defaults\n        const legacyFormat = (_a = format.legacyFormat) !== null && _a !== void 0 ? _a : '${{amount}}';\n        let precision1 = 2;\n        if (format.rounded) precision1 = 0;\n        // Helper to format numbers with thousands and decimal separators\n        const formatWithDelimiters = (number, precision = 2, thousands = ',', decimal = '.')=>{\n            if (isNaN(number) || number == null) {\n                return '0';\n            }\n            number = parseFloat(number.toFixed(precision));\n            const parts = number.toFixed(precision).split('.');\n            const dollarsAmount = parts[0].replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, `$1${thousands}`); // regex adds a ',' for thousands(every 3 digits - 1,234,567)\n            const centsAmount = parts[1] ? decimal + parts[1] : '';\n            return dollarsAmount + centsAmount;\n        };\n        // Regex for extracting liquid format placeholder - {{ something }}\n        const placeholderRegex = /\\{\\{\\s*(\\w+)\\s*\\}\\}/;\n        const match = legacyFormat.match(placeholderRegex);\n        let formattedValue = '';\n        if (match) {\n            // Handle different liquid-like formats\n            switch(match[1]){\n                case 'amount':\n                    formattedValue = formatWithDelimiters(amount, precision1);\n                    break;\n                case 'amount_no_decimals':\n                    formattedValue = formatWithDelimiters(amount, precision1);\n                    break;\n                case 'amount_with_comma_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, '.', ',');\n                    break;\n                case 'amount_no_decimals_with_comma_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, '.', ',');\n                    break;\n                case 'amount_with_apostrophe_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, \"'\", '.');\n                    break;\n                case 'amount_no_decimals_with_space_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, ' ');\n                    break;\n                case 'amount_with_space_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, ' ', ',');\n                    break;\n                case 'amount_with_period_and_space_separator':\n                    formattedValue = formatWithDelimiters(amount, precision1, ' ', '.');\n                    break;\n                default:\n                    throw new Error(`Unknown format type: ${match[1]}`);\n            }\n            // Replace the placeholder in format string with the formatted value\n            formattedValue = legacyFormat.replace(placeholderRegex, formattedValue);\n            // Remove decimals if they are zeros and rounding is not specified\n            if (typeof format.rounded === 'undefined' && legacyFormat.includes('no_decimals')) {\n                // ([.,]00)\u2003\u2013 matches \u201C.00\u201D or \u201C,00\u201D\n                // (?=\\D*$)\u2003\u2013 ensures that only non-digits follow the decimals\u201D\n                formattedValue = formattedValue.replace(/([.,]00)(?=\\D*$)/g, '');\n            }\n        }\n        // Append currency if provided\n        return formattedValue;\n    }\n    /**\n     * Calculates currency for rate\n     * -----------------------------------------------------------------------------\n     */ function convertCurrency(amount, rate) {\n        var _a, _b;\n        const currencyRate = rate || ((_b = (_a = window.Shopify) === null || _a === void 0 ? void 0 : _a.currency) === null || _b === void 0 ? void 0 : _b.rate) || 1;\n        // Handle null, undefined, or NaN amount\n        if (amount == null || isNaN(amount)) {\n            amount = 0;\n        }\n        return amount * currencyRate;\n    }\n\n    // See utils/currency.ts for details on the complexity of currency formatting\n    function currency(Alpine) {\n        Alpine.magic('formatCurrency', ()=>{\n            return formatCurrency;\n        });\n        Alpine.magic('convertCurrency', ()=>{\n            return convertCurrency;\n        });\n    }\n\n    const DEFAULT_SPEED = 60; // px/s\n    const DEFAULT_ATTRIBUTE_BLACKLIST = [\n        'id'\n    ];\n    /**\n     * This plugin provides a smoothly scrolling marquee effect by creating duplicates of items in a\n     * \u201Csource\u201D element and placing them into a matching \u201Ctarget\u201D container. As the original content\n     * scrolls away, the duplicated set seamlessly appears, forming an infinite loop that prevents any\n     * abrupt restart.\n     *\n     * Inspired by: https://ryanmulligan.dev/blog/css-marquee/\n     *\n     * Modifiers:\n     *  - speed.X: Adjusts the scrolling pace (e.g., speed.60 sets 60px per second). Negative value scrolls backwards\n     *  - fill: Ensures content is repeated and appended until the visual area is completely covered.\n     *  - pause: Begins the marquee in a paused state, requiring a play action to begin moving.\n     *\n     * General usage:\n     *  1. Mark the scrolled content with x-marquee:source.\n     *  2. Provide an empty container with x-marquee:target, to receive the duplicated set of items.\n     *  3. Attach x-marquee to a parent element with optional modifiers like speed.X, fill, or pause.\n     *\n     * Programmatic control is available through $marquee, enabling methods like play, pause, or toggle\n     * at any time.\n     *\n     * @example\n     *   <div x-data x-marquee.speed.60.fill>\n     *     <div x-marquee:source>\n     *       <span>First Item</span>\n     *       <span>Second Item</span>\n     *       <span>Third Item</span>\n     *     </div>\n     *     <div x-marquee:target aria-hidden=\"true\"></div>\n     *   </div>\n     *\n     */ function marquee(Alpine) {\n        Alpine.directive('marquee', ($el, { value , modifiers  })=>{\n            if (value == 'source') {\n                Alpine.bind($el, {\n                    'x-init': '__marquee_sourceEl = $el'\n                });\n            } else if (value == 'target') {\n                Alpine.bind($el, {\n                    'x-init': '__marquee_targetEl = $el'\n                });\n            } else if (value == null) {\n                let speed = DEFAULT_SPEED;\n                let fill = modifiers.includes('fill');\n                let autoplay = !modifiers.includes('pause');\n                if (modifiers.includes('speed')) {\n                    speed = Number(modifiers[modifiers.indexOf('speed') + 1]);\n                }\n                Alpine.bind($el, {\n                    'x-data' () {\n                        return {\n                            __marquee_state: buildMarqueeState({\n                                isPlaying: autoplay\n                            }),\n                            __marquee_isInitialized: false,\n                            __marquee_isRendering: false,\n                            __marquee_sourceEl: null,\n                            __marquee_targetEl: null,\n                            __marquee_originalContentFragment: document.createDocumentFragment(),\n                            __marquee_originalContentWidth: 0,\n                            __marquee_sourceElWidth: 0,\n                            __marquee_viewportWidth: 0,\n                            __marquee_sourceAnimation: null,\n                            __marquee_targetAnimation: null,\n                            __marquee_sentinel: null,\n                            get __marquee_animationDuration () {\n                                return this.__marquee_sourceElWidth / Math.abs(speed) * 1000;\n                            },\n                            /**\n                             * Clones source el children until source element width is gte to viewport width\n                             */ __marquee_fillSource () {\n                                return new Promise((resolve)=>{\n                                    // When the marquee does not have width, i.e. it was initially hidden\n                                    if (this.__marquee_originalContentWidth === 0) {\n                                        // Measure the width of the original content so we know later how many times to clone it\n                                        this.__marquee_originalContentWidth = this.__marquee_sourceEl.clientWidth;\n                                        this.__marquee_sourceElWidth = this.__marquee_originalContentWidth;\n                                    }\n                                    // If we haven't yet added our sentinel, do it now:\n                                    if (!this.__marquee_sentinel) {\n                                        Alpine.mutateDom(()=>{\n                                            // Use a comment node or any other marker\n                                            this.__marquee_sentinel = document.createComment('marquee-sentinel');\n                                            this.__marquee_sourceEl.appendChild(this.__marquee_sentinel);\n                                        });\n                                    } else {\n                                        Alpine.mutateDom(()=>{\n                                            // Remove all nodes after the sentinel, so we don't stack infinite clones when re-rendering\n                                            let next = this.__marquee_sentinel.nextSibling;\n                                            while(next){\n                                                const toRemove = next;\n                                                next = next.nextSibling;\n                                                this.__marquee_sourceEl.removeChild(toRemove);\n                                            }\n                                            // Update the original content width in case screen size has changed it or something\n                                            this.__marquee_originalContentWidth = this.__marquee_sourceEl.clientWidth;\n                                            // Update the source element width to match the original content width now that we've removed clones\n                                            this.__marquee_sourceElWidth = this.__marquee_originalContentWidth;\n                                        });\n                                    }\n                                    const spaceToFill = Math.max(0, this.__marquee_viewportWidth - this.__marquee_originalContentWidth);\n                                    if (spaceToFill === 0) return resolve();\n                                    // Count how many times we need to clone the original content to fill the screen\n                                    const timesToClone = Math.ceil(spaceToFill / this.__marquee_originalContentWidth);\n                                    // Clone the original content until the animation wrapper fills the screen\n                                    const fragment = document.createDocumentFragment();\n                                    for(let i = 0; i < timesToClone; i++){\n                                        const clone = this.__marquee_originalContentFragment.cloneNode(true);\n                                        fragment.appendChild(clone);\n                                    }\n                                    Alpine.mutateDom(()=>{\n                                        // Insert the new clones after our sentinel:\n                                        this.__marquee_sentinel.after(fragment);\n                                        Alpine.skipDuringClone(()=>Alpine.initTree(this.__marquee_sourceEl)\n                                        )();\n                                        // Wait until next paint to measure the new width of the source element so we don't cause a reflow\n                                        window.requestAnimationFrame(()=>{\n                                            this.__marquee_sourceElWidth = this.__marquee_sourceEl.clientWidth;\n                                            resolve();\n                                        });\n                                    });\n                                });\n                            },\n                            __marquee_cloneSourceToTarget () {\n                                return new Promise((resolve)=>{\n                                    // If the content is smaller than the viewport, don't duplicate the content because we're not\n                                    if (this.__marquee_sourceElWidth < this.__marquee_viewportWidth) {\n                                        return resolve();\n                                    }\n                                    Alpine.mutateDom(()=>{\n                                        // Clone the nodes from the source to the target\n                                        const clone = this.__marquee_sourceEl.cloneNode(true);\n                                        this.__marquee_targetEl.replaceChildren(...clone.children);\n                                        // Re-initialize alpine on cloned nodes\n                                        Alpine.skipDuringClone(()=>Alpine.initTree(this.__marquee_targetEl)\n                                        )();\n                                        resolve();\n                                    });\n                                });\n                            },\n                            __marquee_setupAnimations () {\n                                var _a, _b;\n                                const animationDirection = speed < 0 ? 'reverse' : 'normal';\n                                const animationDurationInMs = this.__marquee_animationDuration;\n                                const keyframes = [\n                                    {\n                                        transform: `translateX(0%)`\n                                    },\n                                    {\n                                        transform: `translateX(-100%)`\n                                    }\n                                ];\n                                const animationOptions = {\n                                    duration: animationDurationInMs,\n                                    iterations: Infinity,\n                                    direction: animationDirection\n                                };\n                                if (this.__marquee_sourceAnimation == null) {\n                                    let sourceAnimation = new Animation(new KeyframeEffect(this.__marquee_sourceEl, keyframes, animationOptions));\n                                    this.__marquee_sourceAnimation = sourceAnimation;\n                                } else {\n                                    (_a = this.__marquee_sourceAnimation.effect) === null || _a === void 0 ? void 0 : _a.updateTiming({\n                                        duration: animationDurationInMs\n                                    });\n                                }\n                                if (this.__marquee_targetAnimation == null) {\n                                    let targetAnimation = new Animation(new KeyframeEffect(this.__marquee_targetEl, keyframes, animationOptions));\n                                    targetAnimation.startTime = this.__marquee_sourceAnimation.startTime;\n                                    targetAnimation.currentTime = this.__marquee_sourceAnimation.currentTime;\n                                    this.__marquee_targetAnimation = targetAnimation;\n                                } else {\n                                    (_b = this.__marquee_targetAnimation.effect) === null || _b === void 0 ? void 0 : _b.updateTiming({\n                                        duration: animationDurationInMs\n                                    });\n                                }\n                                if (this.__marquee_state.isPlaying && this.__marquee_sourceElWidth > this.__marquee_viewportWidth) {\n                                    this.__marquee_sourceAnimation.play();\n                                    this.__marquee_targetAnimation.play();\n                                }\n                            },\n                            __marquee_scrollTo (element) {\n                                var _a, _b;\n                                let offset = element.offsetLeft / this.__marquee_sourceElWidth * 100;\n                                const animationProgress = ((_b = (_a = this.__marquee_sourceAnimation) === null || _a === void 0 ? void 0 : _a.effect) === null || _b === void 0 ? void 0 : _b.getComputedTiming().progress) * 100;\n                                const buffer = 2; // To allow for the focus outline to be fully visible\n                                const targetElementPosition = -(offset - buffer - animationProgress);\n                                this.__marquee_sourceAnimation.effect.setKeyframes([\n                                    {\n                                        transform: `translateX(${targetElementPosition}%)`\n                                    },\n                                    {\n                                        transform: `translateX(${targetElementPosition - 100}%)`\n                                    }, \n                                ]);\n                                this.__marquee_targetAnimation.effect.setKeyframes([\n                                    {\n                                        transform: `translateX(${targetElementPosition}%)`\n                                    },\n                                    {\n                                        transform: `translateX(${targetElementPosition - 100}%)`\n                                    }, \n                                ]);\n                            },\n                            async __marquee_render () {\n                                if (this.__marquee_isRendering) return;\n                                try {\n                                    this.__marquee_isRendering = true;\n                                    if (fill) {\n                                        await this.__marquee_fillSource();\n                                    }\n                                    await this.__marquee_cloneSourceToTarget();\n                                    // Don't animate if in reduced motion mode\n                                    if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {\n                                        // Setup animations after the content has been cloned in order to measure the width of the content element without causing reflow\n                                        this.__marquee_setupAnimations();\n                                    }\n                                    this.__marquee_isInitialized = true;\n                                    window.requestAnimationFrame(()=>{\n                                        this.__marquee_isRendering = false;\n                                    });\n                                } finally{\n                                    this.__marquee_isRendering = false;\n                                }\n                            },\n                            init () {\n                                this.$nextTick(()=>{\n                                    if (this.__marquee_sourceEl == null) {\n                                        throw new Error('Source element not found, x-marquee:source must be applied to a child element of the x-marquee directive');\n                                    }\n                                    if (this.__marquee_targetEl == null) {\n                                        throw new Error('Target element not found, x-marquee:target must be applied to a child element of the x-marquee directive');\n                                    }\n                                    // Clone the contents of the animation wrapper so we can clone it until the animation wrapper fills the screen\n                                    Array.from(this.__marquee_sourceEl.children).forEach((element)=>{\n                                        const clone = element.cloneNode(true);\n                                        for (const blacklistedAttribute of DEFAULT_ATTRIBUTE_BLACKLIST){\n                                            clone.removeAttribute(blacklistedAttribute);\n                                        }\n                                        this.__marquee_originalContentFragment.append(clone);\n                                    });\n                                    // Measure the width of the original content so we know later how many times to clone it\n                                    this.__marquee_originalContentWidth = this.__marquee_sourceEl.clientWidth;\n                                    this.__marquee_sourceElWidth = this.__marquee_originalContentWidth;\n                                    this.__marquee_viewportWidth = this.$el.clientWidth;\n                                    window.requestAnimationFrame(()=>{\n                                        this.__marquee_render();\n                                    });\n                                });\n                                this.$watch('__marquee_state.isPlaying', (playing)=>{\n                                    var _a, _b, _c, _d;\n                                    if (playing) {\n                                        (_a = this.__marquee_sourceAnimation) === null || _a === void 0 ? void 0 : _a.play();\n                                        (_b = this.__marquee_targetAnimation) === null || _b === void 0 ? void 0 : _b.play();\n                                    } else {\n                                        (_c = this.__marquee_sourceAnimation) === null || _c === void 0 ? void 0 : _c.pause();\n                                        (_d = this.__marquee_targetAnimation) === null || _d === void 0 ? void 0 : _d.pause();\n                                    }\n                                });\n                            },\n                            destroy () {\n                                var _a, _b, _c, _d;\n                                (_a = this.__marquee_sourceEl) === null || _a === void 0 ? void 0 : _a.replaceChildren(this.__marquee_originalContentFragment);\n                                this.__marquee_originalContentFragment = document.createDocumentFragment();\n                                (_b = this.__marquee_sentinel) === null || _b === void 0 ? void 0 : _b.remove();\n                                (_c = this.__marquee_sourceAnimation) === null || _c === void 0 ? void 0 : _c.cancel();\n                                (_d = this.__marquee_targetAnimation) === null || _d === void 0 ? void 0 : _d.cancel();\n                                this.__marquee_sourceAnimation = null;\n                                this.__marquee_targetAnimation = null;\n                            }\n                        };\n                    },\n                    'x-resize.document' () {\n                        this.__marquee_viewportWidth = this.$el.clientWidth;\n                        this.__marquee_render();\n                    }\n                });\n            } else {\n                throw new Error(`Unknown directive: x-marquee:${value}`);\n            }\n        }).before('bind');\n        Alpine.magic('marquee', ($el)=>{\n            const $data = Alpine.$data($el);\n            return {\n                get isPlaying () {\n                    var _a;\n                    return (_a = $data.__marquee_state) === null || _a === void 0 ? void 0 : _a.isPlaying;\n                },\n                play () {\n                    var _a;\n                    (_a = $data.__marquee_state) === null || _a === void 0 ? void 0 : _a.play();\n                },\n                pause () {\n                    var _a;\n                    (_a = $data.__marquee_state) === null || _a === void 0 ? void 0 : _a.pause();\n                },\n                toggle () {\n                    var _a;\n                    (_a = $data.__marquee_state) === null || _a === void 0 ? void 0 : _a.toggle();\n                },\n                scrollTo (element) {\n                    var _a;\n                    (_a = $data.__marquee_scrollTo) === null || _a === void 0 ? void 0 : _a.call($data, element);\n                },\n                get isReady () {\n                    return $data.__marquee_isInitialized;\n                }\n            };\n        });\n    }function buildMarqueeState(options) {\n        var _a;\n        return {\n            isPlaying: (_a = options === null || options === void 0 ? void 0 : options.isPlaying) !== null && _a !== void 0 ? _a : false,\n            play () {\n                this.isPlaying = true;\n            },\n            pause () {\n                this.isPlaying = false;\n            },\n            toggle () {\n                this.isPlaying = !this.isPlaying;\n            }\n        };\n    }\n\n    // Animation helpers\n    function sliderReveal(Alpine) {\n        Alpine.directive('slider-reveal', ($el, data)=>{\n            if (data.value == 'handle') {\n                handleHandle($el, Alpine);\n            } else if (data.value == 'reveal') {\n                handleReveal($el, Alpine);\n            } else if (data.value == null) {\n                handleRoot($el, Alpine, data);\n            } else {\n                throw new Error(`Unknown directive: x-slider-reveal:${data.value}`);\n            }\n        }).before('bind');\n        Alpine.magic('sliderReveal', handleSliderRevealMagic(Alpine));\n    }function handleHandle($el, Alpine, _data) {\n        Alpine.bind($el, {\n            'x-init': '__sliderReveal_handle = $el'\n        });\n    }\n    function handleReveal($el, Alpine, _data) {\n        Alpine.bind($el, {\n            'x-init': '__sliderReveal_reveal = $el'\n        });\n    }\n    function handleRoot($el, Alpine, data) {\n        const orientation = data.modifiers.includes('vertical') ? 'vertical' : 'horizontal';\n        let initialProgress = 0;\n        if (data.modifiers.includes('initial')) {\n            initialProgress = Number(data.modifiers[data.modifiers.indexOf('initial') + 1]);\n        }\n        if (data.modifiers.includes('progress')) {\n            const rawValue = data.modifiers[data.modifiers.indexOf('progress') + 1];\n            if (!rawValue) {\n                throw new Error('x-slider-reveal.progress requires a value (e.g. x-slider-reveal.progress.50%)');\n            }\n            // Support x-slider-reveal.progress.50% which will set the initial progress to 50%\n            let match = rawValue.match(/([0-9]+)%/);\n            if (match) initialProgress = Number(match[1]);\n        }\n        const progressToPercent = transform([\n            0,\n            100\n        ], [\n            '0%',\n            '100%'\n        ]);\n        Alpine.bind($el, {\n            'x-data' () {\n                return {\n                    __sliderReveal_progressMotionValue: reactiveMotionValue(Alpine, initialProgress),\n                    __sliderReveal_handle: null,\n                    __sliderReveal_reveal: null,\n                    __sliderReveal_scrollAnimationFn: null,\n                    init () {\n                        this.$nextTick(()=>{\n                            // Update elements with initial progress\n                            this.__sliderReveal_updateElements(initialProgress);\n                            // Update elements on progress change\n                            this.__sliderReveal_progressMotionValue.on('change', this.__sliderReveal_updateElements.bind(this));\n                        });\n                    },\n                    __enableScroll () {\n                        if (this.__sliderReveal_scrollAnimationFn) return;\n                        this.__sliderReveal_scrollAnimationFn = scroll((scrollProgress)=>{\n                            const currentProgress = this.__sliderReveal_progressMotionValue.get();\n                            let lowerBound = Math.max(0, currentProgress - 15);\n                            let upperBound = Math.min(100, currentProgress + 15);\n                            const scrollToProgress = transform([\n                                0.0,\n                                1.0\n                            ], [\n                                0,\n                                100\n                            ]);\n                            const progressToBoundedProgress = transform([\n                                0,\n                                100\n                            ], [\n                                lowerBound,\n                                upperBound\n                            ]);\n                            const normalizedScrollProgress = scrollToProgress(scrollProgress);\n                            const boundedNewProgress = progressToBoundedProgress(normalizedScrollProgress);\n                            this.__sliderReveal_updateElements(boundedNewProgress);\n                        }, {\n                            target: $el,\n                            offset: [\n                                'end start',\n                                'start end'\n                            ]\n                        });\n                    },\n                    __disableScroll () {\n                        var _a;\n                        (_a = this.__sliderReveal_scrollAnimationFn) === null || _a === void 0 ? void 0 : _a.call(this);\n                        this.__sliderReveal_scrollAnimationFn = null;\n                    },\n                    __sliderReveal_updateElements (progress) {\n                        const percentProgress = progressToPercent(progress);\n                        if (orientation === 'vertical') {\n                            if (this.__sliderReveal_handle) {\n                                this.__sliderReveal_handle.style.transform = `translateY(${percentProgress})`;\n                                this.__sliderReveal_reveal.style.clipPath = `inset(${percentProgress} 0% 0% 0%)`;\n                            }\n                        } else {\n                            if (this.__sliderReveal_handle) {\n                                this.__sliderReveal_handle.style.transform = `translateX(${percentProgress})`;\n                                this.__sliderReveal_reveal.style.clipPath = `inset(0% 0% 0% ${percentProgress})`;\n                            }\n                        }\n                    }\n                };\n            }\n        });\n    }\n    function handleSliderRevealMagic(Alpine) {\n        return function($el) {\n            const $data = Alpine.$data($el);\n            return {\n                get progressMotionValue () {\n                    return $data.__sliderReveal_progressMotionValue;\n                },\n                get progress () {\n                    return $data.__sliderReveal_progressMotionValue.get();\n                },\n                set progress (value){\n                    $data.__sliderReveal_progressMotionValue.set(value);\n                },\n                enableScroll () {\n                    $data.__enableScroll();\n                },\n                disableScroll () {\n                    $data.__disableScroll();\n                }\n            };\n        };\n    }\n\n    const selectors$4 = {\n        announcementBar: '[data-announcement-bar]',\n        tickerFrame: '[data-ticker-frame]',\n        tickerScale: '[data-ticker-scale]',\n        tickerText: '[data-ticker-text]'\n    };\n    const classes = {\n        isSelected: 'is-selected',\n        tickerAnimated: 'ticker--animated'\n    };\n    function announcementTicker(options = {\n        stopClone: false,\n        waitForSlider: false\n    }) {\n        var ref1;\n        return {\n            tickerFrames: (ref1 = this.$el.closest(selectors$4.announcementBar)) === null || ref1 === void 0 ? void 0 : ref1.querySelectorAll(selectors$4.tickerFrame),\n            init () {\n                var ref;\n                if ((options === null || options === void 0 ? void 0 : options.waitForSlider) && ((ref = this.tickerFrames) === null || ref === void 0 ? void 0 : ref.length) > 1) {\n                    // Optionally defer ticker initialization until the announcement slider is loaded\n                    document.addEventListener('theme:announcement:loaded', this.initTicker.bind(this));\n                } else {\n                    this.initTicker();\n                }\n            },\n            initTicker () {\n                new Ticker(this.$el, options === null || options === void 0 ? void 0 : options.stopClone);\n            },\n            toggleTicker (event, isStopped) {\n                const tickerScale = this.$el.querySelector(selectors$4.tickerScale);\n                const element = this.$el.querySelector(`[x-ref=\"${event.detail.blockId}\"]`);\n                if (!element || element.offsetParent === null) return; // No element or the element is hidden\n                if (isStopped) {\n                    const itemsSpacing = Number(getComputedStyle(element).getPropertyValue('--items-spacing').replace('px', ''));\n                    const leftPosition = -(element.offsetLeft + itemsSpacing);\n                    tickerScale.setAttribute('data-stop', '');\n                    tickerScale.querySelectorAll(selectors$4.tickerText).forEach((textHolder)=>{\n                        textHolder.classList.remove(classes.tickerAnimated);\n                        textHolder.style.transform = `translate3d(${leftPosition}px, 0, 0)`;\n                    });\n                }\n                if (!isStopped) {\n                    tickerScale.querySelectorAll(selectors$4.tickerText).forEach((textHolder)=>{\n                        textHolder.classList.add(classes.tickerAnimated);\n                        textHolder.removeAttribute('style');\n                    });\n                    tickerScale.removeAttribute('data-stop');\n                }\n            },\n            onBlockSelect (event) {\n                this.toggleTicker(event, true);\n            },\n            onBlockDeselect (event) {\n                this.toggleTicker(event, false);\n            }\n        };\n    }\n    function announcementSlider(speed = 4000) {\n        return {\n            options: {\n                initialIndex: 0,\n                autoPlay: speed,\n                contain: true,\n                pageDots: false,\n                adaptiveHeight: true,\n                wrapAround: true,\n                groupCells: false,\n                cellAlign: 'left',\n                freeScroll: false,\n                prevNextButtons: true,\n                draggable: true,\n                rightToLeft: window.isRTL,\n                on: {\n                    ready: ()=>{\n                        setTimeout(()=>{\n                            this.$el.dispatchEvent(new CustomEvent('theme:announcement:loaded', {\n                                bubbles: true,\n                                detail: {\n                                    slider: this.$el\n                                }\n                            }));\n                        }, 50);\n                    }\n                }\n            },\n            flkty: null,\n            desktopSlides: [],\n            mobileSlides: [],\n            isMobileSliderInitialized: false,\n            init () {\n                this.$nextTick(()=>{\n                    // Slow down the initialization so the 'target referrer' slides get removed by the 'x-target-referrer' directive first\n                    if (this.$el.children.length < 2) return;\n                    this.flkty = new Flickity(this.$el, this.options);\n                    this.removeDeviceSpecificSlides();\n                    resolution.onChange(()=>{\n                        this.updateDeviceSpecificSlides();\n                    });\n                    this.scrollEvent = ()=>this.scrollEvents()\n                    ;\n                    this.resizeEvent = ()=>this.resizeEvents()\n                    ;\n                    document.addEventListener('theme:resize', this.resizeEvent);\n                    document.addEventListener('theme:scroll', this.scrollEvent);\n                });\n            },\n            removeDeviceSpecificSlides () {\n                const slides = this.flkty.getCellElements();\n                slides.forEach((slide, index)=>{\n                    slide.classList.remove(classes.isSelected);\n                    if (slide.dataset.device == 'desktop') {\n                        this.desktopSlides.push([\n                            slide,\n                            index\n                        ]);\n                        if (resolution.isMobile()) {\n                            this.flkty.remove(slide);\n                        }\n                    }\n                    if (slide.dataset.device == 'mobile') {\n                        this.mobileSlides.push([\n                            slide,\n                            index\n                        ]);\n                        if (resolution.isDesktop() || resolution.isTablet()) {\n                            this.flkty.remove(slide);\n                        }\n                    }\n                });\n                // Fix slides \"transform\" position bug that appears after resizing the window just before the slide changes\n                setTimeout(()=>{\n                    this.flkty.resize();\n                }, 1000);\n                this.handleSliderAutoplay();\n                this.isMobileSliderInitialized = resolution.isMobile();\n            },\n            updateDeviceSpecificSlides () {\n                if (resolution.isDesktop() || resolution.isTablet()) {\n                    if (this.isMobileSliderInitialized) {\n                        // Insert desktop-only slides\n                        this.desktopSlides.forEach((slide)=>{\n                            this.flkty.insert(slide[0], slide[1]);\n                        });\n                        // Remove mobile-only slides\n                        this.mobileSlides.forEach((slide)=>{\n                            this.flkty.remove(slide[0]);\n                        });\n                    }\n                }\n                if (resolution.isMobile()) {\n                    if (!this.isMobileSliderInitialized) {\n                        // Insert mobile-only slides\n                        this.mobileSlides.forEach((slide)=>{\n                            this.flkty.insert(slide[0], slide[1]);\n                        });\n                        // Remove desktop-only slides\n                        this.desktopSlides.forEach((slide)=>{\n                            this.flkty.remove(slide[0]);\n                        });\n                    }\n                }\n                // Fix slides \"transform\" position bug that appears after resizing the window just before the slide changes\n                setTimeout(()=>{\n                    this.flkty.resize();\n                }, 1000);\n                this.handleSliderAutoplay();\n                this.isMobileSliderInitialized = resolution.isMobile();\n            },\n            handleSliderAutoplay () {\n                var ref;\n                if (((ref = this.flkty) === null || ref === void 0 ? void 0 : ref.slides.length) > 1) {\n                    this.flkty.playPlayer();\n                } else {\n                    this.flkty.pausePlayer();\n                }\n            },\n            resizeEvents () {\n                this.flkty.resize();\n            },\n            scrollEvents () {\n                if (!this.flkty.options.autoPlay) return;\n                const slider = this.flkty.element;\n                const sliderBottomPosition = slider.getBoundingClientRect().top + window.scrollY + slider.offsetHeight;\n                if (window.pageYOffset > sliderBottomPosition) {\n                    if (this.flkty.player.state === 'playing') {\n                        this.flkty.pausePlayer();\n                    }\n                } else if (this.flkty.player.state === 'paused') {\n                    this.flkty.playPlayer();\n                }\n            },\n            onBlockSelect (event) {\n                const slide = this.$el.querySelector(`[x-ref=\"${event.detail.blockId}\"]`);\n                if (!slide) return;\n                const slideIndex = parseInt([\n                    ...slide.parentNode.children\n                ].indexOf(slide));\n                // Go to selected slide, pause autoplay\n                this.flkty.selectCell(slideIndex);\n                this.flkty.stopPlayer();\n            },\n            onBlockDeselect () {\n                this.flkty.playPlayer();\n            },\n            onUnload () {\n                this.flkty.options.watchCSS = false;\n                this.flkty.destroy();\n            }\n        };\n    }\n    function announcement() {\n        new CartShippingMessage(this.$el);\n    }\n\n    const STATES$2 = {\n        INITIAL: 0,\n        LOADING: 1,\n        SUCCESS: 2,\n        ERROR: 3\n    };\n    const selectors$3 = {\n        popdown: '[data-product-add-popdown-wrapper]',\n        errors: '[data-add-action-errors]',\n        errorBoundary: '[data-error-boundary]',\n        errorDisplay: '[data-error-display]',\n        quickviewModal: '[data-quickview-modal]',\n        sectionTypeCart: '[data-section-type=\"cart\"]',\n        sectionTypeProduct: '[data-section-type=\"product\"]',\n        ajaxDisable: '[data-ajax-disable=\"true\"]',\n        productSlideshowDesktop: '[data-slideshow-desktop-style=\"slideshow\"]',\n        productSlideshowMobile: '[data-slideshow-mobile-style]',\n        productMediaDesktop: '[data-product-slideshow]'\n    };\n    const defaultTimes$1 = {\n        durationAddButtonDisable: 3500,\n        hideErrorTime: 5000\n    };\n    /*\n    NOTE this is an initial crack at migrating existing product instant add logic\n    from WebComponents / direct DOM manipulation style to using Alpine. As such, it is\n    fairly rough and not at all (yet) idiomatic Alpine.\n    */ function productForm(options = {}) {\n        const times = {\n            ...defaultTimes$1,\n            ...options.times\n        };\n        return {\n            state: STATES$2.INITIAL,\n            error: '',\n            quantity: 1,\n            variantId: null,\n            // For Quickview only:\n            showForm: true,\n            // Selectors\n            get form () {\n                return this.$root.querySelector('form');\n            },\n            get popdown () {\n                return document.querySelector(selectors$3.popdown);\n            },\n            get errorDisplay () {\n                let errorsEl = this.$root.querySelector(selectors$3.errors);\n                if (!errorsEl) {\n                    const ancestorErrorBoundary = this.$root.closest(selectors$3.errorBoundary);\n                    if (ancestorErrorBoundary) {\n                        errorsEl = ancestorErrorBoundary.querySelector(selectors$3.errorDisplay);\n                    }\n                }\n                if (!errorsEl) {\n                    errorsEl = this.$root.querySelector(selectors$3.errorDisplay);\n                }\n                return errorsEl;\n            },\n            get quickViewModal () {\n                return this.$root.closest(selectors$3.quickviewModal);\n            },\n            // Getters\n            get isInitial () {\n                return this.state === STATES$2.INITIAL;\n            },\n            get isLoading () {\n                return this.state === STATES$2.LOADING;\n            },\n            get isSuccess () {\n                return this.state === STATES$2.SUCCESS;\n            },\n            get isError () {\n                return this.state === STATES$2.ERROR;\n            },\n            get isDisabled () {\n                return this.isLoading;\n            },\n            get isAjaxDisabled () {\n                return !!this.$root.closest(selectors$3.ajaxDisable);\n            },\n            // Bleh, this kind of sucks but neccesary evil for now\n            get isInsideQuickViewModal () {\n                return Boolean(this.quickViewModal);\n            },\n            // Handlers\n            handleSubmit (e) {\n                e.preventDefault();\n                this.state = STATES$2.LOADING;\n                const formData = new FormData(this.form);\n                this.addToCart(formData).then(this.handleSuccess.bind(this)).catch(this.handleError.bind(this));\n            },\n            handleSuccess (response) {\n                const variant = response.data;\n                this.state = STATES$2.SUCCESS;\n                this.updateHeaderTotal();\n                // Reset the state back to initial after a duration\n                setTimeout(()=>{\n                    this.state = STATES$2.INITIAL;\n                }, times.durationAddButtonDisable);\n                // If we're inside of a quick view, close the quick view.\n                if (this.isInsideQuickViewModal) {\n                    this.closeQuickView();\n                }\n                // If we're inside of a quick view, triggered by a cart add-on, reload the cart instead of opening a popdown.\n                if (window.theme.state.cartOpen) {\n                    this.reloadCart();\n                } else {\n                    this.openPopdown(variant);\n                }\n            },\n            handleError (error) {\n                if (error === null || error === void 0 ? void 0 : error.data) {\n                    this.state = STATES$2.ERROR;\n                    if (error.data.description && typeof error.data.description === 'string') {\n                        // Standard stockout error\n                        this.error = error.data.description;\n                    } else if (error.data.message && typeof error.data.message === 'string') {\n                        // Standard giftcard validation error\n                        this.error = error.data.message;\n                    } else if (error.data.description && typeof error.data.description === 'object') {\n                        // Error is custom object, print keys and values into message to avoid [Object object]\n                        this.error = Object.keys(error.data.description).map((key)=>{\n                            return `${key}: ${error.data.description[key]}`;\n                        }).join('<br>');\n                    } else {\n                        // Fallback\n                        this.error = 'Network error: please try again';\n                    }\n                    if (this.errorDisplay) {\n                        const errorsHTML = `<div class=\"errors\">${this.error}</div>`;\n                        this.errorDisplay.innerHTML = errorsHTML;\n                        slideDown(this.errorDisplay);\n                        setTimeout(()=>{\n                            slideUp(this.errorDisplay);\n                        }, times.hideErrorTime);\n                    }\n                } else {\n                    throw error;\n                }\n            },\n            // Actions\n            addToCart (formData) {\n                const url = `${window.theme.routes.cart}/add.js`;\n                const formPayload = new URLSearchParams(formData).toString();\n                return axios.post(url, formPayload, {\n                    headers: {\n                        'X-Requested-With': 'XMLHttpRequest',\n                        'Content-Type': 'application/x-www-form-urlencoded'\n                    }\n                });\n            },\n            updateHeaderTotal () {\n                return axios.get(`${window.theme.routes.cart}.js`).then((response)=>{\n                    document.dispatchEvent(new CustomEvent('theme:cart:change', {\n                        detail: {\n                            cart: response.data\n                        },\n                        bubbles: true\n                    }));\n                }).catch((e)=>{\n                    console.error(e);\n                });\n            },\n            closeQuickView () {\n                this.quickViewModal.dispatchEvent(new CustomEvent('theme:quickview:close'));\n            },\n            reloadCart () {\n                document.dispatchEvent(new CustomEvent('theme:cart:reload', {\n                    bubbles: true\n                }));\n            },\n            openPopdown (variant) {\n                this.popdown.dispatchEvent(new CustomEvent('theme:cart:popdown', {\n                    detail: {\n                        variant: variant\n                    },\n                    bubbles: true\n                }));\n            },\n            async changeVariant (variantUrl, newVariantId, variantMediaId) {\n                var ref;\n                if (newVariantId !== null && newVariantId !== undefined) {\n                    this.variantId = newVariantId;\n                }\n                if (((ref = this.$root.closest('[data-enable-history-state]')) === null || ref === void 0 ? void 0 : ref.dataset.enableHistoryState) == 'false') {\n                    await this.$sectionApi.navigate(variantUrl, 'none');\n                } else {\n                    await this.$sectionApi.navigate(variantUrl, 'replace');\n                }\n                this.updateProductImage(variantMediaId);\n            },\n            updateProductImage (variantMediaId) {\n                const desktopOrTablet = resolution.isDesktop() || resolution.isTablet();\n                const mobile = resolution.isMobile();\n                if (desktopOrTablet && this.hasDesktopSlideshow || mobile && this.hasMobileSlideshow) {\n                    if (variantMediaId) {\n                        this.onSlideshowReady(()=>{\n                            this.slideshow.dispatchEvent(new CustomEvent('theme:image:change', {\n                                detail: {\n                                    id: variantMediaId\n                                }\n                            }));\n                        });\n                    }\n                } else if (this.productMedia) {\n                    if (desktopOrTablet && this.productMedia.hasAttribute('data-vertical-images')) {\n                        const selectedImage = this.productMedia.querySelector(`[data-media-id=\"${variantMediaId}\"]`);\n                        selectedImage === null || selectedImage === void 0 ? void 0 : selectedImage.scrollIntoView({\n                            behavior: 'smooth',\n                            block: 'nearest'\n                        });\n                    }\n                }\n            },\n            async preloadVariant (variantUrl) {\n                // cache-first policy prevents preloading multiple times when the same variant is added to the cart multiple times\n                // abortPending prevents aborting other preload requests when one is already pending\n                window.requestIdleCallback(()=>{\n                    return this.$sectionApi.load({\n                        baseUrl: variantUrl,\n                        cachePolicy: 'cache-first',\n                        abortPending: false\n                    });\n                });\n            },\n            get hasDesktopSlideshow () {\n                return Boolean(this.$root.querySelector(selectors$3.productSlideshowDesktop));\n            },\n            get hasMobileSlideshow () {\n                return Boolean(this.$root.querySelector(selectors$3.productSlideshowMobile));\n            },\n            get slideshow () {\n                return this.$root.querySelector(selectors$3.productSlideshowDesktop) || this.$root.querySelector(selectors$3.productSlideshowMobile);\n            },\n            get hasProductMedia () {\n                return Boolean(this.productMedia);\n            },\n            get productMedia () {\n                return this.$root.querySelector(selectors$3.productMediaDesktop);\n            },\n            onSlideshowReady (callback) {\n                if (this.slideshow.classList.contains('flickity-enabled')) {\n                    callback();\n                } else {\n                    const mutationObserver = new MutationObserver((mutationList)=>{\n                        for (const item of mutationList){\n                            if (item.attributeName === 'class') {\n                                if (this.slideshow.classList.contains('flickity-enabled')) {\n                                    mutationObserver.disconnect();\n                                    callback();\n                                    break;\n                                }\n                            }\n                        }\n                    });\n                    mutationObserver.observe(this.slideshow, {\n                        attributes: true\n                    });\n                }\n            },\n            // Initialization\n            init () {\n                this.form.addEventListener('submit', this.handleSubmit.bind(this));\n                const section = this.$root.closest('[data-section-type]');\n                const desktopOrTablet = resolution.isDesktop() || resolution.isTablet();\n                const mobile = resolution.isMobile();\n                // We only update the image if we have a slideshow on the desktop or mobile, not if it's a stack\n                if (desktopOrTablet && this.hasDesktopSlideshow || mobile && this.hasMobileSlideshow) {\n                    const initialVariantMediaId = section === null || section === void 0 ? void 0 : section.dataset.initialVariantMediaId;\n                    if (initialVariantMediaId !== null) this.updateProductImage(initialVariantMediaId);\n                }\n                if (mobile) {\n                    this.showForm = false;\n                }\n                const handle = section === null || section === void 0 ? void 0 : section.dataset.productHandle;\n                if (handle) {\n                    new RecordRecentlyViewed(handle);\n                }\n            }\n        };\n    }\n\n    const STATES$1 = {\n        INITIAL: 0,\n        LOADING: 1,\n        SUCCESS: 2,\n        ERROR: 3\n    };\n    const selectors$2 = {\n        popdown: '[data-product-add-popdown-wrapper]',\n        errors: '[data-add-action-errors]',\n        errorBoundary: '[data-error-boundary]',\n        errorDisplay: '[data-error-display]',\n        quickviewModal: '[data-quickview-modal]',\n        cartPageUpsellWrapper: '[data-cart-page-upsell-wrapper]',\n        sectionTypeCart: '[data-section-type=\"cart\"]',\n        ajaxDisable: '[data-ajax-disable=\"true\"]'\n    };\n    const defaultTimes = {\n        durationAddButtonDisable: 3500,\n        hideErrorTime: 5000\n    };\n    /*\n    NOTE this is an initial crack at migrating existing product instant add logic\n    from WebComponents / direct DOM manipulation style to using Alpine. As such, it is\n    fairly rough and not at all (yet) idiomatic Alpine.\n    */ function productAddButtonForm(options = {}) {\n        const times = {\n            ...defaultTimes,\n            ...options.times\n        };\n        return {\n            state: STATES$1.INITIAL,\n            error: '',\n            isUpsell: false,\n            isInCartPage: false,\n            // Selectors\n            get cartPageUpsellWrapper () {\n                return this.$el.closest(selectors$2.cartPageUpsellWrapper);\n            },\n            get sectionTypeCart () {\n                return this.$el.closest(selectors$2.sectionTypeCart);\n            },\n            get form () {\n                if (this.isUpsell && this.isInCartPage) {\n                    // Get Cart form element to construct a proper FormData object that would contain the productAddButtonForm's fields and their values\n                    return this.$el.closest('form');\n                }\n                return this.$el.querySelector('form');\n            },\n            get button () {\n                return this.$el.querySelector('button');\n            },\n            get popdown () {\n                return document.querySelector(selectors$2.popdown);\n            },\n            get errorDisplay () {\n                let errorsEl = this.$el.querySelector(selectors$2.errors);\n                if (!errorsEl) {\n                    const ancestorErrorBoundary = this.$el.closest(selectors$2.errorBoundary);\n                    if (ancestorErrorBoundary) {\n                        errorsEl = ancestorErrorBoundary.querySelector(selectors$2.errorDisplay);\n                    }\n                }\n                if (!errorsEl) {\n                    errorsEl = this.$el.querySelector(selectors$2.errorDisplay);\n                }\n                return errorsEl;\n            },\n            get quickViewModal () {\n                return this.$el.closest(selectors$2.quickviewModal);\n            },\n            // Getters\n            get isInitial () {\n                return this.state === STATES$1.INITIAL;\n            },\n            get isLoading () {\n                return this.state === STATES$1.LOADING;\n            },\n            get isSuccess () {\n                return this.state === STATES$1.SUCCESS;\n            },\n            get isError () {\n                return this.state === STATES$1.ERROR;\n            },\n            get isDisabled () {\n                return this.isLoading;\n            },\n            get isAjaxDisabled () {\n                return !!this.$el.closest(selectors$2.ajaxDisable);\n            },\n            // Bleh, this kind of sucks but neccesary evil for now\n            get isInsideQuickViewModal () {\n                return Boolean(this.quickViewModal);\n            },\n            // Handlers\n            handleClickAddButton (e) {\n                e.preventDefault();\n                this.state = STATES$1.LOADING;\n                const formData = new FormData(this.form);\n                this.addToCart(formData).then(this.handleSuccess.bind(this)).catch(this.handleError.bind(this));\n            },\n            handleSuccess (response) {\n                const variant = response.data;\n                this.state = STATES$1.SUCCESS;\n                this.updateHeaderTotal();\n                // Reset the state back to initial after a duration\n                setTimeout(()=>{\n                    this.state = STATES$1.INITIAL;\n                }, times.durationAddButtonDisable);\n                // If we're inside of a quick view, close the quick view.\n                if (this.isInsideQuickViewModal) {\n                    this.closeQuickView();\n                }\n                // If cart is open, reload the cart instead of opening a popdown\n                if (window.theme.state.cartOpen || this.isInCartPage || this.isOnCartPage) {\n                    this.reloadCart();\n                } else {\n                    this.openPopdown(variant);\n                }\n            },\n            handleError (error) {\n                if (error === null || error === void 0 ? void 0 : error.data) {\n                    this.state = STATES$1.ERROR;\n                    if (error.data.description && typeof error.data.description === 'string') {\n                        // Standard stockout error\n                        this.error = error.data.description;\n                    } else if (error.data.message && typeof error.data.message === 'string') {\n                        // Standard giftcard validation error\n                        this.error = error.data.message;\n                    } else if (error.data.description && typeof error.data.description === 'object') {\n                        // Error is custom object, print keys and values into message to avoid [Object object]\n                        this.error = Object.keys(error.data.description).map((key)=>{\n                            return `${key}: ${error.data.description[key]}`;\n                        }).join('<br>');\n                    } else {\n                        // Fallback\n                        this.error = 'Network error: please try again';\n                    }\n                    if (this.errorDisplay) {\n                        const errorsHTML = `<div class=\"errors\">${this.error}</div>`;\n                        this.errorDisplay.innerHTML = errorsHTML;\n                        slideDown(this.errorDisplay);\n                        setTimeout(()=>{\n                            slideUp(this.errorDisplay);\n                        }, times.hideErrorTime);\n                    }\n                } else {\n                    throw error;\n                }\n            },\n            // Actions\n            addToCart (formData) {\n                const url = `${window.theme.routes.cart}/add.js`;\n                const formPayload = new URLSearchParams(formData).toString();\n                return axios.post(url, formPayload, {\n                    headers: {\n                        'X-Requested-With': 'XMLHttpRequest',\n                        'Content-Type': 'application/x-www-form-urlencoded'\n                    }\n                });\n            },\n            updateHeaderTotal () {\n                return axios.get(`${window.theme.routes.cart}.js`).then((response)=>{\n                    document.dispatchEvent(new CustomEvent('theme:cart:change', {\n                        detail: {\n                            cart: response.data\n                        },\n                        bubbles: true\n                    }));\n                }).catch((e)=>{\n                    console.error(e);\n                });\n            },\n            closeQuickView () {\n                this.quickViewModal.dispatchEvent(new CustomEvent('theme:quickview:close'));\n            },\n            reloadCart () {\n                document.dispatchEvent(new CustomEvent('theme:cart:reload', {\n                    bubbles: true\n                }));\n            },\n            openPopdown (variant) {\n                this.popdown.dispatchEvent(new CustomEvent('theme:cart:popdown', {\n                    detail: {\n                        variant: variant\n                    },\n                    bubbles: true\n                }));\n            },\n            get isInCartPage () {\n                return Boolean(this.sectionTypeCart);\n            },\n            get isOnCartPage () {\n                return Boolean(document.body.querySelector(selectors$2.sectionTypeCart));\n            },\n            get isUpsell () {\n                return Boolean(this.cartPageUpsellWrapper);\n            },\n            // Initialization\n            init () {\n                this.button.addEventListener('click', this.handleClickAddButton.bind(this));\n            }\n        };\n    }\n\n    const STATES = {\n        INITIAL: 0,\n        LOADING: 1\n    };\n    const selectors$1 = {\n        shopifySection: '.shopify-section',\n        quickviewHolder: 'data-quickview-holder',\n        addButtonWrapper: '[data-add-action-wrapper]',\n        modalContent: '[data-product-quickview-ajax]',\n        quickviewModal: '[data-quickview-modal]',\n        quickviewModalScrolls: '[data-drawer-scrolls]',\n        quickviewModalTemplate: '[data-quickview-modal-template]',\n        quickviewHead: '[data-quickview-head]',\n        quickviewFormArea: '[data-quickview-form-area]',\n        toggleButton: '[data-toggle-button]',\n        media: '[data-media-slide]',\n        mediaId: '[data-media-id]',\n        focusable: 'button, [href], select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n    };\n    /*\n    NOTE this is an initial crack at migrating existing product quick view modal logic\n    from WebComponents / direct DOM manipulation style to using Alpine. As such, it is\n    very rough and not at all (yet) idiomatic Alpine.\n    */ function productQuickViewButton(_productId, handle) {\n        return {\n            state: STATES.INITIAL,\n            // Selectors\n            get quickviewHolder () {\n                return this.$root.querySelector(`[${selectors$1.quickviewHolder}]`);\n            },\n            // Getters\n            get isInitial () {\n                return this.state === STATES.INITIAL;\n            },\n            get isLoading () {\n                return this.state === STATES.LOADING;\n            },\n            get isDisabled () {\n                return this.isLoading;\n            },\n            // Methods\n            clickQuickviewButton (e) {\n                if (this.modal && this.modalID) {\n                    // Reset modal ID before html content is loaded\n                    this.modal.id = this.modalID;\n                }\n                if (document.documentElement.hasAttribute('data-scroll-locked')) {\n                    this.scrollLockEnable = false;\n                }\n                this.state = STATES.LOADING;\n                this.getQuickviewHTML();\n            },\n            getQuickviewHTML () {\n                window.fetch(`${window.theme.routes.root_url}products/${handle}?section_id=api-product-quickview`).then(this.handleErrors).then((response)=>{\n                    return response.text();\n                }).then((response)=>{\n                    var ref;\n                    const quickviewHTML = (ref = new DOMParser().parseFromString(response, 'text/html').querySelector(selectors$1.shopifySection)) === null || ref === void 0 ? void 0 : ref.innerHTML;\n                    this.modalContent = this.modal.querySelector(selectors$1.modalContent);\n                    this.modalContent.innerHTML = quickviewHTML;\n                    this.modalScroll = this.modal.querySelector(selectors$1.quickviewModalScrolls);\n                    const images = this.modalContent.querySelector(selectors$1.mediaId);\n                    if (images) {\n                        const imagesHolder = document.createElement('div');\n                        imagesHolder.innerHTML = images.parentElement.innerHTML;\n                        this.quickviewHolder.dispatchEvent(new CustomEvent('theme:quickview:media', {\n                            bubbles: true,\n                            detail: {\n                                media: imagesHolder\n                            }\n                        }));\n                    }\n                    const section = {\n                        container: this.modalContent\n                    };\n                    this.media = new Media(section);\n                    this.modalCreate();\n                    this.state = STATES.INITIAL;\n                });\n            },\n            modalCreate () {\n                MicroModal.show(this.modalID, {\n                    onShow: (modal, el, event)=>{\n                        this.quickviewHead = modal.querySelector(selectors$1.quickviewHead);\n                        this.quickviewFormArea = modal.querySelector(selectors$1.quickviewFormArea);\n                        const firstFocus = modal.querySelector(selectors$1.focusable);\n                        trapFocus(modal, {\n                            elementToFocus: firstFocus\n                        });\n                        this.modal.addEventListener('theme:quickview:close', this.modalClose);\n                        document.dispatchEvent(new CustomEvent('theme:scroll:lock', {\n                            bubbles: true,\n                            detail: this.modalScroll\n                        }));\n                        new ImageCaption(this.modal);\n                    },\n                    onClose: (modal, el, event)=>{\n                        if (event) event.preventDefault();\n                        this.media.destroy();\n                        const allMedia = modal.querySelectorAll(selectors$1.media);\n                        allMedia.forEach((media)=>{\n                            media.dispatchEvent(new CustomEvent('pause'));\n                        });\n                        removeTrapFocus();\n                        el.focus();\n                        this.modal.removeEventListener('theme:quickview:close', this.modalClose);\n                        if (this.scrollLockEnable) {\n                            document.dispatchEvent(new CustomEvent('theme:scroll:unlock', {\n                                bubbles: true\n                            }));\n                        } else {\n                            this.scrollLockEnable = true;\n                        }\n                    }\n                });\n            },\n            modalClose () {\n                MicroModal.close(this.modalID);\n            },\n            handleErrors (response) {\n                if (!response.ok) {\n                    return response.json().then(function(json) {\n                        const e = new FetchError({\n                            status: response.statusText,\n                            headers: response.headers,\n                            json: json\n                        });\n                        throw e;\n                    });\n                }\n                return response;\n            },\n            // Initialization\n            init () {\n                if (this.quickviewHolder) {\n                    this.modalTemplate = this.quickviewHolder.querySelector(selectors$1.quickviewModalTemplate);\n                    this.modal = document.querySelector(selectors$1.quickviewModal);\n                    this.modalID = this.quickviewHolder.getAttribute(selectors$1.quickviewHolder);\n                    this.modalContent = null;\n                    this.modalScroll = null;\n                    this.scrollLockEnable = true;\n                    this.windowH = window.innerHeight;\n                    if (this.modalTemplate && !this.modal) {\n                        const modalTemplateInner = this.modalTemplate.innerHTML;\n                        const htmlObject = document.createElement('div');\n                        htmlObject.innerHTML = modalTemplateInner;\n                        this.modalHtml = htmlObject.querySelector(selectors$1.quickviewModal);\n                        document.body.appendChild(this.modalHtml);\n                        this.modal = document.querySelector(selectors$1.quickviewModal);\n                    }\n                }\n            }\n        };\n    }\n\n    function toggle() {\n        return {\n            isOpen: false,\n            get isClosed () {\n                return !this.isOpen;\n            },\n            toggle () {\n                if (this.isOpen) {\n                    return this.close();\n                }\n                this.open();\n            },\n            open () {\n                this.isOpen = true;\n            },\n            close () {\n                if (!this.isOpen) return;\n                this.isOpen = false;\n            }\n        };\n    }\n\n    function isFunction(x) {\n        return typeof x === 'function';\n    }\n\n    /**\n     * Higher-order component that allows you to compose multiple components into a single component\n     * while preserving reactivity, access to magics, access to the parent scope, and calling each component's `init()` method\n     *\n     * @example\n     *\n     * <div x-data=\"compose(componentA, componentB)\">\n     *  <span x-text=\"somePropFromComponentA\"></span>\n     *  <span x-text=\"somePropFromComponentB\"></span>\n     * </div>\n     *\n     * @param components\n     * @returns\n     */ function compose(...components) {\n        return components.reduce((composedComponent, componentOrComponentFunction)=>{\n            const component = isFunction(componentOrComponentFunction) ? componentOrComponentFunction() : componentOrComponentFunction;\n            // Add the init method to the list of initializers to be called in order once composed component is initialized\n            if (component.init) {\n                composedComponent._initializers.push(component.init);\n            }\n            // Delete the init method so it doesn't get called twice\n            delete component.init;\n            // Add property descriptors from component to composed component\n            const extendedComponent = Object.defineProperties(composedComponent, Object.getOwnPropertyDescriptors(component));\n            return extendedComponent;\n        }, {\n            _initializers: [],\n            init () {\n                // Call each initializer in order\n                this._initializers.forEach((initializer)=>initializer.call(this)\n                );\n            }\n        });\n    }\n\n    function productGridItemQuickAddMenu() {\n        return compose(toggle(), {\n            controller: null,\n            init () {\n                this.$watch('isOpen', (isOpen)=>{\n                    if (isOpen) {\n                        this.listen();\n                    } else {\n                        this.unlisten();\n                    }\n                });\n            },\n            // Only listen for events when the menu is open in order to reduce unnecessary event listeners\n            listen () {\n                this.controller = new AbortController();\n                // Close on mouse leave\n                this.$el.addEventListener('mouseleave', ()=>{\n                    this.close();\n                }, {\n                    signal: this.controller.signal\n                });\n                // Close on click outside\n                document.addEventListener('click', (e)=>{\n                    if (this.$el.contains(e.target)) return;\n                    // Additional check for special implementations like x-collapse\n                    // where the element doesn't have display: none\n                    if (this.$el._x_isShown === false) return;\n                    this.close();\n                }, {\n                    signal: this.controller.signal\n                });\n                // Close on focus outside\n                document.addEventListener('focusin', (e)=>{\n                    if (this.$el.contains(e.target)) return;\n                    this.close();\n                }, {\n                    signal: this.controller.signal\n                });\n                // Close when esc pressed\n                document.addEventListener('keydown', (e)=>{\n                    if (e.key === 'Escape') {\n                        this.close();\n                    }\n                }, {\n                    signal: this.controller.signal\n                });\n            },\n            unlisten () {\n                // Remove all listeners\n                this.controller.abort();\n                this.controller = null;\n            }\n        });\n    }\n\n    const selectors = {\n        tablist: '[role=\"tablist\"]',\n        tab: '[role=\"tab\"]'\n    };\n    function tabs(initialIndex = 0) {\n        return {\n            selectedIndex: null,\n            init () {\n                // Set the first available tab on the page on page load.\n                this.$nextTick(()=>this.select(initialIndex)\n                );\n            },\n            // Selectors\n            get tablist () {\n                return this.$el.querySelector(selectors.tablist);\n            },\n            get tabs () {\n                var ref;\n                return (ref = this.tablist) === null || ref === void 0 ? void 0 : ref.querySelectorAll(selectors.tab);\n            },\n            getTab (index) {\n                var ref;\n                return (ref = this.tabs) === null || ref === void 0 ? void 0 : ref[index];\n            },\n            isSelected (index) {\n                return this.selectedIndex === index;\n            },\n            // Actions\n            select (index, scrollIntoView = true) {\n                this.selectedIndex = index;\n                const tab = this.getTab(index);\n                if (tab && scrollIntoView) {\n                    this.tablist.scrollTo({\n                        top: 0,\n                        left: tab.offsetLeft - tab.clientWidth,\n                        behavior: 'smooth'\n                    });\n                }\n            },\n            // Shared directives\n            bindTabs: {\n                ['x-id']: \"['tab', 'tab-panel']\"\n            },\n            bindTablist: {\n                [':role']: \"'tablist'\",\n                ['@keydown.right.prevent.stop']: '$focus.wrap().next()',\n                ['@keydown.home.prevent.stop']: '$focus.first()',\n                ['@keydown.page-up.prevent.stop']: '$focus.first()',\n                ['@keydown.left.prevent.stop']: '$focus.wrap().prev()',\n                ['@keydown.end.prevent.stop']: '$focus.last()',\n                ['@keydown.page-down.prevent.stop']: '$focus.last()'\n            },\n            bindTabpanels: {},\n            bindTab (index) {\n                return {\n                    [':id']: `$id('tab', ${index + 1})`,\n                    [':role']: \"'tab'\",\n                    ['@click']: `select(${index})`,\n                    ['@mousedown.prevent']: '',\n                    ['@focus']: `select(${index})`,\n                    [':tabindex']: `isSelected(${index}) ? 0 : -1`,\n                    [':aria-selected']: `isSelected(${index})`,\n                    [':aria-controls']: `$id('tab-panel', ${index + 1})`\n                };\n            },\n            bindTabpanel (index) {\n                return {\n                    [':id']: `$id('tab-panel', ${index + 1})`,\n                    [':role']: \"'tabpanel'\",\n                    ['x-show']: `isSelected(${index})`,\n                    [':aria-labelledby']: `$id('tab', ${index + 1})`\n                };\n            }\n        };\n    }\n\n    function overflow(options1 = {}) {\n        const inset = {\n            top: 0,\n            right: 0,\n            bottom: 0,\n            left: 0,\n            ...options1.inset\n        };\n        return {\n            get overflowContainer () {\n                return this.$refs.overflowContainer;\n            },\n            isOverflowing: {\n                top: false,\n                bottom: false,\n                left: false,\n                right: false\n            },\n            checkOverflow () {\n                const scrollOffsetBottom = this.overflowContainer.scrollHeight - this.overflowContainer.scrollTop - inset.bottom;\n                const scrollOffsetRight = this.overflowContainer.scrollWidth - this.overflowContainer.scrollLeft - inset.right;\n                this.isOverflowing.top = this.overflowContainer.scrollTop - inset.top > 0;\n                this.isOverflowing.bottom = scrollOffsetBottom > this.overflowContainer.clientHeight;\n                this.isOverflowing.left = this.overflowContainer.scrollLeft - inset.left > 0;\n                this.isOverflowing.right = scrollOffsetRight > this.overflowContainer.clientWidth;\n            },\n            scrollTo (options) {\n                this.overflowContainer.scrollTo(options);\n            }\n        };\n    }\n\n    function flickity(Alpine) {\n        Alpine.directive('flickity', ($el, { value , modifiers  })=>{\n            switch(value){\n                case 'slider':\n                    Alpine.bind($el, {\n                        'x-init': '__flickity_sliderEl = $el'\n                    });\n                    break;\n                case null:\n                    Alpine.bind($el, {\n                        'x-data' () {\n                            return {\n                                __flickity_sliderEl: null,\n                                __flickity_isReady: false,\n                                __flickity_instance: null,\n                                __flickity_mutationObserver: null,\n                                init () {\n                                    // This is a bit of a hack to get the flickity instance.\n                                    // We need to wait for the flickity-enabled class to be added to the element to\n                                    // know if Flickity has been initialized. Not a great solution, but it works for now.\n                                    this.$nextTick(()=>{\n                                        if (this.__flickity_sliderEl.classList.contains('flickity-enabled')) {\n                                            this.__flickity_instance = Flickity.data(this.__flickity_sliderEl);\n                                            this.__flickity_isReady = true;\n                                        } else {\n                                            this.__flickity_mutationObserver = new MutationObserver((mutationList)=>{\n                                                mutationList.forEach((mutation)=>{\n                                                    if (mutation.type === \"attributes\" && mutation.attributeName === \"class\") {\n                                                        if (mutation.target.classList.contains('flickity-enabled')) {\n                                                            this.__flickity_instance = Flickity.data(this.__flickity_sliderEl);\n                                                            this.__flickity_isReady = true;\n                                                        }\n                                                    }\n                                                });\n                                            });\n                                            this.__flickity_mutationObserver.observe(this.__flickity_sliderEl, {\n                                                attributes: true\n                                            });\n                                        }\n                                    });\n                                },\n                                destroy () {\n                                    this.__flickity_mutationObserver.disconnect();\n                                }\n                            };\n                        }\n                    });\n                    break;\n                default:\n                    throw new Error(`Invalid flickity directive: ${value}`);\n            }\n        }).before('bind');\n        Alpine.magic('flickity', ($el)=>{\n            const $data = Alpine.$data($el);\n            return {\n                get instance () {\n                    return $data.__flickity_instance;\n                },\n                get isReady () {\n                    return $data.__flickity_isReady;\n                }\n            };\n        });\n    }\n\n    /**\n     * Directive to remove an element based on the previously loaded page\n     * e.g.\n     * <div x-target-referrer=\"/collections/all\"></div>\n     */ var targetReferrer = ((el, { expression  })=>{\n        if (!expression) return;\n        if (document.referrer.indexOf(expression) === -1 && !window.Shopify.designMode) {\n            el.parentNode.removeChild(el);\n        }\n    });\n\n    /**\n     * Ensemble brings together multiple elements and binds them to the same data\n     *\n     * e.g.\n     * <div x-ensemble>\n     *   <div x-ensemble:slideshow.duration.{{ section.settings.duration | times: 1000 }}ms>...</div>\n     *   <div x-ensemble:accordion>...</div>\n     * </div>\n     */ function ensemble(Alpine) {\n        Alpine.directive('ensemble', ($el, { value: value1 , modifiers  })=>{\n            const { $ensemble  } = Alpine.$data($el);\n            switch(value1){\n                case 'slideshow':\n                    Alpine.bind($el, {\n                        [`x-slideshow.${modifiers.join('.')}`] () {\n                            return {\n                                get currentSlideIndex () {\n                                    if ($ensemble.selectedIndex === null) {\n                                        return 0;\n                                    }\n                                    // If this is the last slide of this particular ensemble members slideshow but there are more slides in the ensemble\n                                    // then just show the last slide of the ensemble\n                                    if ($ensemble.selectedIndex >= this.totalSlides) {\n                                        return this.totalSlides - 1;\n                                    }\n                                    return $ensemble.selectedIndex;\n                                },\n                                set currentSlideIndex (value){\n                                    $ensemble.selectedIndex = value;\n                                },\n                                get state () {\n                                    // If this particular ensemble member's slideshow has less slides than the ensemble itself (i.e. there are other slideshows in the ensemble)\n                                    // then pause _this_ slideshow and let the other slideshows take over\n                                    if (this.totalSlides < $ensemble.totalSlides) {\n                                        return 'paused';\n                                    }\n                                    return $ensemble.isPlaying ? 'playing' : 'paused';\n                                },\n                                set state (value){\n                                    $ensemble.isPlaying = value === 'playing';\n                                }\n                            };\n                        },\n                        'x-effect' () {\n                            if (this.$slideshow.totalSlides > this.$ensemble.totalSlides) {\n                                this.$ensemble.totalSlides = this.$slideshow.totalSlides;\n                            }\n                        }\n                    });\n                    break;\n                case 'disclosure-group':\n                    Alpine.bind($el, {\n                        ['x-disclosure-group'] () {\n                            return {\n                                get expandedIndex () {\n                                    // If there is no selectedIndex for some reason, show the first disclosure\n                                    if ($ensemble.selectedIndex === null) return 0;\n                                    // If the selectedIndex doesn't match any disclosures, show the last disclosure\n                                    const lastDisclosureIndex = Array.from(this.items).length - 1;\n                                    if ($ensemble.selectedIndex > lastDisclosureIndex) return lastDisclosureIndex;\n                                    return $ensemble.selectedIndex;\n                                },\n                                set expandedIndex (value){\n                                    // Only allow opening new accordion items, not closing them\n                                    if (value === null) return;\n                                    // Pause the slideshow when a disclosure is manually opened\n                                    $ensemble.isPlaying = false;\n                                    $ensemble.selectedIndex = value;\n                                }\n                            };\n                        }\n                    });\n                    break;\n                case 'slider':\n                    Alpine.bind($el, {\n                        'x-flickity': '',\n                        ['x-list-state'] () {\n                            return {\n                                scope: 'sliderItems',\n                                get selectedIndex () {\n                                    if ($ensemble.selectedIndex === null) {\n                                        return null;\n                                    }\n                                    return $ensemble.selectedIndex;\n                                },\n                                set selectedIndex (value){\n                                    $ensemble.selectedIndex = value;\n                                }\n                            };\n                        },\n                        'x-init' () {\n                            // Update the slider when clicking the hotspots\n                            this.$watch('$sliderItems.selectedIndex', (selectedIndex, prevSelectedIndex)=>{\n                                // Manaully scroll to the target slide if we're on mobile\n                                if (window.innerWidth < 768) {\n                                    const targetSlide = Array.from(this.$sliderItems.items)[selectedIndex];\n                                    if (targetSlide) {\n                                        targetSlide.scrollIntoView({\n                                            behavior: 'smooth',\n                                            block: 'nearest',\n                                            inline: 'center'\n                                        });\n                                    }\n                                } else {\n                                    // Use Flickity to select the target slide for desktop\n                                    if (selectedIndex !== this.$flickity.instance.selectedIndex) {\n                                        this.$flickity.instance.select(selectedIndex);\n                                    }\n                                }\n                            });\n                            this.$watch('$flickity.isReady', (isReady)=>{\n                                this.$flickity.instance.options.fade = true;\n                                this.$flickity.instance.options.freeScroll = false;\n                                this.$flickity.instance.resize();\n                                if (isReady) {\n                                    // Update the hotposts when the slide changes\n                                    this.$flickity.instance.on('select', (index)=>{\n                                        if (index !== this.$sliderItems.selectedIndex) {\n                                            this.$sliderItems.selectedIndex = index;\n                                        }\n                                    });\n                                }\n                            });\n                        }\n                    });\n                    break;\n                case 'hotspots':\n                    Alpine.bind($el, {\n                        ['x-list-state'] () {\n                            return {\n                                scope: 'hotspots',\n                                get selectedIndex () {\n                                    if ($ensemble.selectedIndex === null) {\n                                        return null;\n                                    }\n                                    return $ensemble.selectedIndex;\n                                },\n                                set selectedIndex (value){\n                                    $ensemble.isPlaying = false;\n                                    $ensemble.selectedIndex = value;\n                                }\n                            };\n                        }\n                    });\n                    break;\n                case null:\n                    Alpine.bind($el, {\n                        'x-intersect:enter': '$ensemble.isPlaying = true',\n                        'x-intersect:leave': '$ensemble.isPlaying = false',\n                        '@focusin': '$ensemble.isPlaying = false',\n                        ['x-data'] () {\n                            return {\n                                $ensemble: {\n                                    titleEl: null,\n                                    selectedIndex: 0,\n                                    totalSlides: 0,\n                                    isPlaying: false,\n                                    members: {},\n                                    registerMember (id, el) {\n                                        this.members[id] = el;\n                                    },\n                                    getPeerIds (id) {\n                                        return Object.keys(this.members).filter((memberId)=>memberId !== id\n                                        );\n                                    }\n                                }\n                            };\n                        },\n                        ':aria-labelledby': '$ensemble.titleEl?.id'\n                    });\n                    break;\n                default:\n                    throw new Error(`Invalid ensemble directive: ${value1}`);\n            }\n        }).before('bind');\n    }\n\n    /* Data */ module_default.data('announcement', announcement);\n    module_default.data('announcementSlider', announcementSlider);\n    module_default.data('announcementTicker', announcementTicker);\n    module_default.data('productForm', productForm);\n    module_default.data('productAddButtonForm', productAddButtonForm);\n    module_default.data('productQuickViewButton', productQuickViewButton);\n    module_default.data('productGridItemQuickAddMenu', productGridItemQuickAddMenu);\n    module_default.data('toggle', toggle);\n    module_default.data('tabs', tabs);\n    module_default.data('overflow', overflow);\n    /* Directives */ module_default.directive('target-referrer', targetReferrer);\n    /* Plugins */ module_default.plugin(module_default$4);\n    module_default.plugin(module_default$3);\n    module_default.plugin(module_default$2);\n    module_default.plugin(module_default$1);\n    module_default.plugin(currency);\n    module_default.plugin(stepper);\n    module_default.plugin(cache);\n    module_default.plugin(router);\n    module_default.plugin(asyncLink);\n    module_default.plugin(asyncForm);\n    module_default.plugin(clone);\n    module_default.plugin(sliderReveal);\n    module_default.plugin(slideshow);\n    module_default.plugin(listState);\n    module_default.plugin(motion);\n    module_default.plugin(animationUtils);\n    module_default.plugin(disclosure);\n    module_default.plugin(themeEditor);\n    module_default.plugin(marquee);\n    module_default.plugin(hold);\n    module_default.plugin(ensemble);\n    module_default.plugin(flickity);\n    module_default.plugin(section);\n    function isInProductForm(el) {\n        return el.hasAttribute && el.closest('.shopify-product-form');\n    }\n    function isSellingPlanHiddenInput(el) {\n        return el.tagName === 'INPUT' && el.type === 'hidden' && el.name === 'selling_plan';\n    }\n    // function isVariantIdHiddenInput(el) {\n    //   return el.tagName === 'INPUT' && el.type === 'hidden' && el.name === 'id';\n    // }\n    module_default.plugin(sectionApi({\n        morphConfig: {\n            // Customize theme-wide section morphing behaviour here\n            updating (el, toEl, childrenOnly, skip) {\n                // Call `skip()` to prevent an element from being removed\n                // Call `childrenOnly()` to prevent an element from being updated but allow it's children to be updated\n                // Skip any built-in shopify elements\n                if (el.hasAttribute && el.hasAttribute('data-shopify')) {\n                    skip();\n                }\n                // Skip updating selling_plan hidden input in product form to prevent breaking apps like Recharge. You may want to update or remove this logic depending on your theme's needs\n                if (isInProductForm(el) && isSellingPlanHiddenInput(el)) {\n                    skip();\n                }\n            // Uncomment to skip updating variant id hidden input in product form. Most themes will not need this, but if you do, you can uncomment this line.\n            // if (isInProductForm(el) && isVariantIdHiddenInput(el)) {\n            //   skip();\n            // }\n            },\n            // updated(el) {\n            //   // Do something after an element was updated\n            // },\n            removing (el, skip) {\n                // Call `skip()` to prevent an element from being removed\n                // Skip any built-in shopify elements\n                if (el.hasAttribute && el.hasAttribute('data-shopify')) {\n                    debugger;\n                    skip();\n                }\n                // Skip removing selling_plan hidden input in product form to prevent breaking apps like Recharge. You may want to update or remove this logic depending on your theme's needs\n                if (isInProductForm(el) && isSellingPlanHiddenInput(el)) {\n                    skip();\n                }\n            }\n        }\n    }));\n    /* Initialization */ module_default.start();\n    // Mainly for Alpine.js devtools to work\n    window.Alpine = module_default;\n\n})(themeVendor.AOS, themeVendor.FlickityFade, themeVendor.ScrollLock, themeVendor.Flickity, themeVendor.MicroModal, themeVendor.Rellax, themeVendor.themeCurrency, themeVendor.axios, themeVendor.themeAddresses, themeVendor.Sqrl);\n"],
  "mappings": "AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUC,SAAU,IAAK,aAAc,WAAY,SAAU,WAAY,OAAQ,cAAe,MAAO,eAAgB,KAAM,CAChH,aAEA,SAAS,yBAAyB,EAAG,CACjC,IAAI,EAAI,OAAO,OAAO,IAAI,EAC1B,OAAI,GACA,OAAO,KAAK,CAAC,EAAE,QAAQ,SAAU,EAAG,CAChC,GAAI,IAAM,UAAW,CACjB,IAAI,EAAI,OAAO,yBAAyB,EAAG,CAAC,EAC5C,OAAO,eAAe,EAAG,EAA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,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,8BACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,4BACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,gBACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,IAChB,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,WACb,QAAS,CACL,CACI,WAAY,KAChB,EACA,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,MAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,SACb,QAAS,CACL,CACI,UAAW,IACf,EACA,CACI,MAAO,MACX,EACA,CACI,WAAY,MAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,OACX,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,EACA,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,mBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,OACX,EACA,CACI,UAAW,KACf,EACA,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,YAChB,EACA,CACI,OAAQ,MACZ,EACA,CACI,UAAW,IACf,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,EACA,CACI,MAAO,OACX,EACA,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,QACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,IAChB,CACJ,CACJ,CACJ,EACA,OAAO,YAAc,CACjB,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,EACA,CACI,UAAW,IACf,EACA,CACI,IAAK,SACT,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,mBACb,QAAS,CACL,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,8BACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,4BACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,gBACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,IAChB,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,WACb,QAAS,CACL,CACI,WAAY,KAChB,EACA,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,WACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,MAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,SACb,QAAS,CACL,CACI,UAAW,IACf,EACA,CACI,MAAO,MACX,EACA,CACI,WAAY,MAChB,EACA,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,OACX,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,EACA,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,mBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,OACX,EACA,CACI,UAAW,KACf,EACA,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,EACA,CACI,OAAQ,MACZ,EACA,CACI,UAAW,IACf,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,EACA,CACI,MAAO,OACX,EACA,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,QACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,IAChB,CACJ,CACJ,CACJ,EACA,OAAO,YAAc,CACjB,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,mBACb,QAAS,CACL,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,IAChB,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,mBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,GACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,QACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,IAChB,CACJ,CACJ,CACJ,EACA,OAAO,YAAc,CACjB,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,SACb,QAAS,CACL,CACI,MAAO,MACX,EACA,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,mBACb,QAAS,CACL,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,IAChB,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,mBACb,QAAS,CACL,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,qBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,GACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,QACb,YAAa,MACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,WAAY,IAChB,CACJ,CACJ,CACJ,EACA,OAAO,WAAa,CAChB,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,mBACb,QAAS,CACL,CACI,WAAY,EAChB,EACA,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,qBACb,QAAS,CACL,CACI,WAAY,IAChB,EACA,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,GACZ,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,QACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,CACJ,EACA,OAAO,WAAa,CAChB,CACI,YAAa,MACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,mBACb,QAAS,CACL,CACI,WAAY,EAChB,EACA,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,qBACb,QAAS,CACL,CACI,WAAY,IAChB,EACA,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,cACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,GACZ,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,YAChB,EACA,CACI,UAAW,KACf,CACJ,CACJ,EACA,CACI,YAAa,iBACb,YAAa,qBACb,QAAS,CACL,CACI,iBAAkB,EACtB,EACA,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,YACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,MACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,OACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,YAChB,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,gBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,KACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,kBACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,EACA,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,eACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,gBACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,WACb,QAAS,CACL,CACI,MAAO,SACX,EACA,CACI,UAAW,EACf,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,kBACb,QAAS,CACL,CACI,OAAQ,MACZ,CACJ,CACJ,EACA,CACI,YAAa,aACb,YAAa,SACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA,CACI,YAAa,UACb,YAAa,MACb,QAAS,CACL,CACI,WAAY,KAChB,CACJ,CACJ,EACA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AMb,EAIA,SAAU,GAAI,KAAM,CAGhB,GAAI,GAAG,cAAgB,GAAG,aAAa,cAAc,EAAG,CACpD,SACA,KAAK,CACT,CAEI,gBAAgB,EAAE,GAAK,yBAAyB,EAAE,GAClD,KAAK,CAEb,CACJ,CACJ,CAAC,CAAC,EACmB,eAAe,MAAM,EAE1C,OAAO,OAAS,cAEpB,GAAG,YAAY,IAAK,YAAY,aAAc,YAAY,WAAY,YAAY,SAAU,YAAY,WAAY,YAAY,OAAQ,YAAY,cAAe,YAAY,MAAO,YAAY,eAAgB,YAAY,IAAI",
  "names": ["start", "stickyHeader", "frame", "wrap", "section", "slideshow", "raf", "number", "options", "progress", "isDesktop", "config", "prefix", "modal", "clone", "trigger", "error", "cartDrawer", "data", "template", "styles", "style", "settings", "prev", "next", "now", "filter", "accordion", "observer", "relatedSection", "toggle", "keys", "isArray", "percent", "defaultMessage", "Alpine", "current", "effect", "evaluateLater", "cleanup", "evaluate", "cache", "overflow", "noop", "attributes", "transform", "selectors", "classes", "delay", "sections", "set2", "scope", "time", "handler", "ease", "queue", "frameData", "process", "alpha", "color", "resolution", "scale", "keyframes", "times", "transition", "hasChanged", "motionValue", "set", "defaultOptions", "shouldSkip", "point", "isSVGTag", "asNumber", "notifyAll", "listener", "scrollListener", "started", "currency"]
}
