f&&(r=f),(a=s*b.scale)g&&(a=g)):(r=0,a=0),w.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+a+"px,0)"),w.$imageel.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideel||(i.$slideel=this.clickedslide?n(this.clickedslide):this.slides.eq(this.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas"),i.$imagewrapel=i.$imageel.parent("."+e.containerclass)),i.$imageel&&0!==i.$imageel.length&&(t.scale=1,t.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+e.zoomedslideclass),i.$slideel=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchevents.start||!a.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!a.passivelistener||{passive:!1,capture:!0};a.gestures?(this.$wrapperel.on("gesturestart",".swiper-slide",t.ongesturestart,e),this.$wrapperel.on("gesturechange",".swiper-slide",t.ongesturechange,e),this.$wrapperel.on("gestureend",".swiper-slide",t.ongestureend,e)):"touchstart"===this.touchevents.start&&(this.$wrapperel.on(this.touchevents.start,".swiper-slide",t.ongesturestart,e),this.$wrapperel.on(this.touchevents.move,".swiper-slide",t.ongesturechange,i),this.$wrapperel.on(this.touchevents.end,".swiper-slide",t.ongestureend,e),this.touchevents.cancel&&this.$wrapperel.on(this.touchevents.cancel,".swiper-slide",t.ongestureend,e)),this.$wrapperel.on(this.touchevents.move,"."+this.params.zoom.containerclass,t.ontouchmove,i)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchevents.start||!a.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!a.passivelistener||{passive:!1,capture:!0};a.gestures?(this.$wrapperel.off("gesturestart",".swiper-slide",t.ongesturestart,e),this.$wrapperel.off("gesturechange",".swiper-slide",t.ongesturechange,e),this.$wrapperel.off("gestureend",".swiper-slide",t.ongestureend,e)):"touchstart"===this.touchevents.start&&(this.$wrapperel.off(this.touchevents.start,".swiper-slide",t.ongesturestart,e),this.$wrapperel.off(this.touchevents.move,".swiper-slide",t.ongesturechange,i),this.$wrapperel.off(this.touchevents.end,".swiper-slide",t.ongestureend,e),this.touchevents.cancel&&this.$wrapperel.off(this.touchevents.cancel,".swiper-slide",t.ongestureend,e)),this.$wrapperel.off(this.touchevents.move,"."+this.params.zoom.containerclass,t.ontouchmove,i)}}},at={loadinslide:function(t,e){void 0===e&&(e=!0);var i=this,o=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var s=i.virtual&&i.params.virtual.enabled?i.$wrapperel.children("."+i.params.slideclass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),r=s.find("."+o.elementclass+":not(."+o.loadedclass+"):not(."+o.loadingclass+")");!s.hasclass(o.elementclass)||s.hasclass(o.loadedclass)||s.hasclass(o.loadingclass)||(r=r.add(s[0])),0!==r.length&&r.each((function(t,r){var a=n(r);a.addclass(o.loadingclass);var l=a.attr("data-background"),c=a.attr("data-src"),d=a.attr("data-srcset"),u=a.attr("data-sizes");i.loadimage(a[0],c||l,d,u,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeattr("data-background")):(d&&(a.attr("srcset",d),a.removeattr("data-srcset")),u&&(a.attr("sizes",u),a.removeattr("data-sizes")),c&&(a.attr("src",c),a.removeattr("data-src"))),a.addclass(o.loadedclass).removeclass(o.loadingclass),s.find("."+o.preloaderclass).remove(),i.params.loop&&e){var t=s.attr("data-swiper-slide-index");if(s.hasclass(i.params.slideduplicateclass)){var n=i.$wrapperel.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideduplicateclass+")");i.lazy.loadinslide(n.index(),!1)}else{var r=i.$wrapperel.children("."+i.params.slideduplicateclass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadinslide(r.index(),!1)}}i.emit("lazyimageready",s[0],a[0])}})),i.emit("lazyimageload",s[0],a[0])}))}},load:function(){var t=this,e=t.$wrapperel,i=t.params,o=t.slides,s=t.activeindex,r=t.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesperview;function c(t){if(r){if(e.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(o[t])return!0;return!1}function d(t){return r?n(t).attr("data-swiper-slide-index"):n(t).index()}if("auto"===l&&(l=0),t.lazy.initialimageloaded||(t.lazy.initialimageloaded=!0),t.params.watchslidesvisibility)e.children("."+i.slidevisibleclass).each((function(e,i){var o=r?n(i).attr("data-swiper-slide-index"):n(i).index();t.lazy.loadinslide(o)}));else if(l>1)for(var u=s;u1||a.loadprevnextamount&&a.loadprevnextamount>1){for(var h=a.loadprevnextamount,p=l,f=math.min(s+p+math.max(h,p),o.length),g=math.max(s-math.max(p,h),0),m=s+l;m0&&t.lazy.loadinslide(d(b));var y=e.children("."+i.slideprevclass);y.length>0&&t.lazy.loadinslide(d(y))}}},lt={linearspline:function(t,e){var i,n,o,s,r;return this.x=t,this.y=e,this.lastindex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(n=-1,i=t.length;i-n>1;)t[o=i+n>>1]<=e?n=o:i=o;return i}(this.x,t),s=r-1,(t-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0},this},getinterpolatefunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new lt.linearspline(this.slidesgrid,t.slidesgrid):new lt.linearspline(this.snapgrid,t.snapgrid))},settranslate:function(t,e){var i,n,o=this,s=o.controller.control;function r(t){var e=o.rtltranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getinterpolatefunction(t),n=-o.controller.spline.interpolate(-e)),n&&"container"!==o.params.controller.by||(i=(t.maxtranslate()-t.mintranslate())/(o.maxtranslate()-o.mintranslate()),n=(e-o.mintranslate())*i+t.mintranslate()),o.params.controller.inverse&&(n=t.maxtranslate()-n),t.updateprogress(n),t.settranslate(n,o),t.updateactiveindex(),t.updateslidesclasses()}if(array.isarray(s))for(var a=0;a0&&(this.isbeginning?this.a11y.disableel(i):this.a11y.enableel(i)),e&&e.length>0&&(this.isend?this.a11y.disableel(e):this.a11y.enableel(e))}},updatepagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i,o){var s=n(o);t.a11y.makeelfocusable(s),t.a11y.addelrole(s,"button"),t.a11y.addellabel(s,e.paginationbulletmessage.replace(/{{index}}/,s.index()+1))}))},init:function(){this.$el.append(this.a11y.liveregion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextel&&(t=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(e=this.navigation.$prevel),t&&(this.a11y.makeelfocusable(t),this.a11y.addelrole(t,"button"),this.a11y.addellabel(t,i.nextslidemessage),t.on("keydown",this.a11y.onenterkey)),e&&(this.a11y.makeelfocusable(e),this.a11y.addelrole(e,"button"),this.a11y.addellabel(e,i.prevslidemessage),e.on("keydown",this.a11y.onenterkey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletclass,this.a11y.onenterkey)},destroy:function(){var t,e;this.a11y.liveregion&&this.a11y.liveregion.length>0&&this.a11y.liveregion.remove(),this.navigation&&this.navigation.$nextel&&(t=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(e=this.navigation.$prevel),t&&t.off("keydown",this.a11y.onenterkey),e&&e.off("keydown",this.a11y.onenterkey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletclass,this.a11y.onenterkey)}},dt={init:function(){if(this.params.history){if(!e.history||!e.history.pushstate)return this.params.history.enabled=!1,void(this.params.hashnavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=dt.getpathvalues(),(t.paths.key||t.paths.value)&&(t.scrolltoslide(0,t.paths.value,this.params.runcallbacksoninit),this.params.history.replacestate||e.addeventlistener("popstate",this.history.sethistorypopstate))}},destroy:function(){this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){this.history.paths=dt.getpathvalues(),this.history.scrolltoslide(this.params.speed,this.history.paths.value,!1)},getpathvalues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),i=t.length;return{key:t[i-2],value:t[i-1]}},sethistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(i),o=dt.slugify(n.attr("data-history"));e.location.pathname.includes(t)||(o=t+"/"+o);var s=e.history.state;s&&s.value===o||(this.params.history.replacestate?e.history.replacestate({value:o},null,o):e.history.pushstate({value:o},null,o))}},slugify:function(t){return t.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(t,e,i){if(e)for(var n=0,o=this.slides.length;n'),i.append(t)),t.css({height:s+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=n(''),e.append(t)));for(var p=0;p-1&&(h=90*g+90*b,a&&(h=90*-g-90*b)),f.transform(_),c.slideshadows){var t=d?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),c=d?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===t.length&&(t=n(''),f.append(t)),0===c.length&&(c=n(''),f.append(c)),t.length&&(t[0].style.opacity=math.max(-b,0)),c.length&&(c[0].style.opacity=math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow)if(d)t.transform("translate3d(0px, "+(s/2+c.shadowoffset)+"px, "+-s/2+"px) rotatex(90deg) rotatez(0deg) scale("+c.shadowscale+")");else{var s=math.abs(h)-90*math.floor(math.abs(h)/90),e=1.5-(math.sin(2*s*math.pi/360)/2+math.cos(2*s*math.pi/360)/2),$=c.shadowscale,p=c.shadowscale/e,k=c.shadowoffset;t.transform("scale3d("+$+", 1, "+p+") translate3d(0px, "+(r/2+k)+"px, "+-r/2/p+"px) rotatex(-90deg)")}var m=v.issafari||v.isuiwebview?-l/2:0;i.transform("translate3d(0px,0,"+m+"px) rotatex("+(this.ishorizontal()?0:h)+"deg) rotatey("+(this.ishorizontal()?-h:0)+"deg)")},settransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeeffect.shadow&&!this.ishorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},gt={settranslate:function(){for(var t=this.slides,e=this.rtltranslate,i=0;i'),o.append(d)),0===u.length&&(u=n(''),o.append(u)),d.length&&(d[0].style.opacity=math.max(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}o.transform("translate3d("+l+"px, "+c+"px, 0px) rotatex("+a+"deg) rotatey("+r+"deg)")}},settransition:function(t){var e=this,i=e.slides,n=e.activeindex,o=e.$wrapperel;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualtranslate&&0!==t){var s=!1;i.eq(n).transitionend((function(){if(!s&&e&&!e.destroyed){s=!0,e.animating=!1;for(var t=["webkittransitionend","transitionend"],i=0;i'),g.append(c)),0===s.length&&(s=n(''),g.append(s)),c.length&&(c[0].style.opacity=v>0?v:0),s.length&&(s[0].style.opacity=-v>0?-v:0)}}(a.pointerevents||a.prefixedpointerevents)&&(o[0].style.perspectiveorigin=d+"px 50%")},settransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},vt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,r.extend(this.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),r.extend(this.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):r.isobject(t.swiper)&&(this.thumbs.swiper=new e(r.extend({},t.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),this.thumbs.swipercreated=!0),this.thumbs.swiper.$el.addclass(this.params.thumbs.thumbscontainerclass),this.thumbs.swiper.on("tap",this.thumbs.onthumbclick)},onthumbclick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedindex,i=t.clickedslide;if(!(i&&n(i).hasclass(this.params.thumbs.slidethumbactiveclass)||null==e)){var o;if(o=t.params.loop?parseint(n(t.clickedslide).attr("data-swiper-slide-index"),10):e,this.params.loop){var s=this.activeindex;this.slides.eq(s).hasclass(this.params.slideduplicateclass)&&(this.loopfix(),this._clientleft=this.$wrapperel[0].clientleft,s=this.activeindex);var r=this.slides.eq(s).prevall('[data-swiper-slide-index="'+o+'"]').eq(0).index(),a=this.slides.eq(s).nextall('[data-swiper-slide-index="'+o+'"]').eq(0).index();o=void 0===r?a:void 0===a?r:a-so?n-math.floor(i/2)+1:n+math.floor(i/2)-1:n>o&&(n=n-i+1),e.slideto(n,t?0:void 0))}var a=1,l=this.params.thumbs.slidethumbactiveclass;if(this.params.slidesperview>1&&!this.params.centeredslides&&(a=this.params.slidesperview),e.slides.removeclass(l),e.params.loop||e.params.virtual&&e.params.virtual.enabled)for(var c=0;c0&&!n(t.target).hasclass(this.params.pagination.bulletclass)&&(!0===this.pagination.$el.hasclass(this.params.pagination.hiddenclass)?this.emit("paginationshow",this):this.emit("paginationhide",this),this.pagination.$el.toggleclass(this.params.pagination.hiddenclass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){r.extend(this,{scrollbar:{init:ot.init.bind(this),destroy:ot.destroy.bind(this),updatesize:ot.updatesize.bind(this),settranslate:ot.settranslate.bind(this),settransition:ot.settransition.bind(this),enabledraggable:ot.enabledraggable.bind(this),disabledraggable:ot.disabledraggable.bind(this),setdragposition:ot.setdragposition.bind(this),getpointerposition:ot.getpointerposition.bind(this),ondragstart:ot.ondragstart.bind(this),ondragmove:ot.ondragmove.bind(this),ondragend:ot.ondragend.bind(this),istouched:!1,timeout:null,dragtimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updatesize(),this.scrollbar.settranslate()},update:function(){this.scrollbar.updatesize()},resize:function(){this.scrollbar.updatesize()},observerupdate:function(){this.scrollbar.updatesize()},settranslate:function(){this.scrollbar.settranslate()},settransition:function(t){this.scrollbar.settransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){r.extend(this,{parallax:{settransform:st.settransform.bind(this),settranslate:st.settranslate.bind(this),settransition:st.settransition.bind(this)}})},on:{beforeinit:function(){this.params.parallax.enabled&&(this.params.watchslidesprogress=!0,this.originalparams.watchslidesprogress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.settranslate()},settranslate:function(){this.params.parallax.enabled&&this.parallax.settranslate()},settransition:function(t){this.params.parallax.enabled&&this.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}};"ongesturestart ongesturechange ongestureend ontouchstart ontouchmove ontouchend ontransitionend toggle enable disable in out".split(" ").foreach((function(i){e[i]=rt[i].bind(t)})),r.extend(t,{zoom:e});var i=1;object.defineproperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var n=t.zoom.gesture.$imageel?t.zoom.gesture.$imageel[0]:void 0,o=t.zoom.gesture.$slideel?t.zoom.gesture.$slideel[0]:void 0;t.emit("zoomchange",e,n,o)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchstart:function(t){this.zoom.enabled&&this.zoom.ontouchstart(t)},touchend:function(t){this.zoom.enabled&&this.zoom.ontouchend(t)},doubletap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionend:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.ontransitionend()},slidechange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssmode&&this.zoom.ontransitionend()}}},{name:"lazy",params:{lazy:{enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){r.extend(this,{lazy:{initialimageloaded:!1,load:at.load.bind(this),loadinslide:at.loadinslide.bind(this)}})},on:{beforeinit:function(){this.params.lazy.enabled&&this.params.preloadimages&&(this.params.preloadimages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialslide&&this.lazy.load()},scroll:function(){this.params.freemode&&!this.params.freemodesticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbardragmove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionstart:function(){this.params.lazy.enabled&&(this.params.lazy.loadontransitionstart||!this.params.lazy.loadontransitionstart&&!this.lazy.initialimageloaded)&&this.lazy.load()},transitionend:function(){this.params.lazy.enabled&&!this.params.lazy.loadontransitionstart&&this.lazy.load()},slidechange:function(){this.params.lazy.enabled&&this.params.cssmode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){r.extend(this,{controller:{control:this.params.controller.control,getinterpolatefunction:lt.getinterpolatefunction.bind(this),settranslate:lt.settranslate.bind(this),settransition:lt.settransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerupdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},settranslate:function(t,e){this.controller.control&&this.controller.settranslate(t,e)},settransition:function(t,e){this.controller.control&&this.controller.settransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}"}},create:function(){var t=this;r.extend(t,{a11y:{liveregion:n('')}}),object.keys(ct).foreach((function(e){t.a11y[e]=ct[e].bind(t)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updatenavigation())},toedge:function(){this.params.a11y.enabled&&this.a11y.updatenavigation()},fromedge:function(){this.params.a11y.enabled&&this.a11y.updatenavigation()},paginationupdate:function(){this.params.a11y.enabled&&this.a11y.updatepagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replacestate:!1,key:"slides"}},create:function(){r.extend(this,{history:{init:dt.init.bind(this),sethistory:dt.sethistory.bind(this),sethistorypopstate:dt.sethistorypopstate.bind(this),scrolltoslide:dt.scrolltoslide.bind(this),destroy:dt.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionend:function(){this.history.initialized&&this.history.sethistory(this.params.history.key,this.activeindex)},slidechange:function(){this.history.initialized&&this.params.cssmode&&this.history.sethistory(this.params.history.key,this.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){r.extend(this,{hashnavigation:{initialized:!1,init:ut.init.bind(this),destroy:ut.destroy.bind(this),sethash:ut.sethash.bind(this),onhashcange:ut.onhashcange.bind(this)}})},on:{init:function(){this.params.hashnavigation.enabled&&this.hashnavigation.init()},destroy:function(){this.params.hashnavigation.enabled&&this.hashnavigation.destroy()},transitionend:function(){this.hashnavigation.initialized&&this.hashnavigation.sethash()},slidechange:function(){this.hashnavigation.initialized&&this.params.cssmode&&this.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1}},create:function(){var t=this;r.extend(t,{autoplay:{running:!1,paused:!1,run:ht.run.bind(t),start:ht.start.bind(t),stop:ht.stop.bind(t),pause:ht.pause.bind(t),onvisibilitychange:function(){"hidden"===document.visibilitystate&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilitystate&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},ontransitionend:function(e){t&&!t.destroyed&&t.$wrapperel&&e.target===this&&(t.$wrapperel[0].removeeventlistener("transitionend",t.autoplay.ontransitionend),t.$wrapperel[0].removeeventlistener("webkittransitionend",t.autoplay.ontransitionend),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addeventlistener("visibilitychange",this.autoplay.onvisibilitychange))},beforetransitionstart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableoninteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderfirstmove:function(){this.autoplay.running&&(this.params.autoplay.disableoninteraction?this.autoplay.stop():this.autoplay.pause())},touchend:function(){this.params.cssmode&&this.autoplay.paused&&!this.params.autoplay.disableoninteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeeventlistener("visibilitychange",this.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){r.extend(this,{fadeeffect:{settranslate:pt.settranslate.bind(this),settransition:pt.settransition.bind(this)}})},on:{beforeinit:function(){if("fade"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"fade"===this.params.effect&&this.fadeeffect.settranslate()},settransition:function(t){"fade"===this.params.effect&&this.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){r.extend(this,{cubeeffect:{settranslate:ft.settranslate.bind(this),settransition:ft.settransition.bind(this)}})},on:{beforeinit:function(){if("cube"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"cube"),this.classnames.push(this.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"cube"===this.params.effect&&this.cubeeffect.settranslate()},settransition:function(t){"cube"===this.params.effect&&this.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){r.extend(this,{flipeffect:{settranslate:gt.settranslate.bind(this),settransition:gt.settransition.bind(this)}})},on:{beforeinit:function(){if("flip"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"flip"),this.classnames.push(this.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"flip"===this.params.effect&&this.flipeffect.settranslate()},settransition:function(t){"flip"===this.params.effect&&this.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0}},create:function(){r.extend(this,{coverfloweffect:{settranslate:mt.settranslate.bind(this),settransition:mt.settransition.bind(this)}})},on:{beforeinit:function(){"coverflow"===this.params.effect&&(this.classnames.push(this.params.containermodifierclass+"coverflow"),this.classnames.push(this.params.containermodifierclass+"3d"),this.params.watchslidesprogress=!0,this.originalparams.watchslidesprogress=!0)},settranslate:function(){"coverflow"===this.params.effect&&this.coverfloweffect.settranslate()},settransition:function(t){"coverflow"===this.params.effect&&this.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){r.extend(this,{thumbs:{swiper:null,init:vt.init.bind(this),update:vt.update.bind(this),onthumbclick:vt.onthumbclick.bind(this)}})},on:{beforeinit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slidechange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerupdate:function(){this.thumbs.swiper&&this.thumbs.update()},settransition:function(t){var e=this.thumbs.swiper;e&&e.settransition(t)},beforedestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swipercreated&&t&&t.destroy()}}}];return void 0===q.use&&(q.use=q.class.use,q.installmodule=q.class.installmodule),q.use(bt),q}()},12:function(t,e,i){(function(e){t.exports=e.jquery=i(49)}).call(this,i(19))},18:function(t,e){function i(t){return(i="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof symbol&&"symbol"===i(symbol.iterator)?t.exports=n=function(t){return i(t)}:t.exports=n=function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":i(t)},n(e)}t.exports=n},19:function(t,e){var i;i=function(){return this}();try{i=i||new function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},204:function(t,e,i){(function(t){!function(t,e,i,n){"use strict";if(t.console=t.console||{info:function(t){}},i)if(i.fn.fancybox)console.info("fancybox already initialized");else{var o,s,r={closeexisting:!1,loop:!1,gutter:50,keyboard:!0,preventcaptionoverlap:!0,arrows:!0,infobar:!0,smallbtn:"auto",toolbar:"auto",buttons:["zoom","slideshow","thumbs","close"],idletime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autostart:!0},defaulttype:"image",animationeffect:"zoom",animationduration:366,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'',errortpl:'',btntpl:{download:'',zoom:'',close:'',arrowleft:'',arrowright:'',smallbtn:''},parentel:"body",hidescrollbar:!0,autofocus:!0,backfocus:!0,trapfocus:!0,fullscreen:{autostart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideshow:{autostart:!1,speed:3e3},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"},wheel:"auto",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"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{preventcaptionoverlap:!1,idletime:!1,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:"schließen",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:"vergrößern"}}},a=i(t),l=i(e),c=0,d=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},u=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},h=function(){var t,i=e.createelement("fakeelement"),n={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in n)if(void 0!==i.style[t])return n[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetheight},f=function(t,e){var n=i.extend(!0,{},t,e);return i.each(e,(function(t,e){i.isarray(e)&&(n[t]=e)})),n},g=function(t,e,n){this.opts=f({index:n},i.fancybox.defaults),i.isplainobject(e)&&(this.opts=f(this.opts,e)),i.fancybox.ismobile&&(this.opts=f(this.opts,this.opts.mobile)),this.id=this.opts.id||++c,this.currindex=parseint(this.opts.index,10)||0,this.previndex=null,this.prevpos=null,this.currpos=0,this.firstrun=!0,this.group=[],this.slides={},this.addcontent(t),this.group.length&&this.init()};i.extend(g.prototype,{init:function(){var n,o,s=this,r=s.group[s.currindex].opts;r.closeexisting&&i.fancybox.close(!0),i("body").addclass("fancybox-active"),!i.fancybox.getinstance()&&!1!==r.hidescrollbar&&!i.fancybox.ismobile&&e.body.scrollheight>t.innerheight&&(i("head").append('"),i("body").addclass("compensate-for-scrollbar")),o="",i.each(r.buttons,(function(t,e){o+=r.btntpl[e]||""})),n=i(s.translate(s,r.basetpl.replace("{{buttons}}",o).replace("{{arrows}}",r.btntpl.arrowleft+r.btntpl.arrowright))).attr("id","fancybox-container-"+s.id).addclass(r.baseclass).data("fancybox",s).appendto(r.parentel),s.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].foreach((function(t){s.$refs[t]=n.find(".fancybox-"+t)})),s.trigger("oninit"),s.activate(),s.jumpto(s.currindex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return void 0===i[e]?t:i[e]}))},addcontent:function(t){var e,n=this,o=i.makearray(t);i.each(o,(function(t,e){var o,s,r,a,l,c={},d={};i.isplainobject(e)?(c=e,d=e.opts||e):"object"===i.type(e)&&i(e).length?(d=(o=i(e)).data()||{},(d=i.extend(!0,{},d,d.options)).$orig=o,c.src=n.opts.src||d.src||o.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},n.opts,d),i.isarray(d.buttons)&&(c.opts.buttons=d.buttons),i.fancybox.ismobile&&c.opts.mobile&&(c.opts=f(c.opts,c.opts.mobile)),s=c.type||c.opts.type,a=c.src||"",!s&&a&&((r=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",c=i.extend(!0,c,{contenttype:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charat(0)&&(s="inline")),s?c.type=s:n.trigger("objectneedstype",c),c.contenttype||(c.contenttype=i.inarray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallbtn&&(c.opts.smallbtn=i.inarray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallbtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===n.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(e,[n,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&(l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift()),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapfocus:!0,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})),n.group.push(c)})),object.keys(n.slides).length&&(n.updatecontrols(),(e=n.thumbs)&&e.isactive&&(e.create(),e.focus()))},addevents:function(){var e=this;e.removeevents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stoppropagation(),t.preventdefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stoppropagation(),t.preventdefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stoppropagation(),t.preventdefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isscaleddown()?"scaletoactual":"scaletofit"]()})),a.on("orientationchange.fb resize.fb",(function(t){t&&t.originalevent&&"resize"===t.originalevent.type?(e.requestid&&u(e.requestid),e.requestid=d((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),settimeout((function(){e.$refs.stage.show(),e.update(t)}),i.fancybox.ismobile?600:250))})),l.on("keydown.fb",(function(t){var n=(i.fancybox?i.fancybox.getinstance():null).current,o=t.keycode||t.which;if(9!=o){if(!(!n.opts.keyboard||t.ctrlkey||t.altkey||t.shiftkey||i(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventdefault(),void e.close(t)):37===o||38===o?(t.preventdefault(),void e.previous()):39===o||40===o?(t.preventdefault(),void e.next()):void e.trigger("afterkeydown",t,o)}else n.opts.trapfocus&&e.focus(t)})),e.group[e.currindex].opts.idletime&&(e.idlesecondscounter=0,l.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idlesecondscounter=0,e.isidle&&e.showcontrols(),e.isidle=!1})),e.idleinterval=t.setinterval((function(){e.idlesecondscounter++,e.idlesecondscounter>=e.group[e.currindex].opts.idletime&&!e.isdragging&&(e.isidle=!0,e.idlesecondscounter=0,e.hidecontrols())}),1e3))},removeevents:function(){a.off("orientationchange.fb resize.fb"),l.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleinterval&&(t.clearinterval(this.idleinterval),this.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){var n,o,s,r,a,l,c,d,u,h=this,f=h.group.length;if(!(h.isdragging||h.isclosing||h.isanimating&&h.firstrun)){if(t=parseint(t,10),!(s=h.current?h.current.opts.loop:h.opts.loop)&&(t<0||t>=f))return!1;if(n=h.firstrun=!object.keys(h.slides).length,a=h.current,h.previndex=h.currindex,h.prevpos=h.currpos,r=h.createslide(t),f>1&&((s||r.index0)&&h.createslide(t-1)),h.current=r,h.currindex=r.index,h.currpos=r.pos,h.trigger("beforeshow",n),h.updatecontrols(),r.forcedduration=void 0,i.isnumeric(e)?r.forcedduration=e:e=r.opts[n?"animationduration":"transitionduration"],e=parseint(e,10),o=h.ismoved(r),r.$slide.addclass("fancybox-slide--current"),n)return r.opts.animationeffect&&e&&h.$refs.container.css("transition-duration",e+"ms"),h.$refs.container.addclass("fancybox-is-open").trigger("focus"),h.loadslide(r),void h.preload("image");l=i.fancybox.gettranslate(a.$slide),c=i.fancybox.gettranslate(h.$refs.stage),i.each(h.slides,(function(t,e){i.fancybox.stop(e.$slide,!0)})),a.pos!==r.pos&&(a.iscomplete=!1),a.$slide.removeclass("fancybox-slide--complete fancybox-slide--current"),o?(u=l.left-(a.pos*l.width+a.pos*a.opts.gutter),i.each(h.slides,(function(t,n){n.$slide.removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")}));var o=n.pos*l.width+n.pos*n.opts.gutter;i.fancybox.settranslate(n.$slide,{top:0,left:o-c.left+u}),n.pos!==r.pos&&n.$slide.addclass("fancybox-slide--"+(n.pos>r.pos?"next":"previous")),p(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-r.pos)*l.width+(n.pos-r.pos)*n.opts.gutter},e,(function(){n.$slide.css({transform:"",opacity:""}).removeclass("fancybox-slide--next fancybox-slide--previous"),n.pos===h.currpos&&h.complete()}))}))):e&&r.opts.transitioneffect&&(d="fancybox-animated fancybox-fx-"+r.opts.transitioneffect,a.$slide.addclass("fancybox-slide--"+(a.pos>r.pos?"next":"previous")),i.fancybox.animate(a.$slide,d,e,(function(){a.$slide.removeclass(d).removeclass("fancybox-slide--next fancybox-slide--previous")}),!1)),r.isloaded?h.revealcontent(r):h.loadslide(r),h.preload("image")}},createslide:function(t){var e,n;return n=(n=t%this.group.length)<0?this.group.length+n:n,!this.slides[t]&&this.group[n]&&(e=i('').appendto(this.$refs.stage),this.slides[t]=i.extend(!0,{},this.group[n],{pos:t,$slide:e,isloaded:!1}),this.updateslide(this.slides[t])),this.slides[t]},scaletoactual:function(t,e,n){var o,s,r,a,l,c=this,d=c.current,u=d.$content,h=i.fancybox.gettranslate(d.$slide).width,p=i.fancybox.gettranslate(d.$slide).height,f=d.width,g=d.height;c.isanimating||c.ismoved()||!u||"image"!=d.type||!d.isloaded||d.haserror||(c.isanimating=!0,i.fancybox.stop(u),t=void 0===t?.5*h:t,e=void 0===e?.5*p:e,(o=i.fancybox.gettranslate(u)).top-=i.fancybox.gettranslate(d.$slide).top,o.left-=i.fancybox.gettranslate(d.$slide).left,a=f/o.width,l=g/o.height,s=.5*h-.5*f,r=.5*p-.5*g,f>h&&((s=o.left*a-(t*a-t))>0&&(s=0),sp&&((r=o.top*l-(e*l-e))>0&&(r=0),re-.5&&(l=e),(c*=o)>n-.5&&(c=n),"image"===t.type?(d.top=math.floor(.5*(n-c))+parsefloat(a.css("paddingtop")),d.left=math.floor(.5*(e-l))+parsefloat(a.css("paddingleft"))):"video"===t.contenttype&&(c>l/(s=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/s:l>c*s&&(l=c*s)),d.width=l,d.height=c,d)},update:function(t){var e=this;i.each(e.slides,(function(i,n){e.updateslide(n,t)}))},updateslide:function(t,e){var n=t&&t.$content,o=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;this.adjustcaption(t),n&&(o||s||"video"===t.contenttype)&&!t.haserror&&(i.fancybox.stop(n),i.fancybox.settranslate(n,this.getfitpos(t)),t.pos===this.currpos&&(this.isanimating=!1,this.updatecursor())),this.adjustlayout(t),r.length&&(r.trigger("refresh"),t.pos===this.currpos&&this.$refs.toolbar.add(this.$refs.navigation.find(".fancybox-button--arrow_right")).toggleclass("compensate-for-scrollbar",r.get(0).scrollheight>r.get(0).clientheight)),this.trigger("onupdate",t,e)},centerslide:function(t){var e=this,n=e.current,o=n.$slide;!e.isclosing&&n&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeclass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===t?0:t,(function(){o.css({transform:"",opacity:""}),n.iscomplete||e.complete()}),!1))},ismoved:function(t){var e,n,o=t||this.current;return!!o&&(n=i.fancybox.gettranslate(this.$refs.stage),e=i.fancybox.gettranslate(o.$slide),!o.$slide.hasclass("fancybox-animated")&&(math.abs(e.top-n.top)>.5||math.abs(e.left-n.left)>.5))},updatecursor:function(t,e){var n,o,s=this.current,r=this.$refs.container;s&&!this.isclosing&&this.guestures&&(r.removeclass("fancybox-is-zoomable fancybox-can-zoomin fancybox-can-zoomout fancybox-can-swipe fancybox-can-pan"),o=!!(n=this.canpan(t,e))||this.iszoomable(),r.toggleclass("fancybox-is-zoomable",o),i("[data-fancybox-zoom]").prop("disabled",!o),n?r.addclass("fancybox-can-pan"):o&&("zoom"===s.opts.clickcontent||i.isfunction(s.opts.clickcontent)&&"zoom"==s.opts.clickcontent(s))?r.addclass("fancybox-can-zoomin"):s.opts.touch&&(s.opts.touch.vertical||this.group.length>1)&&"video"!==s.contenttype&&r.addclass("fancybox-can-swipe"))},iszoomable:function(){var t,e=this.current;if(e&&!this.isclosing&&"image"===e.type&&!e.haserror){if(!e.isloaded)return!0;if((t=this.getfitpos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isscaleddown:function(t,e){var n=!1,o=this.current,s=o.$content;return void 0!==t&&void 0!==e?n=t1.5||math.abs(o.height-s.height)>1.5)),s},loadslide:function(t){var e,n,o,s=this;if(!t.isloading&&!t.isloaded){if(t.isloading=!0,!1===s.trigger("beforeload",t))return t.isloading=!1,!1;switch(e=t.type,(n=t.$slide).off("refresh").trigger("onreset").addclass(t.opts.slideclass),e){case"image":s.setimage(t);break;case"iframe":s.setiframe(t);break;case"html":s.setcontent(t,t.src||t.content);break;case"video":s.setcontent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoformat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?s.setcontent(t,i(t.src)):s.seterror(t);break;case"ajax":s.showloading(t),o=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&s.setcontent(t,e)},error:function(e,i){e&&"abort"!==i&&s.seterror(t)}})),n.one("onreset",(function(){o.abort()}));break;default:s.seterror(t)}return!0}},setimage:function(t){var n,o=this;settimeout((function(){var e=t.$image;o.isclosing||!t.isloading||e&&e.length&&e[0].complete||t.haserror||o.showloading(t)}),50),o.checksrcset(t),t.$content=i('').addclass("fancybox-is-hidden").appendto(t.$slide.addclass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(n=e.createelement("img")).onerror=function(){i(this).remove(),t.$ghost=null},n.onload=function(){o.afterload(t)},t.$ghost=i(n).addclass("fancybox-image").appendto(t.$content).attr("src",t.thumb)),o.setbigimage(t)},checksrcset:function(e){var i,n,o,s,r=e.opts.srcset||e.opts.image.srcset;if(r){o=t.devicepixelratio||1,s=t.innerwidth*o,(n=r.split(",").map((function(t){var e={};return t.trim().split(/\s+/).foreach((function(t,i){var n=parseint(t.substring(0,t.length-1),10);if(0===i)return e.url=t;n&&(e.value=n,e.postfix=t[t.length-1])})),e}))).sort((function(t,e){return t.value-e.value}));for(var a=0;a=s||"x"===l.postfix&&l.value>=o){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=r)}},setbigimage:function(t){var n=this,o=e.createelement("img"),s=i(o);t.$image=s.one("error",(function(){n.seterror(t)})).one("load",(function(){var e;t.$ghost||(n.resolveimageslidesize(t,this.naturalwidth,this.naturalheight),n.afterload(t)),n.isclosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&a.width()/a.height()>1?"100":math.round(t.width/t.height*100))+"vw"),s.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&settimeout((function(){t.$ghost&&!n.isclosing&&t.$ghost.hide()}),math.min(300,math.max(1e3,t.height/1600))),n.hideloading(t))})).addclass("fancybox-image").attr("src",t.src).appendto(t.$content),(o.complete||"complete"==o.readystate)&&s.naturalwidth&&s.naturalheight?s.trigger("load"):o.error&&s.trigger("error")},resolveimageslidesize:function(t,e,i){var n=parseint(t.opts.width,10),o=parseint(t.opts.height,10);t.width=e,t.height=i,n>0&&(t.width=n,t.height=math.floor(n*i/e)),o>0&&(t.width=math.floor(o*e/i),t.height=o)},setiframe:function(t){var e,n=this,o=t.opts.iframe,s=t.$slide;t.$content=i('').css(o.css).appendto(s),s.addclass("fancybox-slide--"+t.contenttype),t.$iframe=e=i(o.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(o.attr).appendto(t.$content),o.preload?(n.showloading(t),e.on("load.fb error.fb",(function(e){this.isready=1,t.$slide.trigger("refresh"),n.afterload(t)})),s.on("refresh.fb",(function(){var i,n=t.$content,r=o.css.width,a=o.css.height;if(1===e[0].isready){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=math.ceil(math.max(i[0].clientwidth,i.outerwidth(!0)))),n.css("width",r||"").css("max-width",""),void 0===a&&(a=math.ceil(math.max(i[0].clientheight,i.outerheight(!0)))),n.css("height",a||""),s.css("overflow","auto")),n.removeclass("fancybox-is-hidden")}}))):n.afterload(t),e.attr("src",t.src),s.one("onreset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isloaded=!1,t.isrevealed=!1}))},setcontent:function(t,e){var n;this.isclosing||(this.hideloading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),(n=e)&&n.hasownproperty&&n instanceof i&&e.parent().length?((e.hasclass("fancybox-content")||e.parent().hasclass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onreset"),t.$placeholder=i("").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===i.type(e)&&(e=i("
").append(i.trim(e)).contents()),t.opts.filter&&(e=i("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",(function(){i(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||(i(this).empty(),t.isloaded=!1,t.isrevealed=!1)})),i(e).appendto(t.$slide),i(e).is("video,audio")&&(i(e).addclass("fancybox-video"),i(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(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),this.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){(t=t||this.current)&&!t.$spinner&&(t.$spinner=i(this.translate(this,this.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast"))},hideloading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterload:function(t){this.isclosing||(t.isloading=!1,t.isloaded=!0,this.trigger("afterload",t),this.hideloading(t),!t.opts.smallbtn||t.$smallbtn&&t.$smallbtn.length||(t.$smallbtn=i(this.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&&i('
').appendto(t.$content)),this.adjustcaption(t),this.adjustlayout(t),t.pos===this.currpos&&this.updatecursor(),this.revealcontent(t))},adjustcaption:function(t){var e,i=t||this.current,n=i.opts.caption,o=i.opts.preventcaptionoverlap,s=this.$refs.caption,r=!1;s.toggleclass("fancybox-caption--separate",o),o&&n&&n.length&&(i.pos!==this.currpos?((e=s.clone().appendto(s.parent())).children().eq(0).empty().html(n),r=e.outerheight(!0),e.empty().remove()):this.$caption&&(r=this.$caption.outerheight(!0)),i.$slide.css("padding-bottom",r||""))},adjustlayout:function(t){var e,i,n,o,s=t||this.current;s.isloaded&&!0!==s.opts.disablelayoutfix&&(s.$content.css("margin-bottom",""),s.$content.outerheight()>s.$slide.height()+.5&&(n=s.$slide[0].style["padding-bottom"],o=s.$slide.css("padding-bottom"),parsefloat(o)>0&&(e=s.$slide[0].scrollheight,s.$slide.css("padding-bottom",0),math.abs(e-s.$slide[0].scrollheight)<1&&(i=o),s.$slide.css("padding-bottom",n))),s.$content.css("margin-bottom",i))},revealcontent:function(t){var e,n,o,s,r=this,a=t.$slide,l=!1,c=!1,d=r.ismoved(t),u=t.isrevealed;return t.isrevealed=!0,e=t.opts[r.firstrun?"animationeffect":"transitioneffect"],o=t.opts[r.firstrun?"animationduration":"transitionduration"],o=parseint(void 0===t.forcedduration?o:t.forcedduration,10),!d&&t.pos===r.currpos&&o||(e=!1),"zoom"===e&&(t.pos===r.currpos&&o&&"image"===t.type&&!t.haserror&&(c=r.getthumbpos(t))?l=r.getfitpos(t):e="fade"),"zoom"===e?(r.isanimating=!0,l.scalex=l.width/c.width,l.scaley=l.height/c.height,"auto"==(s=t.opts.zoomopacity)&&(s=math.abs(t.width/t.height-c.width/c.height)>.1),s&&(c.opacity=.1,l.opacity=1),i.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),c),p(t.$content),void i.fancybox.animate(t.$content,l,o,(function(){r.isanimating=!1,r.complete()}))):(r.updateslide(t),e?(i.fancybox.stop(a),n="fancybox-slide--"+(t.pos>=r.prevpos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addclass(n).removeclass("fancybox-slide--current"),t.$content.removeclass("fancybox-is-hidden"),p(a),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(a,"fancybox-slide--current",o,(function(){a.removeclass(n).css({transform:"",opacity:""}),t.pos===r.currpos&&r.complete()}),!0)):(t.$content.removeclass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.haserror||t.$content.hide().fadein("fast"),void(t.pos===r.currpos&&r.complete())))},getthumbpos:function(t){var n,o,s,r,a,l,c=t.$thumb;return!(!c||!function(t){var n,o;return!(!t||t.ownerdocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),n={x:t.getboundingclientrect().left+t.offsetwidth/2,y:t.getboundingclientrect().top+t.offsetheight/2},o=e.elementfrompoint(n.x,n.y)===t,i(".fancybox-container").css("pointer-events",""),o)}(c[0]))&&(o=i.fancybox.gettranslate(c),s=parsefloat(c.css("border-top-width")||0),r=parsefloat(c.css("border-right-width")||0),a=parsefloat(c.css("border-bottom-width")||0),l=parsefloat(c.css("border-left-width")||0),n={top:o.top+s,left:o.left+l,width:o.width-r-l,height:o.height-s-a,scalex:1,scaley:1},o.width>0&&o.height>0&&n)},complete:function(){var t,e=this,n=e.current,o={};!e.ismoved()&&n.isloaded&&(n.iscomplete||(n.iscomplete=!0,n.$slide.siblings().trigger("onreset"),e.preload("inline"),p(n.$slide),n.$slide.addclass("fancybox-slide--complete"),i.each(e.slides,(function(t,n){n.pos>=e.currpos-1&&n.pos<=e.currpos+1?o[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())})),e.slides=o),e.isanimating=!1,e.updatecursor(),e.trigger("aftershow"),n.opts.video.autostart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){document.exitfullscreen?document.exitfullscreen():this.webkitexitfullscreen&&this.webkitexitfullscreen(),e.next()})),n.opts.autofocus&&"html"===n.contenttype&&((t=n.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),n.$slide.scrolltop(0).scrollleft(0))},preload:function(t){var e,i;this.group.length<2||(i=this.slides[this.currpos+1],(e=this.slides[this.currpos-1])&&e.type===t&&this.loadslide(e),i&&i.type===t&&this.loadslide(i))},focus:function(t,n){var o,s,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(",");this.isclosing||((o=(o=!t&&this.current&&this.current.iscomplete?this.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):this.$refs.container.find("*:visible")).filter(r).filter((function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasclass("disabled")}))).length?(s=o.index(e.activeelement),t&&t.shiftkey?(s<0||0==s)&&(t.preventdefault(),o.eq(o.length-1).trigger("focus")):(s<0||s==o.length-1)&&(t&&t.preventdefault(),o.eq(0).trigger("focus"))):this.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each((function(){var e=i(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 n,o,s,r,a,l,c,u=this,h=u.current,f=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(),s=h.$content,n=h.opts.animationeffect,o=i.isnumeric(e)?e:n?h.opts.animationduration:0,h.$slide.removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(h.$slide):n=!1,h.$slide.siblings().trigger("onreset").remove(),o&&u.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing").css("transition-duration",o+"ms"),u.hideloading(h),u.hidecontrols(!0),u.updatecursor(),"zoom"!==n||s&&o&&"image"===h.type&&!u.ismoved()&&!h.haserror&&(c=u.getthumbpos(h))||(n="fade"),"zoom"===n?(i.fancybox.stop(s),l={top:(r=i.fancybox.gettranslate(s)).top,left:r.left,scalex:r.width/c.width,scaley:r.height/c.height,width:c.width,height:c.height},"auto"==(a=h.opts.zoomopacity)&&(a=math.abs(h.width/h.height-c.width/c.height)>.1),a&&(c.opacity=0),i.fancybox.settranslate(s,l),p(s),i.fancybox.animate(s,c,o,f),!0):(n&&o?i.fancybox.animate(h.$slide.addclass("fancybox-slide--previous").removeclass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,o,f):!0===t?settimeout(f,o):f(),!0)))},cleanup:function(e){var n,o,s,r=this.current.opts.$orig;this.current.$slide.trigger("onreset"),this.$refs.container.empty().remove(),this.trigger("afterclose",e),this.current.opts.backfocus&&(r&&r.length&&r.is(":visible")||(r=this.$trigger),r&&r.length&&(o=t.scrollx,s=t.scrolly,r.trigger("focus"),i("html, body").scrolltop(s).scrollleft(o))),this.current=null,(n=i.fancybox.getinstance())?n.activate():(i("body").removeclass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=array.prototype.slice.call(arguments,1),s=this,r=e&&e.opts?e:s.current;if(r?o.unshift(r):r=s,o.unshift(s),i.isfunction(r.opts[t])&&(n=r.opts[t].apply(r,o)),!1===n)return n;"afterclose"!==t&&s.$refs?s.$refs.container.trigger(t+".fb",o):l.trigger(t+".fb",o)},updatecontrols:function(){var t=this.current,n=t.index,o=this.$refs.container,s=this.$refs.caption,r=t.opts.caption;t.$slide.trigger("refresh"),r&&r.length?(this.$caption=s,s.children().eq(0).html(r)):this.$caption=null,this.hashiddencontrols||this.isidle||this.showcontrols(),o.find("[data-fancybox-count]").html(this.group.length),o.find("[data-fancybox-index]").html(n+1),o.find("[data-fancybox-prev]").prop("disabled",!t.opts.loop&&n<=0),o.find("[data-fancybox-next]").prop("disabled",!t.opts.loop&&n>=this.group.length-1),"image"===t.type?o.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&o.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeelement).is(":hidden,[disabled]")&&this.$refs.container.trigger("focus")},hidecontrols:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventcaptionoverlap||e.push("caption"),this.$refs.container.removeclass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hashiddencontrols=!0},showcontrols:function(){var t=this.current?this.current.opts:this.opts,e=this.$refs.container;this.hashiddencontrols=!1,this.idlesecondscounter=0,e.toggleclass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleclass("fancybox-show-infobar",!!(t.infobar&&this.group.length>1)).toggleclass("fancybox-show-caption",!!this.$caption).toggleclass("fancybox-show-nav",!!(t.arrows&&this.group.length>1)).toggleclass("fancybox-is-modal",!!t.modal)},togglecontrols:function(){this.hashiddencontrols?this.showcontrols():this.hidecontrols()}}),i.fancybox={version:"3.5.7",defaults:r,getinstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"),n=array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new g(t,e,i)},close:function(t){var e=this.getinstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),l.add("body").off("click.fb-start","**")},ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:(o=e.createelement("div"),t.getcomputedstyle&&t.getcomputedstyle(o)&&t.getcomputedstyle(o).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)),gettranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getboundingclientrect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))}},settranslate:function(t,e){var i="",n={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scalex&&void 0!==e.scaley?i+=" scale("+e.scalex+", "+e.scaley+")":void 0!==e.scalex&&(i+=" scalex("+e.scalex+")"),i.length&&(n.transform=i),void 0!==e.opacity&&(n.opacity=e.opacity),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),t.css(n)},animate:function(t,e,n,o,s){var r,a=this;i.isfunction(n)&&(o=n,n=null),a.stop(t),r=a.gettranslate(t),t.on(h,(function(l){(!l||!l.originalevent||t.is(l.originalevent.target)&&"z-index"!=l.originalevent.propertyname)&&(a.stop(t),i.isnumeric(n)&&t.css("transition-duration",""),i.isplainobject(e)?void 0!==e.scalex&&void 0!==e.scaley&&a.settranslate(t,{top:e.top,left:e.left,width:r.width*e.scalex,height:r.height*e.scaley,scalex:1,scaley:1}):!0!==s&&t.removeclass(e),i.isfunction(o)&&o(l))})),i.isnumeric(n)&&t.css("transition-duration",n+"ms"),i.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")),i.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout((function(){t.trigger(h)}),n+33))},stop:function(t,e){t&&t.length&&(cleartimeout(t.data("timer")),e&&t.trigger(h),t.off(h).css("transition-duration",""),t.parent().removeclass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},m):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},m),this},l.on("click.fb-start","[data-fancybox]",m),l.on("click.fb-start","[data-fancybox-trigger]",(function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})})),s=null,l.on("mousedown mouseup focus blur",".fancybox-button",(function(t){switch(t.type){case"mousedown":s=i(this);break;case"mouseup":s=null;break;case"focusin":i(".fancybox-button").removeclass("fancybox-focus"),i(this).is(s)||i(this).is("[disabled]")||i(this).addclass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeclass("fancybox-focus")}}))}function m(t,e){var n,o,s,r=[],a=0;t&&t.isdefaultprevented()||(t.preventdefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),n=e.$target||i(t.currenttarget).trigger("blur"),(s=i.fancybox.getinstance())&&s.$trigger&&s.$trigger.is(n)||(r=e.selector?i(e.selector):(o=n.attr("data-fancybox")||"")?(r=t.data?t.data.items:[]).length?r.filter('[data-fancybox="'+o+'"]'):i('[data-fancybox="'+o+'"]'):[n],(a=i(r).index(n))<0&&(a=0),(s=i.fancybox.open(r,e,a)).$trigger=n))}}(window,document,t),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"}}},i=function(e,i,n){if(e)return n=n||"","object"===t.type(n)&&(n=t.param(n,!0)),t.each(i,(function(t,i){e=e.replace("$"+t,i||"")})),n.length&&(e+=(e.indexof("?")>0?"&":"?")+n),e};t(document).on("objectneedstype.fb",(function(n,o,s){var r,a,l,c,d,u,h,p=s.src||"",f=!1;r=t.extend(!0,{},e,s.opts.media),t.each(r,(function(e,n){if(l=p.match(n.matcher)){if(f=n.type,h=e,u={},n.paramplace&&l[n.paramplace]){"?"==(d=l[n.paramplace])[0]&&(d=d.substring(1)),d=d.split("&");for(var o=0;o
1&&("youtube"===i.contentsource||"vimeo"===i.contentsource)&&n.load(i.contentsource)}})}(t),function(t,e,i){"use strict";var n=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},o=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},s=function(e){var i=[];for(var n in e=(e=e.originalevent||e||t.e).touches&&e.touches.length?e.touches:e.changedtouches&&e.changedtouches.length?e.changedtouches:[e])e[n].pagex?i.push({x:e[n].pagex,y:e[n].pagey}):e[n].clientx&&i.push({x:e[n].clientx,y:e[n].clienty});return i},r=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:math.sqrt(math.pow(t.x-e.x,2)+math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isfunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;ei.clientheight,r=("scroll"===o||"auto"===o)&&i.scrollwidth>i.clientwidth,!(a=s||r)&&(e=e.parent()).length&&!e.hasclass("fancybox-stage")&&!e.is("body"););return a},c=function(t){this.instance=t,this.$bg=t.$refs.bg,this.$stage=t.$refs.stage,this.$container=t.$refs.container,this.destroy(),this.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(this,"ontouchstart"))};c.prototype.destroy=function(){this.$container.off(".fb.touch"),i(e).off(".fb.touch"),this.requestid&&(o(this.requestid),this.requestid=null),this.tapped&&(cleartimeout(this.tapped),this.tapped=null)},c.prototype.ontouchstart=function(n){var o=i(n.target),c=this.instance,d=c.current,u=d.$slide,h=d.$content,p="touchstart"==n.type;if(p&&this.$container.off("mousedown.fb.touch"),(!n.originalevent||2!=n.originalevent.button)&&u.length&&o.length&&!a(o)&&!a(o.parent())&&(o.is("img")||!(n.originalevent.clientx>o[0].clientwidth+o.offset().left))){if(!d||c.isanimating||d.$slide.hasclass("fancybox-animated"))return n.stoppropagation(),void n.preventdefault();this.realpoints=this.startpoints=s(n),this.startpoints.length&&(d.touch&&n.stoppropagation(),this.startevent=n,this.cantap=!0,this.$target=o,this.$content=h,this.opts=d.opts.touch,this.ispanning=!1,this.isswiping=!1,this.iszooming=!1,this.isscrolling=!1,this.canpan=c.canpan(),this.starttime=(new date).gettime(),this.distancex=this.distancey=this.distance=0,this.canvaswidth=math.round(u[0].clientwidth),this.canvasheight=math.round(u[0].clientheight),this.contentlastpos=null,this.contentstartpos=i.fancybox.gettranslate(this.$content)||{top:0,left:0},this.sliderstartpos=i.fancybox.gettranslate(u),this.stagepos=i.fancybox.gettranslate(c.$refs.stage),this.sliderstartpos.top-=this.stagepos.top,this.sliderstartpos.left-=this.stagepos.left,this.contentstartpos.top-=this.stagepos.top,this.contentstartpos.left-=this.stagepos.left,i(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(this,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(this,"ontouchmove")),i.fancybox.ismobile&&e.addeventlistener("scroll",this.onscroll,!0),((this.opts||this.canpan)&&(o.is(this.$stage)||this.$stage.find(o).length)||(o.is(".fancybox-image")&&n.preventdefault(),i.fancybox.ismobile&&o.parents(".fancybox-caption").length))&&(this.isscrollable=l(o)||l(o.parent()),i.fancybox.ismobile&&this.isscrollable||n.preventdefault(),(1===this.startpoints.length||d.haserror)&&(this.canpan?(i.fancybox.stop(this.$content),this.ispanning=!0):this.isswiping=!0,this.$container.addclass("fancybox-is-grabbing")),2===this.startpoints.length&&"image"===d.type&&(d.isloaded||d.$ghost)&&(this.cantap=!1,this.isswiping=!1,this.ispanning=!1,this.iszooming=!0,i.fancybox.stop(this.$content),this.centerpointstartx=.5*(this.startpoints[0].x+this.startpoints[1].x)-i(t).scrollleft(),this.centerpointstarty=.5*(this.startpoints[0].y+this.startpoints[1].y)-i(t).scrolltop(),this.percentageofimageatpinchpointx=(this.centerpointstartx-this.contentstartpos.left)/this.contentstartpos.width,this.percentageofimageatpinchpointy=(this.centerpointstarty-this.contentstartpos.top)/this.contentstartpos.height,this.startdistancebetweenfingers=r(this.startpoints[0],this.startpoints[1]))))}},c.prototype.onscroll=function(t){this.isscrolling=!0,e.removeeventlistener("scroll",this.onscroll,!0)},c.prototype.ontouchmove=function(t){void 0===t.originalevent.buttons||0!==t.originalevent.buttons?this.isscrolling?this.cantap=!1:(this.newpoints=s(t),(this.opts||this.canpan)&&this.newpoints.length&&this.newpoints.length&&(this.isswiping&&!0===this.isswiping||t.preventdefault(),this.distancex=r(this.newpoints[0],this.startpoints[0],"x"),this.distancey=r(this.newpoints[0],this.startpoints[0],"y"),this.distance=r(this.newpoints[0],this.startpoints[0]),this.distance>0&&(this.isswiping?this.onswipe(t):this.ispanning?this.onpan():this.iszooming&&this.onzoom()))):this.ontouchend(t)},c.prototype.onswipe=function(e){var s,r=this,a=r.instance,l=r.isswiping,c=r.sliderstartpos.left||0;if(!0!==l)"x"==l&&(r.distancex>0&&(r.instance.group.length<2||0===r.instance.current.index&&!r.instance.current.opts.loop)?c+=math.pow(r.distancex,.8):r.distancex<0&&(r.instance.group.length<2||r.instance.current.index===r.instance.group.length-1&&!r.instance.current.opts.loop)?c-=math.pow(-r.distancex,.8):c+=r.distancex),r.sliderlastpos={top:"x"==l?0:r.sliderstartpos.top+r.distancey,left:c},r.requestid&&(o(r.requestid),r.requestid=null),r.requestid=n((function(){r.sliderlastpos&&(i.each(r.instance.slides,(function(t,e){var n=e.pos-r.instance.currpos;i.fancybox.settranslate(e.$slide,{top:r.sliderlastpos.top,left:r.sliderlastpos.left+n*r.canvaswidth+n*e.opts.gutter})})),r.$container.addclass("fancybox-is-sliding"))}));else if(math.abs(r.distance)>10){if(r.cantap=!1,a.group.length<2&&r.opts.vertical?r.isswiping="y":a.isdragging||!1===r.opts.vertical||"auto"===r.opts.vertical&&i(t).width()>800?r.isswiping="x":(s=math.abs(180*math.atan2(r.distancey,r.distancex)/math.pi),r.isswiping=s>45&&s<135?"y":"x"),"y"===r.isswiping&&i.fancybox.ismobile&&r.isscrollable)return void(r.isscrolling=!0);a.isdragging=r.isswiping,r.startpoints=r.newpoints,i.each(a.slides,(function(t,e){var n,o;i.fancybox.stop(e.$slide),n=i.fancybox.gettranslate(e.$slide),o=i.fancybox.gettranslate(a.$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===a.current.pos&&(r.sliderstartpos.top=n.top-o.top,r.sliderstartpos.left=n.left-o.left),i.fancybox.settranslate(e.$slide,{top:n.top-o.top,left:n.left-o.left})})),a.slideshow&&a.slideshow.isactive&&a.slideshow.stop()}},c.prototype.onpan=function(){var t=this;r(t.newpoints[0],t.realpoints[0])<(i.fancybox.ismobile?10:5)?t.startpoints=t.newpoints:(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&o(t.requestid),t.requestid=n((function(){i.fancybox.settranslate(t.$content,t.contentlastpos)})))},c.prototype.limitmovement=function(){var t,e,i,n,o,s,r=this.canvaswidth,a=this.canvasheight,l=this.distancex,c=this.distancey,d=this.contentstartpos,u=d.left,h=d.top,p=d.width,f=d.height;return o=p>r?u+l:u,s=h+c,t=math.max(0,.5*r-.5*p),e=math.max(0,.5*a-.5*f),i=math.min(r-p,.5*r-.5*p),n=math.min(a-f,.5*a-.5*f),l>0&&o>t&&(o=t-1+math.pow(-t+u+l,.8)||0),l<0&&o0&&s>e&&(s=e-1+math.pow(-e+h+c,.8)||0),c<0&&so?(t=t>0?0:t)s?(e=e>0?0:e)1&&(this.dms>130&&s>10||s>50);this.sliderlastpos=null,"y"==t&&!e&&math.abs(this.distancey)>50?(i.fancybox.animate(this.instance.current.$slide,{top:this.sliderstartpos.top+this.distancey+150*this.velocityy,opacity:0},200),n=this.instance.close(!0,250)):r&&this.distancex>0?n=this.instance.previous(300):r&&this.distancex<0&&(n=this.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||this.instance.centerslide(200),this.$container.removeclass("fancybox-is-sliding")},c.prototype.endpanning=function(){var t,e,n;this.contentlastpos&&(!1===this.opts.momentum||this.dms>350?(t=this.contentlastpos.left,e=this.contentlastpos.top):(t=this.contentlastpos.left+500*this.velocityx,e=this.contentlastpos.top+500*this.velocityy),(n=this.limitposition(t,e,this.contentstartpos.width,this.contentstartpos.height)).width=this.contentstartpos.width,n.height=this.contentstartpos.height,i.fancybox.animate(this.$content,n,366))},c.prototype.endzooming=function(){var t,e,n,o,s=this.instance.current,r=this.newwidth,a=this.newheight;this.contentlastpos&&(t=this.contentlastpos.left,o={top:e=this.contentlastpos.top,left:t,width:r,height:a,scalex:1,scaley:1},i.fancybox.settranslate(this.$content,o),rs.width||a>s.height?this.instance.scaletoactual(this.centerpointstartx,this.centerpointstarty,150):(n=this.limitposition(t,e,r,a),i.fancybox.animate(this.$content,n,150)))},c.prototype.ontap=function(e){var n,o=this,r=i(e.target),a=o.instance,l=a.current,c=e&&s(e)||o.startpoints,d=c[0]?c[0].x-i(t).scrollleft()-o.stagepos.left:0,u=c[0]?c[0].y-i(t).scrolltop()-o.stagepos.top:0,h=function(t){var n=l.opts[t];if(i.isfunction(n)&&(n=n.apply(a,[l,e])),n)switch(n){case"close":a.close(o.startevent);break;case"togglecontrols":a.togglecontrols();break;case"next":a.next();break;case"nextorclose":a.group.length>1?a.next():a.close(o.startevent);break;case"zoom":"image"==l.type&&(l.isloaded||l.$ghost)&&(a.canpan()?a.scaletofit():a.isscaleddown()?a.scaletoactual(d,u):a.group.length<2&&a.close(o.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(r.is("img")||!(d>r[0].clientwidth+r.offset().left))){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="outside";else if(r.is(".fancybox-slide"))n="slide";else{if(!a.current.$content||!a.current.$content.find(r).addback().filter(r).length)return;n="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(d-o.tapx)>50||math.abs(u-o.tapy)>50)return this;h("dblclick"+n)}else o.tapx=d,o.tapy=u,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?o.tapped=settimeout((function(){o.tapped=null,a.isanimating||h("click"+n)}),500):h("click"+n);return this}},i(e).on("onactivate.fb",(function(t,e){e&&!e.guestures&&(e.guestures=new c(e))})).on("beforeclose.fb",(function(t,e){e&&e.guestures&&e.guestures.destroy()}))}(window,document,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this,i=t.instance,n=i.group[i.currindex].opts.slideshow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),i.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=e('').appendto(i.$refs.inner))},set:function(t){var i=this.instance,n=i.current;n&&(!0===t||n.opts.loop||i.currindex'},fullscreen:{autostart:!1}}),e(t).on(i.fullscreenchange,(function(){var t=n.isfullscreen(),i=e.fancybox.getinstance();i&&(i.current&&"image"===i.current.type&&i.isanimating&&(i.isanimating=!1,i.update(!0,!0,0),i.iscomplete||i.complete()),i.trigger("onfullscreenchange",t),i.$refs.container.toggleclass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleclass("fancybox-button--fsenter",!t).toggleclass("fancybox-button--fsexit",t))}))}e(t).on({"oninit.fb":function(t,e){i?e&&e.group[e.currindex].opts.fullscreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stoppropagation(),t.preventdefault(),n.toggle()})),e.opts.fullscreen&&!0===e.opts.fullscreen.autostart&&n.request(),e.fullscreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterkeydown.fb":function(t,e,i,n,o){e&&e.fullscreen&&70===o&&(n.preventdefault(),e.fullscreen.toggle())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&n.exit()}})}(document,t),function(t,e){"use strict";var i="fancybox-thumbs";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,i=t.group,n=0;e.instance=t,e.opts=i[t.currindex].opts.thumbs,t.thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,s=i.length;o1));o++);n>1&&e.opts?(e.$button.removeattr("style").on("click",(function(){e.toggle()})),e.isactive=!0):e.$button.hide()},create:function(){var t,n=this.instance,o=this.opts.parentel,s=[];this.$grid||(this.$grid=e('').appendto(n.$refs.container.find(o).addback().filter(o)),this.$grid.on("click","a",(function(){n.jumpto(e(this).attr("data-index"))}))),this.$list||(this.$list=e('').appendto(this.$grid)),e.each(n.group,(function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),s.push('
")})),this.$list[0].innerhtml=s.join(""),"x"===this.opts.axis&&this.$list.width(parseint(this.$grid.css("padding-right"),10)+n.group.length*this.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,i,n=this.$list,o=this.$grid;this.instance.current&&(i=(e=n.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addclass("fancybox-thumbs-active")).position(),"y"===this.opts.axis&&(i.top<0||i.top>n.height()-e.outerheight())?n.stop().animate({scrolltop:n.scrolltop()+i.top},t):"x"===this.opts.axis&&(i.left
o.scrollleft()+(o.width()-e.outerwidth()))&&n.parent().stop().animate({scrollleft:i.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 i;e&&!e.thumbs&&(i=new n(e)).isactive&&!0===i.opts.autostart&&i.show()},"beforeshow.fb":function(t,e,i,n){var o=e&&e.thumbs;o&&o.isvisible&&o.focus(n?0:250)},"afterkeydown.fb":function(t,e,i,n,o){var s=e&&e.thumbs;s&&s.isactive&&71===o&&(n.preventdefault(),s.toggle())},"beforeclose.fb":function(t,e){var i=e&&e.thumbs;i&&i.isvisible&&!1!==i.opts.hideonclose&&i.$grid.hide()}})}(document,t),function(t,e){"use strict";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,i,n,o,s=e.fancybox.getinstance(),r=s.current||null;r&&("function"===e.type(r.opts.share.url)&&(t=r.opts.share.url.apply(r,[s,r])),i=r.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===r.type?encodeuricomponent(r.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,(n=t,o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},string(n).replace(/[&<>"'`=\/]/g,(function(t){return o[t]})))).replace(/\{\{descr\}\}/g,s.$caption?encodeuricomponent(s.$caption.text()):""),e.fancybox.open({src:s.translate(s,i),type:"html",opts:{touch:!1,animationeffect:!1,afterload:function(t,e){s.$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,t),function(t,e,i){"use strict";function n(){var e=t.location.hash.substr(1),i=e.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseint(i.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:i.join("-")}}function o(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeselector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function s(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}i.escapeselector||(i.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}))}),i((function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"oninit.fb":function(t,e){var i,o;!1!==e.group[e.currindex].opts.hash&&(i=n(),(o=s(e))&&i.gallery&&o==i.gallery&&(e.currindex=i.index-1))},"beforeshow.fb":function(i,n,o,r){var a;o&&!1!==o.opts.hash&&(a=s(n))&&(n.currenthash=a+(n.group.length>1?"-"+(o.index+1):""),t.location.hash!=="#"+n.currenthash&&(r&&!n.orighash&&(n.orighash=t.location.hash),n.hashtimer&&cleartimeout(n.hashtimer),n.hashtimer=settimeout((function(){"replacestate"in t.history?(t.history[r?"pushstate":"replacestate"]({},e.title,t.location.pathname+t.location.search+"#"+n.currenthash),r&&(n.hascreatedhistory=!0)):t.location.hash=n.currenthash,n.hashtimer=null}),300)))},"beforeclose.fb":function(i,n,o){o&&!1!==o.opts.hash&&(cleartimeout(n.hashtimer),n.currenthash&&n.hascreatedhistory?t.history.back():n.currenthash&&("replacestate"in t.history?t.history.replacestate({},e.title,t.location.pathname+t.location.search+(n.orighash||"")):t.location.hash=n.orighash),n.currenthash=null)}}),i(t).on("hashchange.fb",(function(){var t=n(),e=null;i.each(i(".fancybox-container").get().reverse(),(function(t,n){var o=i(n).data("fancybox");if(o&&o.currenthash)return e=o,!1})),e?e.currenthash===t.gallery+"-"+t.index||1===t.index&&e.currenthash==t.gallery||(e.currenthash=null,e.close()):""!==t.gallery&&o(t)})),settimeout((function(){i.fancybox.getinstance()||o(n())}),50))}))}(window,document,t),function(t,e){"use strict";var i=(new date).gettime();e(t).on({"oninit.fb":function(t,e,n){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",(function(t){var n=e.current,o=(new date).gettime();e.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(t.preventdefault(),t.stoppropagation(),n.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,o-i<250||(i=o,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,t)}).call(this,i(12))},205:function(t,e,i){(function(t){!function(t,e,i,n){"use strict";function o(t,e){var n,o,s,r=[],a=0;t&&t.isdefaultprevented()||(t.preventdefault(),e=e||{},t&&t.data&&(e=p(t.data.options,e)),n=e.$target||i(t.currenttarget).trigger("blur"),(s=i.fancybox.getinstance())&&s.$trigger&&s.$trigger.is(n)||(e.selector?r=i(e.selector):(o=n.attr("data-fancybox")||"")?r=(r=t.data?t.data.items:[]).length?r.filter('[data-fancybox="'+o+'"]'):i('[data-fancybox="'+o+'"]'):r=[n],(a=i(r).index(n))<0&&(a=0),(s=i.fancybox.open(r,e,a)).$trigger=n))}if(t.console=t.console||{info:function(t){}},i){if(i.fn.fancybox)return void console.info("fancybox already initialized");var s={closeexisting:!1,loop:!1,gutter:50,keyboard:!0,preventcaptionoverlap:!0,arrows:!0,infobar:!0,smallbtn:"auto",toolbar:"auto",buttons:["zoom","slideshow","thumbs","close"],idletime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autostart:!0},defaulttype:"image",animationeffect:"zoom",animationduration:366,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'',errortpl:'',btntpl:{download:'',zoom:'',close:'',arrowleft:'',arrowright:'',smallbtn:''},parentel:"body",hidescrollbar:!0,autofocus:!0,backfocus:!0,trapfocus:!0,fullscreen:{autostart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideshow:{autostart:!1,speed:3e3},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"},wheel:"auto",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"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{preventcaptionoverlap:!1,idletime:!1,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:"schließen",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:"vergrößern"}}},r=i(t),a=i(e),l=0,c=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},d=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},u=function(){var t,i=e.createelement("fakeelement"),n={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in n)if(void 0!==i.style[t])return n[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetheight},p=function(t,e){var n=i.extend(!0,{},t,e);return i.each(e,(function(t,e){i.isarray(e)&&(n[t]=e)})),n},f=function(t){var n,o;return!(!t||t.ownerdocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),n={x:t.getboundingclientrect().left+t.offsetwidth/2,y:t.getboundingclientrect().top+t.offsetheight/2},o=e.elementfrompoint(n.x,n.y)===t,i(".fancybox-container").css("pointer-events",""),o)},g=function(t,e,n){var o=this;o.opts=p({index:n},i.fancybox.defaults),i.isplainobject(e)&&(o.opts=p(o.opts,e)),i.fancybox.ismobile&&(o.opts=p(o.opts,o.opts.mobile)),o.id=o.opts.id||++l,o.currindex=parseint(o.opts.index,10)||0,o.previndex=null,o.prevpos=null,o.currpos=0,o.firstrun=!0,o.group=[],o.slides={},o.addcontent(t),o.group.length&&o.init()};i.extend(g.prototype,{init:function(){var n,o,s=this,r=s.group[s.currindex].opts;r.closeexisting&&i.fancybox.close(!0),i("body").addclass("fancybox-active"),!i.fancybox.getinstance()&&!1!==r.hidescrollbar&&!i.fancybox.ismobile&&e.body.scrollheight>t.innerheight&&(i("head").append('"),i("body").addclass("compensate-for-scrollbar")),o="",i.each(r.buttons,(function(t,e){o+=r.btntpl[e]||""})),n=i(s.translate(s,r.basetpl.replace("{{buttons}}",o).replace("{{arrows}}",r.btntpl.arrowleft+r.btntpl.arrowright))).attr("id","fancybox-container-"+s.id).addclass(r.baseclass).data("fancybox",s).appendto(r.parentel),s.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].foreach((function(t){s.$refs[t]=n.find(".fancybox-"+t)})),s.trigger("oninit"),s.activate(),s.jumpto(s.currindex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return void 0===i[e]?t:i[e]}))},addcontent:function(t){var e,n=this,o=i.makearray(t);i.each(o,(function(t,e){var o,s,r,a,l,c={},d={};i.isplainobject(e)?(c=e,d=e.opts||e):"object"===i.type(e)&&i(e).length?(d=(o=i(e)).data()||{},(d=i.extend(!0,{},d,d.options)).$orig=o,c.src=n.opts.src||d.src||o.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},n.opts,d),i.isarray(d.buttons)&&(c.opts.buttons=d.buttons),i.fancybox.ismobile&&c.opts.mobile&&(c.opts=p(c.opts,c.opts.mobile)),s=c.type||c.opts.type,a=c.src||"",!s&&a&&((r=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",c=i.extend(!0,c,{contenttype:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charat(0)&&(s="inline")),s?c.type=s:n.trigger("objectneedstype",c),c.contenttype||(c.contenttype=i.inarray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallbtn&&(c.opts.smallbtn=i.inarray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallbtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===n.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(e,[n,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&((l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapfocus:!0,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})),n.group.push(c)})),object.keys(n.slides).length&&(n.updatecontrols(),(e=n.thumbs)&&e.isactive&&(e.create(),e.focus()))},addevents:function(){var e=this;e.removeevents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stoppropagation(),t.preventdefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stoppropagation(),t.preventdefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stoppropagation(),t.preventdefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isscaleddown()?"scaletoactual":"scaletofit"]()})),r.on("orientationchange.fb resize.fb",(function(t){t&&t.originalevent&&"resize"===t.originalevent.type?(e.requestid&&d(e.requestid),e.requestid=c((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),settimeout((function(){e.$refs.stage.show(),e.update(t)}),i.fancybox.ismobile?600:250))})),a.on("keydown.fb",(function(t){var n=(i.fancybox?i.fancybox.getinstance():null).current,o=t.keycode||t.which;if(9!=o)return!n.opts.keyboard||t.ctrlkey||t.altkey||t.shiftkey||i(t.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(t.preventdefault(),void e.close(t)):37===o||38===o?(t.preventdefault(),void e.previous()):39===o||40===o?(t.preventdefault(),void e.next()):void e.trigger("afterkeydown",t,o);n.opts.trapfocus&&e.focus(t)})),e.group[e.currindex].opts.idletime&&(e.idlesecondscounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idlesecondscounter=0,e.isidle&&e.showcontrols(),e.isidle=!1})),e.idleinterval=t.setinterval((function(){++e.idlesecondscounter>=e.group[e.currindex].opts.idletime&&!e.isdragging&&(e.isidle=!0,e.idlesecondscounter=0,e.hidecontrols())}),1e3))},removeevents:function(){var e=this;r.off("orientationchange.fb resize.fb"),a.off("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){var n,o,s,r,a,l,c,d,u,p=this,f=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)&&(t<0||t>=f))return!1;if(n=p.firstrun=!object.keys(p.slides).length,a=p.current,p.previndex=p.currindex,p.prevpos=p.currpos,r=p.createslide(t),f>1&&((s||r.index0)&&p.createslide(t-1)),p.current=r,p.currindex=r.index,p.currpos=r.pos,p.trigger("beforeshow",n),p.updatecontrols(),r.forcedduration=void 0,i.isnumeric(e)?r.forcedduration=e:e=r.opts[n?"animationduration":"transitionduration"],e=parseint(e,10),o=p.ismoved(r),r.$slide.addclass("fancybox-slide--current"),n)return r.opts.animationeffect&&e&&p.$refs.container.css("transition-duration",e+"ms"),p.$refs.container.addclass("fancybox-is-open").trigger("focus"),p.loadslide(r),void p.preload("image");l=i.fancybox.gettranslate(a.$slide),c=i.fancybox.gettranslate(p.$refs.stage),i.each(p.slides,(function(t,e){i.fancybox.stop(e.$slide,!0)})),a.pos!==r.pos&&(a.iscomplete=!1),a.$slide.removeclass("fancybox-slide--complete fancybox-slide--current"),o?(u=l.left-(a.pos*l.width+a.pos*a.opts.gutter),i.each(p.slides,(function(t,n){n.$slide.removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")}));var o=n.pos*l.width+n.pos*n.opts.gutter;i.fancybox.settranslate(n.$slide,{top:0,left:o-c.left+u}),n.pos!==r.pos&&n.$slide.addclass("fancybox-slide--"+(n.pos>r.pos?"next":"previous")),h(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-r.pos)*l.width+(n.pos-r.pos)*n.opts.gutter},e,(function(){n.$slide.css({transform:"",opacity:""}).removeclass("fancybox-slide--next fancybox-slide--previous"),n.pos===p.currpos&&p.complete()}))}))):e&&r.opts.transitioneffect&&(d="fancybox-animated fancybox-fx-"+r.opts.transitioneffect,a.$slide.addclass("fancybox-slide--"+(a.pos>r.pos?"next":"previous")),i.fancybox.animate(a.$slide,d,e,(function(){a.$slide.removeclass(d).removeclass("fancybox-slide--next fancybox-slide--previous")}),!1)),r.isloaded?p.revealcontent(r):p.loadslide(r),p.preload("image")}},createslide:function(t){var e,n,o=this;return n=(n=t%o.group.length)<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=i('').appendto(o.$refs.stage),o.slides[t]=i.extend(!0,{},o.group[n],{pos:t,$slide:e,isloaded:!1}),o.updateslide(o.slides[t])),o.slides[t]},scaletoactual:function(t,e,n){var o,s,r,a,l,c=this,d=c.current,u=d.$content,h=i.fancybox.gettranslate(d.$slide).width,p=i.fancybox.gettranslate(d.$slide).height,f=d.width,g=d.height;c.isanimating||c.ismoved()||!u||"image"!=d.type||!d.isloaded||d.haserror||(c.isanimating=!0,i.fancybox.stop(u),t=void 0===t?.5*h:t,e=void 0===e?.5*p:e,(o=i.fancybox.gettranslate(u)).top-=i.fancybox.gettranslate(d.$slide).top,o.left-=i.fancybox.gettranslate(d.$slide).left,a=f/o.width,l=g/o.height,s=.5*h-.5*f,r=.5*p-.5*g,f>h&&((s=o.left*a-(t*a-t))>0&&(s=0),sp&&((r=o.top*l-(e*l-e))>0&&(r=0),re-.5&&(l=e),(c*=o)>n-.5&&(c=n),"image"===t.type?(d.top=math.floor(.5*(n-c))+parsefloat(a.css("paddingtop")),d.left=math.floor(.5*(e-l))+parsefloat(a.css("paddingleft"))):"video"===t.contenttype&&(c>l/(s=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/s:l>c*s&&(l=c*s)),d.width=l,d.height=c,d)},update:function(t){var e=this;i.each(e.slides,(function(i,n){e.updateslide(n,t)}))},updateslide:function(t,e){var n=this,o=t&&t.$content,s=t.width||t.opts.width,r=t.height||t.opts.height,a=t.$slide;n.adjustcaption(t),o&&(s||r||"video"===t.contenttype)&&!t.haserror&&(i.fancybox.stop(o),i.fancybox.settranslate(o,n.getfitpos(t)),t.pos===n.currpos&&(n.isanimating=!1,n.updatecursor())),n.adjustlayout(t),a.length&&(a.trigger("refresh"),t.pos===n.currpos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleclass("compensate-for-scrollbar",a.get(0).scrollheight>a.get(0).clientheight)),n.trigger("onupdate",t,e)},centerslide:function(t){var e=this,n=e.current,o=n.$slide;!e.isclosing&&n&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeclass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===t?0:t,(function(){o.css({transform:"",opacity:""}),n.iscomplete||e.complete()}),!1))},ismoved:function(t){var e,n,o=t||this.current;return!!o&&(n=i.fancybox.gettranslate(this.$refs.stage),e=i.fancybox.gettranslate(o.$slide),!o.$slide.hasclass("fancybox-animated")&&(math.abs(e.top-n.top)>.5||math.abs(e.left-n.left)>.5))},updatecursor:function(t,e){var n,o,s=this,r=s.current,a=s.$refs.container;r&&!s.isclosing&&s.guestures&&(a.removeclass("fancybox-is-zoomable fancybox-can-zoomin fancybox-can-zoomout fancybox-can-swipe fancybox-can-pan"),o=!!(n=s.canpan(t,e))||s.iszoomable(),a.toggleclass("fancybox-is-zoomable",o),i("[data-fancybox-zoom]").prop("disabled",!o),n?a.addclass("fancybox-can-pan"):o&&("zoom"===r.opts.clickcontent||i.isfunction(r.opts.clickcontent)&&"zoom"==r.opts.clickcontent(r))?a.addclass("fancybox-can-zoomin"):r.opts.touch&&(r.opts.touch.vertical||s.group.length>1)&&"video"!==r.contenttype&&a.addclass("fancybox-can-swipe"))},iszoomable:function(){var t,e=this,i=e.current;if(i&&!e.isclosing&&"image"===i.type&&!i.haserror){if(!i.isloaded)return!0;if((t=e.getfitpos(i))&&(i.width>t.width||i.height>t.height))return!0}return!1},isscaleddown:function(t,e){var n=!1,o=this.current,s=o.$content;return void 0!==t&&void 0!==e?n=t1.5||math.abs(o.height-s.height)>1.5)),s},loadslide:function(t){var e,n,o,s=this;if(!t.isloading&&!t.isloaded){if(t.isloading=!0,!1===s.trigger("beforeload",t))return t.isloading=!1,!1;switch(e=t.type,(n=t.$slide).off("refresh").trigger("onreset").addclass(t.opts.slideclass),e){case"image":s.setimage(t);break;case"iframe":s.setiframe(t);break;case"html":s.setcontent(t,t.src||t.content);break;case"video":s.setcontent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoformat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?s.setcontent(t,i(t.src)):s.seterror(t);break;case"ajax":s.showloading(t),o=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&s.setcontent(t,e)},error:function(e,i){e&&"abort"!==i&&s.seterror(t)}})),n.one("onreset",(function(){o.abort()}));break;default:s.seterror(t)}return!0}},setimage:function(t){var n,o=this;settimeout((function(){var e=t.$image;o.isclosing||!t.isloading||e&&e.length&&e[0].complete||t.haserror||o.showloading(t)}),50),o.checksrcset(t),t.$content=i('').addclass("fancybox-is-hidden").appendto(t.$slide.addclass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(n=e.createelement("img")).onerror=function(){i(this).remove(),t.$ghost=null},n.onload=function(){o.afterload(t)},t.$ghost=i(n).addclass("fancybox-image").appendto(t.$content).attr("src",t.thumb)),o.setbigimage(t)},checksrcset:function(e){var i,n,o,s,r=e.opts.srcset||e.opts.image.srcset;if(r){o=t.devicepixelratio||1,s=t.innerwidth*o,(n=r.split(",").map((function(t){var e={};return t.trim().split(/\s+/).foreach((function(t,i){var n=parseint(t.substring(0,t.length-1),10);if(0===i)return e.url=t;n&&(e.value=n,e.postfix=t[t.length-1])})),e}))).sort((function(t,e){return t.value-e.value}));for(var a=0;a=s||"x"===l.postfix&&l.value>=o){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=r)}},setbigimage:function(t){var n=this,o=e.createelement("img"),s=i(o);t.$image=s.one("error",(function(){n.seterror(t)})).one("load",(function(){var e;t.$ghost||(n.resolveimageslidesize(t,this.naturalwidth,this.naturalheight),n.afterload(t)),n.isclosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&r.width()/r.height()>1?"100":math.round(t.width/t.height*100))+"vw"),s.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&settimeout((function(){t.$ghost&&!n.isclosing&&t.$ghost.hide()}),math.min(300,math.max(1e3,t.height/1600))),n.hideloading(t))})).addclass("fancybox-image").attr("src",t.src).appendto(t.$content),(o.complete||"complete"==o.readystate)&&s.naturalwidth&&s.naturalheight?s.trigger("load"):o.error&&s.trigger("error")},resolveimageslidesize:function(t,e,i){var n=parseint(t.opts.width,10),o=parseint(t.opts.height,10);t.width=e,t.height=i,n>0&&(t.width=n,t.height=math.floor(n*i/e)),o>0&&(t.width=math.floor(o*e/i),t.height=o)},setiframe:function(t){var e,n=this,o=t.opts.iframe,s=t.$slide;t.$content=i('').css(o.css).appendto(s),s.addclass("fancybox-slide--"+t.contenttype),t.$iframe=e=i(o.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(o.attr).appendto(t.$content),o.preload?(n.showloading(t),e.on("load.fb error.fb",(function(e){this.isready=1,t.$slide.trigger("refresh"),n.afterload(t)})),s.on("refresh.fb",(function(){var i,n=t.$content,r=o.css.width,a=o.css.height;if(1===e[0].isready){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=math.ceil(math.max(i[0].clientwidth,i.outerwidth(!0)))),n.css("width",r||"").css("max-width",""),void 0===a&&(a=math.ceil(math.max(i[0].clientheight,i.outerheight(!0)))),n.css("height",a||""),s.css("overflow","auto")),n.removeclass("fancybox-is-hidden")}}))):n.afterload(t),e.attr("src",t.src),s.one("onreset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isloaded=!1,t.isrevealed=!1}))},setcontent:function(t,e){var n=this;n.isclosing||(n.hideloading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasownproperty&&t instanceof i}(e)&&e.parent().length?((e.hasclass("fancybox-content")||e.parent().hasclass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onreset"),t.$placeholder=i("").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===i.type(e)&&(e=i("
").append(i.trim(e)).contents()),t.opts.filter&&(e=i("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",(function(){i(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||(i(this).empty(),t.isloaded=!1,t.isrevealed=!1)})),i(e).appendto(t.$slide),i(e).is("video,audio")&&(i(e).addclass("fancybox-video"),i(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(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),n.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=i(e.translate(e,e.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast"))},hideloading:function(t){(t=t||this.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=i(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&&i('
').appendto(t.$content)),e.adjustcaption(t),e.adjustlayout(t),t.pos===e.currpos&&e.updatecursor(),e.revealcontent(t))},adjustcaption:function(t){var e,i=this,n=t||i.current,o=n.opts.caption,s=n.opts.preventcaptionoverlap,r=i.$refs.caption,a=!1;r.toggleclass("fancybox-caption--separate",s),s&&o&&o.length&&(n.pos!==i.currpos?((e=r.clone().appendto(r.parent())).children().eq(0).empty().html(o),a=e.outerheight(!0),e.empty().remove()):i.$caption&&(a=i.$caption.outerheight(!0)),n.$slide.css("padding-bottom",a||""))},adjustlayout:function(t){var e,i,n,o,s=t||this.current;s.isloaded&&!0!==s.opts.disablelayoutfix&&(s.$content.css("margin-bottom",""),s.$content.outerheight()>s.$slide.height()+.5&&(n=s.$slide[0].style["padding-bottom"],o=s.$slide.css("padding-bottom"),parsefloat(o)>0&&(e=s.$slide[0].scrollheight,s.$slide.css("padding-bottom",0),math.abs(e-s.$slide[0].scrollheight)<1&&(i=o),s.$slide.css("padding-bottom",n))),s.$content.css("margin-bottom",i))},revealcontent:function(t){var e,n,o,s,r=this,a=t.$slide,l=!1,c=!1,d=r.ismoved(t),u=t.isrevealed;return t.isrevealed=!0,e=t.opts[r.firstrun?"animationeffect":"transitioneffect"],o=t.opts[r.firstrun?"animationduration":"transitionduration"],o=parseint(void 0===t.forcedduration?o:t.forcedduration,10),!d&&t.pos===r.currpos&&o||(e=!1),"zoom"===e&&(t.pos===r.currpos&&o&&"image"===t.type&&!t.haserror&&(c=r.getthumbpos(t))?l=r.getfitpos(t):e="fade"),"zoom"===e?(r.isanimating=!0,l.scalex=l.width/c.width,l.scaley=l.height/c.height,"auto"==(s=t.opts.zoomopacity)&&(s=math.abs(t.width/t.height-c.width/c.height)>.1),s&&(c.opacity=.1,l.opacity=1),i.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),c),h(t.$content),void i.fancybox.animate(t.$content,l,o,(function(){r.isanimating=!1,r.complete()}))):(r.updateslide(t),e?(i.fancybox.stop(a),n="fancybox-slide--"+(t.pos>=r.prevpos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addclass(n).removeclass("fancybox-slide--current"),t.$content.removeclass("fancybox-is-hidden"),h(a),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(a,"fancybox-slide--current",o,(function(){a.removeclass(n).css({transform:"",opacity:""}),t.pos===r.currpos&&r.complete()}),!0)):(t.$content.removeclass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.haserror||t.$content.hide().fadein("fast"),void(t.pos===r.currpos&&r.complete())))},getthumbpos:function(t){var e,n,o,s,r,a=!1,l=t.$thumb;return!(!l||!f(l[0]))&&(e=i.fancybox.gettranslate(l),n=parsefloat(l.css("border-top-width")||0),o=parsefloat(l.css("border-right-width")||0),s=parsefloat(l.css("border-bottom-width")||0),r=parsefloat(l.css("border-left-width")||0),a={top:e.top+n,left:e.left+r,width:e.width-o-r,height:e.height-n-s,scalex:1,scaley:1},e.width>0&&e.height>0&&a)},complete:function(){var t,e=this,n=e.current,o={};!e.ismoved()&&n.isloaded&&(n.iscomplete||(n.iscomplete=!0,n.$slide.siblings().trigger("onreset"),e.preload("inline"),h(n.$slide),n.$slide.addclass("fancybox-slide--complete"),i.each(e.slides,(function(t,n){n.pos>=e.currpos-1&&n.pos<=e.currpos+1?o[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())})),e.slides=o),e.isanimating=!1,e.updatecursor(),e.trigger("aftershow"),n.opts.video.autostart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){document.exitfullscreen?document.exitfullscreen():this.webkitexitfullscreen&&this.webkitexitfullscreen(),e.next()})),n.opts.autofocus&&"html"===n.contenttype&&((t=n.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),n.$slide.scrolltop(0).scrollleft(0))},preload:function(t){var e,i,n=this;n.group.length<2||(i=n.slides[n.currpos+1],(e=n.slides[n.currpos-1])&&e.type===t&&n.loadslide(e),i&&i.type===t&&n.loadslide(i))},focus:function(t,n){var o,s,r=this,a=["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(",");r.isclosing||((o=(o=!t&&r.current&&r.current.iscomplete?r.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):r.$refs.container.find("*:visible")).filter(a).filter((function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasclass("disabled")}))).length?(s=o.index(e.activeelement),t&&t.shiftkey?(s<0||0==s)&&(t.preventdefault(),o.eq(o.length-1).trigger("focus")):(s<0||s==o.length-1)&&(t&&t.preventdefault(),o.eq(0).trigger("focus"))):r.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each((function(){var e=i(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 n,o,s,r,a,l,d,u=this,p=u.current,f=function(){u.cleanup(t)};return!(u.isclosing||(u.isclosing=!0,!1===u.trigger("beforeclose",t)?(u.isclosing=!1,c((function(){u.update()})),1):(u.removeevents(),s=p.$content,n=p.opts.animationeffect,o=i.isnumeric(e)?e:n?p.opts.animationduration:0,p.$slide.removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(p.$slide):n=!1,p.$slide.siblings().trigger("onreset").remove(),o&&u.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing").css("transition-duration",o+"ms"),u.hideloading(p),u.hidecontrols(!0),u.updatecursor(),"zoom"!==n||s&&o&&"image"===p.type&&!u.ismoved()&&!p.haserror&&(d=u.getthumbpos(p))||(n="fade"),"zoom"===n?(i.fancybox.stop(s),r=i.fancybox.gettranslate(s),l={top:r.top,left:r.left,scalex:r.width/d.width,scaley:r.height/d.height,width:d.width,height:d.height},a=p.opts.zoomopacity,"auto"==a&&(a=math.abs(p.width/p.height-d.width/d.height)>.1),a&&(d.opacity=0),i.fancybox.settranslate(s,l),h(s),i.fancybox.animate(s,d,o,f),0):(n&&o?i.fancybox.animate(p.$slide.addclass("fancybox-slide--previous").removeclass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,o,f):!0===t?settimeout(f,o):f(),0))))},cleanup:function(e){var n,o,s,r=this,a=r.current.opts.$orig;r.current.$slide.trigger("onreset"),r.$refs.container.empty().remove(),r.trigger("afterclose",e),r.current.opts.backfocus&&(a&&a.length&&a.is(":visible")||(a=r.$trigger),a&&a.length&&(o=t.scrollx,s=t.scrolly,a.trigger("focus"),i("html, body").scrolltop(s).scrollleft(o))),r.current=null,(n=i.fancybox.getinstance())?n.activate():(i("body").removeclass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=array.prototype.slice.call(arguments,1),s=this,r=e&&e.opts?e:s.current;if(r?o.unshift(r):r=s,o.unshift(s),i.isfunction(r.opts[t])&&(n=r.opts[t].apply(r,o)),!1===n)return n;"afterclose"!==t&&s.$refs?s.$refs.container.trigger(t+".fb",o):a.trigger(t+".fb",o)},updatecontrols:function(){var t=this,n=t.current,o=n.index,s=t.$refs.container,r=t.$refs.caption,a=n.opts.caption;n.$slide.trigger("refresh"),a&&a.length?(t.$caption=r,r.children().eq(0).html(a)):t.$caption=null,t.hashiddencontrols||t.isidle||t.showcontrols(),s.find("[data-fancybox-count]").html(t.group.length),s.find("[data-fancybox-index]").html(o+1),s.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&o<=0),s.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&o>=t.group.length-1),"image"===n.type?s.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&s.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeelement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hidecontrols:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventcaptionoverlap||e.push("caption"),this.$refs.container.removeclass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hashiddencontrols=!0},showcontrols:function(){var t=this,e=t.current?t.current.opts:t.opts,i=t.$refs.container;t.hashiddencontrols=!1,t.idlesecondscounter=0,i.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()}}),i.fancybox={version:"3.5.7",defaults:s,getinstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"),n=array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new g(t,e,i)},close:function(t){var e=this.getinstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:function(){var i=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(i)&&t.getcomputedstyle(i).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)}(),gettranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getboundingclientrect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))}},settranslate:function(t,e){var i="",n={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scalex&&void 0!==e.scaley?i+=" scale("+e.scalex+", "+e.scaley+")":void 0!==e.scalex&&(i+=" scalex("+e.scalex+")"),i.length&&(n.transform=i),void 0!==e.opacity&&(n.opacity=e.opacity),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),t.css(n)},animate:function(t,e,n,o,s){var r,a=this;i.isfunction(n)&&(o=n,n=null),a.stop(t),r=a.gettranslate(t),t.on(u,(function(l){(!l||!l.originalevent||t.is(l.originalevent.target)&&"z-index"!=l.originalevent.propertyname)&&(a.stop(t),i.isnumeric(n)&&t.css("transition-duration",""),i.isplainobject(e)?void 0!==e.scalex&&void 0!==e.scaley&&a.settranslate(t,{top:e.top,left:e.left,width:r.width*e.scalex,height:r.height*e.scaley,scalex:1,scaley:1}):!0!==s&&t.removeclass(e),i.isfunction(o)&&o(l))})),i.isnumeric(n)&&t.css("transition-duration",n+"ms"),i.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")),i.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout((function(){t.trigger(u)}),n+33))},stop:function(t,e){t&&t.length&&(cleartimeout(t.data("timer")),e&&t.trigger(u),t.off(u).css("transition-duration",""),t.parent().removeclass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",(function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})})),function(){var t=null;a.on("mousedown mouseup focus blur",".fancybox-button",(function(e){switch(e.type){case"mousedown":t=i(this);break;case"mouseup":t=null;break;case"focusin":i(".fancybox-button").removeclass("fancybox-focus"),i(this).is(t)||i(this).is("[disabled]")||i(this).addclass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeclass("fancybox-focus")}}))}()}}(window,document,t),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"}}},i=function(e,i,n){if(e)return n=n||"","object"===t.type(n)&&(n=t.param(n,!0)),t.each(i,(function(t,i){e=e.replace("$"+t,i||"")})),n.length&&(e+=(e.indexof("?")>0?"&":"?")+n),e};t(document).on("objectneedstype.fb",(function(n,o,s){var r,a,l,c,d,u,h,p=s.src||"",f=!1;r=t.extend(!0,{},e,s.opts.media),t.each(r,(function(e,n){if(l=p.match(n.matcher)){if(f=n.type,h=e,u={},n.paramplace&&l[n.paramplace]){"?"==(d=l[n.paramplace])[0]&&(d=d.substring(1)),d=d.split("&");for(var o=0;o
1&&("youtube"===i.contentsource||"vimeo"===i.contentsource)&&n.load(i.contentsource)}})}(t),function(t,e,i){"use strict";var n=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},o=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},s=function(e){var i=[];for(var n in e=(e=e.originalevent||e||t.e).touches&&e.touches.length?e.touches:e.changedtouches&&e.changedtouches.length?e.changedtouches:[e])e[n].pagex?i.push({x:e[n].pagex,y:e[n].pagey}):e[n].clientx&&i.push({x:e[n].clientx,y:e[n].clienty});return i},r=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:math.sqrt(math.pow(t.x-e.x,2)+math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isfunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;ee.clientheight,s=("scroll"===n||"auto"===n)&&e.scrollwidth>e.clientwidth;return o||s},c=function(t){for(var e=!1;!(e=l(t.get(0)))&&((t=t.parent()).length&&!t.hasclass("fancybox-stage")&&!t.is("body")););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",i.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),i(e).off(".fb.touch"),t.requestid&&(o(t.requestid),t.requestid=null),t.tapped&&(cleartimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(n){var o=this,l=i(n.target),d=o.instance,u=d.current,h=u.$slide,p=u.$content,f="touchstart"==n.type;if(f&&o.$container.off("mousedown.fb.touch"),(!n.originalevent||2!=n.originalevent.button)&&h.length&&l.length&&!a(l)&&!a(l.parent())&&(l.is("img")||!(n.originalevent.clientx>l[0].clientwidth+l.offset().left))){if(!u||d.isanimating||u.$slide.hasclass("fancybox-animated"))return n.stoppropagation(),void n.preventdefault();o.realpoints=o.startpoints=s(n),o.startpoints.length&&(u.touch&&n.stoppropagation(),o.startevent=n,o.cantap=!0,o.$target=l,o.$content=p,o.opts=u.opts.touch,o.ispanning=!1,o.isswiping=!1,o.iszooming=!1,o.isscrolling=!1,o.canpan=d.canpan(),o.starttime=(new date).gettime(),o.distancex=o.distancey=o.distance=0,o.canvaswidth=math.round(h[0].clientwidth),o.canvasheight=math.round(h[0].clientheight),o.contentlastpos=null,o.contentstartpos=i.fancybox.gettranslate(o.$content)||{top:0,left:0},o.sliderstartpos=i.fancybox.gettranslate(h),o.stagepos=i.fancybox.gettranslate(d.$refs.stage),o.sliderstartpos.top-=o.stagepos.top,o.sliderstartpos.left-=o.stagepos.left,o.contentstartpos.top-=o.stagepos.top,o.contentstartpos.left-=o.stagepos.left,i(e).off(".fb.touch").on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(o,"ontouchend")).on(f?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(o,"ontouchmove")),i.fancybox.ismobile&&e.addeventlistener("scroll",o.onscroll,!0),((o.opts||o.canpan)&&(l.is(o.$stage)||o.$stage.find(l).length)||(l.is(".fancybox-image")&&n.preventdefault(),i.fancybox.ismobile&&l.parents(".fancybox-caption").length))&&(o.isscrollable=c(l)||c(l.parent()),i.fancybox.ismobile&&o.isscrollable||n.preventdefault(),(1===o.startpoints.length||u.haserror)&&(o.canpan?(i.fancybox.stop(o.$content),o.ispanning=!0):o.isswiping=!0,o.$container.addclass("fancybox-is-grabbing")),2===o.startpoints.length&&"image"===u.type&&(u.isloaded||u.$ghost)&&(o.cantap=!1,o.isswiping=!1,o.ispanning=!1,o.iszooming=!0,i.fancybox.stop(o.$content),o.centerpointstartx=.5*(o.startpoints[0].x+o.startpoints[1].x)-i(t).scrollleft(),o.centerpointstarty=.5*(o.startpoints[0].y+o.startpoints[1].y)-i(t).scrolltop(),o.percentageofimageatpinchpointx=(o.centerpointstartx-o.contentstartpos.left)/o.contentstartpos.width,o.percentageofimageatpinchpointy=(o.centerpointstarty-o.contentstartpos.top)/o.contentstartpos.height,o.startdistancebetweenfingers=r(o.startpoints[0],o.startpoints[1]))))}},d.prototype.onscroll=function(t){this.isscrolling=!0,e.removeeventlistener("scroll",this.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=s(t),void((e.opts||e.canpan)&&e.newpoints.length&&e.newpoints.length&&(e.isswiping&&!0===e.isswiping||t.preventdefault(),e.distancex=r(e.newpoints[0],e.startpoints[0],"x"),e.distancey=r(e.newpoints[0],e.startpoints[0],"y"),e.distance=r(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 s,r=this,a=r.instance,l=r.isswiping,c=r.sliderstartpos.left||0;if(!0!==l)"x"==l&&(r.distancex>0&&(r.instance.group.length<2||0===r.instance.current.index&&!r.instance.current.opts.loop)?c+=math.pow(r.distancex,.8):r.distancex<0&&(r.instance.group.length<2||r.instance.current.index===r.instance.group.length-1&&!r.instance.current.opts.loop)?c-=math.pow(-r.distancex,.8):c+=r.distancex),r.sliderlastpos={top:"x"==l?0:r.sliderstartpos.top+r.distancey,left:c},r.requestid&&(o(r.requestid),r.requestid=null),r.requestid=n((function(){r.sliderlastpos&&(i.each(r.instance.slides,(function(t,e){var n=e.pos-r.instance.currpos;i.fancybox.settranslate(e.$slide,{top:r.sliderlastpos.top,left:r.sliderlastpos.left+n*r.canvaswidth+n*e.opts.gutter})})),r.$container.addclass("fancybox-is-sliding"))}));else if(math.abs(r.distance)>10){if(r.cantap=!1,a.group.length<2&&r.opts.vertical?r.isswiping="y":a.isdragging||!1===r.opts.vertical||"auto"===r.opts.vertical&&i(t).width()>800?r.isswiping="x":(s=math.abs(180*math.atan2(r.distancey,r.distancex)/math.pi),r.isswiping=s>45&&s<135?"y":"x"),"y"===r.isswiping&&i.fancybox.ismobile&&r.isscrollable)return void(r.isscrolling=!0);a.isdragging=r.isswiping,r.startpoints=r.newpoints,i.each(a.slides,(function(t,e){var n,o;i.fancybox.stop(e.$slide),n=i.fancybox.gettranslate(e.$slide),o=i.fancybox.gettranslate(a.$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===a.current.pos&&(r.sliderstartpos.top=n.top-o.top,r.sliderstartpos.left=n.left-o.left),i.fancybox.settranslate(e.$slide,{top:n.top-o.top,left:n.left-o.left})})),a.slideshow&&a.slideshow.isactive&&a.slideshow.stop()}},d.prototype.onpan=function(){var t=this;r(t.newpoints[0],t.realpoints[0])<(i.fancybox.ismobile?10:5)?t.startpoints=t.newpoints:(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&o(t.requestid),t.requestid=n((function(){i.fancybox.settranslate(t.$content,t.contentlastpos)})))},d.prototype.limitmovement=function(){var t,e,i,n,o,s,r=this,a=r.canvaswidth,l=r.canvasheight,c=r.distancex,d=r.distancey,u=r.contentstartpos,h=u.left,p=u.top,f=u.width,g=u.height;return o=f>a?h+c:h,s=p+d,t=math.max(0,.5*a-.5*f),e=math.max(0,.5*l-.5*g),i=math.min(a-f,.5*a-.5*f),n=math.min(l-g,.5*l-.5*g),c>0&&o>t&&(o=t-1+math.pow(-t+h+c,.8)||0),c<0&&o0&&s>e&&(s=e-1+math.pow(-e+p+d,.8)||0),d<0&&so?t=(t=t>0?0:t)s?e=(e=e>0?0:e)1&&(n.dms>130&&r>10||r>50);n.sliderlastpos=null,"y"==t&&!e&&math.abs(n.distancey)>50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderstartpos.top+n.distancey+150*n.velocityy,opacity:0},200),o=n.instance.close(!0,250)):a&&n.distancex>0?o=n.instance.previous(300):a&&n.distancex<0&&(o=n.instance.next(300)),!1!==o||"x"!=t&&"y"!=t||n.instance.centerslide(200),n.$container.removeclass("fancybox-is-sliding")},d.prototype.endpanning=function(){var t,e,n,o=this;o.contentlastpos&&(!1===o.opts.momentum||o.dms>350?(t=o.contentlastpos.left,e=o.contentlastpos.top):(t=o.contentlastpos.left+500*o.velocityx,e=o.contentlastpos.top+500*o.velocityy),(n=o.limitposition(t,e,o.contentstartpos.width,o.contentstartpos.height)).width=o.contentstartpos.width,n.height=o.contentstartpos.height,i.fancybox.animate(o.$content,n,366))},d.prototype.endzooming=function(){var t,e,n,o,s=this,r=s.instance.current,a=s.newwidth,l=s.newheight;s.contentlastpos&&(t=s.contentlastpos.left,o={top:e=s.contentlastpos.top,left:t,width:a,height:l,scalex:1,scaley:1},i.fancybox.settranslate(s.$content,o),ar.width||l>r.height?s.instance.scaletoactual(s.centerpointstartx,s.centerpointstarty,150):(n=s.limitposition(t,e,a,l),i.fancybox.animate(s.$content,n,150)))},d.prototype.ontap=function(e){var n,o=this,r=i(e.target),a=o.instance,l=a.current,c=e&&s(e)||o.startpoints,d=c[0]?c[0].x-i(t).scrollleft()-o.stagepos.left:0,u=c[0]?c[0].y-i(t).scrolltop()-o.stagepos.top:0,h=function(t){var n=l.opts[t];if(i.isfunction(n)&&(n=n.apply(a,[l,e])),n)switch(n){case"close":a.close(o.startevent);break;case"togglecontrols":a.togglecontrols();break;case"next":a.next();break;case"nextorclose":a.group.length>1?a.next():a.close(o.startevent);break;case"zoom":"image"==l.type&&(l.isloaded||l.$ghost)&&(a.canpan()?a.scaletofit():a.isscaleddown()?a.scaletoactual(d,u):a.group.length<2&&a.close(o.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(r.is("img")||!(d>r[0].clientwidth+r.offset().left))){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="outside";else if(r.is(".fancybox-slide"))n="slide";else{if(!a.current.$content||!a.current.$content.find(r).addback().filter(r).length)return;n="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(d-o.tapx)>50||math.abs(u-o.tapy)>50)return this;h("dblclick"+n)}else o.tapx=d,o.tapy=u,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?o.tapped=settimeout((function(){o.tapped=null,a.isanimating||h("click"+n)}),500):h("click"+n);return this}},i(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,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this,i=t.instance,n=i.group[i.currindex].opts.slideshow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),i.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=e('').appendto(i.$refs.inner))},set:function(t){var i=this,n=i.instance,o=n.current;o&&(!0===t||o.opts.loop||n.currindex'},fullscreen:{autostart:!1}}),e(t).on(i.fullscreenchange,(function(){var t=n.isfullscreen(),i=e.fancybox.getinstance();i&&(i.current&&"image"===i.current.type&&i.isanimating&&(i.isanimating=!1,i.update(!0,!0,0),i.iscomplete||i.complete()),i.trigger("onfullscreenchange",t),i.$refs.container.toggleclass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleclass("fancybox-button--fsenter",!t).toggleclass("fancybox-button--fsexit",t))}))}e(t).on({"oninit.fb":function(t,e){i?e&&e.group[e.currindex].opts.fullscreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stoppropagation(),t.preventdefault(),n.toggle()})),e.opts.fullscreen&&!0===e.opts.fullscreen.autostart&&n.request(),e.fullscreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterkeydown.fb":function(t,e,i,n,o){e&&e.fullscreen&&70===o&&(n.preventdefault(),e.fullscreen.toggle())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&n.exit()}})}(document,t),function(t,e){"use strict";var i="fancybox-thumbs";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,i=t.group,n=0;e.instance=t,e.opts=i[t.currindex].opts.thumbs,t.thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,s=i.length;o1));o++);n>1&&e.opts?(e.$button.removeattr("style").on("click",(function(){e.toggle()})),e.isactive=!0):e.$button.hide()},create:function(){var t,n=this,o=n.instance,s=n.opts.parentel,r=[];n.$grid||(n.$grid=e('').appendto(o.$refs.container.find(s).addback().filter(s)),n.$grid.on("click","a",(function(){o.jumpto(e(this).attr("data-index"))}))),n.$list||(n.$list=e('').appendto(n.$grid)),e.each(o.group,(function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),r.push('
")})),n.$list[0].innerhtml=r.join(""),"x"===n.opts.axis&&n.$list.width(parseint(n.$grid.css("padding-right"),10)+o.group.length*n.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,i,n=this,o=n.$list,s=n.$grid;n.instance.current&&(i=(e=o.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+n.instance.current.index+'"]').addclass("fancybox-thumbs-active")).position(),"y"===n.opts.axis&&(i.top<0||i.top>o.height()-e.outerheight())?o.stop().animate({scrolltop:o.scrolltop()+i.top},t):"x"===n.opts.axis&&(i.left
s.scrollleft()+(s.width()-e.outerwidth()))&&o.parent().stop().animate({scrollleft:i.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 i;e&&!e.thumbs&&((i=new n(e)).isactive&&!0===i.opts.autostart&&i.show())},"beforeshow.fb":function(t,e,i,n){var o=e&&e.thumbs;o&&o.isvisible&&o.focus(n?0:250)},"afterkeydown.fb":function(t,e,i,n,o){var s=e&&e.thumbs;s&&s.isactive&&71===o&&(n.preventdefault(),s.toggle())},"beforeclose.fb":function(t,e){var i=e&&e.thumbs;i&&i.isvisible&&!1!==i.opts.hideonclose&&i.$grid.hide()}})}(document,t),function(t,e){"use strict";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,i,n=e.fancybox.getinstance(),o=n.current||null;o&&("function"===e.type(o.opts.share.url)&&(t=o.opts.share.url.apply(o,[n,o])),i=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeuricomponent(o.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return string(t).replace(/[&<>"'`=\/]/g,(function(t){return e[t]}))}(t)).replace(/\{\{descr\}\}/g,n.$caption?encodeuricomponent(n.$caption.text()):""),e.fancybox.open({src:n.translate(n,i),type:"html",opts:{touch:!1,animationeffect:!1,afterload:function(t,e){n.$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,t),function(t,e,i){"use strict";function n(){var e=t.location.hash.substr(1),i=e.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseint(i.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:i.join("-")}}function o(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeselector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function s(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}i.escapeselector||(i.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}))}),i((function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"oninit.fb":function(t,e){var i,o;!1!==e.group[e.currindex].opts.hash&&(i=n(),(o=s(e))&&i.gallery&&o==i.gallery&&(e.currindex=i.index-1))},"beforeshow.fb":function(i,n,o,r){var a;o&&!1!==o.opts.hash&&(a=s(n))&&(n.currenthash=a+(n.group.length>1?"-"+(o.index+1):""),t.location.hash!=="#"+n.currenthash&&(r&&!n.orighash&&(n.orighash=t.location.hash),n.hashtimer&&cleartimeout(n.hashtimer),n.hashtimer=settimeout((function(){"replacestate"in t.history?(t.history[r?"pushstate":"replacestate"]({},e.title,t.location.pathname+t.location.search+"#"+n.currenthash),r&&(n.hascreatedhistory=!0)):t.location.hash=n.currenthash,n.hashtimer=null}),300)))},"beforeclose.fb":function(i,n,o){o&&!1!==o.opts.hash&&(cleartimeout(n.hashtimer),n.currenthash&&n.hascreatedhistory?t.history.back():n.currenthash&&("replacestate"in t.history?t.history.replacestate({},e.title,t.location.pathname+t.location.search+(n.orighash||"")):t.location.hash=n.orighash),n.currenthash=null)}}),i(t).on("hashchange.fb",(function(){var t=n(),e=null;i.each(i(".fancybox-container").get().reverse(),(function(t,n){var o=i(n).data("fancybox");if(o&&o.currenthash)return e=o,!1})),e?e.currenthash===t.gallery+"-"+t.index||1===t.index&&e.currenthash==t.gallery||(e.currenthash=null,e.close()):""!==t.gallery&&o(t)})),settimeout((function(){i.fancybox.getinstance()||o(n())}),50))}))}(window,document,t),function(t,e){"use strict";var i=(new date).gettime();e(t).on({"oninit.fb":function(t,e,n){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",(function(t){var n=e.current,o=(new date).gettime();e.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(t.preventdefault(),t.stoppropagation(),n.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,o-i<250||(i=o,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,t)}).call(this,i(12))},25:function(t,e,i){},45:function(t,e,i){"use strict";var n="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},o=window.device,s={},r=[];window.device=s;var a=window.document.documentelement,l=window.navigator.useragent.tolowercase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function d(t,e){return-1!==t.indexof(e)}function u(t){return d(l,t)}function h(t){return a.classname.match(new regexp(t,"i"))}function p(t){var e=null;h(t)||(e=a.classname.replace(/^\s+|\s+$/g,""),a.classname=e+" "+t)}function f(t){h(t)&&(a.classname=a.classname.replace(" "+t,""))}function g(){s.landscape()?(f("portrait"),p("landscape"),m("landscape")):(f("landscape"),p("portrait"),m("portrait")),y()}function m(t){for(var e in r)r[e](t)}s.macos=function(){return u("mac")},s.ios=function(){return s.iphone()||s.ipod()||s.ipad()},s.iphone=function(){return!s.windows()&&u("iphone")},s.ipod=function(){return u("ipod")},s.ipad=function(){return u("ipad")},s.android=function(){return!s.windows()&&u("android")},s.androidphone=function(){return s.android()&&u("mobile")},s.androidtablet=function(){return s.android()&&!u("mobile")},s.blackberry=function(){return u("blackberry")||u("bb10")||u("rim")},s.blackberryphone=function(){return s.blackberry()&&!u("tablet")},s.blackberrytablet=function(){return s.blackberry()&&u("tablet")},s.windows=function(){return u("windows")},s.windowsphone=function(){return s.windows()&&u("phone")},s.windowstablet=function(){return s.windows()&&u("touch")&&!s.windowsphone()},s.fxos=function(){return(u("(mobile")||u("(tablet"))&&u(" rv:")},s.fxosphone=function(){return s.fxos()&&u("mobile")},s.fxostablet=function(){return s.fxos()&&u("tablet")},s.meego=function(){return u("meego")},s.cordova=function(){return window.cordova&&"file:"===location.protocol},s.nodewebkit=function(){return"object"===n(window.process)},s.mobile=function(){return s.androidphone()||s.iphone()||s.ipod()||s.windowsphone()||s.blackberryphone()||s.fxosphone()||s.meego()},s.tablet=function(){return s.ipad()||s.androidtablet()||s.blackberrytablet()||s.windowstablet()||s.fxostablet()},s.desktop=function(){return!s.tablet()&&!s.mobile()},s.television=function(){for(var t=0;t1},s.landscape=function(){return screen.orientation&&object.prototype.hasownproperty.call(window,"onorientationchange")?d(screen.orientation.type,"landscape"):s.ios()&&object.prototype.hasownproperty.call(window,"orientation")?90===math.abs(window.orientation):window.innerheight/window.innerwidth<1},s.noconflict=function(){return window.device=o,this},s.ios()?s.ipad()?p("ios ipad tablet"):s.iphone()?p("ios iphone mobile"):s.ipod()&&p("ios ipod mobile"):s.macos()?p("macos desktop"):s.android()?s.androidtablet()?p("android tablet"):p("android mobile"):s.blackberry()?s.blackberrytablet()?p("blackberry tablet"):p("blackberry mobile"):s.windows()?s.windowstablet()?p("windows tablet"):s.windowsphone()?p("windows mobile"):p("windows desktop"):s.fxos()?s.fxostablet()?p("fxos tablet"):p("fxos mobile"):s.meego()?p("meego mobile"):s.nodewebkit()?p("node-webkit"):s.television()?p("television"):s.desktop()&&p("desktop"),s.cordova()&&p("cordova"),s.onchangeorientation=function(t){"function"==typeof t&&r.push(t)};var v="resize";function b(t){for(var e=0;e=c?t?"":void 0:(s=a.charcodeat(l))<55296||s>56319||l+1===c||(r=a.charcodeat(l+1))<56320||r>57343?t?a.charat(l):s:t?a.slice(l,l+2):r-56320+(s-55296<<10)+65536}}},"0390":function(t,e,i){"use strict";var n=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"07e3":function(t,e){var i={}.hasownproperty;t.exports=function(t,e){return i.call(t,e)}},"0a90":function(t,e,i){var n=i("63b6"),o=i("10ff");n(n.g+n.f*(parsefloat!=o),{parsefloat:o})},"0bfb":function(t,e,i){"use strict";var n=i("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignorecase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"10ff":function(t,e,i){var n=i("e53d").parsefloat,o=i("a1ce").trim;t.exports=1/n(i("e692")+"-0")!=-1/0?function(t){var e=o(string(t),3),i=n(e);return 0===i&&"-"==e.charat(0)?-0:i}:n},"1bc3":function(t,e,i){var n=i("f772");t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.tostring)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueof)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.tostring)&&!n(o=i.call(t)))return o;throw typeerror("can't convert object to primitive value")}},"1ec9":function(t,e,i){var n=i("f772"),o=i("e53d").document,s=n(o)&&n(o.createelement);t.exports=function(t){return s?o.createelement(t):{}}},"214f":function(t,e,i){"use strict";i("b0c5");var n=i("2aba"),o=i("32e9"),s=i("79e5"),r=i("be13"),a=i("2b4c"),l=i("520a"),c=a("species"),d=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),u=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var h=a(t),p=!s((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=p?!s((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[c]=function(){return i}),i[h](""),!e})):void 0;if(!p||!f||"replace"===t&&!d||"split"===t&&!u){var g=/./[h],m=i(r,h,""[t],(function(t,e,i,n,o){return e.exec===l?p&&!o?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=m[0],b=m[1];n(string.prototype,t,v),o(regexp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,i){var n=i("d3f4"),o=i("7726").document,s=n(o)&&n(o.createelement);t.exports=function(t){return s?o.createelement(t):{}}},"23c6":function(t,e,i){var n=i("2d95"),o=i("2b4c")("tostringtag"),s="arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,r;return void 0===t?"undefined":null===t?"null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=object(t),o))?i:s?n(e):"object"==(r=n(e))&&"function"==typeof e.callee?"arguments":r}},"25eb":function(t,e){t.exports=function(t){if(null==t)throw typeerror("can't call method on "+t);return t}},"28a5":function(t,e,i){"use strict";var n=i("aae3"),o=i("cb7c"),s=i("ebd6"),r=i("0390"),a=i("9def"),l=i("5f1b"),c=i("520a"),d=i("79e5"),u=math.min,h=[].push,p="split",f="length",g="lastindex",m=4294967295,v=!d((function(){regexp(m,"y")}));i("214f")("split",2,(function(t,e,i,d){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[f]||2!="ab"[p](/(?:ab)*/)[f]||4!="."[p](/(.?)(.?)/)[f]||"."[p](/()()/)[f]>1||""[p](/.?/)[f]?function(t,e){var o=string(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(o,t,e);for(var s,r,a,l=[],d=(t.ignorecase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,p=void 0===e?m:e>>>0,v=new regexp(t.source,d+"g");(s=c.call(v,o))&&!((r=v[g])>u&&(l.push(o.slice(u,s.index)),s[f]>1&&s.index=p));)v[g]===s.index&&v[g]++;return u===o[f]?!a&&v.test("")||l.push(""):l.push(o.slice(u)),l[f]>p?l.slice(0,p):l}:"0"[p](void 0,0)[f]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):b.call(string(o),i,n)},function(t,e){var n=d(b,t,this,e,b!==i);if(n.done)return n.value;var c=o(t),h=string(this),p=s(c,regexp),f=c.unicode,g=(c.ignorecase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new p(v?c:"^(?:"+c.source+")",g),w=void 0===e?m:e>>>0;if(0===w)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var x=0,_=0,t=[];_0?n:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"520a":function(t,e,i){"use strict";var n=i("0bfb"),o=regexp.prototype.exec,s=string.prototype.replace,r=o,a="lastindex",l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(r=function(t){var e,i,r,d,u=this;return c&&(i=new regexp("^"+u.source+"$(?!\\s)",n.call(u))),l&&(e=u[a]),r=o.call(u,t),l&&r&&(u[a]=u.global?r.index+r[0].length:e),c&&r&&r.length>1&&s.call(r[0],i,(function(){for(d=1;d0?o(n(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=object.defineproperty({},"a",{get:function(){return 7}}).a}))},a1ce:function(t,e,i){var n=i("63b6"),o=i("25eb"),s=i("294c"),r=i("e692"),a="["+r+"]",l=regexp("^"+a+a+"*"),c=regexp(a+a+"*$"),d=function(t,e,i){var o={},a=s((function(){return!!r[t]()||"
"!="
"[t]()})),l=o[t]=a?e(u):r[t];i&&(o[i]=l),n(n.p+n.f*a,"string",o)},u=d.trim=function(t,e){return t=string(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=d},aae3:function(t,e,i){var n=i("d3f4"),o=i("2d95"),s=i("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"regexp"==o(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,i){"use strict";var n=i("520a");i("5ca1")({target:"regexp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(null==t)throw typeerror("can't call method on "+t);return t}},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=object.defineproperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var i=0,n=math.random();t.exports=function(t){return"symbol(".concat(void 0===t?"":t,")_",(++i+n).tostring(36))}},cb7c:function(t,e,i){var n=i("d3f4");t.exports=function(t){if(!n(t))throw typeerror(t+" is not an object!");return t}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,i){var n=i("79aa");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw typeerror(t+" is not a function!");return t}},d9f6:function(t,e,i){var n=i("e4ae"),o=i("794b"),s=i("1bc3"),r=object.defineproperty;e.f=i("8e60")?object.defineproperty:function(t,e,i){if(n(t),e=s(e,!0),n(i),o)try{return r(t,e,i)}catch(t){}if("get"in i||"set"in i)throw typeerror("accessors not supported!");return"value"in i&&(t[e]=i.value),t}},e4ae:function(t,e,i){var n=i("f772");t.exports=function(t){if(!n(t))throw typeerror(t+" is not an object!");return t}},e53d:function(t,e){var i=t.exports="undefined"!=typeof window&&window.math==math?window:"undefined"!=typeof self&&self.math==math?self:function("return this")();"number"==typeof __g&&(__g=i)},e692:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},ebd6:function(t,e,i){var n=i("cb7c"),o=i("d8e8"),s=i("2b4c")("species");t.exports=function(t,e){var i,r=n(t).constructor;return void 0===r||null==(i=n(r)[s])?e:o(i)}},f1de:function(t,e,i){t.exports=function(){"use strict";var t="undefined"==typeof document?{body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{useragent:""},location:{},history:{},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){}}:window,i=function(t){for(var e=0;e")){var d="div";for(0===c.indexof(":~]/)?(o||t).queryselectorall(n.trim()):[t.getelementbyid(n.trim().split("#")[1])],r=0;r0&&e-1 in t)}t.fn=t.prototype={jquery:"3.4.1",constructor:t,length:0,toarray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushstack:function(t){var e=t.merge(this.constructor(),t);return e.prevobject=this,e},each:function(t){return t.each(this,t)},map:function(t){return this.pushstack(t.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushstack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushstack(i>=0&&i+~]|"+f+")"+f+"*"),y=new regexp(f+"|>"),v=new regexp(j),w=new regexp("^"+h+"$"),g={id:new regexp("^#("+h+")"),class:new regexp("^\\.("+h+")"),tag:new regexp("^("+h+"|[*])"),attr:new regexp("^"+n),pseudo:new regexp("^"+j),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new regexp("^(?:"+d+")$","i"),needscontext:new regexp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},u=/html$/i,k=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,j=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new regexp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?string.fromcharcode(n+65536):string.fromcharcode(n>>10|55296,1023&n|56320)},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uffff\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t},st=function(){h()},rt=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodename.tolowercase()}),{dir:"parentnode",next:"legend"});try{z.apply(m=a.call(x.childnodes),x.childnodes),m[x.childnodes.length].nodetype}catch(t){z={apply:m.length?function(t,e){i.apply(t,a.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,o){var s,a,c,d,u,f,v,b=e&&e.ownerdocument,_=e?e.nodetype:9;if(n=n||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return n;if(!o&&((e?e.ownerdocument||e:x)!==p&&h(e),e=e||p,g)){if(11!==_&&(u=j.exec(t)))if(s=u[1]){if(9===_){if(!(c=e.getelementbyid(s)))return n;if(c.id===s)return n.push(c),n}else if(b&&(c=b.getelementbyid(s))&&y(e,c)&&c.id===s)return n.push(c),n}else{if(u[2])return z.apply(n,e.getelementsbytagname(t)),n;if((s=u[3])&&i.getelementsbyclassname&&e.getelementsbyclassname)return z.apply(n,e.getelementsbyclassname(s)),n}if(i.qsa&&!$[t+" "]&&(!m||!m.test(t))&&(1!==_||"object"!==e.nodename.tolowercase())){if(v=t,b=e,1===_&&y.test(t)){for((d=e.getattribute("id"))?d=d.replace(nt,ot):e.setattribute("id",d=w),a=(f=r(t)).length;a--;)f[a]="#"+d+" "+yt(f[a]);v=f.join(","),b=tt.test(t)&&vt(e.parentnode)||e}try{return z.apply(n,b.queryselectorall(v)),n}catch(e){$(t,!0)}finally{d===w&&e.removeattribute("id")}}}return l(t.replace(b,"$1"),e,n,o)}function lt(){var t=[];return function e(i,o){return t.push(i+" ")>n.cachelength&&delete e[t.shift()],e[i+" "]=o}}function ct(t){return t[w]=!0,t}function dt(t){var e=p.createelement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentnode&&e.parentnode.removechild(e),e=null}}function ut(t,e){for(var i=t.split("|"),o=i.length;o--;)n.attrhandle[i[o]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodetype&&1===e.nodetype&&t.sourceindex-e.sourceindex;if(n)return n;if(i)for(;i=i.nextsibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodename.tolowercase()&&e.type===t}}function ft(t){return function(e){var i=e.nodename.tolowercase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentnode&&!1===e.disabled?"label"in e?"label"in e.parentnode?e.parentnode.disabled===t:e.disabled===t:e.isdisabled===t||e.isdisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))}))}))}function vt(t){return t&&void 0!==t.getelementsbytagname&&t}for(e in i=at.support={},s=at.isxml=function(t){var e=t.namespaceuri,i=(t.ownerdocument||t).documentelement;return!u.test(e||i&&i.nodename||"html")},h=at.setdocument=function(t){var e,o,r=t?t.ownerdocument||t:x;return r!==p&&9===r.nodetype&&r.documentelement?(f=(p=r).documentelement,g=!s(p),x!==p&&(o=p.defaultview)&&o.top!==o&&(o.addeventlistener?o.addeventlistener("unload",st,!1):o.attachevent&&o.attachevent("onunload",st)),i.attributes=dt((function(t){return t.classname="i",!t.getattribute("classname")})),i.getelementsbytagname=dt((function(t){return t.appendchild(p.createcomment("")),!t.getelementsbytagname("*").length})),i.getelementsbyclassname=q.test(p.getelementsbyclassname),i.getbyid=dt((function(t){return f.appendchild(t).id=w,!p.getelementsbyname||!p.getelementsbyname(w).length})),i.getbyid?(n.filter.id=function(t){var e=t.replace(et,it);return function(t){return t.getattribute("id")===e}},n.find.id=function(t,e){if(void 0!==e.getelementbyid&&g){var i=e.getelementbyid(t);return i?[i]:[]}}):(n.filter.id=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getattributenode&&t.getattributenode("id");return i&&i.value===e}},n.find.id=function(t,e){if(void 0!==e.getelementbyid&&g){var i,n,o,s=e.getelementbyid(t);if(s){if((i=s.getattributenode("id"))&&i.value===t)return[s];for(o=e.getelementsbyname(t),n=0;s=o[n++];)if((i=s.getattributenode("id"))&&i.value===t)return[s]}return[]}}),n.find.tag=i.getelementsbytagname?function(t,e){return void 0!==e.getelementsbytagname?e.getelementsbytagname(t):i.qsa?e.queryselectorall(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getelementsbytagname(t);if("*"===t){for(;i=s[o++];)1===i.nodetype&&n.push(i);return n}return s},n.find.class=i.getelementsbyclassname&&function(t,e){if(void 0!==e.getelementsbyclassname&&g)return e.getelementsbyclassname(t)},v=[],m=[],(i.qsa=q.test(p.queryselectorall))&&(dt((function(t){f.appendchild(t).innerhtml="",t.queryselectorall("[msallowcapture^='']").length&&m.push("[*^$]="+f+"*(?:''|\"\")"),t.queryselectorall("[selected]").length||m.push("\\["+f+"*(?:value|"+d+")"),t.queryselectorall("[id~="+w+"-]").length||m.push("~="),t.queryselectorall(":checked").length||m.push(":checked"),t.queryselectorall("a#"+w+"+*").length||m.push(".#.+[+~]")})),dt((function(t){t.innerhtml="";var e=p.createelement("input");e.setattribute("type","hidden"),t.appendchild(e).setattribute("name","d"),t.queryselectorall("[name=d]").length&&m.push("name"+f+"*[*^$|!~]?="),2!==t.queryselectorall(":enabled").length&&m.push(":enabled",":disabled"),f.appendchild(t).disabled=!0,2!==t.queryselectorall(":disabled").length&&m.push(":enabled",":disabled"),t.queryselectorall("*,:x"),m.push(",.*:")}))),(i.matchesselector=q.test(b=f.matches||f.webkitmatchesselector||f.mozmatchesselector||f.omatchesselector||f.msmatchesselector))&&dt((function(t){i.disconnectedmatch=b.call(t,"*"),b.call(t,"[s!='']:x"),v.push("!=",j)})),m=m.length&&new regexp(m.join("|")),v=v.length&&new regexp(v.join("|")),e=q.test(f.comparedocumentposition),y=e||q.test(f.contains)?function(t,e){var i=9===t.nodetype?t.documentelement:t,n=e&&e.parentnode;return t===n||!(!n||1!==n.nodetype||!(i.contains?i.contains(n):t.comparedocumentposition&&16&t.comparedocumentposition(n)))}:function(t,e){if(e)for(;e=e.parentnode;)if(e===t)return!0;return!1},p=e?function(t,e){if(t===e)return u=!0,0;var n=!t.comparedocumentposition-!e.comparedocumentposition;return n||(1&(n=(t.ownerdocument||t)===(e.ownerdocument||e)?t.comparedocumentposition(e):1)||!i.sortdetached&&e.comparedocumentposition(t)===n?t===p||t.ownerdocument===x&&y(x,t)?-1:e===p||e.ownerdocument===x&&y(x,e)?1:d?o(d,t)-o(d,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,o=t.parentnode,s=e.parentnode,r=[t],a=[e];if(!o||!s)return t===p?-1:e===p?1:o?-1:s?1:d?o(d,t)-o(d,e):0;if(o===s)return ht(t,e);for(i=t;i=i.parentnode;)r.unshift(i);for(i=e;i=i.parentnode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ht(r[n],a[n]):r[n]===x?-1:a[n]===x?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesselector=function(t,e){if((t.ownerdocument||t)!==p&&h(t),i.matchesselector&&g&&!$[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=b.call(t,e);if(n||i.disconnectedmatch||t.document&&11!==t.document.nodetype)return n}catch(t){$(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerdocument||t)!==p&&h(t),y(t,e)},at.attr=function(t,e){(t.ownerdocument||t)!==p&&h(t);var o=n.attrhandle[e.tolowercase()],s=o&&k.call(n.attrhandle,e.tolowercase())?o(t,e,!g):void 0;return void 0!==s?s:i.attributes||!g?t.getattribute(e):(s=t.getattributenode(e))&&s.specified?s.value:null},at.escape=function(t){return(t+"").replace(nt,ot)},at.error=function(t){throw new error("syntax error, unrecognized expression: "+t)},at.uniquesort=function(t){var e,n=[],o=0,s=0;if(u=!i.detectduplicates,d=!i.sortstable&&t.slice(0),t.sort(p),u){for(;e=t[s++];)e===t[s]&&(o=n.push(s));for(;o--;)t.splice(n[o],1)}return d=null,t},o=at.gettext=function(t){var e,i="",n=0,s=t.nodetype;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textcontent)return t.textcontent;for(t=t.firstchild;t;t=t.nextsibling)i+=o(t)}else if(3===s||4===s)return t.nodevalue}else for(;e=t[n++];)i+=o(e);return i},(n=at.selectors={cachelength:50,createpseudo:ct,match:g,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},child:function(t){return t[1]=t[1].tolowercase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},pseudo:function(t){var e,i=!t[6]&&t[2];return g.child.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&v.test(i)&&(e=r(i,!0))&&(e=i.indexof(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{tag:function(t){var e=t.replace(et,it).tolowercase();return"*"===t?function(){return!0}:function(t){return t.nodename&&t.nodename.tolowercase()===e}},class:function(t){var e=c[t+" "];return e||(e=new regexp("(^|"+f+")"+t+"("+f+"|$)"))&&c(t,(function(t){return e.test("string"==typeof t.classname&&t.classname||void 0!==t.getattribute&&t.getattribute("class")||"")}))},attr:function(t,e,i){return function(n){var o=at.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexof(i):"*="===e?i&&o.indexof(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(r," ")+" ").indexof(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},child:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentnode}:function(e,i,l){var c,d,u,h,p,f,g=s!==r?"nextsibling":"previoussibling",m=e.parentnode,v=a&&e.nodename.tolowercase(),b=!l&&!a,y=!1;if(m){if(s){for(;g;){for(h=e;h=h[g];)if(a?h.nodename.tolowercase()===v:1===h.nodetype)return!1;f=g="only"===t&&!f&&"nextsibling"}return!0}if(f=[r?m.firstchild:m.lastchild],r&&b){for(y=(p=(c=(d=(u=(h=m)[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]||[])[0]===_&&c[1])&&c[2],h=p&&m.childnodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodetype&&++y&&h===e){d[t]=[_,p,y];break}}else if(b&&(y=p=(c=(d=(u=(h=e)[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]||[])[0]===_&&c[1]),!1===y)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((a?h.nodename.tolowercase()!==v:1!==h.nodetype)||!++y||(b&&((d=(u=h[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]=[_,y]),h!==e)););return(y-=o)===n||y%n==0&&y/n>=0}}},pseudo:function(t,e){var i,o=n.pseudos[t]||n.setfilters[t.tolowercase()]||at.error("unsupported pseudo: "+t);return o[w]?o(e):o.length>1?(i=[t,t,"",e],n.setfilters.hasownproperty(t.tolowercase())?ct((function(t,i){for(var n,s=o(t,e),r=s.length;r--;)t[n=o(t,s[r])]=!(i[n]=s[r])})):function(t){return o(t,0,i)}):o}},pseudos:{not:ct((function(t){var e=[],i=[],n=a(t.replace(b,"$1"));return n[w]?ct((function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))})):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return at(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return(e.textcontent||o(e)).indexof(t)>-1}})),lang:ct((function(t){return w.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).tolowercase(),function(e){var i;do{if(i=g?e.lang:e.getattribute("xml:lang")||e.getattribute("lang"))return(i=i.tolowercase())===t||0===i.indexof(t+"-")}while((e=e.parentnode)&&1===e.nodetype);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeelement&&(!p.hasfocus||p.hasfocus())&&!!(t.type||t.href||~t.tabindex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodename.tolowercase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentnode&&t.parentnode.selectedindex,!0===t.selected},empty:function(t){for(t=t.firstchild;t;t=t.nextsibling)if(t.nodetype<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return z.test(t.nodename)},input:function(t){return k.test(t.nodename)},button:function(t){var e=t.nodename.tolowercase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodename.tolowercase()&&"text"===t.type&&(null==(e=t.getattribute("type"))||"text"===e.tolowercase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;ie?e:i;--n>=0;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a-1&&(s[c]=!(r[c]=u))}}else v=_t(v===r?v.splice(f,v.length):v),o?o(null,r,v,l):z.apply(r,v)}))}function ct(t){for(var e,i,o,s=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,d=wt((function(t){return t===e}),a,!0),u=wt((function(t){return o(e,t)>-1}),a,!0),h=[function(t,i,n){var o=!r&&(n||i!==c)||((e=i).nodetype?d(t,i,n):u(t,i,n));return e=null,o}];l1&&xt(h),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(b,"$1"),i,l0,o=t.length>0,s=function(s,r,a,l,d){var u,f,m,v=0,b="0",y=s&&[],w=[],x=c,t=s||o&&n.find.tag("*",d),c=_+=null==x?1:math.random()||.1,s=t.length;for(d&&(c=r===p||r||d);b!==s&&null!=(u=t[b]);b++){if(o&&u){for(f=0,r||u.ownerdocument===p||(h(u),a=!g);m=t[f++];)if(m(u,r||p,a)){l.push(u);break}d&&(_=c)}i&&((u=!m&&u)&&v--,s&&y.push(u))}if(v+=b,i&&b!==v){for(f=0;m=e[f++];)m(y,w,r,a);if(s){if(v>0)for(;b--;)y[b]||w[b]||(w[b]=l.call(l));w=_t(w)}z.apply(l,w),d&&!s&&w.length>0&&v+e.length>1&&at.uniquesort(l)}return d&&(_=c,c=x),y};return i?ct(s):s}(s,o))).selector=t}return a},l=at.select=function(t,e,i,o){var s,l,c,d,u,h="function"==typeof t&&t,p=!o&&r(t=h.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"id"===(c=l[0]).type&&9===e.nodetype&&g&&n.relative[l[1].type]){if(!(e=(n.find.id(c.matches[0].replace(et,it),e)||[])[0]))return i;h&&(e=e.parentnode),t=t.slice(l.shift().value.length)}for(s=g.needscontext.test(t)?0:l.length;s--&&(c=l[s],!n.relative[d=c.type]);)if((u=n.find[d])&&(o=u(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentnode)||e))){if(l.splice(s,1),!(t=o.length&&yt(l)))return z.apply(i,o),i;break}}return(h||a(t,p))(o,e,!g,i,!e||tt.test(t)&&vt(e.parentnode)||e),i},i.sortstable=w.split("").sort(p).join("")===w,i.detectduplicates=!!u,h(),i.sortdetached=dt((function(t){return 1&t.comparedocumentposition(p.createelement("fieldset"))})),dt((function(t){return t.innerhtml="","#"===t.firstchild.getattribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getattribute(e,"type"===e.tolowercase()?1:2)})),i.attributes&&dt((function(t){return t.innerhtml="",t.firstchild.setattribute("value",""),""===t.firstchild.getattribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodename.tolowercase())return t.defaultvalue})),dt((function(t){return null==t.getattribute("disabled")}))||ut(d,(function(t,e,i){var n;if(!i)return!0===t[e]?e.tolowercase():(n=t.getattributenode(e))&&n.specified?n.value:null})),at}(i);t.find=e,t.expr=e.selectors,t.expr[":"]=t.expr.pseudos,t.uniquesort=t.unique=e.uniquesort,t.text=e.gettext,t.isxmldoc=e.isxml,t.contains=e.contains,t.escapeselector=e.escape;var $=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodetype;)if(1===t.nodetype){if(o&&t(t).is(i))break;n.push(t)}return n},p=function(t,e){for(var i=[];t;t=t.nextsibling)1===t.nodetype&&t!==e&&i.push(t);return i},k=t.expr.match.needscontext;function m(t,e){return t.nodename&&t.nodename.tolowercase()===e.tolowercase()}var l=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function i(t,e,i){return b(e)?t.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodetype?t.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?t.grep(t,(function(t){return u.call(e,t)>-1!==i})):t.filter(e,t,i)}t.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodetype?t.find.matchesselector(n,t)?[n]:[]:t.find.matches(t,t.grep(e,(function(t){return 1===t.nodetype})))},t.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushstack(t(t).filter((function(){for(e=0;e1?t.uniquesort(i):i},filter:function(t){return this.pushstack(i(this,t||[],!1))},not:function(t){return this.pushstack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&k.test(t)?t(t):t||[],!1).length}});var z,a=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]+))$/;(t.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||z,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:a.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof t?e[0]:e,t.merge(this,t.parsehtml(n[1],e&&e.nodetype?e.ownerdocument||e:r,!0)),l.test(n[1])&&t.isplainobject(e))for(n in e)b(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=r.getelementbyid(n[2]))&&(this[0]=o,this.length=1),this}return t.nodetype?(this[0]=t,this.length=1,this):b(t)?void 0!==i.ready?i.ready(t):t(t):t.makearray(t,this)}).prototype=t.fn,z=t(r);var o=/^(?:parents|prev(?:until|all))/,d={children:!0,contents:!0,next:!0,prev:!0};function f(t,e){for(;(t=t[e])&&1!==t.nodetype;);return t}t.fn.extend({has:function(t){var e=t(t,this),i=e.length;return this.filter((function(){for(var t=0;t-1:1===i.nodetype&&t.find.matchesselector(i,t))){s.push(i);break}return this.pushstack(s.length>1?t.uniquesort(s):s)},index:function(t){return t?"string"==typeof t?u.call(t(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(t,e){return this.pushstack(t.uniquesort(t.merge(this.get(),t(t,e))))},addback:function(t){return this.add(null==t?this.prevobject:this.prevobject.filter(t))}}),t.each({parent:function(t){var e=t.parentnode;return e&&11!==e.nodetype?e:null},parents:function(t){return $(t,"parentnode")},parentsuntil:function(t,e,i){return $(t,"parentnode",i)},next:function(t){return f(t,"nextsibling")},prev:function(t){return f(t,"previoussibling")},nextall:function(t){return $(t,"nextsibling")},prevall:function(t){return $(t,"previoussibling")},nextuntil:function(t,e,i){return $(t,"nextsibling",i)},prevuntil:function(t,e,i){return $(t,"previoussibling",i)},siblings:function(t){return p((t.parentnode||{}).firstchild,t)},children:function(t){return p(t.firstchild)},contents:function(t){return void 0!==t.contentdocument?t.contentdocument:(m(t,"template")&&(t=t.content||t),t.merge([],t.childnodes))}},(function(t,e){t.fn[t]=function(i,n){var o=t.map(this,e,i);return"until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=t.filter(n,o)),this.length>1&&(d[t]||t.uniquesort(o),o.test(t)&&o.reverse()),this.pushstack(o)}}));var h=/[^\x20\t\r\n\f]+/g;function n(t){return t}function j(t){throw t}function r(t,e,i,n){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(i):t&&b(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}t.callbacks=function(t){t="string"==typeof t?function(t){var e={};return t.each(t.match(h)||[],(function(t,i){e[i]=!0})),e}(t):t.extend({},t);var e,i,n,o,s=[],r=[],a=-1,l=function(){for(o=o||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a-1;)s.splice(i,1),i<=a&&a--})),this},has:function(t){return t?t.inarray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=r=[],s=i="",this},disabled:function(){return!s},lock:function(){return o=r=[],i||e||(s=i=""),this},locked:function(){return!!o},firewith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.firewith(this,arguments),this},fired:function(){return!!n}};return c},t.extend({deferred:function(t){var e=[["notify","progress",t.callbacks("memory"),t.callbacks("memory"),2],["resolve","done",t.callbacks("once memory"),t.callbacks("once memory"),0,"resolved"],["reject","fail",t.callbacks("once memory"),t.callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return t.deferred((function(i){t.each(e,(function(e,n){var o=b(t[n[4]])&&t[n[4]];s[n[1]]((function(){var t=o&&o.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"with"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var s=0;function r(t,e,n,o){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t=s&&(n!==j&&(a=void 0,l=[i]),e.rejectwith(a,l))}};t?d():(t.deferred.getstackhook&&(d.stacktrace=t.deferred.getstackhook()),i.settimeout(d))}}return t.deferred((function(i){e[0][3].add(r(0,i,b(o)?o:n,i.notifywith)),e[1][3].add(r(0,i,b(t)?t:n)),e[2][3].add(r(0,i,b(n)?n:j))})).promise()},promise:function(t){return null!=t?t.extend(t,o):o}},s={};return t.each(e,(function(t,i){var r=i[2],a=i[5];o[i[1]]=r.add,a&&r.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"with"](this===s?void 0:this,arguments),this},s[i[0]+"with"]=r.firewith})),o.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=array(i),o=l.call(arguments),s=t.deferred(),r=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?l.call(arguments):i,--e||s.resolvewith(n,o)}};if(e<=1&&(r(t,s.done(r(i)).resolve,s.reject,!e),"pending"===s.state()||b(o[i]&&o[i].then)))return s.then();for(;i--;)r(o[i],r(i),s.reject);return s.promise()}});var b=/^(eval|internal|range|reference|syntax|type|uri)error$/;t.deferred.exceptionhook=function(t,e){i.console&&i.console.warn&&t&&b.test(t.name)&&i.console.warn("jquery.deferred exception: "+t.message,t.stack,e)},t.readyexception=function(t){i.settimeout((function(){throw t}))};var q=t.deferred();function x(){r.removeeventlistener("domcontentloaded",x),i.removeeventlistener("load",x),t.ready()}t.fn.ready=function(t){return q.then(t).catch((function(t){t.readyexception(t)})),this},t.extend({isready:!1,readywait:1,ready:function(t){(!0===t?--t.readywait:t.isready)||(t.isready=!0,!0!==t&&--t.readywait>0||q.resolvewith(r,[t]))}}),t.ready.then=q.then,"complete"===r.readystate||"loading"!==r.readystate&&!r.documentelement.doscroll?i.settimeout(t.ready):(r.addeventlistener("domcontentloaded",x),i.addeventlistener("load",x));var y=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===_(i))for(a in o=!0,i)y(t,e,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,b(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(t(t),i)})),e))for(;a1,null,!0)},removedata:function(t){return this.each((function(){j.remove(this,t)}))}}),t.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=q.get(t,e),i&&(!n||array.isarray(i)?n=q.access(t,e,t.makearray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=t.queue(t,e),n=i.length,o=i.shift(),s=t._queuehooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,(function(){t.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queuehooks:function(t,e){var i=e+"queuehooks";return q.get(t,i)||q.access(t,i,{empty:t.callbacks("once memory").add((function(){q.remove(t,[e+"queue",i])}))})}}),t.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]*)/i,vt=/^$|^module$|\/(?:java|ecma)script/i,bt={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function yt(t,e){var i;return i=void 0!==t.getelementsbytagname?t.getelementsbytagname(e||"*"):void 0!==t.queryselectorall?t.queryselectorall(e||"*"):[],void 0===e||e&&m(t,e)?t.merge([t],i):i}function wt(t,e){for(var i=0,n=t.length;i-1)o&&o.push(s);else if(c=at(s),r=yt(u.appendchild(s),"script"),c&&wt(r),i)for(d=0;s=r[d++];)vt.test(s.type||"")&&i.push(s);return u}xt=r.createdocumentfragment().appendchild(r.createelement("div")),(_t=r.createelement("input")).setattribute("type","radio"),_t.setattribute("checked","checked"),_t.setattribute("name","t"),xt.appendchild(_t),v.checkclone=xt.clonenode(!0).clonenode(!0).lastchild.checked,xt.innerhtml="",v.noclonechecked=!!xt.clonenode(!0).lastchild.defaultvalue;var st=/^key/,et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$t=/^([^.]*)(?:\.(.+)|)/;function pt(){return!0}function kt(){return!1}function mt(t,e){return t===function(){try{return r.activeelement}catch(t){}}()==("focus"===e)}function lt(t,e,i,n,o,s){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)lt(t,a,i,n,e[a],s);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=kt;else if(!o)return t;return 1===s&&(r=o,(o=function(t){return t().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=t.guid++)),t.each((function(){t.event.add(this,e,o,n,i)}))}function it(t,e,i){i?(q.set(t,e,!1),t.event.add(t,e,{namespace:!1,handler:function(t){var n,o,s=q.get(this,e);if(1&t.istrigger&&this[e]){if(s.length)(t.event.special[e]||{}).delegatetype&&t.stoppropagation();else if(s=l.call(arguments),q.set(this,e,s),n=i(this,e),this[e](),s!==(o=q.get(this,e))||n?q.set(this,e,!1):o={},s!==o)return t.stopimmediatepropagation(),t.preventdefault(),o.value}else s.length&&(q.set(this,e,{value:t.event.trigger(t.extend(s[0],t.event.prototype),s.slice(1),this)}),t.stopimmediatepropagation())}})):void 0===q.get(t,e)&&t.event.add(t,e,pt)}t.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,g,m=q.get(t);if(m)for(i.handler&&(i=(s=i).handler,o=s.selector),o&&t.find.matchesselector(rt,o),i.guid||(i.guid=t.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return void 0!==t&&t.event.triggered!==e.type?t.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(h)||[""]).length;c--;)p=g=(a=$t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=t.event.special[p]||{},p=(o?u.delegatetype:u.bindtype)||p,u=t.event.special[p]||{},d=t.extend({type:p,origtype:g,data:n,handler:i,guid:i.guid,selector:o,needscontext:o&&t.expr.match.needscontext.test(o),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegatecount=0,u.setup&&!1!==u.setup.call(t,n,f,r)||t.addeventlistener&&t.addeventlistener(p,r)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),o?h.splice(h.delegatecount++,0,d):h.push(d),t.event.global[p]=!0)},remove:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,g,m=q.hasdata(t)&&q.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(h)||[""]).length;c--;)if(p=g=(a=$t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=t.event.special[p]||{},h=l[p=(n?u.delegatetype:u.bindtype)||p]||[],a=a[2]&&new regexp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)d=h[s],!o&&g!==d.origtype||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(s,1),d.selector&&h.delegatecount--,u.remove&&u.remove.call(t,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||t.removeevent(t,p,m.handle),delete l[p])}else for(p in l)t.event.remove(t,p+e[c],i,n,!0);t.isemptyobject(l)&&q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=t.event.fix(t),l=new array(arguments.length),c=(q.get(this,"events")||{})[a.type]||[],d=t.event.special[a.type]||{};for(l[0]=a,e=1;e=1))for(;c!==this;c=c.parentnode||this)if(1===c.nodetype&&("click"!==t.type||!0!==c.disabled)){for(s=[],r={},i=0;i-1:t.find(o,this,null,[c]).length),r[o]&&s.push(n);s.length&&a.push({elem:c,handlers:s})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,at=/