PageSourceSearch

https://loulou.store/cdn/shop/t/35/assets/custom.js?v=90573325345238732711791373401

js loulou.store collected 2026-10-10 01:57:07 UTC 85,097 bytes, 9 lines download raw bytes

1"use strict";/*! Global scope initializations -------------------------------------------------- */let html_tag=document.documentElement,root_styles=html_tag,top_id=document.querySelector(".shopify-section-header"),nav_top_id=document.querySelector("#nav-top"),header_outer=document.querySelector("#header-outer"),header_inner=document.querySelector("#header-inner"),header_id=header_outer?header_outer.querySelector("#header"):null,search_id=document.querySelector("#search"),nav_outer=document.querySelector("#nav-outer"),nav_bar_id=document.querySelector("#nav-bar"),nav_id=document.querySelector("#nav"),nav_main=nav_bar_id??nav_id,content_id=document.getElementById("content");const viewportWidth=window.innerWidth,mediaMax1000=window.matchMedia("(max-width: 1000px)"),mediaMin1000=window.matchMedia("(min-width: 1001px)"),asyncOnce={once:!0},asyncPass={passive:!0,once:!0};html_tag.classList.add("js");/*! Environment & feature detection -------------------------------------------------- */const fp=(localPath,key)=>window.filepaths&&window.filepaths[key]||localPath,componentAssets=[{tagName:"syk-countdown",path:"js/component-countdown.js",key:"component_countdown_js"},{tagName:"syk-count-up",path:"js/component-count-up.js",key:"component_count_up_js"},{tagName:"syk-quantity-input",path:"js/component-quantity-input.js",key:"component_quantity_input_js"},{tagName:"syk-image-compare",path:"js/component-image-compare.js",key:"component_image_compare_js"}],componentSelector=componentAssets.map(component=>component.tagName).join(","),componentLoadStates={};function containsComponent(root,selector){return root?root.nodeType===1&&root.matches(selector)?!0:typeof root.querySelector=="function"&&root.querySelector(selector)!==null:!1}function loadComponentAssets(root){if("customElements"in window)for(const component of componentAssets){if(window.customElements.get(component.tagName)){componentLoadStates[component.tagName]="loaded";continue}containsComponent(root,component.tagName)&&loadComponentAsset(component)}}function loadComponentAsset(component){if(componentLoadStates[component.tagName]==="loading"||componentLoadStates[component.tagName]==="loaded")return;componentLoadStates[component.tagName]="loading";const script=document.createElement("script");script.src=fp(component.path,component.key),script.async=!0,script.onload=function(){window.customElements.get(component.tagName)?componentLoadStates[component.tagName]="loaded":(delete componentLoadStates[component.tagName],script.remove())},script.onerror=function(){delete componentLoadStates[component.tagName],script.remove(),console.warn("Script failed: "+script.src)},document.body.appendChild(script)}if(loadComponentAssets(document),"MutationObserver"in window&&componentSelector){const componentObserverRoot=document.getElementById("root")||document.body;componentObserverRoot&&new MutationObserver(mutations=>{for(const mutation of mutations)for(const node of mutation.addedNodes)node.nodeType!==1&&node.nodeType!==11||containsComponent(node,componentSelector)&&loadComponentAssets(node)}).observe(componentObserverRoot,{childList:!0,subtree:!0})}const isMobile=window.matchMedia("(pointer: coarse)").matches||"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;html_tag.classList.add(isMobile?"mobile":"no-mobile");const isNotShopify=()=>window.Shopify===void 0||Object.keys(window.Shopify).length<3,isShopifyDesignMode=()=>typeof window.Shopify<"u"&&!!window.Shopify.designMode,isHasSelectorSupported=()=>{try{return document.querySelector(":has(*)"),!0}catch{return!1}},global_dir=html_tag.getAttribute("dir")==="rtl"?["rtl",!1]:["ltr",!0];/*! Helper Functions -------------------------------------------------- */const acceleratedCheckoutMobile=window.matchMedia("(max-width: 560px)"),acceleratedCheckoutVerticalClass="additional-checkout-buttons--vertical";function updateAcceleratedCheckoutLayout(){const containers=document.querySelectorAll("[data-accelerated-checkout-cart]");for(const container of containers)container.classList.toggle(acceleratedCheckoutVerticalClass,acceleratedCheckoutMobile.matches)}window.updateAcceleratedCheckoutLayout=updateAcceleratedCheckoutLayout,updateAcceleratedCheckoutLayout(),typeof acceleratedCheckoutMobile.addEventListener=="function"?acceleratedCheckoutMobile.addEventListener("change",updateAcceleratedCheckoutLayout):acceleratedCheckoutMobile.addListener(updateAcceleratedCheckoutLayout),document.addEventListener("shopify:section:load",updateAcceleratedCheckoutLayout);const initPopupRootRelocator=(function(){if(window.__popupRelocatorInitialized)return;window.__popupRelocatorInitialized=!0;const MOVED_ATTR="data-popup-moved";function movePopupToRoot(popup,root_id2){!popup||popup.nodeType!==1||popup.getAttribute(MOVED_ATTR)!=="1"&&(root_id2.appendChild(p
1opup),popup.setAttribute(MOVED_ATTR,"1"))}function relocateNow(){const root_id2=document.getElementById("root")||document.body;if(!root_id2||!content_id)return!1;const popups=content_id.querySelectorAll(".popup-a");for(let i=0;i<popups.length;i++)movePopupToRoot(popups[i],root_id2);if(!window.__popupRelocatorContentObserver&&"MutationObserver"in window){const obs=new MutationObserver(mutations=>{for(let m=0;m<mutations.length;m++){const added=mutations[m].addedNodes;for(let j=0;j<added.length;j++){const node=added[j];if(!(!node||node.nodeType!==1)){if(node.classList&&node.classList.contains("popup-a")){movePopupToRoot(node,root_id2);continue}if(node.querySelectorAll){const nested=node.querySelectorAll(".popup-a");for(let k=0;k<nested.length;k++)movePopupToRoot(nested[k],root_id2)}}}}});obs.observe(content_id,{childList:!0,subtree:!0}),window.__popupRelocatorContentObserver=obs}return!0}if(!relocateNow())if("MutationObserver"in window){const bootObs=new MutationObserver(()=>{relocateNow()&&bootObs.disconnect()});bootObs.observe(document.documentElement,{childList:!0,subtree:!0})}else document.addEventListener("DOMContentLoaded",relocateNow,{once:!0})})(),getSiblings=el=>el&&el.parentNode?[...el.parentNode.children].filter(s=>s!==el):[],append_url=(el,content,className,href,access)=>{if(!el)return;const link=createElementWithClass("a",className);link.href=href||"#",access&&(link.tabIndex=-1,link.setAttribute("aria-hidden","true"),link.setAttribute("focusable","false")),link.innerHTML=content,el.appendChild(link)};function new_css(id,href,media){if(document.getElementById(id))return;const link=document.createElement("link");media=media||"screen",link.setAttribute("id",id),link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.setAttribute("media",media);const css=document.querySelectorAll("link[id]");css.length?css[css.length-1].after(link):document.head.appendChild(link)}function loadRes(u,c,i){if(html_tag.classList.contains(i))return typeof c=="function"&&c(),!0;const s=document.createElement("script");s.src=u,s.async=!0,typeof c=="function"&&(s.onload=c),s.onerror=()=>console.warn(`Script failed: ${u}`),document.body.appendChild(s),html_tag.classList.add(i)}const swiperLoaderTimeout=2e4,swiperLoader={status:typeof window.Swiper=="function"?"ready":"idle",promise:null,script:null,attempts:0,lastError:null};function isSwiperReady(){const ready=typeof window.Swiper=="function";return ready?(swiperLoader.status="ready",swiperLoader.lastError=null):swiperLoader.status==="ready"&&(swiperLoader.status="idle"),ready}function getSwiperScriptSource(){return fp("js/plugin-swiper.js","plugin_swiper_js")}function normalizeScriptSource(source){try{return new URL(source,document.baseURI).href}catch{return source}}function findSwiperLoaderScript(source){const normalizedSource=normalizeScriptSource(source),scripts=document.querySelectorAll('script[data-swiper-loader="loading"][src]');for(let i=0;i<scripts.length;i++)if(normalizeScriptSource(scripts[i].src)===normalizedSource)return scripts[i];return null}function createSwiperLoaderError(message,source){const error=new Error(message);return error.name="SwiperLoaderError",error.source=source||"",error}function ensureSwiper(){if(isSwiperReady())return Promise.resolve(window.Swiper);if(swiperLoader.status==="loading"&&swiperLoader.promise)return swiperLoader.promise;const source=getSwiperScriptSource();if(!source){const sourceError=createSwiperLoaderError("Swiper asset URL is unavailable.",source);return swiperLoader.status="failed",swiperLoader.lastError=sourceError,Promise.reject(sourceError)}let script=findSwiperLoaderScript(source);const loaderCreated=!script;return script||(script=document.createElement("script"),script.src=source,script.async=!0,script.setAttribute("data-swiper-loader","loading")),swiperLoader.status="loading",swiperLoader.script=script,swiperLoader.attempts+=1,swiperLoader.lastError=null,swiperLoader.promise=new Promise((resolve,reject)=>{let settled=!1,timeoutId=null;function cleanup(){timeoutId!==null&&(clearTimeout(timeoutId),timeoutId=null),script.removeEventListener("load",handleLoad),script.removeEventListener("error",handleError)}function fail(message){if(settled)return;settled=!0,cleanup();const error=createSwiperLoaderError(message,source);swiperLoader.status="failed",swiperLoader.promise=null,swiperLoader.script=null,swiperLoader.lastError=error,script.getAttribute("data-swiper-loader")==="loading"&&script.remove(),reject(error)}function handleLoad(){if(!isSwiperReady()){fail("Swiper asset loaded without exposing an executable constructor.");return}settled||(settled=!0,cleanup(),script.setAttribute("data-swiper-loader","ready"),swiperLoader.status="ready",swiperLoader.promise=null,swiperLoader.script=null,swiperLoader.lastError=null,resolve(window.Swiper))}function handleError(){fail("Swiper asset failed to load.")}script.addEventListener("load",handleLoad),script.addEventListener("error",handleError),timeoutId=setTimeout(()=>{fail("Swiper asset request timed out.")},swiperLoaderTimeout),loaderCreated&&document.head.appendChild(script)}),swiperLoader.promise}function runSwiperInitializer(initializer){if(isSwiperReady()){initializer();return}ensureSwiper().then(initializer,()=>{})}function hasInitialSwiperCandidate(){let candidates=document.querySelectorAll(".m6fr:not(.s4wi)");for(const el of candidates)if(el.children.length>1)return!0;
1candidates=document.querySelectorAll(".l4ts:not(.s4wi, .l4ts-mobile-initialized)");for(const el of candidates){let desktopMinimum=3;(el.classList.contains("wide")||el.classList.contains("width-100"))&&(desktopMinimum=1),el.classList.contains("width-50")&&(desktopMinimum=2);const mobileList=el.nextElementSibling,desktopCandidate=el.classList.contains("slider")&&el.children.length>desktopMinimum,mobileCandidate=el.classList.contains("slider-mobile")&&el.children.length>1&&mobileList&&mobileList.matches(".l4ts.mobile-only");if(desktopCandidate||mobileCandidate)return!0}candidates=document.querySelectorAll(".l4st:not(.static, .s4wi, .l4st-initialized)");for(const el of candidates)if(el.children.length>1)return!0;candidates=document.querySelectorAll(".l4us:not(.l4us-initialized)");for(const el of candidates)if(!(el.closest(".m6kn")||el.classList.contains("static")||el.classList.contains("mobile-static"))&&el.children.length>1)return!0;candidates=document.querySelectorAll(".l4cl.slider:not(.s4wi), .l4ft.slider:not(.s4wi)");for(const el of candidates)if(el.children.length>1)return!0;candidates=document.querySelectorAll(".l4pr:not(.s4wi, .l4pr-initialized)");for(const el of candidates){let slideCount=0;for(const child of el.children)child.classList.contains("sticky")||(slideCount+=1);if(slideCount>1)return!0}return!1}hasInitialSwiperCandidate()&&ensureSwiper().then(()=>{},()=>{});function throttle(callback,delay){let timeoutId;return function(){timeoutId||(timeoutId=setTimeout(()=>{callback(),timeoutId=null},delay))}}function clone_with_class(el,cl1,cl2){if(!el)return;const cln=el.cloneNode(!0);cln.classList.add(cl1),el.after(cln),el.classList.add(cl2)}function create_slider(el,settings,minSlides){if(!el||!isSwiperReady())return null;const imgOverlays=[];let bg=!1;const children=Array.from(el.children),childrenLength=children.length;for(let i=0;i<childrenLength;i++){const child=children[i];child.classList.contains("img-overlay")&&(bg=!0,imgOverlays.push(child),child.remove())}if(childrenLength>1){if(el.tagName.toLowerCase()==="ul"){const ul=el;requestAnimationFrame(()=>{ul.setAttribute("role","none");for(let i=0;i<childrenLength;i++){const li=children[i];li.setAttribute("role","none"),li.classList.add("li")}})}if(minSlides=minSlides||1,childrenLength>parseFloat(minSlides)){let paginationClass=settings&&settings.pagination&&settings.pagination.el||".swiper-pagination";paginationClass=paginationClass.replace(/\./g," ").trim();const dots=document.createElement("span");dots.className=paginationClass;const prev=document.createElement("span");prev.classList.add("swiper-button-prev","swiper-button-nav");const next=document.createElement("span");next.classList.add("swiper-button-next","swiper-button-nav"),el.classList.add("s4wi"),requestAnimationFrame(()=>{prev.setAttribute("role","navigation"),next.setAttribute("role","navigation")});const slidesFragment=document.createDocumentFragment();for(let i=0;i<childrenLength;i++){const child=children[i],wrapper=document.createElement("div");wrapper.classList.add("swiper-slide"),wrapper.appendChild(child),slidesFragment.appendChild(wrapper)}const swiperOuter=document.createElement("div");swiperOuter.className="swiper-outer";const swiperWrapper=document.createElement("div");swiperWrapper.className="swiper-wrapper",swiperWrapper.appendChild(slidesFragment),swiperOuter.appendChild(swiperWrapper);const swiperFragment=document.createDocumentFragment();swiperFragment.appendChild(swiperOuter);const pagination=document.createElement("div");if(pagination.className="swiper-custom-pagination",swiperFragment.appendChild(pagination),settings&&settings.pagination)settings.pagination.el=settings.pagination.el||pagination,pagination.append(prev,dots,createElementWithClass("span","swiper-custom-fraction"),next);else{const navFragment=document.createDocumentFragment();navFragment.append(prev,next),swiperFragment.appendChild(navFragment)}el.appendChild(swiperFragment),settings.navigation=settings.navigation||{},settings.navigation.prevEl=prev,settings.navigation.nextEl=next;const swiperInstance=new Swiper(swiperOuter,settings);return requestAnimationFrame(()=>{const paginationBullets=pagination.querySelectorAll(".swiper-pagination-bullet");for(let i=0;i<paginationBullets.length;i++)paginationBullets[i].setAttribute("role","navigation")}),swiperInstance}}return bg&&requestAnimationFrame(()=>{for(let i=0;i<imgOverlays.length;i++){const imgOverlay=imgOverlays[i];el.appendChild(imgOverlay)}}),null}function randomize(el){el.setAttribute("data-random",Math.floor(Math.random()*1e4)+1)}
1function assignIndex(elements){elements.forEach((el,index)=>{el.style.zIndex=elements.length-index})}function createElementWithClass(tag,classList){const el=document.createElement(tag);return Array.isArray(classList)||(classList=[classList]),el.classList.add(...classList),el}function runWhenIdle(fn){"requestIdleCallback"in window?requestIdleCallback(fn,{timeout:2e3}):setTimeout(fn,300)}const updateSlidersObserved=new WeakSet;function updateSliders(el){if(!el.classList.contains("s4wi"))return;const sl_el=el.querySelector(".swiper-outer");if(sl_el){if(!updateSlidersObserved.has(el)){let io=function(entries,observer){for(const entry of entries)entry.isIntersecting&&sl_el.swiper&&(sl_el.swiper.updateAutoHeight(),observer.unobserve(el))};updateSlidersObserved.add(el),new IntersectionObserver(io).observe(el)}setTimeout(()=>{sl_el.swiper&&sl_el.swiper.updateAutoHeight()},300)}}/*! Layout utilities -------------------------------------------------- */let stickyOffsetCalculated=!1,stickyOffsetScheduled=!1,stickyListenersAdded=!1;const SO_req=[".m6pr",'[id^="section-"]',".f8ps",".f8sr",".m6cl",".m6ac"],requiredElementsExist=SO_req.some(sel=>document.querySelector(sel));function stickyOffset(){stickyOffsetScheduled||(stickyOffsetScheduled=!0,requestAnimationFrame(()=>{if(stickyOffsetScheduled=!1,stickyOffsetCalculated||!nav_main||!header_outer||!header_inner||!requiredElementsExist)return;const setStickyOffset=()=>{const h=header_outer.getBoundingClientRect().height;html_tag.style.setProperty("--sticky_offset",`${h}px`)},setNavMainOffset=()=>{const h=nav_main.getBoundingClientRect().height;html_tag.style.setProperty("--sticky_offset",`${h}px`)},updateSticky=()=>{mediaMax1000.matches?setStickyOffset():mediaMin1000.matches&&setNavMainOffset()};header_inner.classList.contains("sticky-nav")?(html_tag.classList.add("has-sticky-nav"),updateSticky(),stickyListenersAdded||(mediaMax1000.addEventListener("change",updateSticky),mediaMin1000.addEventListener("change",updateSticky),stickyListenersAdded=!0)):setStickyOffset(),stickyOffsetCalculated=!0}))}isMobile||window.addEventListener("mousemove",stickyOffset,asyncOnce),document.addEventListener("scroll",stickyOffset,asyncPass),window.addEventListener("resize",throttle(()=>{stickyOffsetCalculated=!1,stickyOffset()},500)),header_inner&&(header_inner.classList.contains("mobile-visible-search")&&html_tag.classList.add("has-mobile-visible-search"),header_inner.classList.contains("t1nn")&&html_tag.classList.add("t1nn")),window.addEventListener("resize",throttle(()=>{customDropHeight(),!(!header_outer||!header_inner)&&requestAnimationFrame(()=>{const headerHeight=header_outer.getBoundingClientRect().height+"px";html_tag.style.setProperty("--header_height_static",headerHeight)})},500));function customDropHeight(){!nav_main||![".m6fr.wide-transparent",".m6fr.size-xl",".m6fr article.size-xl"].some(selector=>document.querySelector(selector))||requestAnimationFrame(function(){if(header_outer&&header_inner){const headerHeight=header_outer.getBoundingClientRect().height+"px";html_tag.style.setProperty("--header_height_static",headerHeight)}if(nav_top_id){const nav_top_idHeight=nav_top_id.getBoundingClientRect().height+"px";html_tag.style.setProperty("--nav_top_h",nav_top_idHeight)}})}let logo_id=document.querySelector("#logo"),logo_img=null;logo_id&&(logo_img=logo_id.querySelector("img")||null),logo_img?logo_img.complete?customDropHeight():logo_img.addEventListener("load",customDropHeight):customDropHeight();const breadcrumb_back=document.querySelectorAll(".breadcrumb-back");if(breadcrumb_back)for(const el of breadcrumb_back)document.referrer.includes(window.location.host)?el.addEventListener("click",e=>{e.preventDefault(),history.back()}):el.remove();const alignMiddleElements=document.getElementsByClassName("align-middle"),alignCenterElements=document.getElementsByClassName("align-center");function checkAndAddClass(elements,className){for(const el of elements){const parent=el.parentNode,grandparent=parent?parent.parentNode:null;(el.previousElementSibling===null&&el.nextElementSibling===null&&parent.id==="content"||el.previousElementSibling===null&&el.nextElementSibling===null&&parent.previousElementSibling===null&&parent.nextElementSibling===null&&grandparent.i
1d==="content")&&content_id.classList.add(className)}}if(checkAndAddClass(alignMiddleElements,"align-center"),checkAndAddClass(alignCenterElements,"align-center-static"),!isHasSelectorSupported()){const list_featured_content_box=document.querySelectorAll(".l4ft .content.box");for(const el of list_featured_content_box){let closestLi=el.closest("li");closestLi&&closestLi.classList.add("has-content-box")}}function scrollToTargetAdjusted(el){"scrollRestoration"in history&&(history.scrollRestoration="manual"),el.scrollIntoView({block:"center"})}const loadMoreItemClicked=localStorage.getItem("loadMoreItemClicked");if(loadMoreItemClicked){const loadMoreSelectors=[`#collection > li > figure > a[href="${loadMoreItemClicked}"]`,`.m6cl .results > div a[href="${loadMoreItemClicked}"]`,`.m6cl .results > .l4ne a[href="${loadMoreItemClicked}"]`],loadMoreTarget=document.querySelector(loadMoreSelectors.join(", ")),loadMoreURL=window.location.href;loadMoreTarget&&!loadMoreURL.includes(loadMoreItemClicked)&&scrollToTargetAdjusted(loadMoreTarget),localStorage.removeItem("loadMoreItemClicked")}/*! Custom Events -------------------------------------------------- */let quickShopEvt=new CustomEvent("quickShop"),ajaxCartEvt=new CustomEvent("ajaxCart"),searchClassesEvt=new CustomEvent("searchClasses"),inputPaddingEvt=new CustomEvent("inputPadding");const transparentHeaderEvt=new CustomEvent("transparentHeaderAsync");window.addEventListener("transparentHeaderAsync",function(){if(!content_id||!header_inner)return;const ffa=content_id.children[0];let ffc,ffd=!1,ffe=!1;if(ffa)if(ffc=ffa.children[0],ffa.classList.contains("shopify-section")&&header_inner.hasAttribute("data-transparent")&&(ffd=!0),ffc&&(ffc.classList.contains("m6bx")||ffc.classList.contains("m6fr"))&&ffc.classList.contains("wide")&&(ffe=!0,ffc.classList.add("im-tr")),ffd&&document.querySelector('.shopify-section-header ~ [class*="shopify-section-announcement-bar"]')&&(ffd=!1),ffd&&ffe&&ffc&&ffc.classList.contains("wide-transparent")){top_id.classList.add("transparent"),html_tag.classList.add("has-first-m6fr-wide"),ffc.classList.contains("m6bx")&&html_tag.classList.add("has-first-m6bx-wide");const hasFlexible=ffc.classList.contains("flexible-section");html_tag.classList.toggle("has-first-flexbile-wide",hasFlexible),ffc.classList.add("is-first-m6fr-wide");const slides=ffa.querySelectorAll(".swiper-slide-active article"),firstSlide=slides.length>0?slides[0]:ffa.querySelector("article"),fallbackEl=ffa.querySelector(".m6fr"),palette=firstSlide&&firstSlide.getAttribute("data-color-palette")||fallbackEl&&fallbackEl.getAttribute("data-active-content-desktop");palette&&setTimeout(function(){const base=palette.replace("_gradient","");html_tag.style.setProperty("--transparent_header_fg",`var(--${base}_fg)`),html_tag.style.setProperty("--transparent_header_bg",`var(--${palette}_bg)`),html_tag.style.setProperty("--transparent_header_btn_bg",`var(--${base}_btn_bg)`),html_tag.style.setProperty("--transparent_header_btn_fg",`var(--${base}_btn_fg)`);const bd=palette.includes("white")||palette.includes("light")?"var(--header_border_color_light)":"var(--header_border_color_dark)";html_tag.style.setProperty("--transparent_header_bd",bd)},0)}else header_inner.classList.remove("transparent"),html_tag.classList.remove("has-first-m6fr-wide","has-first-m6bx-wide")}),window.dispatchEvent(transparentHeaderEvt);const topEvt=new CustomEvent("top");window.addEventListener("top",function(event){function checkIfImageExists(url,callback){const img=new Image;img.onload=()=>callback(!0),img.onerror=()=>callback(!1),img.src=url}if(logo_id){const logo_text=logo_id.querySelectorAll("span");logo_id.parentElement&&logo_id.parentElement.classList.contains("text-center-logo")&&header_inner&&!header_inner.classList.contains("hide-btn")&&search_id&&search_id.classList.add("compact"),logo_text.length&&header_inner&&header_inner.classList.add("logo-text");const imgWithAlt=logo_id.querySelector("img[alt]");if(imgWithAlt){const pt=imgWithAlt.parentNode;checkIfImageExists(imgWithAlt.src,exists=>{exists||requestAnimationFrame(()=>{const span=document.createElement("span");span.innerHTML=imgWithAlt.alt,pt.appendChild(span),pt.classList.add("broken-img")})})}}const navOverflowDesktop=mediaMin1000,navOverflowCloneMap=new WeakMap;let navOverflowInstances=[],calcLogoOffsetScheduled=!1;const calcLogoOffsetCallbacks=[];function isNavOverflowDesktop(){return navOverflowDesktop.matches}
1function clearLogoOffset(context){if(root_styles){if(context&&context.topId){const currentTop=document.querySelector(".shopify-section-header");if(currentTop&&context.topId!==currentTop)return}root_styles.style.removeProperty("--logo_offset")}}function isCurrentNavOverflowContext(context){const currentTop=document.querySelector(".shopify-section-header");return context&&context.active&&context.topId&&context.topId===currentTop&&context.topId.isConnected&&context.headerId&&context.headerId.isConnected&&context.headerInner&&context.headerInner.isConnected&&context.topId.contains(context.headerId)&&context.topId.contains(context.headerInner)}function removeCalcLogoOffsetCallbacks(context){for(let index=calcLogoOffsetCallbacks.length-1;index>=0;index--)calcLogoOffsetCallbacks[index].context===context&&calcLogoOffsetCallbacks.splice(index,1)}function calcLogoOffset(context,callback){typeof callback=="function"&&calcLogoOffsetCallbacks.push({context,callback}),!calcLogoOffsetScheduled&&(calcLogoOffsetScheduled=!0,requestAnimationFrame(()=>{const results=calcLogoOffsetCallbacks.splice(0).map(function(entry){const currentContext=entry.context;let valid=!0;if(!isCurrentNavOverflowContext(currentContext))valid=!1;else if(!currentContext.usesCenteredLogoExclusion)valid=!0;else if(!currentContext.headerInner.classList.contains("text-center-logo"))clearLogoOffset(currentContext);else if(!currentContext.logoId||!currentContext.logoId.isConnected||!currentContext.topId.contains(currentContext.logoId))clearLogoOffset(currentContext),valid=!1;else{const headerRect=currentContext.headerId.getBoundingClientRect(),logoRect=currentContext.logoId.getBoundingClientRect(),logoOffset=global_dir[1]===!1?headerRect.right-logoRect.right:logoRect.left-headerRect.left;root_styles&&Number.isFinite(headerRect.width)&&headerRect.width>0&&Number.isFinite(logoOffset)&&logoOffset>0?root_styles.style.setProperty("--logo_offset",logoOffset+"px"):(clearLogoOffset(currentContext),valid=!1)}return{callback:entry.callback,valid}});requestAnimationFrame(()=>{calcLogoOffsetScheduled=!1,results.forEach(function(result){result.callback(result.valid)}),calcLogoOffsetCallbacks.length&&calcLogoOffset()})}))}nav_id&&nav_id.classList.contains("no-wide")&&top_id.classList.add("has-no-wide"),nav_bar_id&&nav_bar_id.classList.contains("no-wide")&&top_id.classList.add("has-no-wide");const navs=document.querySelectorAll("#nav, #nav-bar");function checkInv(el,ratio){requestAnimationFrame(()=>{const el_rect=el.getBoundingClientRect();(global_dir[1]===!1?viewportWidth-el_rect.left-el.offsetWidth:el_rect.left)>viewportWidth*ratio?el.classList.add("inv"):el.classList.remove("inv")})}function getDirectRegularNavItems(menuList){return Array.from(menuList.children).filter(function(child){return child.tagName==="LI"&&!child.classList.contains("show-all")&&!child.classList.contains("nav-bar-element-main")&&!child.classList.contains("close")&&!child.classList.contains("overlay-close")})}function getDirectShowAll(menuList){const children=Array.from(menuList.children);for(let index=0;index<children.length;index++)if(children[index].tagName==="LI"&&children[index].classList.contains("show-all"))return children[index];return null}function setNavItemHidden(el,hidden){const show=navOverflowCloneMap.get(el);el.classList.toggle("temp-hidden",hidden),show&&show.classList.toggle("temp-hidden",hidden)}function commitNavOverflowState(instance,regularItems,hiddenItems,showAll,showAllVisible,useOverflowAlignment){if(!isNavOverflowDesktop()||!isCurrentNavOverflowContext(instance))return;const replaceTextClass=function(original,replacement){instance.navMain.classList.contains(original)&&(instance.navMain.classList.remove(original),instance.navMain.classList.add(replacement))};useOverflowAlignment?(replaceTextClass("text-center","have-text-center"),replaceTextClass("text-justify","have-text-justify"),replaceTextClass("text-end","have-text-end")):(replaceTextClass("have-text-center","text-center"),replaceTextClass("have-text-justify","text-justify"),replaceTextClass("have-text-end","text-end")),regularItems.forEac
1h(function(child){setNavItemHidden(child,hiddenItems.indexOf(child)!==-1)}),showAll&&(showAll.style.display=showAllVisible?"":"none")}function countNavDistF(instance){if(!isNavOverflowDesktop())return!1;const el=instance.menuList,nav=instance.navMain,allChildren=getDirectRegularNavItems(el),showAll=getDirectShowAll(el);if(!isCurrentNavOverflowContext(instance)||!el.isConnected||!nav.isConnected||!instance.topId.contains(el)||!instance.topId.contains(nav)||!allChildren.length)return!1;const children=allChildren.filter(function(child){return child.classList.contains("temp-hidden")||getComputedStyle(child).display!=="none"});if(!children.length)return!1;let availableWidth=nav.getBoundingClientRect().width;if(instance.usesCenteredLogoExclusion&&instance.headerId&&instance.logoId&&instance.headerInner&&instance.headerInner.classList.contains("text-center-logo")){const headerRect=instance.headerId.getBoundingClientRect(),logoRect=instance.logoId.getBoundingClientRect(),logoOffset=global_dir[1]===!1?headerRect.right-logoRect.right:logoRect.left-headerRect.left;if(!Number.isFinite(logoOffset)||logoOffset<=0)return!1;availableWidth=Math.min(availableWidth,logoOffset-32)}if(!Number.isFinite(availableWidth)||availableWidth<=0)return!1;function getInlineMargin(styles,logicalProperty,ltrProperty,rtlProperty){let value=parseFloat(styles[logicalProperty]);return isNaN(value)&&(value=parseFloat(styles[global_dir[1]===!1?rtlProperty:ltrProperty])),isNaN(value)?0:value}const listStyles=getComputedStyle(el),listInlineMargins=getInlineMargin(listStyles,"marginInlineStart","marginLeft","marginRight")+getInlineMargin(listStyles,"marginInlineEnd","marginRight","marginLeft"),listInlinePadding=getInlineMargin(listStyles,"paddingInlineStart","paddingLeft","paddingRight")+getInlineMargin(listStyles,"paddingInlineEnd","paddingRight","paddingLeft"),listInlineBorders=getInlineMargin(listStyles,"borderInlineStartWidth","borderLeftWidth","borderRightWidth")+getInlineMargin(listStyles,"borderInlineEndWidth","borderRightWidth","borderLeftWidth"),listWidthAdjustment=listInlineMargins+listInlinePadding+listInlineBorders,columnGap=parseFloat(listStyles.columnGap),itemGap=isNaN(columnGap)?0:Math.max(0,columnGap),navBuffer=10;availableWidth-=navBuffer;function getGapWidth(count){return count>1?itemGap*(count-1):0}function getOuterWidth(child,hiddenFallback){const styles=getComputedStyle(child),marginStart=getInlineMargin(styles,"marginInlineStart","marginLeft","marginRight"),marginEnd=getInlineMargin(styles,"marginInlineEnd","marginRight","marginLeft");let width=child.getBoundingClientRect().width;if(width<=0&&child.firstElementChild&&(width=child.firstElementChild.getBoundingClientRect().width),width<=0&&hiddenFallback){const originalCssText=child.style.cssText;child.style.cssText+="; display: block; visibility: hidden; position: absolute; left: -9999px;",width=child.getBoundingClientRect().width,child.style.cssText=originalCssText}return width+marginStart+marginEnd}const itemWidths=children.map(function(child){return getOuterWidth(child,!0)}),regularItemsWidth=itemWidths.reduce(function(total,width){return total+width},0),showAllWidth=showAll?getOuterWidth(showAll,!0):0,firstItemWidth=itemWidths.length?itemWidths[0]:0;if(itemWidths.some(function(width){return!Number.isFinite(width)||width<=0})||!Number.isFinite(regularItemsWidth)||regularItemsWidth<=0||!Number.isFinite(showAllWidth)||showAllWidth<=0||availableWidth<=showAllWidth+navBuffer)return!1;if(regularItemsWidth+getGapWidth(children.length)+listWidthAdjustment<=availableWidth)return commitNavOverflowState(instance,allChildren,[],showAll,!1,!1),!0;let remainingItemsWidth=regularItemsWidth,remainingItemsCount=children.length,requiredWidth=remainingItemsWidth+showAllWidth+getGapWidth(remainingItemsCount+(showAll?1:0))+listWidthAdjustment;const hiddenItems=[];for(let index=children.length-1;index>0&&requiredWidth>availableWidth;index--)remainingItemsWidth-=itemWidths[index],remainingItemsCount--,requiredWidth=remainingItemsWidth+showAllWidth+getGapWidth(remainingItemsCount+(showAll?1:0))+listWidthAdjustment,hiddenItems.push(children[index]);return requiredWidth>availableWidth&&availableWidth<=firstItemWidth+showAllWidth+navBuffer?!1:(commitNavOverflowState(instance,allChildren,hiddenItems,showAll,hiddenItems.length>0,hiddenItems.length>0),!0)}function getDirectMenuList(navMain){const children=Array.from(navMain.children);for(let index=0;
1index<children.length;index++)if(children[index].tagName==="UL"&&children[index].hasAttribute("data-type"))return children[index];return null}function removeCloneIds(el){el.removeAttribute&&el.removeAttribute("id"),Array.from(el.querySelectorAll("[id]")).forEach(function(child){child.removeAttribute("id")})}function cleanupNavOverflowInstances(){navOverflowInstances.forEach(function(instance){instance.cleanup()}),navOverflowInstances=[]}function getNavOverflowContext(sectionRoot){const currentTop=getNavOverflowSectionRoot(sectionRoot)||document.querySelector(".shopify-section-header"),currentHeaderOuter=currentTop?currentTop.querySelector("#header-outer"):document.querySelector("#header-outer"),currentHeaderId=currentHeaderOuter?currentHeaderOuter.querySelector("#header"):null,currentHeaderInner=currentTop?currentTop.querySelector("#header-inner"):document.querySelector("#header-inner"),currentLogo=currentTop?currentTop.querySelector("#logo"):document.querySelector("#logo");return{topId:currentTop,headerOuter:currentHeaderOuter,headerId:currentHeaderId,headerInner:currentHeaderInner,logoId:currentLogo,logoImg:currentLogo?currentLogo.querySelector("img"):null,navs:currentTop?currentTop.querySelectorAll("#nav, #nav-bar"):document.querySelectorAll("#nav, #nav-bar"),navOuter:currentTop?currentTop.querySelector("#nav-outer"):document.querySelector("#nav-outer"),navId:currentTop?currentTop.querySelector("#nav"):document.querySelector("#nav"),navBarId:currentTop?currentTop.querySelector("#nav-bar"):document.querySelector("#nav-bar")}}function getNavOverflowSectionRoot(sectionRoot){return sectionRoot&&sectionRoot.classList&&sectionRoot.classList.contains("shopify-section-header")?sectionRoot:sectionRoot&&sectionRoot.querySelector?sectionRoot.querySelector(".shopify-section-header"):null}function createNavOverflowInstance(context,navMain){const menuList=getDirectMenuList(navMain);if(!menuList)return null;const instanceNavOuter=navMain.closest("#nav-outer"),usesCenteredLogoExclusion=!!(instanceNavOuter&&context.navOuter&&instanceNavOuter===context.navOuter&&context.headerInner&&context.headerInner.classList.contains("text-center-logo")&&context.headerInner.contains(instanceNavOuter)),showAll=getDirectShowAll(menuList),regularNavItems=getDirectRegularNavItems(menuList);if(!showAll||!regularNavItems.length)return null;menuList.xtraNavOverflowCleanup&&menuList.xtraNavOverflowCleanup(),Array.from(showAll.children).forEach(function(child){child.classList.contains("show-all-submenu")&&child.parentNode.removeChild(child)});const all_submenu=createElementWithClass("ul","show-all-submenu");showAll.appendChild(all_submenu),regularNavItems.forEach(function(el,index){const clone_me=el.cloneNode(!0);removeCloneIds(clone_me),el.setAttribute("data-copy",regularNavItems.length-index),clone_me.setAttribute("data-copy",regularNavItems.length-index),all_submenu.appendChild(clone_me),navOverflowCloneMap.set(el,clone_me)});const instance={active:!0,topId:context.topId,headerOuter:context.headerOuter,headerId:context.headerId,headerInner:context.headerInner,logoId:context.logoId,logoImg:context.logoImg,navOuter:instanceNavOuter,usesCenteredLogoExclusion,ownsHeaderReady:usesCenteredLogoExclusion,navMain,menuList,hasValidState:!1,readyAction:null,readyActionDone:!1,updateNavScheduled:!1,updateNavCallbacks:[],retryCount:0,retryTimer:null,initTimeout:null,resizeHandler:null,fontLoadingDone:null,navResizeObserver:null,cleanup:function(){}};function runCallbacks(callbacks){callbacks.forEach(function(queuedCallback){queuedCallback()})}function runReadyAction(){!instance.active||instance.readyActionDone||typeof instance.readyAction!="function"||isCurrentNavOverflowContext(instance)&&(instance.readyActionDone=!0,instance.readyAction())}function scheduleRetry(callbacks){return!instance.active||instance.hasValidState||instance.retryCount>=4||instance.retryTimer?!1:(callbacks.forEach(function(queuedCallback){instance.updateNavCallbacks.push(queuedCallback)}),instance.retryCount++,instance.retryTimer=setTimeout(function(){instance.retryTimer=null,instance.updateNav()},100*instance.retryCount),!0)}instance.updateNav=function(callback){!instance.active||!isNavOverflowDesktop()||!isCurrentNavOverflowContext(instance)||(typeof callback=="function"&&instance.updateNavCallbacks.push(callback),!instance.updateNavScheduled&&(instance.updateNavScheduled=!0,calcLogoOffset(instance,function(logoOffsetValid){const callbacks=instance.updateNavCallbacks.splice(0);let valid=!1;instance.updateNavScheduled=!1,!(!instance.active||!isNavOverflowDesktop()||!isCurrentNavOverflowContext(instance))&&(logoOffsetValid&&(valid=countNavDistF(instance)),valid?(instance.hasValidState=!0,runReadyAction(),instance.retryCount=0,instance.retryTimer&&(clearTimeout(instance.retryTimer),instance.retryTimer=null),runCallbacks(callbacks)):instance.hasValidState?runCallbacks(callbacks):scheduleRetry(callbacks)||(instance.updateNavCallbacks=[]))})))},instance.readyAction=function(){instance.ownsHeaderReady&&(instance.topId&&instance.topId.classList.add("ready"),instance.headerId&&instance.headerId.classList.add("ready"),instance.headerOuter&&instance.headerOuter.classList.add("ready"))};function logoLoad(){instance.updateNav()}if(instance.initTimeout=setTimeout(function(){!instance.active||!isNavOverflowDesktop()||(instance.navOuter?instance.logoImg?instance.logoImg.complete?logoLoad():instance.logoImg.addEventListener("load",logoLoad):logoLoad():instance.updateNav())},250),document.fonts&&document.fonts.ready&&(document.fonts.ready.then(function(){instance.updateNav()}),typeof document.fonts.addEventListener=="function"&&(instance.fontLoadingDone=function(){instance.updateNav()},document.fonts.addEventListener("loadingdone",instance.fontLoadingDone))),instance.resizeHandler=throttle(function(){isNavOverflowDesktop()&&(instance.ownsHeaderReady&&instance.headerOuter&&instance.headerOuter.classList.remove("ready"),instance.updateNav(function(){instance.ownsHeaderReady&&instance.headerOuter&&instance.headerOuter.classList.add("ready")}))},250),window.addEventListener("resize",instance.resizeHandler),typeof ResizeObserver<"u"){let observeNavElement=function(target){target&&observedElements.indexOf(target)===-1&&(instance.navResizeObserver.observe(target),observedElements.push(target))};const observedElements=[];instance.navResizeObserver=new ResizeObserver(function(){instance.updateNav()}),observeNavElement(instance.headerId),observeNavElement(instance.headerInner),observeNavElement(instance.logoId),observeNavElement(instance.navOuter),observeNavElement(instance.navMain)}return instance.cleanup=function(){instance.active=!1,instance.readyAction=null,instance.updateNavCallbacks=[],removeCalcLogoOffsetCallbacks(instance),clearTimeout(instance.initTimeout),instance.retryTimer&&(clearTimeout(instance.retryTimer),instance.retryTimer=null),instance.resizeHandler&&window.removeEventListener("resize",instance.resizeHandler),instance.logoImg&&instance.logoImg.removeEventListener("load",logoLoad),document.fonts&&instance.fontLoadingDone&&typeof document.fonts.removeEventListener=="function"&&document.fonts.removeEventListener("loadingdone",instance.fontLoadingDone),instance.navResizeObserver&&instance.navResizeObserver.disconnect(),menuList.xtraNavOverflowCleanup===instance.cleanup&&(menuList.xtraNavOverflowCleanup=null)},menuList.xtraNavOverflowCleanup=instance.cleanup,instance}function initializeNavOverflow(sectionRoot){if(cleanupNavOverflowInstances(),!isNavOverflowDesktop())return;const context=getNavOverflowContext(sectionRoot);if(!context.topId||!context.headerOuter||!context.navs.length){clearLogoOffset();return}(!context.headerInner||!context.headerInner.classList.contains("text-center-logo"))&&clearLogoOffset(context),context.navOuter&&context.topId.classList.add("has-nav-outer"),context.navId&&context.navId.classList.contains("no-wide")&&context.topId.classList.add("has-no-wide"),context.navBarId&&context.navBarId.classList.contains("no-wide")&&context.topId.classList.add("has-no-wide");let hasHeaderReadyOwner=!1;
1Array.from(context.navs).forEach(function(navMain){navMain.closest("#header-inner")!==null?html_tag.classList.add("has-inside-nav"):html_tag.classList.remove("has-inside-nav");const instance=createNavOverflowInstance(context,navMain);instance&&(hasHeaderReadyOwner=hasHeaderReadyOwner||instance.ownsHeaderReady,navOverflowInstances.push(instance))}),context.navOuter&&!hasHeaderReadyOwner&&(context.topId.classList.add("ready"),context.headerId&&context.headerId.classList.add("ready"),context.headerOuter.classList.add("ready"))}function handleNavOverflowSectionLoad(evt){const sectionRoot=evt.target?getNavOverflowSectionRoot(evt.target):null;if(sectionRoot){if(!isNavOverflowDesktop()){cleanupNavOverflowInstances(),clearLogoOffset();return}initializeNavOverflow(sectionRoot)}}function handleNavOverflowSectionUnload(evt){let shouldCleanup=!1,offsetContext=null;navOverflowInstances.forEach(function(instance){evt.target&&(evt.target.contains(instance.menuList)||evt.target.contains(instance.navMain))&&(shouldCleanup=!0,offsetContext||(offsetContext=instance))}),shouldCleanup&&(cleanupNavOverflowInstances(),clearLogoOffset(offsetContext))}function handleNavOverflowBreakpoint(evt){evt.matches?initializeNavOverflow():(cleanupNavOverflowInstances(),clearLogoOffset())}if(document.xtraNavOverflowGlobalCleanup&&document.xtraNavOverflowGlobalCleanup(),document.xtraNavOverflowGlobalCleanup=function(){cleanupNavOverflowInstances(),clearLogoOffset(),document.removeEventListener("shopify:section:load",handleNavOverflowSectionLoad),document.removeEventListener("shopify:section:unload",handleNavOverflowSectionUnload),typeof navOverflowDesktop.removeEventListener=="function"?navOverflowDesktop.removeEventListener("change",handleNavOverflowBreakpoint):navOverflowDesktop.removeListener(handleNavOverflowBreakpoint)},document.addEventListener("shopify:section:load",handleNavOverflowSectionLoad),document.addEventListener("shopify:section:unload",handleNavOverflowSectionUnload),typeof navOverflowDesktop.addEventListener=="function"?navOverflowDesktop.addEventListener("change",handleNavOverflowBreakpoint):navOverflowDesktop.addListener(handleNavOverflowBreakpoint),initializeNavOverflow(),navs.length&&Array.from(navs).forEach(function(navMain){if(navMain.querySelector("[data-type]")){const staticSubmenus=navMain.getElementsByClassName("sub-static");if(staticSubmenus.length){let executeCheckInv=function(){checkInvExecuted||(Array.from(staticSubmenus).forEach(function(el){checkInv(el,.5)}),checkInvExecuted=!0)},checkInvExecuted=!1;window.addEventListener("mousemove",executeCheckInv,asyncOnce),window.addEventListener("resize",throttle(function(){checkInvExecuted=!1,executeCheckInv()},500))}}for(const link of navMain.querySelectorAll('a[href="#"]:not(.toggle)')){const parent=link.parentElement;parent&&parent.classList.add("empty-url")}}),search_id&&header_inner&&(search_id.classList.contains("no-bg")&&!search_id.classList.contains("bd-b")&&top_id.classList.add("no-bd-m"),search_id.classList.contains("no-bg")&&top_id.classList.add("no-bd"),search_id.classList.contains("no-pd-t")&&top_id.classList.add("no-pd-t"),!search_id.classList.contains("compact")&&header_inner.classList.contains("hide-btn")&&header_inner.classList.contains("text-center-logo")&&(search_id.classList.add("not-compact"),search_id.classList.contains("not-compact")))){let updateSearch=function(){mediaMax1000.matches?search_id.classList.add("compact"):mediaMin1000.matches&&search_id.classList.remove("compact")};updateSearch(),mediaMax1000.addEventListener("change",updateSearch),mediaMin1000.addEventListener("change",updateSearch)}search_id&&(search_id.classList.contains("compact-handle")?html_tag.classList.add("t1sh-mobile","search-compact-handle"):html_tag.classList.remove("t1sh-mobile","search-compact-handle"),search_id.classList.contains("compact-handle-mobile")?html_tag.classList.add("t1sh-mobile","search-compact-handle","search-compact-handle-mobile"):html_tag.classList.remove("search-compact-handle-mobile"),search_id.classList.contains("compact")?(search_id.classList.contains("compact-handle")?html_tag.classList.add("t1sh"):html_tag.classList.remove("t1sh"),html_tag.classList.add("t1sr")):html_tag.classList.remove("t1sr","t1sh"),html_tag.classList.toggle("search-compact-is-centered",search_id.classList.contains("text-center-sticky")));const a_accessible=document.getElementsByClassName("link-accessible");function setAccessible(on){if(on){html_tag.classList.add("t1ac");try{localStorage.setItem("accessible","1")}
1catch{}}else{html_tag.classList.remove("t1ac");try{localStorage.removeItem("accessible")}catch{}}}function accessibleLink(el){const isActive=document.documentElement.classList.contains("t1ac");if(setAccessible(!isActive),nav_id||nav_bar_id){const tempHidden=nav_main.getElementsByClassName("temp-hidden");setTimeout(()=>{for(const el2 of tempHidden)el2.classList.remove("temp-hidden");window.dispatchEvent(new Event("resize"))},100)}}if(a_accessible.length){for(const el of a_accessible){const parent=el.parentElement;parent&&!parent.classList.contains("has-link-accessible")&&parent.classList.add("has-link-accessible")}html_tag.addEventListener("click",event2=>{event2.target.closest("a.link-accessible")&&(accessibleLink(),event2.preventDefault())}),html_tag.addEventListener("keyup",event2=>{event2.key!==" "&&event2.key!=="Enter"||!event2.target.closest("a.link-accessible")||(accessibleLink(),event2.preventDefault())})}}),window.dispatchEvent(topEvt);const backgroundEvt=new CustomEvent("background");window.addEventListener("background",function(event){const bg_done=document.querySelector("#background.done");bg_done&&bg_done.remove();const bg_id=document.getElementById("background");if(bg_id&&!bg_id.classList.contains("static")&&(bg_id.parentNode.id==="content"||bg_id.parentNode.classList.contains("shopify-section"))){const root=document.getElementById("root")||document.body;root_id&&(root_id.appendChild(bg_id),bg_id.classList.add("done"))}}),window.dispatchEvent(backgroundEvt);const moduleTabsEvt=new CustomEvent("moduleTabs");window.addEventListener("moduleTabs",function(event){if(typeof semanticTabs!="function")return;const tabs_holder=document.querySelectorAll("#content, .m6pn");if(tabs_holder)for(const container of tabs_holder){const module_tabs=container.getElementsByClassName("m6tb");for(const tab of module_tabs)semanticTabs(tab)}}),runWhenIdle(()=>window.dispatchEvent(moduleTabsEvt));const inputPaddingsEvt=new CustomEvent("inputPaddings");window.addEventListener("inputPaddings",function(event){const inputs=document.querySelectorAll('[class*="input-"][class*="fix"]');if(!inputs.length)return;const io=new IntersectionObserver((entries,observer)=>{for(const entry of entries){if(!entry.isIntersecting)continue;const el=entry.target,prefix=el.querySelector("span:first-child");if(!prefix){observer.unobserve(el);continue}const sibling=prefix.nextElementSibling;if(!sibling){observer.unobserve(el);continue}sibling.style.setProperty("--pdi",prefix.offsetWidth+"px"),observer.unobserve(el)}},{root:null,threshold:0});for(const el of inputs)io.observe(el)}),window.dispatchEvent(inputPaddingsEvt);let moduleFeaturedResize=!1;const moduleFeaturedSliderEvt=new CustomEvent("moduleFeaturedSlider");function initializeModuleFeaturedSliders(){const module_featured=document.querySelectorAll(".m6fr:not(.s4wi)");if(module_featured.length){for(const el of module_featured){let updateSwiper=function(swiper){for(const aside of el.querySelectorAll(".swiper-slide > article.aside"))aside.parentNode.classList.add("has-aside");const activeArticle=swiper.el.querySelector(".swiper-slide-active > article");el.dataset.activeContent=activeArticle&&activeArticle.className||"",updateClasses(swiper)},updateClasses=function(swiper){el.classList.toggle("changed",swiper.realIndex>0),el.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)};if(!el.isConnected||el.classList.contains("s4wi"))continue;const total_sl=el.children.length;let pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets",autoplay_int=el.dataset.autoplay?{delay:parseFloat(el.dataset.autoplay),pauseOnMouseEnter:!0}:!1;if(!isHasSelectorSupported())for(const em of el.querySelectorAll("figure"))em.querySelectorAll("picture").length>1&&em.classList.add("has-pics");randomize(el);const randomId=el.dataset.random,featuredSlider=create_slider(el,{direction:"horizontal",loop:!0,autoHeight:!0,resizeObserver:!0,autoplay:autoplay_int,threshold:50,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderBullet:(i,className)=>`<span class="${className}">${i+1}<span class="prg"></span></span>`,renderFraction:(curr,total)=>`<span class="${curr}"></span> <span class="slash">/</span> <span class="${total}"></span>`},on:{afterInit:swiper=>{updateSwiper(swiper),swiper.updateAutoHeight(),updateSliders(el)},slideChangeTransitionStart:swiper=>updateSwiper(swiper),resize:swiper=>{if(isShopifyDesignMode())for(let i=0;i<swiper.slides.length;i++)swiper.slideNext(0);setTimeout(()=>{swiper&&typeof swiper.updateAutoHeight=="function"&&swiper.updateAutoHeight()},500)}}});if(featuredSlider&&el.dataset.autoplay&&!el.classList.contains("no-controls")&&el.dataset.playPauseBound!=="1"){let toggleAutoplay=function(forceStart=!1){el.classList.toggle("paused",!forceStart&&!el.classList.contains("paused"))?featuredSlider.autoplay.stop():featuredSlider.autoplay.start()};el.dataset.playPauseBound="1",append_url(el,"Play/Pause","play-pause");const playPauseBtn=el.querySelector(".play-pause");playPauseBtn&&playPauseBtn.addEventListener("click",e=>{e.preventDefault(),toggleAutoplay()}),el.addEventListener("mouseleave",()=>{el.classList.contains("paused")||featuredSlider.autoplay.start()})}setTimeout(()=>{featuredSlider&&typeof featuredSlider.updateAutoHeight=="function"&&featuredSlider.updateAutoHeight()},500)}moduleFeaturedResize||(moduleFeaturedResize=!0,window.addEventListener("resize",throttle(()=>document.documentElement.classList.add("resized"),200),!0))}}window.addEventListener("moduleFeaturedSlider",function(){const candidates=document.querySelectorAll(".m6fr:not(.s4wi)");let requiresSwiper=!1;for(const el of candidates)if(el.children.length>1){requiresSwiper=!0;break}if(!requiresSwiper){initializeModuleFeaturedSliders();return}runSwiperInitializer(initializeModuleFeaturedSliders)}),window.dispatchEvent(moduleFeaturedSliderEvt);const listTestimonialsSliderEvt=new CustomEvent("listTestimonialsSlider");function initializeTestimonialsSliders(){const list_testimonials=document.querySelectorAll(".l4ts:not
1(.s4wi, .l4ts-mobile-initialized)");if(list_testimonials.length)for(const el of list_testimonials){if(!el.isConnected||el.classList.contains("s4wi")||el.classList.contains("l4ts-mobile-initialized"))continue;let ln=[1,2,3];(el.classList.contains("wide")||el.classList.contains("width-100"))&&(ln=[1,1,1]),el.classList.contains("width-50")&&(ln=[1,2,2]);const pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets";let autoplay_int=!1;el.getAttribute("data-autoplay")&&(autoplay_int={delay:parseFloat(el.getAttribute("data-autoplay")),pauseOnMouseEnter:!0,disableOnInteraction:!1}),randomize(el);const randomId=el.getAttribute("data-random"),total_sl=el.children.length,options={direction:"horizontal",loop:!0,autoHeight:!0,spaceBetween:16,slidesPerView:ln,slidesPerGroup:ln,autoplay:autoplay_int,loopAddBlankSlides:!1,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderFraction:(currentClass,totalClass)=>`<span class="${currentClass}"></span> <span class="slash">/</span> <span class="${totalClass}"></span>`},on:{slideChangeTransitionStart:function(swiper){swiper.el.parentNode.classList.toggle("changed",swiper.realIndex>0),swiper.el.parentNode.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)}},breakpoints:{0:{slidesPerView:ln[0],slidesPerGroup:ln[0]},760:{slidesPerView:ln[1],slidesPerGroup:ln[1]},1e3:{slidesPerView:ln[2],slidesPerGroup:ln[2]}}};if(el.classList.contains("slider")&&el.children.length>ln[2]&&create_slider(el,options),el.classList.contains("slider-mobile")&&el.children.length>ln[0]){const nextSibling=el.nextElementSibling;nextSibling&&nextSibling.matches(".l4ts.mobile-only")&&(nextSibling.hasAttribute("id")&&nextSibling.removeAttribute("id"),create_slider(el.nextElementSibling,options)&&el.classList.add("l4ts-mobile-initialized"))}}}window.addEventListener("listTestimonialsSlider",function(){const candidates=document.querySelectorAll(".l4ts:not
1(.s4wi, .l4ts-mobile-initialized)");let requiresSwiper=!1;for(const el of candidates){let desktopMinimum=3;(el.classList.contains("wide")||el.classList.contains("width-100"))&&(desktopMinimum=1),el.classList.contains("width-50")&&(desktopMinimum=2);const mobileList=el.nextElementSibling,desktopCandidate=el.classList.contains("slider")&&el.children.length>desktopMinimum,mobileCandidate=el.classList.contains("slider-mobile")&&el.children.length>1&&mobileList&&mobileList.matches(".l4ts.mobile-only");if(desktopCandidate||mobileCandidate){requiresSwiper=!0;break}}if(!requiresSwiper){initializeTestimonialsSliders();return}runSwiperInitializer(initializeTestimonialsSliders)}),window.dispatchEvent(listTestimonialsSliderEvt);const listStaticSliderEvt=new CustomEvent("listStaticSlider");function initializeStaticSliders(){const listStatic=document.querySelectorAll(".l4st:not(.static, .s4wi, .l4st-initialized)");if(listStatic.length)for(const el of listStatic){if(!el.isConnected||el.classList.contains("s4wi")||el.classList.contains("l4st-initialized"))continue;el.classList.add("l4st-initialized");const total_sl=el.children.length,pagination_type=el.classList.contains("slider-fraction")?"fraction":"bullets",autoAttr=el.getAttribute("data-autoplay"),autoplay_int=autoAttr?{delay:parseFloat(autoAttr),pauseOnMouseEnter:!0,disableOnInteraction:!1}:!1;randomize(el);const randomId=el.getAttribute("data-random");clone_with_class(el,"mobile-only","mobile-hide");const nextEl=el.nextElementSibling;nextEl&&nextEl.classList.contains("mobile-only")&&(nextEl.removeAttribute("id"),create_slider(nextEl,{direction:"horizontal",loop:!0,autoHeight:!0,spaceBetween:16,autoplay:autoplay_int,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,type:pagination_type,renderFraction:(currentClass,totalClass)=>`<span class="${currentClass}"></span> <span class="slash">/</span> <span class="${totalClass}"></span>`},on:{slideChangeTransitionStart:swiper=>{const parent=swiper.el.parentNode;parent.classList.toggle("changed",swiper.realIndex>0),parent.classList.toggle("last-slide-active",swiper.realIndex+1===total_sl)}}}))}}window.addEventListener("listStaticSlider",function(){const candidates=document.querySelectorAll(".l4st:not(.static, .s4wi, .l4st-initialized)");let requiresSwiper=!1;for(const el of candidates)if(el.children.length>1){requiresSwiper=!0;break}if(!requiresSwiper){initializeStaticSliders();return}runSwiperInitializer(initializeStaticSliders)}),window.dispatchEvent(listStaticSliderEvt);function bindInlineSlideNext(sliderEl){sliderEl&&sliderEl.dataset.inlineNextBound!=="1"&&(sliderEl.dataset.inlineNextBound="1",sliderEl.addEventListener("click",function(e){const link=e.target.closest(".swiper-button-next");if(!link||!link.closest(".swiper-slide"))return;e.preventDefault();const slideNext=()=>{if(!sliderEl.isConnected)return!1;const swiperOuter=sliderEl.querySelector(".swiper-outer");return!swiperOuter||!swiperOuter.swiper?!1:(swiperOuter.swiper.slideNext(),!0)};slideNext()||ensureSwiper().then(()=>setTimeout(slideNext,0),()=>{})}))}const listUspSliderEvt=new CustomEvent("listUspSlider");function initializeUspSliders(){const listUsp=document.querySelectorAll(".l4us:not(.l4us-initialized)");if(listUsp.length)for(const el of listUsp){if(!el.isConnected||el.classList.contains("l4us-initialized")||el.closest(".m6kn")||(el.classList.add("l4us-initialized"),el.classList.contains("static")))continue;let autoplayInt=!1;el.hasAttribute("data-autoplay")&&(autoplayInt={delay:parseFloat(el.getAttribute("data-autoplay")),pauseOnMouseEnter:!0,disableOnInteraction:!1});const spaceBetween=el.classList.contains("no-arrows")?16:44;let slidesPerView=1;el.closest("#nav-top")&&el.classList.contains("slider")&&(el.classList.add("slider-in-header"),el.classList.contains("slider-single")||(slidesPerView="auto")),el.querySelectorAll("li").length===1&&el.classList.remove("slider","slider-single");const options={direction:"horizontal",loop:!0,pagination:!1,autoplay:autoplayInt,slidesPerView,autoHeight:!0,spaceBetween,breakpoints:{0:{slidesPerView:1},760:{slidesPerView},1e3:{spaceBetween},1100:{spaceBetween:20}}};if(!el.classList.contains("mobile-static")){if(el.classList.contains("slider"))create_slider(el,options),bindInlineSlideNext(el);else if(el.children.length>1){clone_with_class(el,"l4us-mobile","mobile-hide");const nextEl=el.nextElementSibling;nextEl&&nextEl.classList.contains("l4us-mobile")&&(nextEl.classList.remove("slider","slider-in-header"),nextEl.hasAttribute("id")&&nextEl.removeAttribute("id"),create_slider(nextEl,options),bindInlineSlideNext(nextEl))}}}}window.addEventListener("listUspSlider",function(){const candidates=document.querySelectorAll(".l4us:not(.l4us-initialized)");let requiresSwiper=!1;for(const el of candidates)if(!(!el.isConnected||el.closest(".m6kn")||el.classList.contains("static")||el.classList.contains("mobile-static"))&&el.children.length>1){requiresSwiper=!0;break}if(!requiresSwiper){initializeUspSliders();return}runSwiperInitializer(initializeUspSliders)}),window.dispatchEvent(listUspSliderEvt);const createColsEvt=new CustomEvent("createCols");window.addEventListener("createCols",function(){const servicePageElement=document.querySelector('[id$="page-service-info-blocks"]');if(!servicePageElement)return;let parent=servicePageElement.parentElement;if(parent&&parent.classList.contains("cols")){const article=parent.querySelector("article.w64.t55");if(article){for(;article.firstChild;)parent.insertBefore(article.firstChild,article);article.remove()}const grandParent=parent.parentNode;for(;parent.firstChild;)grandParent.insertBefore(parent.firstChild,parent);parent.remove()}parent=servicePageElement.parentElement;const wrapper=document.createElement("div");wrapper.classList.add("cols","section-width-boxed");const wrapperInner=document.createElement("article");wrapperInner.classList.add("w64","t55"),wrapper.appendChild(wrapperInner);const possibleSiblings=["shopify-section-page-service-menu","shopify-section-faq","shopify-section-contact-form","shopify-section-google-maps"];let anySiblingFound=!1;for(;servicePageElement.previousElementSibling;){const prevSibling=servicePageElement.previousElementSibling;
1let correctSiblingFound=!1;for(const cls of possibleSiblings)if(prevSibling.classList.contains(cls)){correctSiblingFound=!0;break}if(!correctSiblingFound)break;anySiblingFound=!0,prevSibling.classList.add("w64","t55"),wrapperInner.insertBefore(prevSibling,wrapperInner.firstChild)}anySiblingFound&&(parent.insertBefore(wrapper,servicePageElement),wrapper.appendChild(servicePageElement))}),window.dispatchEvent(createColsEvt),document.addEventListener("shopify:section:load",function(){window.dispatchEvent(createColsEvt)});const showAlertEvt=new CustomEvent("showAlert");window.addEventListener("showAlert",function(event){if(!event||!event.detail||!event.detail.message)return;const{message:messageText,type:messageType,header,origin}=event.detail||{};let messageHeader=header||!1;const messageOrigin=origin?`message-${origin}`:!1,typeMap={success:{color:"lime",defaultHeader:window.translations&&window.translations.general_alerts_success_text||"Success"},info:{color:"pine",defaultHeader:window.translations&&window.translations.general_alerts_info_text||"Info"},error:{color:"rose",defaultHeader:window.translations&&window.translations.general_alerts_error_text||"Error"}},{color:messageColor,defaultHeader}=typeMap[messageType]||{color:"lime",defaultHeader:""};messageHeader||(messageHeader=defaultHeader);const message=`
2		<li class="overlay-${messageColor} ${messageOrigin||""}">
3			<i aria-hidden="true" class="icon-${messageType}"></i>
4			<p class="strong">${messageHeader}</p>
5			<p>${messageText}</p>
6			<a href="#" class="close">Close</a>
7		</li>
8	`;let listAlerts=document.querySelector(".l4al:not(.inline):not(.l4al-trustbadge)");if(listAlerts||(listAlerts=document.createElement("ul"),listAlerts.classList.add("l4al","fixed"),(document.getElementById("root")||document.body).appendChild(listAlerts)),!messageOrigin||listAlerts.getElementsByClassName(messageOrigin).length===0){const temp=document.createElement("div");temp.innerHTML=message.trim();const li=temp.firstElementChild;li&&listAlerts.appendChild(li)}typeof alertsEvt<"u"&&window.dispatchEvent(alertsEvt)},!1);function loadLazyVideo(video){const sources=video.querySelectorAll("source[data-src]");for(let i=0;i<sources.length;i++){const source=sources[i];source.src=source.getAttribute("data-src"),source.removeAttribute("data-src")}video.load(),video.classList.remove("lazy");const p=video.play();p&&typeof p.catch=="function"&&p.catch(function(){})}function defer(fn){const run=function(){setTimeout(fn,500)};if("requestIdleCallback"in window){requestIdleCallback(run,{timeout:1200});return}requestAnimationFrame(run)}function isInViewport(video){const rect=video.getBoundingClientRect(),vh=window.innerHeight||document.documentElement.clientHeight,vw=window.innerWidth||document.documentElement.clientWidth;return rect.bottom>0&&rect.right>0&&rect.top<vh&&rect.left<vw}const lazyVideoEvt=new CustomEvent("lazyVideo");window.addEventListener("lazyVideo",function(){const lazyVideos=Array.from(document.querySelectorAll("video.lazy"));if(!lazyVideos.length)return;if(!("IntersectionObserver"in window)){for(let i=0;i<lazyVideos.length;i++){const video=lazyVideos[i];isInViewport(video)&&defer(function(){loadLazyVideo(video)})}return}const lazyVideoObserver=new IntersectionObserver(function(entries,observer){for(let i=0;i<entries.length;i++){const entry=entries[i];if(!entry.isIntersecting)continue;const video=entry.target;isInViewport(video)?defer(function(){loadLazyVideo(video)}):loadLazyVideo(video),observer.unobserve(video)}},{rootMargin:"300px 0px"});for(let i=0;i<lazyVideos.length;i++)lazyVideoObserver.observe(lazyVideos[i])}),window.dispatchEvent(lazyVideoEvt);const check_limit_event=new CustomEvent("check-limit-event");window.addEventListener("check-limit-event",function(){const checkLimitElements=document.querySelectorAll(".check[data-limit]");if(checkLimitElements.length)for(const el of checkLimitElements){if(el.classList.contains("check-limit-initialized"))continue;el.classList.add("check-limit-initialized");let tagLimit=el.tagName.toLowerCase()==="ul"||el.tagName.toLowerCase()==="ol"?"li":"a";const limitEl=createElementWithClass(tagLimit,"limit"),limitIndex=parseInt(el.dataset.limit,10)-1,trigger=el.children[limitIndex];if(!trigger)continue;const nextAll=Array.from(trigger.parentNode.children).slice(limitIndex+1);for(const em of nextAll)em.classList.contains("hidden")||em.classList.add("hidden-check");const visibleItemsCount=el.querySelectorAll("li:not(.hidden, .tip-cont)").length;if(limitEl.innerText=`+${Math.abs(visibleItemsCount-el.dataset.limit)}`,tagLimit==="li"){const a=document.createElement("a");for(a.href="./";limitEl.firstChild;)a.appendChild(limitEl.firstChild);limitEl.appendChild(a)}el.append(limitEl);const lastDesc=el.querySelector("li.hidden");lastDesc&&el.appendChild(lastDesc)}}),window.dispatchEvent(check_limit_event);const listCollectionEvt=new CustomEvent("listCollection");
8window.addEventListener("listCollection",event=>{const list_collection=document.querySelectorAll(".l4cl");list_collection.length&&requestAnimationFrame(()=>{for(const el of list_collection){if(el.clientHeight<el.scrollHeight&&el.classList.add("is-scrollable"),isHasSelectorSupported())continue;el.querySelectorAll(".small a").forEach(a=>a.classList.add("has-link"));const selectors=[{sel:"div.box",cls:"has-div-box"},{sel:'[class*="l4ml"]',cls:"has-l4ml"},{sel:"picture ~ picture",cls:"has-picture-picture"}];for(const{sel,cls}of selectors)el.querySelectorAll(sel).forEach(em=>{const li=em.closest("li");li&&li.classList.add(cls)})}})}),window.dispatchEvent(listCollectionEvt);const listCollectionSliderEvt=new CustomEvent("listCollectionSlider");function initializeCollectionSliders(){const list_collection_slider=document.querySelectorAll(".l4cl.slider:not(.s4wi), .l4ft.slider:not(.s4wi)");if(list_collection_slider.length)for(const el of list_collection_slider){if(!el.isConnected||el.classList.contains("s4wi"))continue;el.closest(".popup-a")&&el.classList.add("in-popup");const closestTabs=el.closest(".m6tb"),hasFigure=!!el.querySelector("figure:not(:last-child)"),classes=el.classList,computed=getComputedStyle(el),dist_a_value=computed.getPropertyValue("--dist_a").trim(),rowValue=computed.getPropertyValue("--row").trim(),row=rowValue?parseFloat(rowValue):NaN;let spacing=16;if(dist_a_value&&dist_a_value!=="px"){const dist_a=parseFloat(dist_a_value);isNaN(dist_a)||(spacing=dist_a)}let loopMe=classes.contains("slider-loop"),autoHeight=!(classes.contains("static-height")&&!classes.contains("align-stretch")),allowTouch=classe
8s.contains("static-height")||classes.contains("align-center")||classes.contains("align-stretch"),allowTouch_760=!classes.contains("mobile-compact"),autoPlayMe=!1,autoPlaySpeed=300;hasFigure||el.classList.add("no-img"),classes.contains("autoplay")&&(autoPlayMe={delay:0},loopMe=!0,autoPlaySpeed=el.children.length*1e3);let items=[5,5,3];if(classes.contains("text-justify")||classes.contains("auto-width"))items=["auto","auto","auto"],autoHeight=!1;else{const rowItemsMap={12:[12,6,4],11:[11,6,4],10:[10,6,4],9:[9,6,4],8:[8,6,4],7:[7,6,4],6:[6,5,3],5:[5,5,3],4:[4,4,3],3:[3,3,3],2:[2,2,2]};if(!Number.isNaN(row)&&rowItemsMap[row])items=rowItemsMap[row];else{const itemsMap={"in-col":[4,4,3],w8:[12,6,4],w9:[11,6,4],w10:[10,6,4],w11:[9,6,4],w12:[8,6,4],w14:[7,6,4],w16:[6,5,3],w20:[5,5,3],w25:[4,4,3],w33:[3,3,3],w50:[2,2,2]};for(const cls in itemsMap)if(classes.contains(cls)){items=itemsMap[cls];break}}}const handleInit=swiper=>{if(!hasFigure)return;const fig=el.querySelector(".swiper-slide-active figure");if(fig&&fig.offsetHeight>0){const figHeight=fig.offsetHeight+"px";el.style.getPropertyValue("--fih")!==figHeight&&el.style.setProperty("--fih",figHeight)}else el.style.getPropertyValue("--fih")&&el.style.removeProperty("--fih")},throttledHandleInit=throttle(handleInit,100);randomize(el);const randomId=el.getAttribute("data-random");if(create_slider(el,{direction:"horizontal",loop:loopMe,autoHeight,slidesPerView:items[0],focusableElements:"input",spaceBetween:spacing,touchStartPreventDefault:!1,lazy:{loadPrevNext:!0},pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0},autoplay:autoPlayMe,speed:autoPlaySpeed,breakpoints:{0:{simulateTouch:!1,allowTouchMove:!1},760:{slidesPerView:items[2],simulateTouch:allowTouch_760,allowTouchMove:allowTouch_760},1e3:{slidesPerView:items[1],simulateTouch:allowTouch,allowTouchMove:allowTouch},1100:{slidesPerView:items[0],simulateTouch:allowTouch,allowTouchMove:allowTouch}},on:{afterInit(swiper){closestTabs&&setTimeout(handleInit,100),typeof lazyVideoEvt<"u"&&window.dispatchEvent(lazyVideoEvt),updateSliders(el),handleInit()},resize:throttledHandleInit,transitionStart(swiper){swiper.el.classList.add("transition")},transitionEnd(swiper){swiper.el.classList.remove("transition"),handleInit()}}}),el.querySelectorAll(".has-text, .cols").forEach(em=>{const p=em.parentElement;em.classList.contains("has-text")&&p.classList.add("has-text"),em.classList.contains("cols")&&p.classList.add("has-cols")}),hasFigure&&closestTabs&&closestTabs.children.length&&closestTabs.querySelectorAll("a").forEach(link=>link.addEventListener("click",()=>setTimeout(handleInit,100))),hasFigure){const subLi=el.closest("li.sub");subLi&&subLi.addEventListener("mouseenter",()=>setTimeout(handleInit,100))}el.querySelectorAll(".swiper-wrapper[id], .swiper-button-nav[aria-controls]").forEach(node=>{node.removeAttribute("id"),node.removeAttribute("aria-controls")})}}window.addEventListener("listCollectionSlider",function(){const candidates=document.querySelectorAll(".l4cl.slider:not(.s4wi), .l4ft.slider:not(.s4wi)");let requiresSwiper=!1;for(const el of candidates)if(el.children.length>1){requiresSwiper=!0;break}if(!requiresSwiper){initializeCollectionSliders();return}runSwiperInitializer(initializeCollectionSliders)}),window.dispatchEvent(listCollectionSliderEvt);const listProductSliderEvt=new CustomEvent("listProductSlider");let l4prDelegatesAttached=!1;function l4prClick(element){const index=parseInt(element.dataset.l4prIndex,10);if(isNaN(index))return;const slide=()=>{if(!element.isConnected)return!1;let swiperWrapper=null;const m6prElement=element.closest(".m6pr");if(m6prElement!==null&&(swiperWrapper=m6prElement.querySelector(".l4pr.s4wi")),swiperWrapper===null&&(swiperWrapper=document.querySelector(".l4pr.s4wi")),swiperWrapper===null||!swiperWrapper.children.length)return!1;const swiperElement=swiperWrapper.children[0];return swiperElement.swiper?(swiperElement.swiper.slideTo(index),!0):!1};slide()||ensureSwiper().then(()=>setTimeout(slide,0),()=>{})}function attachL4prDelegates(){l4prDelegatesAttached||(l4prDelegatesAttached=!0,document.addEventListener("click",function(event){const tag=event.target.tagName.toLowerCase();if(tag==="option")return;const l4prElement=event.target.closest("[data-l4pr-index]");if(l4prElement&&l4prClick(l4prElement),tag==="a"&&event.target.classList.contains("swiper-pagination-bullet")){const slide=event.target.closest(".swiper-slide");
8slide&&(Array.from(getSiblings(slide)).forEach(sib=>{sib.firstElementChild&&sib.firstElementChild.classList.remove("swiper-pagination-bullet-active")}),event.target.classList.add("swiper-pagination-bullet-active")),event.preventDefault()}}),document.addEventListener("change",function(event){if(event.target.tagName.toLowerCase()!=="select")return;const selectedOption=event.target.options[event.target.selectedIndex];selectedOption&&l4prClick(selectedOption)}))}function initializeProductSliders(){const list_product_slider=document.querySelectorAll(".l4pr");if(list_product_slider.length){html_tag.classList.add("t1pr"),attachL4prDelegates();for(let el of list_product_slider){if(!el.isConnected||el.classList.contains("s4wi")||el.classList.contains("l4pr-initialized"))continue;el.classList.add("l4pr-initialized");let hasStickyNote=!1,stickyNote=[];if(el.classList.contains("static")){const clone_me=el.cloneNode(!0);clone_me.classList.remove("static"),clone_me.classList.add("desktop-hide"),el.classList.add("desktop-only"),el.after(clone_me),el=el.nextElementSibling}const mainSliderElement=el,children=[...mainSliderElement.children],total_sl=children.length;let initial_slide=parseFloat(el.getAttribute("data-featured_media_position")||1)-1;const stickyNotes=[...mainSliderElement.querySelectorAll("li.sticky")];stickyNotes.length&&(hasStickyNote=!0,stickyNote=stickyNotes,stickyNotes.forEach(child=>child.remove())),mainSliderElement.querySelectorAll("a > .model-3d:first-child model-viewer[poster]").forEach(em=>{const posterSrc=em.getAttribute("poster");if(!posterSrc)return;const staticPosterWrapper=createElementWithClass("picture","just-poster"),staticPoster=document.createElement("img");staticPoster.src=staticPoster.dataset.src=posterSrc;const alt=em.getAttribute("alt");alt&&(staticPoster.alt=alt),staticPosterWrapper.prepend(staticPoster);const closestLink=em.closest("a");closestLink&&closestLink.prepend(staticPosterWrapper)}),!el.classList.contains("thumbs-static")&&!el.classList.contains("thumbs-slider")&&children[4]&&(children[4].classList.add("more"),append_url(children[4],"+"+(children.length-5),"more"));const slides=[...mainSliderElement.cloneNode(!0).children];[...el.getElementsByClassName("m6bx")].forEach(em=>{em.classList.add("m6bx-inside"),el.firstElementChild.appendChild(em),em.remove()}),randomize(el);const randomId=el.getAttribute("data-random"),setNavigationHeight=swiper=>{const h=`${swiper.height}px`;swiper.navigation.prevEl&&(swiper.navigation.prevEl.style.height=h),swiper.navigation.nextEl&&(swiper.navigation.nextEl.style.height=h)},mainSlider=create_slider(mainSliderElement,{direction:"horizontal",loop:!1,autoHeight:!0,preloadImages:!1,initialSlide:initial_slide,pagination:{el:`.swiper-pagination-${randomId}`,clickable:!0,renderBullet:(index,className)=>{const finalSpan=createElementWithClass("a",className),slideClass=slides[index].className||"";["portrait","landscape","square","stripe"].forEach(o=>{slideClass.includes(o)&&finalSpan.classList.add(`orientation-${o}`)}),slideClass.includes("auto")&&(finalSpan.classList.add("auto"),finalSpan.classList.remove("landscape","portrait"));const img=slides[index].querySelector("picture, img");if(img){const a_thumb=img.closest("a[data-gallery-thumb]");if(a_thumb){const thumbImg=document.createElement("img");thumbImg.src=a_thumb.getAttribute("data-gallery-thumb"),thumbImg.loading="lazy",thumbImg.alt="Thumbnail";const thumbPic=document.createElement("picture"),picClassEl=a_thumb.querySelector("picture[class]");picClassEl&&(thumbPic.className=picClassEl.className),thumbPic.appendChild(thumbImg),finalSpan.appendChild(thumbPic)}else finalSpan.appendChild(img)}const divFlex=document.createElement("span");if(slides[index].querySelector("a.more")&&children.length-1-index>0){const span=document.createElement("span");span.innerText="+"+(children.length-1-index),divFlex.appendChild(span),finalSpan.classList.add("has-more"),slides[index].querySelectorAll("a[data-fancybox]").forEach(em=>finalSpan.setAttribute("href",em.getAttribute("href")))}const icon=slides[index].querySelector("i[class^=icon-]");return icon&&divFlex.appendChild(icon),finalSpan.appendChild(divFlex),finalSpan.outerHTML}},navigation:{nextEl:`[data-random="${randomId}"] .swiper-button-next`,prevEl:`[data-random="${randomId}"] .swiper-button-prev`},on:{activeIndexChange(){const activeIndex=this.activeIndex,slidesCount=this.slides?this.slides.length:children.length;[...this.el.parentNode.getElementsByClassName("custom-progressbar-inner")].forEac
8h(bar=>{bar.style.width=`${100*(activeIndex+1)/slidesCount}%`})},afterInit(swiper){const progress_bar=createElementWithClass("div","custom-progressbar"),progress_bar_inner=createElementWithClass("div","custom-progressbar-inner");if(progress_bar_inner.style.width=`${100/children.length}%`,progress_bar.appendChild(progress_bar_inner),swiper.el.appendChild(progress_bar),[...swiper.el.querySelectorAll(".s1lb, .label")].forEach(em=>swiper.el.parentNode.appendChild(em)),[...swiper.el.getElementsByClassName("m6bx-inside")].forEach(em=>swiper.el.appendChild(em)),el.classList.contains("no-thumbs-mobile")||el.classList.contains("slider-fraction")){const custom_fraction=swiper.el.parentNode.querySelector(".swiper-custom-fraction"),current=createElementWithClass("span","swiper-pagination-current");current.textContent="1";const slash=createElementWithClass("span","slash");slash.textContent="/";const total=createElementWithClass("span","total-el");total.textContent=swiper.slides.length,custom_fraction.append(current,document.createTextNode(" "),slash,document.createTextNode(" "),total)}setTimeout(()=>setNavigationHeight(swiper),300)},slideChangeTransitionEnd(swiper){setTimeout(()=>setNavigationHeight(swiper),300)},slideChangeTransitionStart(swiper){setTimeout(()=>{const slidesCount=swiper.slides?swiper.slides.length:total_sl;if(el.classList.contains("no-thumbs-mobile")||el.classList.contains("slider-fraction")){const custom_fraction=swiper.el.parentNode.querySelector(".swiper-pagination-current");custom_fraction.innerHTML=swiper.realIndex+1,swiper.el.classList.toggle("changed",swiper.realIndex>0)}swiper.el.classList.toggle("last-slide-active",swiper.realIndex+1===slidesCount)},300)},resize(swiper){setNavigationHeight(swiper)}}});if(hasStickyNote&&stickyNote.forEach(imgOverlay=>{(el.querySelector(".swiper-outer")||el).appendChild(imgOverlay)}),el.classList.contains("thumbs-slider")){const bulletsSelector=`[data-random="${randomId}"] .swiper-pagination-bullets`,customBullets=el.querySelector(bulletsSelector);clone_with_class(customBullets,"cloned","hidden");const clonedBullets=el.querySelector(`${bulletsSelector}.cloned`);[...clonedBullets.children].forEach((child,i)=>child.dataset.l4prIndex=i),create_slider(clonedBullets,{direction:"horizontal",loop:!1,autoHeight:!1,slidesPerView:"auto",navigation:{nextEl:`${bulletsSelector} .swiper-button-next`,prevEl:`${bulletsSelector} .swiper-button-prev`}})}}}}window.addEventListener("listProductSlider",function(){const candidates=document.querySelectorAll(".l4pr:not(.s4wi, .l4pr-initialized)");if(!candidates.length)return;let requiresSwiper=!1;for(const el of candidates){let slideCount=0;for(const child of el.children)child.classList.contains("sticky")||(slideCount+=1);if(slideCount>1){requiresSwiper=!0;break}}if(!requiresSwiper){initializeProductSliders();return}runSwiperInitializer(initializeProductSliders)}),window.dispatchEvent(listProductSliderEvt);const selectTagEvt=new CustomEvent("selectTag");window.addEventListener("selectTag",function(event){const select_tag=document.getElementsByTagName("select");if(select_tag.length)for(const el of select_tag){const parentNode=el.parentNode;parentNode&&parentNode.classList.add("has-select");const closestParagraph=el.closest("p");closestParagraph&&closestParagraph.classList.add("has-select"),el.getAttribute("data-select-tag-bound")!=="1"&&(el.setAttribute("data-select-tag-bound","1"),el.addEventListener("change",()=>{el.classList.contains("changed")||el.classList.add("changed")}))}}),window.dispatchEvent(selectTagEvt);const formZindexEvt=new CustomEvent("formZindex");let formZindexListenersBound=!1,formZindexCalculated=!1,formZindexScheduled=!1,formZindexDirty=!1;function handleFormZindexChildren(){formZindexScheduled||(formZindexScheduled=!0,requestAnimationFrame(()=>{if(formZindexScheduled=!1,formZindexCalculated&&!formZindexDirty)return;const formChildren=document.querySelectorAll("form > *, fieldset > *, .no-zindex, .no-zindex > *, .has-select, .f8pr > *, .l4ca.compact.in-panel > *, .l4cl.box > li, .f8pr-bulk > *");formChildren.length&&assignIndex(formChildren),formZindexCalculated=!0,formZindexDirty=!1}))}function bindFormZindexListeners(){formZindexListenersBound||(formZindexListenersBound=!0,isMobile||window.addEventListener("mousemove",handleFormZindexChildren,asyncOnce),document.addEventListener("keyup",handleFormZindexChildren,asyncOnce),document.addEventListener("touchstart",handleFormZindexChildren,asyncPass),document.addEventListener("scroll",handleFormZindexChildren,asyncPass),window.addEventListener("resize",throttle(handleFormZindexChildren,500)))}window.addEventListener("formZindex",function(event){window.dispatchEvent(selectTagEvt),formZindexDirty=!0,bindFormZindexListeners(),formZindexCalculated&&handleFormZindexChildren()}),runWhenIdle(()=>window.dispatchEvent(formZindexEvt));/*! Async Resources & Touch Interaction -------------------------------------------------- */const outline_js=fp("js/plugin-outline.js","plugin_outline_js"),css_async=fp("styles/async.css","async_css"),css_menu=fp("styles/async-menu.css","async_menu_css"),css_hovers=fp("styles/async-hovers.css","async_hovers_css"),css_hovers_hack=fp("styles/async-hovers-hack.css","async_hovers_hack_css"),validation_css=fp("styles/async-validation.css","async_validation_css"),isFakeNoHover=navigator.maxTouchPoints>0&&window.matchMedia("(pointer: fine)").matches&&!window.matchMedia("(hover: hover)").matches;let asyncCSSLoaded=!1;function asyncCSS(){if(asyncCSSLoaded)return;new_css("async-css",css_async),new_css("hovers-css",css_hovers),isFakeNoHover&&new_css("hovers-hack-css",css_hovers_hack),new_css("menu-css",css_menu),loadRes(outline_js,()=>{},"outline-loaded"),asyncCSSLoaded=!0;const skip_id=document.getElementById("skip");if(skip_id&&nav_bar_id){const link=skip_id.querySelector('a[href="#nav"]');link&&link.setAttribute("href","#nav-bar")}}window.addEventListener("mousemove",asyncCSS,asyncOnce),document.addEventListener("keyup",asyncCSS,asyncOnce),document.addEventListener("touchstart",asyncCSS,asyncPass),document.addEventListener("pointerdown",asyncCSS,asyncPass),document.addEventListener("scroll",asyncCSS,asyncPass);let touchMoving=!1,lastScrollY=0,scrollCheckTimeout;window.addEventListener("touchstart",()=>{clearTimeout(scrollCheckTimeout),touchMoving=!0,html_tag.classList.add("touch-moving")},{passive:!0}),window.addEventListener("touchend",()=>{const checkScrollEnd=()=>{const currentY=window.scrollY;Math.abs(currentY-lastScrollY)<2?(touchMoving=!1,html_tag.classList.remove("touch-moving")):(lastScrollY=currentY,scrollCheckTimeout=setTimeout(checkScrollEnd,100))};lastScrollY=window.scrollY,scrollCheckTimeout=setTimeout(checkScrollEnd,100)},{passive:!0});const custom_async_js=fp("js/custom-async.js","custom_async_js");let customAsyncRuntimePromise=null;const customAsyncRuntimeTimeout=15e3;function isCustomAsyncRuntimeReady(){return!!(window.ajaxCart&&typeof window.ajaxCart.init=="function"&&typeof window.ajaxCart.open=="function"&&typeof window.ajaxCart.refresh=="function")}function getNormalizedScriptUrl(url){try{const parsedUrl=new URL(url,document.baseURI);return{href:parsedUrl.href,withoutQuery:parsedUrl.origin+parsedUrl.pathname}}catch{const stringUrl=String(url||"");return{href:stringUrl,withoutQuery:stringUrl.split("?")[0]}}}function findCustomAsyncScript(){const expectedUrl=getNormalizedScriptUrl(custom_async_js),scripts=document.scripts;for(let i=0;i<scripts.length;i++){const script=scripts[i],scriptUrl=getNormalizedScriptUrl(script.src);if(script.dataset.xtraCustomAsync==="true"||scriptUrl.href===expectedUrl.href||scriptUrl.withoutQuery===expectedUrl.withoutQuery)return script}return null}function setCustomAsyncRuntimeState(script,state){script.dataset.xtraRuntimeState=state,state==="loaded"?(html_tag.classList.remove("custom-async-loading"),html_tag.classList.add("custom-async-loaded")):(state==="failed"||state==="invalid")&&html_tag.classList.remove("custom-async-loading","custom-async-loaded")}function monitorCustomAsyncScript(script){script.dataset.xtraRuntimeMonitor!=="true"&&(script.dataset.xtraRuntimeMonitor="true",script.addEventListener("load",function(){setCustomAsyncRuntimeState(script,
8isCustomAsyncRuntimeReady()?"loaded":"invalid")},{once:!0}),script.addEventListener("error",function(){setCustomAsyncRuntimeState(script,"failed")},{once:!0}))}function ensureCustomAsyncRuntime(){return isCustomAsyncRuntimeReady()?(html_tag.classList.add("custom-async-loaded"),Promise.resolve(window.ajaxCart)):customAsyncRuntimePromise||(customAsyncRuntimePromise=new Promise(function(resolve,reject){let script=findCustomAsyncScript(),shouldAppendScript=!1,settled=!1,timeoutId=null;if(script&&script.dataset.xtraRuntimeState==="failed"&&(script.remove(),script=null),script&&script.dataset.xtraRuntimeState==="invalid"){reject(new Error("custom-async.js executed without exposing the expected Xtra cart runtime."));return}script||(script=document.createElement("script"),script.src=custom_async_js,script.async=!0,script.dataset.xtraCustomAsync="true",shouldAppendScript=!0),monitorCustomAsyncScript(script);const cleanup=()=>{clearTimeout(timeoutId),script.removeEventListener("load",handleLoad),script.removeEventListener("error",handleError)},fail=(error,state)=>{settled||(settled=!0,cleanup(),state&&setCustomAsyncRuntimeState(script,state),html_tag.classList.remove("custom-async-loading"),reject(error))},handleLoad=()=>{if(!settled){if(!isCustomAsyncRuntimeReady()){fail(new Error("custom-async.js loaded without exposing the expected Xtra cart runtime."),"invalid");return}settled=!0,cleanup(),setCustomAsyncRuntimeState(script,"loaded"),resolve(window.ajaxCart)}},handleError=()=>{fail(new Error(`Script failed: ${custom_async_js}`),"failed")};if(script.dataset.xtraRuntimeState==="loaded"){setTimeout(handleLoad,0);return}script.dataset.xtraRuntimeState||(script.dataset.xtraRuntimeState="loading"),html_tag.classList.add("custom-async-loading"),script.addEventListener("load",handleLoad,{once:!0}),script.addEventListener("error",handleError,{once:!0}),timeoutId=setTimeout(()=>{fail(new Error(`Script timed out: ${custom_async_js}`))},customAsyncRuntimeTimeout),shouldAppendScript?document.body.appendChild(script):setTimeout(()=>{isCustomAsyncRuntimeReady()&&handleLoad()},0)}).catch(error=>{throw customAsyncRuntimePromise=null,error}),customAsyncRuntimePromise)}window.XtraTheme=window.XtraTheme||{},window.XtraTheme.ensureCustomAsyncRuntime=ensureCustomAsyncRuntime,runWhenIdle(()=>{ensureCustomAsyncRuntime().catch(error=>{console.warn("custom-async runtime failed to load",error)})});
9//# sourceMappingURL=/cdn/shop/t/35/assets/custom.js.map?v=90573325345238732711791373401

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.