!function(){var t={3578:function(t,e,n){var o=n(3745),i=n(2178).each;function s(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var n=this;this.listener=function(t){n.mql=t.currentTarget||t,n.assess()},this.mql.addListener(this.listener)}s.prototype={constuctor:s,addHandler:function(t){var e=new o(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;i(e,(function(n,o){if(n.equals(t))return n.destroy(),!e.splice(o,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(t){t.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";i(this.handlers,(function(e){e[t]()}))}},t.exports=s},6779:function(t,e,n){var o=n(3578),i=n(2178),s=i.each,r=i.isFunction,c=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(t,e,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[t]||(i[t]=new o(t,l)),r(e)&&(e={match:e}),c(e)||(e=[e]),s(e,(function(e){r(e)&&(e={match:e}),i[t].addHandler(e)})),this},unregister:function(t,e){var n=this.queries[t];return n&&(e?n.removeHandler(e):(n.clear(),delete this.queries[t])),this}},t.exports=l},3745:function(t){function e(t){this.options=t,!t.deferSetup&&this.setup()}e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},t.exports=e},2178:function(t){t.exports={isFunction:function(t){return"function"==typeof t},isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},each:function(t,e){for(var n=0,o=t.length;n0)&&(null!==e.getAttribute(o)&&(e.getAttribute(o)!==t||(r.push(new n(e)),!1)))})))}))}function l(t){var e=[];if(NodeList.prototype.isPrototypeOf(t)||Array.isArray(t))var n=t[0];if(t instanceof Element||n instanceof Element)u(t).forEach((function(t){e=e.concat(r.filter((function(e){return e.container===t})))}));else if("string"==typeof t||"string"==typeof n){d(t).forEach((function(t){e=e.concat(r.filter((function(e){return e.type===t})))}))}return e}function a(t){for(var e,n=0;n0?t=Array.prototype.slice.call(t):NodeList.prototype.isPrototypeOf(t)&&0===t.length||null===t?t=[]:!Array.isArray(t)&&t instanceof Element&&(t=[t]),t}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.Shopify.designMode&&(document.addEventListener("shopify:section:load",(function(t){var e=t.detail.sectionId,n=t.target.querySelector("["+i+'="'+e+'"]');null!==n&&c(n.getAttribute(o),n)})),document.addEventListener("shopify:section:unload",(function(t){var e=t.detail.sectionId,n=t.target.querySelector("["+i+'="'+e+'"]');"object"==typeof l(n)[0]&&l(n).forEach((function(t){var e=r.map((function(t){return t.id})).indexOf(t.id);r.splice(e,1),t.onUnload()}))})),document.addEventListener("shopify:section:select",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onSelect(t)})),document.addEventListener("shopify:section:deselect",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onDeselect(t)})),document.addEventListener("shopify:block:select",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onBlockSelect(t)})),document.addEventListener("shopify:block:deselect",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onBlockDeselect(t)})));const v=t=>{let{context:e=document.documentElement,event:n="click",selector:o,handler:i,capture:s=!1}=t;const r=function(t){for(let e=t.target;e&&e!==this;e=e.parentNode)if(e.matches(o)){i.call(e,t,e);break}};return e.addEventListener(n,r,s),()=>{e.removeEventListener(n,r,s)}};class m{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultOptions;f(this,"defaultOptions",{presetContentHeight:!1,duration:300,callback:()=>{}}),f(this,"selectors",{items:[".sf__accordion-item"],buttons:[".sf__accordion-button"],contents:[".sf__accordion-content"]}),f(this,"openClass","open"),f(this,"initClass","acc-initialized"),f(this,"removeEvents",null),f(this,"destroy",(()=>{this.removeEvents(),window.removeEventListener("resize",this.debouncedSetContentHeight)})),f(this,"setContentOpacity",(()=>{this.domNodes.contents.forEach((t=>t.style.opacity=1))})),f(this,"setItemOverflowState",(()=>{var t,e;null===(t=this.domNodes)||void 0===t||null===(e=t.items)||void 0===e||e.forEach(((t,e)=>{var n,o,i,s,r,c;let l=null===(n=this.domNodes)||void 0===n||null===(o=n.contents)||void 0===o?void 0:o[e];const a=null!=t&&null!==(i=t.classList)&&void 0!==i&&null!==(s=i.contains)&&void 0!==s&&s.call(i,this.openClass)?"remove":"add";null==l||null===(r=l.classList)||void 0===r||null===(c=r[a])||void 0===c||c.call(r,"overflow-hidden")}))})),f(this,"setContentHeight",(()=>{this.domNodes=queryDomNodes(this.selectors,this.container);const{items:t,contents:e}=this.domNodes;t.forEach(((t,n)=>{var o,i;if(null!=t&&t.classList.contains(this.openClass)){var s,r,c;null==t||null===(s=t.style)||void 0===s||s.setProperty("--content-max-height","auto");const o=null==e||null===(r=e[n])||void 0===r?void 0:r.scrollHeight;null==t||null===(c=t.style)||void 0===c||c.setProperty("--content-max-height",`${o}px`)}else{var l;null==t||null===(l=t.style)||void 0===l||l.setProperty("--content-max-height",0)}null==e||null===(o=e[n])||void 0===o||null===(i=o.classList)||void 0===i||i.add("max-height-set")})),this.setItemOverflowState(),this.setContentOpacity()})),f(this,"toggle",(t=>{var e,n,o,i,s,r,c,l,a;const d=null===(e=this.domNodes)||void 0===e||null===(n=e.items)||void 0===n?void 0:n[t],u=null===(o=this.domNodes)||void 0===o||null===(i=o.contents)||void 0===i?void 0:i[t],h=null==d||null===(s=d.classList)||void 0===s?void 0:s.contains(this.openClass);null==d||null===(r=d.classList)||void 0===r||r.toggle(this.openClass);const p=h?0:null===(c=this.domNodes)||void 0===c||null===(l=c.contents)||void 0===l||null===(a=l[t])||void 0===a?void 0:a.scrollHeight;var f;(null==d||d.style.setProperty("--content-max-height",`${p}px`),h)?null==u||null===(f=u.classList)||void 0===f||f.add("overflow-hidden"):setTimeout((()=>{var t;null==u||null===(t=u.classList)||void 0===t||t.remove("overflow-hidden")}),350)})),t&&!t.classList.contains(this.initClass)&&(this.container=t,this.domNodes=queryDomNodes(this.selectors,this.container),this.options=Object.assign({},this.defaultOptions,e),this.debouncedSetContentHeight=function(t){var e=this;let n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var i=arguments.length,s=new Array(i),r=0;rt.apply(e,s)),o)}}(this.setContentHeight.bind(this),300),this.init())}init(){var t,e;null===(t=this.container)||void 0===t||null===(e=t.style)||void 0===e||e.setProperty("--duration",` ${this.options.duration}ms`),this.removeEvents=v({context:this.container,selector:this.selectors.buttons[0],handler:(t,e)=>{e.classList.add("pointer-events-none");const n=this.domNodes.buttons.indexOf(e);this.toggle(n),setTimeout((()=>{e.classList.remove("pointer-events-none")}),350)}}),this.options.presetContentHeight?window.requestAnimationFrame(this.setContentHeight):(this.setItemOverflowState(),this.setContentOpacity()),window.addEventListener("resize",this.debouncedSetContentHeight),"function"==typeof this.options.callback&&this.options.callback(),this.container.classList.add(this.initClass)}}function y(t){var e,n,o,i,s,r=[];for(e=document.getElementsByClassName("select-items"),n=document.getElementsByClassName("select-selected"),i=e.length,s=n.length,o=0;o{var t;const e=null==this||null===(t=this.container)||void 0===t?void 0:t.querySelector(".sf-footer__accordion");e&&(this.acc=new m(e,{presetContentHeight:!0}))}}),function(t){let e,n,o,i,s,r,c,l,a,d,u;if(e=t.getElementsByClassName("sf__custom-select"),i=e.length,e.length>0)for(n=0;n',d.setAttribute("class","select-arrow"),c.appendChild(d),l=document.createElement("DIV"),l.setAttribute("class","select-items select-hide"),o=0;o