(function($){
$.fn.powerkitPinIt=function(){
$(this).each(function(){
if($(this).hasClass('pk-pin-it-ready') ){
return;
}
var width=$(this).attr('width');
var height=$(this).attr('height');
if(typeof width==='undefined'){
width=$(this).width();
}
if(typeof height==='undefined'){
height=$(this).height();
}
if(!(parseInt(width) > 120&&parseInt(height) > 120) ){
$(this).addClass('pk-pin-it-ready');
return;
}
var container=$(this).parent(),
postURL=$(location).attr('href'),
pinURL;
if($(container).is('a') ){
var imagehref=$(container).attr('href');
if(typeof imagehref!=='undefined'&&imagehref.match(/\.(gif|jpeg|jpg|png|webp)/) ){
pinURL=imagehref;
}
if(!($(container).closest('figure').length) ){
$(container).wrap('<figure class="pk-pin-it-container"></figure>');
}
container=$(container).parent();
}else{
if(!($(container).is('figure')||$(container).closest('figure').length) ){
$(this).wrap('<figure class="pk-pin-it-container"></figure>');
}
container=$(this).parent();
}
if(!$(this).closest('figure').hasClass('pk-pin-it-container') ){
$(this).closest('figure').addClass('pk-pin-it-container');
}
if(! pinURL){
if($(this).is('img') ){
pinURL=(typeof $(this).data('pk-src')!=='undefined') ? $(this).data('pk-src'):$(this).attr('src');
}else{
pinURL=(typeof $(container).find('img').data('src')!=='undefined') ? $(container).find('img').data('src'):$(container).find('img').attr('src');
}}
pinURL=encodeURIComponent(pinURL);
postURL=encodeURIComponent(postURL);
var figure=container;
if(! $(container).is('figure') ){
figure=$(container).closest('figure');
}
var imgDescription=$(figure).find('img').data('pin-description');
if(!imgDescription){
imgDescription=$(figure).find('.wp-caption-text').text();
}
if(!imgDescription){
imgDescription=$(figure).find('figcaption').text();
}
if(!imgDescription){
imgDescription=$(figure).find('img').attr('alt');
}
if(imgDescription){
imgDescription='&amp;description=' + encodeURIComponent(imgDescription);
}
var imgClasses=[ 'alignnone', 'aligncenter', 'alignleft', 'alignright' ];
imgClasses.forEach(function(el){
if($(container).find('img').hasClass(el) ){
$(container).find('img').removeClass(el);
$(container).find('img').closest('figure').addClass(el);
var imgWidth=$(container).find('img').attr('width');
if(parseInt(imgWidth)!=='NaN'){
$(container).find('img').closest('figure').width(imgWidth);
}}
});
var addPowerkitPintIt=function(container){
if(! $(container).find('.pk-pin-it').length){
$('<a class="pk-pin-it" href="http://www.pinterest.com/pin/create/bookmarklet/?url=' + postURL + '&amp;media=' + pinURL + imgDescription + '&is_video=false" target="_blank"><span>Pin</span><span><i class="pk-icon pk-icon-pinterest"></i></span></a>')
.appendTo(container)
.addClass('pk-pin-it-visible');
}}
if(powerkit_pinit_localize.only_hover){
$(container).mousemove(function(){
addPowerkitPintIt(this);
});
$(container).mouseleave(function(){
var $this=this;
$($this).children('.pk-pin-it').fadeOut(200, function(){
$($this).children('.pk-pin-it').remove();
});
});
}else{
addPowerkitPintIt(container);
}
$(this).addClass('pk-pin-it-ready');
});
};
function initPowerkitPinIt(){
var filterPowerkitPinIt=function(){
var exclude=powerkit_pinit_localize.exclude_selectors;
if(exclude){
if($(this).closest(exclude).length > 0){
return false;
}}
return true;
}
$(powerkit_pinit_localize.image_selectors).imagesLoaded(function(){
$(powerkit_pinit_localize.image_selectors).filter(filterPowerkitPinIt).powerkitPinIt();
});
}
$(document).ready(function(){
initPowerkitPinIt();
$(document.body).on('post-load image-load', function(){
initPowerkitPinIt();
});
});
})(jQuery);
(function($){
$(document).ready(function(){
$(window).scroll(function(){
var offset=$('body').innerHeight() * 0.1;
if($(this).scrollTop() > offset){
$('.pk-scroll-to-top').addClass('pk-active');
}else{
$('.pk-scroll-to-top').removeClass('pk-active');
}});
$('.pk-scroll-to-top').on('click', function(){
$('body, html').animate({
scrollTop: 0
}, 400);
return false;
});
});
})(jQuery);
(function($){
$(document).ready(function(){
let blockquoteLength=$('.pk-share-buttons-blockquote').length;
if(blockquoteLength){
$('.entry-content').find('blockquote').each(function(index, item){
if($(item).closest('.wp-block-embed').length){
return;
}
if($(item).closest('.twitter-tweet').length){
return;
}
var text=$(this).find('p').text();
if(! text){
text=$(this).text();
}
let container=$('.pk-share-buttons-blockquote').not('.pk-share-buttons-blockquote-clone').clone().appendTo(item);
container.addClass('pk-share-buttons-blockquote-clone');
container.find('.pk-share-buttons-link').each(function(index, item){
let url=$(this).attr('href').replace('--SHARETEXT--', encodeURIComponent(text) );
$(this).attr('href', url);
});
});
}
let highlightLength=$('.pk-share-buttons-highlight-text').length;
if(highlightLength){
$('body').on('mouseup', function(e){
if(! $(e.target).closest('.entry-content').length &&
! $(e.target).closest('.pk-share-buttons-wrap').length){
highlightRemove();
}});
$('body').on('mouseup', '.entry-content', function(e){
e.preventDefault();
highlightRemove();
let selection=window.getSelection();
let text=selection.toString();
this.title='';
if(''!=text){
highlightDisplay(text, e);;
}});
var highlightRemove=function(){
$('.pk-share-buttons-highlight-clone').remove();
};
var highlightDisplay=function(text, e){
highlightRemove();
let container=$('.pk-share-buttons-highlight-text').not('.pk-share-buttons-highlight-clone').clone().appendTo('body');
let wrapper_x=e.pageX + 10;
let wrapper_y=e.pageY + 10;
container.addClass('pk-share-buttons-highlight-clone');
container.css({ left: wrapper_x, top: wrapper_y });
container.find('.pk-share-buttons-link').each(function(index, item){
let url=$(this).attr('href').replace('--SHARETEXT--', encodeURIComponent(text) );
$(this).attr('href', url);
});
}}
let mobileShare=$('.pk-share-buttons-layout-right-side, .pk-share-buttons-layout-left-side, .pk-share-buttons-layout-popup');
$(mobileShare).each(function(index, elem){
$(elem).find('.pk-share-buttons-total, .pk-share-buttons-link').on('click', function(e){
$('body').toggleClass('pk-mobile-share-active');
});
});
$(document).on('click', function(e){
if(! $(e.target) .closest('.pk-share-buttons-total').length){
$('body').removeClass('pk-mobile-share-active');
}});
});
})(jQuery);
(()=> {
"use strict";
var __webpack_modules__=([
,
((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__)=> {
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
csGetCookie: ()=> ( csGetCookie),
csSetCookie: ()=> ( csSetCookie),
csco: ()=> ( csco),
isInViewport: ()=> ( isInViewport),
slideDown: ()=> ( slideDown),
slideToggle: ()=> ( slideToggle),
slideUp: ()=> ( slideUp)
});
var csco={
addAction: function(x, y, z){
return;
}};
if('undefined'!==typeof wp&&'undefined'!==typeof wp.hooks){
csco.addAction=wp.hooks.addAction;
}
function isInViewport(element){
const rect=element.getBoundingClientRect();
const windowHeight=(window.innerHeight||document.documentElement.clientHeight);
const windowWidth=(window.innerWidth||document.documentElement.clientWidth);
return (rect.top <=windowHeight&&rect.top + rect.height >=0)&&(rect.left <=windowWidth&&rect.left + rect.width >=0);
}
function slideDown(element, duration=350){
element.style.display='block';
element.style.overflow='hidden';
let height=element.scrollHeight;
element.style.height=0;
setTimeout(()=> {
element.style.transition=`height ${duration}ms`;
element.style.height=height + 'px';
element.addEventListener('transitionend', function te(){
element.removeEventListener('transitionend', te);
element.style.removeProperty('height');
element.style.removeProperty('transition');
element.style.removeProperty('overflow');
});
}, 0);
}
function slideUp(element, duration=350){
element.style.height=element.offsetHeight + 'px';
element.style.overflow='hidden';
setTimeout(()=> {
element.style.transition=`height ${duration}ms`;
element.style.height='0';
element.addEventListener('transitionend', function te(){
element.removeEventListener('transitionend', te);
if(element.style.height==='0px'){
element.style.display='none';
}
element.style.removeProperty('height');
element.style.removeProperty('transition');
element.style.removeProperty('overflow');
});
}, 0);
}
function slideToggle(element, duration=350){
if(window.getComputedStyle(element).display==='none'){
return slideDown(element, duration);
}else{
return slideUp(element, duration);
}}
function csGetCookie(name){
let matches=document.cookie.match(new RegExp(
"(?:^|;)" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[ 1 ]):undefined;
}
function csSetCookie(name, value, props={}){
props={
path: '/'
};
if(props.expires instanceof Date){
props.expires=props.expires.toUTCString();
}
let updatedCookie=encodeURIComponent(name) + "=" + encodeURIComponent(value);
for(let optionKey in props){
updatedCookie +="; " + optionKey;
let optionValue=props[ optionKey ];
if(optionValue!==true){
updatedCookie +="=" + optionValue;
}}
document.cookie=updatedCookie;
}
})
]);
var __webpack_module_cache__={};
function __webpack_require__(moduleId){
var cachedModule=__webpack_module_cache__[moduleId];
if(cachedModule!==undefined){
return cachedModule.exports;
}
var module=__webpack_module_cache__[moduleId]={
exports: {}
};
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
return module.exports;
}
(()=> {
__webpack_require__.d=(exports, definition)=> {
for(var key in definition){
if(__webpack_require__.o(definition, key)&&!__webpack_require__.o(exports, key)){
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
}
}
};
})();
(()=> {
__webpack_require__.o=(obj, prop)=> (Object.prototype.hasOwnProperty.call(obj, prop))
})();
(()=> {
__webpack_require__.r=(exports)=> {
if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
}
Object.defineProperty(exports, '__esModule', { value: true });
};
})();
var __webpack_exports__={};
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
(function (){
const sliders=document.querySelectorAll(`.cs-header-bottombar-carousel .cs-header-bottombar__nav-menu`);
if(sliders.length===0){
return;
}
let executed=false;
const initSection=function(){
if(!executed&&(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(sliders[0])){
executed=true;
sliders.forEach(slider=> {
const wrapperClass=`cs-header-bottombar__nav`;
const slideClass=`menu-item`;
const prevEl=slider.querySelector(`.cs-header-bottombar__button-prev`);
const nextEl=slider.querySelector(`.cs-header-bottombar__button-next`);
new Swiper(slider, {
scrollbar: false,
wrapperClass: wrapperClass,
slideClass: slideClass,
direction: 'horizontal',
loop: false,
rewind: true,
speed: 250,
parallax: false,
autoplay: false,
slidesPerView: 'auto',
spaceBetween: 0,
navigation: {
nextEl: nextEl,
prevEl: prevEl,
},
});
});
}};
document.addEventListener('DOMContentLoaded', ()=> {
initSection();
});
window.addEventListener('resize', ()=> {
initSection();
});
window.addEventListener('scroll', ()=> {
initSection();
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
(function (){
const section='cs-carousel';
const sliders=document.querySelectorAll(`.${section}`);
if(sliders.length===0){
return;
}
let executed=false;
const initSection=function(){
if(!executed&&(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(sliders[0])){
executed=true;
sliders.forEach(slider=> {
const postContentContainer='.cs-entry__content';
const postContents=slider.querySelectorAll(postContentContainer);
const setParallaxAttributes=function(element, duration){
element.setAttribute('data-swiper-parallax-x', '-400');
element.setAttribute('data-swiper-parallax-duration', duration);
};
const postPerViewValue=slider.getAttribute('data-cs-post-per-view');
const autoplayValue=slider.getAttribute('data-cs-autoplay');
const autoplayDelayValue=slider.getAttribute('data-cs-autoplay-delay');
const speedValue=slider.getAttribute('data-cs-slide-speed');
const parallaxValue=slider.getAttribute('data-cs-parallax');
const gapValue=slider.getAttribute('data-cs-gap');
const postPerView=(!isNaN(parseInt(postPerViewValue))&&parseInt(postPerViewValue) > 0) ? parseInt(postPerViewValue):3;
const autoplayDelay=(!isNaN(parseInt(autoplayDelayValue))&&parseInt(autoplayDelayValue) > 0) ? parseInt(autoplayDelayValue):5000;
const autoplay=('true'===autoplayValue) ? { delay: autoplayDelay, disableOnInteraction: false, pauseOnMouseEnter: true, }:false;
const speed = !isNaN(parseInt(speedValue)) ? parseInt(speedValue):800;
const parallax=('true'===parallaxValue) ? true:false;
const gap = !isNaN(parseInt(gapValue)) ? parseInt(gapValue):0;
if(parallax){
if(postContents.length > 0){
postContents.forEach(postContent=> {
setParallaxAttributes(postContent, '800');
});
}}
const wrapperClass=`${section}__wrapper`;
const slideClass=`${section}__item`;
const prevEl=slider.querySelector(`.${section}__button-prev`);
const nextEl=slider.querySelector(`.${section}__button-next`);
const paginationContainer=slider.querySelector(`.${section}__pagination`);
const progressbar=slider.querySelector(`.${section}__progress-bar`);
const bulletClass=`${section}__pagination-bullet`;
const bulletClassActive=`${section}__pagination-bullet-active`;
const carouselTabs=new Swiper(slider.querySelector(`.${section}__swiper-tabs`), {
scrollbar: false,
wrapperClass: wrapperClass,
slideClass: slideClass,
direction: 'horizontal',
loop: true,
speed: speed,
parallax: false,
slidesPerView: postPerView,
freeMode: true,
spaceBetween: 0,
});
const carouselPost=new Swiper(slider.querySelector(`.${section}__swiper-post`), {
scrollbar: false,
wrapperClass: wrapperClass,
slideClass: slideClass,
direction: 'horizontal',
loop: true,
speed: speed,
parallax: parallax,
autoplay: autoplay,
slidesPerView: 1,
spaceBetween: gap,
a11y: {
slideRole: 'article',
slideLabelMessage: 'Slide {{index}} of {{slidesLength}}'
},
pagination: {
type: 'progressbar',
el: paginationContainer,
clickable: true,
bulletElement: 'span',
bulletClass: bulletClass,
bulletActiveClass: bulletClassActive,
},
navigation: {
nextEl: nextEl,
prevEl: prevEl,
},
thumbs: {
swiper: carouselTabs,
},
on: {
autoplayTimeLeft(s, time, progress){
progressbar.style.setProperty(`--${section}-progressbar`, 1 - progress);
},
init: function (){
setTimeout(()=> {
const initialSlide=this.slides[this.activeIndex];
if(initialSlide){
const initialContent=initialSlide.querySelector(postContentContainer);
if(initialContent){
initialContent.style.transform='none';
}}
}, 100);
},
slideChange: function (){
const currentSlide=this.slides[this.activeIndex];
postContents.forEach(postContent=> {
if(postContent===currentSlide.querySelector(postContentContainer)){
postContent.style.transform='none';
}});
}},
});
let tabsHeight=slider.querySelector(`.${section}__swiper-tabs`).offsetHeight;
slider.style.setProperty(`--${section}-tabs-height`, tabsHeight + 'px');
});
}};
document.addEventListener('DOMContentLoaded', ()=> {
initSection();
});
window.addEventListener('resize', ()=> {
initSection();
});
window.addEventListener('scroll', ()=> {
initSection();
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function (){
const toggles=document.querySelectorAll('.cs-entry__comments-toggle');
toggles.forEach(toggle=> {
toggle.addEventListener('click', function (e){
e.preventDefault();
const commentsElement=document.querySelector('.cs-entry__comments');
commentsElement.classList.toggle('cs-entry__comments-visible');
});
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
(function (){
HTMLElement.prototype.responsiveNav=function (){
this.classList.remove('menu-item-expanded');
let previousElement=this.previousElementSibling;
if(previousElement&&previousElement.classList.contains('submenu-visible')){
previousElement.classList.remove('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(previousElement);
this.parentElement.classList.remove('menu-item-expanded');
}else{
let parentOfParent=this.parentElement.parentElement;
parentOfParent.querySelectorAll('.menu-item .sub-menu').forEach(subMenu=> {
subMenu.classList.remove('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(subMenu);
});
parentOfParent.querySelectorAll('.menu-item-expanded').forEach(item=> {
item.classList.remove('menu-item-expanded');
});
if(previousElement){
previousElement.classList.toggle('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideToggle)(previousElement);
}
this.parentElement.classList.toggle('menu-item-expanded');
}};
document.addEventListener('DOMContentLoaded', function (){
let menuItems=document.querySelectorAll('.cs-footer-columns__nav .menu-item-has-children');
menuItems.forEach(menuItem=> {
let span=document.createElement('span');
menuItem.appendChild(span);
span.addEventListener('click', function (e){
e.preventDefault();
this.responsiveNav();
});
});
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function (){
const body=document.body;
const headerElement=document.querySelector('.cs-header');
const headerOverlay=document.querySelector('.cs-header-overlay');
const searchToggles=document.querySelectorAll('.cs-header__search-toggle, .cs-search__close');
const burgerToggles=document.querySelectorAll('.cs-header__burger-toggle');
const followToggles=document.querySelectorAll('.cs-follow__toggle');
searchToggles.forEach(searchToggle=> {
searchToggle.addEventListener('click', function (e){
e.preventDefault();
if(body.classList.contains('cs-offcanvas-active')){
body.classList.remove('cs-offcanvas-active');
}
if(headerElement.classList.contains('cs-burger-visible')){
headerElement.classList.remove('cs-burger-visible');
body.classList.remove('cs-burger-active');
}
if(headerElement.classList.contains('cs-follow-visible')){
headerElement.classList.remove('cs-follow-visible');
body.classList.remove('cs-follow-active');
}
headerElement.classList.toggle('cs-search-visible');
body.classList.toggle('cs-search-active');
});
});
burgerToggles.forEach(burgerToggle=> {
burgerToggle.addEventListener('click', function (e){
e.preventDefault();
if(body.classList.contains('cs-offcanvas-active')){
body.classList.remove('cs-offcanvas-active');
}
if(headerElement.classList.contains('cs-search-visible')){
headerElement.classList.remove('cs-search-visible');
body.classList.remove('cs-search-active');
}
if(headerElement.classList.contains('cs-follow-visible')){
headerElement.classList.remove('cs-follow-visible');
body.classList.remove('cs-follow-active');
}
headerElement.classList.toggle('cs-burger-visible');
body.classList.toggle('cs-burger-active');
});
});
followToggles.forEach(followToggle=> {
followToggle.addEventListener('click', function (e){
e.preventDefault();
if(body.classList.contains('cs-offcanvas-active')){
body.classList.remove('cs-offcanvas-active');
}
if(headerElement.classList.contains('cs-search-visible')){
headerElement.classList.remove('cs-search-visible');
body.classList.remove('cs-search-active');
}
if(headerElement.classList.contains('cs-burger-visible')){
headerElement.classList.remove('cs-burger-visible');
body.classList.remove('cs-burger-active');
}
headerElement.classList.toggle('cs-follow-visible');
body.classList.toggle('cs-follow-active');
});
});
if(headerOverlay){
headerOverlay.addEventListener('click', function (e){
e.preventDefault();
if(headerElement.classList.contains('cs-search-visible')){
headerElement.classList.remove('cs-search-visible');
body.classList.remove('cs-search-active');
}
if(headerElement.classList.contains('cs-burger-visible')){
headerElement.classList.remove('cs-burger-visible');
body.classList.remove('cs-burger-active');
}
if(headerElement.classList.contains('cs-follow-visible')){
headerElement.classList.remove('cs-follow-visible');
body.classList.remove('cs-follow-active');
}});
}})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
document.addEventListener('DOMContentLoaded', function (){
let transitionTimer;
document.addEventListener('nav-stick', function (event){
if(document.body.classList.contains('cs-display-header-overlay')){
let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header');
let headerAlt=headerSmart.querySelector('.cs-container');
headerAlt.classList.add("cs-header-elements-no-transition");
clearTimeout(transitionTimer);
transitionTimer=setTimeout(function (){
headerAlt.classList.remove("cs-header-elements-no-transition");
}, 300);
}});
document.addEventListener('nav-unstick', function (event){
if(document.body.classList.contains('cs-display-header-overlay')){
let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header');
let headerAlt=headerSmart.querySelector('.cs-container');
headerAlt.classList.add("cs-header-elements-no-transition");
clearTimeout(transitionTimer);
transitionTimer=setTimeout(function (){
headerAlt.classList.remove("cs-header-elements-no-transition");
}, 300);
}});
});
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
document.addEventListener('DOMContentLoaded', function (){
document.addEventListener('header-smart-stretch-scroll-sticky-scroll-init', function (event){
let headerParams=event.detail;
window.addEventListener('scroll', function (){
let scrolled=window.scrollY;
let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header');
headerParams.headerSmartPosition=headerSmart ? headerSmart.offsetTop:0;
if(scrolled > headerParams.smartStart + headerParams.scrollPoint + 10&&scrolled > headerParams.scrollPrev){
if(scrolled > headerParams.smartStart + headerParams.headerLargeHeight + 200){
document.dispatchEvent(new CustomEvent('sticky-nav-hide', { detail: headerParams }));
}}else{
if(headerParams.scrollUpAmount >=headerParams.scrollPoint||scrolled===0){
document.dispatchEvent(new CustomEvent('sticky-nav-visible', { detail: headerParams }));
}}
if(scrolled > headerParams.smartStart + headerParams.headerLargeHeight){
document.dispatchEvent(new CustomEvent('nav-stick', { detail: headerParams }));
}else if(headerParams.headerSmartPosition <=headerParams.smartStart){
document.dispatchEvent(new CustomEvent('nav-unstick', { detail: headerParams }));
}
if(scrolled < headerParams.scrollPrev){
headerParams.scrollUpAmount +=headerParams.scrollPrev - scrolled;
}else{
headerParams.scrollUpAmount=0;
}
let wpAdminBar=document.querySelector('#wpadminbar');
if(wpAdminBar&&window.innerWidth <=600&&scrolled >=headerParams.wpAdminBarHeight){
document.dispatchEvent(new CustomEvent('adminbar-mobile-scrolled', { detail: headerParams }));
}else{
document.dispatchEvent(new CustomEvent('adminbar-mobile-no-scrolled', { detail: headerParams }));
}
headerParams.scrollPrev=scrolled;
});
});
});
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
if(typeof window.load_more_query==='undefined'){
window.load_more_query=[];
}
function csco_ajax_get_posts(object){
let container=object.closest('.cs-posts-area');
let settings=JSON.parse(object.dataset.settings);
let page=parseInt(object.dataset.page);
object.dataset.loading=true;
object.textContent=settings.translation.loading;
let data={
action: 'csco_ajax_load_more',
page: page,
posts_per_page: settings.posts_per_page,
query_data: settings.query_data,
attributes: settings.attributes,
options: settings.options,
_ajax_nonce: settings.nonce,
};
let csco_pagination_url=(settings.type==='ajax_restapi') ? settings.rest_url:settings.url;
function encodeFormData(data){
return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&');
}
fetch(csco_pagination_url, {
method: 'POST',
body: encodeFormData(data),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}})
.then(response=> response.json())
.then(res=> {
if(res.success){
let dataContent=document.createElement('div');
dataContent.innerHTML=res.data.content;
if(dataContent.children.length){
document.body.dispatchEvent(new Event('post-load'));
if(document.querySelector('#fb-root')&&typeof FB!=='undefined'){
FB.XFBML.parse();
}
object.textContent=settings.translation.load_more;
page +=1;
object.dataset.page=page.toString();
object.dataset.loading="false";
let mainContainer=container.querySelector('.cs-posts-area__main');
while (dataContent.firstChild){
mainContainer.appendChild(dataContent.firstChild);
}}
if(res.data.posts_end){
object.parentNode.removeChild(object);
}}
})
.catch(error=> {
console.error('Error fetching posts:', error);
});
}
function csco_load_more_init(infinite){
let areas=document.querySelectorAll('.cs-posts-area');
areas.forEach(area=> {
if(area.dataset.init){
return;
}
let csco_ajax_settings;
let archive_data=area.dataset.postsArea;
if(archive_data){
csco_ajax_settings=JSON.parse(window.atob(archive_data));
}else if(typeof csco_ajax_pagination!=='undefined'&&typeof archive_data==='undefined'){
csco_ajax_settings=csco_ajax_pagination;
}
if(csco_ajax_settings){
if(!infinite&&csco_ajax_settings.infinite_load){
return;
}
let pagination=document.createElement('div');
pagination.className='cs-posts-area__pagination';
let btn=document.createElement('button');
btn.className='cs-load-more';
btn.textContent=csco_ajax_settings.translation.load_more;
pagination.appendChild(btn);
area.appendChild(pagination);
btn.dataset.settings=JSON.stringify(csco_ajax_settings);
btn.dataset.page='2';
btn.dataset.loading="false";
btn.dataset.scrollHandling=JSON.stringify({
allow: JSON.parse(csco_ajax_settings.infinite_load),
delay: 400
});
}
area.dataset.init=true;
});
}
csco_load_more_init(true);
window.addEventListener('elementor/frontend/init', function (){
csco_load_more_init(true);
});
window.addEventListener('scroll', function (){
let buttons=document.querySelectorAll('.cs-posts-area .cs-load-more');
buttons.forEach(btn=> {
let loading=btn.dataset.loading==="true";
let scrollHandling=JSON.parse(btn.dataset.scrollHandling||'{}');
if(loading||!scrollHandling.allow){
return;
}
scrollHandling.allow=false;
btn.dataset.scrollHandling=JSON.stringify(scrollHandling);
setTimeout(function (){
scrollHandling.allow=true;
btn.dataset.scrollHandling=JSON.stringify(scrollHandling);
}, scrollHandling.delay);
let offset=btn.getBoundingClientRect().top - window.innerHeight;
if(offset < 4000){
csco_ajax_get_posts(btn);
}});
});
document.body.addEventListener('click', function (event){
if(event.target.classList.contains('cs-load-more')){
let loading=event.target.dataset.loading==="true";
if(!loading){
csco_ajax_get_posts(event.target);
}}
});
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
if(typeof csco_ajax_nextpost!=='undefined'){
var objNextparent=document.querySelector('.cs-site-primary > .cs-site-content');
var objNextsect='.cs-nextpost-section';
var objNextpost=null;
var currentNTitle=document.title;
var currentNLink=window.location.href;
var loadingNextpost=false;
var scrollNextpost={
allow: true,
reallow: function (){
scrollNextpost.allow=true;
},
delay: 400 //(milliseconds) adjust to the highest acceptable value
};
if(csco_ajax_nextpost.next_post){
objNextparent.insertAdjacentHTML('afterend', '<div class="cs-nextpost-inner"></div>');
objNextpost=document.querySelector('.cs-nextpost-inner');
}}
function csco_ajax_get_nextpost(){
loadingNextpost=true;
var data={
action: 'csco_ajax_load_nextpost',
not_in: csco_ajax_nextpost.not_in,
current_user: csco_ajax_nextpost.current_user,
nonce: csco_ajax_nextpost.nonce,
next_post: csco_ajax_nextpost.next_post,
};
var csco_ajax_nextpost_url;
if('ajax_restapi'===csco_ajax_nextpost.type){
csco_ajax_nextpost_url=csco_ajax_nextpost.rest_url;
}else{
csco_ajax_nextpost_url=csco_ajax_nextpost.url;
}
function encodeFormData(data){
return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&');
}
fetch(csco_ajax_nextpost_url, {
method: 'POST',
body: encodeFormData(data),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}})
.then(response=> response.json())
.then(res=> {
csco_ajax_nextpost.next_post=false;
if(res.success){
var tempDiv=document.createElement('div');
tempDiv.innerHTML=res.data.content;
var data=tempDiv.children;
if(data.length){
loadingNextpost=false;
csco_ajax_nextpost.not_in=res.data.not_in;
csco_ajax_nextpost.next_post=res.data.next_post;
var loadingElement=objNextpost.nextElementSibling;
if(loadingElement&&loadingElement.classList.contains('cs-nextpost-loading')){
loadingElement.remove();
}
for (var i=0; i < data.length; i++){
objNextpost.appendChild(data[i].cloneNode(true));
}
if(document.getElementById('fb-root')&&typeof FB==='object'){
FB.XFBML.parse();
}
document.body.dispatchEvent(new Event('post-load'));
}}else{
}})
.catch(error=> {
});
}
if(typeof csco_ajax_nextpost!=='undefined'){
window.addEventListener('scroll', function (){
var scrollTop=window.scrollY||window.pageYOffset;
if(csco_ajax_nextpost.next_post){
if(objNextpost&&!loadingNextpost&&scrollNextpost.allow){
scrollNextpost.allow=false;
setTimeout(scrollNextpost.reallow, scrollNextpost.delay);
var offset=objNextpost.offsetTop + objNextpost.offsetHeight - scrollTop;
if(4000 > offset){
objNextpost.insertAdjacentHTML('afterend', '<div class="cs-nextpost-loading"></div>');
csco_ajax_get_nextpost();
}}
}
var objFirst=document.querySelector(objNextsect + ':first-child');
if(objFirst){
var firstTop=objFirst.offsetTop;
if(scrollTop < firstTop&&window.location.href!==currentNLink){
document.title=currentNTitle;
history.pushState(null, currentNTitle, currentNLink);
}}
document.querySelectorAll(objNextsect).forEach(function (elem){
var elemTop=elem.offsetTop;
var elemHeight=elem.offsetHeight;
if(scrollTop > elemTop&&scrollTop < elemTop + elemHeight){
if(window.location.href!==elem.dataset.url){
document.title=elem.dataset.title;
history.pushState(null, elem.dataset.title, elem.dataset.url);
if(typeof gtag==='function'&&typeof window.gaData==='object'){
var trackingId=Object.keys(window.gaData)[0];
if(trackingId){
gtag('config', trackingId, {
'page_title': elem.dataset.title,
'page_location': elem.dataset.url
});
gtag('event', 'page_view', {
'send_to': trackingId
});
}}
}}
});
});
}})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
document.addEventListener('DOMContentLoaded', function (){
function loadMenuPosts(menuItem){
var dataTerm=menuItem.children[0].dataset.term,
dataPosts=menuItem.children[0].dataset.posts,
dataNumberposts=menuItem.children[0].dataset.numberposts,
menuContainer,
postsContainer;
if(menuItem.classList.contains('cs-mega-menu-term')||menuItem.classList.contains('cs-mega-menu-posts')){
menuContainer=menuItem;
postsContainer=menuContainer.querySelector('.cs-mm__posts');
}
if(menuItem.classList.contains('cs-mega-menu-child-term')){
menuContainer=menuItem.closest('.sub-menu');
postsContainer=menuContainer.querySelector('.cs-mm__posts[data-term="' + dataTerm + '"]');
}
if(!menuContainer||typeof menuContainer==='undefined'){
return false;
}
if(!postsContainer||typeof postsContainer==='undefined'){
return false;
}
menuContainer.querySelectorAll('.menu-item, .cs-mm__posts').forEach(function (el){
el.classList.remove('cs-active-item');
});
menuItem.classList.add('cs-active-item');
if(postsContainer){
postsContainer.classList.add('cs-active-item');
}
if(menuItem.classList.contains('cs-mm-loading')||menuItem.classList.contains('loaded')){
return false;
}
var data={
'term': dataTerm,
'posts': dataPosts,
'per_page': dataNumberposts
};
if(typeof csco_mega_menu==='undefined'){
return;
}
menuItem.classList.add('cs-mm-loading');
postsContainer.classList.add('cs-mm-loading');
function encodeFormData(data){
return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&');
}
fetch(csco_mega_menu.rest_url, {
method: 'POST',
body: encodeFormData(data),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}})
.then(response=> response.json())
.then(res=> {
if(res.status&&'success'===res.status){
menuItem.classList.add('loaded');
postsContainer.classList.add('loaded');
if(res.content&&res.content.length){
postsContainer.innerHTML=res.content;
imagesLoaded(postsContainer, function (){
});
}}
})
.catch(error=> {
})
.finally(()=> {
menuItem.classList.remove('cs-mm-loading');
postsContainer.classList.remove('cs-mm-loading');
});
}
function getFirstTab(container){
var firstTab=false;
container.querySelectorAll('.cs-mega-menu-child').forEach(function (el){
if(! firstTab&&el.classList.contains('cs-mega-menu-child')){
firstTab=el;
}});
return firstTab;
}
function handleMenuHover(event){
var menuItem=event.currentTarget;
if(menuItem.classList.contains('cs-mega-menu-posts') ||
menuItem.classList.contains('cs-mega-menu-term') ||
menuItem.classList.contains('cs-mega-menu-child')){
loadMenuPosts(menuItem);
}}
function handleTermsHover(event){
var menuItem=event.currentTarget;
var tab=getFirstTab(menuItem);
if(tab){
loadMenuPosts(tab);
}}
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-posts').forEach(function (menuItem){
menuItem.addEventListener('mouseenter', handleMenuHover);
});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-term').forEach(function (menuItem){
menuItem.addEventListener('mouseenter', handleMenuHover);
});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-child').forEach(function (menuItem){
menuItem.addEventListener('mouseenter', handleMenuHover);
});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-terms').forEach(function (menuItem){
menuItem.addEventListener('mouseenter', handleTermsHover);
});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-terms').forEach(function (menuItem){
var tab=getFirstTab(menuItem);
if(tab){
loadMenuPosts(tab);
}});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-posts').forEach(function (menuItem){
loadMenuPosts(menuItem);
});
document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-term').forEach(function (menuItem){
loadMenuPosts(menuItem);
});
});
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
class CscoNavigation {
constructor(){
this.headerParams={
headerLargeHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')),
headerCompactHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')),
headerSmart: document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'),
wpAdminBar: document.querySelector('#wpadminbar'),
headerBefore: document.querySelector('.cs-header-before'),
headerStretch: document.querySelector('.cs-navbar-smart-enabled .cs-header-stretch'),
wpAdminBarHeight: null,
smartStart: null,
scrollPoint: 200,
scrollPrev: 200,
scrollUpAmount: 0,
headerSmartPosition: 0
};
this.initialize();
}
initialize(){
if(document.body.classList.contains('wp-admin')){
return;
}
this.bindEvents();
}
bindEvents(){
document.addEventListener('DOMContentLoaded', ()=> {
this.smartLevels();
this.adaptTablet();
this.stickyScroll();
this.headerClassesChange();
});
window.addEventListener('resize', ()=> {
this.smartLevels();
this.adaptTablet();
this.stickyScroll();
});
}
smartLevels(){
let windowWidth=window.innerWidth;
document.querySelectorAll('.cs-header__nav-inner li').forEach(el=> {
el.classList.remove('cs-sm__level', 'cs-sm-position-left', 'cs-sm-position-right');
});
document.querySelectorAll('.cs-header__nav-inner li .sub-menu').forEach(el=> {
el.classList.remove('cs-mm__position-init');
});
document.querySelectorAll('.cs-header__nav-inner > li.menu-item:not(.cs-mm)').forEach(parent=> {
let position='cs-sm-position-right';
let objPrevWidth=0;
parent.querySelectorAll('.sub-menu').forEach(el=> {
if(el.parentElement.nextElementSibling){
el.parentElement.nextElementSibling.classList.add('cs-sm__level');
}
if(el.parentElement.classList.contains('cs-sm__level')){
el.parentElement.classList.remove('cs-mm-level');
position='cs-sm-position-right';
objPrevWidth=0;
}
let offset=el.getBoundingClientRect().left;
if(position==='cs-sm-position-right'&&el.offsetWidth + offset > windowWidth){
position='cs-sm-position-left';
}
if(position==='cs-sm-position-left'&&offset - (el.offsetWidth + objPrevWidth) < 0){
position='cs-sm-position-right';
}
objPrevWidth=el.offsetWidth;
el.classList.add('cs-sm-position-init');
el.parentElement.classList.add(position);
});
});
}
adaptTablet(){
document.addEventListener('touchstart', (e)=> {
if(!e.target.closest('.cs-header__nav-inner')){
document.querySelectorAll('.cs-header__nav-inner .menu-item-has-children').forEach(el=> {
el.classList.remove('submenu-visible');
});
}else{
let parentMenuItem=e.target.closest('.menu-item');
if(parentMenuItem){
if(parentMenuItem.previousElementSibling){
parentMenuItem.previousElementSibling.querySelectorAll('.menu-item').forEach(el=> {
el.classList.remove('submenu-visible');
});
}
if(parentMenuItem.nextElementSibling){
parentMenuItem.nextElementSibling.classList.remove('submenu-visible');
}}
}});
document.querySelectorAll('.cs-header__nav-inner .menu-item-has-children').forEach(el=> {
el.classList.remove('submenu-visible');
let expandedElem=el.querySelector('a > .expanded');
if(expandedElem){
expandedElem.remove();
}
if('ontouchstart' in document.documentElement){
let aTag=el.querySelector('a');
if(aTag){
let span=document.createElement('span');
span.className='expanded';
aTag.appendChild(span);
}}
if('ontouchstart' in document.documentElement){
el.classList.add('touch-device');
}
let expandedElement=el.querySelector('a .expanded');
if(expandedElement){
expandedElement.addEventListener('touchstart', (e)=> {
e.preventDefault();
el.classList.toggle('submenu-visible');
}, { passive: false });
}
let anchor=el.querySelector('a');
if(anchor&&anchor.getAttribute('href')==='#'){
anchor.addEventListener('touchstart', (e)=> {
e.preventDefault();
if(!e.target.classList.contains('expanded')){
el.classList.toggle('submenu-visible');
}}, { passive: false });
}});
}
stickyScroll(){
this.headerParams={
headerLargeHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')),
headerCompactHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')),
headerSmart: document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'),
wpAdminBar: document.querySelector('#wpadminbar'),
headerBefore: document.querySelector('.cs-header-before'),
headerStretch: document.querySelector('.cs-navbar-smart-enabled .cs-header-stretch'),
wpAdminBarHeight: null,
smartStart: null,
scrollPoint: 200,
scrollPrev: 200,
scrollUpAmount: 0,
headerSmartPosition: 0
};
this.headerParams.wpAdminBarHeight=this.headerParams.wpAdminBar ? this.headerParams.wpAdminBar.offsetHeight:0;
if(this.headerParams.headerBefore){
this.headerParams.smartStart=this.headerParams.headerBefore.offsetTop;
}else{
this.headerParams.smartStart=this.headerParams.wpAdminBarHeight + (this.headerParams.headerSmart ? this.headerParams.headerSmart.offsetTop:0);
}
window.addEventListener('scroll', ()=> {
let scrolled=window.scrollY;
this.headerParams.headerSmartPosition=this.headerParams.headerSmart ? this.headerParams.headerSmart.offsetTop:0;
if(scrolled > this.headerParams.smartStart + this.headerParams.scrollPoint + 10&&scrolled > this.headerParams.scrollPrev){
if(scrolled > this.headerParams.smartStart + this.headerParams.headerCompactHeight + 200){
document.dispatchEvent(new Event('sticky-nav-hide'));
}}else{
if(this.headerParams.scrollUpAmount >=this.headerParams.scrollPoint||scrolled===0){
document.dispatchEvent(new Event('sticky-nav-visible'));
}}
if(this.headerParams.headerSmart){
if(scrolled > this.headerParams.smartStart + this.headerParams.headerCompactHeight){
document.dispatchEvent(new Event('nav-stick', { detail: this.headerParams }));
}else if(this.headerParams.headerSmartPosition <=this.headerParams.smartStart){
document.dispatchEvent(new Event('nav-unstick', { detail: this.headerParams }));
}}
if(scrolled < this.headerParams.scrollPrev){
this.headerParams.scrollUpAmount +=this.headerParams.scrollPrev - scrolled;
}else{
this.headerParams.scrollUpAmount=0;
}
if(this.headerParams.wpAdminBar&&window.innerWidth <=600&&scrolled >=this.headerParams.wpAdminBarHeight){
document.dispatchEvent(new Event('adminbar-mobile-scrolled'));
}else{
document.dispatchEvent(new Event('adminbar-mobile-no-scrolled'));
}
this.headerParams.scrollPrev=scrolled;
});
}
headerClassesChange(){
document.addEventListener("sticky-nav-visible", event=> {
this.headerParams.headerSmart.classList.add('cs-header-smart-visible');
});
document.addEventListener("sticky-nav-hide", event=> {
this.headerParams.headerSmart.classList.remove('cs-header-smart-visible');
});
document.addEventListener("nav-stick", event=> {
this.headerParams.headerSmart.classList.add('cs-scroll-sticky');
});
document.addEventListener("nav-unstick", event=> {
this.headerParams.headerSmart.classList.remove('cs-scroll-sticky', 'cs-header-smart-visible');
});
document.addEventListener("adminbar-mobile-scrolled", event=> {
document.body.classList.add('cs-adminbar-mobile-scrolled');
});
document.addEventListener("adminbar-mobile-no-scrolled", event=> {
document.body.classList.remove('cs-adminbar-mobile-scrolled');
});
}}
new CscoNavigation();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function (){
const body=document.body;
const headerElement=document.querySelector('.cs-header');
const offcanvasToggles=document.querySelectorAll('.cs-header__offcanvas-toggle, .cs-site-overlay, .cs-offcanvas__toggle');
offcanvasToggles.forEach(offcanvasToggle=> {
offcanvasToggle.addEventListener('click', function (e){
e.preventDefault();
if(headerElement.classList.contains('cs-search-visible')){
headerElement.classList.remove('cs-search-visible');
body.classList.remove('cs-search-active');
}
if(headerElement.classList.contains('cs-burger-visible')){
headerElement.classList.remove('cs-burger-visible');
body.classList.remove('cs-burger-active');
}
if(!body.classList.contains('cs-offcanvas-active')){
body.classList.add('cs-offcanvas-transition');
}else{
setTimeout(()=> {
body.classList.remove('cs-offcanvas-transition');
}, 400);
}
body.classList.toggle('cs-offcanvas-active');
});
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function (){
function initResponsiveEmbeds(){
let proportion, parentWidth;
let iframes=document.querySelectorAll('.entry-content iframe');
iframes.forEach(iframe=> {
if(iframe.closest('div[data-video-start], div[data-video-end]')){
return;
}
if(iframe.width&&iframe.height){
proportion=parseFloat(iframe.width) / parseFloat(iframe.height);
parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement).width);
iframe.style.maxWidth='100%';
iframe.style.maxHeight=Math.round(parentWidth / proportion) + 'px';
}});
}
document.addEventListener('DOMContentLoaded', function (){
initResponsiveEmbeds();
});
document.body.addEventListener('post-load', function (){
initResponsiveEmbeds();
});
window.addEventListener('resize', function (){
initResponsiveEmbeds();
});
initResponsiveEmbeds();
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
const cscoDarkMode={
init: function (){
this.initMode();
window.matchMedia('(prefers-color-scheme: dark)').addListener((e)=> {
this.initMode();
});
document.querySelectorAll('.cs-site-scheme-toggle').forEach(toggle=> {
toggle.onclick=()=> {
let siteScheme=document.body.getAttribute('data-scheme');
if('dark'===siteScheme){
this.changeScheme('light', true);
}else if('light'===siteScheme){
this.changeScheme('dark', true);
}else if('auto'===siteScheme){
const systemDark=window.matchMedia('(prefers-color-scheme: dark)').matches;
if(systemDark){
this.changeScheme('light', true);
}else{
this.changeScheme('dark', true);
}}
};});
},
detectColorScheme: function (color){
var level=190;
var alpha=1;
var rgba=[255, 255, 255];
var color_rgba=false;
color=color.trim();
if(['#0e131a'].includes(color) ){
return 'dark';
}
if('#'===color[0]){
color=color.replace('#', '').trim();
if(3===color.length){
color=color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
}
rgba[0]=parseInt(color.substr(0, 2), 16);
rgba[1]=parseInt(color.substr(2, 2), 16);
rgba[2]=parseInt(color.substr(4, 2), 16);
}else if((color_rgba=color.replace(/\s/g, '').match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i))){
rgba[0]=parseInt(color_rgba[1]);
rgba[1]=parseInt(color_rgba[2]);
rgba[2]=parseInt(color_rgba[3]);
if(color_rgba[4]!==undefined){
alpha=parseFloat(color_rgba[4]);
}}
rgba.forEach(function myFunction(channel, key, stack){
stack[key]=String(channel + Math.ceil((255 - channel) * (1 - alpha))).padStart(2, '0');
});
var scheme='light';
var brightness=((rgba[0] * 299) + (rgba[1] * 587) + (rgba[2] * 114)) / 1000;
if(rgba[0]===rgba[1]&&rgba[1]===rgba[2]){
if(brightness < level){
scheme='dark';
}}else{
if(brightness < level){
scheme='inverse';
}}
return scheme;
},
setIndividualScheme: function (){
var list={
'.cs-header': '--cs-header-background',
'.cs-header__nav-inner .sub-menu': '--cs-header-submenu-background',
'.cs-header-topbar': '--cs-header-topbar-background',
'.cs-offcanvas': '--cs-offcanvas-background',
'.cs-footer': '--cs-footer-background',
};
function createClosure(key){
return function (element){
var color=getComputedStyle(element).getPropertyValue(list[key]);
var scheme=cscoDarkMode.detectColorScheme(color);
element.setAttribute('data-scheme', scheme);
};}
for (var key in list){
if(list.hasOwnProperty(key)){
var elements=document.querySelectorAll(key);
if(elements.length <=0){
continue;
}
elements.forEach(createClosure(key));
}}
},
initMode: function (){
let siteScheme=false;
switch (csLocalize.siteSchemeMode){
case 'dark':
siteScheme='dark';
break;
case 'light':
siteScheme='light';
break;
case 'system':
siteScheme='auto';
break;
}
if(csLocalize.siteSchemeToogle){
if('light'===(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csGetCookie)('_color_schema')){
siteScheme='light';
}
if('dark'===(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csGetCookie)('_color_schema')){
siteScheme='dark';
}}
this.setIndividualScheme();
if(siteScheme&&siteScheme!==document.body.getAttribute('data-scheme')){
this.changeScheme(siteScheme, false);
}},
changeScheme: function (siteScheme, cookie){
document.body.classList.add('cs-scheme-toggled');
document.body.setAttribute('data-scheme', siteScheme);
this.setIndividualScheme();
if(cookie){
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csSetCookie)('_color_schema', siteScheme, { expires: 2592000 });
}
setTimeout(()=> {
document.body.classList.remove('cs-scheme-toggled');
}, 100);
}};
cscoDarkMode.init();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function(){
const section='cs-scroll-top';
const activeClass='is-active';
const offset=200;
const scrollToTop=()=> {
window.scrollTo({ top: 0, behavior: 'smooth' });
};
const scrollToTopButton=document.querySelector(`.${section}`);
if(scrollToTopButton){
const progressPath=scrollToTopButton.querySelector(`.${section}-progress path`);
const pathLength=progressPath.getTotalLength();
progressPath.style.transition=progressPath.style.WebkitTransition='none';
progressPath.style.strokeDasharray=`${pathLength} ${pathLength}`;
progressPath.style.strokeDashoffset=pathLength;
progressPath.getBoundingClientRect();
progressPath.style.transition=progressPath.style.WebkitTransition='stroke-dashoffset 10ms linear';
const updateProgress=function (){
const scroll=window.scrollY||window.scrollTop||document.documentElement.scrollTop;
const docHeight=Math.max(document.body.scrollHeight,
document.documentElement.scrollHeight,
document.body.offsetHeight,
document.documentElement.offsetHeight,
document.body.clientHeight,
document.documentElement.clientHeight
);
const windowHeight=Math.max(document.documentElement.clientHeight,
window.innerHeight||0
);
const height=docHeight - windowHeight;
var progress=pathLength - (scroll * pathLength) / height;
progressPath.style.strokeDashoffset=progress;
};
updateProgress();
scrollToTopButton.addEventListener('click', scrollToTop);
window.addEventListener('scroll', ()=> {
updateProgress();
const scrollPos=window.scrollY||window.scrollTop||document.getElementsByTagName('html')[0].scrollTop;
if(scrollPos > offset){
scrollToTopButton.classList.add(activeClass);
}else{
scrollToTopButton.classList.remove(activeClass);
}});
}})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function(){
let stickyElementsSmart=[],
stickyElements=[];
stickyElementsSmart.push('.cs-navbar-smart-enabled.cs-stick-to-top .cs-single-product .entry-summary',
'.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-to-top .cs-sidebar__inner',
'.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child'
);
stickyElements.push('.cs-navbar-sticky-enabled.cs-stick-to-top .cs-single-product .entry-summary',
'.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-to-top .cs-sidebar__inner',
'.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child'
);
document.addEventListener("DOMContentLoaded", function(){
let headerStick=document.querySelector('.cs-header'),
wpAdminBar=document.querySelector('#wpadminbar'),
headerStickHeight=headerStick ? headerStick.offsetHeight:0,
wpAdminBarHeight=wpAdminBar ? wpAdminBar.offsetHeight:0,
headerStretch=document.querySelector('.cs-header-stretch'),
headerStretchHeight=headerStretch ? headerStretch.offsetHeight:0,
allHeight=headerStickHeight + wpAdminBarHeight + 20,
windowWidth=window.innerWidth;
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
stickyElements.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner');
}
stickyElementsSmart=stickyElementsSmart.join(',');
stickyElements=stickyElements.join(',');
document.addEventListener('sticky-nav-visible', function(){
headerStickHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
document.querySelectorAll(stickyElementsSmart).forEach(el=> {
el.style.top=allHeight + 'px';
});
});
document.addEventListener('sticky-nav-hide', function(){
headerStickHeight=0;
allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20;
document.querySelectorAll(stickyElementsSmart).forEach(el=> {
el.style.top=allHeight + 'px';
});
});
document.addEventListener('stretch-nav-to-small', function(){
headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height'));
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
if(headerStretch&&headerStretch.classList.contains("cs-scroll-sticky")&&!headerStretch.classList.contains("cs-scroll-active")){
document.querySelectorAll(stickyElementsSmart).forEach(el=> {
el.style.top=allHeight + 'px';
});
}});
document.addEventListener('stretch-nav-to-big', function(){
headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height'));
});
if(document.body.classList.contains('cs-navbar-smart-enabled')&&windowWidth >=1020){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
document.querySelectorAll(stickyElementsSmart).forEach(el=> {
el.style.top=allHeight + 'px';
});
}else if(document.body.classList.contains('cs-navbar-sticky-enabled')&&windowWidth >=1020){
allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20;
document.querySelectorAll(stickyElements).forEach(el=> {
el.style.top=allHeight + 'px';
});
}
window.addEventListener('resize', function(){
let windowWidthResize=window.innerWidth;
if(windowWidthResize < 1020){
document.querySelectorAll(stickyElements).forEach(el=> {
el.removeAttribute('style');
});
document.querySelectorAll(stickyElementsSmart).forEach(el=> {
el.removeAttribute('style');
});
}});
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
(function (){
const sectionName='cs-tabs';
const sections=document.querySelectorAll(`.${sectionName}`);
if(0===sections.length){
return;
}
sections.forEach(section=> {
const tabs=section.querySelectorAll(`.${sectionName}__tab`);
const postAreas=section.querySelectorAll('.cs-posts-area');
tabs.forEach((tab, index)=> {
tab.addEventListener('click', function (){
tabs.forEach(t=> {
t.classList.remove(`${sectionName}__tab-active`);
});
postAreas.forEach(area=> {
area.classList.remove('cs-posts-area-active');
});
tab.classList.add(`${sectionName}__tab-active`);
postAreas[index].classList.add('cs-posts-area-active');
});
});
});
})();
})();
(()=> {
var __webpack_exports__={};
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
(function (){
var initAPI=false;
var process=false;
var contex=[];
var players=[];
var attrs=[];
var YTdeferred=new Promise(function (resolve){
window.onYouTubePlayerAPIReady=function (){
resolve(window.YT);
};});
function embedYoutubeAPI(){
document.querySelectorAll('.cs-video-inner').forEach(function (el){
if((0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(el)){
var tag=document.createElement('script');
tag.src='https://www.youtube.com/iframe_api';
var firstScriptTag=document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
initAPI=true;
}});
}
function rescaleVideoBackground(){
document.querySelectorAll('.cs-video-init').forEach(function (el){
var w=el.parentElement.offsetWidth;
var h=el.parentElement.offsetHeight;
var hideControl=400;
var id=el.getAttribute('data-uid');
if(w / h > 16 / 9){
players[id].setSize(w, w / 16 * 9 + hideControl);
}else{
players[id].setSize(h / 9 * 16, h + hideControl);
}});
}
function initVideoBackground(){
if(document.body.classList.contains('wp-admin')){
return;
}
if(process){
return;
}
process=true;
if(!initAPI){
var elements=document.querySelectorAll('.cs-video-wrapper[data-video-id]');
if(elements.length){
embedYoutubeAPI();
}}
if(!initAPI){
process=false;
return;
}
YTdeferred.then(function (YT){
document.querySelectorAll('.cs-video-inner').forEach(function (el){
var isInit=el.classList.contains('cs-video-init');
var id=null;
if(!isInit){
id=Math.random().toString(36).substr(2, 9);
}else{
id=el.getAttribute('data-uid');
}
contex[id]=el;
var isActive=contex[id].classList.contains('active');
var isInView=(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(contex[id]);
if(isInView&&!isInit){
contex[id].classList.add('cs-video-init');
contex[id].setAttribute('data-uid', id);
var videoID=contex[id].parentElement.dataset.videoId;
var videoStart=contex[id].parentElement.dataset.videoStart;
var videoEnd=contex[id].parentElement.dataset.videoEnd;
if(typeof videoID==='undefined'||!videoID){
return;
}
attrs[id]={
'videoId': videoID,
'startSeconds': videoStart,
'endSeconds': videoEnd,
'suggestedQuality': 'hd720'
};
players[id]=new YT.Player(contex[id], {
playerVars: {
autoplay: 0,
autohide: 1,
modestbranding: 1,
rel: 0,
showinfo: 0,
controls: 0,
disablekb: 1,
enablejsapi: 0,
iv_load_policy: 3,
playsinline: 1,
loop: 1
},
events: {
'onReady': function (){
players[id].loadVideoById(attrs[id]);
players[id].mute();
},
'onStateChange': function (e){
if(e.data===1){
var parentElement=contex[id].closest('.cs-overlay, .cs-video-wrap');
if(parentElement){
parentElement.classList.add('cs-video-bg-init');
}
contex[id].classList.add('active');
}else if(e.data===0){
players[id].seekTo(attrs[id].startSeconds);
}}
}});
rescaleVideoBackground();
}
var parentElement=contex[id].closest('.cs-overlay, .cs-video-wrap');
if(isActive&&isInit&&!parentElement.querySelector('.cs-player-state').classList.contains('cs-player-upause')){
var control=parentElement.querySelector('.cs-player-state');
if(control){
if(isInView&&control.classList.contains('cs-player-play')){
control.classList.remove('cs-player-play');
control.classList.add('cs-player-pause');
players[id].playVideo();
}
if(!isInView&&control.classList.contains('cs-player-pause')){
control.classList.remove('cs-player-pause');
control.classList.add('cs-player-play');
players[id].pauseVideo();
}}
}});
});
process=false;
}
document.addEventListener('click', function (event){
if(event.target.classList.contains('cs-player-state')){
var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner');
var id=container.getAttribute('data-uid');
event.target.classList.toggle('cs-player-pause');
event.target.classList.toggle('cs-player-play');
if(event.target.classList.contains('cs-player-pause')){
event.target.classList.remove('cs-player-upause');
players[id].playVideo();
}else{
event.target.classList.add('cs-player-upause');
players[id].pauseVideo();
}}
});
document.addEventListener('click', function (event){
if(event.target.classList.contains('cs-player-stop')){
var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner');
var id=container.getAttribute('data-uid');
var stateControl=event.target.nextElementSibling;
stateControl.classList.remove('cs-player-pause');
stateControl.classList.add('cs-player-play', 'cs-player-upause');
players[id].pauseVideo();
}});
document.addEventListener('click', function (event){
if(event.target.classList.contains('cs-player-volume')){
var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner');
var id=container.getAttribute('data-uid');
event.target.classList.toggle('cs-player-mute');
event.target.classList.toggle('cs-player-unmute');
if(event.target.classList.contains('cs-player-unmute')){
players[id].unMute();
}else{
players[id].mute();
}}
});
window.addEventListener('load', initVideoBackground);
window.addEventListener('scroll', initVideoBackground);
window.addEventListener('resize', initVideoBackground);
window.addEventListener('scrollstop', initVideoBackground);
document.addEventListener('DOMContentLoaded', function (){
initVideoBackground();
});
document.body.addEventListener('post-load', function (){
initVideoBackground();
});
window.addEventListener('resize', rescaleVideoBackground);
initVideoBackground();
})();
})();
(()=> {
__webpack_require__.r(__webpack_exports__);
var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);
(function (){
HTMLElement.prototype.responsiveNav=function (){
this.classList.remove('menu-item-expanded');
let previousElement=this.previousElementSibling;
if(previousElement&&previousElement.classList.contains('submenu-visible')){
previousElement.classList.remove('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(previousElement);
this.parentElement.classList.remove('menu-item-expanded');
}else{
let parentOfParent=this.parentElement.parentElement;
parentOfParent.querySelectorAll('.menu-item .sub-menu').forEach(subMenu=> {
subMenu.classList.remove('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(subMenu);
});
parentOfParent.querySelectorAll('.menu-item-expanded').forEach(item=> {
item.classList.remove('menu-item-expanded');
});
if(previousElement){
previousElement.classList.toggle('submenu-visible');
(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideToggle)(previousElement);
}
this.parentElement.classList.toggle('menu-item-expanded');
}};
document.addEventListener('DOMContentLoaded', function (){
let menuItems=document.querySelectorAll('.widget_nav_menu .menu-item-has-children');
menuItems.forEach(menuItem=> {
let span=document.createElement('span');
menuItem.appendChild(span);
span.addEventListener('click', function (e){
e.preventDefault();
this.responsiveNav();
});
let anchor=menuItem.children[0];
if(anchor&&anchor.tagName==='A'&&anchor.getAttribute('href')==='#'){
anchor.addEventListener('click', function (e){
e.preventDefault();
this.nextElementSibling.nextElementSibling.responsiveNav();
});
}});
});
})();
})();
})()
;
var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,i){void 0===s&&(s={}),void 0===i&&(i={}),Object.keys(i).forEach((a=>{void 0===s[a]?s[a]=i[a]:e(i[a])&&e(s[a])&&Object.keys(i[a]).length>0&&t(s[a],i[a])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function i(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const a={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,a),e}function n(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function o(e,t){void 0===t&&(t="x");const s=r();let i,a,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===a?"":a)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(a=s.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(a=s.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),a||0}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function c(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const a=i<0||arguments.length<=i?void 0:arguments[i];if(null!=a&&(s=a,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(a)).filter((e=>t.indexOf(e)<0));for(let t=0,i=s.length;t<i;t+=1){const i=s[t],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(d(e[i])&&d(a[i])?a[i].__swiper__?e[i]=a[i]:c(e[i],a[i]):!d(e[i])&&d(a[i])?(e[i]={},a[i].__swiper__?e[i]=a[i]:c(e[i],a[i])):e[i]=a[i])}}}var s;return e}function p(e,t,s){e.style.setProperty(t,s)}function u(e){let{swiper:t,targetPosition:s,side:i}=e;const a=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[i]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:c})})),void a.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=a.requestAnimationFrame(u)};u()}function m(e,t){void 0===t&&(t="");const s=[...e.children];return e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter((e=>e.matches(t))):s}function f(e){try{return void console.warn(e)}catch(e){}}function h(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),s}function g(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function v(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function w(e,t){const s=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&s.push(i):s.push(i),i=i.parentElement;return s}function b(e,t,s){const i=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function y(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let S,T,E;function x(){return S||(S=function(){const e=r(),t=i();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),S}function C(e){return void 0===e&&(e={}),T||(T=function(e){let{userAgent:t}=void 0===e?{}:e;const s=x(),i=r(),a=i.navigator.platform,n=t||i.navigator.userAgent,l={ios:!1,android:!1},o=i.screen.width,d=i.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===a;let h="MacIntel"===a;return!p&&h&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),h=!1),c&&!f&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),T}function M(){return E||(E=function(){const e=r(),t=C();let s=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));s=e<16||16===e&&i<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=i();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||a&&t.ios,isWebView:a}}()),E}var L={on(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const a=s?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][a](t)})),i},once(e,t,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function a(){i.off(e,a),a.__emitterProxy&&delete a.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(i,r)}return a.__emitterProxy=t,i.on(e,a,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const i=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[i](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((i,a)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&s.eventsListeners[e].splice(a,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,i;for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),i=e):(t=r[0].events,s=r[0].data,i=r[0].context||e),s.unshift(i);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,s)}))})),e}};const P=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const I=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const k=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},A=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},O=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=a,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+i+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&A(e,s)}))}const r=a+i-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=r+t;i+=1){const t=(i%s+s)%s;(t<a||t>r)&&A(e,t)}else for(let i=Math.max(a-t,0);i<=Math.min(r+t,s-1);i+=1)i!==a&&(i>r||i<a)&&A(e,i)};var z={updateSize:function(){const e=this;let t,s;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(g(i,"padding-left")||0,10)-parseInt(g(i,"padding-right")||0,10),s=s-parseInt(g(i,"padding-top")||0,10)-parseInt(g(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:i,slidesEl:a,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&s.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=m(a,`.${e.params.slideClass}, swiper-slide`),u=o?e.virtual.slides.length:c.length;let f=[];const h=[],v=[];let w=s.slidesOffsetBefore;"function"==typeof w&&(w=s.slidesOffsetBefore.call(e));let y=s.slidesOffsetAfter;"function"==typeof y&&(y=s.slidesOffsetAfter.call(e));const S=e.snapGrid.length,T=e.slidesGrid.length;let E=s.spaceBetween,x=-w,C=0,M=0;if(void 0===r)return;"string"==typeof E&&E.indexOf("%")>=0?E=parseFloat(E.replace("%",""))/100*r:"string"==typeof E&&(E=parseFloat(E)),e.virtualSize=-E,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(p(i,"--swiper-centered-offset-before",""),p(i,"--swiper-centered-offset-after",""));const L=s.grid&&s.grid.rows>1&&e.grid;let P;L?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<u;i+=1){let a;if(P=0,c[i]&&(a=c[i]),L&&e.grid.updateSlide(i,a,c),!c[i]||"none"!==g(a,"display")){if("auto"===s.slidesPerView){I&&(c[i].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(a),n=a.style.transform,l=a.style.webkitTransform;if(n&&(a.style.transform="none"),l&&(a.style.webkitTransform="none"),s.roundLengths)P=e.isHorizontal()?b(a,"width",!0):b(a,"height",!0);else{const e=t(r,"width"),s=t(r,"padding-left"),i=t(r,"padding-right"),n=t(r,"margin-left"),l=t(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)P=e+n+l;else{const{clientWidth:t,offsetWidth:r}=a;P=e+s+i+n+l+(r-t)}}n&&(a.style.transform=n),l&&(a.style.webkitTransform=l),s.roundLengths&&(P=Math.floor(P))}else P=(r-(s.slidesPerView-1)*E)/s.slidesPerView,s.roundLengths&&(P=Math.floor(P)),c[i]&&(c[i].style[e.getDirectionLabel("width")]=`${P}px`);c[i]&&(c[i].swiperSlideSize=P),v.push(P),s.centeredSlides?(x=x+P/2+C/2+E,0===C&&0!==i&&(x=x-r/2-E),0===i&&(x=x-r/2-E),Math.abs(x)<.001&&(x=0),s.roundLengths&&(x=Math.floor(x)),M%s.slidesPerGroup==0&&f.push(x),h.push(x)):(s.roundLengths&&(x=Math.floor(x)),(M-Math.min(e.params.slidesPerGroupSkip,M))%e.params.slidesPerGroup==0&&f.push(x),h.push(x),x=x+P+E),e.virtualSize+=P+E,C=P,M+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+y,n&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(i.style.width=`${e.virtualSize+E}px`),s.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+E}px`),L&&e.grid.updateWrapperSize(P,f),!s.centeredSlides){const t=[];for(let i=0;i<f.length;i+=1){let a=f[i];s.roundLengths&&(a=Math.floor(a)),f[i]<=e.virtualSize-r&&t.push(a)}f=t,Math.floor(e.virtualSize-r)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-r)}if(o&&s.loop){const t=v[0]+E;if(s.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),a=t*s.slidesPerGroup;for(let e=0;e<i;e+=1)f.push(f[f.length-1]+a)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===s.slidesPerGroup&&f.push(f[f.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===f.length&&(f=[0]),0!==E){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${E}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;v.forEach((t=>{e+=t+(E||0)})),e-=E;const t=e>r?e-r:0;f=f.map((e=>e<=0?-w:e>t?t+y:e))}if(s.centerInsufficientSlides){let e=0;v.forEach((t=>{e+=t+(E||0)})),e-=E;const t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t<r){const s=(r-e-t)/2;f.forEach(((e,t)=>{f[t]=e-s})),h.forEach(((e,t)=>{h[t]=e+s}))}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:h,slidesSizesGrid:v}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){p(i,"--swiper-centered-offset-before",-f[0]+"px"),p(i,"--swiper-centered-offset-after",e.size/2-v[v.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(u!==d&&e.emit("slidesLengthChange"),f.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==T&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=s.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],i=t.virtual&&t.params.virtual.enabled;let a,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const e=t.activeIndex+a;if(e>t.slides.length&&!i)break;s.push(n(e))}else s.push(n(t.activeIndex));for(a=0;a<s.length;a+=1)if(void 0!==s[a]){const e=s[a].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:i,rtlTranslate:a,snapGrid:r}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;a&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<i.length;e+=1){const o=i[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=i[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],f=u>=0&&u<=t.size-t.slidesSizesGrid[e],h=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;h&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),P(o,h,s.slideVisibleClass),P(o,f,s.slideFullyVisibleClass),o.progress=a?-c:c,o.originalProgress=a?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===i)a=0,r=!0,n=!0;else{a=(e-t.minTranslate())/i;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||a<=0,n=l||a>=1,s&&(a=0),l&&(a=1)}if(s.loop){const s=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),a=t.slidesGrid[s],r=t.slidesGrid[i],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=a?(o-a)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:a,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:i,activeIndex:a}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>m(i,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=a-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${a}"]`);else n?(o=t.filter((e=>e.column===a))[0],c=t.filter((e=>e.column===a+1))[0],d=t.filter((e=>e.column===a-1))[0]):o=t[a];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&s.push(i):s.push(i),e=i}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{I(e,e===o,s.slideActiveClass),I(e,e===c,s.slideNextClass),I(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:a,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,i=e.rtlTranslate?e.translate:-e.translate;let a;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?a=e:i>=t[e]&&i<t[e+1]&&(a=e+1):i>=t[e]&&(a=e);return s.normalizeSlideIndex&&(a<0||void 0===a)&&(a=0),a}(t)),i.indexOf(s)>=0)o=i.indexOf(s);else{const e=Math.min(a.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/a.slidesPerGroup)}if(o>=i.length&&(o=i.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&a.grid&&a.grid.rows>1;let u;if(t.virtual&&a.virtual.enabled&&a.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/a.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&O(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,i=s.params;let a=e.closest(`.${i.slideClass}, swiper-slide`);!a&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!a&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(a=e)}));let r,n=!1;if(a)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===a){n=!0,r=e;break}if(!a||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=a,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,i.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var D={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:i,wrapperEl:a}=this;if(t.virtualTranslate)return s?-i:i;if(t.cssMode)return i;let r=o(a,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:i,params:a,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=i?-e:e:d=e,a.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,a.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:a.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,i,a){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===i&&(i=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=i&&e>o?o:i&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return u({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,a),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,a),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function G(e){let{swiper:t,runCallbacks:s,direction:i,step:a}=e;const{activeIndex:r,previousIndex:n}=t;let l=i;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${a}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${a}`);t.emit(`slideChangeTransition${a}`),"next"===l?t.emit(`slideNextTransition${a}`):t.emit(`slidePrevTransition${a}`)}}var $={slideTo:function(e,t,s,i,a){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:m,wrapperEl:f,enabled:h}=r;if(!h&&!i&&!a||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),i=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<i-(i-s)/2?n=e:t>=s&&t<i&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(m?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&a)&&(m&&-w===r.translate||!m&&w===r.translate))return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=m?w:-w;if(0===t)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{f[e?"scrollLeft":"scrollTop"]=s}))):f[e?"scrollLeft":"scrollTop"]=s,y&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return u({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,i){if(void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const a=this;if(a.destroyed)return;void 0===t&&(t=a.params.speed);const r=a.grid&&a.params.grid&&a.params.grid.rows>1;let n=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)n+=a.virtual.slidesBefore;else{let e;if(r){const t=n*a.params.grid.rows;e=a.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=a.getSlideIndexByData(n);const t=r?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:s}=a.params;let l=a.params.slidesPerView;"auto"===l?l=a.slidesPerViewDynamic():(l=Math.ceil(parseFloat(a.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e<l;if(s&&(o=o||e<Math.ceil(l/2)),i&&s&&"auto"!==a.params.slidesPerView&&!r&&(o=!1),o){const i=s?e<a.activeIndex?"prev":"next":e-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?a.realIndex:void 0})}if(r){const e=n*a.params.grid.rows;n=a.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else n=a.getSlideIndexByData(n)}return requestAnimationFrame((()=>{a.slideTo(n,t,s,i)})),a},slideNext:function(e,t,s){void 0===t&&(t=!0);const i=this,{enabled:a,params:r,animating:n}=i;if(!a||i.destroyed)return i;void 0===e&&(e=i.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(i.slidesPerViewDynamic("current",!0),1));const o=i.activeIndex<r.slidesPerGroupSkip?1:l,d=i.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{i.slideTo(i.activeIndex+o,e,t,s)})),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,s):i.slideTo(i.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===t&&(t=!0);const i=this,{params:a,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=i;if(!o||i.destroyed)return i;void 0===e&&(e=i.params.speed);const c=i.virtual&&a.virtual.enabled;if(a.loop){if(d&&!c&&a.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?i.translate:-i.translate),m=r.map((e=>p(e)));let f=r[m.indexOf(u)-1];if(void 0===f&&a.cssMode){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(f=r[e>0?e-1:e])}let h=0;if(void 0!==f&&(h=n.indexOf(f),h<0&&(h=i.activeIndex-1),"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(h=h-i.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),a.rewind&&i.isBeginning){const a=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(a,e,t,s)}return a.loop&&0===i.activeIndex&&a.cssMode?(requestAnimationFrame((()=>{i.slideTo(h,e,t,s)})),!0):i.slideTo(h,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,s)},slideToClosest:function(e,t,s,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const a=this;if(a.destroyed)return;void 0===e&&(e=a.params.speed);let r=a.activeIndex;const n=Math.min(a.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/a.params.slidesPerGroup),o=a.rtlTranslate?a.translate:-a.translate;if(o>=a.snapGrid[l]){const e=a.snapGrid[l];o-e>(a.snapGrid[l+1]-e)*i&&(r+=a.params.slidesPerGroup)}else{const e=a.snapGrid[l-1];o-e<=(a.snapGrid[l]-e)*i&&(r-=a.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,a.slidesGrid.length-1),a.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,r=e.clickedIndex;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-i/2||r>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),r=e.getSlideIndex(m(s,`${l}[data-swiper-slide-index="${a}"]`)[0]),n((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-i?(e.loopFix(),r=e.getSlideIndex(m(s,`${l}[data-swiper-slide-index="${a}"]`)[0]),n((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var B={loopCreate:function(e){const t=this,{params:s,slidesEl:i}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const a=()=>{m(i,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&s.grid&&s.grid.rows>1,n=s.slidesPerGroup*(r?s.grid.rows:1),l=t.slides.length%n!=0,o=r&&t.slides.length%s.grid.rows!=0,d=e=>{for(let i=0;i<e;i+=1){const e=t.isElement?h("swiper-slide",[s.slideBlankClass]):h("div",[s.slideClass,s.slideBlankClass]);t.slidesEl.append(e)}};if(l){if(s.loopAddBlankSlides){d(n-t.slides.length%n),t.recalcSlides(),t.updateSlides()}else f("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(o){if(s.loopAddBlankSlides){d(s.grid.rows-t.slides.length%s.grid.rows),t.recalcSlides(),t.updateSlides()}else f("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();t.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:s=!0,direction:i,setTranslate:a,activeSlideIndex:r,byController:n,byMousewheel:l}=void 0===e?{}:e;const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:d,allowSlidePrev:c,allowSlideNext:p,slidesEl:u,params:m}=o,{centeredSlides:h}=m;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&m.virtual.enabled)return s&&(m.centeredSlides||0!==o.snapIndex?m.centeredSlides&&o.snapIndex<m.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=p,void o.emit("loopFix");let g=m.slidesPerView;"auto"===g?g=o.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),h&&g%2==0&&(g+=1));const v=m.slidesPerGroupAuto?g:m.slidesPerGroup;let w=v;w%v!=0&&(w+=v-w%v),w+=m.loopAdditionalSlides,o.loopedSlides=w;const b=o.grid&&m.grid&&m.grid.rows>1;d.length<g+w?f("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===m.grid.fill&&f("Swiper Loop Warning: Loop mode is not compatible with grid.fill=`row`");const y=[],S=[];let T=o.activeIndex;void 0===r?r=o.getSlideIndex(d.filter((e=>e.classList.contains(m.slideActiveClass)))[0]):T=r;const E="next"===i||!i,x="prev"===i||!i;let C=0,M=0;const L=b?Math.ceil(d.length/m.grid.rows):d.length,P=(b?d[r].column:r)+(h&&void 0===a?-g/2+.5:0);if(P<w){C=Math.max(w-P,v);for(let e=0;e<w-P;e+=1){const t=e-Math.floor(e/L)*L;if(b){const e=L-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&y.push(t)}else y.push(L-t-1)}}else if(P+g>L-w){M=Math.max(P-(L-2*w),v);for(let e=0;e<M;e+=1){const t=e-Math.floor(e/L)*L;b?d.forEach(((e,s)=>{e.column===t&&S.push(s)})):S.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame((()=>{o.__preventObserver__=!1})),x&&y.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),E&&S.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():b&&(y.length>0&&x||S.length>0&&E)&&o.slides.forEach(((e,t)=>{o.grid.updateSlide(t,e,o.slides)})),m.watchSlidesProgress&&o.updateSlidesOffset(),s)if(y.length>0&&x){if(void 0===t){const e=o.slidesGrid[T],t=o.slidesGrid[T+C]-e;l?o.setTranslate(o.translate-t):(o.slideTo(T+Math.ceil(C),0,!1,!0),a&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(a){const e=b?y.length/m.grid.rows:y.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(S.length>0&&E)if(void 0===t){const e=o.slidesGrid[T],t=o.slidesGrid[T-M]-e;l?o.setTranslate(o.translate-t):(o.slideTo(T-M,0,!1,!0),a&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=b?S.length/m.grid.rows:S.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const e={slideRealIndex:t,direction:i,setTranslate:a,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...e,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&s})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function _(e,t,s){const i=r(),{params:a}=e,n=a.edgeSwipeDetection,l=a.edgeSwipeThreshold;return!n||!(s<=l||s>=i.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function F(e){const t=this,s=i();let a=e;a.originalEvent&&(a=a.originalEvent);const n=t.touchEventsData;if("pointerdown"===a.type){if(null!==n.pointerId&&n.pointerId!==a.pointerId)return;n.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(n.touchId=a.targetTouches[0].identifier);if("touchstart"===a.type)return void _(t,a,a.targetTouches[0].pageX);const{params:o,touches:d,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===a.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let p=a.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const s=t.contains(e);if(!s&&t instanceof HTMLSlotElement)return[...t.assignedElements()].includes(e);return s}(p,t.wrapperEl))return;if("which"in a&&3===a.which)return;if("button"in a&&a.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,m=a.composedPath?a.composedPath():a.path;u&&a.target&&a.target.shadowRoot&&m&&(p=m[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!(!a.target||!a.target.shadowRoot);if(o.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===i()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const a=s.closest(e);return a||s.getRootNode?a||t(s.getRootNode().host):null}(t)}(f,p):p.closest(f)))return void(t.allowClick=!0);if(o.swipeHandler&&!p.closest(o.swipeHandler))return;d.currentX=a.pageX,d.currentY=a.pageY;const g=d.currentX,v=d.currentY;if(!_(t,a,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&("mouse"===a.pointerType||"mouse"!==a.pointerType&&!p.matches(n.focusableElements))&&s.activeElement.blur();const b=w&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!b||p.isContentEditable||a.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function N(e){const t=i(),s=this,a=s.touchEventsData,{params:r,touches:n,rtlTranslate:o,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==a.touchId)return;if(p.pointerId!==a.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].filter((e=>e.identifier===a.touchId))[0],!c||c.identifier!==a.touchId)return}else c=p;if(!a.isTouched)return void(a.startMoving&&a.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(a.focusableElements)||(s.allowClick=!1),void(a.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),a.touchStartTime=l()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate())return;if(t.activeElement&&t.activeElement.matches(a.focusableElements)&&t.activeElement!==p.target&&"mouse"!==p.pointerType&&t.activeElement.blur(),t.activeElement&&p.target===t.activeElement&&p.target.matches(a.focusableElements))return a.isMoved=!0,void(s.allowClick=!1);a.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const f=n.currentX-n.startX,h=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(f**2+h**2)<s.params.threshold)return;if(void 0===a.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?a.isScrolling=!1:f*f+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(f))/Math.PI,a.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(a.isScrolling&&s.emit("touchMoveOpposite",p),void 0===a.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(a.startMoving=!0)),a.isScrolling||"touchmove"===p.type&&a.preventTouchMoveFromPointerMove)return void(a.isTouched=!1);if(!a.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?f:h,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),n.diff=g,g*=r.touchRatio,o&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!a.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),a.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(e)}a.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),a.isMoved&&a.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:a.currentTranslate}),a.loopSwapReset=!0,void(a.startTranslate=a.currentTranslate);s.emit("sliderMove",p),a.isMoved=!0,a.currentTranslate=g+a.startTranslate;let S=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),g>0?(b&&y&&a.allowThresholdMove&&a.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>s.minTranslate()&&(S=!1,r.resistance&&(a.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+a.startTranslate+g)**T))):g<0&&(b&&y&&a.allowThresholdMove&&a.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),a.currentTranslate<s.maxTranslate()&&(S=!1,r.resistance&&(a.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-a.startTranslate-g)**T))),S&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),s.allowSlidePrev||s.allowSlideNext||(a.currentTranslate=a.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,a.currentTranslate=a.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(a.currentTranslate),s.setTranslate(a.currentTranslate))}function V(e){const t=this,s=t.touchEventsData;let i,a=e;a.originalEvent&&(a=a.originalEvent);if("touchend"===a.type||"touchcancel"===a.type){if(i=[...a.changedTouches].filter((e=>e.identifier===s.touchId))[0],!i||i.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(a.pointerId!==s.pointerId)return;i=a}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(a.type)){if(!(["pointercancel","contextmenu"].includes(a.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:o,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===a.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",a),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=l(),m=u-s.touchStartTime;if(t.allowClick){const e=a.path||a.composedPath&&a.composedPath();t.updateClickedSlide(e&&e[0]||a.target,e),t.emit("tap click",a),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",a)}if(s.lastClickTime=l(),n((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===o.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let f;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,f=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const h=f>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(h||f>=c[e]&&f<c[e+t])&&(g=e,v=c[e+t]-c[e]):(h||f>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(f-c[g])/v,S=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+S):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+S):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(a.target===t.navigation.nextEl||a.target===t.navigation.prevEl)?a.target===t.navigation.nextEl?t.slideTo(g+S):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+S),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function H(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:a,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=a,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function R(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function j(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:i}=e;if(!i)return;let a;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();a=0===r?0:(e.translate-e.minTranslate())/r,a!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function q(e){const t=this;k(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function W(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Y=(e,t)=>{const s=i(),{params:a,el:r,wrapperEl:n,device:l}=e,o=!!a.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(a.preventClicks||a.preventClicksPropagation)&&r[d]("click",e.onClick,!0),a.cssMode&&n[d]("scroll",e.onScroll),a.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",H,!0):e[c]("observerUpdate",H,!0),r[d]("load",e.onLoad,{capture:!0}))};const X=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var U={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function K(e,t){return function(s){void 0===s&&(s={});const i=Object.keys(s)[0],a=s[i];"object"==typeof a&&null!==a?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in a?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),c(t,s)):c(t,s)):c(t,s)}}const J={eventsEmitter:L,update:z,translate:D,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:i}=s;i.cssMode||(i.autoHeight&&s.updateAutoHeight(),G({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:i}=s;s.animating=!1,i.cssMode||(s.setTransition(0),G({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:$,loop:B,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=F.bind(e),e.onTouchMove=N.bind(e),e.onTouchEnd=V.bind(e),e.onDocumentTouchStart=W.bind(e),t.cssMode&&(e.onScroll=j.bind(e)),e.onClick=R.bind(e),e.onLoad=q.bind(e),Y(e,"on")},detachEvents:function(){Y(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:i,el:a}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const n=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;const l=(n in r?r[n]:void 0)||e.originalParams,o=X(e,i),d=X(e,l),p=e.params.grabCursor,u=l.grabCursor,m=i.enabled;o&&!d?(a.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(a.classList.add(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&a.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!u?e.unsetGrabCursor():!p&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===l[t])return;const s=i[t]&&i[t].enabled,a=l[t]&&l[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const f=l.direction&&l.direction!==i.direction,h=i.loop&&(l.slidesPerView!==i.slidesPerView||f),g=i.loop;f&&s&&e.changeDirection(),c(e.params,l);const v=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!v?e.disable():!m&&v&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),s&&(h?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&w?(e.loopCreate(t),e.updateSlides()):g&&!w&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let i=!1;const a=r(),n="window"===t?a.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?a.matchMedia(`(min-width: ${n}px)`).matches&&(i=r):n<=s.clientWidth&&(i=r)}return i||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:i}=s;if(i){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:i,el:a,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&s.push(t+i)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),a.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},Q={};class Z{constructor(){let e,t;for(var s=arguments.length,a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?t=a[0]:[e,t]=a,t||(t={}),t=c({},t),e&&!t.el&&(t.el=e);const n=i();if(t.el&&"string"==typeof t.el&&n.querySelectorAll(t.el).length>1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const i=c({},t,{el:s});e.push(new Z(i))})),e}const l=this;l.__swiper__=!0,l.support=x(),l.device=C({userAgent:t.userAgent}),l.browser=M(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:K(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=c({},U,o);return l.params=c({},d,Q,t),l.originalParams=c({},l.params),l.passedParams=c({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,i=v(m(t,`.${s.slideClass}, swiper-slide`)[0]);return v(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=m(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const i=s.minTranslate(),a=(s.maxTranslate()-i)*e+i;s.translateTo(a,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const i=e.getSlideClasses(s);t.push({slideEl:s,classNames:i}),e.emit("_slideClass",s,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:i,slidesGrid:a,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=i[l]?Math.ceil(i[l].swiperSlideSize):0;for(let s=l+1;s<i.length;s+=1)i[s]&&!e&&(t+=Math.ceil(i[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)i[s]&&!e&&(t+=i[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<i.length;e+=1){(t?a[e]+r[e]-a[l]<n:a[e]-a[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){a[l]-a[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let a;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&k(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)i(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;a=e.slideTo(t.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||i()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,i=s.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${i}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(i())}return m(s,i())[0]})();return!a&&t.params.createElements&&(a=h("div",t.params.wrapperClass),s.append(a),m(s,`.${t.params.slideClass}`).forEach((e=>{a.append(e)}))),Object.assign(t,{el:s,wrapperEl:a,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:a,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===g(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===g(s,"direction")),wrongRTL:"-webkit-box"===g(a,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?k(t,e):e.addEventListener("load",(e=>{k(t,e.target)}))})),O(t),t.initialized=!0,O(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:i,el:a,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),i.loop&&s.loopDestroy(),t&&(s.removeClasses(),a&&"string"!=typeof a&&a.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){c(Q,e)}static get extendedDefaults(){return Q}static get defaults(){return U}static installModule(e){Z.prototype.__modules__||(Z.prototype.__modules__=[]);const t=Z.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Z.installModule(e))),Z):(Z.installModule(e),Z)}}function ee(e,t,s,i){return e.params.createElements&&Object.keys(i).forEach((a=>{if(!s[a]&&!0===s.auto){let r=m(e.el,`.${i[a]}`)[0];r||(r=h("div",i[a]),r.className=i[a],e.el.append(r)),s[a]=r,t[a]=r}})),s}function te(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}Object.keys(J).forEach((e=>{Object.keys(J[e]).forEach((t=>{Z.prototype[t]=J[e][t]}))})),Z.use([function(e){let{swiper:t,on:s,emit:i}=e;const a=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==a.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=a.requestAnimationFrame((()=>{const{width:s,height:i}=t;let a=s,r=i;e.forEach((e=>{let{contentBoxSize:s,contentRect:i,target:n}=e;n&&n!==t.el||(a=i?i.width:(s[0]||s).inlineSize,r=i?i.height:(s[0]||s).blockSize)})),a===s&&r===i||o()}))})),n.observe(t.el)):(a.addEventListener("resize",o),a.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&a.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),a.removeEventListener("resize",o),a.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:i,emit:a}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const i=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void a("observerUpdate",e[0]);const s=function(){a("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));i.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:t.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),n.push(i)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=w(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const se=[function(e){let{swiper:t,extendParams:s,on:i,emit:a}=e;function r(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e)||t.hostEl.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s&&s.length>1&&1===t.el.querySelectorAll(e).length?s=t.el.querySelector(e):s&&1===s.length&&(s=s[0])),e&&!s?e:s)}function n(e,s){const i=t.params.navigation;(e=y(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))}))}function l(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return n(s,!1),void n(e,!1);n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),a("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),a("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=ee(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=r(e.nextEl),i=r(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:i}),s=y(s),i=y(i);const a=(s,i)=>{s&&s.addEventListener("click","next"===i?d:o),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};s.forEach((e=>a(e,"next"))),i.forEach((e=>a(e,"prev")))}function p(){let{nextEl:e,prevEl:s}=t.navigation;e=y(e),s=y(s);const i=(e,s)=>{e.removeEventListener("click","next"===s?d:o),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>i(e,"next"))),s.forEach((e=>i(e,"prev")))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",(()=>{!1===t.params.navigation.enabled?u():(c(),l())})),i("toEdge fromEdge lock unlock",(()=>{l()})),i("destroy",(()=>{p()})),i("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=y(e),s=y(s),t.enabled?l():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),i("click",((e,s)=>{let{nextEl:i,prevEl:r}=t.navigation;i=y(i),r=y(r);const n=s.target;let l=r.includes(n)||i.includes(n);if(t.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find((e=>i.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!l){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),a(!0===e?"navigationShow":"navigationHide"),[...i,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})},function(e){let{swiper:t,extendParams:s,on:i,emit:a}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,s){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${s}-${s}`))}function c(e){const s=e.target.closest(te(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const i=v(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(a=t.realIndex,r=i,n=t.slides.length,(r%=n)==1+(a%=n)?"next":r===a-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var a,r,n}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;let i,r,c=t.pagination.el;c=y(c);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,i=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const a=t.pagination.bullets;let o,p,u;if(s.dynamicBullets&&(n=b(a[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=i-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(i-l,0),p=o+(Math.min(a.length,s.dynamicMainBullets)-1),u=(p+o)/2),a.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)a.forEach((e=>{const a=v(e);a===i?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(a>=o&&a<=p&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),a===o&&d(e,"prev"),a===p&&d(e,"next"))}));else{const e=a[i];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&a.forEach(((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")})),s.dynamicBullets){const e=a[o],t=a[p];for(let e=o;e<=p;e+=1)a[e]&&a[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(s.dynamicBullets){const i=Math.min(a.length,s.dynamicMainBullets+4),r=(n*i-n)/2-u*n,l=e?"right":"left";a.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}c.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(te(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(i+1)})),e.querySelectorAll(te(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(u)}))),"progressbar"===s.type){let a;a=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(i+1)/u;let n=1,l=1;"horizontal"===a?n=r:l=r,e.querySelectorAll(te(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(e.innerHTML=s.renderCustom(t,i+1,u),0===r&&a("paginationRender",e)):(0===r&&a("paginationRender",e),a("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=y(i);let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>s&&(i=s);for(let s=0;s<i;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach((s=>{"custom"!==e.type&&(s.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(te(e.bulletClass)))})),"custom"!==e.type&&a("paginationRender",i[0])}function m(){t.params.pagination=ee(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.filter((e=>w(e,".swiper")[0]===t.el))[0])),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=y(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",c),t.enabled||s.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(o())return;let s=t.pagination.el;s&&(s=y(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}i("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=y(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.pagination.enabled?h():(m(),u(),p())})),i("activeIndexChange",(()=>{void 0===t.snapIndex&&p()})),i("snapIndexChange",(()=>{p()})),i("snapGridLengthChange",(()=>{u(),p()})),i("destroy",(()=>{f()})),i("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=y(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),i("lock unlock",(()=>{p()})),i("click",((e,s)=>{const i=s.target,r=y(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);a(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const h=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=y(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=y(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),u(),p()},disable:h,render:u,update:p,init:m,destroy:f})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({parallax:{enabled:!1}});const a="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:i}=t,a=i?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*a+"%":n*s*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:i,snapGrid:n,isElement:l}=t,o=m(e,a);t.isElement&&o.push(...m(t.hostEl,a)),o.forEach((e=>{r(e,i)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-i*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${a}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};i("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),i("init",(()=>{t.params.parallax.enabled&&n()})),i("setTranslate",(()=>{t.params.parallax.enabled&&n()})),i("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:i}=t,r=[...s.querySelectorAll(a)];t.isElement&&r.push(...i.querySelectorAll(a)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,n,l=null,o=(new Date).getTime();function d(e){const t=l;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=y(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function p(e){(e=y(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=y(e)).forEach((e=>{e.setAttribute("role",t)}))}function m(e,t){(e=y(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function f(e,t){(e=y(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function g(e){(e=y(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function w(e){(e=y(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function b(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(te(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=y(t.navigation.prevEl);y(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(s.lastSlideMessage):d(s.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(s.firstSlideMessage):d(s.prevSlideMessage))}t.pagination&&i.matches(te(t.params.pagination.bulletClass))&&i.click()}}function S(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function T(){return S()&&t.params.pagination.clickable}const E=(e,t,s)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",b)),f(e,s),function(e,t){(e=y(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},x=e=>{n&&n!==e.target&&!n.contains(e.target)&&(r=!0),t.a11y.clicked=!0},C=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},M=e=>{o=(new Date).getTime()},L=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;n=s;const i=t.slides.indexOf(s)===t.activeIndex,a=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);i||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(parseInt(s.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(s),0),r=!1)})))},P=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const s=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((i,a)=>{const r=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):a;f(i,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},I=()=>{const e=t.params.a11y;t.el.append(l);const s=t.el;e.containerRoleDescriptionMessage&&m(s,e.containerRoleDescriptionMessage),e.containerMessage&&f(s,e.containerMessage),e.containerRole&&u(s,e.containerRole);const a=t.wrapperEl,r=e.id||a.getAttribute("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,y(a).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=y(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(a,o),P();let{nextEl:c,prevEl:p}=t.navigation?t.navigation:{};if(c=y(c),p=y(p),c&&c.forEach((t=>E(t,r,e.nextSlideMessage))),p&&p.forEach((t=>E(t,r,e.prevSlideMessage))),T()){y(t.pagination.el).forEach((e=>{e.addEventListener("keydown",b)}))}i().addEventListener("visibilitychange",M),t.el.addEventListener("focus",L,!0),t.el.addEventListener("focus",L,!0),t.el.addEventListener("pointerdown",x,!0),t.el.addEventListener("pointerup",C,!0)};a("beforeInit",(()=>{l=h("span",t.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")})),a("afterInit",(()=>{t.params.a11y.enabled&&I()})),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&P()})),a("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(g(s),p(s)):(w(s),c(s))),e&&(t.isEnd?(g(e),p(e)):(w(e),c(e)))}()})),a("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;S()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(c(s),t.params.pagination.renderBullet||(u(s,"button"),f(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,v(s)+1)))),s.matches(te(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),a("destroy",(()=>{t.params.a11y.enabled&&function(){l&&l.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=y(e),s=y(s),e&&e.forEach((e=>e.removeEventListener("keydown",b))),s&&s.forEach((e=>e.removeEventListener("keydown",b))),T()&&y(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",b)}));i().removeEventListener("visibilitychange",M),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",L,!0),t.el.removeEventListener("pointerdown",x,!0),t.el.removeEventListener("pointerup",C,!0))}()}))},function(e){let t,s,{swiper:a,extendParams:r,on:n,emit:l,params:o}=e;a.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,f,h,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){a&&!a.destroyed&&a.wrapperEl&&e.target===a.wrapperEl&&(a.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||M())}const S=()=>{if(a.destroyed||!a.autoplay.running)return;a.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=a.autoplay.paused?d:b+w-(new Date).getTime();a.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{S()}))},T=e=>{if(a.destroyed||!a.autoplay.running)return;cancelAnimationFrame(s),S();let i=void 0===e?a.params.autoplay.delay:e;v=a.params.autoplay.delay,w=a.params.autoplay.delay;const r=(()=>{let e;if(e=a.virtual&&a.params.virtual.enabled?a.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:a.slides[a.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(i=r,v=r,w=r),d=i;const n=a.params.speed,o=()=>{a&&!a.destroyed&&(a.params.autoplay.reverseDirection?!a.isBeginning||a.params.loop||a.params.rewind?(a.slidePrev(n,!0,!0),l("autoplay")):a.params.autoplay.stopOnLastSlide||(a.slideTo(a.slides.length-1,n,!0,!0),l("autoplay")):!a.isEnd||a.params.loop||a.params.rewind?(a.slideNext(n,!0,!0),l("autoplay")):a.params.autoplay.stopOnLastSlide||(a.slideTo(0,n,!0,!0),l("autoplay")),a.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{T()}))))};return i>0?(clearTimeout(t),t=setTimeout((()=>{o()}),i)):requestAnimationFrame((()=>{o()})),i},E=()=>{b=(new Date).getTime(),a.autoplay.running=!0,T(),l("autoplayStart")},x=()=>{a.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},C=(e,s)=>{if(a.destroyed||!a.autoplay.running)return;clearTimeout(t),e||(h=!0);const i=()=>{l("autoplayPause"),a.params.autoplay.waitForTransition?a.wrapperEl.addEventListener("transitionend",y):M()};if(a.autoplay.paused=!0,s)return f&&(d=a.params.autoplay.delay),f=!1,void i();const r=d||a.params.autoplay.delay;d=r-((new Date).getTime()-b),a.isEnd&&d<0&&!a.params.loop||(d<0&&(d=0),i())},M=()=>{a.isEnd&&d<0&&!a.params.loop||a.destroyed||!a.autoplay.running||(b=(new Date).getTime(),h?(h=!1,T(d)):T(),a.autoplay.paused=!1,l("autoplayResume"))},L=()=>{if(a.destroyed||!a.autoplay.running)return;const e=i();"hidden"===e.visibilityState&&(h=!0,C(!0)),"visible"===e.visibilityState&&M()},P=e=>{"mouse"===e.pointerType&&(h=!0,g=!0,a.animating||a.autoplay.paused||C(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,a.autoplay.paused&&M())};n("init",(()=>{a.params.autoplay.enabled&&(a.params.autoplay.pauseOnMouseEnter&&(a.el.addEventListener("pointerenter",P),a.el.addEventListener("pointerleave",I)),i().addEventListener("visibilitychange",L),E())})),n("destroy",(()=>{a.el&&"string"!=typeof a.el&&(a.el.removeEventListener("pointerenter",P),a.el.removeEventListener("pointerleave",I)),i().removeEventListener("visibilitychange",L),a.autoplay.running&&x()})),n("_freeModeStaticRelease",(()=>{(u||h)&&M()})),n("_freeModeNoMomentumRelease",(()=>{a.params.autoplay.disableOnInteraction?x():C(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!a.destroyed&&a.autoplay.running&&(s||!a.params.autoplay.disableOnInteraction?C(!0,!0):x())})),n("sliderFirstMove",(()=>{!a.destroyed&&a.autoplay.running&&(a.params.autoplay.disableOnInteraction?x():(p=!0,u=!1,h=!1,m=setTimeout((()=>{h=!0,u=!0,C(!0)}),200)))})),n("touchEnd",(()=>{if(!a.destroyed&&a.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),a.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&a.params.cssMode&&M(),u=!1,p=!1}})),n("slideChange",(()=>{!a.destroyed&&a.autoplay.running&&(f=!0)})),Object.assign(a.autoplay,{start:E,stop:x,pause:C,resume:M})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,i=e.clickedSlide;if(i&&i.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let a;a=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(a):t.slideTo(a)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(d(e.swiper)){const i=Object.assign({},e.swiper);Object.assign(i,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(i),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function c(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const i="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let a=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(a=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<a;e+=1)m(s.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<a;e+=1)s.slides[t.realIndex+e]&&s.slides[t.realIndex+e].classList.add(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){const a=s.activeIndex;let r,o;if(s.params.loop){const e=s.slides.filter((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`))[0];r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>a?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>a&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},a("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=i(),a=()=>{const i="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(i&&i.swiper)e.swiper=i.swiper,o(),c(!0);else if(i){const s=`${t.params.eventsPrefix}init`,a=r=>{e.swiper=r.detail[0],i.removeEventListener(s,a),o(),c(!0),e.swiper.update(),t.update()};i.addEventListener(s,a)}return i},r=()=>{if(t.destroyed)return;a()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),c(!0)})),a("slideChange update resize observerUpdate",(()=>{c()})),a("setTransition",((e,s)=>{const i=t.thumbs.swiper;i&&!i.destroyed&&i.setTransition(s)})),a("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:c})}];return Z.use(se),Z}();