'+this.settings.prevHtml+' \n "),".lg-sub-html"===this.settings.appendSubHtmlTo&&(n='');var s="";this.settings.allowMediaOverlap&&(s+="lg-media-overlap ");var o=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",r=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",a="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),l=this.settings.closable&&this.settings.showCloseIcon?'':"",c=this.settings.showMaximizeIcon?'':"",u='\n \n
\n\n
\n
\n
\n
\n '+c+"\n "+l+"\n
\n "+t+'\n
\n '+n+"\n
\n
\n
\n
\n ";i(this.settings.container).css("position","relative").append(u),this.outer=this.getElementById("lg-outer"),this.$lgContent=this.getElementById("lg-content"),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.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var d=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(d+="lg-grab "),this.settings.showAfterLoad&&(d+="lg-show-after-load"),this.outer.addClass(d),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append(''),this.counter(),i(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,(function(){e.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},n.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo,t=this.getMediaContainerPosition(),i=t.top,n=t.bottom;if(this.currentImageSize=o(this.items[this.index],this.$lgContent,i+n,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var s=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",s)}this.LGel.trigger(v)}},n.prototype.resizeVideoSlide=function(e,t){var i=this.getVideoContStyle(t);this.getSlideItem(e).find(".lg-video-cont").attr("style",i)},n.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),1===e.length&&(this.index=0),e.length){var i=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var n=0;this.galleryItems.some((function(e,t){return e.src===i&&(n=t,!0)})),this.currentItemsInDom=this.organizeSlideItems(n,-1),this.loadContent(n,!0),this.getSlideItem(n).addClass("lg-current"),this.index=n,this.updateCurrentCounter(n),this.LGel.trigger(b)}else this.closeGallery()},n.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var e=i(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 h(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},n.prototype.openGallery=function(e,t){var n=this;if(void 0===e&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.get().focus(),this.outer.removeClass("lg-hide-items"),this.$container.addClass("lg-show");var s=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=s;var a="";s.forEach((function(e){a=a+''})),this.$inner.append(a),this.addHtml(e);var l="";this.mediaContainerPosition=this.getMediaContainerPosition();var c=this.mediaContainerPosition,u=c.top,d=c.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(u,d),this.zoomFromOrigin&&t&&(this.currentImageSize=o(t,this.$lgContent,u+d,this.galleryItems[e].__slideVideoInfo&&this.settings.videoMaxSize),l=r(t,this.$lgContent,u,d,this.currentImageSize)),this.zoomFromOrigin&&l||(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var h=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){n.outer.addClass("lg-components-open")}),h),this.index=e,this.LGel.trigger(C),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=i(window).scrollTop(),setTimeout((function(){if(n.zoomFromOrigin&&l){var t=n.getSlideItem(e);t.css("transform",l),setTimeout((function(){t.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",n.settings.startAnimationDuration+"ms"),n.outer.addClass("lg-zoom-from-image")})),setTimeout((function(){t.css("transform","translate3d(0, 0, 0)")}),100)}setTimeout((function(){n.$backdrop.addClass("in"),n.$container.addClass("lg-show-in")}),10),n.zoomFromOrigin&&l||setTimeout((function(){n.outer.addClass("lg-visible")}),n.settings.backdropDuration),n.slide(e,!1,!1,!1),n.LGel.trigger(k)})),document.body===this.settings.container&&i("html").addClass("lg-on")}},n.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.settings.defaultCaptionHeight||this.outer.find(".lg-sub-html").get().clientHeight,i=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(i?i.clientHeight:0)+t}},n.prototype.setMediaContainerPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.$inner.css("top",e+"px").css("bottom",t+"px")},n.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)},n.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},n.prototype.counter=function(){if(this.settings.counter){var e='\n '+(this.index+1)+' / \n '+this.galleryItems.length+"
";this.outer.find(this.settings.appendCounterTo).append(e)}},n.prototype.addHtml=function(e){var t,n;if(this.galleryItems[e].subHtmlUrl?n=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!n)if(t){var s=t.substring(0,1);"."!==s&&"#"!==s||(t=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?i(this.items).eq(e).find(t).first().html():i(t).first().html())}else t="";if(".lg-sub-html"===this.settings.appendSubHtmlTo)n?this.outer.find(".lg-sub-html").load(n):this.outer.find(".lg-sub-html").html(t);else{var o=i(this.getSlideItemId(e));n?o.load(n):o.append(''+t+"
")}null!=t&&(""===t?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(w,{index:e})},n.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var i=1;i<=this.settings.preload&&!(e-i<0);i++)this.loadContent(e-i,!1)},n.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+"px; \n margin-left: -"+e.width/2+"px;\n margin-top: -"+e.height/2+"px; \n height:"+e.height+"px":""},n.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+"px; \n height:"+e.height+"px":""},n.prototype.getDummyImageContent=function(e,t,n){var s;if(this.settings.dynamic||(s=i(this.items).eq(t)),s){var o=void 0;if(!(o=this.settings.exThumbImage?s.attr(this.settings.exThumbImage):s.find("img").first().attr("src")))return"";var r="';return e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),r}return""},n.prototype.setImgMarkup=function(e,t,i){var n=this.galleryItems[i],s=n.alt,o=n.srcset,r=n.sizes,a=n.sources,c=s?'alt="'+s+'"':"",u='";t.prepend(u)},n.prototype.onLgObjectLoad=function(e,t,i,n,s){var o=this;s&&this.LGel.trigger(x,{index:t,delay:i||0}),e.find(".lg-object").first().on("load.lg",(function(){o.handleLgObjectLoad(e,t,i,n,s)})),setTimeout((function(){e.find(".lg-object").first().on("error.lg",(function(){e.addClass("lg-complete lg-complete_"),e.html('Oops... Failed to load content...')}))}),n)},n.prototype.handleLgObjectLoad=function(e,t,i,n,s){var o=this;setTimeout((function(){e.addClass("lg-complete lg-complete_"),s||o.LGel.trigger(x,{index:t,delay:i||0})}),n)},n.prototype.isVideo=function(e,t){if(!e)return this.galleryItems[t].video?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),n=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)/i),s=e.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return i?{youtube:i}:n?{vimeo:n}:s?{wistia:s}:void 0},n.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach((function(e,i){e.__slideVideoInfo=t.isVideo(e.src,i)}))},n.prototype.loadContent=function(e,t){var n=this,s=this.galleryItems[e],r=i(this.getSlideItemId(e)),h=s.poster,p=s.srcset,f=s.sizes,m=s.sources,v=s.src,b=s.video,w=b&&"string"==typeof b?JSON.parse(b):b;if(s.responsive){var C=s.responsive.split(",");v=c(C)||v}var k=s.__slideVideoInfo,x="",S=!!s.iframe;if(!r.hasClass("lg-loaded")){if(k){var T=this.mediaContainerPosition,D=T.top,_=T.bottom,$=o(this.items[e],this.$lgContent,D+_,k&&this.settings.videoMaxSize);x=this.getVideoContStyle($)}if(S){var E=a(v,this.settings.iframeWidth,this.settings.iframeHeight,s.iframeTitle);r.prepend(E)}else if(h){var I="",A=!this.lGalleryOn,O=!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize;O&&(I=this.getDummyImageContent(r,e,"")),E=d(h,I||"",x,k),r.prepend(E);var P=(O?this.settings.startAnimationDuration:this.settings.backdropDuration)+100;setTimeout((function(){n.LGel.trigger(y,{index:e,src:v,html5Video:w,hasPoster:!0,isFirstSlide:A})}),P)}else if(k)E='',r.prepend(E),this.LGel.trigger(y,{index:e,src:v,html5Video:w,hasPoster:!1});else if(this.setImgMarkup(v,r,e),p||m){var M=r.find(".lg-object");this.initPictureFill(M)}this.LGel.trigger(g,{index:e}),this.lGalleryOn&&".lg-sub-html"!==this.settings.appendSubHtmlTo&&this.addHtml(e)}var L=0,N=0;this.lGalleryOn||(N=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),N&&!i(document.body).hasClass("lg-from-hash")&&(L=N),!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize&&(setTimeout((function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")}),this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout((function(){if(r.find(".lg-img-wrap").append(l(e,v,"",p,f,s.sources)),p||m){var t=r.find(".lg-object");n.initPictureFill(t)}n.onLgObjectLoad(r,e,N,L,!0);var i=r.find(".lg-object").first();u(i.get())?n.loadContentOnLoad(e,r,L):i.on("load.lg error.lg",(function(){n.loadContentOnLoad(e,r,L)}))}),this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),this.onLgObjectLoad(r,e,N,L,!1),k&&k.html5&&!h&&r.addClass("lg-complete lg-complete_"),this.zoomFromOrigin&&this.currentImageSize||!r.hasClass("lg-complete_")||this.lGalleryOn||setTimeout((function(){r.addClass("lg-complete")}),this.settings.backdropDuration),this.lGalleryOn=!0,!0===t&&(r.hasClass("lg-complete_")?this.preload(e):r.find(".lg-object").first().on("load.lg error.lg",(function(){n.preload(e)})))},n.prototype.loadContentOnLoad=function(e,t,i){var n=this;setTimeout((function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),n.outer.removeClass("lg-first-slide-loading"),n.isDummyImageRemoved=!0,n.preload(e)}),i+300)},n.prototype.getItemsToBeInsertedToDom=function(e,t,i){var n=this;void 0===i&&(i=0);var s=[],o=Math.max(i,3);o=Math.min(o,this.galleryItems.length);var r="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(e,t){s.push("lg-item-"+n.lgId+"-"+t)})),s;if(e<(this.galleryItems.length-1)/2){for(var a=e;a>e-o/2&&a>=0;a--)s.push("lg-item-"+this.lgId+"-"+a);var l=s.length;for(a=0;a')})),this.currentItemsInDom.forEach((function(e){-1===s.indexOf(e)&&i("#"+e).remove()})),s},n.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch(t){e=0}return e},n.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e],i=!1!==t.downloadUrl&&(t.downloadUrl||t.src);i&&!t.iframe&&this.getElementById("lg-download").attr("href",i)}},n.prototype.makeSlideAnimation=function(e,t,i){var n=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout((function(){n.outer.addClass("lg-no-trans"),n.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(t.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout((function(){n.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),n.outer.removeClass("lg-no-trans")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},n.prototype.slide=function(e,t,i,n){var s=this,r=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,r),!this.lGalleryOn||r!==e){var a=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var l=this.getSlideItem(e),c=this.getSlideItem(r),u=this.galleryItems[e],d=u.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(u)),this.setDownloadValue(e),d){var h=this.mediaContainerPosition,p=h.top,f=h.bottom,g=o(this.items[e],this.$lgContent,p+f,d&&this.settings.videoMaxSize);this.resizeVideoSlide(e,g)}if(this.LGel.trigger(S,{prevIndex:r,index:e,fromTouch:!!t,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),n||(er&&(n="next")),t){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var m=void 0,y=void 0;a>2?(m=e-1,y=e+1,(0===e&&r===a-1||e===a-1&&0===r)&&(y=0,m=a-1)):(m=0,y=1),"prev"===n?this.getSlideItem(y).addClass("lg-next-slide"):this.getSlideItem(m).addClass("lg-prev-slide"),l.addClass("lg-current")}else this.makeSlideAnimation(n,l,c);this.lGalleryOn||this.loadContent(e,!0),setTimeout((function(){s.lGalleryOn&&s.loadContent(e,!0),".lg-sub-html"===s.settings.appendSubHtmlTo&&s.addHtml(e)}),(this.lGalleryOn?this.settings.speed+50:50)+(t?0:this.settings.slideDelay)),setTimeout((function(){s.lgBusy=!1,c.removeClass("lg-slide-progress"),s.LGel.trigger(T,{prevIndex:r,index:e,fromTouch:t,fromThumb:i})}),(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=e}},n.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},n.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},n.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},n.prototype.touchMove=function(e,t){var i=t.pageX-e.pageX,n=t.pageY-e.pageY,s=!1;if(this.swipeDirection?s=!0:Math.abs(i)>15?(this.swipeDirection="horizontal",s=!0):Math.abs(n)>15&&(this.swipeDirection="vertical",s=!0),s){var o=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){this.outer.addClass("lg-dragging"),this.setTranslate(o,i,0);var r=o.get().offsetWidth,a=15*r/100-Math.abs(10*i/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-r+i-a,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),r+i+a,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){this.$container.addClass("lg-dragging-vertical");var l=1-Math.abs(n)/window.innerHeight;this.$backdrop.css("opacity",l);var c=1-Math.abs(n)/(2*window.innerWidth);this.setTranslate(o,0,n,c,c),Math.abs(n)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},n.prototype.touchEnd=function(e,t,n){var s,o=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout((function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var r=!0;if("horizontal"===o.swipeDirection){s=e.pageX-t.pageX;var a=Math.abs(e.pageX-t.pageX);s<0&&a>o.settings.swipeThreshold?(o.goToNextSlide(!0),r=!1):s>0&&a>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),r=!1)}else if("vertical"===o.swipeDirection){if(s=Math.abs(e.pageY-t.pageY),o.settings.closable&&o.settings.swipeToClose&&s>100)return void o.closeGallery();o.$backdrop.css("opacity",1)}if(o.outer.find(".lg-item").removeAttr("style"),r&&Math.abs(e.pageX-t.pageX)<5){var l=i(n.target);o.isPosterElement(l)&&o.LGel.trigger(D)}o.swipeDirection=void 0})),setTimeout((function(){o.outer.hasClass("lg-dragging")||"lg-slide"===o.settings.mode||o.outer.removeClass("lg-slide")}),this.settings.speed+100)},n.prototype.enableSwipe=function(){var e=this,t={},n={},s=!1,o=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",(function(n){n.preventDefault();var s=e.getSlideItem(e.index);!i(n.target).hasClass("lg-item")&&!s.get().contains(n.target)||e.outer.hasClass("lg-zoomed")||e.lgBusy||1!==n.targetTouches.length||(o=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:n.targetTouches[0].pageX,pageY:n.targetTouches[0].pageY})})),this.$inner.on("touchmove.lg",(function(i){i.preventDefault(),o&&"swipe"===e.touchAction&&1===i.targetTouches.length&&(n={pageX:i.targetTouches[0].pageX,pageY:i.targetTouches[0].pageY},e.touchMove(t,n),s=!0)})),this.$inner.on("touchend.lg",(function(r){if("swipe"===e.touchAction){if(s)s=!1,e.touchEnd(n,t,r);else if(o){var a=i(r.target);e.isPosterElement(a)&&e.LGel.trigger(D)}e.touchAction=void 0,o=!1}})))},n.prototype.enableDrag=function(){var e=this,t={},n={},s=!1,o=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",(function(n){var o=e.getSlideItem(e.index);(i(n.target).hasClass("lg-item")||o.get().contains(n.target))&&(e.outer.hasClass("lg-zoomed")||e.lgBusy||(n.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:n.pageX,pageY:n.pageY},s=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(_))))})),i(window).on("mousemove.lg.global"+this.lgId,(function(i){s&&e.lgOpened&&(o=!0,n={pageX:i.pageX,pageY:i.pageY},e.touchMove(t,n),e.LGel.trigger($))})),i(window).on("mouseup.lg.global"+this.lgId,(function(r){if(e.lgOpened){var a=i(r.target);o?(o=!1,e.touchEnd(n,t,r),e.LGel.trigger(E)):e.isPosterElement(a)&&e.LGel.trigger(D),s&&(s=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}})))},n.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},n.prototype.goToNextSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+10?(this.index--,this.LGel.trigger(A,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(A,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout((function(){t.outer.removeClass("lg-left-end")}),400)))},n.prototype.keyPress=function(){var e=this;i(window).on("keydown.lg.global"+this.lgId,(function(t){e.lgOpened&&!0===e.settings.escKey&&27===t.keyCode&&(t.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&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}))},n.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()}))},n.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),i=this.getElementById("lg-next");e+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===e?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},n.prototype.setTranslate=function(e,t,i,n,s){void 0===n&&(n=1),void 0===s&&(s=1),e.css("transform","translate3d("+t+"px, "+i+"px, 0px) scale3d("+n+", "+s+", 1)")},n.prototype.mousewheel=function(){var e=this;this.outer.on("mousewheel.lg",(function(t){!t.deltaY||e.galleryItems.length<2||(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())}))},n.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")},n.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},n.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",(function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()}))},n.prototype.invalidateItems=function(){for(var e=0;e',this.core.$toolbar.append(e),this.fullScreen()}},i.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},i.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},i.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},i.prototype.fullScreen=function(){var e=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId,(function(){e.core.lgOpened&&e.core.outer.toggleClass("lg-fullscreen-on")})),this.core.outer.find(".lg-fullscreen").first().on("click.lg",(function(){e.isFullScreen()?e.exitFullscreen():e.requestFullscreen()}))},i.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},i.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId)},i}()},"object"===r(t)?e.exports=o():void 0===(s="function"==typeof(n=o)?n.call(t,i,t,e):n)||(e.exports=s)},72:function(e,t,i){var n,s,o;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e) /*! * lightgallery | 2.1.8 | July 7th 2021 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 */}o=function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var e=function(){return e=Object.assign||function(e){for(var t,i=1,n=arguments.length;i':"";this.settings.actualSize&&(e+=''),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(e)},r.prototype.enableZoom=function(e){var t=this,i=this.settings.enableZoomAfter+e.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&e.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout((function(){t.core.getSlideItem(e.detail.index).addClass("lg-zoomable")}),i+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(s+".zoom",this.enableZoom.bind(this))},r.prototype.getModifier=function(e,t,i){var n=e;e=Math.abs(e);var s=this.getCurrentTransform(i);if(!s)return 1;var o=1;if("X"===t){var r=Math.sign(parseFloat(s[0]));0===e||180===e?o=1:90===e&&(o=-90===n&&1===r||90===n&&-1===r?-1:1),o*=r}else{var a=Math.sign(parseFloat(s[3]));if(0===e||180===e)o=1;else if(90===e){var l=parseFloat(s[1]),c=parseFloat(s[2]);o=Math.sign(l*c*n*a)}o*=a}return o},r.prototype.getImageSize=function(e,t,i){return 90===t&&(i="x"===i?"y":"x"),e[{y:"offsetHeight",x:"offsetWidth"}[i]]},r.prototype.getDragCords=function(e,t){return 90===t?{x:e.pageY,y:e.pageX}:{x:e.pageX,y:e.pageY}},r.prototype.getSwipeCords=function(e,t){var i=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY;return 90===t?{x:n,y:i}:{x:i,y:n}},r.prototype.getDragAllowedAxises=function(e,t){var i=this.core.$lgContent.get(),n=parseFloat(e.attr("data-scale"))||1,s=e.get(),o=this.getImageSize(s,t,"y")*n>i.clientHeight,r=this.getImageSize(s,t,"x")*n>i.clientWidth;return 90===t?{allowX:o,allowY:r}:{allowX:r,allowY:o}},r.prototype.getCurrentTransform=function(e){if(e){var t=window.getComputedStyle(e,null),i=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";return"none"!==i?i.split("(")[1].split(")")[0].split(","):void 0}},r.prototype.getCurrentRotation=function(e){if(!e)return 0;var t=this.getCurrentTransform(e);return t?Math.round(Math.atan2(parseFloat(t[1]),parseFloat(t[0]))*(180/Math.PI)):0},r.prototype.zoomImage=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=t.get();if(i){var n,s,o=this.core.outer.get().getBoundingClientRect(),r=(o.width-i.offsetWidth)/2+o.left,a=(o.height-i.offsetHeight)/2+this.$LG(window).scrollTop()+o.top;1===e&&(this.positionChanged=!1),this.positionChanged&&(n=parseFloat(t.parent().attr("data-x"))/(parseFloat(t.attr("data-scale"))-1),s=parseFloat(t.parent().attr("data-y"))/(parseFloat(t.attr("data-scale"))-1),this.pageX=n+r,this.pageY=s+a,this.positionChanged=!1);var l=(e-1)*(this.pageX-r),c=(e-1)*(this.pageY-a);this.setZoomStyles({x:l,y:c,scale:e})}},r.prototype.setZoomStyles=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.outer.find(".lg-current .lg-dummy-img").first(),n=t.parent();t.attr("data-scale",e.scale+"").css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),i.css("transform","scale3d("+e.scale+", "+e.scale+", 1)");var s="translate3d(-"+e.x+"px, -"+e.y+"px, 0)";n.css("transform",s),n.attr("data-x",e.x).attr("data-y",e.y)},r.prototype.setActualSize=function(e,t){var i=this;if(this.core.galleryItems[this.core.index].src&&!this.core.outer.hasClass("lg-first-slide-loading")){var n=this.getCurrentImageActualSizeScale();this.core.outer.hasClass("lg-zoomed")?this.scale=1:this.scale=this.getScale(n),this.setPageCords(t),this.beginZoom(this.scale),this.zoomImage(this.scale),setTimeout((function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}),10)}},r.prototype.getNaturalWidth=function(e){var t=this.core.getSlideItem(e).find(".lg-image").first(),i=this.core.galleryItems[e].width;return i?parseFloat(i):t.get().naturalWidth},r.prototype.getActualSizeScale=function(e,t){return e>t?e/t||2:1},r.prototype.getCurrentImageActualSizeScale=function(){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,t=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(t,e)},r.prototype.getPageCords=function(e){var t={};if(e)t.x=e.pageX||e.targetTouches[0].pageX,t.y=e.pageY||e.targetTouches[0].pageY;else{var i=this.core.outer.get().getBoundingClientRect();t.x=i.width/2+i.left,t.y=i.height/2+this.$LG(window).scrollTop()+i.top}return t},r.prototype.setPageCords=function(e){var t=this.getPageCords(e);this.pageX=t.x,this.pageY=t.y},r.prototype.beginZoom=function(e){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e>1?(this.core.outer.addClass("lg-zoomed"),this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)):this.resetZoom(),e>1},r.prototype.getScale=function(e){var t=this.getCurrentImageActualSizeScale();return e<1?e=1:e>t&&(e=t),e},r.prototype.init=function(){var e=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",(function(t){e.$LG(t.target).hasClass("lg-image")&&e.setActualSize(e.core.index,t)})),this.core.outer.on("touchstart.lg",(function(i){var n=e.$LG(i.target);1===i.targetTouches.length&&n.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,e.setActualSize(e.core.index,i)):t=setTimeout((function(){t=null}),300),i.preventDefault())})),this.core.LGel.on(i+".zoom",(function(){e.core.lgOpened&&(e.setPageCords(),e.zoomImage(e.scale))})),this.core.getElementById("lg-zoom-out").on("click.lg",(function(){e.core.outer.find(".lg-current .lg-image").get()&&(e.scale-=e.settings.scale,e.scale=e.getScale(e.scale),e.beginZoom(e.scale),e.zoomImage(e.scale))})),this.core.getElementById("lg-zoom-in").on("click.lg",(function(){e.zoomIn()})),this.core.getElementById("lg-actual-size").on("click.lg",(function(){e.setActualSize(e.core.index)})),this.core.LGel.on(n+".zoom",(function(){e.core.outer.find(".lg-item").removeClass("lg-zoomable")})),this.core.LGel.on(o+".zoom",(function(t){var i=t.detail.prevIndex;e.scale=1,e.positionChanged=!1,e.resetZoom(i)})),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.pageX=this.core.outer.width()/2,this.pageY=this.core.outer.height()/2+this.$LG(window).scrollTop(),this.scale=1}},r.prototype.zoomIn=function(e){this.core.galleryItems[this.core.index].src&&(e?this.scale=e:this.scale+=this.settings.scale,this.scale=this.getScale(this.scale),this.beginZoom(this.scale),this.zoomImage(this.scale))},r.prototype.resetZoom=function(e){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==e?e:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style data-x data-y"),i.find(".lg-image").first().removeAttr("style data-scale"),this.setPageCords()},r.prototype.getTouchDistance=function(e){return Math.sqrt((e.targetTouches[0].pageX-e.targetTouches[1].pageX)*(e.targetTouches[0].pageX-e.targetTouches[1].pageX)+(e.targetTouches[0].pageY-e.targetTouches[1].pageY)*(e.targetTouches[0].pageY-e.targetTouches[1].pageY))},r.prototype.pinchZoom=function(){var e=this,t=0,i=!1,n=1,s=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",(function(i){s=e.core.getSlideItem(e.core.index),i.preventDefault(),2===i.targetTouches.length&&(e.$LG(i.target).hasClass("lg-item")||s.get().contains(i.target))&&(n=e.scale||1,e.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e.core.touchAction="pinch",t=e.getTouchDistance(i))})),this.core.$inner.on("touchmove.lg",(function(o){if(o.preventDefault(),2===o.targetTouches.length&&"pinch"===e.core.touchAction&&(e.$LG(o.target).hasClass("lg-item")||s.get().contains(o.target))){var r=e.getTouchDistance(o),a=t-r;!i&&Math.abs(a)>5&&(i=!0),i&&(e.scale=Math.max(1,n+.008*-a),e.zoomImage(e.scale))}})),this.core.$inner.on("touchend.lg",(function(n){"pinch"===e.core.touchAction&&(e.$LG(n.target).hasClass("lg-item")||s.get().contains(n.target))&&(i=!1,t=0,e.scale<=1?e.resetZoom():(e.scale=e.getScale(e.scale),e.zoomImage(e.scale),e.core.outer.addClass("lg-zoomed")),e.core.touchAction=void 0)}))},r.prototype.touchendZoom=function(e,t,i,n,s,o){var r=this.core.getSlideItem(this.core.index).find(".lg-img-rotate").first().get(),a=t.x-e.x,l=t.y-e.y,c=Math.abs(a)/s+1,u=Math.abs(l)/s+1;c>2&&(c+=1),u>2&&(u+=1),a*=c,l*=u;var d=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),h=this.core.getSlideItem(this.core.index).find(".lg-object").first(),p=parseFloat(d.attr("data-x"))||0,f=parseFloat(d.attr("data-y"))||0,g={};g.x=-Math.abs(p)+a*this.getModifier(o,"X",r),g.y=-Math.abs(f)+l*this.getModifier(o,"Y",r);var m=this.getPossibleSwipeDragCords(h,o);if(Math.abs(a)>15||Math.abs(l)>15){if(n&&(g.y<=-m.maxY?g.y=-m.maxY:g.y>=-m.minY&&(g.y=-m.minY)),i&&(g.x<=-m.maxX?g.x=-m.maxX:g.x>=-m.minX&&(g.x=-m.minX)),n)d.attr("data-y",Math.abs(g.y));else{var y=parseFloat(d.attr("data-y"))||0;g.y=-Math.abs(y)}if(i)d.attr("data-x",Math.abs(g.x));else{var v=parseFloat(d.attr("data-x"))||0;g.x=-Math.abs(v)}this.setZoomSwipeStyles(d,g),this.positionChanged=!0}},r.prototype.getZoomSwipeCords=function(e,t,i,n,s,o,r,a,l){var c={};if(n){if(c.y=-Math.abs(o)+(t.y-e.y)*this.getModifier(a,"Y",l),c.y<=-s.maxY){var u=-s.maxY-c.y;c.y=-s.maxY-u/6}else if(c.y>=-s.minY){var d=c.y- -s.minY;c.y=-s.minY+d/6}}else c.y=-Math.abs(o);if(i){if(c.x=-Math.abs(r)+(t.x-e.x)*this.getModifier(a,"X",l),c.x<=-s.maxX){var h=-s.maxX-c.x;c.x=-s.maxX-h/6}else if(c.x>=-s.minX){var p=c.x- -s.minX;c.x=-s.minX+p/6}}else c.x=-Math.abs(r);return c},r.prototype.getPossibleSwipeDragCords=function(e,t){var i=this.core.$lgContent,n=i.height(),s=i.width(),o=this.getImageSize(e.get(),t,"y"),r=this.getImageSize(e.get(),t,"x"),a=parseFloat(e.attr("data-scale"))||1,l=Math.abs(a),c=(n-o)/2,u=Math.abs(o*l-n+c),d=(s-r)/2,h=Math.abs(r*l-s+d);return 90===t?{minY:d,maxY:h,minX:c,maxX:u}:{minY:c,maxY:u,minX:d,maxX:h}},r.prototype.setZoomSwipeStyles=function(e,t){e.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},r.prototype.zoomSwipe=function(){var e,t,i=this,n={},s={},o=!1,r=!1,a=!1,l=new Date,c=(new Date,0),u=0,d=null,h=0,p=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",(function(s){if(s.preventDefault(),i.core.galleryItems[i.core.index].src&&(p=i.core.getSlideItem(i.core.index),(i.$LG(s.target).hasClass("lg-item")||p.get().contains(s.target))&&1===s.targetTouches.length&&i.core.outer.hasClass("lg-zoomed"))){l=new Date,i.core.touchAction="zoomSwipe";var o=i.core.getSlideItem(i.core.index).find(".lg-object").first();t=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first(),d=i.core.getSlideItem(i.core.index).find(".lg-img-rotate").first().get(),h=i.getCurrentRotation(d);var f=i.getDragAllowedAxises(o,Math.abs(h));a=f.allowY,((r=f.allowX)||a)&&(n=i.getSwipeCords(s,Math.abs(h))),u=parseFloat(t.attr("data-y")),c=parseFloat(t.attr("data-x")),e=i.getPossibleSwipeDragCords(o,h),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}})),this.core.$inner.on("touchmove.lg",(function(l){if(l.preventDefault(),1===l.targetTouches.length&&"zoomSwipe"===i.core.touchAction&&(i.$LG(l.target).hasClass("lg-item")||p.get().contains(l.target))){i.core.touchAction="zoomSwipe",s=i.getSwipeCords(l,Math.abs(h));var f=i.getZoomSwipeCords(n,s,r,a,e,u,c,h,d);(Math.abs(s.x-n.x)>15||Math.abs(s.y-n.y)>15)&&(o=!0,i.setZoomSwipeStyles(t,f))}})),this.core.$inner.on("touchend.lg",(function(e){if("zoomSwipe"===i.core.touchAction&&(i.$LG(e.target).hasClass("lg-item")||p.get().contains(e.target))){if(i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1;var t=(new Date).valueOf()-l.valueOf();i.touchendZoom(n,s,r,a,t,h)}}))},r.prototype.zoomDrag=function(){var e,t,i,n,s,o,r=this,a={},l={},c=!1,u=!1,d=null,h=0,p=!1,f=!1;this.core.outer.on("mousedown.lg.zoom",(function(t){if(r.core.galleryItems[r.core.index].src){var l=r.core.getSlideItem(r.core.index);if(r.$LG(t.target).hasClass("lg-item")||l.get().contains(t.target)){e=new Date;var u=r.core.getSlideItem(r.core.index).find(".lg-object").first();o=r.core.getSlideItem(r.core.index).find(".lg-img-wrap").first(),d=r.core.getSlideItem(r.core.index).find(".lg-img-rotate").get(),h=r.getCurrentRotation(d);var g=r.getDragAllowedAxises(u,Math.abs(h));f=g.allowY,p=g.allowX,r.core.outer.hasClass("lg-zoomed")&&r.$LG(t.target).hasClass("lg-object")&&(p||f)&&(t.preventDefault(),a=r.getDragCords(t,Math.abs(h)),i=r.getPossibleSwipeDragCords(u,h),c=!0,n=parseFloat(o.attr("data-y")),s=parseFloat(o.attr("data-x")),r.core.outer.get().scrollLeft+=1,r.core.outer.get().scrollLeft-=1,r.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}})),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,(function(e){if(c){u=!0,l=r.getDragCords(e,Math.abs(h));var t=r.getZoomSwipeCords(a,l,p,f,i,n,s,h,d);r.setZoomSwipeStyles(o,t)}})),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,(function(i){if(c){if(t=new Date,c=!1,r.core.outer.removeClass("lg-zoom-dragging"),u&&(a.x!==l.x||a.y!==l.y)){l=r.getDragCords(i,Math.abs(h));var n=t.valueOf()-e.valueOf();r.touchendZoom(a,l,p,f,n,h)}u=!1}r.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}))},r.prototype.closeGallery=function(){this.resetZoom()},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}()},"object"===r(t)?e.exports=o():void 0===(s="function"==typeof(n=o)?n.call(t,i,t,e):n)||(e.exports=s)},206:function(){jQuery.event.special.touchstart={setup:function(e,t,i){this.addEventListener("touchstart",i,{passive:!t.includes("noPreventDefault")})}},jQuery.event.special.touchmove={setup:function(e,t,i){this.addEventListener("touchmove",i,{passive:!t.includes("noPreventDefault")})}},jQuery.event.special.wheel={setup:function(e,t,i){this.addEventListener("wheel",i,{passive:!0})}},jQuery.event.special.mousewheel={setup:function(e,t,i){this.addEventListener("mousewheel",i,{passive:!0})}}},435:function(e,t,i){var n=i(692),s=i(160);void 0===s.$&&(s.$=n),void 0===s.jQuery&&(s.jQuery=n),e.exports=n},160:function(e,t,i){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==i.g)return i.g}return e}()},692:function(e,t){var i; /*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(n,s){"use strict";var o=[],r=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.call(Object),m={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function C(e,t,i){var n,s,o=(i=i||b).createElement("script");if(o.text=e,t)for(n in w)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var x="3.7.1",S=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function D(e){var t=!!e&&"length"in e&&e.length,i=k(e);return!y(e)&&!v(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:x,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+A+")"+A+"*"),H=new RegExp(A+"|>"),B=new RegExp(F),q=new RegExp("^"+P+"$"),V={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},K=function(){le()},J=he((function(e){return!0===e.disabled&&_(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(L.childNodes),L.childNodes),o[L.childNodes.length].nodeType}catch(e){g={apply:function(e,t){N.apply(e,a.call(t))},call:function(e){N.apply(e,a.call(arguments,1))}}}function Q(e,t,i,n){var s,o,r,a,c,u,p,f=t&&t.ownerDocument,v=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return i;if(!n&&(le(t),t=t||l,d)){if(11!==v&&(c=Y.exec(e)))if(s=c[1]){if(9===v){if(!(r=t.getElementById(s)))return i;if(r.id===s)return g.call(i,r),i}else if(f&&(r=f.getElementById(s))&&Q.contains(t,r)&&r.id===s)return g.call(i,r),i}else{if(c[2])return g.apply(i,t.getElementsByTagName(e)),i;if((s=c[3])&&t.getElementsByClassName)return g.apply(i,t.getElementsByClassName(s)),i}if(!(x[e+" "]||h&&h.test(e))){if(p=e,f=t,1===v&&(H.test(e)||R.test(e))){for((f=G.test(e)&&ae(t.parentNode)||t)==t&&m.scope||((a=t.getAttribute("id"))?a=T.escapeSelector(a):t.setAttribute("id",a=y)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);p=u.join(",")}try{return g.apply(i,f.querySelectorAll(p)),i}catch(t){x(e,!0)}finally{a===y&&t.removeAttribute("id")}}}return ve(e.replace(O,"$1"),t,i,n)}function ee(){var e=[];return function i(n,s){return e.push(n+" ")>t.cacheLength&&delete i[e.shift()],i[n+" "]=s}}function te(e){return e[y]=!0,e}function ie(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return _(t,"input")&&t.type===e}}function se(e){return function(t){return(_(t,"input")||_(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function re(e){return te((function(t){return t=+t,te((function(i,n){for(var s,o=e([],i.length,t),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var i,n=e?e.ownerDocument||e:L;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,d=!T.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",K),m.getById=ie((function(e){return c.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),m.disconnectedMatch=ie((function(e){return f.call(e,"*")})),m.scope=ie((function(){return l.querySelectorAll(":scope")})),m.cssHas=ie((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(X,Z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,Z);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ie((function(e){var t;c.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+A+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+y+"-]").length||h.push("~="),e.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),S=function(e,t){if(e===t)return r=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==L&&Q.contains(L,e)?-1:t===l||t.ownerDocument==L&&Q.contains(L,t)?1:s?u.call(s,e)-u.call(s,t):0:4&i?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),d&&!x[t+" "]&&(!h||!h.test(t)))try{var i=f.call(e,t);if(i||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){x(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},Q.attr=function(e,i){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[i.toLowerCase()],s=n&&p.call(t.attrHandle,i.toLowerCase())?n(e,i,!d):void 0;return void 0!==s?s:e.getAttribute(i)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,i=[],n=0,o=0;if(r=!m.sortStable,s=!m.sortStable&&a.call(e,0),E.call(e,S),r){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)I.call(e,i[n],1)}return s=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(X,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&B.test(i)&&(t=ue(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return _(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var s=Q.attr(n,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&s.indexOf(i)>-1:"$="===t?i&&s.slice(-i.length)===i:"~="===t?(" "+s.replace(j," ")+" ").indexOf(i)>-1:"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,p,f=o!==r?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;f;){for(d=t;d=d[f];)if(a?_(d,m):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?g.firstChild:g.lastChild],r&&b){for(w=(h=(c=(u=g[y]||(g[y]={}))[e]||[])[0]===v&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===t){u[e]=[v,h,w];break}}else if(b&&(w=h=(c=(u=t[y]||(t[y]={}))[e]||[])[0]===v&&c[1]),!1===w)for(;(d=++h&&d&&d[f]||(w=h=0)||p.pop())&&(!(a?_(d,m):1===d.nodeType)||!++w||(b&&((u=d[y]||(d[y]={}))[e]=[v,w]),d!==t)););return(w-=s)===n||w%n==0&&w/n>=0}}},PSEUDO:function(e,i){var n,s=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return s[y]?s(i):s.length>1?(n=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var n,o=s(e,i),r=o.length;r--;)e[n=u.call(e,o[r])]=!(t[n]=o[r])})):function(e){return s(e,0,n)}):s}},pseudos:{not:te((function(e){var t=[],i=[],n=ye(e.replace(O,"$1"));return n[y]?te((function(e,t,i,s){for(var o,r=n(e,null,s,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))})):function(e,s,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(X,Z),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return q.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(X,Z).toLowerCase(),function(t){var i;do{if(i=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return _(e,"input")&&!!e.checked||_(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return _(e,"input")&&"button"===e.type||_(e,"button")},text:function(e){var t;return _(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:re((function(){return[0]})),last:re((function(e,t){return[t-1]})),eq:re((function(e,t,i){return[i<0?i+t:i]})),even:re((function(e,t){for(var i=0;it?t:i;--n>=0;)e.push(n);return e})),gt:re((function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function fe(e,t,i,n,s){for(var o,r=[],a=0,l=e.length,c=null!=t;a-1&&(o[c]=!(r[c]=h))}}else p=fe(p===r?p.splice(y,p.length):p),s?s(null,r,p,l):g.apply(r,p)}))}function me(e){for(var n,s,o,r=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=he((function(e){return e===n}),l,!0),h=he((function(e){return u.call(n,e)>-1}),l,!0),p=[function(e,t,s){var o=!a&&(s||t!=i)||((n=t).nodeType?d(e,t,s):h(e,t,s));return n=null,o}];c1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),s,c0,o=e.length>0,r=function(r,a,c,u,h){var p,f,m,y=0,b="0",w=r&&[],C=[],k=i,x=r||o&&t.find.TAG("*",h),S=v+=null==k?1:Math.random()||.1,D=x.length;for(h&&(i=a==l||a||h);b!==D&&null!=(p=x[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(le(p),c=!d);m=e[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(v=S)}s&&((p=!m&&p)&&y--,r&&w.push(p))}if(y+=b,s&&b!==y){for(f=0;m=n[f++];)m(w,C,a,c);if(r){if(y>0)for(;b--;)w[b]||C[b]||(C[b]=$.call(u));C=fe(C)}g.apply(u,C),h&&!r&&C.length>0&&y+n.length>1&&T.uniqueSort(u)}return h&&(v=S,i=k),w};return s?te(r):r}(r,o)),a.selector=e}return a}function ve(e,i,n,s){var o,r,a,l,c,u="function"==typeof e&&e,h=!s&&ue(e=u.selector||e);if(n=n||[],1===h.length){if((r=h[0]=h[0].slice(0)).length>2&&"ID"===(a=r[0]).type&&9===i.nodeType&&d&&t.relative[r[1].type]){if(!(i=(t.find.ID(a.matches[0].replace(X,Z),i)||[])[0]))return n;u&&(i=i.parentNode),e=e.slice(r.shift().value.length)}for(o=V.needsContext.test(e)?0:r.length;o--&&(a=r[o],!t.relative[l=a.type]);)if((c=t.find[l])&&(s=c(a.matches[0].replace(X,Z),G.test(r[0].type)&&ae(i.parentNode)||i))){if(r.splice(o,1),!(e=s.length&&de(r)))return g.apply(n,s),n;break}}return(u||ye(e,h))(s,i,!d,n,!i||G.test(e)&&ae(i.parentNode)||i),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=y.split("").sort(S).join("")===y,le(),m.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Q,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Q.compile=ye,Q.select=ve,Q.setDocument=le,Q.tokenize=ue,Q.escape=T.escapeSelector,Q.getText=T.text,Q.isXML=T.isXMLDoc,Q.selectors=T.expr,Q.support=T.support,Q.uniqueSort=T.uniqueSort}();var F=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&T(e).is(i))break;n.push(e)}return n},j=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},z=T.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,i){return y(t)?T.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?T.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==i})):T.filter(t,e,i)}T.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?T.find.matchesSelector(n,e)?[n]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t1?T.uniqueSort(i):i},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"==typeof e&&z.test(e)?T(e):e||[],!1).length}});var B,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||B,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),R.test(n[1])&&T.isPlainObject(t))for(n in t)y(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=b.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==i.ready?i.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,B=T(b);var V=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&T.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,i){return F(e,"parentNode",i)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,i){return F(e,"nextSibling",i)},prevUntil:function(e,t,i){return F(e,"previousSibling",i)},siblings:function(e){return j((e.parentNode||{}).firstChild,e)},children:function(e){return j(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(_(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(i,n){var s=T.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=T.filter(n,s)),this.length>1&&(U[e]||T.uniqueSort(s),V.test(e)&&s.reverse()),this.pushStack(s)}}));var Y=/[^\x20\t\r\n\f]+/g;function G(e){return e}function X(e){throw e}function Z(e,t,i,n){var s;try{e&&y(s=e.promise)?s.call(e).done(t).fail(i):e&&y(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(Y)||[],(function(e,i){t[i]=!0})),t}(e):T.extend({},e);var t,i,n,s,o=[],r=[],a=-1,l=function(){for(s=s||e.once,n=t=!0;r.length;a=-1)for(i=r.shift();++a-1;)o.splice(i,1),i<=a&&a--})),this},has:function(e){return e?T.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||t||(o=i=""),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=[e,(i=i||[]).slice?i.slice():i],r.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(i){T.each(t,(function(t,n){var s=y(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=s&&s.apply(this,arguments);e&&y(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,s){var o=0;function r(e,t,i,s){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e=o&&(i!==X&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){t[0][3].add(r(0,n,y(s)?s:G,n.notifyWith)),t[1][3].add(r(0,n,y(e)?e:G)),t[2][3].add(r(0,n,y(i)?i:X))})).promise()},promise:function(e){return null!=e?T.extend(e,s):s}},o={};return T.each(t,(function(e,n){var r=n[2],a=n[5];s[n[1]]=r.add,a&&r.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith})),s.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),s=a.call(arguments),o=T.Deferred(),r=function(e){return function(i){n[e]=this,s[e]=arguments.length>1?a.call(arguments):i,--t||o.resolveWith(n,s)}};if(t<=1&&(Z(e,o.done(r(i)).resolve,o.reject,!t),"pending"===o.state()||y(s[i]&&s[i].then)))return o.then();for(;i--;)Z(s[i],r(i),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&K.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var J=T.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),T.ready()}T.fn.ready=function(e){return J.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||J.resolveWith(b,[T]))}}),T.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var ee=function(e,t,i,n,s,o,r){var a=0,l=e.length,c=null==i;if("object"===k(i))for(a in s=!0,i)ee(e,t,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,y(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(T(e),i)})),t))for(;a1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=ae.get(e,t),i&&(!n||Array.isArray(i)?n=ae.access(e,t,T.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=T.queue(e,t),n=i.length,s=i.shift(),o=T._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,(function(){T.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ae.get(e,i)||ae.access(e,i,{empty:T.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",i])}))})}}),T.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;xe=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),xe.appendChild(Se),m.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",m.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",m.option=!!xe.lastChild;var $e={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function Ee(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?T.merge([e],i):i}function Ie(e,t){for(var i=0,n=e.length;i",""]);var Ae=/<|?\w+;/;function Oe(e,t,i,n,s){for(var o,r,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p-1)s&&s.push(o);else if(c=me(o),r=Ee(d.appendChild(o),"script"),c&&Ie(r),i)for(u=0;o=r[u++];)_e.test(o.type||"")&&i.push(o);return d}var Pe=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Le(){return!1}function Ne(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ne(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Le;else if(!s)return e;return 1===o&&(r=s,s=function(e){return T().off(e),r.apply(this,arguments)},s.guid=r.guid||(r.guid=T.guid++)),e.each((function(){T.event.add(this,t,s,n,i)}))}function Fe(e,t,i){i?(ae.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var i,n=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),ae.set(this,t,n),this[t](),i=ae.get(this,t),ae.set(this,t,!1),n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else n&&(ae.set(this,t,T.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ae.get(e,t)&&T.event.add(e,t,Me)}T.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,c,u,d,h,p,f,g,m=ae.get(e);if(oe(e))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&T.find.matchesSelector(ge,s),i.guid||(i.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)p=g=(a=Pe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&T.expr.match.needsContext.test(s),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),T.event.global[p]=!0)},remove:function(e,t,i,n,s){var o,r,a,l,c,u,d,h,p,f,g,m=ae.hasData(e)&&ae.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(Y)||[""]).length;c--;)if(p=g=(a=Pe.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=h.length;o--;)u=h[o],!s&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],i,n,!0);T.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r,a=new Array(arguments.length),l=T.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(a[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],r={},i=0;i-1:T.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l\s*$/g;function He(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(e,t){var i,n,s,o,r,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(s in ae.remove(t,"handle events"),a)for(i=0,n=a[s].length;i1&&"string"==typeof f&&!m.checkClone&&ze.test(f))return e.each((function(s){var o=e.eq(s);g&&(t[0]=f.call(this,s,o.html())),We(o,t,i,n)}));if(h&&(o=(s=Oe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=T.map(Ee(s,"script"),Be)).length;d0&&Ie(r,!l&&Ee(e,"script")),a},cleanData:function(e){for(var t,i,n,s=T.event.special,o=0;void 0!==(i=e[o]);o++)if(oe(i)){if(t=i[ae.expando]){if(t.events)for(n in t.events)s[n]?T.event.remove(i,n):T.removeEvent(i,n,t.handle);i[ae.expando]=void 0}i[le.expando]&&(i[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!$e[(De.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;i=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ut(e,t,i){var n=Ze(e),s=(!m.boxSizingReliable()||i)&&"border-box"===T.css(e,"boxSizing",!1,n),o=s,r=Qe(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(r)){if(!i)return r;r="auto"}return(!m.boxSizingReliable()&&s||!m.reliableTrDimensions()&&_(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===T.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===T.css(e,"boxSizing",!1,n),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+ct(e,t,i||(s?"border":"content"),o,n,r)+"px"}function dt(e,t,i,n,s){return new dt.prototype.init(e,t,i,n,s)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Qe(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,r,a=se(t),l=Xe.test(t),c=e.style;if(l||(t=st(a)),r=T.cssHooks[t]||T.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:c[t];"string"===(o=typeof i)&&(s=pe.exec(i))&&s[1]&&(i=be(e,t,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(T.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var s,o,r,a=se(t);return Xe.test(t)||(t=st(a)),(r=T.cssHooks[t]||T.cssHooks[a])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=Qe(e,t,n)),"normal"===s&&t in at&&(s=at[t]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,i,n){if(i)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,n):Ke(e,rt,(function(){return ut(e,t,n)}))},set:function(e,i,n){var s,o=Ze(e),r=!m.scrollboxSize()&&"absolute"===o.position,a=(r||n)&&"border-box"===T.css(e,"boxSizing",!1,o),l=n?ct(e,t,n,a,o):0;return a&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(s=pe.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=T.css(e,t)),lt(0,i,l)}}})),T.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+fe[n]+t]=o[n]||o[n-2]||o[0];return s}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,i){var n,s,o={},r=0;if(Array.isArray(t)){for(n=Ze(e),s=t.length;r1)}}),T.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(T.cssNumber[i]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,i=dt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=dt.prototype.init,T.fx.step={};var ht,pt,ft=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){pt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(mt):n.setTimeout(mt,T.fx.interval),T.fx.tick())}function yt(){return n.setTimeout((function(){ht=void 0})),ht=Date.now()}function vt(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=fe[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function bt(e,t,i){for(var n,s=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,r=s.length;o1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,i):(1===o&&T.isXMLDoc(e)||(s=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?Ct:void 0)),void 0!==i?null===i?void T.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=T.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&_(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(Y);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),Ct={set:function(e,t,i){return!1===t?T.removeAttr(e,i):e.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=kt[t]||T.find.attr;kt[t]=function(e,t,n){var s,o,r=t.toLowerCase();return n||(o=kt[r],kt[r]=s,s=null!=i(e,t,n)?r:null,kt[r]=o),s}}));var xt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function Tt(e){return(e.match(Y)||[]).join(" ")}function Dt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,s=T.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,i,n,s,o,r;return y(e)?this.each((function(t){T(this).addClass(e.call(this,t,Dt(this)))})):(t=_t(e)).length?this.each((function(){if(n=Dt(this),i=1===this.nodeType&&" "+Tt(n)+" "){for(o=0;o-1;)i=i.replace(" "+s+" "," ");r=Tt(i),n!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,n,s,o,r=typeof e,a="string"===r||Array.isArray(e);return y(e)?this.each((function(i){T(this).toggleClass(e.call(this,i,Dt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(i=_t(e),this.each((function(){if(a)for(o=T(this),s=0;s-1)return!0;return!1}});var $t=/\r/g;T.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=y(e),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,T(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=T.map(s,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=T.valHooks[s.type]||T.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace($t,""):null==i?"":i:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,i,n,s=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=n.location,It={guid:Date.now()},At=/\?/;T.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,i,s){var o,r,a,l,c,u,d,h,f=[i||b],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(r=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[g]||{},s||!d.trigger||!1!==d.trigger.apply(i,t))){if(!s&&!d.noBubble&&!v(i)){for(l=d.delegateType||g,Ot.test(l+g)||(r=r.parentNode);r;r=r.parentNode)f.push(r),a=r;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=f[o++])&&!e.isPropagationStopped();)h=r,e.type=o>1?l:d.bindType||g,(u=(ae.get(r,"events")||Object.create(null))[e.type]&&ae.get(r,"handle"))&&u.apply(r,t),(u=c&&r[c])&&u.apply&&oe(r)&&(e.result=u.apply(r,t),!1===e.result&&e.preventDefault());return e.type=g,s||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!oe(i)||c&&y(i[g])&&!v(i)&&((a=i[c])&&(i[c]=null),T.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,Pt),i[g](),e.isPropagationStopped()&&h.removeEventListener(g,Pt),T.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(e,t,i){var n=T.extend(new T.Event,i,{type:e,isSimulated:!0});T.event.trigger(n,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return T.event.trigger(e,t,i,!0)}});var Mt=/\[\]$/,Lt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function jt(e,t,i,n){var s;if(Array.isArray(t))T.each(t,(function(t,s){i||Mt.test(e)?n(e,s):jt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,i,n)}));else if(i||"object"!==k(t))n(e,t);else for(s in t)jt(e+"["+s+"]",t[s],i,n)}T.param=function(e,t){var i,n=[],s=function(e,t){var i=y(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){s(this.name,this.value)}));else for(i in e)jt(i,e[i],t,s);return n.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ft.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:i.replace(Lt,"\r\n")}})).get()}});var zt=/%20/g,Rt=/#.*$/,Ht=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Ut={},Wt={},Yt="*/".concat("*"),Gt=b.createElement("a");function Xt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,o=t.toLowerCase().match(Y)||[];if(y(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Zt(e,t,i,n){var s={},o=e===Wt;function r(a){var l;return s[a]=!0,T.each(e[a]||[],(function(e,a){var c=a(t,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!s["*"]&&r("*")}function Kt(e,t){var i,n,s=T.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&T.extend(!0,e,n),e}Gt.href=Et.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,T.ajaxSettings),t):Kt(T.ajaxSettings,e)},ajaxPrefilter:Xt(Ut),ajaxTransport:Xt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,s,o,r,a,l,c,u,d,h,p=T.ajaxSetup({},t),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?T(f):T.event,m=T.Deferred(),y=T.Callbacks("once memory"),v=p.statusCode||{},w={},C={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=Bt.exec(o);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),S(0,t),this}};if(m.promise(x),p.url=((e||p.url||Et.href)+"").replace(Vt,Et.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Zt(Ut,p,t,x),c)return x;for(d in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!qt.test(p.type),s=p.url.replace(Rt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(zt,"+")):(h=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(At.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(Ht,"$1"),h=(At.test(s)?"&":"?")+"_="+It.guid+++h),p.url=s+h),p.ifModified&&(T.lastModified[s]&&x.setRequestHeader("If-Modified-Since",T.lastModified[s]),T.etag[s]&&x.setRequestHeader("If-None-Match",T.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Yt+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,x,p)||c))return x.abort();if(k="abort",y.add(p.complete),x.done(p.success),x.fail(p.error),i=Zt(Wt,p,t,x)){if(x.readyState=1,u&&g.trigger("ajaxSend",[x,p]),c)return x;p.async&&p.timeout>0&&(a=n.setTimeout((function(){x.abort("timeout")}),p.timeout));try{c=!1,i.send(w,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,l){var d,h,b,w,C,k=t;c||(c=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,r&&(w=function(e,t,i){for(var n,s,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,x,r)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(e,t,i,n){var s,o,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,w,x,d),d?(p.ifModified&&((C=x.getResponseHeader("Last-Modified"))&&(T.lastModified[s]=C),(C=x.getResponseHeader("etag"))&&(T.etag[s]=C)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=w.state,h=w.data,d=!(b=w.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(t||k)+"",d?m.resolveWith(f,[h,k,x]):m.rejectWith(f,[x,k,b]),x.statusCode(v),v=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[x,p,d?h:b]),y.fireWith(f,[x,k]),u&&(g.trigger("ajaxComplete",[x,p]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,i){return T.get(e,t,i,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,i,n,s){return y(i)&&(s=s||n,n=i,i=void 0),T.ajax(T.extend({url:e,type:t,dataType:s,data:i,success:n},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,i){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,i)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(i){T(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=T.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,T.ajaxTransport((function(e){var t,i;if(m.cors||Qt&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Jt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,s){t=T("