"use strict";(self.webpackChunk_roots_bud_sage=self.webpackChunk_roots_bud_sage||[]).push([[436],{"./scripts/blocks/slider/frontend.js":()=>{function C(e,t){var n,s=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)),s}function N(e){for(var t,n=1;n<arguments.length;n++)t=null!=arguments[n]?arguments[n]:{},n%2?C(Object(t),!0).forEach(function(n){I(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n,s=0;s<t.length;s++)n=t[s],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function l(e,t,n){return t&&H(e.prototype,t),n&&H(e,n),e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function B(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,i,s=o(e);return t?(i=o(this).constructor,n=Reflect.construct(s,arguments,i)):n=s.apply(this,arguments),B(this,n)}}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var s,i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(i)return s=Object.getOwnPropertyDescriptor(i,t),s.get?s.get.call(arguments.length<3?e:n):s.value},m.apply(this,arguments)}S={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function s(e){console.error("[Glide warn]: ".concat(e))}function t(e){return parseInt(e)}function p(e){return"string"==typeof e}function i(e){var t=y(e);return"function"===t||"object"===t&&!!e}function d(e){return"function"==typeof e}function A(e){return void 0===e}function j(e){return e.constructor===Array}function e(e,t,n){Object.defineProperty(e,t,n)}function _(e,t){var n=Object.assign({},e,t);return t.hasOwnProperty("classes")&&(n.classes=Object.assign({},e.classes,t.classes),["direction","type","slide","arrow","nav"].forEach(function(s){t.classes.hasOwnProperty(s)&&(n.classes[s]=N(N({},e.classes[s]),t.classes[s]))})),t.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},e.breakpoints,t.breakpoints)),n}E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.events=t,this.hop=t.hasOwnProperty}return l(e,[{key:"on",value:function(e,t){if(!j(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n,s=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][s]}}}for(n=0;n<e.length;n++)this.on(e[n],t)}},{key:"emit",value:function(e,t){if(j(e))for(var n=0;n<e.length;n++)this.emit(e[n],t);else this.hop.call(this.events,e)&&this.events[e].forEach(function(e){e(t||{})})}}]),e}(),O=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this._c={},this._t=[],this._e=new E,this.disabled=!1,this.selector=t,this.settings=_(S,n),this.index=this.settings.startAt}return l(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),i(e)?this._c=function(e,t,n){var i,a,o={};for(i in t)d(t[i])?o[i]=t[i](e,o,n):s("Extension must be a function");for(a in o)d(o[a].mount)&&o[a].mount();return o}(this,e,this._e):s("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return j(e)?this._t=e:s("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=_(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){i(e)?this._o=e:s("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=t(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}();function R(){return(new Date).getTime()}function u(e,t){var n,s,o,a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=0,l=function(){i=!1===r.leading?0:R(),n=null,a=e.apply(s,o),n||(s=o=null)},c=function(){var c,d=R();return i||!1!==r.leading||(i=d),c=t-(d-i),s=this,o=arguments,c<=0||c>t?(n&&(clearTimeout(n),n=null),i=d,a=e.apply(s,o),n||(s=o=null)):n||!1===r.trailing||(n=setTimeout(l,c)),a};return c.cancel=function(){clearTimeout(n),i=0,n=s=o=null},c}a={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function k(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function b(e){return Array.prototype.slice.call(e)}n=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.listeners=t}return l(e,[{key:"on",value:function(e,t,n){var s,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];p(e)&&(e=[e]);for(s=0;s<e.length;s++)this.listeners[e[s]]=n,t.addEventListener(e[s],this.listeners[e[s]],o)}},{key:"off",value:function(e,t){var n,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(e)&&(e=[e]);for(n=0;n<e.length;n++)t.removeEventListener(e[n],this.listeners[e[n]],s)}},{key:"destroy",value:function(){delete this.listeners}}]),e}(),M=["ltr","rtl"],F={">":"<","<":">","=":"="};function G(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function Y(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function q(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function W(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var s=t.Peek.value;return i(s)?n-s.before:n-s}return n}}}function $(e,t){return{modify:function(n){var i=t.Gaps.value,a=t.Sizes.width,s=e.settings.focusAt,o=t.Sizes.slideWidth;return"center"===s?n-(a/2-o/2):n-o*s-i*s}}}h=!1;try{f=Object.defineProperty({},"passive",{get:function(){h=!0}}),window.addEventListener("testPassive",null,f),window.removeEventListener("testPassive",null,f)}catch{}var n,a,h,f,O,E,S,M,F,T,z,v=h,c=["touchstart","mousedown"],P=["touchmove","mousemove"],x=["touchend","touchcancel","mouseup","mouseleave"],L=["mousedown","mousemove","mouseup","mouseleave"],w='[data-glide-el^="controls"]',U="".concat(w,' [data-glide-dir*="<"]'),K="".concat(w,' [data-glide-dir*=">"]');function D(e){return i(e)?(t=e,Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e[n],e},{})):(s("Breakpoints option must be an object"),{});var t}z={Html:function(t,n,o){var i={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=b(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.slide.clone)})}};return e(i,"root",{get:function(){return i._r},set:function(e){p(e)&&(e=document.querySelector(e)),null!==e?i._r=e:s("Root element must be a existing Html node")}}),e(i,"track",{get:function(){return i._t},set:function(e){i._t=e}}),e(i,"wrapper",{get:function(){return i.track.children[0]}}),o.on("update",function(){i.collectSlides()}),i},Translate:function(e,t,n){var o={set:function(n){var i=function(e,t,n){var o=[Y,q,W,$].concat(e._t,[G]);return{mutate:function(i){for(var a,r=0;r<o.length;r++)a=o[r],d(a)&&d(a().modify)?i=a(e,t,n).modify(i):s("Transformer should be a function that returns an object with `modify()` method");return i}}}(e,t).mutate(n),o="translate3d(".concat(-1*i,"px, 0px, 0px)");t.Html.wrapper.style.mozTransform=o,t.Html.wrapper.style.webkitTransform=o,t.Html.wrapper.style.transform=o},remove:function(){t.Html.wrapper.style.transform=""},getStartIndex:function(){var n=t.Sizes.length,s=e.index,o=e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?n+(s-o):(s+o)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",function(s){if(!e.isType("carousel")||!t.Run.isOffset())return o.set(s.movement);t.Transition.after(function(){n.emit("translate.jump"),o.set(t.Sizes.slideWidth*e.index)});var i=t.Sizes.slideWidth*t.Translate.getStartIndex();return o.set(i-t.Translate.getTravelDistance())}),n.on("destroy",function(){o.remove()}),o},Transition:function(t,n,s){var i=!1,o={compose:function(e){var n=t.settings;return i?"".concat(e," 0ms ").concat(n.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";n.Html.wrapper.style.transition=this.compose(e)},remove:function(){n.Html.wrapper.style.transition=""},after:function(e){setTimeout(function(){e()},this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return e(o,"duration",{get:function(){var e=t.settings;return t.isType("slider")&&n.Run.offset?e.rewindDuration:e.animationDuration}}),s.on("move",function(){o.set()}),s.on(["build.before","resize","translate.jump"],function(){o.disable()}),s.on("run",function(){o.enable()}),s.on("destroy",function(){o.remove()}),o},Direction:function(t,n,o){var i={mount:function(){this.value=t.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(F[t]):e},is:function(e){return this.value===e},addClass:function(){n.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){n.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return e(i,"value",{get:function(){return i._v},set:function(e){M.indexOf(e)>-1?i._v=e:s("Direction value must be `ltr` or `rtl`")}}),o.on(["destroy","update"],function(){i.removeClass()}),o.on("update",function(){i.mount()}),o.on(["build.before","update"],function(){i.addClass()}),i},Peek:function(n,s,o){var a={mount:function(){this.value=n.settings.peek}};return e(a,"value",{get:function(){return a._v},set:function(e){i(e)?(e.before=t(e.before),e.after=t(e.after)):e=t(e),a._v=e}}),e(a,"reductor",{get:function(){var e=a.value,t=n.settings.perView;return i(e)?e.before/t+e.after/t:2*e/t}}),o.on(["resize","update"],function(){a.mount()}),a},Sizes:function(t,n,s){var o={setupSlides:function(){for(var s="".concat(this.slideWidth,"px"),t=n.Html.slides,e=0;e<t.length;e++)t[e].style.width=s},setupWrapper:function(){n.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var t=n.Html.slides,e=0;e<t.length;e++)t[e].style.width="";n.Html.wrapper.style.width=""}};return e(o,"length",{get:function(){return n.Html.slides.length}}),e(o,"width",{get:function(){return n.Html.track.offsetWidth}}),e(o,"wrapperSize",{get:function(){return o.slideWidth*o.length+n.Gaps.grow+n.Clones.grow}}),e(o,"slideWidth",{get:function(){return o.width/t.settings.perView-n.Peek.reductor-n.Gaps.reductor}}),s.on(["build.before","resize","update"],function(){o.setupSlides(),o.setupWrapper()}),s.on("destroy",function(){o.remove()}),o},Gaps:function(n,s,o){var i={apply:function(e){for(var n,o,t=0,i=e.length;t<i;t++)n=e[t].style,o=s.Direction.value,n[a[o][0]]=0!==t?"".concat(this.value/2,"px"):"",t!==e.length-1?n[a[o][1]]="".concat(this.value/2,"px"):n[a[o][1]]=""},remove:function(e){for(var n,t=0,s=e.length;t<s;t++)n=e[t].style,n.marginLeft="",n.marginRight=""}};return e(i,"value",{get:function(){return t(n.settings.gap)}}),e(i,"grow",{get:function(){return i.value*s.Sizes.length}}),e(i,"reductor",{get:function(){var e=n.settings.perView;return i.value*(e-1)/e}}),o.on(["build.after","update"],u(function(){i.apply(s.Html.wrapper.children)},30)),o.on("destroy",function(){i.remove(s.Html.wrapper.children)}),i},Move:function(n,s,o){var i={mount:function(){this._o=0},make:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=t,o.emit("move",{movement:this.value}),s.Transition.after(function(){o.emit("move.after",{movement:e.value})})}};return e(i,"offset",{get:function(){return i._o},set:function(e){i._o=A(e)?0:t(e)}}),e(i,"translate",{get:function(){return s.Sizes.slideWidth*n.index}}),e(i,"value",{get:function(){var e=this.offset,t=this.translate;return s.Direction.is("rtl")?t+e:t-e}}),o.on(["build.before","run"],function(){i.make()}),i},Clones:function(t,n,s){var o={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var e,o,r,l,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=n.Html.slides,i=t.settings,a=i.perView,f=i.classes,p=i.cloningRatio;if(s.length>0)for(var d=a+ +!!t.settings.peek+Math.round(a/2),m=s.slice(0,d).reverse(),h=s.slice(-1*d),u=0;u<Math.max(p,Math.floor(a/s.length));u++){for(e=0;e<m.length;e++)l=m[e].cloneNode(!0),l.classList.add(f.slide.clone),c.push(l);for(o=0;o<h.length;o++)r=h[o].cloneNode(!0),r.classList.add(f.slide.clone),c.unshift(r)}return c},append:function(){for(var t,s,e=this.items,i=n.Html,a=i.wrapper,d=i.slides,r=Math.floor(e.length/2),c=e.slice(0,r).reverse(),l=e.slice(-1*r).reverse(),u="".concat(n.Sizes.slideWidth,"px"),o=0;o<l.length;o++)a.appendChild(l[o]);for(t=0;t<c.length;t++)a.insertBefore(c[t],d[0]);for(s=0;s<e.length;s++)e[s].style.width=u},remove:function(){for(var t=this.items,e=0;e<t.length;e++)n.Html.wrapper.removeChild(t[e])}};return e(o,"grow",{get:function(){return(n.Sizes.slideWidth+n.Gaps.value)*o.items.length}}),s.on("update",function(){o.remove(),o.mount(),o.append()}),s.on("build.before",function(){t.isType("carousel")&&o.append()}),s.on("destroy",function(){o.remove()}),o},Resize:function(e,t,s){var o=new n,i={mount:function(){this.bind()},bind:function(){o.on("resize",window,u(function(){s.emit("resize")},e.settings.throttle))},unbind:function(){o.off("resize",window)}};return s.on("destroy",function(){i.unbind(),o.destroy()}),i},Build:function(e,t,n){var s={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){t.Html.root.classList.add(e.settings.classes.type[e.settings.type])},activeClass:function(){var s=e.settings.classes,n=t.Html.slides[e.index];n&&(n.classList.add(s.slide.active),k(n).forEach(function(e){e.classList.remove(s.slide.active)}))},removeClasses:function(){var n=e.settings.classes,s=n.type,o=n.slide;t.Html.root.classList.remove(s[e.settings.type]),t.Html.slides.forEach(function(e){e.classList.remove(o.active)})}};return n.on(["destroy","update"],function(){s.removeClasses()}),n.on(["resize","update"],function(){s.mount()}),n.on("move.after",function(){s.activeClass()}),s},Run:function(n,o,i){var a={mount:function(){this._o=!1},make:function(e){var t=this;n.disabled||(!n.settings.waitForTransition||n.disable(),this.move=e,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),o.Transition.after(function(){t.isStart()&&i.emit("run.start",t.move),t.isEnd()&&i.emit("run.end",t.move),t.isOffset()&&(t._o=!1,i.emit("run.offset",t.move)),i.emit("run.after",t.move),n.enable()}))},calculate:function(){var c,l,d=this.move,r=this.length,o=d.steps,e=d.direction,i=1;if("="===e)return n.settings.bound&&t(o)>r?void(n.index=r):void(n.index=o);if(">"!==e||">"!==o)if("<"!==e||"<"!==o){if("|"===e&&(i=n.settings.perView||1),">"===e||"|"===e&&">"===o)return c=function(e){var t=n.index;return n.isType("carousel")?t+e:t+(e-t%e)}(i),c>r&&(this._o=!0),void(n.index=function(e,t){var s=a.length;return e<=s?e:n.isType("carousel")?e-(s+1):n.settings.rewind?a.isBound()&&!a.isEnd()?s:0:a.isBound()?s:Math.floor(s/t)*t}(c,i));if("<"===e||"|"===e&&"<"===o)return l=function(e){var s,t=n.index;return n.isType("carousel")?t-e:(s=Math.ceil(t/e),(s-1)*e)}(i),l<0&&(this._o=!0),void(n.index=function(e,t){var s=a.length;return e>=0?e:n.isType("carousel")?e+(s+1):n.settings.rewind?a.isBound()&&a.isStart()?s:Math.floor(s/t)*t:0}(l,i));s("Invalid direction pattern [".concat(e).concat(o,"] has been used"))}else n.index=0;else n.index=r},isStart:function(){return n.index<=0},isEnd:function(){return n.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return n.isType("slider")&&"center"!==n.settings.focusAt&&n.settings.bound}};return e(a,"move",{get:function(){return this._m},set:function(e){var n=e.substr(1);this._m={direction:e.substr(0,1),steps:n?t(n)?t(n):n:0}}}),e(a,"length",{get:function(){var e=n.settings,s=o.Html.slides.length;return this.isBound()?s-1-(t(e.perView)-1)+t(e.focusAt):s-1}}),e(a,"offset",{get:function(){return this._o}}),a},Swipe:function(e,s,o){var i=new n,l=0,d=0,m=0,h=!1,a=!!v&&{passive:!0},r={mount:function(){this.bindSwipeStart()},start:function(n){if(!h&&!e.disabled){this.disable();var s=this.touches(n);l=null,d=t(s.pageX),m=t(s.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),o.emit("swipe.start")}},move:function(n){if(!e.disabled){var i=e.settings,u=i.touchAngle,h=i.touchRatio,f=i.classes,a=this.touches(n),r=t(a.pageX)-d,p=t(a.pageY)-m,g=Math.abs(r<<2),c=Math.abs(p<<2),v=Math.sqrt(g+c),b=Math.sqrt(c);if(!(180*(l=Math.asin(b/v))/Math.PI<u))return!1;n.stopPropagation(),s.Move.make(r*parseFloat(h)),s.Html.root.classList.add(f.dragging),o.emit("swipe.move")}},end:function(t){if(!e.disabled){var n=e.settings,i=n.perSwipe,a=n.touchAngle,h=n.classes,m=this.touches(t),r=this.threshold(t),c=m.pageX-d,u=180*l/Math.PI;this.enable(),c>r&&u<a?s.Run.make(s.Direction.resolve("".concat(i,"<"))):c<-r&&u<a?s.Run.make(s.Direction.resolve("".concat(i,">"))):s.Move.make(),s.Html.root.classList.remove(h.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),o.emit("swipe.end")}},bindSwipeStart:function(){var t=this,n=e.settings,o=n.swipeThreshold,r=n.dragThreshold;o&&i.on(c[0],s.Html.wrapper,function(e){t.start(e)},a),r&&i.on(c[1],s.Html.wrapper,function(e){t.start(e)},a)},unbindSwipeStart:function(){i.off(c[0],s.Html.wrapper,a),i.off(c[1],s.Html.wrapper,a)},bindSwipeMove:function(){var t=this;i.on(P,s.Html.wrapper,u(function(e){t.move(e)},e.settings.throttle),a)},unbindSwipeMove:function(){i.off(P,s.Html.wrapper,a)},bindSwipeEnd:function(){var e=this;i.on(x,s.Html.wrapper,function(t){e.end(t)})},unbindSwipeEnd:function(){i.off(x,s.Html.wrapper)},touches:function(e){return L.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return L.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return h=!1,s.Transition.enable(),this},disable:function(){return h=!0,s.Transition.disable(),this}};return o.on("build.after",function(){s.Html.root.classList.add(e.settings.classes.swipeable)}),o.on("destroy",function(){r.unbindSwipeStart(),r.unbindSwipeMove(),r.unbindSwipeEnd(),i.destroy()}),r},Images:function(e,t,s){var o=new n,i={mount:function(){this.bind()},bind:function(){o.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){o.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return s.on("destroy",function(){i.unbind(),o.destroy()}),i},Anchors:function(t,s,o){var r=new n,a=!1,c=!1,i={mount:function(){this._a=s.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",s.Html.wrapper,this.click)},unbind:function(){r.off("click",s.Html.wrapper)},click:function(e){c&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(c=!0,!a){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1;a=!0}return this},attach:function(){if(c=!1,a){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0;a=!1}return this}};return e(i,"items",{get:function(){return i._a}}),o.on("swipe.move",function(){i.detach()}),o.on("swipe.end",function(){s.Transition.after(function(){i.attach()})}),o.on("destroy",function(){i.attach(),i.unbind(),r.destroy()}),i},Controls:function(t,s,o){var a=new n,r=!!v&&{passive:!0},i={mount:function(){this._n=s.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=s.Html.root.querySelectorAll(w),this._arrowControls={previous:s.Html.root.querySelectorAll(U),next:s.Html.root.querySelectorAll(K)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(e){var s=t.settings,n=e[t.index];n&&(n.classList.add(s.classes.nav.active),k(n).forEach(function(e){e.classList.remove(s.classes.nav.active)}))},removeClass:function(e){var n=e[t.index];n==null||n.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var e=i._arrowControls.next,n=i._arrowControls.previous;this.resetArrowState(e,n),0===t.index&&this.disableArrow(n),t.index===s.Run.length&&this.disableArrow(e)}},resetArrowState:function(){for(var o=t.settings,n=arguments.length,s=new Array(n),e=0;e<n;e++)s[e]=arguments[e];s.forEach(function(e){b(e).forEach(function(e){e.classList.remove(o.classes.arrow.disabled)})})},disableArrow:function(){for(var o=t.settings,n=arguments.length,s=new Array(n),e=0;e<n;e++)s[e]=arguments[e];s.forEach(function(e){b(e).forEach(function(e){e.classList.add(o.classes.arrow.disabled)})})},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)a.on("click",e[t],this.click),a.on("touchstart",e[t],this.click,r)},unbind:function(e){for(var t=0;t<e.length;t++)a.off(["click","touchstart"],e[t])},click:function(e){v||"touchstart"!==e.type||e.preventDefault();var t=e.currentTarget.getAttribute("data-glide-dir");s.Run.make(s.Direction.resolve(t))}};return e(i,"items",{get:function(){return i._c}}),o.on(["mount.after","move.after"],function(){i.setActive()}),o.on(["mount.after","run"],function(){i.setArrowState()}),o.on("destroy",function(){i.removeBindings(),i.removeActive(),a.destroy()}),i},Keyboard:function(e,t,s){var o=new n,i={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){o.on("keyup",document,this.press)},unbind:function(){o.off("keyup",document)},press:function(n){var s=e.settings.perSwipe;["ArrowRight","ArrowLeft"].includes(n.code)&&t.Run.make(t.Direction.resolve("".concat(s).concat({ArrowRight:">",ArrowLeft:"<"}[n.code])))}};return s.on(["destroy","update"],function(){i.unbind()}),s.on("update",function(){i.mount()}),s.on("destroy",function(){o.destroy()}),i},Autoplay:function(s,o,i){var r=new n,a={mount:function(){this.enable(),this.start(),s.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var e=this;this._e&&(this.enable(),s.settings.autoplay&&A(this._i)&&(this._i=setInterval(function(){e.stop(),o.Run.make(">"),e.start(),i.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",o.Html.root,function(){e._e&&e.stop()}),r.on("mouseout",o.Html.root,function(){e._e&&e.start()})},unbind:function(){r.off(["mouseover","mouseout"],o.Html.root)}};return e(a,"time",{get:function(){var e=o.Html.slides[s.index].getAttribute("data-glide-autoplay");return t(e||s.settings.autoplay)}}),i.on(["destroy","update"],function(){a.unbind()}),i.on(["run.before","swipe.start","update"],function(){a.stop()}),i.on(["pause","destroy"],function(){a.disable(),a.stop()}),i.on(["run.after","swipe.end"],function(){a.start()}),i.on(["play"],function(){a.enable(),a.start()}),i.on("update",function(){a.mount()}),i.on("destroy",function(){r.destroy()}),a},Breakpoints:function(e,t,s){var r=new n,o=e.settings,i=D(o.breakpoints),c=Object.assign({},o),a={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return c}};return Object.assign(o,a.match(i)),r.on("resize",window,u(function(){e.settings=_(o,a.match(i))},e.settings.throttle)),s.on("update",function(){i=D(i),c=Object.assign({},o)}),s.on("destroy",function(){r.off("resize",window)}),a}},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e);var n=V(t);function t(){return r(this,t),n.apply(this,arguments)}return l(t,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m(o(t.prototype),"mount",this).call(this,Object.assign({},z,e))}}]),t}(O),document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll(".glide");e.length>0&&e.forEach(function(e){if(e.id){const i=e.querySelectorAll(".glide__slide"),o=e.querySelector('.glide__bullets[data-glide-el="controls[nav]"]');o&&i.length>0&&0===o.children.length&&i.forEach((e,t)=>{const n=document.createElement("button");n.className="glide__bullet",n.setAttribute("data-glide-dir",`=${t}`),n.setAttribute("type","button"),o.appendChild(n)});var t,s=e.dataset.perView?e.dataset.perView:1,n=e.dataset.type?e.dataset.type:"carousel";"true"===(!!e.dataset.autoplay&&e.dataset.autoplay)&&(t=e.dataset.autoplaySpeed?e.dataset.autoplaySpeed:2e3,n="carousel"),new T("#"+e.id,{type:n,perView:s,autoplay:!!t&&parseInt(t),breakpoints:{750:{perView:1}}}).mount()}})})}},e=>{var t="./scripts/blocks/slider/frontend.js";e(e.s=t)}])