PageSourceSearch

https://www.brokersangle.com/wp-content/themes/bolden-secondline/js/min/vendors.min.js?ver=20190610

js brokersangle.com collected 2026-10-04 21:38:30 UTC 191,288 bytes, 373 lines download raw bytes

1/***************************
2File list:
3* matchheight.min.js
4* modal.min.js
5* onepage.min.js
6* scrolltofixed.min.js
7* slimmenu.min.js
8* superfish.min.js
9* isotope.min.js
10* prettyphoto.min.js
11* fitvids.min.js
12* flickity.min.js
13* flexslider.min.js
14*****************************/
15(function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"undefined"!=typeof module&&module.exports?module.exports=b(require("jquery")):b(jQuery)})(function(b){var t=-1,q=-1,k=function(a){return parseFloat(a)||0},u=function(a){var e=null,c=[];return b(a).each(function(){var g=b(this),m=g.offset().top-k(g.css("margin-top")),n=c.length>0?c[c.length-1]:null;null===n?c.push(g):Math.floor(Math.abs(e-m))<=1?c[c.length-1]=n.add(g):c.push(g);e=m}),c},r=function(a){var e={byRow:true,property:"height",
16target:null,remove:false};return"object"==typeof a?b.extend(e,a):("boolean"==typeof a?e.byRow=a:"remove"===a&&(e.remove=true),e)},d=b.fn.matchHeight=function(a){a=r(a);if(a.remove){var e=this;return this.css(a.property,""),b.each(d._groups,function(c,g){g.elements=g.elements.not(e)}),this}return this.length<=1&&!a.target?this:(d._groups.push({elements:this,options:a}),d._apply(this,a),this)};d.version="0.7.2";d._groups=[];d._throttle=80;d._maintainScroll=false;d._beforeUpdate=null;d._afterUpdate=
17null;d._rows=u;d._parse=k;d._parseOptions=r;d._apply=function(a,e){var c=r(e),g=b(a),m=[g],n=b(window).scrollTop(),x=b("html").outerHeight(true),s=g.parents().filter(":hidden");return s.each(function(){var h=b(this);h.data("style-cache",h.attr("style"))}),s.css("display","block"),c.byRow&&!c.target&&(g.each(function(){var h=b(this),j=h.css("display");"inline-block"!==j&&"flex"!==j&&"inline-flex"!==j&&(j="block");h.data("style-cache",h.attr("style"));h.css({display:j,"padding-top":"0","padding-bottom":"0",
18"margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),m=u(g),g.each(function(){var h=b(this);h.attr("style",h.data("style-cache")||"")})),b.each(m,function(h,j){var o=b(j),p=0;if(c.target)p=c.target.outerHeight(false);else{if(c.byRow&&o.length<=1)return void o.css(c.property,"");o.each(function(){var f=b(this),l=f.attr("style"),i=f.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");i={display:i};i[c.property]=
19"";f.css(i);f.outerHeight(false)>p&&(p=f.outerHeight(false));l?f.attr("style",l):f.css("display","")})}o.each(function(){var f=b(this),l=0;c.target&&f.is(c.target)||("border-box"!==f.css("box-sizing")&&(l+=k(f.css("border-top-width"))+k(f.css("border-bottom-width")),l+=k(f.css("padding-top"))+k(f.css("padding-bottom"))),f.css(c.property,p-l+"px"))})}),s.each(function(){var h=b(this);h.attr("style",h.data("style-cache")||null)}),d._maintainScroll&&b(window).scrollTop(n/x*b("html").outerHeight(true)),
20this};d._applyDataApi=function(){var a={};b("[data-match-height], [data-mh]").each(function(){var e=b(this),c=e.attr("data-mh")||e.attr("data-match-height");c in a?a[c]=a[c].add(e):a[c]=e});b.each(a,function(){this.matchHeight(true)})};var v=function(a){d._beforeUpdate&&d._beforeUpdate(a,d._groups);b.each(d._groups,function(){d._apply(this.elements,this.options)});d._afterUpdate&&d._afterUpdate(a,d._groups)};d._update=function(a,e){if(e&&"resize"===e.type){var c=b(window).width();if(c===t)return;
21t=c}a?q===-1&&(q=setTimeout(function(){v(e);q=-1},d._throttle)):v(e)};b(d._applyDataApi);var w=b.fn.on?"on":"bind";b(window)[w]("load",function(a){d._update(false,a)});b(window)[w]("resize orientationchange",function(a){d._update(true,a)})});
22(function(a){"object"==typeof module&&"object"==typeof module.exports?a(require("jquery"),window,document):a(jQuery,window,document)})(function(a,l,h){var c=[],e=function(){return c.length?c[c.length-1]:null},j=function(){var b,d=false;for(b=c.length-1;b>=0;b--)c[b].$blocker&&(c[b].$blocker.toggleClass("current",!d).toggleClass("behind",d),d=true)};a.modal=function(b,d){var f,i;if(this.$body=a("body"),this.options=a.extend({},a.modal.defaults,d),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,
2310)),this.$blocker=null,this.options.closeExisting)for(;a.modal.isActive();)a.modal.close();if(c.push(this),b.is("a"))if(i=b.attr("href"),this.anchor=b,/^#/.test(i)){if
23(this.$elm=a(i),1!==this.$elm.length)return null;this.$body.append(this.$elm);this.open()}else{this.$elm=a("<div>");this.$body.append(this.$elm);f=function(k,g){g.elm.remove()};this.showSpinner();b.trigger(a.modal.AJAX_SEND);a.get(i).done(function(k){if(a.modal.isActive()){b.trigger(a.modal.AJAX_SUCCESS);var g=e();g.$elm.empty().append(k).on(a.modal.CLOSE,
24f);g.hideSpinner();g.open();b.trigger(a.modal.AJAX_COMPLETE)}}).fail(function(){b.trigger(a.modal.AJAX_FAIL);e().hideSpinner();c.pop();b.trigger(a.modal.AJAX_COMPLETE)})}else{this.anchor=this.$elm=b;this.$body.append(this.$elm);this.open()}};a.modal.prototype={constructor:a.modal,open:function(){var b=this;this.block();this.anchor.blur();this.options.doFade?setTimeout(function(){b.show()},this.options.fadeDuration*this.options.fadeDelay):this.show();a(h).off("keydown.modal").on("keydown.modal",function(d){var f=
25e();27===d.which&&f.options.escapeClose&&f.close()});this.options.clickClose&&this.$blocker.click(function(d){d.target===this&&a.modal.close()})},close:function(){c.pop();this.unblock();this.hide();a.modal.isActive()||a(h).off("keydown.modal")},block:function(){this.$elm.trigger(a.modal.BEFORE_BLOCK,[this._ctx()]);this.$body.css("overflow","hidden");this.$blocker=a('<div class="'+this.options.blockerClass+' blocker current"></div>').appendTo(this.$body);j();this.options.doFade&&this.$blocker.css("opacity",
260).animate({opacity:1},this.options.fadeDuration);this.$elm.trigger(a.modal.BLOCK,[this._ctx()])},unblock:function(b){!b&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,true)):(this.$blocker.children().appendTo(this.$body),this.$blocker.remove(),this.$blocker=null,j(),a.modal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger(a.modal.BEFORE_OPEN,[this._ctx()]);this.options.showClose&&(this.closeButton=a('<a href="#close-modal" rel="modal:close" class="close-modal '+
27this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton));this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker);this.options.doFade?this.$elm.css({opacity:0,display:"inline-block"}).animate({opacity:1},this.options.fadeDuration):this.$elm.css("display","inline-block");this.$elm.trigger(a.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(a.modal.BEFORE_CLOSE,[this._ctx()]);this.closeButton&&this.closeButton.remove();var b=this;this.options.doFade?
28this.$elm.fadeOut(this.options.fadeDuration,function(){b.$elm.trigger(a.modal.AFTER_CLOSE,[b._ctx()])}):this.$elm.hide(0,function(){b.$elm.trigger(a.modal.AFTER_CLOSE,[b._ctx()])});this.$elm.trigger(a.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||a('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},
29_ctx:function(){return{elm:this.$elm,$elm:this.$elm,$blocker:this.$blocker,options:this.options}}};a.modal.close=function(b){if(a.modal.isActive()){b&&b.preventDefault();b=e();return b.close(),b.$elm}};a.modal.isActive=function(){return c.length>0};a.modal.getCurrent=e;a.modal.defaults={closeExisting:true,escapeClose:true,clickClose:true,closeText:"Close",closeClass:"",modalClass:"modal",blockerClass:"jquery-modal",spinnerHtml:'<div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div>',
30showSpinner:true,showClose:true,fadeDuration:null,fadeDelay:1};a.modal.BEFORE_BLOCK="modal:before-block";a.modal.BLOCK="modal:block";a.modal.BEFORE_OPEN="modal:before-open";a.modal.OPEN="modal:open";a.modal.BEFORE_CLOSE="modal:before-close";a.modal.CLOSE="modal:close";a.modal.AFTER_CLOSE="modal:after-close";a.modal.AJAX_SEND="modal:ajax:send";a.modal.AJAX_SUCCESS="modal:ajax:success";a.modal.AJAX_FAIL="modal:ajax:fail";a.modal.AJAX_COMPLETE="modal:ajax:complete";a.fn.modal=function(b){return 1===
31this.length&&new a.modal(this,b),this};a(h).on("click.modal",'a[rel~="modal:close"]',a.modal.close);a(h).on("click.modal",'a[rel~="modal:open"]',function(b){b.preventDefault();a(this).modal()})});
32(function(c,g,i){var f=function(b,a){this.elem=b;this.$elem=c(b);this.options=a;this.metadata=this.$elem.data("plugin-options");this.$win=c(g);this.sections={};this.didScroll=false;this.$doc=c(i);this.docHeight=this.$doc.height()};f.prototype={defaults:{navItems:"a",currentClass:"current",changeHash:false,easing:"swing",f
32ilter:"",scrollSpeed:750,scrollThreshold:0.5,begin:false,end:false,scrollChange:false},init:function(){return this.config=c.extend({},this.defaults,this.options,this.metadata),this.$nav=
33this.$elem.find(this.config.navItems),""!==this.config.filter&&(this.$nav=this.$nav.filter(this.config.filter)),this.$nav.on("click.onePageNav",c.proxy(this.handleClick,this)),this.getPositions(),this.bindInterval(),this.$win.on("resize.onePageNav",c.proxy(this.getPositions,this)),this},adjustNav:function(b,a){b.$elem.find("."+b.config.currentClass).removeClass(b.config.currentClass);a.addClass(b.config.currentClass)},bindInterval:function(){var b,a=this;a.$win.on("scroll.onePageNav",function(){a.didScroll=
34true});a.t=setInterval(function(){b=a.$doc.height();a.didScroll&&(a.didScroll=false,a.scrollChange());b!==a.docHeight&&(a.docHeight=b,a.getPositions())},250)},getHash:function(b){return b.attr("href").split("#")[1]},getPositions:function(){var b,a,d,e=this;e.$nav.each(function(){b=e.getHash(c(this));d=c("#"+b);d.length&&(a=d.offset().top,e.sections[b]=Math.round(a))})},getSection:function(b){var a=null,d=Math.round(this.$win.height()*this.config.scrollThreshold),e;for(e in this.sections)this.sections[e]-
35d<b&&(a=e);return a},handleClick:function(b){var a=this,d=c(b.currentTarget),e=d.parent(),h="#"+a.getHash(d);e.hasClass(a.config.currentClass)||(a.config.begin&&a.config.begin(),a.adjustNav(a,e),a.unbindInterval(),a.scrollTo(h,function(){a.config.changeHash&&(g.location.hash=h);a.bindInterval();a.config.end&&a.config.end()}));b.preventDefault()},scrollChange:function(){var b,a=this.getSection(this.$win.scrollTop());null!==a&&(b=this.$elem.find('a[href$="#'+a+'"]').parent(),b.hasClass(this.config.currentClass)||
36(this.adjustNav(this,b),this.config.scrollChange&&this.config.scrollChange(b)))},scrollTo:function(b,a){var d=c(b).offset().top;c("html, body").animate({scrollTop:d-this.config.scrollOffset},this.config.scrollSpeed,this.config.easing,a)},unbindInterval:function(){clearInterval(this.t);this.$win.unbind("scroll.onePageNav")}};f.defaults=f.prototype.defaults;c.fn.onePageNav=function(b){return this.each(function(){(new f(this,b)).init()})}})(jQuery,window,document);
37(function(e){e.isScrollToFixed=function(h){return!!e(h).data("ScrollToFixed")};e.ScrollToFixed=function(h,i){function G(){var c=b.options.limit;if(!c)return 0;if(typeof c==="function")return c.apply(a);return c}function p(){return l==="fixed"}function u(){return!(p()||l==="absolute")}function C(){if(!p()){var c=a[0].getBoundingClientRect();g.css({display:a.css("display"),width:c.width,height:c.height,"float":a.css("float")});cssOptions={"z-index":b.options.zIndex,position:"fixed",top:b.options.bottom==
38-1?j():"",bottom:b.options.bottom==-1?"":b.options.bottom,"margin-left":"0px"};if(!b.options.dontSetWidth)cssOptions.width=a.css("width");a.css(cssOptions);a.addClass(b.options.baseClassName);b.options.className&&a.addClass(b.options.className);l="fixed"}}function H(){var c=G(),f=v;if(b.options.removeOffsets){f="";c-=k}cssOptions={position:"absolute",top:c,left:f,"margin-left":"0px",bottom:""};if(!b.options.dontSetWidth)cssOptions.width=a.css("width");a.css(cssOptions);l="absolute"}function q(){if(!u()){z=
39-1;g.css("display","none");a.css({"z-index":w,width:"",position:D,left:"",top:I,"margin-left":""});a.removeClass("scroll-to-fixed-fixed");b.options.className&&a.removeClass(b.options.className);l=null}}function m(c){if(c!=z){a.css("left",v-c);z=c}}function j(){var c=b.options.marginTop;if(!c)return 0;if(typeof c==="function")return c.apply(a);return c}function r(){if(!(!e.isScrollToFixed(a)||a.is(":hidden"))){var c=d,f=u();if(d){if(u()){k=a.offset().top;v=a.offset().left}}else{a.trigger("preUnfixed.ScrollToFixed");
40q();a.trigger("unfixed.ScrollToFixed");z=-1;k=a.offset().top;v=a.offset().left;if(b.options.offsets)v+=a.offset().left-a.position().left;if(x==-1)x=v;l=a.css("position");d=true;if(b.options.bottom!=-1){a.trigger("preFixed.ScrollToFixed");C();a.trigger("fixed.ScrollToFixed")}}var A=e(window).scrollLeft(),B=e(window).scrollTop(),y=G();if(b.options.minWidth&&e(window).width()<b.options.minWidth){if(!u()||!c){s();a.trigger("preUnfixed.ScrollToFixed");q();a.trigger("unfixed.ScrollToFixed")}}else if(b.options.maxWidth&&
41e(window).width()>b.options.maxWidth){if(!u()||!c){s();a.trigger("preUnfixed.ScrollToFixed");q();a.trigger("unfixed.ScrollToFixed")}}else if(b.options.bottom==-1)if(y>0&&B>=y-j()){if(!f&&(l!=="absolute"||!c)){s();a.trigger("preAbsolute.ScrollToFixed");H();a.trigger("unfixed.ScrollToFixed")}}else if(B>=k-j()){if(!p()||!c){s();a.trigger("preFixed.ScrollToFixed");C();z=-1;a.trigger("fixed.ScrollToFixed")}m(A)}else{if(!u()||!c){s();a.trigger("preUnfixed.ScrollToFixed");q();a.trigger("unfixed.ScrollToFixed")}}else if(y>
420){c=B+e(window).height()-a.outerHeight(true);if(!(f=j())){f=b.options.bottom?b.options.bottom:0;f=-f}if(c>=y-f){if(p()){s();a.trigger("preUnfixed.ScrollToFixed");D==="absolute"?H():q();a.trigger("unfixed.ScrollToFixed")}}else{if(!p()){s();a.trigger("preFixed.ScrollToFixed");C()}m(A);a.trigger("fixed.ScrollToFixed")}}else m(A)}}function s(){var c=a.css("position");if(c=="absolute")a.trigger("postAbsolute.ScrollToFixed");else c=="fixed"?a.trigger("postFixed.ScrollToFixed"):a.trigger("postUnfixed.ScrollToFixed")}
43var b=this;b.$el=e(h);b.el=h;b.$el.data("ScrollToFixed",b);var d=false,a=b.$el,l,D,I,w,k=0,v=0,x=-1,z=-1,g=null,E=function(){if(a.is(":visible")){d=false;r()}else q()},J=function(){window.requestAnimationFrame?requestAnimationFrame(r):r()};b.init=function(){b.options=e.extend({},e.ScrollToFixed.defaultOptions,i);w=a.css("z-index");b.$el.css("z-index",b.options.zIndex);g=e("<div ></div>");l=a.css("position");D=a.css("position");a.css("float");I=a.css("top");u()&&b.$el.after(g);e(window).bind("resize.ScrollToFixed",
44E);e(window).bind("scroll.ScrollToFixed",J);"ontouchmove"in window&&e(window).bind("touchmove.ScrollToFixed",r);b.options.preFixed&&a.bind("preFixed.ScrollToFixed",b.options.preFixed);b.options.postFixed&&a.bind("postFixed.ScrollToFixed",b.options.postFixed);b.options.preUnfixed&&a.bind("preUnfixed.ScrollToFixed",b.options.preUnfixed);b.options.postUnfixed&&a.bind("postUnfixed.ScrollToFixed",b.options.postUnfixed);b.options.preAbsolute&&a.bind("preAbsolute.ScrollToFixed",b.options.preAbsolute);b.options.postAbsolute&&
45a.bind("postAbsolute.ScrollToFixed",b.options.postAbsolute);b.options.fixed&&a.bind("fixed.ScrollToFixed",b.options.fixed);b.options.unfixed&&a.bind("unfixed.ScrollToFixed",b.options.unfixed);b.options.spacerClass&&g.addClass(b.options.spacerClass);a.bind("resize.ScrollToFixed",function(){g.height(a.height())});a.bind("scroll.ScrollToFixed",function(){a.trigger("preUnfixed.ScrollToFixed");q();a.trigger("unfixed.ScrollToFixed");r()});a.bind("detach.ScrollToFixed",function(c){c=c||window.event;c.preventDefault&&
46c.preventDefault();c.returnValue=false;a.trigger("preUnfixed.ScrollToFixed");q();a.trigger("unfixed.ScrollToFixed");e(window).unbind("resize.ScrollToFixed",E);e(window).unbind("scroll.ScrollToFixed",J);a.unbind(".ScrollToFixed");g.remove();b.$el.removeData("ScrollToFixed")});E()};b.init()};e.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1E3,baseClassName:"scroll-to-fixed-fixed"};e.fn.scrollToFixed=function(h){return this.each(function(){new e.ScrollToFixed(this,h)})}})(jQuery);
47(function(){var e,h;e=this.jQuery||window.jQuery;h=e(window);e.fn.stick_in_parent=function(i){var G,p,u,C,H,q,m,j,r,s,b;null==i&&(i={});b=i.fixed_class;H=i.inner_scrolling;s=i.recalc_every;r=i.parent;j=i.offset_top;m=i.spacer;p=i.bottoming;null==j&&(j=0);null==r&&(r=void 0);null==H&&(H=true);null==b&&(b="is_stuck");G=e(document);null==p&&(p=true);u=function(d,a,l,D,I,w,k,v){var x,z,g,E,J,c,f,A,B,y,n,F;if(!d.data("fixed_kit")){d.data("fixed_kit",true);J=G.height();f=d.parent();null!=r&&(f=f.closest(r));
48if(!f.length)throw"failed to find stick parent";x=g=false;(n=null!=m?m&&d.closest(m):e("<div ></div>"))&&n.css("position",d.css("position"));A=function(){var t,K,o;if(!v&&(J=G.height(),t=parseInt(f.css("border-top-width"),10),K=parseInt(f.css("padding-top"),10),a=parseInt(f.css("padding-bottom"),10),l=f.offset().top+t+K,D=f.height(),g&&(x=g=false,null==m&&(d.insertAfter(n),n.detach()),d.css({position:"",top:"",width:"",bottom:""}).removeClass(b),o=true),I=d.offset().top-(parseInt(d.css("margin-top"),10)||
490)-j,w=d.outerHeight(true),k=d.css("float"),n&&n.css({width:d.outerWidth(true),height:w,display:d.css("display"),"vertical-align":d.css("vertical-align"),"float":k}),o))return F()};A();if(w!==D)return E=void 0,c=j,y=s,F=function(){var t,K,o,L;if(!v&&(null!=y&&(--y,0>=y&&(y=s,A(),o=true)),o||G.height()===J||A(),o=h.scrollTop(),null!=E&&(K=o-E),E=o,g?(p&&(L=o+w+c>D+l,x&&!L&&(x=false,d.css({position:"fixed",bottom:"",top:c}).trigger("fixed_kit:unbottom"))),o<I&&(g=false,c=j,null==m&&("left"!==k&&"right"!==
50k||d.insertAfter(n),n.detach()),t={position:"",width:"",top:""},d.css(t).removeClass(b).trigger("fixed_kit:unstick")),H&&(t=h.height(),w+j>t&&!x&&(c-=K,c=Math.max(t-w,c),c=Math.min(j,c),g&&d.css({top:c+"px"})))):o>I&&(g=true,t={position:"fixed",top:c},t.width="border-box"===d.css("box-sizing")?d.outerWidth()+"px":d.width()+"px",d.css(t).addClass(b),null==m&&(d.after(n),"left"!==k&&"right"!==k||n.append(d)),d.trigger("fixed_kit:stick")),g&&p&&(null==L&&(L=o+w+c>D+l),!x&&L)))return x=true,"static"===
51f.css("position")&&f.css({position:"relative"}),d.css({position:"absolute",bottom:a,top:"auto"}).trigger("fixed_kit:bottom")},B=function(){A();return F()},z=function(){v=true;h.off("touchmove",F);h.off("scroll",F);h.off("resize",B);e(document.body).off("fixed_kit:recalc",B);d.off("fixed_kit:detach",z);d.removeData("fixed_kit");d.css({position:"",bottom:"",top:"",width:""});f.position("position","");if(g)return null==m&&("left"!==k&&"right"!==k||d.insertAfter(n),n.remove()),d.removeClass(b)},h.on("touchmove",
52F),h.on("scroll",F),h.on("resize",B),e(document.body).on("fixed_kit:recalc",B),d.on("fixed_kit:detach",z),setTimeout(F,0)}};C=0;for(q=this.length;C<q;C++){i=this[C];u(e(i))}return this}}).call(this);
53(function(e,a){function c(f,g){this.element=f;this.$elem=e(this.element);this.options=e.extend({},b,g);this.init()}var b={resizeWidth:"768",collapserTitle:"Main Menu",animSpeed:"medium",easingEffect:null,indentChildren:false,childrenIndenter:"  "},d=0;c.prototype={init:function(){var f,g=this.options,h=this.$elem;h.before('<div class="menu-collapser">'+g.collapserTitle+'<div class="collapse-button"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></div></div>');
54f=h.prev(".menu-collapser");h.on("click",".sub-collapser",function(i){i.preventDefault();i.stopPropagation();i=e(this).closest("li");e(this).hasClass("expanded")?(e(this).removeClass("expanded"),e(this).find("i").html("?"),i.find(">
54ul").slideUp(g.animSpeed,g.easingEffect)):(e(this).addClass("expanded"),e(this).find("i").html("?"),i.find(">ul").slideDown(g.animSpeed,g.easingEffect))});f.on("click",".collapse-button",function(i){i.preventDefault();h.slideToggle(g.animSpeed,g.easingEffect)});
55this.resizeMenu({data:{el:this.element,options:this.options}});e(a).on("resize",{el:this.element,options:this.options},this.resizeMenu)},resizeMenu:function(f){var g=e(a),h=f.data.options;f=e(f.data.el);var i=e("body").find(".menu-collapser");d!=g.width()&&(d=g.width(),f.find("li").each(function(){e(this).has("ul").length&&(e(this).has(".sub-collapser").length?e(this).children(".sub-collapser i").html("?"):e(this).append('<span class="sub-collapser"><i>?</i></span>'));e(this).children("ul").hide();
56e(this).find(".sub-collapser").removeClass("expanded").children("i").html("?")}),h.resizeWidth>=g.width()?(h.indentChildren&&f.find("ul").each(function(){var j=e(this).parents("ul").length;e(this).children("li").children("a").has("i").length||e(this).children("li").children("a").prepend(c.prototype.indent(j,h))}),f.find("li").has("ul").off("mouseenter mouseleave"),f.addClass("collapsed").hide(),i.show()):(f.find("li").has("ul").on("mouseenter",function(){e(this).find(">ul").stop().slideDown(h.animSpeed,
57h.easingEffect)}).on("mouseleave",function(){e(this).find(">ul").stop().slideUp(h.animSpeed,h.easingEffect)}),f.find("li > a > i").remove(),f.removeClass("collapsed").show(),i.hide()))},indent:function(f,g){for(var h="",i=0;f>i;i++)h+=g.childrenIndenter;return"<i>"+h+"</i>"}};e.fn.slimmenu=function(f){return this.each(function(){e.data(this,"plugin_slimmenu")||e.data(this,"plugin_slimmenu",new c(this,f))})}})(jQuery,window,document);jQuery.easing.jswing=jQuery.easing.swing;
58jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a+c;return-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){if((a/=d/2)<1)return b/
592*a*a*a+c;return b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a+c;return-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a*a+c;return b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,
60a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){if(a==0)return c;if(a==d)return c+b;if((a/=d/2)<1)return b/2*Math.pow(2,10*(a-1))+c;return b/2*(-Math.pow(2,-10*--a)+2)+c},
61easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){if((a/=d/2)<1)return-b/2*(Math.sqrt(1-a*a)-1)+c;return b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f))+c},easeOutElastic:function(e,
62a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d/2)==2)return c+b;f||(f=d*0.3*1.5);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);if(a<1)return-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c;return g*Math.pow(2,-10*(a-=1))*Math.sin((a*
63d-e)*2*Math.PI/f)*0.5+b+c},easeInBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*(a/=d)*a*((f+1)*a-f)+c}
63,easeOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;if((a/=d/2)<1)return b/2*a*a*(((f*=1.525)+1)*a-f)+c;return b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=
64d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){if(a<d/2)return jQuery.easing.easeInBounce(e,a*2,0,b,d)*0.5+c;return jQuery.easing.easeOutBounce(e,a*2-d,0,b,d)*0.5+b*0.5+c}});
65(function(c,l){var m=function(){var g={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},h=function(){var b=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return b&&c("html").css("cursor","pointer").on("click",c.noop),b}(),p=function(){var b=document.documentElement.style;return"behavior"in b&&"fill"in b&&/iemobile/i.test(navigator.userAgent)}(),q=!!l.PointerEvent,n=function(b,a,d){var j=g.menuClass;a.cssArrows&&
66(j+=" "+g.menuArrowClass);b[d?"addClass":"removeClass"](j)},r=function(b,a){return b.find("li."+a.pathClass).slice(0,a.pathLevels).addClass(a.hoverClass+" "+g.bcClass).filter(function(){return c(this).children(a.popUpSelector).hide().show().length}).removeClass(a.pathClass)},o=function(b,a){var d;b.children("a")[a?"addClass":"removeClass"](g.anchorClass)},s=function(b){var a=b.css("ms-touch-action"),d=b.css("touch-action");d="pan-y"===(d||a)?"auto":"pan-y";b.css({"ms-touch-action":d,"touch-action":d})},
67i=function(b){return b.closest("."+g.menuClass).data("sfOptions")},e=function(){var b=c(this),a=i(b);clearTimeout(a.sfTimer);b.siblings().superfish("hide").end().superfish("show")},f=function(b){b.retainPath=c.inArray(this[0],b.$path)>-1;this.superfish("hide");this.parents("."+b.hoverClass).length||(b.onIdle.call(this.closest("."+g.menuClass)),b.$path.length&&c.proxy(e,b.$path)())},t=function(){var b=c(this),a=i(b);h?c.proxy(f,b,a)():(clearTimeout(a.sfTimer),a.sfTimer=setTimeout(c.proxy(f,b,a),a.delay))},
68u=function(b){var a=c(this),d=i(a),j=a.siblings(b.data.popUpSelector);return d.onHandleTouch.call(j)===false?this:void(j.length>0&&j.is(":hidden")&&(a.one("click.superfish",false),"MSPointerDown"===b.type||"pointerdown"===b.type?a.trigger("focus"):c.proxy(e,a.parent("li"))()))};return{hide:function(b){if(this.length){var a=i(this);if(!a)return this;var d=a.retainPath===true?a.$path:"";d=this.find("li."+a.hoverClass).add(this).not(d).removeClass(a.hoverClass).children(a.popUpSelector);var j=a.speedOut;
69if(b&&(d.show(),j=0),a.retainPath=false,a.onBeforeHide.call(d)===false)return this;d.stop(true,true).animate(a.animationOut,j,function(){var k=c(this);a.onHide.call(k)})}return this},show:function(){var b=i(this);if(!b)return this;var a=this.addClass(b.hoverClass).children(b.popUpSelector);return b.onBeforeShow.call(a)===false?this:(a.stop(true,true).animate(b.animation,b.speed,function(){b.onShow.call(a)}),this)},destroy:function(){return this.each(function(){var b,a=c(this),d=a.data("sfOptions");
70return d?(b=a.find(d.popUpSelector).parent("li"),clearTimeout(d.sfTimer),n(a,d),o(b),s(a),a.off(".superfish").off(".hoverIntent"),b.children(d.popUpSelector).attr("style",function(j,k){return k.replace(/display[^;]+;?/g,"")}),d.$path.removeClass(d.hoverClass+" "+g.bcClass).addClass(d.pathClass),a.find("."+d.hoverClass).removeClass(d.hoverClass),d.onDestroy.call(a),void a.removeData("sfOptions")):false})},init:function(b){return this.each(function(){var a=c(this);if(a.data("sfOptions"))return false;
71var d=c.extend({},c.fn.superfish.defaults,b),j=a.find(d.popUpSelector).parent("li");d.$path=r(a,d);a.data("sfOptions",d);n(a,d,true);o(j,true);s(a);var k="li:has("+d.popUpSelector+")";c.fn.hoverIntent&&!d.disableHI?a.hoverIntent(e,t,k):a.on("mouseenter.superfish",k,e).on("mouseleave.superfish",k,t);k="MSPointerDown.superfish";q&&(k="pointerdown.superfish");h||(k+=" touchend.superfish");p&&(k+=" mousedown.superfish");a.on("focusin.superfish","li",e).on("focusout.superfish","li",t).on(k,"a",d,u);j.not("."+
72g.bcClass).superfish("hide",true);d.onInit.call(this)})}}}();c.fn.superfish=function(g){return m[g]?m[g].apply(this,Array.prototype.slice.call(arguments,1
72)):"object"!=typeof g&&g?c.error("Method "+g+" does not exist on jQuery.fn.superfish"):m.init.apply(this,arguments)};c.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:true,
73disableHI:false,onInit:c.noop,onBeforeShow:c.noop,onShow:c.noop,onBeforeHide:c.noop,onHide:c.noop,onIdle:c.noop,onDestroy:c.noop,onHandleTouch:c.noop}})(jQuery,window);
74(function(c){c.fn.hoverIntent=function(l,m,g){var h={interval:100,sensitivity:7,timeout:0};h="object"==typeof l?c.extend(h,l):c.isFunction(m)?c.extend(h,{over:l,out:m,selector:g}):c.extend(h,{over:l,out:l,selector:m});var p,q,n,r,o=function(i){p=i.pageX;q=i.pageY},s=function(i,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),Math.abs(n-p)+Math.abs(r-q)<h.sensitivity?(c(e).off("mousemove.hoverIntent",o),e.hoverIntent_s=1,h.over.apply(e,[i])):(n=p,r=q,e.hoverIntent_t=setTimeout(function(){s(i,
75e)},h.interval),void 0)};l=function(i){var e=jQuery.extend({},i),f=this;f.hoverIntent_t&&(f.hoverIntent_t=clearTimeout(f.hoverIntent_t));"mouseenter"==i.type?(n=e.pageX,r=e.pageY,c(f).on("mousemove.hoverIntent",o),1!=f.hoverIntent_s&&(f.hoverIntent_t=setTimeout(function(){s(e,f)},h.interval))):(c(f).off("mousemove.hoverIntent",o),1==f.hoverIntent_s&&(f.hoverIntent_t=setTimeout(function(){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;h.out.apply(f,[e])},h.timeout)))};return this.on({"mouseenter.hoverIntent":l,
76"mouseleave.hoverIntent":l},h.selector)}})(jQuery);
77(function(d,l){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(n){return l(d,n)}):"object"==typeof module&&module.exports?module.exports=l(d,require("jquery")):d.jQueryBridget=l(d,d.jQuery)})(window,function(d,l){function n(j,p,q){function m(g,e,b){var i,o="$()."+j+'("'+e+'")';return g.each(function(r,s){var t=q.data(s,j);if(!t)return void h(j+" not initialized. Cannot call methods, i.e. "+o);var u=t[e];if(!u||"_"==e.charAt(0))return void h(o+" is not a valid method");
78t=u.apply(t,b);i=void 0===i?t:i}),void 0!==i?i:g}function f(g,e){g.each(function(b,i){var o=q.data(i,j);o?(o.option(e),o._init()):(o=new p(i,e),q.data(i,j,o))})}(q=q||l||d.jQuery)&&(p.prototype.option||(p.prototype.option=function(g){q.isPlainObject(g)&&(this.options=q.extend(true,this.options,g))}),q.fn[j]=function(g){if("string"==typeof g){var e=a.call(arguments,1);return m(this,g,e)}return f(this,g),this},k(q))}function k(j){!j||j&&j.bridget||(j.bridget=n)}var a=Array.prototype.slice,c=d.console,
79h="undefined"==typeof c?function(){}:function(j){c.error(j)};return k(l||d.jQuery),n});
80(function(d,l){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",l):"object"==typeof module&&module.exports?module.exports=l():d.EvEmitter=l()})("undefined"!=typeof window?window:this,function(){function d(){}var l=d.prototype;return l.on=function(n,k){if(n&&k){var a=this._events=this._events||{};a=a[n]=a[n]||[];return a.indexOf(k)==-1&&a.push(k),this}},l.once=function(n,k){if(n&&k){this.on(n,k);var a=this._onceEvents=this._onceEvents||{};return(a[n]=a[n]||{})[k]=true,this}},l.off=
81function(n,k){var a=this._events&&this._events[n];if(a&&a.length){var c=a.indexOf(k);return c!=-1&&a.splice(c,1),this}},l.emitEvent=function(n,k){var a=this._events&&this._events[n];if(a&&a.length){var c=0,h=a[c];k=k||[];for(var j=this._onceEvents&&this._onceEvents[n];h;){var p=j&&j[h];p&&(this.off(n,h),delete j[h]);h.apply(this,k);c+=p?0:1;h=a[c]}return this}},d});
82(function(d,l){"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return l()}):"object"==typeof module&&module.exports?module.exports=l():d.getSize=l()})(window,function(){function d(q){var m=parseFloat(q);return q.indexOf("%")==-1&&!isNaN(m)&&m}function l(){}function n(q){q=getComputedStyle(q);return q||c("Style returned "+q+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),q}function k(q){if(!p){p=true;var m=document.createElement("div");
83m.style.width="200px";m.style.padding="1px 2px 3px 4px";m.style.borderStyle="solid";m.style.borderWidth="1px 2px 3px 4px";m.style.boxSizing="border-box";var f=document.body||document.documentElement;f.appendChild(m);var g=n(m);k.isBoxSizeOuter=a=200==d(g.width);f.removeChild(m)}if("string"==typeof q&&(q=document.querySelector(q)),q&&"object"==typeof q&&q.no
83deType){f=n(q);if("none"==f.display){m={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(f=0;f<j;f++)m[h[f]]=0;return m}m=
84{};m.width=q.offsetWidth;m.height=q.offsetHeight;q=m.isBorderBox="border-box"==f.boxSizing;for(g=0;g<j;g++){var e=h[g],b=parseFloat(f[e]);m[e]=isNaN(b)?0:b}g=m.paddingLeft+m.paddingRight;e=m.paddingTop+m.paddingBottom;b=m.marginLeft+m.marginRight;var i=m.marginTop+m.marginBottom,o=m.borderLeftWidth+m.borderRightWidth,r=m.borderTopWidth+m.borderBottomWidth;q=q&&a;var s=d(f.width);s!==false&&(m.width=s+(q?0:g+o));f=d(f.height);return f!==false&&(m.height=f+(q?0:e+r)),m.innerWidth=m.width-(g+o),m.innerHeight=
85m.height-(e+r),m.outerWidth=m.width+b,m.outerHeight=m.height+i,m}}var a,c="undefined"==typeof console?l:function(q){console.error(q)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],j=h.length,p=false;return k});
86(function(d,l){"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",l):"object"==typeof module&&module.exports?module.exports=l():d.matchesSelector=l()})(window,function(){var d=function(){var l=window.Element.prototype;if(l.matches)return"matches";if(l.matchesSelector)return"matchesSelector";for(var n=["webkit","moz","ms","o"],k=0;k<n.length;k++){var a=n[k]+"MatchesSelector";if(l[a])return a}}();return function(l,n){return l[d](n)}});
87(function(d,l){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
87sandro-matches-selector/matches-selector"],function(n){return l(d,n)}):"object"==typeof module&&module.exports?module.exports=l(d,require("desandro-matches-selector")):d.fizzyUIUtils=l(d,d.matchesSelector)})(window,function(d,l){var n={};n.extend=function(a,c){for(var h in c)a[h]=c[h];return a};n.modulo=function(a,c){return(a%c+c)%c};n.makeArray=function(a){var c=[];if(Array.isArray(a))c=a;else if(a&&"object"==
88typeof a&&"number"==typeof a.length)for(var h=0;h<a.length;h++)c.push(a[h]);else c.push(a);return c};n.removeFrom=function(a,c){var h=a.indexOf(c);h!=-1&&a.splice(h,1)};n.getParent=function(a,c){for(;a!=document.body;)if(a=a.parentNode,l(a,c))return a};n.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a};n.handleEvent=function(a){var c="on"+a.type;this[c]&&this[c](a)};n.filterFindElements=function(a,c){a=n.makeArray(a);var h=[];return a.forEach(function(j){if(j instanceof
89HTMLElement){if(!c)return void h.push(j);l(j,c)&&h.push(j);j=j.querySelectorAll(c);for(var p=0;p<j.length;p++)h.push(j[p])}}),h};n.debounceMethod=function(a,c,h){var j=a.prototype[c],p=c+"Timeout";a.prototype[c]=function(){var q=this[p];q&&clearTimeout(q);var m=arguments,f=this;this[p]=setTimeout(function(){j.apply(f,m);delete f[p]},h||100)}};n.docReady=function(a){var c=document.readyState;"complete"==c||"interactive"==c?setTimeout(a):document.addEventListener("DOMContentLoaded",a)};n.toDashed=function(a){return a.replace(/(.)([A-Z])/g,
90function(c,h,j){return h+"-"+j}).toLowerCase()};var k=d.console;return n.htmlInit=function(a,c){n.docReady(function(){var h=n.toDashed(c),j="data-"+h,p=document.querySelectorAll("["+j+"]");h=document.querySelectorAll(".js-"+h);p=n.makeArray(p).concat(n.makeArray(h));var q=j+"-options",m=d.jQuery;p.forEach(function(f){var g,e=f.getAttribute(j)||f.getAttribute(q);try{g=e&&JSON.parse(e)}catch(b){return void(k&&k.error("Error parsing "+j+" on "+f.className+": "+b))}g=new a(f,g);m&&m.data(f,c,g)})})},
91n});
92(function(d,l){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],l):"object"==typeof module&&module.exports?module.exports=l(require("ev-emitter"),require("get-size")):(d.Outlayer={},d.Outlayer.Item=l(d.EvEmitter,d.getSize))})(window,function(d,l){function n(f,g){f&&(this.element=f,this.layout=g,this.position={x:0,y:0},this._create())}var k=document.documentElement.style,a="string"==typeof k.transition?"transition":"WebkitTransition";k="string"==
93typeof k.transform?"transform":"WebkitTransform";var c={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],h={transform:k,transition:a,transitionDuration:a+"Duration",transitionProperty:a+"Property",transitionDelay:a+"Delay"},j=n.prototype=Object.create(d.prototype);j.constructor=n;j._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})};j.handleEvent=function(f){var g="on"+f.type;this[g]&&this[g](f)};j.getSize=function(){this.size=
94l(this.element)};j.css=function(f){var g=this.element.style,e;for(e in f)g[h[e]||e]=f[e]};j.getPosition=function(){var f=getComputedStyle(this.element),g=this.layout._getOption("originLeft"),e=this.layout._getOption("originTop"),b=f[g?"left":"right"],i=f[e?"top":"bottom"];f=this.layout.size;b=b.indexOf("%")!=-1?parseFloat(b)/100*f.width:parseInt(b,10);i=i.indexOf("%")!=-1?parseFloat(i)/100*f.height:parseInt(i,10);b=isNaN(b)?0:b;i=isNaN(i)?0:i;b-=g?f.paddingLeft:f.paddingRight;i-=e?f.paddingTop:f.paddingBottom;
95this.position.x=b;this.position.y=i};j.layoutPosition=function(){var f=this.layout.size,g={},e=this.layout._getOption("originLeft"),b=this.layout._getOption("originTop"),i=e?"right":"left";g[e?"left":"right"]=this.getXValue(this.position.x+f[e?"paddingLeft":"paddingRight"]);g[i]="";e=b?"bottom":"top";g[b?"top":"bottom"]=this.getYValue(this.position.y+f[b?"paddingTop":"paddingBottom"]);g[e]="";this.css(g);this.emitEvent("layout",[this])};j.getXValue=function(f){var g=this.layout._getOption("horizontal");
96return this.layout.options.percentPosition&&!g?f/this.layout.size.width*100+"%":f+"px"};j.getYValue=function(f){var g=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&g?f/this.layout.size.height*100+"%":f+"px"};j._transitionTo=function(f,g){this.getPosition();var e=this.position.x,b=this.position.y,i=parseInt(f,10),o=parseInt(g,10);i=i===this.position.x&&o===this.position.y;if(this.setPosition(f,g),i&&!this.isTransitioning)return void this.layoutPosition();i={};i.transform=
97this.getTranslate(f-e,g-b);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})};j.getTranslate=function(f,g){var e=this.layout._getOption("originLeft"),b=this.layout._getOption("originTop");return f=e?f:-f,g=b?g:-g,"translate3d("+f+"px, "+g+"px, 0)"};j.goTo=function(f,g){this.setPosition(f,g);this.layoutPosition()};j.moveTo=j._transitionTo;j.setPosition=function(f,g){this.position.x=parseInt(f,10);this.position.y=parseInt(g,10)};j._nonTransition=function(f){this.css(f.to);
98f.isCleaning&&this._removeStyles(f.to);for(var g in f.onTransitionEnd)f.onTransitionEnd[g].call(this)};j.transition=function(f){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(f);var g=this._transn,e;for(e in f.onTransitionEnd)g.onEnd[e]=f.onTransitionEnd[e];for(e in f.to){g.ingProperties[e]=true;f.isCleaning&&(g.clean[e]=true)}f.from&&this.css(f.from);this.enableTransition(f.to);this.css(f.to);this.isTransitioning=true};var p="opacity,"+function(f){return f.replace(/([A-Z])/g,
99function(g){return"-"+g.toLowerCase()})}(k);j.enableTransition=function(){if(!this.isTransitioning){var f=this.layout.options.transitionDuration;this.css({transitionProperty:p,transitionDuration:"number"==typeof f?f+"ms":f,transitionDelay:this.staggerDelay||0});this.element.addEventListener(c,this,false)}};j.onwebkitTransitionEnd=function(f){this.ontransitionend(f)};j.onotransitionend=function(f){this.ontransitionend(f)};var q={"-webkit-transform":"transform"};j.ontransitionend=function(f){if(f.target===
100this.element){var g=this._transn,e=q[f.propertyName]||f.propertyName;delete g.ingProperties[e];var b;a:{for(b in g.ingProperties){b=false;break a}b=true}if(b&&this.disableTransition(),e in g.clean&&(this.element.style[f.propertyName]="",delete g.clean[e]),e in g.onEnd){g.onEnd[e].call(this);delete g.onEnd[e]}this.emitEvent("transitionEnd",[this])}};j.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(c,this,false);this.isTransitioning=false};j._removeStyles=
101function(f){var g={},e;for(e in f)g[e]="";this.css(g)};var m={transitionProperty:"",transitionDuration:"",transitionDelay:""};return j.removeTransitionStyles=function(){this.css(m)},j.stagger=function(f){f=isNaN(f)?0:f;this.staggerDelay=f+"ms"},j.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},j.remove=function(){return a&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),
102void this.hide()):void this.removeElem()},j.reveal=function(){delete this.isHidden;this.css({display:""});var f=this.layout.options,g={},e=this.getHideRevealTransitionEndProperty("visibleStyle");g[e]=this.onRevealTransitionEnd;this.transition({from:f.hiddenStyle,to:f.visibleStyle,isCleaning:true,onTransitionEnd:g})},j.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},j.getHideRevealTransitionEndProperty=function(f){f=this.layout.options[f];if(f.opacity)return"opacity";for(var g in f)return g},
103j.hide=function(){this.isHidden=true;this.css({display:""});var f=this.layout.options,g={},e=this.getHideRevealTransitionEndProperty("hiddenStyle");g[e]=this.onHideTransitionEnd;this.transition({from:f.visibleStyle,to:f.hiddenStyle,isCleaning:true,onTransitionEnd:g})},j.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},j.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n});
104(function(d,l){"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(n,k,a,c){return l(d,n,k,a,
104c)}):"object"==typeof module&&module.exports?module.exports=l(d,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):d.Outlayer=l(d,d.EvEmitter,d.getSize,d.fizzyUIUtils,d.Outlayer.Item)})(window,function(d,l,n,k,a){function c(b,i){var o=k.getQueryElement(b);if(!o)return void(j&&
105j.error("Bad element for "+this.constructor.namespace+": "+(o||b)));this.element=o;p&&(this.$element=p(this.element));this.options=k.extend({},this.constructor.defaults);this.option(i);o=++m;this.element.outlayerGUID=o;f[o]=this;this._create();this._getOption("initLayout")&&this.layout()}function h(b){function i(){b.apply(this,arguments)}return i.prototype=Object.create(b.prototype),i.prototype.constructor=i,i}var j=d.console,p=d.jQuery,q=function(){},m=0,f={};c.namespace="outlayer";c.Item=a;c.defaults=
106{containerStyle:{position:"relative"},initLayout:true,originLeft:true,originTop:true,resize:true,resizeContainer:true,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var g=c.prototype;k.extend(g,l.prototype);g.option=function(b){k.extend(this.options,b)};g._getOption=function(b){var i=this.constructor.compatOptions[b];return i&&void 0!==this.options[i]?this.options[i]:this.options[b]};c.compatOptions={initLayout:"isInitLayout",
107horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"};g._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);k.extend(this.element.style,this.options.containerStyle);this._getOption("resize")&&this.bindResize()};g.reloadItems=function(){this.items=this._itemize(this.element.children)};g._itemize=function(b){b=this._filterFindItemElements(b);for(var i=this.constructor.Item,
108o=[],r=0;r<b.length;r++){var s=new i(b[r],this);o.push(s)}return o};g._filterFindItemElements=function(b){return k.filterFindElements(b,this.options.itemSelector)};g.getItemElements=function(){return this.items.map(function(b){return b.element})};g.layout=function(){this._resetLayout();this._manageStamps();var b=this._getOption("layoutInstant");this.layoutItems(this.items,void 0!==b?b:!this._isLayoutInited);this._isLayoutInited=true};g._init=g.layout;g._resetLayout=function(){this.getSize()};g.getSize=
109function(){this.size=n(this.element)};g._getMeasurement=function(b,i){var o,r=this.options[b];r?("string"==typeof r?this.element.querySelector(r):r instanceof HTMLElement&&(o=r),this[b]=o?n(o)[i]:r):this[b]=0};g.layoutItems=function(b,i){b=this._getItemsForLayout(b);this._layoutItems(b,i);this._postLayout()};g._getItemsForLayout=function(b){return b.filter(function(i){return!i.isIgnored})};g._layoutItems=function(b,i){if(this._emitCompleteOnItems("layout",b),b&&b.length){var o=[];b.forEach(function(r){var s=
110this._getItemLayoutPosition(r);s.item=r;s.isInstant=i||r.isLayoutInstant;o.push(s)},this);this._processLayoutQueue(o)}};g._getItemLayoutPosition=function(){return{x:0,y:0}};g._processLayoutQueue=function(b){this.updateStagger();b.forEach(function(i,o){this._positionItem(i.item,i.x,i.y,i.isInstant,o)},this)};g.updateStagger=function(){var b=this.options.stagger;if(null===b||void 0===b)b=void(this.stagger=0);else{if("number"!=typeof b){var i=b.match(/(^\d*\.?\d*)(\w*)/);b=i&&i[1];i=i&&i[2];if(b.length){b=
111parseFloat(b);b*=e[i]||1}else b=0}b=(this.stagger=b,this.stagger)}return b};g._positionItem=function(b,i,o,r,s){r?b.goTo(i,o):(b.stagger(s*this.stagger),b.moveTo(i,o))};g._postLayout=function(){this.resizeContainer()};g.resizeContainer=function(){if(this._getOption("resizeContainer")){var b=this._getContainerSize();b&&(this._setContainerMeasure(b.width,true),this._setContainerMeasure(b.height,fal
111se))}};g._getContainerSize=q;g._setContainerMeasure=function(b,i){if(void 0!==b){var o=this.size;o.isBorderBox&&
112(b+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth);b=Math.max(b,0);this.element.style[i?"width":"height"]=b+"px"}};g._emitCompleteOnItems=function(b,i){function o(){s.dispatchEvent(b+"Complete",null,[i])}function r(){u++;u==t&&o()}var s=this,t=i.length;if(!i||!t)return void o();var u=0;i.forEach(function(v){v.once(b,r)})};g.dispatchEvent=function(b,i,o){var r=i?[i].concat(o):o;if(this.emitEvent(b,r),p)if(this.$element=
113this.$element||p(this.element),i){i=p.Event(i);i.type=b;this.$element.trigger(i,o)}else this.$element.trigger(b,o)};g.ignore=function(b){(b=this.getItem(b))&&(b.isIgnored=true)};g.unignore=function(b){(b=this.getItem(b))&&delete b.isIgnored};g.stamp=function(b){(b=this._find(b))&&(this.stamps=this.stamps.concat(b),b.forEach(this.ignore,this))};g.unstamp=function(b){(b=this._find(b))&&b.forEach(function(i){k.removeFrom(this.stamps,i);this.unignore(i)},this)};g._find=function(b){if(b)return"string"==
114typeof b&&(b=this.element.querySelectorAll(b)),k.makeArray(b)};g._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))};g._getBoundingRect=function(){var b=this.element.getBoundingClientRect(),i=this.size;this._boundingRect={left:b.left+i.paddingLeft+i.borderLeftWidth,top:b.top+i.paddingTop+i.borderTopWidth,right:b.right-(i.paddingRight+i.borderRightWidth),bottom:b.bottom-(i.paddingBottom+i.borderBottomWidth)}};g._manageStamp=
115q;g._getElementOffset=function(b){var i=b.getBoundingClientRect(),o=this._boundingRect;b=n(b);return{left:i.left-o.left-b.marginLeft,top:i.top-o.top-b.marginTop,right:o.right-i.right-b.marginRight,bottom:o.bottom-i.bottom-b.marginBottom}};g.handleEvent=k.handleEvent;g.bindResize=function(){d.addEventListener("resize",this);this.isResizeBound=true};g.unbindResize=function(){d.removeEventListener("resize",this);this.isResizeBound=false};g.onresize=function(){this.resize()};k.debounceMethod(c,"onresize",
116100);g.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()};g.needsResizeLayout=function(){var b=n(this.element);return this.size&&b&&b.innerWidth!==this.size.innerWidth};g.addItems=function(b){b=this._itemize(b);return b.length&&(this.items=this.items.concat(b)),b};g.appended=function(b){b=this.addItems(b);b.length&&(this.layoutItems(b,true),this.reveal(b))};g.prepended=function(b){b=this._itemize(b);if(b.length){var i=this.items.slice(0);this.items=b.concat(i);this._resetLayout();
117this._manageStamps();this.layoutItems(b,true);this.reveal(b);this.layoutItems(i)}};g.reveal=function(b){if(this._emitCompleteOnItems("reveal",b),b&&b.length){var i=this.updateStagger();b.forEach(function(o,r){o.stagger(r*i);o.reveal()})}};g.hide=function(b){if(this._emitCompleteOnItems("hide",b),b&&b.length){var i=this.updateStagger();b.forEach(function(o,r){o.stagger(r*i);o.hide()})}};g.revealItemElements=function(b){this.reveal(this.getItems(b))};g.hideItemElements=function(b){this.hide(this.getItems(b))};
118g.getItem=function(b){for(var i=0;i<this.items.length;i++){var o=this.items[i];if(o.element==b)return o}};g.getItems=function(b){b=k.makeArray(b);var i=[];return b.forEach(function(o){(o=this.getItem(o))&&i.push(o)},this),i};g.remove=function(b){b=this.getItems(b);this._emitCompleteOnItems("remove",b);b&&b.length&&b.forEach(function(i){i.remove();k.removeFrom(this.items,i)},this)};g.destroy=function(){var b=this.element.style;b.height="";b.position="";b.width="";this.items.forEach(function(i){i.destroy()});
119this.unbindResize();delete f[this.element.outlayerGUID];delete this.element.outlayerGUID;p&&p.removeData(this.element,this.constructor.namespace)};c.data=function(b){return(b=(b=k.getQueryElement(b))&&b.outlayerGUID)&&f[b]};c.create=function(b,i){var o=h(c);return o.defaults=k.extend({},c.defaults),k.extend(o.defaults,i),o.compatOptions=k.extend({},c.compatOptions),o.namespace=b,o.data=c.data,o.Item=h(a),k.htmlInit(o,b),p&&p.bridget&&p.bridget(b,o),o};var e={ms:1,s:1E3};return c.Item=a,c});
120(function(d,l){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],l):"object"==typeof module&&module.exports?module.exports=l(require("outlayer")):(d.Isotope=d.Isotope||{},d.Isotope.Item=l(d.Outlayer))})(window,function(d){function l(){d.Item.apply(this,arguments)}var n=l.prototype=Object.create(d.Item.prototype),k=n._create;n._create=function(){this.id=this.layout.itemGUID++;k.call(this);this.sortData={}};n.updateSortData=function(){if(!this.isIgnored){this.sortData.id=
121this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();var c=this.layout.options.getSortData,h=this.layout._sorters,j;for(j in c)this.sortData[j]=(0,h[j])(this.element,this)}};var a=n.destroy;return n.destroy=function(){a.apply(this,arguments);this.css({display:""})},l});
122(function(d,l){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],l):"object"==typeof module&&module.exports?module.exports=l(require("get-size"),require("outlayer")):(d.Isotope=d.Isotope||{},d.Isotope.LayoutMode=l(d.getSize,d.Outlayer))}
122)(window,function(d,l){function n(a){(this.isotope=a)&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}var k=n.prototype;return["_resetLayout",
123"_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(a){k[a]=function(){return l.prototype[a].apply(this.isotope,arguments)}}),k.needsVerticalResizeLayout=function(){var a=d(this.isotope.element);return this.isotope.size&&a&&a.innerHeight!=this.isotope.size.innerHeight},k._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},k.getColumnWidth=function(){this.getSegmentSize("column","Width")},k.getRowHeight=
124function(){this.getSegmentSize("row","Height")},k.getSegmentSize=function(a,c){var h=a+c,j="outer"+c;if(this._getMeasurement(h,j),!this[h]){var p=this.getFirstItemSize();this[h]=p&&p[j]||this.isotope.size["inner"+c]}},k.getFirstItemSize=function(){var a=this.isotope.filteredItems[0];return a&&a.element&&d(a.element)},k.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},k.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},n.modes={},n.create=function(a,c){function h(){n.apply(this,
125arguments)}return h.prototype=Object.create(k),h.prototype.constructor=h,c&&(h.options=c),h.prototype.namespace=a,n.modes[a]=h,h},n});
126(function(d,l){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],l):"object"==typeof module&&module.exports?module.exports=l(require("outlayer"),require("get-size")):d.Masonry=l(d.Outlayer,d.getSize)})(window,function(d,l){var n=d.create("masonry");return n.compatOptions.fitWidth="isFitWidth",n.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();
127this.colYs=[];for(var k=0;k<this.cols;k++)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var k=this.items[0];this.columnWidth=(k=k&&k.element)&&l(k).outerWidth||this.containerWidth}k=this.columnWidth+=this.gutter;var a=this.containerWidth+this.gutter,c=k-a%k;k=Math[c&&c<1?"round":"floor"](a/k);this.cols=Math.max(k,1)},n.prototype.getContainerWidth=function(){var k=this._getOption("fitWidth")?this.element.parentNode:this.element;
128this.containerWidth=(k=l(k))&&k.innerWidth},n.prototype._getItemLayoutPosition=function(k){k.getSize();var a=k.size.outerWidth%this.columnWidth;a=Math[a&&a<1?"round":"ceil"](k.size.outerWidth/this.columnWidth);a=Math.min(a,this.cols);var c=this._getColGroup(a),h=Math.min.apply(Math,c);a=c.indexOf(h);var j={x:this.columnWidth*a,y:h};k=h+k.size.outerHeight;c=this.cols+1-c.length;for(h=0;h<c;h++)this.colYs[a+h]=k;return j},n.prototype._getColGroup=function(k){if(k<2)return this.colYs;for(var a=[],c=
129this.cols+1-k,h=0;h<c;h++){var j=this.colYs.slice(h,h+k);a[h]=Math.max.apply(Math,j)}return a},n.prototype._manageStamp=function(k){var a=l(k),c=this._getElementOffset(k);k=this._getOption("originLeft")?c.left:c.right;var h=k+a.outerWidth,j=Math.floor(k/this.columnWidth);j=Math.max(0,j);k=Math.floor(h/this.columnWidth);k-=h%this.columnWidth?0:1;k=Math.min(this.cols-1,k);a=(this._getOption("originTop")?c.top:c.bottom)+a.outerHeight;for(c=j;c<=k;c++)this.colYs[c]=Math.max(a,this.colYs[c])},n.prototype._getContainerSize=
130function(){this.maxY=Math.max.apply(Math,this.colYs);var k={height:this.maxY};return this._getOption("fitWidth")&&(k.width=this._getContainerFitWidth()),k},n.prototype._getContainerFitWidth=function(){for(var k=0,a=this.cols;--a&&0===this.colYs[a];)k++;return(this.cols-k)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var k=this.containerWidth;return this.getContainerWidth(),k!=this.containerWidth},n});
131(function(d,l){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],l):"object"==typeof module&&module.exports?module.exports=l(require("../layout-mode"),require("masonry-layout")):l(d.Isotope.LayoutMode,d.Masonry)})(window,function(d,l){var n=d.create("masonry"),k=n.prototype,a={_getElementOffset:true,layout:true,_getMeasurement:true},c;for(c in l.prototype)a[c]||(k[c]=l.prototype[c]);var h=k.measureColumns;k.measureColumns=function(){this.items=
132this.isotope.filteredItems;h.call(this)};var j=k._getOption;return k._getOption=function(p){return"fitWidth"==p?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:j.apply(this.isotope,arguments)},n});
133(function(d,l){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],l):"object"==typeof exports?module.exports=l(require("../layout-mode")):l(d.Isotope.LayoutMode)}
133)(window,function(d){d=d.create("fitRows");var l=d.prototype;return l._resetLayout=function(){this.maxY=this.y=this.x=0;this._getMeasurement("gutter","outerWidth")},l._getItemLayoutPosition=function(n){n.getSize();var k=n.size.outerWidth+this.gutter,a=this.isotope.size.innerWidth+this.gutter;
1340!==this.x&&k+this.x>a&&(this.x=0,this.y=this.maxY);a={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=k,a},l._getContainerSize=function(){return{height:this.maxY}},d});
135(function(d,l){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],l):"object"==typeof module&&module.exports?module.exports=l(require("../layout-mode")):l(d.Isotope.LayoutMode)})(window,function(d){d=d.create("vertical",{horizontalAlignment:0});var l=d.prototype;return l._resetLayout=function(){this.y=0},l._getItemLayoutPosition=function(n){n.getSize();var k=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,a=this.y;return this.y+=
136n.size.outerHeight,{x:k,y:a}},l._getContainerSize=function(){return{height:this.y}},d});
137(function(d,l){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(n,k,a,c,h,j){return l(d,n,k,a,c,h,j)}):"object"==typeof module&&module.exports?module.exports=l(d,require("outlayer"),require("get-size"),require("desandro-matches-selector"),
138require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):d.Isotope=l(d,d.Outlayer,d.getSize,d.matchesSelector,d.fizzyUIUtils,d.Isotope.Item,d.Isotope.LayoutMode)})(window,function(d,l,n,k,a,c,h){function j(e,b){return function(i,o){for(var r=0;r<e.length;r++){var s=e[r],t=i.sortData[s],u=o.sortData[s];if(t>u||t<u)return(t>u?1:-1)*((void 0!==
139b[s]?b[s]:b)?1:-1)}return 0}}var p=d.jQuery,q=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},m=l.create("isotope",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});m.Item=c;m.LayoutMode=h;d=m.prototype;d._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();l.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var e in h.modes)this._initLayoutMode(e)};d.reloadItems=
140function(){this.itemGUID=0;l.prototype.reloadItems.call(this)};d._itemize=function(){for(var e=l.prototype._itemize.apply(this,arguments),b=0;b<e.length;b++)e[b].id=this.itemGUID++;return this._updateItemsSortData(e),e};d._initLayoutMode=function(e){var b=h.modes[e],i=this.options[e]||{};this.options[e]=b.options?a.extend(b.options,i):i;this.modes[e]=new b(this)};d.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()};d._layout=function(){var e=
141this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,e);this._isLayoutInited=true};d.arrange=function(e){this.option(e);this._getIsInstant();e=this._filter(this.items);this.filteredItems=e.matches;this._bindArrangeComplete();this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e);this._sort();this._layout()};d._init=d.arrange;d._hideReveal=function(e){this.reveal(e.needReveal);this.hide(e.needHide)};d._getIsInstant=function(){var e=
142this._getOption("layoutInstant");e=void 0!==e?e:!this._isLayoutInited;return this._isInstant=e,e};d._bindArrangeComplete=function(){function e(){b&&i&&o&&r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}var b,i,o,r=this;this.once("layoutComplete",function(){b=true;e()});this.once("hideComplete",function(){i=true;e()});this.once("revealComplete",function(){o=true;e()})};d._filter=function(e){var b=this.options.filter,i=[],o=[],r=[];b=this._getFilterTest(b||"*");for(var s=0;s<e.length;s++){var t=
143e[s];if(!t.isIgnored){var u=b(t);u&&i.push(t);u&&t.isHidden?o.push(t):u||t.isHidden||r.push(t)}}return{matches:i,needReveal:o,needHide:r}};d._getFilterTest=function(e){return p&&this.options.isJQueryFiltering?function(b){return p(b.element).is(e)}:"function"==typeof e?function(b){return e(b.element)}:function(b){return k(b.element,e)}};d.updateSortData=function(e){var b;e?(e=a.makeArray(e),b=this.getItems(e)):b=this.items;this._getSorters();this._updateItemsSortData(b)};d._getSorters=function(){var e=
144this.options.getSortData,b;for(b in e)this._sorters[b]=f(e[b])};d._updateItemsSortData=function(e){for(var b=e&&e.length,i=0;b&&i<b;i++)e[i].updateSortData()};var f=function(){function e(b,i){return b?function(o){return o.getAttribute(b)}:function(o){return(o=o.querySelector(i))&&o.textContent}}return function(b){if("string"!=typeof b)return b;b=q(b).split(" ");var i=b[0],o=i.match(/^\[(.+)\]$/),r=e(o&&o[1],i),s=m.sortDataParsers[b[1]];return b=s?function(t){return t&&s(r(t))}:function(t){return t&&
145r(t)}}}();m.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}};d._sort=function(){if(this.options.sortBy){var e=a.makeArray(this.options.sortBy);this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory));this.filteredItems.sort(j(this.sortHistory,this.options.sortAscending))}};d._getIsSameSortBy=function(e){for(var b=0;b<e.length;b++)if(e[b]!=this.sortHistory[b])return false;return true};d._mode=function(){var e=this.options.layoutMode,
146b=this.modes[e];if(!b)throw Error("No layout mode: "+e);return b.options=this.options[e],b};d._resetLayout=function(){l.prototype._resetLayout.call(this);this._mode()._resetLayout()};d._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)};d._manageStamp=function(e){this._mode()._manageStamp(e)};d._getContainerSize=function(){return this._mode()._getContainerSize()};d.needsResizeLayout=function(){return this._mode().needsResizeLayout()};d.appended=function(e){e=this.addItems(e);
147if(e.length)this.filteredItems=this.filteredItems.concat(this._filterRevealAdded(e))};d.prepended=function(e){e=this._itemize(e);if(e.length){this._resetLayout();this._manageStamps();var b=this._filterRevealAdded(e);this.layoutItems(this.filteredItems);this.filteredItems=b.concat(this.filteredItems);this.items=e.concat(this.items)}};d._filterRevealAdded=function(e){e=this._filter(e);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,true),e.matches};d.insert=function(e){e=
148this.addItems(e);if(e.length){var b,i,o=e.length;for(b=0;b<o;b++){i=e[b];this.element.appendChild(i.element)}i=this._filter(e).matches;for(b=0;b<o;b++)e[b].isLayoutInstant=true;this.arrange();for(b=0;b<o;b++)delete e[b].isLayoutInstant;this.reveal(i)}};var g=d.remove;return d.remove=function(e){e=a.makeArray(e);var b=this.getItems(e);g.call(this,e);e=b&&b.length;for(var i=0;e&&i<e;i++)a.removeFrom(this.filteredItems,b[i])},d.shuffle=function(){for(var e=0;e<this.items.length;e++)this.items[e].sortData.random=
149Math.random();this.options.sortBy="random";this._sort();this._layout()},d._noTransition=function(e,b){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=e.apply(this,b);return this.options.transitionDuration=i,o},d.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},m});
150(function(d,l){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",l):"object"==typeof module&&module.exports?module.exports=l():d.EvEmitter=l()})("undefined"!=typeof window?window:this,function(){function d(){}var l=d.prototype;return l.on=function(n,k){if(n&&k){var a=this._events=this._events||{};a=a[n]=a[n]||[];return-1==a.indexOf(k)&&a.push(k),this}},l.once=function(n,k){if(n&&k){this.on(n,k);var a=this._onceEvents=this._onceEvents||{};return(a[n]=a[n]||{})[k]=true,this}},l.off=
151function(n,k){var a=this._events&&this._events[n];if(a&&a.length){var c=a.indexOf(k);return-1!=c&&a.splice(c,1),this}},l.emitEvent=function(n,k){var a=this._events&&this._events[n];if(a&&a.length){var c=0,h=a[c];k=k||[];for(var j=this._onceEvents&&this._onceEvents[n];h;){var p=j&&j[h];p&&(this.off(n,h),delete j[h]);h.apply(this,k);c+=p?0:1;h=a[c]}return this}},d});
152(function(d,l){"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(n){return l(d,n)}):"object"==typeof module&&module.exports?module.exports=l(d,require("ev-emitter")):d.imagesLoaded=l(d,d.EvEmitter)})(window,function(d,l){function n(m,f){for(var g in f)m[g]=f[g];return m}function k(m){var f=[];if(Array.isArray(m))f=m;else if("number"==typeof m.length)for(var g=0;g<m.length;g++)f.push(m[g]);else f.push(m);return f}function a(m,f,g){return this instanceof a?("string"==typeof m&&
153(m=document.querySelectorAll(m)),this.elements=k(m),this.options=n({},this.options),"function"==typeof f?g=f:n(this.options,f),g&&this.on("always",g),this.getImages(),j&&(this.jqDeferred=new j.Deferred),void setTimeout(function(){this.check()}.bind(this))):new a(m,f,g)}function c(m){this.img=m}function h(m,f){this.url=m;this.element=f;this.img=new Image}var j=d.jQuery,p=d.console;a.prototype=Object.create(l.prototype);a.prototype.options={};a.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,
154this)};a.prototype.addElementImages=function(m){"IMG"==m.nodeName&&this.addImage(m);this.options.background===true&&this.addElementBackgroundImages(m);var f=m.nodeType;if(f&&q[f]){var g=m.querySelectorAll("img");for(f=0;f<g.length;f++)this.addImage(g[f]);if("string"==typeof this.options.background){m=m.querySelectorAll(this.options.background);for(f=0;f<m.length;
154f++)this.addElementBackgroundImages(m[f])}}};var q={1:true,9:true,11:true};return a.prototype.addElementBackgroundImages=function(m){var f=
155getComputedStyle(m);if(f)for(var g=/url\((['"])?(.*?)\1\)/gi,e=g.exec(f.backgroundImage);null!==e;){(e=e&&e[2])&&this.addBackground(e,m);e=g.exec(f.backgroundImage)}},a.prototype.addImage=function(m){this.images.push(new c(m))},a.prototype.addBackground=function(m,f){this.images.push(new h(m,f))},a.prototype.check=function(){function m(g,e,b){setTimeout(function(){f.progress(g,e,b)})}var f=this;return this.progressedCount=0,this.hasAnyBroken=false,this.images.length?void this.images.forEach(function(g){g.once("progress",
156m);g.check()}):void this.complete()},a.prototype.progress=function(m,f,g){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!m.isLoaded;this.emitEvent("progress",[this,m,f]);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,m);this.progressedCount==this.images.length&&this.complete();this.options.debug&&p&&p.log("progress: "+g,m,f)},a.prototype.complete=function(){var m=this.hasAnyBroken?"fail":"done";if(this.isComplete=true,this.emitEvent(m,[this]),this.emitEvent("always",
157[this]),this.jqDeferred)this.jqDeferred[this.hasAnyBroken?"reject":"resolve"](this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},c.prototype.getIsImageComplete=
158function(){return this.img.complete&&void 0!==this.img.naturalWidth},c.prototype.confirm=function(m,f){this.isLoaded=m;this.emitEvent("progress",[this,this.img,f])},c.prototype.handleEvent=function(m){var f="on"+m.type;this[f]&&this[f](m)},c.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()},c.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",
159this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},h.prototype=Object.create(c.prototype),h.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},h.prototype.confirm=
160function(m,f){this.isLoaded=m;this.emitEvent("progress",[this,this.element,f])},a.makeJQueryPlugin=function(m){(m=m||d.jQuery)&&(j=m,j.fn.imagesLoaded=function(f,g){return(new a(this,f,g)).jqDeferred.promise(j(this))})},a.makeJQueryPlugin(),a});
161(function(d){typeof define==="function"&&define.amd?define(["jquery"],d):d(jQuery)})(function(d,l){d.infinitescroll=function(a,c,h){this.element=d(h);if(!this._create(a,c))this.failed=true};d.infinitescroll.defaults={loading:{finished:l,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"data:image/gif;base64,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",
162msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:l},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,isBeyondMaxPage:false,currPage:1},debug:false,behavior:l,binder:d(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:l,dataType:"html",appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,
163pixelsFromNavToBottom:l,path:l,prefill:false,maxPage:l};d.infinitescroll.prototype={_binding:function(a){var c=this,h=c.options;h.v="2.0b2.120520";if(h.behavior&&this["_binding_"+h.behavior]!==l)this["_binding_"+h.behavior].call(this);else{if(a!=="bind"&&a!=="unbind"){this._debug("Binding value "+a+" not valid");return false}if(a==="unbind")this.options.binder.unbind("smartscroll.infscr."+c.options.infid);else this.options.binder[a]("smartscroll.infscr."+c.options.infid,function(){c.scroll()});this._debug("Binding",
164a)}},_create:function(a,c){var h=d.extend(true,{},d.infinitescroll.defaults,a);this.options=h;var j=d(window);
164if(!this._validate(a))return false;var p=d(h.nextSelector).attr("href");if(!p){this._debug("Navigation selector not found");return false}h.path=h.path||this._determinepath(p);h.contentSelector=h.contentSelector||this.element;h.loading.selector=h.loading.selector||h.contentSelector;h.loading.msg=h.loading.msg||d('<div id="infscr-loading"><img alt="Loading..." src="'+h.loading.img+'" /><div>'+
165h.loading.msgText+"</div></div>");(new Image).src=h.loading.img;if(h.pixelsFromNavToBottom===l){h.pixelsFromNavToBottom=d(document).height()-d(h.navSelector).offset().top;this._debug("pixelsFromNavToBottom: "+h.pixelsFromNavToBottom)}var q=this;h.loading.start=h.loading.start||function(){d(h.navSelector).hide();h.loading.msg.appendTo(h.loading.selector).show(h.loading.speed,d.proxy(function(){this.beginAjax(h)},q))};h.loading.finished=h.loading.finished||function(){h.state.isBeyondMaxPage||h.loading.msg.fadeOut(h.loading.speed)};
166h.callback=function(m,f,g){h.behavior&&m["_callback_"+h.behavior]!==l&&m["_callback_"+h.behavior].call(d(h.contentSelector)[0],f,g);c&&c.call(d(h.contentSelector)[0],f,h,g);h.prefill&&j.bind("resize.infinite-scroll",m._prefill)};if(a.debug)if(Function.prototype.bind&&(typeof console==="object"||typeof console==="function")&&typeof console.log==="object")["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(m){console[m]=this.call(console[m],console)},Function.prototype.bind);
167this._setup();h.prefill&&this._prefill();return true},_prefill:function(){var a=this,c=d(window);this._prefill=function(){d(a.options.contentSelector).height()<=c.height()&&a.scroll();c.bind("resize.infinite-scroll",function(){if(d(a.options.contentSelector).height()<=c.height()){c.unbind("resize.infinite-scroll");a.scroll()}})};this._prefill()},_debug:function(){if(true===this.options.debug)if(typeof console!=="undefined"&&typeof console.log==="function")Array.prototype.slice.call(arguments).length===
1681&&typeof Array.prototype.slice.call(arguments)[0]==="string"?console.log(Array.prototype.slice.call(arguments).toString()):console.log(Array.prototype.slice.call(arguments));else!Function.prototype.bind&&typeof console!=="undefined"&&typeof console.log==="object"&&Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))},_determinepath:function(a){var c=this.options;if(c.behavior&&this["_determinepath_"+c.behavior]!==l)return this["_determinepath_"+c.behavior].call(this,
169a);if(c.pathParse){this._debug("pathParse manual");return c.pathParse(a,this.options.state.currPage+1)}else if(a.match(/^(.*?)\b2\b(.*?$)/))a=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);a=a.match(/^(.*?)2(.*?$)/).slice(1)}else if(a.match(/^(.*?page=)1(\/.*|$)/))return a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);else{this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");
170c.state.isInvalidPage=true}this._debug("determinePath",a);return a},_error:function(a){var c=this.options;if(c.behavior&&this["_error_"+c.behavior]!==l)this["_error_"+c.behavior].call(this,a);else{if(a!=="destroy"&&a!=="end")a="unknown";this._debug("Error",a);if(a==="end"||c.state.isBeyondMaxPage)this._showdonemsg();c.state.isDone=true;c.state.currPage=1;c.state.isPaused=false;c.state.isBeyondMaxPage=false;this._binding("unbind")}},_loadcallback:function(a,c,h){var j=this.options,p=this.options.callback,
171q=j.state.isDone?"done":!j.appendCallback?"no-append":"append";if(j.behavior&&this["_loadcallback_"+j.behavior]!==l)this["_loadcallback_"+j.behavior].call(this,a,c);else{switch(q){case "done":this._showdonemsg();return false;case "no-append":if(j.dataType==="html")c=d("<div>"+c+"</div>").find(j.itemSelector);if(c.length===0)return this._error("end");break;case "append":q=a.children();if(q.length===0)return this._error("end");for(c=document.createDocumentFragment();a[0].firstChild;)c.appendChild(a[0].firstChild);
172this._debug("contentSelector",d(j.contentSelector)[0]);d(j.contentSelector)[0].appendChild(c);c=q.get()}j.loading.finished.call(d(j.contentSelector)[0],j);if(j.animate){a=d(window).scrollTop()+d(j.loading.msg).height()+j.extraScrollPx+"px";d("html,body").animate({scrollTop:a},800,function(){j.state.isDuringAjax=false})}if(!j.animate)j.state.isDuringAjax=false;p(this,c,h);j.prefill&&this._prefill()}},_nearbottom:function(){var a=this.options,c=0+d(document).height()-a.binder.scrollTop()-d(window).height();
173if(a.behavior&&this["_nearbottom_"+a.behavior]!==l)return this["_nearbottom_"+a.behavior].call(this);this._debug("math:",c,a.pixelsFromNavToBottom);return c-a.bufferPx<a.pixelsFromNavToBottom},_pausing:function(a){var c=this.options;if(c.behavior&&this["_pausing_"+c.behavior]!==l)this["_pausing_"+c.behavior].call(this,a);else{a!=="pause"&&a!=="resume"&&a!==null&&this._debug("Invalid argument. Toggling pause value instead");switch(a&&(a==="pause"||a==="resume")?a:"toggle"){case "pause":c.state.isPau
173sed=
174true;break;case "resume":c.state.isPaused=false;break;case "toggle":c.state.isPaused=!c.state.isPaused}this._debug("Paused",c.state.isPaused);return false}},_setup:function(){var a=this.options;if(a.behavior&&this["_setup_"+a.behavior]!==l)this["_setup_"+a.behavior].call(this);else{this._binding("bind");return false}},_showdonemsg:function(){var a=this.options;if(a.behavior&&this["_showdonemsg_"+a.behavior]!==l)this["_showdonemsg_"+a.behavior].call(this);else{a.loading.msg.find("img").hide().parent().find("div").html(a.loading.finishedMsg).animate({opacity:1},
1752E3,function(){d(this).parent().fadeOut(a.loading.speed)});a.errorCallback.call(d(a.contentSelector)[0],"done")}},_validate:function(a){for(var c in a)if(c.indexOf&&c.indexOf("Selector")>-1&&d(a[c]).length===0){this._debug("Your "+c+" found no elements.");return false}return true},bind:function(){this._binding("bind")},destroy:function(){this.options.state.isDestroyed=true;this.options.loading.finished();return this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},
176beginAjax:function(a){var c=this,h=a.path,j,p,q;a.state.currPage++;if(a.maxPage!==l&&a.state.currPage>a.maxPage){a.state.isBeyondMaxPage=true;this.destroy()}else{j=d(a.contentSelector).is("table, tbody")?d("<tbody></tbody>"):d("<div></div>");p=typeof h==="function"?h(a.state.currPage):h.join(a.state.currPage);c._debug("heading into ajax",p);h=a.dataType==="html"||a.dataType==="json"?a.dataType:"html+callback";if(a.appendCallback&&a.dataType==="html")h+="+callback";switch(h){case "html+callback":c._debug("Using HTML via .load() method");
177j.load(p+" "+a.itemSelector,l,function(m){c._loadcallback(j,m,p)});break;case "html":c._debug("Using "+h.toUpperCase()+" via $.ajax() method");d.ajax({url:p,dataType:a.dataType,complete:function(m,f){(q=typeof m.isResolved!=="undefined"?m.isResolved():f==="success"||f==="notmodified")?c._loadcallback(j,m.responseText,p):c._error("end")}});break;case "json":c._debug("Using "+h.toUpperCase()+" via $.ajax() method");d.ajax({dataType:"json",type:"GET",url:p,success:function(m,f,g){q=typeof g.isResolved!==
178"undefined"?g.isResolved():f==="success"||f==="notmodified";if(a.appendCallback)if(a.template!==l){m=a.template(m);j.append(m);q?c._loadcallback(j,m):c._error("end")}else{c._debug("template must be defined.");c._error("end")}else q?c._loadcallback(j,m,p):c._error("end")},error:function(){c._debug("JSON ajax request failed.");c._error("end")}})}}},retrieve:function(a){a=a||null;var c=this.options;if(c.behavior&&this["retrieve_"+c.behavior]!==l)this["retrieve_"+c.behavior].call(this,a);else{if(c.state.isDestroyed){this._debug("Instance is destroyed");
179return false}c.state.isDuringAjax=true;c.loading.start.call(d(c.contentSelector)[0],c)}},scroll:function(){var a=this.options,c=a.state;if(a.behavior&&this["scroll_"+a.behavior]!==l)this["scroll_"+a.behavior].call(this);else c.isDuringAjax||c.isInvalidPage||c.isDone||c.isDestroyed||c.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(a){if(d.isPlainObject(a))this.options=d.extend(true,this.options,a)}};d.fn.infinitescroll=
180function(a,c){switch(typeof a){case "string":var h=Array.prototype.slice.call(arguments,1);this.each(function(){var j=d.data(this,"infinitescroll");if(!j)return false;if(!d.isFunction(j[a])||a.charAt(0)==="_")return false;j[a].apply(j,h)});break;case "object":this.each(function(){var j=d.data(this,"infinitescroll");if(j)j.update(a);else{j=new d.infinitescroll(a,c,this);j.failed||d.data(this,"infinitescroll",j)}})}return this};var n=d.event,k;n.special.smartscroll={setup:function(){d(this).bind("scroll",
181n.special.smartscroll.handler)},teardown:function(){d(this).unbind("scroll",n.special.smartscroll.handler)},handler:function(a,c){var h=this,j=arguments;a.type="smartscroll";k&&clearTimeout(k);k=setTimeout(function(){d(h).trigger("smartscroll",j)},c==="execAsap"?0:100)}};d.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}});
182(function(a){function u(){var d=location.href;return hashtag=d.indexOf("#prettyPhoto")!==-1&&decodeURI(d.substring(d.indexOf("#prettyPhoto")+1,d.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function i(d,l){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var m=RegExp("[\\?&]"+d+"=([^&#]*)").exec(l);return null==m?"":m[1]}a.prettyPhoto={version:"3.1.6"};a.fn.prettyPhoto=function(d){function l(){a(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+(h/2-c.containerHeight/2);
183projectedTop<0&&(projectedTop=0);$ppt.fadeTo(settings.animation_speed,1);
183$pp_pic_holder.find(".pp_content").animate({height:c.contentHeight,width:c.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:g/2-c.containerWidth/2<0?0:g/2-c.containerWidth/2,width:c.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(c.height).width(c.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);isSet&&
184"image"==p(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide();settings.allow_expand&&(c.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide());!settings.autoplay_slideshow||n||q||a.prettyPhoto.startSlideshow();settings.changepicturecallback();q=true});isSet&&settings.overlay_gallery&&"image"==p(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=
185Math.floor((c.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,0==totalPage?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+
1865).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,a.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave");d.ajaxcallback()}function m(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,
187function(){a(".pp_loaderIcon").show();b()})}function B(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function f(b,e){if(resized=false,v(b,e),imageWidth=b,imageHeight=e,(j>g||k>h)&&doresize&&settings.allow_resize&&!o){resized=true;for(fitting=false;!fitting;){j>g?(imageWidth=g-200,imageHeight=e/b*imageWidth):k>h?(imageHeight=h-200,imageWidth=b/e*imageHeight):fitting=true;k=imageHeight;j=imageWidth}(j>g||k>h)&&f(j,k);v(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),
188containerHeight:Math.floor(k),containerWidth:Math.floor(j)+2*settings.horizontal_padding,contentHeight:Math.floor(r),contentWidth:Math.floor(w),resized:resized}}function v(b,e){b=parseFloat(b);e=parseFloat(e);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(b);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1E4});detailsHeight+=
189$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(b);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1E4});titleHeight+=$pp_title.height();$pp_title.remove();r=e+detailsHeight;w=b;k=r+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();j=b}
190function p(b){return b.match(/youtube\.com\/watch/i)||b.match(/youtu\.be/i)?"youtube":b.match(/vimeo\.com/i)?"vimeo":b.match(/\b.mov\b/i)?"quicktime":b.match(/\b.mp4\b/i)?"localvideo":b.match(/\b.swf\b/i)?"flash":b.match(/\biframe=true\b/i)?"
190iframe":b.match(/\bajax=true\b/i)?"ajax":b.match(/\bcustom=true\b/i)?"custom":"#"==b.substr(0,1)?"inline":"image"}function s(){if(doresize&&"undefined"!=typeof $pp_pic_holder)(scroll_pos=x(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),
191projectedTop=h/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>h)||$pp_pic_holder.css({top:projectedTop,left:g/2+scroll_pos.scrollLeft-contentwidth/2})}function x(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:
192void 0}function y(){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),a("body").append(settings.markup),$pp_pic_holder=a(".pp_pic_holder"),$ppt=a(".ppt"),$pp_overlay=a("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var b=0;b<pp_images.length;b++){pp_images[b].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[b]):
193(classname="default",img_src="");toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=a(".pp_pic_holder .pp_gallery");$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),false});$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),
194a.prettyPhoto.stopSlideshow(),false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=57;$pp_gallery_li.each(function(e){a(this).find("a").click(function(){return a.prettyPhoto.changePage(e),a.prettyPhoto.stopSlideshow(),false})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),
195false}));$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),false});settings.allow_expand&&a("a.pp_expand").bind("click",function(){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=false):(a(this).removeClass("pp_contract").addClass("pp_expand"),
196doresize=true),m(function(){a.prettyPhoto.open()}),false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),false});s()}d=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5E3,autoplay_slideshow:false,
197opacity:0.8,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="ppt"> </div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"></div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand</a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next</a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"></div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0</p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"></p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}</div> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t<div class="pp_overlay"></div>',
198gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t</ul> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',
199quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',localvideo_markup:'<video width="{width}" height="{height}" autoplay controls><source src="{path}" type="video/mp4"></video>',
200iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},
201d);var c,q,r,w,k,j,n,t=this,o=false,h=a(window).height(),g=a(window).width();return doresize=true,scroll_pos=x(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){s();h=a(window).height();g=a(window).width();"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(g)}
201),d.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous");
202b.preventDefault();break;case 39:a.prettyPhoto.changePage("next");b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close();b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=d,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(t,function(b){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href")),
203pp_titles=isSet?jQuery.map(t,function(b){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(t,function(b){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=false),set_position=jQuery.inArray(a(this).attr("href"),
204pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),y(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){s()}),a.prettyPhoto.open(),false},a.prettyPhoto.open=function(b,e,z,A){"undefined"==typeof settings&&(settings=d,pp_images=a.makeArray(b),pp_titles=e?a.makeArray(e):a.makeArray(""),pp_descriptions=z?a.makeArray(z):a.makeArray(""),isSet=pp_images.length>1,set_position=A?A:0,y(b.target));settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility",
205"hidden");B(a(pp_images).size());a(".pp_loaderIcon").show();if(settings.deeplinking)"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/");return settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+
2061+settings.counter_separator_label+a(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):
207settings.default_height.toString(),o=false,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),o=true),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),o=true),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=
208false,p(pp_images[set_position])){case "image":imgPreloader=new Image;nextImage=new Image;isSet&&set_position<a(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]);prevImage=new Image;isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){c=f(imgPreloader.width,imgPreloader.height);l()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");
209a.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case "youtube":c=f(movie_width,movie_height);movie_id=i("v",pp_images[set_position]);""==movie_id&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&"))));movie="//www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):
210movie+="?rel=1";settings.autoplay&&(movie+="&autoplay=1");toInject=settings.iframe_markup.replace(/{width}/g,c.width).replace(/{height}/g,c.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case "vimeo":c=f(movie_width,movie_height);movie_id=pp_images[set_position];movie="//player.vimeo.com/video/"+movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/)[3]+"?title=0&byline=0&portrait=0";settings.autoplay&&(movie+="&autoplay=1;");vimeo_width=c.width+"/embed/?moog_width="+
211c.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,c.height).replace(/{path}/g,movie);break;case "quicktime":c=f(movie_width,movie_height);c.height+=15;c.contentHeight+=15;c.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,c.width).replace(/{height}/g,c.height).replace(/{wmode}/g,settings.wmode).replace(/{path}
211/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case "localvideo":c=f(movie_width,movie_height);
212c.height+=15;c.contentHeight+=15;c.containerHeight+=15;toInject=settings.localvideo_markup.replace(/{width}/g,c.width).replace(/{height}/g,c.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case "flash":c=f(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=
213filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,c.width).replace(/{height}/g,c.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case "iframe":c=f(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,c.width).replace(/{height}/g,c.height).replace(/{path}/g,frame_url);break;case "ajax":doresize=
214false;c=f(movie_width,movie_height);skipInjection=doresize=true;a.get(pp_images[set_position],function(C){toInject=settings.inline_markup.replace(/{content}/g,C);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;l()});break;case "custom":c=f(movie_width,movie_height);toInject=settings.custom_markup;break;case "inline":myClone=a(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(a("body")).show();
215doresize=false;c=f(a(myClone).width(),a(myClone).height());doresize=true;a(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,l())}),false},a.prettyPhoto.changePage=function(b){currentGalleryPage=0;"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).size()-1)):"next"==b?(set_position++,set_position>a(pp_images).size()-1&&(set_position=
2160)):set_position=b;rel_index=set_position;doresize||(doresize=true);settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand");m(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(b){"next"==b?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==b?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=b;slide_speed="next"==b||"previous"==b?settings.animation_speed:0;slide_to=
217currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof n?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),false}),n=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),
218false});clearInterval(n);n=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");a(this).remove();a(window).unbind("scroll.prettyphoto");
219location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto");settings.callback();doresize=true;q=false;delete settings}))},!pp_alreadyInitialized&&u()&&(pp_alreadyInitialized=true,hashIndex=u(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+d.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",
220a.prettyPhoto.initialize)}})(jQuery);var pp_alreadyInitialized=false;
221(function(c){c.fn.fitVids=function(f){var d={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var i=document.head||document.getElementsByTagName("head")[0],g=document.createElement("div");g.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>';i.appendChild(g.childNodes[1])}f&&
222c.extend(d,f);return this.each(function(){var b=['iframe[src*="player.vimeo.com"]','
222iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];d.customSelector&&b.push(d.customSelector);var e=".fitvidsignore";if(d.ignore)e=e+", "+d.ignore;b=c(this).find(b.join(","));b=b.not("object object");b=b.not(e);b.each(function(){var a=c(this);if(!(a.parents(e).length>0))if(!(this.tagName.toLowerCase()==="embed"&&a.parent("object").length||
223a.parent(".fluid-width-video-wrapper").length)){if(!a.css("height")&&!a.css("width")&&(isNaN(a.attr("height"))||isNaN(a.attr("width")))){a.attr("height",9);a.attr("width",16)}var h=this.tagName.toLowerCase()==="object"||a.attr("height")&&!isNaN(parseInt(a.attr("height"),10))?parseInt(a.attr("height"),10):a.height(),j=!isNaN(parseInt(a.attr("width"),10))?parseInt(a.attr("width"),10):a.width();h/=j;if(!a.attr("name")){a.attr("name","fitvid"+c.fn.fitVids._count);c.fn.fitVids._count++}a.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",
224h*100+"%");a.removeAttr("height").removeAttr("width")}})})};c.fn.fitVids._count=0})(window.jQuery||window.Zepto);
225!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){function i(i,o,a){function h(t,e,n){var s,o="$()."+i+'("'+e+'")';return t.each(function(t,h){var l=a.data(h,i);if(!l)return void r(i+" not initialized. Cannot call methods, i.e. "+o);var c=l[e];if(!c||"_"==e.charAt(0))return void r(o+" is not a valid method");
226var d=c.apply(l,n);s=void 0===s?d:s}),void 0!==s?s:t}function l(t,e){t.each(function(t,n){var s=a.data(n,i);s?(s.option(e),s._init()):(s=new o(n,e),a.data(n,i,s))})}a=a||e||t.jQuery,a&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=s.call(arguments,1);return h(this,t,e)}return l(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var s=Array.prototype.slice,o=t.console,
227r="undefined"==typeof o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);
228var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s],r=n&&n[o];r&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},
229t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<l;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+
230". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function s(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var s=n(e);o.isBoxSizeOuter=r=200==t(s.width),i.removeChild(e)}}function o(e){if(s(),"string"==typeof e&&(e=document.querySelector(e)),
231e&&"object"==typeof e&&e.nodeType){var o=n(e);if("none"==o.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==o.boxSizing,d=0;d<l;d++){var u=h[d],f=o[u],p=parseFloat(f);a[u]=isNaN(p)?0:p}var v=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,m=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,E=a.borderLeftWidth+a.borderRightWidth,S=a.borderTopWidth+a.borderBottomWidth,b=c&&r,x=t(o.width);x!==!1&&(a.width=x+(b?0:v+E));var C=
232t(o.height);return C!==!1&&(a.height=C+(b?0:g+S)),a.innerWidth=a.width-(v+E),a.innerHeight=a.height-(g+S),a.outerWidth=a.width+m,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],l=h.length,c=!1;return o}),function(t,e){"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",
233e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],s=n+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],
234function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=
235t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void s.push(t);e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}}),
236s},i.debounceMethod=function(t,e,i){var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];t&&clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout(function(){n.apply(o,e),delete o[s]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,
237s){i.docReady(function(){var o=i.toDashed(s),r="data-"+o,a=document.querySelectorAll("["+r+"]"),h=document.querySelectorAll(".js-"+o),l=i.makeArray(a).concat(i.makeArray(h)),c=r+"-options",d=t.jQuery;l.forEach(function(t){var i,o=t.getAttribute(r)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var h=new e(t,i);d&&d.data(t,s,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],
238function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},
239n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},
240i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=
241t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelectedClass("add")},e.unselect=function(){this.changeSelectedClass("remove")}
241,e.changeSelectedClass=function(t){this.cells.forEach(function(e){e.element.classList[t]("is-selected")})},
242e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(t,e){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,n=0;i||(i=function(t){var e=(new Date).getTime(),
243i=Math.max(0,16-(e-n)),s=setTimeout(t,i);return n=e+i,s});var s={};s.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},s.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;i(function(){e.animate()})}};var o=function(){var t=document.documentElement.style;return"string"==typeof t.transform?"transform":"WebkitTransform"}();
244return s.positionSlider=function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft&&o?-t:t;var i=this.getPositionValue(t);this.slider.style[o]=this.isAnimating?"translate3d("+i+",0,0)":"translateX("+i+")";var n=this.slides[0];if(n){var s=-this.x-n.target,r=s/this.slidesWidth;this.dispatchEvent("scroll",null,[r,s])}},s.positionSliderAtSelected=function(){this.cells.length&&
245(this.x=-this.selectedSlide.target,this.positionSlider())},s.getPositionValue=function(t){return this.options.percentPosition?0.01*Math.round(t/this.size.innerWidth*1E4)+"%":Math.round(t)+"px"},s.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},s.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,
246e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},s._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=e>0?i:0;s.wrapShift(o),e-=s.size.outerWidth}},s._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},s.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},s.applyForce=function(t){this.velocity+=t},s.getFrictionFactor=function(){return 1-
247this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},s.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},s.applyDragForce=function(){if(this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},s.applySelectedAttraction=function(){if(!this.isPointerDown&&!this.isFreeScrolling&&this.cells.length){var t=this.selectedSlide.target*-1-this.x,e=t*this.options.selectedAttraction;this.applyForce(e)}},s}),function(t,e){if("function"==
248typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(i,n,s,o,r,a){return e(t,i,n,s,o,r,a)});else if("object"==typeof module&&module.exports)module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
248de"),require("./animate"));else{var i=t.Flickity;t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,
249function(t,e,i,n,s,o,r){function a(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}function h(t,e){var i=n.getQueryElement(t);if(!i)return void(d&&d.error("Bad element for Flickity: "+(i||t)));if(this.element=i,this.element.flickityGUID){var s=f[this.element.flickityGUID];return s.option(e),s}l&&(this.$element=l(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}var l=t.jQuery,c=t.getComputedStyle,d=t.console,u=0,f={};h.defaults={accessibility:!0,
250cellAlign:"center",freeScrollFriction:0.075,friction:0.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:0.025,setGallerySize:!0},h.createMethods=[];var p=h.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++u;this.element.flickityGUID=e,f[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",
251this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),h.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t=this._filterFindCellElements(this.element.children);
252a(t,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var e,i=this.options.initialIndex;e=this.isInitActivated?this.selectedIndex:void 0!==i&&this.cells[i]?i:0,this.select(e,!1,!0),this.isInitActivated=!0}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=
2530,this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){var e=this._filterFindCellElements(t),i=e.map(function(t){return new s(t,this)},this);return i},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-
2541]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-
255this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide,i=e?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(e,s){if(!t.cells.length)return void t.addCell(e);var r=t.outerWidth-t.firstMargin+(e.size.outerWidth-e.size[i]);n.call(this,s,r)?t.addCell(e):(t.updateTarget(),t=new o(this),this.slides.push(t),t.addCell(e))},
256this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!==0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),
257this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:0.5,right:0.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=v[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),
258this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}}
258,p._getGapCells=function(t,e,i){for(var n=[];t>0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":
259"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),l&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var o=
260l.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},p.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t]&&(this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select"),this.dispatchEvent("cellSelect")))},p._wrapSelect=function(t){var e=this.slides.length,i=this.options.wrapAround&&
261e>1;if(!i)return t;var s=n.modulo(t,e),o=Math.abs(s-this.selectedIndex),r=Math.abs(s+e-this.selectedIndex),a=Math.abs(s-e-this.selectedIndex);!this.isDragSelect&&r<o?t+=e:!this.isDragSelect&&a<o&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=
262t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t,e,i){var n;"number"==typeof t?n=this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),n=this.getCell(t));for(var s=0;n&&s<this.slides.length;s++){var o=this.slides[s],r=o.cells.indexOf(n);if(r!=-1)return void this.select(s,
263e,i)}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e?e:(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();
264e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(h,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),
265this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){var t=this.options.watchCSS;if(t){var e=c(this.element,":after").content;e.indexOf("flickity")!=-1?this.activate():this.deactivate()}},p.onkeydown=function(t){if(this.options.accessibility&&(!document.activeElement||document.activeElement==
266this.element))if(37==t.keyCode){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()}else if(39==t.keyCode){var i=this.options.rightToLeft?"previous":"next";this.uiChange(),this[i]()}},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEac
266h(function(t){t.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),a(this.slider.children,this.element),this.options.accessibility&&
267(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},n.extend(p,r),h.data=function(t){t=n.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]},n.htmlInit(h,"flickity"),l&&l.bridget&&l.bridget("flickity",
268h),h.setJQuery=function(t){l=t},h.Cell=s,h}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(t,e){function i(){}function n(){}var s=n.prototype=Object.create(e.prototype);s.bindStartEvent=function(t){this._bindStartEvent(t,!0)},s.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},
269s._bindStartEvent=function(e,i){i=void 0===i||!!i;var n=i?"addEventListener":"removeEventListener";t.PointerEvent?e[n]("pointerdown",this):(e[n]("mousedown",this),e[n]("touchstart",this))},s.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},s.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},s.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},
270s.onpointerdown=function(t){this._pointerDown(t,t)},s._pointerDown=function(t,e){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},s.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return s._bindPostStartEvents=function(e){if(e){var i=
271o[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},s._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},s.onmousemove=function(t){this._pointerMove(t,t)},s.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},s.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},
272s._pointerMove=function(t,e){this.pointerMove(t,e)},s.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},s.onmouseup=function(t){this._pointerUp(t,t)},s.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},s.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},s._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},s.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},s._pointerDone=function(){this.isPointerDown=
273!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},s.pointerDone=i,s.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},s.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},s._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},s.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}),function(t,
274e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);return n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){e=void 0===e||!!e;for(var i=e?"addEventListener":
275"removeEventListener",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,e),s[i]("click",this),t.PointerEvent&&(s.style.touchAction=e?this._touchActionValue:"")}},n._touchActionValue="none",n.pointerDown=function(t,e){if("INPUT"==t.target.nodeName&&"range"==t.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(t,e);var i=document.activeElement;i&&i.blur&&i.blur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},
276n._dragPointerDown=function(t,i){this.pointerDownPoint=e.getPointerPoint(i);var n=this.canPreventDefaultOnPointerDown(t,i);n&&t.preventDefault()},n.canPreventDefaultOnPointerDown=function(t){return"SELECT"!=t.target.nodeName},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,i){var n=e.getPointerPoint(i),s={x:n.x-this.pointerDownPoint.x,y:n.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(s)&&
277this._dragStart(t,i),s},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,i){this.isDragging=!0,this.dragStartPoint=e.getPointerPoint(i),this.isPreventing
277Clicks=!0,this.dragStart(t,i)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&
278this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){if(!this.isIgnoringMouseUp||"mouseup"!=t.type){var i=t.target.nodeName;"INPUT"!=i&&"TEXTAREA"!=i||t.target.focus(),
279this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),
280require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,n){function s(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=d[t.target.nodeName];return e||i||n}function o(){return{x:t.pageXOffset,y:t.pageYOffset}}n.extend(e.defaults,{draggable:!0,dragThreshold:3}),e.createMethods.push("_createDrag");var r=e.prototype;n.extend(r,i.prototype),r._touchActionValue="pan-y";var a="createTouch"in document,h=!1;r._createDrag=function(){this.on("activate",
281this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag),a&&!h&&(t.addEventListener("touchmove",function(){}),h=!0)},r.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},r.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},
282r._uiChangeDrag=function(){delete this.isFreeScrolling},r._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)};var l={TEXTAREA:!0,INPUT:!0,OPTION:!0},c={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};r.pointerDown=function(e,i){var n=l[e.target.nodeName]&&!c[e.target.type];if(n)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(e,i);var s=document.activeElement;s&&s.blur&&s!=this.element&&s!=document.body&&s.blur(),this.pointerDownFocus(e),
283this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(e),this.pointerDownScroll=o(),t.addEventListener("scroll",this),this.dispatchEvent("pointerDown",e,[i])},r.pointerDownFocus=function(e){var i=s(e);if(this.options.accessibility&&!i){var n=t.pageYOffset;this.element.focus(),t.pageYOffset!=n&&t.scrollTo(t.pageXOffset,n)}};var d={INPUT:!0,SELECT:!0};return r.canPreventDefaultOnPointerDown=function(t){var e=s(t);return!e},r.hasDragStarted=function(t){return Math.abs(t.x)>
284this.options.dragThreshold},r.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},r.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,i){this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i])},r.pointerMove=function(t,e){var i=this._dragPointerMove(t,
285e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},r.dragMove=function(t,e,i){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1,s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>o?0.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?0.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])},
286r.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])},
287r.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1),s=i.distance<n.distance?i.index:n.index;return s}
287,r._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,e=this.getSlideDistance(-t,n),null!==e);)e=Math.abs(e);return{distance:s,
288index:n-i}},r.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&i>1,o=s?n.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=s?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},r.staticClick=function(t,e){var i=
289this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},r.onscroll=function(){var t=o(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.TapListener=
290e(t,t.Unipointer)}(window,function(t,e){function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var s=e.getPointerPoint(n),o=this.tapElement.getBoundingClientRect(),r=t.pageXOffset,a=t.pageYOffset,h=s.x>=o.left+
291r&&s.x<=o.right+r&&s.y>=o.top+a&&s.y<=o.bottom+a;if(h&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=
292e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,i,n){function s(t,e){this.direction=t,this.parent=e,this._create()}function o(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}var r="http://www.w3.org/2000/svg";s.prototype=new i,s.prototype._create=function(){this.isEnabled=!0,this.isPrevious=
293this.direction==-1;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"previous":"next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},
294s.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path"),i=o(this.parent.options.arrowShape);return e.setAttribute("d",
295i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},s.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.handleEvent=n.handleEvent,s.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=
296function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)return void this.enable();var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()},s.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=
297e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=
298s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}
298(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}s.prototype=new i,s.prototype._create=function(){this.holder=document.createElement("ol"),
299this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},
300s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[];t;){var n=document.createElement("li");n.className="dot",e.appendChild(n),i.push(n),t--}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],
301this.selectedDot.className="dot is-selected")},s.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),
302this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils",
303"./flickity"],function(t,i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",o&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var s,o;"hidden"in document?(s="hidden",o="visibilitychange"):"webkitHidden"in
304document&&(s="webkitHidden",o="webkitvisibilitychange"),n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document[s];if(o&&t)return void document.addEventListener(o,this.onVisibilityPlay);this.state="playing",o&&document.addEventListener(o,this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3E3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),
305e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),o&&document.removeEventListener(o,this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document[s];this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(o,
306this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var r=i.prototype;return r._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},
307r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,
308e){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}
308(window,function(t,e,i){function n(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}var s=e.prototype;return s.insert=function(t,e){var i=this._makeCells(t);if(i&&
309i.length){var s=this.cells.length;e=void 0===e?s:e;var o=n(i),r=e==s;if(r)this.slider.appendChild(o);else{var a=this.cells[e].element;this.slider.insertBefore(o,a)}if(0===e)this.cells=i.concat(this.cells);else if(r)this.cells=this.cells.concat(i);else{var h=this.cells.splice(e,s-e);this.cells=this.cells.concat(i).concat(h)}this._sizeCells(i);var l=e>this.selectedIndex?0:i.length;this._cellAddedRemoved(e,l)}},s.append=function(t){this.insert(t,this.cells.length)},s.prepend=function(t){this.insert(t,
3100)},s.remove=function(t){var e,n,s=this.getCells(t),o=0,r=s.length;for(e=0;e<r;e++){n=s[e];var a=this.cells.indexOf(n)<this.selectedIndex;o-=a?1:0}for(e=0;e<r;e++)n=s[e],n.remove(),i.removeFrom(this.cells,n);s.length&&this._cellAddedRemoved(0,o)},s._cellAddedRemoved=function(t,e){e=e||0,this.selectedIndex+=e,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(t,!0),this.emitEvent("cellAddedRemoved",[t,e])},s.cellSizeChange=function(t){var e=this.getCell(t);
311if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},s.cellChange=function(t,e){var i=this.slideableWidth;if(this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[t]),this.options.freeScroll){var n=i-this.slideableWidth;this.x+=n*this.cellAlign,this.positionSlider()}else e&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],
312function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){if("IMG"==t.nodeName&&t.getAttribute("data-flickity-lazyload"))return[t];var e=t.querySelectorAll("img[data-flickity-lazyload]");return i.makeArray(e)}function s(t,e){this.img=t,this.flickity=e,this.load()}e.createMethods.push("_createLazyload");var o=e.prototype;return o._createLazyload=function(){this.on("select",
313this.lazyLoad)},o.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=[];i.forEach(function(t){var e=n(t);o=o.concat(e)}),o.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},s.prototype.onload=
314function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",
315["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):
316"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){function i(t,e,i){return(e-t)*i+t}t.createMethods.push("_createAsNavFor");var n=t.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},
317n.setNavCompanion=function(i){i=e.getQueryElement(i);var n=t.data(i);if(n&&n!=this){this.navCompanion=n;var s=this;this.onNavCompanionSelect=function(){s.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(t){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],n=this.navCompanion.cells.indexOf(e),s=n+this.navCompanion.selectedCells.length-1,o=Math.floor(i(n,s,this.navCompanion.cellAlign));
318if(this.selectCell(o,!1,t),this.removeNavSelectedElements(),!(o>=this.cells.length)){var r=this.cells.slice(n,s+1);this.navSelectedElements=r.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(t){this.navSelectedElements.forEac
vendor: 4,631 bytes, lines 318-327
318h(function(e){e.classList[t]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},
319n.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(t,e){"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&
320module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function s(t,e,o){return this instanceof s?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?
321o=e:i(this.options,e),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(function(){this.check()}.bind(this))):new s(t,e,o)}function o(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,h=t.console;s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),
322this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var l={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==
323n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new r(t,e);this.images.push(i)},s.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},s.prototype.progress=
324function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&h&&h.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":
325"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},o.prototype.getIsImageComplete=function(){return this.img.complete&&
326void 0!==this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",
327this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();
327t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=
328t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(a=e,a.fn.imagesLoaded=function(t,e){var i=new s(this,t,e);return i.jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("imagesloaded")):t.Flickity=e(t,t.Flickity,t.imagesLoaded)}(window,
329function(t,e,i){e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function t(t,i){var n=e.getParentCell(i.img);e.cellSizeChange(n&&n.element),e.options.freeScroll||e.positionSliderAtSelected()}if(this.options.imagesLoaded){var e=this;i(this.slider).on("progress",t)}},e});
330(function(d){var C=true;d.flexslider=function(i,u){var a=d(i);a.vars=d.extend({},d.flexslider.defaults,u);var f=a.vars.namespace,D=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,E=("ontouchstart"in window||D||window.DocumentTouch&&document instanceof DocumentTouch)&&a.vars.touch,o="",H,p="vertical"===a.vars.direction,m=a.vars.reverse,k=a.vars.itemWidth>0,t="fade"===a.vars.animation,x=""!==a.vars.asNavFor,g={};d.data(i,"flexslider",a);g={init:function(){a.animating=false;a.currentSlide=
331parseInt(a.vars.startAt?a.vars.startAt:0,10);isNaN(a.currentSlide)&&(a.currentSlide=0);a.animatingTo=a.currentSlide;a.atEnd=0===a.currentSlide||a.currentSlide===a.last;a.containerSelector=a.vars.selector.substr(0,a.vars.selector.search(" "));a.slides=d(a.vars.selector,a);a.container=d(a.containerSelector,a);a.count=a.slides.length;a.syncExists=d(a.vars.sync).length>0;"slide"===a.vars.animation&&(a.vars.animation="swing");a.prop=p?"top":"marginLeft";a.args={};a.manualPause=false;a.stopped=false;a.started=
332false;a.startTimeout=null;a.transitions=!a.vars.video&&!t&&a.vars.useCSS&&function(){var b=document.createElement("div"),c=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],e;for(e in c)if(void 0!==b.style[c[e]])return a.pfx=c[e].replace("Perspective","").toLowerCase(),a.prop="-"+a.pfx+"-transform",true;return false}();a.ensureAnimationEnd="";""!==a.vars.controlsContainer&&(a.controlsContainer=d(a.vars.controlsContainer).length>0&&d(a.vars.controlsContainer));
333""!==a.vars.manualControls&&(a.manualControls=d(a.vars.manualControls).length>0&&d(a.vars.manualControls));""!==a.vars.customDirectionNav&&(a.customDirectionNav=2===d(a.vars.customDirectionNav).length&&d(a.vars.customDirectionNav));a.vars.randomize&&(a.slides.sort(function(){return Math.round(Math.random())-0.5}),a.container.empty().append(a.slides));a.doMath();a.setup("init");a.vars.controlNav&&g.controlNav.setup();a.vars.directionNav&&g.directionNav.setup();a.vars.keyboard&&(1===d(a.containerSelector).length||
334a.vars.multipleKeyboard)&&d(document).bind("keyup",function(b){b=b.keyCode;if(!a.animating&&(39===b||37===b)){b=39===b?a.getTarget("next"):37===b?a.getTarget("prev"):false;a.flexAnimate(b,a.vars.pauseOnAction)}});a.vars.mousewheel&&a.bind("mousewheel",function(b,c){b.preventDefault();var e=0>c?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(e,a.vars.pauseOnAction)});a.vars.pausePlay&&g.pausePlay.setup();a.vars.slideshow&&a.vars.pauseInvisible&&g.pauseInvisible.init();a.vars.slideshow&&(a.vars.pauseOnHover&&
335a.hover(function(){a.manualPlay||a.manualPause||a.pause()},function(){a.manualPause||a.manualPlay||a.stopped||a.play()}),a.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(a.vars.initDelay>0?a.startTimeout=setTimeout(a.play,a.vars.initDelay):a.play()));x&&g.asNav.setup();E&&a.vars.touch&&g.touch();(!t||t&&a.vars.smoothHeight)&&d(window).bind("resize orientationchange focus",g.resize);a.find("img").attr("draggable","false");setTimeout(function(){a.vars.start(a)},200)},asNav:{setup:function(){a.asNav=
336true;a.animatingTo=Math.floor(a.currentSlide/a.move);a.currentItem=a.currentSlide;a.slides.removeClass(f+"active-slide").eq(a.currentItem).addClass(f+"active-slide");D?(i._slider=a,a.slides.each(function(){this._gesture=new MSGesture;this._gesture.target=this;this.addEventListener("MSPointerDown",function(b){b.preventDefault();b.currentTarget._gesture&&b.currentTarget._gesture.addPointer(b.pointerId)},false);this.addEventListener("MSGestureTap",function(b){b.preventDefault();b=d(this);var c=b.index();
337d(a.vars.asNavFor).data("flexslider").animating||b.hasClass("active")||(a.direction=a.currentItem<c?"next":"prev",a.flexAnimate(c,a.vars.pauseOnAction,false,true,true))})})):a.slides.on("click touchend MSPointerUp keyup",function(b){b.preventDefault();b=d(this);var c=b.index();0>=b.offset().left-d(a).scrollLeft()&&b.hasClass(f+"active-slide")?a.flexAnimate(a.getTarget("prev"),true):d(a.vars.asNavFor).data("flexslider").animating||b.hasClass(f+"active-slide")||(a.direction=a.currentItem<c?"next":"prev",
338a.flexAnimate(c,a.vars.pauseOnAction,false,true,true))})}},controlNav:{setup:function(){a.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging(
338)},setupPaging:function(){var b=1,c,e;if(a.controlNavScaffold=d('<ol class="'+f+"control-nav "+f+("thumbnails"===a.vars.controlNav?"control-thumbs":"control-paging")+'"></ol>'),a.pagingCount>1)for(var l=0;l<a.pagingCount;l++){e=a.slides.eq(l);void 0===e.attr("data-thumb-alt")&&e.attr("data-thumb-alt","");c=""!==e.attr("data-thumb-alt")?c=' alt="'+
339e.attr("data-thumb-alt")+'"':"";if(c="thumbnails"===a.vars.controlNav?'<img src="'+e.attr("data-thumb")+'"'+c+"></a>":'<a href="#">'+b+"</a>","thumbnails"===a.vars.controlNav&&true===a.vars.thumbCaptions){e=e.attr("data-thumbcaption");""!==e&&void 0!==e&&(c+='<span class="'+f+'caption">'+e+"</span>")}a.controlNavScaffold.append("<li>"+c+"</li>");b++}a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);g.controlNav.set();g.controlNav.active();a.controlNavScaffold.delegate("a, img",
340"click touchend MSPointerUp keyup",function(r){if(r.preventDefault(),""===o||o===r.type){var n=d(this),q=a.controlNav.index(n);n.hasClass(f+"active")||(a.direction=q>a.currentSlide?"next":"prev",a.flexAnimate(q,a.vars.pauseOnAction))}""===o&&(o=r.type);g.setToClearWatchedEvent()})},setupManual:function(){a.controlNav=a.manualControls;g.controlNav.active();a.controlNav.bind("click touchend MSPointerUp keyup",function(b){if(b.preventDefault(),""===o||o===b.type){var c=d(this),e=a.controlNav.index(c);
341c.hasClass(f+"active")||(e>a.currentSlide?a.direction="next":a.direction="prev",a.flexAnimate(e,a.vars.pauseOnAction))}""===o&&(o=b.type);g.setToClearWatchedEvent()})},set:function(){a.controlNav=d("."+f+"control-nav li "+("thumbnails"===a.vars.controlNav?"img":"a"),a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(f+"active").eq(a.animatingTo).addClass(f+"active")},update:function(b,c){a.pagingCount>1&&"add"===b?a.controlNavScaffold.append(d('<li><a href="#">'+
342a.count+"</a></li>")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();g.controlNav.set();a.pagingCount>1&&a.pagingCount!==a.controlNav.length?a.update(c,b):g.controlNav.active()}},directionNav:{setup:function(){var b=d('<ul class="'+f+'direction-nav"><li class="'+f+'nav-prev"><a class="'+f+'prev" href="#">'+a.vars.prevText+'</a></li><li class="'+f+'nav-next"><a class="'+f+'next" href="#">'+a.vars.nextText+"</a></li></ul>");a.customDirectionNav?
343a.directionNav=a.customDirectionNav:a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+f+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+f+"direction-nav li a",a));g.directionNav.update();a.directionNav.bind("click touchend MSPointerUp keyup",function(c){c.preventDefault();var e;""!==o&&o!==c.type||(e=d(this).hasClass(f+"next")?a.getTarget("next"):a.getTarget("prev"),a.flexAnimate(e,a.vars.pauseOnAction));""===o&&(o=c.type);g.setToClearWatchedEvent()})},
344update:function(){var b=f+"disabled";1===a.pagingCount?a.directionNav.addClass(b).attr("tabindex","-1"):a.vars.animationLoop?a.directionNav.removeClass(b).removeAttr("tabindex"):0===a.animatingTo?a.directionNav.removeClass(b).filter("."+f+"prev").addClass(b).attr("tabindex","-1"):a.animatingTo===a.last?a.directionNav.removeClass(b).filter("."+f+"next").addClass(b).attr("tabindex","-1"):a.directionNav.removeClass(b).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=d('<div class="'+f+'pauseplay"><a href="#"></a></div>');
345a.controlsContainer?(a.controlsContainer.append(b),a.pausePlay=d("."+f+"pauseplay a",a.controlsContainer)):(a.append(b),a.pausePlay=d("."+f+"pauseplay a",a));g.pausePlay.update(a.vars.slideshow?f+"pause":f+"play");a.pausePlay.bind("click touchend MSPointerUp keyup",function(c){c.preventDefault();""!==o&&o!==c.type||(d(this).hasClass(f+"pause")?(a.manualPause=true,a.manualPlay=false,a.pause()):(a.manualPause=false,a.manualPlay=true,a.play()));""===o&&(o=c.type);g.setToClearWatchedEvent()})},update:function(b){"play"===
346b?a.pausePlay.removeClass(f+"pause").addClass(f+"play").html(a.vars.playText):a.pausePlay.removeClass(f+"play").addClass(f+"pause").html(a.vars.pauseText)}},touch:function(){function b(h){h.stopPropagation();a.animating?h.preventDefault():(a.pause(),i._gesture.addPointer(h.pointerId),v=0,q=p?a.h:a.w,w=Number(new Date),n=k&&m&&a.animatingTo===a.last?0:k&&m?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:k&&a.currentSlide===a.last?a.limit:k?(a.itemW+a.vars.itemMargin)*a.move*a.currentSlide:
347m?(a.last-a.currentSlide+a.cloneOffset)*q:(a.currentSlide+a.cloneOffset)*q)}function c(h){h.stopPropagation();var s=h.target._slider;if(s){var B=-h.translationX,I=-h.translationY;return v+=p?I:B,j=v,y=p?Math.abs(v)<Math.abs(-B):Math.abs(v)<Math.abs(-I),h.detail===h.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){i._gesture.stop()}):void((!y||Number(new Date)-w>500)&&(h.preventDefault(),!t&&s.transitions&&(s.vars.animationLoop||(j=v/(0===s.currentSlide&&0>v||s.currentSlide===s.last&&v>0?Math.abs(v)/
348q+2:1)),s.setProps(n+j,"setTouch"))))}}function e(h){h.stopPropagation();
348if(h=h.target._slider){if(h.animatingTo===h.currentSlide&&!y&&null!==j){var s=m?-j:j,B=s>0?h.getTarget("next"):h.getTarget("prev");h.canAdvance(B)&&(Number(new Date)-w<550&&Math.abs(s)>50||Math.abs(s)>q/2)?h.flexAnimate(B,h.vars.pauseOnAction):t||h.flexAnimate(h.currentSlide,h.vars.pauseOnAction,true)}n=j=r=l=null;v=0}}var l,r,n,q,j,w,J,F,G,y=false,z=0,A=0,v=0;D?(i.style.msTouchAction="none",i._gesture=new MSGesture,i._gesture.target=
349i,i.addEventListener("MSPointerDown",b,false),i._slider=a,i.addEventListener("MSGestureChange",c,false),i.addEventListener("MSGestureEnd",e,false)):(J=function(h){a.animating?h.preventDefault():(window.navigator.msPointerEnabled||1===h.touches.length)&&(a.pause(),q=p?a.h:a.w,w=Number(new Date),z=h.touches[0].pageX,A=h.touches[0].pageY,n=k&&m&&a.animatingTo===a.last?0:k&&m?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:k&&a.currentSlide===a.last?a.limit:k?(a.itemW+a.vars.itemMargin)*a.move*
350a.currentSlide:m?(a.last-a.currentSlide+a.cloneOffset)*q:(a.currentSlide+a.cloneOffset)*q,l=p?A:z,r=p?z:A,i.addEventListener("touchmove",F,false),i.addEventListener("touchend",G,false))},F=function(h){z=h.touches[0].pageX;A=h.touches[0].pageY;j=p?l-A:l-z;y=p?Math.abs(j)<Math.abs(z-r):Math.abs(j)<Math.abs(A-r);(!y||Number(new Date)-w>500)&&(h.preventDefault(),!t&&a.transitions&&(a.vars.animationLoop||(j/=0===a.currentSlide&&0>j||a.currentSlide===a.last&&j>0?Math.abs(j)/q+2:1),a.setProps(n+j,"setTouch")))},
351G=function(){if(i.removeEventListener("touchmove",F,false),a.animatingTo===a.currentSlide&&!y&&null!==j){var h=m?-j:j,s=h>0?a.getTarget("next"):a.getTarget("prev");a.canAdvance(s)&&(Number(new Date)-w<550&&Math.abs(h)>50||Math.abs(h)>q/2)?a.flexAnimate(s,a.vars.pauseOnAction):t||a.flexAnimate(a.currentSlide,a.vars.pauseOnAction,true)}i.removeEventListener("touchend",G,false);n=j=r=l=null},i.addEventListener("touchstart",J,false))},resize:function(){!a.animating&&a.is(":visible")&&(k||a.doMath(),t?
352g.smoothHeight():k?(a.slides.width(a.computedW),a.update(a.pagingCount),a.setProps()):p?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(a.vars.smoothHeight&&g.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,"setTotal")))},smoothHeight:function(b){if(!p||t){var c=t?a:a.viewport;b?c.animate({height:a.slides.eq(a.animatingTo).innerHeight()},b):c.innerHeight(a.slides.eq(a.animatingTo).innerHeight())}},sync:function(b){var c=d(a.vars.sync).data("flexslider"),e=a.animatingTo;switch(b){case "animate":c.flexAnimate(e,
353a.vars.pauseOnAction,false,true);break;case "play":c.playing||c.asNav||c.play();break;case "pause":c.pause()}},uniqueID:function(b){return b.filter("[id]").add(b.find("[id]")).each(function(){var c=d(this);c.attr("id",c.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var b=g.pauseInvisible.getHiddenProp();if(b){b=b.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(b,function(){g.pauseInvisible.isHidden()?a.startTimeout?clearTimeout(a.startTimeout):a.pause():
354a.started?a.play():a.vars.initDelay>0?setTimeout(a.play,a.vars.initDelay):a.play()})}},isHidden:function(){var b=g.pauseInvisible.getHiddenProp();return b?document[b]:false},getHiddenProp:function(){var b=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var c=0;c<b.length;c++)if(b[c]+"Hidden"in document)return b[c]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(H);H=setTimeout(function(){o=""},3E3)}};a.flexAnimate=function(b,c,e,l,r){if(a.vars.animationLoop||
355b===a.currentSlide||(a.direction=b>a.currentSlide?"next":"prev"),x&&1===a.pagingCount&&(a.direction=a.currentItem<b?"next":"prev"),!a.animating&&(a.canAdvance(b,r)||e)&&a.is(":visible")){if(x&&l){e=d(a.vars.asNavFor).data("flexslider");if(a.atEnd=0===b||b===a.count-1,e.flexAnimate(b,true,false,true,r),a.direction=a.currentItem<b?"next":"prev",e.direction=a.direction,Math.ceil((b+1)/a.visible)-1===a.currentSlide||0===b)return a.currentItem=b,a.slides.removeClass(f+"active-slide").eq(b).addClass(f+
356"active-slide"),false;a.currentItem=b;a.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide");b=Math.floor(b/a.visible)}if(a.animating=true,a.animatingTo=b,c&&a.pause(),a.vars.before(a),a.syncExists&&!r&&g.sync("animate"),a.vars.c
356ontrolNav&&g.controlNav.active(),k||a.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),a.atEnd=0===b||b===a.last,a.vars.directionNav&&g.directionNav.update(),b===a.last&&(a.vars.end(a),a.vars.animationLoop||a.pause()),t)E?(a.slides.eq(a.currentSlide).css({opacity:0,
357zIndex:1}),a.slides.eq(b).css({opacity:1,zIndex:2}),a.wrapup(n)):(a.slides.eq(a.currentSlide).css({zIndex:1}).animate({opacity:0},a.vars.animationSpeed,a.vars.easing),a.slides.eq(b).css({zIndex:2}).animate({opacity:1},a.vars.animationSpeed,a.vars.easing,a.wrapup));else{var n=p?a.slides.filter(":first").height():a.computedW,q,j,w;k?(q=a.vars.itemMargin,w=(a.itemW+q)*a.move*a.animatingTo,j=w>a.limit&&1!==a.visible?a.limit:w):j=0===a.currentSlide&&b===a.count-1&&a.vars.animationLoop&&"next"!==a.direction?
358m?(a.count+a.cloneOffset)*n:0:a.currentSlide===a.last&&0===b&&a.vars.animationLoop&&"prev"!==a.direction?m?0:(a.count+1)*n:m?(a.count-1-b+a.cloneOffset)*n:(b+a.cloneOffset)*n;a.setProps(j,"",a.vars.animationSpeed);a.transitions?(a.vars.animationLoop&&a.atEnd||(a.animating=false,a.currentSlide=a.animatingTo),a.container.unbind("webkitTransitionEnd transitionend"),a.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(a.ensureAnimationEnd);a.wrapup(n)}),clearTimeout(a.ensureAnimationEnd),
359a.ensureAnimationEnd=setTimeout(function(){a.wrapup(n)},a.vars.animationSpeed+100)):a.container.animate(a.args,a.vars.animationSpeed,a.vars.easing,function(){a.wrapup(n)})}a.vars.smoothHeight&&g.smoothHeight(a.vars.animationSpeed)}};a.wrapup=function(b){t||k||(0===a.currentSlide&&a.animatingTo===a.last&&a.vars.animationLoop?a.setProps(b,"jumpEnd"):a.currentSlide===a.last&&0===a.animatingTo&&a.vars.animationLoop&&a.setProps(b,"jumpStart"));a.animating=false;a.currentSlide=a.animatingTo;a.vars.after(a)};
360a.animateSlides=function(){!a.animating&&C&&a.flexAnimate(a.getTarget("next"))};a.pause=function(){clearInterval(a.animatedSlides);a.animatedSlides=null;a.playing=false;a.vars.pausePlay&&g.pausePlay.update("play");a.syncExists&&g.sync("pause")};a.play=function(){a.playing&&clearInterval(a.animatedSlides);a.animatedSlides=a.animatedSlides||setInterval(a.animateSlides,a.vars.slideshowSpeed);a.started=a.playing=true;a.vars.pausePlay&&g.pausePlay.update("pause");a.syncExists&&g.sync("play")};a.stop=function(){a.pause();
361a.stopped=true};a.canAdvance=function(b,c){var e=x?a.pagingCount-1:a.last;return c?true:x&&a.currentItem===a.count-1&&0===b&&"prev"===a.direction?true:x&&0===a.currentItem&&b===a.pagingCount-1&&"next"!==a.direction?false:b!==a.currentSlide||x?a.vars.animationLoop?true:a.atEnd&&0===a.currentSlide&&b===e&&"next"!==a.direction?false:!a.atEnd||a.currentSlide!==e||0!==b||"next"!==a.direction:false};a.getTarget=function(b){return a.direction=b,"next"===b?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?
362a.last:a.currentSlide-1};a.setProps=function(b,c,e){var l=function(){var r=b?b:(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo;return-1*function(){if(k)return"setTouch"===c?b:m&&a.animatingTo===a.last?0:m?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:r;switch(c){case "setTotal":return m?(a.count-1-a.currentSlide+a.cloneOffset)*b:(a.currentSlide+a.cloneOffset)*b;case "setTouch":return m?b:b;case "jumpEnd":return m?b:a.count*b;case "jumpStart":return m?a.count*
363b:b;default:return b}}()+"px"}();a.transitions&&(l=p?"translate3d(0,"+l+",0)":"translate3d("+l+",0,0)",e=void 0!==e?e/1E3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",e),a.container.css("transition-duration",e));a.args[a.prop]=l;(a.transitions||void 0===e)&&a.container.css(a.args);a.container.css("transform",l)};a.setup=function(b){if(t){a.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"});"init"===b&&(E?a.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+
364a.vars.animationSpeed/1E3+"s ease",zIndex:1}).eq(a.currentSlide).css({opacity:1,zIndex:2}):0==a.vars.fadeFirstSlide?a.slides.css({opacity:0,display:"block",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).css({opacity:1}):a.slides.css({opacity:0,display:"block",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).animate({opacity:1},a.vars.animationSpeed,a.vars.easing));a.vars.smoothHeight&&g.smoothHeight()}else{var c,e;"init"===b&&(a.viewport=d('<div class="'+f+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),
365a.cloneCount=0,a.cloneOffset=0,m&&(e=d.makeArray(a.slides).reverse(),a.slides=d(e),a.container.empty().append(a.slides)));a.vars.animationLoop&&!k&&(a.cloneCount=2,a.cloneOffset=1,"init"!==b&&a.container.find(".clone").remove(),a.container.append(g.uniqueID(a.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(a.slides.last().clone().addClass("clone")).attr("aria-hidden","true")));a.newSlides=d(a.vars.selector,a);c=m?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+
366a.cloneOffset;p&&!k?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){a.newSlides.css({display:"block"});a.doMath();a.viewport.height(a.h);a.setProps(c*a.h,"init")},"init"===b?100:0)):(a.container.width(200*(a.count+a.cloneCount)+"%"),a.setProps(c*a.computedW,"init"),setTimeout(function(){a.doMath();a.newSlides.css({width:a.computedW,marginRight:a.computedM,"float":"left",display:"block"});a.vars.smoothHeight&&g.smoothHeight()},"init"===
367b?100:0))}k||a.slides.removeClass(f+"active-slide").eq(a.currentSlide).addClass(f+"active-slide");a.vars.init(a)};a.doMath=function(){var b=a.slides.first(),c=a.vars.itemMargin,e=a.vars.minItems,l=a.vars.maxItems;a.w=void 0===a.viewport?a.width():a.viewport.width();a.h=b.height();a.boxPadding=b.outerWidth()-b.width();k?(a.itemT=a.vars.itemWidth+c,a.itemM=c,a.minW=e?e*a.itemT:a.w,a.maxW=l?l*a.itemT-c:a.w,a.itemW=a.minW>a.w?(a.w-c*(e-1))/e:a.maxW<a.w?(a.w-c*(l-1))/l:a.vars.itemWidth>a.w?a.w:a.vars.itemWidth,
368a.visible=Math.floor(a.w/a.itemW),a.move=a.vars.move>0&&a.vars.move<a.visible?a.vars.move:a.visible,a.pagingCount=Math.ceil((a.count-a.visible)/a.move+1),a.last=a.pagingCount-1,a.limit=1===a.pagingCount?0:a.vars.itemWidth>a.w?a.itemW*(a.count-1)+c*(a.count-1):(a.itemW+c)*a.count-a.w-c):(a.itemW=a.w,a.itemM=c,a.pagingCount=a.count,a.last=a.count-1);a.computedW=a.itemW-a.boxPadding;a.computedM=a.itemM};a.update=function(b,c){a.doMath();k||(b<a.currentSlide?a.currentSlide+=1:b<=a.currentSlide&&0!==b&&
369(a.currentSlide-=1),a.animatingTo=a.currentSlide);
369a.vars.controlNav&&!a.manualControls&&("add"===c&&!k||a.pagingCount>a.controlNav.length?g.controlNav.update("add"):("remove"===c&&!k||a.pagingCount<a.controlNav.length)&&(k&&a.currentSlide>a.last&&(a.currentSlide-=1,a.animatingTo-=1),g.controlNav.update("remove",a.last)));a.vars.directionNav&&g.directionNav.update()};a.addSlide=function(b,c){var e=d(b);a.count+=1;a.last=a.count-1;p&&m?void 0!==c?a.slides.eq(a.count-c).after(e):a.container.prepend(e):
370void 0!==c?a.slides.eq(c).before(e):a.container.append(e);a.update(c,"add");a.slides=d(a.vars.selector+":not(.clone)",a);a.setup();a.vars.added(a)};a.removeSlide=function(b){var c=isNaN(b)?a.slides.index(d(b)):b;a.count-=1;a.last=a.count-1;isNaN(b)?d(b,a.slides).remove():p&&m?a.slides.eq(a.last).remove():a.slides.eq(b).remove();a.doMath();a.update(c,"remove");a.slides=d(a.vars.selector+":not(.clone)",a);a.setup();a.vars.removed(a)};g.init()};d(window).blur(function(){C=false}).focus(function(){C=
371true});d.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7E3,animationSpeed:600,initDelay:0,randomize:false,fadeFirstSlide:true,thumbCaptions:false,pauseOnAction:true,pauseOnHover:false,pauseInvisible:true,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"Previous",nextText:"Next",keyboard:true,multipleKeyboard:false,
372mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:true,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}};d.fn.flexslider=function(i){if(void 0===i&&(i={}),"object"==typeof i)return this.each(function(){var a=d(this),f=a.find(i.selector?i.selector:".slides > li");
3731===f.length&&i.allowOneSlide===false||0===f.length?(f.fadeIn(400),i.start&&i.start(a)):void 0===a.data("flexslider")&&new d.flexslider(this,i)});var u=d(this).data("flexslider");switch(i){case "play":u.play();break;case "pause":u.pause();break;case "stop":u.stop();break;case "next":u.flexAnimate(u.getTarget("next"),true);break;case "prev":case "previous":u.flexAnimate(u.getTarget("prev"),true);break;default:"number"==typeof i&&u.flexAnimate(i,true)}}})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.