Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

2 lignes
55 KiB

  1. (function(m,y,i,l){function u(t){var e=i(t.currentTarget),o=t.data?t.data.options:{},a=e.attr("data-fancybox")||"",c=0,r=[];t.isDefaultPrevented()||(t.preventDefault(),a?(r=o.selector?i(o.selector):t.data?t.data.items:[],r=r.length?r.filter('[data-fancybox="'+a+'"]'):i('[data-fancybox="'+a+'"]'),c=r.index(e),c<0&&(c=0)):r=[e],i.fancybox.open(r,o,c))}if(i){if(i.fn.fancybox)return void("console"in m&&console.log("fancyBox already initialized"));var g={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!0,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","share","close"],idleTime:4,smallBtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},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,css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:500,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}<p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}"><svg viewBox="0 0 40 40"><path d="M20,23 L20,8 L20,23 L13,16 L20,23 L27,16 L20,23 M9,28 L31,28" /></svg></a>',slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /></svg></button>',fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 h22 v16 h-22 v-16 v16 h22 v-16 Z" /></svg></button>',thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /></svg></button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 L10,20 L18,28 L10,20 L18,12 L10,20"></path></svg></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><svg viewBox="0 0 40 40"><path d="M30,20 L10,20 L30,20 L22,28 L30,20 L22,12 L30,20"></path></svg></button>'},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(t,e){return t.type==="image"&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(t,e){return t.type==="image"&&"toggleControls"},clickSlide:function(t,e){return t.type==="image"?"toggleControls":"close"},dblclickContent:function(t,e){return t.type==="image"&&"zoom"},dblclickSlide:function(t,e){return t.type==="image"&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen"}}},v=i(m),x=i(y),P=0,S=function(t){return t&&t.hasOwnProperty&&t instanceof i},w=function(){return m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(t){return m.setTimeout(t,1e3/60)}}(),s=function(){var t,e=y.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==l)return o[t]}(),n=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e,o){var a=this;a.opts=i.extend(!0,{index:o},g,e||{}),i.fancybox.isMobile&&(a.opts=i.extend(!0,{},a.opts,a.opts.mobile)),e&&i.isArray(e.buttons)&&(a.opts.buttons=e.buttons),a.id=a.opts.id||++P,a.group=[],a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=null,a.createGroup(t),a.group.length&&(a.$lastFocus=i(y.activeElement).blur(),a.slides={},a.init(t))};i.extend(h.prototype,{init:function(){var t,e,o,a=this,c=a.group[a.currIndex],r=c.opts,p=i.fancybox.scrollbarWidth;a.scrollTop=x.scrollTop(),a.scrollLeft=x.scrollLeft(),i.fancybox.getInstance()||(i("body").addClass("fancybox-active"),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!m.MSStream?c.type!=="image"&&i("body").css("top",i("body").scrollTop()*-1).addClass("fancybox-iosfix"):!i.fancybox.isMobile&&y.body.scrollHeight>m.innerHeight&&(p===l&&(t=i('<div style="width:50px;height:50px;overflow:scroll;" />').appendTo("body"),p=i.fancybox.scrollbarWidth=t[0].offsetWidth-t[0].clientWidth,t.remove()),i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+p+"px; }</style>"),i("body").addClass("compensate-for-scrollbar"))),o="",i.each(r.buttons,function($,b){o+=r.btnTpl[b]||""}),e=i(a.translate(a,r.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass("fancybox-is-hidden").addClass(r.baseClass).data("FancyBox",a).prependTo(r.parentEl),a.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption"].forEach(function($){a.$refs[$]=e.find(".fancybox-"+$)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(a,c){var r=o[c];return r===l?a:r})},createGroup:function(t){var e=this,o=i.makeArray(t);i.each(o,function(a,c){var r,p,$,b,f={},d={};i.isPlainObject(c)?(f=c,d=c.opts||c):i.type(c)==="object"&&i(c).length?(r=i(c),d=r.data(),d=i.extend({},d,d.options||{}),d.$orig=r,f.src=d.src||r.attr("href"),f.type||f.src||(f.type="inline",f.src=c)):f={type:"html",src:c+""},f.opts=i.extend(!0,{},e.opts,d),i.isArray(d.buttons)&&(f.opts.buttons=d.buttons),p=f.type||f.opts.type,$=f.src||"",!p&&$&&($.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?p="image":$.match(/\.(pdf)((\?|#).*)?$/i)?p="pdf":$.charAt(0)==="#"&&(p="inline")),f.type=p,f.index=e.group.length,f.opts.$orig&&!f.opts.$orig.length&&delete f.opts.$orig,!f.opts.$thumb&&f.opts.$orig&&(f.opts.$thumb=f.opts.$orig.find("img:first")),f.opts.$thumb&&!f.opts.$thumb.length&&delete f.opts.$thumb,i.type(f.opts.caption)==="function"&&(f.opts.caption=f.opts.caption.apply(c,[e,f])),f.opts.caption&&(f.opts.caption=f.opts.caption===l?"":f.opts.caption+""),p==="ajax"&&(b=$.split(/\s+/,2),b.length>1&&(f.src=b.shift(),f.opts.filter=b.shift())),f.opts.smallBtn=="auto"&&(i.inArray(p,["html","inline","ajax"])>-1?(f.opts.toolbar=!1,f.opts.smallBtn=!0):f.opts.smallBtn=!1),p==="pdf"&&(f.type="iframe",f.opts.iframe.preload=!1),f.opts.modal&&(f.opts=i.extend(!0,f.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),e.group.push(f)})},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}),v.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&e.originalEvent.type==="resize"?w(function(){t.update()}):(t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update()},600))}),x.on("focusin.fb",function(e){var o=i.fancybox?i.fancybox.getInstance():null;o.isClosing||!o.current||!o.current.opts.trapFocus||i(e.target).hasClass("fancybox-container")||i(e.target).is(y)||o&&i(e.target).css("position")!=="fixed"&&!o.$refs.container.has(e.target).length&&(e.stopPropagation(),o.focus(),v.scrollTop(t.scrollTop).scrollLeft(t.scrollLeft))}),x.on("keydown.fb",function(e){var o=t.current,a=e.keyCode||e.which;if(o&&o.opts.keyboard&&!i(e.target).is("input")&&!i(e.target).is("textarea"))return a===8||a===27?(e.preventDefault(),void t.close(e)):a===37||a===38?(e.preventDefault(),void t.previous()):a===39||a===40?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,a)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,x.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=m.setInterval(function(){t.idleSecondsCounter++,t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;v.off("orientationchange.fb resize.fb"),x.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(m.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e,o){var a,c,r,p,$,b,f,d=this,C=d.group.length;if(!(d.isSliding||d.isClosing||d.isAnimating&&d.firstRun)){if(t=parseInt(t,10),c=d.current?d.current.opts.loop:d.opts.loop,!c&&(t<0||t>=C))return!1;if(a=d.firstRun=d.firstRun===null,!(C<2&&!a&&d.isSliding)){if(p=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,r=d.createSlide(t),C>1&&((c||r.index>0)&&d.createSlide(t-1),(c||r.index<C-1)&&d.createSlide(t+1)),d.current=r,d.currIndex=r.index,d.currPos=r.pos,d.trigger("beforeShow",a),d.updateControls(),b=i.fancybox.getTranslate(r.$slide),r.isMoved=(b.left!==0||b.top!==0)&&!r.$slide.hasClass("fancybox-animated"),r.forcedDuration=l,i.isNumeric(e)?r.forcedDuration=e:e=r.opts[a?"animationDuration":"transitionDuration"],e=parseInt(e,10),a)return r.opts.animationEffect&&e&&d.$refs.container.css("transition-duration",e+"ms"),d.$refs.container.removeClass("fancybox-is-hidden"),n(d.$refs.container),d.$refs.container.addClass("fancybox-is-open"),r.$slide.addClass("fancybox-slide--current"),d.loadSlide(r),void d.preload();i.each(d.slides,function(L,T){i.fancybox.stop(T.$slide)}),r.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),r.isMoved?($=Math.round(r.$slide.width()),i.each(d.slides,function(L,T){var M=T.pos-r.pos;i.fancybox.animate(T.$slide,{top:0,left:M*$+M*T.opts.gutter},e,function(){T.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),T.pos===d.currPos&&(r.isMoved=!1,d.complete())})})):d.$refs.stage.children().removeAttr("style"),r.isLoaded?d.revealContent(r):d.loadSlide(r),d.preload(),p.pos!==r.pos&&(f="fancybox-slide--"+(p.pos>r.pos?"next":"previous"),p.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),p.isComplete=!1,e&&(r.isMoved||r.opts.transitionEffect)&&(r.isMoved?p.$slide.addClass(f):(f="fancybox-animated "+f+" fancybox-fx-"+r.opts.transitionEffect,i.fancybox.animate(p.$slide,f,e,function(){p.$slide.removeClass(f).removeAttr("style")}))))}}},createSlide:function(t){var e,o,a=this;return o=t%a.group.length,o=o<0?a.group.length+o:o,!a.slides[t]&&a.group[o]&&(e=i('<div class="fancybox-slide"></div>').appendTo(a.$refs.stage),a.slides[t]=i.extend(!0,{},a.group[o],{pos:t,$slide:e,isLoaded:!1}),a.updateSlide(a.slides[t])),a.slides[t]},scaleToActual:function(t,e,o){var a,c,r,p,$,b=this,f=b.current,d=f.$content,C=parseInt(f.$slide.width(),10),L=parseInt(f.$slide.height(),10),T=f.width,M=f.height;f.type!="image"||f.hasError||!d||b.isAnimating||(i.fancybox.stop(d),b.isAnimating=!0,t=t===l?.5*C:t,e=e===l?.5*L:e,a=i.fancybox.getTranslate(d),p=T/a.width,$=M/a.height,c=.5*C-.5*T,r=.5*L-.5*M,T>C&&(c=a.left*p-(t*p-t),c>0&&(c=0),c<C-T&&(c=C-T)),M>L&&(r=a.top*$-(e*$-e),r>0&&(r=0),r<L-M&&(r=L-M)),b.updateCursor(T,M),i.fancybox.animate(d,{top:r,left:c,scaleX:p,scaleY:$},o||330,function(){b.isAnimating=!1}),b.SlideShow&&b.SlideShow.isActive&&b.SlideShow.stop())},scaleToFit:function(t){var e,o=this,a=o.current,c=a.$content;a.type!="image"||a.hasError||!c||o.isAnimating||(i.fancybox.stop(c),o.isAnimating=!0,e=o.getFitPos(a),o.updateCursor(e.width,e.height),i.fancybox.animate(c,{top:e.top,left:e.left,scaleX:e.width/c.width(),scaleY:e.height/c.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,a,c,r,p=this,$=t.$content,b=t.width,f=t.height,d=t.opts.margin;return!(!$||!$.length||!b&&!f)&&(i.type(d)==="number"&&(d=[d,d]),d.length==2&&(d=[d[0],d[1],d[0],d[1]]),v.width()<800&&(d=[0,0,0,0]),e=parseInt(p.$refs.stage.width(),10)-(d[1]+d[3]),o=parseInt(p.$refs.stage.height(),10)-(d[0]+d[2]),a=Math.min(1,e/b,o/f),c=Math.floor(a*b),r=Math.floor(a*f),{top:Math.floor(.5*(o-r))+d[0],left:Math.floor(.5*(e-c))+d[3],width:c,height:r})},update:function(){var t=this;i.each(t.slides,function(e,o){t.updateSlide(o)})},updateSlide:function(t){var e=this,o=t.$content;o&&(t.width||t.height)&&(i.fancybox.stop(o),i.fancybox.setTranslate(o,e.getFitPos(t)),t.pos===e.currPos&&e.updateCursor()),t.$slide.trigger("refresh"),e.trigger("onUpdate",t)},updateCursor:function(t,e){var o,a=this,c=a.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");a.current&&!a.isClosing&&(a.isZoomable()?(c.addClass("fancybox-is-zoomable"),o=t!==l&&e!==l?t<a.current.width&&e<a.current.height:a.isScaledDown(),o?c.addClass("fancybox-can-zoomIn"):a.current.opts.touch?c.addClass("fancybox-can-drag"):c.addClass("fancybox-can-zoomOut")):a.current.opts.touch&&c.addClass("fancybox-can-drag"))},isZoomable:function(){var t,e=this,o=e.current;if(o&&!e.isClosing)return!!(o.type==="image"&&o.isLoaded&&!o.hasError&&(o.opts.clickContent==="zoom"||i.isFunction(o.opts.clickContent)&&o.opts.clickContent(o)==="zoom")&&(t=e.getFitPos(o),o.width>t.width||o.height>t.height))},isScaledDown:function(){var t=this,e=t.current,o=e.$content,a=!1;return o&&(a=i.fancybox.getTranslate(o),a=a.width<e.width||a.height<e.height),a},canPan:function(){var t=this,e=t.current,o=e.$content,a=!1;return o&&(a=t.getFitPos(e),a=Math.abs(o.width()-a.width)>1||Math.abs(o.height()-a.height)>1),a},loadSlide:function(t){var e,o,a,c=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,c.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),e){case"image":c.setImage(t);break;case"iframe":c.setIframe(t);break;case"html":c.setContent(t,t.src||t.content);break;case"inline":i(t.src).length?c.setContent(t,i(t.src)):c.setError(t);break;case"ajax":c.showLoading(t),a=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(r,p){p==="success"&&c.setContent(t,r)},error:function(r,p){r&&p!=="abort"&&c.setError(t)}})),o.one("onReset",function(){a.abort()});break;default:c.setError(t)}return!0}},setImage:function(t){var e,o,a,c,r=this,p=t.opts.srcset||t.opts.image.srcset;if(p){a=m.devicePixelRatio||1,c=m.innerWidth*a,o=p.split(",").map(function(f){var d={};return f.trim().split(/\s+/).forEach(function(C,L){var T=parseInt(C.substring(0,C.length-1),10);return L===0?d.url=C:void(T&&(d.value=T,d.postfix=C[C.length-1]))}),d}),o.sort(function(f,d){return f.value-d.value});for(var $=0;$<o.length;$++){var b=o[$];if(b.postfix==="w"&&b.value>=c||b.postfix==="x"&&b.value>=a){e=b;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&e.postfix=="w"&&(t.height=t.width/t.height*e.value,t.width=e.value))}t.$content=i('<div class="fancybox-image-wrap"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide),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,t.$ghost=i("<img />").one("error",function(){i(this).remove(),t.$ghost=null,r.setBigImage(t)}).one("load",function(){r.afterLoad(t),r.setBigImage(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):r.setBigImage(t)},setBigImage:function(t){var e=this,o=i("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&o.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.hideLoading(t),t.$ghost?t.timouts=setTimeout(function(){t.timouts=null,t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))):e.afterLoad(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(o[0].complete||o[0].readyState=="complete")&&o[0].naturalWidth&&o[0].naturalHeight?o.trigger("load"):o[0].error?o.trigger("error"):t.timouts=setTimeout(function(){o[0].complete||t.hasError||e.showLoading(t)},100)},setIframe:function(t){var e,o=this,a=t.opts.iframe,c=t.$slide;t.$content=i('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(c),e=i(a.tpl.replace(/\{rnd\}/g,new Date().getTime())).attr(a.attr).appendTo(t.$content),a.preload?(o.showLoading(t),e.on("load.fb error.fb",function(r){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),c.on("refresh.fb",function(){var r,p,$,b=t.$content,f=a.css.width,d=a.css.height;if(e[0].isReady===1){try{p=e.contents(),$=p.find("body")}catch{}$&&$.length&&(f===l&&(r=e[0].contentWindow.document.documentElement.scrollWidth,f=Math.ceil($.outerWidth(!0)+(b.width()-r)),f+=b.outerWidth()-b.innerWidth()),d===l&&(d=Math.ceil($.outerHeight(!0)),d+=b.outerHeight()-b.innerHeight()),f&&b.width(f),d&&b.height(d)),b.removeClass("fancybox-is-hidden")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn===!0&&t.$content.prepend(o.translate(t,t.opts.btnTpl.smallBtn)),c.one("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank")}catch{}i(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),S(e)&&e.parent().length?(e.parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=i("<div></div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||(i.type(e)==="string"&&(e=i("<div>").append(i.trim(e)).contents(),e[0].nodeType===3&&(e=i("<div>").html(e))),t.opts.filter&&(e=i("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(i(this).empty(),t.isLoaded=!1)}),t.$content=i(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=i(o.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content.filter("div").first())),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass("fancybox-slide--"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=i(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(o){return o.button==2&&o.preventDefault(),!0}),t.type==="image"&&i('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,o,a,c,r,p=this,$=t.$slide,b=!1;return e=t.opts[p.firstRun?"animationEffect":"transitionEffect"],a=t.opts[p.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===l?a:t.forcedDuration,10),!t.isMoved&&t.pos===p.currPos&&a||(e=!1),e!=="zoom"||t.pos===p.currPos&&a&&t.type==="image"&&!t.hasError&&(b=p.getThumbPos(t))||(e="fade"),e==="zoom"?(r=p.getFitPos(t),r.scaleX=r.width/b.width,r.scaleY=r.height/b.height,delete r.width,delete r.height,c=t.opts.zoomOpacity,c=="auto"&&(c=Math.abs(t.width/t.height-b.width/b.height)>.1),c&&(b.opacity=.1,r.opacity=1),i.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),b),n(t.$content),void i.fancybox.animate(t.$content,r,a,function(){p.complete()})):(p.updateSlide(t),e?(i.fancybox.stop($),o="fancybox-animated fancybox-slide--"+(t.pos>=p.prevPos?"next":"previous")+" fancybox-fx-"+e,$.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(o),t.$content.removeClass("fancybox-is-hidden"),n($),void i.fancybox.animate($,"fancybox-slide--current",a,function(f){$.removeClass(o).removeAttr("style"),t.pos===p.currPos&&p.complete()},!0)):(n($),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===p.currPos&&p.complete())))},getThumbPos:function(t){var e,o=this,a=!1,c=function($){for(var b,f=$[0],d=f.getBoundingClientRect(),C=[];f.parentElement!==null;)i(f.parentElement).css("overflow")!=="hidden"&&i(f.parentElement).css("overflow")!=="auto"||C.push(f.parentElement.getBoundingClientRect()),f=f.parentElement;return b=C.every(function(L){var T=Math.min(d.right,L.right)-Math.max(d.left,L.left),M=Math.min(d.bottom,L.bottom)-Math.max(d.top,L.top);return T>0&&M>0}),b&&d.bottom>0&&d.right>0&&d.left<i(m).width()&&d.top<i(m).height()},r=t.opts.$thumb,p=r?r.offset():0;return p&&r[0].ownerDocument===y&&c(r)&&(e=o.$refs.stage.offset(),a={top:p.top-e.top+parseFloat(r.css("border-top-width")||0),left:p.left-e.left+parseFloat(r.css("border-left-width")||0),width:r.width(),height:r.height(),scaleX:1,scaleY:1}),a},complete:function(){var t=this,e=t.current,o={};e.isMoved||!e.isLoaded||e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),n(e.$slide),e.$slide.addClass("fancybox-slide--complete"),i.each(t.slides,function(a,c){c.pos>=t.currPos-1&&c.pos<=t.currPos+1?o[c.pos]=c:c&&(i.fancybox.stop(c.$slide),c.$slide.off().remove())}),t.slides=o,t.updateCursor(),t.trigger("afterShow"),(i(y.activeElement).is("[disabled]")||e.opts.autoFocus&&e.type!="image"&&e.type!=="iframe")&&t.focus())},preload:function(){var t,e,o=this;o.group.length<2||(t=o.slides[o.currPos+1],e=o.slides[o.currPos-1],t&&t.type==="image"&&o.loadSlide(t),e&&e.type==="image"&&o.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(e&&e.isComplete&&(t=e.$slide.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))),t=t&&t.length?t:this.$refs.container,t.focus())},activate:function(){var t=this;i(".fancybox-container").each(function(){var e=i(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),(t.current||t.isIdle)&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(y.body),t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,a,c,r,p,$,b=this,f=b.current,d=function(){b.cleanUp(t)};return!b.isClosing&&(b.isClosing=!0,b.trigger("beforeClose",t)===!1?(b.isClosing=!1,w(function(){b.update()}),!1):(b.removeEvents(),f.timouts&&clearTimeout(f.timouts),c=f.$content,o=f.opts.animationEffect,a=i.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.off(s).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onReset").remove(),a&&b.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),b.hideLoading(f),b.hideControls(),b.updateCursor(),o!=="zoom"||t!==!0&&c&&a&&f.type==="image"&&!f.hasError&&($=b.getThumbPos(f))||(o="fade"),o==="zoom"?(i.fancybox.stop(c),p=i.fancybox.getTranslate(c),p.width=p.width*p.scaleX,p.height=p.height*p.scaleY,r=f.opts.zoomOpacity,r=="auto"&&(r=Math.abs(f.width/f.height-$.width/$.height)>.1),r&&($.opacity=0),p.scaleX=p.width/$.width,p.scaleY=p.height/$.height,p.width=$.width,p.height=$.height,i.fancybox.setTranslate(f.$content,p),i.fancybox.animate(f.$content,$,a,d),!0):(o&&a?t===!0?setTimeout(d,a):i.fancybox.animate(f.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,a,d):d(),!0)))},cleanUp:function(t){var e,o,a=this,c=i("body");a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.$lastFocus&&a.current.opts.backFocus&&a.$lastFocus.focus(),a.current=null,e=i.fancybox.getInstance(),e?e.activate():(v.scrollTop(a.scrollTop).scrollLeft(a.scrollLeft),c.removeClass("fancybox-active compensate-for-scrollbar"),c.hasClass("fancybox-iosfix")&&(o=parseInt(y.body.style.top,10),c.removeClass("fancybox-iosfix").css("top","").scrollTop(o*-1)),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,a=Array.prototype.slice.call(arguments,1),c=this,r=e&&e.opts?e:c.current;return r?a.unshift(r):r=c,a.unshift(c),i.isFunction(r.opts[t])&&(o=r.opts[t].apply(r,a)),o===!1?o:void(t==="afterClose"?x.trigger(t+".fb",a):c.$refs.container.trigger(t+".fb",a))},updateControls:function(t){var e=this,o=e.current,a=o.index,c=o.opts.caption,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=c&&c.length?r.html(c):null,e.isHiddenControls||e.showControls(),i("[data-fancybox-count]").html(e.group.length),i("[data-fancybox-index]").html(a+1),i("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&a<=0),i("[data-fancybox-next]").prop("disabled",!o.opts.loop&&a>=e.group.length-1),o.type==="image"?i("[data-fancybox-download]").attr("href",o.opts.image.src||o.src):i("[data-fancybox-download]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?o.addClass("fancybox-show-caption "):o.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.2.0-beta.2",defaults:g,getInstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&(i.type(t)==="string"?e[t].apply(e,o):i.type(t)==="function"&&t.apply(e,o),e)},open:function(t,e,o){return new h(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),x.off("click.fb-start")},isMobile:y.createTouch!==l&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var t=y.createElement("div");return m.getComputedStyle&&m.getComputedStyle(t).getPropertyValue("transform")&&!(y.documentMode&&y.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length)return!1;if(e=t.eq(0).css("transform"),e&&e.indexOf("matrix")!==-1?(e=e.split("(")[1],e=e.split(")")[0],e=e.split(",")):e=[],e.length)e=e.length>10?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]],e=e.map(parseFloat);else{e=[0,0,1,1];var o=/\.*translate\((.*)px,(.*)px\)/i,a=o.exec(t.eq(0).attr("style"));a&&(e[0]=parseFloat(a[2]),e[1]=parseFloat(a[1]))}return{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()}},setTranslate:function(t,e){var o="",a={};if(t&&e)return e.left===l&&e.top===l||(o=(e.left===l?t.position().left:e.left)+"px, "+(e.top===l?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==l&&e.scaleY!==l&&(o=(o.length?o+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),o.length&&(a.transform=o),e.opacity!==l&&(a.opacity=e.opacity),e.width!==l&&(a.width=e.width),e.height!==l&&(a.height=e.height),t.css(a)},animate:function(t,e,o,a,c){var r=s||"transitionend";i.isFunction(o)&&(a=o,o=null),i.isPlainObject(e)||t.removeAttr("style"),t.on(r,function(p){(!p||!p.originalEvent||t.is(p.originalEvent.target)&&p.originalEvent.propertyName!="z-index")&&(t.off(r),i.isPlainObject(e)?e.scaleX!==l&&e.scaleY!==l&&(t.css("transition-duration","0ms"),e.width=Math.round(t.width()*e.scaleX),e.height=Math.round(t.height()*e.scaleY),e.scaleX=1,e.scaleY=1,i.fancybox.setTranslate(t,e)):c!==!0&&t.removeClass(e),i.isFunction(a)&&a(p))}),i.isNumeric(o)&&t.css("transition-duration",o+"ms"),i.isPlainObject(e)?i.fancybox.setTranslate(t,e):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},o+16))},stop:function(t){clearTimeout(t.data("timer")),t.off(s)}},i.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},u):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},u),this},x.on("click.fb-start","[data-fancybox]",u)}})(window,document,window.jQuery||jQuery),function(m){var y=function(l,u,g){if(l)return g=g||"",m.type(g)==="object"&&(g=m.param(g,!0)),m.each(u,function(v,x){l=l.replace("$"+v,x||"")}),g.length&&(l+=(l.indexOf("?")>0?"&":"?")+g),l},i={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:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},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"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(l){return"//maps.google."+l[2]+"/?ll="+(l[9]?l[9]+"&z="+Math.floor(l[10])+(l[12]?l[12].replace(/^\//,"&"):""):l[12])+"&output="+(l[12]&&l[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(l){return"//maps.google."+l[2]+"/maps?q="+l[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};m(document).on("onInit.fb",function(l,u){m.each(u.group,function(g,v){var x,P,S,w,s,n,h,t=v.src||"",e=!1;v.type||(x=m.extend(!0,{},i,v.opts.media),m.each(x,function(o,a){if(S=t.match(a.matcher),n={},h=o,S){if(e=a.type,a.paramPlace&&S[a.paramPlace]){s=S[a.paramPlace],s[0]=="?"&&(s=s.substring(1)),s=s.split("&");for(var c=0;c<s.length;++c){var r=s[c].split("=",2);r.length==2&&(n[r[0]]=decodeURIComponent(r[1].replace(/\+/g," ")))}}return w=m.extend(!0,{},a.params,v.opts[o],n),t=m.type(a.url)==="function"?a.url.call(this,S,w,v):y(a.url,S,w),P=m.type(a.thumb)==="function"?a.thumb.call(this,S,w,v):y(a.thumb,S),h==="vimeo"&&(t=t.replace("&%23","#")),!1}}),e?(v.src=t,v.type=e,v.opts.thumb||v.opts.$thumb&&v.opts.$thumb.length||(v.opts.thumb=P),e==="iframe"&&(m.extend(!0,v.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}}),v.contentProvider=h,v.opts.slideClass+=" fancybox-slide--"+(h=="gmap_place"||h=="gmap_search"?"map":"video"))):t&&(v.type="image"))})})}(window.jQuery||jQuery),function(m,y,i){var l=function(){return m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||function(s){return m.setTimeout(s,16.666666666666668)}}(),u=function(){return m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||function(s){m.clearTimeout(s)}}(),g=function(s){var n=[];s=s.originalEvent||s||m.e,s=s.touches&&s.touches.length?s.touches:s.changedTouches&&s.changedTouches.length?s.changedTouches:[s];for(var h in s)s[h].pageX?n.push({x:s[h].pageX,y:s[h].pageY}):s[h].clientX&&n.push({x:s[h].clientX,y:s[h].clientY});return n},v=function(s,n,h){return n&&s?h==="x"?s.x-n.x:h==="y"?s.y-n.y:Math.sqrt(Math.pow(s.x-n.x,2)+Math.pow(s.y-n.y,2)):0},x=function(s){if(s.is('a,area,button,[role="button"],input,label,select,summary,textarea')||i.isFunction(s.get(0).onclick)||s.data("selectable"))return!0;for(var n=0,h=s[0].attributes,t=h.length;n<t;n++)if(h[n].nodeName.substr(0,14)==="data-fancybox-")return!0;return!1},P=function(s){var n=m.getComputedStyle(s)["overflow-y"],h=m.getComputedStyle(s)["overflow-x"],t=(n==="scroll"||n==="auto")&&s.scrollHeight>s.clientHeight,e=(h==="scroll"||h==="auto")&&s.scrollWidth>s.clientWidth;return t||e},S=function(s){for(var n=!1;!((n=P(s.get(0)))||(s=s.parent(),!s.length||s.hasClass("fancybox-stage")||s.is("body"))););return n},w=function(s){var n=this;n.instance=s,n.$bg=s.$refs.bg,n.$stage=s.$refs.stage,n.$container=s.$refs.container,n.destroy(),n.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(n,"ontouchstart"))};w.prototype.destroy=function(){this.$container.off(".fb.touch")},w.prototype.ontouchstart=function(s){var n=this,h=i(s.target),t=n.instance,e=t.current,o=e.$content,a=s.type=="touchstart";if(a&&n.$container.off("mousedown.fb.touch"),!e||n.instance.isAnimating||n.instance.isClosing)return s.stopPropagation(),void s.preventDefault();if((!s.originalEvent||s.originalEvent.button!=2)&&h.length&&!x(h)&&!x(h.parent())&&!(s.originalEvent.clientX>h[0].clientWidth+h.offset().left)&&(n.startPoints=g(s),n.startPoints&&!(n.startPoints.length>1&&t.isSliding))){if(n.$target=h,n.$content=o,n.canTap=!0,i(y).off(".fb.touch"),i(y).on(a?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(n,"ontouchend")),i(y).on(a?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(n,"ontouchmove")),!t.current.opts.touch&&!t.canPan()||!h.is(n.$stage)&&!n.$stage.find(h).length)return void(h.is("img")&&s.preventDefault());s.stopPropagation(),i.fancybox.isMobile&&(S(n.$target)||S(n.$target.parent()))||s.preventDefault(),n.canvasWidth=Math.round(e.$slide[0].clientWidth),n.canvasHeight=Math.round(e.$slide[0].clientHeight),n.startTime=new Date().getTime(),n.distanceX=n.distanceY=n.distance=0,n.isPanning=!1,n.isSwiping=!1,n.isZooming=!1,n.sliderStartPos=n.sliderLastPos||{top:0,left:0},n.contentStartPos=i.fancybox.getTranslate(n.$content),n.contentLastPos=null,n.startPoints.length!==1||n.isZooming||(n.canTap=!t.isSliding,e.type==="image"&&(n.contentStartPos.width>n.canvasWidth+1||n.contentStartPos.height>n.canvasHeight+1)?(i.fancybox.stop(n.$content),n.$content.css("transition-duration","0ms"),n.isPanning=!0):n.isSwiping=!0,n.$container.addClass("fancybox-controls--isGrabbing")),n.startPoints.length!==2||t.isAnimating||e.hasError||e.type!=="image"||!e.isLoaded&&!e.$ghost||(n.isZooming=!0,n.isSwiping=!1,n.isPanning=!1,i.fancybox.stop(n.$content),n.$content.css("transition-duration","0ms"),n.centerPointStartX=.5*(n.startPoints[0].x+n.startPoints[1].x)-i(m).scrollLeft(),n.centerPointStartY=.5*(n.startPoints[0].y+n.startPoints[1].y)-i(m).scrollTop(),n.percentageOfImageAtPinchPointX=(n.centerPointStartX-n.contentStartPos.left)/n.contentStartPos.width,n.percentageOfImageAtPinchPointY=(n.centerPointStartY-n.contentStartPos.top)/n.contentStartPos.height,n.startDistanceBetweenFingers=v(n.startPoints[0],n.startPoints[1]))}},w.prototype.ontouchmove=function(s){var n=this;if(n.newPoints=g(s),i.fancybox.isMobile&&(S(n.$target)||S(n.$target.parent())))return s.stopPropagation(),void(n.canTap=!1);if((n.instance.current.opts.touch||n.instance.canPan())&&n.newPoints&&n.newPoints.length&&(n.distanceX=v(n.newPoints[0],n.startPoints[0],"x"),n.distanceY=v(n.newPoints[0],n.startPoints[0],"y"),n.distance=v(n.newPoints[0],n.startPoints[0]),n.distance>0)){if(!n.$target.is(n.$stage)&&!n.$stage.find(n.$target).length)return;s.stopPropagation(),s.preventDefault(),n.isSwiping?n.onSwipe():n.isPanning?n.onPan():n.isZooming&&n.onZoom()}},w.prototype.onSwipe=function(){var s,n=this,h=n.isSwiping,t=n.sliderStartPos.left||0;h===!0?Math.abs(n.distance)>10&&(n.canTap=!1,n.instance.group.length<2&&n.instance.opts.touch.vertical?n.isSwiping="y":n.instance.isSliding||n.instance.opts.touch.vertical===!1||n.instance.opts.touch.vertical==="auto"&&i(m).width()>800?n.isSwiping="x":(s=Math.abs(180*Math.atan2(n.distanceY,n.distanceX)/Math.PI),n.isSwiping=s>45&&s<135?"y":"x"),n.instance.isSliding=n.isSwiping,n.startPoints=n.newPoints,i.each(n.instance.slides,function(e,o){i.fancybox.stop(o.$slide),o.$slide.css("transition-duration","0ms"),o.inTransition=!1,o.pos===n.instance.current.pos&&(n.sliderStartPos.left=i.fancybox.getTranslate(o.$slide).left)}),n.instance.SlideShow&&n.instance.SlideShow.isActive&&n.instance.SlideShow.stop()):(h=="x"&&(n.distanceX>0&&(n.instance.group.length<2||n.instance.current.index===0&&!n.instance.current.opts.loop)?t+=Math.pow(n.distanceX,.8):n.distanceX<0&&(n.instance.group.length<2||n.instance.current.index===n.instance.group.length-1&&!n.instance.current.opts.loop)?t-=Math.pow(-n.distanceX,.8):t+=n.distanceX),n.sliderLastPos={top:h=="x"?0:n.sliderStartPos.top+n.distanceY,left:t},n.requestId&&(u(n.requestId),n.requestId=null),n.requestId=l(function(){n.sliderLastPos&&(i.each(n.instance.slides,function(e,o){var a=o.pos-n.instance.currPos;i.fancybox.setTranslate(o.$slide,{top:n.sliderLastPos.top,left:n.sliderLastPos.left+a*n.canvasWidth+a*o.opts.gutter})}),n.$container.addClass("fancybox-is-sliding"))}))},w.prototype.onPan=function(){var s,n,h,t=this;t.canTap=!1,s=t.contentStartPos.width>t.canvasWidth?t.contentStartPos.left+t.distanceX:t.contentStartPos.left,n=t.contentStartPos.top+t.distanceY,h=t.limitMovement(s,n,t.contentStartPos.width,t.contentStartPos.height),h.scaleX=t.contentStartPos.scaleX,h.scaleY=t.contentStartPos.scaleY,t.contentLastPos=h,t.requestId&&(u(t.requestId),t.requestId=null),t.requestId=l(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})},w.prototype.limitMovement=function(s,n,h,t){var e,o,a,c,r=this,p=r.canvasWidth,$=r.canvasHeight,b=r.contentStartPos.left,f=r.contentStartPos.top,d=r.distanceX,C=r.distanceY;return e=Math.max(0,.5*p-.5*h),o=Math.max(0,.5*$-.5*t),a=Math.min(p-h,.5*p-.5*h),c=Math.min($-t,.5*$-.5*t),h>p&&(d>0&&s>e&&(s=e-1+Math.pow(-e+b+d,.8)||0),d<0&&s<a&&(s=a+1-Math.pow(a-b-d,.8)||0)),t>$&&(C>0&&n>o&&(n=o-1+Math.pow(-o+f+C,.8)||0),C<0&&n<c&&(n=c+1-Math.pow(c-f-C,.8)||0)),{top:n,left:s}},w.prototype.limitPosition=function(s,n,h,t){var e=this,o=e.canvasWidth,a=e.canvasHeight;return h>o?(s=s>0?0:s,s=s<o-h?o-h:s):s=Math.max(0,o/2-h/2),t>a?(n=n>0?0:n,n=n<a-t?a-t:n):n=Math.max(0,a/2-t/2),{top:n,left:s}},w.prototype.onZoom=function(){var s=this,n=s.contentStartPos.width,h=s.contentStartPos.height,t=s.contentStartPos.left,e=s.contentStartPos.top,o=v(s.newPoints[0],s.newPoints[1]),a=o/s.startDistanceBetweenFingers,c=Math.floor(n*a),r=Math.floor(h*a),p=(n-c)*s.percentageOfImageAtPinchPointX,$=(h-r)*s.percentageOfImageAtPinchPointY,b=(s.newPoints[0].x+s.newPoints[1].x)/2-i(m).scrollLeft(),f=(s.newPoints[0].y+s.newPoints[1].y)/2-i(m).scrollTop(),d=b-s.centerPointStartX,C=f-s.centerPointStartY,L=t+(p+d),T=e+($+C),M={top:T,left:L,scaleX:s.contentStartPos.scaleX*a,scaleY:s.contentStartPos.scaleY*a};s.canTap=!1,s.newWidth=c,s.newHeight=r,s.contentLastPos=M,s.requestId&&(u(s.requestId),s.requestId=null),s.requestId=l(function(){i.fancybox.setTranslate(s.$content,s.contentLastPos)})},w.prototype.ontouchend=function(s){var n=this,h=Math.max(new Date().getTime()-n.startTime,1),t=n.isSwiping,e=n.isPanning,o=n.isZooming;return n.endPoints=g(s),n.$container.removeClass("fancybox-controls--isGrabbing"),i(y).off(".fb.touch"),n.requestId&&(u(n.requestId),n.requestId=null),n.isSwiping=!1,n.isPanning=!1,n.isZooming=!1,n.canTap?n.onTap(s):(n.speed=366,n.velocityX=n.distanceX/h*.5,n.velocityY=n.distanceY/h*.5,n.speedX=Math.max(.5*n.speed,Math.min(1.5*n.speed,1/Math.abs(n.velocityX)*n.speed)),void(e?n.endPanning():o?n.endZooming():n.endSwiping(t)))},w.prototype.endSwiping=function(s){var n=this,h=!1;n.instance.isSliding=!1,n.sliderLastPos=null,s=="y"&&Math.abs(n.distanceY)>50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},150),h=n.instance.close(!0,300)):s=="x"&&n.distanceX>50&&n.instance.group.length>1?h=n.instance.previous(n.speedX):s=="x"&&n.distanceX<-50&&n.instance.group.length>1&&(h=n.instance.next(n.speedX)),h!==!1||s!="x"&&s!="y"||n.instance.jumpTo(n.instance.current.index,150),n.$container.removeClass("fancybox-is-sliding")},w.prototype.endPanning=function(){var s,n,h,t=this;t.contentLastPos&&(t.instance.current.opts.touch.momentum===!1?(s=t.contentLastPos.left,n=t.contentLastPos.top):(s=t.contentLastPos.left+t.velocityX*t.speed,n=t.contentLastPos.top+t.velocityY*t.speed),h=t.limitPosition(s,n,t.contentStartPos.width,t.contentStartPos.height),h.width=t.contentStartPos.width,h.height=t.contentStartPos.height,i.fancybox.animate(t.$content,h,330))},w.prototype.endZooming=function(){var s,n,h,t,e=this,o=e.instance.current,a=e.newWidth,c=e.newHeight;e.contentLastPos&&(s=e.contentLastPos.left,n=e.contentLastPos.top,t={top:n,left:s,width:a,height:c,scaleX:1,scaleY:1},i.fancybox.setTranslate(e.$content,t),a<e.canvasWidth&&c<e.canvasHeight?e.instance.scaleToFit(150):a>o.width||c>o.height?e.instance.scaleToActual(e.centerPointStartX,e.centerPointStartY,150):(h=e.limitPosition(s,n,a,c),i.fancybox.setTranslate(e.content,i.fancybox.getTranslate(e.$content)),i.fancybox.animate(e.$content,h,150)))},w.prototype.onTap=function(s){var n,h=this,t=i(s.target),e=h.instance,o=e.current,a=s&&g(s)||h.startPoints,c=a[0]?a[0].x-h.$stage.offset().left:0,r=a[0]?a[0].y-h.$stage.offset().top:0,p=function($){var b=o.opts[$];if(i.isFunction(b)&&(b=b.apply(e,[o,s])),b)switch(b){case"close":e.close(h.startEvent);break;case"toggleControls":e.toggleControls(!0);break;case"next":e.next();break;case"nextOrClose":e.group.length>1?e.next():e.close(h.startEvent);break;case"zoom":o.type=="image"&&(o.isLoaded||o.$ghost)&&(e.canPan()?e.scaleToFit():e.isScaledDown()?e.scaleToActual(c,r):e.group.length<2&&e.close(h.startEvent))}};if(!(s.originalEvent&&s.originalEvent.button==2||e.isSliding||c>t[0].clientWidth+t.offset().left)){if(t.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="Outside";else if(t.is(".fancybox-slide"))n="Slide";else{if(!e.current.$content||!e.current.$content.has(s.target).length)return;n="Content"}if(h.tapped){if(clearTimeout(h.tapped),h.tapped=null,Math.abs(c-h.tapX)>50||Math.abs(r-h.tapY)>50||e.isSliding)return this;p("dblclick"+n)}else h.tapX=c,h.tapY=r,o.opts["dblclick"+n]&&o.opts["dblclick"+n]!==o.opts["click"+n]?h.tapped=setTimeout(function(){h.tapped=null,p("click"+n)},300):p("click"+n);return this}},i(y).on("onActivate.fb",function(s,n){n&&!n.Guestures&&(n.Guestures=new w(n))}),i(y).on("beforeClose.fb",function(s,n){n&&n.Guestures&&n.Guestures.destroy()})}(window,document,window.jQuery||jQuery),function(m,y){var i=function(l){this.instance=l,this.init()};y.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var l=this;l.$button=l.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){l.toggle()}),(l.instance.group.length<2||!l.instance.group[l.instance.currIndex].opts.slideShow)&&l.$button.hide()},set:function(l){var u=this;console.info("== set; force: "+l),u.instance&&u.instance.current&&(l===!0||u.instance.current.opts.loop||u.instance.currIndex<u.instance.group.length-1)?(console.info("!!"),u.timer=setTimeout(function(){console.info(">> "+(u.instance.current.index+1%u.instance.group.length-1)),u.instance.jumpTo(u.instance.current.index%u.instance.group.length-1)},u.instance.current.opts.slideShow.speed||u.speed)):(u.stop(),u.instance.idleSecondsCounter=0,u.instance.showControls())},clear:function(){var l=this;clearTimeout(l.timer),l.timer=null},start:function(){var l=this,u=l.instance.current;u&&(console.info(u),l.isActive=!0,l.$button.attr("title",u.opts.i18n[u.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),l.set(!0))},stop:function(){var l=this,u=l.instance.current;l.clear(),l.$button.attr("title",u.opts.i18n[u.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),l.isActive=!1},toggle:function(){var l=this;l.isActive?l.stop():l.start()}}),y(m).on({"onInit.fb":function(l,u){u&&!u.SlideShow&&(u.SlideShow=new i(u))},"beforeShow.fb":function(l,u,g,v){var x=u&&u.SlideShow;v?x&&g.opts.slideShow.autoStart&&x.start():x&&x.isActive&&x.clear()},"afterShow.fb":function(l,u,g){var v=u&&u.SlideShow;v&&v.isActive&&v.set()},"afterKeydown.fb":function(l,u,g,v,x){var P=u&&u.SlideShow;!P||!g.opts.slideShow||x!==80&&x!==32||y(m.activeElement).is("button,a,input")||(v.preventDefault(),P.toggle())},"beforeClose.fb onDeactivate.fb":function(l,u){var g=u&&u.SlideShow;g&&g.stop()}}),y(m).on("visibilitychange",function(){var l=y.fancybox.getInstance(),u=l&&l.SlideShow;u&&u.isActive&&(m.hidden?u.clear():u.set())})}(document,window.jQuery||jQuery),function(m,y){var i=function(){var u,g,v,x=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],P={};for(g=0;g<x.length;g++)if(u=x[g],u&&u[1]in m){for(v=0;v<u.length;v++)P[x[0][v]]=u[v];return P}return!1}();if(!i)return void(y&&y.fancybox&&(y.fancybox.defaults.btnTpl.fullScreen=!1));var l={request:function(u){u=u||m.documentElement,u[i.requestFullscreen](u.ALLOW_KEYBOARD_INPUT)},exit:function(){m[i.exitFullscreen]()},toggle:function(u){u=u||m.documentElement,this.isFullscreen()?this.exit():this.request(u)},isFullscreen:function(){return!!m[i.fullscreenElement]},enabled:function(){return!!m[i.fullscreenEnabled]}};y(m).on({"onInit.fb":function(u,g){var v;g&&g.group[g.currIndex].opts.fullScreen?(v=g.$refs.container,v.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(x){x.stopPropagation(),x.preventDefault(),l.toggle(v[0])}),g.opts.fullScreen&&g.opts.fullScreen.autoStart===!0&&l.request(v[0]),g.FullScreen=l):g&&g.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(u,g,v,x,P){g&&g.FullScreen&&P===70&&(x.preventDefault(),g.FullScreen.toggle(g.$refs.container[0]))},"beforeClose.fb":function(u){u&&u.FullScreen&&l.exit()}}),y(m).on(i.fullscreenchange,function(){var u=l.isFullscreen(),g=y.fancybox.getInstance();g&&(g.current&&g.current.type==="image"&&g.isAnimating&&(g.current.$content.css("transition","none"),g.isAnimating=!1,g.update(!0,!0,0)),g.trigger("onFullscreenChange",u),g.$refs.container.toggleClass("fancybox-is-fullscreen",u))})}(document,window.jQuery||jQuery),function(m,y){var i=function(l){this.instance=l,this.init()};y.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var l=this,u=l.instance.group[0],g=l.instance.group[1];l.$button=l.instance.$refs.toolbar.find("[data-fancybox-thumbs]"),l.instance.group.length>1&&l.instance.group[l.instance.currIndex].opts.thumbs&&(u.type=="image"||u.opts.thumb||u.opts.$thumb)&&(g.type=="image"||g.opts.thumb||g.opts.$thumb)?(l.$button.on("click",function(){l.toggle()}),l.isActive=!0):(l.$button.hide(),l.isActive=!1)},create:function(){var l,u,g=this.instance;this.$grid=y('<div class="fancybox-thumbs"></div>').appendTo(g.$refs.container),l="<ul>",y.each(g.group,function(v,x){u=x.opts.thumb||(x.opts.$thumb?x.opts.$thumb.attr("src"):null),u||x.type!=="image"||(u=x.src),u&&u.length&&(l+='<li data-index="'+v+'" tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+u+'" /></li>')}),l+="</ul>",this.$list=y(l).appendTo(this.$grid).on("click","li",function(){g.jumpTo(y(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var v,x,P,S,w=y(this).parent().removeClass("fancybox-thumbs-loading"),s=w.outerWidth(),n=w.outerHeight();v=this.naturalWidth||this.width,x=this.naturalHeight||this.height,P=v/s,S=x/n,P>=1&&S>=1&&(P>S?(v/=S,x=n):(v=s,x/=P)),y(this).css({width:Math.floor(v),height:Math.floor(x),"margin-top":Math.min(0,Math.floor(.3*n-.3*x)),"margin-left":Math.min(0,Math.floor(.5*s-.5*v))}).show()}).each(function(){this.src=y(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-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),y(m).on({"onInit.fb":function(l,u){u&&!u.Thumbs&&(u.Thumbs=new i(u))},"beforeShow.fb":function(l,u,g,v){var x=u&&u.Thumbs;if(x&&x.isActive){if(g.modal)return x.$button.hide(),void x.hide();v&&g.opts.thumbs.autoStart===!0&&x.show(),x.isVisible&&x.focus()}},"afterKeydown.fb":function(l,u,g,v,x){var P=u&&u.Thumbs;P&&P.isActive&&x===71&&(v.preventDefault(),P.toggle())},"beforeClose.fb":function(l,u){var g=u&&u.Thumbs;g&&g.isVisible&&u.opts.thumbs.hideOnClose!==!1&&g.close()}})}(document,window.jQuery||jQuery),function(m,y){y.extend(!0,y.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 27,14 23,16 L23,10 L33,20 L23,29 L23,24 C14,24 7,28 6,30 Z"></svg></button>'},shareTpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a href="https://www.facebook.com/sharer/sharer.php?u={{src}}" target="_blank" class="fancybox-share_button"><svg version="1.1" viewBox="0 0 32 32" fill="#3b5998"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg><span>Facebook</span></a><a href="https://www.pinterest.com/pin/create/button/?url={{src}}&amp;description={{descr}}" target="_blank" class="fancybox-share_button"><svg version="1.1" viewBox="0 0 32 32" fill="#c92228"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg><span>Pinterest</span></a><a href="https://twitter.com/intent/tweet?url={{src}}&amp;text={{descr}}" target="_blank" class="fancybox-share_button"><svg version="1.1" viewBox="0 0 32 32" fill="#1da1f2"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg><span>Twitter</span></a></p></div>'}),y(m).on("click","[data-fancybox-share]",function(){var i=y.fancybox.getInstance();i&&y.fancybox.open({src:i.translate(i,i.current.opts.shareTpl.replace(/\{\{src\}\}/g,encodeURI(i.current.src)).replace(/\{\{descr\}\}/g,encodeURI(i.current.caption||""))),type:"html",opts:{autoFocus:!1,animationEffect:"fade"}})})}(document,window.jQuery||jQuery),function(m,y,i){function l(){var S=y.location.hash.substr(1),w=S.split("-"),s=w.length>1&&/^\+?\d+$/.test(w[w.length-1])&&parseInt(w.pop(-1),10)||1,n=w.join("-");return s<1&&(s=1),{hash:S,index:s,gallery:n}}function u(S){var w;S.gallery!==""&&(w=i("[data-fancybox='"+i.escapeSelector(S.gallery)+"']").eq(S.index-1),w.length||(w=i("#"+i.escapeSelector(S.gallery))),w.length&&(v=!1,w.trigger("click")))}function g(S){var w;return!!S&&(w=S.current?S.current.opts:S.opts,w.hash||(w.$orig?w.$orig.data("fancybox"):""))}i.escapeSelector||(i.escapeSelector=function(S){var w=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,s=function(n,h){return h?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n};return(S+"").replace(w,s)});var v=!0,x=null,P=null;i(function(){i(m).on({"onInit.fb":function(S,w){var s,n;w.group[w.currIndex].opts.hash!==!1&&(s=l(),n=g(w),n&&s.gallery&&n==s.gallery&&(w.currIndex=s.index-1))},"beforeShow.fb":function(S,w,s){var n;s&&s.opts.hash!==!1&&(n=g(w),n&&n!==""&&(y.location.hash.indexOf(n)<0&&(w.opts.origHash=y.location.hash),x=n+(w.group.length>1?"-"+(s.index+1):""),"replaceState"in y.history?(P&&clearTimeout(P),P=setTimeout(function(){y.history[v?"pushState":"replaceState"]({},m.title,y.location.pathname+y.location.search+"#"+x),P=null,v=!1},300)):y.location.hash=x))},"beforeClose.fb":function(S,w,s){var n,h;P&&clearTimeout(P),s.opts.hash!==!1&&(n=g(w),h=w&&w.opts.origHash?w.opts.origHash:"",n&&n!==""&&("replaceState"in history?y.history.replaceState({},m.title,y.location.pathname+y.location.search+h):(y.location.hash=h,i(y).scrollTop(w.scrollTop).scrollLeft(w.scrollLeft))),x=null)}}),i(y).on("hashchange.fb",function(){var S=l();i.fancybox.getInstance()?!x||x===S.gallery+"-"+S.index||S.index===1&&x==S.gallery||(x=null,i.fancybox.close()):S.gallery!==""&&u(S)}),u(l())})}(document,window,window.jQuery||jQuery);