var e;function t(e,t,n){return function(e,t){for(var n=0;n .minicart_total"))||e.insertAdjacentHTML("afterbegin",'\n
Your Basket
\n
Total:
\n '),document.querySelectorAll(".count-number").forEach((e=>{const t=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){t.unobserve(e.target);const n=Number(e.target.dataset.count),r=2500,i=performance.now(),o=e=>e<.5?2*e*e:(4-2*e)*e-1,a=t=>{const s=t-i,c=Math.min(s/r,1),u=o(c),l=Math.floor(u*n);e.target.textContent=l,c<1?requestAnimationFrame(a):e.target.textContent=n};requestAnimationFrame(a)}}))}),{rootMargin:"0px 0px -75px 0px"});t.observe(e)})),document.querySelectorAll(".foot-links").forEach((e=>{e.querySelector("h4").addEventListener("click",(()=>{e.classList.toggle("active")}))})),(()=>{const e=document.getElementById("vuequicklistdropdown"),t=document.querySelector(".top-bar-quicklists");if(!e||!t)return;const n=t.querySelector("img"),r=e.querySelector(".fa-list-alt");r&&n&&(r.insertAdjacentElement("beforebegin",n),r.remove()),t.innerHTML="",t.appendChild(e)})();var n="(prefers-reduced-motion: reduce)",r={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function i(e){e.length=0}function o(e,t,n){return Array.prototype.slice.call(e,t,n)}function a(e){return e.bind.apply(e,[null].concat(o(arguments,1)))}var s=setTimeout,c=function(){};function u(e){return requestAnimationFrame(e)}function l(e,t){return typeof t===e}function d(e){return!g(e)&&l("object",e)}var f=Array.isArray,p=a(l,"function"),v=a(l,"string"),h=a(l,"undefined");function g(e){return null===e}function m(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function y(e){return f(e)?e:[e]}function b(e,t){y(e).forEach(t)}function w(e,t){return e.indexOf(t)>-1}function E(e,t){return e.push.apply(e,y(t)),e}function S(e,t,n){e&&b(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function x(e,t){S(e,v(t)?t.split(" "):t,!0)}function L(e,t){b(t,e.appendChild.bind(e))}function C(e,t){b(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function _(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function k(e,t){var n=e?o(e.children):[];return t?n.filter((function(e){return _(e,t)})):n}function A(e,t){return t?k(e,t)[0]:e.firstElementChild}var P=Object.keys;function q(e,t,n){return e&&(n?P(e).reverse():P(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function M(e){return o(arguments,1).forEach((function(t){q(t,(function(n,r){e[r]=t[r]}))})),e}function N(e){return o(arguments,1).forEach((function(t){q(t,(function(t,n){f(t)?e[n]=t.slice():d(t)?e[n]=N({},d(e[n])?e[n]:{},t):e[n]=t}))})),e}function z(e,t){b(t||P(e),(function(t){delete e[t]}))}function T(e,t){b(e,(function(e){b(t,(function(t){e&&e.removeAttribute(t)}))}))}function O(e,t,n){d(t)?q(t,(function(t,n){O(e,n,t)})):b(e,(function(e){g(n)||""===n?T(e,t):e.setAttribute(t,String(n))}))}function D(e,t,n){var r=document.createElement(e);return t&&(v(t)?x(r,t):O(r,t)),n&&L(n,r),r}function I(e,t,n){if(h(n))return getComputedStyle(e)[t];g(n)||(e.style[t]=""+n)}function F(e,t){I(e,"display",t)}function j(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function B(e,t){return e.getAttribute(t)}function R(e,t){return e&&e.classList.contains(t)}function H(e){return e.getBoundingClientRect()}function W(e){b(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function X(e){return A((new DOMParser).parseFromString(e,"text/html").body)}function G(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function U(e,t){return e&&e.querySelector(t)}function Y(e,t){return t?o(e.querySelectorAll(t)):[]}function J(e,t){S(e,t,!1)}function K(e){return e.timeStamp}function V(e){return v(e)?e:e?e+"px":""}var Z="splide",Q="data-"+Z;function ee(e,t){if(!e)throw new Error("["+Z+"] "+(t||""))}var te=Math.min,ne=Math.max,re=Math.floor,ie=Math.ceil,oe=Math.abs;function ae(e,t,n){return oe(e-t)0)-+(e<0)}function le(e,t){return b(t,(function(t){e=e.replace("%s",""+t)})),e}function de(e){return e<10?"0"+e:""+e}var fe={};function pe(){var e=[];function t(e,t,n){b(e,(function(e){e&&b(t,(function(t){t.split(" ").forEach((function(t){var r=t.split(".");n(e,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){t(n,r,(function(t,n,r){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,i,o):t.removeListener.bind(t,i);a?t.addEventListener(n,i,o):t.addListener(i),e.push([t,n,r,i,s])}))},unbind:function(n,r,i){t(n,r,(function(t,n,r){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==r||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var r,i=!0;return"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),e.dispatchEvent(r),r},destroy:function(){e.forEach((function(e){e[4]()})),i(e)}}}var ve="mounted",he="ready",ge="move",me="moved",ye="click",be="active",we="inactive",Ee="visible",Se="hidden",xe="refresh",Le="updated",Ce="resize",_e="resized",ke="scroll",Ae="scrolled",Pe="destroy",qe="arrows:mounted",Me="navigation:mounted",Ne="autoplay:play",ze="autoplay:pause",Te="lazyload:loaded",Oe="sk",De="sh",Ie="ei";function Fe(e){var t=e?e.event.bus:document.createDocumentFragment(),n=pe();return e&&e.event.on(Pe,n.destroy),M(n,{bus:t,on:function(e,r){n.bind(t,y(e).join(" "),(function(e){r.apply(r,f(e.detail)?e.detail:[])}))},off:a(n.unbind,t),emit:function(e){n.dispatch(t,e,o(arguments,1))}})}function $e(e,t,n,r){var i,o,a=Date.now,s=0,c=!0,l=0;function d(){if(!c){if(s=e?te((a()-i)/e,1):1,n&&n(s),s>=1&&(t(),i=a(),r&&++l>=r))return f();o=u(d)}}function f(){c=!0}function p(){o&&cancelAnimationFrame(o),s=0,o=0,c=!0}return{start:function(t){t||p(),i=a()-(t?s*e:0),c=!1,o=u(d)},rewind:function(){i=a(),s=0,n&&n(s)},pause:f,cancel:p,set:function(t){e=t},isPaused:function(){return c}}}var je="Arrow",Be=je+"Left",Re=je+"Right",He=je+"Up",We=je+"Down",Xe="ttb",Ge={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[He,Re],ArrowRight:[We,Be]};var Ue="role",Ye="tabindex",Je="aria-",Ke=Je+"controls",Ve=Je+"current",Ze=Je+"selected",Qe=Je+"label",et=Je+"labelledby",tt=Je+"hidden",nt=Je+"orientation",rt=Je+"roledescription",it=Je+"live",ot=Je+"busy",at=Je+"atomic",st=[Ue,Ye,"disabled",Ke,Ve,Qe,et,tt,nt,rt],ct=Z+"__",ut="is-",lt=Z,dt=ct+"track",ft=ct+"list",pt=ct+"slide",vt=pt+"--clone",ht=pt+"__container",gt=ct+"arrows",mt=ct+"arrow",yt=mt+"--prev",bt=mt+"--next",wt=ct+"pagination",Et=wt+"__page",St=ct+"progress"+"__bar",xt=ct+"toggle",Lt=ct+"sr",Ct=ut+"initialized",_t=ut+"active",kt=ut+"prev",At=ut+"next",Pt=ut+"visible",qt=ut+"loading",Mt=ut+"focus-in",Nt=ut+"overflow",zt=[_t,Pt,kt,At,qt,Mt,Nt],Tt={slide:pt,clone:vt,arrows:gt,arrow:mt,prev:yt,next:bt,pagination:wt,page:Et,spinner:ct+"spinner"};var Ot="touchstart mousedown",Dt="touchmove mousemove",It="touchend touchcancel mouseup click";var Ft="slide",$t="loop",jt="fade";function Bt(e,t,n,r){var i,o=Fe(e),s=o.on,c=o.emit,u=o.bind,l=e.Components,d=e.root,f=e.options,p=f.isNavigation,v=f.updateOnMove,h=f.i18n,g=f.pagination,m=f.slideFocus,y=l.Direction.resolve,b=B(r,"style"),w=B(r,Qe),E=n>-1,x=A(r,"."+ht);function L(){var i=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");O(r,Qe,le(h.slideX,(E?n:t)+1)),O(r,Ke,i),O(r,Ue,m?"button":""),m&&T(r,rt)}function C(){i||_()}function _(){if(!i){var n=e.index;(o=k())!==R(r,_t)&&(S(r,_t,o),O(r,Ve,p&&o||""),c(o?be:we,P)),function(){var t=function(){if(e.is(jt))return k();var t=H(l.Elements.track),n=H(r),i=y("left",!0),o=y("right",!0);return re(t[i])<=ie(n[i])&&re(n[o])<=ie(t[o])}(),n=!t&&(!k()||E);e.state.is([4,5])||O(r,tt,n||"");O(Y(r,f.focusableNodes||""),Ye,n?-1:""),m&&O(r,Ye,n?-1:0);t!==R(r,Pt)&&(S(r,Pt,t),c(t?Ee:Se,P));if(!t&&document.activeElement===r){var i=l.Slides.getAt(e.index);i&&j(i.slide)}}(),S(r,kt,t===n-1),S(r,At,t===n+1)}var o}function k(){var r=e.index;return r===t||f.cloneStatus&&r===n}var P={index:t,slideIndex:n,slide:r,container:x,isClone:E,mount:function(){E||(r.id=d.id+"-slide"+de(t+1),O(r,Ue,g?"tabpanel":"group"),O(r,rt,h.slide),O(r,Qe,w||le(h.slideLabel,[t+1,e.length]))),u(r,"click",a(c,ye,P)),u(r,"keydown",a(c,Oe,P)),s([me,De,Ae],_),s(Me,L),v&&s(ge,C)},destroy:function(){i=!0,o.destroy(),J(r,zt),T(r,st),O(r,"style",b),O(r,Qe,w||"")},update:_,style:function(e,t,n){I(n&&x||r,e,t)},isWithin:function(n,r){var i=oe(n-t);return E||!f.rewind&&!e.is($t)||(i=te(i,e.length-i)),i<=r}};return P}var Rt=Q+"-interval";var Ht={passive:!1,capture:!0};var Wt={Spacebar:" ",Right:Re,Left:Be,Up:He,Down:We};function Xt(e){return e=v(e)?e:e.key,Wt[e]||e}var Gt="keydown";var Ut=Q+"-lazy",Yt=Ut+"-srcset",Jt="["+Ut+"], ["+Yt+"]";var Kt=[" ","Enter"];var Vt=Object.freeze({__proto__:null,Media:function(e,t,r){var i=e.state,o=r.breakpoints||{},a=r.reducedMotion||{},s=pe(),c=[];function u(e){e&&s.destroy()}function l(e,t){var n=matchMedia(t);s.bind(n,"change",d),c.push([e,n])}function d(){var t=i.is(7),n=r.direction,o=c.reduce((function(e,t){return N(e,t[1].matches?t[0]:{})}),{});z(r),f(o),r.destroy?e.destroy("completely"===r.destroy):t?(u(!0),e.mount()):n!==r.direction&&e.refresh()}function f(t,n,o){N(r,t),n&&N(Object.getPrototypeOf(r),t),!o&&i.is(1)||e.emit(Le,r)}return{setup:function(){var e="min"===r.mediaQuery;P(o).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){l(o[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),l(a,n),d()},destroy:u,reduce:function(e){matchMedia(n).matches&&(e?N(r,a):z(r,P(a)))},set:f}},Direction:function(e,t,n){return{resolve:function(e,t,r){var i="rtl"!==(r=r||n.direction)||t?r===Xe?0:-1:1;return Ge[e]&&Ge[e][i]||e.replace(/width|left|right/i,(function(e,t){var n=Ge[e.toLowerCase()][i]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,o,a,s=Fe(e),c=s.on,u=s.bind,l=e.root,d=n.i18n,f={},v=[],h=[],g=[];function m(){r=w("."+dt),o=A(r,"."+ft),ee(r&&o,"A track/list element is missing."),E(v,k(o,"."+pt+":not(."+vt+")")),q({arrows:gt,pagination:wt,prev:yt,next:bt,bar:St,toggle:xt},(function(e,t){f[t]=w("."+e)})),M(f,{root:l,track:r,list:o,slides:v}),function(){var e=l.id||(i=Z,""+i+de(fe[i]=(fe[i]||0)+1)),t=n.role;var i;l.id=e,r.id=r.id||e+"-track",o.id=o.id||e+"-list",!B(l,Ue)&&"SECTION"!==l.tagName&&t&&O(l,Ue,t);O(l,rt,d.carousel),O(o,Ue,"presentation")}(),b()}function y(e){var t=st.concat("style");i(v),J(l,h),J(r,g),T([r,o],t),T(l,e?t:["style",rt])}function b(){J(l,h),J(r,g),h=L(lt),g=L(dt),x(l,h),x(r,g),O(l,Qe,n.label),O(l,et,n.labelledby)}function w(e){var t=U(l,e);return t&&function(e,t){if(p(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!_(n,t);)n=n.parentElement;return n}(t,"."+lt)===l?t:void 0}function L(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===lt&&_t]}return M(f,{setup:m,mount:function(){c(xe,y),c(xe,m),c(Le,b),u(document,Ot+" keydown",(function(e){a="keydown"===e.type}),{capture:!0}),u(l,"focusin",(function(){S(l,Mt,!!a)}))},destroy:y})},Slides:function(e,t,n){var r=Fe(e),o=r.on,s=r.emit,c=r.bind,u=t.Elements,l=u.slides,d=u.list,f=[];function h(){l.forEach((function(e,t){E(e,t,-1)}))}function g(){k((function(e){e.destroy()})),i(f)}function E(t,n,r){var i=Bt(e,n,r,t);i.mount(),f.push(i),f.sort((function(e,t){return e.index-t.index}))}function S(e){return e?A((function(e){return!e.isClone})):f}function k(e,t){S(t).forEach(e)}function A(e){return f.filter(p(e)?e:function(t){return v(e)?_(t.slide,e):w(y(e),t.index)})}return{mount:function(){h(),o(xe,g),o(xe,h)},destroy:g,update:function(){k((function(e){e.update()}))},register:E,get:S,getIn:function(e){var r=t.Controller,i=r.toIndex(e),o=r.hasFocus()?1:n.perPage;return A((function(e){return se(e.index,i,i+o-1)}))},getAt:function(e){return A(e)[0]},add:function(e,t){b(e,(function(e){if(v(e)&&(e=X(e)),m(e)){var r=l[t];r?C(e,r):L(d,e),x(e,n.classes.slide),i=e,o=a(s,Ce),u=Y(i,"img"),(f=u.length)?u.forEach((function(e){c(e,"load error",(function(){--f||o()}))})):o()}var i,o,u,f})),s(xe)},remove:function(e){W(A(e).map((function(e){return e.slide}))),s(xe)},forEach:k,filter:A,style:function(e,t,n){k((function(r){r.style(e,t,n)}))},getLength:function(e){return e?l.length:f.length},isEnough:function(){return f.length>n.perPage}}},Layout:function(e,t,n){var r,i,o,s=Fe(e),c=s.on,u=s.bind,l=s.emit,f=t.Slides,p=t.Direction.resolve,v=t.Elements,h=v.root,g=v.track,m=v.list,y=f.getAt,b=f.style;function w(){r=n.direction===Xe,I(h,"maxWidth",V(n.width)),I(g,p("paddingLeft"),x(!1)),I(g,p("paddingRight"),x(!0)),E(!0)}function E(e){var t=H(h);(e||i.width!==t.width||i.height!==t.height)&&(I(g,"height",function(){var e="";r&&(ee(e=L(),"height or heightRatio is missing."),e="calc("+e+" - "+x(!1)+" - "+x(!0)+")");return e}()),b(p("marginRight"),V(n.gap)),b("width",n.autoWidth?null:V(n.fixedWidth)||(r?"":C())),b("height",V(n.fixedHeight)||(r?n.autoHeight?null:C():L()),!0),i=t,l(_e),o!==(o=M())&&(S(h,Nt,o),l("overflow",o)))}function x(e){var t=n.padding,r=p(e?"right":"left");return t&&V(t[r]||(d(t)?0:t))||"0px"}function L(){return V(n.height||H(m).width*n.heightRatio)}function C(){var e=V(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function _(){return H(m)[p("width")]}function k(e,t){var n=y(e||0);return n?H(n.slide)[p("width")]+(t?0:q()):0}function A(e,t){var n=y(e);if(n){var r=H(n.slide)[p("right")],i=H(m)[p("left")];return oe(r-i)+(t?0:q())}return 0}function P(t){return A(e.length-1)-A(0)+k(0,t)}function q(){var e=y(0);return e&&parseFloat(I(e.slide,p("marginRight")))||0}function M(){return e.is(jt)||P(!0)>_()}return{mount:function(){var e,t;w(),u(window,"resize load",(e=a(l,Ce),t=$e(0,e,null,1),function(){t.isPaused()&&t.start()})),c([Le,xe],w),c(Ce,E)},resize:E,listSize:_,slideSize:k,sliderSize:P,totalSize:A,getPadding:function(e){return parseFloat(I(g,p("padding"+(e?"Right":"Left"))))||0},isOverflow:M}},Clones:function(e,t,n){var r,o=Fe(e),a=o.on,s=t.Elements,c=t.Slides,u=t.Direction.resolve,l=[];function d(){a(xe,f),a([Le,Ce],v),(r=g())&&(!function(t){var r=c.get().slice(),i=r.length;if(i){for(;r.lengtht.Controller.getEnd();(r<0||i)&&(n=L(n,i))}return n}(n);I(b,"transform","translate"+g("X")+"("+i+"px)"),n!==i&&a(De)}}function L(e,t){var n=e-P(t),r=p();return e-=m(r*(ie(oe(n)/r)||1))*(t?1:-1)}function C(){x(A(),!0),r.cancel()}function _(e){for(var n=t.Slides.get(),r=0,i=1/0,o=0;on,c=m(L(A(),o)),o?c>=0:c<=b[g("scrollWidth")]-H(w)[g("width")])&&(C(),x(L(A(),e>n),!0)),s(4),a(ge,t,n,e),r.start(t,(function(){s(3),a(me,t,n,e),i&&i()}))},jump:S,translate:x,shift:L,cancel:C,toIndex:_,toPosition:k,getPosition:A,getLimit:P,exceededLimit:function(e,t){t=h(t)?A():t;var n=!0!==e&&m(t)m(P(!0));return n||r},reposition:E}},Controller:function(e,t,n){var r,i,o,s,c=Fe(e),u=c.on,l=c.emit,d=t.Move,f=d.getPosition,p=d.getLimit,g=d.toPosition,m=t.Slides,y=m.isEnough,b=m.getLength,w=n.omitEnd,E=e.is($t),S=e.is(Ft),x=a(P,!1),L=a(P,!0),C=n.start||0,_=C;function k(){i=b(!0),o=n.perMove,s=n.perPage,r=N();var e=ce(C,0,w?r:i-1);e!==C&&(C=e,d.reposition())}function A(){r!==N()&&l(Ie)}function P(e,t){var n=o||(D()?1:s),i=q(C+n*(e?-1:1),C,!(o||D()));return-1===i&&S&&!ae(f(),p(!e),1)?e?0:r:t?i:M(i)}function q(t,a,c){if(y()||D()){var u=function(t){if(S&&"move"===n.trimSpace&&t!==C)for(var r=f();r===g(t,!0)&&se(t,0,e.length-1,!n.rewind);)tr?t=o||!se(0,t,a,!0)&&!se(r,a,t,!0)?E?c?t<0?-(i%s||s):i:t:n.rewind?t<0?r:0:-1:z(T(t)):c&&t!==a&&(t=z(T(a)+(t0;)if(g(i-1,!0)!==g(e,!0)){e++;break}return ce(e,0,i-1)}function z(e){return ce(D()?e:s*e,0,r)}function T(e){return D()?te(e,r):re((e>=r?i-1:e)/s)}function O(e){e!==C&&(_=C,C=e)}function D(){return!h(n.focus)||n.isNavigation}function I(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){k(),u([Le,xe,Ie],k),u(_e,A)},go:function(e,t,n){if(!I()){var i=function(e){var t=C;if(v(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],i=n[1],o=n[2];"+"===i||"-"===i?t=q(C+ +(""+i+(+o||1)),C):">"===i?t=o?z(+o):x(!0):"<"===i&&(t=L(!0))}else t=E?e:ce(e,0,r);return t}(e),o=M(i);o>-1&&(t||o!==C)&&(O(o),d.move(i,o,_,n))}},scroll:function(e,n,i,o){t.Scroll.scroll(e,n,i,(function(){var e=M(d.toIndex(f()));O(w?te(e,r):e),o&&o()}))},getNext:x,getPrev:L,getAdjacent:P,getEnd:N,setIndex:O,getIndex:function(e){return e?_:C},toIndex:z,toPage:T,toDest:function(e){var t=d.toIndex(e);return S?ce(t,0,r):t},hasFocus:D,isBusy:I}},Arrows:function(e,t,n){var r,i,o=Fe(e),s=o.on,c=o.bind,u=o.emit,l=n.classes,d=n.i18n,f=t.Elements,p=t.Controller,v=f.arrows,h=f.track,g=v,m=f.prev,y=f.next,b={};function w(){!function(){var e=n.arrows;!e||m&&y||(g=v||D("div",l.arrows),m=k(!0),y=k(!1),r=!0,L(g,[m,y]),!v&&C(g,h));m&&y&&(M(b,{prev:m,next:y}),F(g,e?"":"none"),x(g,i=gt+"--"+n.direction),e&&(s([ve,me,xe,Ae,Ie],A),c(y,"click",a(_,">")),c(m,"click",a(_,"<")),A(),O([m,y],Ke,h.id),u(qe,m,y)))}(),s(Le,E)}function E(){S(),w()}function S(){o.destroy(),J(g,i),r?(W(v?[m,y]:g),m=y=null):T([m,y],st)}function _(e){p.go(e,!0)}function k(e){return X('\n
\n ${i}\n
\n \n \n \n
\n \n \n
\n \n
\n ${n.map(o).join("")}\n
\n \n \n \n `);const a=e.querySelector(".brand-search-input"),s=e.querySelectorAll(".brand-card"),c=e.querySelectorAll(".letter-filter:not(.disabled)"),u=e.querySelector(".no-results"),l=e.querySelector(".alphabet-filter"),d=e.querySelector(".alphabet-nav.prev"),f=e.querySelector(".alphabet-nav.next"),p=e.querySelector(".view-all-btn"),v=e.querySelector(".show-featured-btn");let h=null,g=null;d.addEventListener("click",(()=>{l.scrollBy({left:-200,behavior:"smooth"})})),f.addEventListener("click",(()=>{l.scrollBy({left:200,behavior:"smooth"})}));const m=e=>{let t=0;s.forEach((n=>{const r=e(n);n.classList.toggle("hidden",!r),r&&(t+=1)})),u.classList.toggle("hidden",t>0)};a.addEventListener("input",(e=>{const t=e.target.value.trim().toLowerCase();m(t?g?e=>e.dataset.brandName.includes(t)&&e.classList.contains(g):e=>e.dataset.brandName.includes(t):g?e=>e.classList.contains(g):e=>e.classList.contains("is-featured"))})),c.forEach((e=>{e.addEventListener("click",(()=>{const{letter:t}=e.dataset,n="#"===t?"letter-hash":`letter-${t.toLowerCase()}`;if(h===e)return e.classList.remove("selected"),h=null,g=null,a.value="",void m((e=>e.classList.contains("is-featured")));a.value="",h&&h.classList.remove("selected"),e.classList.add("selected"),h=e,g=n,m((e=>e.classList.contains(n)))}))})),p.addEventListener("click",(()=>{a.value="",h&&(h.classList.remove("selected"),h=null),g=null,m((()=>!0))})),v.addEventListener("click",(()=>{a.value="",h&&(h.classList.remove("selected"),h=null),g=null,m((e=>e.classList.contains("is-featured")))}))}catch(t){console.error(`Error: ${nn}`,t)}}))})(),document.querySelectorAll(".catalogue-section-box").forEach((e=>{const t=document.createElement("span");t.className="sparkle-icon",t.innerHTML='\n \n \n \n \n \n ',e.appendChild(t)})),document.querySelectorAll(".catalogue-section-carousel").forEach((e=>{const t=new tn(e,{type:"loop",perPage:5,perMove:1,arrows:!0,pagination:!0,autoplay:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,gap:"16px",breakpoints:{1300:{perPage:4},1024:{perPage:3},768:{perPage:2},480:{perPage:1}}}),n=()=>{let t=e.querySelector(".splide__controls-wrapper");const n=e.querySelector(".splide__arrows"),r=e.querySelector(".splide__pagination");if(n&&r){const i=n.querySelector(".splide__arrow--prev"),o=n.querySelector(".splide__arrow--next");i&&o&&(t||(t=document.createElement("div"),t.className="splide__controls-wrapper",e.appendChild(t)),t.innerHTML="",t.appendChild(i),t.appendChild(r),t.appendChild(o),n&&!n.children.length&&n.remove())}};t.mount(),n(),t.on("resized",n)})),document.querySelectorAll(".testimonials-module").forEach((e=>{const t=e.querySelector(".splide");new tn(t,{type:"loop",perPage:3,perMove:1,arrows:!0,pagination:!1,autoplay:!0,interval:5e3,gap:"40px",breakpoints:{1200:{perPage:2},850:{perPage:1}}}).mount()})),(()=>{const e=document.querySelector(".about-section-image");if(!e)return;const t=e.querySelectorAll(".star-window");if(!t.length)return;const n=e.dataset.imageSrc||e.getAttribute("data-image-src");if(!n)return;let r=null,i=null;const o=()=>{const a=e.getBoundingClientRect();if(null===r||null===i){const e=new Image;return e.onload=()=>{r=e.width,i=e.height,o()},void(e.src=n)}let s,c;r/i>a.width/a.height?(c=a.height,s=r*(c/i)):(s=a.width,c=i*(s/r)),t.forEach((e=>{const t=e.getBoundingClientRect(),r=t.left-a.left,i=t.top-a.top;e.style.backgroundImage=`url("${n}")`,e.style.backgroundSize=`${s}px ${c}px`,e.style.backgroundPosition=`${-r}px ${-i}px`,e.style.maskSize="0%",e.style.webkitMaskSize="0%"}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o(),window.addEventListener("resize",o);t.length;const a=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add("star-animated"),a.unobserve(e.target),setTimeout((()=>{o()}),900))}))}),{threshold:.5,rootMargin:"0px 0px -150px 0px"});t.forEach((e=>{a.observe(e)}));const s=e.querySelectorAll(".star-window.star-large, .star-window.star-medium, .star-window.star-small");s.forEach((e=>{let t,n;e.classList.contains("star-large")?(t=4e3,n=0):e.classList.contains("star-medium")?(t=3500,n=300):(t=2800,n=600),((e,t,n)=>{let r=null;const i=t=>{e.style.maskSize=`${t}%`,e.style.webkitMaskSize=`${t}%`},o=e=>{r||(r=e+n);const a=e-r;if(a<0)return void requestAnimationFrame(o);if(a<800){const e=a/800,t=1-Math.pow(1-e,3);return i(100*t),void requestAnimationFrame(o)}const s=(a-800)%t/t,c=Math.cos(s*Math.PI*2);i(90+(c+1)/2*10),requestAnimationFrame(o)},a=()=>{e.classList.contains("star-animated")?requestAnimationFrame(o):setTimeout(a,100)};setTimeout(a,n)})(e,t,n)}))})(),document.querySelectorAll(".custom-carousel").forEach((e=>{const t=e.querySelector("#grid");t.className="splide__list";const n=document.createElement("div");n.className="splide__track",n.appendChild(t),e.appendChild(n),document.querySelectorAll(".tileparent").forEach((e=>{e.classList.contains("tileparent_placeholder")?e.remove():e.className="tileparent splide__slide"}));const r=new tn(e,{type:"loop",perPage:4,perMove:1,arrows:!0,pagination:!0,gap:25,breakpoints:{1466:{perPage:3},1200:{perPage:2},900:{perPage:1},700:{perPage:2},500:{perPage:1}}}),i=()=>{let t=e.querySelector(".splide__controls-wrapper");const n=e.querySelector(".splide__arrows"),r=e.querySelector(".splide__pagination");if(n&&r){const i=n.querySelector(".splide__arrow--prev"),o=n.querySelector(".splide__arrow--next");i&&o&&(t||(t=document.createElement("div"),t.className="splide__controls-wrapper",e.appendChild(t)),t.innerHTML="",t.appendChild(i),t.appendChild(r),t.appendChild(o),n&&!n.children.length&&n.remove())}};r.mount(),i(),r.on("resized",i)})),document.querySelectorAll(".featured-products-container").forEach((e=>{const t=e.querySelector(".title-wrapper h2"),n=e.querySelector(".custom-carousel h3");e.querySelector('[role="row-wrapper"]').insertAdjacentHTML("beforebegin",`\n \n `)})),setTimeout((()=>{window.dispatchEvent(new Event("resize"))}),500),(()=>{const e={};document.querySelectorAll("[data-tabgroup]").forEach((t=>{const n=t.getAttribute("data-tabgroup");e[n]||(e[n]=[]),e[n].push(t)})),Object.entries(e).forEach((([e,t])=>{if(t.length<=1)return;const n=t[0].closest(".featured-products-container"),r=n.querySelector(".tab-buttons"),i=[];t.forEach((e=>{const t=e.querySelector(":scope > img");t&&(i.push(t.cloneNode(!0)),t.remove())}));const o=document.createElement("div");o.className="featured-carousel-backgrounds",i.forEach(((e,t)=>{e.classList.add("featured-carousel-bg"),0===t&&e.classList.add("is-active"),o.appendChild(e)})),n.insertBefore(o,n.firstChild);const a=[],s=[];if(t.forEach(((e,t)=>{const n=e.closest(".featured-products-container"),i=n.querySelector('[role="row-wrapper"]'),o=n.querySelector(".tab-button");if(i&&a.push(i),o)if(0===t)s.push(o);else{const e=o.cloneNode(!0);e.classList.remove("is-active"),r.appendChild(e),s.push(e)}t>0&&n&&n.remove()})),a.length>1){const e=document.createElement("div");e.className="featured-tabs-splide splide";const t=document.createElement("div");t.className="splide__track";const r=document.createElement("div");r.className="splide__list",a.forEach((e=>{const t=document.createElement("div");t.className="splide__slide",t.appendChild(e),r.appendChild(t)})),t.appendChild(r),e.appendChild(t);const i=n.querySelector(".featured-carousel-title");i?i.insertAdjacentElement("afterend",e):n.appendChild(e);const c=new tn(e,{type:"fade",rewind:!0,arrows:!1,pagination:!1,speed:600,drag:!1,swipe:!1,keyboard:!1,wheel:!1}).mount();s.forEach(((e,t)=>{e.addEventListener("click",(()=>{s.forEach((e=>e.classList.remove("is-active"))),e.classList.add("is-active");o.querySelectorAll(".featured-carousel-bg").forEach(((e,n)=>{e.classList.toggle("is-active",n===t)})),c.go(t)}))})),c.on("moved",(e=>{s.forEach(((t,n)=>{t.classList.toggle("is-active",n===e)}));o.querySelectorAll(".featured-carousel-bg").forEach(((t,n)=>{t.classList.toggle("is-active",n===e)}))}))}}))})();