text: // ==================================================
  // fancyBox v3.0.11
  //
  // Licensed GPLv3 for open source use
  // or fancyBox Commercial License for commercial use
  //
  // http://fancyapps.com/fancybox/
  // Copyright 2017 fancyApps
  //
  // ==================================================
  !function(t,e,n,o){"use strict";function s(t){var e=t.currentTarget,o=t.data?t.data.options:{},s=t.data?t.data.items:[],i="",a=0;t.preventDefault(),t.stopPropagation(),n(e).attr("data-fancybox")&&(i=n(e).data("fancybox")),i?(s=s.length?s.filter('[data-fancybox="'+i+'"]'):n("[data-fancybox="+i+"]"),a=s.index(e)):s=[e],n.fancybox.open(s,o,a)}if(!n)return o;var i={speed:330,loop:!0,opacity:"auto",margin:[44,0],gutter:30,infobar:!0,buttons:!0,slideShow:!0,fullScreen:!0,thumbs:!0,closeBtn:!0,smallBtn:"auto",image:{preload:"auto",protect:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,scrolling:"no",css:{}},baseClass:"",slideClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-controls"><div class="fancybox-infobar"><button data-fancybox-previous class="fancybox-button fancybox-button--left" title="Previous"></button><div class="fancybox-infobar__body"><span class="js-fancybox-index"></span>&nbsp;/&nbsp;<span class="js-fancybox-count"></span></div><button data-fancybox-next class="fancybox-button fancybox-button--right" title="Next"></button></div><div class="fancybox-buttons"><button data-fancybox-close class="fancybox-button fancybox-button--close" title="Close (Esc)"></button></div></div><div class="fancybox-slider-wrap"><div class="fancybox-slider"></div></div><div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>The requested content cannot be loaded. <br /> Please try again later.<p></div>',closeTpl:'<button data-fancybox-close class="fancybox-close-small">×</button>',parentEl:"body",touch:!0,keyboard:!0,focus:!0,closeClickOutside:!0,beforeLoad:n.noop,afterLoad:n.noop,beforeMove:n.noop,afterMove:n.noop,onComplete:n.noop,onInit:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop},a=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),d=function(o){var s;return"function"==typeof n&&o instanceof n&&(o=o[0]),s=o.getBoundingClientRect(),s.bottom>0&&s.right>0&&s.left<(t.innerWidth||e.documentElement.clientWidth)&&s.top<(t.innerHeight||e.documentElement.clientHeight)},h=function(t,o,s){var r=this;r.currIndex=parseInt(s,10)||0,r.prevIndex=null,r.opts=n.extend(!0,{},i,o||{}),r.id=r.opts.id||++c,r.group=[],r.createGroup(t),r.group.length&&(r.$lastFocus=n(e.activeElement),r.scrollTop=a.scrollTop(),r.scrollLeft=a.scrollLeft(),r.elems={},r.slides={},r.init(t))};n.extend(h.prototype,{init:function(){var t,e,o=this;n.fancybox.isTouch||n("body").hasClass("fancybox-enabled")||(e=n("body").width(),e=n("body").addClass("fancybox-enabled").width()-e,e>1&&n('<style id="fancybox-noscroll" type="text/css">').html(".compensate-for-scrollbar, .fancybox-enabled { margin-right: "+e+"px; }").appendTo("head")),t=n(o.opts.baseTpl).data("FancyBox",o).attr("id","fancybox-container-"+o.id).addClass(o.opts.baseClass).prependTo(o.opts.parentEl),o.$refs={container:t,bg:t.find(".fancybox-bg"),controls:t.find(".fancybox-controls"),buttons:t.find(".fancybox-buttons"),slider_wrap:t.find(".fancybox-slider-wrap"),slider:t.find(".fancybox-slider"),caption:t.find(".fancybox-caption")},o.prevPos=null,o.currPos=0,o.allowZoomIn=!0,o.trigger("onInit"),o.activate(),o.current||o.jumpTo(o.currIndex)},createGroup:function(t){var e=this,s=n.makeArray(t);n.each(s,function(t,s){var i,a,r,c,l,u={},d={};if(n.isPlainObject(s))u=s,d=s.opts||{};else if("string"===n.type(s)&&s.length)u={type:"html",content:s};else{if("object"!==n.type(s)||!n(s).length)return;i=n(s),a=i.data(),d="options"in a?a.options:{},d="object"===n.type(d)?d:{},u.type="type"in a?a.type:d.type,u.src="src"in a?a.src:d.src||i.attr("href"),d.width="width"in a?a.width:d.width,d.height="height"in a?a.height:d.height,d.thumb="thumb"in a?a.thumb:d.thumb,d.caption="caption"in a?a.caption:d.caption||i.attr("title"),d.selector="selector"in a?a.selector:d.selector,d.$orig=i}u.opts=n.extend(!0,{},e.opts,d),r=u.type,c=u.src||"",r||(u.content?r="html":c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?r="image":c.match(/\.(pdf)((\?|#).*)?$/i)?r="pdf":"#"===c.charAt(0)&&(r="inline"),u.type=r),u.index=e.group.length,u.opts.$orig&&!u.opts.$orig.length&&delete u.opts.$orig,!u.opts.$thumb&&u.opts.$orig&&(u.opts.$thumb=u.opts.$orig.find("img:first")),u.opts.$thumb&&!u.opts.$thumb.length&&delete u.opts.$thumb,"function"===n.type(e.opts.caption)?u.opts.caption=e.opts.caption.apply(s,[e,u]):u.opts.caption=u.opts.caption===o?"":u.opts.caption+"","ajax"===r&&(l=c.split(/\s+/,2),l.length>1&&(u.src=l.shift(),u.opts.selector=l.shift())),"auto"==u.opts.smallBtn&&(n.inArray(r,["html","inline","ajax"])>-1?(u.opts.buttons=!1,u.opts.smallBtn=!0):u.opts.smallBtn=!1),"pdf"===r&&(u.type="iframe",u.opts.closeBtn=!0,u.opts.smallBtn=!1,u.opts.iframe.preload=!1),u.opts.modal&&n.extend(!0,u.opts,{infobar:0,buttons:0,keyboard:0,slideShow:0,fullScreen:0,closeClickOutside:0}),e.group.push(u)})},addEvents:function(){var o=this,s=function(){a.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft),o.$refs.slider_wrap.show(),o.update(!0,!0,!0)};o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("click.fb-previous","[data-fancybox-previous]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}),n(t).on("orientationchange.fb resize.fb",function(t){u(function(){"orientationchange"==t.type?(o.$refs.slider_wrap.hide(),u(s)):s()})}),r.on("focusin.fb",function(t){var e;n.fancybox&&(e=n.fancybox.getInstance(),!e||n(t.target).hasClass("fancybox-container")||n.contains(e.$refs.container[0],t.target)||(t.stopPropagation(),e.focus()))}),n(e).on("keydown.fb",function(t){var e=o.current,s=t.keyCode||t.which;if(e&&e.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea")){if(8===s||27===s)return t.preventDefault(),void o.close();switch(s){case 37:case 38:t.preventDefault(),o.previous();break;case 39:case 40:t.preventDefault(),o.next();break;case 80:case 32:t.preventDefault(),o.SlideShow&&(t.preventDefault(),o.SlideShow.toggle());break;case 70:o.FullScreen&&(t.preventDefault(),o.FullScreen.toggle());break;case 71:o.Thumbs&&(t.preventDefault(),o.Thumbs.toggle())}}})},removeEvents:function(){a.off("scroll.fb resize.fb orientationchange.fb"),r.off("keydown.fb focusin.fb click.fb-close"),this.$refs.container.off("click.fb-close click.fb-previous click.fb-next")},previous:function(t){this.current.opts.loop||this.currIndex>0?this.jumpTo(this.currIndex-1,t):this.update()},next:function(t){this.current.opts.loop||this.currIndex<this.group.length-1?this.jumpTo(this.currIndex+1,t):this.update()},jumpTo:function(t,e){var s,i,a,r,c=this,l=null!==c.prevIndex;if(t=parseInt(t,10),s=t,i=t,a=t-1,r=t+1,s%=c.group.length,s=s<0?c.group.length+s:s,!(c.isAnimating||s==c.currIndex&&l)){if(n.fancybox.stop(c.$refs.slider),l&&c.group.length>1&&(2==c.group.length?i=t-c.currIndex+c.currPos:(i=s-c.currIndex+c.currPos,Math.abs(c.currPos-(i+c.group.length))<Math.abs(c.currPos-i)?i+=c.group.length:Math.abs(c.currPos-(i-c.group.length))<Math.abs(c.currPos-i)&&(i-=c.group.length)),a=Math.min(c.currPos,i-1),r=Math.max(c.currPos,i+1)),c.prevIndex=c.currIndex,c.prevPos=c.currPos,c.currIndex=s,c.currPos=i,c.group.length>1)for(var u=a;u<=r;u++)(c.opts.loop||u>=0&&u<c.group.length)&&c.createSlide(u);else c.createSlide(0);c.current=c.slides[i],c.current.isMoved=!1,c.current.isComplete=!1,e=e===o?c.current.opts.speed:e,l&&c.$refs.slider.children().removeClass("fancybox-slide--current fancybox-slide--complete"),c.current.$slide.addClass("fancybox-slide--current"),c.trigger("beforeMove"),c.update(!l,!0,!1,e),c.loadSlide(c.current),c.slides[i+1]&&"image"===c.slides[i+1].type&&c.loadSlide(c.slides[i+1]),c.slides[i-1]&&"image"===c.slides[i-1].type&&c.loadSlide(c.slides[i-1]),l||(this.$refs.bg.css("transition-duration",e+"ms").hide().show(0),c.$refs.container.addClass("fancybox-container--ready"))}},createSlide:function(t){var e,o,s=this;o=t%s.group.length,o=o<0?s.group.length+o:o,!s.slides[t]&&s.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(s.$refs.slider),s.slides[t]=n.extend(!0,{},s.group[o],{pos:t,$slide:e,isLoaded:!1}))},zoomInOut:function(t,e,o){var s,i,a,r=this,c=r.current,l=c.$placeholder,u=c.opts.$thumb,h=u?u.offset():0,p=c.$slide.offset(),f=c.opts.opacity;return!!(l&&h&&d(u))&&(n.fancybox.stop(l),r.isAnimating=!0,s={top:h.top-p.top+parseFloat(u.css("border-top-width")||0),left:h.left-p.left+parseFloat(u.css("border-left-width")||0),width:u.width(),height:u.height(),scaleX:1,scaleY:1},"auto"==f&&(f=Math.abs(c.width/c.height-s.width/s.height)>.1),"in"===t?(i=s,a=r.getFitPos(c),a.scaleX=a.width/i.width,a.scaleY=a.height/i.height,f&&(i.opacity=.1,a.opacity=1)):(i=n.fancybox.getTranslate(l),a=s,c.isLoaded&&c.$ghost&&(c.$ghost.stop().show().css("opacity",1),l.css("background-image","none")),i.scaleX=i.width/a.width,i.scaleY=i.height/a.height,i.width=a.width,i.height=a.height,f&&(a.opacity=0),r.$refs.bg.css("transition-duration",e+"ms")),delete a.width,delete a.height,r.updateCursor(a.width,a.height),n.fancybox.animate(l,i,a,e,function(){o(),r.isAnimating=!1}),!0)},zoomIn:function(){var t=this,e=t.current;return t.allowZoomIn=!1,t.zoomInOut("in",e.opts.speed,function(){t.updateCursor(),e.$ghost&&t.setBigImage(e)})},zoomOut:function(t){var e=this,o=e.current;return n.fancybox.stop(e.$refs.slider),!!e.zoomInOut("out",o.opts.speed,t)&&(this.$refs.container.removeClass("fancybox-container--ready"),!0)},canPan:function(){var t=this,e=t.current,n=e.$placeholder,o=!1;return n&&(o=t.getFitPos(e),o=Math.abs(n.width()-o.width)>1||Math.abs(n.height()-o.height)>1),o},isScaledDown:function(){var t=this,e=t.current,o=e.$placeholder,s=!1;return o&&(s=n.fancybox.getTranslate(o),s=s.width<e.width||s.height<e.height),s},scaleToActual:function(t,e,s){var i,a,r,c,l,u=this,d=u.current,h=d.$placeholder,p=parseInt(d.$slide.width(),10),f=parseInt(d.$slide.height(),10),g=d.width,b=d.height;h&&(u.isAnimating=!0,t=t===o?.5*p:t,e=e===o?.5*f:e,i=n.fancybox.getTranslate(h),c=g/i.width,l=b/i.height,a=.5*p-.5*g,r=.5*f-.5*b,g>p&&(a=i.left*c-(t*c-t),a>0&&(a=0),a<p-g&&(a=p-g)),b>f&&(r=i.top*l-(e*l-e),r>0&&(r=0),r<f-b&&(r=f-b)),u.updateCursor(g,b),n.fancybox.animate(h,null,{top:r,left:a,scaleX:c,scaleY:l},s||d.opts.speed,function(){u.isAnimating=!1}))},scaleToFit:function(t){var e,o=this,s=o.current,i=s.$placeholder;i&&(o.isAnimating=!0,e=o.getFitPos(s),o.updateCursor(e.width,e.height),n.fancybox.animate(i,null,{top:e.top,left:e.left,scaleX:e.width/i.width(),scaleY:e.height/i.height()},t||s.opts.speed,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,s,i,r,c,l,u=t.$placeholder||t.$content,d=t.width,h=t.height,p=t.opts.margin;return!(!u||!u.length||!d&&!h)&&("number"===n.type(p)&&(p=[p,p]),2==p.length&&(p=[p[0],p[1],p[0],p[1]]),a.width()<800&&(p=[0,0,0,0]),e=parseInt(t.$slide.width(),10)-(p[1]+p[3]),o=parseInt(t.$slide.height(),10)-(p[0]+p[2]),s=Math.min(1,e/d,o/h),c=Math.floor(s*d),l=Math.floor(s*h),i=Math.floor(.5*(o-l))+p[0],r=Math.floor(.5*(e-c))+p[3],{top:i,left:r,width:c,height:l})},update:function(t,e,s,i){var a=this,r=i===o?a.current.opts.speed:parseInt(i,10),c=a.currPos*Math.floor(a.current.$slide.width())*-1-a.current.pos*a.current.opts.gutter;e?n.each(a.slides,function(t,e){a.updateSlide(e,s)}):s&&a.updateSlide(a.current,s),t||!r?(n.fancybox.setTranslate(a.$refs.slider,{left:c}),a.afterMove()):n.fancybox.animate(a.$refs.slider,null,{top:0,left:c},r,function(){a.current.isMoved=!0,a.afterMove()}),a.updateControls(),a.updateCursor(),a.trigger("onUpdate")},updateSlide:function(t,e){var o=this,s=t.$placeholder;t=t||o.current,t&&!o.isClosing&&(n.fancybox.setTranslate(t.$slide,{left:t.pos*Math.floor(t.$slide.width())+t.pos*t.opts.gutter}),e&&s&&n.fancybox.setTranslate(s,o.getFitPos(t)),t.$slide.trigger("refresh"))},updateCursor:function(t,e){var n,s=this,i=s.$refs.container.removeClass("fancybox-controls--canzoomIn fancybox-controls--canzoomOut fancybox-controls--canGrab");!s.isClosing&&s.opts.touch&&(n=t!==o&&e!==o?t<s.current.width&&e<s.current.height:s.isScaledDown(),n?i.addClass("fancybox-controls--canzoomIn"):s.group.length<2?i.addClass("fancybox-controls--canzoomOut"):i.addClass("fancybox-controls--canGrab"))},loadSlide:function(t){var e,o,s,i=this;if(!t)return!1;if(!t.isLoading){switch(i.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.unbind("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),t.isLoading=!0,e){case"image":i.setImage(t);break;case"iframe":i.setIframe(t);break;case"html":i.setContent(t,n("<div />").append(t.content).contents());break;case"inline":n(t.src).length?i.setContent(t,n(t.src)):i.setError(t);break;case"ajax":i.showLoading(t),s=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&i.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&i.setError(t)}})),o.one("onReset",function(){s.abort()});break;default:i.setError(t)}return!0}},setImage:function(t){var e,o=this;return t.isLoaded&&!t.hasError?void o.afterLoad(t):(t.$placeholder=n('<div class="fancybox-placeholder"></div>').hide().prependTo(t.$slide),void(t.opts.preload!==!1&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,e=new Image,e.onerror=function(){this.onload=this.onerror=null,o.setError(t)},e.onload=function(){this.onload=this.onerror=null,o.isClosing||(n("<img/>")[0].src=t.src,t.$ghost=n(this).addClass("fancybox-image").appendTo(t.$placeholder),o.allowZoomIn&&t.index===o.currIndex&&o.zoomIn()||(n(this).show(),t.$placeholder.show(),o.updateSlide(t,!0),o.setBigImage(t)))},e.src=t.opts.thumb||t.opts.$thumb.attr("src")):o.setBigImage(t)))},setBigImage:function(t){var e=this,o=new Image;t.opts.image.protect&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$placeholder),o.onerror=function(){this.onload=this.onerror=null,t.timouts&&(clearTimeout(t.timouts),delete t.timouts),e.setError(t)},o.onload=function(){this.onload=this.onerror=null,e.isClosing||(t.$placeholder.css("background-image","url("+t.src+")").show(),t.width=this.naturalWidth,t.height=this.naturalHeight,t.$ghost?e.isClosing||(e.currIndex!==t.index||e.isAnimating?t.$ghost.hide():t.$ghost.fadeOut(),e.afterLoad(t)):e.afterLoad(t))},o.src=t.src,t.timouts=setTimeout(function(){e.isAnimating||e.isClosing||o.complete&&0!==o.naturalWidth||e.showLoading(t)},50)},setIframe:function(t){var e,s=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content"></div>').css(i.css).appendTo(a),e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",n.fancybox.isTouch?"auto":i.scrolling).appendTo(t.$content),i.preload?(t.$content.addClass("fancybox-tmp"),s.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),s.afterLoad(t)}),a.on("refresh.fb",function(){var n,s,a,r,c,l=t.$content;if(1===e[0].isReady){try{n=e.contents(),s=n.find("body")}catch(t){}s&&s.length&&(i.css.width===o||i.css.height===o)&&(a=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(s.outerWidth(!0)+(l.width()-a)),c=Math.ceil(s.outerHeight(!0)),l.css({width:i.css.width===o?r+(l.outerWidth()-l.innerWidth()):i.css.width,height:i.css.height===o?c+(l.outerHeight()-l.innerHeight()):i.css.height})),l.removeClass("fancybox-tmp")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn&&t.$content.prepend(t.opts.closeTpl),a.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty()})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),t.opts.selector&&(e=n("<div>").html(e).find(t.opts.selector)),l(e)&&e.parent().length&&(e.data("placeholder")&&e.parents(".fancybox-slide").trigger("onReset"),e.data({placeholder:n("<div></div>").hide().insertAfter(e)}).css("display","inline-block")),t.$slide.one("onReset",function(){var o=l(e)?e.data("placeholder"):0;o&&(e.hide().replaceAll(o),e.data("placeholder",null)),n(this).empty(),t.isLoaded=!1}),t.$content=n(e),t.$content.appendTo(t.$slide),t.opts.smallBtn===!0&&t.$content.find(".fancybox-close-small").remove().end().eq(0).append(t.opts.closeTpl),this.afterLoad(t))},setError:function(t){t.hasError=!0,this.setContent(t,t.opts.errorTpl)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&t.$spinner.length&&(t.$spinner.remove(),delete t.$spinner)},afterMove:function(){var t=this,e=t.current;e&&(e.isMoved=!0,e.$slide.siblings().trigger("onReset"),n.each(t.slides,function(e,n){(n.pos<t.currPos-1||n.pos>t.currPos+1)&&(n.$slide.remove(),delete t.slides[e])}),t.trigger("afterMove"),e.isLoaded&&t.complete())},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.$ghost||e.updateSlide(t,!0),t.pos==e.currPos&&(t.isMoved?e.complete():e.updateCursor()))},complete:function(){var t=this;t.current.isComplete=!0,t.allowZoomIn&&t.zoomIn()||t.updateCursor(),t.current.$slide.addClass("fancybox-slide--complete"),t.opts.focus&&t.focus(),t.trigger("onComplete")},focus:function(){var t=this.current&&this.current.isComplete?this.current.$slide.find('button,:input,[tabindex],a:not(".disabled")').filter(":visible:first"):null;t&&t.length||(t=this.$refs.container),t.focus(),this.$refs.slider_wrap.scrollLeft(0),this.current&&this.current.$slide.scrollTop(0)},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t){var e=this,o=e.current,s=n.proxy(function(){e.cleanUp(t)},this);return!e.isClosing&&(e.isClosing=!0,o.timouts&&clearTimeout(o.timouts),e.$refs.container.removeClass("fancybox-container--active").addClass("fancybox-container--closing"),o.$slide.removeClass("fancybox-slide--complete").siblings().remove(),e.removeEvents(),this.hideLoading(o),this.hideControls(),this.updateCursor(),e.trigger("beforeClose",o,t),a.scrollTop(e.scrollTop).scrollLeft(e.scrollLeft),void(t===!0?(setTimeout(s,o.opts.speed),this.$refs.container.removeClass("fancybox-container--ready")):e.zoomOut(s)||n.fancybox.animate(e.$refs.container,null,{opacity:0},o.opts.speed,"easeInSine",s)))},cleanUp:function(t){var e,o=this;o.$refs.slider.children().trigger("onReset"),o.$refs.container.empty().remove(),o.current=null,o.trigger("afterClose",t),e=n.fancybox.getInstance(),e?e.activate():(n("body").removeClass("fancybox-enabled"),n("#fancybox-noscroll").remove()),o.$lastFocus&&o.$lastFocus.focus()},trigger:function(t,e){var o=Array.prototype.slice.call(arguments,1),s=this,i=e&&e.opts?e:s.current;i?o.unshift(i):i=s,o.unshift(s),n.isFunction(i.opts[t])&&i.opts[t].apply(i,o),s.$refs.container.trigger(t+".fb",o)},toggleControls:function(t){this.isHiddenControls?this.updateControls(t):this.hideControls()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-controls"),this.$refs.container.removeClass("fancybox-show-caption")},updateControls:function(t){var e=this,o=e.$refs.container,s=e.$refs.caption,i=e.current,a=i.index,r=i.opts,c=r.caption;this.isHiddenControls&&t!==!0||(this.isHiddenControls=!1,e.$refs.container.addClass("fancybox-show-controls"),o.toggleClass("fancybox-show-infobar",!!r.infobar&&e.group.length>1).toggleClass("fancybox-show-buttons",!!r.buttons).toggleClass("fancybox-is-modal",!!r.modal),n(".fancybox-button--left",o).toggleClass("fancybox-button--disabled",!r.loop&&a<=0),n(".fancybox-button--right",o).toggleClass("fancybox-button--disabled",!r.loop&&a>=e.group.length-1),n(".fancybox-button--play",o).toggle(!!(r.slideShow&&e.group.length>1)),n(".fancybox-button--close",o).toggle(!!r.closeBtn),n(".js-fancybox-count",o).html(e.group.length),n(".js-fancybox-index",o).html(a+1),i.$slide.trigger("refresh"),s&&s.empty(),c&&c.length?(s.html(c),this.$refs.container.addClass("fancybox-show-caption "),e.$caption=s):this.$refs.container.removeClass("fancybox-show-caption"))}}),n.fancybox={version:"3.0.11",defaults:i,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-container--closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},isTouch:e.createTouch!==o,use3d:function(){var n=e.createElement("div");return t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<=9)}(),getTranslate:function(t){var e,n;return!!t&&(e=t.get(0).getBoundingClientRect(),n=t.eq(0).css("transform"),n&&n.indexOf("matrix")!==-1?(n=n.split("(")[1],n=n.split(")")[0],n=n.split(",")):n=[],n.length?(n=n.length>10?[n[13],n[12],n[0],n[5]]:[n[5],n[4],n[0],n[3]],n=n.map(parseFloat)):n=[0,0,1,1],{top:n[0],left:n[1],scaleX:n[2],scaleY:n[3],opacity:parseFloat(t.css("opacity")),width:e.width,height:e.height})},setTranslate:function(t,e){var n="",s={};t&&e&&(e.left===o&&e.top===o||(n=(e.left===o?t.position().top:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(s.transform=n),e.opacity!==o&&(s.opacity=e.opacity),e.width!==o&&(s.width=e.width),e.height!==o&&(s.height=e.height),t.css(s))},easing:{easeOutCubic:function(t,e,n,o){return n*((t=t/o-1)*t*t+1)+e},easeInCubic:function(t,e,n,o){return n*(t/=o)*t*t+e},easeOutSine:function(t,e,n,o){return n*Math.sin(t/o*(Math.PI/2))+e},easeInSine:function(t,e,n,o){return-n*Math.cos(t/o*(Math.PI/2))+n+e}},stop:function(t){t.removeData("animateID")},animate:function(t,e,s,i,a,r){var c,l,d,h=this,p=null,f=0,g=function(n){if(c=[],l=0,t.length&&t.data("animateID")===d){if(n=n||Date.now(),p&&(l=n-p),p=n,f+=l,f>=i)return s.scaleX!==o&&s.scaleY!==o&&e.width!==o&&e.height!==o&&(s.width=e.width*s.scaleX,s.height=e.height*s.scaleY,s.scaleX=1,s.scaleY=1),h.setTranslate(t,s),void r();for(var b in s)s.hasOwnProperty(b)&&e[b]!==o&&(e[b]==s[b]?c[b]=s[b]:c[b]=h.easing[a](f,e[b],s[b]-e[b],i));h.setTranslate(t,c),u(g)}};return h.animateID=d=h.animateID===o?1:h.animateID+1,t.data("animateID",d),r===o&&"function"==n.type(a)&&(r=a,a=o),a||(a="easeOutCubic"),r=r||n.noop,i?(e?this.setTranslate(t,e):e=this.getTranslate(t),t.show(),void u(g)):(this.setTranslate(t,s),void r())}},n.fn.fancybox=function(t){return this.off("click.fb-start").on("click.fb-start",{items:this,options:t||{}},s),this},n(e).on("click.fb-start","[data-fancybox]",s)}(window,document,window.jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/((player\.)?vimeo(pro)?\.com)\/(video\/)?([\d]+)?(\?(.*))?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:7,type:"iframe",url:"//player.vimeo.com/video/$5"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}}};t(document).on("onInit.fb",function(o,s){t.each(s.group,function(o,s){var i,a,r,c,l,u,d,h=s.src||"",p=!1;s.type||(t.each(n,function(n,o){if(a=h.match(o.matcher),l={},d=n,a){if(p=o.type,o.paramPlace&&a[o.paramPlace]){c=a[o.paramPlace],"?"==c[0]&&(c=c.substring(1)),c=c.split("&");for(var f=0;f<c.length;++f){var g=c[f].split("=",2);2==g.length&&(l[g[0]]=decodeURIComponent(g[1].replace(/\+/g," ")))}}return o.idPlace&&(u=a[o.idPlace]),r=t.extend(!0,{},o.params,s.opts[n],l),h="function"===t.type(o.url)?o.url.call(this,a,r,s):e(o.url,a,r),i="function"===t.type(o.thumb)?o.thumb.call(this,a,r,s):e(o.thumb,a),!1}}),p?(s.src=h,s.type=p,s.opts.thumb||s.opts.$thumb&&s.opts.$thumb.length||(s.opts.thumb=i),u&&(s.opts.id=d+"-"+u),"iframe"===p&&(t.extend(!0,s.opts,{iframe:{preload:!1,scrolling:"no"},smallBtn:!1,closeBtn:!0,fullScreen:!1,slideShow:!1}),s.opts.slideClass+=" fancybox-slide--video")):s.type="iframe")})})}(window.jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),s=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},i=function(t,e,n){return"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},a=function(t){return t.is("a")||t.is("button")||t.is("input")||t.is("textarea")||n.isFunction(t.get(0).onclick)},r=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],s=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return s||i},c=function(t){for(var e=!1;;){if(e=r(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-slider")||t.is("body"))break}return e},l=function(t){var e=this;e.instance=t,e.$wrap=t.$refs.slider_wrap,e.$slider=t.$refs.slider,e.$container=t.$refs.container,e.destroy(),e.$wrap.on("touchstart.fb mousedown.fb",n.proxy(e,"ontouchstart"))};l.prototype.destroy=function(){this.$wrap.off("touchstart.fb mousedown.fb touchmove.fb mousemove.fb touchend.fb touchcancel.fb mouseup.fb mouseleave.fb")},l.prototype.ontouchstart=function(e){var r=this,l=n(e.target),u=r.instance,d=u.current,h=d.$content||d.$placeholder,p=function(){r.sliderNewPos&&(n.fancybox.setTranslate(r.$slider,r.sliderNewPos),r.sliderNewPos=null),r.contentNewPos&&(n.fancybox.setTranslate(r.$content,r.contentNewPos),r.contentNewPos=null),(r.isSwiping||r.isPanning||r.isZooming)&&o(p)};a(l)||a(l.parent())||c(l)&&!l.hasClass("fancybox-slide")||(e.stopPropagation(),e.preventDefault(),!d||r.instance.isAnimating||r.instance.isClosing||(r.startPoints=s(e),r.startPoints.length>1&&!d.isMoved||(r.$wrap.off("touchmove.fb mousemove.fb",n.proxy(r,"ontouchmove")),r.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(r,"ontouchend")),r.$wrap.on("touchmove.fb mousemove.fb",n.proxy(r,"ontouchmove")),r.$wrap.on("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(r,"ontouchend")),r.$content=h,r.$target=l,r.$content=h,r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.canvasWidth=Math.round(d.$slide.width()),r.canvasHeight=Math.round(d.$slide.height()),r.canTap=d.isMoved,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.sliderStartPos=n.fancybox.getTranslate(r.$slider),r.sliderNewPos=null,r.contentStartPos=n.fancybox.getTranslate(r.$content),r.contentNewPos=null,1==r.startPoints.length&&("image"===d.type&&(r.contentStartPos.width>r.canvasWidth||r.contentStartPos.height>r.canvasHeight)?(n.fancybox.stop(r.$content),r.isPanning=!0):(n.fancybox.stop(r.$slider),r.isSwiping=!0),r.$container.addClass("fancybox-controls--isGrabbing")),"image"===d.type&&2==r.startPoints.length&&(d.isLoaded||d.$ghost)&&(r.isZooming=!0,r.canTap=!1,n.fancybox.stop(r.$content),r.centerPointStartX=(r.startPoints[0].x+r.startPoints[1].x)/2-n(t).scrollLeft(),r.centerPointStartY=(r.startPoints[0].y+r.startPoints[1].y)/2-n(t).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=i(r.startPoints[0],r.startPoints[1])),p())))},l.prototype.ontouchmove=function(t){var e=this;t.preventDefault(),e.instance.isAnimating||(e.newPoints=s(t),e.distanceX=i(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=i(e.newPoints[0],e.startPoints[0],"y"),e.distance=i(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},l.prototype.onSwipe=function(){var e,o=this,s=o.isSwiping;s===!0?Math.abs(o.distance)>10&&(e=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),s=e>45&&e<135||o.instance.group.length<=1?"y":"x",(o.instance.opts.touch.vertical===!1||"auto"===o.instance.opts.touch.vertical&&n(t).width()>800)&&(s="x"),o.isSwiping=s,o.canTap=!1,o.startPoints=o.newPoints):o.sliderNewPos={top:"x"==s?0:o.sliderStartPos.top+o.distanceY,left:"y"==s?o.sliderStartPos.left:o.sliderStartPos.left+o.distanceX}},l.prototype.onPan=function(){var t,e,n,o=this;o.canTap=!1,t=o.contentStartPos.width>o.canvasWidth?o.contentStartPos.left+o.distanceX:o.contentStartPos.left,e=o.contentStartPos.top+o.distanceY,n=o.limitMovement(t,e,o.contentStartPos.width,o.contentStartPos.height),n.scaleX=o.contentStartPos.scaleX,n.scaleY=o.contentStartPos.scaleY,o.contentNewPos=n,o.contentLastPos=n},l.prototype.limitMovement=function(t,e,n,o){var s,i,a,r,c=this,l=c.canvasWidth,u=c.canvasHeight,d=c.contentStartPos.left,h=c.contentStartPos.top,p=c.distanceX,f=c.distanceY;return s=Math.max(0,.5*l-.5*n),i=Math.max(0,.5*u-.5*o),a=Math.min(l-n,.5*l-.5*n),r=Math.min(u-o,.5*u-.5*o),n>l&&(p>0&&t>s&&(t=s-1+Math.pow(-s+d+p,.8)||0),p<0&&t<a&&(t=a+1-Math.pow(a-d-p,.8)||0)),o>u&&(f>0&&e>i&&(e=i-1+Math.pow(-i+h+f,.8)||0),f<0&&e<r&&(e=r+1-Math.pow(r-h-f,.8)||0)),{top:e,left:t}},l.prototype.limitPosition=function(t,e,n,o){var s=this,i=s.canvasWidth,a=s.canvasHeight;return n>i?(t=t>0?0:t,t=t<i-n?i-n:t):t=Math.max(0,i/2-n/2),o>a?(e=e>0?0:e,e=e<a-o?a-o:e):e=Math.max(0,a/2-o/2),{top:e,left:t}},l.prototype.onZoom=function(){var e=this,o=e.contentStartPos.width,s=e.contentStartPos.height,a=e.contentStartPos.left,r=e.contentStartPos.top,c=i(e.newPoints[0],e.newPoints[1]),l=c/e.startDistanceBetweenFingers,u=Math.floor(o*l),d=Math.floor(s*l),h=(o-u)*e.percentageOfImageAtPinchPointX,p=(s-d)*e.percentageOfImageAtPinchPointY,f=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),g=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),b=f-e.centerPointStartX,m=g-e.centerPointStartY,y=a+(h+b),v=r+(p+m),x={top:v,left:y,scaleX:e.contentStartPos.scaleX*l,
  scaleY:e.contentStartPos.scaleY*l};e.canTap=!1,e.newWidth=u,e.newHeight=d,e.contentNewPos=x,e.contentLastPos=x},l.prototype.ontouchend=function(t){var e=this,o=e.instance.current,i=Math.max((new Date).getTime()-e.startTime,1),a=e.isSwiping,r=e.isPanning,c=e.isZooming;if(e.endPoints=s(t),!(e.endPoints.length>1)||"x"!==e.isSwiping&&"y"!==e.isSwiping){if(e.$container.removeClass("fancybox-controls--isGrabbing"),e.$wrap.off("touchmove.fb mousemove.fb",n.proxy(this,"ontouchmove")),e.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(this,"ontouchend")),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.canTap)return e.ontap();e.velocityX=e.distanceX/i*.5,e.velocityY=e.distanceY/i*.5,e.speed=o.opts.speed,e.speedX=Math.max(e.speed-120,Math.min(e.speed+120,1/Math.abs(e.velocityX)*e.speed)),e.speedY=Math.max(e.speed-120,Math.min(e.speed+120,1/Math.abs(e.velocityY)*e.speed)),a?e.endSwiping(a):r?e.endPanning():c&&e.endZooming()}},l.prototype.endSwiping=function(t){var e=this;"y"==t&&Math.abs(e.distanceY)>50?(n.fancybox.animate(e.$slider,null,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,left:e.sliderStartPos.left,opacity:0},e.speedY),e.instance.close(!0)):"x"==t&&e.distanceX>50?e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50?e.instance.next(e.speedX):e.instance.update(!1,!1,!0)},l.prototype.endPanning=function(){var t=this,e=t.contentLastPos.left+t.velocityX*t.speed*2,o=t.contentLastPos.top+t.velocityY*t.speed*2,s=t.limitPosition(e,o,t.contentStartPos.width,t.contentStartPos.height);s.width=t.contentStartPos.width,s.height=t.contentStartPos.height,n.fancybox.animate(t.$content,null,s,t.speed,"easeOutSine")},l.prototype.endZooming=function(){var t,e=this,o=e.instance.current,s=e.contentLastPos.left,i=e.contentLastPos.top,a=e.newWidth,r=e.newHeight,c={top:i,left:s,width:a,height:r,scaleX:1,scaleY:1};n.fancybox.setTranslate(e.$content,c),a<e.canvasWidth&&r<e.canvasHeight?e.instance.scaleToFit(150):a>o.width||r>o.height?e.instance.scaleToActual(e.centerPointStartX,e.centerPointStartY,150):(t=e.limitPosition(s,i,a,r),n.fancybox.animate(e.$content,null,t,e.speed,"easeOutSine"))},l.prototype.ontap=function(){var t=this,e=t.endPoints[0].x,o=t.endPoints[0].y;if(e-=t.$wrap.offset().left,o-=t.$wrap.offset().top,!n.fancybox.isTouch)return t.instance.opts.closeClickOutside&&t.$target.is(".fancybox-slide")?void t.instance.close():void("image"==t.instance.current.type&&t.instance.current.isMoved&&(t.instance.canPan()?t.instance.scaleToFit():t.instance.isScaledDown()?t.instance.scaleToActual(e,o):t.instance.group.length<2&&t.instance.close()));if(t.tapped){if(t.tapped=!1,clearTimeout(t.id),Math.abs(e-t.x)>50||Math.abs(o-t.y)>50||!t.instance.current.isMoved)return this;if(!t.instance.current.isLoaded&&!t.instance.current.$ghost)return;"image"==t.instance.current.type&&(t.instance.canPan()?t.instance.scaleToFit():t.instance.isScaledDown()&&t.instance.scaleToActual(e,o))}else t.tapped=!0,t.x=e,t.y=o,t.id=setTimeout(function(){t.tapped=!1,t.instance.toggleControls(!0)},300);return this},n(e).on("onActivate.fb",function(t,e){e.opts.touch&&!e.Guestures&&(e.Guestures=new l(e))}),n(e).on("beforeClose.fb",function(t,e){e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,speed:3e3,$button:null,init:function(){var t=this;t.$button=e('<button data-fancybox-play class="fancybox-button fancybox-button--play" title="Slideshow (P)"></button>').appendTo(t.instance.$refs.buttons),t.instance.$refs.container.on("click","[data-fancybox-play]",function(){t.toggle()})},set:function(){var t=this;t.instance&&t.instance.current&&t.instance.currIndex<t.instance.group.length-1?t.timer=setTimeout(function(){t.instance.next()},t.speed):t.stop()},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this;t.stop(),t.instance&&t.instance.current&&t.instance.currIndex<t.instance.group.length-1&&(t.instance.$refs.container.on({"beforeLoad.fb.player":e.proxy(t,"clear"),"onComplete.fb.player":e.proxy(t,"set")}),t.instance.current.isComplete?t.set():t.timer=!0,t.instance.$refs.container.trigger("onPlayStart"),t.$button.addClass("fancybox-button--pause"))},stop:function(){var t=this;t.clear(),t.instance.$refs.container.trigger("onPlayEnd").off(".player"),t.$button.removeClass("fancybox-button--pause")},toggle:function(){var t=this;t.timer?t.stop():t.start()}}),e(t).on("onInit.fb",function(t,e){e.opts.slideShow&&!e.SlideShow&&e.group.length>1&&(e.SlideShow=new n(e))}),e(t).on("beforeClose.fb onDeactivate.fb",function(t,e){e.SlideShow&&e.SlideShow.stop()})}(document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{$button:null,init:function(){var n=this;n.isAvailable()&&(n.$button=e('<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="Full screen (F)"></button>').appendTo(n.instance.$refs.buttons),n.instance.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e(t).on("onUpdate.fb",function(t,e){n.$button.toggle(!!e.current.opts.fullScreen),n.$button.toggleClass("fancybox-button-shrink",n.isActivated())}),e(t).on("afterClose.fb",function(){n.exit()}))},isAvailable:function(){var t=this.instance.$refs.container.get(0);return!!(t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen)},isActivated:function(){return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},launch:function(){var t=this.instance.$refs.container.get(0);t&&!this.instance.isClosing&&(t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen(t.ALLOW_KEYBOARD_INPUT))},exit:function(){t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()},toggle:function(){this.isActivated()?this.exit():this.isAvailable()&&this.launch()}}),e(t).on("onInit.fb",function(t,e){e.opts.fullScreen&&!e.FullScreen&&(e.FullScreen=new n(e))})}(document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var t=this;t.$button=e('<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="Thumbnails (G)"></button>').appendTo(this.instance.$refs.buttons).on("touchend click",function(e){e.stopPropagation(),e.preventDefault(),t.toggle()})},create:function(){var t,n,o=this.instance;this.$grid=e('<div class="fancybox-thumbs"></div>').appendTo(o.$refs.container),t="<ul>",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr("src"):null),n||"image"!==o.type||(n=o.src),n&&n.length&&(t+='<li data-index="'+e+'"  tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+n+'" /></li>')}),t+="</ul>",this.$list=e(t).appendTo(this.$grid).on("click touchstart","li",function(){o.jumpTo(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,n,o,s,i=e(this).parent().removeClass("fancybox-thumbs-loading"),a=i.outerWidth(),r=i.outerHeight();t=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=t/a,s=n/r,o>=1&&s>=1&&(o>s?(t/=s,n=r):(t=a,n/=o)),e(this).css({width:Math.floor(t),height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*r-.3*n)),"margin-left":Math.min(0,Math.floor(.5*a-.5*t))}).show()}).each(function(){this.src=e(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-container--thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.$grid.show(),this.focus()):this.$grid&&this.$grid.hide(),this.instance.allowZoomIn||this.instance.update(!0,!0,!0)},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible?this.hide():this.show()}}),e(t).on("onInit.fb",function(t,e){e.opts.thumbs&&!e.Thumbs&&e.group.length>1&&("image"==e.group[0].type||e.group[0].opts.thumb)&&("image"==e.group[1].type||e.group[1].opts.thumb)&&(e.Thumbs=new n(e))}),e(t).on("beforeMove.fb",function(t,e,n){var o=e.Thumbs;return n.modal?void(o&&(o.$button.hide(),o.hide())):(e.opts.thumbs.showOnStart===!0&&e.allowZoomIn&&o.show(),o&&o.$button.show(),void(o&&o.isVisible&&o.focus()))}),e(t).on("beforeClose.fb",function(t,e){e.Thumbs&&e.Thumbs.isVisible&&e.opts.thumbs.hideOnClosing!==!1&&e.Thumbs.close(),e.Thumbs=null})}(document,window.jQuery);