// source --> https://www.ytviews.in/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=7.4.2 
jQuery(function(d){if("undefined"==typeof wc_add_to_cart_params)return!1;var t=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),d(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("ajax_request_not_sent.adding_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)};t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0<t.requests.length&&t.run()},d.ajax(this.requests[0])},t.prototype.onAddToCart=function(t){var e,a=d(this);if(a.is(".ajax_add_to_cart"))return!a.attr("data-product_id")||(t.preventDefault(),a.removeClass("added"),a.addClass("loading"),!1===d(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[a])?(d(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,a]),!0):(e={},d.each(a.data(),function(t,a){e[t]=a}),d.each(a[0].dataset,function(t,a){e[t]=a}),d(document.body).trigger("adding_to_cart",[a,e]),void t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:e,success:function(t){t&&(t.error&&t.product_url?window.location=t.product_url:"yes"===wc_add_to_cart_params.cart_redirect_after_add?window.location=wc_add_to_cart_params.cart_url:d(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,a]))},dataType:"json"})))},t.prototype.onRemoveFromCart=function(t){var a=d(this),e=a.closest(".woocommerce-mini-cart-item");t.preventDefault(),e.block({message:null,overlayCSS:{opacity:.6}}),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:a.data("cart_item_key")},success:function(t){t&&t.fragments?d(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,a]):window.location=a.attr("href")},error:function(){window.location=a.attr("href")},dataType:"json"})},t.prototype.updateButton=function(t,a,e,r){(r=void 0!==r&&r)&&(r.removeClass("loading"),a&&r.addClass("added"),a&&!wc_add_to_cart_params.is_cart&&0===r.parent().find(".added_to_cart").length&&r.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>"),d(document.body).trigger("wc_cart_button_updated",[r]))},t.prototype.updateFragments=function(t,a){a&&(d.each(a,function(t){d(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),d.each(a,function(t,a){d(t).replaceWith(a),d(t).stop(!0).css("opacity","1").unblock()}),d(document.body).trigger("wc_fragments_loaded"))},new t});
// source --> https://www.ytviews.in/wp-content/plugins/woocommerce/assets/js/zoom/jquery.zoom.min.js?ver=1.7.21-wc.7.4.2 
/*!
	Zoom 1.7.21
	license: MIT
	http://www.jacklmoore.com/zoom
*/
!function(d){var n={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};d.zoom=function(o,t,e,n){var i,u,a,c,r,l,m,f=d(o),s=f.css("position"),h=d(t);return o.style.position=/(absolute|fixed)/.test(s)?s:"relative",o.style.overflow="hidden",e.style.width=e.style.height="",d(e).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:e.width*n,height:e.height*n,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(o),{init:function(){u=f.outerWidth(),i=f.outerHeight(),a=t===o?(c=u,i):(c=h.outerWidth(),h.outerHeight()),r=(e.width-u)/c,l=(e.height-i)/a,m=h.offset()},move:function(o){var t=o.pageX-m.left,o=o.pageY-m.top,o=Math.max(Math.min(o,a),0),t=Math.max(Math.min(t,c),0);e.style.left=t*-r+"px",e.style.top=o*-l+"px"}}},d.fn.zoom=function(e){return this.each(function(){var i=d.extend({},n,e||{}),u=i.target&&d(i.target)[0]||this,o=this,a=d(o),c=document.createElement("img"),r=d(c),l="mousemove.zoom",m=!1,f=!1;if(!i.url){var t=o.querySelector("img");if(t&&(i.url=t.getAttribute("data-src")||t.currentSrc||t.src,i.alt=t.getAttribute("data-alt")||t.alt),!i.url)return}a.one("zoom.destroy",function(o,t){a.off(".zoom"),u.style.position=o,u.style.overflow=t,c.onload=null,r.remove()}.bind(this,u.style.position,u.style.overflow)),c.onload=function(){var t=d.zoom(u,o,c,i.magnify);function e(o){t.init(),t.move(o),r.stop().fadeTo(d.support.opacity?i.duration:0,1,"function"==typeof i.onZoomIn&&i.onZoomIn.call(c))}function n(){r.stop().fadeTo(i.duration,0,"function"==typeof i.onZoomOut&&i.onZoomOut.call(c))}"grab"===i.on?a.on("mousedown.zoom",function(o){1===o.which&&(d(document).one("mouseup.zoom",function(){n(),d(document).off(l,t.move)}),e(o),d(document).on(l,t.move),o.preventDefault())}):"click"===i.on?a.on("click.zoom",function(o){if(!m)return m=!0,e(o),d(document).on(l,t.move),d(document).one("click.zoom",function(){n(),m=!1,d(document).off(l,t.move)}),!1}):"toggle"===i.on?a.on("click.zoom",function(o){m?n():e(o),m=!m}):"mouseover"===i.on&&(t.init(),a.on("mouseenter.zoom",e).on("mouseleave.zoom",n).on(l,t.move)),i.touch&&a.on("touchstart.zoom",function(o){o.preventDefault(),f?(f=!1,n()):(f=!0,e(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(o){o.preventDefault(),t.move(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0])}).on("touchend.zoom",function(o){o.preventDefault(),f&&(f=!1,n())}),"function"==typeof i.callback&&i.callback.call(c)},c.setAttribute("role","presentation"),c.alt=i.alt||"",c.src=i.url})},d.fn.zoom.defaults=n}(window.jQuery);
// source --> https://www.ytviews.in/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.7.4.2 
!function(u){var a=!0;u.flexslider=function(p,e){var t,m=u(p),r=("undefined"==typeof e.rtl&&"rtl"==u("html").attr("dir")&&(e.rtl=!0),m.vars=u.extend({},u.flexslider.defaults,e),m.vars.namespace),f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,o=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&m.vars.touch,s="click touchend MSPointerUp keyup",l="",g="vertical"===m.vars.direction,h=m.vars.reverse,S=0<m.vars.itemWidth,x="fade"===m.vars.animation,d=""!==m.vars.asNavFor,c={};u.data(p,"flexslider",m),c={init:function(){m.animating=!1,m.currentSlide=parseInt(m.vars.startAt||0,10),isNaN(m.currentSlide)&&(m.currentSlide=0),m.animatingTo=m.currentSlide,m.atEnd=0===m.currentSlide||m.currentSlide===m.last,m.containerSelector=m.vars.selector.substr(0,m.vars.selector.search(" ")),m.slides=u(m.vars.selector,m),m.container=u(m.containerSelector,m),m.count=m.slides.length,m.syncExists=0<u(m.vars.sync).length,"slide"===m.vars.animation&&(m.vars.animation="swing"),m.prop=g?"top":m.vars.rtl?"marginRight":"marginLeft",m.args={},m.manualPause=!1,m.stopped=!1,m.started=!1,m.startTimeout=null,m.transitions=!m.vars.video&&!x&&m.vars.useCSS&&function(){var e,t=document.createElement("div"),a=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(e in a)if(t.style[a[e]]!==undefined)return m.pfx=a[e].replace("Perspective","").toLowerCase(),m.prop="-"+m.pfx+"-transform",!0;return!1}(),m.isFirefox=-1<navigator.userAgent.toLowerCase().indexOf("firefox"),(m.ensureAnimationEnd="")!==m.vars.controlsContainer&&(m.controlsContainer=0<u(m.vars.controlsContainer).length&&u(m.vars.controlsContainer)),""!==m.vars.manualControls&&(m.manualControls=0<u(m.vars.manualControls).length&&u(m.vars.manualControls)),""!==m.vars.customDirectionNav&&(m.customDirectionNav=2===u(m.vars.customDirectionNav).length&&u(m.vars.customDirectionNav)),m.vars.randomize&&(m.slides.sort(function(){return Math.round(Math.random())-.5}),m.container.empty().append(m.slides)),m.doMath(),m.setup("init"),m.vars.controlNav&&c.controlNav.setup(),m.vars.directionNav&&c.directionNav.setup(),m.vars.keyboard&&(1===u(m.containerSelector).length||m.vars.multipleKeyboard)&&u(document).on("keyup",function(e){var e=e.keyCode;m.animating||39!==e&&37!==e||(e=m.vars.rtl?37===e?m.getTarget("next"):39===e&&m.getTarget("prev"):39===e?m.getTarget("next"):37===e&&m.getTarget("prev"),m.flexAnimate(e,m.vars.pauseOnAction))}),m.vars.mousewheel&&m.on("mousewheel",function(e,t,a,n){e.preventDefault();e=t<0?m.getTarget("next"):m.getTarget("prev");m.flexAnimate(e,m.vars.pauseOnAction)}),m.vars.pausePlay&&c.pausePlay.setup(),m.vars.slideshow&&m.vars.pauseInvisible&&c.pauseInvisible.init(),m.vars.slideshow&&(m.vars.pauseOnHover&&m.on("mouseenter",function(){m.manualPlay||m.manualPause||m.pause()}).on("mouseleave",function(){m.manualPause||m.manualPlay||m.stopped||m.play()}),m.vars.pauseInvisible&&c.pauseInvisible.isHidden()||(0<m.vars.initDelay?m.startTimeout=setTimeout(m.play,m.vars.initDelay):m.play())),d&&c.asNav.setup(),o&&m.vars.touch&&c.touch(),x&&!m.vars.smoothHeight||u(window).on("resize orientationchange focus",c.resize),m.find("img").attr("draggable","false"),setTimeout(function(){m.vars.start(m)},200)},asNav:{setup:function(){m.asNav=!0,m.animatingTo=Math.floor(m.currentSlide/m.move),m.currentItem=m.currentSlide,m.slides.removeClass(r+"active-slide").eq(m.currentItem).addClass(r+"active-slide"),f?(p._slider=m).slides.each(function(){var e=this;e._gesture=new MSGesture,(e._gesture.target=e).addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var e=u(this),t=e.index();u(m.vars.asNavFor).data("flexslider").animating||e.hasClass("active")||(m.direction=m.currentItem<t?"next":"prev",m.flexAnimate(t,m.vars.pauseOnAction,!1,!0,!0))})}):m.slides.on(s,function(e){e.preventDefault();var e=u(this),t=e.index(),a=m.vars.rtl?-1*(e.offset().right-u(m).scrollLeft()):e.offset().left-u(m).scrollLeft();a<=0&&e.hasClass(r+"active-slide")?m.flexAnimate(m.getTarget("prev"),!0):u(m.vars.asNavFor).data("flexslider").animating||e.hasClass(r+"active-slide")||(m.direction=m.currentItem<t?"next":"prev",m.flexAnimate(t,m.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){m.manualControls?c.controlNav.setupManual():c.controlNav.setupPaging()},setupPaging:function(){var e,t="thumbnails"===m.vars.controlNav?"control-thumbs":"control-paging",a=1;if(m.controlNavScaffold=u('<ol class="'+r+"control-nav "+r+t+'"></ol>'),1<m.pagingCount)for(var n=0;n<m.pagingCount;n++){var i=m.slides.eq(n),i=(undefined===i.attr("data-thumb-alt")&&i.attr("data-thumb-alt",""),e=u("<a></a>").attr("href","#").text(a),"thumbnails"===m.vars.controlNav&&(e=u("<img/>",{onload:"this.width = this.naturalWidth; this.height = this.naturalHeight",src:i.attr("data-thumb"),alt:i.attr("alt")})),""!==i.attr("data-thumb-alt")&&e.attr("alt",i.attr("data-thumb-alt")),"thumbnails"!==m.vars.controlNav||!0!==m.vars.thumbCaptions||""!==(i=i.attr("data-thumbcaption"))&&undefined!==i&&(i=u("<span></span>").addClass(r+"caption").text(i),e.append(i)),u("<li>"));e.appendTo(i),i.append("</li>"),m.controlNavScaffold.append(i),a++}(m.controlsContainer?u(m.controlsContainer):m).append(m.controlNavScaffold),c.controlNav.set(),c.controlNav.active(),m.controlNavScaffold.on(s,"a, img",function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=m.controlNav.index(t),t.hasClass(r+"active")||(m.direction=a>m.currentSlide?"next":"prev",m.flexAnimate(a,m.vars.pauseOnAction))),""===l&&(l=e.type),c.setToClearWatchedEvent()})},setupManual:function(){m.controlNav=m.manualControls,c.controlNav.active(),m.controlNav.on(s,function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=m.controlNav.index(t),t.hasClass(r+"active")||(a>m.currentSlide?m.direction="next":m.direction="prev",m.flexAnimate(a,m.vars.pauseOnAction))),""===l&&(l=e.type),c.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===m.vars.controlNav?"img":"a";m.controlNav=u("."+r+"control-nav li "+e,m.controlsContainer||m)},active:function(){m.controlNav.removeClass(r+"active").eq(m.animatingTo).addClass(r+"active")},update:function(e,t){1<m.pagingCount&&"add"===e?m.controlNavScaffold.append(u('<li><a href="#">'+m.count+"</a></li>")):(1===m.pagingCount?m.controlNavScaffold.find("li"):m.controlNav.eq(t).closest("li")).remove(),c.controlNav.set(),1<m.pagingCount&&m.pagingCount!==m.controlNav.length?m.update(t,e):c.controlNav.active()}},directionNav:{setup:function(){var e=u('<ul class="'+r+'direction-nav"><li class="'+r+'nav-prev"><a class="'+r+'prev" href="#">'+m.vars.prevText+'</a></li><li class="'+r+'nav-next"><a class="'+r+'next" href="#">'+m.vars.nextText+"</a></li></ul>");m.customDirectionNav?m.directionNav=m.customDirectionNav:m.controlsContainer?(u(m.controlsContainer).append(e),m.directionNav=u("."+r+"direction-nav li a",m.controlsContainer)):(m.append(e),m.directionNav=u("."+r+"direction-nav li a",m)),c.directionNav.update(),m.directionNav.on(s,function(e){var t;e.preventDefault(),""!==l&&l!==e.type||(t=u(this).hasClass(r+"next")?m.getTarget("next"):m.getTarget("prev"),m.flexAnimate(t,m.vars.pauseOnAction)),""===l&&(l=e.type),c.setToClearWatchedEvent()})},update:function(){var e=r+"disabled";1===m.pagingCount?m.directionNav.addClass(e).attr("tabindex","-1"):m.vars.animationLoop?m.directionNav.removeClass(e).prop("tabindex","-1"):0===m.animatingTo?m.directionNav.removeClass(e).filter("."+r+"prev").addClass(e).attr("tabindex","-1"):m.animatingTo===m.last?m.directionNav.removeClass(e).filter("."+r+"next").addClass(e).attr("tabindex","-1"):m.directionNav.removeClass(e).prop("tabindex","-1")}},pausePlay:{setup:function(){var e=u('<div class="'+r+'pauseplay"><a href="#"></a></div>');m.controlsContainer?(m.controlsContainer.append(e),m.pausePlay=u("."+r+"pauseplay a",m.controlsContainer)):(m.append(e),m.pausePlay=u("."+r+"pauseplay a",m)),c.pausePlay.update(m.vars.slideshow?r+"pause":r+"play"),m.pausePlay.on(s,function(e){e.preventDefault(),""!==l&&l!==e.type||(u(this).hasClass(r+"pause")?(m.manualPause=!0,m.manualPlay=!1,m.pause()):(m.manualPause=!1,m.manualPlay=!0,m.play())),""===l&&(l=e.type),c.setToClearWatchedEvent()})},update:function(e){"play"===e?m.pausePlay.removeClass(r+"pause").addClass(r+"play").html(m.vars.playText):m.pausePlay.removeClass(r+"play").addClass(r+"pause").html(m.vars.pauseText)}},touch:function(){var n,i,s,r,o,l,d,c,u=!1,t=0,a=0,v=0;f?(p.style.msTouchAction="none",p._gesture=new MSGesture,(p._gesture.target=p).addEventListener("MSPointerDown",function(e){e.stopPropagation(),m.animating?e.preventDefault():(m.pause(),p._gesture.addPointer(e.pointerId),v=0,r=g?m.h:m.w,l=Number(new Date),s=S&&h&&m.animatingTo===m.last?0:S&&h?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:S&&m.currentSlide===m.last?m.limit:S?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:h?(m.last-m.currentSlide+m.cloneOffset)*r:(m.currentSlide+m.cloneOffset)*r)},!1),p._slider=m,p.addEventListener("MSGestureChange",function(e){e.stopPropagation();var t,a,n=e.target._slider;n&&(t=-e.translationX,a=-e.translationY,v+=g?a:t,o=(n.vars.rtl?-1:1)*v,u=g?Math.abs(v)<Math.abs(-t):Math.abs(v)<Math.abs(-a),e.detail===e.MSGESTURE_FLAG_INERTIA?setImmediate(function(){p._gesture.stop()}):(!u||500<Number(new Date)-l)&&(e.preventDefault(),!x&&n.transitions&&(n.vars.animationLoop||(o=v/(0===n.currentSlide&&v<0||n.currentSlide===n.last&&0<v?Math.abs(v)/r+2:1)),n.setProps(s+o,"setTouch"))))},!1),p.addEventListener("MSGestureEnd",function(e){e.stopPropagation();var t,a,e=e.target._slider;e&&(e.animatingTo!==e.currentSlide||u||null===o||(a=0<(t=h?-o:o)?e.getTarget("next"):e.getTarget("prev"),e.canAdvance(a)&&(Number(new Date)-l<550&&50<Math.abs(t)||Math.abs(t)>r/2)?e.flexAnimate(a,e.vars.pauseOnAction):x||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)),s=o=i=n=null,v=0)},!1)):(d=function(e){t=e.touches[0].pageX,a=e.touches[0].pageY,o=g?n-a:(m.vars.rtl?-1:1)*(n-t);(!(u=g?Math.abs(o)<Math.abs(t-i):Math.abs(o)<Math.abs(a-i))||500<Number(new Date)-l)&&(e.preventDefault(),!x&&m.transitions&&(m.vars.animationLoop||(o/=0===m.currentSlide&&o<0||m.currentSlide===m.last&&0<o?Math.abs(o)/r+2:1),m.setProps(s+o,"setTouch")))},c=function(e){var t,a;p.removeEventListener("touchmove",d,!1),m.animatingTo!==m.currentSlide||u||null===o||(a=0<(t=h?-o:o)?m.getTarget("next"):m.getTarget("prev"),m.canAdvance(a)&&(Number(new Date)-l<550&&50<Math.abs(t)||Math.abs(t)>r/2)?m.flexAnimate(a,m.vars.pauseOnAction):x||m.flexAnimate(m.currentSlide,m.vars.pauseOnAction,!0)),p.removeEventListener("touchend",c,!1),s=o=i=n=null},p.addEventListener("touchstart",function(e){m.animating?e.preventDefault():!window.navigator.msPointerEnabled&&1!==e.touches.length||(m.pause(),r=g?m.h:m.w,l=Number(new Date),t=e.touches[0].pageX,a=e.touches[0].pageY,s=S&&h&&m.animatingTo===m.last?0:S&&h?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:S&&m.currentSlide===m.last?m.limit:S?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:h?(m.last-m.currentSlide+m.cloneOffset)*r:(m.currentSlide+m.cloneOffset)*r,n=g?a:t,i=g?t:a,p.addEventListener("touchmove",d,!1),p.addEventListener("touchend",c,!1))},!1))},resize:function(){!m.animating&&m.is(":visible")&&(S||m.doMath(),x?c.smoothHeight():S?(m.slides.width(m.computedW),m.update(m.pagingCount),m.setProps()):g?(m.viewport.height(m.h),m.setProps(m.h,"setTotal")):(m.setProps(m.computedW,"setTotal"),m.newSlides.width(m.computedW),m.vars.smoothHeight&&c.smoothHeight()))},smoothHeight:function(e){var t;g&&!x||(t=x?m:m.viewport,e?t.animate({height:m.slides.eq(m.animatingTo).innerHeight()},e):t.innerHeight(m.slides.eq(m.animatingTo).innerHeight()))},sync:function(e){var t=u(m.vars.sync).data("flexslider"),a=m.animatingTo;switch(e){case"animate":t.flexAnimate(a,m.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=u(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=c.pauseInvisible.getHiddenProp();e&&(e=e.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(e,function(){c.pauseInvisible.isHidden()?m.startTimeout?clearTimeout(m.startTimeout):m.pause():!m.started&&0<m.vars.initDelay?setTimeout(m.play,m.vars.initDelay):m.play()}))},isHidden:function(){var e=c.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(t),t=setTimeout(function(){l=""},3e3)}},m.flexAnimate=function(e,t,a,n,i){if(m.vars.animationLoop||e===m.currentSlide||(m.direction=e>m.currentSlide?"next":"prev"),d&&1===m.pagingCount&&(m.direction=m.currentItem<e?"next":"prev"),!m.animating&&(m.canAdvance(e,i)||a)&&m.is(":visible")){if(d&&n){a=u(m.vars.asNavFor).data("flexslider");if(m.atEnd=0===e||e===m.count-1,a.flexAnimate(e,!0,!1,!0,i),m.direction=m.currentItem<e?"next":"prev",a.direction=m.direction,Math.ceil((e+1)/m.visible)-1===m.currentSlide||0===e)return m.currentItem=e,m.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),!1;m.currentItem=e,m.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),e=Math.floor(e/m.visible)}var s;m.animating=!0,m.animatingTo=e,t&&m.pause(),m.vars.before(m),m.syncExists&&!i&&c.sync("animate"),m.vars.controlNav&&c.controlNav.active(),S||m.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),m.atEnd=0===e||e===m.last,m.vars.directionNav&&c.directionNav.update(),e===m.last&&(m.vars.end(m),m.vars.animationLoop||m.pause()),x?o?(m.slides.eq(m.currentSlide).css({opacity:0,zIndex:1}),m.slides.eq(e).css({opacity:1,zIndex:2}),m.wrapup(s)):(m.slides.eq(m.currentSlide).css({zIndex:1}).animate({opacity:0},m.vars.animationSpeed,m.vars.easing),m.slides.eq(e).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing,m.wrapup)):(s=g?m.slides.filter(":first").height():m.computedW,t=S?(n=m.vars.itemMargin,(a=(m.itemW+n)*m.move*m.animatingTo)>m.limit&&1!==m.visible?m.limit:a):0===m.currentSlide&&e===m.count-1&&m.vars.animationLoop&&"next"!==m.direction?h?(m.count+m.cloneOffset)*s:0:m.currentSlide===m.last&&0===e&&m.vars.animationLoop&&"prev"!==m.direction?h?0:(m.count+1)*s:h?(m.count-1-e+m.cloneOffset)*s:(e+m.cloneOffset)*s,m.setProps(t,"",m.vars.animationSpeed),m.transitions?(m.vars.animationLoop&&m.atEnd||(m.animating=!1,m.currentSlide=m.animatingTo),m.container.off("webkitTransitionEnd transitionend"),m.container.on("webkitTransitionEnd transitionend",function(){clearTimeout(m.ensureAnimationEnd),m.wrapup(s)}),clearTimeout(m.ensureAnimationEnd),m.ensureAnimationEnd=setTimeout(function(){m.wrapup(s)},m.vars.animationSpeed+100)):m.container.animate(m.args,m.vars.animationSpeed,m.vars.easing,function(){m.wrapup(s)})),m.vars.smoothHeight&&c.smoothHeight(m.vars.animationSpeed)}},m.wrapup=function(e){x||S||(0===m.currentSlide&&m.animatingTo===m.last&&m.vars.animationLoop?m.setProps(e,"jumpEnd"):m.currentSlide===m.last&&0===m.animatingTo&&m.vars.animationLoop&&m.setProps(e,"jumpStart")),m.animating=!1,m.currentSlide=m.animatingTo,m.vars.after(m)},m.animateSlides=function(){!m.animating&&a&&m.flexAnimate(m.getTarget("next"))},m.pause=function(){clearInterval(m.animatedSlides),m.animatedSlides=null,m.playing=!1,m.vars.pausePlay&&c.pausePlay.update("play"),m.syncExists&&c.sync("pause")},m.play=function(){m.playing&&clearInterval(m.animatedSlides),m.animatedSlides=m.animatedSlides||setInterval(m.animateSlides,m.vars.slideshowSpeed),m.started=m.playing=!0,m.vars.pausePlay&&c.pausePlay.update("pause"),m.syncExists&&c.sync("play")},m.stop=function(){m.pause(),m.stopped=!0},m.canAdvance=function(e,t){var a=d?m.pagingCount-1:m.last;return!!t||(d&&m.currentItem===m.count-1&&0===e&&"prev"===m.direction||(!d||0!==m.currentItem||e!==m.pagingCount-1||"next"===m.direction)&&((e!==m.currentSlide||d)&&(!!m.vars.animationLoop||(!m.atEnd||0!==m.currentSlide||e!==a||"next"===m.direction)&&(!m.atEnd||m.currentSlide!==a||0!==e||"next"!==m.direction))))},m.getTarget=function(e){return"next"===(m.direction=e)?m.currentSlide===m.last?0:m.currentSlide+1:0===m.currentSlide?m.last:m.currentSlide-1},m.setProps=function(e,t,a){n=e||(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo;var n,i=function(){if(S)return"setTouch"===t?e:h&&m.animatingTo===m.last?0:h?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:m.animatingTo===m.last?m.limit:n;switch(t){case"setTotal":return h?(m.count-1-m.currentSlide+m.cloneOffset)*e:(m.currentSlide+m.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return h?e:m.count*e;case"jumpStart":return h?m.count*e:e;default:return e}}()*(m.vars.rtl?1:-1)+"px";m.transitions&&(i=g?"translate3d(0,"+i+",0)":"translate3d("+parseInt(i)+"px,0,0)",a=a!==undefined?a/1e3+"s":"0s",m.container.css("-"+m.pfx+"-transition-duration",a),m.container.css("transition-duration",a)),m.args[m.prop]=i,!m.transitions&&a!==undefined||m.container.css(m.args),m.container.css("transform",i)},m.setup=function(e){var t,a;x?(m.vars.rtl?m.slides.css({width:"100%","float":"right",marginLeft:"-100%",position:"relative"}):m.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(o?m.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+m.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(m.currentSlide).css({opacity:1,zIndex:2}):0==m.vars.fadeFirstSlide?m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).css({opacity:1}):m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing)),m.vars.smoothHeight&&c.smoothHeight()):("init"===e&&(m.viewport=u('<div class="'+r+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(m).append(m.container),m.cloneCount=0,m.cloneOffset=0,h&&(a=u.makeArray(m.slides).reverse(),m.slides=u(a),m.container.empty().append(m.slides))),m.vars.animationLoop&&!S&&(m.cloneCount=2,m.cloneOffset=1,"init"!==e&&m.container.find(".clone").remove(),m.container.append(c.uniqueID(m.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(c.uniqueID(m.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),m.newSlides=u(m.vars.selector,m),t=h?m.count-1-m.currentSlide+m.cloneOffset:m.currentSlide+m.cloneOffset,g&&!S?(m.container.height(200*(m.count+m.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){m.newSlides.css({display:"block"}),m.doMath(),m.viewport.height(m.h),m.setProps(t*m.h,"init")},"init"===e?100:0)):(m.container.width(200*(m.count+m.cloneCount)+"%"),m.setProps(t*m.computedW,"init"),setTimeout(function(){m.doMath(),m.vars.rtl?m.newSlides.css({width:m.computedW,marginRight:m.computedM,"float":"right",display:"block"}):m.newSlides.css({width:m.computedW,marginRight:m.computedM,"float":"left",display:"block"}),m.vars.smoothHeight&&c.smoothHeight()},"init"===e?100:0))),S||m.slides.removeClass(r+"active-slide").eq(m.currentSlide).addClass(r+"active-slide"),m.vars.init(m)},m.doMath=function(){var e=m.slides.first(),t=m.vars.itemMargin,a=m.vars.minItems,n=m.vars.maxItems;m.w=(m.viewport===undefined?m:m.viewport).width(),m.isFirefox&&(m.w=m.width()),m.h=e.height(),m.boxPadding=e.outerWidth()-e.width(),S?(m.itemT=m.vars.itemWidth+t,m.itemM=t,m.minW=a?a*m.itemT:m.w,m.maxW=n?n*m.itemT-t:m.w,m.itemW=m.minW>m.w?(m.w-t*(a-1))/a:m.maxW<m.w?(m.w-t*(n-1))/n:m.vars.itemWidth>m.w?m.w:m.vars.itemWidth,m.visible=Math.floor(m.w/m.itemW),m.move=0<m.vars.move&&m.vars.move<m.visible?m.vars.move:m.visible,m.pagingCount=Math.ceil((m.count-m.visible)/m.move+1),m.last=m.pagingCount-1,m.limit=1===m.pagingCount?0:m.vars.itemWidth>m.w?m.itemW*(m.count-1)+t*(m.count-1):(m.itemW+t)*m.count-m.w-t):(m.itemW=m.w,m.itemM=t,m.pagingCount=m.count,m.last=m.count-1),m.computedW=m.itemW-m.boxPadding,m.computedM=m.itemM},m.update=function(e,t){m.doMath(),S||(e<m.currentSlide?m.currentSlide+=1:e<=m.currentSlide&&0!==e&&--m.currentSlide,m.animatingTo=m.currentSlide),m.vars.controlNav&&!m.manualControls&&("add"===t&&!S||m.pagingCount>m.controlNav.length?c.controlNav.update("add"):("remove"===t&&!S||m.pagingCount<m.controlNav.length)&&(S&&m.currentSlide>m.last&&(--m.currentSlide,--m.animatingTo),c.controlNav.update("remove",m.last))),m.vars.directionNav&&c.directionNav.update()},m.addSlide=function(e,t){e=u(e);m.count+=1,m.last=m.count-1,g&&h?t!==undefined?m.slides.eq(m.count-t).after(e):m.container.prepend(e):t!==undefined?m.slides.eq(t).before(e):m.container.append(e),m.update(t,"add"),m.slides=u(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.added(m)},m.removeSlide=function(e){var t=isNaN(e)?m.slides.index(u(e)):e;--m.count,m.last=m.count-1,(isNaN(e)?u(e,m.slides):g&&h?m.slides.eq(m.last):m.slides.eq(e)).remove(),m.doMath(),m.update(t,"remove"),m.slides=u(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.removed(m)},c.init()},u(window).on("blur",function(e){a=!1}).on("focus",function(e){a=!0}),u.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},u.fn.flexslider=function(a){if("object"==typeof(a=a===undefined?{}:a))return this.each(function(){var e=u(this),t=a.selector||".slides > li",t=e.find(t);1===t.length&&!1===a.allowOneSlide||0===t.length?(t.fadeIn(400),a.start&&a.start(e)):e.data("flexslider")===undefined&&new u.flexslider(this,a)});var e=u(this).data("flexslider");switch(a){case"play":e.play();break;case"pause":e.pause();break;case"stop":e.stop();break;case"next":e.flexAnimate(e.getTarget("next"),!0);break;case"prev":case"previous":e.flexAnimate(e.getTarget("prev"),!0);break;default:"number"==typeof a&&e.flexAnimate(a,!0)}}}(jQuery);
// source --> https://www.ytviews.in/wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.min.js?ver=4.1.1-wc.7.4.2 
/*! PhotoSwipe - v4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 Dmitry Semenov; */
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(m,z,t,e){var _,N,U,p,H,Y,W,B,i,f,G,X,V,K,q,r,$,j,J,Q,ee,te,ne,o,ie,oe,ae,re,le,se,l,ce,ue,de,me,pe,fe,he,s,ye,xe,ge,ve,we,c,u,be,d,Ie,h,Ce,De,Te,Me,Se,Ae,y={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[o](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return e!==undefined?e:document.documentElement.scrollTop},unbind:function(e,t,n){y.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){y.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(y.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)!t.hasOwnProperty(i)||n&&e.hasOwnProperty(i)||(e[i]=t[i])},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(y.features)return y.features;for(var e,t,n,i,o,a=y.createEl().style,r="",l={},s=(l.oldIE=document.all&&!document.addEventListener,l.touch="ontouchstart"in window,window.requestAnimationFrame&&(l.raf=window.requestAnimationFrame,l.caf=window.cancelAnimationFrame),l.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,l.pointerEvent||(e=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&1<=(t=parseInt(t[1],10))&&t<8&&(l.isOldIOSPhone=!0),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(l.isOldAndroid=!0),l.androidVersion=t),l.isMobileOpera=/opera mini|opera mobi/i.test(e)),["transform","perspective","animationName"]),c=["","webkit","Moz","ms","O"],u=0;u<4;u++){for(var r=c[u],d=0;d<3;d++)n=s[d],i=r+(r?n.charAt(0).toUpperCase()+n.slice(1):n),!l[n]&&i in a&&(l[n]=i);r&&!l.raf&&(r=r.toLowerCase(),l.raf=window[r+"RequestAnimationFrame"],l.raf&&(l.caf=window[r+"CancelAnimationFrame"]||window[r+"CancelRequestAnimationFrame"]))}return l.raf||(o=0,l.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-o)),i=window.setTimeout(function(){e(t+n)},n);return o=t+n,i},l.caf=function(e){clearTimeout(e)}),l.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,y.features=l}},x=(y.detectFeatures(),y.features.oldIE&&(y.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(o=t[l])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)}),this),Ee=25,g={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"},e=(y.extend(g,e),function(){return{x:0,y:0}}),Oe=e(),ke=e(),v=e(),w={},Re=0,Pe={},b=e(),I=0,Ze=!0,Fe=[],Le={},ze=!1,_e=function(e,t){y.extend(x,t.publicMethods),Fe.push(e)},Ne=function(e){var t=P();return t-1<e?e-t:e<0?t+e:e},Ue={},a=function(e,t){return Ue[e]||(Ue[e]=[]),Ue[e].push(t)},C=function(e){var t=Ue[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(x,n)}},D=function(){return(new Date).getTime()},T=function(e){Me=e,x.bg.style.opacity=e*g.bgOpacity},He=function(e,t,n,i,o){(!ze||o&&o!==x.currItem)&&(i/=(o||x.currItem).fitRatio),e[te]=X+t+"px, "+n+"px"+V+" scale("+i+")"},M=function(e){Ie&&(e&&(f>x.currItem.fitRatio?ze||(sn(x.currItem,!1,!0),ze=!0):ze&&(sn(x.currItem),ze=!1)),He(Ie,v.x,v.y,f))},Ye=function(e){e.container&&He(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},We=function(e,t){t[te]=X+e+"px, 0px"+V},Be=function(e,t){var n;!g.loop&&t&&(t=p+(b.x*Re-e)/b.x,n=Math.round(e-R.x),(t<0&&0<n||t>=P()-1&&n<0)&&(e=R.x+n*g.mainScrollEndFriction)),R.x=e,We(e,H)},Ge=function(e,t){var n=vt[e]-Pe[e];return ke[e]+Oe[e]+n-t/G*n},S=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Xe=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ve=null,Ke=function(){Ve&&(y.unbind(document,"mousemove",Ke),y.addClass(m,"pswp--has_mouse"),g.mouseUsed=!0,C("mouseUsed")),Ve=setTimeout(function(){Ve=null},100)},qe=function(e,t){e=on(x.currItem,w,e);return t&&(d=e),e},$e=function(e){return(e=e||x.currItem).initialZoomLevel},je=function(e){return 0<(e=e||x.currItem).w?g.maxSpreadZoom:1},Je=function(e,t,n,i){return i===x.currItem.initialZoomLevel?(n[e]=x.currItem.initialPosition[e],!0):(n[e]=Ge(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Qe=function(e){var t="";g.escKey&&27===e.keyCode?t="close":g.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),!t||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,x[t]())},et=function(e){e&&(ge||xe||h||fe)&&(e.preventDefault(),e.stopPropagation())},tt=function(){x.setScrollOffset(0,y.getScrollY())},A={},nt=0,it=function(e){A[e]&&(A[e].raf&&oe(A[e].raf),nt--,delete A[e])},ot=function(e){A[e]&&it(e),A[e]||(nt++,A[e]={})},at=function(){for(var e in A)A.hasOwnProperty(e)&&it(e)},rt=function(e,t,n,i,o,a,r){var l,s=D(),c=(ot(e),function(){A[e]&&(l=D()-s,i<=l?(it(e),a(n),r&&r()):(a((n-t)*o(l/i)+t),A[e].raf=ie(c)))});c()},lt={shout:C,listen:a,viewportSize:w,options:g,isMainScrollAnimating:function(){return h},getZoomLevel:function(){return f},getCurrentIndex:function(){return p},isDragging:function(){return s},isZooming:function(){return u},setScrollOffset:function(e,t){Pe.x=e,se=Pe.y=t,C("updateScrollOffset",Pe)},applyZoomPan:function(e,t,n,i){v.x=t,v.y=n,f=e,M(i)},init:function(){if(!_&&!N){x.framework=y,x.template=m,x.bg=y.getChildByClass(m,"pswp__bg"),ae=m.className,_=!0,l=y.detectFeatures(),ie=l.raf,oe=l.caf,te=l.transform,le=l.oldIE,x.scrollWrap=y.getChildByClass(m,"pswp__scroll-wrap"),x.container=y.getChildByClass(x.scrollWrap,"pswp__container"),H=x.container.style,x.itemHolders=r=[{el:x.container.children[0],wrap:0,index:-1},{el:x.container.children[1],wrap:0,index:-1},{el:x.container.children[2],wrap:0,index:-1}],r[0].el.style.display=r[2].el.style.display="none",te?(t=l.perspective&&!o,X="translate"+(t?"3d(":"("),V=l.perspective?", 0px)":")"):(te="left",y.addClass(m,"pswp--ie"),We=function(e,t){t.left=e+"px"},Ye=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,i=t*e.w,t=t*e.h;n.width=i+"px",n.height=t+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},M=function(){var e,t,n,i;Ie&&(e=Ie,n=(i=1<(t=x.currItem).fitRatio?1:t.fitRatio)*t.w,i=i*t.h,e.width=n+"px",e.height=i+"px",e.left=v.x+"px",e.top=v.y+"px")}),i={resize:x.updateSize,orientationchange:function(){clearTimeout(ce),ce=setTimeout(function(){w.x!==x.scrollWrap.clientWidth&&x.updateSize()},500)},scroll:tt,keydown:Qe,click:et};var e,t=l.isOldIOSPhone||l.isOldAndroid||l.isMobileOpera;for(l.animationName&&l.transform&&!t||(g.showAnimationDuration=g.hideAnimationDuration=0),e=0;e<Fe.length;e++)x["init"+Fe[e]]();z&&(x.ui=new z(x,y)).init(),C("firstUpdate"),p=p||g.index||0,(isNaN(p)||p<0||p>=P())&&(p=0),x.currItem=jt(p),(l.isOldIOSPhone||l.isOldAndroid)&&(Ze=!1),m.setAttribute("aria-hidden","false"),g.modal&&(Ze?m.style.position="fixed":(m.style.position="absolute",m.style.top=y.getScrollY()+"px")),se===undefined&&(C("initialLayout"),se=re=y.getScrollY());var n="pswp--open ";for(g.mainClass&&(n+=g.mainClass+" "),g.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=o?"pswp--touch":"pswp--notouch")+(l.animationName?" pswp--css_animation":""))+(l.svg?" pswp--svg":""),y.addClass(m,n),x.updateSize(),Y=-1,I=null,e=0;e<3;e++)We((e+Y)*b.x,r[e].el.style);le||y.bind(x.scrollWrap,B,x),a("initialZoomInEnd",function(){x.setContent(r[0],p-1),x.setContent(r[2],p+1),r[0].el.style.display=r[2].el.style.display="block",g.focus&&m.focus(),y.bind(document,"keydown",x),l.transform&&y.bind(x.scrollWrap,"click",x),g.mouseUsed||y.bind(document,"mousemove",Ke),y.bind(window,"resize scroll orientationchange",x),C("bindEvents")}),x.setContent(r[1],p),x.updateCurrItem(),C("afterInit"),Ze||(K=setInterval(function(){nt||s||u||f!==x.currItem.initialZoomLevel||x.updateSize()},1e3)),y.addClass(m,"pswp--visible")}},close:function(){_&&(N=!(_=!1),C("close"),y.unbind(window,"resize scroll orientationchange",x),y.unbind(window,"scroll",i.scroll),y.unbind(document,"keydown",x),y.unbind(document,"mousemove",Ke),l.transform&&y.unbind(x.scrollWrap,"click",x),s&&y.unbind(window,W,x),clearTimeout(ce),C("unbindEvents"),Jt(x.currItem,null,!0,x.destroy))},destroy:function(){C("destroy"),Vt&&clearTimeout(Vt),m.setAttribute("aria-hidden","true"),m.className=ae,K&&clearInterval(K),y.unbind(x.scrollWrap,B,x),y.unbind(window,"scroll",x),Ct(),at(),Ue=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),v.x=e,v.y=t,M()},handleEvent:function(e){e=e||window.event,i[e.type]&&i[e.type](e)},goTo:function(e){var t=(e=Ne(e))-p;I=t,p=e,x.currItem=jt(p),Re-=t,Be(b.x*Re),at(),h=!1,x.updateCurrItem()},next:function(){x.goTo(p+1)},prev:function(){x.goTo(p-1)},updateCurrZoomItem:function(e){var t;e&&C("beforeChange",0),Ie=r[1].el.children.length&&(t=r[1].el.children[0],y.hasClass(t,"pswp__zoom-wrap"))?t.style:null,d=x.currItem.bounds,G=f=x.currItem.initialZoomLevel,v.x=d.center.x,v.y=d.center.y,e&&C("afterChange")},invalidateCurrItems:function(){q=!0;for(var e=0;e<3;e++)r[e].item&&(r[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==I){var t,n=Math.abs(I);if(!(e&&n<2)){x.currItem=jt(p),ze=!1,C("beforeChange",I),3<=n&&(Y+=I+(0<I?-3:3),n=3);for(var i=0;i<n;i++)0<I?(t=r.shift(),r[2]=t,We((++Y+2)*b.x,t.el.style),x.setContent(t,p-n+i+1+1)):(t=r.pop(),r.unshift(t),We(--Y*b.x,t.el.style),x.setContent(t,p+n-i-1-1));!Ie||1!==Math.abs(I)||(e=jt($)).initialZoomLevel!==f&&(on(e,w),sn(e),Ye(e)),I=0,x.updateCurrZoomItem(),$=p,C("afterChange")}}},updateSize:function(e){if(!Ze&&g.modal){var t=y.getScrollY();if(se!==t&&(m.style.top=t+"px",se=t),!e&&Le.x===window.innerWidth&&Le.y===window.innerHeight)return;Le.x=window.innerWidth,Le.y=window.innerHeight,m.style.height=Le.y+"px"}if(w.x=x.scrollWrap.clientWidth,w.y=x.scrollWrap.clientHeight,tt(),b.x=w.x+Math.round(w.x*g.spacing),b.y=w.y,Be(b.x*Re),C("beforeResize"),Y!==undefined){for(var n,i,o,a=0;a<3;a++)n=r[a],We((a+Y)*b.x,n.el.style),o=p+a-1,g.loop&&2<P()&&(o=Ne(o)),(i=jt(o))&&(q||i.needsUpdate||!i.bounds)?(x.cleanSlide(i),x.setContent(n,o),1===a&&(x.currItem=i,x.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&0<=o&&x.setContent(n,o),i&&i.container&&(on(i,w),sn(i),Ye(i));q=!1}G=f=x.currItem.initialZoomLevel,(d=x.currItem.bounds)&&(v.x=d.center.x,v.y=d.center.y,M(!0)),C("resize")},zoomTo:function(t,e,n,i,o){e&&(G=f,vt.x=Math.abs(e.x)-v.x,vt.y=Math.abs(e.y)-v.y,S(ke,v));var e=qe(t,!1),a={},r=(Je("x",e,a,t),Je("y",e,a,t),f),l={x:v.x,y:v.y},e=(Xe(a),function(e){1===e?(f=t,v.x=a.x,v.y=a.y):(f=(t-r)*e+r,v.x=(a.x-l.x)*e+l.x,v.y=(a.y-l.y)*e+l.y),o&&o(e),M(1===e)});n?rt("customZoomTo",0,1,n,i||y.easing.sine.inOut,e):e(1)}},st=30,ct=10,E={},ut={},O={},k={},dt={},mt=[],pt={},ft=[],ht={},yt=0,xt=e(),gt=0,R=e(),vt=e(),wt=e(),bt=function(e,t){return e.x===t.x&&e.y===t.y},It=function(e,t){return ht.x=Math.abs(e.x-t.x),ht.y=Math.abs(e.y-t.y),Math.sqrt(ht.x*ht.x+ht.y*ht.y)},Ct=function(){ve&&(oe(ve),ve=null)},Dt=function(){s&&(ve=ie(Dt),Ut())},Tt=function(){return!("fit"===g.scaleMode&&f===x.currItem.initialZoomLevel)},Mt=function(e,t){return!(!e||e===document)&&(!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:Mt(e.parentNode,t)))},St={},At=function(e,t){return St.prevent=!Mt(e.target,g.isClickableElement),C("preventDragEvent",e,t,St),St.prevent},Et=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Ot=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},kt=function(e,t,n){var i;50<e-de&&((i=2<ft.length?ft.shift():{}).x=t,i.y=n,ft.push(i),de=e)},Rt=function(){var e=v.y-x.currItem.initialPosition.y;return 1-Math.abs(e/(w.y/2))},Pt={},Zt={},Ft=[],Lt=function(e){for(;0<Ft.length;)Ft.pop();return ne?(Ae=0,mt.forEach(function(e){0===Ae?Ft[0]=e:1===Ae&&(Ft[1]=e),Ae++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Ft[0]=Et(e.touches[0],Pt),1<e.touches.length&&(Ft[1]=Et(e.touches[1],Zt))):(Pt.x=e.pageX,Pt.y=e.pageY,Pt.id="",Ft[0]=Pt),Ft},zt=function(e,t){var n,i,o,a=v[e]+t[e],r=0<t[e],l=R.x+t.x,s=R.x-pt.x,c=a>d.min[e]||a<d.max[e]?g.panEndFriction:1,a=v[e]+t[e]*c;if((g.allowPanToNext||f===x.currItem.initialZoomLevel)&&(Ie?"h"!==Ce||"x"!==e||xe||(r?(a>d.min[e]&&(c=g.panEndFriction,d.min[e],n=d.min[e]-ke[e]),(n<=0||s<0)&&1<P()?(o=l,s<0&&l>pt.x&&(o=pt.x)):d.min.x!==d.max.x&&(i=a)):(a<d.max[e]&&(c=g.panEndFriction,d.max[e],n=ke[e]-d.max[e]),(n<=0||0<s)&&1<P()?(o=l,0<s&&l<pt.x&&(o=pt.x)):d.min.x!==d.max.x&&(i=a))):o=l,"x"===e))return o!==undefined&&(Be(o,!0),we=o!==pt.x),d.min.x!==d.max.x&&(i!==undefined?v.x=i:we||(v.x+=t.x*c)),o!==undefined;h||we||f>x.currItem.fitRatio&&(v[e]+=t[e]*c)},_t=function(e){var t;"mousedown"===e.type&&0<e.button||($t?e.preventDefault():he&&"mousedown"===e.type||(At(e,!0)&&e.preventDefault(),C("pointerDown"),ne&&((t=y.arraySearch(mt,e.pointerId,"id"))<0&&(t=mt.length),mt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=Lt(e)).length,c=null,at(),s&&1!==e||(s=De=!0,y.bind(window,W,x),pe=Se=Te=fe=we=ge=ye=xe=!1,Ce=null,C("firstTouchStart",t),S(ke,v),Oe.x=Oe.y=0,S(k,t[0]),S(dt,k),pt.x=b.x*Re,ft=[{x:k.x,y:k.y}],de=ue=D(),qe(f,!0),Ct(),Dt()),!u&&1<e&&!h&&!we&&(G=f,u=ye=!(xe=!1),Oe.y=Oe.x=0,S(ke,v),S(E,t[0]),S(ut,t[1]),Ot(E,ut,wt),vt.x=Math.abs(wt.x)-v.x,vt.y=Math.abs(wt.y)-v.y,be=It(E,ut))))},Nt=function(e){var t;e.preventDefault(),ne&&-1<(t=y.arraySearch(mt,e.pointerId,"id"))&&((t=mt[t]).x=e.pageX,t.y=e.pageY),s&&(t=Lt(e),Ce||ge||u?c=t:R.x!==b.x*Re?Ce="h":(e=Math.abs(t[0].x-k.x)-Math.abs(t[0].y-k.y),Math.abs(e)>=ct&&(Ce=0<e?"h":"v",c=t)))},Ut=function(){if(c){var e,t,n,i,o,a=c.length;if(0!==a)if(S(E,c[0]),O.x=E.x-k.x,O.y=E.y-k.y,u&&1<a)k.x=E.x,k.y=E.y,!O.x&&!O.y&&bt(c[1],ut)||(S(ut,c[1]),xe||(xe=!0,C("zoomGestureStarted")),a=It(E,ut),(e=Gt(a))>x.currItem.initialZoomLevel+x.currItem.initialZoomLevel/15&&(Se=!0),t=1,n=$e(),i=je(),e<n?g.pinchToClose&&!Se&&G<=x.currItem.initialZoomLevel?(T(o=1-(n-e)/(n/1.2)),C("onPinchClose",o),Te=!0):e=n-(t=1<(t=(n-e)/n)?1:t)*(n/3):i<e&&(e=i+(t=1<(t=(e-i)/(6*n))?1:t)*n),t<0&&(t=0),Ot(E,ut,xt),Oe.x+=xt.x-wt.x,Oe.y+=xt.y-wt.y,S(wt,xt),v.x=Ge("x",e),v.y=Ge("y",e),pe=f<e,f=e,M());else if(Ce&&(De&&(De=!1,Math.abs(O.x)>=ct&&(O.x-=c[0].x-dt.x),Math.abs(O.y)>=ct&&(O.y-=c[0].y-dt.y)),k.x=E.x,k.y=E.y,0!==O.x||0!==O.y)){if("v"===Ce&&g.closeOnVerticalDrag)if(!Tt())return Oe.y+=O.y,v.y+=O.y,o=Rt(),fe=!0,C("onVerticalDrag",o),T(o),void M();kt(D(),E.x,E.y),ge=!0,d=x.currItem.bounds,zt("x",O)||(zt("y",O),Xe(v),M())}}},Ht=function(e){if(l.isOldAndroid){if(he&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(he),he=setTimeout(function(){he=0},600))}C("pointerUp"),At(e,!1)&&e.preventDefault(),ne&&-1<(n=y.arraySearch(mt,e.pointerId,"id"))&&(t=mt.splice(n,1)[0],navigator.msPointerEnabled&&(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type)||(t.type=e.pointerType||"mouse"));var t,n=Lt(e),i=n.length;if(2===(i="mouseup"===e.type?0:i))return!(c=null);1===i&&S(dt,n[0]),0!==i||Ce||h||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),C("touchRelease",e,t));var o,a,n=-1;if(0===i&&(s=!1,y.unbind(window,W,x),Ct(),u?n=0:-1!==gt&&(n=D()-gt)),gt=1===i?D():-1,e=-1!==n&&n<150?"zoom":"swipe",u&&i<2&&(u=!1,1===i&&(e="zoomPointerUp"),C("zoomGestureEnded")),c=null,ge||xe||h||fe)if(at(),(me=me||Yt()).calculateSwipeSpeed("x"),fe)Rt()<g.verticalDragRange?x.close():(o=v.y,a=Me,rt("verticalDrag",0,1,300,y.easing.cubic.out,function(e){v.y=(x.currItem.initialPosition.y-o)*e+o,T((1-a)*e+a),M()}),C("onVerticalDrag",1));else{if((we||h)&&0===i){if(Bt(e,me))return;e="zoomPointerUp"}h||("swipe"!==e?Xt():!we&&f>x.currItem.fitRatio&&Wt(me))}},Yt=function(){var t,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1<ft.length?(t=D()-de+50,ft[ft.length-2]):(t=D()-ue,dt))[e],i.lastFlickOffset[e]=k[e]-n,i.lastFlickDist[e]=Math.abs(i.lastFlickOffset[e]),20<i.lastFlickDist[e]?i.lastFlickSpeed[e]=i.lastFlickOffset[e]/t:i.lastFlickSpeed[e]=0,Math.abs(i.lastFlickSpeed[e])<.1&&(i.lastFlickSpeed[e]=0),i.slowDownRatio[e]=.95,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(v[t]>d.min[t]?i.backAnimDestination[t]=d.min[t]:v[t]<d.max[t]&&(i.backAnimDestination[t]=d.max[t]),i.backAnimDestination[t]!==undefined&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=!0,rt("bounceZoomPan"+t,v[t],i.backAnimDestination[t],e||300,y.easing.sine.out,function(e){v[t]=e,M()}))))},calculateAnimOffset:function(e){i.backAnimStarted[e]||(i.speedDecelerationRatio[e]=i.speedDecelerationRatio[e]*(i.slowDownRatio[e]+i.slowDownRatioReverse[e]-i.slowDownRatioReverse[e]*i.timeDiff/10),i.speedDecelerationRatioAbs[e]=Math.abs(i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]),i.distanceOffset[e]=i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]*i.timeDiff,v[e]+=i.distanceOffset[e])},panAnimLoop:function(){A.zoomPan&&(A.zoomPan.raf=ie(i.panAnimLoop),i.now=D(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),M(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05&&(v.x=Math.round(v.x),v.y=Math.round(v.y),M(),it("zoomPan")))}};return i},Wt=function(e){if(e.calculateSwipeSpeed("y"),d=x.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;ot("zoomPan"),e.lastNow=D(),e.panAnimLoop()},Bt=function(e,t){h||(yt=p),"swipe"===e&&(e=k.x-dt.x,a=t.lastFlickDist.x<10,st<e&&(a||20<t.lastFlickOffset.x)?i=-1:e<-st&&(a||t.lastFlickOffset.x<-20)&&(i=1)),i&&((p+=i)<0?(p=g.loop?P()-1:0,o=!0):p>=P()&&(p=g.loop?0:P()-1,o=!0),o&&!g.loop||(I+=i,Re-=i,n=!0));var n,i,o,e=b.x*Re,a=Math.abs(e-R.x),r=n||e>R.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?a/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333;return yt===p&&(n=!1),h=!0,C("mainScrollAnimStart"),rt("mainScroll",R.x,e,r,y.easing.cubic.out,Be,function(){at(),h=!1,yt=-1,!n&&yt===p||x.updateCurrItem(),C("mainScrollAnimComplete")}),n&&x.updateCurrItem(!0),n},Gt=function(e){return 1/be*e*G},Xt=function(){var e,t=f,n=$e(),i=je(),o=(f<n?t=n:i<f&&(t=i),Me);return Te&&!pe&&!Se&&f<n?x.close():(Te&&(e=function(e){T((1-o)*e+o)}),x.zoomTo(t,0,200,y.easing.cubic.out,e)),!0};_e("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,o){j=e+t,J=e+n,Q=e+i,ee=o?e+o:""};(ne=l.pointerEvent)&&l.touch&&(l.touch=!1),ne?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):l.touch?(e("touch","start","move","end","cancel"),o=!0):e("mouse","down","move","up"),W=J+" "+Q+" "+ee,B=j,ne&&!o&&(o=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),x.likelyTouchDevice=o,i[j]=_t,i[J]=Nt,i[Q]=Ht,ee&&(i[ee]=i[Q]),l.touch&&(B+=" mousedown",W+=" mousemove mouseup",i.mousedown=i[j],i.mousemove=i[J],i.mouseup=i[Q]),o||(g.allowPanToNext=!1)}}});var Vt,Kt,qt,$t,jt,P,Jt=function(a,e,r,t){Vt&&clearTimeout(Vt),qt=$t=!0,a.initialLayout?(l=a.initialLayout,a.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(p);var l,s,c,u=r?g.hideAnimationDuration:g.showAnimationDuration,d=function(){it("initialZoom"),r?(x.template.removeAttribute("style"),x.bg.removeAttribute("style")):(T(1),e&&(e.style.display="block"),y.addClass(m,"pswp--animated-in"),C("initialZoom"+(r?"OutEnd":"InEnd"))),t&&t(),$t=!1};u&&l&&l.x!==undefined?(s=U,c=!x.currItem.src||x.currItem.loadError||g.showHideOpacity,a.miniImg&&(a.miniImg.style.webkitBackfaceVisibility="hidden"),r||(f=l.w/a.w,v.x=l.x,v.y=l.y-re,x[c?"template":"bg"].style.opacity=.001,M()),ot("initialZoom"),r&&!s&&y.removeClass(m,"pswp--animated-in"),c&&(r?y[(s?"remove":"add")+"Class"](m,"pswp--animate_opacity"):setTimeout(function(){y.addClass(m,"pswp--animate_opacity")},30)),Vt=setTimeout(function(){var t,n,i,o,e;C("initialZoom"+(r?"Out":"In")),r?(t=l.w/a.w,n={x:v.x,y:v.y},i=f,o=Me,e=function(e){1===e?(f=t,v.x=l.x,v.y=l.y-se):(f=(t-i)*e+i,v.x=(l.x-n.x)*e+n.x,v.y=(l.y-se-n.y)*e+n.y),M(),c?m.style.opacity=1-e:T(o-e*o)},s?rt("initialZoom",0,1,u,y.easing.cubic.out,e,d):(e(1),Vt=setTimeout(d,u+20))):(f=a.initialZoomLevel,S(v,a.initialPosition),M(),T(1),c?m.style.opacity=1:T(1),Vt=setTimeout(d,u+20))},r?25:90)):(C("initialZoom"+(r?"Out":"In")),f=a.initialZoomLevel,S(v,a.initialPosition),M(),m.style.opacity=r?0:1,T(1),u?setTimeout(function(){d()},u):d())},Z={},Qt=[],en={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Kt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var i=e.bounds;i.center.x=Math.round((Z.x-t)/2),i.center.y=Math.round((Z.y-n)/2)+e.vGap.top,i.max.x=t>Z.x?Math.round(Z.x-t):i.center.x,i.max.y=n>Z.y?Math.round(Z.y-n)+e.vGap.top:i.center.y,i.min.x=t>Z.x?0:i.center.x,i.min.y=n>Z.y?e.vGap.top:i.center.y},on=function(e,t,n){var i,o;return!e.src||e.loadError?(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds):((i=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),C("parseVerticalMargin",e)),Z.x=t.x,Z.y=t.y-e.vGap.top-e.vGap.bottom,i&&(t=Z.x/e.w,o=Z.y/e.h,e.fitRatio=t<o?t:o,"orig"===(t=g.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=tn())),n?(nn(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0)},an=function(e,t,n,i,o,a){t.loadError||i&&(t.imageAppended=!0,sn(t,i,t===x.currItem&&ze),n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},rn=function(e){e.loading=!0,e.loaded=!1;var t=e.img=y.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t.alt=e.alt||"",t},ln=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=g.errorMsg.replace("%url%",e.src),!0},sn=function(e,t,n){var i;e.src&&(t=t||e.container.lastChild,i=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=n+"px"),t.style.width=i+"px",t.style.height=n+"px")},cn=function(){if(Qt.length){for(var e,t=0;t<Qt.length;t++)(e=Qt[t]).holder.index===e.index&&an(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);Qt=[]}};_e("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ne(e);var t=jt(e);t&&(!t.loaded&&!t.loading||q)&&(C("gettingData",e,t),t.src&&rn(t))},initController:function(){y.extend(g,en,!0),x.items=Kt=t,jt=x.getItemAt,P=g.getNumItemsFn,g.loop,P()<3&&(g.loop=!1),a("beforeChange",function(e){for(var t=g.preload,n=null===e||0<=e,i=Math.min(t[0],P()),o=Math.min(t[1],P()),a=1;a<=(n?o:i);a++)x.lazyLoadItem(p+a);for(a=1;a<=(n?i:o);a++)x.lazyLoadItem(p-a)}),a("initialLayout",function(){x.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(p)}),a("mainScrollAnimComplete",cn),a("initialZoomInEnd",cn),a("destroy",function(){for(var e,t=0;t<Kt.length;t++)(e=Kt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Qt=null})},getItemAt:function(e){return 0<=e&&(Kt[e]!==undefined&&Kt[e])},allowProgressiveImg:function(){return g.forceProgressiveLoading||!o||g.mouseUsed||1200<screen.width},setContent:function(t,n){g.loop&&(n=Ne(n));var e,i,o,a=x.getItemAt(t.index),a=(a&&(a.container=null),x.getItemAt(n));a?(C("gettingData",n,a),t.index=n,i=(t.item=a).container=y.createEl("pswp__zoom-wrap"),!a.src&&a.html&&(a.html.tagName?i.appendChild(a.html):i.innerHTML=a.html),ln(a),on(a,w),!a.src||a.loadError||a.loaded?a.src&&!a.loadError&&((e=y.createEl("pswp__img","img")).style.opacity=1,e.src=a.src,sn(a,e),an(n,a,i,e,!0)):(a.loadComplete=function(e){if(_){if(t&&t.index===n){if(ln(e,!0))return e.loadComplete=e.img=null,on(e,w),Ye(e),void(t.index===p&&x.updateCurrZoomItem());e.imageAppended?!$t&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):l.transform&&(h||$t)?Qt.push({item:e,baseDiv:i,img:e.img,index:n,holder:t,clearPlaceholder:!0}):an(n,e,i,e.img,h||$t,!0)}e.loadComplete=null,e.img=null,C("imageLoadComplete",n,e)}},y.features.transform&&(o="pswp__img pswp__img--placeholder",o+=a.msrc?"":" pswp__img--placeholder--blank",o=y.createEl(o,a.msrc?"img":""),a.msrc&&(o.src=a.msrc),sn(a,o),i.appendChild(o),a.placeholder=o),a.loading||rn(a),x.allowProgressiveImg()&&(!qt&&l.transform?Qt.push({item:a,baseDiv:i,img:a.img,index:n,holder:t}):an(n,a,i,a.img,!0,!0))),qt||n!==p?Ye(a):(Ie=i.style,Jt(a,e||a.img)),t.el.innerHTML="",t.el.appendChild(i)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var un,F,dn,mn,pn,fn,hn,yn,n,xn,gn,vn,L,wn,bn={},In=function(e,t,n){var i=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(i)},Cn=(_e("Tap",{publicMethods:{initTap:function(){a("firstTouchStart",x.onTapStart),a("touchRelease",x.onTapRelease),a("destroy",function(){bn={},un=null})},onTapStart:function(e){1<e.length&&(clearTimeout(un),un=null)},onTapRelease:function(e,t){var n,i,o;!t||ge||ye||nt||!x.container.contains(e.target)||(n=t,un&&(clearTimeout(un),un=null,i=n,o=bn,Math.abs(i.x-o.x)<Ee&&Math.abs(i.y-o.y)<Ee)?C("doubleTap",n):"mouse"===t.type?In(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||y.hasClass(e.target,"pswp__single-tap")?In(e,t):(S(bn,n),un=setTimeout(function(){In(e,t),un=null},300)))}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){le||(o?a("mouseUsed",function(){x.setupDesktopZoom()}):x.setupDesktopZoom(!0))},setupDesktopZoom:function(e){F={};var t="wheel mousewheel DOMMouseScroll";a("bindEvents",function(){y.bind(m,t,x.handleMouseWheel)}),a("unbindEvents",function(){F&&y.unbind(m,t,x.handleMouseWheel)}),x.mouseZoomedIn=!1;var n,i=function(){x.mouseZoomedIn&&(y.removeClass(m,"pswp--zoomed-in"),x.mouseZoomedIn=!1),f<1?y.addClass(m,"pswp--zoom-allowed"):y.removeClass(m,"pswp--zoom-allowed"),o()},o=function(){n&&(y.removeClass(m,"pswp--dragging"),n=!1)};a("resize",i),a("afterChange",i),a("pointerDown",function(){x.mouseZoomedIn&&(n=!0,y.addClass(m,"pswp--dragging"))}),a("pointerUp",o),e||i()},handleMouseWheel:function(e){if(f<=x.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||nt||s?e.preventDefault():te&&2<Math.abs(e.deltaY)&&(U=!0,x.close())),!0;if(e.stopPropagation(),F.x=0,"deltaX"in e)1===e.deltaMode?(F.x=18*e.deltaX,F.y=18*e.deltaY):(F.x=e.deltaX,F.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(F.x=-.16*e.wheelDeltaX),e.wheelDeltaY?F.y=-.16*e.wheelDeltaY:F.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;F.y=e.detail}qe(f,!0);var t=v.x-F.x,n=v.y-F.y;(g.modal||t<=d.min.x&&t>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),x.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:w.x/2+Pe.x,y:w.y/2+Pe.y};var t=g.getDoubleTapZoom(!0,x.currItem),n=f===t;x.mouseZoomedIn=!n,x.zoomTo(n?x.currItem.initialZoomLevel:t,e,333),y[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}}),{history:!0,galleryUID:1}),Dn=function(){return L.hash.substring(1)},Tn=function(){dn&&clearTimeout(dn),pn&&clearTimeout(pn)},Mn=function(){var e=Dn(),t={};if(!(e.length<5)){var n,i=e.split("&");for(a=0;a<i.length;a++)i[a]&&((n=i[a].split("=")).length<2||(t[n[0]]=n[1]));if(g.galleryPIDs){for(var o=t.pid,a=t.pid=0;a<Kt.length;a++)if(Kt[a].pid===o){t.pid=a;break}}else t.pid=parseInt(t.pid,10)-1;t.pid<0&&(t.pid=0)}return t},Sn=function(){var e,t;pn&&clearTimeout(pn),nt||s?pn=setTimeout(Sn,500):(fn?clearTimeout(mn):fn=!0,t=p+1,(e=jt(p)).hasOwnProperty("pid")&&(t=e.pid),e=n+"&gid="+g.galleryUID+"&pid="+t,xn||-1===L.hash.indexOf(e)&&(vn=!0),t=L.href.split("#")[0]+"#"+e,wn?"#"+e!==window.location.hash&&history[xn?"replaceState":"pushState"]("",document.title,t):xn?L.replace(t):L.hash=e,xn=!0,mn=setTimeout(function(){fn=!1},60))};_e("History",{publicMethods:{initHistory:function(){var e,t;y.extend(g,Cn,!0),g.history&&(L=window.location,xn=gn=vn=!1,n=Dn(),wn="pushState"in history,-1<n.indexOf("gid=")&&(n=(n=n.split("&gid=")[0]).split("?gid=")[0]),a("afterChange",x.updateURL),a("unbindEvents",function(){y.unbind(window,"hashchange",x.onHashChange)}),e=function(){yn=!0,gn||(vn?history.back():n?L.hash=n:wn?history.pushState("",document.title,L.pathname+L.search):L.hash=""),Tn()},a("unbindEvents",function(){U&&e()}),a("destroy",function(){yn||e()}),a("firstUpdate",function(){p=Mn().pid}),-1<(t=n.indexOf("pid="))&&"&"===(n=n.substring(0,t)).slice(-1)&&(n=n.slice(0,-1)),setTimeout(function(){_&&y.bind(window,"hashchange",x.onHashChange)},40))},onHashChange:function(){Dn()===n?(gn=!0,x.close()):fn||(hn=!0,x.goTo(Mn().pid),hn=!1)},updateURL:function(){Tn(),hn||(xn?dn=setTimeout(Sn,800):Sn())}}}),y.extend(x,lt)}});
// source --> https://www.ytviews.in/wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.min.js?ver=4.1.1-wc.7.4.2 
/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 Dmitry Semenov; */
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,s){var a,u,c,p,t,d,m,l,r,f,n,i,h,w,g,b,_,v,C=this,e=!1,T=!0,I=!0,E={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},F=function(e){if(b)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!r&&R();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",l=0;l<M.length;l++)(t=M[l]).onTap&&-1<o.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),b=!0,e=s.features.isOldAndroid?600:30,setTimeout(function(){b=!1},e))},x=function(e,t,n){s[(n?"add":"remove")+"Class"](e,"pswp__"+t)},S=function(){var e=1===g.getNumItemsFn();e!==w&&(x(u,"ui--one-slide",e),w=e)},k=function(){x(m,"share-modal--hidden",I)},K=function(){if((I=!I)?(s.removeClass(m,"pswp__share-modal--fade-in"),setTimeout(function(){I&&k()},300)):(k(),setTimeout(function(){I||s.addClass(m,"pswp__share-modal--fade-in")},30)),!I){for(var e,t,n,o,l="",r=0;r<g.shareButtons.length;r++){e=g.shareButtons[r];t=g.getImageURLForShare(e);n=g.getPageURLForShare(e);o=g.getTextForShare(e);n=e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o));l+='<a href="'+n+'" target="_blank" '+'class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>";if(g.parseShareButtonOut)l=g.parseShareButtonOut(e,l)}m.children[0].innerHTML=l,m.children[0].onclick=D}return!1},D=function(e){var t=(e=e||window.event).target||e.srcElement;if(o.shout("shareLinkClick",e,t),t.href){if(t.hasAttribute("download"))return!0;window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),I||K()}return!1},L=function(e){for(var t=0;t<g.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+g.closeElClasses[t]))return!0},O=0,R=function(){clearTimeout(v),O=0,r&&C.setIdle(!1)},y=function(e){e=(e=e||window.event).relatedTarget||e.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(v),v=setTimeout(function(){C.setIdle(!0)},g.timeToIdleOutside))},z=function(e){i!==e&&(x(n,"preloader--active",!e),i=e)},A=function(e){var t,n=e.vGap;!o.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth?(t=g.barsSize,g.captionEl&&"auto"===t.bottom?(p||((p=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),u.insertBefore(p,c),s.addClass(u,"pswp__ui--fit")),g.addCaptionHTMLFn(e,p,!0)?(e=p.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0},M=[{name:"caption",option:"captionEl",onInit:function(e){c=e}},{name:"share-modal",option:"shareEl",onInit:function(e){m=e},onTap:function(){K()}},{name:"button--share",option:"shareEl",onInit:function(e){d=e},onTap:function(){K()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){t=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){a.isFullscreen()?a.exit():a.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){n=e}}];C.init=function(){var t,l,r,i,e,n;s.extend(o.options,E,!0),g=o.options,u=s.getChildByClass(o.scrollWrap,"pswp__ui"),(f=o.listen)("onVerticalDrag",function(e){T&&e<.95?C.hideControls():!T&&.95<=e&&C.showControls()}),f("onPinchClose",function(e){T&&e<.9?(C.hideControls(),t=!0):t&&!T&&.9<e&&C.showControls()}),f("zoomGestureEnded",function(){(t=!1)&&!T&&C.showControls()}),f("beforeChange",C.update),f("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(g.getDoubleTapZoom(!1,o.currItem),e,333)}),f("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<o.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),f("bindEvents",function(){s.bind(u,"pswpTap click",F),s.bind(o.scrollWrap,"pswpTap",C.onGlobalTap),o.likelyTouchDevice||s.bind(o.scrollWrap,"mouseover",C.onMouseOver)}),f("unbindEvents",function(){I||K(),_&&clearInterval(_),s.unbind(document,"mouseout",y),s.unbind(document,"mousemove",R),s.unbind(u,"pswpTap click",F),s.unbind(o.scrollWrap,"pswpTap",C.onGlobalTap),s.unbind(o.scrollWrap,"mouseover",C.onMouseOver),a&&(s.unbind(document,a.eventK,C.updateFullscreen),a.isFullscreen()&&(g.hideAnimationDuration=0,a.exit()),a=null)}),f("destroy",function(){g.captionEl&&(p&&u.removeChild(p),s.removeClass(c,"pswp__caption--empty")),m&&(m.children[0].onclick=null),s.removeClass(u,"pswp__ui--over-close"),s.addClass(u,"pswp__ui--hidden"),C.setIdle(!1)}),g.showAnimationDuration||s.removeClass(u,"pswp__ui--hidden"),f("initialZoomIn",function(){g.showAnimationDuration&&s.removeClass(u,"pswp__ui--hidden")}),f("initialZoomOut",function(){s.addClass(u,"pswp__ui--hidden")}),f("parseVerticalMargin",A),(e=function(e){if(e)for(var t=e.length,n=0;n<t;n++){l=e[n],r=l.className;for(var o=0;o<M.length;o++)i=M[o],-1<r.indexOf("pswp__"+i.name)&&(g[i.option]?(s.removeClass(l,"pswp__element--disabled"),i.onInit&&i.onInit(l)):s.addClass(l,"pswp__element--disabled"))}})(u.children),(n=s.getChildByClass(u,"pswp__top-bar"))&&e(n.children),g.shareEl&&d&&m&&(I=!0),S(),g.timeToIdle&&f("mouseUsed",function(){s.bind(document,"mousemove",R),s.bind(document,"mouseout",y),_=setInterval(function(){2===++O&&C.setIdle(!0)},g.timeToIdle/2)}),g.fullscreenEl&&!s.features.isOldAndroid&&((a=a||C.getFullscreenAPI())?(s.bind(document,a.eventK,C.updateFullscreen),C.updateFullscreen(),s.addClass(o.template,"pswp--supports-fs")):s.removeClass(o.template,"pswp--supports-fs")),g.preloaderEl&&(z(!0),f("beforeChange",function(){clearTimeout(h),h=setTimeout(function(){o.currItem&&o.currItem.loading?o.allowProgressiveImg()&&(!o.currItem.img||o.currItem.img.naturalWidth)||z(!1):z(!0)},g.loadingIndicatorDelay)}),f("imageLoadComplete",function(e,t){o.currItem===t&&z(!0)}))},C.setIdle=function(e){x(u,"ui--idle",r=e)},C.update=function(){e=!(!T||!o.currItem)&&(C.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(o.currItem,c),x(c,"caption--empty",!o.currItem.title)),!0),I||K(),S()},C.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,s.getScrollY())},50),s[(a.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},C.updateIndexIndicator=function(){g.counterEl&&(t.innerHTML=o.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},C.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;b||(e.detail&&"mouse"===e.detail.pointerType?L(t)?o.close():s.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?g.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint)):(g.tapToToggleControls&&(T?C.hideControls():C.showControls()),g.tapToClose&&(s.hasClass(t,"pswp__img")||L(t))&&o.close()))},C.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;x(u,"ui--over-close",L(e))},C.hideControls=function(){s.addClass(u,"pswp__ui--hidden"),T=!1},C.showControls=function(){T=!0,e||C.update(),s.removeClass(u,"pswp__ui--hidden")},C.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},C.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(l=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return o.template[this.enterK]();o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return g.closeOnScroll=l,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}});