// ================================================== // fancybox v3.2.10 // // 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 i(t){var e=n(t.currenttarget),o=t.data?t.data.options:{},i=e.attr("data-fancybox")||"",a=0,s=[];t.isdefaultprevented()||(t.preventdefault(),i?(s=o.selector?n(o.selector):t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]'),a=s.index(e),a<0&&(a=0)):s=[e],n.fancybox.open(s,o,a))}if(n){if(n.fn.fancybox)return void("console"in t&&console.log("fancybox already initialized"));var a={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!0,toolbar:!0,buttons:["slideshow","fullscreen","thumbs","share","close"],idletime:3,smallbtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},defaulttype:"image",animationeffect:"zoom",animationduration:500,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'
',errortpl:'

{{error}}

',btntpl:{download:'',zoom:'',close:'',smallbtn:'',arrowleft:'',arrowright:''},parentel:"body",autofocus:!1,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,parentel:".fancybox-container",axis:"y"},wheel:"auto",oninit:n.noop,beforeload:n.noop,afterload:n.noop,beforeshow:n.noop,aftershow:n.noop,beforeclose:n.noop,afterclose:n.noop,onactivate:n.noop,ondeactivate:n.noop,clickcontent:function(t,e){return"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{idletime:!1,margin:0,clickcontent:function(t,e){return"image"===t.type&&"togglecontrols"},clickslide:function(t,e){return"image"===t.type?"togglecontrols":"close"},dblclickcontent:function(t,e){return"image"===t.type&&"zoom"},dblclickslide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{close:"close",next:"next",prev:"previous",error:"the requested content cannot be loaded.
please try again later.",play_start:"start slideshow",play_stop:"pause slideshow",full_screen:"full screen",thumbs:"thumbnails",download:"download",share:"share",zoom:"zoom"},de:{close:"schliessen",next:"weiter",prev:"zurück",error:"die angeforderten daten konnten nicht geladen werden.
bitte versuchen sie es später nochmal.",play_start:"diaschau starten",play_stop:"diaschau beenden",full_screen:"vollbild",thumbs:"vorschaubilder",download:"herunterladen",share:"teilen",zoom:"maßstab"}}},s=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||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)}}(),d=function(){var t,n=e.createelement("fakeelement"),i={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in i)if(n.style[t]!==o)return i[t];return"transitionend"}(),f=function(t){return t&&t.length&&t[0].offsetheight},p=function(t,o,i){var a=this;a.opts=n.extend(!0,{index:i},n.fancybox.defaults,o||{}),n.fancybox.ismobile&&(a.opts=n.extend(!0,{},a.opts,a.opts.mobile)),o&&n.isarray(o.buttons)&&(a.opts.buttons=o.buttons),a.id=a.opts.id||++c,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=n(e.activeelement).blur(),a.slides={},a.init())};n.extend(p.prototype,{init:function(){var i,a,s,c=this,l=c.group[c.currindex],u=l.opts,d=n.fancybox.scrollbarwidth;c.scrolltop=r.scrolltop(),c.scrollleft=r.scrollleft(),n.fancybox.getinstance()||(n("body").addclass("fancybox-active"),/ipad|iphone|ipod/.test(navigator.useragent)&&!t.msstream?"image"!==l.type&&n("body").css("top",n("body").scrolltop()*-1).addclass("fancybox-iosfix"):!n.fancybox.ismobile&&e.body.scrollheight>t.innerheight&&(d===o&&(i=n('
').appendto("body"),d=n.fancybox.scrollbarwidth=i[0].offsetwidth-i[0].clientwidth,i.remove()),n("head").append('"),n("body").addclass("compensate-for-scrollbar"))),s="",n.each(u.buttons,function(t,e){s+=u.btntpl[e]||""}),a=n(c.translate(c,u.basetpl.replace("{{buttons}}",s).replace("{{arrows}}",u.btntpl.arrowleft+u.btntpl.arrowright))).attr("id","fancybox-container-"+c.id).addclass("fancybox-is-hidden").addclass(u.baseclass).data("fancybox",c).appendto(u.parentel),c.$refs={container:a},["bg","inner","infobar","toolbar","stage","caption","navigation"].foreach(function(t){c.$refs[t]=a.find(".fancybox-"+t)}),c.trigger("oninit"),c.activate(),c.jumpto(c.currindex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},creategroup:function(t){var e=this,i=n.makearray(t);n.each(i,function(t,i){var a,s,r,c,l,u={},d={};n.isplainobject(i)?(u=i,d=i.opts||i):"object"===n.type(i)&&n(i).length?(a=n(i),d=a.data(),d=n.extend({},d,d.options||{}),d.$orig=a,u.src=d.src||a.attr("href"),u.type||u.src||(u.type="inline",u.src=i)):u={type:"html",src:i+""},u.opts=n.extend(!0,{},e.opts,d),n.isarray(d.buttons)&&(u.opts.buttons=d.buttons),s=u.type||u.opts.type,c=u.src||"",!s&&c&&(c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":c.match(/\.(pdf)((\?|#).*)?$/i)?s="pdf":(r=c.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(s="video",u.opts.videoformat||(u.opts.videoformat="video/"+("ogv"===r[1]?"ogg":r[1]))):"#"===c.charat(0)&&(s="inline")),s?u.type=s:e.trigger("objectneedstype",u),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(u.opts.caption)&&(u.opts.caption=u.opts.caption.apply(i,[e,u])),"function"===n.type(e.opts.caption)&&(u.opts.caption=e.opts.caption.apply(i,[e,u])),u.opts.caption instanceof n||(u.opts.caption=u.opts.caption===o?"":u.opts.caption+""),"ajax"===s&&(l=c.split(/\s+/,2),l.length>1&&(u.src=l.shift(),u.opts.filter=l.shift())),"auto"==u.opts.smallbtn&&(n.inarray(s,["html","inline","ajax"])>-1?(u.opts.toolbar=!1,u.opts.smallbtn=!0):u.opts.smallbtn=!1),"pdf"===s&&(u.type="iframe",u.opts.iframe.preload=!1),u.opts.modal&&(u.opts=n.extend(!0,u.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(u)})},addevents:function(){var o=this;o.removeevents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stoppropagation(),t.preventdefault(),o.close(t)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(t){t.stoppropagation(),t.preventdefault(),o.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(t){t.stoppropagation(),t.preventdefault(),o.next()}).on("click.fb","[data-fancybox-zoom]",function(t){o[o.isscaleddown()?"scaletoactual":"scaletofit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalevent&&"resize"===t.originalevent.type?u(function(){o.update()}):(o.$refs.stage.hide(),settimeout(function(){o.$refs.stage.show(),o.update()},600))}),r.on("focusin.fb",function(t){var i=n.fancybox?n.fancybox.getinstance():null;i.isclosing||!i.current||!i.current.opts.trapfocus||n(t.target).hasclass("fancybox-container")||n(t.target).is(e)||i&&"fixed"!==n(t.target).css("position")&&!i.$refs.container.has(t.target).length&&(t.stoppropagation(),i.focus(),s.scrolltop(o.scrolltop).scrollleft(o.scrollleft))}),r.on("keydown.fb",function(t){var e=o.current,i=t.keycode||t.which;if(e&&e.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea"))return 8===i||27===i?(t.preventdefault(),void o.close(t)):37===i||38===i?(t.preventdefault(),void o.previous()):39===i||40===i?(t.preventdefault(),void o.next()):void o.trigger("afterkeydown",t,i)}),o.group[o.currindex].opts.idletime&&(o.idlesecondscounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){o.idlesecondscounter=0,o.isidle&&o.showcontrols(),o.isidle=!1}),o.idleinterval=t.setinterval(function(){o.idlesecondscounter++,o.idlesecondscounter>=o.group[o.currindex].opts.idletime&&!o.isdragging&&(o.isidle=!0,o.idlesecondscounter=0,o.hidecontrols())},1e3))},removeevents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleinterval&&(t.clearinterval(e.idleinterval),e.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,i){var a,s,r,c,l,u,d,p=this,h=p.group.length;if(!(p.isdragging||p.isclosing||p.isanimating&&p.firstrun)){if(t=parseint(t,10),s=p.current?p.current.opts.loop:p.opts.loop,!s&&(t<0||t>=h))return!1;if(a=p.firstrun=null===p.firstrun,!(h<2&&!a&&p.isdragging)){if(c=p.current,p.previndex=p.currindex,p.prevpos=p.currpos,r=p.createslide(t),h>1&&((s||r.index>0)&&p.createslide(t-1),(s||r.indexr.pos?"next":"previous"),c.$slide.removeclass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),c.iscomplete=!1,e&&(r.ismoved||r.opts.transitioneffect)&&(r.ismoved?c.$slide.addclass(d):(d="fancybox-animated "+d+" fancybox-fx-"+r.opts.transitioneffect,n.fancybox.animate(c.$slide,d,e,function(){c.$slide.removeclass(d).removeattr("style")}))))}}},createslide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('
').appendto(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isloaded:!1}),i.updateslide(i.slides[t])),i.slides[t]},scaletoactual:function(t,e,i){var a,s,r,c,l,u=this,d=u.current,f=d.$content,p=parseint(d.$slide.width(),10),h=parseint(d.$slide.height(),10),g=d.width,b=d.height;"image"!=d.type||d.haserror||!f||u.isanimating||(n.fancybox.stop(f),u.isanimating=!0,t=t===o?.5*p:t,e=e===o?.5*h:e,a=n.fancybox.gettranslate(f),c=g/a.width,l=b/a.height,s=.5*p-.5*g,r=.5*h-.5*b,g>p&&(s=a.left*c-(t*c-t),s>0&&(s=0),sh&&(r=a.top*l-(e*l-e),r>0&&(r=0),rt.width||o.height>t.height))},isscaleddown:function(){var t=this,e=t.current,o=e.$content,i=!1;return o&&(i=n.fancybox.gettranslate(o),i=i.width1||math.abs(n.height()-o.height)>1),o},loadslide:function(t){var e,o,i,a=this;if(!t.isloading&&!t.isloaded){switch(t.isloading=!0,a.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":a.setimage(t);break;case"iframe":a.setiframe(t);break;case"html":a.setcontent(t,t.src||t.content);break;case"inline":n(t.src).length?a.setcontent(t,n(t.src)):a.seterror(t);break;case"ajax":a.showloading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setcontent(t,e)},error:function(e,n){e&&"abort"!==n&&a.seterror(t)}})),o.one("onreset",function(){i.abort()});break;case"video":a.setcontent(t,'");break;default:a.seterror(t)}return!0}},setimage:function(e){var o,i,a,s,r=this,c=e.opts.srcset||e.opts.image.srcset;if(c){a=t.devicepixelratio||1,s=t.innerwidth*a,i=c.split(",").map(function(t){var e={};return t.trim().split(/\s+/).foreach(function(t,n){var o=parseint(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),i.sort(function(t,e){return t.value-e.value});for(var l=0;l=s||"x"===u.postfix&&u.value>=a){o=u;break}}!o&&i.length&&(o=i[i.length-1]),o&&(e.src=o.url,e.width&&e.height&&"w"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$content=n('
').addclass("fancybox-is-hidden").appendto(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("").one("error",function(){n(this).remove(),e.$ghost=null,r.setbigimage(e)}).one("load",function(){r.afterload(e),r.setbigimage(e)}).addclass("fancybox-image").appendto(e.$content).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):r.setbigimage(e)},setbigimage:function(t){var e=this,o=n("");t.$image=o.one("error",function(){e.seterror(t)}).one("load",function(){cleartimeout(t.timouts),t.timouts=null,e.isclosing||(t.width=t.opts.width||this.naturalwidth,t.height=t.opts.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||"complete"==o[0].readystate)&&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,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('
').css(a.css).appendto(s),e=n(a.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(a.attr).appendto(t.$content),a.preload?(i.showloading(t),e.on("load.fb error.fb",function(e){this.isready=1,t.$slide.trigger("refresh"),i.afterload(t)}),s.on("refresh.fb",function(){var n,i,s,r=t.$content,c=a.css.width,l=a.css.height;if(1===e[0].isready){try{i=e.contents(),s=i.find("body")}catch(t){}s&&s.length&&(c===o&&(n=e[0].contentwindow.document.documentelement.scrollwidth,c=math.ceil(s.outerwidth(!0)+(r.width()-n)),c+=r.outerwidth()-r.innerwidth()),l===o&&(l=math.ceil(s.outerheight(!0)),l+=r.outerheight()-r.innerheight()),c&&r.width(c),l&&r.height(l)),r.removeclass("fancybox-is-hidden")}})):this.afterload(t),e.attr("src",t.src),t.opts.smallbtn===!0&&t.$content.prepend(i.translate(t,t.opts.btntpl.smallbtn)),s.one("onreset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty(),t.isloaded=!1})},setcontent:function(t,e){var o=this;o.isclosing||(o.hideloading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.parent(".fancybox-slide--inline").trigger("onreset"),t.$placeholder=n("
").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===n.type(e)&&(e=n("
").append(n.trim(e)).contents(),3===e[0].nodetype&&(e=n("
").html(e))),t.opts.filter&&(e=n("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallbtn&&(t.$smallbtn.remove(),t.$smallbtn=null),t.haserror||(n(this).empty(),t.isloaded=!1)}),t.$content=n(e).appendto(t.$slide),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=n(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.smallbtn&&!t.$smallbtn&&(t.$smallbtn=n(e.translate(t,t.opts.btntpl.smallbtn)).appendto(t.$content.filter("div,form").first())),t.opts.protect&&t.$content&&!t.haserror&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventdefault(),!0}),"image"===t.type&&n('
').appendto(t.$content)),e.revealcontent(t))},revealcontent:function(t){var e,i,a,s,r,c=this,l=t.$slide,u=!1;return e=t.opts[c.firstrun?"animationeffect":"transitioneffect"],a=t.opts[c.firstrun?"animationduration":"transitionduration"],a=parseint(t.forcedduration===o?a:t.forcedduration,10),!t.ismoved&&t.pos===c.currpos&&a||(e=!1),"zoom"!==e||t.pos===c.currpos&&a&&"image"===t.type&&!t.haserror&&(u=c.getthumbpos(t))||(e="fade"),"zoom"===e?(r=c.getfitpos(t),r.scalex=r.width/u.width,r.scaley=r.height/u.height,delete r.width,delete r.height,s=t.opts.zoomopacity,"auto"==s&&(s=math.abs(t.width/t.height-u.width/u.height)>.1),s&&(u.opacity=.1,r.opacity=1),n.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),u),f(t.$content),void n.fancybox.animate(t.$content,r,a,function(){c.complete()})):(c.updateslide(t),e?(n.fancybox.stop(l),i="fancybox-animated fancybox-slide--"+(t.pos>=c.prevpos?"next":"previous")+" fancybox-fx-"+e,l.removeattr("style").removeclass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addclass(i),t.$content.removeclass("fancybox-is-hidden"),f(l),void n.fancybox.animate(l,"fancybox-slide--current",a,function(e){l.removeclass(i).removeattr("style"),t.pos===c.currpos&&c.complete()},!0)):(f(l),t.$content.removeclass("fancybox-is-hidden"),void(t.pos===c.currpos&&c.complete())))},getthumbpos:function(o){var i,a=this,s=!1,r=function(e){for(var o,i=e[0],a=i.getboundingclientrect(),s=[];null!==i.parentelement;)"hidden"!==n(i.parentelement).css("overflow")&&"auto"!==n(i.parentelement).css("overflow")||s.push(i.parentelement.getboundingclientrect()),i=i.parentelement;return o=s.every(function(t){var e=math.min(a.right,t.right)-math.max(a.left,t.left),n=math.min(a.bottom,t.bottom)-math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left=t.currpos-1&&o.pos<=t.currpos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i,t.updatecursor(),t.trigger("aftershow"),o.$slide.find("video,audio").first().trigger("play"),(n(e.activeelement).is("[disabled]")||o.opts.autofocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(t){var e=this,n=e.slides[e.currpos+1],o=e.slides[e.currpos-1];n&&n.type===t&&e.loadslide(n),o&&o.type===t&&e.loadslide(o)},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;n(".fancybox-container").each(function(){var e=n(this).data("fancybox");e&&e.id!==t.id&&!e.isclosing&&(e.trigger("ondeactivate"),e.removeevents(),e.isvisible=!1)}),t.isvisible=!0,(t.current||t.isidle)&&(t.update(),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var o,i,a,s,r,c,l=this,p=l.current,h=function(){l.cleanup(t)};return!l.isclosing&&(l.isclosing=!0,l.trigger("beforeclose",t)===!1?(l.isclosing=!1,u(function(){l.update()}),!1):(l.removeevents(),p.timouts&&cleartimeout(p.timouts),a=p.$content,o=p.opts.animationeffect,i=n.isnumeric(e)?e:o?p.opts.animationduration:0,p.$slide.off(d).removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),p.$slide.siblings().trigger("onreset").remove(),i&&l.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing"),l.hideloading(p),l.hidecontrols(),l.updatecursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===p.type&&!p.haserror&&(c=l.getthumbpos(p))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),r=n.fancybox.gettranslate(a),r.width=r.width*r.scalex,r.height=r.height*r.scaley,s=p.opts.zoomopacity,"auto"==s&&(s=math.abs(p.width/p.height-c.width/c.height)>.1),s&&(c.opacity=0),r.scalex=r.width/c.width,r.scaley=r.height/c.height,r.width=c.width,r.height=c.height,n.fancybox.settranslate(p.$content,r),f(p.$content),n.fancybox.animate(p.$content,c,i,h),!0):(o&&i?t===!0?settimeout(h,i):n.fancybox.animate(p.$slide.removeclass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,h):h(),!0)))},cleanup:function(t){var o,i,a=this,r=n("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,o=n.fancybox.getinstance(),o?o.activate():(s.scrolltop(a.scrolltop).scrollleft(a.scrollleft),r.removeclass("fancybox-active compensate-for-scrollbar"),r.hasclass("fancybox-iosfix")&&(i=parseint(e.body.style.top,10),r.removeclass("fancybox-iosfix").css("top","").scrolltop(i*-1)),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isfunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterclose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i))},updatecontrols:function(t){var e=this,n=e.current,o=n.index,i=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=i&&i.length?s.html(i):null,e.ishiddencontrols||e.isidle||e.showcontrols(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(o+1),a.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&o<=0),a.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&o>=e.group.length-1),"image"===n.type?a.find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():a.find("[data-fancybox-download],[data-fancybox-zoom]").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,n=t.$refs.container;t.ishiddencontrols=!1,t.idlesecondscounter=0,n.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?n.addclass("fancybox-show-caption "):n.removeclass("fancybox-show-caption")},togglecontrols:function(){this.ishiddencontrols?this.showcontrols():this.hidecontrols()}}),n.fancybox={version:"3.2.10",defaults:a,getinstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"),o=array.prototype.slice.call(arguments,1);return e instanceof p&&("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 p(t,e,n)},close:function(t){var e=this.getinstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.off("click.fb-start")},ismobile:e.createtouch!==o&&/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:function(){var n=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(n).getpropertyvalue("transform")&&!(e.documentmode&&e.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 n=/\.*translate\((.*)px,(.*)px\)/i,o=n.exec(t.eq(0).attr("style"));o&&(e[0]=parsefloat(o[2]),e[1]=parsefloat(o[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 n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left: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&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){n.isfunction(i)&&(a=i,i=null),n.isplainobject(e)||t.removeattr("style"),t.on(d,function(i){(!i||!i.originalevent||t.is(i.originalevent.target)&&"z-index"!=i.originalevent.propertyname)&&(n.fancybox.stop(t),n.isplainobject(e)?(e.scalex!==o&&e.scaley!==o&&(t.css("transition-duration",""),e.width=math.round(t.width()*e.scalex),e.height=math.round(t.height()*e.scaley),e.scalex=1,e.scaley=1,n.fancybox.settranslate(t,e)),s===!1&&t.removeattr("style")):s!==!0&&t.removeclass(e),n.isfunction(a)&&a(i))}),n.isnumeric(i)&&t.css("transition-duration",i+"ms"),n.isplainobject(e)?n.fancybox.settranslate(t,e):t.addclass(e),e.scalex&&t.hasclass("fancybox-image-wrap")&&t.parent().addclass("fancybox-is-scaling"),t.data("timer",settimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){cleartimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.hasclass("fancybox-image-wrap")&&t.parent().removeclass("fancybox-is-scaling")}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i)}}(window,document,window.jquery||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:/^.+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(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")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectneedstype.fb",function(o,i,a){var s,r,c,l,u,d,f,p=a.src||"",h=!1;s=t.extend(!0,{},n,a.opts.media),t.each(s,function(n,o){if(c=p.match(o.matcher)){if(h=o.type,d={},o.paramplace&&c[o.paramplace]){u=c[o.paramplace],"?"==u[0]&&(u=u.substring(1)),u=u.split("&");for(var i=0;ie.clientheight,a=("scroll"===o||"auto"===o)&&e.scrollwidth>e.clientwidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasclass("fancybox-stage")||t.is("body"))break}return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(o){var i=this,c=n(o.target),u=i.instance,d=u.current,f=d.$content,p="touchstart"==o.type;if(p&&i.$container.off("mousedown.fb.touch"),(!o.originalevent||2!=o.originalevent.button)&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalevent.clientx>c[0].clientwidth+c.offset().left))){if(!d||i.instance.isanimating||i.instance.isclosing)return o.stoppropagation(),void o.preventdefault();if(i.realpoints=i.startpoints=a(o),i.startpoints){if(o.stoppropagation(),i.startevent=o,i.cantap=!0,i.$target=c,i.$content=f,i.opts=d.opts.touch,i.ispanning=!1,i.isswiping=!1,i.iszooming=!1,i.isscrolling=!1,i.sliderstartpos=i.sliderlastpos||{top:0,left:0},i.contentstartpos=n.fancybox.gettranslate(i.$content),i.contentlastpos=null,i.starttime=(new date).gettime(),i.distancex=i.distancey=i.distance=0,i.canvaswidth=math.round(d.$slide[0].clientwidth),i.canvasheight=math.round(d.$slide[0].clientheight),n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.ismobile&&e.addeventlistener("scroll",i.onscroll,!0),!i.opts&&!u.canpan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is("img")&&o.preventdefault());n.fancybox.ismobile&&(l(c)||l(c.parent()))||o.preventdefault(),1===i.startpoints.length&&("image"===d.type&&(i.contentstartpos.width>i.canvaswidth+1||i.contentstartpos.height>i.canvasheight+1)?(n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.ispanning=!0):i.isswiping=!0,i.$container.addclass("fancybox-controls--isgrabbing")),2!==i.startpoints.length||u.isanimating||d.haserror||"image"!==d.type||!d.isloaded&&!d.$ghost||(i.cantap=!1,i.isswiping=!1,i.ispanning=!1,i.iszooming=!0,n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.centerpointstartx=.5*(i.startpoints[0].x+i.startpoints[1].x)-n(t).scrollleft(),i.centerpointstarty=.5*(i.startpoints[0].y+i.startpoints[1].y)-n(t).scrolltop(),i.percentageofimageatpinchpointx=(i.centerpointstartx-i.contentstartpos.left)/i.contentstartpos.width,i.percentageofimageatpinchpointy=(i.centerpointstarty-i.contentstartpos.top)/i.contentstartpos.height,i.startdistancebetweenfingers=s(i.startpoints[0],i.startpoints[1]))}}},u.prototype.onscroll=function(t){self.isscrolling=!0},u.prototype.ontouchmove=function(t){var e=this,o=n(t.target);return e.isscrolling||!o.is(e.$stage)&&!e.$stage.find(o).length?void(e.cantap=!1):(e.newpoints=a(t),void((e.opts||e.instance.canpan())&&e.newpoints&&e.newpoints.length&&(e.isswiping&&e.isswiping===!0||t.preventdefault(),e.distancex=s(e.newpoints[0],e.startpoints[0],"x"),e.distancey=s(e.newpoints[0],e.startpoints[0],"y"),e.distance=s(e.newpoints[0],e.startpoints[0]),e.distance>0&&(e.isswiping?e.onswipe(t):e.ispanning?e.onpan():e.iszooming&&e.onzoom()))))},u.prototype.onswipe=function(e){var a,s=this,r=s.isswiping,c=s.sliderstartpos.left||0;if(r!==!0)"x"==r&&(s.distancex>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=math.pow(s.distancex,.8):s.distancex<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=math.pow(-s.distancex,.8):c+=s.distancex),s.sliderlastpos={top:"x"==r?0:s.sliderstartpos.top+s.distancey,left:c},s.requestid&&(i(s.requestid),s.requestid=null),s.requestid=o(function(){s.sliderlastpos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currpos;n.fancybox.settranslate(e.$slide,{top:s.sliderlastpos.top,left:s.sliderlastpos.left+o*s.canvaswidth+o*e.opts.gutter})}),s.$container.addclass("fancybox-is-sliding"))});else if(math.abs(s.distance)>10){if(s.cantap=!1,s.instance.group.length<2&&s.opts.vertical?s.isswiping="y":s.instance.isdragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isswiping="x":(a=math.abs(180*math.atan2(s.distancey,s.distancex)/math.pi),s.isswiping=a>45&&a<135?"y":"x"),s.cantap=!1,"y"===s.isswiping&&n.fancybox.ismobile&&(l(s.$target)||l(s.$target.parent())))return void(s.isscrolling=!0);s.instance.isdragging=s.isswiping,s.startpoints=s.newpoints,n.each(s.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.intransition=!1,e.pos===s.instance.current.pos&&(s.sliderstartpos.left=n.fancybox.gettranslate(e.$slide).left)}),s.instance.slideshow&&s.instance.slideshow.isactive&&s.instance.slideshow.stop()}},u.prototype.onpan=function(){var t=this;return s(t.newpoints[0],t.realpoints[0])<(n.fancybox.ismobile?10:5)?void(t.startpoints=t.newpoints):(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&(i(t.requestid),t.requestid=null),void(t.requestid=o(function(){n.fancybox.settranslate(t.$content,t.contentlastpos)})))},u.prototype.limitmovement=function(){var t,e,n,o,i,a,s=this,r=s.canvaswidth,c=s.canvasheight,l=s.distancex,u=s.distancey,d=s.contentstartpos,f=d.left,p=d.top,h=d.width,g=d.height;return i=h>r?f+l:f,a=p+u,t=math.max(0,.5*r-.5*h),e=math.max(0,.5*c-.5*g),n=math.min(r-h,.5*r-.5*h),o=math.min(c-g,.5*c-.5*g),h>r&&(l>0&&i>t&&(i=t-1+math.pow(-t+f+l,.8)||0),l<0&&ic&&(u>0&&a>e&&(a=e-1+math.pow(-e+p+u,.8)||0),u<0&&aa?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderstartpos.top+o.distancey+150*o.velocityy,opacity:0},150),i=o.instance.close(!0,300)):"x"==t&&o.distancex>50&&a>1?i=o.instance.previous(o.speedx):"x"==t&&o.distancex<-50&&a>1&&(i=o.instance.next(o.speedx)),i!==!1||"x"!=t&&"y"!=t||(e||a<2?o.instance.centerslide(o.instance.current,150):o.instance.jumpto(o.instance.current.index)),o.$container.removeclass("fancybox-is-sliding")},u.prototype.endpanning=function(){var t,e,o,i=this;i.contentlastpos&&(i.opts.momentum===!1?(t=i.contentlastpos.left,e=i.contentlastpos.top):(t=i.contentlastpos.left+i.velocityx*i.speed,e=i.contentlastpos.top+i.velocityy*i.speed),o=i.limitposition(t,e,i.contentstartpos.width,i.contentstartpos.height),o.width=i.contentstartpos.width,o.height=i.contentstartpos.height,n.fancybox.animate(i.$content,o,330))},u.prototype.endzooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newwidth,c=a.newheight;a.contentlastpos&&(t=a.contentlastpos.left,e=a.contentlastpos.top,i={top:e,left:t,width:r,height:c,scalex:1,scaley:1},n.fancybox.settranslate(a.$content,i),rs.width||c>s.height?a.instance.scaletoactual(a.centerpointstartx,a.centerpointstarty,150):(o=a.limitposition(t,e,r,c),n.fancybox.settranslate(a.content,n.fancybox.gettranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},u.prototype.ontap=function(t){var e,o=this,i=n(t.target),s=o.instance,r=s.current,c=t&&a(t)||o.startpoints,l=c[0]?c[0].x-o.$stage.offset().left:0,u=c[0]?c[0].y-o.$stage.offset().top:0,d=function(e){var i=r.opts[e];if(n.isfunction(i)&&(i=i.apply(s,[r,t])),i)switch(i){case"close":s.close(o.startevent);break;case"togglecontrols":s.togglecontrols(!0);break;case"next":s.next();break;case"nextorclose":s.group.length>1?s.next():s.close(o.startevent);break;case"zoom":"image"==r.type&&(r.isloaded||r.$ghost)&&(s.canpan()?s.scaletofit():s.isscaleddown()?s.scaletoactual(l,u):s.group.length<2&&s.close(o.startevent))}};if((!t.originalevent||2!=t.originalevent.button)&&(i.is("img")||!(l>i[0].clientwidth+i.offset().left))){if(i.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))e="outside";else if(i.is(".fancybox-slide"))e="slide";else{if(!s.current.$content||!s.current.$content.find(i).addback().filter(i).length)return;e="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(l-o.tapx)>50||math.abs(u-o.tapy)>50)return this;d("dblclick"+e)}else o.tapx=l,o.tapy=u,r.opts["dblclick"+e]&&r.opts["dblclick"+e]!==r.opts["click"+e]?o.tapped=settimeout(function(){o.tapped=null,d("click"+e)},500):d("click"+e);return this}},n(e).on("onactivate.fb",function(t,e){e&&!e.guestures&&(e.guestures=new u(e))})}(window,document,window.jquery||jquery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currindex].opts.slideshow)&&t.$button.hide()},set:function(t){var e=this;e.instance&&e.instance.current&&(t===!0||e.instance.current.opts.loop||e.instance.currindex'},fullscreen:{autostart:!1}}),e(t).on({"oninit.fb":function(t,e){var n;e&&e.group[e.currindex].opts.fullscreen?(n=e.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stoppropagation(),t.preventdefault(),o.toggle(n[0])}),e.opts.fullscreen&&e.opts.fullscreen.autostart===!0&&o.request(n[0]),e.fullscreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterkeydown.fb":function(t,e,n,o,i){e&&e.fullscreen&&70===i&&(o.preventdefault(),e.fullscreen.toggle(e.$refs.container[0]))},"beforeclose.fb":function(t){t&&t.fullscreen&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=o.isfullscreen(),n=e.fancybox.getinstance();n&&(n.current&&"image"===n.current.type&&n.isanimating&&(n.current.$content.css("transition","none"),n.isanimating=!1,n.update(!0,!0,0)),n.trigger("onfullscreenchange",t),n.$refs.container.toggleclass("fancybox-is-fullscreen",t))})}(document,window.jquery||jquery),function(t,e){"use strict";e.fancybox.defaults=e.extend(!0,{btntpl:{thumbs:''},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"}},e.fancybox.defaults);var n=function(t){this.init(t)};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isvisible:!1,isactive:!1,init:function(t){var e=this;e.instance=t,t.thumbs=e;var n=t.group[0],o=t.group[1];e.opts=t.group[t.currindex].opts.thumbs,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),e.opts&&n&&o&&("image"==n.type||n.opts.thumb||n.opts.$thumb)&&("image"==o.type||o.opts.thumb||o.opts.$thumb)?(e.$button.show().on("click",function(){e.toggle()}),e.isactive=!0):e.$button.hide()},create:function(){var t,n,o=this,i=o.instance,a=o.opts.parentel;o.$grid=e('
').appendto(i.$refs.container.find(a).addback().filter(a)),t="
    ",e.each(i.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+='
  • ')}),t+="
",o.$list=e(t).appendto(o.$grid).on("click","li",function(){i.jumpto(e(this).data("index"))}),o.$list.find("img").hide().one("load",function(){var t,n,o,i,a=e(this).parent().removeclass("fancybox-thumbs-loading"),s=a.outerwidth(),r=a.outerheight();t=this.naturalwidth||this.width,n=this.naturalheight||this.height,o=t/s,i=n/r,o>=1&&i>=1&&(o>i?(t/=i,n=r):(t=s,n/=o)),e(this).css({width:math.floor(t),height:math.floor(n),"margin-top":n>r?math.floor(.3*r-.3*n):math.floor(.5*r-.5*n),"margin-left":math.floor(.5*s-.5*t)}).show()}).each(function(){this.src=e(this).data("src")}),"x"===o.opts.axis&&o.$list.width(parseint(o.$grid.css("padding-right"))+i.group.length*o.$list.children().eq(0).outerwidth(!0)+"px")},focus:function(t){var e,n,o=this,i=o.$list;o.instance.current&&(e=i.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addclass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerheight())?i.stop().animate({scrolltop:i.scrolltop()+n.top},t):"x"===o.opts.axis&&(n.lefti.parent().scrollleft()+(i.parent().width()-e.outerwidth()))&&i.parent().stop().animate({scrollleft:n.left},t))},update:function(){this.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),this.isvisible?(this.$grid||this.create(),this.instance.trigger("onthumbsshow"),this.focus(0)):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()}}),e(t).on({"oninit.fb":function(t,e){var o;e&&!e.thumbs&&(o=new n(e),o.isactive&&o.opts.autostart===!0&&o.show())},"beforeshow.fb":function(t,e,n,o){var i=e&&e.thumbs;i&&i.isvisible&&i.focus(o?0:250)},"afterkeydown.fb":function(t,e,n,o,i){var a=e&&e.thumbs;a&&a.isactive&&71===i&&(o.preventdefault(),a.toggle())},"beforeclose.fb":function(t,e){var n=e&&e.thumbs;n&&n.isvisible&&n.opts.hideonclose!==!1&&n.$grid.hide()}})}(document,window.jquery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return string(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btntpl:{share:''},share:{tpl:''}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getinstance();i&&(t=i.current.opts.hash===!1?i.current.src:window.location,o=i.current.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.current.type?encodeuricomponent(i.current.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeuricomponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{animationeffect:"fade",animationduration:250,afterload:function(t,e){e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"share","width=550, height=450"),!1})}}}))})}(document,window.jquery||jquery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseint(n.pop(-1),10)||1:1,i=n.join("-");return o<1&&(o=1),{hash:t,index:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeselector(t.gallery)+"']").eq(t.index-1),e.length||(e=n("#"+n.escapeselector(t.gallery))),e.length&&(s=!1,e.trigger("click")))}function a(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.hash||(e.$orig?e.$orig.data("fancybox"):""))}n.escapeselector||(n.escapeselector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t};return(t+"").replace(e,n)});var s=!0,r=null,c=null;n(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"oninit.fb":function(t,e){var n,i;e.group[e.currindex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currindex=n.index-1))},"beforeshow.fb":function(n,o,i){var l;i&&i.opts.hash!==!1&&(l=a(o),l&&""!==l&&(e.location.hash.indexof(l)<0&&(o.opts.orighash=e.location.hash),r=l+(o.group.length>1?"-"+(i.index+1):""),"replacestate"in e.history?(c&&cleartimeout(c),c=settimeout(function(){e.history[s?"pushstate":"replacestate"]({},t.title,e.location.pathname+e.location.search+"#"+r),c=null,s=!1},300)):e.location.hash=r))},"beforeclose.fb":function(o,i,s){var l,u;c&&cleartimeout(c),s.opts.hash!==!1&&(l=a(i),u=i&&i.opts.orighash?i.opts.orighash:"",l&&""!==l&&("replacestate"in history?e.history.replacestate({},t.title,e.location.pathname+e.location.search+u):(e.location.hash=u,n(e).scrolltop(i.scrolltop).scrollleft(i.scrollleft))),r=null)}}),n(e).on("hashchange.fb",function(){var t=o();n.fancybox.getinstance()?!r||r===t.gallery+"-"+t.index||1===t.index&&r==t.gallery||(r=null,n.fancybox.close()):""!==t.gallery&&i(t)}),settimeout(function(){i(o())},50))})}(document,window,window.jquery||jquery),function(t,e){"use strict";var n=(new date).gettime();e(t).on({"oninit.fb":function(t,e,o){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",function(t){var o=e.current,i=(new date).gettime();e.group.length<1||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventdefault(),t.stoppropagation(),o.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,i-n<250||(n=i,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jquery||jquery);