PageSourceSearch

https://www.bonescoffee.com/cdn/shop/t/332/assets/main.min.js?v=64145554030844055051787600578

js bonescoffee.com collected 2026-09-25 19:36:25 UTC 25,368 bytes, 1 lines download raw bytes

1!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";window.EventBus=new class{constructor(){this.bus={}}on(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)this.on(t[n],e);else this.bus.hasOwnProperty(t)||(this.bus[t]=[]),this.bus[t].push(e)}remove(t){delete this.bus[t]}emit(t,e=null){if(this.bus.hasOwnProperty(t))for(const n of this.bus[t])n(e)}};const t=["mousedown","mousemove","keydown","scroll","touchstart"],e=()=>{window.EventBus.emit("page:interaction"),n(!0)},n=n=>{if(!0===n)for(const n of t)document.removeEventListener(n,e,!0);if(!0!==n)for(const n of t)document.addEventListener(n,e,!0)};window.addEventListener("load",n);const i=document.getElementById("promoBar"),o=document.getElementById("primaryHeader"),s=t=>{const e=t[0],n=document.documentElement.style;if(void 0!==e.isIntersecting){const t=e.isIntersecting?e.boundingClientRect.height:0;n.setProperty("--promo-bar-height",`${t}px`)}n.setProperty("--header-height",`${o.offsetHeight}px`)};i&&(()=>{const t=s,e=new IntersectionObserver(t),n=new ResizeObserver(t);e.observe(i),n.observe(o),n.observe(i)})();const a="is-active",c="is-visible",r=async(t,e=null,n=!0)=>{try{const s=await(i=t,o=e,o=o||{},new Promise((function(t,e){var n=new XMLHttpRequest,s=[],a=[],c={},r=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:r,headers:{keys:function(){return s},entries:function(){return a},get:function(t){return c[t.toLowerCase()]},has:function(t){return t.toLowerCase()in c}}}};for(var d in n.open(o.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){s.push(e=e.toLowerCase()),a.push([e,n]),c[e]=c[e]?c[e]+","+n:n})),t(r())},n.onerror=e,n.withCredentials="include"==o.credentials,o.headers)n.setRequestHeader(d,o.headers[d]);n.send(o.body||null)})));if(!s.ok)return console.error(`Error ${s.status}`),s;if(n)return await s.json();if(!n)return await s.text()}catch(t){console.error(t)}var i,o},d=(t,e,n,i)=>{n&&0!=i?t.setAttribute(e,n):t.removeAttribute(e)};async function u(t,e=!0,n=300,i=!1){e&&(i&&d(t,"aria-hidden",void 0,!1),t.classList.add(a),await h(1),t.classList.add(c)),e||(t.classList.remove(c),await h(n),t.classList.remove(a),i&&d(t,"aria-hidden","true"))}function h(t){return t=t||2e3,new Promise((e=>{setTimeout((()=>{e()}),t)}))}function l(t=document){return Array.from(t.querySelectorAll('a[href], button, input:not([type="hidden"]), textarea, select, details, iframe, [tabindex]:not([tabindex="-1"]), video')).filter((t=>!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden")))}class m{constructor(t,e){this.container=t,this.addedElement=e,this.eventHandler=this.handleKeydown.bind(this),this.observer=void 0,this.updateVariables(),this.observeContainer(),this.container.addEventListener("keydown",this.eventHandler)}updateVariables(){this.allFocusable=l(this.container),this.addedElement&&this.allFocusable.unshift(this.addedElement),this.firstElement=this.allFocusable[0],this.lastElement=this.allFocusable[this.allFocusable.length-1]}observeContainer(){this.observer=new MutationObserver(this.updateVariables.bind(this)),this.observer.observe(this.container,{characterData:!1,childList:!0,attributes:!0,subtree:!0})}handleKeydown(t){if(!("Tab"===t.key))return;this.handleTabbing(t)||this.handleTabbingAway(t)}handleTabbing(t){const e=document.activeElement;if(t.shiftKey){if(this.addedElement&&!this.allFocusable.includes(e))return this.focusOn(this.firstElement,t);if(e===this.firstElement)return this.focusOn(this.lastElement,t)}else if(e==this.lastElement)return this.focusOn(this.firstElement,t);return!1}focusOn(t,e){return t.focus(),e.preventDefault(),!0}async handleTabbingAway(t){await h(10),this.allFocusable.includes(document.activeElement)||this.stopTrapFocus()}stopTrapFocus(){this.container.removeEventListener("keydown",this.eventHandler),this.observer.disconnect()}}function w(t,e,n,i=!0){const o=new IntersectionObserver((t=>{for(let n=0;n<t.length;n++){const s=t[n];if(s.isIntersecting){let t=s.target;e(t,s.boundingClientRect),i&&o.unobserve(t)}}}),n||{rootMargin:"50%",threshold:0});for(const e of document.querySelectorAll(t))o.observe(e)}class f{constructor(t,e,n,i=!1,o,s=500){this.selectors={closeBtn:o||"[data-behavior='close-modal']"},this.content={modal:t,modalDocument:t.firstElementChild,button:e,overlay:n,closeBtns:[...t.querySelectorAll(this.selectors.closeBtn)]}
1,this.state={timeout:s,trapButton:i,scrollAlreadyDisabled:window.pageScrollDisabled,trapFocus:void 0,observer:new MutationObserver(this.t.bind(this)),autoCloseModal:"true"===this.content.button.dataset.autoCloseModal,originalFocus:document.activeElement},this.eventHandlers={event:this.i.bind(this),closeEvent:this.o.bind(this),handleExternalClick:this.u.bind(this),handleFocusOut:this.h.bind(this)},this.l(),this.m(),this.p()}async l(){f.v(this.content.modal,this.content.modalDocument,!0),f.k(this.content.button,!0),this.scrollAlreadyDisabled||function(){const t=document.body.style;document.documentElement.style.scrollBehavior="unset",window.scrollPosition=window.scrollY,window.scrollTo(0,window.scrollPosition),t.position="fixed",t.scrollbarGutter="stable",t.top=`-${window.scrollPosition}px`,window.pageScrollDisabled=!0}(),u(this.content.modal,!0,this.state.timeout),this.content.overlay&&u(this.content.overlay),await h(10),this.content.modalDocument.focus(),this.state.trapFocus=this.state.trapButton?new m(this.content.modal,this.button):new m(this.content.modal),window.EventBus.emit("modalOpened",this.content.modal)}o(t=!0){this.state.observer.disconnect(),this._(),this.state.trapFocus.stopTrapFocus(),this.state.observer.disconnect(),((t=document,e)=>{if(!t)return;const n=t.querySelectorAll("iframe"),i=t.querySelectorAll("video");for(const t of n)t!=e&&(t.contentWindow?(t.src.startsWith("https://www.youtube")&&t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),t.src.startsWith("https://player.vimeo")&&t.contentWindow.postMessage('{"method":"pause"}',"*")):t.src=t.src);for(const t of i)t!=e&&t.pause()})(this.modal),f.v(this.content.modal,this.content.modalDocument,!1),this.content.overlay&&u(this.content.overlay,!1,this.state.timeout),f.k(this.content.button,!1,t),this.scrollAlreadyDisabled||function(){const t=document.body.style;t.removeProperty("position"),t.removeProperty("top"),t.removeProperty("scrollbar-gutter"),window.scrollTo(0,window.scrollPosition),document.documentElement.style.removeProperty("scroll-behavior"),window.pageScrollDisabled=!1}(),u(this.content.modal,!1,this.state.timeout),window.EventBus.emit("modalClosed",this.content.modal)}t(){this.content.modalDocument=this.content.modal.firstElementChild,this.content.closeBtns=[...this.content.modal.querySelectorAll(this.selectors.closeBtn)]}p(){this.state.observer.observe(this.content.modal,{characterData:!1,childList:!0,attributes:!1,subtree:!0})}i(t){const e=t.target,n=t.type,i=t.key;("click"===n&&(this.content.closeBtns.includes(e)||e==this.content.button)||"keydown"===n&&"Escape"===i)&&(t.stopImmediatePropagation(),this.o(),console.log("hide modal via click",this))}async h(){this.state.originalFocus.removeEventListener("focusout",this.eventHandlers.handleFocusOut),await h(50),this.content.modal.contains(document.activeElement)||this.o(!1)}async u(){const t=document.activeElement;this.state.originalFocus=t,this.content.modal.contains(document.activeElement)?t.addEventListener("focusout",this.eventHandlers.handleFocusOut):this.o(!1)}m(){this.content.overlay&&this.content.overlay.addEventListener("click",this.eventHandlers.closeEvent),this.content.button.addEventListener("click",this.eventHandlers.event),this.content.modal.addEventListener("click",this.eventHandlers.event),this.content.modal.addEventListener("keydown",this.eventHandlers.event),this.state.autoCloseModal&&this.content.modal.addEventListener("click",this.eventHandlers.handleExternalClick)}_(){this.content.overlay&&this.content.overlay.removeEventListener("click",this.eventHandlers.closeEvent),this.content.button.removeEventListener("click",this.eventHandlers.event),this.content.modal.removeEventListener("click",this.eventHandlers.event),this.content.modal.removeEventListener("keydown",this.eventHandlers.event),this.state.autoCloseModal&&this.content.modal.removeEventListener("click",this.eventHandlers.handleExternalClick)}static k(t,e,n=!0){e?(d(t,"aria-expanded","true"),t.classList.add(a)):(d(t,"aria-expanded","false"),t.classList.remove(a),n&&t.focus())}static v(t,e,n){d(t,"role","dialog",n),d(t,"aria-modal","true",n),d(e,"role","document",n),d(e,"tabindex","0",n);let i=t.dataset.ariaLabel||"Modal",o=e.dataset.ariaLabel||"Content";d(t,"aria-label",i,n),d(e,"aria-label",o,n)}}const p="loaded",y='[data-image-load="lazy"]',v='[data-image-load="eager"]',b
1="[data-srcbackground]",g='[data-image-load="interaction"]',k=(t,e=t.getBoundingClientRect())=>{if(!t.classList.contains(p)){function n(){e.width>0?E(t,e,!0):h(200).then((()=>{n()}))}n()}};function _(t){t.style.backgroundImage=`url("${t.getAttribute("data-srcbackground")}")`,t.classList.add(p)}function x(){w(`${y}, ${v}`,E)}function E(t,e,n=!1){const i=Array.from(t.querySelectorAll("source"));let o=e?`${parseInt(Math.max(e.height,e.width))}px`:`${t.getBoundingClientRect().width}px`;if("0px"==o&&h(50).then((()=>E(t))),i.forEach((e=>{e.sizes=o,n&&(e.srcset=e.dataset.srcset,t.classList.add(p))})),0==i.length&&n)return t.sizes=o,t.hasAttribute("data-src")&&(t.src=t.getAttribute("data-src")),void t.classList.add(p)}const j=()=>{let t=`${y}:not(.${p})`,e=`${b}:not(.${p})`;Shopify.designMode&&(t=`${y}, ${g}`,e=`${b}`),w(t,k),w(e,_)};j(),[480,768,1024,1400,2e3].forEach((t=>{const e=window.matchMedia(`(max-width:${t}px)`);e.addEventListener?e.addEventListener("change",x):e.addListener(x)})),window.EventBus.on("page:interaction",(()=>{Array.from(document.querySelectorAll(`${g}:not(.${p}
1)`)).forEach((t=>k(t)))})),document.addEventListener("fmSlideshowRendered",(()=>{x(),j()})),window.EventBus.on("content:changed",j),Shopify&&Shopify.designMode&&window.addEventListener("shopify:section:load",j);const T=".shopify-section";function B(t){const e=[...t.querySelectorAll("[data-src-asset]")];for(const t of e){const e=t.getAttribute("data-src-asset"),n=window.fmLoadedSectionAssets.includes(e),i=t.nodeName;n||("LINK"==i&&(window.fmLoadedSectionAssets.push(e),t.href=e,t.media="all"),"SCRIPT"!=i&&"IFRAME"!=i||(window.fmLoadedSectionAssets.push(e),t.src=e))}t.classList.add("loaded")}window.fmLoadedSectionAssets=[];const C=()=>{const t=[...document.querySelectorAll(T)];for(const e of t)B(e)};w(T,B),window.EventBus.on("page:interaction",(()=>{window.requestAnimationFrame(C)})),Shopify&&Shopify.designMode&&window.addEventListener("shopify:section:load",(()=>{window.fmLoadedSectionAssets=[],C()}));const $=t=>{const e=t.querySelectorAll("source"),n=window.fmData.user.prefersReducedMotion;e.forEach((t=>{const e=t.getAttribute("data-src");e&&(t.src=e)})),t.load(),t.classList.add("loaded"),t.hasAttribute("autoplay")&&t.hasAttribute("muted")&&!n&&!(t=>!!(t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2))(t)&&t.play()},S=()=>{w("[data-video-load='lazy']",$,{rootMargin:"20%"})};S(),document.addEventListener("fmSlideshowRendered",S);document.addEventListener("click",(t=>{const e=t.target,n=e.dataset.behavior;if(!(n&&"modal"===n&&"false"===e.getAttribute("aria-expanded")))return;const i=e.getAttribute("aria-controls"),o=document.getElementById(i),s=e.dataset.overlay;let a=!1;a=s?document.getElementById(s):document.getElementById("aboveHeaderOverlay"),new f(o,e,a,e.dataset.trapButton,e.dataset.noOutsideClicks)}));const O=(t,e)=>{const n=document.createElement("script");return t&&(n.src=t,n.defer=!0),e&&(n.textContent=e),n},L=()=>{const t=window.fmData.klaviyo.apiKey,e=window.fmData.klaviyo.lazyloadOnsiteScript;if(t&&e)return O(`https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=${t}`)},D=()=>{const t=document.createElement("script");return t.src="https://static.ada.support/embed2.js",t.setAttribute("data-handle","bonescoffee-generative"),t.id="__ada",t};window.EventBus.on("page:interaction",(function(){let t=document.createDocumentFragment();[L(),D(),O(!1,'!function(e,t,a,r,g){e[r]=e[r]||[],e[r].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],n=t.createElement(a);n.defer=!0,n.src="https://www.googletagmanager.com/gtm.js?id="+g+("dataLayer"!=r?"&l="+r:""),m.parentNode.insertBefore(n,m)}(window,document,"script","dataLayer","GTM-M7BDTDW");'),O(!1,'(function (w, d, t, r, u) { var f, n, i; w[u] = w[u] || [], f = function () { var o = { ti: "25139110", enableAutoSpaTracking: true }; o.q = w[u], w[u] = new UET(o), w[u].push("pageLoad") }, n = d.createElement(t), n.src = r, n.async = 1, n.onload = n.onreadystatechange = function () { var s = this.readyState; s && s !== "loaded" && s !== "complete" || (f(), n.onload = n.onreadystatechange = null) }, i = d.getElementsByTagName(t)[0], i.parentNode.insertBefore(n, i) })(window, document, "script", "//bat.bing.com/bat.js", "uetq")'),O(!1,'!function(){"use strict";try{n=""!==top.document.referer?encodeURIComponent(top.document.referrer.substring(0,2048)):""}catch(t){n=null!==document.referrer?document.referrer.toString().substring(0,2048):""}try{c=window&&window.top&&document.location&&window.top.location===document.location?document.location:window&&window.top&&window.top.location&&""!==window.top.location?window.top.location:document.location}catch(o){c=document.location}try{a=""!==parent.location.href?encodeURIComponent(parent.location.href.toString().substring(0,2048)):""}catch(r){try{a=null!==c?encodeURIComponent(c.toString().substring(0,2048)):""}catch(e){a=""}}var n,c,a,i,l=document.createElement("script"),s=null,p=Number(document.getElementsByTagName("script").length)-1,u=document.getElementsByTagName("script")[p];void 0===i&&(i=Math.floor(1e17*Math.random())),s="dx.mountain.com/spx?dxver=4.0.0&shaid=32352&tdr="+n+"&plh="+a+"&cb="+i+"term=value",l.type="text/javascript",l.src=("https:"===document.location.protocol?"https://":"http://")+s,u.parentNode.insertBefore(l,u)}();'),O(!1,'!function(t,e,n,a,c,r,s){t[n]=t[n]||function(){(t[n].q=t[n].q||[]).push(arguments)},(r=e.createElement(a)).async=1,r.src="https://www.clarity.ms/tag/"+c,(s=e.getElementsByTagName(a)[0]).parentNode.insertBefore(r,
1s)}(window,document,"clarity","script","jbh8u74qb0");'),O(!1,'!function(e,t,a,r,g){e[r]=e[r]||[],e[r].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],n=t.createElement(a);n.defer=!0,n.src="https://www.googletagmanager.com/gtm.js?id="+g+("dataLayer"!=r?"&l="+r:""),m.parentNode.insertBefore(n,m)}(window,document,"script","dataLayer","AW-11436737342");'),O(!1,'"use strict";!function(e,t){if(!e.aap){e.aap=function(t){(e.acuityAdsEventQueue=e.acuityAdsEventQueue||[]).push(t)};var a="script",i=t.createElement(a);i.async=!0,i.src="https://origin.acuityplatform.com/event/v2/pixel.js";var c=t.getElementsByTagName(a)[0];c.parentNode.insertBefore(i,c),e.acuityPiggybackCallback=function(t){e.acuityParseResponse(t)}}}(window,document),aap({pixelKey:"8732038529541801304"});')].forEach((e=>{"object"==typeof e&&t.appendChild(e)})),t.childElementCount>0&&document.head.appendChild(t)}));var A,N,M;A||(A=1,function(){function t(t){var e=!0,n=!1,i=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function a(t){var e=t.type,n=t.tagName;return!("INPUT"!==n||!o[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}function c(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function r(t){t.hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added"))}function d(n){n.metaKey||n.altKey||n.ctrlKey||(s(t.activeElement)&&c(t.activeElement),e=!0)}function u(t){e=!1}function h(t){s(t.target)&&(e||a(t.target))&&c(t.target)}function l(t){s(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout((function(){n=!1}),100),r(t.target))}function m(t){"hidden"===document.visibilityState&&(n&&(e=!0),w())}function w(){document.addEventListener("mousemove",p),document.addEventListener("mousedown",p),document.addEventListener("mouseup",p),document.addEventListener("pointermove",p),document.addEventListener("pointerdown",p),document.addEventListener("pointerup",p),document.addEventListener("touchmove",p),document.addEventListener("touchstart",p),document.addEventListener("touchend",p)}function f(){document.removeEventListener("mousemove",p),document.removeEventListener("mousedown",p),document.removeEventListener("mouseup",p),document.removeEventListener("pointermove",p),document.removeEventListener("pointerdown",p),document.removeEventListener("pointerup",p),document.removeEventListener("touchmove",p),document.removeEventListener("touchstart",p),document.removeEventListener("touchend",p)}function p(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,f())}document.addEventListener("keydown",d,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",m,!0),w(),t.addEventListener("focus",h,!0),t.addEventListener("blur",l,!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}());class I extends HTMLElement{constructor(){super(),this.menu=this,this.classes={active:"is-active"},this.selectors={btn:".js-megamenu-btn",backBtn:".js-megamenu-btn-back",parent:".js-megamenu-parent",children:".js-megamenu-children"},this.content={overlay:document.getElementById(this.menu.getAttribute("data-overlay"))||!1,buttons:[...this.menu.querySelectorAll(this.selectors.btn)],firstLevelBtns:[],secondLevelBtns:[]},this.content.firstLevelBtns=this.content.buttons.filter((t=>!t.closest(this.selectors.children))),this.content.secondLevelBtns=this.content.buttons.filter((t=>t.closest(this.selectors.children))),this.data={allowAllOpen:!1,openAll:!1,openDropdowns:0,currentParent:!1,btnType:void 0,noOutsideClicks:"true"==this.menu.dataset?.noOutsideClicks||!1},this.j(),this.m()}j(){this.T("data-open-all","openAll",this.B.bind(this)),this.T("data-allow-all-open","allowAllOpen")}m(){this.menu.addEventListener("click",this.C.bind(this)),this.menu.addEventListener("keydown",this.C.bind(this)),this.menu.addEventListener("keyup",this.$.bind(this)),this.content.overlay&&this.content.overlay.addEventListener("click",this.S.bind(this,null,this.content.buttons,!0)),this.data.noOutsideClicks&&document.addEventListener("click",this.O.bind(this))}async C(t){const e=t.type;this.L(t),"click"===e&&this.D(t),"keydown"===e&&this.A(t)}D(t){const e=t.target,n=this.data.btnType;if(n)switch(n){case"firstLevel":this.N(t,e);break;case"secondLevel":this.M(t);break;case"backBtn":this.I(t,e)}}O(t){const e=t.target,n=!this.menu.contains(e);e.closest(this.selectors.btn)||n&&(t.stopPropagation(),this.S())}
1A(t){"Escape"==t.key&&(this.data.openDropdowns>0&&t.stopPropagation(),this.P(!0)),"Tab"==t.key&&this.R()}$(t){"Tab"===t.key&&!t.target.closest(this.selectors.children)&&this.data.openDropdowns>0&&!this.data.allowAllOpen&&this.S()}L(t){const e=t.target;let n;this.data.currentParent=e.closest(this.selectors.parent),this.content.firstLevelBtns.includes(e)?n="firstLevel":this.content.secondLevelBtns.includes(e)?n="secondLevel":e.closest(this.selectors.backBtn)&&(n="backBtn"),this.data.btnType=n}N(t,e){const n=this.data.allowAllOpen,i="true"===e.dataset.transferFocus;if(n&&this.F(e,t,void 0,i),!n)for(const e of this.content.firstLevelBtns)this.F(e,t,void 0,i);this.S(!1,this.content.secondLevelBtns),this.q()}M(t){for(const e of this.content.secondLevelBtns)this.F(e,t)}I(t=!1){const e=[...this.data.currentParent.querySelectorAll(this.selectors.btn)];this.S(t,e)}S(t,e=this.content.buttons){for(const t of e)this.F(t,null,"false");this.q(),t&&this.H(t)}P(t=!1){const e=this.K(t);e&&(this.F(e,null,"false"),e.focus()),this.q()}F(t,e,n=void 0,i=!1){const o=this.U(t,e,n);this.V(t,o,i)}U(t,e,n=void 0){const i=t.getAttribute("aria-expanded");null!=n&&t.setAttribute("aria-expanded",n);const o=n||function(t,e){let n=e.getAttribute("aria-expanded");return n=t.target==e&&"false"==n?"true":"false",d(e,"aria-expanded",n),n}(e,t),s="true"===o;return o!==i&&(s?this.data.openDropdowns++:this.data.openDropdowns--,this.data.openDropdowns<0&&(this.data.openDropdowns=0)),s}V(t,e,n=!1){const i=t.getAttribute("aria-controls"),o=document.getElementById(i);e?t.classList.add(this.classes.active):t.classList.remove(this.classes.active),u(o,e);const s=[...o.querySelectorAll(this.selectors.backBtn)];if(n&&e){const t=l(o);t&&t[0].focus()}for(const t of s)t.setAttribute("aria-expanded",e)}q(){const t=this.content.overlay,e=this.data.openDropdowns>0;t&&u(t,e)}K(t=!1){let e=!1;const n=this.data.currentParent,i=!!n&&n.querySelector(`${this.selectors.btn}[aria-expanded="true"]`);if(t){let t,i=!!n&&n.parentElement;i&&(t=i.closest(this.selectors.parent)),t&&(e=t.querySelector(this.selectors.btn))}return i||e}async R(){const t=this.K();if(!t)return;const e=this.data.currentParent;let n;await h(10),n=document.activeElement,e&&!e.contains(n)&&this.I(!1,t)}B(){if(this.data.openAll){for(const t of this.content.firstLevelBtns)this.F(t,null,"true");this.q()}}H(t){const e=t.target;if(!this.content.firstLevelBtns.includes(e)&&this.data.currentParent){const t=this.data.currentParent.querySelector(this.selectors.btn);t&&t.focus()}}T(t,e,n){if(!this.menu.hasAttribute(t))return;const i=window.matchMedia(`${this.menu.getAttribute(t)}`);this.J(null,e,i.matches,n),i.addEventListener("change",this.J(null,e,i.matches,n))}J(t,e,n,i){this.data[e]=n,i&&"function"==typeof i&&i()}}N="mega-menu",M=I,void 0===customElements.get(N)&&customElements.define(N,M);const P=window.Shopify.routes.root,R=["ajaxCartContent","ajaxCartBtn","cartContent","ajaxCartModals"],F=t=>{const e=[];for(const t of R){const n=document.getElementById(t);n&&e.push({replacedContentId:t,sectionId:n.closest(".shopify-section").id.replace("shopify-section-","")})}return e.map((t=>t.sectionId))},q=t=>{const e=document.getElementById("screenReaderStatus");e.textContent="",e.textContent=t},H="data-variant-id",K={btn:'[data-behavior="ajax-cart-button"]',variantData:`[${H}]`},U=(t,e,n)=>{e?(t.style.width=`${t.offsetWidth}px`,t.disabled=!0):(t.removeAttribute("style"),t.disabled=!1),t.textContent=n};document.addEventListener("click",(t=>{const e=t.target,n=e.closest(K.btn),i=e.closest(K.variantData);if(!n||!i)return;t.preventDefault();const o=n.textContent,s=i.getAttribute(H);U(n,!0,"Adding..."),(async t=>{const e={method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t,sections:F(),sections_url:P})};return await r(`${P}cart/add.js`,e)})([{id:s,quantity:1}]).then((t=>{window.EventBus.emit("cart:item:added",t),window.EventBus.emit("cart:updated",t),window.EventBus.emit("cart:show"),U(n,!1,o)})).catch((t=>{console.error(t),U(n,!1,o),q(window.fmData.cartStrings.error)}))}));const z=".js-product-form",V='button[type="submit"]',J=".js-add-to-cart-text",Q=async t=>{const e=t.querySelector(V)||document.querySelector(`button[type="submit"][form="${t.getAttribute("id")}"]`),n=e.querySelector(J)||e,{textContent:i}=n;let o=new FormData(t);U(e,!0,"Adding...");try{const n=await(async t=>{t.append("sections",F()),t.append("sections_url",P);const e={method:"POST",body:t};return await r(`${P}cart/add.js`,e)})(o);if(U(e,!1,i),!1===n.ok)return void W(n,t);q(window.fmData.cartStrings.added),window.EventBus.emit("cart:item:added",n),window.EventBus.emit("cart:updated",n),window.EventBus.emit("cart:show")}catch(t){console.error(t),U(e,!1,i),q(window.fmData.cartStrings.error)}},W=async(t,e)=>{const n=await t.json();window.EventBus.emit("cart:error",{form:e,error:n})};document.addEventListener("submit",(async t=>{const e=t.target.closest(z);e&&(t.preventDefault(),t.stopImmediatePropagation(),Q(e))})),window.EventBus.on("ajax-cart:form:submit",Q),document.addEventListener("click",(t=>
1{t.target.closest(".js-subscription-details")&&gtag("event","show_hide_subscription_details",{event_category:"Subscription Details Interactions",event_label:"Clicks to expand subscription details"})}))}));

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.