").html(e).find(t.opts.filter))),t.$slide.one("onreset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeclass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallbtn&&(t.$smallbtn.remove(),t.$smallbtn=null),t.haserror||(n(this).empty(),t.isloaded=!1,t.isrevealed=!1)}),n(e).appendto(t.$slide),n(e).is("video,audio")&&(n(e).addclass("fancybox-video"),n(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapinner("
").children().first()),t.$content.addclass("fancybox-content"),t.$slide.addclass("fancybox-slide--"+t.contenttype),o.afterload(t))},seterror:function(t){t.haserror=!0,t.$slide.trigger("onreset").removeclass("fancybox-slide--"+t.contenttype).addclass("fancybox-slide--error"),t.contenttype="html",this.setcontent(t,this.translate(t,t.opts.errortpl)),t.pos===this.currpos&&(this.isanimating=!1)},showloading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast"))},hideloading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().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.length||(t.$smallbtn=n(e.translate(t,t.opts.btntpl.smallbtn)).appendto(t.$content)),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.adjustcaption(t),e.adjustlayout(t),t.pos===e.currpos&&e.updatecursor(),e.revealcontent(t))},adjustcaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventcaptionoverlap,s=n.$refs.caption,r=!1;s.toggleclass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currpos?(e=s.clone().appendto(s.parent()),e.children().eq(0).empty().html(i),r=e.outerheight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerheight(!0)),o.$slide.css("padding-bottom",r||""))},adjustlayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isloaded&&!0!==s.opts.disablelayoutfix&&(s.$content.css("margin-bottom",""),s.$content.outerheight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parsefloat(i)>0&&(e=s.$slide[0].scrollheight,s.$slide.css("padding-bottom",0),math.abs(e-s.$slide[0].scrollheight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealcontent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.ismoved(t),u=t.isrevealed;return t.isrevealed=!0,e=t.opts[s.firstrun?"animationeffect":"transitioneffect"],i=t.opts[s.firstrun?"animationduration":"transitionduration"],i=parseint(void 0===t.forcedduration?i:t.forcedduration,10),!d&&t.pos===s.currpos&&i||(e=!1),"zoom"===e&&(t.pos===s.currpos&&i&&"image"===t.type&&!t.haserror&&(l=s.getthumbpos(t))?c=s.getfitpos(t):e="fade"),"zoom"===e?(s.isanimating=!0,c.scalex=c.width/l.width,c.scaley=c.height/l.height,a=t.opts.zoomopacity,"auto"==a&&(a=math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isanimating=!1,s.complete()})):(s.updateslide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevpos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addclass(o).removeclass("fancybox-slide--current"),t.$content.removeclass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeclass(o).css({transform:"",opacity:""}),t.pos===s.currpos&&s.complete()},!0)):(t.$content.removeclass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.haserror||t.$content.hide().fadein("fast"),void(t.pos===s.currpos&&s.complete())))},getthumbpos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.gettranslate(c),o=parsefloat(c.css("border-top-width")||0),i=parsefloat(c.css("border-right-width")||0),a=parsefloat(c.css("border-bottom-width")||0),s=parsefloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scalex:1,scaley:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.ismoved()&&o.isloaded&&(o.iscomplete||(o.iscomplete=!0,o.$slide.siblings().trigger("onreset"),e.preload("inline"),p(o.$slide),o.$slide.addclass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currpos-1&&o.pos<=e.currpos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isanimating=!1,e.updatecursor(),e.trigger("aftershow"),o.opts.video.autostart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){document.exitfullscreen?document.exitfullscreen():this.webkitexitfullscreen&&this.webkitexitfullscreen(),e.next()}),o.opts.autofocus&&"html"===o.contenttype&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrolltop(0).scrollleft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currpos+1],e=o.slides[o.currpos-1],e&&e.type===t&&o.loadslide(e),n&&n.type===t&&o.loadslide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isclosing||(i=!t&&s.current&&s.current.iscomplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasclass("disabled")}),i.length?(a=i.index(e.activeelement),t&&t.shiftkey?(a<0||0==a)&&(t.preventdefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventdefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("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,u=this,f=u.current,h=function(){u.cleanup(t)};return!u.isclosing&&(u.isclosing=!0,!1===u.trigger("beforeclose",t)?(u.isclosing=!1,d(function(){u.update()}),!1):(u.removeevents(),a=f.$content,o=f.opts.animationeffect,i=n.isnumeric(e)?e:o?f.opts.animationduration:0,f.$slide.removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onreset").remove(),i&&u.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideloading(f),u.hidecontrols(!0),u.updatecursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.ismoved()&&!f.haserror&&(l=u.getthumbpos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.gettranslate(a),c={top:s.top,left:s.left,scalex:s.width/l.width,scaley:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomopacity,
"auto"==r&&(r=math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.settranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addclass("fancybox-slide--previous").removeclass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?settimeout(h,i):h(),!0)))},cleanup:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onreset"),s.$refs.container.empty().remove(),s.trigger("afterclose",e),s.current.opts.backfocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollx,a=t.scrolly,r.trigger("focus"),n("html, body").scrolltop(a).scrollleft(i))),s.current=null,o=n.fancybox.getinstance(),o?o.activate():(n("body").removeclass("fancybox-active compensate-for-scrollbar"),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;if(s?i.unshift(s):s=a,i.unshift(a),n.isfunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterclose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updatecontrols:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hashiddencontrols||t.isidle||t.showcontrols(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeelement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hidecontrols:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventcaptionoverlap||n.push("caption"),this.$refs.container.removeclass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hashiddencontrols=!0},showcontrols:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hashiddencontrols=!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-caption",!!t.$caption).toggleclass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleclass("fancybox-is-modal",!!e.modal)},togglecontrols:function(){this.hashiddencontrols?this.showcontrols():this.hidecontrols()}}),n.fancybox={version:"3.5.7",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 b&&("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 b(t,e,n)},close:function(t){var e=this.getinstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},ismobile:/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)&&t.getcomputedstyle(n).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)}(),gettranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getboundingclientrect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))})},settranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scalex&&void 0!==e.scaley?n+=" scale("+e.scalex+", "+e.scaley+")":void 0!==e.scalex&&(n+=" scalex("+e.scalex+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isfunction(o)&&(i=o,o=null),r.stop(t),s=r.gettranslate(t),t.on(f,function(c){(!c||!c.originalevent||t.is(c.originalevent.target)&&"z-index"!=c.originalevent.propertyname)&&(r.stop(t),n.isnumeric(o)&&t.css("transition-duration",""),n.isplainobject(e)?void 0!==e.scalex&&void 0!==e.scaley&&r.settranslate(t,{top:e.top,left:e.left,width:s.width*e.scalex,height:s.height*e.scaley,scalex:1,scaley:1}):!0!==a&&t.removeclass(e),n.isfunction(i)&&i(c))}),n.isnumeric(o)&&t.css("transition-duration",o+"ms"),n.isplainobject(e)?(void 0!==e.scalex&&void 0!==e.scaley&&(delete e.width,delete e.height,t.parent().hasclass("fancybox-slide--image")&&t.parent().addclass("fancybox-is-scaling")),n.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(cleartimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),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),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeclass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addclass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeclass("fancybox-focus")}})}()}}(window,document,jquery),function(t){"use strict";var e={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:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://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},paramplace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},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]+"").replace(/\?/,"&")+"&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"}}},n=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};t(document).on("objectneedstype.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramplace&&c[o.paramplace]){d=c[o.paramplace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i
1&&("youtube"===n.contentsource||"vimeo"===n.contentsource)&&o.load(n.contentsource)}})}(jquery),function(t,e,n){"use strict";var o=function(){return t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)}}(),i=function(){return t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)}}(),a=function(e){var n=[];e=e.originalevent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedtouches&&e.changedtouches.length?e.changedtouches:[e];for(var o in e)e[o].pagex?n.push({x:e[o].pagex,y:e[o].pagey}):e[o].clientx&&n.push({x:e[o].clientx,y:e[o].clienty});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:math.sqrt(math.pow(t.x-e.x,2)+math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isfunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;ee.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},d=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"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestid&&(i(t.requestid),t.requestid=null),t.tapped&&(cleartimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalevent||2!=o.originalevent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalevent.clientx>c[0].clientwidth+c.offset().left))){if(!u||d.isanimating||u.$slide.hasclass("fancybox-animated"))return o.stoppropagation(),void o.preventdefault();i.realpoints=i.startpoints=a(o),i.startpoints.length&&(u.touch&&o.stoppropagation(),i.startevent=o,i.cantap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.ispanning=!1,i.isswiping=!1,i.iszooming=!1,i.isscrolling=!1,i.canpan=d.canpan(),i.starttime=(new date).gettime(),i.distancex=i.distancey=i.distance=0,i.canvaswidth=math.round(f[0].clientwidth),i.canvasheight=math.round(f[0].clientheight),i.contentlastpos=null,i.contentstartpos=n.fancybox.gettranslate(i.$content)||{top:0,left:0},i.sliderstartpos=n.fancybox.gettranslate(f),i.stagepos=n.fancybox.gettranslate(d.$refs.stage),i.sliderstartpos.top-=i.stagepos.top,i.sliderstartpos.left-=i.stagepos.left,i.contentstartpos.top-=i.stagepos.top,i.contentstartpos.left-=i.stagepos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.ismobile&&e.addeventlistener("scroll",i.onscroll,!0),((i.opts||i.canpan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventdefault(),n.fancybox.ismobile&&c.parents(".fancybox-caption").length))&&(i.isscrollable=l(c)||l(c.parent()),n.fancybox.ismobile&&i.isscrollable||o.preventdefault(),(1===i.startpoints.length||u.haserror)&&(i.canpan?(n.fancybox.stop(i.$content),i.ispanning=!0):i.isswiping=!0,i.$container.addclass("fancybox-is-grabbing")),2===i.startpoints.length&&"image"===u.type&&(u.isloaded||u.$ghost)&&(i.cantap=!1,i.isswiping=!1,i.ispanning=!1,i.iszooming=!0,n.fancybox.stop(i.$content),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]))))}},d.prototype.onscroll=function(t){var n=this;n.isscrolling=!0,e.removeeventlistener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalevent.buttons&&0===t.originalevent.buttons?void e.ontouchend(t):e.isscrolling?void(e.cantap=!1):(e.newpoints=a(t),void((e.opts||e.canpan)&&e.newpoints.length&&e.newpoints.length&&(e.isswiping&&!0===e.isswiping||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()))))},d.prototype.onswipe=function(e){var a,s=this,r=s.instance,c=s.isswiping,l=s.sliderstartpos.left||0;if(!0!==c)"x"==c&&(s.distancex>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=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)?l-=math.pow(-s.distancex,.8):l+=s.distancex),s.sliderlastpos={top:"x"==c?0:s.sliderstartpos.top+s.distancey,left:l},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,r.group.length<2&&s.opts.vertical?s.isswiping="y":r.isdragging||!1===s.opts.vertical||"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"),"y"===s.isswiping&&n.fancybox.ismobile&&s.isscrollable)return void(s.isscrolling=!0);r.isdragging=s.isswiping,s.startpoints=s.newpoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.gettranslate(e.$slide),i=n.fancybox.gettranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeclass("fancybox-animated").removeclass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderstartpos.top=o.top-i.top,s.sliderstartpos.left=o.left-i.left),n.fancybox.settranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.slideshow&&r.slideshow.isactive&&r.slideshow.stop()}},d.prototype.onpan=function(){var t=this;if(s(t.newpoints[0],t.realpoints[0])<(n.fancybox.ismobile?10:5))return void(t.startpoints=t.newpoints);t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&i(t.requestid),t.requestid=o(function(){n.fancybox.settranslate(t.$content,t.contentlastpos)})},d.prototype.limitmovement=function(){var t,e,n,o,i,a,s=this,r=s.canvaswidth,c=s.canvasheight,l=s.distancex,d=s.distancey,u=s.contentstartpos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,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),l>0&&i>t&&(i=t-1+math.pow(-t+f+l,.8)||0),l<0&&i0&&a>e&&(a=e-1+math.pow(-e+p+d,.8)||0),d<0&&aa?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e1&&(o.dms>130&&s>10||s>50);o.sliderlastpos=null,"y"==t&&!e&&math.abs(o.distancey)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderstartpos.top+o.distancey+150*o.velocityy,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distancex>0?i=o.instance.previous(300):r&&o.distancex<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerslide(200),o.$container.removeclass("fancybox-is-sliding")},d.prototype.endpanning=function(){var t,e,o,i=this;i.contentlastpos&&(!1===i.opts.momentum||i.dms>350?(t=i.contentlastpos.left,e=i.contentlastpos.top):(t=i.contentlastpos.left+500*i.velocityx,e=i.contentlastpos.top+500*i.velocityy),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,366))},d.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.animate(a.$content,o,150)))},d.prototype.ontap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startpoints,d=l[0]?l[0].x-n(t).scrollleft()-i.stagepos.left:0,u=l[0]?l[0].y-n(t).scrolltop()-i.stagepos.top:0,f=function(t){var o=c.opts[t];if(n.isfunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startevent);break;case"togglecontrols":r.togglecontrols();break;case"next":r.next();break;case"nextorclose":r.group.length>1?r.next():r.close(i.startevent);break;case"zoom":"image"==c.type&&(c.isloaded||c.$ghost)&&(r.canpan()?r.scaletofit():r.isscaleddown()?r.scaletoactual(d,u):r.group.length<2&&r.close(i.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(s.is("img")||!(d>s[0].clientwidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="outside";else if(s.is(".fancybox-slide"))o="slide";else{if(!r.current.$content||!r.current.$content.find(s).addback().filter(s).length)return;o="content"}if(i.tapped){if(cleartimeout(i.tapped),i.tapped=null,math.abs(d-i.tapx)>50||math.abs(u-i.tapy)>50)return this;f("dblclick"+o)}else i.tapx=d,i.tapy=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=settimeout(function(){i.tapped=null,r.isanimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onactivate.fb",function(t,e){e&&!e.guestures&&(e.guestures=new d(e))}).on("beforeclose.fb",function(t,e){e&&e.guestures&&e.guestures.destroy()})}(window,document,jquery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currindex].opts.slideshow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('').appendto(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currindex'},fullscreen:{autostart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isfullscreen(),n=e.fancybox.getinstance();n&&(n.current&&"image"===n.current.type&&n.isanimating&&(n.isanimating=!1,n.update(!0,!0,0),n.iscomplete||n.complete()),n.trigger("onfullscreenchange",t),n.$refs.container.toggleclass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleclass("fancybox-button--fsenter",!t).toggleclass("fancybox-button--fsexit",t))})}e(t).on({"oninit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currindex].opts.fullscreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stoppropagation(),t.preventdefault(),o.toggle()}),e.opts.fullscreen&&!0===e.opts.fullscreen.autostart&&o.request(),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())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&o.exit()}})}(document,jquery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btntpl:{thumbs:''},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isvisible:!1,isactive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currindex].opts.thumbs,t.thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i1));i++);o>1&&e.opts?(e.$button.removeattr("style").on("click",function(){e.toggle()}),e.isactive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentel,s=[];o.$grid||(o.$grid=e('').appendto(i.$refs.container.find(a).addback().filter(a)),o.$grid.on("click","a",function(){i.jumpto(e(this).attr("data-index"))})),o.$list||(o.$list=e('').appendto(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('
")}),o.$list[0].innerhtml=s.join(""),"x"===o.opts.axis&&o.$list.width(parseint(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;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.left
a.scrollleft()+(a.width()-e.outerwidth()))&&i.parent().stop().animate({scrollleft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),t.isvisible?(t.$grid||t.create(),t.instance.trigger("onthumbsshow"),t.focus(0)):t.$grid&&t.instance.trigger("onthumbshide"),t.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 n;e&&!e.thumbs&&(n=new o(e),n.isactive&&!0===n.opts.autostart&&n.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&&!1!==n.opts.hideonclose&&n.$grid.hide()}})}(document,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:{url:function(t,e){return!t.currenthash&&"inline"!==e.type&&"html"!==e.type&&(e.origsrc||e.src)||window.location},
tpl:''}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getinstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeuricomponent(a.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:{touch:!1,animationeffect:!1,afterload:function(t,e){i.$refs.container.one("beforeclose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"share","width=550, height=450"),!1})},mobile:{autofocus:!1}}}))})}(document,jquery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseint(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeselector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeselector||(n.escapeselector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"oninit.fb":function(t,e){var n,i;!1!==e.group[e.currindex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currindex=n.index-1))},"beforeshow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currenthash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currenthash&&(s&&!o.orighash&&(o.orighash=t.location.hash),o.hashtimer&&cleartimeout(o.hashtimer),o.hashtimer=settimeout(function(){"replacestate"in t.history?(t.history[s?"pushstate":"replacestate"]({},e.title,t.location.pathname+t.location.search+"#"+o.currenthash),s&&(o.hascreatedhistory=!0)):t.location.hash=o.currenthash,o.hashtimer=null},300)))},"beforeclose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(cleartimeout(o.hashtimer),o.currenthash&&o.hascreatedhistory?t.history.back():o.currenthash&&("replacestate"in t.history?t.history.replacestate({},e.title,t.location.pathname+t.location.search+(o.orighash||"")):t.location.hash=o.orighash),o.currenthash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("fancybox");if(i&&i.currenthash)return e=i,!1}),e?e.currenthash===t.gallery+"-"+t.index||1===t.index&&e.currenthash==t.gallery||(e.currenthash=null,e.close()):""!==t.gallery&&i(t)}),settimeout(function(){n.fancybox.getinstance()||i(o())},50))})}(window,document,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<2||!1===o.opts.wheel||"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,jquery);