1(function($){ 2$.fn.powerkitPinIt=function(){ 3$(this).each(function(){ 4if($(this).hasClass('pk-pin-it-ready') ){ 5return; 6} 7var width=$(this).attr('width'); 8var height=$(this).attr('height'); 9if(typeof width==='undefined'){ 10width=$(this).width(); 11} 12if(typeof height==='undefined'){ 13height=$(this).height(); 14} 15if(!(parseInt(width) > 120&&parseInt(height) > 120) ){ 16$(this).addClass('pk-pin-it-ready'); 17return; 18} 19var container=$(this).parent(), 20postURL=$(location).attr('href'), 21pinURL; 22if($(container).is('a') ){ 23var imagehref=$(container).attr('href'); 24if(typeof imagehref!=='undefined'&&imagehref.match(/\.(gif|jpeg|jpg|png|webp)/) ){ 25pinURL=imagehref; 26} 27if(!($(container).closest('figure').length) ){ 28$(container).wrap('<figure class="pk-pin-it-container"></figure>'); 29} 30container=$(container).parent(); 31}else{ 32if(!($(container).is('figure')||$(container).closest('figure').length) ){ 33$(this).wrap('<figure class="pk-pin-it-container"></figure>'); 34} 35container=$(this).parent(); 36} 37if(!$(this).closest('figure').hasClass('pk-pin-it-container') ){ 38$(this).closest('figure').addClass('pk-pin-it-container'); 39} 40if(! pinURL){ 41if($(this).is('img') ){ 42pinURL=(typeof $(this).data('pk-src')!=='undefined') ? $(this).data('pk-src'):$(this).attr('src'); 43}else{ 44pinURL=(typeof $(container).find('img').data('src')!=='undefined') ? $(container).find('img').data('src'):$(container).find('img').attr('src'); 45}} 46pinURL=encodeURIComponent(pinURL); 47postURL=encodeURIComponent(postURL); 48var figure=container; 49if(! $(container).is('figure') ){ 50figure=$(container).closest('figure'); 51} 52var imgDescription=$(figure).find('img').data('pin-description'); 53if(!imgDescription){ 54imgDescription=$(figure).find('.wp-caption-text').text(); 55} 56if(!imgDescription){ 57imgDescription=$(figure).find('figcaption').text(); 58} 59if(!imgDescription){ 60imgDescription=$(figure).find('img').attr('alt'); 61} 62if(imgDescription){ 63imgDescription='&description=' + encodeURIComponent(imgDescription); 64} 65var imgClasses=[ 'alignnone', 'aligncenter', 'alignleft', 'alignright' ]; 66imgClasses.forEach(function(el){ 67if($(container).find('img').hasClass(el) ){ 68$(container).find('img').removeClass(el); 69$(container).find('img').closest('figure').addClass(el); 70var imgWidth=$(container).find('img').attr('width'); 71if(parseInt(imgWidth)!=='NaN'){ 72$(container).find('img').closest('figure').width(imgWidth); 73}} 74}); 75var addPowerkitPintIt=function(container){ 76if(! $(container).find('.pk-pin-it').length){ 77$('<a class="pk-pin-it" href="http://www.pinterest.com/pin/create/bookmarklet/?url=' + postURL + '&media=' + pinURL + imgDescription + '&is_video=false" target="_blank"><span>Pin</span><span><i class="pk-icon pk-icon-pinterest"></i></span></a>') 78.appendTo(container) 79.addClass('pk-pin-it-visible'); 80}} 81if(powerkit_pinit_localize.only_hover){ 82$(container).mousemove(function(){ 83addPowerkitPintIt(this); 84}); 85$(container).mouseleave(function(){ 86var $this=this; 87$($this).children('.pk-pin-it').fadeOut(200, function(){ 88$($this).children('.pk-pin-it').remove(); 89}); 90}); 91}else{ 92addPowerkitPintIt(container); 93} 94$(this).addClass('pk-pin-it-ready'); 95}); 96}; 97function initPowerkitPinIt(){ 98var filterPowerkitPinIt=function(){ 99var exclude=powerkit_pinit_localize.exclude_selectors; 100if(exclude){ 101if($(this).closest(exclude).length > 0){ 102return false; 103}} 104return true; 105} 106$(powerkit_pinit_localize.image_selectors).imagesLoaded(function(){ 107$(powerkit_pinit_localize.image_selectors).filter(filterPowerkitPinIt).powerkitPinIt(); 108}); 109} 110$(document).ready(function(){ 111initPowerkitPinIt(); 112$(document.body).on('post-load image-load', function(){ 113initPowerkitPinIt(); 114}); 115}); 116})(jQuery); 117(function($){ 118$(document).ready(function(){ 119$(window).scroll(function(){ 120var offset=$('body').innerHeight() * 0.1; 121if($(this).scrollTop() > offset){ 122$('.pk-scroll-to-top').addClass('pk-active'); 123}else{ 124$('.pk-scroll-to-top').removeClass('pk-active'); 125}}); 126$('.pk-scroll-to-top').on('click', function(){ 127$('body, html').animate({ 128scrollTop: 0 129}, 400); 130return false; 131}); 132}); 133})(jQuery); 134(function($){ 135$(document).ready(function(){ 136let blockquoteLength=$('.pk-share-buttons-blockquote').length; 137if(blockquoteLength){ 138$('.entry-content').find('blockquote').each(function(index, item){ 139if($(item).closest('.wp-block-embed').length){ 140return; 141} 142if($(item).closest('.twitter-tweet').length){ 143return; 144} 145var text=$(this).find('p').text(); 146if(! text){
147text=$(this).text(); 148} 149let container=$('.pk-share-buttons-blockquote').not('.pk-share-buttons-blockquote-clone').clone().appendTo(item); 150container.addClass('pk-share-buttons-blockquote-clone'); 151container.find('.pk-share-buttons-link').each(function(index, item){ 152let url=$(this).attr('href').replace('--SHARETEXT--', encodeURIComponent(text) ); 153$(this).attr('href', url); 154}); 155}); 156} 157let highlightLength=$('.pk-share-buttons-highlight-text').length; 158if(highlightLength){ 159$('body').on('mouseup', function(e){ 160if(! $(e.target).closest('.entry-content').length && 161! $(e.target).closest('.pk-share-buttons-wrap').length){ 162highlightRemove(); 163}}); 164$('body').on('mouseup', '.entry-content', function(e){ 165e.preventDefault(); 166highlightRemove(); 167let selection=window.getSelection(); 168let text=selection.toString(); 169this.title=''; 170if(''!=text){ 171highlightDisplay(text, e);; 172}}); 173var highlightRemove=function(){ 174$('.pk-share-buttons-highlight-clone').remove(); 175}; 176var highlightDisplay=function(text, e){ 177highlightRemove(); 178let container=$('.pk-share-buttons-highlight-text').not('.pk-share-buttons-highlight-clone').clone().appendTo('body'); 179let wrapper_x=e.pageX + 10; 180let wrapper_y=e.pageY + 10; 181container.addClass('pk-share-buttons-highlight-clone'); 182container.css({ left: wrapper_x, top: wrapper_y }); 183container.find('.pk-share-buttons-link').each(function(index, item){ 184let url=$(this).attr('href').replace('--SHARETEXT--', encodeURIComponent(text) ); 185$(this).attr('href', url); 186}); 187}} 188let mobileShare=$('.pk-share-buttons-layout-right-side, .pk-share-buttons-layout-left-side, .pk-share-buttons-layout-popup'); 189$(mobileShare).each(function(index, elem){ 190$(elem).find('.pk-share-buttons-total, .pk-share-buttons-link').on('click', function(e){ 191$('body').toggleClass('pk-mobile-share-active'); 192}); 193}); 194$(document).on('click', function(e){ 195if(! $(e.target) .closest('.pk-share-buttons-total').length){ 196$('body').removeClass('pk-mobile-share-active'); 197}}); 198}); 199})(jQuery); 200(function($){ 201$(document).ready(function(){ 202var pk_toc_container='.entry-content'; 203var pk_toc_wpadminbar=0; 204var pk_toc_offset=80; 205if($('#wpadminbar').length > 0){ 206pk_toc_wpadminbar=$('#wpadminbar').outerHeight(); 207if('absolute'===$('#wpadminbar').css('position') ){ 208pk_toc_wpadminbar=0; 209}} 210$(document).on('click', '.pk-toc-btn-hide', function(){ 211if($(this).closest('.pk-toc').hasClass('pk-toc-hide') ){ 212$(this).closest('.pk-toc').removeClass('pk-toc-hide'); 213$(this).html(powerkit_toc_config.label_hide); 214$(this).closest('.pk-toc').find('> ol, > ul').slideDown(200, function(){ 215$(this).animate({opacity: 1}, 150, 'swing'); 216}); 217}else{ 218$(this).closest('.pk-toc').addClass('pk-toc-hide'); 219$(this).html(powerkit_toc_config.label_show); 220$(this).closest('.pk-toc').find('> ol, > ul').animate({opacity: 0}, 150, 'swing', function(){ 221$(this).slideUp(200); 222}); 223}}); 224$(document).on('click', '.pk-toc a', function(){ 225var objContent=$(pk_toc_container); 226if($(this).closest(pk_toc_container).length > 0){ 227objContent=$(this).closest(pk_toc_container); 228} 229var offsetHeading=$(objContent).find($(this).attr('href') ).offset(); 230if(typeof offsetHeading==='undefined'){ 231return; 232} 233var positionHeading=offsetHeading.top; 234$('body, html').animate({ 235scrollTop: positionHeading - pk_toc_wpadminbar - pk_toc_offset 236}, 400); 237return false; 238}); 239$(window).scroll(function(){ 240var scrollTop=$(window).scrollTop(); 241$('.powerkit_toc_widget').first().find('.pk-toc a').each(function(index, elem){ 242var offsetHeading=$($(elem).attr('href') ).offset(); 243if(typeof offsetHeading==='undefined'){ 244return; 245} 246var positionHeading=offsetHeading.top; 247if(positionHeading - scrollTop - pk_toc_wpadminbar - pk_toc_offset <=0){ 248var filterElem='[href="%1s"]'.replace('%1s', $(elem).attr('href') ); 249var menuElem=$('.powerkit_toc_widget .pk-toc').find('a').filter(filterElem); 250$('.powerkit_toc_widget .pk-toc li').removeClass('active active-child'); 251$(menuElem).parents('li').addClass('active-child'); 252$(menuElem).parent('li').addClass('active'); 253}}); 254}); 255}); 256})(jQuery); 257(()=> { 258"use strict"; 259var __webpack_modules__=([ 260, 261((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__)=> { 262__webpack_require__.r(__webpack_exports__); 263__webpack_require__.d(__webpack_exports__, { 264csGetCookie: ()=> ( csGetCookie), 265csSetCookie: ()=> ( csSetCookie), 266csco: ()=> ( csco), 267isInViewport: ()=> ( isInViewport), 268slideDown: ()=> ( slideDown), 269slideToggle: ()=> ( slideToggle), 270slideUp: ()=> ( slideUp) 271}); 272var csco={ 273addAction: function(x, y, z){ 274return; 275}}; 276if('undefined'!==typeof wp&&'undefined'!==typeof wp.hooks){ 277csco.addAction=wp.hooks.addAction; 278} 279function isInViewport(element){ 280const rect=element.getBoundingClientRect(); 281const windowHeight=(window.innerHeight||document.documentElement.clientHeight); 282const windowWidth=(window.innerWidth||document.documentElement.clientWidth); 283return (rect.top <=windowHeight&&rect.top + rect.height >=0)&&(rect.left <=windowWidth&&rect.left + rect.width >=0); 284} 285function slideDown(element, duration=350){ 286element.style.display='block'; 287element.style.overflow='hidden'; 288let height=element.scrollHeight; 289element.style.height=0; 290setTimeout(()=> { 291element.style.transition=`height ${duration}ms`; 292element.style.height=height + 'px'; 293element.addEventListener('transitionend', function te(){ 294element.removeEventListener('transitionend', te); 295element.style.removeProperty('height'); 296element.style.removeProperty('transition'); 297element.style.removeProperty('overflow'); 298}); 299}, 0); 300} 301function slideUp(element, duration=350){ 302element.style.height=element.offsetHeight + 'px'; 303element.style.overflow='hidden'; 304setTimeout(()=> { 305element.style.transition=`height ${duration}ms`; 306element.style.height='0'; 307element.addEventListener('transitionend', function te(){ 308element.removeEventListener('transitionend', te); 309if(element.style.height==='0px'){ 310element.style.display='none'; 311} 312element.style.removeProperty('height'); 313element.style.removeProperty('transition'); 314element.style.removeProperty('overflow'); 315}); 316}, 0); 317} 318function slideToggle(element, duration=350){ 319if(window.getComputedStyle(element).display==='none'){ 320return slideDown(element, duration); 321}else{ 322return slideUp(element, duration); 323}} 324function csGetCookie(name){ 325let matches=document.cookie.match(new RegExp( 326"(?:^|;)" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" 327)); 328return matches ? decodeURIComponent(matches[ 1 ]):undefined; 329} 330function csSetCookie(name, value, props={}){ 331props={ 332path: '/' 333}; 334if(props.expires instanceof Date){ 335props.expires=props.expires.toUTCString(); 336} 337let updatedCookie=encodeURIComponent(name) + "=" + encodeURIComponent(value); 338for(let optionKey in props){ 339updatedCookie +="; " + optionKey; 340let optionValue=props[ optionKey ]; 341if(optionValue!==true){ 342updatedCookie +="=" + optionValue; 343}} 344document.cookie=updatedCookie; 345} 346}) 347]); 348var __webpack_module_cache__={}; 349function __webpack_require__(moduleId){ 350var cachedModule=__webpack_module_cache__[moduleId]; 351if(cachedModule!==undefined){ 352return cachedModule.exports; 353} 354var module=__webpack_module_cache__[moduleId]={ 355exports: {} 356}; 357__webpack_modules__[moduleId](module, module.exports, __webpack_require__); 358return module.exports; 359} 360(()=> { 361__webpack_require__.d=(exports, definition)=> { 362for(var key in definition){ 363if(__webpack_require__.o(definition, key)&&!__webpack_require__.o(exports, key)){ 364Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 365} 366} 367}; 368})(); 369(()=> { 370__webpack_require__.o=(obj, prop)=> (Object.prototype.hasOwnProperty.call(obj, prop)) 371})(); 372(()=> { 373__webpack_require__.r=(exports)=> { 374if(typeof Symbol!=='undefined'&&Symbol.toStringTag){ 375Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 376} 377Object.defineProperty(exports, '__esModule', { value: true }); 378}; 379})(); 380var __webpack_exports__={}; 381(()=> { 382var __webpack_exports__={}; 383__webpack_require__.r(__webpack_exports__); 384var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 385(function (){ 386const sliders=document.querySelectorAll(`.cs-header-bottombar-carou
386sel .cs-header-bottombar__nav-menu`); 387if(sliders.length===0){ 388return; 389} 390let executed=false; 391const initSection=function(){ 392if(!executed&&(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(sliders[0])){ 393executed=true; 394sliders.forEach(slider=> { 395const wrapperClass=`cs-header-bottombar__nav`; 396const slideClass=`menu-item`; 397const prevEl=slider.querySelector(`.cs-header-bottombar__button-prev`); 398const nextEl=slider.querySelector(`.cs-header-bottombar__button-next`); 399new Swiper(slider, { 400scrollbar: false, 401wrapperClass: wrapperClass, 402slideClass: slideClass, 403direction: 'horizontal', 404loop: false, 405rewind: true, 406speed: 250, 407parallax: false, 408autoplay: false, 409slidesPerView: 'auto', 410spaceBetween: 0, 411navigation: { 412nextEl: nextEl, 413prevEl: prevEl, 414}, 415}); 416}); 417}}; 418document.addEventListener('DOMContentLoaded', ()=> { 419initSection(); 420}); 421window.addEventListener('resize', ()=> { 422initSection(); 423}); 424window.addEventListener('scroll', ()=> { 425initSection(); 426}); 427})(); 428})(); 429(()=> { 430var __webpack_exports__={}; 431__webpack_require__.r(__webpack_exports__); 432var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 433(function (){ 434const section='cs-carousel'; 435const sliders=document.querySelectorAll(`.${section}`); 436if(sliders.length===0){ 437return; 438} 439let executed=false; 440const initSection=function(){ 441if(!executed&&(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(sliders[0])){ 442executed=true;
443sliders.forEach(slider=> { 444const postContentContainer='.cs-entry__content'; 445const postContents=slider.querySelectorAll(postContentContainer); 446const setParallaxAttributes=function(element, duration){ 447element.setAttribute('data-swiper-parallax-x', '-400'); 448element.setAttribute('data-swiper-parallax-duration', duration); 449}; 450const postPerViewValue=slider.getAttribute('data-cs-post-per-view'); 451const autoplayValue=slider.getAttribute('data-cs-autoplay'); 452const autoplayDelayValue=slider.getAttribute('data-cs-autoplay-delay'); 453const speedValue=slider.getAttribute('data-cs-slide-speed'); 454const parallaxValue=slider.getAttribute('data-cs-parallax'); 455const gapValue=slider.getAttribute('data-cs-gap'); 456const postPerView=(!isNaN(parseInt(postPerViewValue))&&parseInt(postPerViewValue) > 0) ? parseInt(postPerViewValue):3; 457const autoplayDelay=(!isNaN(parseInt(autoplayDelayValue))&&parseInt(autoplayDelayValue) > 0) ? parseInt(autoplayDelayValue):5000; 458const autoplay=('true'===autoplayValue) ? { delay: autoplayDelay, disableOnInteraction: false, pauseOnMouseEnter: true, }:false; 459const speed = !isNaN(parseInt(speedValue)) ? parseInt(speedValue):800; 460const parallax=('true'===parallaxValue) ? true:false; 461const gap = !isNaN(parseInt(gapValue)) ? parseInt(gapValue):0; 462if(parallax){ 463if(postContents.length > 0){ 464postContents.forEach(postContent=> { 465setParallaxAttributes(postContent, '800'); 466}); 467}} 468const wrapperClass=`${section}__wrapper`; 469const slideClass=`${section}__item`; 470const prevEl=slider.querySelector(`.${section}__button-prev`); 471const nextEl=slider.querySelector(`.${section}__button-next`); 472const paginationContainer=slider.querySelector(`.${section}__pagination`); 473const progressbar=slider.querySelector(`.${section}__progress-bar`); 474const bulletClass=`${section}__pagination-bullet`; 475const bulletClassActive=`${section}__pagination-bullet-active`; 476const carouselTabs=new Swiper(slider.querySelector(`.${section}__swiper-tabs`), { 477scrollbar: false, 478wrapperClass: wrapperClass, 479slideClass: slideClass, 480direction: 'horizontal', 481loop: true, 482speed: speed, 483parallax: false, 484slidesPerView: postPerView, 485freeMode: true, 486spaceBetween: 0, 487}); 488const carouselPost=new Swiper(slider.querySelector(`.${section}__swiper-post`), { 489scrollbar: false, 490wrapperClass: wrapperClass, 491slideClass: slideClass, 492direction: 'horizontal', 493loop: true, 494speed: speed, 495parallax: parallax, 496autoplay: autoplay, 497slidesPerView: 1, 498spaceBetween: gap, 499a11y: { 500slideRole: 'article', 501slideLabelMessage: 'Slide {{index}} of {{slidesLength}}' 502}, 503pagination: { 504type: 'progressbar', 505el: paginationContainer, 506clickable: true, 507bulletElement: 'span', 508bulletClass: bulletClass, 509bulletActiveClass: bulletClassActive, 510}, 511navigation: { 512nextEl: nextEl, 513prevEl: prevEl, 514}, 515thumbs: { 516swiper: carouselTabs, 517}, 518on: { 519autoplayTimeLeft(s, time, progress){ 520progressbar.style.setProperty(`--${section}-progressbar`, 1 - progress); 521}, 522init: function (){ 523setTimeout(()=> { 524const initialSlide=this.slides[this.activeIndex]; 525if(initialSlide){ 526const initialContent=initialSlide.querySelector(postContentContainer); 527if(initialContent){ 528initialContent.style.transform='none'; 529}} 530}, 100); 531}, 532slideChange: function (){ 533const currentSlide=this.slides[this.activeIndex]; 534postContents.forEach(postContent=> { 535if(postContent===currentSlide.querySelector(postContentContainer)){ 536postContent.style.transform='none'; 537}}); 538}}, 539}); 540let tabsHeight=slider.querySelector(`.${section}__swiper-tabs`).offsetHeight; 541slider.style.setProperty(`--${section}-tabs-height`, tabsHeight + 'px'); 542}); 543}}; 544document.addEventListener('DOMContentLoaded', ()=> { 545initSection(); 546}); 547window.addEventListener('resize', ()=> { 548initSection(); 549}); 550window.addEventListener('scroll', ()=> { 551initSection(); 552}); 553})(); 554})(); 555(()=> { 556var __webpack_exports__={}; 557__webpack_require__.r(__webpack_exports__); 558(function (){ 559const toggles=document.querySelectorAll('.cs-entry__comments-toggle'); 560toggles.forEach(toggle=> { 561toggle.addEventListener('click', function (e){ 562e.preventDefault(); 563const commentsElement=document.querySelector('.cs-entry__comments');
564commentsElement.classList.toggle('cs-entry__comments-visible'); 565}); 566}); 567})(); 568})(); 569(()=> { 570var __webpack_exports__={}; 571__webpack_require__.r(__webpack_exports__); 572var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 573(function (){ 574HTMLElement.prototype.responsiveNav=function (){ 575this.classList.remove('menu-item-expanded'); 576let previousElement=this.previousElementSibling; 577if(previousElement&&previousElement.classList.contains('submenu-visible')){ 578previousElement.classList.remove('submenu-visible'); 579(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(previousElement); 580this.parentElement.classList.remove('menu-item-expanded'); 581}else{ 582let parentOfParent=this.parentElement.parentElement; 583parentOfParent.querySelectorAll('.menu-item .sub-menu').forEach(subMenu=> { 584subMenu.classList.remove('submenu-visible'); 585(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(subMenu); 586}); 587parentOfParent.querySelectorAll('.menu-item-expanded').forEach(item=> { 588item.classList.remove('menu-item-expanded'); 589}); 590if(previousElement){ 591previousElement.classList.toggle('submenu-visible'); 592(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideToggle)(previousElement); 593} 594this.parentElement.classList.toggle('menu-item-expanded'); 595}}; 596document.addEventListener('DOMContentLoaded', function (){ 597let menuItems=document.querySelectorAll('.cs-footer-columns__nav .menu-item-has-children'); 598menuItems.forEach(menuItem=> { 599let span=document.createElement('span'); 600menuItem.appendChild(span); 601span.addEventListener('click', function (e){ 602e.preventDefault(); 603this.responsiveNav(); 604}); 605}); 606}); 607})(); 608})(); 609(()=> { 610var __webpack_exports__={}; 611__webpack_require__.r(__webpack_exports__); 612(function (){ 613const body=document.body; 614const headerElement=document.querySelector('.cs-header'); 615const headerOverlay=document.querySelector('.cs-header-overlay'); 616const searchToggles=document.querySelectorAll('.cs-header__search-toggle, .cs-search__close'); 617const burgerToggles=document.querySelectorAll('.cs-header__burger-toggle'); 618const followToggles=document.querySelectorAll('.cs-follow__toggle'); 619searchToggles.forEach(searchToggle=> { 620searchToggle.addEventListener('click', function (e){ 621e.preventDefault(); 622if(body.classList.contains('cs-offcanvas-active')){ 623body.classList.remove('cs-offcanvas-active'); 624} 625if(headerElement.classList.contains('cs-burger-visible')){ 626headerElement.classList.remove('cs-burger-visible'); 627body.classList.remove('cs-burger-active'); 628} 629if(headerElement.classList.contains('cs-follow-visible')){ 630headerElement.classList.remove('cs-follow-visible'); 631body.classList.remove('cs-follow-active'); 632} 633headerElement.classList.toggle('cs-search-visible'); 634body.classList.toggle('cs-search-active'); 635}); 636}); 637burgerToggles.forEach(burgerToggle=> { 638burgerToggle.addEventListener('click', function (e){ 639e.preventDefault(); 640if(body.classList.contains('cs-offcanvas-active')){ 641body.classList.remove('cs-offcanvas-active'); 642} 643if(headerElement.classList.contains('cs-search-visible')){ 644headerElement.classList.remove('cs-search-visible'); 645body.classList.remove('cs-search-active'); 646} 647if(headerElement.classList.contains('cs-follow-visible')){ 648headerElement.classList.remove('cs-follow-visible'); 649body.classList.remove('cs-follow-active'); 650} 651headerElement.classList.toggle('cs-burger-visible'); 652body.classList.toggle('cs-burger-active'); 653}); 654}); 655followToggles.forEach(followToggle=> { 656followToggle.addEventListener('click', function (e){ 657e.preventDefault(); 658if(body.classList.contains('cs-offcanvas-active')){ 659body.classList.remove('cs-offcanvas-active'); 660} 661if(headerElement.classList.contains('cs-search-visible')){ 662headerElement.classList.remove('cs-search-visible'); 663body.classList.remove('cs-search-active'); 664} 665if(headerElement.classList.contains('cs-burger-visible')){ 666headerElement.classList.remove('cs-burger-visible'); 667body.classList.remove('cs-burger-active'); 668} 669headerElement.classList.toggle('cs-follow-visible'); 670body.classList.toggle('cs-follow-active'); 671}); 672}); 673if(headerOverlay){ 674headerOverlay.addEventListener('click', function (e){ 675e.preventDefault(); 676if(headerElement.classList.contains('cs-search-visible')){ 677headerElement.classList.remove('cs-search-visible'); 678body.classList.remove('cs-search-active'); 679} 680if(headerElement.classList.contains('cs-burger-visible')){ 681headerElement.classList.remove('cs-burger-visible'); 682body.classList.remove('cs-burger-active'); 683} 684if(headerElement.classList.contains('cs-follow-visible')){ 685headerElement.classList.remove('cs-follow-visible'); 686body.classList.remove('cs-follow-active'); 687}}); 688}})(); 689})(); 690(()=> { 691var __webpack_exports__={}; 692__webpack_require__.r(__webpack_exports__); 693document.addEventListener('DOMContentLoaded', function (){ 694let transitionTimer; 695document.addEventListener('nav-stick', function (event){ 696if(document.body.classList.contains('cs-display-header-overlay')){ 697let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'); 698let headerAlt=headerSmart.querySelector('.cs-container'); 699headerAlt.classList.add("cs-header-elements-no-transition"); 700clearTimeout(transitionTimer); 701transitionTimer=setTimeout(function (){ 702headerAlt.classList.remove("cs-header-elements-no-transition"); 703}, 300); 704}}); 705document.addEventListener('nav-unstick', function (event){ 706if(document.body.classList.contains('cs-display-header-overlay')){ 707let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'); 708let headerAlt=headerSmart.querySelector('.cs-container'); 709headerAlt.classList.add("cs-header-elements-no-transition"); 710clearTimeout(transitionTimer); 711transitionTimer=setTimeout(function (){ 712headerAlt.classList.remove("cs-header-elements-no-transition"); 713}, 300); 714}}); 715}); 716})(); 717(()=> { 718var __webpack_exports__={}; 719__webpack_require__.r(__webpack_exports__); 720document.addEventListener('DOMContentLoaded', function (){ 721document.addEventListener('header-smart-stretch-scroll-sticky-scroll-init', function (event){ 722let headerParams=event.detail; 723window.addEventListener('scroll', function (){ 724let scrolled=window.scrollY; 725let headerSmart=document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'); 726headerParams.headerSmartPosition=headerSmart ? headerSmart.offsetTop:0; 727if(scrolled > headerParams.smartStart + headerParams.scrollPoint + 10&&scrolled > headerParams.scrollPrev){ 728if(scrolled > headerParams.smartStart + headerParams.headerLargeHeight + 200){ 729document.dispatchEvent(new CustomEvent('sticky-nav-hide', { detail: headerParams })); 730}}else{ 731if(headerParams.scrollUpAmount >=headerParams.scrollPoint||scrolled===0){ 732document.dispatchEvent(new CustomEvent('sticky-nav-visible', { detail: headerParams })); 733}} 734if(scrolled > headerParams.smartStart + headerParams.headerLargeHeight){ 735document.dispatchEvent(new CustomEvent('nav-stick', { detail: headerParams })); 736}else if(headerParams.headerSmartPosition <=headerParams.smartStart){ 737document.dispatchEvent(new CustomEvent('nav-unstick', { detail: headerParams })); 738} 739if(scrolled < headerParams.scrollPrev){ 740headerParams.scrollUpAmount +=headerParams.scrollPrev - scrolled; 741}else{ 742headerParams.scrollUpAmount=0; 743} 744let wpAdminBar=document.querySelector('#wpadminbar'); 745if(wpAdminBar&&window.innerWidth <=600&&scrolled >=headerParams.wpAdminBarHeight){ 746document.dispatchEvent(new CustomEvent('adminbar-mobile-scrolled', { detail: headerParams })); 747}else{ 748document.dispatchEvent(new CustomEvent('adminbar-mobile-no-scrolled', { detail: headerParams })); 749} 750headerParams.scrollPrev=scrolled; 751}); 752}); 753}); 754})(); 755(()=> { 756var __webpack_exports__={}; 757__webpack_require__.r(__webpack_exports__); 758if(typeof window.load_more_query==='undefined'){ 759window.load_more_query=[]; 760} 761function csco_ajax_get_posts(object){ 762let container=object.closest('.cs-posts-area'); 763let settings=JSON.parse(object.dataset.settings); 764let page=parseInt(object.dataset.page); 765object.dataset.loading=true; 766object.textContent=settings.translation.loading; 767let data={ 768action: 'csco_ajax_load_more', 769page: page, 770posts_per_page: settings.posts_per_page, 771query_data: settings.query_data, 772attributes: settings.attributes, 773options: settings.options, 774_ajax_nonce: settings.nonce, 775}; 776let csco_pagination_url=(settings.type==='ajax_restapi') ? settings.rest_url:settings.url; 777function encodeFormData(data){ 778return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&'); 779} 780fetch(csco_pagination_url, { 781method: 'POST', 782body: encodeFormData(data), 783headers: { 784'Content-Type': 'application/x-www-form-urlencoded' 785}}) 786.then(response=> response.json()) 787.then(res=> { 788if(res.success){ 789let dataContent=document.createElement('div'); 790dataContent.innerHTML=res.data.content; 791if(dataContent.children.length){ 792document.body.dispatchEvent(new Event('post-load')); 793if(document.querySelector('#fb-root')&&typeof FB!=='undefined'){ 794FB.XFBML.parse(); 795} 796object.textContent=settings.translation.load_more; 797page +=1; 798object.dataset.page=page.toString(); 799object.dataset.loading="false"; 800let mainContainer=container.querySelector('.cs-posts-area__main'); 801while (dataContent.firstChild){ 802mainContainer.appendChild(dataContent.firstChild); 803}} 804if(res.data.posts_end){ 805object.parentNode.removeChild(object); 806}} 807}) 808.catch(error=> { 809console.error('Error fetching posts:', error); 810}); 811} 812function csco_load_more_init(infinite){ 813let areas=document.querySelectorAll('.cs-posts-area'); 814areas.forEach(area=> { 815if(area.dataset.init){ 816return; 817} 818let csco_ajax_settings; 819let archive_data=area.dataset.postsArea; 820if(archive_data){ 821csco_ajax_settings=JSON.parse(window.atob(archive_data)); 822}else if(typeof csco_ajax_pagination!=='undefined'&&typeof archive_data==='undefined'){ 823csco_ajax_settings=csco_ajax_pagination; 824} 825if(csco_ajax_settings){ 826if(!infinite&&csco_ajax_settings.infinite_load){ 827return; 828} 829let pagination=document.createElement('div'); 830pagination.className='cs-posts-area__pagination'; 831let btn=document.createElement('button'); 832btn.className='cs-load-more'; 833btn.textContent=csco_ajax_settings.translation.load_more; 834pagination.appendChild(btn); 835area.appendChild(pagination); 836btn.dataset.settings=JSON.stringify(csco_ajax_settings); 837btn.dataset.page='2'; 838btn.dataset.loading="false"; 839btn.dataset.scrollHandling=JSON.stringify({ 840allow: JSON.parse(csco_ajax_settings.infinite_load), 841delay: 400 842}); 843} 844area.dataset.init=true; 845}); 846} 847csco_load_more_init(true); 848window.addEventListener('elementor/frontend/init', function (){ 849csco_load_more_init(true); 850}); 851window.addEventListener('scroll', function (){ 852let buttons=document.querySelectorAll('.cs-posts-area .cs-load-more'); 853buttons.forEach(btn=> { 854let loading=btn.dataset.loading==="true"; 855let scrollHandling=JSON.parse(btn.dataset.scrollHandling||'{}'); 856if(loading||!scrollHandling.allow){ 857return; 858} 859scrollHandling.allow=false; 860btn.dataset.scrollHandling=JSON.stringify(scrollHandling); 861setTimeout(function (){ 862scrollHandling.allow=true; 863btn.dataset.scrollHandling=JSON.stringify(scrollHandling); 864}, scrollHandling.delay); 865let offset=btn.getBoundingClientRect().top - window.innerHeight; 866if(offset < 4000){ 867csco_ajax_get_posts(btn); 868}}); 869}); 870document.body.addEventListener('click', function (event){ 871if(event.target.classList.contains('cs-load-more')){ 872let loading=event.target.dataset.loading==="true"; 873if(!loading){ 874csco_ajax_get_posts(event.target); 875}} 876}); 877})(); 878(()=> { 879var __webpack_exports__={}; 880__webpack_require__.r(__webpack_exports__); 881if(typeof csco_ajax_nextpost!=='undefined'){ 882var objNextparent=document.querySelector('.cs-site-primary > .cs-site-content'); 883var objNextsect='.cs-nextpost-section'; 884var objNextpost=null; 885var currentNTitle=document.title; 886var currentNLink=window.location.href; 887var loadingNextpost=false; 888var scrollNextpost={ 889allow: true, 890reallow: function (){ 891scrollNextpost.allow=true; 892}, 893delay: 400 //(milliseconds) adjust to the highest acceptable value 894}; 895if(csco_ajax_nextpost.next_post){ 896objNextparent.insertAdjacentHTML('afterend', '<div class="cs-nextpost-inner"></div>'); 897objNextpost=document.querySelector('.cs-nextpost-inner'); 898}} 899function csco_ajax_get_nextpost(){ 900loadingNextpost=true; 901var data={ 902action: 'csco_ajax_load_nextpost', 903not_in: csco_ajax_nextpost.not_in, 904current_user: csco_ajax_nextpost.current_user, 905nonce: csco_ajax_nextpost.nonce, 906next_post: csco_ajax_nextpost.next_post, 907}; 908var csco_ajax_nextpost_url; 909if('ajax_restapi'===csco_ajax_nextpost.type){ 910csco_ajax_nextpost_url=csco_ajax_nextpost.rest_url; 911}else{ 912csco_ajax_nextpost_url=csco_ajax_nextpost.url; 913} 914function encodeFormData(data){ 915return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&'); 916} 917fetch(csco_ajax_nextpost_url, { 918method: 'POST', 919body: encodeFormData(data), 920headers: { 921'Content-Type': 'application/x-www-form-urlencoded' 922}}) 923.then(response=> response.json()) 924.then(res=> { 925csco_ajax_nextpost.next_post=false; 926if(res.success){ 927var tempDiv=document.createElement('div'); 928tempDiv.innerHTML=res.data.content; 929var data=tempDiv.children; 930if(data.length){ 931loadingNextpost=false; 932csco_ajax_nextpost.not_in=res.data.not_in; 933csco_ajax_nextpost.next_post=res.data.next_post; 934var loadingElement=objNextpost.nextElementSibling; 935if(loadingElement&&loadingElement.classList.contains('cs-nextpost-loading')){ 936loadingElement.remove(); 937} 938for (var i=0; i < data.length; i++){ 939objNextpost.appendChild(data[i].cloneNode(true)); 940} 941if(document.getElementById('fb-root')&&typeof FB==='object'){ 942FB.XFBML.parse(); 943} 944document.body.dispatchEvent(new Event('post-load')); 945}}else{ 946}}) 947.catch(error=> { 948}); 949} 950if(typeof csco_ajax_nextpost!=='undefined'){ 951window.addEventListener('scroll', function (){ 952var scrollTop=window.scrollY||window.pageYOffset; 953if(csco_ajax_nextpost.next_post){ 954if(objNextpost&&!loadingNextpost&&scrollNextpost.allow){ 955scrollNextpost.allow=false; 956setTimeout(scrollNextpost.reallow, scrollNextpost.delay); 957var offset=objNextpost.offsetTop + objNextpost.offsetHeight - scrollTop; 958if(4000 > offset){ 959objNextpost.insertAdjacentHTML('afterend', '<div class="cs-nextpost-loading"></div>'); 960csco_ajax_get_nextpost(); 961}} 962} 963var objFirst=document.querySelector(objNextsect + ':first-child'); 964if(objFirst){ 965var firstTop=objFirst.offsetTop; 966if(scrollTop < firstTop&&window.location.href!==currentNLink){ 967document.title=currentNTitle; 968history.pushState(null, currentNTitle, currentNLink); 969}}
970document.querySelectorAll(objNextsect).forEach(function (elem){ 971var elemTop=elem.offsetTop; 972var elemHeight=elem.offsetHeight; 973if(scrollTop > elemTop&&scrollTop < elemTop + elemHeight){ 974if(window.location.href!==elem.dataset.url){ 975document.title=elem.dataset.title; 976history.pushState(null, elem.dataset.title, elem.dataset.url); 977if(typeof gtag==='function'&&typeof window.gaData==='object'){ 978var trackingId=Object.keys(window.gaData)[0]; 979if(trackingId){ 980gtag('config', trackingId, { 981'page_title': elem.dataset.title, 982'page_location': elem.dataset.url 983}); 984gtag('event', 'page_view', { 985'send_to': trackingId 986}); 987}} 988}} 989}); 990}); 991}})(); 992(()=> { 993var __webpack_exports__={}; 994__webpack_require__.r(__webpack_exports__); 995document.addEventListener('DOMContentLoaded', function (){ 996function loadMenuPosts(menuItem){ 997var dataTerm=menuItem.children[0].dataset.term, 998dataPosts=menuItem.children[0].dataset.posts, 999dataNumberposts=menuItem.children[0].dataset.numberposts, 1000menuContainer, 1001postsContainer; 1002if(menuItem.classList.contains('cs-mega-menu-term')||menuItem.classList.contains('cs-mega-menu-posts')){ 1003menuContainer=menuItem; 1004postsContainer=menuContainer.querySelector('.cs-mm__posts'); 1005} 1006if(menuItem.classList.contains('cs-mega-menu-child-term')){ 1007menuContainer=menuItem.closest('.sub-menu'); 1008postsContainer=menuContainer.querySelector('.cs-mm__posts[data-term="' + dataTerm + '"]'); 1009} 1010if(!menuContainer||typeof menuContainer==='undefined'){ 1011return false; 1012} 1013if(!postsContainer||typeof postsContainer==='undefined'){ 1014return false; 1015} 1016menuContainer.querySelectorAll('.menu-item, .cs-mm__posts').forEach(function (el){ 1017el.classList.remove('cs-active-item'); 1018}); 1019menuItem.classList.add('cs-active-item'); 1020if(postsContainer){ 1021postsContainer.classList.add('cs-active-item'); 1022} 1023if(menuItem.classList.contains('cs-mm-loading')||menuItem.classList.contains('loaded')){ 1024return false; 1025} 1026var data={ 1027'term': dataTerm, 1028'posts': dataPosts, 1029'per_page': dataNumberposts 1030}; 1031if(typeof csco_mega_menu==='undefined'){ 1032return; 1033} 1034menuItem.classList.add('cs-mm-loading'); 1035postsContainer.classList.add('cs-mm-loading'); 1036function encodeFormData(data){ 1037return Object.keys(data).map(key=> encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&'); 1038} 1039fetch(csco_mega_menu.rest_url, { 1040method: 'POST', 1041body: encodeFormData(data), 1042headers: { 1043'Content-Type': 'application/x-www-form-urlencoded' 1044}}) 1045.then(response=> response.json()) 1046.then(res=> { 1047if(res.status&&'success'===res.status){ 1048menuItem.classList.add('loaded'); 1049postsContainer.classList.add('loaded'); 1050if(res.content&&res.content.length){ 1051postsContainer.innerHTML=res.content; 1052imagesLoaded(postsContainer, function (){ 1053}); 1054}} 1055}) 1056.catch(error=> { 1057}) 1058.finally(()=> { 1059menuItem.classList.remove('cs-mm-loading'); 1060postsContainer.classList.remove('cs-mm-loading'); 1061}); 1062} 1063function getFirstTab(container){ 1064var firstTab=false; 1065container.querySelectorAll('.cs-mega-menu-child').forEach(function (el){ 1066if(! firstTab&&el.classList.contains('cs-mega-menu-child')){ 1067firstTab=el; 1068}}); 1069return firstTab; 1070} 1071function handleMenuHover(event){ 1072var menuItem=event.currentTarget; 1073if(menuItem.classList.contains('cs-mega-menu-posts') || 1074menuItem.classList.contains('cs-mega-menu-term') || 1075menuItem.classList.contains('cs-mega-menu-child')){ 1076loadMenuPosts(menuItem); 1077}} 1078function handleTermsHover(event){ 1079var menuItem=event.currentTarget; 1080var tab=getFirstTab(menuItem); 1081if(tab){ 1082loadMenuPosts(tab); 1083}} 1084document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-posts').forEach(function (menuItem){ 1085menuItem.addEventListener('mouseenter', handleMenuHover); 1086}); 1087document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-term').forEach(function (menuItem){ 1088menuItem.addEventListener('mouseenter', handleMenuHover); 1089}); 1090document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-child').forEach(function (menuItem){ 1091menuItem.addEventListener('mouseenter', handleMenuHover); 1092}); 1093document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-terms').forEach(function (menuItem){ 1094menuItem.addEventListener('mouseenter', handleTermsHover); 1095}); 1096document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-terms').forEach(function (menuItem){ 1097var tab=getFirstTab(menuItem); 1098if(tab){ 1099loadMenuPosts(tab); 1100}}); 1101document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-posts').forEach(function (menuItem){ 1102loadMenuPosts(menuItem); 1103}); 1104document.querySelectorAll('.cs-header__nav .menu-item.cs-mega-menu-term').forEach(function (menuItem){ 1105loadMenuPosts(menuItem); 1106}); 1107}); 1108})(); 1109(()=> { 1110var __webpack_exports__={}; 1111__webpack_require__.r(__webpack_exports__); 1112class CscoNavigation { 1113constructor(){ 1114this.headerParams={ 1115headerLargeHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')), 1116headerCompactHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')), 1117headerSmart: document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'), 1118wpAdminBar: document.querySelector('#wpadminbar'), 1119headerBefore: document.querySelector('.cs-header-before'), 1120headerStretch: document.querySelector('.cs-navbar-smart-enabled .cs-header-stretch'), 1121wpAdminBarHeight: null, 1122smartStart: null, 1123scrollPoint: 200, 1124scrollPrev: 200, 1125scrollUpAmount: 0, 1126headerSmartPosition: 0 1127}; 1128this.initialize(); 1129} 1130initialize(){ 1131if(document.body.classList.contains('wp-admin')){ 1132return; 1133} 1134this.bindEvents(); 1135} 1136bindEvents(){ 1137document.addEventListener('DOMContentLoaded', ()=> { 1138this.smartLevels(); 1139this.adaptTablet(); 1140this.stickyScroll(); 1141this.headerClassesChange(); 1142}); 1143window.addEventListener('resize', ()=> { 1144this.smartLevels(); 1145this.adaptTablet(); 1146this.stickyScroll(); 1147}); 1148} 1149smartLevels(){ 1150let windowWidth=window.innerWidth; 1151document.querySelectorAll('.cs-header__nav-inner li').forEach(el=> { 1152el.classList.remove('cs-sm__level', 'cs-sm-position-left', 'cs-sm-position-right'); 1153}); 1154document.querySelectorAll('.cs-header__nav-inner li .sub-menu').forEach(el=> { 1155el.classList.remove('cs-mm__position-init'); 1156}); 1157document.querySelectorAll('.cs-header__nav-inner > li.menu-item:not(.cs-mm)').forEach(parent=> { 1158let position='cs-sm-position-right'; 1159let objPrevWidth=0; 1160parent.querySelectorAll('.sub-menu').forEach(el=> { 1161if(el.parentElement.nextElementSibling){ 1162el.parentElement.nextElementSibling.classList.add('cs-sm__level'); 1163} 1164if(el.parentElement.classList.contains('cs-sm__level')){ 1165el.parentElement.classList.remove('cs-mm-level'); 1166position='cs-sm-position-right'; 1167objPrevWidth=0; 1168} 1169let offset=el.getBoundingClientRect().left; 1170if(position==='cs-sm-position-right'&&el.offsetWidth + offset > windowWidth){ 1171position='cs-sm-position-left'; 1172} 1173if(position==='cs-sm-position-left'&&offset - (el.offsetWidth + objPrevWidth) < 0){ 1174position='cs-sm-position-right'; 1175} 1176objPrevWidth=el.offsetWidth; 1177el.classList.add('cs-sm-position-init'); 1178el.parentElement.classList.add(position); 1179}); 1180}); 1181} 1182adaptTablet(){ 1183document.addEventListener('touchstart', (e)=> { 1184if(!e.target.closest('.cs-header__nav-inner')){ 1185document.querySelectorAll('.cs-header__nav-inner .menu-item-has-children').forEach(el=> { 1186el.classList.remove('submenu-visible'); 1187}); 1188}else{ 1189let parentMenuItem=e.target.closest('.menu-item'); 1190if(parentMenuItem){ 1191if(parentMenuItem.previousElementSibling){ 1192parentMenuItem.previousElementSibling.querySelectorAll('.menu-item').forEach(el=> { 1193el.classList.remove('submenu-visible'); 1194}); 1195} 1196if(parentMenuItem.nextElementSibling){ 1197parentMenuItem.nextElementSibling.classList.remove('submenu-visible'); 1198}} 1199}}); 1200document.querySelectorAll('.cs-header__nav-inner .menu-item-has-children').forEach(el=> { 1201el.classList.remove('submenu-visible'); 1202let expandedElem=el.querySelector('a > .expanded'); 1203if(expandedElem){ 1204expandedElem.remove(); 1205} 1206if('ontouchstart' in document.documentElement){ 1207let aTag=el.querySelector('a'); 1208if(aTag){ 1209let span=document.createElement('span'); 1210span.className='expanded'; 1211aTag.appendChild(span); 1212}} 1213if('ontouchstart' in document.documentElement){ 1214el.classList.add('touch-device'); 1215} 1216let expandedElement=el.querySelector('a .expanded'); 1217if(expandedElement){ 1218expandedElement.addEventListener('touchstart', (e)=> { 1219e.preventDefault(); 1220el.classList.toggle('submenu-visible'); 1221}, { passive: false }); 1222} 1223let anchor=el.querySelector('a'); 1224if(anchor&&anchor.getAttribute('href')==='#'){ 1225anchor.addEventListener('touchstart', (e)=> { 1226e.preventDefault(); 1227if(!e.target.classList.contains('expanded')){ 1228el.classList.toggle('submenu-visible'); 1229}}, { passive: false }); 1230}}); 1231} 1232stickyScroll(){ 1233this.headerParams={ 1234headerLargeHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')), 1235headerCompactHeight: parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')), 1236headerSmart: document.querySelector('.cs-navbar-smart-enabled .cs-header, .cs-navbar-sticky-enabled .cs-header'), 1237wpAdminBar: document.querySelector('#wpadminbar'), 1238headerBefore: document.querySelector('.cs-header-before'), 1239headerStretch: document.querySelector('.cs-navbar-smart-enabled .cs-header-stretch'), 1240wpAdminBarHeight: null, 1241smartStart: null, 1242scrollPoint: 200, 1243scrollPrev: 200, 1244scrollUpAmount: 0, 1245headerSmartPosition: 0 1246}; 1247this.headerParams.wpAdminBarHeight=this.headerParams.wpAdminBar ? this.headerParams.wpAdminBar.offsetHeight:0; 1248if(this.headerParams.headerBefore){ 1249this.headerParams.smartStart=this.headerParams.headerBefore.offsetTop; 1250}else{ 1251this.headerParams.smartStart=this.headerParams.wpAdminBarHeight + (this.headerParams.headerSmart ? this.headerParams.headerSmart.offsetTop:0); 1252} 1253window.addEventListener('scroll', ()=> { 1254let scrolled=window.scrollY; 1255this.headerParams.headerSmartPosition=this.headerParams.headerSmart ? this.headerParams.headerSmart.offsetTop:0; 1256if(scrolled > this.headerParams.smartStart + this.headerParams.scrollPoint + 10&&scrolled > this.headerParams.scrollPrev){ 1257if(scrolled > this.headerParams.smartStart + this.headerParams.headerCompactHeight + 200){ 1258document.dispatchEvent(new Event('sticky-nav-hide')); 1259}}else{ 1260if(this.headerParams.scrollUpAmount >=this.headerParams.scrollPoint||scrolled===0){ 1261document.dispatchEvent(new Event('sticky-nav-visible')); 1262}} 1263if(this.headerParams.headerSmart){ 1264if(scrolled > this.headerParams.smartStart + this.headerParams.headerCompactHeight){ 1265document.dispatchEvent(new Event('nav-stick', { detail: this.headerParams })); 1266}else if(this.headerParams.headerSmartPosition <=this.headerParams.smartStart){ 1267document.dispatchEvent(new Event('nav-unstick', { detail: this.headerParams })); 1268}} 1269if(scrolled < this.headerParams.scrollPrev){ 1270this.headerParams.scrollUpAmount +=this.headerParams.scrollPrev - scrolled; 1271}else{ 1272this.headerParams.scrollUpAmount=0; 1273} 1274if(this.headerParams.wpAdminBar&&window.innerWidth <=600&&scrolled >=this.headerParams.wpAdminBarHeight){ 1275document.dispatchEvent(new Event('adminbar-mobile-scrolled')); 1276}else{ 1277document.dispatchEvent(new Event('adminbar-mobile-no-scrolled')); 1278} 1279this.headerParams.scrollPrev=scrolled; 1280}); 1281} 1282headerClassesChange(){ 1283document.addEventListener("sticky-nav-visible", event=> { 1284this.headerParams.headerSmart.classList.add('cs-header-smart-visible'); 1285}); 1286document.addEventListener("sticky-nav-hide", event=> { 1287this.headerParams.headerSmart.classList.remove('cs-header-smart-visible'); 1288}); 1289document.addEventListener("nav-stick", event=> { 1290this.headerParams.headerSmart.classList.add('cs-scroll-sticky'); 1291}); 1292document.addEventListener("nav-unstick", event=> { 1293this.headerParams.headerSmart.classList.remove('cs-scroll-sticky', 'cs-header-smart-visible'); 1294}); 1295document.addEventListener("adminbar-mobile-scrolled", event=> { 1296document.body.classList.add('cs-adminbar-mobile-scrolled'); 1297}); 1298document.addEventListener("adminbar-mobile-no-scrolled", event=> { 1299document.body.classList.remove('cs-adminbar-mobile-scrolled'); 1300}); 1301}} 1302new CscoNavigation(); 1303})(); 1304(()=> { 1305var __webpack_exports__={}; 1306__webpack_require__.r(__webpack_exports__); 1307(function (){ 1308const body=document.body; 1309const headerElement=document.querySelector('.cs-header'); 1310const offcanvasToggles=document.querySelectorAll('.cs-header__offcanvas-toggle, .cs-site-overlay, .cs-offcanvas__toggle');
1311offcanvasToggles.forEach(offcanvasToggle=> { 1312offcanvasToggle.addEventListener('click', function (e){ 1313e.preventDefault(); 1314if(headerElement.classList.contains('cs-search-visible')){ 1315headerElement.classList.remove('cs-search-visible'); 1316body.classList.remove('cs-search-active'); 1317} 1318if(headerElement.classList.contains('cs-burger-visible')){ 1319headerElement.classList.remove('cs-burger-visible'); 1320body.classList.remove('cs-burger-active'); 1321} 1322if(!body.classList.contains('cs-offcanvas-active')){ 1323body.classList.add('cs-offcanvas-transition'); 1324}else{ 1325setTimeout(()=> { 1326body.classList.remove('cs-offcanvas-transition'); 1327}, 400); 1328} 1329body.classList.toggle('cs-offcanvas-active'); 1330}); 1331}); 1332})(); 1333})(); 1334(()=> { 1335var __webpack_exports__={}; 1336__webpack_require__.r(__webpack_exports__); 1337(function (){ 1338function initResponsiveEmbeds(){ 1339let proportion, parentWidth; 1340let iframes=document.querySelectorAll('.entry-content iframe'); 1341iframes.forEach(iframe=> { 1342if(iframe.closest('div[data-video-start], div[data-video-end]')){ 1343return; 1344} 1345if(iframe.width&&iframe.height){ 1346proportion=parseFloat(iframe.width) / parseFloat(iframe.height); 1347parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement).width); 1348iframe.style.maxWidth='100%'; 1349iframe.style.maxHeight=Math.round(parentWidth / proportion) + 'px'; 1350}}); 1351} 1352document.addEventListener('DOMContentLoaded', function (){ 1353initResponsiveEmbeds(); 1354}); 1355document.body.addEventListener('post-load', function (){ 1356initResponsiveEmbeds(); 1357}); 1358window.addEventListener('resize', function (){ 1359initResponsiveEmbeds(); 1360}); 1361initResponsiveEmbeds(); 1362})(); 1363})(); 1364(()=> { 1365var __webpack_exports__={}; 1366__webpack_require__.r(__webpack_exports__); 1367var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 1368const cscoDarkMode={ 1369init: function (){ 1370this.initMode(); 1371window.matchMedia('(prefers-color-scheme: dark)').addListener((e)=> { 1372this.initMode(); 1373}); 1374document.querySelectorAll('.cs-site-scheme-toggle').forEach(toggle=> { 1375toggle.onclick=()=> { 1376let siteScheme=document.body.getAttribute('data-scheme'); 1377if('dark'===siteScheme){ 1378this.changeScheme('light', true); 1379}else if('light'===siteScheme){ 1380this.changeScheme('dark', true); 1381}else if('auto'===siteScheme){ 1382const systemDark=window.matchMedia('(prefers-color-scheme: dark)').matches; 1383if(systemDark){ 1384this.changeScheme('light', true); 1385}else{ 1386this.changeScheme('dark', true); 1387}} 1388};}); 1389}, 1390detectColorScheme: function (color){ 1391var level=190; 1392var alpha=1; 1393var rgba=[255, 255, 255]; 1394var color_rgba=false; 1395color=color.trim(); 1396if(['#0e131a'].includes(color) ){ 1397return 'dark'; 1398} 1399if('#'===color[0]){ 1400color=color.replace('#', '').trim(); 1401if(3===color.length){ 1402color=color[0] + color[0] + color[1] + color[1] + color[2] + color[2]; 1403} 1404rgba[0]=parseInt(color.substr(0, 2), 16); 1405rgba[1]=parseInt(color.substr(2, 2), 16); 1406rgba[2]=parseInt(color.substr(4, 2), 16); 1407}else if((color_rgba=color.replace(/\s/g, '').match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i))){ 1408rgba[0]=parseInt(color_rgba[1]); 1409rgba[1]=parseInt(color_rgba[2]); 1410rgba[2]=parseInt(color_rgba[3]); 1411if(color_rgba[4]!==undefined){ 1412alpha=parseFloat(color_rgba[4]); 1413}} 1414rgba.forEach(function myFunction(channel, key, stack){ 1415stack[key]=String(channel + Math.ceil((255 - channel) * (1 - alpha))).padStart(2, '0'); 1416}); 1417var scheme='light'; 1418var brightness=((rgba[0] * 299) + (rgba[1] * 587) + (rgba[2] * 114)) / 1000; 1419if(rgba[0]===rgba[1]&&rgba[1]===rgba[2]){ 1420if(brightness < level){ 1421scheme='dark'; 1422}}else{ 1423if(brightness < level){ 1424scheme='inverse'; 1425}} 1426return scheme; 1427}, 1428setIndividualScheme: function (){ 1429var list={ 1430'.cs-header': '--cs-header-background', 1431'.cs-header__nav-inner .sub-menu': '--cs-header-submenu-background', 1432'.cs-header-topbar': '--cs-header-topbar-background', 1433'.cs-offcanvas': '--cs-offcanvas-background', 1434'.cs-footer': '--cs-footer-background', 1435}; 1436function createClosure(key){ 1437return function (element){ 1438var color=getComputedStyle(element).getPropertyValue(list[key]); 1439var scheme=cscoDarkMode.detectColorScheme(color); 1440element.setAttribute('data-scheme', scheme); 1441};} 1442for (var key in list){ 1443if(list.hasOwnProperty(key)){ 1444var elements=document.querySelectorAll(key); 1445if(elements.length <=0){ 1446continue; 1447}
1448elements.forEach(createClosure(key)); 1449}} 1450}, 1451initMode: function (){ 1452let siteScheme=false; 1453switch (csLocalize.siteSchemeMode){ 1454case 'dark': 1455siteScheme='dark'; 1456break; 1457case 'light': 1458siteScheme='light'; 1459break; 1460case 'system': 1461siteScheme='auto'; 1462break; 1463} 1464if(csLocalize.siteSchemeToogle){ 1465if('light'===(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csGetCookie)('_color_schema')){ 1466siteScheme='light'; 1467} 1468if('dark'===(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csGetCookie)('_color_schema')){ 1469siteScheme='dark'; 1470}} 1471this.setIndividualScheme(); 1472if(siteScheme&&siteScheme!==document.body.getAttribute('data-scheme')){ 1473this.changeScheme(siteScheme, false); 1474}}, 1475changeScheme: function (siteScheme, cookie){ 1476document.body.classList.add('cs-scheme-toggled'); 1477document.body.setAttribute('data-scheme', siteScheme); 1478this.setIndividualScheme(); 1479if(cookie){ 1480(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.csSetCookie)('_color_schema', siteScheme, { expires: 2592000 }); 1481} 1482setTimeout(()=> { 1483document.body.classList.remove('cs-scheme-toggled'); 1484}, 100); 1485}}; 1486cscoDarkMode.init(); 1487})(); 1488(()=> { 1489var __webpack_exports__={}; 1490__webpack_require__.r(__webpack_exports__); 1491(function(){ 1492const section='cs-scroll-top'; 1493const activeClass='is-active'; 1494const offset=200; 1495const scrollToTop=()=> { 1496window.scrollTo({ top: 0, behavior: 'smooth' }); 1497}; 1498const scrollToTopButton=document.querySelector(`.${section}`); 1499if(scrollToTopButton){ 1500const progressPath=scrollToTopButton.querySelector(`.${section}-progress path`); 1501const pathLength=progressPath.getTotalLength(); 1502progressPath.style.transition=progressPath.style.WebkitTransition='none'; 1503progressPath.style.strokeDasharray=`${pathLength} ${pathLength}`; 1504progressPath.style.strokeDashoffset=pathLength; 1505progressPath.getBoundingClientRect(); 1506progressPath.style.transition=progressPath.style.WebkitTransition='stroke-dashoffset 10ms linear'; 1507const updateProgress=function (){ 1508const scroll=window.scrollY||window.scrollTop||document.documentElement.scrollTop; 1509const docHeight=Math.max(document.body.scrollHeight, 1510document.documentElement.scrollHeight, 1511document.body.offsetHeight, 1512document.documentElement.offsetHeight, 1513document.body.clientHeight, 1514document.documentElement.clientHeight 1515); 1516const windowHeight=Math.max(document.documentElement.clientHeight, 1517window.innerHeight||0 1518); 1519const height=docHeight - windowHeight; 1520var progress=pathLength - (scroll * pathLength) / height; 1521progressPath.style.strokeDashoffset=progress; 1522}; 1523updateProgress(); 1524scrollToTopButton.addEventListener('click', scrollToTop); 1525window.addEventListener('scroll', ()=> { 1526updateProgress(); 1527const scrollPos=window.scrollY||window.scrollTop||document.getElementsByTagName('html')[0].scrollTop; 1528if(scrollPos > offset){ 1529scrollToTopButton.classList.add(activeClass); 1530}else{ 1531scrollToTopButton.classList.remove(activeClass); 1532}}); 1533}})(); 1534})(); 1535(()=> { 1536var __webpack_exports__={}; 1537__webpack_require__.r(__webpack_exports__); 1538(function(){ 1539let stickyElementsSmart=[], 1540stickyElements=[]; 1541stickyElementsSmart.push('.cs-navbar-smart-enabled.cs-stick-to-top .cs-single-product .entry-summary', 1542'.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-to-top .cs-sidebar__inner', 1543'.cs-sticky-sidebar-enabled.cs-navbar-smart-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child' 1544); 1545stickyElements.push('.cs-navbar-sticky-enabled.cs-stick-to-top .cs-single-product .entry-summary', 1546'.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-to-top .cs-sidebar__inner', 1547'.cs-sticky-sidebar-enabled.cs-navbar-sticky-enabled.cs-stick-last .cs-sidebar__inner .widget:last-child' 1548); 1549document.addEventListener("DOMContentLoaded", function(){ 1550let headerStick=document.querySelector('.cs-header'), 1551wpAdminBar=document.querySelector('#wpadminbar'), 1552headerStickHeight=headerStick ? headerStick.offsetHeight:0, 1553wpAdminBarHeight=wpAdminBar ? wpAdminBar.offsetHeight:0, 1554headerStretch=document.querySelector('.cs-header-stretch'), 1555headerStretchHeight=headerStretch ? headerStretch.offsetHeight:0, 1556allHeight=headerStickHeight + wpAdminBarHeight + 20, 1557windowWidth=window.innerWidth; 1558if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){ 1559stickyElementsSmart.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner'); 1560stickyElements.push('.cs-sticky-sidebar-enabled.cs-stick-to-bottom .cs-sidebar__inner'); 1561} 1562stickyElementsSmart=stickyElementsSmart.join(','); 1563stickyElements=stickyElements.join(',');
1564document.addEventListener('sticky-nav-visible', function(){ 1565headerStickHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')); 1566allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20; 1567document.querySelectorAll(stickyElementsSmart).forEach(el=> { 1568el.style.top=allHeight + 'px'; 1569}); 1570}); 1571document.addEventListener('sticky-nav-hide', function(){ 1572headerStickHeight=0; 1573allHeight=(headerStickHeight||0) + (wpAdminBarHeight||0) + 20; 1574document.querySelectorAll(stickyElementsSmart).forEach(el=> { 1575el.style.top=allHeight + 'px'; 1576}); 1577}); 1578document.addEventListener('stretch-nav-to-small', function(){ 1579headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-height')); 1580allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20; 1581if(headerStretch&&headerStretch.classList.contains("cs-scroll-sticky")&&!headerStretch.classList.contains("cs-scroll-active")){ 1582document.querySelectorAll(stickyElementsSmart).forEach(el=> { 1583el.style.top=allHeight + 'px'; 1584}); 1585}}); 1586document.addEventListener('stretch-nav-to-big', function(){ 1587headerStretchHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue('--cs-header-initial-height')); 1588}); 1589if(document.body.classList.contains('cs-navbar-smart-enabled')&&windowWidth >=1020){ 1590allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20; 1591document.querySelectorAll(stickyElementsSmart).forEach(el=> { 1592el.style.top=allHeight + 'px'; 1593}); 1594}else if(document.body.classList.contains('cs-navbar-sticky-enabled')&&windowWidth >=1020){ 1595allHeight=(headerStretchHeight||0) + (wpAdminBarHeight||0) + 20; 1596document.querySelectorAll(stickyElements).forEach(el=> { 1597el.style.top=allHeight + 'px'; 1598}); 1599} 1600window.addEventListener('resize', function(){ 1601let windowWidthResize=window.innerWidth; 1602if(windowWidthResize < 1020){ 1603document.querySelectorAll(stickyElements).forEach(el=> { 1604el.removeAttribute('style'); 1605}); 1606document.querySelectorAll(stickyElementsSmart).forEach(el=> { 1607el.removeAttribute('style'); 1608}); 1609}}); 1610}); 1611})(); 1612})(); 1613(()=> { 1614var __webpack_exports__={}; 1615__webpack_require__.r(__webpack_exports__); 1616(function (){ 1617const sectionName='cs-tabs'; 1618const sections=document.querySelectorAll(`.${sectionName}`); 1619if(0===sections.length){ 1620return; 1621} 1622sections.forEach(section=> { 1623const tabs=section.querySelectorAll(`.${sectionName}__tab`); 1624const postAreas=section.querySelectorAll('.cs-posts-area'); 1625tabs.forEach((tab, index)=> { 1626tab.addEventListener('click', function (){ 1627tabs.forEach(t=> { 1628t.classList.remove(`${sectionName}__tab-active`); 1629}); 1630postAreas.forEach(area=> { 1631area.classList.remove('cs-posts-area-active'); 1632}); 1633tab.classList.add(`${sectionName}__tab-active`); 1634postAreas[index].classList.add('cs-posts-area-active'); 1635}); 1636}); 1637}); 1638})(); 1639})(); 1640(()=> { 1641var __webpack_exports__={}; 1642__webpack_require__.r(__webpack_exports__); 1643var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 1644(function (){ 1645var initAPI=false; 1646var process=false; 1647var contex=[]; 1648var players=[]; 1649var attrs=[]; 1650var YTdeferred=new Promise(function (resolve){ 1651window.onYouTubePlayerAPIReady=function (){ 1652resolve(window.YT); 1653};}); 1654function embedYoutubeAPI(){ 1655document.querySelectorAll('.cs-video-inner').forEach(function (el){ 1656if((0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(el)){ 1657var tag=document.createElement('script'); 1658tag.src='https://www.youtube.com/iframe_api'; 1659var firstScriptTag=document.getElementsByTagName('script')[0]; 1660firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 1661initAPI=true; 1662}}); 1663} 1664function rescaleVideoBackground(){ 1665document.querySelectorAll('.cs-video-init').forEach(function (el){ 1666var w=el.parentElement.offsetWidth; 1667var h=el.parentElement.offsetHeight; 1668var hideControl=400; 1669var id=el.getAttribute('data-uid'); 1670if(w / h > 16 / 9){ 1671players[id].setSize(w, w / 16 * 9 + hideControl); 1672}else{ 1673players[id].setSize(h / 9 * 16, h + hideControl); 1674}}); 1675} 1676function initVideoBackground(){ 1677if(document.body.classList.contains('wp-admin')){ 1678return; 1679} 1680if(process){ 1681return; 1682} 1683process=true; 1684if(!initAPI){ 1685var elements=document.querySelectorAll('.cs-video-wrapper[data-vi
1685deo-id]'); 1686if(elements.length){ 1687embedYoutubeAPI(); 1688}} 1689if(!initAPI){ 1690process=false; 1691return; 1692} 1693YTdeferred.then(function (YT){ 1694document.querySelectorAll('.cs-video-inner').forEach(function (el){ 1695var isInit=el.classList.contains('cs-video-init'); 1696var id=null; 1697if(!isInit){ 1698id=Math.random().toString(36).substr(2, 9); 1699}else{ 1700id=el.getAttribute('data-uid'); 1701} 1702contex[id]=el; 1703var isActive=contex[id].classList.contains('active'); 1704var isInView=(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.isInViewport)(contex[id]); 1705if(isInView&&!isInit){ 1706contex[id].classList.add('cs-video-init'); 1707contex[id].setAttribute('data-uid', id); 1708var videoID=contex[id].parentElement.dataset.videoId; 1709var videoStart=contex[id].parentElement.dataset.videoStart; 1710var videoEnd=contex[id].parentElement.dataset.videoEnd; 1711if(typeof videoID==='undefined'||!videoID){ 1712return; 1713} 1714attrs[id]={ 1715'videoId': videoID, 1716'startSeconds': videoStart, 1717'endSeconds': videoEnd, 1718'suggestedQuality': 'hd720' 1719}; 1720players[id]=new YT.Player(contex[id], { 1721playerVars: { 1722autoplay: 0, 1723autohide: 1, 1724modestbranding: 1, 1725rel: 0, 1726showinfo: 0, 1727controls: 0, 1728disablekb: 1, 1729enablejsapi: 0, 1730iv_load_policy: 3, 1731playsinline: 1, 1732loop: 1 1733}, 1734events: { 1735'onReady': function (){ 1736players[id].loadVideoById(attrs[id]); 1737players[id].mute(); 1738}, 1739'onStateChange': function (e){ 1740if(e.data===1){ 1741var parentElement=contex[id].closest('.cs-overlay, .cs-video-wrap'); 1742if(parentElement){ 1743parentElement.classList.add('cs-video-bg-init'); 1744} 1745contex[id].classList.add('active'); 1746}else if(e.data===0){ 1747players[id].seekTo(attrs[id].startSeconds); 1748}} 1749}}); 1750rescaleVideoBackground(); 1751} 1752var parentElement=contex[id].closest('.cs-overlay, .cs-video-wrap'); 1753if(isActive&&isInit&&!parentElement.querySelector('.cs-player-state').classList.contains('cs-player-upause')){ 1754var control=parentElement.querySelector('.cs-player-state'); 1755if(control){ 1756if(isInView&&control.classList.contains('cs-player-play')){ 1757control.classList.remove('cs-player-play'); 1758control.classList.add('cs-player-pause'); 1759players[id].playVideo(); 1760} 1761if(!isInView&&control.classList.contains('cs-player-pause')){ 1762control.classList.remove('cs-player-pause'); 1763control.classList.add('cs-player-play'); 1764players[id].pauseVideo(); 1765}} 1766}}); 1767}); 1768process=false; 1769} 1770document.addEventListener('click', function (event){ 1771if(event.target.classList.contains('cs-player-state')){ 1772var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner'); 1773var id=container.getAttribute('data-uid'); 1774event.target.classList.toggle('cs-player-pause'); 1775event.target.classList.toggle('cs-player-play'); 1776if(event.target.classList.contains('cs-player-pause')){ 1777event.target.classList.remove('cs-player-upause'); 1778players[id].playVideo(); 1779}else{ 1780event.target.classList.add('cs-player-upause'); 1781players[id].pauseVideo(); 1782}} 1783}); 1784document.addEventListener('click', function (event){ 1785if(event.target.classList.contains('cs-player-stop')){ 1786var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner'); 1787var id=container.getAttribute('data-uid'); 1788var stateControl=event.target.nextElementSibling; 1789stateControl.classList.remove('cs-player-pause'); 1790stateControl.classList.add('cs-player-play', 'cs-player-upause'); 1791players[id].pauseVideo(); 1792}}); 1793document.addEventListener('click', function (event){ 1794if(event.target.classList.contains('cs-player-volume')){ 1795var container=event.target.closest('.cs-overlay, .cs-video-wrap').querySelector('.cs-video-inner'); 1796var id=container.getAttribute('data-uid'); 1797event.target.classList.toggle('cs-player-mute'); 1798event.target.classList.toggle('cs-player-unmute'); 1799if(event.target.classList.contains('cs-player-unmute')){ 1800players[id].unMute(); 1801}else{ 1802players[id].mute(); 1803}} 1804}); 1805window.addEventListener('load', initVideoBackground); 1806window.addEventListener('scroll', initVideoBackground); 1807window.addEventListener('resize', initVideoBackground); 1808window.addEventListener('scrollstop', initVideoBackground); 1809document.addEventListener('DOMContentLoaded', function (){ 1810initVideoBackground(); 1811}); 1812document.body.addEventListener('post-load', function (){ 1813initVideoBackground(); 1814});
1815window.addEventListener('resize', rescaleVideoBackground); 1816initVideoBackground(); 1817})(); 1818})(); 1819(()=> { 1820__webpack_require__.r(__webpack_exports__); 1821var _utility_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1); 1822(function (){ 1823HTMLElement.prototype.responsiveNav=function (){ 1824this.classList.remove('menu-item-expanded'); 1825let previousElement=this.previousElementSibling; 1826if(previousElement&&previousElement.classList.contains('submenu-visible')){ 1827previousElement.classList.remove('submenu-visible'); 1828(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(previousElement); 1829this.parentElement.classList.remove('menu-item-expanded'); 1830}else{ 1831let parentOfParent=this.parentElement.parentElement; 1832parentOfParent.querySelectorAll('.menu-item .sub-menu').forEach(subMenu=> { 1833subMenu.classList.remove('submenu-visible'); 1834(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideUp)(subMenu); 1835}); 1836parentOfParent.querySelectorAll('.menu-item-expanded').forEach(item=> { 1837item.classList.remove('menu-item-expanded'); 1838}); 1839if(previousElement){ 1840previousElement.classList.toggle('submenu-visible'); 1841(0,_utility_js__WEBPACK_IMPORTED_MODULE_0__.slideToggle)(previousElement); 1842} 1843this.parentElement.classList.toggle('menu-item-expanded'); 1844}}; 1845document.addEventListener('DOMContentLoaded', function (){ 1846let menuItems=document.querySelectorAll('.widget_nav_menu .menu-item-has-children'); 1847menuItems.forEach(menuItem=> { 1848let span=document.createElement('span'); 1849menuItem.appendChild(span); 1850span.addEventListener('click', function (e){ 1851e.preventDefault(); 1852this.responsiveNav(); 1853}); 1854let anchor=menuItem.children[0]; 1855if(anchor&&anchor.tagName==='A'&&anchor.getAttribute('href')==='#'){ 1856anchor.addEventListener('click', function (e){ 1857e.preventDefault(); 1858this.nextElementSibling.nextElementSibling.responsiveNav(); 1859}); 1860}}); 1861}); 1862})(); 1863})(); 1864})() 1865; 1866var 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={}
vendor: 4,387 bytes, line 1866
1866),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();
vendor: 4,302 bytes, line 1866
1866return 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())}
vendor: 2,880 bytes, line 1866
1866))),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.roun
vendor: 19,416 bytes, line 1866
1866dLengths)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
1866not 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}
vendor: 7,526 bytes, line 1866
1866)),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}});
vendor: 2,139 bytes, line 1866
1866s.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);
vendor: 4,883 bytes, line 1866
1866if(!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(
vendor: 9,371 bytes, line 1866
1866)}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({}
vendor: 4,604 bytes, line 1866
1866,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.forEac
vendor: 3,453 bytes, line 1866
1866h((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).forEac
vendor: 8,163 bytes, line 1866
1866h((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>
vendor: 7,262 bytes, line 1866
18661)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)}
1866))}))};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;
vendor: 9,259 bytes, line 1866
1866d=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}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.