var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__accessCheck=(obj,member,msg)=>{if(!member.has(obj))throw TypeError("Cannot "+msg)},__privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>{if(member.has(obj))throw TypeError("Cannot add the same private member more than once");member instanceof WeakSet?member.add(obj):member.set(obj,value)},__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method),require_spr_reviews=__commonJS({"js/sections/spr-reviews.js"(){var transformBlock=appBlock=>{const parentNode=appBlock.parentElement;appBlock.remove(),appBlock.querySelectorAll(".spr-summary-actions-newreview").forEach(button=>{button.classList.add("button"),button.addEventListener("click",()=>button.style.display="none",{once:!0})}),appBlock.querySelectorAll(".new-review-form").forEach(reviewForm=>{reviewForm.className="fieldset",reviewForm.parentElement.style.display===""&&appBlock.querySelectorAll(".spr-summary-actions-newreview").forEach(button=>{button.style.display="none"})}),appBlock.querySelectorAll(".spr-form-contact, .spr-form-review").forEach(fieldset=>fieldset.className="contents"),appBlock.querySelectorAll(".spr-form-label").forEach(label=>label.className=""),appBlock.querySelectorAll(".spr-form-review-rating").forEach(formRating=>formRating.className="form-control"),appBlock.querySelectorAll(".spr-form-input-textarea").forEach(textarea=>{textarea.className="textarea",textarea.closest(".spr-form-review-body").className="form-control"}),appBlock.querySelectorAll(".spr-form-input-text, .spr-form-input-email").forEach(input=>{input.className="input",input.parentElement.className="form-control"}),appBlock.querySelectorAll(".spr-form-message-success").forEach(banner=>banner.className="banner banner--success"),appBlock.querySelectorAll(".spr-form-message-error").forEach(banner=>banner.className="banner banner--error"),appBlock.querySelectorAll(".spr-review-header-title").forEach(reviewTitle=>reviewTitle.className="h6"),parentNode.appendChild(appBlock)};window.SPRCallbacks={onProductLoad:(event,params)=>{},onReviewsLoad:(event,params)=>{transformBlock(document.querySelector(`#shopify-product-reviews[data-id="${params.id}"]`))},onFormLoad:(event,params)=>{transformBlock(document.querySelector(`#shopify-product-reviews[data-id="${params.id}"]`))},onFormSuccess:(event,params)=>{transformBlock(document.querySelector(`#shopify-product-reviews[data-id="${params.id}"]`))},onFormFailure:(event,params)=>{transformBlock(document.querySelector(`#shopify-product-reviews[data-id="${params.id}"]`))}}}}),ConfirmButton=class extends HTMLButtonElement{constructor(){super(),this.addEventListener("click",event=>{window.confirm(this.getAttribute("data-message")??"Once confirmed, this action cannot be undone.")||event.preventDefault()})}};window.customElements.get("confirm-button")||window.customElements.define("confirm-button",ConfirmButton,{extends:"button"});var _copyToClipboard,copyToClipboard_fn,CopyButton=class extends HTMLButtonElement{constructor(){super(),__privateAdd(this,_copyToClipboard),this.addEventListener("click",__privateMethod(this,_copyToClipboard,copyToClipboard_fn))}};_copyToClipboard=new WeakSet,copyToClipboard_fn=async function(){if(navigator.clipboard&&(await navigator.clipboard.writeText(this.getAttribute("data-text")??""),this.hasAttribute("data-success-message"))){const originalMessage=this.textContent;this.textContent=this.getAttribute("data-success-message"),setTimeout(()=>{this.textContent=originalMessage},1500)}},window.customElements.get("copy-button")||window.customElements.define("copy-button",CopyButton,{extends:"button"});var _showSystemShare,showSystemShare_fn,ShareButton=class extends HTMLButtonElement{constructor(){super(),__privateAdd(this,_showSystemShare),navigator.share&&(this.hidden=!1,this.addEventListener("click",__privateMethod(this,_showSystemShare,showSystemShare_fn)))}};_showSystemShare=new WeakSet,showSystemShare_fn=function(){navigator.share({title:this.hasAttribute("share-title")?this.getAttribute("share-title"):document.title,url:this.hasAttribute("share-url")?this.getAttribute("share-url"):window.location.href})},window.customElements.get("share-button")||window.customElements.define("share-button",ShareButton,{extends:"button"});import{inView,animate}from"vendor";var _direction,direction_get,_scroller,scroller_get,_initialize,initialize_fn,MarqueeText=class extends HTMLElement{constructor(){super(),__privateAdd(this,_direction),__privateAdd(this,_scroller),__privateAdd(this,_initialize),inView(this,__privateMethod(this,_initialize,initialize_fn).bind(this),{margin:"400px"})}};_direction=new WeakSet,direction_get=function(){return this.getAttribute("direction")==="right"?1:-1},_scroller=new WeakSet,scroller_get=function(){return this.shadowRoot.querySelector('[part="scroller"]')},_initialize=new WeakSet,initialize_fn=function(){this.attachShadow({mode:"open"}).appendChild(document.createRange().createContextualFragment(` `));const fragment=document.createDocumentFragment();for(let i=1;i<=5;++i){const node=this.firstElementChild.cloneNode(!0);node.setAttribute("aria-hidden","true"),node.style.cssText=`position: absolute; inset-inline-start: ${100*i*-__privateGet(this,_direction,direction_get)}%;`,fragment.appendChild(node)}this.append(fragment),animate(__privateGet(this,_scroller,scroller_get),{transform:["translateX(0)",`translateX(calc(var(--transform-logical-flip) * ${__privateGet(this,_direction,direction_get)*100}%))`]},{duration:1/parseFloat(this.getAttribute("speed"))*(__privateGet(this,_scroller,scroller_get).clientWidth/300),easing:"linear",repeat:1/0})},window.customElements.get("marquee-text")||window.customElements.define("marquee-text",MarqueeText);var _domElement,_thresholdDistance,_thresholdTime,_signal,_firstClientX,_tracking,_start,_touchStart,touchStart_fn,_preventTouch,preventTouch_fn,_gestureStart,gestureStart_fn,_gestureMove,gestureMove_fn,_gestureEnd,gestureEnd_fn,GestureArea=class{constructor(domElement,{thresholdDistance=80,thresholdTime=500,signal=null}={}){__privateAdd(this,_touchStart),__privateAdd(this,_preventTouch),__privateAdd(this,_gestureStart),__privateAdd(this,_gestureMove),__privateAdd(this,_gestureEnd),__privateAdd(this,_domElement,void 0),__privateAdd(this,_thresholdDistance,void 0),__privateAdd(this,_thresholdTime,void 0),__privateAdd(this,_signal,void 0),__privateAdd(this,_firstClientX,void 0),__privateAdd(this,_tracking,!1),__privateAdd(this,_start,{}),__privateSet(this,_domElement,domElement),__privateSet(this,_thresholdDistance,thresholdDistance),__privateSet(this,_thresholdTime,thresholdTime),__privateSet(this,_signal,signal??new AbortController().signal),__privateGet(this,_domElement).addEventListener("touchstart",__privateMethod(this,_touchStart,touchStart_fn).bind(this),{passive:!0,signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("touchmove",__privateMethod(this,_preventTouch,preventTouch_fn).bind(this),{passive:!1,signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("pointerdown",__privateMethod(this,_gestureStart,gestureStart_fn).bind(this),{signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("pointermove",__privateMethod(this,_gestureMove,gestureMove_fn).bind(this),{passive:!1,signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("pointerup",__privateMethod(this,_gestureEnd,gestureEnd_fn).bind(this),{signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("pointerleave",__privateMethod(this,_gestureEnd,gestureEnd_fn).bind(this),{signal:__privateGet(this,_signal)}),__privateGet(this,_domElement).addEventListener("pointercancel",__privateMethod(this,_gestureEnd,gestureEnd_fn).bind(this),{signal:__privateGet(this,_signal)})}};_domElement=new WeakMap,_thresholdDistance=new WeakMap,_thresholdTime=new WeakMap,_signal=new WeakMap,_firstClientX=new WeakMap,_tracking=new WeakMap,_start=new WeakMap,_touchStart=new WeakSet,touchStart_fn=function(event){__privateSet(this,_firstClientX,event.touches[0].clientX)},_preventTouch=new WeakSet,preventTouch_fn=function(event){Math.abs(event.touches[0].clientX-__privateGet(this,_firstClientX))>10&&event.preventDefault()},_gestureStart=new WeakSet,gestureStart_fn=function(event){__privateSet(this,_tracking,!0),__privateSet(this,_start,{time:new Date().getTime(),x:event.clientX,y:event.clientY})},_gestureMove=new WeakSet,gestureMove_fn=function(event){__privateGet(this,_tracking)&&event.preventDefault()},_gestureEnd=new WeakSet,gestureEnd_fn=function(event){if(!__privateGet(this,_tracking))return;__privateSet(this,_tracking,!1);const now=new Date().getTime(),deltaTime=now-__privateGet(this,_start).time,deltaX=event.clientX-__privateGet(this,_start).x,deltaY=event.clientY-__privateGet(this,_start).y;if(deltaTime>__privateGet(this,_thresholdTime))return;let matchedEvent;deltaX===0&&deltaY===0?matchedEvent="tap":deltaX>__privateGet(this,_thresholdDistance)&&Math.abs(deltaY)<__privateGet(this,_thresholdDistance)?matchedEvent="swiperight":-deltaX>__privateGet(this,_thresholdDistance)&&Math.abs(deltaY)<__privateGet(this,_thresholdDistance)?matchedEvent="swipeleft":deltaY>__privateGet(this,_thresholdDistance)&&Math.abs(deltaX)<__privateGet(this,_thresholdDistance)?matchedEvent="swipedown":-deltaY>__privateGet(this,_thresholdDistance)&&Math.abs(deltaX)<__privateGet(this,_thresholdDistance)&&(matchedEvent="swipeup"),matchedEvent&&__privateGet(this,_domElement).dispatchEvent(new CustomEvent(matchedEvent,{bubbles:!0,composed:!0,detail:{originalEvent:event}}))};var _onCountryChangedListener,_onCountryChanged,onCountryChanged_fn,CountrySelector=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onCountryChanged),__privateAdd(this,_onCountryChangedListener,__privateMethod(this,_onCountryChanged,onCountryChanged_fn).bind(this))}connectedCallback(){this.countryElement=this.querySelector('[name="address[country]"]'),this.provinceElement=this.querySelector('[name="address[province]"]'),this.countryElement.addEventListener("change",__privateGet(this,_onCountryChangedListener)),this.getAttribute("country")!==""&&(this.countryElement.selectedIndex=Math.max(0,Array.from(this.countryElement.options).findIndex(option=>option.textContent===this.getAttribute("country")))),this.countryElement.dispatchEvent(new Event("change"))}disconnectedCallback(){this.countryElement.removeEventListener("change",__privateGet(this,_onCountryChangedListener))}};_onCountryChangedListener=new WeakMap,_onCountryChanged=new WeakSet,onCountryChanged_fn=function(){const option=this.countryElement.options[this.countryElement.selectedIndex],provinces=JSON.parse(option.getAttribute("data-provinces"));this.provinceElement.parentElement.hidden=provinces.length===0,provinces.length!==0&&(this.provinceElement.innerHTML="",provinces.forEach(data=>{const selected=data[1]===this.getAttribute("province")||data[0]===this.getAttribute("province");this.provinceElement.options.add(new Option(data[1],data[0],selected,selected))}))},window.customElements.get("country-selector")||window.customElements.define("country-selector",CountrySelector);function formatMoney(cents,format=""){typeof cents=="string"&&(cents=cents.replace(".",""));const placeholderRegex=/\{\{\s*(\w+)\s*\}\}/,formatString=format||window.themeVariables.settings.moneyFormat;function defaultTo(value2,defaultValue){return value2==null||value2!==value2?defaultValue:value2}function formatWithDelimiters(number,precision,thousands,decimal){if(precision=defaultTo(precision,2),thousands=defaultTo(thousands,","),decimal=defaultTo(decimal,"."),isNaN(number)||number==null)return 0;number=(number/100).toFixed(precision);let parts=number.split("."),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}let value="";switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ");break;case"amount_no_decimals_with_apostrophe_separator":value=formatWithDelimiters(cents,0,"'");break}return formatString.indexOf("with_comma_separator")!==-1,formatString.replace(placeholderRegex,value)}var cachedMap=new Map;function cachedFetch(url,options){const cacheKey=url;return cachedMap.has(cacheKey)?Promise.resolve(new Response(new Blob([cachedMap.get(cacheKey)]))):fetch(url,options).then(response=>{if(response.status===200){const contentType=response.headers.get("Content-Type");contentType&&(contentType.match(/application\/json/i)||contentType.match(/text\//i))&&response.clone().text().then(content=>{cachedMap.set(cacheKey,content)})}return response})}function extractSectionId(element){return element=element.classList.contains("shopify-section")?element:element.closest(".shopify-section"),element.id.replace("shopify-section-","")}function throttle(callback){let requestId=null,lastArgs;const later=context=>()=>{requestId=null,callback.apply(context,lastArgs)},throttled=(...args)=>{lastArgs=args,requestId===null&&(requestId=requestAnimationFrame(later(this)))};return throttled.cancel=()=>{cancelAnimationFrame(requestId),requestId=null},throttled}function debounce(fn,delay){let timer=null;return(...args)=>{clearTimeout(timer),timer=setTimeout(()=>{fn.apply(this,args)},delay)}}function waitForEvent(element,eventName){return new Promise(resolve=>{const done=event=>{event.target===element&&(element.removeEventListener(eventName,done),resolve(event))};element.addEventListener(eventName,done)})}function videoLoaded(videoOrArray){return videoOrArray?(videoOrArray=videoOrArray instanceof Element?[videoOrArray]:Array.from(videoOrArray),Promise.all(videoOrArray.map(video=>new Promise(resolve=>{video.tagName==="VIDEO"&&video.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA||!video.offsetParent?resolve():video.oncanplay=()=>resolve()})))):Promise.resolve()}function imageLoaded(imageOrArray){return imageOrArray?(imageOrArray=imageOrArray instanceof Element?[imageOrArray]:Array.from(imageOrArray),Promise.all(imageOrArray.map(image=>new Promise(resolve=>{image.tagName==="IMG"&&image.complete||!image.offsetParent?resolve():image.onload=()=>resolve()})))):Promise.resolve()}function generateSrcset(imageObjectOrString,widths=[]){let imageUrl,maxWidth;return typeof imageObjectOrString=="string"?(imageUrl=new URL(imageObjectOrString.startsWith("//")?`https:${imageObjectOrString}`:imageObjectOrString),maxWidth=parseInt(imageUrl.searchParams.get("width"))):(imageUrl=new URL(imageObjectOrString.src),maxWidth=imageObjectOrString.width),widths.filter(width=>width<=maxWidth).map(width=>(imageUrl.searchParams.set("width",width.toString()),`${imageUrl.href} ${width}w`)).join(", ")}function createMediaImg(media,widths=[],attributes={}){const image=new Image(media.preview_image.width,media.preview_image.height),featuredMediaUrl=new URL(media.preview_image.src);for(const attributeKey in attributes)image.setAttribute(attributeKey,attributes[attributeKey]);return image.alt=media.alt||"",image.src=featuredMediaUrl.href,image.srcset=generateSrcset(media.preview_image,widths),image}function matchesMediaQuery(breakpointName){if(!window.themeVariables.mediaQueries.hasOwnProperty(breakpointName))throw`Media query ${breakpointName} does not exist`;return window.matchMedia(window.themeVariables.mediaQueries[breakpointName]).matches}function mediaQueryListener(breakpointName,func){if(!window.themeVariables.mediaQueries.hasOwnProperty(breakpointName))throw`Media query ${breakpointName} does not exist`;return window.matchMedia(window.themeVariables.mediaQueries[breakpointName]).addEventListener("change",func)}var _callback,_duration,_remainingTime,_startTime,_timer,_state,_onVisibilityChangeListener,_mustResumeOnVisibility,_onVisibilityChange,onVisibilityChange_fn,Player=class extends EventTarget{constructor(durationInSec,stopOnVisibility=!0){super(),__privateAdd(this,_onVisibilityChange),__privateAdd(this,_callback,void 0),__privateAdd(this,_duration,void 0),__privateAdd(this,_remainingTime,void 0),__privateAdd(this,_startTime,void 0),__privateAdd(this,_timer,void 0),__privateAdd(this,_state,"paused"),__privateAdd(this,_onVisibilityChangeListener,__privateMethod(this,_onVisibilityChange,onVisibilityChange_fn).bind(this)),__privateAdd(this,_mustResumeOnVisibility,!0),__privateSet(this,_callback,()=>this.dispatchEvent(new CustomEvent("player:end"))),__privateSet(this,_duration,__privateSet(this,_remainingTime,durationInSec*1e3)),stopOnVisibility&&document.addEventListener("visibilitychange",__privateGet(this,_onVisibilityChangeListener))}pause(){__privateGet(this,_state)==="started"&&(clearTimeout(__privateGet(this,_timer)),__privateSet(this,_state,"paused"),__privateSet(this,_remainingTime,__privateGet(this,_remainingTime)-(new Date().getTime()-__privateGet(this,_startTime))),this.dispatchEvent(new CustomEvent("player:pause")))}resume(restartTimer=!1){__privateGet(this,_state)!=="stopped"&&(restartTimer?this.start():(clearTimeout(__privateGet(this,_timer)),__privateSet(this,_startTime,new Date().getTime()),__privateSet(this,_state,"started"),__privateSet(this,_timer,setTimeout(__privateGet(this,_callback),__privateGet(this,_remainingTime))),this.dispatchEvent(new CustomEvent("player:resume"))))}start(){clearTimeout(__privateGet(this,_timer)),__privateSet(this,_startTime,new Date().getTime()),__privateSet(this,_state,"started"),__privateSet(this,_remainingTime,__privateGet(this,_duration)),__privateSet(this,_timer,setTimeout(__privateGet(this,_callback),__privateGet(this,_remainingTime))),this.dispatchEvent(new CustomEvent("player:start"))}stop(){clearTimeout(__privateGet(this,_timer)),__privateSet(this,_state,"stopped"),this.dispatchEvent(new CustomEvent("player:stop"))}};_callback=new WeakMap,_duration=new WeakMap,_remainingTime=new WeakMap,_startTime=new WeakMap,_timer=new WeakMap,_state=new WeakMap,_onVisibilityChangeListener=new WeakMap,_mustResumeOnVisibility=new WeakMap,_onVisibilityChange=new WeakSet,onVisibilityChange_fn=function(){document.visibilityState==="hidden"?(__privateSet(this,_mustResumeOnVisibility,__privateGet(this,_state)==="started"),this.pause(),this.dispatchEvent(new CustomEvent("player:visibility-pause"))):document.visibilityState==="visible"&&__privateGet(this,_mustResumeOnVisibility)&&(this.resume(),this.dispatchEvent(new CustomEvent("player:visibility-resume")))};var QrCode=class extends HTMLElement{connectedCallback(){new window.QRCode(this,{text:this.getAttribute("identifier"),width:this.hasAttribute("width")?parseInt(this.getAttribute("width")):200,height:this.hasAttribute("height")?parseInt(this.getAttribute("height")):200})}};window.customElements.get("qr-code")||window.customElements.define("qr-code",QrCode);var _updateCustomProperties,updateCustomProperties_fn,HeightObserver=class extends HTMLElement{constructor(){super(),__privateAdd(this,_updateCustomProperties),window.ResizeObserver&&new ResizeObserver(throttle(__privateMethod(this,_updateCustomProperties,updateCustomProperties_fn).bind(this))).observe(this)}connectedCallback(){window.ResizeObserver||document.documentElement.style.setProperty(`--${this.getAttribute("variable")}-height`,`${Math.round(this.clientHeight)}px`)}};_updateCustomProperties=new WeakSet,updateCustomProperties_fn=function(entries){entries.forEach(entry=>{if(entry.target===this){const height=entry.borderBoxSize?entry.borderBoxSize.length>0?entry.borderBoxSize[0].blockSize:entry.borderBoxSize.blockSize:entry.target.clientHeight;document.documentElement.style.setProperty(`--${this.getAttribute("variable")}-height`,`${Math.round(height)}px`)}})},window.customElements.get("height-observer")||window.customElements.define("height-observer",HeightObserver);import{animate as animate2}from"vendor";var _onLoadingStart,onLoadingStart_fn,_onLoadingEnd,onLoadingEnd_fn,LoadingBar=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onLoadingStart),__privateAdd(this,_onLoadingEnd),document.addEventListener("theme:loading:start",__privateMethod(this,_onLoadingStart,onLoadingStart_fn).bind(this)),document.addEventListener("theme:loading:end",__privateMethod(this,_onLoadingEnd,onLoadingEnd_fn).bind(this))}};_onLoadingStart=new WeakSet,onLoadingStart_fn=function(){animate2(this,{opacity:[0,1],transform:["scaleX(0)","scaleX(0.4)"]},{duration:.25})},_onLoadingEnd=new WeakSet,onLoadingEnd_fn=async function(){await animate2(this,{transform:[null,"scaleX(1)"]},{duration:.25}).finished,animate2(this,{opacity:0},{duration:.25})},window.customElements.get("loading-bar")||window.customElements.define("loading-bar",LoadingBar);import{inView as inView2}from"vendor";var _resizeObserver,_checkPositionListener,_initialTop,_lastKnownY,_currentTop,_position,_recalculateStyles,recalculateStyles_fn,_checkPosition,checkPosition_fn,SafeSticky=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_recalculateStyles),__privateAdd(this,_checkPosition),__privateAdd(this,_resizeObserver,new ResizeObserver(__privateMethod(this,_recalculateStyles,recalculateStyles_fn).bind(this))),__privateAdd(this,_checkPositionListener,throttle(__privateMethod(this,_checkPosition,checkPosition_fn).bind(this))),__privateAdd(this,_initialTop,0),__privateAdd(this,_lastKnownY,0),__privateAdd(this,_currentTop,0),__privateAdd(this,_position,"relative")}connectedCallback(){inView2(this,()=>(window.addEventListener("scroll",__privateGet(this,_checkPositionListener)),__privateGet(this,_resizeObserver).observe(this),()=>{window.removeEventListener("scroll",__privateGet(this,_checkPositionListener)),__privateGet(this,_resizeObserver).unobserve(this)}),{margin:"500px"})}disconnectedCallback(){window.removeEventListener("scroll",__privateGet(this,_checkPositionListener)),__privateGet(this,_resizeObserver).unobserve(this)}};_resizeObserver=new WeakMap,_checkPositionListener=new WeakMap,_initialTop=new WeakMap,_lastKnownY=new WeakMap,_currentTop=new WeakMap,_position=new WeakMap,_recalculateStyles=new WeakSet,recalculateStyles_fn=function(){this.style.removeProperty("top");const computedStyles=getComputedStyle(this);__privateSet(this,_initialTop,parseInt(computedStyles.top)),__privateSet(this,_position,computedStyles.position),__privateMethod(this,_checkPosition,checkPosition_fn).call(this)},_checkPosition=new WeakSet,checkPosition_fn=function(){if(__privateGet(this,_position)!=="sticky")return this.style.removeProperty("top");let bounds=this.getBoundingClientRect(),maxTop=bounds.top+window.scrollY-this.offsetTop+__privateGet(this,_initialTop),minTop=this.clientHeight-window.innerHeight+20;window.scrollY<__privateGet(this,_lastKnownY)?__privateSet(this,_currentTop,__privateGet(this,_currentTop)-(window.scrollY-__privateGet(this,_lastKnownY))):__privateSet(this,_currentTop,__privateGet(this,_currentTop)+(__privateGet(this,_lastKnownY)-window.scrollY)),__privateSet(this,_currentTop,Math.min(Math.max(__privateGet(this,_currentTop),-minTop),maxTop,__privateGet(this,_initialTop))),__privateSet(this,_lastKnownY,window.scrollY),this.style.top=`${Math.round(__privateGet(this,_currentTop))}px`},window.customElements.get("safe-sticky")||window.customElements.define("safe-sticky",SafeSticky);var _abortController,_allItems,_onCarouselFilter,onCarouselFilter_fn,CarouselNavigation=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onCarouselFilter),__privateAdd(this,_abortController,void 0),__privateAdd(this,_allItems,[])}connectedCallback(){if(!this.carousel)throw"Carousel navigation component requires an aria-controls attribute that refers to the controlled carousel.";__privateSet(this,_abortController,new AbortController),__privateSet(this,_allItems,Array.from(this.querySelectorAll("button"))),__privateGet(this,_allItems).forEach(button=>button.addEventListener("click",()=>this.onButtonClicked(this.items.indexOf(button)),{signal:__privateGet(this,_abortController).signal})),this.carousel.addEventListener("carousel:change",event=>this.onNavigationChange(event.detail.index),{signal:__privateGet(this,_abortController).signal}),this.carousel.addEventListener("carousel:filter",__privateMethod(this,_onCarouselFilter,onCarouselFilter_fn).bind(this),{signal:__privateGet(this,_abortController).signal})}disconnectedCallback(){__privateGet(this,_abortController).abort()}get items(){return __privateGet(this,_allItems).filter(item=>!item.hasAttribute("hidden"))}get carousel(){return document.getElementById(this.getAttribute("aria-controls"))}get selectedIndex(){return this.items.findIndex(button=>button.getAttribute("aria-current")==="true")}onButtonClicked(newIndex){this.carousel.select(newIndex),this.onNavigationChange(newIndex)}onNavigationChange(newIndex){this.items.forEach((button,index)=>button.setAttribute("aria-current",newIndex===index?"true":"false")),this.hasAttribute("align-selected")&&(this.scrollWidth!==this.clientWidth||this.scrollHeight!==this.clientHeight)&&this.scrollTo({left:this.items[newIndex].offsetLeft-this.clientWidth/2+this.items[newIndex].clientWidth/2,top:this.items[newIndex].offsetTop-this.clientHeight/2+this.items[newIndex].clientHeight/2,behavior:matchesMediaQuery("motion-safe")?"smooth":"auto"})}};_abortController=new WeakMap,_allItems=new WeakMap,_onCarouselFilter=new WeakSet,onCarouselFilter_fn=function(event){__privateGet(this,_allItems).forEach((item,index)=>{item.toggleAttribute("hidden",(event.detail.filteredIndexes||[]).includes(index))})};var CarouselPrevButton=class extends HTMLButtonElement{#abortController;connectedCallback(){if(!this.carousel)throw"Carousel prev button component requires an aria-controls attribute that refers to the controlled carousel.";this.#abortController=new AbortController,this.addEventListener("click",()=>this.carousel.previous(),{signal:this.#abortController.signal}),this.carousel.addEventListener("scroll:edge-nearing",event=>this.disabled=event.detail.position==="start",{signal:this.#abortController.signal}),this.carousel.addEventListener("scroll:edge-leaving",event=>this.disabled=event.detail.position==="start"?!1:this.disabled,{signal:this.#abortController.signal})}disconnectedCallback(){this.#abortController.abort()}get carousel(){return document.getElementById(this.getAttribute("aria-controls"))}},CarouselNextButton=class extends HTMLButtonElement{#abortController;connectedCallback(){if(!this.carousel)throw"Carousel next button component requires an aria-controls attribute that refers to the controlled carousel.";this.#abortController=new AbortController,this.addEventListener("click",()=>this.carousel.next(),{signal:this.#abortController.signal}),this.carousel.addEventListener("scroll:edge-nearing",event=>this.disabled=event.detail.position==="end",{signal:this.#abortController.signal}),this.carousel.addEventListener("scroll:edge-leaving",event=>this.disabled=event.detail.position==="end"?!1:this.disabled,{signal:this.#abortController.signal})}disconnectedCallback(){this.#abortController.abort()}get carousel(){return document.getElementById(this.getAttribute("aria-controls"))}};window.customElements.get("carousel-prev-button")||window.customElements.define("carousel-prev-button",CarouselPrevButton,{extends:"button"}),window.customElements.get("carousel-next-button")||window.customElements.define("carousel-next-button",CarouselNextButton,{extends:"button"}),window.customElements.get("carousel-navigation")||window.customElements.define("carousel-navigation",CarouselNavigation);import{animate as animate3,timeline,inView as inView3}from"vendor";var _listenersAbortController,_gestureArea,_player,_targetIndex,_preventInitialTransition,_setupListeners,setupListeners_fn,_onKeyboardNavigation,onKeyboardNavigation_fn,_preloadImages,preloadImages_fn,EffectCarousel=class extends HTMLElement{constructor(){super(),__privateAdd(this,_setupListeners),__privateAdd(this,_onKeyboardNavigation),__privateAdd(this,_preloadImages),__privateAdd(this,_listenersAbortController,void 0),__privateAdd(this,_gestureArea,void 0),__privateAdd(this,_player,void 0),__privateAdd(this,_targetIndex,0),__privateAdd(this,_preventInitialTransition,!1),__privateMethod(this,_setupListeners,setupListeners_fn).call(this),inView3(this,()=>this.onBecameVisible()),this.addEventListener("carousel:settle",event=>event.detail.cell.classList.add("is-selected"))}connectedCallback(){__privateSet(this,_targetIndex,Math.max(0,this.cells.findIndex(item=>item.classList.contains("is-selected")))),__privateMethod(this,_preloadImages,preloadImages_fn).call(this)}get allowSwipe(){return this.hasAttribute("allow-swipe")}get cellSelector(){return this.hasAttribute("cell-selector")?this.getAttribute("cell-selector"):null}get allCells(){return this.cellSelector?Array.from(this.querySelectorAll(this.cellSelector)):Array.from(this.children)}get cells(){return this.allCells.filter(cell=>!cell.hasAttribute("hidden"))}get selectedCell(){return this.cells[this.selectedIndex]}get selectedIndex(){return __privateGet(this,_targetIndex)}get player(){return __privateGet(this,_player)}previous({instant=!1}={}){return this.select((this.selectedIndex-1+this.cells.length)%this.cells.length,{instant,direction:"previous"})}next({instant=!1}={}){return this.select((this.selectedIndex+1+this.cells.length)%this.cells.length,{instant,direction:"next"})}async select(index,{instant=!1,direction=null}={}){if(!(index in this.cells)||(this.dispatchEvent(new CustomEvent("carousel:select",{detail:{index,cell:this.cells[index]}})),index===this.selectedIndex))return Promise.resolve();__privateGet(this,_player)?.pause();const[fromSlide,toSlide]=[this.selectedCell,this.cells[index]];direction??=index>this.selectedIndex?"next":"previous",__privateSet(this,_targetIndex,index),this.dispatchEvent(new CustomEvent("carousel:change",{detail:{index,cell:this.cells[index]}}));const animationControls=this.createOnChangeAnimationControls(fromSlide,toSlide,{direction});if("leaveControls"in animationControls&&"enterControls"in animationControls){const leaveAnimationControls=animationControls.leaveControls();instant&&leaveAnimationControls.finish(),await leaveAnimationControls.finished,__privateGet(this,_player)?.resume(!0),fromSlide.classList.remove("is-selected"),toSlide.classList.add("is-selected");const enterAnimationControls=animationControls.enterControls();instant&&enterAnimationControls.finish(),await enterAnimationControls.finished}else instant&&animationControls.finish(),__privateGet(this,_player)?.resume(!0),toSlide.classList.add("is-selected"),await animationControls.finished,fromSlide.classList.remove("is-selected");this.dispatchEvent(new CustomEvent("carousel:settle",{detail:{index,cell:this.cells[index]}}))}filter(indexes=[]){this.allCells.forEach((cell,index)=>{cell.toggleAttribute("hidden",indexes.includes(index))}),this.dispatchEvent(new CustomEvent("carousel:filter",{detail:{filteredIndexes:indexes}}))}async onBecameVisible(){const animationControls=await this.createOnBecameVisibleAnimationControls(this.selectedCell);return[this.selectedCell,...this.selectedCell.querySelectorAll("[reveal-on-scroll]")].forEach(element=>{element.removeAttribute("reveal-on-scroll")}),__privateGet(this,_preventInitialTransition)&&typeof animationControls.finish=="function"&&animationControls.finish(),animationControls.finished.then(()=>{__privateGet(this,_player)?.resume(!0),this.dispatchEvent(new CustomEvent("carousel:settle",{detail:{index:this.selectedIndex,cell:this.selectedCell}}))})}createOnBecameVisibleAnimationControls(toSlide){return animate3(toSlide,{},{duration:0})}createOnChangeAnimationControls(fromSlide,toSlide,{direction}={}){return timeline([[fromSlide,{opacity:[1,0]},{duration:.3}],[toSlide,{opacity:[0,1]},{duration:.3,at:"<"}]])}cleanUpAnimations(){this.allCells.forEach(cell=>{cell.style.removeProperty("opacity"),cell.style.removeProperty("visibility")})}};_listenersAbortController=new WeakMap,_gestureArea=new WeakMap,_player=new WeakMap,_targetIndex=new WeakMap,_preventInitialTransition=new WeakMap,_setupListeners=new WeakSet,setupListeners_fn=function(){if(this.hasAttribute("disabled-on")&&(mediaQueryListener(this.getAttribute("disabled-on"),event=>{event.matches?(__privateGet(this,_listenersAbortController)?.abort(),this.cleanUpAnimations()):__privateMethod(this,_setupListeners,setupListeners_fn).call(this)}),matchesMediaQuery(this.getAttribute("disabled-on"))))return;__privateSet(this,_listenersAbortController,new AbortController);const listenerOptions={signal:__privateGet(this,_listenersAbortController).signal};Shopify.designMode&&this.closest(".shopify-section").addEventListener("shopify:section:select",event=>__privateSet(this,_preventInitialTransition,event.detail.load),listenerOptions),this.allCells.length>1&&(this.addEventListener("carousel:change",__privateMethod(this,_preloadImages,preloadImages_fn)),this.allowSwipe&&(__privateSet(this,_gestureArea,new GestureArea(this,{signal:__privateGet(this,_listenersAbortController).signal})),this.addEventListener("swipeleft",this.next,listenerOptions),this.addEventListener("swiperight",this.previous,listenerOptions)),this.hasAttribute("disable-keyboard-navigation")||(this.tabIndex=0,this.addEventListener("keydown",__privateMethod(this,_onKeyboardNavigation,onKeyboardNavigation_fn),listenerOptions)),Shopify.designMode&&this.addEventListener("shopify:block:select",event=>this.select(this.cells.indexOf(event.target),{instant:event.detail.load}),listenerOptions),this.hasAttribute("autoplay")&&(__privateGet(this,_player)??__privateSet(this,_player,new Player(this.getAttribute("autoplay")??5)),__privateGet(this,_player).addEventListener("player:end",this.next.bind(this),listenerOptions),Shopify.designMode&&(this.addEventListener("shopify:block:select",()=>__privateGet(this,_player).stop(),listenerOptions),this.addEventListener("shopify:block:deselect",()=>__privateGet(this,_player).start(),listenerOptions))))},_onKeyboardNavigation=new WeakSet,onKeyboardNavigation_fn=function(event){event.target===this&&(event.code==="ArrowLeft"?this.previous():event.code==="ArrowRight"&&this.next())},_preloadImages=new WeakSet,preloadImages_fn=function(){const previousSlide=this.cells[(this.selectedIndex-1+this.cells.length)%this.cells.length],nextSlide=this.cells[(this.selectedIndex+1+this.cells.length)%this.cells.length];[previousSlide,this.selectedCell,nextSlide].forEach(item=>{Array.from(item.querySelectorAll('img[loading="lazy"]')).forEach(img=>img.setAttribute("loading","eager")),Array.from(item.querySelectorAll('video[preload="none"]')).forEach(video=>video.setAttribute("preload","metadata"))})},window.customElements.get("effect-carousel")||window.customElements.define("effect-carousel",EffectCarousel);var _hasPendingProgrammaticScroll,_onMouseDownListener,_onMouseMoveListener,_onMouseClickListener,_onMouseUpListener,_targetIndex2,_forceChangeEvent,_dragPosition,_isDragging,_dispatchableScrollEvents,_scrollTimeout,_setupListeners2,setupListeners_fn2,_updateTargetIndex,updateTargetIndex_fn,_onScroll,onScroll_fn,_onScrollEnd,onScrollEnd_fn,_calculateLeftScroll,calculateLeftScroll_fn,_calculateClosestIndexToAlignment,calculateClosestIndexToAlignment_fn,_onMouseDown,onMouseDown_fn,_onMouseMove,onMouseMove_fn,_onMouseClick,onMouseClick_fn,_onMouseUp,onMouseUp_fn,_onResize,onResize_fn,_onMutate,onMutate_fn,_adaptHeight,adaptHeight_fn,_preloadImages2,preloadImages_fn2,ScrollCarousel=class extends HTMLElement{constructor(){super(),__privateAdd(this,_setupListeners2),__privateAdd(this,_updateTargetIndex),__privateAdd(this,_onScroll),__privateAdd(this,_onScrollEnd),__privateAdd(this,_calculateLeftScroll),__privateAdd(this,_calculateClosestIndexToAlignment),__privateAdd(this,_onMouseDown),__privateAdd(this,_onMouseMove),__privateAdd(this,_onMouseClick),__privateAdd(this,_onMouseUp),__privateAdd(this,_onResize),__privateAdd(this,_onMutate),__privateAdd(this,_adaptHeight),__privateAdd(this,_preloadImages2),__privateAdd(this,_hasPendingProgrammaticScroll,!1),__privateAdd(this,_onMouseDownListener,__privateMethod(this,_onMouseDown,onMouseDown_fn).bind(this)),__privateAdd(this,_onMouseMoveListener,__privateMethod(this,_onMouseMove,onMouseMove_fn).bind(this)),__privateAdd(this,_onMouseClickListener,__privateMethod(this,_onMouseClick,onMouseClick_fn).bind(this)),__privateAdd(this,_onMouseUpListener,__privateMethod(this,_onMouseUp,onMouseUp_fn).bind(this)),__privateAdd(this,_targetIndex2,0),__privateAdd(this,_forceChangeEvent,!1),__privateAdd(this,_dragPosition,{}),__privateAdd(this,_isDragging,!1),__privateAdd(this,_dispatchableScrollEvents,{nearingStart:!0,nearingEnd:!0,leavingStart:!0,leavingEnd:!0}),__privateAdd(this,_scrollTimeout,void 0),__privateMethod(this,_setupListeners2,setupListeners_fn2).call(this),new ResizeObserver(__privateMethod(this,_onResize,onResize_fn).bind(this)).observe(this),new MutationObserver(__privateMethod(this,_onMutate,onMutate_fn).bind(this)).observe(this,{subtree:!0,attributes:!0,attributeFilter:["hidden"]})}connectedCallback(){__privateSet(this,_targetIndex2,Math.max(0,this.cells.findIndex(item=>item.classList.contains("is-initial")))),__privateGet(this,_targetIndex2)>0&&this.select(__privateGet(this,_targetIndex2),{instant:!0}),this.adaptiveHeight&&__privateMethod(this,_adaptHeight,adaptHeight_fn).call(this),__privateMethod(this,_preloadImages2,preloadImages_fn2).call(this)}disconnectedCallback(){this.removeEventListener("mousemove",__privateGet(this,_onMouseMoveListener)),document.removeEventListener("mouseup",__privateGet(this,_onMouseUpListener))}get cellSelector(){return this.hasAttribute("cell-selector")?this.getAttribute("cell-selector"):null}get allCells(){return this.cellSelector?Array.from(this.querySelectorAll(this.cellSelector)):Array.from(this.children)}get cells(){return this.allCells.filter(cell=>!cell.hasAttribute("hidden"))}get selectedCell(){return this.cells[this.selectedIndex]}get selectedIndex(){return __privateGet(this,_targetIndex2)}get cellAlign(){const scrollSnapAlign=getComputedStyle(this.cells[0]).scrollSnapAlign;return scrollSnapAlign==="none"?"center":scrollSnapAlign}get groupCells(){if(this.hasAttribute("group-cells")){const number=parseInt(this.getAttribute("group-cells"));return isNaN(number)?Math.floor(this.clientWidth/this.cells[0].clientWidth):number}else return 1}get adaptiveHeight(){return this.hasAttribute("adaptive-height")}get isScrollable(){return this.scrollWidth!==this.clientWidth||this.scrollHeight!==this.clientHeight}previous({instant=!1}={}){this.select(Math.max(__privateGet(this,_targetIndex2)-this.groupCells,0),{instant})}next({instant=!1}={}){this.select(Math.min(__privateGet(this,_targetIndex2)+this.groupCells,this.cells.length-1),{instant})}select(index,{instant=!1}={}){if(index in this.cells)if(this.dispatchEvent(new CustomEvent("carousel:select",{detail:{index,cell:this.cells[index]}})),"checkVisibility"in this&&this.checkVisibility()||this.offsetWidth>0&&this.offsetHeight>0){const targetScrollLeft=__privateMethod(this,_calculateLeftScroll,calculateLeftScroll_fn).call(this,this.cells[index]);this.scrollLeft!==targetScrollLeft?(__privateMethod(this,_updateTargetIndex,updateTargetIndex_fn).call(this,index),__privateSet(this,_hasPendingProgrammaticScroll,!0),this.scrollTo({left:targetScrollLeft,behavior:instant?"auto":"smooth"})):__privateMethod(this,_updateTargetIndex,updateTargetIndex_fn).call(this,__privateMethod(this,_calculateClosestIndexToAlignment,calculateClosestIndexToAlignment_fn).call(this))}else __privateSet(this,_targetIndex2,index),__privateSet(this,_forceChangeEvent,!0)}filter(indexes=[]){this.allCells.forEach((cell,index)=>{cell.toggleAttribute("hidden",indexes.includes(index))}),this.dispatchEvent(new CustomEvent("carousel:filter",{detail:{filteredIndexes:indexes}}))}};_hasPendingProgrammaticScroll=new WeakMap,_onMouseDownListener=new WeakMap,_onMouseMoveListener=new WeakMap,_onMouseClickListener=new WeakMap,_onMouseUpListener=new WeakMap,_targetIndex2=new WeakMap,_forceChangeEvent=new WeakMap,_dragPosition=new WeakMap,_isDragging=new WeakMap,_dispatchableScrollEvents=new WeakMap,_scrollTimeout=new WeakMap,_setupListeners2=new WeakSet,setupListeners_fn2=function(){if(this.allCells.length>1){if(this.addEventListener("carousel:change",__privateMethod(this,_preloadImages2,preloadImages_fn2)),this.addEventListener("scroll",throttle(__privateMethod(this,_onScroll,onScroll_fn).bind(this))),this.addEventListener("scrollend",__privateMethod(this,_onScrollEnd,onScrollEnd_fn)),this.hasAttribute("allow-drag")){const mediaQuery=window.matchMedia("screen and (pointer: fine)");mediaQuery.addEventListener("change",event=>{event.matches?this.addEventListener("mousedown",__privateGet(this,_onMouseDownListener)):this.removeEventListener("mousedown",__privateGet(this,_onMouseDownListener))}),mediaQuery.matches&&this.addEventListener("mousedown",__privateGet(this,_onMouseDownListener))}this.adaptiveHeight&&this.addEventListener("carousel:settle",__privateMethod(this,_adaptHeight,adaptHeight_fn)),Shopify.designMode&&this.addEventListener("shopify:block:select",event=>this.select(this.cells.indexOf(event.target),{instant:event.detail.load}))}},_updateTargetIndex=new WeakSet,updateTargetIndex_fn=function(newValue){newValue===__privateGet(this,_targetIndex2)&&!__privateGet(this,_forceChangeEvent)||(__privateSet(this,_targetIndex2,newValue),__privateSet(this,_forceChangeEvent,!1),this.dispatchEvent(new CustomEvent("carousel:change",{detail:{index:newValue,cell:this.cells[newValue]}})))},_onScroll=new WeakSet,onScroll_fn=function(){const normalizedScrollLeft=Math.round(Math.abs(this.scrollLeft));normalizedScrollLeft<100&&__privateGet(this,_dispatchableScrollEvents).nearingStart&&(this.dispatchEvent(new CustomEvent("scroll:edge-nearing",{detail:{position:"start"}})),__privateGet(this,_dispatchableScrollEvents).nearingStart=!1,__privateGet(this,_dispatchableScrollEvents).leavingStart=!0),normalizedScrollLeft>=100&&__privateGet(this,_dispatchableScrollEvents).leavingStart&&(this.dispatchEvent(new CustomEvent("scroll:edge-leaving",{detail:{position:"start"}})),__privateGet(this,_dispatchableScrollEvents).leavingStart=!1,__privateGet(this,_dispatchableScrollEvents).nearingStart=!0),this.scrollWidth-this.clientWidth=normalizedScrollLeft+100&&__privateGet(this,_dispatchableScrollEvents).leavingEnd&&(this.dispatchEvent(new CustomEvent("scroll:edge-leaving",{detail:{position:"end"}})),__privateGet(this,_dispatchableScrollEvents).leavingEnd=!1,__privateGet(this,_dispatchableScrollEvents).nearingEnd=!0),"onscrollend"in window||(clearTimeout(__privateGet(this,_scrollTimeout)),__privateSet(this,_scrollTimeout,setTimeout(()=>{this.dispatchEvent(new CustomEvent("scrollend",{bubbles:!0}))},75))),!__privateGet(this,_hasPendingProgrammaticScroll)&&__privateMethod(this,_updateTargetIndex,updateTargetIndex_fn).call(this,__privateMethod(this,_calculateClosestIndexToAlignment,calculateClosestIndexToAlignment_fn).call(this))},_onScrollEnd=new WeakSet,onScrollEnd_fn=function(){__privateSet(this,_hasPendingProgrammaticScroll,!1),__privateGet(this,_isDragging)||this.style.removeProperty("scroll-snap-type"),__privateMethod(this,_updateTargetIndex,updateTargetIndex_fn).call(this,__privateMethod(this,_calculateClosestIndexToAlignment,calculateClosestIndexToAlignment_fn).call(this)),this.dispatchEvent(new CustomEvent("carousel:settle",{detail:{index:this.selectedIndex,cell:this.selectedCell}}))},_calculateLeftScroll=new WeakSet,calculateLeftScroll_fn=function(cell){let scrollLeft;switch(this.cellAlign){case"start":scrollLeft=document.dir==="ltr"?cell.offsetLeft-(parseInt(getComputedStyle(this).scrollPaddingInlineStart)||0):cell.offsetLeft+cell.offsetWidth-this.clientWidth+(parseInt(getComputedStyle(this).scrollPaddingInlineStart)||0);break;case"center":scrollLeft=Math.round(cell.offsetLeft-this.clientWidth/2+cell.clientWidth/2);break;case"end":scrollLeft=document.dir==="ltr"?cell.offsetLeft+cell.offsetWidth-this.clientWidth+(parseInt(getComputedStyle(this).scrollPaddingInlineEnd)||0):cell.offsetLeft-(parseInt(getComputedStyle(this).scrollPaddingInlineEnd)||0);break}return document.dir==="ltr"?Math.min(Math.max(scrollLeft,0),this.scrollWidth-this.clientWidth):Math.min(Math.max(scrollLeft,this.clientWidth-this.scrollWidth),0)},_calculateClosestIndexToAlignment=new WeakSet,calculateClosestIndexToAlignment_fn=function(){let cellAlign=this.cellAlign,offsetAccumulators,targetPoint;return cellAlign==="center"?(offsetAccumulators=this.cells.map(cell=>Math.round(cell.offsetLeft+cell.clientWidth/2)),targetPoint=Math.round(this.scrollLeft+this.clientWidth/2)):cellAlign==="start"&&document.dir==="ltr"||cellAlign==="end"&&document.dir==="rtl"?(offsetAccumulators=this.cells.map(cell=>cell.offsetLeft),targetPoint=this.scrollLeft):(offsetAccumulators=this.cells.map(cell=>cell.offsetLeft+cell.clientWidth),targetPoint=this.scrollLeft+this.clientWidth),offsetAccumulators.indexOf(offsetAccumulators.reduce((prev,curr)=>Math.abs(curr-targetPoint)this.clientWidth)},_onMutate=new WeakSet,onMutate_fn=function(){__privateSet(this,_forceChangeEvent,!0)},_adaptHeight=new WeakSet,adaptHeight_fn=function(){this.style.maxHeight=null,this.isScrollable&&(this.style.maxHeight=`${this.selectedCell.clientHeight}px`)},_preloadImages2=new WeakSet,preloadImages_fn2=function(){const previousSlide=this.cells[Math.max(this.selectedIndex-1,0)],nextSlide=this.cells[Math.min(this.selectedIndex+1,this.cells.length-1)];[previousSlide,this.selectedCell,nextSlide].filter(item=>item!==null).forEach(item=>{Array.from(item.querySelectorAll('img[loading="lazy"]')).forEach(img=>img.setAttribute("loading","eager")),Array.from(item.querySelectorAll('video[preload="none"]')).forEach(video=>video.setAttribute("preload","metadata"))})},window.customElements.get("scroll-carousel")||window.customElements.define("scroll-carousel",ScrollCarousel);var createCartPromise=()=>new Promise(async resolve=>{resolve(await(await fetch(`${Shopify.routes.root}cart.js`)).json())}),fetchCart=createCartPromise();document.addEventListener("cart:change",event=>{fetchCart=event.detail.cart}),window.addEventListener("pageshow",event=>{event.persisted&&(fetchCart=createCartPromise())}),document.addEventListener("cart:refresh",()=>{fetchCart=createCartPromise()});var _abortController2,_updateFromServer,updateFromServer_fn,CartCount=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_updateFromServer),__privateAdd(this,_abortController2,void 0)}connectedCallback(){__privateSet(this,_abortController2,new AbortController),document.addEventListener("cart:change",event=>this.itemCount=event.detail.cart.item_count,{signal:__privateGet(this,_abortController2).signal}),document.addEventListener("cart:refresh",__privateMethod(this,_updateFromServer,updateFromServer_fn).bind(this),{signal:__privateGet(this,_abortController2).signal}),window.addEventListener("pageshow",__privateMethod(this,_updateFromServer,updateFromServer_fn).bind(this),{signal:__privateGet(this,_abortController2).signal})}disconnectedCallback(){__privateGet(this,_abortController2).abort()}set itemCount(count){this.innerText=count}};_abortController2=new WeakMap,_updateFromServer=new WeakSet,updateFromServer_fn=async function(){this.itemCount=(await fetchCart).item_count},window.customElements.get("cart-count")||window.customElements.define("cart-count",CartCount);var _abortController3,_updateFromServer2,updateFromServer_fn2,CartDot=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_updateFromServer2),__privateAdd(this,_abortController3,void 0)}connectedCallback(){__privateSet(this,_abortController3,new AbortController),document.addEventListener("cart:change",event=>this.classList.toggle("is-visible",event.detail.cart.item_count>0),{signal:__privateGet(this,_abortController3).signal}),document.addEventListener("cart:refresh",__privateMethod(this,_updateFromServer2,updateFromServer_fn2).bind(this),{signal:__privateGet(this,_abortController3).signal}),window.addEventListener("pageshow",__privateMethod(this,_updateFromServer2,updateFromServer_fn2).bind(this),{signal:__privateGet(this,_abortController3).signal})}disconnectedCallback(){__privateGet(this,_abortController3).abort()}};_abortController3=new WeakMap,_updateFromServer2=new WeakSet,updateFromServer_fn2=async function(){this.classList.toggle("is-visible",(await fetchCart).item_count>0)},window.customElements.get("cart-dot")||window.customElements.define("cart-dot",CartDot);var _onNoteChanged,onNoteChanged_fn,CartNote=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onNoteChanged),this.addEventListener("change",__privateMethod(this,_onNoteChanged,onNoteChanged_fn))}};_onNoteChanged=new WeakSet,onNoteChanged_fn=function(event){event.target.getAttribute("name")==="note"&&fetch(`${Shopify.routes.root}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({note:event.target.value}),keepalive:!0})},window.customElements.get("cart-note")||window.customElements.define("cart-note",CartNote);var _onCartChangedListener,_threshold,_updateMessage,updateMessage_fn,_onCartChanged,onCartChanged_fn,FreeShippingBar=class extends HTMLElement{constructor(){super(),__privateAdd(this,_updateMessage),__privateAdd(this,_onCartChanged),__privateAdd(this,_onCartChangedListener,__privateMethod(this,_onCartChanged,onCartChanged_fn).bind(this)),__privateAdd(this,_threshold,void 0),__privateSet(this,_threshold,parseFloat(this.getAttribute("threshold").replace(/[^0-9.]/g,""))*100),this.setAttribute("threshold",__privateGet(this,_threshold))}static get observedAttributes(){return["threshold","total-price"]}connectedCallback(){document.addEventListener("cart:change",__privateGet(this,_onCartChangedListener))}disconnectedCallback(){document.removeEventListener("cart:change",__privateGet(this,_onCartChangedListener))}get totalPrice(){return parseFloat(this.getAttribute("total-price"))}set totalPrice(value){this.setAttribute("total-price",value)}attributeChangedCallback(){__privateMethod(this,_updateMessage,updateMessage_fn).call(this)}};_onCartChangedListener=new WeakMap,_threshold=new WeakMap,_updateMessage=new WeakSet,updateMessage_fn=function(){const messageElement=this.querySelector("span");if(this.totalPrice>=__privateGet(this,_threshold))messageElement.innerHTML=this.getAttribute("reached-message");else{const replacement=`${formatMoney(__privateGet(this,_threshold)-this.totalPrice).replace(/\$/g,"$$$$")}`;messageElement.innerHTML=this.getAttribute("unreached-message").replace(new RegExp("({{.*}})","g"),replacement)}},_onCartChanged=new WeakSet,onCartChanged_fn=function(event){const priceForItems=event.detail.cart.items.filter(item=>item.requires_shipping).reduce((sum,item)=>sum+item.final_line_price,0),cartDiscount=event.detail.cart.cart_level_discount_applications.reduce((sum,discountAllocation)=>sum+discountAllocation.total_allocated_amount,0);this.totalPrice=priceForItems-cartDiscount},window.customElements.get("free-shipping-bar")||window.customElements.define("free-shipping-bar",FreeShippingBar);import{Delegate}from"vendor";var _delegate,_onQuantityChanged,onQuantityChanged_fn,_onChangeLinkClicked,onChangeLinkClicked_fn,_changeLineItemQuantity,changeLineItemQuantity_fn,LineItemQuantity=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onQuantityChanged),__privateAdd(this,_onChangeLinkClicked),__privateAdd(this,_changeLineItemQuantity),__privateAdd(this,_delegate,new Delegate(this)),__privateGet(this,_delegate).on("change","[data-line-key]",__privateMethod(this,_onQuantityChanged,onQuantityChanged_fn).bind(this)),__privateGet(this,_delegate).on("click",'[href*="/cart/change"]',__privateMethod(this,_onChangeLinkClicked,onChangeLinkClicked_fn).bind(this))}};_delegate=new WeakMap,_onQuantityChanged=new WeakSet,onQuantityChanged_fn=function(event,target){__privateMethod(this,_changeLineItemQuantity,changeLineItemQuantity_fn).call(this,target.getAttribute("data-line-key"),parseInt(target.value))},_onChangeLinkClicked=new WeakSet,onChangeLinkClicked_fn=function(event,target){event.preventDefault();const url=new URL(target.href);__privateMethod(this,_changeLineItemQuantity,changeLineItemQuantity_fn).call(this,url.searchParams.get("id"),parseInt(url.searchParams.get("quantity")))},_changeLineItemQuantity=new WeakSet,changeLineItemQuantity_fn=async function(lineKey,targetQuantity){if(window.themeVariables.settings.pageType==="cart")window.location.href=`${Shopify.routes.root}cart/change?id=${lineKey}&quantity=${targetQuantity}`;else{document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));const lineItem=this.closest("line-item");lineItem?.dispatchEvent(new CustomEvent("line-item:will-change",{bubbles:!0,detail:{targetQuantity}}));let sectionsToBundle=[];document.documentElement.dispatchEvent(new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:sectionsToBundle}}));const cartContent=await(await fetch(`${Shopify.routes.root}cart/change.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:lineKey,quantity:targetQuantity,sections:sectionsToBundle.join(",")})})).json();document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0}));const lineItemAfterChange=cartContent.items.filter(lineItem2=>lineItem2.key===lineKey);lineItem?.dispatchEvent(new CustomEvent("line-item:change",{bubbles:!0,detail:{quantity:lineItemAfterChange.length===0?0:lineItemAfterChange[0].quantity,cart:cartContent}})),document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{baseEvent:"line-item:change",cart:cartContent}}))}},window.customElements.get("line-item-quantity")||window.customElements.define("line-item-quantity",LineItemQuantity);var _estimateShippingListener,_estimateShipping,estimateShipping_fn,_getAsyncShippingRates,getAsyncShippingRates_fn,_formatShippingRates,formatShippingRates_fn,_formatError,formatError_fn,ShippingEstimator=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_estimateShipping),__privateAdd(this,_getAsyncShippingRates),__privateAdd(this,_formatShippingRates),__privateAdd(this,_formatError),__privateAdd(this,_estimateShippingListener,__privateMethod(this,_estimateShipping,estimateShipping_fn).bind(this))}connectedCallback(){this.submitButton=this.querySelector('[type="button"]'),this.resultsElement=this.querySelector('[aria-live="polite"]'),this.submitButton.addEventListener("click",__privateGet(this,_estimateShippingListener))}disconnectedCallback(){this.submitButton.removeEventListener("click",__privateGet(this,_estimateShippingListener))}};_estimateShippingListener=new WeakMap,_estimateShipping=new WeakSet,estimateShipping_fn=async function(event){event.preventDefault();const zip=this.querySelector('[name="address[zip]"]').value,country=this.querySelector('[name="address[country]"]').value,province=this.querySelector('[name="address[province]"]').value;this.submitButton.setAttribute("aria-busy","true"),document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));const prepareResponse=await fetch(`${Shopify.routes.root}cart/prepare_shipping_rates.json?shipping_address[zip]=${zip}&shipping_address[country]=${country}&shipping_address[province]=${province}`,{method:"POST"});if(document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0})),prepareResponse.ok){const shippingRates=await __privateMethod(this,_getAsyncShippingRates,getAsyncShippingRates_fn).call(this,zip,country,province);__privateMethod(this,_formatShippingRates,formatShippingRates_fn).call(this,shippingRates)}else{const jsonError=await prepareResponse.json();__privateMethod(this,_formatError,formatError_fn).call(this,jsonError)}this.resultsElement.hidden=!1,this.submitButton.removeAttribute("aria-busy")},_getAsyncShippingRates=new WeakSet,getAsyncShippingRates_fn=async function(zip,country,province){const responseAsText=await(await fetch(`${Shopify.routes.root}cart/async_shipping_rates.json?shipping_address[zip]=${zip}&shipping_address[country]=${country}&shipping_address[province]=${province}`)).text();return responseAsText==="null"?__privateMethod(this,_getAsyncShippingRates,getAsyncShippingRates_fn).call(this,zip,country,province):JSON.parse(responseAsText).shipping_rates},_formatShippingRates=new WeakSet,formatShippingRates_fn=function(shippingRates){let formattedShippingRates=shippingRates.map(shippingRate=>`
  • ${shippingRate.presentment_name}: ${shippingRate.currency} ${shippingRate.price}
  • `);this.resultsElement.innerHTML=`

    ${shippingRates.length===0?window.themeVariables.strings.shippingEstimatorNoResults:shippingRates.length===1?window.themeVariables.strings.shippingEstimatorOneResult:window.themeVariables.strings.shippingEstimatorMultipleResults}

    ${formattedShippingRates===""?"":`
      ${formattedShippingRates}
    `}
    `},_formatError=new WeakSet,formatError_fn=function(errors){let formattedShippingRates=Object.keys(errors).map(errorKey=>`
  • ${errors[errorKey]}
  • `);this.resultsElement.innerHTML=`

    ${window.themeVariables.strings.shippingEstimatorError}

      ${formattedShippingRates}
    `},window.customElements.get("shipping-estimator")||window.customElements.define("shipping-estimator",ShippingEstimator);var _isDirty,_buildUrl,buildUrl_fn,_onFormChanged,onFormChanged_fn,_onFormSubmitted,onFormSubmitted_fn,FacetsForm=class extends HTMLFormElement{constructor(){super(),__privateAdd(this,_buildUrl),__privateAdd(this,_onFormChanged),__privateAdd(this,_onFormSubmitted),__privateAdd(this,_isDirty,!1),this.addEventListener("change",__privateMethod(this,_onFormChanged,onFormChanged_fn)),this.addEventListener("submit",__privateMethod(this,_onFormSubmitted,onFormSubmitted_fn))}};_isDirty=new WeakMap,_buildUrl=new WeakSet,buildUrl_fn=function(){const searchParams=new URLSearchParams(new FormData(this)),url=new URL(this.action);return url.search="",searchParams.forEach((value,key)=>url.searchParams.append(key,value)),["page","filter.v.price.gte","filter.v.price.lte"].forEach(optionToClear=>{url.searchParams.get(optionToClear)===""&&url.searchParams.delete(optionToClear)}),url.searchParams.set("section_id",this.getAttribute("section-id")),url},_onFormChanged=new WeakSet,onFormChanged_fn=function(){__privateSet(this,_isDirty,!0),this.hasAttribute("update-on-change")?this.dispatchEvent(new Event("submit",{cancelable:!0})):cachedFetch(__privateMethod(this,_buildUrl,buildUrl_fn).call(this).toString())},_onFormSubmitted=new WeakSet,onFormSubmitted_fn=function(event){event.preventDefault(),__privateGet(this,_isDirty)&&(this.dispatchEvent(new CustomEvent("facet:update",{bubbles:!0,detail:{url:__privateMethod(this,_buildUrl,buildUrl_fn).call(this)}})),__privateSet(this,_isDirty,!1))},window.customElements.get("facets-form")||window.customElements.define("facets-form",FacetsForm,{extends:"form"});import{animate as animate4,FocusTrap,Delegate as Delegate2}from"vendor";var lockLayerCount=0,_isLocked,_delegate2,_abortController4,_focusTrap,_originalParentBeforeAppend,_allowOutsideClick,allowOutsideClick_fn,_allowOutsideClickTouch,allowOutsideClickTouch_fn,_allowOutsideClickMouse,allowOutsideClickMouse_fn,_onToggleClicked,onToggleClicked_fn,_updateSlotVisibility,updateSlotVisibility_fn,DialogElement=class extends HTMLElement{constructor(){super(),__privateAdd(this,_allowOutsideClick),__privateAdd(this,_allowOutsideClickTouch),__privateAdd(this,_allowOutsideClickMouse),__privateAdd(this,_onToggleClicked),__privateAdd(this,_updateSlotVisibility),__privateAdd(this,_isLocked,!1),__privateAdd(this,_delegate2,new Delegate2(document.body)),__privateAdd(this,_abortController4,void 0),__privateAdd(this,_focusTrap,void 0),__privateAdd(this,_originalParentBeforeAppend,void 0),this.shadowDomTemplate&&(this.attachShadow({mode:"open"}).appendChild(document.getElementById(this.shadowDomTemplate).content.cloneNode(!0)),this.shadowRoot.addEventListener("slotchange",event=>__privateMethod(this,_updateSlotVisibility,updateSlotVisibility_fn).call(this,event.target))),this.addEventListener("dialog:force-close",event=>{this.hide(),event.stopPropagation()})}static get observedAttributes(){return["id","open"]}connectedCallback(){this.id&&__privateGet(this,_delegate2).off().on("click",`[aria-controls="${this.id}"]`,__privateMethod(this,_onToggleClicked,onToggleClicked_fn).bind(this)),__privateSet(this,_abortController4,new AbortController),this.setAttribute("role","dialog"),this.shadowDomTemplate&&(this.getShadowPartByName("overlay")?.addEventListener("click",this.hide.bind(this),{signal:this.abortController.signal}),Array.from(this.shadowRoot.querySelectorAll("slot")).forEach(slot=>__privateMethod(this,_updateSlotVisibility,updateSlotVisibility_fn).call(this,slot))),Shopify.designMode&&(this.addEventListener("shopify:block:select",event=>this.show(!event.detail.load),{signal:this.abortController.signal}),this.addEventListener("shopify:block:deselect",this.hide,{signal:this.abortController.signal}),this._shopifySection=this._shopifySection||this.closest(".shopify-section"),this._shopifySection&&(this.hasAttribute("handle-editor-events")&&(this._shopifySection.addEventListener("shopify:section:select",event=>this.show(!event.detail.load),{signal:this.abortController.signal}),this._shopifySection.addEventListener("shopify:section:deselect",this.hide.bind(this),{signal:this.abortController.signal})),this._shopifySection.addEventListener("shopify:section:unload",()=>this.remove(),{signal:this.abortController.signal})))}disconnectedCallback(){__privateGet(this,_delegate2).off(),this.abortController.abort(),this.focusTrap?.deactivate({onDeactivate:()=>{}}),__privateGet(this,_isLocked)&&(__privateSet(this,_isLocked,!1),document.documentElement.classList.toggle("lock",--lockLayerCount>0))}show(animate27=!0){return this.open?Promise.resolve():(this.setAttribute("open",animate27?"":"immediate"),waitForEvent(this,"dialog:after-show"))}hide(){return this.open?(this.removeAttribute("open"),waitForEvent(this,"dialog:after-hide")):Promise.resolve()}get abortController(){return __privateGet(this,_abortController4)}get controls(){return Array.from(this.getRootNode().querySelectorAll(`[aria-controls="${this.id}"]`))}get open(){return this.hasAttribute("open")}get shouldTrapFocus(){return!0}get shouldLock(){return!1}get clickOutsideDeactivates(){return!0}get shouldAppendToBody(){return!1}get initialFocus(){return this.hasAttribute("initial-focus")?this.getAttribute("initial-focus")==="false"?!1:this.querySelector(this.getAttribute("initial-focus")):this.hasAttribute("tabindex")?this:this.querySelector('input:not([type="hidden"])')||!1}get preventScrollWhenTrapped(){return!0}get focusTrap(){return __privateSet(this,_focusTrap,__privateGet(this,_focusTrap)||new FocusTrap.createFocusTrap([this,this.shadowRoot],{onDeactivate:this.hide.bind(this),allowOutsideClick:this.clickOutsideDeactivates?__privateMethod(this,_allowOutsideClick,allowOutsideClick_fn).bind(this):!1,initialFocus:matchesMediaQuery("supports-hover")?this.initialFocus:!1,fallbackFocus:this,preventScroll:this.preventScrollWhenTrapped}))}get shadowDomTemplate(){return this.getAttribute("template")}getShadowPartByName(name){return this.shadowRoot?.querySelector(`[part="${name}"]`)}attributeChangedCallback(name,oldValue,newValue){switch(name){case"id":newValue&&__privateGet(this,_delegate2).off().on("click",`[aria-controls="${this.id}"]`,__privateMethod(this,_onToggleClicked,onToggleClicked_fn).bind(this));break;case"open":if(this.controls.forEach(toggle=>toggle.setAttribute("aria-expanded",newValue===null?"false":"true")),oldValue===null&&(newValue===""||newValue==="immediate")){__privateSet(this,_originalParentBeforeAppend,null),this.style.setProperty("display","block"),this.dispatchEvent(new CustomEvent("dialog:before-show")),this.shouldAppendToBody&&this.parentElement!==document.body&&(__privateSet(this,_originalParentBeforeAppend,this.parentElement),document.body.append(this));const animationControls=this.createEnterAnimationControls();newValue==="immediate"&&animationControls.finish(),animationControls.finished.then(()=>{this.dispatchEvent(new CustomEvent("dialog:after-show"))}),this.shouldTrapFocus&&this.focusTrap.activate({checkCanFocusTrap:()=>animationControls.finished}),this.shouldLock&&(lockLayerCount+=1,__privateSet(this,_isLocked,!0),document.documentElement.classList.add("lock"))}else if(oldValue!==null&&newValue===null){this.dispatchEvent(new CustomEvent("dialog:before-hide"));const hideTransitionPromise=this.createLeaveAnimationControls().finished;hideTransitionPromise.then(()=>{this.parentElement===document.body&&__privateGet(this,_originalParentBeforeAppend)&&(__privateGet(this,_originalParentBeforeAppend).appendChild(this),__privateSet(this,_originalParentBeforeAppend,null)),this.style.setProperty("display","none"),this.dispatchEvent(new CustomEvent("dialog:after-hide"))}),this.focusTrap?.deactivate({checkCanReturnFocus:()=>hideTransitionPromise}),this.shouldLock&&(__privateSet(this,_isLocked,!1),document.documentElement.classList.toggle("lock",--lockLayerCount>0))}this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0}));break}}createEnterAnimationControls(){return animate4(this,{},{duration:0})}createLeaveAnimationControls(){return animate4(this,{},{duration:0})}hideForOutsideClickTarget(target){return!this.contains(target)}allowOutsideClickForTarget(target){return!1}};_isLocked=new WeakMap,_delegate2=new WeakMap,_abortController4=new WeakMap,_focusTrap=new WeakMap,_originalParentBeforeAppend=new WeakMap,_allowOutsideClick=new WeakSet,allowOutsideClick_fn=function(event){return"TouchEvent"in window&&event instanceof TouchEvent?__privateMethod(this,_allowOutsideClickTouch,allowOutsideClickTouch_fn).call(this,event):__privateMethod(this,_allowOutsideClickMouse,allowOutsideClickMouse_fn).call(this,event)},_allowOutsideClickTouch=new WeakSet,allowOutsideClickTouch_fn=function(event){return event.target.addEventListener("touchend",subEvent=>{const endTarget=document.elementFromPoint(subEvent.changedTouches.item(0).clientX,subEvent.changedTouches.item(0).clientY);this.hideForOutsideClickTarget(endTarget)&&this.hide()},{once:!0,signal:this.abortController.signal}),this.allowOutsideClickForTarget(event.target)},_allowOutsideClickMouse=new WeakSet,allowOutsideClickMouse_fn=function(event){if(event.type!=="click")return!1;if(this.hideForOutsideClickTarget(event.target)&&this.hide(),this.allowOutsideClickForTarget(event.target))return!0;let target=event.target,closestControl=event.target.closest("[aria-controls]");return closestControl&&closestControl.getAttribute("aria-controls")===this.id&&(target=closestControl),this.id!==target.getAttribute("aria-controls")},_onToggleClicked=new WeakSet,onToggleClicked_fn=function(event){event?.preventDefault(),this.open?this.hide():this.show()},_updateSlotVisibility=new WeakSet,updateSlotVisibility_fn=function(slot){["header","footer"].includes(slot.name)&&(slot.parentElement.hidden=slot.assignedElements({flatten:!0}).length===0)};var DialogCloseButton=class extends HTMLButtonElement{constructor(){super(),this.addEventListener("click",()=>this.dispatchEvent(new CustomEvent("dialog:force-close",{bubbles:!0,cancelable:!0,composed:!0})))}};window.customElements.get("dialog-element")||window.customElements.define("dialog-element",DialogElement),window.customElements.get("dialog-close-button")||window.customElements.define("dialog-close-button",DialogCloseButton,{extends:"button"});import{timeline as timeline3}from"vendor";import{animate as animate5,timeline as timeline2}from"vendor";var Modal=class extends DialogElement{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-modal","true")}get shadowDomTemplate(){return this.getAttribute("template")||"modal-default-template"}get shouldLock(){return!0}get shouldAppendToBody(){return!0}createEnterAnimationControls(){return matchesMediaQuery("sm")?animate5(this,{opacity:[0,1]},{duration:.2}):timeline2([[this.getShadowPartByName("overlay"),{opacity:[0,1]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:["translateY(100%)","translateY(0)"]},{duration:.3,easing:[.645,.045,.355,1],at:"<"}]])}createLeaveAnimationControls(){return matchesMediaQuery("sm")?animate5(this,{opacity:[1,0]},{duration:.2}):timeline2([[this.getShadowPartByName("overlay"),{opacity:[1,0]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:["translateY(0)","translateY(100%)"]},{duration:.3,easing:[.645,.045,.355,1],at:"<"}]])}};window.customElements.get("x-modal")||window.customElements.define("x-modal",Modal);var Drawer=class extends Modal{get shadowDomTemplate(){return this.getAttribute("template")||"drawer-default-template"}get openFrom(){return this.getAttribute("open-from")||"right"}createEnterAnimationControls(){return this.getShadowPartByName("content").style.marginInlineStart=this.openFrom==="right"?"auto":0,timeline3([[this.getShadowPartByName("overlay"),{opacity:[0,1]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:[`translateX(calc(var(--transform-logical-flip) * ${this.openFrom==="right"?"100%":"-100%"}))`,"translateX(0)"]},{duration:.3,at:"<",easing:[.645,.045,.355,1]}]])}createLeaveAnimationControls(){return timeline3([[this.getShadowPartByName("overlay"),{opacity:[1,0]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:["translateX(0)",`translateX(calc(var(--transform-logical-flip) * ${this.openFrom==="right"?"100%":"-100%"}))`]},{duration:.3,at:"<",easing:[.645,.045,.355,1]}]])}};window.customElements.get("x-drawer")||window.customElements.define("x-drawer",Drawer);import{animate as animate6}from"vendor";var PopIn=class extends DialogElement{get shouldTrapFocus(){return!1}createEnterAnimationControls(){return animate6(this,{opacity:[0,1],transform:["translateY(25px)","translateY(0)"]},{duration:.4,easing:[.645,.045,.355,1]})}createLeaveAnimationControls(){return animate6(this,{opacity:[1,0],transform:["translateY(0)","translateY(25px)"]},{duration:.4,easing:[.645,.045,.355,1]})}};window.customElements.get("pop-in")||window.customElements.define("pop-in",PopIn);import{animate as animate7,timeline as timeline4}from"vendor";var Popover=class extends DialogElement{connectedCallback(){super.connectedCallback(),this.controls.forEach(control=>control.setAttribute("aria-haspopup","dialog")),this.hasAttribute("close-on-listbox-select")&&this.addEventListener("listbox:select",this.hide,{signal:this.abortController.signal})}get shadowDomTemplate(){return this.getAttribute("template")||"popover-default-template"}get shouldLock(){return matchesMediaQuery("md-max")}get shouldAppendToBody(){return matchesMediaQuery("md-max")}get preventScrollWhenTrapped(){return!0}createEnterAnimationControls(){return matchesMediaQuery("md")?animate7(this,{opacity:[0,1]},{duration:.2}):timeline4([[this.getShadowPartByName("overlay"),{opacity:[0,1]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:["translateY(100%)","translateY(0)"]},{duration:.3,easing:[.645,.045,.355,1],at:"<"}]])}createLeaveAnimationControls(){return matchesMediaQuery("md")?animate7(this,{opacity:[1,0]},{duration:.2}):timeline4([[this.getShadowPartByName("overlay"),{opacity:[1,0]},{duration:.3,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{transform:["translateY(0)","translateY(100%)"]},{duration:.3,easing:[.645,.045,.355,1],at:"<"}]])}};window.customElements.get("x-popover")||window.customElements.define("x-popover",Popover);var _updateFacets,updateFacets_fn,FacetsDrawer=class extends Drawer{constructor(){super(),__privateAdd(this,_updateFacets),this.addEventListener("dialog:after-hide",__privateMethod(this,_updateFacets,updateFacets_fn))}};_updateFacets=new WeakSet,updateFacets_fn=function(){this.querySelector('[is="facets-form"]')?.dispatchEvent(new Event("submit",{bubbles:!0}))},window.customElements.get("facets-drawer")||window.customElements.define("facets-drawer",FacetsDrawer);var _onFacetUpdate,onFacetUpdate_fn,FacetLink=class extends HTMLAnchorElement{constructor(){super(),__privateAdd(this,_onFacetUpdate),this.addEventListener("click",__privateMethod(this,_onFacetUpdate,onFacetUpdate_fn).bind(this))}};_onFacetUpdate=new WeakSet,onFacetUpdate_fn=function(event){event.preventDefault();const sectionId=extractSectionId(event.target),url=new URL(this.href);url.searchParams.set("section_id",sectionId),this.dispatchEvent(new CustomEvent("facet:update",{bubbles:!0,detail:{url}}))},window.customElements.get("facet-link")||window.customElements.define("facet-link",FacetLink,{extends:"a"});var _onSortChange,onSortChange_fn,FacetsSortPopover=class extends Popover{constructor(){super(),__privateAdd(this,_onSortChange),this.addEventListener("listbox:change",__privateMethod(this,_onSortChange,onSortChange_fn))}};_onSortChange=new WeakSet,onSortChange_fn=function(event){const url=new URL(window.location.href);url.searchParams.set("sort_by",event.detail.value),url.searchParams.delete("page"),url.searchParams.set("section_id",this.getAttribute("section-id")),this.dispatchEvent(new CustomEvent("facet:update",{bubbles:!0,detail:{url}}))},window.customElements.get("facets-sort-popover")||window.customElements.define("facets-sort-popover",FacetsSortPopover);import{Delegate as Delegate3}from"vendor";var abortController=null,delegate=new Delegate3(document.body),openDetailsValues=new Set(Array.from(document.querySelectorAll('[is="facets-form"] details[open] input[name*="filter."]'),item=>item.name));delegate.on("toggle",'[is="facets-form"] details',(event,detailsElement)=>{[...new Set(Array.from(detailsElement.querySelectorAll('input[name*="filter."]'),item=>item.name))].forEach(inputName=>{detailsElement.open?openDetailsValues.add(inputName):openDetailsValues.delete(inputName)})},!0),document.addEventListener("facet:update",async event=>{abortController&&abortController.abort(),abortController=new AbortController;const url=event.detail.url,shopifySection=document.getElementById(`shopify-section-${url.searchParams.get("section_id")}`),clonedUrl=new URL(url);clonedUrl.searchParams.delete("section_id"),history.replaceState({},"",clonedUrl.toString());try{document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));const tempContent=new DOMParser().parseFromString(await(await cachedFetch(url.toString(),{signal:abortController.signal})).text(),"text/html");document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0})),tempContent.querySelector(".shopify-section").querySelectorAll('[is="facets-form"] details').forEach(detailsElement=>{[...new Set(Array.from(detailsElement.querySelectorAll('input[name*="filter."]'),item=>item.name))].forEach(inputName=>{detailsElement.open=openDetailsValues.has(inputName)})}),shopifySection.replaceChildren(...document.importNode(tempContent.querySelector(".shopify-section"),!0).childNodes);const scrollToProductList=()=>shopifySection.querySelector(".collection").scrollIntoView({block:"start",behavior:"smooth"});"requestIdleCallback"in window?requestIdleCallback(scrollToProductList,{timeout:500}):requestAnimationFrame(scrollToProductList)}catch{}});import{inView as inView4}from"vendor";var _allowUpdatingProgress,_calculateProgressBar,calculateProgressBar_fn,ProgressBar=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_calculateProgressBar),__privateAdd(this,_allowUpdatingProgress,!this.hasAttribute("animate-on-scroll"))}static get observedAttributes(){return["aria-valuenow","aria-valuemax"]}connectedCallback(){this.hasAttribute("animate-on-scroll")&&inView4(this,()=>{__privateSet(this,_allowUpdatingProgress,!0),__privateMethod(this,_calculateProgressBar,calculateProgressBar_fn).call(this)},{margin:"-50px 0px"})}get progress(){return Math.min(1,this.getAttribute("aria-valuenow")/this.getAttribute("aria-valuemax"))}set valueMax(value){this.setAttribute("aria-valuemax",value)}set valueNow(value){this.setAttribute("aria-valuenow",value)}attributeChangedCallback(){__privateGet(this,_allowUpdatingProgress)&&__privateMethod(this,_calculateProgressBar,calculateProgressBar_fn).call(this)}};_allowUpdatingProgress=new WeakMap,_calculateProgressBar=new WeakSet,calculateProgressBar_fn=function(){this.style.setProperty("--progress",`${this.progress}`)},window.customElements.get("progress-bar")||window.customElements.define("progress-bar",ProgressBar);var PriceRange=class extends HTMLElement{#abortController;connectedCallback(){this.#abortController=new AbortController;const rangeLowerBound=this.querySelector('input[type="range"]:first-child'),rangeHigherBound=this.querySelector('input[type="range"]:last-child'),textInputLowerBound=this.querySelector('input[name="filter.v.price.gte"]'),textInputHigherBound=this.querySelector('input[name="filter.v.price.lte"]');textInputLowerBound.addEventListener("focus",()=>textInputLowerBound.select(),{signal:this.#abortController.signal}),textInputHigherBound.addEventListener("focus",()=>textInputHigherBound.select(),{signal:this.#abortController.signal}),textInputLowerBound.addEventListener("change",event=>{event.preventDefault(),event.target.value=Math.max(Math.min(parseInt(event.target.value),parseInt(textInputHigherBound.value||event.target.max)-1),event.target.min),rangeLowerBound.value=event.target.value,rangeLowerBound.parentElement.style.setProperty("--range-min",`${parseInt(rangeLowerBound.value)/parseInt(rangeLowerBound.max)*100}%`)},{signal:this.#abortController.signal}),textInputHigherBound.addEventListener("change",event=>{event.preventDefault(),event.target.value=Math.min(Math.max(parseInt(event.target.value),parseInt(textInputLowerBound.value||event.target.min)+1),event.target.max),rangeHigherBound.value=event.target.value,rangeHigherBound.parentElement.style.setProperty("--range-max",`${parseInt(rangeHigherBound.value)/parseInt(rangeHigherBound.max)*100}%`)},{signal:this.#abortController.signal}),rangeLowerBound.addEventListener("change",event=>{event.stopPropagation(),textInputLowerBound.value=event.target.value,textInputLowerBound.dispatchEvent(new Event("change",{bubbles:!0}))},{signal:this.#abortController.signal}),rangeHigherBound.addEventListener("change",event=>{event.stopPropagation(),textInputHigherBound.value=event.target.value,textInputHigherBound.dispatchEvent(new Event("change",{bubbles:!0}))},{signal:this.#abortController.signal}),rangeLowerBound.addEventListener("input",event=>{event.target.value=Math.min(parseInt(event.target.value),parseInt(textInputHigherBound.value||event.target.max)-1),event.target.parentElement.style.setProperty("--range-min",`${parseInt(event.target.value)/parseInt(event.target.max)*100}%`),textInputLowerBound.value=event.target.value},{signal:this.#abortController.signal}),rangeHigherBound.addEventListener("input",event=>{event.target.value=Math.max(parseInt(event.target.value),parseInt(textInputLowerBound.value||event.target.min)+1),event.target.parentElement.style.setProperty("--range-max",`${parseInt(event.target.value)/parseInt(event.target.max)*100}%`),textInputHigherBound.value=event.target.value},{signal:this.#abortController.signal})}disconnectedCallback(){this.#abortController.abort()}};window.customElements.get("price-range")||window.customElements.define("price-range",PriceRange);var _abortController5,_decreaseButton,_increaseButton,_inputElement,_onDecreaseQuantity,onDecreaseQuantity_fn,_onIncreaseQuantity,onIncreaseQuantity_fn,_onVariantChangedListener,onVariantChangedListener_fn,_updateUI,updateUI_fn,QuantitySelector=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onDecreaseQuantity),__privateAdd(this,_onIncreaseQuantity),__privateAdd(this,_onVariantChangedListener),__privateAdd(this,_updateUI),__privateAdd(this,_abortController5,void 0),__privateAdd(this,_decreaseButton,void 0),__privateAdd(this,_increaseButton,void 0),__privateAdd(this,_inputElement,void 0)}connectedCallback(){__privateSet(this,_abortController5,new AbortController),__privateSet(this,_decreaseButton,this.querySelector("button:first-of-type")),__privateSet(this,_increaseButton,this.querySelector("button:last-of-type")),__privateSet(this,_inputElement,this.querySelector("input")),__privateGet(this,_decreaseButton)?.addEventListener("click",__privateMethod(this,_onDecreaseQuantity,onDecreaseQuantity_fn).bind(this),{signal:__privateGet(this,_abortController5).signal}),__privateGet(this,_increaseButton)?.addEventListener("click",__privateMethod(this,_onIncreaseQuantity,onIncreaseQuantity_fn).bind(this),{signal:__privateGet(this,_abortController5).signal}),document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateMethod(this,_onVariantChangedListener,onVariantChangedListener_fn).bind(this),{signal:__privateGet(this,_abortController5).signal})}disconnectedCallback(){__privateGet(this,_abortController5).abort()}};_abortController5=new WeakMap,_decreaseButton=new WeakMap,_increaseButton=new WeakMap,_inputElement=new WeakMap,_onDecreaseQuantity=new WeakSet,onDecreaseQuantity_fn=function(){__privateGet(this,_inputElement).stepDown(),__privateMethod(this,_updateUI,updateUI_fn).call(this)},_onIncreaseQuantity=new WeakSet,onIncreaseQuantity_fn=function(){__privateGet(this,_inputElement).stepUp(),__privateMethod(this,_updateUI,updateUI_fn).call(this)},_onVariantChangedListener=new WeakSet,onVariantChangedListener_fn=function(event){__privateGet(this,_inputElement).updateVariantRule(event.detail.variant)},_updateUI=new WeakSet,updateUI_fn=function(){__privateGet(this,_decreaseButton).disabled=__privateGet(this,_inputElement).quantity<=1};var _onValueInput,onValueInput_fn,QuantityInput=class extends HTMLInputElement{constructor(){super(),__privateAdd(this,_onValueInput),this.addEventListener("input",__privateMethod(this,_onValueInput,onValueInput_fn)),this.addEventListener("focus",this.select)}connectedCallback(){this.style.setProperty("--quantity-selector-character-count",`${this.value.length}ch`)}get quantity(){return parseInt(this.value)}updateVariantRule(variant){}};_onValueInput=new WeakSet,onValueInput_fn=function(){this.value===""&&(this.value=this.min||1),this.style.setProperty("--quantity-selector-character-count",`${this.value.length}ch`)},window.customElements.get("quantity-selector")||window.customElements.define("quantity-selector",QuantitySelector),window.customElements.get("quantity-input")||window.customElements.define("quantity-input",QuantityInput,{extends:"input"});var _onInput,onInput_fn,ResizableTextarea=class extends HTMLTextAreaElement{constructor(){super(),__privateAdd(this,_onInput),this.addEventListener("input",__privateMethod(this,_onInput,onInput_fn))}};_onInput=new WeakSet,onInput_fn=function(){this.style.height="auto",this.style.height=this.scrollHeight+2+"px"},window.customElements.get("resizable-textarea")||window.customElements.define("resizable-textarea",ResizableTextarea,{extends:"textarea"});var _accessibilityInitialized,_hiddenInput,_setupAccessibility,setupAccessibility_fn,_onOptionClicked,onOptionClicked_fn,_onInputChanged,onInputChanged_fn,_onKeyDown,onKeyDown_fn,Listbox=class extends HTMLElement{constructor(){super(),__privateAdd(this,_setupAccessibility),__privateAdd(this,_onOptionClicked),__privateAdd(this,_onInputChanged),__privateAdd(this,_onKeyDown),__privateAdd(this,_accessibilityInitialized,!1),__privateAdd(this,_hiddenInput,void 0),this.addEventListener("keydown",__privateMethod(this,_onKeyDown,onKeyDown_fn))}static get observedAttributes(){return["aria-activedescendant"]}connectedCallback(){__privateSet(this,_hiddenInput,this.querySelector('input[type="hidden"]')),__privateGet(this,_hiddenInput)?.addEventListener("change",__privateMethod(this,_onInputChanged,onInputChanged_fn).bind(this)),__privateGet(this,_accessibilityInitialized)||requestAnimationFrame(__privateMethod(this,_setupAccessibility,setupAccessibility_fn).bind(this))}attributeChangedCallback(name,oldValue,newValue){name==="aria-activedescendant"&&oldValue!==null&&newValue!==oldValue&&Array.from(this.querySelectorAll('[role="option"]')).forEach(option=>{option.id===newValue?(option.setAttribute("aria-selected","true"),__privateGet(this,_hiddenInput)&&__privateGet(this,_hiddenInput).value!==option.value&&(__privateGet(this,_hiddenInput).value=option.value,__privateGet(this,_hiddenInput).dispatchEvent(new Event("change",{bubbles:!0}))),this.hasAttribute("aria-owns")&&this.getAttribute("aria-owns").split(" ").forEach(boundId=>{document.getElementById(boundId).textContent=option.getAttribute("title")||option.innerText||option.value}),option.dispatchEvent(new CustomEvent("listbox:change",{bubbles:!0,detail:{value:option.value}}))):option.setAttribute("aria-selected","false")})}};_accessibilityInitialized=new WeakMap,_hiddenInput=new WeakMap,_setupAccessibility=new WeakSet,setupAccessibility_fn=function(){this.setAttribute("role","listbox"),Array.from(this.querySelectorAll('[role="option"]')).forEach(option=>{option.addEventListener("click",__privateMethod(this,_onOptionClicked,onOptionClicked_fn).bind(this)),option.id="option-"+(crypto.randomUUID?crypto.randomUUID():Math.floor(Math.random()*1e4)),option.getAttribute("aria-selected")==="true"&&this.setAttribute("aria-activedescendant",option.id)}),__privateSet(this,_accessibilityInitialized,!0)},_onOptionClicked=new WeakSet,onOptionClicked_fn=function(event){event.currentTarget.getAttribute("type")!=="submit"&&(this.setAttribute("aria-activedescendant",event.currentTarget.id),event.currentTarget.dispatchEvent(new CustomEvent("listbox:select",{bubbles:!0,detail:{value:event.currentTarget.value}})))},_onInputChanged=new WeakSet,onInputChanged_fn=function(event){this.setAttribute("aria-activedescendant",this.querySelector(`[role="option"][value="${CSS.escape(event.target.value)}"]`).id)},_onKeyDown=new WeakSet,onKeyDown_fn=function(event){event.key==="ArrowUp"?(event.target.previousElementSibling?.focus(),event.preventDefault()):event.key==="ArrowDown"&&(event.target.nextElementSibling?.focus(),event.preventDefault())},window.customElements.get("x-listbox")||window.customElements.define("x-listbox",Listbox);import{scroll,animate as animate8}from"vendor";var _setupParallax,setupParallax_fn,ImageParallax=class extends HTMLImageElement{constructor(){super(...arguments),__privateAdd(this,_setupParallax)}connectedCallback(){window.matchMedia("(prefers-reduced-motion: no-preference)").matches&&__privateMethod(this,_setupParallax,setupParallax_fn).call(this)}};_setupParallax=new WeakSet,setupParallax_fn=function(){const[scale,translate]=[1.3,11.538461538461538],isFirstSection=this.closest(".shopify-section").matches(":first-child");scroll(animate8(this,{transform:[`scale(${scale}) translateY(-${translate}%)`,`scale(${scale}) translateY(${translate}%)`]},{easing:"linear"}),{target:this,offset:[isFirstSection?"start start":"start end","end start"]})},window.customElements.get("image-parallax")||window.customElements.define("image-parallax",ImageParallax,{extends:"img"});var _recipientCheckbox,_recipientOtherProperties,_recipientFieldsContainer,_synchronizeProperties,synchronizeProperties_fn,GiftCardRecipient=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_synchronizeProperties),__privateAdd(this,_recipientCheckbox,void 0),__privateAdd(this,_recipientOtherProperties,[]),__privateAdd(this,_recipientFieldsContainer,void 0)}connectedCallback(){const properties=Array.from(this.querySelectorAll('[name*="properties"]')),checkboxPropertyName="properties[__shopify_send_gift_card_to_recipient]";__privateSet(this,_recipientCheckbox,properties.find(input=>input.name===checkboxPropertyName)),__privateSet(this,_recipientOtherProperties,properties.filter(input=>input.name!==checkboxPropertyName)),__privateSet(this,_recipientFieldsContainer,this.querySelector(".gift-card-recipient__fields")),__privateGet(this,_recipientCheckbox)?.addEventListener("change",__privateMethod(this,_synchronizeProperties,synchronizeProperties_fn).bind(this)),__privateMethod(this,_synchronizeProperties,synchronizeProperties_fn).call(this)}};_recipientCheckbox=new WeakMap,_recipientOtherProperties=new WeakMap,_recipientFieldsContainer=new WeakMap,_synchronizeProperties=new WeakSet,synchronizeProperties_fn=function(){__privateGet(this,_recipientOtherProperties).forEach(property=>property.disabled=!__privateGet(this,_recipientCheckbox).checked),__privateGet(this,_recipientFieldsContainer).classList.toggle("js:hidden",!__privateGet(this,_recipientCheckbox).checked)},window.customElements.get("gift-card-recipient")||window.customElements.define("gift-card-recipient",GiftCardRecipient);import{Delegate as Delegate4}from"vendor";var _delegate3,_onSwatchHovered,onSwatchHovered_fn,_onSwatchChanged,onSwatchChanged_fn,_createMediaImg,createMediaImg_fn,_getMatchingVariant,getMatchingVariant_fn,ProductCard=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onSwatchHovered),__privateAdd(this,_onSwatchChanged),__privateAdd(this,_createMediaImg),__privateAdd(this,_getMatchingVariant),__privateAdd(this,_delegate3,new Delegate4(this)),this.querySelectorAll('[type="radio"]').length>0&&this.addEventListener("pointerover",()=>ProductLoader.load(this.getAttribute("handle")),{once:!0})}connectedCallback(){__privateGet(this,_delegate3).on("change",'[type="radio"]',__privateMethod(this,_onSwatchChanged,onSwatchChanged_fn).bind(this)),__privateGet(this,_delegate3).on("pointerover",'[type="radio"] + label',__privateMethod(this,_onSwatchHovered,onSwatchHovered_fn).bind(this),!0)}disconnectedCallback(){__privateGet(this,_delegate3).off()}};_delegate3=new WeakMap,_onSwatchHovered=new WeakSet,onSwatchHovered_fn=async function(event,target){const firstMatchingVariant=await __privateMethod(this,_getMatchingVariant,getMatchingVariant_fn).call(this,target.control),primaryMediaElement=this.querySelector(".product-card__image--primary");firstMatchingVariant.hasOwnProperty("featured_media")&&__privateMethod(this,_createMediaImg,createMediaImg_fn).call(this,firstMatchingVariant.featured_media,primaryMediaElement.className,primaryMediaElement.sizes)},_onSwatchChanged=new WeakSet,onSwatchChanged_fn=async function(event,target){const firstMatchingVariant=await __privateMethod(this,_getMatchingVariant,getMatchingVariant_fn).call(this,target);if(this.querySelectorAll(`a[href^="${this.product.url}"`).forEach(link=>{const url=new URL(link.href);url.searchParams.set("variant",firstMatchingVariant.id),link.href=`${url.pathname}${url.search}${url.hash}`}),!firstMatchingVariant.hasOwnProperty("featured_media"))return;const primaryMediaElement=this.querySelector(".product-card__image--primary"),secondaryMediaElement=this.querySelector(".product-card__image--secondary"),newPrimaryMediaElement=__privateMethod(this,_createMediaImg,createMediaImg_fn).call(this,firstMatchingVariant.featured_media,primaryMediaElement.className,primaryMediaElement.sizes);primaryMediaElement.src!==newPrimaryMediaElement.src&&(secondaryMediaElement&&secondaryMediaElement.replaceWith(__privateMethod(this,_createMediaImg,createMediaImg_fn).call(this,this.product.media[firstMatchingVariant.featured_media.position]||this.product.media[1],secondaryMediaElement.className,secondaryMediaElement.sizes)),await primaryMediaElement.animate({opacity:[1,0]},{duration:150,easing:"ease-in",fill:"forwards"}).finished,await new Promise(resolve=>newPrimaryMediaElement.complete?resolve():newPrimaryMediaElement.onload=()=>resolve()),primaryMediaElement.replaceWith(newPrimaryMediaElement),newPrimaryMediaElement.animate({opacity:[0,1]},{duration:150,easing:"ease-in"}))},_createMediaImg=new WeakSet,createMediaImg_fn=function(media,className,sizes){return createMediaImg(media,[200,300,400,500,600,700,800,1e3,1200,1400,1600,1800],{class:className,sizes})},_getMatchingVariant=new WeakSet,getMatchingVariant_fn=async function(target){return this.product=await ProductLoader.load(this.getAttribute("handle")),this.product.variants.find(variant=>variant[`option${target.closest("[data-option-position]").getAttribute("data-option-position")}`]===target.value)},window.customElements.get("product-card")||window.customElements.define("product-card",ProductCard);var _onSubmit,onSubmit_fn,ProductForm=class extends HTMLFormElement{constructor(){super(),__privateAdd(this,_onSubmit),this.addEventListener("submit",__privateMethod(this,_onSubmit,onSubmit_fn))}connectedCallback(){this.id.disabled=!1}};_onSubmit=new WeakSet,onSubmit_fn=async function(event){if(event.preventDefault(),!this.checkValidity()){this.reportValidity();return}const submitButtons=Array.from(this.elements).filter(button=>button.type==="submit");submitButtons.forEach(submitButton=>{submitButton.setAttribute("disabled","disabled"),submitButton.setAttribute("aria-busy","true")}),document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));let sectionsToBundle=[];document.documentElement.dispatchEvent(new CustomEvent("cart:prepare-bundled-sections",{bubbles:!0,detail:{sections:sectionsToBundle}}));const formData=new FormData(this);formData.set("sections",sectionsToBundle.join(",")),formData.set("sections_url",`${Shopify.routes.root}variants/${this.id.value}`);const response=await fetch(`${Shopify.routes.root}cart/add.js`,{body:formData,method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"}});submitButtons.forEach(submitButton=>{submitButton.removeAttribute("disabled"),submitButton.removeAttribute("aria-busy")});const responseJson=await response.json();if(document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0})),response.ok){if(window.themeVariables.settings.cartType==="page"||window.themeVariables.settings.pageType==="cart")return window.location.href=`${Shopify.routes.root}cart`;const cartContent=await(await fetch(`${Shopify.routes.root}cart.js`)).json();cartContent.sections=responseJson.sections,this.dispatchEvent(new CustomEvent("variant:add",{bubbles:!0,detail:{items:responseJson.hasOwnProperty("items")?responseJson.items:[responseJson],cart:cartContent}})),document.documentElement.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{baseEvent:"variant:add",cart:cartContent}}))}else this.dispatchEvent(new CustomEvent("cart:error",{bubbles:!0,detail:{error:responseJson.description}}))},window.customElements.get("product-form")||window.customElements.define("product-form",ProductForm,{extends:"form"});var _onVariantChangedListener2,_onVariantAddedListener,_onCartErrorListener,_onVariantChanged,onVariantChanged_fn,_onVariantAdded,onVariantAdded_fn,_onCartError,onCartError_fn,BuyButtons=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged),__privateAdd(this,_onVariantAdded),__privateAdd(this,_onCartError),__privateAdd(this,_onVariantChangedListener2,__privateMethod(this,_onVariantChanged,onVariantChanged_fn).bind(this)),__privateAdd(this,_onVariantAddedListener,__privateMethod(this,_onVariantAdded,onVariantAdded_fn).bind(this)),__privateAdd(this,_onCartErrorListener,__privateMethod(this,_onCartError,onCartError_fn).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener2)),document.forms[this.getAttribute("form")]?.addEventListener("cart:error",__privateGet(this,_onCartErrorListener)),window.themeVariables.settings.cartType==="message"&&document.forms[this.getAttribute("form")]?.addEventListener("variant:add",__privateGet(this,_onVariantAddedListener))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener2)),document.forms[this.getAttribute("form")]?.removeEventListener("cart:error",__privateGet(this,_onCartErrorListener))}};_onVariantChangedListener2=new WeakMap,_onVariantAddedListener=new WeakMap,_onCartErrorListener=new WeakMap,_onVariantChanged=new WeakSet,onVariantChanged_fn=function(event){const addToCartButton=this.querySelector('button[type="submit"]'),paymentButton=this.querySelector(".shopify-payment-button");addToCartButton.disabled=!event.detail.variant||!event.detail.variant.available,event.detail.variant?(addToCartButton.innerHTML=event.detail.variant.available?this.getAttribute("template").includes("pre-order")?window.themeVariables.strings.preOrderButton:window.themeVariables.strings.addToCartButton:window.themeVariables.strings.soldOutButton,paymentButton&&(paymentButton.style.display=event.detail.variant.available?"block":"none")):(addToCartButton.innerHTML=window.themeVariables.strings.unavailableButton,paymentButton&&(paymentButton.style.display="none"))},_onVariantAdded=new WeakSet,onVariantAdded_fn=function(event){const bannerElement=document.createRange().createContextualFragment(` `).firstElementChild;this.prepend(bannerElement),setTimeout(()=>{bannerElement.remove()},2500)},_onCartError=new WeakSet,onCartError_fn=function(event){const bannerElement=document.createRange().createContextualFragment(` `).firstElementChild;this.prepend(bannerElement),setTimeout(()=>{bannerElement.remove()},2500)},window.customElements.get("buy-buttons")||window.customElements.define("buy-buttons",BuyButtons);var _onVariantChangedListener3,_sizesAttribute,_classAttribute,_widths,widths_get,_onVariantChanged2,onVariantChanged_fn2,VariantMedia=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_widths),__privateAdd(this,_onVariantChanged2),__privateAdd(this,_onVariantChangedListener3,__privateMethod(this,_onVariantChanged2,onVariantChanged_fn2).bind(this)),__privateAdd(this,_sizesAttribute,void 0),__privateAdd(this,_classAttribute,void 0)}connectedCallback(){__privateSet(this,_sizesAttribute,this.querySelector("img").sizes),__privateSet(this,_classAttribute,this.querySelector("img").className),document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener3))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener3))}};_onVariantChangedListener3=new WeakMap,_sizesAttribute=new WeakMap,_classAttribute=new WeakMap,_widths=new WeakSet,widths_get=function(){return this.getAttribute("widths").split(",").map(width=>parseInt(width))},_onVariantChanged2=new WeakSet,onVariantChanged_fn2=function(event){!event.detail.variant||!event.detail.variant.featured_media||this.replaceChildren(createMediaImg(event.detail.variant.featured_media,__privateGet(this,_widths,widths_get),{class:__privateGet(this,_classAttribute),sizes:__privateGet(this,_sizesAttribute)}))},window.customElements.get("variant-media")||window.customElements.define("variant-media",VariantMedia);var _onVariantChangedListener4,_onVariantChanged3,onVariantChanged_fn3,PaymentTerms=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged3),__privateAdd(this,_onVariantChangedListener4,__privateMethod(this,_onVariantChanged3,onVariantChanged_fn3).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener4))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener4))}};_onVariantChangedListener4=new WeakMap,_onVariantChanged3=new WeakSet,onVariantChanged_fn3=function(event){if(event.detail.variant){const element=this.querySelector('[name="id"]');element.value=event.detail.variant.id,element.dispatchEvent(new Event("change",{bubbles:!0}))}},window.customElements.get("payment-terms")||window.customElements.define("payment-terms",PaymentTerms);var _onVariantChangedListener5,_onVariantChanged4,onVariantChanged_fn4,PickupAvailability=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged4),__privateAdd(this,_onVariantChangedListener5,__privateMethod(this,_onVariantChanged4,onVariantChanged_fn4).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener5))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener5))}};_onVariantChangedListener5=new WeakMap,_onVariantChanged4=new WeakSet,onVariantChanged_fn4=async function(event){if(!event.detail.variant)this.innerHTML="";else{const element=document.createElement("div");element.innerHTML=await(await fetch(`${Shopify.routes.root}variants/${event.detail.variant.id}?section_id=pickup-availability`)).text(),this.replaceChildren(...element.querySelector("pickup-availability").childNodes)}},window.customElements.get("pickup-availability")||window.customElements.define("pickup-availability",PickupAvailability);var currencyFormat=window.themeVariables.settings.currencyCodeEnabled?window.themeVariables.settings.moneyWithCurrencyFormat:window.themeVariables.settings.moneyFormat,_onVariantChangedListener6,_onVariantChanged5,onVariantChanged_fn5,SalePrice=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged5),__privateAdd(this,_onVariantChangedListener6,__privateMethod(this,_onVariantChanged5,onVariantChanged_fn5).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener6))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener6))}};_onVariantChangedListener6=new WeakMap,_onVariantChanged5=new WeakSet,onVariantChanged_fn5=function(event){const variant=event.detail.variant;this.lastChild.replaceWith(document.createRange().createContextualFragment(formatMoney(variant.price,currencyFormat))),this.classList.toggle("text-on-sale",variant.compare_at_price>variant.price)};var _onVariantChangedListener7,_onVariantChanged6,onVariantChanged_fn6,CompareAtPrice=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged6),__privateAdd(this,_onVariantChangedListener7,__privateMethod(this,_onVariantChanged6,onVariantChanged_fn6).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener7))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener7))}};_onVariantChangedListener7=new WeakMap,_onVariantChanged6=new WeakSet,onVariantChanged_fn6=function(event){const variant=event.detail.variant;this.lastChild.replaceWith(document.createRange().createContextualFragment(formatMoney(variant.compare_at_price,currencyFormat))),this.hidden=!(variant.compare_at_price>variant.price)};var _onVariantChangedListener8,_onVariantChanged7,onVariantChanged_fn7,UnitPrice=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged7),__privateAdd(this,_onVariantChangedListener8,__privateMethod(this,_onVariantChanged7,onVariantChanged_fn7).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener8))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener8))}};_onVariantChangedListener8=new WeakMap,_onVariantChanged7=new WeakSet,onVariantChanged_fn7=function(event){const variant=event.detail.variant;if(!variant.unit_price)return this.hidden=!0;const referenceValue=variant.unit_price_measurement.reference_value!==1?variant.unit_price_measurement.reference_value:"",node=document.createRange().createContextualFragment(`${formatMoney(variant.unit_price)}/${referenceValue}${variant.unit_price_measurement.reference_unit}`);this.lastChild.replaceWith(node),this.hidden=!1},window.customElements.get("sale-price")||window.customElements.define("sale-price",SalePrice),window.customElements.get("compare-at-price")||window.customElements.define("compare-at-price",CompareAtPrice),window.customElements.get("unit-price")||window.customElements.define("unit-price",UnitPrice);var _onVariantChangedListener9,_onVariantChanged8,onVariantChanged_fn8,SoldOutBadge=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged8),__privateAdd(this,_onVariantChangedListener9,__privateMethod(this,_onVariantChanged8,onVariantChanged_fn8).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener9))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener9))}};_onVariantChangedListener9=new WeakMap,_onVariantChanged8=new WeakSet,onVariantChanged_fn8=function(event){this.hidden=event.detail.variant.available};var _onVariantChangedListener10,_onVariantChanged9,onVariantChanged_fn9,OnSaleBadge=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged9),__privateAdd(this,_onVariantChangedListener10,__privateMethod(this,_onVariantChanged9,onVariantChanged_fn9).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener10))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener10))}};_onVariantChangedListener10=new WeakMap,_onVariantChanged9=new WeakSet,onVariantChanged_fn9=function(event){const variant=event.detail.variant;if(variant.compare_at_price>variant.price){if(this.hidden=!1,this.hasAttribute("discount-mode")){const savings=this.getAttribute("discount-mode")==="percentage"?`${Math.round((variant.compare_at_price-variant.price)*100/variant.compare_at_price)}%`:formatMoney(variant.compare_at_price-variant.price);this.innerHTML=`${window.themeVariables.strings.discountBadge.replace("@@",savings)}`}}else this.hidden=!0};var _onBadgeChange,onBadgeChange_fn,BadgeList=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onBadgeChange);const mutationObserver=new MutationObserver(__privateMethod(this,_onBadgeChange,onBadgeChange_fn).bind(this));Array.from(this.children).forEach(badge=>{mutationObserver.observe(badge,{attributes:!0,attributeFilter:["hidden"]})})}};_onBadgeChange=new WeakSet,onBadgeChange_fn=function(){this.hidden=Array.from(this.children).every(badge=>badge.hasAttribute("hidden"))},window.customElements.get("sold-out-badge")||window.customElements.define("sold-out-badge",SoldOutBadge),window.customElements.get("on-sale-badge")||window.customElements.define("on-sale-badge",OnSaleBadge),window.customElements.get("badge-list")||window.customElements.define("badge-list",BadgeList);var _onVariantChangedListener11,_inventoryElements,_progressBarElement,_onVariantChanged10,onVariantChanged_fn10,VariantInventory=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged10),__privateAdd(this,_onVariantChangedListener11,__privateMethod(this,_onVariantChanged10,onVariantChanged_fn10).bind(this)),__privateAdd(this,_inventoryElements,void 0),__privateAdd(this,_progressBarElement,void 0)}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener11)),__privateSet(this,_inventoryElements,Array.from(this.querySelectorAll("[data-variant-id]"))),__privateSet(this,_progressBarElement,this.querySelector("progress-bar"))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener11))}};_onVariantChangedListener11=new WeakMap,_inventoryElements=new WeakMap,_progressBarElement=new WeakMap,_onVariantChanged10=new WeakSet,onVariantChanged_fn10=function(event){this.hidden=!event.detail.variant,event.detail.variant&&__privateGet(this,_inventoryElements).forEach(item=>{!item.toggleAttribute("hidden",event.detail.variant.id!==parseInt(item.getAttribute("data-variant-id")))&&__privateGet(this,_progressBarElement)&&(__privateGet(this,_progressBarElement).valueNow=item.getAttribute("data-quantity"),this.className=`inventory text-${item.getAttribute("data-status")}`)})},window.customElements.get("variant-inventory")||window.customElements.define("variant-inventory",VariantInventory);var _onVariantChangedListener12,_onVariantChanged11,onVariantChanged_fn11,VariantSku=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged11),__privateAdd(this,_onVariantChangedListener12,__privateMethod(this,_onVariantChanged11,onVariantChanged_fn11).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener12))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener12))}};_onVariantChangedListener12=new WeakMap,_onVariantChanged11=new WeakSet,onVariantChanged_fn11=function(event){event.detail.variant?(this.innerText=`${window.themeVariables.strings.sku} ${event.detail.variant.sku}`,this.hidden=!event.detail.variant.sku):this.hidden=!0},window.customElements.get("variant-sku")||window.customElements.define("variant-sku",VariantSku);import{PhotoSwipeLightbox}from"vendor";var _abortController6,_photoSwipeInstance,_onGestureChangedListener,_settledMedia,_registerLightboxUi,registerLightboxUi_fn,_onVariantChange,onVariantChange_fn,_onMediaChange,onMediaChange_fn,_onMediaSettle,onMediaSettle_fn,_onCarouselClick,onCarouselClick_fn,_getFilteredMediaIndexes,getFilteredMediaIndexes_fn,_onGestureStart,onGestureStart_fn,_onGestureChanged,onGestureChanged_fn,ProductGallery=class extends HTMLElement{constructor(){super(),__privateAdd(this,_registerLightboxUi),__privateAdd(this,_onVariantChange),__privateAdd(this,_onMediaChange),__privateAdd(this,_onMediaSettle),__privateAdd(this,_onCarouselClick),__privateAdd(this,_getFilteredMediaIndexes),__privateAdd(this,_onGestureStart),__privateAdd(this,_onGestureChanged),__privateAdd(this,_abortController6,void 0),__privateAdd(this,_photoSwipeInstance,void 0),__privateAdd(this,_onGestureChangedListener,__privateMethod(this,_onGestureChanged,onGestureChanged_fn).bind(this)),__privateAdd(this,_settledMedia,void 0),this.addEventListener("lightbox:open",event=>this.openLightBox(event?.detail?.index))}connectedCallback(){__privateSet(this,_abortController6,new AbortController),this.carousel&&(document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateMethod(this,_onVariantChange,onVariantChange_fn).bind(this),{signal:__privateGet(this,_abortController6).signal}),this.carousel.addEventListener("carousel:change",__privateMethod(this,_onMediaChange,onMediaChange_fn).bind(this),{signal:__privateGet(this,_abortController6).signal}),this.carousel.addEventListener("carousel:settle",__privateMethod(this,_onMediaSettle,onMediaSettle_fn).bind(this),{signal:__privateGet(this,_abortController6).signal}),this.carousel.addEventListener("click",__privateMethod(this,_onCarouselClick,onCarouselClick_fn).bind(this),{signal:__privateGet(this,_abortController6).signal}),this.hasAttribute("allow-zoom")&&this.carousel.addEventListener("gesturestart",__privateMethod(this,_onGestureStart,onGestureStart_fn).bind(this),{capture:!1,signal:__privateGet(this,_abortController6).signal}),__privateMethod(this,_onMediaChange,onMediaChange_fn).call(this))}disconnectedCallback(){__privateGet(this,_abortController6).abort()}get viewInSpaceButton(){return this.querySelector("[data-shopify-xr]")}get carousel(){return this.querySelector(".product-gallery__carousel")}get lightBox(){return __privateGet(this,_photoSwipeInstance)?__privateGet(this,_photoSwipeInstance):(__privateSet(this,_photoSwipeInstance,new PhotoSwipeLightbox({pswpModule:()=>import("photoswipe"),bgOpacity:1,maxZoomLevel:parseInt(this.getAttribute("allow-zoom"))||3,closeTitle:window.themeVariables.strings.closeGallery,zoomTitle:window.themeVariables.strings.zoomGallery,errorMsg:window.themeVariables.strings.errorGallery,arrowPrev:!1,arrowNext:!1,counter:!1,close:!1,zoom:!1})),__privateGet(this,_photoSwipeInstance).on("uiRegister",__privateMethod(this,_registerLightboxUi,registerLightboxUi_fn).bind(this)),__privateGet(this,_photoSwipeInstance).addFilter("thumbEl",(thumbEl,data)=>data.thumbnailElement),__privateGet(this,_photoSwipeInstance).init(),__privateGet(this,_photoSwipeInstance))}openLightBox(index){const dataSource=this.carousel.cells.flatMap(cell=>Array.from(cell.querySelectorAll(":scope > img"))).map(image=>({thumbnailElement:image,src:image.src,srcset:image.srcset,msrc:image.currentSrc||image.src,width:parseInt(image.getAttribute("width")),height:parseInt(image.getAttribute("height")),alt:image.alt,thumbCropped:!0}));this.lightBox.loadAndOpen(index??this.carousel.selectedIndex,dataSource)}};_abortController6=new WeakMap,_photoSwipeInstance=new WeakMap,_onGestureChangedListener=new WeakMap,_settledMedia=new WeakMap,_registerLightboxUi=new WeakSet,registerLightboxUi_fn=function(){__privateGet(this,_photoSwipeInstance).pswp.ui.registerElement({name:"close-button",className:"circle-button circle-button--xl hover:animate-icon-block",ariaLabel:window.themeVariables.strings.closeGallery,order:2,isButton:!0,html:` `,onClick:()=>{__privateGet(this,_photoSwipeInstance).pswp.close()}}),__privateGet(this,_photoSwipeInstance).pswp.options.dataSource.length>1&&(__privateGet(this,_photoSwipeInstance).pswp.ui.registerElement({name:"previous-button",className:"circle-button hover:animate-icon-inline",ariaLabel:window.themeVariables.strings.previous,order:1,isButton:!0,html:` `,onClick:()=>{__privateGet(this,_photoSwipeInstance).pswp.prev()}}),__privateGet(this,_photoSwipeInstance).pswp.ui.registerElement({name:"next-button",className:"circle-button hover:animate-icon-inline",ariaLabel:window.themeVariables.strings.next,order:3,isButton:!0,html:` `,onClick:()=>{__privateGet(this,_photoSwipeInstance).pswp.next()}}))},_onVariantChange=new WeakSet,onVariantChange_fn=function(event){const filteredIndexes=__privateMethod(this,_getFilteredMediaIndexes,getFilteredMediaIndexes_fn).call(this,event.detail.product,event.detail.variant);if(this.carousel.filter(filteredIndexes),event.detail.variant.featured_media&&event.detail.previousVariant.featured_media?.id!==event.detail.variant.featured_media.id){const position=event.detail.variant.featured_media.position-1,filteredIndexBelowPosition=filteredIndexes.filter(filteredIndex=>filteredIndex{let matchMedia=variant.featured_media&&media.position===variant.featured_media.position;if(media.alt?.includes("#")&&media.alt!==product.title&&!matchMedia){const altParts=media.alt.split("#"),mediaGroupParts=altParts.pop().split("_");product.options.forEach(option=>{option.name.toLowerCase()===mediaGroupParts[0].toLowerCase()&&variant.options[option.position-1].toLowerCase()!==mediaGroupParts[1].trim().toLowerCase()&&filteredMediaIds.push(media.position-1)})}}),filteredMediaIds},_onGestureStart=new WeakSet,onGestureStart_fn=function(event){event.preventDefault(),this.carousel.addEventListener("gesturechange",__privateGet(this,_onGestureChangedListener),{capture:!1,signal:__privateGet(this,_abortController6).signal})},_onGestureChanged=new WeakSet,onGestureChanged_fn=function(event){event.preventDefault(),event.scale>1.5&&(this.dispatchEvent(new CustomEvent("lightbox:open",{bubbles:!0,detail:{index:this.carousel.selectedIndex}})),this.removeEventListener("gesturechange",__privateGet(this,_onGestureChangedListener)))};var _intersectionObserver,_hasProgrammaticScroll,_scrollDirection,_lastScrollPosition,_onMediaObserve,onMediaObserve_fn,ProductGalleryNavigation=class extends CarouselNavigation{constructor(){super(),__privateAdd(this,_onMediaObserve),__privateAdd(this,_intersectionObserver,new IntersectionObserver(__privateMethod(this,_onMediaObserve,onMediaObserve_fn).bind(this),{threshold:[0,.5,1]})),__privateAdd(this,_hasProgrammaticScroll,!1),__privateAdd(this,_scrollDirection,"bottom"),__privateAdd(this,_lastScrollPosition,void 0),window.addEventListener("scroll",()=>{window.scrollY>__privateGet(this,_lastScrollPosition)?__privateSet(this,_scrollDirection,"bottom"):__privateSet(this,_scrollDirection,"top"),__privateSet(this,_lastScrollPosition,window.scrollY)})}connectedCallback(){super.connectedCallback(),this.carousel.allCells.forEach(cell=>__privateGet(this,_intersectionObserver).observe(cell))}onButtonClicked(newIndex){this.carousel.isScrollable?super.onButtonClicked(newIndex):(this.carousel.cells[newIndex]?.scrollIntoView({block:"start",behavior:"smooth"}),this.onNavigationChange(newIndex),__privateSet(this,_hasProgrammaticScroll,!0),"onscrollend"in window?window.addEventListener("scrollend",()=>{__privateSet(this,_hasProgrammaticScroll,!1)},{once:!0}):setTimeout(()=>{__privateSet(this,_hasProgrammaticScroll,!1)},1e3))}};_intersectionObserver=new WeakMap,_hasProgrammaticScroll=new WeakMap,_scrollDirection=new WeakMap,_lastScrollPosition=new WeakMap,_onMediaObserve=new WeakSet,onMediaObserve_fn=function(entries){if(this.carousel.isScrollable)return;const firstEntry=entries.find(entry=>entry.isIntersecting&&entry.intersectionRatio>=.5);if(!firstEntry||__privateGet(this,_hasProgrammaticScroll))return;const selectedItem=this.items.find(item=>item.getAttribute("aria-current")==="true"),candidateItem=this.items.find(item=>item.getAttribute("data-media-id")===firstEntry.target.getAttribute("data-media-id"));(__privateGet(this,_scrollDirection)==="bottom"&&parseInt(candidateItem.getAttribute("data-media-position"))>parseInt(selectedItem.getAttribute("data-media-position"))||__privateGet(this,_scrollDirection)==="top"&&parseInt(candidateItem.getAttribute("data-media-position"))this.dispatchEvent(new CustomEvent("lightbox:open",{bubbles:!0})))}};window.customElements.get("product-gallery")||window.customElements.define("product-gallery",ProductGallery),window.customElements.get("product-gallery-navigation")||window.customElements.define("product-gallery-navigation",ProductGalleryNavigation),window.customElements.get("open-lightbox-button")||window.customElements.define("open-lightbox-button",OpenLightBoxButton,{extends:"button"});import{inView as inView5,animate as animate9,stagger}from"vendor";var ProductList=class extends HTMLElement{connectedCallback(){matchesMediaQuery("motion-safe")&&this.querySelectorAll('product-card[reveal-on-scroll="true"]').length>0&&inView5(this,this.reveal.bind(this))}reveal(){animate9(this.querySelectorAll('product-card[reveal-on-scroll="true"]'),{opacity:[0,1],transform:["translateY(20px)","translateY(0)"]},{duration:.2,easing:"ease-in-out",delay:stagger(.05,{start:.4,easing:"ease-out"})})}};window.customElements.get("product-list")||window.customElements.define("product-list",ProductList);var loadedProducts={},ProductLoader=class{static load(productHandle){if(productHandle)return loadedProducts[productHandle]||(loadedProducts[productHandle]=new Promise(async(resolve,reject)=>{const response=await fetch(`${Shopify.routes.root}products/${productHandle}.js`);if(response.ok){const responseAsJson=await response.json();resolve(responseAsJson)}else reject(` Attempted to load information for product with handle ${productHandle}, but this product is in "draft" mode. You won't be able to switch between variants or access to per-variant information. To fully preview this product, change temporarily its status to "active". `)})),loadedProducts[productHandle]}},QuickBuyModal=class extends Modal{#isLoaded=!1;constructor(){super(),window.themeVariables.settings.cartType==="drawer"&&document.addEventListener("variant:add",this.hide.bind(this))}async show(){if(!this.#isLoaded){document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));const responseContent=await(await fetch(`${window.Shopify.routes.root}products/${this.getAttribute("handle")}`)).text();document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0}));const quickBuyContent=new DOMParser().parseFromString(responseContent,"text/html").getElementById("quick-buy-content").content;Array.from(quickBuyContent.querySelectorAll("noscript")).forEach(noScript=>noScript.remove()),this.replaceChildren(document.importNode(quickBuyContent,!0)),Shopify?.PaymentButton?.init(),this.#isLoaded=!0}super.show()}};window.customElements.get("quick-buy-modal")||window.customElements.define("quick-buy-modal",QuickBuyModal);var _abortController7,_onOptionChanged,onOptionChanged_fn,_onMasterSelectorChanged,onMasterSelectorChanged_fn,_getVariantById,getVariantById_fn,_getVariantFromOptions,getVariantFromOptions_fn,_isVariantSelectable,isVariantSelectable_fn,_getFirstMatchingAvailableOrSelectableVariant,getFirstMatchingAvailableOrSelectableVariant_fn,_getSelectedOptionValues,getSelectedOptionValues_fn,_updateDisableSelectors,updateDisableSelectors_fn,VariantPicker=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onOptionChanged),__privateAdd(this,_onMasterSelectorChanged),__privateAdd(this,_getVariantById),__privateAdd(this,_getVariantFromOptions),__privateAdd(this,_isVariantSelectable),__privateAdd(this,_getFirstMatchingAvailableOrSelectableVariant),__privateAdd(this,_getSelectedOptionValues),__privateAdd(this,_updateDisableSelectors),__privateAdd(this,_abortController7,void 0)}async connectedCallback(){if(__privateSet(this,_abortController7,new AbortController),this.masterSelector=document.forms[this.getAttribute("form")].id,this.optionSelectors=Array.from(this.querySelectorAll("[data-option-selector]")),!this.masterSelector){console.warn(`The variant selector for product with handle ${this.productHandle} is not linked to any product form.`);return}this.product=await ProductLoader.load(this.productHandle),this.optionSelectors.forEach(optionSelector=>{optionSelector.addEventListener("change",__privateMethod(this,_onOptionChanged,onOptionChanged_fn).bind(this),{signal:__privateGet(this,_abortController7).signal})}),this.masterSelector.addEventListener("change",__privateMethod(this,_onMasterSelectorChanged,onMasterSelectorChanged_fn).bind(this),{signal:__privateGet(this,_abortController7).signal}),__privateMethod(this,_updateDisableSelectors,updateDisableSelectors_fn).call(this),this.selectVariant(this.selectedVariant.id)}disconnectedCallback(){__privateGet(this,_abortController7).abort()}get selectedVariant(){return __privateMethod(this,_getVariantById,getVariantById_fn).call(this,parseInt(this.masterSelector.value))}get productHandle(){return this.getAttribute("handle")}get hideSoldOutVariants(){return this.hasAttribute("hide-sold-out-variants")}get updateUrl(){return this.hasAttribute("update-url")}selectVariant(id){__privateMethod(this,_isVariantSelectable,isVariantSelectable_fn).call(this,__privateMethod(this,_getVariantById,getVariantById_fn).call(this,id))||(id=__privateMethod(this,_getFirstMatchingAvailableOrSelectableVariant,getFirstMatchingAvailableOrSelectableVariant_fn).call(this).id);const previousVariant=this.selectedVariant;if(!(previousVariant&&previousVariant.id===id)){if(this.masterSelector.value=id,this.masterSelector.dispatchEvent(new Event("change",{bubbles:!0})),this.updateUrl&&history.replaceState){const newUrl=new URL(window.location.href);id?newUrl.searchParams.set("variant",id):newUrl.searchParams.delete("variant"),window.history.replaceState({path:newUrl.toString()},"",newUrl.toString())}__privateMethod(this,_updateDisableSelectors,updateDisableSelectors_fn).call(this),this.masterSelector.form.dispatchEvent(new CustomEvent("variant:change",{bubbles:!0,detail:{product:this.product,variant:this.selectedVariant,previousVariant}}))}}};_abortController7=new WeakMap,_onOptionChanged=new WeakSet,onOptionChanged_fn=function(event){event.target.name.startsWith("option")&&this.selectVariant(__privateMethod(this,_getVariantFromOptions,getVariantFromOptions_fn).call(this)?.id)},_onMasterSelectorChanged=new WeakSet,onMasterSelectorChanged_fn=function(){(this.selectedVariant?.options||[]).forEach((value,index)=>{let input=this.optionSelectors[index].querySelector(`input[type="radio"][name="option${index+1}"][value="${CSS.escape(value)}"], input[type="hidden"][name="option${index+1}"], select[name="option${index+1}"]`),triggerChangeEvent=!1;input.tagName==="SELECT"||input.tagName==="INPUT"&&input.type==="hidden"?(triggerChangeEvent=input.value!==value,input.value=value):input.tagName==="INPUT"&&input.type==="radio"&&(triggerChangeEvent=!input.checked&&input.value===value,input.checked=input.value===value),triggerChangeEvent&&input.dispatchEvent(new Event("change",{bubbles:!0}))})},_getVariantById=new WeakSet,getVariantById_fn=function(id){return this.product.variants.find(variant=>variant.id===id)},_getVariantFromOptions=new WeakSet,getVariantFromOptions_fn=function(){const options=__privateMethod(this,_getSelectedOptionValues,getSelectedOptionValues_fn).call(this);return this.product.variants.find(variant=>variant.options.every((value,index)=>value===options[index]))},_isVariantSelectable=new WeakSet,isVariantSelectable_fn=function(variant){return variant?variant.available||!this.hideSoldOutVariants&&!variant.available:!1},_getFirstMatchingAvailableOrSelectableVariant=new WeakSet,getFirstMatchingAvailableOrSelectableVariant_fn=function(){let options=__privateMethod(this,_getSelectedOptionValues,getSelectedOptionValues_fn).call(this),matchedVariant=null,slicedCount=0;do options.pop(),slicedCount+=1,matchedVariant=this.product.variants.find(variant=>this.hideSoldOutVariants?variant.available&&variant.options.slice(0,variant.options.length-slicedCount).every((value,index)=>value===options[index]):variant.options.slice(0,variant.options.length-slicedCount).every((value,index)=>value===options[index]));while(!matchedVariant&&options.length>0);return matchedVariant},_getSelectedOptionValues=new WeakSet,getSelectedOptionValues_fn=function(){return this.optionSelectors.map(optionSelector=>optionSelector.querySelector('input[name^="option"][type="hidden"], input[name^="option"]:checked, select[name^="option"]').value)},_updateDisableSelectors=new WeakSet,updateDisableSelectors_fn=function(){const selectedVariant=this.selectedVariant;if(!selectedVariant)return;const applyClassToSelector=(selector,valueIndex,available,hasAtLeastOneCombination)=>{const optionValue=Array.from(selector.querySelectorAll("[data-option-value]"))[valueIndex];optionValue.toggleAttribute("hidden",!hasAtLeastOneCombination),this.hideSoldOutVariants?optionValue.toggleAttribute("hidden",!available):optionValue.classList.toggle("is-disabled",!available)};this.optionSelectors&&this.optionSelectors[0]&&this.product.options[0].values.forEach((value,valueIndex)=>{const hasAtLeastOneCombination=this.product.variants.some(variant=>variant.option1===value&&variant),hasAvailableVariant=this.product.variants.some(variant=>variant.option1===value&&variant.available);applyClassToSelector(this.optionSelectors[0],valueIndex,hasAvailableVariant,hasAtLeastOneCombination),this.optionSelectors[1]&&this.product.options[1].values.forEach((value2,valueIndex2)=>{const hasAtLeastOneCombination2=this.product.variants.some(variant=>variant.option2===value2&&variant.option1===selectedVariant.option1&&variant),hasAvailableVariant2=this.product.variants.some(variant=>variant.option2===value2&&variant.option1===selectedVariant.option1&&variant.available);applyClassToSelector(this.optionSelectors[1],valueIndex2,hasAvailableVariant2,hasAtLeastOneCombination2),this.optionSelectors[2]&&this.product.options[2].values.forEach((value3,valueIndex3)=>{const hasAtLeastOneCombination3=this.product.variants.some(variant=>variant.option3===value3&&variant.option1===selectedVariant.option1&&variant.option2===selectedVariant.option2&&variant),hasAvailableVariant3=this.product.variants.some(variant=>variant.option3===value3&&variant.option1===selectedVariant.option1&&variant.option2===selectedVariant.option2&&variant.available);applyClassToSelector(this.optionSelectors[2],valueIndex3,hasAvailableVariant3,hasAtLeastOneCombination3)})})})};var _onVariantChangedListener13,_onVariantChanged12,onVariantChanged_fn12,VariantOptionValue=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onVariantChanged12),__privateAdd(this,_onVariantChangedListener13,__privateMethod(this,_onVariantChanged12,onVariantChanged_fn12).bind(this))}connectedCallback(){document.forms[this.getAttribute("form")]?.addEventListener("variant:change",__privateGet(this,_onVariantChangedListener13))}disconnectedCallback(){document.forms[this.getAttribute("form")]?.removeEventListener("variant:change",__privateGet(this,_onVariantChangedListener13))}};_onVariantChangedListener13=new WeakMap,_onVariantChanged12=new WeakSet,onVariantChanged_fn12=function(event){this.innerHTML=event.detail.variant[this.getAttribute("for")]},window.customElements.get("variant-picker")||window.customElements.define("variant-picker",VariantPicker),window.customElements.get("variant-option-value")||window.customElements.define("variant-option-value",VariantOptionValue);import{inView as inView6}from"vendor";var BaseMedia=class extends HTMLElement{static get observedAttributes(){return["playing"]}connectedCallback(){this._abortController=new AbortController,this.hasAttribute("autoplay")&&inView6(this,this.play.bind(this),{margin:"0px 0px 0px 0px"})}disconnectedCallback(){this._abortController.abort()}get playing(){return this.hasAttribute("playing")}get player(){return this._playerProxy=this._playerProxy||new Proxy(this._playerTarget(),{get:(target,prop)=>async()=>{target=await target,this._playerHandler(target,prop)}})}play(){this.playing||this.player.play()}pause(){this.playing&&this.player.pause()}attributeChangedCallback(name,oldValue,newValue){name==="playing"&&(oldValue===null&&newValue===""?(this.dispatchEvent(new CustomEvent("media:play",{bubbles:!0})),this.hasAttribute("group")&&Array.from(document.querySelectorAll(`[group="${this.getAttribute("group")}"]`)).filter(item=>item!==this).forEach(itemToPause=>{itemToPause.pause()})):newValue===null&&this.dispatchEvent(new CustomEvent("media:pause",{bubbles:!0})))}},ModelMedia=class extends BaseMedia{connectedCallback(){super.connectedCallback(),this.player}_playerTarget(){return new Promise(resolve=>{this.setAttribute("loaded",""),window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0",onLoad:this._setupShopifyXr.bind(this)},{name:"model-viewer-ui",version:"1.0",onLoad:()=>{const modelViewer=this.querySelector("model-viewer");modelViewer.addEventListener("shopify_model_viewer_ui_toggle_play",()=>this.setAttribute("playing","")),modelViewer.addEventListener("shopify_model_viewer_ui_toggle_pause",()=>this.removeAttribute("playing")),resolve(new window.Shopify.ModelViewerUI(modelViewer,{focusOnPlay:!0}))}}])})}_playerHandler(target,prop){target[prop]()}async _setupShopifyXr(){if(!window.ShopifyXR)document.addEventListener("shopify_xr_initialized",this._setupShopifyXr.bind(this));else{const models=(await ProductLoader.load(this.getAttribute("handle"))).media.filter(media=>media.media_type==="model");window.ShopifyXR.addModels(models),window.ShopifyXR.setupXRElements()}}};window.customElements.get("model-media")||window.customElements.define("model-media",ModelMedia);import{inView as inView7}from"vendor";var onYouTubePromise=new Promise(resolve=>{window.onYouTubeIframeAPIReady=()=>resolve()}),VideoMedia=class extends BaseMedia{#mustRemoveControlsAfterSuspend=!1;connectedCallback(){super.connectedCallback(),this.hasAttribute("autoplay")||this.addEventListener("click",this.play,{once:!0,signal:this._abortController.signal}),this.hasAttribute("show-play-button")&&!this.shadowRoot&&this.attachShadow({mode:"open"}).appendChild(document.getElementById("video-media-default-template").content.cloneNode(!0)),this.getAttribute("type")==="video"&&inView7(this,()=>{this.querySelector("video")?.setAttribute("preload","metadata")},{margin:"800px"})}_playerTarget(){if(this.hasAttribute("host"))return this.setAttribute("loaded",""),new Promise(async resolve=>{const templateElement=this.querySelector("template");templateElement&&templateElement.replaceWith(templateElement.content.firstElementChild.cloneNode(!0));const muteVideo=this.hasAttribute("autoplay")||matchesMediaQuery("md-max"),script=document.createElement("script");if(script.type="text/javascript",this.getAttribute("host")==="youtube"){(!window.YT||!window.YT.Player)&&(script.src="https://www.youtube.com/iframe_api",document.head.appendChild(script),await new Promise(resolve2=>{script.onload=resolve2})),await onYouTubePromise;const player=new YT.Player(this.querySelector("iframe"),{events:{onReady:()=>{muteVideo&&player.mute(),resolve(player)},onStateChange:event=>{event.data===YT.PlayerState.PLAYING?this.setAttribute("playing",""):(event.data===YT.PlayerState.ENDED||event.data===YT.PlayerState.PAUSED)&&this.removeAttribute("playing")}}})}if(this.getAttribute("host")==="vimeo"){(!window.Vimeo||!window.Vimeo.Player)&&(script.src="https://player.vimeo.com/api/player.js",document.head.appendChild(script),await new Promise(resolve2=>{script.onload=resolve2}));const player=new Vimeo.Player(this.querySelector("iframe"));muteVideo&&player.setMuted(!0),player.on("play",()=>{this.setAttribute("playing","")}),player.on("pause",()=>this.removeAttribute("playing")),player.on("ended",()=>this.removeAttribute("playing")),resolve(player)}});{const videoElement=this.querySelector("video");return this.setAttribute("loaded",""),videoElement.addEventListener("play",()=>{this.setAttribute("playing",""),this.removeAttribute("suspended"),this.#mustRemoveControlsAfterSuspend&&(videoElement.controls=!1)}),videoElement.addEventListener("pause",()=>{!videoElement.seeking&&videoElement.paused&&this.removeAttribute("playing")}),videoElement}}_playerHandler(target,prop){this.getAttribute("host")==="youtube"?prop==="play"?target.playVideo():target.pauseVideo():prop==="play"&&!this.hasAttribute("host")?target.play().catch(error=>{error.name==="NotAllowedError"&&(this.setAttribute("suspended",""),this.hasAttribute("controls")||(this.#mustRemoveControlsAfterSuspend=!0,target.controls=!0))}):target[prop]()}};window.customElements.get("video-media")||window.customElements.define("video-media",VideoMedia);import{timeline as timeline5}from"vendor";var _onSummaryClickedListener,_onSummaryClicked,onSummaryClicked_fn,CustomDetails=class extends HTMLDetailsElement{constructor(){super(),__privateAdd(this,_onSummaryClicked),__privateAdd(this,_onSummaryClickedListener,__privateMethod(this,_onSummaryClicked,onSummaryClicked_fn).bind(this)),Shopify.designMode&&(this.addEventListener("shopify:block:select",event=>this.toggle(!0,!event.detail.load)),this.addEventListener("shopify:block:deselect",event=>this.toggle(!1,!event.detail.load)))}static get observedAttributes(){return["open","aria-expanded"]}connectedCallback(){this.setAttribute("aria-expanded",this.open?"true":"false"),this.summaryElement.addEventListener("click",__privateGet(this,_onSummaryClickedListener))}disconnectedCallback(){this.summaryElement.removeEventListener("click",__privateGet(this,_onSummaryClickedListener))}get summaryElement(){return this.firstElementChild}get contentElement(){return this.lastElementChild}toggle(force=void 0,animate27=!0){const newValue=typeof force=="boolean"?force:this.getAttribute("aria-expanded")!=="true";newValue&&this.setAttribute("open",animate27?"":"immediate"),this.setAttribute("aria-expanded",newValue?"true":"false")}attributeChangedCallback(name,oldValue,newValue){switch(name){case"open":this.setAttribute("aria-expanded",newValue!==null?"true":"false");break;case"aria-expanded":if(oldValue===newValue||!this.isConnected)return;if(newValue==="false"&&this.open)this.createHideAnimationControls()?.finished.then(event=>{event!==void 0&&this.removeAttribute("open")});else if(newValue==="true"){const controls=this.createShowAnimationControls();this.getAttribute("open")==="immediate"&&controls.finish()}}}createShowAnimationControls(){}createHideAnimationControls(){}};_onSummaryClickedListener=new WeakMap,_onSummaryClicked=new WeakSet,onSummaryClicked_fn=function(event){if(this.open&&this.summaryElement.hasAttribute("data-follow-link"))return window.location.href=this.summaryElement.getAttribute("data-follow-link");event.preventDefault(),this.toggle()};var AccordionDisclosure=class extends CustomDetails{createShowAnimationControls(){this.style.overflow="hidden";const animationControls=timeline5([[this,{height:[`${this.summaryElement.clientHeight}px`,`${this.scrollHeight}px`]},{duration:.25,easing:"ease"}],[this.contentElement,{opacity:[0,1],transform:["translateY(4px)","translateY(0)"]},{duration:.15,at:"-0.1"}]]);return animationControls.finished.then(()=>{this.style.height=null,this.style.overflow=null}),animationControls}createHideAnimationControls(){const animationControls=timeline5([[this.contentElement,{opacity:0},{duration:.15}],[this,{height:[`${this.clientHeight}px`,`${this.summaryElement.clientHeight}px`]},{duration:.25,at:"<",easing:"ease"}]]);return animationControls.finished.then(()=>{this.style.height=null}),animationControls}};window.customElements.get("accordion-disclosure")||window.customElements.define("accordion-disclosure",AccordionDisclosure,{extends:"details"});var _hoverTimer,_detectClickOutsideListener,_detectEscKeyboardListener,_detectFocusOutListener,_detectHoverOutsideListener,_detectHoverListener,_detectClickOutside,detectClickOutside_fn,_detectHover,detectHover_fn,_detectHoverOutside,detectHoverOutside_fn,_detectEscKeyboard,detectEscKeyboard_fn,_detectFocusOut,detectFocusOut_fn,_MenuDisclosure=class extends CustomDetails{constructor(){super(),__privateAdd(this,_detectClickOutside),__privateAdd(this,_detectHover),__privateAdd(this,_detectHoverOutside),__privateAdd(this,_detectEscKeyboard),__privateAdd(this,_detectFocusOut),__privateAdd(this,_hoverTimer,void 0),__privateAdd(this,_detectClickOutsideListener,__privateMethod(this,_detectClickOutside,detectClickOutside_fn).bind(this)),__privateAdd(this,_detectEscKeyboardListener,__privateMethod(this,_detectEscKeyboard,detectEscKeyboard_fn).bind(this)),__privateAdd(this,_detectFocusOutListener,__privateMethod(this,_detectFocusOut,detectFocusOut_fn).bind(this)),__privateAdd(this,_detectHoverOutsideListener,__privateMethod(this,_detectHoverOutside,detectHoverOutside_fn).bind(this)),__privateAdd(this,_detectHoverListener,__privateMethod(this,_detectHover,detectHover_fn).bind(this)),this.addEventListener("mouseover",__privateGet(this,_detectHoverListener)),this.addEventListener("mouseout",__privateGet(this,_detectHoverListener))}get trigger(){return window.matchMedia("screen and (pointer: fine)").matches?this.getAttribute("trigger"):"click"}get mouseOverDelayTolerance(){return 250}attributeChangedCallback(name,oldValue,newValue){if(super.attributeChangedCallback(name,oldValue,newValue),name==="aria-expanded"){if(oldValue===newValue)return;newValue==="false"?(document.removeEventListener("click",__privateGet(this,_detectClickOutsideListener)),document.removeEventListener("keydown",__privateGet(this,_detectEscKeyboardListener)),document.removeEventListener("focusout",__privateGet(this,_detectFocusOutListener)),document.removeEventListener("mouseover",__privateGet(this,_detectHoverOutsideListener))):(document.addEventListener("click",__privateGet(this,_detectClickOutsideListener)),document.addEventListener("keydown",__privateGet(this,_detectEscKeyboardListener)),document.addEventListener("focusout",__privateGet(this,_detectFocusOutListener)),document.addEventListener("mouseover",__privateGet(this,_detectHoverOutsideListener)))}}};_hoverTimer=new WeakMap,_detectClickOutsideListener=new WeakMap,_detectEscKeyboardListener=new WeakMap,_detectFocusOutListener=new WeakMap,_detectHoverOutsideListener=new WeakMap,_detectHoverListener=new WeakMap,_detectClickOutside=new WeakSet,detectClickOutside_fn=function(event){this.trigger==="click"&&!this.contains(event.target)&&!(event.target.closest("details")instanceof _MenuDisclosure)&&this.toggle(!1)},_detectHover=new WeakSet,detectHover_fn=function(event){this.trigger==="hover"&&(event.type==="mouseover"?(clearTimeout(__privateGet(this,_hoverTimer)),this.toggle(!0)):event.type==="mouseout"&&__privateSet(this,_hoverTimer,setTimeout(()=>this.toggle(!1),this.mouseOverDelayTolerance)))},_detectHoverOutside=new WeakSet,detectHoverOutside_fn=function(event){if(this.trigger!=="hover")return;const closestDetails=event.target.closest("details");closestDetails instanceof _MenuDisclosure&&closestDetails!==this&&!closestDetails.contains(this)&&!this.contains(closestDetails)&&(clearTimeout(__privateGet(this,_hoverTimer)),this.toggle(!1))},_detectEscKeyboard=new WeakSet,detectEscKeyboard_fn=function(event){if(event.code==="Escape"){const targetMenu=event.target.closest("details[open]");targetMenu&&targetMenu instanceof _MenuDisclosure&&(targetMenu.toggle(!1),event.stopPropagation())}},_detectFocusOut=new WeakSet,detectFocusOut_fn=function(event){event.relatedTarget&&!this.contains(event.relatedTarget)&&this.toggle(!1)};var MenuDisclosure=_MenuDisclosure,_onHashChange,onHashChange_fn,ReviewsDisclosure=class extends AccordionDisclosure{constructor(){super(...arguments),__privateAdd(this,_onHashChange)}connectedCallback(){super.connectedCallback(),document.addEventListener("hashchange:simulate",__privateMethod(this,_onHashChange,onHashChange_fn).bind(this))}};_onHashChange=new WeakSet,onHashChange_fn=function(event){event.detail.hash==="#shopify-product-reviews"&&!this.open&&(this.toggle(!0,!1),this.scrollIntoView({block:"start",behavior:"smooth"}))},window.customElements.get("reviews-disclosure")||window.customElements.define("reviews-disclosure",ReviewsDisclosure,{extends:"details"});import{Delegate as Delegate5,animate as animate10,timeline as timeline6}from"vendor";var _componentID,_buttons,_panels,_delegate4,_setupComponent,setupComponent_fn,_onButtonClicked,onButtonClicked_fn,_onSlotChange,onSlotChange_fn,_handleKeyboard,handleKeyboard_fn,Tabs=class extends HTMLElement{constructor(){super(),__privateAdd(this,_setupComponent),__privateAdd(this,_onButtonClicked),__privateAdd(this,_onSlotChange),__privateAdd(this,_handleKeyboard),__privateAdd(this,_componentID,crypto.randomUUID?crypto.randomUUID():Math.floor(Math.random()*1e4)),__privateAdd(this,_buttons,[]),__privateAdd(this,_panels,[]),__privateAdd(this,_delegate4,new Delegate5(this)),this.shadowRoot||this.attachShadow({mode:"open"}).appendChild(this.querySelector("template").content.cloneNode(!0)),Shopify.designMode&&this.addEventListener("shopify:block:select",event=>this.selectedIndex=__privateGet(this,_buttons).indexOf(event.target)),__privateGet(this,_delegate4).on("click",'button[role="tab"]',__privateMethod(this,_onButtonClicked,onButtonClicked_fn).bind(this)),this.shadowRoot.addEventListener("slotchange",__privateMethod(this,_onSlotChange,onSlotChange_fn).bind(this)),this.addEventListener("keydown",__privateMethod(this,_handleKeyboard,handleKeyboard_fn))}static get observedAttributes(){return["selected-index"]}connectedCallback(){__privateMethod(this,_setupComponent,setupComponent_fn).call(this),this.selectedIndex=this.selectedIndex}disconnectedCallback(){__privateGet(this,_delegate4).destroy()}get animationDuration(){return this.hasAttribute("animation-duration")?parseFloat(this.getAttribute("animation-duration")):.3}get selectedIndex(){return parseInt(this.getAttribute("selected-index"))||0}set selectedIndex(index){this.setAttribute("selected-index",Math.min(Math.max(index,0),__privateGet(this,_buttons).length-1).toString()),this.style.setProperty("--selected-index",this.selectedIndex.toString())}attributeChangedCallback(name,oldValue,newValue){__privateGet(this,_buttons).forEach((button,index)=>button.setAttribute("aria-selected",index===parseInt(newValue)?"true":"false")),name==="selected-index"&&oldValue!==null&&oldValue!==newValue&&this.transition(__privateGet(this,_panels)[parseInt(oldValue)],__privateGet(this,_panels)[parseInt(newValue)])}async transition(fromPanel,toPanel){const beforeHeight=this.clientHeight;await animate10(fromPanel,{transform:["translateY(0px)","translateY(10px)"],opacity:[1,0]},{duration:this.animationDuration}).finished,fromPanel.hidden=!0,toPanel.hidden=!1,await timeline6([[this,{height:[`${beforeHeight}px`,`${this.clientHeight}px`],overflow:["hidden","visible"]},{duration:.15,easing:[.85,0,.15,1]}],[toPanel,{transform:["translateY(10px)","translateY(0px)"],opacity:[0,1]},{duration:this.animationDuration,at:"+0.1"}]]).finished,this.style.removeProperty("height")}};_componentID=new WeakMap,_buttons=new WeakMap,_panels=new WeakMap,_delegate4=new WeakMap,_setupComponent=new WeakSet,setupComponent_fn=function(){__privateSet(this,_buttons,Array.from(this.shadowRoot.querySelector('slot[name="title"]').assignedNodes(),item=>item.matches("button")&&item||item.querySelector("button"))),__privateSet(this,_panels,Array.from(this.shadowRoot.querySelector('slot[name="content"]').assignedNodes())),__privateGet(this,_buttons).forEach((button,index)=>{button.setAttribute("role","tab"),button.setAttribute("aria-controls",`tab-panel-${__privateGet(this,_componentID)}-${index}`),button.id=`tab-${__privateGet(this,_componentID)}-${index}`}),__privateGet(this,_panels).forEach((panel,index)=>{panel.setAttribute("role","tabpanel"),panel.setAttribute("aria-labelledby",`tab-${__privateGet(this,_componentID)}-${index}`),panel.id=`tab-panel-${__privateGet(this,_componentID)}-${index}`,panel.hidden=index!==this.selectedIndex}),this.style.setProperty("--item-count",__privateGet(this,_buttons).length.toString())},_onButtonClicked=new WeakSet,onButtonClicked_fn=function(event,button){this.selectedIndex=__privateGet(this,_buttons).indexOf(button)},_onSlotChange=new WeakSet,onSlotChange_fn=function(){__privateMethod(this,_setupComponent,setupComponent_fn).call(this)},_handleKeyboard=new WeakSet,handleKeyboard_fn=function(event){__privateGet(this,_buttons).indexOf(document.activeElement)===-1||!["ArrowLeft","ArrowRight"].includes(event.key)||(event.key==="ArrowLeft"?this.selectedIndex=(this.selectedIndex-1+__privateGet(this,_buttons).length)%__privateGet(this,_buttons).length:this.selectedIndex=(this.selectedIndex+1+__privateGet(this,_buttons).length)%__privateGet(this,_buttons).length,__privateGet(this,_buttons)[this.selectedIndex].focus())},window.customElements.get("x-tabs")||window.customElements.define("x-tabs",Tabs);var _listenersAbortController2,_fetchAbortController,_searchForm,_queryInput,_onInputChanged2,onInputChanged_fn2,_onFormSubmitted2,onFormSubmitted_fn2,_doPredictiveSearch,doPredictiveSearch_fn,_onSearchCleared,onSearchCleared_fn,PredictiveSearch=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onInputChanged2),__privateAdd(this,_onFormSubmitted2),__privateAdd(this,_doPredictiveSearch),__privateAdd(this,_onSearchCleared),__privateAdd(this,_listenersAbortController2,void 0),__privateAdd(this,_fetchAbortController,void 0),__privateAdd(this,_searchForm,void 0),__privateAdd(this,_queryInput,void 0),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createRange().createContextualFragment(''))}connectedCallback(){__privateSet(this,_listenersAbortController2,new AbortController),__privateSet(this,_searchForm,document.querySelector(`[aria-owns="${this.id}"]`)),__privateSet(this,_queryInput,__privateGet(this,_searchForm).elements.q),__privateGet(this,_searchForm).addEventListener("submit",__privateMethod(this,_onFormSubmitted2,onFormSubmitted_fn2).bind(this),{signal:__privateGet(this,_listenersAbortController2).signal}),__privateGet(this,_searchForm).addEventListener("reset",__privateMethod(this,_onSearchCleared,onSearchCleared_fn).bind(this),{signal:__privateGet(this,_listenersAbortController2).signal}),__privateGet(this,_queryInput).addEventListener("input",debounce(__privateMethod(this,_onInputChanged2,onInputChanged_fn2).bind(this),this.autoCompleteDelay,{signal:__privateGet(this,_listenersAbortController2).signal}))}disconnectedCallback(){__privateGet(this,_listenersAbortController2).abort()}get autoCompleteDelay(){return 280}supportsPredictiveApi(){return JSON.parse(document.getElementById("shopify-features").innerHTML).predictiveSearch}};_listenersAbortController2=new WeakMap,_fetchAbortController=new WeakMap,_searchForm=new WeakMap,_queryInput=new WeakMap,_onInputChanged2=new WeakSet,onInputChanged_fn2=function(){if(__privateGet(this,_queryInput).value==="")return __privateMethod(this,_onSearchCleared,onSearchCleared_fn).call(this);__privateGet(this,_fetchAbortController)?.abort(),__privateSet(this,_fetchAbortController,new AbortController);try{return __privateMethod(this,_doPredictiveSearch,doPredictiveSearch_fn).call(this)}catch(e){if(e.name!=="AbortError")throw e}},_onFormSubmitted2=new WeakSet,onFormSubmitted_fn2=function(event){if(__privateGet(this,_queryInput).value==="")return event.preventDefault()},_doPredictiveSearch=new WeakSet,doPredictiveSearch_fn=async function(){document.documentElement.dispatchEvent(new CustomEvent("theme:loading:start",{bubbles:!0}));const url=`${window.Shopify.routes.root}search${this.supportsPredictiveApi()?"/suggest":""}`,queryParams=`q=${__privateGet(this,_queryInput).value}§ion_id=predictive-search&resources[limit]=10&resources[limit_scope]=each`,tempDoc=new DOMParser().parseFromString(await(await cachedFetch(`${url}?${queryParams}`,{signal:__privateGet(this,_fetchAbortController).signal})).text(),"text/html");this.querySelector('[slot="results"]').replaceChildren(...document.importNode(tempDoc.querySelector(".shopify-section"),!0).children),document.documentElement.dispatchEvent(new CustomEvent("theme:loading:end",{bubbles:!0}))},_onSearchCleared=new WeakSet,onSearchCleared_fn=function(){__privateGet(this,_fetchAbortController)?.abort(),__privateGet(this,_queryInput).focus(),this.querySelector('[slot="results"]').innerHTML=""},window.customElements.get("predictive-search")||window.customElements.define("predictive-search",PredictiveSearch);import{animate as animate11}from"vendor";var AnnouncementBarCarousel=class extends EffectCarousel{createOnChangeAnimationControls(fromSlide,toSlide){return{leaveControls:()=>animate11(fromSlide,{opacity:[1,0],transform:["translateY(0)","translateY(-10px)"]},{duration:.25,easing:[.55,.055,.675,.19]}),enterControls:()=>animate11(toSlide,{opacity:[0,1],transform:["translateY(10px)","translateY(0px)"]},{duration:.4,easing:[.215,.61,.355,1]})}}};window.customElements.get("announcement-bar-carousel")||window.customElements.define("announcement-bar-carousel",AnnouncementBarCarousel);import{animate as animate12,inView as inView8}from"vendor";var _onPointerMoveListener,_onTouchMoveListener,_touchStartTimestamp,_onPointerDown,onPointerDown_fn,_onPointerMove,onPointerMove_fn,_onTouchMove,onTouchMove_fn,_onPointerUp,onPointerUp_fn,_calculatePosition,calculatePosition_fn,_animateInitialPosition,animateInitialPosition_fn,BeforeAfter=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onPointerDown),__privateAdd(this,_onPointerMove),__privateAdd(this,_onTouchMove),__privateAdd(this,_onPointerUp),__privateAdd(this,_calculatePosition),__privateAdd(this,_animateInitialPosition),__privateAdd(this,_onPointerMoveListener,__privateMethod(this,_onPointerMove,onPointerMove_fn).bind(this)),__privateAdd(this,_onTouchMoveListener,__privateMethod(this,_onTouchMove,onTouchMove_fn).bind(this)),__privateAdd(this,_touchStartTimestamp,0),this.addEventListener("pointerdown",__privateMethod(this,_onPointerDown,onPointerDown_fn))}connectedCallback(){inView8(this,__privateMethod(this,_animateInitialPosition,animateInitialPosition_fn).bind(this))}};_onPointerMoveListener=new WeakMap,_onTouchMoveListener=new WeakMap,_touchStartTimestamp=new WeakMap,_onPointerDown=new WeakSet,onPointerDown_fn=function(event){if(event.target.tagName!=="A")if(document.addEventListener("pointerup",__privateMethod(this,_onPointerUp,onPointerUp_fn).bind(this),{once:!0}),matchesMediaQuery("supports-hover"))document.addEventListener("pointermove",__privateGet(this,_onPointerMoveListener)),__privateMethod(this,_calculatePosition,calculatePosition_fn).call(this,event);else{const cursor=this.querySelector(".before-after__cursor");event.target===cursor||cursor.contains(event.target)?(document.addEventListener("pointermove",__privateGet(this,_onPointerMoveListener)),this.addEventListener("touchmove",__privateGet(this,_onTouchMoveListener),{passive:!1})):__privateSet(this,_touchStartTimestamp,event.timeStamp)}},_onPointerMove=new WeakSet,onPointerMove_fn=function(event){__privateMethod(this,_calculatePosition,calculatePosition_fn).call(this,event)},_onTouchMove=new WeakSet,onTouchMove_fn=function(event){event.preventDefault()},_onPointerUp=new WeakSet,onPointerUp_fn=function(event){this.removeEventListener("touchmove",__privateGet(this,_onTouchMoveListener)),document.removeEventListener("pointermove",__privateGet(this,_onPointerMoveListener)),matchesMediaQuery("supports-hover")||event.timeStamp-__privateGet(this,_touchStartTimestamp)<=250&&__privateMethod(this,_calculatePosition,calculatePosition_fn).call(this,event)},_calculatePosition=new WeakSet,calculatePosition_fn=function(event){let rectangle=this.getBoundingClientRect(),percentage;this.hasAttribute("vertical")?percentage=(event.clientY-rectangle.top)/this.clientHeight*100:(percentage=(event.clientX-rectangle.left)/this.clientWidth*100,percentage=document.dir==="rtl"?100-percentage:percentage),this.style.setProperty("--before-after-cursor-position",`${Math.min(Math.max(percentage,0),100)}%`)},_animateInitialPosition=new WeakSet,animateInitialPosition_fn=function(){animate12(progress=>{this.style.setProperty("--before-after-cursor-position",`calc(var(--before-after-initial-cursor-position) * ${progress})`)},{duration:.6,easing:[.85,0,.15,1]})},window.customElements.get("before-after")||window.customElements.define("before-after",BeforeAfter);import{animate as animate13,stagger as stagger2,inView as inView9}from"vendor";var _reveal,reveal_fn,BlogPosts=class extends HTMLElement{constructor(){super(),__privateAdd(this,_reveal),this.hasAttribute("reveal-on-scroll")&&matchesMediaQuery("motion-safe")&&inView9(this,__privateMethod(this,_reveal,reveal_fn).bind(this),{margin:"-50px 0px"})}};_reveal=new WeakSet,reveal_fn=function(){this.style.opacity="1",animate13(this.children,{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.25,delay:stagger2(.1,{easing:"ease-out"}),easing:"ease"})},window.customElements.get("blog-posts")||window.customElements.define("blog-posts",BlogPosts);import{animate as animate14,timeline as timeline7}from"vendor";var _sectionId,_onBundleSection,onBundleSection_fn,_onCartChange,onCartChange_fn,_onBeforeShow,onBeforeShow_fn,_onPageShow,onPageShow_fn,_refreshCart,refreshCart_fn,_replaceContent,replaceContent_fn,CartDrawer=class extends Drawer{constructor(){super(...arguments),__privateAdd(this,_onBundleSection),__privateAdd(this,_onCartChange),__privateAdd(this,_onBeforeShow),__privateAdd(this,_onPageShow),__privateAdd(this,_refreshCart),__privateAdd(this,_replaceContent),__privateAdd(this,_sectionId,void 0)}connectedCallback(){super.connectedCallback(),__privateGet(this,_sectionId)??__privateSet(this,_sectionId,extractSectionId(this)),document.addEventListener("cart:prepare-bundled-sections",__privateMethod(this,_onBundleSection,onBundleSection_fn).bind(this),{signal:this.abortController.signal}),document.addEventListener("cart:change",__privateMethod(this,_onCartChange,onCartChange_fn).bind(this),{signal:this.abortController.signal}),document.addEventListener("cart:refresh",__privateMethod(this,_refreshCart,refreshCart_fn).bind(this),{signal:this.abortController.signal}),window.addEventListener("pageshow",__privateMethod(this,_onPageShow,onPageShow_fn).bind(this),{signal:this.abortController.signal}),this.addEventListener("dialog:before-show",__privateMethod(this,_onBeforeShow,onBeforeShow_fn))}};_sectionId=new WeakMap,_onBundleSection=new WeakSet,onBundleSection_fn=function(event){event.detail.sections.push(__privateGet(this,_sectionId))},_onCartChange=new WeakSet,onCartChange_fn=async function(event){__privateMethod(this,_replaceContent,replaceContent_fn).call(this,event.detail.cart.sections[__privateGet(this,_sectionId)]),window.themeVariables.settings.cartType==="drawer"&&event.detail.baseEvent==="variant:add"&&this.show()},_onBeforeShow=new WeakSet,onBeforeShow_fn=async function(){const drawerFooter=this.shadowRoot.querySelector('[part="footer"]');drawerFooter&&(drawerFooter.style.opacity="0",await waitForEvent(this,"dialog:after-show"),animate14(drawerFooter,{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.25,easing:[.25,.46,.45,.94]}))},_onPageShow=new WeakSet,onPageShow_fn=async function(event){event.persisted&&__privateMethod(this,_refreshCart,refreshCart_fn).call(this)},_refreshCart=new WeakSet,refreshCart_fn=async function(){__privateMethod(this,_replaceContent,replaceContent_fn).call(this,await(await fetch(`${Shopify.routes.root}?section_id=${__privateGet(this,_sectionId)}`)).text())},_replaceContent=new WeakSet,replaceContent_fn=async function(html){const domElement=new DOMParser().parseFromString(html,"text/html"),newCartDrawer=document.createRange().createContextualFragment(domElement.getElementById(`shopify-section-${__privateGet(this,_sectionId)}`).querySelector("cart-drawer").innerHTML),itemCount=(await fetchCart).item_count;itemCount===0?(await timeline7([[this.getShadowPartByName("body"),{opacity:[1,0]},{duration:.15,easing:"ease-in"}],[this.getShadowPartByName("footer"),{opacity:[1,0],transform:["translateY(0)","translateY(30px)"]},{duration:.15,at:"<",easing:"ease-in"}]]).finished,this.replaceChildren(...newCartDrawer.children),animate14(this.getShadowPartByName("body"),{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.25,easing:[.25,.46,.45,.94]})):this.replaceChildren(...newCartDrawer.children),this.classList.toggle("drawer--center-body",itemCount===0)};var CartNoteDialog=class extends DialogElement{createEnterAnimationControls(){return animate14(this,{transform:["translateY(100%)","translateY(0)"]},{duration:.2,easing:"ease-in"})}createLeaveAnimationControls(){return animate14(this,{transform:["translateY(0)","translateY(100%)"]},{duration:.2,easing:"ease-in"})}};window.customElements.get("cart-drawer")||window.customElements.define("cart-drawer",CartDrawer),window.customElements.get("cart-note-dialog")||window.customElements.define("cart-note-dialog",CartNoteDialog);import{timeline as timeline8,inView as inView10,Delegate as Delegate6}from"vendor";var _reveal2,reveal_fn2,CollectionBanner=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_reveal2)}connectedCallback(){this.hasAttribute("reveal-on-scroll")&&matchesMediaQuery("motion-safe")&&inView10(this,__privateMethod(this,_reveal2,reveal_fn2).bind(this))}};_reveal2=new WeakSet,reveal_fn2=async function(){const image=this.querySelector(".content-over-media > picture img"),content=this.querySelector(".content-over-media > .prose");await imageLoaded(image);const imageTransform=image.getAttribute("is")==="image-parallax"?["scale(1.5)","scale(1.3)"]:["scale(1.2)","scale(1)"];return timeline8([[this,{opacity:1},{duration:0,easing:[.25,.46,.45,.94]}],[image,{opacity:[0,1],transform:imageTransform},{duration:.8,delay:.25,at:"<",easing:[.25,.46,.45,.94]}],[content,{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.6,at:"-0.4",easing:[.215,.61,.355,1]}]])};var _delegate5,_onLayoutSwitch,onLayoutSwitch_fn,_setCartAttribute,setCartAttribute_fn,CollectionLayoutSwitch=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onLayoutSwitch),__privateAdd(this,_setCartAttribute),__privateAdd(this,_delegate5,new Delegate6(this))}connectedCallback(){__privateGet(this,_delegate5).on("click",'button[type="button"]',__privateMethod(this,_onLayoutSwitch,onLayoutSwitch_fn).bind(this))}get controlledList(){return document.getElementById(this.getAttribute("aria-controls"))}};_delegate5=new WeakMap,_onLayoutSwitch=new WeakSet,onLayoutSwitch_fn=function(event,target){target.classList.contains("is-active")||(this.controlledList.setAttribute(`collection-${this.getAttribute("device")}-layout`,target.value),Array.from(this.querySelectorAll("button")).forEach(item=>item.classList.toggle("is-active",item===target)),this.controlledList.reveal(),__privateMethod(this,_setCartAttribute,setCartAttribute_fn).call(this,target.value))},_setCartAttribute=new WeakSet,setCartAttribute_fn=function(newLayout){const attributeProperty=`products_${this.getAttribute("device")}_grid_mode`;fetch(`${Shopify.routes.root}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{[attributeProperty]:newLayout}}),keepalive:!0})},window.customElements.get("collection-banner")||window.customElements.define("collection-banner",CollectionBanner),window.customElements.get("collection-layout-switch")||window.customElements.define("collection-layout-switch",CollectionLayoutSwitch);import{animate as animate15,inView as inView11}from"vendor";var _flips,_expirationDate,_interval,_isVisible,_recalculateFlips,recalculateFlips_fn,CountdownTimer=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_recalculateFlips),__privateAdd(this,_flips,void 0),__privateAdd(this,_expirationDate,void 0),__privateAdd(this,_interval,void 0),__privateAdd(this,_isVisible,void 0)}connectedCallback(){__privateSet(this,_flips,Array.from(this.querySelectorAll("countdown-timer-flip")));const expiresAt=this.getAttribute("expires-at");expiresAt!==""&&(__privateSet(this,_expirationDate,new Date(expiresAt)),__privateSet(this,_interval,setInterval(__privateMethod(this,_recalculateFlips,recalculateFlips_fn).bind(this),1e3)),__privateMethod(this,_recalculateFlips,recalculateFlips_fn).call(this)),inView11(this,()=>(__privateSet(this,_isVisible,!0),()=>__privateSet(this,_isVisible,!1)),{margin:"500px"})}disconnectedCallback(){clearInterval(__privateGet(this,_interval))}get daysFlip(){return __privateGet(this,_flips).find(flip=>flip.getAttribute("type")==="days")}get hoursFlip(){return __privateGet(this,_flips).find(flip=>flip.getAttribute("type")==="hours")}get minutesFlip(){return __privateGet(this,_flips).find(flip=>flip.getAttribute("type")==="minutes")}get secondsFlip(){return __privateGet(this,_flips).find(flip=>flip.getAttribute("type")==="seconds")}};_flips=new WeakMap,_expirationDate=new WeakMap,_interval=new WeakMap,_isVisible=new WeakMap,_recalculateFlips=new WeakSet,recalculateFlips_fn=function(){const dateNow=new Date;if(__privateGet(this,_expirationDate)`0`);this.shadowRoot.appendChild(document.createRange().createContextualFragment(flipHtml.join("")))}updateValue(value){this.textContent=Math.min(99,value).toString().padStart(2,"0"),[...this.textContent].forEach((digit,index)=>{this.shadowRoot.children[index].setAttribute("number",digit)})}},CountdownTimerFlipDigit=class extends HTMLElement{static observedAttributes=["number"];constructor(){super(),this.attachShadow({mode:"open"}).appendChild(document.createRange().createContextualFragment("
    "))}async attributeChangedCallback(name,oldValue,newValue){if(oldValue===null||oldValue===newValue||!this.hasAttribute("animate"))return this.textContent=newValue;await animate15(this.shadowRoot.firstElementChild,{opacity:[1,0],transform:["translateY(0)","translateY(-8px)"]},{duration:.3,easing:[.64,0,.78,0]}).finished,this.textContent=newValue,animate15(this.shadowRoot.firstElementChild,{opacity:[0,1],transform:["translateY(8px)","translateY(0px)"]},{duration:.3,easing:[.22,1,.36,1]})}};window.customElements.get("countdown-timer")||window.customElements.define("countdown-timer",CountdownTimer),window.customElements.get("countdown-timer-flip")||window.customElements.define("countdown-timer-flip",CountdownTimerFlip),window.customElements.get("countdown-timer-flip-digit")||window.customElements.define("countdown-timer-flip-digit",CountdownTimerFlipDigit);import{animate as animate16}from"vendor";var _loginForm,loginForm_get,_recoverForm,recoverForm_get,_switchForm,switchForm_fn,AccountLogin=class extends HTMLElement{constructor(){super(),__privateAdd(this,_loginForm),__privateAdd(this,_recoverForm),__privateAdd(this,_switchForm),window.addEventListener("hashchange",__privateMethod(this,_switchForm,switchForm_fn).bind(this)),window.location.hash==="#recover"&&(__privateGet(this,_loginForm,loginForm_get).hidden=!0,__privateGet(this,_recoverForm,recoverForm_get).hidden=!1)}};_loginForm=new WeakSet,loginForm_get=function(){return this.querySelector("#login")},_recoverForm=new WeakSet,recoverForm_get=function(){return this.querySelector("#recover")},_switchForm=new WeakSet,switchForm_fn=async function(){const fromForm=window.location.hash==="#recover"?__privateGet(this,_loginForm,loginForm_get):__privateGet(this,_recoverForm,recoverForm_get),toForm=window.location.hash==="#recover"?__privateGet(this,_recoverForm,recoverForm_get):__privateGet(this,_loginForm,loginForm_get);await animate16(fromForm,{transform:["translateY(0)","translateY(30px)"],opacity:[1,0]},{duration:.6,easing:"ease"}).finished,fromForm.hidden=!0,toForm.hidden=!1,await animate16(toForm,{transform:["translateY(30px)","translateY(0)"],opacity:[0,1]},{duration:.6,easing:"ease"})},window.customElements.get("account-login")||window.customElements.define("account-login",AccountLogin);var _observer,_onObserve,onObserve_fn,FaqToc=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onObserve),__privateAdd(this,_observer,new IntersectionObserver(__privateMethod(this,_onObserve,onObserve_fn).bind(this),{rootMargin:"0px 0px -70% 0px"}))}connectedCallback(){this.anchoredElements.forEach(anchoredElement=>__privateGet(this,_observer).observe(anchoredElement))}disconnectedCallback(){__privateGet(this,_observer).disconnect()}get anchorLinks(){return Array.from(this.querySelectorAll('a[href^="#"]'))}get anchoredElements(){return this.anchorLinks.map(anchor=>document.querySelector(anchor.getAttribute("href")))}};_observer=new WeakMap,_onObserve=new WeakSet,onObserve_fn=function(entries){for(const entry of entries){const anchorLink=this.anchorLinks.find(anchor=>anchor.getAttribute("href")===`#${entry.target.id}`);!entry.isIntersecting&&anchorLink.classList.contains("is-active")||entry.isIntersecting&&this.anchorLinks.forEach(link=>link.classList.toggle("is-active",link===anchorLink))}},window.customElements.get("faq-toc")||window.customElements.define("faq-toc",FaqToc);import{animate as animate17}from"vendor";var FeaturedCollectionsCarousel=class extends EffectCarousel{createOnChangeAnimationControls(fromSlide,toSlide){return{leaveControls:()=>animate17(fromSlide,{opacity:[1,0],transform:["translateY(0)","translateY(15px)"]},{duration:.3,easing:"ease-in"}),enterControls:()=>animate17(toSlide,{opacity:[0,1],transform:["translateY(15px)","translateY(0)"]},{duration:.2,delay:.2,easing:"ease-out"})}}};window.customElements.get("featured-collections-carousel")||window.customElements.define("featured-collections-carousel",FeaturedCollectionsCarousel);import{animate as animate18,timeline as timeline9,stagger as stagger3,Delegate as Delegate7}from"vendor";var _onScrollListener,_offset,_onScroll2,onScroll_fn2,_recalculateOffset,recalculateOffset_fn,Header=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onScroll2),__privateAdd(this,_recalculateOffset),__privateAdd(this,_onScrollListener,throttle(__privateMethod(this,_onScroll2,onScroll_fn2).bind(this))),__privateAdd(this,_offset,10)}connectedCallback(){window.CSS.supports("selector(:has(.foo))")&&document.querySelector(":has(.shopify-section:first-child [allow-transparent-header]):not(:has(.shopify-section--header + .shopify-section-group-header-group))")&&(window.addEventListener("scroll",__privateGet(this,_onScrollListener)),new ResizeObserver(__privateMethod(this,_recalculateOffset,recalculateOffset_fn).bind(this)).observe(this))}};_onScrollListener=new WeakMap,_offset=new WeakMap,_onScroll2=new WeakSet,onScroll_fn2=function(){this.classList.toggle("is-solid",window.scrollY>__privateGet(this,_offset))},_recalculateOffset=new WeakSet,recalculateOffset_fn=function(){const previousSibling=this.closest(".shopify-section").previousElementSibling;if(previousSibling.classList.contains("shopify-section--announcement-bar")){const computedStyles=getComputedStyle(document.documentElement);parseInt(computedStyles.getPropertyValue("--announcement-bar-is-sticky")||0)===1?__privateSet(this,_offset,10):__privateSet(this,_offset,previousSibling.clientHeight)}else __privateSet(this,_offset,10)};var DropdownMenuDisclosure=class extends MenuDisclosure{createShowAnimationControls(){return timeline9([[this.contentElement,{opacity:[0,1]},{duration:.25}],[this.contentElement.querySelectorAll(":scope > li"),{opacity:[0,1],transform:["translateY(8px)","translateY(0)"]},{duration:.15,at:"-0.15",delay:stagger3(.1)}]])}createHideAnimationControls(){return timeline9([[this.contentElement,{opacity:[1,0]},{duration:.4}]])}},MegaMenuDisclosure=class extends MenuDisclosure{createShowAnimationControls(){const linklists=Array.from(this.contentElement.querySelectorAll(".mega-menu__linklist > li"));return timeline9([[this.contentElement,{opacity:[0,1]},{duration:.25}],{name:"content",at:"-0.5"},[linklists,{opacity:[0,1],transform:["translateY(8px)","translateY(0)"]},{duration:.3,at:"content",delay:stagger3(.1)}],[this.contentElement.querySelector(".mega-menu__promo"),{opacity:[0,1]},{duration:.3,at:"-0.15"}]])}createHideAnimationControls(){return timeline9([[this.contentElement,{opacity:[1,0]},{duration:.4}]])}},_calculateMaxHeight,calculateMaxHeight_fn,HeaderSearch=class extends DialogElement{constructor(){super(),__privateAdd(this,_calculateMaxHeight),this.addEventListener("dialog:before-show",__privateMethod(this,_calculateMaxHeight,calculateMaxHeight_fn).bind(this))}get shadowDomTemplate(){return"header-search-default-template"}get shouldLock(){return!0}createEnterAnimationControls(){return timeline9([[this.getShadowPartByName("overlay"),{opacity:[0,1]},{duration:.2,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{opacity:[0,1],transform:["translateY(calc(-1 * var(--header-height)))","translateY(0)"]},{duration:.2,at:"<",easing:[.645,.045,.355,1]}]])}createLeaveAnimationControls(){return timeline9([[this.getShadowPartByName("overlay"),{opacity:[1,0]},{duration:.2,easing:[.645,.045,.355,1]}],[this.getShadowPartByName("content"),{opacity:[1,0],transform:["translateY(0)","translateY(calc(-1 * var(--header-height)))"]},{duration:.2,at:"<",easing:[.645,.045,.355,1]}]])}};_calculateMaxHeight=new WeakSet,calculateMaxHeight_fn=function(){const boundingRect=this.getBoundingClientRect(),maxHeight=window.innerHeight-boundingRect.top;this.style.setProperty("--header-search-max-height",`${maxHeight}px`)};var _collapsiblePanel,_buttonElements,_openCollapsiblePanel,openCollapsiblePanel_fn,_onSidebarBeforeShow,onSidebarBeforeShow_fn,_onSidebarAfterShow,onSidebarAfterShow_fn,_onSidebarBeforeHide,onSidebarBeforeHide_fn,_onSidebarAfterHide,onSidebarAfterHide_fn,HeaderSidebar=class extends Drawer{constructor(){super(),__privateAdd(this,_openCollapsiblePanel),__privateAdd(this,_onSidebarBeforeShow),__privateAdd(this,_onSidebarAfterShow),__privateAdd(this,_onSidebarBeforeHide),__privateAdd(this,_onSidebarAfterHide),__privateAdd(this,_collapsiblePanel,void 0),__privateAdd(this,_buttonElements,void 0),this.addEventListener("dialog:before-show",__privateMethod(this,_onSidebarBeforeShow,onSidebarBeforeShow_fn)),this.addEventListener("dialog:after-show",__privateMethod(this,_onSidebarAfterShow,onSidebarAfterShow_fn)),this.addEventListener("dialog:before-hide",__privateMethod(this,_onSidebarBeforeHide,onSidebarBeforeHide_fn)),this.addEventListener("dialog:after-hide",__privateMethod(this,_onSidebarAfterHide,onSidebarAfterHide_fn))}connectedCallback(){super.connectedCallback(),__privateSet(this,_collapsiblePanel,this.querySelector('[slot="collapsible-panel"]')),__privateSet(this,_buttonElements,Array.from(this.querySelectorAll(".header-sidebar__main-panel .header-sidebar__linklist [aria-controls]"))),__privateGet(this,_buttonElements).forEach(button=>button.addEventListener("click",__privateMethod(this,_openCollapsiblePanel,openCollapsiblePanel_fn).bind(this),{signal:this.abortController.signal}))}revealItems(withDelay=!1){return timeline9([[this.querySelector(".header-sidebar__main-panel"),{opacity:1,transform:"translateX(0)"},{duration:0,delay:withDelay?.5:0}],[this.querySelectorAll(".header-sidebar__main-panel .header-sidebar__linklist li"),{opacity:[0,1],transform:["translateY(8px)","translateY(0)"]},{duration:.15,at:"-0.15",delay:stagger3(.1)}],[this.querySelector(".header-sidebar__footer"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.3}]])}};_collapsiblePanel=new WeakMap,_buttonElements=new WeakMap,_openCollapsiblePanel=new WeakSet,openCollapsiblePanel_fn=function(event){__privateGet(this,_buttonElements).forEach(button=>button.setAttribute("aria-expanded",button===event.currentTarget?"true":"false")),__privateGet(this,_collapsiblePanel)?.setAttribute("aria-activedescendant",event.currentTarget.getAttribute("aria-controls")),matchesMediaQuery("md-max")&&animate18(this.querySelector(".header-sidebar__main-panel"),{opacity:[1,0],transform:["translateX(0)","translateX(-10px)"]},{duration:.25})},_onSidebarBeforeShow=new WeakSet,onSidebarBeforeShow_fn=function(){animate18(this.querySelector(".header-sidebar__main-panel"),{opacity:0,transform:"translateX(0)"},{duration:0})},_onSidebarAfterShow=new WeakSet,onSidebarAfterShow_fn=function(){this.revealItems()},_onSidebarBeforeHide=new WeakSet,onSidebarBeforeHide_fn=function(){matchesMediaQuery("md")&&(__privateGet(this,_collapsiblePanel)?.removeAttribute("aria-activedescendant"),__privateGet(this,_buttonElements).forEach(button=>button.setAttribute("aria-expanded","false")))},_onSidebarAfterHide=new WeakSet,onSidebarAfterHide_fn=function(){matchesMediaQuery("md-max")&&(__privateGet(this,_collapsiblePanel)?.removeAttribute("aria-activedescendant"),__privateGet(this,_buttonElements).forEach(button=>button.setAttribute("aria-expanded","false"))),Array.from(this.querySelectorAll("details")).forEach(detail=>detail.open=!1)};var _sidebarDelegate,_closePanel,closePanel_fn,_switchPanel,switchPanel_fn,HeaderSidebarCollapsiblePanel=class extends DialogElement{constructor(){super(),__privateAdd(this,_closePanel),__privateAdd(this,_switchPanel),__privateAdd(this,_sidebarDelegate,new Delegate7(this)),__privateGet(this,_sidebarDelegate).on("click",'[data-action="close-panel"]',__privateMethod(this,_closePanel,closePanel_fn).bind(this))}static get observedAttributes(){return[...super.observedAttributes,"aria-activedescendant"]}hideForOutsideClickTarget(target){return!1}allowOutsideClickForTarget(target){return target.closest(".header-sidebar")!==void 0}createEnterAnimationControls(){return matchesMediaQuery("md-max")?timeline9([[this,{opacity:[0,1],transform:"translateX(0)"},{duration:.3}]]):timeline9([[this,{opacity:[0,1],transform:["translateX(0)","translateX(calc(var(--transform-logical-flip) * 100%)"]},{duration:.3}]])}createLeaveAnimationControls(){return matchesMediaQuery("md-max")?timeline9([[this,{opacity:[1,0],transform:["translateX(0)","translateX(10px)"]},{duration:.3}]]):timeline9([[this,{opacity:[1,0],transform:["translateX(calc(var(--transform-logical-flip) * 100%))","translateX(0)"]},{duration:.3}]])}async attributeChangedCallback(name,oldValue,newValue){if(super.attributeChangedCallback(name,oldValue,newValue),name==="aria-activedescendant"){if(oldValue===newValue)return;newValue!==null?__privateMethod(this,_switchPanel,switchPanel_fn).call(this,this.querySelector(`#${oldValue}`),this.querySelector(`#${newValue}`)):(await this.hide(),Array.from(this.querySelectorAll(".header-sidebar__sub-panel")).forEach(subPanel=>subPanel.hidden=!0))}}};_sidebarDelegate=new WeakMap,_closePanel=new WeakSet,closePanel_fn=function(){this.removeAttribute("aria-activedescendant"),this.closest("header-sidebar").revealItems(!0)},_switchPanel=new WeakSet,switchPanel_fn=async function(fromPanel,toPanel){this.open||await this.show(),fromPanel&&(await animate18(fromPanel,{opacity:[1,0]},{duration:.15}).finished,fromPanel.hidden=!0,Array.from(fromPanel.querySelectorAll("details")).forEach(detail=>detail.open=!1)),toPanel.hidden=!1;const listSelector=matchesMediaQuery("md-max")?".header-sidebar__back-button, .header-sidebar__linklist li":".header-sidebar__linklist li";timeline9([[toPanel,{opacity:1},{duration:0}],[toPanel.querySelectorAll(listSelector),{opacity:[0,1],transform:["translateY(8px)","translateY(0)"]},{duration:.15,at:"-0.15",delay:stagger3(.1)}],[toPanel.querySelector(".header-sidebar__promo"),{opacity:[0,1]},{duration:.45}]])},window.customElements.get("x-header")||window.customElements.define("x-header",Header),window.customElements.get("dropdown-menu-disclosure")||window.customElements.define("dropdown-menu-disclosure",DropdownMenuDisclosure,{extends:"details"}),window.customElements.get("mega-menu-disclosure")||window.customElements.define("mega-menu-disclosure",MegaMenuDisclosure,{extends:"details"}),window.customElements.get("header-search")||window.customElements.define("header-search",HeaderSearch),window.customElements.get("header-sidebar")||window.customElements.define("header-sidebar",HeaderSidebar),window.customElements.get("header-sidebar-collapsible-panel")||window.customElements.define("header-sidebar-collapsible-panel",HeaderSidebarCollapsiblePanel);import{animate as animate19,inView as inView12}from"vendor";var _onBecameVisible,onBecameVisible_fn,ImageWithText=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onBecameVisible)}connectedCallback(){matchesMediaQuery("motion-safe")&&inView12(this.querySelector('[reveal-on-scroll="true"]'),({target})=>__privateMethod(this,_onBecameVisible,onBecameVisible_fn).call(this,target),{margin:"-200px 0px 0px 0px"})}};_onBecameVisible=new WeakSet,onBecameVisible_fn=async function(target){await imageLoaded(target);const fromValue=(window.direction==="rtl"?-1:1)*(matchesMediaQuery("md-max")?.6:1)*(this.classList.contains("image-with-text--reverse")?25:-25);animate19(target,{opacity:1,transform:[`translateX(${fromValue}px)`,"translateX(0)"]},{easing:[.215,.61,.355,1]},{duration:.8})},window.customElements.get("image-with-text")||window.customElements.define("image-with-text",ImageWithText);import{timeline as timeline10,inView as inView13}from"vendor";var _preventInitialTransition2,_onBecameVisible2,onBecameVisible_fn2,ImageWithTextOverlay=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onBecameVisible2),__privateAdd(this,_preventInitialTransition2,!1),Shopify.designMode&&this.closest(".shopify-section").addEventListener("shopify:section:select",event=>__privateSet(this,_preventInitialTransition2,event.detail.load))}connectedCallback(){matchesMediaQuery("motion-safe")&&this.getAttribute("reveal-on-scroll")==="true"&&inView13(this,({target})=>__privateMethod(this,_onBecameVisible2,onBecameVisible_fn2).call(this,target),{amount:.05})}};_preventInitialTransition2=new WeakMap,_onBecameVisible2=new WeakSet,onBecameVisible_fn2=async function(target){const media=target.querySelector(".content-over-media > picture img, .content-over-media > svg"),content=target.querySelector(".content-over-media > :not(picture, svg)");await imageLoaded(media);const animationControls=timeline10([[target,{opacity:1}],[media,{opacity:[0,1],scale:[1.1,1],easing:[.215,.61,.355,1],duration:.8}],[content,{opacity:[0,1],duration:.8}]]);__privateGet(this,_preventInitialTransition2)&&animationControls.finish()},window.customElements.get("image-with-text-overlay")||window.customElements.define("image-with-text-overlay",ImageWithTextOverlay);import{timeline as timeline11,animate as animate20,inView as inView14,scroll as scroll2,ScrollOffset}from"vendor";var _itemElements,_imageElements,_textElements,_visibleImageElement,_setupScrollObservers,setupScrollObservers_fn,_onBreakpointChanged,onBreakpointChanged_fn,ImagesWithTextScroll=class extends EffectCarousel{constructor(){super(...arguments),__privateAdd(this,_setupScrollObservers),__privateAdd(this,_onBreakpointChanged),__privateAdd(this,_itemElements,void 0),__privateAdd(this,_imageElements,void 0),__privateAdd(this,_textElements,void 0),__privateAdd(this,_visibleImageElement,void 0)}connectedCallback(){super.connectedCallback(),__privateSet(this,_itemElements,Array.from(this.querySelectorAll(".images-with-text-scroll__item"))),__privateSet(this,_imageElements,Array.from(this.querySelectorAll(".images-with-text-scroll__image"))),__privateSet(this,_textElements,Array.from(this.querySelectorAll(".images-with-text-scroll__text"))),__privateSet(this,_visibleImageElement,__privateGet(this,_imageElements)[0]),inView14(this,()=>{__privateGet(this,_imageElements).forEach(imageElement=>imageElement.setAttribute("loading","eager"))}),matchesMediaQuery("md")&&__privateMethod(this,_setupScrollObservers,setupScrollObservers_fn).call(this),mediaQueryListener("md",__privateMethod(this,_onBreakpointChanged,onBreakpointChanged_fn).bind(this))}get cellSelector(){return".images-with-text-scroll__item"}get allowSwipe(){return matchesMediaQuery("md-max")}createOnChangeAnimationControls(fromSlide,toSlide,{direction}={}){let imageAnimationSequence=[],toSlideImage=toSlide.querySelector(".images-with-text-scroll__image");return toSlideImage&&toSlideImage!==__privateGet(this,_visibleImageElement)&&(imageAnimationSequence.push([__privateGet(this,_visibleImageElement),{opacity:[1,0]},{duration:.8,delay:.4}],[toSlideImage,{opacity:[0,1]},{duration:.8,at:"<",delay:.4}]),__privateSet(this,_visibleImageElement,toSlideImage)),timeline11([...imageAnimationSequence,[fromSlide.querySelector(".images-with-text-scroll__text"),{opacity:[1,0],transform:["translateY(0)","translateY(-15px)"]},{duration:.4,at:"<",easing:[.55,.055,.675,.19]}],[toSlide.querySelector(".images-with-text-scroll__text"),{opacity:[0,1],transform:["translateY(15px)","translateY(0)"]},{duration:.4,at:"+0.4",easing:[.25,.46,.45,.94]}]])}};_itemElements=new WeakMap,_imageElements=new WeakMap,_textElements=new WeakMap,_visibleImageElement=new WeakMap,_setupScrollObservers=new WeakSet,setupScrollObservers_fn=function(){__privateGet(this,_textElements).forEach(textElement=>{scroll2(animate20(textElement,{opacity:[0,.25,1,.25,0]}),{target:textElement,offset:ScrollOffset.Any})}),scroll2(info=>{const index=Math.min(Math.floor(info.y.progress/(1/__privateGet(this,_itemElements).length)),__privateGet(this,_itemElements).length-1),toImage=__privateGet(this,_itemElements)[index].querySelector(".images-with-text-scroll__image");toImage&&toImage!==__privateGet(this,_visibleImageElement)&&(timeline11([[__privateGet(this,_visibleImageElement),{opacity:[1,0]},{duration:.25}],[toImage,{opacity:[0,1]},{duration:.25,at:"<"}]]),__privateSet(this,_visibleImageElement,toImage))},{target:this,offset:["start center","end center"]})},_onBreakpointChanged=new WeakSet,onBreakpointChanged_fn=function(event){event.matches?(__privateGet(this,_imageElements).forEach(image=>image.style=null),__privateGet(this,_textElements).forEach(text=>text.style=null),__privateMethod(this,_setupScrollObservers,setupScrollObservers_fn).call(this)):this.getAnimations({subtree:!0}).forEach(animation=>animation.cancel())},window.customElements.get("images-with-text-scroll")||window.customElements.define("images-with-text-scroll",ImagesWithTextScroll);import{scroll as scroll3}from"vendor";var ArticleToolbar=class extends HTMLElement{connectedCallback(){window.matchMedia("(prefers-reduced-motion: no-preference)").matches&&scroll3(info=>{this.classList.toggle("is-visible",info.y.progress>0&&info.y.progress<1)},{target:this.closest(".shopify-section"),offset:["100px start","end start"]})}};window.customElements.get("article-toolbar")||window.customElements.define("article-toolbar",ArticleToolbar);import{animate as animate21,inView as inView15}from"vendor";var _onReveal,onReveal_fn,MediaGrid=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onReveal)}connectedCallback(){matchesMediaQuery("motion-safe")&&inView15(this.querySelectorAll('[reveal-on-scroll="true"]'),__privateMethod(this,_onReveal,onReveal_fn).bind(this),{margin:"-200px 0px 0px 0px"})}};_onReveal=new WeakSet,onReveal_fn=async function(entry){await imageLoaded(entry.target.querySelector(":scope > img")),animate21(entry.target,{opacity:[0,1]},{duration:.35,easing:"ease"})},window.customElements.get("media-grid")||window.customElements.define("media-grid",MediaGrid);var MultiColumn=class extends HTMLElement{constructor(){super(),Shopify.designMode&&this.addEventListener("shopify:block:select",event=>{event.target.scrollIntoView({inline:"center",block:"nearest",behavior:event.detail.load?"auto":"smooth"})})}};window.customElements.get("multi-column")||window.customElements.define("multi-column",MultiColumn);import{timeline as timeline12,inView as inView16}from"vendor";var _preventInitialTransition3,_onBecameVisible3,onBecameVisible_fn3,MultipleMediaWithText=class extends HTMLElement{constructor(){super(),__privateAdd(this,_onBecameVisible3),__privateAdd(this,_preventInitialTransition3,!1),Shopify.designMode&&this.closest(".shopify-section").addEventListener("shopify:section:select",event=>__privateSet(this,_preventInitialTransition3,event.detail.load))}connectedCallback(){matchesMediaQuery("motion-safe")&&this.hasAttribute("reveal-on-scroll")&&inView16(this,__privateMethod(this,_onBecameVisible3,onBecameVisible_fn3).bind(this),{margin:"-10% 0px"})}};_preventInitialTransition3=new WeakMap,_onBecameVisible3=new WeakSet,onBecameVisible_fn3=function(){const timelineSequence=timeline12([[this,{opacity:1},{duration:0}],"media",...Array.from(this.querySelectorAll(".multiple-media-with-text__media-wrapper > *"),media=>[media,{opacity:[0,1],transform:["rotate(0deg)",`rotate(${media.style.getPropertyValue("--media-rotate")})`]},{duration:.5,at:"media"}]),[this.querySelector(".multiple-media-with-text__content-wrapper"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.5}]]);__privateGet(this,_preventInitialTransition3)&&timelineSequence.finish()},window.customElements.get("multiple-media-with-text")||window.customElements.define("multiple-media-with-text",MultipleMediaWithText);var NewsletterPopup=class extends PopIn{connectedCallback(){super.connectedCallback(),this.shouldAppearAutomatically&&setTimeout(()=>this.show(),this.apparitionDelay)}get apparitionDelay(){return parseInt(this.getAttribute("apparition-delay")||0)*1e3}get shouldAppearAutomatically(){return!(localStorage.getItem("theme:popup-filled")==="true"||this.hasAttribute("only-once")&&localStorage.getItem("theme:popup-appeared")==="true")}attributeChangedCallback(name,oldValue,newValue){super.attributeChangedCallback(name,oldValue,newValue),name==="open"&&this.open&&localStorage.setItem("theme:popup-appeared","true")}};window.customElements.get("newsletter-popup")||window.customElements.define("newsletter-popup",NewsletterPopup);import{Delegate as Delegate8}from"vendor";var _delegate6,_onConsentLibraryLoaded,onConsentLibraryLoaded_fn,_acceptPolicy,acceptPolicy_fn,_declinePolicy,declinePolicy_fn,PrivacyBanner=class extends PopIn{constructor(){super(),__privateAdd(this,_onConsentLibraryLoaded),__privateAdd(this,_acceptPolicy),__privateAdd(this,_declinePolicy),__privateAdd(this,_delegate6,new Delegate8(this)),window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1",onLoad:__privateMethod(this,_onConsentLibraryLoaded,onConsentLibraryLoaded_fn).bind(this)}])}connectedCallback(){super.connectedCallback(),__privateGet(this,_delegate6).on("click",'[data-action="accept"]',__privateMethod(this,_acceptPolicy,acceptPolicy_fn).bind(this)),__privateGet(this,_delegate6).on("click",'[data-action="decline"]',__privateMethod(this,_declinePolicy,declinePolicy_fn).bind(this))}disconnectedCallback(){__privateGet(this,_delegate6).off()}};_delegate6=new WeakMap,_onConsentLibraryLoaded=new WeakSet,onConsentLibraryLoaded_fn=function(){window.Shopify.customerPrivacy?.shouldShowBanner()&&this.show()},_acceptPolicy=new WeakSet,acceptPolicy_fn=function(){window.Shopify.customerPrivacy?.setTrackingConsent(!0,this.hide.bind(this))},_declinePolicy=new WeakSet,declinePolicy_fn=function(){window.Shopify.customerPrivacy?.setTrackingConsent(!1,this.hide.bind(this))},window.customElements.get("privacy-banner")||window.customElements.define("privacy-banner",PrivacyBanner);var _intersectionObserver2,_formElement,_footerElement,_latestFooterCondition,_latestFormCondition,_onFormVisibilityChange,onFormVisibilityChange_fn,ProductStickyBar=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_onFormVisibilityChange),__privateAdd(this,_intersectionObserver2,new IntersectionObserver(__privateMethod(this,_onFormVisibilityChange,onFormVisibilityChange_fn).bind(this))),__privateAdd(this,_formElement,void 0),__privateAdd(this,_footerElement,void 0),__privateAdd(this,_latestFooterCondition,!1),__privateAdd(this,_latestFormCondition,!1)}connectedCallback(){__privateSet(this,_formElement,document.forms[this.getAttribute("form")]),__privateSet(this,_footerElement,document.querySelector(".shopify-section--footer")),__privateGet(this,_formElement)&&(__privateGet(this,_intersectionObserver2).observe(__privateGet(this,_formElement)),__privateGet(this,_intersectionObserver2).observe(__privateGet(this,_footerElement)))}};_intersectionObserver2=new WeakMap,_formElement=new WeakMap,_footerElement=new WeakMap,_latestFooterCondition=new WeakMap,_latestFormCondition=new WeakMap,_onFormVisibilityChange=new WeakSet,onFormVisibilityChange_fn=function(entries){const[formEntry,footerEntry]=[entries.find(entry=>entry.target===__privateGet(this,_formElement)),entries.find(entry=>entry.target===__privateGet(this,_footerElement))];formEntry&&__privateSet(this,_latestFormCondition,!formEntry.isIntersecting&&formEntry.boundingClientRect.bottom<0),footerEntry&&__privateSet(this,_latestFooterCondition,!footerEntry.isIntersecting),this.classList.toggle("is-visible",__privateGet(this,_latestFooterCondition)&&__privateGet(this,_latestFormCondition))},window.customElements.get("product-sticky-bar")||window.customElements.define("product-sticky-bar",ProductStickyBar);var _isLoaded,_loadRecommendations,loadRecommendations_fn,ProductRecommendations=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_loadRecommendations),__privateAdd(this,_isLoaded,!1)}connectedCallback(){__privateMethod(this,_loadRecommendations,loadRecommendations_fn).call(this)}};_isLoaded=new WeakMap,_loadRecommendations=new WeakSet,loadRecommendations_fn=async function(){if(__privateGet(this,_isLoaded))return;__privateSet(this,_isLoaded,!0);const section=this.closest(".shopify-section"),intent=this.getAttribute("intent")||"related",url=`${Shopify.routes.root}recommendations/products?product_id=${this.getAttribute("product")}&limit=${this.getAttribute("limit")||4}§ion_id=${extractSectionId(section)}&intent=${intent}`,response=await fetch(url,{priority:intent==="related"?"low":"auto"}),tempDiv=new DOMParser().parseFromString(await response.text(),"text/html"),productRecommendationsElement=tempDiv.querySelector("product-recommendations");productRecommendationsElement.childElementCount>0?(this.replaceChildren(...document.importNode(productRecommendationsElement,!0).childNodes),this.hidden=!1):this.remove()},window.customElements.get("product-recommendations")||window.customElements.define("product-recommendations",ProductRecommendations);var _isLoaded2,_searchQueryString,searchQueryString_get,_loadProducts,loadProducts_fn,RecentlyViewedProducts=class extends HTMLElement{constructor(){super(...arguments),__privateAdd(this,_searchQueryString),__privateAdd(this,_loadProducts),__privateAdd(this,_isLoaded2,!1)}connectedCallback(){__privateMethod(this,_loadProducts,loadProducts_fn).call(this)}};_isLoaded2=new WeakMap,_searchQueryString=new WeakSet,searchQueryString_get=function(){const items=new Set(JSON.parse(localStorage.getItem("theme:recently-viewed-products")||"[]"));return this.hasAttribute("exclude-id")&&items.delete(parseInt(this.getAttribute("exclude-id"))),Array.from(items.values(),item=>`id:${item}`).slice(0,parseInt(this.getAttribute("products-count"))).join(" OR ")},_loadProducts=new WeakSet,loadProducts_fn=async function(){if(__privateGet(this,_isLoaded2))return;__privateSet(this,_isLoaded2,!0);const section=this.closest(".shopify-section"),url=`${Shopify.routes.root}search?type=product&q=${__privateGet(this,_searchQueryString,searchQueryString_get)}§ion_id=${extractSectionId(section)}`,response=await fetch(url,{priority:"low"}),tempDiv=new DOMParser().parseFromString(await response.text(),"text/html"),recentlyViewedProductsElement=tempDiv.querySelector("recently-viewed-products");recentlyViewedProductsElement.childElementCount>0?this.replaceChildren(...document.importNode(recentlyViewedProductsElement,!0).childNodes):section.remove()},window.customElements.get("recently-viewed-products")||window.customElements.define("recently-viewed-products",RecentlyViewedProducts);import{animate as animate22,timeline as timeline13}from"vendor";var _controlledPopover,_selectedHotSpot,_setInitialPosition,setInitialPosition_fn,_onSpotSelected,onSpotSelected_fn,_onUpdateHotSpotPosition,onUpdateHotSpotPosition_fn,_onLookChanged,onLookChanged_fn,_changeLookFocalPoint,changeLookFocalPoint_fn,_restorePosition,restorePosition_fn,ShopTheLookMobileCarousel=class extends ScrollCarousel{constructor(){super(),__privateAdd(this,_setInitialPosition),__privateAdd(this,_onSpotSelected),__privateAdd(this,_onUpdateHotSpotPosition),__privateAdd(this,_onLookChanged),__privateAdd(this,_changeLookFocalPoint),__privateAdd(this,_restorePosition),__privateAdd(this,_controlledPopover,void 0),__privateAdd(this,_selectedHotSpot,void 0),this.addEventListener("carousel:change",__privateMethod(this,_onLookChanged,onLookChanged_fn)),Array.from(this.querySelectorAll(".shop-the-look__hot-spot-list")).forEach(list=>{list.carousel.addEventListener("carousel:select",__privateMethod(this,_onSpotSelected,onSpotSelected_fn).bind(this)),list.carousel.addEventListener("carousel:change",()=>__privateMethod(this,_onUpdateHotSpotPosition,onUpdateHotSpotPosition_fn).call(this,list))}),Array.from(this.querySelectorAll(".shop-the-look__popover")).forEach(popover=>{popover.addEventListener("dialog:before-show",__privateMethod(this,_changeLookFocalPoint,changeLookFocalPoint_fn).bind(this)),popover.addEventListener("dialog:before-hide",__privateMethod(this,_restorePosition,restorePosition_fn).bind(this))})}connectedCallback(){super.connectedCallback(),__privateMethod(this,_setInitialPosition,setInitialPosition_fn).call(this)}get isExpanded(){return this.classList.contains("is-expanded")}};_controlledPopover=new WeakMap,_selectedHotSpot=new WeakMap,_setInitialPosition=new WeakSet,setInitialPosition_fn=function(){__privateSet(this,_selectedHotSpot,this.selectedCell.querySelector('.shop-the-look__hot-spot[aria-current="true"]')),__privateMethod(this,_onLookChanged,onLookChanged_fn).call(this)},_onSpotSelected=new WeakSet,onSpotSelected_fn=function(){this.isExpanded||document.getElementById(this.selectedCell.getAttribute("data-popover-id")).show()},_onUpdateHotSpotPosition=new WeakSet,onUpdateHotSpotPosition_fn=function(list){__privateSet(this,_selectedHotSpot,list.querySelector('.shop-the-look__hot-spot[aria-current="true"]')),this.isExpanded&&__privateMethod(this,_changeLookFocalPoint,changeLookFocalPoint_fn).call(this)},_onLookChanged=new WeakSet,onLookChanged_fn=function(){const popoverId=this.selectedCell.getAttribute("data-popover-id");__privateSet(this,_controlledPopover,document.getElementById(popoverId)),this.nextElementSibling.setAttribute("aria-controls",popoverId)},_changeLookFocalPoint=new WeakSet,changeLookFocalPoint_fn=function(){const scale=window.innerWidth/this.selectedCell.clientWidth,remainingSpace=window.innerHeight-__privateGet(this,_controlledPopover).shadowRoot.querySelector('[part="base"]').clientHeight,imageHeightAfterScale=Math.round(this.selectedCell.querySelector(".shop-the-look__image-wrapper").clientHeight*scale),outsideViewportImageHeight=Math.max(imageHeightAfterScale-remainingSpace,0),insideViewportImageHeight=imageHeightAfterScale-outsideViewportImageHeight,hotSpotFocalPoint=Math.round((__privateGet(this,_selectedHotSpot).offsetTop+__privateGet(this,_selectedHotSpot).clientHeight/2)*scale),offsetToMove=Math.round(hotSpotFocalPoint-insideViewportImageHeight/2),minTranslateY=Math.round(-(this.parentElement.getBoundingClientRect().top-(imageHeightAfterScale-this.selectedCell.offsetHeight)/2)),maxTranslateY=Math.round(minTranslateY-outsideViewportImageHeight),translateY=Math.min(Math.max(minTranslateY-offsetToMove,maxTranslateY),minTranslateY);this.isExpanded?animate22(this,{transform:`translateY(${translateY}px) scale(${scale})`},{duration:.4,easing:"ease-in-out"}):(animate22(this,{transform:["translateY(0) scale(1)",`translateY(${translateY}px) scale(${scale})`]},{duration:.4,easing:[.645,.045,.355,1]}),document.documentElement.style.setProperty("--hide-header-group","1")),this.classList.add("is-expanded")},_restorePosition=new WeakSet,restorePosition_fn=function(){animate22(this,{transform:"translateY(0) scale(1)"},{duration:.4,easing:[.645,.045,.355,1]}).finished.then(()=>{this.style.transform=null}),this.classList.remove("is-expanded"),document.documentElement.style.removeProperty("--hide-header-group")};var _updateButtonLink,updateButtonLink_fn,ShopTheLookProductListCarousel=class extends EffectCarousel{constructor(){super(),__privateAdd(this,_updateButtonLink),this.addEventListener("carousel:change",__privateMethod(this,_updateButtonLink,updateButtonLink_fn).bind(this))}};_updateButtonLink=new WeakSet,updateButtonLink_fn=function(event){const productCard=event.detail.cell.querySelector(".product-card");productCard.hasAttribute("handle")&&(this.nextElementSibling.href=`${Shopify.routes.root}products/${productCard.getAttribute("handle")}`)};var ShopTheLookDesktopCarousel=class extends EffectCarousel{createOnBecameVisibleAnimationControls(toSlide){return animate22(toSlide.querySelectorAll(".shop-the-look__item-content"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.5})}createOnChangeAnimationControls(fromSlide,toSlide){return timeline13([[fromSlide.querySelectorAll(".shop-the-look__item-content"),{opacity:[1,0]},{duration:.3}],[fromSlide.querySelectorAll(".shop-the-look__image-wrapper > *"),{opacity:[1,0],transform:["translateX(0)","translateX(-15px)"]},{duration:.5,at:"<",easing:[.645,.045,.355,1]}],[toSlide.querySelectorAll(".shop-the-look__image-wrapper > *"),{opacity:[0,1],transform:["translateX(-15px)","translateX(0)"]},{duration:.5,at:"<"}],[toSlide.querySelectorAll(".shop-the-look__item-content"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.5,at:"-0.1"}]])}},ShopTheLookPopover=class extends Popover{hideForOutsideClickTarget(target){return!1}allowOutsideClickForTarget(target){return target.classList.contains("shop-the-look__hot-spot")}};window.customElements.get("shop-the-look-mobile-carousel")||window.customElements.define("shop-the-look-mobile-carousel",ShopTheLookMobileCarousel),window.customElements.get("shop-the-look-product-list-carousel")||window.customElements.define("shop-the-look-product-list-carousel",ShopTheLookProductListCarousel),window.customElements.get("shop-the-look-desktop-carousel")||window.customElements.define("shop-the-look-desktop-carousel",ShopTheLookDesktopCarousel),window.customElements.get("shop-the-look-popover")||window.customElements.define("shop-the-look-popover",ShopTheLookPopover);import{timeline as timeline14,Delegate as Delegate9}from"vendor";var _delegate7,_onVideoEndedListener,_autoplayPauseOnVideo,autoplayPauseOnVideo_get,_getSlideEnteringSequence,getSlideEnteringSequence_fn,_getSlideLeavingSequence,getSlideLeavingSequence_fn,_muteVideo,muteVideo_fn,_unmuteVideo,unmuteVideo_fn,_onVolumeChange,onVolumeChange_fn,_onSlideSettle,onSlideSettle_fn,_onVideoEnded,onVideoEnded_fn,_onNextButtonClicked,onNextButtonClicked_fn,_handleAutoplayProgress,handleAutoplayProgress_fn,SlideshowCarousel=class extends EffectCarousel{constructor(){super(),__privateAdd(this,_autoplayPauseOnVideo),__privateAdd(this,_getSlideEnteringSequence),__privateAdd(this,_getSlideLeavingSequence),__privateAdd(this,_muteVideo),__privateAdd(this,_unmuteVideo),__privateAdd(this,_onVolumeChange),__privateAdd(this,_onSlideSettle),__privateAdd(this,_onVideoEnded),__privateAdd(this,_onNextButtonClicked),__privateAdd(this,_handleAutoplayProgress),__privateAdd(this,_delegate7,new Delegate9(this)),__privateAdd(this,_onVideoEndedListener,__privateMethod(this,_onVideoEnded,onVideoEnded_fn).bind(this)),__privateGet(this,_delegate7).on("click",'[data-action="navigate-next"]',__privateMethod(this,_onNextButtonClicked,onNextButtonClicked_fn).bind(this)),__privateGet(this,_delegate7).on("click",'[data-action="unmute"]',__privateMethod(this,_unmuteVideo,unmuteVideo_fn).bind(this)),__privateGet(this,_delegate7).on("click",'[data-action="mute"]',__privateMethod(this,_muteVideo,muteVideo_fn).bind(this)),this.addEventListener("volumechange",__privateMethod(this,_onVolumeChange,onVolumeChange_fn),{capture:!0}),this.addEventListener("carousel:settle",__privateMethod(this,_onSlideSettle,onSlideSettle_fn)),this.hasAttribute("autoplay")&&this.player&&(this.player.addEventListener("player:start",__privateMethod(this,_handleAutoplayProgress,handleAutoplayProgress_fn).bind(this)),this.player.addEventListener("player:stop",__privateMethod(this,_handleAutoplayProgress,handleAutoplayProgress_fn).bind(this)),this.player.addEventListener("player:visibility-pause",__privateMethod(this,_handleAutoplayProgress,handleAutoplayProgress_fn).bind(this)),this.player.addEventListener("player:visibility-resume",__privateMethod(this,_handleAutoplayProgress,handleAutoplayProgress_fn).bind(this)))}disconnectedCallback(){__privateGet(this,_delegate7).destroy()}async createOnBecameVisibleAnimationControls(toSlide){return toSlide.getAttribute("media-type")==="image"?await imageLoaded(toSlide.querySelectorAll("img")):await videoLoaded(toSlide.querySelectorAll("video")),timeline14([...__privateMethod(this,_getSlideEnteringSequence,getSlideEnteringSequence_fn).call(this,toSlide)])}createOnChangeAnimationControls(fromSlide,toSlide,{direction}={}){const fromVideo=Array.from(fromSlide.querySelectorAll("video")),toVideo=Array.from(toSlide.querySelectorAll("video")).filter(video=>video.offsetParent);return fromSlide.removeEventListener("ended",__privateGet(this,_onVideoEndedListener),{capture:!0}),fromVideo.forEach(video=>{video.muted=!0,video.pause()}),toVideo.forEach(video=>{video.muted=!0,video.currentTime=0,video.play()}),{leaveControls:()=>timeline14(__privateMethod(this,_getSlideLeavingSequence,getSlideLeavingSequence_fn).call(this,fromSlide)),enterControls:()=>timeline14(__privateMethod(this,_getSlideEnteringSequence,getSlideEnteringSequence_fn).call(this,toSlide))}}};_delegate7=new WeakMap,_onVideoEndedListener=new WeakMap,_autoplayPauseOnVideo=new WeakSet,autoplayPauseOnVideo_get=function(){return this.hasAttribute("autoplay-pause-on-video")},_getSlideEnteringSequence=new WeakSet,getSlideEnteringSequence_fn=function(slide){const slideContent=slide.querySelector(".slideshow__slide-content");return slideContent.classList.contains("slideshow__slide-content--boxed")?[[slide,{opacity:[0,1]},{duration:.8,easing:[.25,.46,.45,.94]}],[slide.querySelectorAll(".content-over-media > :is(video-media, svg), .content-over-media > picture img"),{opacity:[0,1],transform:["scale(1.2)","scale(1)"]},{duration:.8,at:"<",easing:[.25,.46,.45,.94]}],[slideContent,{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.6,at:"-0.4",easing:[.215,.61,.355,1]}]]:[[slide,{opacity:[0,1]},{duration:.8,easing:[.25,.46,.45,.94]}],[slide.querySelectorAll(".content-over-media > :is(video-media, svg), .content-over-media > picture img"),{opacity:[0,1],transform:["scale(1.2)","scale(1)"]},{duration:.8,at:"<",easing:[.25,.46,.45,.94]}],[slideContent.querySelector(".prose"),{opacity:[0,1],transform:["translateY(30px)","translateY(0)"]},{duration:.6,at:"-0.4",easing:[.215,.61,.355,1]}],[slideContent.querySelector(".button-group"),{opacity:[0,1],transform:["translateY(20px)","translateY(0)"]},{duration:.6,at:"-0.4",easing:[.215,.61,.355,1]}]]},_getSlideLeavingSequence=new WeakSet,getSlideLeavingSequence_fn=function(slide){const slideContent=slide.querySelector(".slideshow__slide-content");return slideContent.classList.contains("slideshow__slide-content--boxed")?[[slideContent,{opacity:[1,0],transform:["translateY(0)","translateY(20px)"]},{duration:.25,at:"leaving",easing:[.55,.055,.675,.19]}],[slide.querySelectorAll(".content-over-media > :is(video-media, svg), .content-over-media > picture img"),{opacity:[1,0]},{duration:.2,at:"-0.1",easing:[.55,.055,.675,.19]}]]:[[slideContent.querySelector(".prose"),{opacity:[1,0],transform:["translateY(0)","translateY(10px)"]},{duration:.25,at:"leaving",easing:[.55,.055,.675,.19]}],[slideContent.querySelector(".button-group"),{opacity:[1,0],transform:["translateY(0)","translateY(20px)"]},{duration:.25,at:"<",easing:[.55,.055,.675,.19]}],[slide.querySelectorAll(".content-over-media > :is(video-media, svg), .content-over-media > picture img"),{opacity:[1,0]},{duration:.2,at:"-0.1",easing:[.55,.055,.675,.19]}]]},_muteVideo=new WeakSet,muteVideo_fn=function(event){event.preventDefault(),Array.from(this.selectedCell.querySelectorAll("video")).filter(video=>video.offsetParent).forEach(video=>video.muted=!0)},_unmuteVideo=new WeakSet,unmuteVideo_fn=function(event){event.preventDefault(),Array.from(this.selectedCell.querySelectorAll("video")).filter(video=>video.offsetParent).forEach(video=>video.muted=!1)},_onVolumeChange=new WeakSet,onVolumeChange_fn=function(event){const volumeControl=event.target.closest(".slideshow__slide").querySelector(".slideshow__volume-control");volumeControl&&(volumeControl.querySelector('[data-action="unmute"]').hidden=!event.target.muted,volumeControl.querySelector('[data-action="mute"]').hidden=event.target.muted)},_onSlideSettle=new WeakSet,onSlideSettle_fn=function(event){const videoList=Array.from(event.detail.cell.querySelectorAll("video"));__privateGet(this,_autoplayPauseOnVideo,autoplayPauseOnVideo_get)&&this.cells.length>1&&videoList.length>0&&(this.player?.pause(),videoList.forEach(video=>video.loop=!1),event.detail.cell.addEventListener("ended",__privateGet(this,_onVideoEndedListener),{capture:!0,once:!0}))},_onVideoEnded=new WeakSet,onVideoEnded_fn=function(){this.next()},_onNextButtonClicked=new WeakSet,onNextButtonClicked_fn=function(){this.closest(".shopify-section").nextElementSibling?.scrollIntoView({block:"start",behavior:"smooth"})},_handleAutoplayProgress=new WeakSet,handleAutoplayProgress_fn=function(event){switch(event.type){case"player:start":let autoplayDuration=this.getAttribute("autoplay");if(__privateGet(this,_autoplayPauseOnVideo,autoplayPauseOnVideo_get)&&this.selectedCell.getAttribute("media-type")==="video"){const video=Array.from(this.selectedCell.querySelectorAll("video")).filter(video2=>video2.offsetParent).pop();video&&(autoplayDuration=video.duration)}this.style.setProperty("--slideshow-progress-duration",`${autoplayDuration}s`),this.style.setProperty("--slideshow-progress-play-state","running");break;case"player:stop":this.style.setProperty("--slideshow-progress-duration","0s"),this.style.setProperty("--slideshow-progress-play-state","paused");break;case"player:visibility-pause":this.style.setProperty("--slideshow-progress-play-state","paused");break;case"player:visibility-resume":this.style.setProperty("--slideshow-progress-play-state","running");break}},window.customElements.get("slideshow-carousel")||window.customElements.define("slideshow-carousel",SlideshowCarousel);import{animate as animate23}from"vendor";var TestimonialCarousel=class extends EffectCarousel{createOnChangeAnimationControls(fromSlide,toSlide,{direction}){return{leaveControls:()=>animate23(fromSlide,{opacity:[1,0],transform:["translateY(0)","translateY(-15px)"]},{duration:.4,easing:[.55,.055,.675,.19]}),enterControls:()=>animate23(toSlide,{opacity:[0,1],transform:["translateY(15px)","translateY(0)"]},{duration:.4,delay:0,easing:[.25,.46,.45,.94]})}}};window.customElements.get("testimonial-carousel")||window.customElements.define("testimonial-carousel",TestimonialCarousel);import{animate as animate24}from"vendor";var TextWithIconsCarousel=class extends EffectCarousel{createOnChangeAnimationControls(fromSlide,toSlide){return{leaveControls:()=>animate24(fromSlide,{opacity:[1,0],transform:["translateY(0)","translateY(-10px)"]},{duration:.3,easing:"ease-in"}),enterControls:()=>animate24(toSlide,{opacity:[0,1],transform:["translateY(10px)","translateY(0px)"]},{duration:.3,delay:.2,easing:"ease-out"})}}};window.customElements.get("text-with-icons-carousel")||window.customElements.define("text-with-icons-carousel",TextWithIconsCarousel);import{animate as animate25,timeline as timeline15}from"vendor";var TimelineCarousel=class extends EffectCarousel{createOnBecameVisibleAnimationControls(toSlide){return animate25(toSlide.querySelectorAll(".timeline__item-content"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.5})}createOnChangeAnimationControls(fromSlide,toSlide){return timeline15([[fromSlide.querySelectorAll(".timeline__item-content"),{opacity:[1,0]},{duration:.3}],[fromSlide.querySelector(".timeline__item-image-wrapper :is(img, svg)"),{opacity:[1,0],transform:["translateX(0)","translateX(-15px)"]},{duration:.5,at:"<",easing:[.645,.045,.355,1]}],[toSlide.querySelector(".timeline__item-image-wrapper :is(img, svg)"),{opacity:[0,1],transform:["translateX(-15px)","translateX(0)"]},{duration:.5,at:"<"}],[toSlide.querySelectorAll(".timeline__item-content"),{opacity:[0,1],transform:["translateY(10px)","translateY(0)"]},{duration:.5,at:"-0.1"}]])}};window.customElements.get("timeline-carousel")||window.customElements.define("timeline-carousel",TimelineCarousel);var SprReviews=__toESM(require_spr_reviews());import{animate as animate26,Delegate as Delegate10}from"vendor";(()=>{const delegateDocument=new Delegate10(document.documentElement);window.themeVariables.settings.showPageTransition&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches&&delegateDocument.on("click","a",async(event,target)=>{event.defaultPrevented||event.ctrlKey||event.metaKey||target.hostname!==window.location.hostname||target.pathname===window.location.pathname||(event.preventDefault(),await animate26(document.body,{opacity:0},{duration:.2}).finished,window.location=target.href)}),delegateDocument.on("click",'a[href*="#"]',(event,target)=>{if(event.defaultPrevented||target.matches("[allow-hash-change]")||target.pathname!==window.location.pathname||target.search!==window.location.search)return;const url=new URL(target.href);if(url.hash==="")return;const anchorElement=document.querySelector(url.hash);anchorElement&&(event.preventDefault(),anchorElement.scrollIntoView({block:"start",behavior:window.matchMedia("(prefers-reduced-motion: no-preference)").matches?"smooth":"auto"}),document.documentElement.dispatchEvent(new CustomEvent("hashchange:simulate",{bubbles:!0,detail:{hash:url.hash}})))}),navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&(document.head.querySelector('meta[name="viewport"]').content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, maximum-scale=1.0"),Array.from(document.querySelectorAll(".prose table")).forEach(table=>{table.outerHTML='
    '+table.outerHTML+"
    "});try{document.querySelector(":has(p)")}catch{Array.from(document.querySelectorAll(".shopify-section")).forEach(section=>{section.querySelector(".bordered-section")&§ion.classList.add("shopify-section--has-fallback-bordered")})}})();export{AccordionDisclosure,AccountLogin,AnnouncementBarCarousel,ArticleToolbar,BadgeList,BeforeAfter,BlogPosts,BuyButtons,CarouselNavigation,CarouselNextButton,CarouselPrevButton,CartCount,CartDot,CartDrawer,CartNote,CollectionBanner,CollectionLayoutSwitch,CompareAtPrice,ConfirmButton,CopyButton,CountdownTimer,CountdownTimerFlip,CountdownTimerFlipDigit,CountrySelector,CustomDetails,DialogCloseButton,DialogElement,Drawer,EffectCarousel,FacetLink,FacetsDrawer,FacetsForm,FacetsSortPopover,FaqToc,FeaturedCollectionsCarousel,FreeShippingBar,GestureArea,GiftCardRecipient,Header,HeightObserver,ImageParallax,ImageWithText,ImageWithTextOverlay,ImagesWithTextScroll,LineItemQuantity,Listbox,LoadingBar,MarqueeText,MediaGrid,MenuDisclosure,Modal,ModelMedia,MultiColumn,MultipleMediaWithText,NewsletterPopup,OnSaleBadge,OpenLightBoxButton,PaymentTerms,PickupAvailability,Player,PopIn,Popover,PredictiveSearch,PriceRange,PrivacyBanner,ProductCard,ProductForm,ProductGallery,ProductGalleryNavigation,ProductList,ProductLoader,ProductRecommendations,ProductStickyBar,ProgressBar,QrCode,QuantityInput,QuantitySelector,QuickBuyModal,RecentlyViewedProducts,ResizableTextarea,ReviewsDisclosure,SafeSticky,SalePrice,ScrollCarousel,ShareButton,ShippingEstimator,ShopTheLookDesktopCarousel,ShopTheLookMobileCarousel,ShopTheLookPopover,ShopTheLookProductListCarousel,SlideshowCarousel,SoldOutBadge,SprReviews,Tabs,TestimonialCarousel,TextWithIconsCarousel,TimelineCarousel,UnitPrice,VariantInventory,VariantMedia,VariantPicker,VariantSku,VideoMedia,cachedFetch,createMediaImg,debounce,extractSectionId,fetchCart,formatMoney,generateSrcset,imageLoaded,matchesMediaQuery,mediaQueryListener,throttle,videoLoaded,waitForEvent}; //# sourceMappingURL=/cdn/shop/t/37/assets/theme.js.map?v=89963661938119220071690823956