1/*! AASAAM Front Team, Generate at: 2026-08-22T08:01:29.999Z */ 2(function(R,rt){typeof exports=="object"&&typeof module!="undefined"?module.exports=rt():typeof define=="function"&&define.amd?define(rt):(R=typeof globalThis!="undefined"?globalThis:R||self).lightGallery=rt()})(this,(function(){"use strict";var R=function(){return(R=Object.assign||function(c){for(var e,s=1,l=arguments.length;s<l;s++)for(var d in e=arguments[s])Object.prototype.hasOwnProperty.call(e,d)&&(c[d]=e[d]);return c}).apply(this,arguments)},rt="lgAfterAppendSlide",ft="lgInit",Y="lgHasVideo",$="lgContainerResize",it="lgUpdateSlides",z="lgAfterAppendSubHtml",m="lgBeforeOpen",W="lgAfterOpen",nt="lgSlideItemLoad",ot="lgBeforeSlide",Ht="lgAfterSlide",St="lgPosterClick",_t="lgDragStart",Ft="lgDragMove",Zt="lgDragEnd",le="lgBeforeNextSlide",ve="lgBeforePrevSlide",Qt="lgBeforeClose",xt="lgAfterClose",ye={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},te=(function(){function c(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return c.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var s=16*Math.random()|0;return(e=="x"?s:3&s|8).toString(16)}))},c.prototype._getSelector=function(e,s){return s===void 0&&(s=document),typeof e!="string"?e:(s=s||document,e.substring(0,1)==="#"?s.querySelector(e):s.querySelectorAll(e))},c.prototype._each=function(e){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,e):e(this.selector,0),this):this},c.prototype._setCssVendorPrefix=function(e,s,l){var d=s.replace(/-([a-z])/gi,(function(h,p){return p.toUpperCase()}));this.cssVenderPrefixes.indexOf(d)!==-1?(e.style[d.charAt(0).toLowerCase()+d.slice(1)]=l,e.style["webkit"+d]=l,e.style["moz"+d]=l,e.style["ms"+d]=l,e.style["o"+d]=l):e.style[d]=l},c.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},c.prototype.isEventMatched=function(e,s){var l=s.split(".");return e.split(".").filter((function(d){return d})).every((function(d){return l.indexOf(d)!==-1}))},c.prototype.attr=function(e,s){return s===void 0?this.firstElement?this.firstElement.getAttribute(e):"":(this._each((function(l){l.setAttribute(e,s)})),this)},c.prototype.find=function(e){return X(this._getSelector(e,this.selector))},c.prototype.first=function(){return this.selector&&this.selector.length!==void 0?X(this.selector[0]):X(this.selector)},c.prototype.eq=function(e){return X(this.selector[e])},c.prototype.parent=function(){return X(this.selector.parentElement)},c.prototype.get=function(){return this._getFirstEl()},c.prototype.removeAttr=function(e){var s=e.split(" ");
vendor: 5,049 bytes, line 2
2return this._each((function(l){s.forEach((function(d){return l.removeAttribute(d)}))})),this},c.prototype.wrap=function(e){if(!this.firstElement)return this;var s=document.createElement("div");return s.className=e,this.firstElement.parentNode.insertBefore(s,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),s.appendChild(this.firstElement),this},c.prototype.addClass=function(e){return e===void 0&&(e=""),this._each((function(s){e.split(" ").forEach((function(l){l&&s.classList.add(l)}))})),this},c.prototype.removeClass=function(e){return this._each((function(s){e.split(" ").forEach((function(l){l&&s.classList.remove(l)}))})),this},c.prototype.hasClass=function(e){return!!this.firstElement&&this.firstElement.classList.contains(e)},c.prototype.hasAttribute=function(e){return!!this.firstElement&&this.firstElement.hasAttribute(e)},c.prototype.toggleClass=function(e){return this.firstElement?(this.hasClass(e)?this.removeClass(e):this.addClass(e),this):this},c.prototype.css=function(e,s){var l=this;return this._each((function(d){l._setCssVendorPrefix(d,e,s)})),this},c.prototype.on=function(e,s){var l=this;return this.selector?(e.split(" ").forEach((function(d){Array.isArray(c.eventListeners[d])||(c.eventListeners[d]=[]),c.eventListeners[d].push(s),l.selector.addEventListener(d.split(".")[0],s)})),this):this},c.prototype.once=function(e,s){var l=this;return this.on(e,(function(){l.off(e),s(e)})),this},c.prototype.off=function(e){var s=this;return this.selector?(Object.keys(c.eventListeners).forEach((function(l){s.isEventMatched(e,l)&&(c.eventListeners[l].forEach((function(d){s.selector.removeEventListener(l.split(".")[0],d)})),c.eventListeners[l]=[])})),this):this},c.prototype.trigger=function(e,s){if(!this.firstElement)return this;var l=new CustomEvent(e.split(".")[0],{detail:s||null});return this.firstElement.dispatchEvent(l),this},c.prototype.load=function(e){var s=this;return fetch(e).then((function(l){return l.text()})).then((function(l){s.selector.innerHTML=l})),this},c.prototype.html=function(e){return e===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each((function(s){s.innerHTML=e})),this)},c.prototype.append=function(e){return this._each((function(s){typeof e=="string"?s.insertAdjacentHTML("beforeend",e):s.appendChild(e)})),this},c.prototype.prepend=function(e){return this._each((function(s){typeof e=="string"?s.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&s.insertBefore(e.cloneNode(!0),s.firstChild)})),this},c.prototype.remove=function(){return this._each((function(e){e.parentNode.removeChild(e)})),this},c.prototype.empty=function(){return this._each((function(e){e.innerHTML=""})),this},c.prototype.scrollTop=function(e){return e!==void 0?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},c.prototype.scrollLeft=function(e){return e!==void 0?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},c.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),s=X("body").style().marginLeft;return{left:e.left-parseFloat(s)+this.scrollLeft(),top:e.top+this.scrollTop()}},c.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},c.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},c.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},c.eventListeners={},c})();function X(c){return(function(){if(typeof window.CustomEvent=="function")return!1;window.CustomEvent=function(e,s){s=s||{bubbles:!1,cancelable:!1,detail:null};var l=document.createEvent("CustomEvent");return l.initCustomEvent(e,s.bubbles,s.cancelable,s.detail),l}})(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new te(c)}var Mt=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function ee(c){return c==="href"?"src":c=(c=(c=c.replace("data-","")).charAt(0).toLowerCase()+c.slice(1)).replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}var ae=function(c,e,s){fetch(c).then((function(l){return l.text()})).then((function(l){if(s==="append"){var d='<div class="lg-sub-html">'+l+"</div>";e.append(d)}else e.html(l)}))},At=function(c,e,s,l){s===void 0&&(s=0);var d=X(c).attr("data-lg-size")||l;if(d){var h=d.split(",");if(h[1])for(var p=window.innerWidth,E=0;E<h.length;E++){var G=h[E];if(parseInt(G.split("-")[2],10)>p){d=G;break}
2E===h.length-1&&(d=G)}var j=d.split("-"),Z=parseInt(j[0],10),K=parseInt(j[1],10),st=e.width(),Ct=e.height()-s,dt=Math.min(st,Z),pt=Math.min(Ct,K),It=Math.min(dt/Z,pt/K);return{width:Z*It,height:K*It}}},be=function(c,e,s,l,d){if(d){var h=X(c).find("img").first();if(h.get()){var p=e.get().getBoundingClientRect(),E=p.width,G=e.height()-(s+l),j=h.width(),Z=h.height(),K=h.style(),st=(E-j)/2-h.offset().left+(parseFloat(K.paddingLeft)||0)+(parseFloat(K.borderLeft)||0)+X(window).scrollLeft()+p.left,Ct=(G-Z)/2-h.offset().top+(parseFloat(K.paddingTop)||0)+(parseFloat(K.borderTop)||0)+X(window).scrollTop()+s;return"translate3d("+(st*=-1)+"px, "+(Ct*=-1)+"px, 0) scale3d("+j/d.width+", "+Z/d.height+", 1)"}}},ie=function(c,e,s,l,d,h){return'<div class="lg-media-cont lg-has-iframe" style="width:'+c+"; max-width:"+s+"; height: "+e+"; max-height:"+l+`"> 3 <iframe class="lg-object" frameborder="0" `+(h?'title="'+h+'"':"")+' src="'+d+`" allowfullscreen="true"></iframe> 4 </div>`},jt=function(c,e,s,l,d,h){var p="<img "+s+" "+(l?'srcset="'+l+'"':"")+" "+(d?'sizes="'+d+'"':"")+' class="lg-object lg-image" data-index="'+c+'" src="'+e+'" />',E="";return h&&(E=(typeof h=="string"?JSON.parse(h):h).map((function(G){var j="";return Object.keys(G).forEach((function(Z){j+=" "+Z+'="'+G[Z]+'"'})),"<source "+j+"></source>"}))),""+E+p},Nt=function(c){for(var e=[],s=[],l="",d=0;d<c.length;d++){var h=c[d].split(" ");h[0]===""&&h.splice(0,1),s.push(h[0]),e.push(h[1])}for(var p=window.innerWidth,E=0;E<e.length;E++)if(parseInt(e[E],10)>p){l=s[E];break}return l},ne=function(c){return!!c&&!!c.complete&&c.naturalWidth!==0},Bt=function(c,e,s,l,d){var h="";h=d&&d.youtube?"lg-has-youtube":d&&d.vimeo?"lg-has-vimeo":"lg-has-html5";var p=e;return typeof e!="string"&&(p=e.outerHTML),'<div class="lg-video-cont '+h+'" style="'+s+`"> 5 <div class="lg-video-play-button"> 6 <svg
7 viewBox="0 0 20 20" 8 preserveAspectRatio="xMidYMid" 9 focusable="false" 10 aria-labelledby="`+l+`" 11 role="img" 12 class="lg-video-play-icon" 13 > 14 <title>`+l+`</title> 15 <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon> 16 </svg> 17 <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false"> 18 <circle cx="50%" cy="50%" r="20"></circle></svg> 19 <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false"> 20 <circle cx="50%" cy="50%" r="20"></circle> 21 </svg> 22 </div> 23 `+p+` 24 <img class="lg-object lg-video-poster" src="`+c+`" /> 25 </div>`},Le=function(c){var e=c.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(e,(function(s){var l=window.getComputedStyle(s);return l.display!=="none"&&l.visibility!=="hidden"}))},Pt=function(c,e,s,l){var d=[],h=(function(){for(var p=0,E=0,G=arguments.length;E<G;E++)p+=arguments[E].length;var j=Array(p),Z=0;for(E=0;E<G;E++)for(var K=arguments[E],st=0,Ct=K.length;st<Ct;st++,Z++)j[Z]=K[st];return j})(Mt,e);return[].forEach.call(c,(function(p){for(var E={},G=0;G<p.attributes.length;G++){var j=p.attributes[G];if(j.specified){var Z=ee(j.name),K="";h.indexOf(Z)>-1&&(K=Z),K&&(E[K]=j.value)}}var st=X(p),Ct=st.find("img").first().attr("alt"),dt=st.attr("title"),pt=l?st.attr(l):st.find("img").first().attr("src");E.thumb=pt,s&&!E.subHtml&&(E.subHtml=dt||Ct||""),E.alt=Ct||dt||"",d.push(E)})),d},J=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},Vt=function(c,e,s){if(!c)return e?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(s+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var l=c.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),d=c.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),h=c.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return l?{youtube:l}:d?{vimeo:d}:h?{wistia:h}:void 0},wt=0,se=(function(){function c(e,s){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(wt++,this.lgId=wt,this.el=e,this.LGel=X(e),this.generateSettings(s),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return c.prototype.generateSettings=function(e){if(this.settings=R(R({},ye),e),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():J()){var s=R(R({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=R(R({},this.settings),s)}},c.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if(typeof e=="function")this.settings.container=e();else if(typeof e=="string"){var s=document.querySelector(e);this.settings.container=s!=null?s:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},c.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(ft,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout((function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()}),50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},c.prototype.openGalleryOnItemClick=function(){for(var e=this,s=function(h){var p=l.items[h],E=X(p),G=te.generateUUID();E.attr("data-lg-id",G).on("click.lgcustom-item-"+G,(function(j){j.preventDefault();var Z=e.settings.index||h;e.openGallery(Z,p)}))},l=this,d=0;d<this.items.length;d++)s(d)},c.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach((function(s){e.plugins.push(new s(e,X))}))},c.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not val
25id for production use"):console.error("Please provide a valid license key")},c.prototype.getSlideItem=function(e){return X(this.getSlideItemId(e))},c.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},c.prototype.getIdName=function(e){return e+"-"+this.lgId},c.prototype.getElementById=function(e){return X("#"+this.getIdName(e))},c.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},c.prototype.buildStructure=function(){var e=this;if(!(this.$container&&this.$container.get())){var s="",l="";this.settings.controls&&(s='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button> 26 <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(l='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var d="";this.settings.allowMediaOverlap&&(d+="lg-media-overlap ");var h=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",p=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",E="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),G=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",j=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",Z=` 27 <div class="`+E+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+h+" "+p+` role="dialog" 28 > 29 <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div> 30 31 <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+d+` "> 32 33 <div id="`+this.getIdName("lg-content")+`" class="lg-content"> 34 <div id="`+this.getIdName("lg-inner")+`" class="lg-inner"> 35 </div> 36 `+s+` 37 </div> 38 <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group"> 39 `+j+` 40 `+G+` 41 </div> 42 `+(this.settings.appendSubHtmlTo===".lg-outer"?l:"")+` 43 <div id="`+this.getIdName("lg-components")+`" class="lg-components"> 44 `+(this.settings.appendSubHtmlTo===".lg-sub-html"?l:"")+` 45 </div> 46 </div> 47 </div> 48 `;X(this.settings.container).append(Z),document.body!==this.settings.container&&X(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var K=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(K+="lg-grab "),this.outer.addClass(K),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),X(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,(function(){e.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},c.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,l=s.top,d=s.bottom;if(this.currentImageSize=At(this.items[this.index],this.outer,l+d,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var h=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",h)}this.LGel.trigger($)}},c.prototype.resizeVideoSlide=function(e,s){var l=this.getVideoContStyle(s);
vendor: 27,480 bytes, lines 48-54
48this.getSlideItem(e).find(".lg-video-cont").attr("style",l)},c.prototype.updateSlides=function(e,s){if(this.index>e.length-1&&(this.index=e.length-1),e.length===1&&(this.index=0),e.length){var l=this.galleryItems[s].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var d=0;this.galleryItems.some((function(h,p){return h.src===l&&(d=p,!0)})),this.currentItemsInDom=this.organizeSlideItems(d,-1),this.loadContent(d,!0),this.getSlideItem(d).addClass("lg-current"),this.index=d,this.updateCurrentCounter(d),this.LGel.trigger(it)}else this.closeGallery()},c.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var e=X(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return Pt(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},c.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},c.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(X("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),s=window.innerWidth-e.width;X(document.body).css("padding-right",s+this.bodyPaddingRight+"px"),X(document.body).addClass("lg-overlay-open")}},c.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(X(document.body).css("padding-right",this.bodyPaddingRight+"px"),X(document.body).removeClass("lg-overlay-open"))},c.prototype.openGallery=function(e,s){var l=this;if(e===void 0&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var d=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=d;var h="";d.forEach((function(st){h=h+'<div id="'+st+'" class="lg-item"></div>'})),this.$inner.append(h),this.addHtml(e);var p="";this.mediaContainerPosition=this.getMediaContainerPosition();var E=this.mediaContainerPosition,G=E.top,j=E.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(G,j);var Z=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&s&&(this.currentImageSize=At(s,this.outer,G+j,Z&&this.settings.videoMaxSize),p=be(s,this.outer,G,j,this.currentImageSize)),this.zoomFromOrigin&&p||(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var K=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){l.outer.addClass("lg-components-open")}),K),this.index=e,this.LGel.trigger(m),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=X(window).scrollTop(),setTimeout((function(){if(l.zoomFromOrigin&&p){var st=l.getSlideItem(e);st.css("transform",p),setTimeout((function(){st.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",l.settings.startAnimationDuration+"ms"),l.outer.addClass("lg-zoom-from-image")})),setTimeout((function(){st.css("transform","translate3d(0, 0, 0)")}),100)}setTimeout((function(){l.$backdrop.addClass("in"),l.$container.addClass("lg-show-in")}),10),setTimeout((function(){l.settings.trapFocus&&document.body===l.settings.container&&l.trapFocus()}),l.settings.backdropDuration+50),l.zoomFromOrigin&&p||setTimeout((function(){l.outer.addClass("lg-visible")}),l.settings.backdropDuration),l.slide(e,!1,!1,!1),l.LGel.trigger(W)})),document.body===this.settings.container&&X("html").addClass("lg-on")}},c.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,s=this.outer.find(".lg-components .lg-sub-html").get(),l=this.settings.defaultCaptionHeight||s&&s.clientHeight||0,d=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(d?d.clientHeight:0)+l}},c.prototype.setMediaContainerPosition=function(e,s){e===void 0&&(e=0),s===void 0&&(s=0),this.$content.css("top",e+"px").css("bottom",s+"px")},c.prototype.hideBars=function(){var e=this;setTimeout((function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>0&&(e.outer.on("mousemove.lg click.lg touchstart.lg",(function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout((function(){e.outer.addClass("lg-hide-items")}),e.settings.hideBarsDelay)})),e.outer.trigger("mousemove.lg"))}),this.settings.showBarsAfter)},c.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(s){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},c.prototype.counter=function(){if(this.settings.counter){var e=`<div class="lg-counter" role="status" aria-live="polite"> 49 <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> / 50 <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},c.prototype.addHtml=function(e){var s,l;if(this.galleryItems[e].subHtmlUrl?l=this.galleryItems[e].subHtmlUrl:s=this.galleryItems[e].subHtml,!l)if(s){var d=s.substring(0,1);if(d==="."||d==="#")try{s=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?X(this.items).eq(e).find(s).first().html():X(s).first().html()}catch(p){console.warn('Error processing subHtml selector "'+s+'"'),s=""}}else s="";if(this.settings.appendSubHtmlTo!==".lg-item")l?ae(l,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(s);else{var h=X(this.getSlideItemId(e));l?ae(l,h,"append"):h.append('<div class="lg-sub-html">'+s+"</div>")}s!=null&&(s===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(z,{index:e})},c.prototype.preload=function(e){for(var s=1;s<=this.settings.preload&&!(s>=this.galleryItems.length-e);s++)this.loadContent(e+s,!1);for(var l=1;l<=this.settings.preload&&!(e-l<0);l++)this.loadContent(e-l,!1)},c.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+`px; 51 margin-left: -`+e.width/2+`px; 52 margin-top: -`+e.height/2+`px; 53 height:`+e.height+"px":""},c.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+`px; 54 height:`+e.height+"px":""},c.prototype.getDummyImageContent=function(e,s,l){var d;if(this.settings.dynamic||(d=X(this.items).eq(s)),d){var h=void 0;if(!(h=this.settings.exThumbImage?d.attr(this.settings.exThumbImage):d.find("img").first().attr("src")))return"";var p=this.getDummyImgStyles(this.currentImageSize),E=document.createElement("img");return E.alt=l||"",E.src=h,E.className="lg-dummy-img",E.style.cssText=p,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),E}return""},c.prototype.setImgMarkup=function(e,s,l){var d=this.galleryItems[l],h=d.alt,p=d.srcset,E=d.sizes,G=d.sources,j="",Z=h?'alt="'+h+'"':"";j=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(s,l,Z):jt(l,e,Z,p,E,G);var K=document.createElement("picture");K.className="lg-img-wrap",X(K).append(j),s.prepend(K)},c.prototype.onSlideObjectLoad=function(e,s,l,d){var h=e.find(".lg-object").first();ne(h.get())||s?l():(h.on("load.lg error.lg",(function(){l&&l()})),h.on("error.lg",(function(){d&&d()})))},c.prototype.onLgObjectLoad=function(e,s,l,d,h,p){var E=this;this.onSlideObjectLoad(e,p,(function(){E.triggerSlideItemLoad(e,s,l,d,h)}),(function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+E.settings.strings.mediaLoadingFailed+"</span>")}))},c.prototype.triggerSlideItemLoad=function(e,s,l,d,h){var p=this,E=this.galleryItems[s],G=h&&this.getSlideType(E)==="video"&&!E.poster?d:0;setTimeout((function(){e.addClass("lg-complete lg-complete_"),p.LGel.trigger(nt,{index:s,delay:l||0,isFirstSlide:h})}),G)},c.prototype.isFirstSlideWithZoomAnimation=function(){return!(this.lGalleryOn||!this.zoomFromOrigin||!this.currentImageSize)},c.prototype.addSlideVideoInfo=function(e){var s=this;e.forEach((function(l,d){l.__slideVideoInfo=Vt(l.src,!!l.video,d),l.__slideVideoInfo&&s.settings.loadYouTubePoster&&!l.poster&&l.__slideVideoInfo.youtube&&(l.poster="//img.youtube.com/vi/"+l.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")}))},c.prototype.loadContent=function(e,s){var l=this,d=this.galleryItems[e],h=X(this.getSlideItemId(e)),p=d.poster,E=d.srcset,G=d.sizes,j=d.sources,Z=d.src,K=d.video,st=K&&typeof K=="string"?JSON.parse(K):K;if(d.responsive){var Ct=d.responsive.split(",");Z=Nt(Ct)||Z}var dt=d.__slideVideoInfo,pt="",It=!!d.iframe,Dt=!this.lGalleryOn,Gt=0;if(Dt&&(Gt=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!h.hasClass("lg-loaded")){if(dt){var bt=this.mediaContainerPosition,De=bt.top,ue=bt.bottom,Yt=At(this.items[e],this.outer,De+ue,dt&&this.settings.videoMaxSize);pt=this.getVideoContStyle(Yt)}if(It){var Wt=ie(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,Z,d.iframeTitle);h.prepend(Wt)}else if(p){var de="";Dt&&this.zoomFromOrigin&&this.currentImageSize&&(de=this.getDummyImageContent(h,e,"")),Wt=Bt(p,de||"",pt,this.settings.strings.playVideo,dt),h.prepend(Wt)}else if(dt)Wt='<div class="lg-video-cont " style="'+pt+'"></div>',h.prepend(Wt);else if(this.setImgMarkup(Z,h,e),E||j){var Ce=h.find(".lg-object");this.initPictureFill(Ce)}(p||dt)&&this.LGel.trigger(Y,{index:e,src:Z,html5Video:st,hasPoster:!!p}),this.LGel.trigger(rt,{index:e}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(e)}var Ut=0;Gt&&!X(document.body).hasClass("lg-from-hash")&&(Ut=Gt),this.isFirstSlideWithZoomAnimation()&&(setTimeout((function(){h.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")}),this.settings.startAnimationDuration+100),h.hasClass("lg-loaded")||setTimeout((function(){if(l.getSlideType(d)==="image"){var Te=d.alt,$t=Te?'alt="'+Te+'"':"";if(h.find(".lg-img-wrap").append(jt(e,Z,$t,E,G,d.sources)),E||j){var Xt=h.find(".lg-object");l.initPictureFill(Xt)}}(l.getSlideType(d)==="image"||l.getSlideType(d)==="video"&&p)&&(l.onLgObjectLoad(h,e,Gt,Ut,!0,!1),l.onSlideObjectLoad(h,!(!dt||!dt.html5||p),(function(){l.loadContentOnFirstSlideLoad(e,h,Ut)}),(function(){l.loadContentOnFirstSlideLoad(e,h,Ut)})))}),this.settings.startAnimationDuration+100)),h.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&(this.getSlideType(d)!=="video"||p)||this.onLgObjectLoad(h,e,Gt,Ut,Dt,!(!dt||!dt.html5||p)),this.zoomFromOrigin&&this.currentImageSize||!h.hasClass("lg-complete_")||this.lGalleryOn||setTimeout((function(){h.addClass("lg-complete")}),this.settings.backdropDuration),this.lGalleryOn=!0,s===!0&&(h.hasClass("lg-complete_")?this.preload(e):h.find(".lg-object").first().on("load.lg error.lg",(function(){l.preload(e)})))},c.prototype.loadContentOnFirstSlideLoad=function(e,s,l){var d=this;setTimeout((function(){s.find(".lg-dummy-img").remove(),s.removeClass("lg-first-slide"),d.outer.removeClass("lg-first-slide-loading"),d.isDummyImageRemoved=!0,d.preload(e)}),l+300)},c.prototype.getItemsToBeInsertedToDom=function(e,s,l){var d=this;l===void 0&&(l=0);var h=[],p=Math.max(l,3);p=Math.min(p,this.galleryItems.length);var E="lg-item-"+this.lgId+"-"+s;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(Z,K){h.push("lg-item-"+d.lgId+"-"+K)})),h;if(e<(this.galleryItems.length-1)/2){for(var G=e;G>e-p/2&&G>=0;G--)h.push("lg-item-"+this.lgId+"-"+G);var j=h.length;for(G=0;G<p-j;G++)h.push("lg-item-"+this.lgId+"-"+(e+G+1))}else{for(G=e;G<=this.galleryItems.length-1&&G<e+p/2;G++)h.push("lg-item-"+this.lgId+"-"+G);for(j=h.length,G=0;G<p-j;G++)h.push("lg-item-"+this.lgId+"-"+(e-G-1))}return this.settings.loop&&(e===this.galleryItems.length-1?h.push("lg-item-"+this.lgId+"-0"):e===0&&h.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),h.indexOf(E)===-1&&h.push("lg-item-"+this.lgId+"-"+s),h},c.prototype.organizeSlideItems=function(e,s){var l=this,d=this.getItemsToBeInsertedToDom(e,s,this.settings.numberOfSlideItemsInDom);return d.forEach((function(h){l.currentItemsInDom.indexOf(h)===-1&&l.$inner.append('<div id="'+h+'" class="lg-item"></div>')})),this.currentItemsInDom.forEach((function(h){d.indexOf(h)===-1&&X("#"+h).remove()})),d},c.prototype.getPreviousSlideIndex=function(){var e=0;try{var s=this.outer.find(".lg-current").first().attr("id");e=parseInt(s.split("-")[3])||0}catch(l){e=0}return e},c.prototype.setDownloadValue=function(e){if(this.settings.download){var s=this.galleryItems[e];if(s.downloadUrl===!1||s.downloadUrl==="false")this.outer.addClass("lg-hide-download");else{var l=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),l.attr("href",s.downloadUrl||s.src),s.download&&l.attr("download",s.download)}}},c.prototype.makeSlideAnimation=function(e,s,l){var d=this;this.lGalleryOn&&l.addClass("lg-slide-progress"),setTimeout((function(){d.outer.addClass("lg-no-trans"),d.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),e==="prev"?(s.addClass("lg-prev-slide"),l.addClass("lg-next-slide")):(s.addClass("lg-next-slide"),l.addClass("lg-prev-slide")),setTimeout((function(){d.outer.find(".lg-item").removeClass("lg-current"),s.addClass("lg-current"),d.outer.removeClass("lg-no-trans")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},c.prototype.slide=function(e,s,l,d){var h=this,p=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,p),!this.lGalleryOn||p!==e){var E=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var G=this.getSlideItem(e),j=this.getSlideItem(p),Z=this.galleryItems[e],K=Z.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(Z)),this.setDownloadValue(e),K){var st=this.mediaContainerPosition,Ct=st.top,dt=st.bottom,pt=At(this.items[e],this.outer,Ct+dt,K&&this.settings.videoMaxSize);this.resizeVideoSlide(e,pt)}if(this.LGel.trigger(ot,{prevIndex:p,index:e,fromTouch:!!s,fromThumb:!!l}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),d||(e<p?d="prev":e>p&&(d="next")),s){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var It=void 0,Dt=void 0;E>2?(It=e-1,Dt=e+1,(e===0&&p===E-1||e===E-1&&p===0)&&(Dt=0,It=E-1)):(It=0,Dt=1),d==="prev"?this.getSlideItem(Dt).addClass("lg-next-slide"):this.getSlideItem(It).addClass("lg-prev-slide"),G.addClass("lg-current")}else this.makeSlideAnimation(d,G,j);this.lGalleryOn?setTimeout((function(){h.loadContent(e,!0),h.settings.appendSubHtmlTo!==".lg-item"&&h.addHtml(e)}),this.settings.speed+50+(s?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout((function(){h.lgBusy=!1,j.removeClass("lg-slide-progress"),h.LGel.trigger(Ht,{prevIndex:p,index:e,fromTouch:s,fromThumb:l})}),(this.lGalleryOn?this.settings.speed+100:100)+(s?0:this.settings.slideDelay))}this.index=e}},c.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},c.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},c.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},c.prototype.touchMove=function(e,s,l){var d=s.pageX-e.pageX,h=s.pageY-e.pageY,p=!1;if(this.swipeDirection?p=!0:Math.abs(d)>15?(this.swipeDirection="horizontal",p=!0):Math.abs(h)>15&&(this.swipeDirection="vertical",p=!0),p){var E=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){l==null||l.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(E,d,0);var G=E.get().offsetWidth,j=15*G/100-Math.abs(10*d/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-G+d-j,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),G+d+j,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){l==null||l.preventDefault(),this.$container.addClass("lg-dragging-vertical");var Z=1-Math.abs(h)/window.innerHeight;this.$backdrop.css("opacity",Z);var K=1-Math.abs(h)/(2*window.innerWidth);this.setTranslate(E,0,h,K,K),Math.abs(h)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},c.prototype.touchEnd=function(e,s,l){var d,h=this;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout((function(){h.$container.removeClass("lg-dragging-vertical"),h.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var p=!0;if(h.swipeDirection==="horizontal"){d=e.pageX-s.pageX;var E=Math.abs(e.pageX-s.pageX);d<0&&E>h.settings.swipeThreshold?(h.goToNextSlide(!0),p=!1):d>0&&E>h.settings.swipeThreshold&&(h.goToPrevSlide(!0),p=!1)}else if(h.swipeDirection==="vertical"){if(d=Math.abs(e.pageY-s.pageY),h.settings.closable&&h.settings.swipeToClose&&d>100)return void h.closeGallery();h.$backdrop.css("opacity",1)}if(h.outer.find(".lg-item").removeAttr("style"),p&&Math.abs(e.pageX-s.pageX)<5){var G=X(l.target);h.isPosterElement(G)&&h.LGel.trigger(St)}h.swipeDirection=void 0})),setTimeout((function(){h.outer.hasClass("lg-dragging")||h.settings.mode==="lg-slide"||h.outer.removeClass("lg-slide")}),this.settings.speed+100)},c.prototype.enableSwipe=function(){var e=this,s={},l={},d=!1,h=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",(function(p){e.dragOrSwipeEnabled=!0;var E=e.getSlideItem(e.index);!X(p.target).hasClass("lg-item")&&!E.get().contains(p.target)||e.outer.hasClass("lg-zoomed")||e.lgBusy||p.touches.length!==1||(h=!0,e.touchAction="swipe",e.manageSwipeClass(),s={pageX:p.touches[0].pageX,pageY:p.touches[0].pageY})})),this.$inner.on("touchmove.lg",(function(p){h&&e.touchAction==="swipe"&&p.touches.length===1&&(l={pageX:p.touches[0].pageX,pageY:p.touches[0].pageY},e.touchMove(s,l,p),d=!0)})),this.$inner.on("touchend.lg",(function(p){if(e.touchAction==="swipe"){if(d)d=!1,e.touchEnd(l,s,p);else if(h){var E=X(p.target);e.isPosterElement(E)&&e.LGel.trigger(St)}e.touchAction=void 0,h=!1}})))},c.prototype.enableDrag=function(){var e=this,s={},l={},d=!1,h=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",(function(p){e.dragOrSwipeEnabled=!0;var E=e.getSlideItem(e.index);(X(p.target).hasClass("lg-item")||E.get().contains(p.target))&&(e.outer.hasClass("lg-zoomed")||e.lgBusy||(p.preventDefault(),e.lgBusy||(e.manageSwipeClass(),s={pageX:p.pageX,pageY:p.pageY},d=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(_t))))})),X(window).on("mousemove.lg.global"+this.lgId,(function(p){d&&e.lgOpened&&(h=!0,l={pageX:p.pageX,pageY:p.pageY},e.touchMove(s,l),e.LGel.trigger(Ft))})),X(window).on("mouseup.lg.global"+this.lgId,(function(p){if(e.lgOpened){var E=X(p.target);h?(h=!1,e.touchEnd(l,s,p),e.LGel.trigger(Zt)):e.isPosterElement(E)&&e.LGel.trigger(St),d&&(d=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}})))},c.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",(function(s){!e.dragOrSwipeEnabled&&e.isPosterElement(X(s.target))&&e.LGel.trigger(St)}))},c.prototype.manageSwipeClass=function(){var e=this.index+1,s=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?s=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),s>-1&&this.getSlideItem(s).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},c.prototype.goToNextSlide=function(e){var s=this,l=this.settings.loop;e&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(le,{index:this.index}),this.slide(this.index,!!e,!1,"next")):l?(this.index=0,this.LGel.trigger(le,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout((function(){s.outer.removeClass("lg-right-end")}),400)))},c.prototype.goToPrevSlide=function(e){var s=this,l=this.settings.loop;e&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(ve,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):l?(this.index=this.galleryItems.length-1,this.LGel.trigger(ve,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout((function(){s.outer.removeClass("lg-left-end")}),400)))},c.prototype.keyPress=function(){var e=this;X(window).on("keydown.lg.global"+this.lgId,(function(s){e.lgOpened&&e.settings.escKey===!0&&s.keyCode===27&&(s.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(s.keyCode===37&&(s.preventDefault(),e.goToPrevSlide()),s.keyCode===39&&(s.preventDefault(),e.goToNextSlide()))}))},c.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",(function(){e.goToPrevSlide()})),this.getElementById("lg-next").on("click.lg",(function(){e.goToNextSlide()}))},c.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var s=this.getElementById("lg-prev"),l=this.getElementById("lg-next");e+1===this.galleryItems.length?l.attr("disabled","disabled").addClass("disabled"):l.removeAttr("disabled").removeClass("disabled"),e===0?s.attr("disabled","disabled").addClass("disabled"):s.removeAttr("disabled").removeClass("disabled")}},c.prototype.setTranslate=function(e,s,l,d,h){d===void 0&&(d=1),h===void 0&&(h=1),e.css("transform","translate3d("+s+"px, "+l+"px, 0px) scale3d("+d+", "+h+", 1)")},c.prototype.mousewheel=function(){var e=this,s=0;this.outer.on("wheel.lg",(function(l){if(l.deltaY&&!(e.galleryItems.length<2)){l.preventDefault();var d=new Date().getTime();d-s<1e3||(s=d,l.deltaY>0?e.goToNextSlide():l.deltaY<0&&e.goToPrevSlide())}}))},c.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},c.prototype.isPosterElement=function(e){var s=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||s&&s.contains(e.get())},c.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",(function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()}))},c.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var s=X(this.items[e]);s.off("click.lgcustom-item-"+s.attr("data-lg-id"))}},c.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),X(window).on("keydown.lg.global"+this.lgId,(function(s){if(e.lgOpened&&(s.key==="Tab"||s.keyCode===9)){var l=Le(e.$container.get()),d=l[0],h=l[l.length-1];s.shiftKey?document.activeElement===d&&(h.focus(),s.preventDefault()):document.activeElement===h&&(d.focus(),s.preventDefault())}}))},c.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var s=!1;this.getElementById("lg-close").on("click.lg",(function(){e.closeGallery()})),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",(function(l){var d=X(l.target);s=!!e.isSlideElement(d)})),this.outer.on("mousemove.lg",(function(){s=!1})),this.outer.on("mouseup.lg",(function(l){var d=X(l.target);e.isSlideElement(d)&&s&&(e.outer.hasClass("lg-dragging")||e.closeGallery())})))}},c.prototype.closeGallery=function(e){var s=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(Qt),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&X(window).scrollTop(this.prevScrollTop);var l,d=this.items[this.index];if(this.zoomFromOrigin&&d){var h=this.mediaContainerPosition,p=h.top,E=h.bottom,G=this.galleryItems[this.index],j=G.__slideVideoInfo,Z=G.poster,K=At(d,this.outer,p+E,j&&Z&&this.settings.videoMaxSize);l=be(d,this.outer,p,E,K)}this.zoomFromOrigin&&l?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",l)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,X("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var st=this.zoomFromOrigin&&l?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout((function(){s.zoomFromOrigin&&l&&s.outer.removeClass("lg-zoom-from-image"),s.$container.removeClass("lg-show"),s.resetScrollBar(),s.$backdrop.removeAttr("style").css("transition-duration",s.settings.backdropDuration+"ms"),s.outer.removeClass("lg-closing "+s.settings.startClass),s.getSlideItem(s.index).removeClass("lg-start-end-progress"),s.$inner.empty(),s.lgOpened&&s.LGel.trigger(xt,{instance:s}),s.$container.get()&&s.$container.get().blur(),s.lgOpened=!1}),st+100),st+100},c.prototype.initModules=function(){this.plugins.forEach((function(e){try{e.init()}catch(s){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}}))},c.prototype.destroyModules=function(e){this.plugins.forEach((function(s){try{e?s.destroy():s.closeGallery&&s.closeGallery()}catch(l){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}}))},c.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),this.galleryItems=e||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(it)},c.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},c.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),X(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},c.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},c})();return function(c,e){return new se(c,e)}}));(function(R,rt){typeof exports=="object"&&typeof module!="undefined"?module.exports=rt():typeof define=="function"&&define.amd?define(rt):(R=typeof globalThis!="undefined"?globalThis:R||self).lgThumbnail=rt()})(this,(function(){"use strict";var R=function(){return(R=Object.assign||function(z){for(var m,W=1,nt=arguments.length;W<nt;W++)for(var ot in m=arguments[W])Object.prototype.hasOwnProperty.call(m,ot)&&(z[ot]=m[ot]);return z}).apply(this,arguments)},rt={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 6,556 bytes, lines 54-57
54ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},ft="lgContainerResize",Y="lgUpdateSlides",$="lgBeforeOpen",it="lgBeforeSlide";return(function(){function z(m,W){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=m,this.$LG=W,this}return z.prototype.init=function(){this.settings=R(R({},rt),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},z.prototype.build=function(){var m=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",(function(W){var nt=m.$LG(W.target);nt.hasAttribute("data-lg-item-id")&&setTimeout((function(){if(m.thumbClickable&&!m.core.lgBusy){var ot=parseInt(nt.attr("data-lg-item-id"));m.core.slide(ot,!1,!0,!1)}}),50)})),this.core.LGel.on(it+".thumb",(function(W){var nt=W.detail.index;m.animateThumb(nt)})),this.core.LGel.on($+".thumb",(function(){m.thumbOuterWidth=m.core.outer.get().offsetWidth})),this.core.LGel.on(Y+".thumb",(function(){m.rebuildThumbnails()})),this.core.LGel.on(ft+".thumb",(function(){m.core.lgOpened&&setTimeout((function(){m.thumbOuterWidth=m.core.outer.get().offsetWidth,m.animateThumb(m.core.index),m.thumbOuterWidth=m.core.outer.get().offsetWidth}),50)}))},z.prototype.setThumbMarkup=function(){var m="lg-thumb-outer ";this.settings.alignThumbnails&&(m+="lg-thumb-align-"+this.settings.alignThumbnails);var W='<div class="'+m+`"> 55 <div class="lg-thumb lg-group"> 56 </div> 57 </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(W):this.core.outer.append(W),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},z.prototype.enableThumbDrag=function(){var m=this,W={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},nt=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",(function(ot){m.thumbTotalWidth>m.thumbOuterWidth&&(ot.preventDefault(),W.cords.startX=ot.pageX,W.startTime=new Date,m.thumbClickable=!1,nt=!0,m.core.outer.get().scrollLeft+=1,m.core.outer.get().scrollLeft-=1,m.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))})),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,(function(ot){m.core.lgOpened&&nt&&(W.cords.endX=ot.pageX,W=m.onThumbTouchMove(W))})),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,(function(){m.core.lgOpened&&(W.isMoved?W=m.onThumbTouchEnd(W):m.thumbClickable=!0,nt&&(nt=!1,m.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))}))},z.prototype.enableThumbSwipe=function(){var m=this,W={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",(function(nt){m.thumbTotalWidth>m.thumbOuterWidth&&(nt.preventDefault(),W.cords.startX=nt.targetTouches[0].pageX,m.thumbClickable=!1,W.startTime=new Date)})),this.$lgThumb.on("touchmove.lg",(function(nt){m.thumbTotalWidth>m.thumbOuterWidth&&(nt.preventDefault(),W.cords.endX=nt.targetTouches[0].pageX,W=m.onThumbTouchMove(W))})),this.$lgThumb.on("touchend.lg",(function(){W.isMoved?W=m.onThumbTouchEnd(W):m.thumbClickable=!0}))},z.prototype.rebuildThumbnails=function(){var m=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout((function(){m.thumbTotalWidth=m.core.galleryItems.length*(m.settings.thumbWidth+m.settings.thumbMargin),m.$lgThumb.css("width",m.thumbTotalWidth+"px"),m.$lgThumb.empty(),m.setThumbItemHtml(m.core.galleryItems),m.animateThumb(m.core.index)}),50),setTimeout((function(){m.$thumbOuter.removeClass("lg-rebuilding-thumbnails")}),200)},z.prototype.setTranslate=function(m){this.$lgThumb.css("transform","translate3d(-"+m+"px, 0px, 0px)")},z.prototype.getPossibleTransformX=function(m){return m>this.thumbTotalWidth-this.thumbOuterWidth&&(m=this.thumbTotalWidth-this.thumbOuterWidth),m<0&&(m=0),m},z.prototype.animateThumb=function(m){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var W=0;switch(this.settings.currentPagerPosition){case"left":W=0;break;case"middle":W=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":W=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*m-1-W,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},z.prototype.onThumbTouchMove=function(m){return m.newTranslateX=this.translateX,m.isMoved=!0,m.touchMoveTime=new Date().valueOf(),m.newTranslateX-=m.cords.endX-m.cords.startX,m.newTranslateX=this.getPossibleTransformX(m.newTranslateX),this.setTranslate(m.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),m},z.prototype.onThumbTouchEnd=function(m){m.isMoved=!1,m.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var W=m.endTime.valueOf()-m.startTime.valueOf(),nt=m.cords.endX-m.cords.startX,ot=Math.abs(nt)/W;return ot>.15&&m.endTime.valueOf()-m.touchMoveTime<30?((ot+=1)>2&&(ot+=1),ot+=ot*(Math.abs(nt)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(ot-1,2)+"settings"),nt*=ot,this.translateX=this.getPossibleTransformX(this.translateX-nt),this.setTranslate(this.translateX)):this.translateX=m.newTranslateX,Math.abs(m.cords.endX-m.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),m},z.prototype.getThumbHtml=function(m,W,nt){var ot,Ht=this.core.galleryItems[W].__slideVideoInfo||{};
57ot=Ht.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+Ht.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":m;var St=document.createElement("div");St.setAttribute("data-lg-item-id",W+""),St.className="lg-thumb-item "+(W===this.core.index?"active":""),St.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var _t=document.createElement("img");return _t.alt=nt||"",_t.setAttribute("data-lg-item-id",W+""),_t.src=ot,St.appendChild(_t),St},z.prototype.setThumbItemHtml=function(m){for(var W=0;W<m.length;W++){var nt=this.getThumbHtml(m[W].thumb,W,m[W].alt);this.$lgThumb.append(nt)}},z.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},z.prototype.manageActiveClassOnSlideChange=function(){var m=this;this.core.LGel.on(it+".thumb",(function(W){var nt=m.core.outer.find(".lg-thumb-item"),ot=W.detail.index;nt.removeClass("active"),nt.eq(ot).addClass("active")}))},z.prototype.toggleThumbBar=function(){var m=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",(function(){m.core.outer.toggleClass("lg-components-open")})))},z.prototype.thumbKeyPress=function(){var m=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,(function(W){m.core.lgOpened&&m.settings.toggleThumb&&(W.keyCode===38?(W.preventDefault(),m.core.outer.addClass("lg-components-open")):W.keyCode===40&&(W.preventDefault(),m.core.outer.removeClass("lg-components-open")))}))},z.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},z})()}));function r(R,rt){for(var ft=0;ft<rt.length;ft++){var Y=rt[ft];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(R,Y.key,Y)}}function Jt(R,rt,ft){rt&&r(R.prototype,rt),ft&&r(R,ft),Object.defineProperty(R,"prototype",{writable:!1})}var n,t;n=this,t=function(){"use strict";var R="(prefers-reduced-motion: reduce)",rt=4,ft=5,Y={CREATED:1,MOUNTED:2,IDLE:3,MOVING:rt,SCROLLING:ft,DRAGGING:6,DESTROYED:7};function $(i){i.length=0}function it(i,u,o){return Array.prototype.slice.call(i,u,o)}function z(i){return i.bind.apply(i,[null].concat(it(arguments,1)))}function m(){}var W=setTimeout;function nt(i){return requestAnimationFrame(i)}function ot(i,u){return typeof u===i}function Ht(i){return!le(i)&&ot("object",i)}var St=Array.isArray,_t=z(ot,"function"),Ft=z(ot,"string"),Zt=z(ot,"undefined");function le(i){return i===null}function ve(i){try{return i instanceof(i.ownerDocument.defaultView||window).HTMLElement}catch(u){return!1}}function Qt(i){return St(i)?i:[i]}function xt(i,u){Qt(i).forEach(u)}function ye(i,u){return-1<i.indexOf(u)}function te(i,u){return i.push.apply(i,Qt(u)),i}function X(i,u,o){i&&xt(u,function(a){a&&i.classList[o?"add":"remove"](a)})}function Mt(i,u){X(i,Ft(u)?u.split(" "):u,!0)}function ee(i,u){xt(u,i.appendChild.bind(i))}function ae(i,u){xt(i,function(o){var a=(u||o).parentNode;a&&a.insertBefore(o,u)})}function At(i,u){return ve(i)&&(i.msMatchesSelector||i.matches).call(i,u)}function be(i,u){return i=i?it(i.children):[],u?i.filter(function(o){return At(o,u)}):i}function ie(i,u){return u?be(i,u)[0]:i.firstElementChild}var jt=Object.keys;function Nt(i,u,o){i&&(o?jt(i).reverse():jt(i)).forEach(function(a){a!=="__proto__"&&u(i[a],a)})}function ne(i){return it(arguments,1).forEach(function(u){Nt(u,function(o,a){i[a]=u[a]})}),i}function Bt(i){return it(arguments,1).forEach(function(u){Nt(u,function(o,a){St(o)?i[a]=o.slice():Ht(o)?i[a]=Bt({}
vendor: 4,134 bytes, line 57
57,Ht(i[a])?i[a]:{},o):i[a]=o})}),i}function Le(i,u){xt(u||jt(i),function(o){delete i[o]})}function Pt(i,u){xt(i,function(o){xt(u,function(a){o&&o.removeAttribute(a)})})}function J(i,u,o){Ht(u)?Nt(u,function(a,g){J(i,g,a)}):xt(i,function(a){le(o)||o===""?Pt(a,u):a.setAttribute(u,String(o))})}function Vt(i,u,o){return i=document.createElement(i),u&&(Ft(u)?Mt:J)(i,u),o&&ee(o,i),i}function wt(i,u,o){if(Zt(o))return getComputedStyle(i)[u];le(o)||(i.style[u]=""+o)}function se(i,u){wt(i,"display",u)}function c(i){i.setActive&&i.setActive()||i.focus({preventScroll:!0})}function e(i,u){return i.getAttribute(u)}function s(i,u){return i&&i.classList.contains(u)}function l(i){return i.getBoundingClientRect()}function d(i){xt(i,function(u){u&&u.parentNode&&u.parentNode.removeChild(u)})}function h(i){return ie(new DOMParser().parseFromString(i,"text/html").body)}function p(i,u){i.preventDefault(),u&&(i.stopPropagation(),i.stopImmediatePropagation())}function E(i,u){return i&&i.querySelector(u)}function G(i,u){return u?it(i.querySelectorAll(u)):[]}function j(i,u){X(i,u,!1)}function Z(i){return i.timeStamp}function K(i){return Ft(i)?i:i?i+"px":""}var st="splide",Ct="data-"+st;function dt(i,u){if(!i)throw new Error("["+st+"] "+(u||""))}var pt=Math.min,It=Math.max,Dt=Math.floor,Gt=Math.ceil,bt=Math.abs;function De(i,u,o){return bt(i-u)<o}function ue(i,f,o,a){var g=pt(f,o),f=It(f,o);return a?g<i&&i<f:g<=i&&i<=f}function Yt(i,g,o){var a=pt(g,o),g=It(g,o);return pt(It(a,i),g)}function Wt(i){return(0<i)-(i<0)}function de(i,u){return xt(u,function(o){i=i.replace("%s",""+o)}),i}function Ce(i){return i<10?"0"+i:""+i}var Ut={};function Te(){var i=[];function u(o,a,g){xt(o,function(f){f&&xt(a,function(C){C.split(" ").forEach(function(y){y=y.split("."),g(f,y[0],y[1])})})})}return{bind:function(o,a,g,f){u(o,a,function(C,y,w){var T="addEventListener"in C,S=T?C.removeEventListener.bind(C,y,g,f):C.removeListener.bind(C,g);T?C.addEventListener(y,g,f):C.addListener(g),i.push([C,y,w,g,S])})},unbind:function(o,a,g){u(o,a,function(f,C,y){i=i.filter(function(w){return!!(w[0]!==f||w[1]!==C||w[2]!==y||g&&w[3]!==g)||(w[4](),!1)})})},dispatch:function(o,a,g){var f;return typeof CustomEvent=="function"?f=new CustomEvent(a,{bubbles:!0,detail:g}):(f=document.createEvent("CustomEvent")).initCustomEvent(a,!0,!1,g),o.dispatchEvent(f),f},destroy:function(){i.forEach(function(o){o[4]()}),$(i)}}}var $t="mounted",Xt="move",Se="moved",Je="click",Si="active",xi="inactive",wi="visible",Ii="hidden",gt="refresh",Et="updated",xe="resize",Be="resized",Xe="scroll",ce="scrolled",Ze="destroy",Qe="navigation:mounted",ti="autoplay:play",ei="autoplay:pause",ii="lazyload:loaded",ni="sk",si="sh";function ut(i){var u=i?i.event.bus:document.createDocumentFragment(),o=Te();return i&&i.event.on(Ze,o.destroy),ne(o,{bus:u,on:function(a,g){o.bind(u,Qt(a).join(" "),function(f){g.apply(g,St(f.detail)?f.detail:[])})},off:z(o.unbind,u),emit:function(a){o.dispatch(u,a,it(arguments,1))}})}function ke(i,u,o,a){var g,f,C=Date.now,y=0,w=!0,T=0;function S(){if(!w){if(y=i?pt((C()-g)/i,1):1,o&&o(y),1<=y&&(u(),g=C(),a&&++T>=a))return P();f=nt(S)}}function P(){w=!0}function D(){f&&cancelAnimationFrame(f),w=!(f=y=0)}return{start:function(I){I||D(),g=C()-(I?y*i:0),w=!1,f=nt(S)},rewind:function(){g=C(),y=0,o&&o(y)},pause:P,cancel:D,set:function(I){i=I},isPaused:function(){return w}}}function Ei(i){var u=i;return{set:function(o){u=o},is:function(o){return ye(Qt(o),u)}}}var oe="Arrow",Me=oe+"Left",Pe=oe+"Right",he=oe+"Up",oe=oe+"Down",ze="ttb",_e={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[he,Pe],ArrowRight:[oe,Me]},Rt="role",ge="tabindex",ct="aria-",we=ct+"controls",oi=ct+"current",ri=ct+"selected",zt=ct+"label",Ne=ct+"labelledby",li=ct+"hidden",We=ct+"orientation",Ie=ct+"roledescription",ai=ct+"live",ui=ct+"busy",di=ct+"atomic",$e=[Rt,ge,"disabled",we,oi,zt,Ne,li,We,Ie],ct=st+"__",Re=st,ci=ct+"track",Oi=ct+"list",Ae=ct+"slide",hi=Ae+"--clone",Li=Ae+"__container",je=ct+"arrows",Ge=ct+"arrow",gi=Ge+"--prev",mi=Ge+"--next",He=ct+"pagination",fi=He+"__page",Di=ct+"progress__bar",ki=ct+"toggle",Mi=ct
57+"sr",re="is-active",pi="is-prev",vi="is-next",Ve="is-visible",Ye="is-loading",yi="is-focus-in",bi="is-overflow",Pi=[re,Ve,pi,vi,Ye,yi,bi],Ci="touchstart mousedown",Ue="touchmove mousemove",qe="touchend touchcancel mouseup click",me="slide",fe="loop",Ee="fade";function zi(i,u,o,a){var g,f=ut(i),C=f.on,y=f.emit,w=f.bind,T=i.Components,S=i.root,P=i.options,D=P.isNavigation,I=P.updateOnMove,A=P.i18n,k=P.pagination,v=P.slideFocus,b=T.Direction.resolve,_=e(a,"style"),F=e(a,zt),H=-1<o,O=ie(a,"."+Li);function V(){var x=i.splides.map(function(L){return L=L.splide.Components.Slides.getAt(u),L?L.slide.id:""}).join(" ");J(a,zt,de(A.slideX,(H?o:u)+1)),J(a,we,x),J(a,Rt,v?"button":""),v&&Pt(a,Ie)}function et(){g||Q()}function Q(){var x,L,B;g||(x=i.index,(B=U())!==s(a,re)&&(X(a,re,B),J(a,oi,D&&B||""),y(B?Si:xi,M)),B=(function(){if(i.is(Ee))return U();var tt=l(T.Elements.track),mt=l(a),at=b("left",!0),kt=b("right",!0);return Dt(tt[at])<=Gt(mt[at])&&Dt(mt[kt])<=Gt(tt[kt])})(),L=!B&&(!U()||H),i.state.is([rt,ft])||J(a,li,L||""),J(G(a,P.focusableNodes||""),ge,L?-1:""),v&&J(a,ge,L?-1:0),B!==s(a,Ve)&&(X(a,Ve,B),y(B?wi:Ii,M)),B||document.activeElement!==a||(L=T.Slides.getAt(i.index))&&c(L.slide),X(a,pi,u===x-1),X(a,vi,u===x+1))}function U(){var x=i.index;return x===u||P.cloneStatus&&x===o}var M={index:u,slideIndex:o,slide:a,container:O,isClone:H,mount:function(){H||(a.id=S.id+"-slide"+Ce(u+1),J(a,Rt,k?"tabpanel":"group"),J(a,Ie,A.slide),J(a,zt,F||de(A.slideLabel,[u+1,i.length]))),w(a,"click",z(y,Je,M)),w(a,"keydown",z(y,ni,M)),C([Se,si,ce],Q),C(Qe,V),I&&C(Xt,et)},destroy:function(){g=!0,f.destroy(),j(a,Pi),Pt(a,$e),J(a,"style",_),J(a,zt,F||"")},update:Q,style:function(x,L,B){wt(B&&O||a,x,L)},isWithin:function(x,L){return x=bt(x-u),(x=H||!P.rewind&&!i.is(fe)?x:pt(x,i.length-x))<=L}};return M}var Ai=Ct+"-interval",pe={passive:!1,capture:!0},Gi={Spacebar:" ",Right:Pe,Left:Me,Up:he,Down:oe};function Ke(i){return i=Ft(i)?i:i.key,Gi[i]||i}var Ti="keydown",Oe=Ct+"-lazy",Fe=Oe+"-srcset",Hi="["+Oe+"], ["+Fe+"]",Fi=[" ","Enter"],Bi=Object.freeze({__proto__:null,Media:function(i,u,o){var a=i.state,g=o.breakpoints||{},f=o.reducedMotion||{},C=Te(),y=[];function w(D){D&&C.destroy()}function T(D,I){I=matchMedia(I),C.bind(I,"change",S),y.push([D,I])}function S(){var D=a.is(7),I=o.direction,A=y.reduce(function(k,v){return Bt(k,v[1].matches?v[0]:{})},{});Le(o),P(A),o.destroy?i.destroy(o.destroy==="completely"):D?(w(!0),i.mount()):I!==o.direction&&i.refresh()}function P(D,I,A){Bt(o,D),I&&Bt(Object.getPrototypeOf(o),D),!A&&a.is(1)||i.emit(Et,o)}return{setup:function(){var D=o.mediaQuery==="min";jt(g).sort(function(I,A){return D?+I-+A:+A-+I}).forEach(function(I){T(g[I],"("+(D?"min":"max")+"-width:"+I+"px)")}),T(f,R),S()},destroy:w,reduce:function(D){matchMedia(R).matches&&(D?Bt(o,f):Le(o,jt(f)))},set:P}},Direction:function(i,u,o){return{resolve:function(a,g,f){var C=(f=f||o.direction)!=="rtl"||g?f===ze?0:-1:1;return _e[a]&&_e[a][C]||a.replace(/width|left|right/i,function(y,w){return y=_e[y.toLowerCase()][C]||y,0<w?y.charAt(0).toUpperCase()+y.slice(1):y})},orient:function(a){return a*(o.direction==="rtl"?1:-1)}}},Elements:function(i,u,o){var a,g,f,C=ut(i),y=C.on,w=C.bind,T=i.root,S=o.i18n,P={},D=[],I=[],A=[];function k(){a=_("."+ci),g=ie(a,"."+Oi),dt(a&&g,"A track/list element is missing."),te(D,be(g,"."+Ae+":not(."+hi+")")),Nt({arrows:je,pagination:He,prev:gi,next:mi,bar:Di,toggle:ki},function(V,et){P[et]=_("."+V)}),ne(P,{root:T,track:a,list:g,slides:D});var H=T.id||(function(V){return""+V+Ce(Ut[V]=(Ut[V]||0)+1)})(st),O=o.role;T.id=H,a.id=a.id||H+"-track",g.id=g.id||H+"-list",!e(T,Rt)&&T.tagName!=="SECTION"&&O&&J(T,Rt,O),J(T,Ie,S.carousel),J(g,Rt,"presentation"),b()}function v(H){var O=$e.concat("style");$(D),j(T,I),j(a,A),Pt([a,g],O),Pt(T,H?O:["style",Ie])}function b(){j(T,I),j(a,A),I=F(Re),A=F(ci),Mt(T,I),Mt(a,A),J(T,zt,o.label),J(T,Ne,o.labelledby)}function _(H){return H=E(T,H),H&&(function(O,V){if(_t(O.closest))return O.closest(V);for(var et=O;et&&et.nodeType===1&&!At(et,V);)et=et.parentElement;return et})(H,"."+Re)===T?H:void 0}function F(H){return[H+"--"+o.type,H+"--"+o.direction,o.drag&&H+"--draggable",o.isNavigation&&H+"--nav",H===Re&&re]}return ne(P,{setup:k,mount:function(){y(gt,v),y(gt,k),y(Et,b),w(document,Ci+" keydown",function(H){f=H.type==="
57keydown"},{capture:!0}),w(T,"focusin",function(){X(T,yi,!!f)})},destroy:v})},Slides:function(i,u,o){var a=ut(i),g=a.on,f=a.emit,C=a.bind,y=(a=u.Elements).slides,w=a.list,T=[];function S(){y.forEach(function(v,b){D(v,b,-1)})}function P(){A(function(v){v.destroy()}),$(T)}function D(v,b,_){b=zi(i,b,_,v),b.mount(),T.push(b),T.sort(function(F,H){return F.index-H.index})}function I(v){return v?k(function(b){return!b.isClone}):T}function A(v,b){I(b).forEach(v)}function k(v){return T.filter(_t(v)?v:function(b){return Ft(v)?At(b.slide,v):ye(Qt(v),b.index)})}return{mount:function(){S(),g(gt,P),g(gt,S)},destroy:P,update:function(){A(function(v){v.update()})},register:D,get:I,getIn:function(v){var b=u.Controller,_=b.toIndex(v),F=b.hasFocus()?1:o.perPage;return k(function(H){return ue(H.index,_,_+F-1)})},getAt:function(v){return k(v)[0]},add:function(v,b){xt(v,function(_){var F,H,O;ve(_=Ft(_)?h(_):_)&&((F=y[b])?ae(_,F):ee(w,_),Mt(_,o.classes.slide),F=_,H=z(f,xe),F=G(F,"img"),(O=F.length)?F.forEach(function(V){C(V,"load error",function(){--O||H()})}):H())}),f(gt)},remove:function(v){d(k(v).map(function(b){return b.slide})),f(gt)},forEach:A,filter:k,style:function(v,b,_){A(function(F){F.style(v,b,_)})},getLength:function(v){return(v?y:T).length},isEnough:function(){return T.length>
vendor: 17,887 bytes, line 57
57o.perPage}}},Layout:function(i,u,o){var a,g,f,C=(T=ut(i)).on,y=T.bind,w=T.emit,T=u.Slides,S=u.Direction.resolve,P=(u=u.Elements).root,D=u.track,I=u.list,A=T.getAt,k=T.style;function v(){a=o.direction===ze,wt(P,"maxWidth",K(o.width)),wt(D,S("paddingLeft"),_(!1)),wt(D,S("paddingRight"),_(!0)),b(!0)}function b(x){var L=l(P);!x&&g.width===L.width&&g.height===L.height||(wt(D,"height",(function(){var B="";return a&&(dt(B=F(),"height or heightRatio is missing."),B="calc("+B+" - "+_(!1)+" - "+_(!0)+")"),B})()),k(S("marginRight"),K(o.gap)),k("width",o.autoWidth?null:K(o.fixedWidth)||(a?"":H())),k("height",K(o.fixedHeight)||(a?o.autoHeight?null:H():F()),!0),g=L,w(Be),f!==(f=M())&&(X(P,bi,f),w("overflow",f)))}function _(B){var L=o.padding,B=S(B?"right":"left");return L&&K(L[B]||(Ht(L)?0:L))||"0px"}function F(){return K(o.height||l(I).width*o.heightRatio)}function H(){var x=K(o.gap);return"calc((100%"+(x&&" + "+x)+")/"+(o.perPage||1)+(x&&" - "+x)+")"}function O(){return l(I)[S("width")]}function V(x,L){return x=A(x||0),x?l(x.slide)[S("width")]+(L?0:U()):0}function et(tt,L){var B,tt=A(tt);return tt?(tt=l(tt.slide)[S("right")],B=l(I)[S("left")],bt(tt-B)+(L?0:U())):0}function Q(x){return et(i.length-1)-et(0)+V(0,x)}function U(){var x=A(0);return x&&parseFloat(wt(x.slide,S("marginRight")))||0}function M(){return i.is(Ee)||Q(!0)>O()}return{mount:function(){var x,L,B;v(),y(window,"resize load",(x=z(w,xe),B=ke(L||0,x,null,1),function(){B.isPaused()&&B.start()})),C([Et,gt],v),C(xe,b)},resize:b,listSize:O,slideSize:V,sliderSize:Q,totalSize:et,getPadding:function(x){return parseFloat(wt(D,S("padding"+(x?"Right":"Left"))))||0},isOverflow:M}},Clones:function(i,u,o){var a,g=ut(i),f=g.on,C=u.Elements,y=u.Slides,w=u.Direction.resolve,T=[];function S(){if(f(gt,P),f([Et,xe],I),a=A()){var k=a,v=y.get().slice(),b=v.length;if(b){for(;v.length<k;)te(v,v);te(v.slice(-k),v.slice(0,k)).forEach(function(_,F){var H=F<k,O=(function(V,et){return V=V.cloneNode(!0),Mt(V,o.classes.clone),V.id=i.root.id+"-clone"+Ce(et+1),V})(_.slide,F);H?ae(O,v[0].slide):ee(C.list,O),te(T,O),y.register(O,F-k+(H?0:b),_.index)})}u.Layout.resize(!0)}}function P(){D(),S()}function D(){d(T),$(T),g.destroy()}function I(){var k=A();a!==k&&(a<k||!k)&&g.emit(gt)}function A(){var k,v=o.clones;return i.is(fe)?Zt(v)&&(v=(k=o[w("fixedWidth")]&&u.Layout.slideSize(0))&&Gt(l(C.track)[w("width")]/k)||o[w("autoWidth")]&&i.length||2*o.perPage):v=0,v}return{mount:S,destroy:D}},Move:function(i,u,o){var a,g=ut(i),f=g.on,C=g.emit,y=i.state.set,w=(g=u.Layout).slideSize,T=g.getPadding,S=g.totalSize,P=g.listSize,D=g.sliderSize,I=(g=u.Direction).resolve,A=g.orient,k=(g=u.Elements).list,v=g.track;function b(){u.Controller.isBusy()||(u.Scroll.cancel(),_(i.index),u.Slides.update())}function _(M){F(et(M,!0))}function F(M,x){i.is(Ee)||(x=x?M:(function(L){{var B,tt;i.is(fe)&&(B=V(L),tt=B>u.Controller.getEnd(),(B<0||tt)&&(L=H(L,tt)))}return L})(M),wt(k,"transform","translate"+I("X")+"("+x+"px)"),M!==x&&C(si))}function H(M,x){var L=M-U(x),B=D();return M-=A(B*(Gt(bt(L)/B)||1))*(x?1:-1)}function O(){F(Q(),!0),a.cancel()}function V(M){for(var x=u.Slides.get(),L=0,B=1/0,tt=0;tt<x.length;tt++){var mt=x[tt].index,at=bt(et(mt,!0)-M);if(!(at<=B))break;B=at,L=mt}return L}function et(M,x){var L=A(S(M-1)-(M=M,(L=o.focus)==="center"?(P()-w(M,!0))/2:+L*w(M)||0));return x?(M=L,M=o.trimSpace&&i.is(me)?Yt(M,0,A(D(!0)-P())):M):L}function Q(){var M=I("left");return l(k)[M]-l(v)[M]+A(T(!1))}function U(M){return et(M?u.Controller.getEnd():0,!!o.trimSpace)}return{mount:function(){a=u.Transition,f([$t,Be,Et,gt],b)},move:function(M,x,L,B){var tt,mt;M!==x&&(tt=L<M,mt=A(H(Q(),tt)),tt?0<=mt:mt<=k[I("scrollWidth")]-l(v)[I("width")])&&(O(),F(H(Q(),L<M),!0)),y(rt),C(Xt,x,L,M),a.start(x,function(){y(3),C(Se,x,L,M),B&&B()})},jump:_,translate:F,shift:H,cancel:O,toIndex:V,toPosition:et,getPosition:Q,getLimit:U,exceededLimit:function(B,x){x=Zt(x)?Q():x;var L=B!==!0&&A(x)<A(U(!1)),B=B!==!1&&A(x)>A(U(!0));return L||B},reposition:b}},Controller:function(i,u,o){var a,g,f,C,y=ut(i),w=y.on,T=y.emit,S=u.Move,P=S.getPosition,D=S.getLimit,I=S.toPosition,A=(y=u.Slides).isEnough,k=y.getLength,v=o.omitEnd,b=i.is(fe),_=i.is(me),F=z(U,!1),H=z(U,!0),O=o.start||0,V=O;function et(){g=k(!0),f=o.perMove,C=o.perPage,a=L();var N=Yt(O,0,v?a:g-1);N!==O&&(O=N,S.reposition())}function Q(){a!==L()&&T("ei")}function U(N,Tt){var vt=f||(at()?1:C),vt=M(O+vt*(N?-1:1),O,!(f||at()));return vt===-1&&_&&!De(P(),D(!N),1)?N?0:a:Tt?vt:x(vt)}function M(N,Tt,vt){var Ot;return A()||at()?((Ot=(function(yt){if(_&&o.trimSpace==="move"&&yt!==O)for(var q=P();q===I(yt,!0)&&ue(yt,0,i.length-1,!o.rewind);)yt<O?--yt:++yt;return yt})(N))!==N&&(Tt=N,N=Ot,vt=!1),N<0||a<N?N=f||!ue(0,N,Tt,!0)&&!ue(a,Tt,N,!0)?b?vt?N<0?-(g%C||C):g:N:o.rewind?N<0?a:0:-1:B(tt(N)):vt&&N!==Tt&&(N=B(tt(Tt)+(N<Tt?-1:1)))):N=-1,N}function x(N){return b?(N+g)%g||0:N}function L(){for(var N=g-(at()||b&&f?1:C);v&&0<N--;)if(I(g-1,!0)!==I(N,!0)){N++;break}return Yt(N,0,g-1)}function B(N){return Yt(at()?N:C*N,0,a)}function tt(N){return at()?pt(N,a):Dt((a<=N?g-1:N)/C)}function mt(N){N!==O&&(V=O,O=N)}function at(){return!Zt(o.focus)||o.isNavigation}function kt(){return i.state.is([rt,ft])&&!!o.waitForTransition}return{mount:function(){et(),w([Et,gt,"ei"],et),w(Be,Q)},go:function(N,Tt,vt){var Ot;kt()||-1<(Ot=x(N=(function(yt){var q=O;{var lt,ht;Ft(yt)?(ht=yt.match(/([+\-<>])(\d+)?/)||[],lt=ht[1],ht=ht[2],lt==="+"||lt==="-"?q=M(O+ +(""+lt+(+ht||1)),O):lt===">"?q=ht?B(+ht):F(!0):lt==="<"&&(q=H(!0))):q=b?yt:Yt(yt,0,a)}return q})(N)))&&(Tt||Ot!==O)&&(mt(Ot),S.move(N,Ot,V,vt))},scroll:function(N,Tt,vt,Ot){u.Scroll.scroll(N,Tt,vt,function(){var yt=x(S.toIndex(P()));mt(v?pt(yt,a):yt),Ot&&Ot()})},getNext:F,getPrev:H,getAdjacent:U,getEnd:L,setIndex:mt,getIndex:function(N){return N?V:O},toIndex:B,toPage:tt,toDest:function(N){return N=S.toIndex(N),_?Yt(N,0,a):N},hasFocus:at,isBusy:kt}},Arrows:function(i,u,o){var a,g,f=ut(i),C=f.on,y=f.bind,w=f.emit,T=o.classes,S=o.i18n,P=u.Elements,D=u.Controller,I=P.arrows,A=P.track,k=I,v=P.prev,b=P.next,_={};function F(){var U=o.arrows;!U||v&&b||(k=I||Vt("div",T.arrows),v=et(!0),b=et(!1),a=!0,ee(k,[v,b]),I||ae(k,A)),v&&b&&(ne(_,{prev:v,next:b}),se(k,U?"":"none"),Mt(k,g=je+"--"+o.direction),U&&(C([$t,Se,gt,ce,"ei"],Q),y(b,"click",z(V,">")),y(v,"click",z(V,"<")),Q(),J([v,b],we,A.id),w("arrows:mounted",v,b))),C(Et,H)}function H(){O(),F()}function O(){f.destroy(),j(k,g),a?(d(I?[v,b]:k),v=b=null):Pt([v,b],$e)}function V(U){D.go(U,!0)}function et(U){return h('<button class="'+T.arrow+" "+(U?T.prev:T.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(o.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function Q(){var U,M,x,L;v&&b&&(L=i.index,U=D.getPrev(),M=D.getNext(),x=-1<U&&L<U?S.last:S.prev,L=-1<M&&M<L?S.first:S.next,v.disabled=U<0,b.disabled=M<0,J(v,zt,x),J(b,zt,L),w("arrows:updated",v,b,U,M))}return{arrows:_,mount:F,destroy:O,update:Q}},Autoplay:function(i,u,o){var a,g,f=ut(i),C=f.on,y=f.bind,w=f.emit,T=ke(o.interval,i.go.bind(i,">"),function(O){var V=P.bar;V&&wt(V,"width",100*O+"%"),w("autoplay:playing",O)}),S=T.isPaused,P=u.Elements,D=(f=u.Elements).root,I=f.toggle,A=o.autoplay,k=A==="pause";function v(){S()&&u.Slides.isEnough()&&(T.start(!o.resetProgress),g=a=k=!1,F(),w(ti))}function b(O){k=!!(O=O===void 0?!0:O),F(),S()||(T.pause(),w(ei))}function _(){k||(a||g?b(!1):v())}function F(){I&&(X(I,re,!k),J(I,zt,o.i18n[k?"play":"pause"]))}function H(O){O=u.Slides.getAt(O),T.set(O&&+e(O.slide,Ai)||o.interval)}return{mount:function(){A&&(o.pauseOnHover&&y(D,"mouseenter mouseleave",function(O){a=O.type==="mouseenter",_()}),o.pauseOnFocus&&y(D,"focusin focusout",function(O){g=O.type==="focusin",_()}),I&&y(I,"click",function(){k?v():b(!0)}),C([Xt,Xe,gt],T.rewind),C(Xt,H),I&&J(I,we,P.track.id),k||v(),F())},destroy:T.cancel,play:v,pause:b,isPaused:S}},Cover:function(i,u,o){var a=ut(i).on;function g(C){u.Slides.forEach(function(y){var w=ie(y.container||y.slide,"img");w&&w.src&&f(C,w,y)})}function f(C,y,w){w.style("background",C?'center/cover no-repeat url("'+y.src+'")':"",!0),se(y,C?"none":"")}return{mount:function(){o.cover&&(a(ii,z(f,!0)),a([$t,Et,gt],z(g,!0)))},destroy:z(g,!1)}},Scroll:function(i,u,o){var a,g,f=ut(i),C=f.on,y=f.emit,w=i.state.set,T=u.Move,S=T.getPosition,P=T.getLimit,D=T.exceededLimit,I=T.translate,A=i.is(me),k=1;function v(O,V,L,Q,U){var M,x=S(),L=(F(),!L||A&&D()||(L=u.Layout.sliderSize(),M=Wt(O)*L*Dt(bt(O)/L)||0,O=T.toPosition(u.Controller.toDest(O%L))+M),De(x,O,1));k=1,V=L?0:V||It(bt(O-x)/1.5,800),g=Q,a=ke(V,b,z(_,x,O,U),1),w(ft),y(Xe),a.start()}function b(){w(3),g&&g(),y(ce)}function _(O,V,et,M){var U=S(),M=(O+(V-O)*(V=M,(O=o.easingFunc)?O(V):1-Math.pow(1-V,4))-U)*k;I(U+M),A&&!et&&D()&&(k*=.6,bt(M)<10&&v(P(D(!0)),600,!1,g,!0))}function F(){a&&a.cancel()}function H(){a&&!a.isPaused()&&(F(),b())}return{mount:function(){C(Xt,F),C([Et,gt],H)},destroy:F,scroll:v,cancel:H}},Drag:function(i,u,o){var a,g,f,C,y,w,T,S,P=ut(i),D=P.on,I=P.emit,A=P.bind,k=P.unbind,v=i.state,b=u.Move,_=u.Scroll,F=u.Controller,H=u.Elements.track,O=u.Media.reduce,V=(P=u.Direction).resolve,et=P.orient,Q=b.getPosition,U=b.exceededLimit,M=!1;function x(){var q=o.drag;yt(!q),C=q==="free"}function L(q){var lt,ht,Lt;w=!1,T||(lt=Ot(q),ht=q.target,Lt=o.noDrag,At(ht,"."+fi+", ."+Ge)||Lt&&At(ht,Lt)||!lt&&q.button||(F.isBusy()?p(q,!0):(S=lt?H:window,y=v.is([rt,ft]),f=null,A(S,Ue,B,pe),A(S,qe,tt,pe),b.cancel(),_.cancel(),at(q))))}function B(q){var lt,ht,Lt,qt,Kt;v.is(6)||(v.set(6),I("drag")),q.cancelable&&(y?(b.translate(a+kt(q)/(M&&i.is(me)?5:1)),Kt=200<N(q),lt=M!==(M=U()),(Kt||lt)&&at(q),w=!0,I("dragging"),p(q)):bt(kt(Kt=q))>bt(kt(Kt,!0))&&(lt=q,ht=o.dragMinThreshold,Lt=Ht(ht),qt=Lt&&ht.mouse||0,Lt=(Lt?ht.touch:+ht)||10,y=bt(kt(lt))>(Ot(lt)?Lt:qt),p(q)))}function tt(q){var lt,ht,Lt;v.is(6)&&(v.set(3),I("dragged")),y&&(ht=(function(qt){return Q()+Wt(qt)*pt(bt(qt)*(o.flickPower||600),C?1/0:u.Layout.listSize()*(o.flickMaxPages||1))})(lt=(function(qt){if(i.is(fe)||!M){var Kt=N(qt);if(Kt&&Kt<200)return kt(qt)/Kt}return 0})(lt=q)),Lt=o.rewind&&o.rewindByDrag,O(!1),C?F.scroll(ht,0,o.snap):i.is(Ee)?F.go(et(Wt(lt))<0?Lt?"<":"-":Lt?">":"+"):i.is(me)&&M&&Lt?F.go(U(!0)?">":"<"):F.go(F.toDest(ht),!0),O(!0),p(q)),k(S,Ue,B),k(S,qe,tt),y=!1}function mt(q){!T&&w&&p(q,!0)}function at(q){f=g,g=q,a=Q()}function kt(q,lt){return vt(q,lt)-vt(Tt(q),lt)}function N(q){return Z(q)-Z(Tt(q))}function Tt(q){return g===q&&f||g}function vt(q,lt){return(Ot(q)?q.changedTouches[0]:q)["page"+V(lt?"Y":"X")]}function Ot(q){return typeof TouchEvent!="undefined"&&q instanceof TouchEvent}function yt(q){T=q}return{mount:function(){A(H,Ue,m,pe),A(H,qe,m,pe),A(H,Ci,L,pe),A(H,"click",mt,{capture:!0}),A(H,"dragstart",p),D([$t,Et],x)},disable:yt,isDragging:function(){return y}}},Keyboard:function(i,u,o){var a,g,f=ut(i),C=f.on,y=f.bind,w=f.unbind,T=i.root,S=u.Direction.resolve;function P(){var k=o.keyboard;k&&(a=k==="global"?window:T,y(a,Ti,A))}function D(){w(a,Ti)}function I(){var k=g;g=!0,W(function(){g=k})}function A(k){g||((k=Ke(k))===S(Me)?i.go("<"):k===S(Pe)&&i.go(">"))}return{mount:function(){P(),C(Et,D),C(Et,P),C(Xt,I)},destroy:D,disable:function(k){g=k}}},LazyLoad:function(i,u,o){var a=ut(i),g=a.on,f=a.off,C=a.bind,y=a.emit,w=o.lazyLoad==="sequential",T=[Se,ce],S=[];function P(){$(S),u.Slides.forEach(function(v){G(v.slide,Hi).forEach(function(b){var _=e(b,Oe),F=e(b,Fe);_===b.src&&F===b.srcset||(_=o.classes.spinner,_=ie(F=b.parentElement,"."+_)||Vt("span",_,F),S.push([b,v,_]),b.src||se(b,"none"))})}),(w?k:(f(T),g(T,D),D))()}function D(){(S=S.filter(function(v){var b=o.perPage*((o.preloadPages||1)+1)-1;return!v[1].isWithin(i.index,b)||I(v)})).length||f(T)}function I(v){var b=v[0];Mt(v[1].slide,Ye),C(b,"load error",z(A,v)),J(b,"src",e(b,Oe)),J(b,"srcset",e(b,Fe)),Pt(b,Oe),Pt(b,Fe)}function A(v,b){var _=v[0],F=v[1];j(F.slide,Ye),b.type!=="error"&&(d(v[2]),se(_,""),y(ii,_,F),y(xe)),w&&k()}function k(){S.length&&I(S.shift())}return{mount:function(){o.lazyLoad&&(P(),g(gt,P))},destroy:z($,S),check:D}},Pagination:function(i,u,o){var a,g,f=ut(i),C=f.on,y=f.emit,w=f.bind,T=u.Slides,S=u.Elements,P=u.Controller,D=P.hasFocus,I=P.getIndex,A=P.go,k=u.Direction.resolve,v=S.pagination,b=[];function _(){a&&(d(v?it(a.children):a),j(a,g),$(b),a=null),f.destroy()}function F(Q){A(">"+Q,!0)}function H(Q,U){var M=b.length,x=Ke(U),B=O(),L=-1,B=(x===k(Pe,!1,B)?L=++Q%M:x===k(Me,!1,B)?L=(--Q+M)%M:x==="Home"?L=0:x==="End"&&(L=M-1),b[L]);B&&(c(B.button),A(">"+L),p(U,!0))}function O(){return o.paginationDirection||o.direction}function V(Q){return b[P.toPage(Q)]}function et(){var Q,U=V(I(!0)),M=V(I());U&&(j(Q=U.button,re),Pt(Q,ri),J(Q,ge,-1)),M&&(Mt(Q=M.button,re),J(Q,ri,!0),J(Q,ge,"")),y("pagination:updated",{list:a,items:b},U,M)}return{items:b,mount:function Q(){_(),C([Et,gt,"ei"],Q);var U=o.pagination;if(v&&se(v,U?"":"none"),U){C([Xt,Xe,ce],et);var U=i.length,M=o.classes,x=o.i18n,L=o.perPage,B=D()?P.getEnd()+1:Gt(U/L);Mt(a=v||Vt("ul",M.pagination,S.track.parentElement),g=He+"--"+O()),J(a,Rt,"tablist"),J(a,zt,x.select),J(a,We,O()===ze?"vertical":"");for(var tt=0;tt<B;tt++){var mt=Vt("li",null,a),at=Vt("button",{class:M.page,type:"button"},mt),kt=T.getIn(tt).map(function(vt){return vt.slide.id}),N=!D()&&1<L?x.pageX:x.slideX;w(at,"click",z(F,tt)),o.paginationKeyboard&&w(at,"keydown",z(H,tt)),J(mt,Rt,"presentation"),J(at,Rt,"tab"),J(at,we,kt.join(" ")),J(at,zt,de(N,tt+1)),J(at,ge,-1),b.push({li:mt,button:at,page:tt})}et(),y("pagination:mounted",{list:a,items:b},V(i.index))}},destroy:_,getAt:V,update:et}},Sync:function(i,u,o){var a=o.isNavigation,g=o.slideFocus,f=[];function C(){var D,I;i.splides.forEach(function(A){A.isParent||(w(i,A.splide),w(A.splide,i))}),a&&(D=ut(i),(I=D.on)(Je,S),I(ni,P),I([$t,Et],T),f.push(D),D.emit(Qe,i.splides))}function y(){f.forEach(function(D){D.destroy()}),$(f)}function w(D,I){D=ut(D),D.on(Xt,function(A,k,v){I.go(I.is(fe)?v:A)}),f.push(D)}function T(){J(u.Elements.list,We,o.direction===ze?"vertical":"")}function S(D){i.go(D.index)}function P(D,I){ye(Fi,Ke(I))&&(S(D),p(I))}return{setup:z(u.Media.set,{slideFocus:Zt(g)?a:g},!0),mount:C,destroy:y,remount:function(){y(),C()}}},Wheel:function(i,u,o){var a=ut(i).bind,g=0;function f(C){var y,w,T,S,P;C.cancelable&&(y=(P=C.deltaY)<0,w=Z(C),T=o.wheelMinThreshold||0,S=o.wheelSleep||0,bt(P)>T&&S<w-g&&(i.go(y?"<":">"),g=w),P=y,o.releaseWheel&&!i.state.is(rt)&&u.Controller.getAdjacent(P)===-1||p(C))}return{mount:function(){o.wheel&&a(u.Elements.track,"wheel",f,pe)}}},Live:function(i,u,o){var a=ut(i).on,g=u.Elements.track,f=o.live&&!o.isNavigation,C=Vt("span",Mi),y=ke(90,z(w,!1));function w(S){J(g,ui,S),S?(ee(g,C),y.start()):(d(C),y.cancel())}function T(S){f&&J(g,ai,S?"off":"polite")}return{mount:function(){f&&(T(!u.Autoplay.isPaused()),J(g,di,!0),C.textContent="\u2026",a(ti,z(T,!0)),a(ei,z(T,!1)),a([Se,ce],z(w,!0)))},disable:T,destroy:function(){Pt(g,[ai,di,ui]),d(C)}}}}),Xi={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:Ae,clone:hi,arrows:je,arrow:Ge,prev:gi,next:mi,pagination:He,page:fi,spinner:ct+"spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function _i(i,u,o){var a=u.Slides;function g(){a.forEach(function(f){f.style("transform","translateX(-"+100*f.index+"%)")})}return{mount:function(){ut(i).on([$t,gt],g)},start:function(f,C){a.style("transition","opacity "+o.speed+"ms "+o.easing),W(C)},cancel:m}}function Ni(i,u,o){var a,g=u.Move,f=u.Controller,C=u.Scroll,y=u.Elements.list,w=z(wt,y,"transition");function T(){w(""),C.cancel()}return{mount:function(){ut(i).bind(y,"transitionend",function(S){S.target===y&&a&&(T(),a())})},start:function(S,P){var D=g.toPosition(S,!0),I=g.getPosition(),A=(function(k){var v=o.rewindSpeed;if(i.is(me)&&v){var b=f.getIndex(!0),_=f.getEnd();if(b===0&&_<=k||_<=b&&k===0)return v}return o.speed})(S);1<=bt(D-I)&&1<=A?o.useScroll?C.scroll(D,A,!1,P):(w("transform "+A+"ms "+o.easing),g.translate(D,!0),a=P):(g.jump(S),P())},cancel:T}}return he=(function(){function i(o,a){this.event=ut(),this.Components={},this.state=Ei(1),this.splides=[],this.n={},this.t={},o=Ft(o)?E(document,o):o,dt(o,o+" is invalid."),a=Bt({label:e(this.root=o,zt)||"",labelledby:e(o,Ne)||""},Xi,i.defaults,a||{});try{Bt(a,JSON.parse(e(o,Ct)))}catch(g){dt(!1,"Invalid JSON")}this.n=Object.create(Bt({},a))}var u=i.prototype;return u.mount=function(o,a){var g=this,f=this.state,C=this.Components;return dt(f.is([1,7]),"Already mounted!"),f.set(1),this.i=C,this.r=a||this.r||(this.is(Ee)?_i:Ni),this.t=o||this.t,Nt(ne({},Bi,this.t,{Transition:this.r}),function(y,w){y=y(g,C,g.n),(C[w]=y).setup&&y.setup()}),Nt(C,function(y){y.mount&&y.mount()}),this.emit($t),Mt(this.root,"is-initialized"),f.set(3),this.emit("ready"),this},u.sync=function(o){return this.splides.push({splide:o}),o.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this.i.Sync.remount(),o.Components.Sync.remount()),this},u.go=function(o){return this.i.Controller.go(o),this},u.on=function(o,a){return this.event.on(o,a),this},u.off=function(o){return this.event.off(o),this},u.emit=function(o){var a;return(a=this.event).emit.apply(a,[o].concat(it(arguments,1))),this},u.add=function(o,a){return this.i.Slides.add(o,a),this},u.remove=function(o){return this.i.Slides.remove(o),this},u.is=function(o){return this.n.type===o}
57,u.refresh=function(){return this.emit(gt),this},u.destroy=function(o){o===void 0&&(o=!0);var a=this.event,g=this.state;return g.is(1)?ut(this).on("ready",this.destroy.bind(this,o)):(Nt(this.i,function(f){f.destroy&&f.destroy(o)},!0),a.emit(Ze),a.destroy(),o&&$(this.splides),g.set(7)),this},Jt(i,[{key:"options",get:function(){return this.n},set:function(o){this.i.Media.set(o,!0,!0)}},{key:"length",get:function(){return this.i.Slides.getLength(!0)}},{key:"index",get:function(){return this.i.Controller.getIndex()}}]),i})(),he.defaults={},he.STATES=Y,he},typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis!="undefined"?globalThis:n||self).Splide=t(),(function(R,rt){String.prototype.escape=function(){return this.replace(/&[^a][^m][^p][^;]/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")},String.prototype.unescapeHtml=function(){var Y=rt.createElement("div");Y.innerHTML=this;var $=Y.childNodes[0].nodeValue;return Y.removeChild(Y.firstChild),$},R.setInterval(function(){R.currentTime.setTime(R.currentTime.getTime()+1e3)},1e3),R.v2Storage={prefix:"_sv2_",get:function(Y,$){$=typeof $!="undefined"?$:!1;var it=R.localStorage.getItem(this.prefix+Y);return it===null?$:(data=JSON.parse(it),"t"in data&&new Date(data.t)>=new Date?data.v:$)},hasItem:function(Y){var $=R.localStorage.getItem(this.prefix+Y);return $===null?defaultValue:(data=JSON.parse($),"t"in data&&new Date(data.t)>=new Date)},set:function(Y,$,it){it=typeof it!="undefined"?it:86400;var z=new Date;z.setTime(z.getTime()+it*1e3),R.localStorage.setItem(this.prefix+Y,JSON.stringify({t:z.toString(),v:$}))}},R.appendHit=function(Y,$){Y in R.modelHits||(R.modelHits[Y]=[]),R.modelHits[Y].push($)},R.tra=function(Y,$,it){return typeof $=="undefined"&&($=[]),typeof it=="undefined"&&(it=[]),typeof R.i18n[Y]=="undefined"?"":(typeof it.escape!="undefined"&&it.escape===!0&&($=$.map(function(z){return z.escape()})),vsprintf(R.i18n[Y],$))};var ft=function(){var Y="frontI18n:"+masterConfig.lang+":"+masterConfig.v,$=R.v2Storage.get(Y,!1);if($===!1){var it=masterConfig.baseUrl+"statics/i18n/?v="+masterConfig.v,z=new XMLHttpRequest;z.open("GET",it,!1),z.onreadystatechange=function(){z.readyState===4&&z.status===200&&($=JSON.parse(z.responseText),R.v2Storage.set(Y,$),R.i18n=$)},z.send()}else R.i18n=$};ft(),"Clients"in R&&Clients.sync(function(Y){},function(){}),R.showAdvPanel=function(){for(var Y=rt.querySelectorAll(".faketabliqholder"),$=0;$<Y.length;$++){var it=Y[$].dataset.adHelperSizes.split("x");Y[$].innerHTML="<strong>"+Y[$].dataset.adHelperPosname+"<br />"+it[0]+" x "+it[1]+"<strong>",Y[$].style.width=it[0]+"px",Y[$].style.height=it[1]+"px",Y[$].style.background="radial-gradient(#00e30e, #600, #300)",Y[$].style.position="relative",Y[$].style.direction="ltr",Y[$].style.fontFamily='"Courier New", Courier, monospace',Y[$].style.fontSize="12px";for(var z=Y[$].querySelectorAll("strong"),m=0;m<z.length;m++)z[m].style.fontFamily='"Courier New", Courier, monospace',z[m].style.fontSize="12px",z[m].style.color="#fff",z[m].style.display="block",z[m].style.position="absolute",z[m].style.top="8px",z[m].style.left="8px"}},R.isAdverHolderMode&&R.addEventListener("load",function(){R.showAdvPanel()})})(window,document); 58//# sourceMappingURL=frameworks.min.js.map
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.