// avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupcollapsed', 'groupend', 'info', 'log', 'marktimeline', 'profile', 'profileend', 'table', 'time', 'timeend', 'timeline', 'timelineend', 'timestamp', 'trace', 'warn' ]; var length = methods.length; var console = (window.console = window.console || {}); while (length--) { method = methods[length]; // only stub undefined methods. if (!console[method]) { console[method] = noop; } } }()); // place any jquery/helper plugins in here. /*! * bootstrap v3.3.7 (http://getbootstrap.com) * copyright 2011-2016 twitter, inc. * licensed under the mit license */ if("undefined"==typeof jquery)throw new error("bootstrap's javascript requires jquery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new error("bootstrap's javascript requires jquery version 1.9.1 or higher, but lower than version 4")}(jquery),+function(a){"use strict";function b(){var a=document.createelement("bootstrap"),b={webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulatetransitionend=function(b){var c=!1,d=this;a(this).one("bstransitionend",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return settimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bstransitionend={bindtype:a.support.transition.end,delegatetype:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleobj.handler.apply(this,arguments)}})})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.version="3.3.7",d.transition_duration=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventdefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.event("close.bs.alert")),b.isdefaultprevented()||(g.removeclass("in"),a.support.transition&&g.hasclass("fade")?g.one("bstransitionend",c).emulatetransitionend(d.transition_duration):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.constructor=d,a.fn.alert.noconflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setstate(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.defaults,d),this.isloading=!1};c.version="3.3.7",c.defaults={loadingtext:"loading..."},c.prototype.setstate=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="text",null==f.resettext&&d.data("resettext",d[e]()),settimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingtext"==b?(this.isloading=!0,d.addclass(c).attr(c,c).prop(c,!0)):this.isloading&&(this.isloading=!1,d.removeclass(c).removeattr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeclass("active"),this.$element.addclass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasclass("active")&&(a=!1),this.$element.toggleclass("active")),c.prop("checked",this.$element.hasclass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasclass("active")),this.$element.toggleclass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.constructor=c,a.fn.button.noconflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventdefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleclass("focus",/^focus(in)?$/.test(b.type))})}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.defaults,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentelement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.version="3.3.7",c.transition_duration=600,c.defaults={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagname)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventdefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearinterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setinterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getitemindex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getitemfordirection=function(a,b){var c=this.getitemindex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getitemindex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearinterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getitemfordirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasclass("active"))return this.sliding=!1;var j=f[0],k=a.event("slide.bs.carousel",{relatedtarget:j,direction:h});if(this.$element.trigger(k),!k.isdefaultprevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeclass("active");var l=a(this.$indicators.children()[this.getitemindex(f)]);l&&l.addclass("active")}var m=a.event("slid.bs.carousel",{relatedtarget:j,direction:h});return a.support.transition&&this.$element.hasclass("slide")?(f.addclass(b),f[0].offsetwidth,e.addclass(h),f.addclass(h),e.one("bstransitionend",function(){f.removeclass([b,h].join(" ")).addclass("active"),e.removeclass(["active",h].join(" ")),i.sliding=!1,settimeout(function(){i.$element.trigger(m)},0)}).emulatetransitionend(c.transition_duration)):(e.removeclass("active"),f.addclass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.constructor=c,a.fn.carousel.noconflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasclass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventdefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jquery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.defaults,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.defaults,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getparent():this.addariaandcollapsedclass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.version="3.3.7",d.transition_duration=350,d.defaults={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasclass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasclass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.event("show.bs.collapse");if(this.$element.trigger(f),!f.isdefaultprevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeclass("collapse").addclass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeclass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeclass("collapsing").addclass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelcase(["scroll",g].join("-"));this.$element.one("bstransitionend",a.proxy(h,this)).emulatetransitionend(d.transition_duration)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasclass("in")){var b=a.event("hide.bs.collapse");if(this.$element.trigger(b),!b.isdefaultprevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetheight,this.$element.addclass("collapsing").removeclass("collapse in").attr("aria-expanded",!1),this.$trigger.addclass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeclass("collapsing").addclass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bstransitionend",a.proxy(e,this)).emulatetransitionend(d.transition_duration):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasclass("in")?"hide":"show"]()},d.prototype.getparent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addariaandcollapsedclass(b(e),e)},this)).end()},d.prototype.addariaandcollapsedclass=function(a,b){var c=a.hasclass("in");a.attr("aria-expanded",c),b.toggleclass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.constructor=d,a.fn.collapse.noconflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventdefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jquery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[a-za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedtarget:this};e.hasclass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagname)&&a.contains(e[0],c.target)||(e.trigger(c=a.event("hide.bs.dropdown",f)),c.isdefaultprevented()||(d.attr("aria-expanded","false"),e.removeclass("open").trigger(a.event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.version="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasclass("open");if(c(),!g){"ontouchstart"in document.documentelement&&!f.closest(".navbar-nav").length&&a(document.createelement("div")).addclass("dropdown-backdrop").insertafter(a(this)).on("click",c);var h={relatedtarget:this};if(f.trigger(d=a.event("show.bs.dropdown",h)),d.isdefaultprevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleclass("open").trigger(a.event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagname)){var d=a(this);if(c.preventdefault(),c.stoppropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasclass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentelement.clientheight;this.$element.css({paddingleft:!this.bodyisoverflowing&&a?this.scrollbarwidth:"",paddingright:this.bodyisoverflowing&&!a?this.scrollbarwidth:""})},c.prototype.resetadjustments=function(){this.$element.css({paddingleft:"",paddingright:""})},c.prototype.checkscrollbar=function(){var a=window.innerwidth;if(!a){var b=document.documentelement.getboundingclientrect();a=b.right-math.abs(b.left)}this.bodyisoverflowing=document.body.clientwidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getoptions(d),this.$viewport=this.options.viewport&&a(a.isfunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.instate={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixtitle()},c.prototype.getdefaults=function(){return c.defaults},c.prototype.getoptions=function(b){return b=a.extend({},this.getdefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getdelegateoptions=function(){var b={},c=this.getdefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currenttarget).data("bs."+this.type);return c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c)),b instanceof a.event&&(c.instate["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasclass("in")||"in"==c.hoverstate?void(c.hoverstate="in"):(cleartimeout(c.timeout),c.hoverstate="in",c.options.delay&&c.options.delay.show?void(c.timeout=settimeout(function(){"in"==c.hoverstate&&c.show()},c.options.delay.show)):c.show())},c.prototype.isinstatetrue=function(){for(var a in this.instate)if(this.instate[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currenttarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c)),b instanceof a.event&&(c.instate["focusout"==b.type?"focus":"hover"]=!1),!c.isinstatetrue())return cleartimeout(c.timeout),c.hoverstate="out",c.options.delay&&c.options.delay.hide?void(c.timeout=settimeout(function(){"out"==c.hoverstate&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.event("show.bs."+this.type);if(this.hascontent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerdocument.documentelement,this.$element[0]);if(b.isdefaultprevented()||!d)return;var e=this,f=this.tip(),g=this.getuid(this.type);this.setcontent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addclass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addclass(h).data("bs."+this.type,this),this.options.container?f.appendto(this.options.container):f.insertafter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getposition(),l=f[0].offsetwidth,m=f[0].offsetheight;if(j){var n=h,o=this.getposition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.gettitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getuid=function(a){do a+=~~(1e6*math.random());while(document.getelementbyid(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleenabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currenttarget).data("bs."+this.type),c||(c=new this.constructor(b.currenttarget,this.getdelegateoptions()),a(b.currenttarget).data("bs."+this.type,c))),b?(c.instate.click=!c.instate.click,c.isinstatetrue()?c.enter(c):c.leave(c)):c.tip().hasclass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;cleartimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removedata("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.constructor=c,a.fn.tooltip.noconflict=function(){return a.fn.tooltip=d,this}}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new error("popover requires tooltip.js");c.version="3.3.7",c.defaults=a.extend({},a.fn.tooltip.constructor.defaults,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.constructor.prototype),c.prototype.constructor=c,c.prototype.getdefaults=function(){return c.defaults},c.prototype.setcontent=function(){var a=this.tip(),b=this.gettitle(),c=this.getcontent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeclass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hascontent=function(){return this.gettitle()||this.getcontent()},c.prototype.getcontent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.constructor=c,a.fn.popover.noconflict=function(){return a.fn.popover=d,this}}(jquery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollelement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.defaults,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activetarget=null,this.scrollheight=0,this.$scrollelement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.version="3.3.7",b.defaults={offset:10},b.prototype.getscrollheight=function(){return this.$scrollelement[0].scrollheight||math.max(this.$body[0].scrollheight,document.documentelement.scrollheight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollheight=this.getscrollheight(),a.iswindow(this.$scrollelement[0])||(c="position",d=this.$scrollelement.scrolltop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollelement.scrolltop()+this.options.offset,c=this.getscrollheight(),d=this.options.offset+c-this.$scrollelement.height(),e=this.offsets,f=this.targets,g=this.activetarget;if(this.scrollheight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addclass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetwidth,b.addclass("in")):b.removeclass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasclass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bstransitionend",f).emulatetransitionend(c.transition_duration):f(),g.removeclass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.constructor=c,a.fn.tab.noconflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventdefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jquery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.defaults,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkposition,this)).on("click.bs.affix.data-api",a.proxy(this.checkpositionwitheventloop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedoffset=null,this.checkposition()};c.version="3.3.7",c.reset="affix affix-top affix-bottom",c.defaults={offset:0,target:window},c.prototype.getstate=function(a,b,c,d){var e=this.$target.scrolltop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e=a-d&&"bottom"},c.prototype.getpinnedoffset=function(){if(this.pinnedoffset)return this.pinnedoffset;this.$element.removeclass(c.reset).addclass("affix");var a=this.$target.scrolltop(),b=this.$element.offset();return this.pinnedoffset=b.top-a},c.prototype.checkpositionwitheventloop=function(){settimeout(a.proxy(this.checkposition,this),1)},c.prototype.checkposition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getstate(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.event(i+".bs.affix");if(this.$element.trigger(j),j.isdefaultprevented())return;this.affixed=h,this.unpin="bottom"==h?this.getpinnedoffset():null,this.$element.removeclass(c.reset).addclass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.constructor=c,a.fn.affix.noconflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetbottom&&(d.offset.bottom=d.offsetbottom),null!=d.offsettop&&(d.offset.top=d.offsettop),b.call(c,d)})})}(jquery); /* * smoothscroll for websites v1.4.0 (balazs galambosi) * http://www.smoothscroll.net */ !function(){function e(){z.keyboardsupport&&m("keydown",a)}function t(){if(!a&&document.body){a=!0;var t=document.body,o=document.documentelement,n=window.innerheight,r=t.scrollheight;if(b=document.compatmode.indexof("css")>=0?o:t,d=t,e(),top!=self)x=!0;else if(r>n&&(t.offsetheight<=n||o.offsetheight<=n)){var a=document.createelement("div");a.style.csstext="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+b.scrollheight+"px",document.body.appendchild(a);var i;t=function(){i||(i=settimeout(function(){l||(a.style.height="0",a.style.height=b.scrollheight+"px",i=null)},500))},settimeout(t,10),m("resize",t);var l={attributes:!0,childlist:!0,characterdata:!1};if(m=new v(t),m.observe(t,l),b.offsetheight<=n){var c=document.createelement("div");c.style.clear="both",t.appendchild(c)}}z.fixedbackground||l||(t.style.backgroundattachment="scroll",o.style.backgroundattachment="scroll")}}function o(){m&&m.disconnect(),h(i,r),h("mousedown",i),h("keydown",a),h("resize",t),h("load",t)}function n(e,t,o){if(p(t,o),1!=z.accelerationmax){var n=date.now(),r=n-r;if(r1&&(a=math.min(a,z.accelerationmax),t*=a,o*=a)}r=date.now()}if(q.push({x:t,y:o,lastx:0>t?.99:-.99,lasty:0>o?.99:-.99,start:date.now()}),!p){var i=e===document.body,l=function(n){for(var r=date.now(),a=0,c=0,u=0;u=z.animationtime,m=f?1:s/z.animationtime;z.pulsealgorithm&&(m=x(m));var h=d.x*m-d.lastx>>0,w=d.y*m-d.lasty>>0;a+=h,c+=w,d.lastx+=h,d.lasty+=w,f&&(q.splice(u,1),u--)}i?window.scrollby(a,c):(a&&(e.scrollleft+=a),c&&(e.scrolltop+=c)),t||o||(q=[]),q.length?_(l,e,1e3/z.framerate+1):p=!1};_(l,e,0),p=!0}}function r(e){a||t();var o=e.target,r=u(o);if(!r||e.defaultprevented||e.ctrlkey)return!0;if(w(d,"embed")||w(o,"embed")&&/\.pdf/i.test(o.src)||w(d,"object"))return!0;var a=-e.wheeldeltax||e.deltax||0,i=-e.wheeldeltay||e.deltay||0;return k&&(e.wheeldeltax&&b(e.wheeldeltax,120)&&(a=-120*(e.wheeldeltax/math.abs(e.wheeldeltax))),e.wheeldeltay&&b(e.wheeldeltay,120)&&(i=-120*(e.wheeldeltay/math.abs(e.wheeldeltay)))),a||i||(i=-e.wheeldelta||0),1===e.deltamode&&(a*=40,i*=40),!z.touchpadsupport&&v(i)?!0:(math.abs(a)>1.2&&(a*=z.stepsize/120),math.abs(i)>1.2&&(i*=z.stepsize/120),n(r,a,i),e.preventdefault(),void l())}function a(e){var t=e.target,o=e.ctrlkey||e.altkey||e.metakey||e.shiftkey&&e.keycode!==n.spacebar;document.contains(d)||(d=document.activeelement);var r=/^(textarea|select|embed|object)$/i,a=/^(button|submit|radio|checkbox|file|color|image)$/i;if(r.test(t.nodename)||w(t,"input")&&!a.test(t.type)||w(d,"video")||y(e)||t.iscontenteditable||e.defaultprevented||o)return!0;if((w(t,"button")||w(t,"input")&&a.test(t.type))&&e.keycode===n.spacebar)return!0;var i,c=0,d=0,s=u(d),f=s.clientheight;switch(s==document.body&&(f=window.innerheight),e.keycode){case n.up:d=-z.arrowscroll;break;case n.down:d=z.arrowscroll;break;case n.spacebar:i=e.shiftkey?1:-1,d=-i*f*.9;break;case n.pageup:d=.9*-f;break;case n.pagedown:d=.9*f;break;case n.home:d=-s.scrolltop;break;case n.end:var m=s.scrollheight-s.scrolltop-f;d=m>0?m+10:0;break;case n.left:c=-z.arrowscroll;break;case n.right:c=z.arrowscroll;break;default:return!0}n(s,c,d),e.preventdefault(),l()}function i(e){d=e.target}function l(){cleartimeout(e),e=setinterval(function(){f={}},1e3)}function c(e,t){for(var o=e.length;o--;)f[j(e[o])]=t;return t}function u(e){var t=[],o=document.body,n=b.scrollheight;do{var r=f[j(e)];if(r)return c(t,r);if(t.push(e),n===e.scrollheight){var a=s(b)&&s(o),i=a||f(b);if(x&&d(b)||!x&&i)return c(t,$())}else if(d(e)&&f(e))return c(t,e)}while(e=e.parentelement)}function d(e){return e.clientheight+100?1:-1,t=t>0?1:-1,(y.x!==e||y.y!==t)&&(y.x=e,y.y=t,q=[],r=0)}function v(e){return e?(o.length||(o=[e,e,e]),e=math.abs(e),o.push(e),o.shift(),cleartimeout(h),h=settimeout(function(){window.localstorage&&(localstorage.ss_deltabuffer=o.join(","))},1e3),!g(120)&&!g(100)):void 0}function b(e,t){return math.floor(e/t)==e/t}function g(e){return b(o[0],e)&&b(o[1],e)&&b(o[2],e)}function y(e){var t=e.target,o=!1;if(-1!=document.url.indexof("www.youtube.com/watch"))do if(o=t.classlist&&t.classlist.contains("html5-video-controls"))break;while(t=t.parentnode);return o}function s(e){var t,o,n;return e*=z.pulsescale,1>e?t=e-(1-math.exp(-e)):(o=math.exp(-1),e-=1,n=1-math.exp(-e),t=o+n*(1-o)),t*z.pulsenormalize}function x(e){return e>=1?1:0>=e?0:(1==z.pulsenormalize&&(z.pulsenormalize/=s(1)),s(e))}function k(e){for(var t in e)c.hasownproperty(t)&&(z[t]=e[t])}var d,m,t,e,h,c={framerate:150,animationtime:400,stepsize:100,pulsealgorithm:!0,pulsescale:4,pulsenormalize:1,accelerationdelta:50,accelerationmax:3,keyboardsupport:!0,arrowscroll:50,touchpadsupport:!1,fixedbackground:!0,excluded:""},z=c,l=!1,x=!1,y={x:0,y:0},a=!1,b=document.documentelement,o=[],k=/^mac/.test(navigator.platform),n={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},q=[],p=!1,r=date.now(),j=function(){var e=0;return function(t){return t.uniqueid||(t.uniqueid=e++)}}(),f={};window.localstorage&&localstorage.ss_deltabuffer&&(o=localstorage.ss_deltabuffer.split(","));var i,_=function(){return window.requestanimationframe||window.webkitrequestanimationframe||window.mozrequestanimationframe||function(e,t,o){window.settimeout(e,o||1e3/60)}}(),v=window.mutationobserver||window.webkitmutationobserver||window.mozmutationobserver,$=function(){var e;return function(){if(!e){var t=document.createelement("div");t.style.csstext="height:10000px;width:1px;",document.body.appendchild(t);var o=document.body.scrolltop;document.documentelement.scrolltop;window.scrollby(0,1),e=document.body.scrolltop!=o?document.body:document.documentelement,window.scrollby(0,-1),document.body.removechild(t)}return e}}(),u=window.navigator.useragent,w=/edge/.test(u),g=/chrome/i.test(u)&&!w,j=/safari/i.test(u)&&!w,q=/mobile/i.test(u),z=(g||j)&&!q;"onwheel"in document.createelement("div")?i="wheel":"onmousewheel"in document.createelement("div")&&(i="mousewheel"),i&&z&&(m(i,r),m("mousedown",i),m("load",t)),k.destroy=o,window.smoothscrolloptions&&k(window.smoothscrolloptions),"function"==typeof define&&define.amd?define(function(){return k}):"object"==typeof exports?module.exports=k:window.smoothscroll=k}(); /*! * imagesloaded packaged v4.1.0 * javascript is all like "you images are done yet or what?" * mit license */ !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()}(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-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var 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-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceevents&&this._onceevents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesloaded=e(t,t.evemitter)}(window,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;i1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=math.max(2*d.items,4),f=2*math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerhtml,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerhtml+i;this._clones=b,a(h).addclass("cloned").appendto(this.$stage),a(i).addclass("cloned").prependto(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeclass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addclass("active"),this.settings.center&&(this.$stage.children(".center").removeclass("center"),this.$stage.children().eq(this.current()).addclass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleclass(this.settings.rtlclass,this.settings.rtl),this.settings.autowidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nesteditemselector?"."+this.settings.nesteditemselector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadautowidthimages(b)}this.$element.addclass(this.options.loadingclass),this.$stage=a("<"+this.settings.stageelement+' class="'+this.settings.stageclass+'"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeclass(this.options.loadingclass).addclass(this.options.loadedclass),this.registereventhandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagepadding&&(e.stagepadding=e.stagepadding()),delete e.responsive,e.responsiveclass&&this.$element.attr("class",this.$element.attr("class").replace(new regexp("("+this.options.responsiveclass+"-)\\s+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionslogic=function(){this.settings.autowidth&&(this.settings.stagepadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemelement+"/>").addclass(this.options.itemclass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.width.default){case e.width.inner:case e.width.outer:return this._width;default:return this._width-2*this.settings.stagepadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionslogic(),this.$element.addclass(this.options.refreshclass),this.update(),this.$element.removeclass(this.options.refreshclass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onthrottledresize=function(){b.cleartimeout(this.resizetimer),this.resizetimer=b.settimeout(this._handlers.onresize,this.settings.responsiverefreshrate)},e.prototype.onresize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isdefaultprevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registereventhandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.ontransitionend,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onthrottledresize),this.settings.mousedrag&&(this.$element.addclass(this.options.dragclass),this.$stage.on("mousedown.owl.core",a.proxy(this.ondragstart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchdrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.ondragstart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.ondragend,this)))},e.prototype.ondragstart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleclass(this.options.grabclass,"mousedown"===b.type),this.speed(0),this._drag.time=(new date).gettime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.ondragend,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.ondragmove,this)),math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeclass(this.options.grabclass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragendspeed||this.settings.smartspeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(math.abs(d.x)>3||(new date).gettime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freedrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&bh-f-e&&b",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.ontransitionend(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackeasing,a.proxy(this.ontransitionend,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isnumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autowidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:math.min(math.max(math.abs(b-a),1),6)*math.abs(c||this.settings.smartspeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=math.max(h,math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.ontransitionend=function(a){if(a!==d&&(a.stoppropagation(),(a.target||a.srcelement||a.originaltarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsivebaseelement!==b?d=a(this.options.responsivebaseelement).width():b.innerwidth?d=b.innerwidth:c.documentelement&&c.documentelement.clientwidth?d=c.documentelement.clientwidth:console.warn("can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jquery?b:a(b)),this.settings.nesteditemselector&&(b=b.find("."+this.settings.nesteditemselector)),b.filter(function(){return 1===this.nodetype}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isnumeric(this.settings.startposition)?this.settings.startposition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jquery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addback("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadautowidthimages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.cleartimeout(this.resizetimer),this.off(b,"resize",this._handlers.onthrottledresize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeclass(this.options.refreshclass).removeclass(this.options.loadingclass).removeclass(this.options.loadedclass).removeclass(this.options.rtlclass).removeclass(this.options.dragclass).removeclass(this.options.grabclass).attr("class",this.$element.attr("class").replace(new regexp(this.options.responsiveclass+"-\\s+\\s","g"),"")).removedata("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addeventlistener?a.addeventlistener(b,c,d):a.attachevent&&a.attachevent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeeventlistener?a.removeeventlistener(b,c,d):a.detachevent&&a.detachevent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelcase(a.grep(["on",b,d],function(a){return a}).join("-").tolowercase()),j=a.event([b,"owl",d||"carousel"].join(".").tolowercase(),a.extend({relatedtarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.ontrigger&&b.ontrigger(j)}),this.register({type:e.type.event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.type.event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexof("owl")!==-1?a.namespace&&a.namespace.indexof("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.type.state&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inarray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalevent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedtouches&&a.changedtouches.length?a.changedtouches[0]:a,a.pagex?(c.x=a.pagex,c.y=a.pagey):(c.x=a.clientx,c.y=a.clienty),c},e.prototype.isnumeric=function(a){return!isnan(parsefloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlcarousel=function(b){var c=array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.type.event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedtarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charat(0)&&f[b].apply(f,c)})},a.fn.owlcarousel.constructor=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autorefresh&&this.watch()},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers)};e.defaults={autorefresh:!0,autorefreshinterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setinterval(a.proxy(this.refresh,this),this._core.settings.autorefreshinterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleclass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearinterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in object.getownpropertynames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlcarousel.constructor.plugins.autorefresh=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyload&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicepixelratio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.lazy=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoheight&&a.element.closest("."+this._core.settings.itemclass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers)};e.defaults={autoheight:!1,autoheightclass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toarray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=math.max.apply(null,e),this._core.$stage.parent().height(f).addclass(this._core.settings.autoheightclass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.autoheight=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isinfullscreen()&&a.preventdefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.defaults={video:!1,videoheight:!1,videowidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videowidth,f=a.attr("data-height")||this._core.settings.videoheight,g=a.attr("href");if(!g)throw new error("missing video url.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([a-za-z0-9._%-]*)(\&\s+)?/),d[3].indexof("youtu")>-1)c="youtube";else if(d[3].indexof("vimeo")>-1)c="vimeo";else{if(!(d[3].indexof("vzaar")>-1))throw new error("video url not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='
',d=k.lazyload?'
':'
',b.after(d),b.after(e)};if(b.wrap('
"),this._core.settings.lazyload&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"get",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",datatype:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"get",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",datatype:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeclass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemclass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='':"vimeo"===f.type?c='':"vzaar"===f.type&&(c=''),a('
'+c+"
").insertafter(e.find(".owl-video")),this._playing=e.addclass("owl-video-playing"))},e.prototype.isinfullscreen=function(){var b=c.fullscreenelement||c.mozfullscreenelement||c.webkitfullscreenelement;return b&&a(b).parent().hasclass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.video=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateout||this.core.options.animatein)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.defaults={animateout:!1,animatein:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animatein,g=this.core.settings.animateout;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addclass("animated owl-animated-out").addclass(g)),f&&e.one(a.support.animation.end,c).addclass("animated owl-animated-in").addclass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeclass("animated owl-animated-out owl-animated-in").removeclass(this.core.settings.animatein).removeclass(this.core.settings.animateout),this.core.ontransitionend()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)}, a.fn.owlcarousel.constructor.plugins.animate=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setautoplayinterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayhoverpause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayhoverpause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.defaults,this._core.options)};e.defaults={autoplay:!1,autoplaytimeout:5e3,autoplayhoverpause:!1,autoplayspeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setautoplayinterval())},e.prototype._getnexttimeout=function(d,e){return this._timeout&&b.cleartimeout(this._timeout),b.settimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplayspeed)},this),d||this._core.settings.autoplaytimeout)},e.prototype._setautoplayinterval=function(){this._timeout=this._getnexttimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.cleartimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.autoplay=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsdata&&this._templates.push('
'+a(b.content).find("[data-dot]").addback("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsdata&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsdata&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.defaults,this._core.options),this.$element.on(this._handlers)};e.defaults={nav:!1,navtext:["prev","next"],navspeed:!1,navelement:"div",navcontainer:!1,navcontainerclass:"owl-nav",navclass:["owl-prev","owl-next"],slideby:1,dotclass:"owl-dot",dotsclass:"owl-dots",dots:!0,dotseach:!1,dotsdata:!1,dotsspeed:!1,dotscontainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navcontainer?a(c.navcontainer):a("
").addclass(c.navcontainerclass).appendto(this.$element)).addclass("disabled"),this._controls.$previous=a("<"+c.navelement+">").addclass(c.navclass[0]).html(c.navtext[0]).prependto(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navspeed)},this)),this._controls.$next=a("<"+c.navelement+">").addclass(c.navclass[1]).html(c.navtext[1]).appendto(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navspeed)},this)),c.dotsdata||(this._templates=[a("
").addclass(c.dotclass).append(a("")).prop("outerhtml")]),this._controls.$absolute=(c.dotscontainer?a(c.dotscontainer):a("
").addclass(c.dotsclass).appendto(this.$element)).addclass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventdefault(),this.to(d,c.dotsspeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in object.getownpropertynames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autowidth||g.dotsdata?1:g.dotseach||g.items;if("page"!==g.slideby&&(g.slideby=math.min(g.slideby,g.items)),g.dots||"page"==g.slideby)for(this._pages=[],a=d,b=0,c=0;a=h||0===b){if(this._pages.push({start:math.min(f,a-d),end:a-d+h-1}),math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleclass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleclass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleclass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleclass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsdata&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeclass("active"),this._controls.$absolute.children().eq(a.inarray(this.current(),this._pages)).addclass("active"))},e.prototype.ontrigger=function(b){var c=this._core.settings;b.page={index:a.inarray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autowidth||c.dotsdata?1:c.dotseach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getposition=function(b){var c,d,e=this._core.settings;return"page"==e.slideby?(c=a.inarray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideby:c-=e.slideby),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getposition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getposition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlcarousel.constructor.plugins.navigation=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"urlhash"===this._core.settings.startposition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addback("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.defaults={urlhashlistener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in object.getownpropertynames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlcarousel.constructor.plugins.hash=e}(window.zepto||window.jquery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charat(0).touppercase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("").get(0).style,h="webkit moz o ms".split(" "),i={transition:{end:{webkittransition:"webkittransitionend",moztransition:"transitionend",otransition:"otransitionend",transition:"transitionend"}},animation:{end:{webkitanimation:"webkitanimationend",mozanimation:"animationend",oanimation:"oanimationend",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new string(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new string(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new string(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.zepto||window.jquery,window,document); /* plugin: jquery parallax version 1.1.3 plugin url: http://www.ianlunn.co.uk/plugins/jquery-parallax/ */ !function(a){var b=a(window),c=b.height();b.resize(function(){c=b.height()}),a.fn.parallax=function(d,e,f){function k(){var f=b.scrolltop();g.each(function(){var b=a(this),j=b.offset().top,k=h(b);j+kf+c||g.css("backgroundposition",d+" "+math.round((i-f)*e)+"px")})}var h,i,g=a(this);g.each(function(){i=g.offset().top}),h=f?function(a){return a.outerheight(!0)}:function(a){return a.height()},(arguments.length<1||null===d)&&(d="50%"),(arguments.length<2||null===e)&&(e=.1),(arguments.length<3||null===f)&&(f=!0),b.bind("scroll",k).resize(k),k()}}(jquery); /** * jquery.localscroll - animated scrolling navigation, using anchors. * copyright (c) 2007-2009 ariel flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * @version 1.2.7 **/ ;(function($){var l=location.href.replace(/#.*/,'');var g=$.localscroll=function(a){$('body').localscroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollto(0,a);a.duration=e}i(0,location,a)}};$.fn.localscroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentnode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getelementbyid(d)||document.getelementsbyname(d)[0];if(!f)return;if(a)a.preventdefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onbefore&&b.onbefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$(' ').attr(j,d).css({position:'absolute',top:$(window).scrolltop(),left:$(window).scrollleft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollto(f,b).trigger('notify.serialscroll',[f])}})(jquery); /* * jquery easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * uses the built in easing capabilities added in jquery 1.1 */ jquery.easing.jswing=jquery.easing.swing;jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(e,f,a,h,g){return jquery.easing[jquery.easing.def](e,f,a,h,g)},easeinquad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeoutquad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeinoutquad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeincubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeoutcubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeinoutcubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeinquart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeoutquart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeinoutquart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeinquint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeoutquint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeinoutquint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeinsine:function(e,f,a,h,g){return -h*math.cos(f/g*(math.pi/2))+h+a},easeoutsine:function(e,f,a,h,g){return h*math.sin(f/g*(math.pi/2))+a},easeinoutsine:function(e,f,a,h,g){return -h/2*(math.cos(math.pi*f/g)-1)+a},easeinexpo:function(e,f,a,h,g){return(f==0)?a:h*math.pow(2,10*(f/g-1))+a},easeoutexpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-math.pow(2,-10*f/g)+1)+a},easeinoutexpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*math.pow(2,10*(f-1))+a}return h/2*(-math.pow(2,-10*--f)+2)+a},easeincirc:function(e,f,a,h,g){return -h*(math.sqrt(1-(f/=g)*f)-1)+a},easeoutcirc:function(e,f,a,h,g){return h*math.sqrt(1-(f=f/g-1)*f)+a},easeinoutcirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(math.sqrt(1-f*f)-1)+a}return h/2*(math.sqrt(1-(f-=2)*f)+1)+a},easeinelastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(gb;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.ismobile=function(a){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(a)},a.prototype.createevent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createevent?(e=document.createevent("customevent"),e.initcustomevent(a,b,c,d)):null!=document.createeventobject?(e=document.createeventobject(),e.eventtype=a):e.eventname=a,e},a.prototype.emitevent=function(a,b){return null!=a.dispatchevent?a.dispatchevent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addevent=function(a,b,c){return null!=a.addeventlistener?a.addeventlistener(b,c,!1):null!=a.attachevent?a.attachevent("on"+b,c):a[b]=c},a.prototype.removeevent=function(a,b,c){return null!=a.removeeventlistener?a.removeeventlistener(b,c,!1):null!=a.detachevent?a.detachevent("on"+b,c):delete a[b]},a.prototype.innerheight=function(){return"innerheight"in window?window.innerheight:document.documentelement.clientheight},a}(),c=this.weakmap||this.mozweakmap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.mutationobserver||this.webkitmutationobserver||this.mozmutationobserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("mutationobserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("wow.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notsupported=!0,a.prototype.observe=function(){},a}()),d=this.getcomputedstyle||function(a,b){return this.getpropertyvalue=function(b){var c;return"float"===b&&(b="stylefloat"),e.test(b)&&b.replace(e,function(a,b){return b.touppercase()}),(null!=(c=a.currentstyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.wow=function(){function e(a){null==a&&(a={}),this.scrollcallback=f(this.scrollcallback,this),this.scrollhandler=f(this.scrollhandler,this),this.resetanimation=f(this.resetanimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollcontainer&&(this.config.scrollcontainer=document.queryselector(a.scrollcontainer)),this.animationnamecache=new c,this.wowevent=this.util().createevent(this.config.boxclass)}return e.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollcontainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentelement,"interactive"===(a=document.readystate)||"complete"===a?this.start():this.util().addevent(document,"domcontentloaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.queryselectorall("."+this.config.boxclass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetstyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applystyle(b,!0);return this.disabled()||(this.util().addevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().addevent(window,"resize",this.scrollhandler),this.interval=setinterval(this.scrollcallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addednodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.dosync(e));return d}.call(a));return g}}(this)).observe(document.body,{childlist:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().removeevent(window,"resize",this.scrollhandler),null!=this.interval?clearinterval(this.interval):void 0},e.prototype.sync=function(b){return a.notsupported?this.dosync(this.element):void 0},e.prototype.dosync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodetype){for(a=a.parentnode||a,e=a.queryselectorall("."+this.config.boxclass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetstyle():this.applystyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applystyle(a),a.classname=a.classname+" "+this.config.animateclass,null!=this.config.callback&&this.config.callback(a),this.util().emitevent(a,this.wowevent),this.util().addevent(a,"animationend",this.resetanimation),this.util().addevent(a,"oanimationend",this.resetanimation),this.util().addevent(a,"webkitanimationend",this.resetanimation),this.util().addevent(a,"msanimationend",this.resetanimation),a},e.prototype.applystyle=function(a,b){var c,d,e;return d=a.getattribute("data-wow-duration"),c=a.getattribute("data-wow-delay"),e=a.getattribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customstyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestanimationframe"in window?function(a){return window.requestanimationframe(a)}:function(a){return a()}}(),e.prototype.resetstyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetanimation=function(a){var b;return a.type.tolowercase().indexof("animationend")>=0?(b=a.target||a.srcelement,b.classname=b.classname.replace(this.config.animateclass,"").trim()):void 0},e.prototype.customstyle=function(a,b,c,d,e){return b&&this.cacheanimationname(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorset(a.style,{animationduration:c}),d&&this.vendorset(a.style,{animationdelay:d}),e&&this.vendorset(a.style,{animationiterationcount:e}),this.vendorset(a.style,{animationname:b?"none":this.cachedanimationname(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorset=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charat(0).touppercase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorcss=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getpropertycssvalue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getpropertycssvalue("-"+i+"-"+b);return g},e.prototype.animationname=function(a){var b;try{b=this.vendorcss(a,"animation-name").csstext}catch(c){b=d(a).getpropertyvalue("animation-name")}return"none"===b?"":b},e.prototype.cacheanimationname=function(a){return this.animationnamecache.set(a,this.animationname(a))},e.prototype.cachedanimationname=function(a){return this.animationnamecache.get(a)},e.prototype.scrollhandler=function(){return this.scrolled=!0},e.prototype.scrollcallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isvisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsettop=function(a){for(var b;void 0===a.offsettop;)a=a.parentnode;for(b=a.offsettop;a=a.offsetparent;)b+=a.offsettop;return b},e.prototype.isvisible=function(a){var b,c,d,e,f;return c=a.getattribute("data-wow-offset")||this.config.offset,f=this.config.scrollcontainer&&this.config.scrollcontainer.scrolltop||window.pageyoffset,e=f+math.min(this.element.clientheight,this.util().innerheight())-c,d=this.offsettop(a),b=d+a.clientheight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},e}()}).call(this); /*! * isotope packaged v3.0.1 * licensed gplv3 for open source use * http://isotope.metafizzy.co * copyright 2016 metafizzy */ !function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jquerybridget=e(t,t.jquery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charat(0))return void r(s+" is not a valid method");var l=d.apply(h,n);o=void 0===o?l:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jquery,a&&(s.prototype.option||(s.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=o.call(arguments,1);return u(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.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-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var 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-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceevents&&this._onceevents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"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(){"use strict";function t(t){var e=parsefloat(t),i=-1==t.indexof("%")&&!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;h>e;e++){var i=u[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!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 o=n(e);s.isboxsizeouter=r=200==t(o.width),i.removechild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==s.boxsizing,l=0;h>l;l++){var f=u[l],c=s[f],m=parsefloat(c);a[f]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,y=a.paddingtop+a.paddingbottom,g=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,i=a.bordertopwidth+a.borderbottomwidth,z=d&&r,x=t(s.width);x!==!1&&(a.width=x+(z?0:p+_));var s=t(s.height);return s!==!1&&(a.height=s+(z?0:y+i)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(y+i),a.outerwidth=a.width+g,a.outerheight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;ir?"round":"floor";s=math[a](s),this.cols=math.max(s,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),s=math.min.apply(math,o),r=o.indexof(s),a={x:this.columnwidth*r,y:s},u=s+t.size.outerheight,h=this.cols+1-o.length,d=0;h>d;d++)this.colys[r+d]=u;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),s=o?n.left:n.right,r=s+i.outerwidth,a=math.floor(s/this.columnwidth);a=math.max(0,a);var u=math.floor(r/this.columnwidth);u-=r%this.columnwidth?0:1,u=math.min(this.cols-1,u);for(var h=this._getoption("origintop"),d=(h?n.top:n.bottom)+i.outerheight,l=a;u>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.isotope.layoutmode,t.masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getelementoffset:!0,layout:!0,_getmeasurement:!0};for(var s in e.prototype)o[s]||(n[s]=e.prototype[s]);var r=n.measurecolumns;n.measurecolumns=function(){this.items=this.isotope.filtereditems,r.call(this)};var a=n._getoption;return n._getoption=function(t){return"fitwidth"==t?void 0!==this.options.isfitwidth?this.options.isfitwidth:this.options.fitwidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.isotope.layoutmode)}(window,function(t){"use strict";var e=t.create("fitrows"),i=e.prototype;return i._resetlayout=function(){this.x=0,this.y=0,this.maxy=0,this._getmeasurement("gutter","outerwidth")},i._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth+this.gutter,i=this.isotope.size.innerwidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxy);var n={x:this.x,y:this.y};return this.maxy=math.max(this.maxy,this.y+t.size.outerheight),this.x+=e,n},i._getcontainersize=function(){return{height:this.maxy}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.isotope.layoutmode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalalignment:0}),i=e.prototype;return i._resetlayout=function(){this.y=0},i._getitemlayoutposition=function(t){t.getsize();var e=(this.isotope.size.innerwidth-t.size.outerwidth)*this.options.horizontalalignment,i=this.y;return this.y+=t.size.outerheight,{x:e,y:i}},i._getcontainersize=function(){return{height:this.y}},e}),function(t,e){"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(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("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")):t.isotope=e(t,t.outlayer,t.getsize,t.matchesselector,t.fizzyuiutils,t.isotope.item,t.isotope.layoutmode)}(window,function(t,e,i,n,o,s,r){function a(t,e){return function(i,n){for(var o=0;oa||a>r){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jquery,h=string.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutmode:"masonry",isjqueryfiltering:!0,sortascending:!0});d.item=s,d.layoutmode=r;var l=d.prototype;l._create=function(){this.itemguid=0,this._sorters={},this._getsorters(),e.prototype._create.call(this),this.modes={},this.filtereditems=this.items,this.sorthistory=["original-order"];for(var t in r.modes)this._initlayoutmode(t)},l.reloaditems=function(){this.itemguid=0,e.prototype.reloaditems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;ii;i++){var n=t[i];n.updatesortdata()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=o&&o[1],r=e(s,n),a=d.sortdataparsers[i[1]]; return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getattribute(t)}:function(t){var i=t.queryselector(e);return i&&i.textcontent}}return t}();d.sortdataparsers={parseint:function(t){return parseint(t,10)},parsefloat:function(t){return parsefloat(t)}},l._sort=function(){var t=this.options.sortby;if(t){var e=[].concat.apply(t,this.sorthistory),i=a(e,this.options.sortascending);this.filtereditems.sort(i),t!=this.sorthistory[0]&&this.sorthistory.unshift(t)}},l._mode=function(){var t=this.options.layoutmode,e=this.modes[t];if(!e)throw new error("no layout mode: "+t);return e.options=this.options[t],e},l._resetlayout=function(){e.prototype._resetlayout.call(this),this._mode()._resetlayout()},l._getitemlayoutposition=function(t){return this._mode()._getitemlayoutposition(t)},l._managestamp=function(t){this._mode()._managestamp(t)},l._getcontainersize=function(){return this._mode()._getcontainersize()},l.needsresizelayout=function(){return this._mode().needsresizelayout()},l.appended=function(t){var e=this.additems(t);if(e.length){var i=this._filterrevealadded(e);this.filtereditems=this.filtereditems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetlayout(),this._managestamps();var i=this._filterrevealadded(e);this.layoutitems(this.filtereditems),this.filtereditems=i.concat(this.filtereditems),this.items=e.concat(this.items)}},l._filterrevealadded=function(t){var e=this._filter(t);return this.hide(e.needhide),this.reveal(e.matches),this.layoutitems(e.matches,!0),e.matches},l.insert=function(t){var e=this.additems(t);if(e.length){var i,n,o=e.length;for(i=0;o>i;i++)n=e[i],this.element.appendchild(n.element);var s=this._filter(e).matches;for(i=0;o>i;i++)e[i].islayoutinstant=!0;for(this.arrange(),i=0;o>i;i++)delete e[i].islayoutinstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=o.makearray(t);var e=this.getitems(t);c.call(this,t);for(var i=e&&e.length,n=0;i&&i>n;n++){var s=e[n];o.removefrom(this.filtereditems,s)}},l.shuffle=function(){for(var t=0;t(a||v.height())},_setfocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onfocusin:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setfocus(),!1)},_parsemarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replacewith"===g?f[0]!==d[0]&&f.replacewith(d):"img"===g?f.is("img")?f.attr("src",d):f.replacewith(a("").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getscrollbarsize:function(){if(void 0===b.scrollbarsize){var a=document.createelement("div");a.style.csstext="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendchild(a),b.scrollbarsize=a.offsetwidth-a.clientwidth,document.body.removechild(a)}return b.scrollbarsize}},a.magnificpopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return a(),b=b?a.extend(!0,{},b):{},b.isobj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificpopup.instance&&a.magnificpopup.instance.close()},registermodule:function(b,c){c.options&&(a.magnificpopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableon:0,key:null,midclick:!1,mainclass:"",preloader:!0,focus:"",closeoncontentclick:!1,closeonbgclick:!0,closebtninside:!0,showclosebtn:!0,enableescapekey:!0,modal:!1,aligntop:!1,removaldelay:0,prependto:null,fixedcontentpos:"auto",fixedbgpos:"auto",overflowy:"auto",closemarkup:'',tclose:"close (esc)",tloading:"loading...",autofocuslast:!0}},a.fn.magnificpopup=function(c){a();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificpopup"):d[0].magnificpopup,g=parseint(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openclick({mfpel:e},d,f)}else b.isopen&&b[c].apply(b,array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificpopup",c):d[0].magnificpopup=c,b.addgroup(d,c);return d};var c,d,e,f="inline",g=function(){e&&(d.after(e.addclass(c)).detach(),e=null)};a.magnificpopup.registermodule(f,{options:{hiddenclass:"hide",markup:"",tnotfound:"content not found"},proto:{initinline:function(){b.types.push(f),w(h+"."+f,function(){g()})},getinline:function(c,d){if(g(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentnode;g&&g.tagname&&(d||(c=e.hiddenclass,d=x(c),c="mfp-"+c),e=f.after(d).detach().removeclass(c)),b.updatestatus("ready")}else b.updatestatus("error",e.tnotfound),f=a("
");return c.inlineelement=f,f}return b.updatestatus("ready"),b._parsemarkup(d,{},c),d}}});var h,i="ajax",j=function(){h&&a(document.body).removeclass(h)},k=function(){j(),b.req&&b.req.abort()};a.magnificpopup.registermodule(i,{options:{settings:null,cursor:"mfp-ajax-cur",terror:'the content could not be loaded.'},proto:{initajax:function(){b.types.push(i),h=b.st.ajax.cursor,w(h+"."+i,k),w("beforechange."+i,k)},getajax:function(c){h&&a(document.body).addclass(h),b.updatestatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("parseajax",g),b.appendcontent(a(g.data),i),c.finished=!0,j(),b._setfocus(),settimeout(function(){b.wrap.addclass(q)},16),b.updatestatus("ready"),y("ajaxcontentadded")},error:function(){j(),c.finished=c.loaderror=!0,b.updatestatus("error",b.st.ajax.terror.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var l,m=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titlesrc;if(d){if(a.isfunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificpopup.registermodule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titlesrc:"title",verticalfit:!0,terror:'the image could not be loaded.'},proto:{initimage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.curritem.type&&c.cursor&&a(document.body).addclass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeclass(c.cursor),v.off("resize"+p)}),w("resize"+d,b.resizeimage),b.islowie&&w("afterchange",b.resizeimage)},resizeimage:function(){var a=b.curritem;if(a&&a.img&&b.st.image.verticalfit){var c=0;b.islowie&&(c=parseint(a.img.css("padding-top"),10)+parseint(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wh-c)}},_onimagehassize:function(a){a.img&&(a.hassize=!0,l&&clearinterval(l),a.ischeckingimgsize=!1,y("imagehassize",a),a.imghidden&&(b.content&&b.content.removeclass("mfp-loading"),a.imghidden=!1))},findimagesize:function(a){var c=0,d=a.img[0],e=function(f){l&&clearinterval(l),l=setinterval(function(){return d.naturalwidth>0?void b._onimagehassize(a):(c>200&&clearinterval(l),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getimage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.curritem&&(b._onimagehassize(c),b.updatestatus("ready")),c.hassize=!0,c.loaded=!0,y("imageloadcomplete")):(e++,200>e?settimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.curritem&&(b._onimagehassize(c),b.updatestatus("error",h.terror.replace("%url%",c.src))),c.hassize=!0,c.loaded=!0,c.loaderror=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createelement("img");j.classname="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalwidth>0?c.hassize=!0:j.width||(c.hassize=!1)}return b._parsemarkup(d,{title:m(c),img_replacewith:c.img},c),b.resizeimage(),c.hassize?(l&&clearinterval(l),c.loaderror?(d.addclass("mfp-loading"),b.updatestatus("error",h.terror.replace("%url%",c.src))):(d.removeclass("mfp-loading"),b.updatestatus("ready")),d):(b.updatestatus("loading"),c.loading=!0,c.hassize||(c.imghidden=!0,d.addclass("mfp-loading"),b.findimagesize(c)),d)}}});var n,o=function(){return void 0===n&&(n=void 0!==document.createelement("p").style.moztransform),n};a.magnificpopup.registermodule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initzoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportstransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeattr("style").removeattr("class").addclass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zindex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("buildcontrols"+d,function(){if(b._allowzoom()){if(cleartimeout(e),b.content.css("visibility","hidden"),a=b._getitemtozoom(),!a)return void k();f=j(a),f.css(b._getoffset()),b.wrap.append(f),e=settimeout(function(){f.css(b._getoffset(!0)),e=settimeout(function(){k(),settimeout(function(){f.remove(),a=f=null,y("zoomanimationended")},16)},g)},16)}}),w(i+d,function(){if(b._allowzoom()){if(cleartimeout(e),b.st.removaldelay=g,!a){if(a=b._getitemtozoom(),!a)return;f=j(a)}f.css(b._getoffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),settimeout(function(){f.css(b._getoffset())},16)}}),w(h+d,function(){b._allowzoom()&&(k(),f&&f.remove(),a=null)})}},_allowzoom:function(){return"image"===b.curritem.type},_getitemtozoom:function(){return b.curritem.hassize?b.curritem.img:!1},_getoffset:function(c){var d;d=c?b.curritem.img:b.st.zoom.opener(b.curritem.el||b.curritem);var e=d.offset(),f=parseint(d.css("padding-top"),10),g=parseint(d.css("padding-bottom"),10);e.top-=a(window).scrolltop()-f;var h={width:d.width(),height:(u?d.innerheight():d[0].offsetheight)-g-f};return o()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var p="iframe",q="//about:blank",r=function(a){if(b.currtemplate[p]){var c=b.currtemplate[p].find("iframe");c.length&&(a||(c[0].src=q),b.isie8&&c.css("display",a?"block":"none"))}};a.magnificpopup.registermodule(p,{options:{markup:'
',srcaction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initiframe:function(){b.types.push(p),w("beforechange",function(a,b,c){b!==c&&(b===p?r():c===p&&r(!0))}),w(h+"."+p,function(){r()})},getiframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexof(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastindexof(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcaction&&(g[f.srcaction]=e),b._parsemarkup(d,g,c),b.updatestatus("ready"),d}}});var s=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},t=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificpopup.registermodule("gallery",{options:{enabled:!1,arrowmarkup:'',preload:[0,2],navigatebyimgclick:!0,arrows:!0,tprev:"previous (left arrow key)",tnext:"next (right arrow key)",tcounter:"%curr% of %total%"},proto:{initgallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigatebyimgclick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keycode?b.prev():39===a.keycode&&b.next()})}),w("updatestatus"+e,function(a,c){c.text&&(c.text=t(c.text,b.curritem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?t(c.tcounter,f.index,g):""}),w("buildcontrols"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowleft){var d=c.arrowmarkup,e=b.arrowleft=a(d.replace(/%title%/gi,c.tprev).replace(/%dir%/gi,"left")).addclass(s),f=b.arrowright=a(d.replace(/%title%/gi,c.tnext).replace(/%dir%/gi,"right")).addclass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadtimeout&&cleartimeout(b._preloadtimeout),b._preloadtimeout=settimeout(function(){b.preloadnearbyimages(),b._preloadtimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowright=b.arrowleft=null})):!1},next:function(){b.direction=!0,b.index=s(b.index+1),b.updateitemhtml()},prev:function(){b.direction=!1,b.index=s(b.index-1),b.updateitemhtml()},goto:function(a){b.direction=a>=b.index,b.index=a,b.updateitemhtml()},preloadnearbyimages:function(){var a,c=b.st.gallery.preload,d=math.min(c[0],b.items.length),e=math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloaditem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloaditem(b.index-a)},_preloaditem:function(c){if(c=s(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseel(c)),y("lazyload",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hassize=!0}).on("error.mfploader",function(){d.hassize=!0,d.loaderror=!0,y("lazyloaderror",d)}).attr("src",d.src)),d.preloaded=!0}}}});var u="retina";a.magnificpopup.registermodule(u,{options:{replacesrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initretina:function(){if(window.devicepixelratio>1){var a=b.st.retina,c=a.ratio;c=isnan(c)?c():c,c>1&&(w("imagehassize."+u,function(a,b){b.img.css({"max-width":b.img[0].naturalwidth/c,width:"100%"})}),w("elementparse."+u,function(b,d){d.src=a.replacesrc(d,c)}))}}}}),a()}); /*! tamjid counter * version 1.0.0*/ !function(t){"use strict";t.fn.tamjidcounter=function(n){var e=t.extend({},t.fn.tamjidcounter.defaults,n);return this.each(function(){var n=t(this);t(document).ready(function(){t.fn.tamjidcounterperform(n,e)}),t(document).on("scroll",function(){t.fn.tamjidcounterperform(n,e)})})},t.fn.tamjidcounterperform=function(n,e){var o=n.offset(),r=t(window).height(),i=o.top=t(document).scrolltop(),u=n.hasclass("tamjid-performed");i&&a&&!u&&(n.addclass("tamjid-performed"),settimeout(function(){n.prop("counter",0).animate({counter:n.text()},{duration:e.duration,easing:e.easing,step:function(t){n.text(math.ceil(t))}})},e.delay))},t.fn.tamjidcounter.defaults={duration:4e3,delay:0,easing:"swing"}}(jquery);