1"use strict";(self.webpackChunk_roots_bud_sage_sage=self.webpackChunk_roots_bud_sage_sage||[]).push([[506],{
vendor: 6,088 bytes, line 1
1"../node_modules/@splidejs/splide-extension-grid/dist/js/splide-extension-grid.esm.js":(n,t,e)=>{function o(n,t,e){return Array.prototype.slice.call(n,t,e)}function r(n){return n.bind.apply(n,[null].concat(o(arguments,1)))}function i(n,t){return typeof t===n}e.d(t,{r:()=>on});var c=Array.isArray;function u(n){return c(n)?n:[n]}function s(n,t){u(n).forEach(t)}r(i,"function"),r(i,"string"),r(i,"undefined");var f=Object.keys;function l(n){return o(arguments,1).forEach((function(t){!function(n,t,e){if(n){var o=f(n);o=e?o.reverse():o;for(var r=0;r<o.length;r++){var i=o[r];if("__proto__"!==i&&!1===t(n[i],i))break}}}(t,(function(e,o){n[o]=t[o]}))})),n}var a="splide";var d="visible",h="hidden",p="refresh",g="updated",m="destroy";function v(n){var t=n?n.event.bus:document.createDocumentFragment(),e=function(){var n=[];function t(n,t,e){s(n,(function(n){n&&s(t,(function(t){t.split(" ").forEach((function(t){var o=t.split(".");e(n,o[0],o[1])}))}))}))}return{bind:function(e,o,r,i){t(e,o,(function(t,e,o){var c="addEventListener"in t,u=c?t.removeEventListener.bind(t,e,r,i):t.removeListener.bind(t,r);c?t.addEventListener(e,r,i):t.addListener(r),n.push([t,e,o,r,u])}))},unbind:function(e,o,r){t(e,o,(function(t,e,o){n=n.filter((function(n){return!!(n[0]!==t||n[1]!==e||n[2]!==o||r&&n[3]!==r)||(n[4](),!1)}))}))},dispatch:function(n,t,e){var o;return"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:!0,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,e),n.dispatchEvent(o),o},destroy:function(){n.forEach((function(n){n[4]()})),n.length=0}}}();return n&&n.event.on(m,e.destroy),l(e,{bus:t,on:function(n,o){e.bind(t,u(n).join(" "),(function(n){o.apply(o,c(n.detail)?n.detail:[])}))},off:r(e.unbind,t),emit:function(n){e.dispatch(t,n,o(arguments,1))}})}var b=a,E=a+"__slide",y=E+"__container";function $(n){n.length=0}function _(n,t,e){return Array.prototype.slice.call(n,t,e)}function C(n){return n.bind(null,..._(arguments,1))}function w(n,t){return typeof t===n}const A=Array.isArray;C(w,"function");const k=C(w,"string"),L=C(w,"undefined");function x(n){return null===n}function j(n){return A(n)?n:[n]}function S(n,t){j(n).forEach(t)}function N(n,t){return n.push(...j(t)),n}function M(n,t,e){n&&S(t,(t=>{t&&n.classList[e?"add":"remove"](t)}))}function D(n,t){M(n,k(t)?t.split(" "):t,!0)}function F(n,t){S(t,n.appendChild.bind(n))}function I(n,t){return n instanceof HTMLElement&&(n.msMatchesSelector||n.matches).call(n,t)}function O(n,t){return t?function(n,t){const e=n?_(n.children):[];return t?e.filter((n=>I(n,t))):e}(n,t)[0]:n.firstElementChild}const q=Object.keys;function B(n,t,e){if(n){let o=q(n);o=e?o.reverse():o;for(let e=0;e<o.length;e++){const r=o[e];if("__proto__"!==r&&!1===t(n[r],r))break}}return n}function H(n,t){S(n,(n=>{S(t,(t=>{n&&n.removeAttribute(t)}))}))}function R(n,t,e){var o;!x(o=t)&&w("object",o)?B(t,((t,e)=>{R(n,e,t)})):S(n,(n=>{x(e)||""===e?H(n,t):n.setAttribute(t,String(e))}))}function T(n,t,e){const o=document.createElement(n);return t&&(k(t)?D(o,t):R(o,t)),e&&F(e,o),o}function z(n,t,e){if(L(e))return getComputedStyle(n)[t];x(e)||(n.style[t]=`${e}`)}function G(n,t){return t?_(n.querySelectorAll(t)):[]}function J(n,t){M(n,t,!1)}function K(n){return k(n)?n:n?`${n}px`:""}const P="splide";const{min:Q,max:U,floor:V,ceil:W,abs:X}=Math;const Y=`${E}__row`,Z=`${E}--col`,nn={rows:1,cols:1,dimensions:[],gap:{}};function tn(n){function t(){const{rows:t,cols:e,dimensions:o}=n;return A(o)&&o.length?o:[[t,e]]}return{get:function(n){const e=t();return e[Q(n,e.length-1)]},getAt:function(n){const e=t();let o,r,i=0;for(let t=0;t<e.length;t++){const c=e[t];if(o=c[0]||1,r=c[1]||1,i+=o*r,n<i)break}return function(n,t){if(!n)throw new Error(`[${P}] ${t||""}`)}(o&&r,"Invalid dimension"),[o,r]}}}function en(n,t,e){const{on:o,destroy:r}=v(n),{Components:i,options:c}=n,{resolve:u}=i.Direction,{forEach:s}=i.Slides;function f(n,t){const e=O(n,`.${y}`),o=O(e||n,"img");o&&o.src&&(z(e||n,"background",t?"":`center/cover no-repeat url("${o.src}")`),z(o,"display",t?"":"none"))}function l(n){return G(n,`.${Y}`)}function a(n){return G(n,`.${Z}`)}function p(n,t){a(n).forEach((n=>{R(n,"tabindex",t?0:null)}))}function g(n){p(n.slide,!0)}function m(n){p(n.slide,!1)}return{mount:function(){s((o=>{const{slide:r}=o,[i,c]=e.get(o.isClone?o.slideIndex:o.index);!function(n,e){const{row:o}=t.gap,r=`calc(${100/n}%${o?` - ${K(o)} * ${(n-1)/n}`:""})`;l(e).forEach(((n,t,e)=>{z(n,"height",r),z(n,"display","flex"),z(n,"margin",`0 0 ${K(o)} 0`),z(n,"padding",0),t===e.length-1&&z(n,"marginBottom",0)}))}(i,r),function(n,e){const{col:o}=t.gap,r=`calc(${100/n}%${o?` - ${K(o)} * ${(n-1)/n}`:""})`;a(e).forEach(((n,t,e)=>{z(n,"width",r),t!==e.length-1&&z(n,u("marginRight"),K(o))}))}(c,r),a(o.slide).forEach(((t,e)=>{var r;t.id=`${o.slide.id}-col${r=e+1,r<10?`0${r}`:`${r}`}`,n.options.cover&&f(t)}))})),c.slideFocus&&(o(d,g),o(h,m))},destroy:function(){s((n=>{const{slide:t}=n;p(t,!1),l(t).forEach((n=>{H(n,"style")})),a(t).forEach((n=>{f(n,!0),H(n,"style")}))})),r()}}}function on(n,t,e){const{on:o,off:r}=v(n),{Elements:i}=t,c={},u=tn(c),s=en(n,c,u),f=`${b}--grid`,l=[];function a(){var t,s;t=c,j(s||q(t)).forEach((n=>{delete t[n]})),function(n){_(arguments,1).forEach((t=>{B(t,((e,o)=>{n[o]=t[o]}))}))}(c,nn,e.grid||{}),!function(){if(e.grid){const{rows:n,cols:t,dimensions:e}=c;return n>1||t>1||A(e)&&e.length>0}return!1}()?y()&&(d(),h()):(d(),N(l,i.slides),D(n.root,f),F(i.list,function(){const n=[];let t,e,o=0,r=0;return l.forEach(((i,c)=>{const[s,f]=u.getAt(c);r||(o||(t=T(i.tagName,E),n.push(t)),e=function(n,t,e){const o="li"===t.tagName.toLowerCase()?"ul":"div";return T(o,Y,e)}(0,i,t)),function(n,t,e){D(t,Z),F(e,t)}(0,i,e),++r>=f&&(r=0,o=++o>=s?0:o)})),n}()),r(p),o(p,m),h())}function d(){if(y()){const{slides:t}=i;s.destroy(),l.forEach((n=>{J(n,Z),F(i.list,n)})),S(t,(n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})),J(n.root,f),$(t),N(t,l),$(l),r(p)}}function h(){n.refresh()}function m(){y()&&s.mount()}function y(){return t=n.root,e=f,t&&t.classList.contains(e);var t,e}return{mount:function(){a(),o(g,a)},destroy:d}}}
1}]);
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.