// source --> https://www.ecolegalilee.fr/ecolegalilee/wp-content/themes/customizr-pro/inc/assets/js/tc-scripts.min.js?ver=2.4.25 
var TCParams=TCParams||{DisabledFeatures:{},centerAllImg:1,FancyBoxAutoscale:1,FancyBoxState:1,HasComments:"",LeftSidebarClass:".span3.left.tc-sidebar",LoadBootstrap:1,LoadModernizr:1,ReorderBlocks:1,RightSidebarClass:".span3.right.tc-sidebar",SliderDelay:5e3,SliderHover:1,SliderName:"demo",centerSliderImg:1,SmoothScroll:{Enabled:1,Options:{}},anchorSmoothScroll:"linear",anchorSmoothScrollExclude:{simple:["[class*=edd]",".tc-carousel-control",".carousel-control",'[data-toggle="modal"]','[data-toggle="dropdown"]','[data-toggle="tooltip"]','[data-toggle="popover"]','[data-toggle="collapse"]','[data-toggle="tab"]',"[class*=upme]","[class*=um-]"],deep:{classes:[],ids:[]}},stickyCustomOffset:{_initial:0,_scrolling:0,options:{_static:!0,_element:""}},stickyHeader:1,dropdowntoViewport:1,timerOnScrollAllBrowsers:1,extLinksStyle:1,extLinksTargetExt:1,extLinksSkipSelectors:{classes:["btn","button"],ids:[]},dropcapEnabled:1,dropcapWhere:{post:0,page:1},dropcapMinWords:50,dropcapSkipSelectors:{tags:["IMG","IFRAME","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","UL","OL"],classes:["btn"],ids:[]},imgSmartLoadEnabled:0,imgSmartLoadOpts:{parentSelectors:[".article-container",".__before_main_wrapper",".widget-front"],opts:{excludeImg:[".tc-holder-img"]}},goldenRatio:1.618,gridGoldenRatioLimit:350,isSecondMenuEnabled:0,secondMenuRespSet:"in-sn-before"};window.addEventListener=window.addEventListener||function(t,e){window.attachEvent("on"+t,e)},Date.now||(Date.now=function(){return(new Date).getTime()}),Object.create||(Object.create=function(t,e){if(void 0!==e)throw"The multiple-argument version of Object.create is not provided by this browser and cannot be shimmed.";function i(){}return i.prototype=t,new i}),Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var n=[],o=2<=arguments.length?arguments[1]:void 0,s=0;s<i;s++)if(s in e){var r=e[s];t.call(o,r,s,e)&&n.push(r)}return n}),Array.prototype.map||(Array.prototype.map=function(t,e){var i,n,o;if(null==this)throw new TypeError(" this is null or not defined");var s=Object(this),r=s.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(i=e),n=new Array(r),o=0;o<r;){var a,l;o in s&&(a=s[o],l=t.call(i,a,o,s),n[o]=l),o++}return n});var smoothScroll,tcOutline;TCParams=TCParams||{};!function(e){"use strict";e(function(){var t;e.support.transition=(t=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}())&&{end:t}})}(window.jQuery),function(s){"use strict";var o=function(t,e){this.options=e,this.$element=s(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",s.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").on("load",this.options.remote)};o.prototype={constructor:o,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,t=s.Event("show");this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var t=s.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),t&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),t?e.$element.one(s.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(t){t&&t.preventDefault();t=s.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),s(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),s.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;s(document).on("focusin.modal",function(t){e.$element[0]===t.target||e.$element.has(t.target).length||e.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,e=setTimeout(function(){t.$element.off(s.support.transition.end),t.hideModal()},500);this.$element.one(s.support.transition.end,function(){clearTimeout(e),t.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=s.support.transition&&e;this.$backdrop=s('<div class="modal-backdrop '+e+'" />').appendTo(document.body);var n=this;if(this.$backdrop.on("click",function(){"static"==n.options.backdrop?s.proxy(n.$element[0].focus,n.$element[0]):s.proxy(n.hide,n)}),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(s.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(s.support.transition.end,t):t()):t&&t()}};var t=s.fn.modal;s.fn.modal=function(n){return this.each(function(){var t=s(this),e=t.data("modal"),i=s.extend({},s.fn.modal.defaults,t.data(),"object"==typeof n&&n);e||t.data("modal",e=new o(this,i)),"string"==typeof n?e[n]():i.show&&e.show()})},s.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},s.fn.modal.Constructor=o,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),i=e.attr("href"),n=s(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),o=n.data("modal")?"toggle":s.extend({remote:!/#/.test(i)&&i},n.data(),e.data());t.preventDefault(),n.modal(o).one("hide",function(){e.focus()})})}(window.jQuery),function(r){"use strict";var a="[data-toggle=dropdown]",n=function(t){var e=r(t).on("click.dropdown.data-api",this.toggle);r("html").on("click.dropdown.data-api",function(){e.parent().removeClass("open")})};function o(){r(".dropdown-backdrop").remove(),r(a).each(function(){l(r(this)).removeClass("open")})}function l(t){var e,i=t.attr("data-target");return i||(i=(i=t.attr("href"))&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),(e=i&&r(i))&&e.length||(e=t.parent()),e}n.prototype={constructor:n,toggle:function(t){var e,i,n=r(this);if(!n.is(".disabled, :disabled"))return i=(e=l(n)).hasClass("open")&&!e.children("ul").is(":visible"),o(),i||("ontouchstart"in document.documentElement&&r('<div class="dropdown-backdrop"/>').insertBefore(r(this)).on("click",o),e.toggleClass("open")),n.focus(),!1},keydown:function(t){var e,i,n,o,s;if(/(38|40|27)/.test(t.keyCode)&&(e=r(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(!(o=(n=l(e)).hasClass("open"))||o&&27==t.keyCode)return 27==t.which&&n.find(a).focus(),e.trigger("click");(i=r("[role=menu] li:not(.divider):visible a",n)).length&&(s=i.index(i.filter(":focus")),38==t.keyCode&&0<s&&s--,40==t.keyCode&&s<i.length-1&&s++,~s||(s=0),i.eq(s).focus())}}};var t=r.fn.dropdown;r.fn.dropdown=function(i){return this.each(function(){var t=r(this),e=t.data("dropdown");e||t.data("dropdown",e=new n(this)),"string"==typeof i&&e[i].call(t)})},r.fn.dropdown.Constructor=n,r.fn.dropdown.noConflict=function(){return r.fn.dropdown=t,this},r(document).on("click.dropdown.data-api",o).on("click.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.dropdown.data-api",a,n.prototype.toggle).on("keydown.dropdown.data-api",a+", [role=menu]",n.prototype.keydown)}(window.jQuery),function(s){"use strict";function o(t,e){var i,n=s.proxy(this.process,this);this.$element=s(t).is("body")?s(window):s(t),this.$body=s("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",n),this.options=s.extend({},o.DEFAULTS,e),this.selector=(this.options.target||(i=s(t).attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=s([]),this.targets=s([]),this.activeTarget=null,this.refresh(),this.process()}o.DEFAULTS={offset:10},o.prototype.refresh=function(){var n=this.$element[0]==window?"offset":"position";this.offsets=s([]),this.targets=s([]);var o=this;this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),i=/^#\w/.test(e)&&s(e);return i&&i.length&&[[i[n]().top+(!s.isWindow(o.$scrollElement.get(0))&&o.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){o.offsets.push(this[0]),o.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),n=this.offsets,o=this.targets,s=this.activeTarget;if(i<=e)return s!=(t=o.last()[0])&&this.activate(t);for(t=n.length;t--;)s!=o[t]&&e>=n[t]&&(!n[t+1]||e<=n[t+1])&&this.activate(o[t])},o.prototype.activate=function(t){this.activeTarget=t,s(this.selector).parents(".active").removeClass("active");var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=s(e).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate")};var t=s.fn.scrollspy;s.fn.scrollspy=function(n){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),i="object"==typeof n&&n;e||t.data("bs.scrollspy",e=new o(this,i)),"string"==typeof n&&e[n]()})},s.fn.scrollspy.Constructor=o,s.fn.scrollspy.noConflict=function(){return s.fn.scrollspy=t,this},s(window).on("load",function(){s('[data-spy="scroll"]').each(function(){var t=s(this);t.scrollspy(t.data())})})}(window.jQuery),function(r){"use strict";var n=function(t){this.element=r(t)};n.prototype={constructor:n,show:function(){var t,e,i,n=this.element,o=n.closest("ul:not(.dropdown-menu)"),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),n.parent("li").hasClass("active")||(t=o.find(".active:last a")[0],i=r.Event("show",{relatedTarget:t}),n.trigger(i),i.isDefaultPrevented()||(e=r(s),this.activate(n.parent("li"),o),this.activate(e,e.parent(),function(){n.trigger({type:"shown",relatedTarget:t})})))},activate:function(t,e,i){var n=e.find("> .active"),o=i&&r.support.transition&&n.hasClass("fade");function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),i&&i()}o?n.one(r.support.transition.end,s):s(),n.removeClass("in")}};var t=r.fn.tab;r.fn.tab=function(i){return this.each(function(){var t=r(this),e=t.data("tab");e||t.data("tab",e=new n(this)),"string"==typeof i&&e[i]()})},r.fn.tab.Constructor=n,r.fn.tab.noConflict=function(){return r.fn.tab=t,this},r(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),r(this).tab("show")})}(window.jQuery),function(l){"use strict";var o=function(t,e){this.init("tooltip",t,e)};o.prototype={constructor:o,init:function(t,e,i){var n,o,s,r,a;for(this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.enabled=!0,a=(s=this.options.trigger.split(" ")).length;a--;)"click"==(r=s[a])?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=r&&(n="hover"==r?"mouseenter":"focus",o="hover"==r?"mouseleave":"blur",this.$element.on(n+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,l.proxy(this.leave,this)));this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return(t=l.extend({},l.fn[this.type].defaults,this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var e,i=l.fn[this.type].defaults,n={};if(this._options&&l.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)},this),!(e=l(t.currentTarget)[this.type](n).data(this.type)).options.delay||!e.options.delay.show)return e.show();clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},leave:function(t){var e=l(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!e.options.delay||!e.options.delay.hide)return e.hide();e.hoverState="out",this.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},show:function(){var t,e,i,n,o,s,r=l.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(r),r.isDefaultPrevented())return;switch(t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),e=this.getPosition(),i=t[0].offsetWidth,n=t[0].offsetHeight,o){case"bottom":s={top:e.top+e.height,left:e.left+e.width/2-i/2};break;case"top":s={top:e.top-n,left:e.left+e.width/2-i/2};break;case"left":s={top:e.top+e.height/2-n/2,left:e.left-i};break;case"right":s={top:e.top+e.height/2-n/2,left:e.left+e.width}}this.applyPlacement(s,o),this.$element.trigger("shown")}},applyPlacement:function(t,e){var i,n,o,s,r=this.tip(),a=r[0].offsetWidth,l=r[0].offsetHeight;r.offset(t).addClass(e).addClass("in"),i=r[0].offsetWidth,n=r[0].offsetHeight,"top"==e&&n!=l&&(t.top=t.top+l-n,s=!0),"bottom"==e||"top"==e?(o=0,t.left<0&&(o=-2*t.left,t.left=0,r.offset(t),i=r[0].offsetWidth,n=r[0].offsetHeight),this.replaceArrow(o-a+i,i,"left")):this.replaceArrow(n-l,n,"top"),s&&r.offset(t)},replaceArrow:function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){var t,e=this.tip(),i=l.Event("hide");if(this.$element.trigger(i),!i.isDefaultPrevented())return e.removeClass("in"),l.support.transition&&this.$tip.hasClass("fade")?(t=setTimeout(function(){e.off(l.support.transition.end).detach()},500),e.one(l.support.transition.end,function(){clearTimeout(t),e.detach()})):e.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return l.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},tip:function(){return this.$tip=this.$tip||l(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var e=t?l(t.currentTarget)[this.type](this._options).data(this.type):this;e.tip().hasClass("in")?e.hide():e.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var t=l.fn.tooltip;l.fn.tooltip=function(n){return this.each(function(){var t=l(this),e=t.data("tooltip"),i="object"==typeof n&&n;e||t.data("tooltip",e=new o(this,i)),"string"==typeof n&&e[n]()})},l.fn.tooltip.Constructor=o,l.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(window.jQuery),function(o){"use strict";var s=function(t,e){this.init("popover",t,e)};s.prototype=o.extend({},o.fn.tooltip.Constructor.prototype,{constructor:s,setContent:function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](i),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t=this.$element,e=this.options;return("function"==typeof e.content?e.content.call(t[0]):e.content)||t.attr("data-content")},tip:function(){return this.$tip||(this.$tip=o(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var t=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var t=o(this),e=t.data("popover"),i="object"==typeof n&&n;e||t.data("popover",e=new s(this,i)),"string"==typeof n&&e[n]()})},o.fn.popover.Constructor=s,o.fn.popover.defaults=o.extend({},o.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(window.jQuery),function(a){"use strict";var o=function(t,e){this.options=a.extend({},a.fn.affix.defaults,e),this.$window=a(window).on("scroll.affix.data-api",a.proxy(this.checkPosition,this)).on("click.affix.data-api",a.proxy(function(){setTimeout(a.proxy(this.checkPosition,this),1)},this)),this.$element=a(t),this.checkPosition()};o.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t,e=a(document).height(),i=this.$window.scrollTop(),n=this.$element.offset(),o=this.options.offset,s=o.bottom,r=o.top;"object"!=typeof o&&(s=r=o),"function"==typeof r&&(r=o.top()),"function"==typeof s&&(s=o.bottom()),t=!(null!=this.unpin&&i+this.unpin<=n.top)&&(null!=s&&n.top+this.$element.height()>=e-s?"bottom":null!=r&&i<=r&&"top"),this.affixed!==t&&(this.affixed=t,this.unpin="bottom"==t?n.top-i:null,this.$element.removeClass("affix affix-top affix-bottom").addClass("affix"+(t?"-"+t:"")))}};var t=a.fn.affix;a.fn.affix=function(n){return this.each(function(){var t=a(this),e=t.data("affix"),i="object"==typeof n&&n;e||t.data("affix",e=new o(this,i)),"string"==typeof n&&e[n]()})},a.fn.affix.Constructor=o,a.fn.affix.defaults={offset:0},a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(window.jQuery),function(s){"use strict";var e='[data-dismiss="alert"]',n=function(t){s(t).on("click",e,this.close)};n.prototype.close=function(t){var e,i=s(this),n=i.attr("data-target");function o(){e.trigger("closed").remove()}n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),e=s(n),t&&t.preventDefault(),e.length||(e=i.hasClass("alert")?i:i.parent()),e.trigger(t=s.Event("close")),t.isDefaultPrevented()||(e.removeClass("in"),s.support.transition&&e.hasClass("fade")?e.on(s.support.transition.end,o):o())};var t=s.fn.alert;s.fn.alert=function(i){return this.each(function(){var t=s(this),e=t.data("alert");e||t.data("alert",e=new n(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=n,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.alert.data-api",e,n.prototype.close)}(window.jQuery),function(o){"use strict";var s=function(t,e){this.$element=o(t),this.options=o.extend({},o.fn.button.defaults,e)};s.prototype.setState=function(t){var e="disabled",i=this.$element,n=i.data(),o=i.is("input")?"val":"html";t+="Text",n.resetText||i.data("resetText",i[o]()),i[o](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},s.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=function(n){return this.each(function(){var t=o(this),e=t.data("button"),i="object"==typeof n&&n;e||t.data("button",e=new s(this,i)),"toggle"==n?e.toggle():n&&e.setState(n)})},o.fn.button.defaults={loadingText:"loading..."},o.fn.button.Constructor=s,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.button.data-api","[data-toggle^=button]",function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle")})}(window.jQuery),function(s){"use strict";var o=function(t,e){this.$element=s(t),this.options=s.extend({},s.fn.collapse.defaults,e),this._collapsed=!0,this.options.parent&&(this.$parent=s(this.options.parent)),this.options.toggle&&this.toggle()};o.prototype={constructor:o,dimension:function(){return this.$element.hasClass("width")?"width":"height"},show:function(){var t,e,i,n;if(!this.transitioning&&!this.$element.hasClass("in")){if(t=this.dimension(),e=s.camelCase(["scroll",t].join("-")),(i=this.$parent&&this.$parent.find("> .accordion-group > .in"))&&i.length){if((n=i.data("collapse"))&&n.transitioning)return;i.collapse("hide"),n||i.data("collapse",null)}if(this.$element[t](0),this.transition("addClass",s.Event("show.czrCollapse"),"shown.czrCollapse"),s.support.transition&&this.$element[t](this.$element[0][e]),this._collapsed=!1,this.$element.hasClass("nav-collapse"))if(TCParams&&1==TCParams.dropdowntoViewport){var o=(void 0===window.innerHeight?window.innerHeight:czrapp.$_window.height())-this.$element.offset().top+czrapp.$_window.scrollTop();this.$element.css("max-height",o+"px")}else TCParams&&1!=TCParams.dropdowntoViewport&&1==TCParams.stickyHeader&&(0!=s(".back-to-top").length?s(".back-to-top").trigger("click"):s("html, body").animate({scrollTop:0},700),s("body").removeClass("sticky-enabled").removeClass("tc-sticky-header"))}},hide:function(){var t;this.transitioning||this._collapsed&&!this.$element.hasClass("in")||(t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",s.Event("hide.czrCollapse"),"hidden.czrCollapse"),this.$element[t](0),this._collapsed=!0,this.$element.hasClass("nav-collapse")&&TCParams&&1!=TCParams.dropdowntoViewport&&1==TCParams.stickyHeader&&s("body").addClass("tc-sticky-header"))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(t,e,i){var n=this,o=function(){"show"==e.type&&n.reset(),n.transitioning=0,n.$element.trigger(i)};this.$element.trigger(e),e.isDefaultPrevented()||(this.transitioning=1,this.$element[t]("in"),s.support.transition&&this.$element.hasClass("collapse")?this.$element.one(s.support.transition.end,o):o())},toggle:function(){this[this.$element.hasClass("in")||!this._collapsed?"hide":"show"]()}};var t=s.fn.collapse;s.fn.collapse=function(n){return this.each(function(){var t=s(this),e=t.data("collapse"),i=s.extend({},s.fn.collapse.defaults,t.data(),"object"==typeof n&&n);e||t.data("collapse",e=new o(this,i)),"string"==typeof n&&e[n]()})},s.fn.collapse.defaults={toggle:!0},s.fn.collapse.Constructor=o,s.fn.collapse.noConflict=function(){return s.fn.collapse=t,this},s(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var e,i=s(this),n=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),o=s(n).data("collapse")?"toggle":i.data();i[s(n).hasClass("in")?"addClass":"removeClass"]("collapsed"),s(n).collapse(o)})}(window.jQuery),function(c){"use strict";var s=function(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,"hover"==this.options.pause&&this.$element.on("mouseenter",c.proxy(this.pause,this)).on("mouseleave",c.proxy(this.cycle,this))};s.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".czr-item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var e=this.getActiveIndex(),i=this;if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("customizr.slid",function(){i.to(t)}):e==t?this.pause().cycle():this.slide(e<t?"next":"prev",c(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition.end&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(!this.sliding)return this.slide("next")},prev:function(){if(!this.sliding)return this.slide("prev")},slide:function(t,e){!c.support.transition&&this.$element.hasClass("customizr-slide")&&this.$element.find(".czr-item").stop(!0,!0);var i,n=this.$element.find(".czr-item.active"),o=e||n[t](),s=this.interval,r="next"==t?"left":"right",a="next"==t?"first":"last",l=this;if(this.sliding=!0,s&&this.pause(),o=o.length?o:this.$element.find(".czr-item")[a](),i=c.Event("customizr.slide",{relatedTarget:o[0],direction:r}),!o.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("customizr.slid",function(){var t=c(l.$indicators.children()[l.getActiveIndex()]);t&&t.addClass("active")})),c.support.transition&&this.$element.hasClass("customizr-slide")){if(this.$element.trigger(i),i.isDefaultPrevented())return;0!==o.find("img").length&&o.find("img").trigger("customizr.slide"),o.addClass(t),o[0].offsetWidth,n.addClass(r),o.addClass(r),this.$element.one(c.support.transition.end,function(){o.removeClass([t,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("customizr.slid"),0!==o.find("img").length&&o.find("img").trigger("customizr.slid")},0)})}else if(!c.support.transition&&this.$element.hasClass("customizr-slide")){if(this.$element.trigger(i),i.isDefaultPrevented())return;n.animate({left:"right"==r?"100%":"-100%"},600,function(){n.removeClass("active"),l.sliding=!1,setTimeout(function(){l.$element.trigger("customizr.slid")},0)}),o.addClass(t).css({left:"right"==r?"-100%":"100%"}).animate({left:"0"},600,function(){o.removeClass(t).addClass("active")})}else{if(this.$element.trigger(i),i.isDefaultPrevented())return;n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("customizr.slid")}return s&&this.cycle(),this}}};var t=c.fn.czrCarousel;c.fn.czrCarousel=function(o){return this.each(function(){var t=c(this),e=t.data("czr-carousel"),i=c.extend({},c.fn.czrCarousel.defaults,"object"==typeof o&&o),n="string"==typeof o?o:i.slide;e||t.data("czr-carousel",e=new s(this,i)),"number"==typeof o?e.to(o):n?e[n]():i.interval&&e.pause().cycle()})},c.fn.czrCarousel.defaults={interval:5e3,pause:"hover"},c.fn.czrCarousel.Constructor=s,c.fn.czrCarousel.noConflict=function(){return c.fn.czrCarousel=t,this},c(document).on("click.czr-carousel.data-api",".customizr-slide [data-slide], .customizr-slide [data-slide-to]",function(t){var e,i,n=c(this),o=c(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),s=c.extend({},o.data(),n.data());o.czrCarousel(s),(i=n.attr("data-slide-to"))&&o.data("czr-carousel").pause().to(i).cycle(),t.preventDefault()})}(window.jQuery),function(o){"use strict";var s=function(t,e){this.$element=o(t),this.options=o.extend({},o.fn.typeahead.defaults,e),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=o(this.options.menu),this.shown=!1,this.listen()};s.prototype={constructor:s,select:function(){var t=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(t)).change(),this.hide()},updater:function(t){return t},show:function(){var t=o.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var e;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(e=o.isFunction(this.source)?this.source(this.query,o.proxy(this.process,this)):this.source)?this.process(e):this},process:function(t){var e=this;return t=o.grep(t,function(t){return e.matcher(t)}),(t=this.sorter(t)).length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(t){return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,i=[],n=[],o=[];e=t.shift();)e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?n.push(e):o.push(e):i.push(e);return i.concat(n,o)},highlighter:function(t){var e=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return t.replace(new RegExp("("+e+")","ig"),function(t,e){return"<strong>"+e+"</strong>"})},render:function(t){var i=this;return(t=o(t).map(function(t,e){return(t=o(i.options.item).attr("data-value",e)).find("a").html(i.highlighter(e)),t[0]})).first().addClass("active"),this.$menu.html(t),this},next:function(t){var e=this.$menu.find(".active").removeClass("active").next();e.length||(e=o(this.$menu.find("li")[0])),e.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();e.length||(e=this.$menu.find("li").last()),e.addClass("active")},listen:function(){this.$element.on("focus",o.proxy(this.focus,this)).on("blur",o.proxy(this.blur,this)).on("keypress",o.proxy(this.keypress,this)).on("keyup",o.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",o.proxy(this.keydown,this)),this.$menu.on("click",o.proxy(this.click,this)).on("mouseenter","li",o.proxy(this.mouseenter,this)).on("mouseleave","li",o.proxy(this.mouseleave,this))},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=~o.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),o(t.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var t=o.fn.typeahead;o.fn.typeahead=function(n){return this.each(function(){var t=o(this),e=t.data("typeahead"),i="object"==typeof n&&n;e||t.data("typeahead",e=new s(this,i)),"string"==typeof n&&e[n]()})},o.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},o.fn.typeahead.Constructor=s,o.fn.typeahead.noConflict=function(){return o.fn.typeahead=t,this},o(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var e=o(this);e.data("typeahead")||e.typeahead(e.data())})}(window.jQuery),function(r){["Width","Height"].map(function(t){var s=t.toLowerCase();r.fn["original"+t]="natural"+t in new Image?function(){return this[0]["natural"+t]}:function(){var t,e,i=(t=s,void 0!==typeof(e=r(this).attr(t))&&e);if(i)return i;var n,o=this[0];return"img"===o.tagName.toLowerCase()&&((n=new Image).src=o.src,i=n[s]),i}})}(jQuery),function(l){var i="addDropCap",n={wrapper:".entry-content",minwords:50,skipSelectors:{tags:["IMG","IFRAME","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"],classes:[],ids:[]}};function e(t,e){this.element=t,this.options=l.extend({},n,e),this._defaults=n,this._name=i,this.init()}e.prototype.init=function(){var t=this._get_dropcap_el();t&&this.options.minwords<=this._countWords(t.text())&&this._may_be_add_dc(t)},e.prototype._get_dropcap_el=function(t){var e=t||l(this.options.wrapper).find(this.element).first(),i=this._get_real_text(e.text());return!this._is_authorized(e)&&e.next().length?this._get_dropcap_el(e.next()):this._is_authorized(e)&&i?e:e.next().length?this._get_dropcap_el(e.next()):void 0},e.prototype._get_real_text=function(t){return t.replace(/&nbsp;/g,"").replace(/ /g,""),this._removeSpecChars(t)},e.prototype._is_authorized=function(t){return"function"!=typeof _||(!!(t[0]&&t[0].tagName&&this._is_tag_allowed(t)&&this._are_children_tag_allowed(t)&&this._is_selector_allowed(t,["ids","classes"]))||void 0)},e.prototype._may_be_add_dc=function(t){var e="",i=t.text().replace(/ /g,"&nbsp;").split("&nbsp;");if(_.isArray(i)&&(i.length&&(e=i[0]),(e=this._removeSpecChars(e)).charAt(0))){var n,o,s=e.charAt(0),r=e.substr(1);n=[s=['<span class="tc-dropcap">',s,"</span>"].join(""),r].join(""),o=t.html().replace(e,n),t.html(o)}},e.prototype._is_selector_allowed=function(e,t){if("object"!=typeof this.options.skipSelectors)return!0;var i=this;return 0===t.filter(function(t){return!1===i._is_sel_type_allowed(e,t)}).length},e.prototype._is_sel_type_allowed=function(e,t){if(!this.options.skipSelectors[t]||!Array.isArray(this.options.skipSelectors[t]))return!0;var i="ids"==t?"id":"class";if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[t]||!Array.isArray(this.options.skipSelectors[t]))return!0;var n=e.attr(i)?e.attr(i).split(" "):[],o=this.options.skipSelectors[t],s=n.filter(function(t){return-1!=l.inArray(t,o)}),r="ids"==t?"#":".",a=o.filter(function(t){return 0!==e.find(r+t).length});return 0===l.merge(s,a).length},e.prototype._is_tag_allowed=function(t){return"object"!=typeof this.options.skipSelectors||!_.isArray(this.options.skipSelectors.tags)||-1==_.indexOf(_.map(this.options.skipSelectors.tags,function(t){return t.toUpperCase()}),t[0].tagName)},e.prototype._are_children_tag_allowed=function(e){return"object"!=typeof this.options.skipSelectors||!_.isArray(this.options.skipSelectors.tags)||(0===e.children().length||0===this.options.skipSelectors.tags.filter(function(t){return 0!==e.find(t).length}).length)},e.prototype._countWords=function(t){return"string"!=typeof t?0:(t=t.replace("&nbsp;"," ")).split(" ").length},e.prototype._removeSpecChars=function(t,e){return e=e||"","string"==typeof t?t.replace(/[^\w-?!\u00bf-\u00ff]/g,e):""},e.prototype._stripHtmlTags=function(t){return!(!t||"string"!=typeof t)&&t.replace(/(<([^>]+)>)/gi,"")},l.fn[i]=function(t){return this.each(function(){l.data(this,"plugin_"+i)||l.data(this,"plugin_"+i,new e(this,t))})}}(jQuery),function(l,c){var n="imgSmartLoad",o={load_all_images_on_first_scroll:!1,attribute:["data-src","data-srcset","data-sizes"],excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},r="tc-smart-loaded";function e(t,e){this.element=t,this.options=l.extend({},o,e),_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+r):this.options.excludeImg=["."+r],this.options.excludeImg=_.uniq(this.options.excludeImg),this.imgSelectors="img["+this.options.attribute[0]+"]:not("+this.options.excludeImg.join()+")",this._defaults=o,this._name=n,this.init();var i=this;l(this.element).on("trigger-smartload",function(){i._maybe_trigger_load("trigger-smartload")})}e.prototype._getImgs=function(){return l(this.imgSelectors,this.element)},e.prototype.init=function(){var e=this;this.increment=1,this.timer=0,l("body").on("load_img",e.imgSelectors,function(){!0!==l(this).data("czr-smart-loaded")&&e._load_img(this)}),l(c).on("scroll",function(t){e._better_scroll_event_handler(t)}),l(c).on("resize",_.debounce(function(t){e._maybe_trigger_load(t)},100)),this._maybe_trigger_load("dom-ready"),l(this.element).data("smartLoadDone",!0)},e.prototype._better_scroll_event_handler=function(t){var e=this;this.doingAnimation||(this.doingAnimation=!0,c.requestAnimationFrame(function(){e._maybe_trigger_load(t),e.doingAnimation=!1}))},e.prototype._maybe_trigger_load=function(i){var n=this,t=n._getImgs();_.isObject(t)&&!_.isEmpty(t)&&t.filter(function(t,e){return n._is_visible(e,i)}).map(function(t,e){!0!==l(e).data("czr-smart-loaded")&&l(e).trigger("load_img")})},e.prototype._is_visible=function(t,e){var i=l(t),n=l(c).scrollTop(),o=n+l(c).height(),s=i.offset().top,r=s+i.height(),a=this.options.threshold;return!(!e||"scroll"!=e.type||!this.options.load_all_images_on_first_scroll)||n-a<=r&&s<=o+a},e.prototype._load_img=function(t){var i=l(t),e=i.attr(this.options.attribute[0]),n=i.attr(this.options.attribute[1]),o=i.attr(this.options.attribute[2]),s=this;i.parent().hasClass("smart-loading")||(i.parent().addClass("smart-loading"),i.off("load_img").removeAttr(this.options.attribute.join(" ")).attr("sizes",o).attr("srcset",n).attr("src",e).on("load",function(){if(i.hasClass(r)||i.fadeIn(s.options.fadeIn_options).addClass(r),void 0!==i.attr("data-tcjp-recalc-dims")&&!1!==i.attr("data-tcjp-recalc-dims")){var t=i.originalWidth(),e=i.originalHeight();if(2!=_.size(_.filter([t,e],function(t){return _.isNumber(parseInt(t,10))&&1<t})))return;i.removeAttr("data-tcjp-recalc-dims scale"),i.attr("width",t),i.attr("height",e)}i.trigger("smartload"),i.data("czr-smart-loaded",!0)}),i[0].complete&&i.trigger("load"),i.parent().removeClass("smart-loading"))},l.fn[n]=function(t){return this.each(function(){l.data(this,"plugin_"+n)||l.data(this,"plugin_"+n,new e(this,t))})}}(jQuery,window),function(n){var e="extLinks",i={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};function o(t,e){this.$_el=n(t),this.options=n.extend({},i,e),this._href="string"==typeof this.$_el.attr("href")?this.$_el.attr("href").trim():"",this.init()}o.prototype.init=function(){var t=this.$_el.next("."+this.options.iconClassName);this._is_eligible()?(this.options.addIcon&&0===t.length&&this.$_el.append('<span class="'+this.options.iconClassName+'">'),this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank")):t.length&&t.remove()},o.prototype._is_eligible=function(){var e=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter(function(t){return e._is_selector_allowed(t)}).length){var t=!0;return n.each(this.$_el.parents(),function(){if("underline"==n(this).css("textDecoration"))return t=!1}),t}},o.prototype._is_selector_allowed=function(t){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,t);var e="ids"==t?"id":"class",i=this.options.skipSelectors[t];return"object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[t]||!Array.isArray(this.options.skipSelectors[t])||0===this.options.skipSelectors[t].length||!(0<this.$_el.parents(i.map(function(t){return"id"==e?"#"+t:"."+t}).join(",")).length)&&(!this.$_el.attr(e)||0===this.$_el.attr(e).split(" ").filter(function(t){return-1!=n.inArray(t,i)}).length)},o.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var t=this.$_el.children().first()[0].tagName,e=this.options.skipChildTags;return!Array.isArray(e)||(e=e.map(function(t){return t.toUpperCase()}),-1==n.inArray(t,e))},o.prototype._is_external=function(t){var e=location.host.split(".").slice(-2).join("."),i=new RegExp(e);if("string"==typeof t)return""!==(t=t.trim())&&"#"!=t&&this._isValidURL(t)?!i.test(t):void 0},o.prototype._isValidURL=function(t){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},n.fn[e]=function(t){return this.each(function(){n.data(this,"plugin_"+e)||n.data(this,"plugin_"+e,new o(this,t))})}}(jQuery),function(l,s){var i="centerImages",n={enableCentering:!0,onresize:!0,onInit:!0,oncustom:[],$containerToListen:null,imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,enableGoldenRatio:!1,goldenRatioLimitHeightTo:350,goldenRatioVal:1.618,skipGoldenRatioClasses:["no-gold-ratio"],disableGRUnder:767,useImgAttr:!1,setOpacityWhenCentered:!1,addCenteredClassWithDelay:0,opacity:1};function e(t,e){this.container=t,this.options=l.extend({},n,e),this._defaults=n,this._name=i,this._customEvt=_.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" "),this.init()}e.prototype.init=function(){var i=this,e=function(t){t=t||"init",i._maybe_apply_golden_r();var e=l(i.options.imgSel,i.container);i.options.enableGoldenRatio&&l(s).on("resize",{},_.debounce(function(t){i._maybe_apply_golden_r(t)},200)),1<=e.length&&i.options.enableCentering&&i._parse_imgs(e,t)};i.options.onInit&&e(),_.isArray(i._customEvt)&&i._customEvt.map(function(t){(i.options.$containerToListen instanceof l&&1<i.options.$containerToListen.length?i.options.$containerToListen:l(i.container)).on(t,{},function(){e(t)})})},e.prototype._maybe_apply_golden_r=function(){if(this.options.enableGoldenRatio&&this.options.goldenRatioVal&&0!==this.options.goldenRatioVal&&this._is_selector_allowed())if(this._is_window_width_allowed()){var t=Math.round(l(this.container).width()/this.options.goldenRatioVal);t=t>this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:t,l(this.container).css({"line-height":t+"px",height:t+"px"}).trigger("golden-ratio-applied")}else l(this.container).attr("style","")},e.prototype._is_window_width_allowed=function(){return l(s).width()>this.options.disableGRUnder-15},e.prototype._parse_imgs=function(t,n){var o=this;if(t.each(function(t,e){var i=l(e);o._pre_img_cent(i,n),o.options.onresize&&!i.data("resize-react-bound")&&(i.data("resize-react-bound",!0),l(s).on("resize",_.debounce(function(){o._pre_img_cent(i,"resize")},100)))}),l(o.container).attr("data-img-centered-in-container")){var e=parseInt(l(o.container).attr("data-img-centered-in-container"),10)+1;l(o.container).attr("data-img-centered-in-container",e)}else l(o.container).attr("data-img-centered-in-container",1)},e.prototype._pre_img_cent=function(t){var e=this._get_current_state(t),i=this,n=e.current,o=e.prop[n],s=e.prop["h"==n?"v":"h"],r="h"==n?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,a=function(t){if(t.css(o.dim.name,o.dim.val).css(s.dim.name,i.options.defaultCSSVal[s.dim.name]||"auto").css(o.dir.name,o.dir.val).css(s.dir.name,r),0!==i.options.addCenteredClassWithDelay&&_.isNumber(i.options.addCenteredClassWithDelay)?_.delay(function(){t.addClass(o._class).removeClass(s._class)},i.options.addCenteredClassWithDelay):t.addClass(o._class).removeClass(s._class),t.attr("data-img-centered")){var e=parseInt(t.attr("data-img-centered"),10)+1;t.attr("data-img-centered",e)}else t.attr("data-img-centered",1);return t};this.options.setOpacityWhenCentered?l.when(a(t)).done(function(t){t.css("opacity",i.options.opacity)}):_.delay(function(){a(t)},0)},e.prototype._get_current_state=function(t){var e=t.closest(this.container).outerWidth(),i=l(this.container).outerHeight(),n=this._get_img_dim(t,"x"),o=this._get_img_dim(t,"y"),s=o*i!=0?Math.round(n/o*i):e,r=n*e!=0?Math.round(o/n*e):i,a="h";return 0!=e*n&&(a=o/n<=i/e?"h":"v"),{current:a,prop:{h:{dim:{name:"height",val:i},dir:{name:"left",val:(e-s)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:e},dir:{name:"top",val:(i-r)/2+(this.options.topAdjust||0)},_class:"v-centered"}}}},e.prototype._get_img_dim=function(t,e){if(!this.options.useImgAttr)return"x"==e?t.outerWidth():t.outerHeight();if(t.is(":visible"))return"x"==e?t.outerWidth():t.outerHeight();if("x"==e){var i=t.originalWidth();return void 0===typeof i?0:i}if("y"==e){var n=t.originalHeight();return void 0===typeof n?0:n}},e.prototype._is_selector_allowed=function(){if(!l(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!_.isArray(this.options.skipGoldenRatioClasses))return!0;var t=l(this.container).attr("class").split(" "),e=this.options.skipGoldenRatioClasses;return 0===t.filter(function(t){return-1!=l.inArray(t,e)}).length},l.fn[i]=function(t){return this.each(function(){l.data(this,"plugin_"+i)||l.data(this,"plugin_"+i,new e(this,t))})}}(jQuery,window),function(i,e,n){var o="czrParallax",s={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};function r(t,e){this.element=i(t),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=i.extend({},s,e,this.parseElementDataOptions()),this._defaults=s,this._name=o,this.init()}r.prototype.parseElementDataOptions=function(){return this.element.data()},r.prototype.init=function(){this.$_document=i(document),this.$_window=czrapp?czrapp.$_window:i(e),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},r.prototype._bind_evt=function(){n.bindAll(this,"maybeParallaxMe","parallaxMe")},r.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var t=this.element_wrapper;t.length&&t.css("overflow","hidden")}},r.prototype.initWaypoints=function(){var t=this;this.way_start=new Waypoint({element:t.element_wrapper.length?t.element_wrapper:t.element,handler:function(){t.maybeParallaxMe(),t.element.hasClass("parallaxing")?(t.element.removeClass("parallaxing"),t.$_window.off("scroll",t.maybeParallaxMe),t.doingAnimation=!1,t.element.css("top",0)):(t.$_window.on("scroll",t.maybeParallaxMe),t.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:t.element_wrapper.length?t.element_wrapper:t.element,handler:function(){t.maybeParallaxMe(),t.element.hasClass("parallaxing")?(t.element.removeClass("parallaxing"),t.$_window.off("scroll",t.maybeParallaxMe),t.doingAnimation=!1):(t.$_window.on("scroll",t.maybeParallaxMe),t.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},r.prototype.maybeParallaxMe=function(){var t=this;if(n.isFunction(e.matchMedia)&&matchMedia(t.options.matchMedia).matches)return this.setTopPosition();this.doingAnimation||(this.doingAnimation=!0,e.requestAnimationFrame(function(){t.parallaxMe(),t.doingAnimation=!1}))},r.prototype.setTopPosition=function(t){t=t||0,this.element.css({transform:"translate3d(0px, "+t+"px, .01px)","-webkit-transform":"translate3d(0px, "+t+"px, .01px)"})},r.prototype.parallaxMe=function(){var t=this.options.parallaxRatio,e=this.options.parallaxDirection,i=t*e*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(e*i<0?0:i)},i.fn[o]=function(t){return this.each(function(){i.data(this,"plugin_"+o)||i.data(this,"plugin_"+o,new r(this,t))})}}(jQuery,window,_),function(){for(var o=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-o));return o=i+n,window.setTimeout(function(){t(i+n)},n)}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var i,n=document.createElement("style"),t=document.getElementsByTagName("script")[0];n.type="text/css",n.id="matchmediajs-test",t?t.parentNode.insertBefore(n,t):document.head.appendChild(n),i="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle,e={matchMedium:function(t){var e="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=e:n.textContent=e,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){var c,l,t={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},g=t,d=!1,h=!1,o={x:0,y:0},p=!1,u=document.documentElement,s=[],r=/^Mac/.test(navigator.platform),f={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36};g=t;function a(){if(!p&&document.body){p=!0;var t=document.body,e=document.documentElement,i=window.innerHeight,n=t.scrollHeight;if(u=0<=document.compatMode.indexOf("CSS")?e:t,c=t,g.keyboardSupport&&j("keydown",b),top!=self)h=!0;else if(i<n&&(t.offsetHeight<=i||e.offsetHeight<=i)){var o,s=document.createElement("div");s.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+u.scrollHeight+"px",document.body.appendChild(s);var r=function(){o||(o=setTimeout(function(){d||(s.style.height="0",s.style.height=u.scrollHeight+"px",o=null)},500))};setTimeout(r,10);if((l=new I(r)).observe(t,{attributes:!0,childList:!0,characterData:!1}),u.offsetHeight<=i){var a=document.createElement("div");a.style.clear="both",t.appendChild(a)}}g.fixedBackground||d||(t.style.backgroundAttachment="scroll",e.style.backgroundAttachment="scroll")}}var v=[],y=!1,w=Date.now();function m(h,p,u){var t,e;if(t=0<(t=p)?1:-1,e=0<(e=u)?1:-1,(o.x!==t||o.y!==e)&&(o.x=t,o.y=e,v=[],w=0),1!=g.accelerationMax){var i=Date.now()-w;if(i<g.accelerationDelta){var n=(1+50/i)/2;1<n&&(n=Math.min(n,g.accelerationMax),p*=n,u*=n)}w=Date.now()}if(v.push({x:p,y:u,lastX:p<0?.99:-.99,lastY:u<0?.99:-.99,start:Date.now()}),!y){var f=h===document.body,m=function(t){for(var e=Date.now(),i=0,n=0,o=0;o<v.length;o++){var s=v[o],r=e-s.start,a=r>=g.animationTime,l=a?1:r/g.animationTime;g.pulseAlgorithm&&(l=W(l));var c=s.x*l-s.lastX>>0,d=s.y*l-s.lastY>>0;i+=c,n+=d,s.lastX+=c,s.lastY+=d,a&&(v.splice(o,1),o--)}f?window.scrollBy(i,n):(i&&(h.scrollLeft+=i),n&&(h.scrollTop+=n)),p||u||(v=[]),v.length?M(m,h,1e3/g.frameRate+1):y=!1};M(m,h,0),y=!0}}function e(t){p||a();var e=t.target,i=T(e);if(!i||t.defaultPrevented||t.ctrlKey)return!0;if(D(c,"embed")||D(e,"embed")&&/\.pdf/i.test(e.src)||D(c,"object"))return!0;var n=-t.wheelDeltaX||t.deltaX||0,o=-t.wheelDeltaY||t.deltaY||0;if(r&&(t.wheelDeltaX&&L(t.wheelDeltaX,120)&&(n=t.wheelDeltaX/Math.abs(t.wheelDeltaX)*-120),t.wheelDeltaY&&L(t.wheelDeltaY,120)&&(o=t.wheelDeltaY/Math.abs(t.wheelDeltaY)*-120)),n||o||(o=-t.wheelDelta||0),1===t.deltaMode&&(n*=40,o*=40),!g.touchpadSupport&&function(t){if(!t)return;s.length||(s=[t,t,t]);return t=Math.abs(t),s.push(t),s.shift(),clearTimeout($),$=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=s.join(","))},1e3),!R(120)&&!R(100)}(o))return!0;1.2<Math.abs(n)&&(n*=g.stepSize/120),1.2<Math.abs(o)&&(o*=g.stepSize/120),m(i,n,o),t.preventDefault(),z()}function b(t){var e=t.target,i=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==f.spacebar;document.contains(c)||(c=document.activeElement);var n=/^(button|submit|radio|checkbox|file|color|image)$/i;if(/^(textarea|select|embed|object)$/i.test(e.nodeName)||D(e,"input")&&!n.test(e.type)||D(c,"video")||function(t){var e=t.target,i=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(i=e.classList&&e.classList.contains("html5-video-controls"))break}while(e=e.parentNode);return i}(t)||e.isContentEditable||t.defaultPrevented||i)return!0;if((D(e,"button")||D(e,"input")&&n.test(e.type))&&t.keyCode===f.spacebar)return!0;var o=0,s=0,r=T(c),a=r.clientHeight;switch(r==document.body&&(a=window.innerHeight),t.keyCode){case f.up:s=-g.arrowScroll;break;case f.down:s=g.arrowScroll;break;case f.spacebar:s=-(t.shiftKey?1:-1)*a*.9;break;case f.pageup:s=.9*-a;break;case f.pagedown:s=.9*a;break;case f.home:s=-r.scrollTop;break;case f.end:var l=r.scrollHeight-r.scrollTop-a;s=0<l?l+10:0;break;case f.left:o=-g.arrowScroll;break;case f.right:o=g.arrowScroll;break;default:return!0}m(r,o,s),t.preventDefault(),z()}function i(t){c=t.target}var n,C,$,x=(n=0,function(t){return t.uniqueID||(t.uniqueID=n++)}),k={};function z(){clearTimeout(C),C=setInterval(function(){k={}},1e3)}function S(t,e){for(var i=t.length;i--;)k[x(t[i])]=e;return e}function T(t){var e=[],i=document.body,n=u.scrollHeight;do{var o=k[x(t)];if(o)return S(e,o);if(e.push(t),n===t.scrollHeight){var s=E(u)&&E(i)||P(u);if(h&&A(u)||!h&&s)return S(e,N())}else if(A(t)&&P(t))return S(e,t)}while(t=t.parentElement)}function A(t){return t.clientHeight+10<t.scrollHeight}function E(t){return"hidden"!==getComputedStyle(t,"").getPropertyValue("overflow-y")}function P(t){var e=getComputedStyle(t,"").getPropertyValue("overflow-y");return"scroll"===e||"auto"===e}function j(t,e,i){window.addEventListener(t,e,i||!1)}function H(t,e,i){window.removeEventListener(t,e,i||!1)}function D(t,e){return(t.nodeName||"").toLowerCase()===e.toLowerCase()}function L(t,e){return Math.floor(t/e)==t/e}function R(t){return L(s[0],t)&&L(s[1],t)&&L(s[2],t)}window.localStorage&&localStorage.SS_deltaBuffer&&(s=localStorage.SS_deltaBuffer.split(","));var O,M=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t,e,i){window.setTimeout(t,i||1e3/60)},I=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,N=function(){if(!O){var t=document.createElement("div");t.style.cssText="height:10000px;width:1px;",document.body.appendChild(t);var e=document.body.scrollTop;document.documentElement.scrollTop,window.scrollBy(0,1),O=document.body.scrollTop!=e?document.body:document.documentElement,window.scrollBy(0,-1),document.body.removeChild(t)}return O};function B(t){var e;return((t*=g.pulseScale)<1?t-(1-Math.exp(-t)):(t-=1,(e=Math.exp(-1))+(1-Math.exp(-t))*(1-e)))*g.pulseNormalize}function W(t){return 1<=t?1:t<=0?0:(1==g.pulseNormalize&&(g.pulseNormalize/=B(1)),B(t))}var F=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){F=!0}}))}catch(t){}var Q=!!F&&{passive:!1},U="onwheel"in document.createElement("div")?"wheel":"mousewheel";function q(t){return U&&(j(U,e,Q),j("mousedown",i),t?a():j("load",a)),!!U}(smoothScroll=function(t){smoothScroll._setCustomOptions(t),q()&&czrapp.$_body.addClass("tc-smoothscroll")})._cleanUp=function(){l&&l.disconnect(),H(U,e,Q),H("mousedown",i),H("keydown",b),czrapp.$_body.removeClass("tc-smoothscroll")},smoothScroll._maybeFire=function(){q(!0)&&czrapp.$_body.addClass("tc-smoothscroll")},smoothScroll._setCustomOptions=function(t){g=t?_.extend(g,t):g}}(),function(o){tcOutline=function(){var e=o.createElement("STYLE"),i="addEventListener"in o,t=function(t,e){i?o.addEventListener(t,e):o.attachEvent("on"+t,e)},n=function(t){e.styleSheet?e.styleSheet.cssText=t:e.innerHTML=t};o.getElementsByTagName("HEAD")[0].appendChild(e),t("mousedown",function(){n("input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus,select:focus,span:focus,a:focus,button{outline:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;}input[type=file]::-moz-focus-inner,input[type=radio]::-moz-focus-inner,input[type=checkbox]::-moz-focus-inner,select::-moz-focus-inner,a::-moz-focus-inner{border:0;}")}),t("keydown",function(){n("")})}}(document),function(){"use strict";var e=0,s={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),s[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete s[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e=[];for(var i in s)e.push(s[i]);for(var n=0,o=e.length;n<o;n++)e[n][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){i.invokeAll("enable")},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function e(t){window.setTimeout(t,1e3/60)}var i=0,n={},g=window.Waypoint,t=window.onload;function o(t){this.element=t,this.Adapter=g.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}o.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},o.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete n[this.key])},o.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,g.requestAnimationFrame(e))})},o.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",function(){t.didScroll&&!g.isTouch||(t.didScroll=!0,g.requestAnimationFrame(e))})},o.prototype.handleResize=function(){g.Context.refreshAll()},o.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s],a=n.oldScroll<r.triggerPoint,l=n.newScroll>=r.triggerPoint;(a&&l||!a&&!l)&&(r.queueTrigger(o),t[r.group.id]=r.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?g.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?g.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n<o;n++)t[n].destroy()},o.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[o];for(var r in this.waypoints[o]){var a,l,c,d,h=this.waypoints[o][r],p=h.options.offset,u=h.triggerPoint,f=0,m=null==u;h.element!==h.element.window&&(f=h.adapter.offset()[s.offsetProp]),"function"==typeof p?p=p.apply(h):"string"==typeof p&&(p=parseFloat(p),-1<h.options.offset.indexOf("%")&&(p=Math.ceil(s.contextDimension*p/100))),a=s.contextScroll-s.contextOffset,h.triggerPoint=f+a-p,l=u<s.oldScroll,c=h.triggerPoint>=s.oldScroll,d=!l&&!c,!m&&(l&&c)?(h.queueTrigger(s.backward),n[h.group.id]=h.group):!m&&d?(h.queueTrigger(s.forward),n[h.group.id]=h.group):m&&s.oldScroll>=h.triggerPoint&&(h.queueTrigger(s.forward),n[h.group.id]=h.group)}}return g.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},o.findOrCreateByElement=function(t){return o.findByElement(t)||new o(t)},o.refreshAll=function(){for(var t in n)n[t].refresh()},o.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){t&&t(),o.refreshAll()},g.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},g.Context=o}(),function(){"use strict";function r(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:r);for(var n=0,o=e.length;n<o;n+=1){var s=e[n];(s.options.continuous||n===e.length-1)&&s.trigger([t])}}this.clearTriggerQueues()},n.prototype.next=function(t){this.waypoints.sort(r);var e=i.Adapter.inArray(t,this.waypoints);return e===this.waypoints.length-1?null:this.waypoints[e+1]},n.prototype.previous=function(t){this.waypoints.sort(r);var e=i.Adapter.inArray(t,this.waypoints);return e?this.waypoints[e-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);-1<e&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return e[t.axis][t.name]||new n(t)},i.Group=n}(),function(){"use strict";var i=window.jQuery,t=window.Waypoint;function n(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){n.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){n[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:n}),t.Adapter=n}(),function(){"use strict";var o=window.Waypoint;function t(n){return function(){var e=[],i=arguments[0];return n.isFunction(arguments[0])&&((i=n.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=n.extend({},i,{element:this});"string"==typeof t.context&&(t.context=n(this).closest(t.context)[0]),e.push(new o(t))}),e}}window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();var czrapp=czrapp||{};!function(s,r){r._printLog=function(t){var e=function(){s("#bulklog").prepend("<p>"+r._prettyfy({consoleArguments:[t],prettyfy:!1})+"</p>")};1!=s("#bulk-log").length?s.Deferred(function(){var t=this;s.when(s("#footer").before(s("<div/>",{id:"bulklog"}))).done(function(){s("#bulklog").css({position:"fixed","z-index":"99999","font-size":"0.8em",color:"#000",padding:"5%",width:"90%",height:"20%",overflow:"hidden",bottom:"0",left:"0",background:"yellow"}),t.resolve()})}).promise().done(e):e()},r._truncate=function(t,e){return e=e||150,_.isString(t)?t.length>e?t.substr(0,e-1):t:""};var n=function(t){t=_.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},t);var e,i=Array.from(t.consoleArguments);return i=_.isEmpty(_.filter(i,function(t){return!_.isString(t)}))?i.join(" "):JSON.stringify(i.join(" ")),["%c "+(e=i,_.isString(e)?300<e.length?e.substr(0,299)+"...":e:""),["background:"+t.bgCol,"color:"+t.textCol,"display: block;"].join(";")]},i=function(t,e,i){_.isUndefined(console)&&"function"!=typeof window.console.log||(r.localized.isDevMode?_.isUndefined(e)?console.log.apply(console,n({bgCol:i,textCol:"#000",consoleArguments:["<"+t+">"]})):(console.log.apply(console,n({bgCol:i,textCol:"#000",consoleArguments:["<"+t+">"]})),console.log(e),console.log.apply(console,n({bgCol:i,textCol:"#000",consoleArguments:["</"+t+">"]}))):console.log.apply(console,n({bgCol:i,textCol:"#000",consoleArguments:[t]})))};r.consoleLog=function(){r.localized.isDevMode&&(_.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,n({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},r.errorLog=function(){_.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},r.errare=function(t,e){i(t,e,"#ffd5a0")},r.infoLog=function(t,e){i(t,e,"#5ed1f5")},r.doAjax=function(t){var e=(t=t||(_.isObject(t)?t:{})).ajaxUrl||r.localized.ajaxUrl,i=r.localized.frontNonce,n=s.Deferred(),o=_.extend({action:"",withNonce:!1},t);return"https:"==document.location.protocol&&(e=e.replace("http://","https://")),_.isEmpty(o.action)||!_.isString(o.action)?(r.errorLog("czrapp.doAjax : unproper action provided"),n.resolve().promise()):(o[i.id]=i.handle,!_.isObject(i)||_.isUndefined(i.id)||_.isUndefined(i.handle)?(r.errorLog("czrapp.doAjax : unproper nonce"),n.resolve().promise()):(s.post(e,o).done(function(t){"0"!==t&&"-1"!==t&&!1!==t.success||(r.errare("czrapp.doAjax : done ajax error for action : "+o.action,t),n.reject(t)),n.resolve(t)}).fail(function(t){r.errare("czrapp.doAjax : failed ajax error for : "+o.action,t),n.reject(t)}),n.promise()))}}(jQuery,czrapp),function(r,a){a.isKeydownButNotEnterEvent=function(t){return"keydown"===t.type&&13!==t.which},a.setupDOMListeners=function(t,o,s){!_.isUndefined(s)&&_.isObject(s)?_.isArray(t)?_.isObject(o)?(o=_.extend({model:{},dom_el:{}},o)).dom_el instanceof jQuery&&1==o.dom_el.length?_.map(t,function(n){if(_.isString(n.selector)&&!_.isEmpty(n.selector))if(_.isString(n.selector)&&!_.isEmpty(n.selector)){var t=!!n.once&&n.once;o.dom_el[t?"one":"on"](n.trigger,n.selector,function(t,e){if(t.stopPropagation(),!a.isKeydownButNotEnterEvent(t)){t.preventDefault();var i=r.extend(!0,{},o);if(_.has(i,"model")&&_.has(i.model,"id")&&(_.has(s,"get")?i.model=s():i.model=s.getModel(i.model.id)),r.extend(i,{event:n,dom_event:t}),r.extend(i,e),_.has(i,"event")&&_.has(i.event,"actions"))try{a.executeEventActionChain(i,s)}catch(t){a.errorLog("In setupDOMListeners : problem when trying to fire actions : "+i.event.actions),a.errorLog("Error : "+t)}else a.errorLog("executeEventActionChain : missing obj.event or obj.event.actions")}})}else a.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+n.actions.join(","));else a.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+n.actions.join(","))}):a.errorLog("setupDomListeners : dom element should be an existing dom element",o):a.errorLog("setupDomListeners : args should be an object",t):a.errorLog("setupDomListeners : event_map should be an array",o):a.errorLog("setupDomListeners : instance should be an object",o)},a.executeEventActionChain=function(i,n){if("function"==typeof i.event.actions)return i.event.actions.call(n,i);_.isArray(i.event.actions)||(i.event.actions=[i.event.actions]);var o=!1;_.map(i.event.actions,function(t){if(!o){if("function"!=typeof n[t])throw new Error("executeEventActionChain : the action : "+t+" has not been found when firing event : "+i.event.selector);var e=!(!_.has(i,"dom_el")||-1==i.dom_el.length)&&i.dom_el;if(e)e.trigger("before_"+t,_.omit(i,"event")),!1===n[t].call(n,i)&&(o=!0),e.trigger("after_"+t,_.omit(i,"event"));else a.errorLog("missing dom element")}})}}(jQuery,czrapp),(czrapp=czrapp||{}).methods={},function(a){var o,n,s=Array.prototype.slice;o=function(){},n=function(t,e,i){var n;return n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},a.extend(n,t),o.prototype=t.prototype,n.prototype=new o,e&&a.extend(n.prototype,e),i&&a.extend(n,i),(n.prototype.constructor=n).__super__=t.prototype,n},czrapp.Class=function(t,e,i){var n,o=arguments;return t&&e&&czrapp.Class.applicator===t&&(o=e,a.extend(this,i||{})),(n=this).instance&&(n=function(){return n.instance.apply(n,arguments)},a.extend(n,this)),n.initialize.apply(n,o),n},czrapp.Class.extend=function(t,e){var i=n(this,t,e);return i.extend=this.extend,i},czrapp.Class.applicator={},czrapp.Class.prototype.initialize=function(){},czrapp.Class.prototype.extended=function(t){for(var e=this;void 0!==e.constructor;){if(e.constructor===t)return!0;if(void 0===e.constructor.__super__)return!1;e=e.constructor.__super__}return!1},czrapp.Events={trigger:function(t){return this.topics&&this.topics[t]&&this.topics[t].fireWith(this,s.call(arguments,1)),this},bind:function(t){return this.topics=this.topics||{},this.topics[t]=this.topics[t]||a.Callbacks(),this.topics[t].add.apply(this.topics[t],s.call(arguments,1)),this},unbind:function(t){return this.topics&&this.topics[t]&&this.topics[t].remove.apply(this.topics[t],s.call(arguments,1)),this}},czrapp.Value=czrapp.Class.extend({initialize:function(t,e){this._value=t,this.callbacks=a.Callbacks(),this._dirty=!1,a.extend(this,e||{}),this.set=a.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(e,i){var n=this._value,t=a.Deferred(),o=this,s=[];e=this._setter.apply(this,arguments),e=this.validate(e);var r=_.extend({silent:!1},_.isObject(i)?i:{});return null===e||_.isEqual(n,e)?t.resolveWith(o,[e,n,i]).promise():(this._value=e,(this._dirty=!0)===r.silent?t.resolveWith(o,[e,n,i]).promise():this._deferreds?(_.each(o._deferreds,function(t){s.push(t.apply(null,[e,n,i]))}),a.when.apply(null,s).fail(function(){czrapp.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){o.callbacks.fireWith(o,[e,n,i]),t.resolveWith(o,[e,n,i])}),t.promise(o)):(this.callbacks.fireWith(this,[e,n,i]),t.resolveWith(o,[e,n,i]).promise(o)))},silent_set:function(t,e){var i=this._value;return t=this._setter.apply(this,arguments),null===(t=this.validate(t))||_.isEqual(i,t)||(this._value=t,this._dirty=_.isUndefined(e)||!_.isBoolean(e)?this._dirty:e,this.callbacks.fireWith(this,[t,i,{silent:!0}])),this},_setter:function(t){return t},setter:function(t){var e=this.get();return this._setter=t,this._value=null,this.set(e),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(t){return t},bind:function(){var e=this,i=!1,n=[];return a.each(arguments,function(t,e){i||(i=_.isObject(e)&&e.deferred),_.isFunction(e)&&n.push(e)}),i?(e._deferreds=e._deferreds||[],_.each(n,function(t){_.contains(t,e._deferreds)||e._deferreds.push(t)})):e.callbacks.add.apply(e.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this}}),czrapp.Values=czrapp.Class.extend({defaultConstructor:czrapp.Value,initialize:function(t){a.extend(this,t||{}),this._value={},this._deferreds={}},instance:function(t){return 1===arguments.length?this.value(t):this.when.apply(this,arguments)},value:function(t){return this._value[t]},has:function(t){return void 0!==this._value[t]},add:function(t,e){return this.has(t)?this.value(t):((this._value[t]=e).parent=this,e.extended(czrapp.Value)&&e.bind(this._change),this.trigger("add",e),this._deferreds[t]&&this._deferreds[t].resolve(),this._value[t])},create:function(t){return this.add(t,new this.defaultConstructor(czrapp.Class.applicator,s.call(arguments,1)))},each:function(i,n){n=void 0===n?this:n,a.each(this._value,function(t,e){i.call(n,e,t)})},remove:function(t){var e;this.has(t)&&(e=this.value(t),this.trigger("remove",e),e.extended(czrapp.Value)&&e.unbind(this._change),delete e.parent),delete this._value[t],delete this._deferreds[t]},when:function(){var e=this,i=s.call(arguments),n=a.Deferred();return a.isFunction(i[i.length-1])&&n.done(i.pop()),a.when.apply(a,a.map(i,function(t){if(!e.has(t))return e._deferreds[t]||a.Deferred()})).done(function(){var t=a.map(i,function(t){return e(t)});t.length===i.length?n.resolveWith(e,t):e.when.apply(e,i).done(function(){n.resolveWith(e,t)})}),n.promise()},_change:function(){this.parent.trigger("change",this)}}),a.extend(czrapp.Values.prototype,czrapp.Events)}(jQuery);czrapp=czrapp||{};!function(s,n){var t={cacheProp:function(){s.extend(n,{$_window:s(window),$_html:s("html"),$_body:s("body"),$_wpadminbar:s("#wpadminbar"),$_header:s(".tc-header"),localized:void 0!==TCParams&&TCParams?TCParams:{_disabled:[]},is_responsive:this.isResponsive(),current_device:this.getDevice()})},isResponsive:function(){return this.matchMedia(979)},getDevice:function(){var i="desktop",n=this;return _.map({desktop:979,tablet:767,smartphone:480},function(t,e){n.matchMedia(t)&&(i=e)}),i},matchMedia:function(t){return window.matchMedia?window.matchMedia("(max-width: "+t+"px)").matches:(n.$_window||s(window)).width()<=t-15},emitCustomEvents:function(){var i=this;n.$_window.on("resize",function(){var t=n.current_device,e=i.getDevice();n.is_responsive=i.isResponsive(),n.current_device=e,n.$_body.trigger("tc-resize",{current:t,to:e})}),"undefined"!=typeof wp&&void 0!==wp.customize&&void 0!==wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){n.$_header=s(".tc-header"),n.$_body.trigger("partialRefresh.czr",t)})},emit:function(t,e){t=_.isArray(t)?t:[t];var i=this;_.map(t,function(t){"function"==typeof i[t]&&(e=void 0===e?[]:e,i[t].apply(i,e),n.trigger(t,_.object(_.keys(e),e)))})},triggerSimpleLoad:function(t){0!==t.length&&t.map(function(t,e){s(e).on("load",function(){s(e).trigger("simple_load")}),s(e)[0]&&s(e)[0].complete&&s(e).trigger("load")})},isUserLogged:function(){return n.$_body.hasClass("logged-in")||0!==n.$_wpadminbar.length},isSelectorAllowed:function(t,e,i){var n="ids"==i?"id":"class",o=e[i];return"object"!=typeof e||!e[i]||!_.isArray(e[i])||0===e[i].length||!(0<t.parents(o.map(function(t){return"id"==n?"#"+t:"."+t}).join(",")).length)&&(!t.attr(n)||0===t.attr(n).split(" ").filter(function(t){return-1!=s.inArray(t,o)}).length)},_isMobile:function(){return _.isFunction(window.matchMedia)&&matchMedia("only screen and (max-width: 720px)").matches||this._isCustomizing()&&"desktop"!=this.previewDevice()},_isCustomizing:function(){return n.$_body.hasClass("is-customizing")||"undefined"!=typeof wp&&void 0!==wp.customize},_has_iframe:function(t){var i=[];return _.each(t,function(t,e){0<t.length&&0<t.find("IFRAME").length&&i.push(e)}),i}};n.methods.Base=n.methods.Base||{},s.extend(n.methods.Base,t)}(jQuery,czrapp),function(t,e){var i={addBrowserClassToBody:function(){t.browser&&(t.browser.chrome?e.$_body.addClass("chrome"):t.browser.webkit&&e.$_body.addClass("safari"),t.browser.mozilla?e.$_body.addClass("mozilla"):(t.browser.msie||"8.0"===t.browser.version||"9.0"===t.browser.version||"10.0"===t.browser.version||"11.0"===t.browser.version)&&e.$_body.addClass("ie").addClass("ie"+t.browser.version.replace(/[.0]/g,"")),e.$_body.hasClass("ie")&&e.$_body.addClass(t.browser.version))}};e.methods.BrowserDetect=e.methods.BrowserDetect||{},t.extend(e.methods.BrowserDetect,i)}(jQuery,czrapp);czrapp=czrapp||{};!function(s,r){var t={centerImagesWithDelay:function(t){var e=this;setTimeout(function(){e.emit("centerImages")},t||300)},centerInfinity:function(){r.$_body.on("post-load",function(t,e){var i,n,o;void 0!==e&&"success"==e.type&&e.collection&&e.container&&(i=e.collection,n="#"+e.container,o=s(n),"object"!=typeof i||o.length<1||_.each(i,function(t){var e=s(t+" .thumb-wrapper",o).centerImages({enableCentering:1==r.localized.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["simple_load"]}).find("img");e.length<1&&(e=s(t+" .tc-rectangular-thumb",o).centerImages({enableCentering:1==r.localized.centerAllImg,enableGoldenRatio:!0,goldenRatioVal:r.localized.goldenRatio||1.618,disableGRUnder:0,oncustom:["simple_load"]}).find("img")),e.length<1&&(e=s(t+" .tc-grid-figure",o).centerImages({enableCentering:1==r.localized.centerAllImg,oncustom:["simple_load"],enableGoldenRatio:!0,goldenRatioVal:r.localized.goldenRatio||1.618,goldenRatioLimitHeightTo:r.localized.gridGoldenRatioLimit||350}).find("img")),r.methods.Base.triggerSimpleLoad(e)}))})},imgSmartLoad:function(){var t=1==TCParams.imgSmartLoadEnabled,e=TCParams.imgSmartLoadOpts.parentSelectors.join();if(t&&s(e).imgSmartLoad(0<_.size(TCParams.imgSmartLoadOpts.opts)?TCParams.imgSmartLoadOpts.opts:{}),1==TCParams.centerAllImg){var i=this,n=t?s(_.filter(s(e).find("img"),function(t){return s(t).is(TCParams.imgSmartLoadOpts.opts.excludeImg.join())})):s(e).find("img"),o=s(_.filter(n,function(t){return s(t).hasClass("tc-holder-img")}));setTimeout(function(){i.triggerSimpleLoad(o)},300),i.triggerSimpleLoad(n)}},dropCaps:function(){TCParams.dropcapEnabled&&_.isObject(TCParams.dropcapWhere)&&s.each(TCParams.dropcapWhere,function(t,e){1==e&&s(".entry-content","body."+("page"==t?"page":"single-post")).children().first().addDropCap({minwords:TCParams.dropcapMinWords,skipSelectors:_.isObject(TCParams.dropcapSkipSelectors)?TCParams.dropcapSkipSelectors:{}})})},extLinks:function(){if(TCParams.extLinksStyle||TCParams.extLinksTargetExt){s("a",".entry-content p, .entry-content li").each(function(){var t;s(this).attr("href")&&(t=s(this).attr("href"),/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t))&&s(this).extLinks({addIcon:TCParams.extLinksStyle,newTab:TCParams.extLinksTargetExt,skipSelectors:_.isObject(TCParams.extLinksSkipSelectors)?TCParams.extLinksSkipSelectors:{}})})}},fancyBox:function(){1==TCParams.FancyBoxState&&"function"==typeof s.fn.fancybox&&(s("a.grouped_elements").fancybox({transitionOut:"elastic",transitionIn:"elastic",speedIn:200,speedOut:200,overlayShow:!1,autoScale:1==TCParams.FancyBoxAutoscale?"true":"false",changeFade:"fast",enableEscapeButton:!0}),s("a[rel*=tc-fancybox-group]").each(function(){var t=s(this).find("img").prop("title"),e=s(this).find("img").prop("alt");void 0!==t&&0!==t.length?s(this).attr("title",t):void 0!==e&&0!==e.length&&s(this).attr("title",e)}))},centerImages:function(){setTimeout(function(){s.each(s(".carousel .carousel-inner"),function(){s(this).centerImages({enableCentering:1==TCParams.centerSliderImg,imgSel:".czr-item .carousel-image img",oncustom:["customizr.slid","simple_load","smartload"],defaultCSSVal:{width:"100%",height:"auto"},useImgAttr:!0});var t=this;setTimeout(function(){s(t).prevAll(".tc-slider-loader-wrapper").fadeOut()},500)})},50),s(".widget-front .thumb-wrapper").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,zeroTopAdjust:1,leftAdjust:2.5,oncustom:["smartload","simple_load"]}),s(".thumb-wrapper",".czr-hentry").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["smartload","simple_load"]}),s(".tc-rectangular-thumb",".tc-post-list-context").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!0,goldenRatioVal:TCParams.goldenRatio||1.618,disableGRUnder:0,oncustom:["smartload","refresh-height","simple_load"]}),s(".tc-rectangular-thumb",".tc-singular-thumbnail-wrapper").centerImages({enableCentering:1==TCParams.centerAllImg,enableGoldenRatio:!1,disableGRUnder:0,oncustom:["smartload","refresh-height","simple_load"],setOpacityWhenCentered:!0,opacity:1}),s(".tc-grid-figure").centerImages({enableCentering:1==TCParams.centerAllImg,oncustom:["smartload","simple_load"],enableGoldenRatio:!0,goldenRatioVal:TCParams.goldenRatio||1.618,goldenRatioLimitHeightTo:TCParams.gridGoldenRatioLimit||350})},parallax:function(){s(".parallax-item").czrParallax({parallaxRatio:.55})}};r.methods.JQPlugins=r.methods.JQPlugins||{},s.extend(r.methods.JQPlugins={},t)}(jQuery,czrapp);czrapp=czrapp||{};!function(h,p){var t={initOnDomReady:function(){var t=this;this.$_sliders=h('div[id*="customizr-slider"]'),p.$_window.on("resize",function(){t.centerSliderArrows()})},fireSliders:function(t,e,i){var n=this,o=t||TCParams.SliderName,s=e||TCParams.SliderDelay,r=i||TCParams.SliderHover,a=".czr-item";if(!(0===o.length||n.$_sliders.length<1)){if(p.localized.imgSmartLoadsForSliders){n.$_sliders.addClass("disable-transitions-for-smartload"),n.$_sliders.find(a+".active").imgSmartLoad().data("czr_smartLoaded",!0);var l=function(t){t.find(".czr-css-loader").fadeOut({duration:"fast",done:function(){h(this).remove()}})},c=function(t){t=t||"czr-smartloaded";var e=this;e.find("img[data-src], img[data-smartload]").length<1||e.data("czr_smartLoaded")||(e.find(".czr-css-loader").length<1&&e.append('<div class="tc-css-loader tc-mr-loader" style="display:none"><div></div><div></div><div></div></div>').find(".czr-css-loader").fadeIn("slow"),e.imgSmartLoad().data("czr_smartLoaded",!0).addClass(t),e.data("czr_loader_timer",h.Deferred(function(){var t=this;return _.delay(function(){t.resolve()},2e3),this.promise()})),e.data("czr_loader_timer").done(function(){l(e)}))};n.$_sliders.data("czr_smartload_scheduled",h.Deferred().done(function(){n.$_sliders.addClass("czr-smartload-scheduled")}));var d=function(){return 1<=n.$_sliders.length&&!_.isUndefined(n.$_sliders.data("czr_smartload_scheduled"))};n.$_sliders.data("czr_schedule_select",h.Deferred(function(){var t=this;n.$_sliders.parent().one("customizr.slide click",function(){t.resolve()})}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-smartloaded-on-select")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.data("czr_schedule_scroll_resize",h.Deferred(function(){var t=this;p.$_window.one("scroll resize",function(){_.delay(function(){t.resolve()},5e3)})}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-smartloaded-on-scroll")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.data("czr_schedule_autoload",h.Deferred(function(){var t=this;_.delay(function(){t.resolve()},1e4)}).done(function(){d()&&"resolved"!=n.$_sliders.data("czr_smartload_scheduled").state()&&(n.$_sliders.find(a).each(function(){c.call(h(this),"czr-auto-smartloaded")}),n.$_sliders.data("czr_smartload_scheduled").resolve())})),n.$_sliders.on("smartload",a,function(){l(h(this))})}0===s.length||r?0!==s.length?this.$_sliders.czrCarousel({interval:s}):this.$_sliders.czrCarousel():this.$_sliders.czrCarousel({interval:s,pause:"false"})}},parallaxSliders:function(){"function"==typeof h.fn.czrParallax&&h(".czr-parallax-slider").czrParallax()},manageHoverClass:function(){this.$_sliders.on("mouseenter",function(){h(this).addClass("tc-slid-hover")}).on("mouseleave",function(){h(this).removeClass("tc-slid-hover")})},centerSliderArrows:function(){0!==this.$_sliders.length&&this.$_sliders.each(function(){var t=h(".carousel-inner",h(this)).height();h(".tc-slider-controls",h(this)).css("line-height",t+"px").css("max-height",t+"px")})},addSwipeSupport:function(){if("function"==typeof h.fn.hammer&&0!==this.$_sliders.length){this.$_sliders.on("touchstart touchmove",'input, button, textarea, select, a:not(".tc-slide-link")',function(t){t.stopPropagation()});var t=p.$_body.hasClass("rtl");this.$_sliders.each(function(){h(this).hammer().on("swipeleft",function(){h(this).czrCarousel(t?"prev":"next")}),h(this).hammer().on("swiperight",function(){h(this).czrCarousel(t?"next":"prev")})})}},sliderTriggerSimpleLoad:function(){this.triggerSimpleLoad(this.$_sliders.find(".carousel-inner img"))}};p.methods.Slider={},h.extend(p.methods.Slider,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(a,l){var t={initOnDomReady:function(){this.timer=0,this.increment=1,a(".menu-item").on("keyup","a",function(t){if(9==t.which){var e=a(this).closest(".menu-item");e.addClass("czr-focusin"),e.hasClass("menu-item-has-children")&&e.addClass("czr-parent-menu-navigated")}})},eventListener:function(){var t=this;l.$_window.on("scroll",_.throttle(function(){t.eventHandler("scroll")},50))},eventHandler:function(t){var e=this;switch(t){case"scroll":if(0===a(".tc-btt-wrapper").length)return;this.timer&&(this.increment++,clearTimeout(e.timer)),1==TCParams.timerOnScrollAllBrowsers?this.timer=setTimeout(function(){e.bttArrowVisibility()},5<e.increment?50:0):l.$_body.hasClass("ie")&&(this.timer=setTimeout(function(){e.bttArrowVisibility()},5<e.increment?50:0))}},outline:function(){l.$_body.hasClass("mozilla")&&"function"==typeof tcOutline&&tcOutline()},smoothScroll:function(){TCParams.SmoothScroll&&TCParams.SmoothScroll.Enabled&&smoothScroll(TCParams.SmoothScroll.Options)},anchorSmoothScroll:function(){if(TCParams.anchorSmoothScroll&&"easeOutExpo"==TCParams.anchorSmoothScroll){var t,e=TCParams.anchorSmoothScrollExclude&&_.isArray(TCParams.anchorSmoothScrollExclude.simple)?TCParams.anchorSmoothScrollExclude.simple.join(","):"",i=this,n=a('#tc-page-wrap a[href^="#"],#tc-sn a[href^="#"]').not(e),o=_.isObject(TCParams.anchorSmoothScrollExclude.deep)?TCParams.anchorSmoothScrollExclude.deep:null;o&&(t=_.toArray(n).filter(function(e){return 2==["ids","classes"].filter(function(t){return i.isSelectorAllowed(a(e),o,t)}).length})),a(t).on("click",function(){var t=a(this).attr("href");if(a(t).length)return"#"!=t&&a("html, body").animate({scrollTop:a(t).offset().top},700,TCParams.anchorSmoothScroll),!1})}},bttArrowVisibility:function(){100<l.$_window.scrollTop()?a(".tc-btt-wrapper").addClass("show"):a(".tc-btt-wrapper").removeClass("show")},backToTop:function(){var e=a("html, body"),i=function(t){return(0<t.which||"mousedown"===t.type||"mousewheel"===t.type)&&e.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)};a(".back-to-top, .tc-btt-wrapper, .btt-arrow").on("click touchstart touchend",function(t){t.preventDefault(),t.stopPropagation(),e.on("scroll mousedown DOMMouseScroll mousewheel keyup",i),e.animate({scrollTop:0},1e3,function(){e.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)})})},widgetsHoverActions:function(){function e(t,e,i){"mouseenter"==i.type?t.addClass(e):"mouseleave"==i.type&&t.removeClass(e)}l.$_body.on("mouseenter mouseleave",".widget-front, article",function(t){e(a(this),"hover",t)}),l.$_body.on("mouseenter mouseleave",".widget li",function(t){e(a(this),"on",t)})},attachmentsFadeEffect:function(){a("article.attachment img").delay(500).animate({opacity:1},700,function(){})},clickableCommentButton:function(){TCParams.HasComments&&(a("cite p.edit-link").each(function(){a(this).removeClass("btn btn-success btn-mini")}),a("cite p.edit-link > a").each(function(){a(this).addClass("btn btn-success btn-mini")}),a(".comment .reply").each(function(){a(this).removeClass("btn btn-small")}),a(".comment .reply .comment-reply-link").each(function(){a(this).addClass("btn btn-small")}))},dynSidebarReorder:function(){if(1==TCParams.ReorderBlocks){"desktop"!=this.getDevice()&&this._reorderSidebars("responsive");var n=this;l.$_body.on("tc-resize",function(t,e){var i="desktop"!=(e=_.isObject(e)?e:{}).to?"responsive":"normal";("desktop"!=e.current?"responsive":"normal")!=i&&n._reorderSidebars(i)})}},_reorderSidebars:function(t){t=t||"normal";var e=this,i=TCParams.LeftSidebarClass||".span3.left.tc-sidebar",n=TCParams.RightSidebarClass||".span3.right.tc-sidebar";e.$_content=e.$_content||a("#main-wrapper .container .article-container"),e.$_left=e.$_left||a("#main-wrapper .container "+i),e.$_right=e.$_right||a("#main-wrapper .container "+n);var o=e._has_iframe({content:this.$_content,left:this.$_left}),s=-1<a.inArray("left",o),r=-1<a.inArray("content",o);s&&r||e.$_left.length&&(s?e.$_content["normal"===t?"insertAfter":"insertBefore"](e.$_left):e.$_left["normal"===t?"insertBefore":"insertAfter"](e.$_content))},dropdownMenuEventsHandler:function(){var t=a('.tc-open-on-click .menu-item.menu-item-has-children > a[href!="#"]'),e=a(".tc-open-on-click .dropdown .dropdown-submenu");t.on("click",function(){("hidden"!=a(this).next(".dropdown-menu").css("visibility")&&a(this).next(".dropdown-menu").is(":visible")&&!a(this).parent().hasClass("dropdown-submenu")||a(this).next(".dropdown-menu").is(":visible")&&a(this).parent().hasClass("dropdown-submenu"))&&(window.location=a(this).attr("href"))}),e.each(function(){var e=a(this);e.children('[data-toggle="dropdown"]').on("click",function(){var t=!1;return e.hasClass("open")||(t=!0),a(e.parent()).children(".dropdown-submenu").each(function(){a(this).removeClass("open")}),t&&e.addClass("open"),!1})})},menuButtonHover:function(){a(".btn-toggle-nav").on("mouseenter",function(){a(this).addClass("hover")}).on("mouseleave",function(){a(this).removeClass("hover")})},secondMenuRespActions:function(){if(TCParams.isSecondMenuEnabled){var o=TCParams.secondMenuRespSet||!1,s=this;if(o&&-1!=o.indexOf("in-sn")){var r=function(){s.$_sec_menu_els=a(".nav > li",".tc-header .nav-collapse"),s.$_sn_wrap=a(".sn-nav",".sn-nav-wrapper"),s.$_sec_menu_wrap=a(".nav",".tc-header .nav-collapse")};r();var t="desktop"==this.getDevice()?"navbar":"side_nav";"desktop"!=this.getDevice()&&this._manageMenuSeparator(t,o)._moveSecondMenu(t,o),l.$_body.on("tc-resize partialRefresh.czr",function(t,e){var i=!1;"partialRefresh"==t.type&&"czr"===t.namespace&&e.container&&e.container.hasClass("tc-header")&&(!function(){var t=a(".secondary-menu-separator");if(t.length){switch(o){case"in-sn-before":t.prevAll(".menu-item").remove();break;case"in-sn-after":t.nextAll(".menu-item").remove()}t.remove()}}(),r(),e={to:l.current_device,current:l.current_device},i=!0);var n="desktop"!=(e=_.isObject(e)?e:{}).to?"side_nav":"navbar";(("desktop"!=e.current?"side_nav":"navbar")!=n||i)&&s._manageMenuSeparator(n,o)._moveSecondMenu(n,o)})}}},_manageMenuSeparator:function(t,e){if("navbar"==t)a(".secondary-menu-separator",this.$_sn_wrap).remove();else{var i=a('<li class="menu-item secondary-menu-separator"><hr class="featurette-divider"></hr></li>');switch(e){case"in-sn-before":this.$_sn_wrap.prepend(i);break;case"in-sn-after":this.$_sn_wrap.append(i)}}return this},_moveSecondMenu:function(t,e){var i=this;switch(t=t||"side_nav"){case"navbar":i.$_sec_menu_wrap.append(i.$_sec_menu_els);break;case"side_nav":"in-sn-before"==e?i.$_sn_wrap.prepend(i.$_sec_menu_els):i.$_sn_wrap.append(i.$_sec_menu_els)}},_has_iframe:function(t){var i=[];return _.map(t,function(t,e){0<t.length&&0<t.find("IFRAME").length&&i.push(e)}),i}};l.methods.UserXP={},a.extend(l.methods.UserXP,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(o,s){var t={mayBePrintFrontNote:function(){if((!s.localized||!_.isUndefined(s.localized.frontNotifications))&&!_.isEmpty(s.localized.frontNotifications)&&_.isObject(s.localized.frontNotifications)){var e=this;s.frontNotificationVisible=new s.Value(!1),s.frontNotificationRendered=!1,_.each(s.localized.frontNotifications,function(t){_.isUndefined(s.frontNotification)&&_.isObject(t)&&(t=_.extend({enabled:!1,content:"",dismissAction:"",ajaxUrl:s.localized.ajaxUrl},t)).enabled&&(s.frontNotification=new s.Value(t))}),s.frontNotificationVisible.bind(function(t){return e._toggleNotification(t)},{deferred:!0}),s.frontNotificationVisible(!0)}},_toggleNotification:function(t){var e=this,i=o.Deferred();if(s.frontNotificationRendered&&s.frontNotificationVisible())return i.resolve().promise();return t?_.delay(function(){var t,n;(t=o.Deferred(),n=o("#footer","#tc-page-wrap"),!_.isUndefined(s.frontNotification)&&_.isFunction(s.frontNotification)&&_.isObject(s.frontNotification())?(o.Deferred(function(){var t=this,e=s.frontNotification().content,i=['<div id="bottom-front-notification">','<div class="note-content">','<span class="fas fa-times close-note" title="'+s.localized.i18n["Permanently dismiss"]+'"></span>',"</div>","</div>"].join("");1!=n.length||_.isEmpty(e)?t.resolve():(o.when(n.append(i)).done(function(){o(this).find(".note-content").prepend(e),s.$_body.find("#tc-footer-btt-wrapper").fadeOut("slow"),s.frontNotificationRendered=!0}),_.delay(function(){o("#bottom-front-notification","#footer").css({bottom:0}),t.resolve()},500))}).done(function(){s.setupDOMListeners([{trigger:"click keydown",selector:".close-note",actions:function(){s.frontNotificationVisible(!1).done(function(){s.doAjax({action:s.frontNotification().dismissAction,withNonce:!0,ajaxUrl:s.frontNotification().ajaxUrl})})}}],{dom_el:n},e),t.resolve()}),t.promise()):t.resolve().promise()).always(function(){i.resolve()})},3e3):o.Deferred(function(){var t=this,e=o("#bottom-front-notification","#footer");1==e.length?(e.css({bottom:"-100%"}),_.delay(function(){e.remove(),s.$_body.find("#tc-footer-btt-wrapper").fadeIn("slow"),s.frontNotificationRendered=!1,t.resolve()},450)):t.resolve()}).done(function(){s.frontNotificationVisible(!1),i.resolve()}),_.delay(function(){s.frontNotificationVisible(!1)},45e3),i.promise()}};s.methods.UserXP=s.methods.UserXP||{},o.extend(s.methods.UserXP,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(i,n){var t={initOnDomReady:function(){var e=this;this.stickyHeaderCacheElements(),this.elToHide=[],this.customOffset=TCParams.stickyCustomOffset||{},this.triggerHeight=20,this.scrollingDelay=1!=TCParams.timerOnScrollAllBrowsers&&n.$_body.hasClass("ie")?50:5,this.isHeaderSticky=new n.Value(!1),this.isHeaderSticky.bind(function(t){e._isHeaderStickyReact(t)}),this.stickyHeaderEventListener(),this.triggerStickyHeaderLoad()},stickyHeaderCacheElements:function(){this.$_resetMarginTop=i("#tc-reset-margin-top"),this.$_sticky_logo=i("img.sticky",".site-logo"),this.logo=0===this.$_sticky_logo.length&&{_logo:i('img:not(".sticky")',".site-logo"),_ratio:""}},stickyHeaderEventListener:function(){var i=this;n.$_body.on("sticky-enabled-on-load",function(){i.stickyHeaderEventHandler("on-load")}),n.$_window.on("tc-resize",function(){i.stickyHeaderEventHandler("resize")}),n.$_body.on("partialRefresh.czr",function(t,e){e.container&&e.container.hasClass("tc-header")&&(i.stickyHeaderCacheElements(),i.stickyHeaderEventHandler("resize"))}),n.$_window.on("scroll",_.throttle(function(){i.stickyHeaderEventHandler("scroll")},!n.$_body.hasClass("tc-smoothscroll")||i.isHeaderSticky()?i.scrollingDelay:15)),n.$_body.on(n.$_body.hasClass("tc-is-mobile")?"touchstart":"click",".sn-toggle",function(){i.stickyHeaderEventHandler("sidenav-toggle")})},triggerStickyHeaderLoad:function(){this._is_sticky_enabled()&&n.$_body.trigger("sticky-enabled-on-load",{on:"load"})},stickyHeaderEventHandler:function(t){if(this._is_sticky_enabled()){var e=this;switch(t){case"on-load":e._prepare_logo_transition(),setTimeout(function(){e._sticky_refresh(),e._set_header_top_offset(),e.isHeaderSticky(n.$_window.scrollTop()>e.triggerHeight)},20);break;case"scroll":e._set_header_top_offset(),e.isHeaderSticky(n.$_window.scrollTop()>e.triggerHeight);break;case"resize":case"sidenav-toggle":e._set_sticky_offsets(),e._set_header_top_offset(),e._set_logo_height()}}},_isHeaderStickyReact:function(t){var e=this;t?(n.$_body.addClass("sticky-enabled").removeClass("sticky-disabled").trigger("tc-sticky-enabled"),n.$_header.hasClass("tc-shrink-on")||e._set_logo_height()):(n.$_body.removeClass("sticky-enabled").addClass("sticky-disabled").trigger("tc-sticky-disabled"),setTimeout(function(){e._sticky_refresh()},e._isCustomizing?100:20),setTimeout(function(){e._sticky_refresh()},200))},_is_sticky_enabled:function(){return n.$_body.hasClass("tc-sticky-header")},_get_top_offset:function(){var t=0,e=+this._get_custom_offset(this.isHeaderSticky()?"_scrolling":"_initial"),i=0<n.$_wpadminbar.length?n.$_wpadminbar.height():0;return 1!=this.isUserLogged()||this._isCustomizing()||(t=580<n.$_window.width()?i:this.isHeaderSticky()?0:i),t+e},_get_custom_offset:function(t){if(_.isEmpty(this.customOffset))return 0;if(!this.customOffset[t])return 0;if(!this.customOffset.options)return this.customOffset[t];if("_scrolling"==t)return+this.customOffset[t]||0;if(this.customOffset.options._static)return+this.customOffset[t]||0;var e=i(this.customOffset.options._element);return e.length&&(e.outerHeight()||+this.customOffset[t])||0},_set_sticky_offsets:function(){n.$_header.css("top",""),n.$_header.css("height","auto"),this.$_resetMarginTop.css("margin-top","").show();var t=n.$_header.outerHeight(!0);this.$_resetMarginTop.css("margin-top",+t+"px")},_set_header_top_offset:function(){n.$_header.css("top",this._get_top_offset())},_prepare_logo_transition:function(){if(n.$_html.hasClass("csstransitions")&&this.logo&&0!==this.logo._logo.length){var t=this.logo._logo.originalWidth(),e=this.logo._logo.originalHeight();2==_.size(_.filter([t,e],function(t){return _.isNumber(parseInt(t,10))&&0!==t}))&&(this.logo._ratio=t/e,this.logo._logo.css("width",t))}},_set_logo_height:function(){if((!this.logo||0!==this.logo._logo.length)&&this.logo._ratio){var t=this;this.logo._logo.css("height",t.logo._logo.width()/t.logo._ratio),setTimeout(function(){t._set_sticky_offsets(),t._set_header_top_offset()},200)}},_sticky_refresh:function(){var t=this;setTimeout(function(){t._set_sticky_offsets(),t._set_header_top_offset()},20),n.$_window.trigger("resize")}};n.methods.StickyHeader={},i.extend(n.methods.StickyHeader,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(e,n){var t={initOnDomReady:function(){if(this.$_push=e("#tc-push-footer"),this._class="sticky-footer-enabled",this.$_page=e("#tc-page-wrap"),1!=TCParams.stickyHeader){var t=this;setTimeout(function(){t._apply_sticky_footer()},50)}},stickyFooterEventListener:function(){var t=this;n.$_window.on("tc-resize",function(){t.stickyFooterEventHandler("resize")}),n.$_window.on("golden-ratio-applied",function(){t.stickyFooterEventHandler("refresh")}),n.$_body.on("refresh-sticky-footer",function(){t.stickyFooterEventHandler("refresh")})},stickyFooterEventHandler:function(t){var e=this;if(this._is_sticky_footer_enabled())switch(t){case"resize":for(var i=function(){return e._apply_sticky_footer()},n=0;n<5;n++)setTimeout(i,50*n);break;case"refresh":this._apply_sticky_footer()}},_apply_sticky_footer:function(){var t=this._get_full_height(),e=n.$_window.height()-t,i=!1;0<e?(this.$_push.css("height",e).addClass(this._class),i="sticky-footer-on"):this.$_push.hasClass(this._class)&&(this.$_push.removeClass(this._class),i="sticky-footer-off"),i&&n.$_body.trigger(i)},_is_sticky_footer_enabled:function(){return n.$_body.hasClass("tc-sticky-footer")},_get_full_height:function(){return this.$_page.length<1?e(window).outerHeight(!0):this.$_page.outerHeight(!0)+this.$_page.offset().top-("block"==this.$_push.css("display")?this.$_push.outerHeight():0)}};n.methods.StickyFooter={},e.extend(n.methods.StickyFooter,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(o,s){var t={initOnDomReady:function(){this.$_sidenav=o("#tc-sn"),this._is_sn_on()&&(this.$_page_wrapper=o("#tc-page-wrap"),this.$_page_wrapper_node=this.$_page_wrapper.get(0),this.$_page_wrapper_btn=o(".btn-toggle-nav","#tc-page-wrap"),this.$_sidenav_inner=o(".tc-sn-inner",this.$_sidenav),this._toggle_event="click",this._browser_can_translate3d=!s.$_html.hasClass("no-csstransforms3d"),this.transitionEnd="transitionend webkitTransitionEnd otransitionend oTransitionEnd MSTransitionEnd",this.sideNavEventListener(),this._set_offset_height())},sideNavEventListener:function(){var e=this;s.$_body.on(this._toggle_event,".sn-toggle",function(t){e.sideNavEventHandler(t,"toggle")}),this.$_page_wrapper.on(this.transitionEnd,function(t){e.sideNavEventHandler(t,"transitionend")}),s.$_window.on("tc-resize",function(t){e.sideNavEventHandler(t,"resize")}),s.$_window.on("scroll",function(t){e.sideNavEventHandler(t,"scroll")})},sideNavEventHandler:function(t,e){var i=this;switch(e){case"toggle":this._is_translating()||this._toggle_callback(t);break;case"transitionend":this._is_translating()&&t.target==this.$_page_wrapper_node&&this._transition_end_callback();break;case"scroll":case"resize":setTimeout(function(){i._set_offset_height()},200)}},_toggle_callback:function(t){t.preventDefault(),s.$_body.hasClass("tc-sn-visible")?this._anim_type="sn-close":this._anim_type="sn-open",this._browser_can_translate3d?(s.$_body.addClass("animating "+this._anim_type).trigger(this._anim_type+"_start"),this._is_sticky_header()&&s.$_body.hasClass("sticky-disabled")&&s.$_body.removeClass("tc-sticky-header")):s.$_body.toggleClass("tc-sn-visible").trigger(this._anim_type);var e=t||event,i=o(e.target),n=0<o("#tc-page-wrap").has(i).length;return this.$_page_wrapper_btn.each(function(){o(this).fadeTo(500,n?0:1,function(){o(this).css("visibility",n?"hidden":"visible")})}),!1},_transition_end_callback:function(){s.$_body.removeClass("animating "+this._anim_type).toggleClass("tc-sn-visible").trigger(this._anim_type+"_end").trigger(this._anim_type),this._is_sticky_header()&&s.$_body.hasClass("sticky-disabled")&&s.$_body.addClass("tc-sticky-header")},_is_sn_on:function(){return 0<this.$_sidenav.length},_get_initial_offset:function(){var t=0<s.$_wpadminbar.length?s.$_wpadminbar.height():0;return t=t&&s.$_window.scrollTop()&&"absolute"==s.$_wpadminbar.css("position")?0:t},_set_offset_height:function(){var t=this._get_initial_offset();this.$_sidenav.css("top",t),this.$_sidenav_inner.css("max-height",this.$_sidenav.outerHeight()-t)},_is_translating:function(){return s.$_body.hasClass("animating")},_is_sticky_header:function(){return this.__is_sticky_header=this.__is_sticky_header||s.$_body.hasClass("tc-sticky-header"),this.__is_sticky_header}};s.methods.SideNav={},o.extend(s.methods.SideNav,t)}(jQuery,czrapp);czrapp=czrapp||{};!function(s,n){var t={fireDropDown:function(){this.$_sidenav=s("#tc-sn"),this._dd_first_selector=".menu-item-has-children.dropdown > .dropdown-menu",this.$_nav_collapse=0<n.$_header.length?n.$_header.find(".navbar-wrapper .nav-collapse"):[],this.$_nav=this.$_nav_collapse.length?this.$_nav_collapse.find(".nav"):[],this._has_dd_to_move()&&(this.$_navbar_wrapper=this.$_nav_collapse.closest(".navbar-wrapper"),this.$_nav=this.$_nav_collapse.find(".nav"),this.$_head=s("head"),this._dyn_style_id="tc-dropdown-dyn-style",this._prop=n.$_body.hasClass("rtl")?"right":"left",this.dropdownPlaceEventListener(),this._place_dropdowns())},dropdownPlaceCacheElements:function(){this.$_nav_collapse=0<n.$_header.length?n.$_header.find(".navbar-wrapper .nav-collapse"):[],this.$_nav=this.$_nav_collapse.length?this.$_nav_collapse.find(".nav"):[],this.$_navbar_wrapper=this.$_nav_collapse.length?this.$_nav_collapse.closest(".navbar-wrapper"):[]},dropdownPlaceEventListener:function(){var i=this;n.$_body.on("tc-resize sn-open sn-close tc-sticky-enabled tc-place-dropdowns partialRefresh.czr",function(t,e){"partialRefresh"===t.type&&"czr"===t.namespace&&e.container&&e.container.hasClass("tc-header")&&i.dropdownPlaceCacheElements(),i.dropdownPlaceEventHandler(t,"resize")})},dropdownPlaceEventHandler:function(t,e){var i=this;switch(e){case"resize":setTimeout(function(){i._place_dropdowns()},250)}},_place_dropdowns:function(){var t=this._get_dd_to_move();t.length&&(this._staging(),this._move_dropdown(t),this._write_dyn_style(),this._unstaging())},_has_dd_to_move:function(){return!(this.$_nav_collapse.length<1)&&!(this.$_nav.length&&this.$_nav.find(this._dd_first_selector)<1)},_get_dd_to_move:function(){return"absolute"==this.$_nav_collapse.css("position")?{}:this.$_nav.is(":visible")?this.$_nav.find(this._dd_first_selector):{}},_staging:function(){this._window_width=n.$_window.width(),this.$_navbar_wrapper.hasClass("tc-submenu-fade")&&this.$_navbar_wrapper.removeClass("tc-submenu-fade").addClass("tc-submenu-fade-susp");var t=this._window_width-40,e=".tc-header .nav-collapse .dropdown-menu";this._dyn_style=e+" {max-width: "+t+"px;}",this._dyn_style+=e+" > li > a { word-wrap: break-word; white-space: pre; }",this._write_dyn_style()},_unstaging:function(){this.$_navbar_wrapper.hasClass("tc-submenu-fade-susp")&&this.$_navbar_wrapper.removeClass("tc-submenu-fade-susp").addClass("tc-submenu-fade")},_write_dyn_style:function(){var t=this.$_head.find("#"+this._dyn_style_id);0<t.length&&t.remove(),this._dyn_style&&s("<style id='"+this._dyn_style_id+"'>"+this._dyn_style+"</style>").appendTo(this.$_head)},_move_dropdown:function(t){if(t&&t.length)if(1<t.length){var e=this;s.each(t,function(){e._move_dropdown(s(this))})}else{var i=t.is(":visible");i||t.css("display","block").css("visibility","hidden"),this._set_dropdown_offset(t,"");var n=this._get_dropdown_overflow(t);n&&this._set_dropdown_offset(t,n);var o=t.children("li.dropdown-submenu");o.length&&this._move_dropdown(o.children("ul.dropdown-menu")),i||t.css("display","").css("visibility","")}},_set_dropdown_offset:function(t,e){var i="";if(e){var n=t.parent(".menu-item-has-children");if(n.hasClass("dropdown-submenu")){if(i=parseFloat(t.css(this._prop))-e-5,n.next(".menu-item").length){var o=this._get_element_overflow(t,i,n);(i<30||o<30)&&(i=i-o-30)}}else{i=-20-e;var s=n.attr("class").match(/(menu|page)-item-\d+/);(s=s?s[0]:null)&&this._set_dropdown_arrow_style(s,i)}}t.css(this._prop,i)},_get_dropdown_overflow:function(t){var e,i=null;return i="left"==this._prop?-5<(e=this._get_element_overflow(t,t.offset().left,{},this._window_width))?e:i:(e=t.offset().left)<5?-1*e:i},_get_element_overflow:function(t,e,i,n){return n=i.length?i.width():n,t.width()+e-n},_set_dropdown_arrow_style:function(t,e){var i=9-e,n=i+1,o=".tc-header .navbar .nav > ."+t+" > .dropdown-menu",s=o+":before { "+this._prop+": "+i+"px;}",r=o+":after { "+this._prop+": "+n+"px;}";this._dyn_style+="\n"+s+"\n"+r}};n.methods.Dropdowns={},s.extend(n.methods.Dropdowns,t)}(jQuery,czrapp),function(n,o,s){o.extend(n,n.Events),n.Root=n.Class.extend({initialize:function(t){o.extend(this,t||{}),this.isReady=o.Deferred()},ready:function(){var i=this;i.dom_ready&&s.isArray(i.dom_ready)&&(n.status=n.status||[],s.each(i.dom_ready,function(e){if(s.isFunction(e)||s.isFunction(i[e]))try{(s.isFunction(e)?e:i[e]).call(i)}catch(t){return void n.status.push(["NOK",i.id+"::"+e,s.isString(t)?n._truncate(t):t].join(" => "))}else n.status.push("Method "+e+" was not found and could not be fired on DOM ready.")})),this.isReady.resolve()}}),n.Base=n.Root.extend(n.methods.Base),n.ready=o.Deferred(),n.bind("czrapp-ready",function(){var t=document.createEvent("Event");t.initEvent("czrapp-is-ready",!0,!0),document.dispatchEvent(t),n.ready.resolve()});var t=function(t,e,i){s.isObject(t)&&(s.each(t,function(t,e){if(!n[e]&&s.isObject(t)){t=s.extend({ctor:{},ready:[],options:{}},t);var i=s.extend({id:e,dom_ready:t.ready||[]},t.options);try{n[e]=new t.ctor(i)}catch(t){n.errorLog("Error when loading "+e+" | "+t)}}}),o(function(){s.each(t,function(t,e){n[e]&&n[e].isReady&&"resolved"==n[e].isReady.state()||s.isObject(n[e])&&s.isFunction(n[e].ready)&&n[e].ready()}),n.status=n.status||"OK",s.isArray(n.status)&&s.each(n.status,function(t){n.errorLog(t)}),n.trigger(i?"czrapp-ready":"czrapp-updated")}))};n.appMap=new n.Value({}),n.appMap.bind(t),n.customMap=new n.Value({}),n.customMap.bind(t)}(czrapp=czrapp||{},jQuery,_),function(i){var t=function(){var t=czrapp.localized&&czrapp.localized.pluginCompats?czrapp.localized.pluginCompats:{};czrapp.localized&&czrapp.localized.frontHelpNoticeParams&&czrapp.localized.frontHelpNoticeParams;if(i(function(t){czrapp.localized.isParallaxOn&&t(".czr-parallax-slider").czrParallax({parallaxRatio:czrapp.localized.parallaxRatio||.55})}),t.optimizepress_compat&&t.optimizepress_compat.remove_fancybox_loading){var e=window.opjq||"undefined";if(!_.isUndefined(e)&&_.isFunction(e))try{e(document).ready(function(){e("#fancybox-loading").remove()})}catch(t){console.log("Optimize Press => error",t)}}};window.czrapp&&czrapp.ready&&"resolved"==czrapp.ready.state()?t():document.addEventListener("czrapp-is-ready",function(){t()})}(jQuery),function(t){t.localized=TCParams||{};var e={base:{ctor:t.Base,ready:["cacheProp","emitCustomEvents"]},browserDetect:{ctor:t.Base.extend(t.methods.BrowserDetect),ready:["addBrowserClassToBody"]},jqPlugins:{ctor:t.Base.extend(t.methods.JQPlugins),ready:["centerImagesWithDelay","centerInfinity","imgSmartLoad","dropCaps","extLinks","fancyBox","parallax"]},slider:{ctor:t.Base.extend(t.methods.Slider),ready:["initOnDomReady","fireSliders","parallaxSliders","manageHoverClass","centerSliderArrows","addSwipeSupport","sliderTriggerSimpleLoad"]},dropdowns:{ctor:t.Base.extend(t.methods.Dropdowns),ready:["fireDropDown"]},userXP:{ctor:t.Base.extend(t.methods.UserXP),ready:["initOnDomReady","eventListener","outline","smoothScroll","anchorSmoothScroll","backToTop","widgetsHoverActions","attachmentsFadeEffect","clickableCommentButton","dynSidebarReorder","dropdownMenuEventsHandler","menuButtonHover","secondMenuRespActions","mayBePrintFrontNote"]},stickyHeader:{ctor:t.Base.extend(t.methods.StickyHeader),ready:["initOnDomReady"]},stickyFooter:{ctor:t.Base.extend(t.methods.StickyFooter),ready:["initOnDomReady","stickyFooterEventListener"]},sideNav:{ctor:t.Base.extend(t.methods.SideNav),ready:["initOnDomReady"]}};t.appMap(e,!0)}(czrapp=czrapp||{});
// source --> https://www.ecolegalilee.fr/ecolegalilee/wp-content/themes/customizr-pro/assets/front/js/libs/hammer.min.js?ver=2.4.25 
/*! Hammer.JS - v2.0.4 - 2014-09-28
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2014 Jorik Tangelder;
 * Licensed under the MIT license */
!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a}function i(a,b){return h(a,b,!0)}function j(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&h(d,c)}function k(a,b){return function(){return a.apply(b,arguments)}}function l(a,b){return typeof a==kb?a.apply(b?b[0]||d:d,b):a}function m(a,b){return a===d?b:a}function n(a,b,c){g(r(b),function(b){a.addEventListener(b,c,!1)})}function o(a,b,c){g(r(b),function(b){a.removeEventListener(b,c,!1)})}function p(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function q(a,b){return a.indexOf(b)>-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function t(a){return Array.prototype.slice.call(a,0)}function u(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];s(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ib.length;){if(c=ib[g],e=c?c+f:b,e in a)return e;g++}return d}function w(){return ob++}function x(a){var b=a.ownerDocument;return b.defaultView||b.parentWindow}function y(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){l(a.options.enable,[a])&&c.handler(b)},this.init()}function z(a){var b,c=a.options.inputClass;return new(b=c?c:rb?N:sb?Q:qb?S:M)(a,A)}function A(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&yb&&d-e===0,g=b&(Ab|Bb)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,B(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function B(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=E(b)),e>1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:lb(a.pointers[c].clientX),clientY:lb(a.pointers[c].clientY)},c++;return{timeStamp:nb(),pointers:b,center:F(b),deltaX:a.deltaX,deltaY:a.deltaY}}function F(a){var b=a.length;if(1===b)return{x:lb(a[0].clientX),y:lb(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ab|Bb)&&delete d[g[e].identifier],e++;return h.length?[u(f.concat(h),"identifier",!0),h]:void 0}function S(){y.apply(this,arguments);var a=k(this.handler,this);this.touch=new Q(this.manager,a),this.mouse=new M(this.manager,a)}function T(a,b){this.manager=a,this.set(b)}function U(a){if(q(a,bc))return bc;var b=q(a,cc),c=q(a,dc);return b&&c?cc+" "+dc:b||c?b?cc:dc:q(a,ac)?ac:_b}function V(a){this.id=w(),this.manager=null,this.options=i(a||{},this.defaults),this.options.enable=m(this.options.enable,!0),this.state=ec,this.simultaneous={},this.requireFail=[]}function W(a){return a&jc?"cancel":a&hc?"end":a&gc?"move":a&fc?"start":""}function X(a){return a==Gb?"down":a==Fb?"up":a==Db?"left":a==Eb?"right":""}function Y(a,b){var c=b.manager;return c?c.get(a):a}function Z(){V.apply(this,arguments)}function $(){Z.apply(this,arguments),this.pX=null,this.pY=null}function _(){Z.apply(this,arguments)}function ab(){V.apply(this,arguments),this._timer=null,this._input=null}function bb(){Z.apply(this,arguments)}function cb(){Z.apply(this,arguments)}function db(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function eb(a,b){return b=b||{},b.recognizers=m(b.recognizers,eb.defaults.preset),new fb(a,b)}function fb(a,b){b=b||{},this.options=i(b,eb.defaults),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.element=a,this.input=z(this),this.touchAction=new T(this,this.options.touchAction),gb(this,!0),g(b.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function gb(a,b){var c=a.element;g(a.options.cssProps,function(a,d){c.style[v(c.style,d)]=b?a:""})}function hb(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var ib=["","webkit","moz","MS","ms","o"],jb=b.createElement("div"),kb="function",lb=Math.round,mb=Math.abs,nb=Date.now,ob=1,pb=/mobile|tablet|ip(ad|hone|od)|android/i,qb="ontouchstart"in a,rb=v(a,"PointerEvent")!==d,sb=qb&&pb.test(navigator.userAgent),tb="touch",ub="pen",vb="mouse",wb="kinect",xb=25,yb=1,zb=2,Ab=4,Bb=8,Cb=1,Db=2,Eb=4,Fb=8,Gb=16,Hb=Db|Eb,Ib=Fb|Gb,Jb=Hb|Ib,Kb=["x","y"],Lb=["clientX","clientY"];y.prototype={handler:function(){},init:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&o(this.element,this.evEl,this.domHandler),this.evTarget&&o(this.target,this.evTarget,this.domHandler),this.evWin&&o(x(this.element),this.evWin,this.domHandler)}};var Mb={mousedown:yb,mousemove:zb,mouseup:Ab},Nb="mousedown",Ob="mousemove mouseup";j(M,y,{handler:function(a){var b=Mb[a.type];b&yb&&0===a.button&&(this.pressed=!0),b&zb&&1!==a.which&&(b=Ab),this.pressed&&this.allow&&(b&Ab&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:vb,srcEvent:a}))}});var Pb={pointerdown:yb,pointermove:zb,pointerup:Ab,pointercancel:Bb,pointerout:Bb},Qb={2:tb,3:ub,4:vb,5:wb},Rb="pointerdown",Sb="pointermove pointerup pointercancel";a.MSPointerEvent&&(Rb="MSPointerDown",Sb="MSPointerMove MSPointerUp MSPointerCancel"),j(N,y,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Pb[d],f=Qb[a.pointerType]||a.pointerType,g=f==tb,h=s(b,a.pointerId,"pointerId");e&yb&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(kc|ec)))return!1;a++}return!0},recognize:function(a){var b=h({},a);return l(this.options.enable,[this,b])?(this.state&(ic|jc|kc)&&(this.state=ec),this.state=this.process(b),void(this.state&(fc|gc|hc|jc)&&this.tryEmit(b))):(this.reset(),void(this.state=kc))},process:function(){},getTouchAction:function(){},reset:function(){}},j(Z,V,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(fc|gc),e=this.attrTest(a);return d&&(c&Bb||!e)?b|jc:d||e?c&Ab?b|hc:b&fc?b|gc:fc:kc}}),j($,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Jb},getTouchAction:function(){var a=this.options.direction,b=[];return a&Hb&&b.push(dc),a&Ib&&b.push(cc),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Hb?(e=0===f?Cb:0>f?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&yb&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ab)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||I(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=ic,this.tryEmit()},b.interval,this),fc):ic}return kc},failTimeout:function(){return this._timer=e(function(){this.state=kc},this.options.interval,this),kc},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ic&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),eb.VERSION="2.0.4",eb.defaults={domEvents:!1,touchAction:$b,enable:!0,inputTarget:null,inputClass:null,preset:[[bb,{enable:!1}],[_,{enable:!1},["rotate"]],[cb,{direction:Hb}],[$,{direction:Hb},["swipe"]],[db],[db,{event:"doubletap",taps:2},["tap"]],[ab]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var lc=1,mc=2;fb.prototype={set:function(a){return h(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?mc:lc},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&ic)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===mc||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(fc|gc|hc)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof V)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;var b=this.recognizers;return a=this.get(a),b.splice(s(b,a),1),this.touchAction.update(),this},on:function(a,b){var c=this.handlers;return g(r(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this},off:function(a,b){var c=this.handlers;return g(r(a),function(a){b?c[a].splice(s(c[a],b),1):delete c[a]}),this},emit:function(a,b){this.options.domEvents&&hb(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&gb(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(eb,{INPUT_START:yb,INPUT_MOVE:zb,INPUT_END:Ab,INPUT_CANCEL:Bb,STATE_POSSIBLE:ec,STATE_BEGAN:fc,STATE_CHANGED:gc,STATE_ENDED:hc,STATE_RECOGNIZED:ic,STATE_CANCELLED:jc,STATE_FAILED:kc,DIRECTION_NONE:Cb,DIRECTION_LEFT:Db,DIRECTION_RIGHT:Eb,DIRECTION_UP:Fb,DIRECTION_DOWN:Gb,DIRECTION_HORIZONTAL:Hb,DIRECTION_VERTICAL:Ib,DIRECTION_ALL:Jb,Manager:fb,Input:y,TouchAction:T,TouchInput:Q,MouseInput:M,PointerEventInput:N,TouchMouseInput:S,SingleTouchInput:O,Recognizer:V,AttrRecognizer:Z,Tap:db,Pan:$,Swipe:cb,Pinch:_,Rotate:bb,Press:ab,on:n,off:o,each:g,merge:i,extend:h,inherit:j,bindFn:k,prefixed:v}),typeof define==kb&&define.amd?define(function(){return eb}):"undefined"!=typeof module&&module.exports?module.exports=eb:a[c]=eb}(window,document,"Hammer");


// This jQuery plugin is just a small wrapper around the Hammer() class. It also extends the Manager.emit method by triggering jQuery events.
// $(element).hammer(options).bind("pan", myPanHandler);
// The Hammer instance is stored at $element.data("hammer").
(function(factory) {
    if (typeof define === 'function' && define.amd) {
        define(['jquery', 'hammerjs'], factory);
    } else if (typeof exports === 'object') {
        factory(require('jquery'), require('hammerjs'));
    } else {
        factory(jQuery, Hammer);
    }
}(function($, Hammer) {
    function hammerify(el, options) {
        var $el = $(el);
        if(!$el.data("hammer")) {
            $el.data("hammer", new Hammer($el[0], options));
        }
    }

    $.fn.hammer = function(options) {
        return this.each(function() {
            hammerify(this, options);
        });
    };

    // extend the emit method to also trigger jQuery events
    Hammer.Manager.prototype.emit = (function(originalEmit) {
        return function(type, data) {
            originalEmit.call(this, type, data);
            $(this.element).trigger({
                type: type,
                gesture: data
            });
        };
    })(Hammer.Manager.prototype.emit);
}));