(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>s,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function s(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(s),(window.wp=window.wp||{}).a11y=t})();
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
jQuery(document).ready(function ($){
"use strict";
if($('#search-outer.nectar').length > 0){
var acs_action='myprefix_autocompletesearch';
$("body").on('focus','#s',function(){
if(!$(this).hasClass('ui-autocomplete-input')){
$(this).autocomplete({
delay: 50,
position: {of: "#search-outer #search .container" },
appendTo: $("#search-box"),
source: function(req, response){
$.getJSON(MyAcSearch.url+'?callback=?&action='+acs_action, req, response);
},
select: function(event, ui){
if(ui.item.target=='_blank'){
window.open(ui.item.link);
}else{
window.location.href=ui.item.link;
}},
minLength: 2,
}).data("ui-autocomplete")._renderItem=function(ul, item){
return $("<li>")
.append("<a>" + item.image + "<span class='title'>" + item.label + "</span><br/><span class='desc'>" + item.post_type + "</span> </a>")
.appendTo(ul);
};}});
}});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.anime=e()}(this,function(){"use strict";var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},e={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},t=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],r={CSS:{},springs:{}};function a(n,e,t){return Math.min(Math.max(n,e),t)}function o(n,e){return n.indexOf(e)>-1}function u(n,e){return n.apply(null,e)}var i={arr:function(n){return Array.isArray(n)},obj:function(n){return o(Object.prototype.toString.call(n),"Object")},pth:function(n){return i.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||i.svg(n)},str:function(n){return"string"==typeof n},fnc:function(n){return"function"==typeof n},und:function(n){return void 0===n},nil:function(n){return i.und(n)||null===n},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return i.hex(n)||i.rgb(n)||i.hsl(n)},key:function(t){return!n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function c(n){var e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(function(n){return parseFloat(n)}):[]}function s(n,e){var t=c(n),o=a(i.und(t[0])?1:t[0],.1,100),u=a(i.und(t[1])?100:t[1],.1,100),s=a(i.und(t[2])?10:t[2],.1,100),f=a(i.und(t[3])?0:t[3],.1,100),l=Math.sqrt(u/o),d=s/(2*Math.sqrt(u*o)),p=d<1?l*Math.sqrt(1-d*d):0,v=1,h=d<1?(d*l-f)/p:-f+l;function g(n){var t=e?e*n/1e3:n;return t=d<1?Math.exp(-t*d*l)*(v*Math.cos(p*t)+h*Math.sin(p*t)):(v+h*t)*Math.exp(-t*l),0===n||1===n?n:1-t}return e?g:function(){var e=r.springs[n];if(e)return e;for(var t=0,a=0;;)if(1===g(t+=1/6)){if(++a>=16)break}else a=0;var o=t*(1/6)*1e3;return r.springs[n]=o,o}}function f(n){return void 0===n&&(n=10),function(e){return Math.ceil(a(e,1e-6,1)*n)*(1/n)}}var l,d,p=function(){var n=11,e=1/(n-1);function t(n,e){return 1-3*e+3*n}function r(n,e){return 3*e-6*n}function a(n){return 3*n}function o(n,e,o){return((t(e,o)*n+r(e,o))*n+a(e))*n}function u(n,e,o){return 3*t(e,o)*n*n+2*r(e,o)*n+a(e)}return function(t,r,a,i){if(0<=t&&t<=1&&0<=a&&a<=1){var c=new Float32Array(n);if(t!==r||a!==i)for(var s=0;s<n;++s)c[s]=o(s*e,t,a);return function(n){return t===r&&a===i?n:0===n||1===n?n:o(f(n),r,i)}}function f(r){for(var i=0,s=1,f=n-1;s!==f&&c[s]<=r;++s)i+=e;var l=i+(r-c[--s])/(c[s+1]-c[s])*e,d=u(l,t,a);return d>=.001?function(n,e,t,r){for(var a=0;a<4;++a){var i=u(e,t,r);if(0===i)return e;e-=(o(e,t,r)-n)/i}return e}(r,l,t,a):0===d?l:function(n,e,t,r,a){for(var u,i,c=0;(u=o(i=e+(t-e)/2,r,a)-n)>0?t=i:e=i,Math.abs(u)>1e-7&&++c<10;);return i}(r,i,i+e,t,a)}}}(),v=(l={linear:function(){return function(n){return n}}},d={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var e,t=4;n<((e=Math.pow(2,--t))-1)/11;);return 1/Math.pow(4,3-t)-7.5625*Math.pow((3*e-2)/22-n,2)}},Elastic:function(n,e){void 0===n&&(n=1),void 0===e&&(e=.5);var t=a(n,1,10),r=a(e,.1,2);return function(n){return 0===n||1===n?n:-t*Math.pow(2,10*(n-1))*Math.sin((n-1-r/(2*Math.PI)*Math.asin(1/t))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(n,e){d[n]=function(){return function(n){return Math.pow(n,e+2)}}}),Object.keys(d).forEach(function(n){var e=d[n];l["easeIn"+n]=e,l["easeOut"+n]=function(n,t){return function(r){return 1-e(n,t)(1-r)}},l["easeInOut"+n]=function(n,t){return function(r){return r<.5?e(n,t)(2*r)/2:1-e(n,t)(-2*r+2)/2}},l["easeOutIn"+n]=function(n,t){return function(r){return r<.5?(1-e(n,t)(1-2*r))/2:(e(n,t)(2*r-1)+1)/2}}}),l);function h(n,e){if(i.fnc(n))return n;var t=n.split("(")[0],r=v[t],a=c(n);switch(t){case"spring":return s(n,e);case"cubicBezier":return u(p,a);case"steps":return u(f,a);default:return u(r,a)}}function g(n){try{return document.querySelectorAll(n)}catch(n){return}}function m(n,e){for(var t=n.length,r=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<t;o++)if(o in n){var u=n[o];e.call(r,u,o,n)&&a.push(u)}return a}function y(n){return n.reduce(function(n,e){return n.concat(i.arr(e)?y(e):e)},[])}function b(n){return i.arr(n)?n:(i.str(n)&&(n=g(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function M(n,e){return n.some(function(n){return n===e})}function x(n){var e={};for(var t in n)e[t]=n[t];return e}function w(n,e){var t=x(n);for(var r in n)t[r]=e.hasOwnProperty(r)?e[r]:n[r];return t}function k(n,e){var t=x(n);for(var r in e)t[r]=i.und(n[r])?e[r]:n[r];return t}function O(n){return i.rgb(n)?(t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=n))?"rgba("+t[1]+",1)":e:i.hex(n)?(r=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,e,t,r){return e+e+t+t+r+r}),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+",1)"):i.hsl(n)?function(n){var e,t,r,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),o=parseInt(a[1],10)/360,u=parseInt(a[2],10)/100,i=parseInt(a[3],10)/100,c=a[4]||1;function s(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+6*(e-n)*t:t<.5?e:t<2/3?n+(e-n)*(2/3-t)*6:n}if(0==u)e=t=r=i;else{var f=i<.5?i*(1+u):i+u-i*u,l=2*i-f;e=s(l,f,o+1/3),t=s(l,f,o),r=s(l,f,o-1/3)}return"rgba("+255*e+","+255*t+","+255*r+","+c+")"}(n):void 0;var e,t,r,a}function C(n){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(e)return e[1]}function P(n,e){return i.fnc(n)?n(e.target,e.id,e.total):n}function I(n,e){return n.getAttribute(e)}function D(n,e,t){if(M([t,"deg","rad","turn"],C(e)))return e;var a=r.CSS[e+t];if(!i.und(a))return a;var o=document.createElement(n.tagName),u=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;u.appendChild(o),o.style.position="absolute",o.style.width=100+t;var c=100/o.offsetWidth;u.removeChild(o);var s=c*parseFloat(e);return r.CSS[e+t]=s,s}function B(n,e,t){if(e in n.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[e]||getComputedStyle(n).getPropertyValue(r)||"0";return t?D(n,a,t):a}}function T(n,e){return i.dom(n)&&!i.inp(n)&&(!i.nil(I(n,e))||i.svg(n)&&n[e])?"attribute":i.dom(n)&&M(t,e)?"transform":i.dom(n)&&"transform"!==e&&B(n,e)?"css":null!=n[e]?"object":void 0}function E(n){if(i.dom(n)){for(var e,t=n.style.transform||"",r=/(\w+)\(([^)]*)\)/g,a=new Map;e=r.exec(t);)a.set(e[1],e[2]);return a}}function F(n,e,t,r){var a,u=o(e,"scale")?1:0+(o(a=e,"translate")||"perspective"===a?"px":o(a,"rotate")||o(a,"skew")?"deg":void 0),i=E(n).get(e)||u;return t&&(t.transforms.list.set(e,i),t.transforms.last=e),r?D(n,i,r):i}function A(n,e,t,r){switch(T(n,e)){case"transform":return F(n,e,r,t);case"css":return B(n,e,t);case"attribute":return I(n,e);default:return n[e]||0}}function N(n,e){var t=/^(\*=|\+=|-=)/.exec(n);if(!t)return n;var r=C(n)||0,a=parseFloat(e),o=parseFloat(n.replace(t[0],""));switch(t[0][0]){case"+":return a+o+r;case"-":return a-o+r;case"*":return a*o+r}}function S(n,e){if(i.col(n))return O(n);if(/\s/g.test(n))return n;var t=C(n),r=t?n.substr(0,n.length-t.length):n;return e?r+e:r}function L(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function j(n){for(var e,t=n.points,r=0,a=0;a<t.numberOfItems;a++){var o=t.getItem(a);a>0&&(r+=L(e,o)),e=o}return r}function q(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return o=n,2*Math.PI*I(o,"r");case"rect":return 2*I(a=n,"width")+2*I(a,"height");case"line":return L({x:I(r=n,"x1"),y:I(r,"y1")},{x:I(r,"x2"),y:I(r,"y2")});case"polyline":return j(n);case"polygon":return t=(e=n).points,j(e)+L(t.getItem(t.numberOfItems-1),t.getItem(0))}var e,t,r,a,o}function H(n,e){var t=e||{},r=t.el||function(n){for(var e=n.parentNode;i.svg(e)&&i.svg(e.parentNode);)e=e.parentNode;return e}(n),a=r.getBoundingClientRect(),o=I(r,"viewBox"),u=a.width,c=a.height,s=t.viewBox||(o?o.split(" "):[0,0,u,c]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:u,h:c,vW:s[2],vH:s[3]}}function V(n,e,t){function r(t){void 0===t&&(t=0);var r=e+t>=1?e+t:0;return n.el.getPointAtLength(r)}var a=H(n.el,n.svg),o=r(),u=r(-1),i=r(1),c=t?1:a.w/a.vW,s=t?1:a.h/a.vH;switch(n.property){case"x":return(o.x-a.x)*c;case"y":return(o.y-a.y)*s;case"angle":return 180*Math.atan2(i.y-u.y,i.x-u.x)/Math.PI}}function $(n,e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=S(i.pth(n)?n.totalLength:n,e)+"";return{original:r,numbers:r.match(t)?r.match(t).map(Number):[0],strings:i.str(n)||e?r.split(t):[]}}function W(n){return m(n?y(i.arr(n)?n.map(b):b(n)):[],function(n,e,t){return t.indexOf(n)===e})}function X(n){var e=W(n);return e.map(function(n,t){return{target:n,id:t,total:e.length,transforms:{list:E(n)}}})}function Y(n,e){var t=x(e);if(/^spring/.test(t.easing)&&(t.duration=s(t.easing)),i.arr(n)){var r=n.length;2===r&&!i.obj(n[0])?n={value:n}:i.fnc(e.duration)||(t.duration=e.duration/r)}var a=i.arr(n)?n:[n];return a.map(function(n,t){var r=i.obj(n)&&!i.pth(n)?n:{value:n};return i.und(r.delay)&&(r.delay=t?0:e.delay),i.und(r.endDelay)&&(r.endDelay=t===a.length-1?e.endDelay:0),r}).map(function(n){return k(n,t)})}function Z(n,e){var t=[],r=e.keyframes;for(var a in r&&(e=k(function(n){for(var e=m(y(n.map(function(n){return Object.keys(n)})),function(n){return i.key(n)}).reduce(function(n,e){return n.indexOf(e)<0&&n.push(e),n},[]),t={},r=function(r){var a=e[r];t[a]=n.map(function(n){var e={};for(var t in n)i.key(t)?t==a&&(e.value=n[t]):e[t]=n[t];return e})},a=0;a<e.length;a++)r(a);return t}(r),e)),e)i.key(a)&&t.push({name:a,tweens:Y(e[a],n)});return t}function G(n,e){var t;return n.tweens.map(function(r){var a=function(n,e){var t={};for(var r in n){var a=P(n[r],e);i.arr(a)&&1===(a=a.map(function(n){return P(n,e)})).length&&(a=a[0]),t[r]=a}return t.duration=parseFloat(t.duration),t.delay=parseFloat(t.delay),t}(r,e),o=a.value,u=i.arr(o)?o[1]:o,c=C(u),s=A(e.target,n.name,c,e),f=t?t.to.original:s,l=i.arr(o)?o[0]:f,d=C(l)||C(s),p=c||d;return i.und(u)&&(u=f),a.from=$(l,p),a.to=$(N(u,l),p),a.start=t?t.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=h(a.easing,a.duration),a.isPath=i.pth(o),a.isPathTargetInsideSVG=a.isPath&&i.svg(e.target),a.isColor=i.col(a.from.original),a.isColor&&(a.round=1),t=a,a})}var Q={css:function(n,e,t){return n.style[e]=t},attribute:function(n,e,t){return n.setAttribute(e,t)},object:function(n,e,t){return n[e]=t},transform:function(n,e,t,r,a){if(r.list.set(e,t),e===r.last||a){var o="";r.list.forEach(function(n,e){o+=e+"("+n+") "}),n.style.transform=o}}};function z(n,e){X(n).forEach(function(n){for(var t in e){var r=P(e[t],n),a=n.target,o=C(r),u=A(a,t,o,n),i=N(S(r,o||C(u)),u),c=T(a,t);Q[c](a,t,i,n.transforms,!0)}})}function _(n,e){return m(y(n.map(function(n){return e.map(function(e){return function(n,e){var t=T(n.target,e.name);if(t){var r=G(e,n),a=r[r.length-1];return{type:t,property:e.name,animatable:n,tweens:r,duration:a.end,delay:r[0].delay,endDelay:a.endDelay}}}(n,e)})})),function(n){return!i.und(n)})}function R(n,e){var t=n.length,r=function(n){return n.timelineOffset?n.timelineOffset:0},a={};return a.duration=t?Math.max.apply(Math,n.map(function(n){return r(n)+n.duration})):e.duration,a.delay=t?Math.min.apply(Math,n.map(function(n){return r(n)+n.delay})):e.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(n){return r(n)+n.duration-n.endDelay})):e.endDelay,a}var J=0;var K=[],U=function(){var n;function e(t){for(var r=K.length,a=0;a<r;){var o=K[a];o.paused?(K.splice(a,1),r--):(o.tick(t),a++)}n=a>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){en.suspendWhenDocumentHidden&&(nn()?n=cancelAnimationFrame(n):(K.forEach(function(n){return n._onDocumentVisibility()}),U()))}),function(){n||nn()&&en.suspendWhenDocumentHidden||!(K.length>0)||(n=requestAnimationFrame(e))}}();function nn(){return!!document&&document.hidden}function en(t){void 0===t&&(t={});var r,o=0,u=0,i=0,c=0,s=null;function f(n){var e=window.Promise&&new Promise(function(n){return s=n});return n.finished=e,e}var l,d,p,v,h,g,y,b,M=(d=w(n,l=t),p=w(e,l),v=Z(p,l),h=X(l.targets),g=_(h,v),y=R(g,p),b=J,J++,k(d,{id:b,children:[],animatables:h,animations:g,duration:y.duration,delay:y.delay,endDelay:y.endDelay}));f(M);function x(){var n=M.direction;"alternate"!==n&&(M.direction="normal"!==n?"normal":"reverse"),M.reversed=!M.reversed,r.forEach(function(n){return n.reversed=M.reversed})}function O(n){return M.reversed?M.duration-n:n}function C(){o=0,u=O(M.currentTime)*(1/en.speed)}function P(n,e){e&&e.seek(n-e.timelineOffset)}function I(n){for(var e=0,t=M.animations,r=t.length;e<r;){var o=t[e],u=o.animatable,i=o.tweens,c=i.length-1,s=i[c];c&&(s=m(i,function(e){return n<e.end})[0]||s);for(var f=a(n-s.start-s.delay,0,s.duration)/s.duration,l=isNaN(f)?1:s.easing(f),d=s.to.strings,p=s.round,v=[],h=s.to.numbers.length,g=void 0,y=0;y<h;y++){var b=void 0,x=s.to.numbers[y],w=s.from.numbers[y]||0;b=s.isPath?V(s.value,l*x,s.isPathTargetInsideSVG):w+l*(x-w),p&&(s.isColor&&y>2||(b=Math.round(b*p)/p)),v.push(b)}var k=d.length;if(k){g=d[0];for(var O=0;O<k;O++){d[O];var C=d[O+1],P=v[O];isNaN(P)||(g+=C?P+C:P+" ")}}else g=v[0];Q[o.type](u.target,o.property,g,u.transforms),o.currentValue=g,e++}}function D(n){M[n]&&!M.passThrough&&M[n](M)}function B(n){var e=M.duration,t=M.delay,l=e-M.endDelay,d=O(n);M.progress=a(d/e*100,0,100),M.reversePlayback=d<M.currentTime,r&&function(n){if(M.reversePlayback)for(var e=c;e--;)P(n,r[e]);else for(var t=0;t<c;t++)P(n,r[t])}(d),!M.began&&M.currentTime>0&&(M.began=!0,D("begin")),!M.loopBegan&&M.currentTime>0&&(M.loopBegan=!0,D("loopBegin")),d<=t&&0!==M.currentTime&&I(0),(d>=l&&M.currentTime!==e||!e)&&I(e),d>t&&d<l?(M.changeBegan||(M.changeBegan=!0,M.changeCompleted=!1,D("changeBegin")),D("change"),I(d)):M.changeBegan&&(M.changeCompleted=!0,M.changeBegan=!1,D("changeComplete")),M.currentTime=a(d,0,e),M.began&&D("update"),n>=e&&(u=0,M.remaining&&!0!==M.remaining&&M.remaining--,M.remaining?(o=i,D("loopComplete"),M.loopBegan=!1,"alternate"===M.direction&&x()):(M.paused=!0,M.completed||(M.completed=!0,D("loopComplete"),D("complete"),!M.passThrough&&"Promise"in window&&(s(),f(M)))))}return M.reset=function(){var n=M.direction;M.passThrough=!1,M.currentTime=0,M.progress=0,M.paused=!0,M.began=!1,M.loopBegan=!1,M.changeBegan=!1,M.completed=!1,M.changeCompleted=!1,M.reversePlayback=!1,M.reversed="reverse"===n,M.remaining=M.loop,r=M.children;for(var e=c=r.length;e--;)M.children[e].reset();(M.reversed&&!0!==M.loop||"alternate"===n&&1===M.loop)&&M.remaining++,I(M.reversed?M.duration:0)},M._onDocumentVisibility=C,M.set=function(n,e){return z(n,e),M},M.tick=function(n){i=n,o||(o=i),B((i+(u-o))*en.speed)},M.seek=function(n){B(O(n))},M.pause=function(){M.paused=!0,C()},M.play=function(){M.paused&&(M.completed&&M.reset(),M.paused=!1,K.push(M),C(),U())},M.reverse=function(){x(),M.completed=!M.reversed,C()},M.restart=function(){M.reset(),M.play()},M.remove=function(n){rn(W(n),M)},M.reset(),M.autoplay&&M.play(),M}function tn(n,e){for(var t=e.length;t--;)M(n,e[t].animatable.target)&&e.splice(t,1)}function rn(n,e){var t=e.animations,r=e.children;tn(n,t);for(var a=r.length;a--;){var o=r[a],u=o.animations;tn(n,u),u.length||o.children.length||r.splice(a,1)}t.length||r.length||e.pause()}return en.version="3.2.1",en.speed=1,en.suspendWhenDocumentHidden=!0,en.running=K,en.remove=function(n){for(var e=W(n),t=K.length;t--;)rn(e,K[t])},en.get=A,en.set=z,en.convertPx=D,en.path=function(n,e){var t=i.str(n)?g(n)[0]:n,r=e||100;return function(n){return{property:n,el:t,svg:H(t),totalLength:q(t)*(r/100)}}},en.setDashoffset=function(n){var e=q(n);return n.setAttribute("stroke-dasharray",e),e},en.stagger=function(n,e){void 0===e&&(e={});var t=e.direction||"normal",r=e.easing?h(e.easing):null,a=e.grid,o=e.axis,u=e.from||0,c="first"===u,s="center"===u,f="last"===u,l=i.arr(n),d=l?parseFloat(n[0]):parseFloat(n),p=l?parseFloat(n[1]):0,v=C(l?n[1]:n)||0,g=e.start||0+(l?d:0),m=[],y=0;return function(n,e,i){if(c&&(u=0),s&&(u=(i-1)/2),f&&(u=i-1),!m.length){for(var h=0;h<i;h++){if(a){var b=s?(a[0]-1)/2:u%a[0],M=s?(a[1]-1)/2:Math.floor(u/a[0]),x=b-h%a[0],w=M-Math.floor(h/a[0]),k=Math.sqrt(x*x+w*w);"x"===o&&(k=-x),"y"===o&&(k=-w),m.push(k)}else m.push(Math.abs(u-h));y=Math.max.apply(Math,m)}r&&(m=m.map(function(n){return r(n/y)*y})),"reverse"===t&&(m=m.map(function(n){return o?n<0?-1*n:-n:Math.abs(y-n)}))}return g+(l?(p-d)/y:d)*(Math.round(100*m[e])/100)+v}},en.timeline=function(n){void 0===n&&(n={});var t=en(n);return t.duration=0,t.add=function(r,a){var o=K.indexOf(t),u=t.children;function c(n){n.passThrough=!0}o>-1&&K.splice(o,1);for(var s=0;s<u.length;s++)c(u[s]);var f=k(r,w(e,n));f.targets=f.targets||n.targets;var l=t.duration;f.autoplay=!1,f.direction=t.direction,f.timelineOffset=i.und(a)?l:N(a,l),c(t),t.seek(f.timelineOffset);var d=en(f);c(d),u.push(d);var p=R(u,n);return t.delay=p.delay,t.endDelay=p.endDelay,t.duration=p.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},en.easing=h,en.penner=v,en.random=function(n,e){return Math.floor(Math.random()*(e-n+1))+n},en});
if(!jQuery().nectarswiper){
var NectarSwiper=function (selector, params){
if(document.body.__defineGetter__){
var testOuterHTML=document.querySelector('div');
if(typeof testOuterHTML.outerHTML==="undefined"){
if(HTMLElement){
var element=HTMLElement.prototype;
if(element.__defineGetter__){
element.__defineGetter__("outerHTML", function (){ return new XMLSerializer().serializeToString(this); });
}}
}}
if(!window.getComputedStyle){
window.getComputedStyle=function (el, pseudo){
this.el=el;
this.getPropertyValue=function (prop){
var re=/(\-([a-z]){1})/g;
if(prop==='float') prop='styleFloat';
if(re.test(prop)){
prop=prop.replace(re, function (){
return arguments[2].toUpperCase();
});
}
return el.currentStyle[prop] ? el.currentStyle[prop]:null;
};
return this;
};}
if(!Array.prototype.indexOf){
Array.prototype.indexOf=function(obj, start){
for (var i=(start||0), j=this.length; i < j; i++){
if(this[i]===obj){ return i; }}
return -1;
};}
if(!document.querySelectorAll){
if(!window.jQuery) return;
}
function $$(selector, context){
if(document.querySelectorAll)
return (context||document).querySelectorAll(selector);
else
return jQuery(selector, context);
}
if(typeof selector==='undefined') return;
if(!(selector.nodeType)){
if($$(selector).length===0) return;
}
var _this=this;
_this.touches={
start:0,
startX:0,
startY:0,
current:0,
currentX:0,
currentY:0,
diff:0,
abs:0
};
_this.positions={
start:0,
abs:0,
diff:0,
current:0
};
_this.times={
start:0,
end:0
};
_this.id=(new Date()).getTime();
_this.container=(selector.nodeType) ? selector:$$(selector)[0];
_this.isTouched=false;
_this.isMoved=false;
_this.activeIndex=0;
_this.activeLoaderIndex=0;
_this.activeLoopIndex=0;
_this.previousIndex=null;
_this.velocity=0;
_this.snapGrid=[];
_this.slidesGrid=[];
_this.imagesToLoad=[];
_this.imagesLoaded=0;
_this.wrapperLeft=0;
_this.wrapperRight=0;
_this.wrapperTop=0;
_this.wrapperBottom=0;
var wrapper, slideSize, wrapperSize, direction, isScrolling, containerSize;
var defaults={
mode:'horizontal',
touchRatio:1,
speed:300,
freeMode:false,
freeModeFluid:false,
momentumRatio: 1,
momentumBounce: true,
momentumBounceRatio: 1,
slidesPerView:1,
slidesPerGroup:1,
simulateTouch:true,
followFinger:true,
shortSwipes:true,
moveStartThreshold:false,
autoplay: false,
onlyExternal:false,
createPagination:true,
pagination:false,
paginationElement: 'span',
paginationClickable: false,
paginationAsRange: true,
resistance:true,
scrollContainer:false,
preventLinks:true,
noSwiping:false,
noSwipingClass:'swiper-no-swiping',
initialSlide: 0,
keyboardControl: false,
mousewheelControl:false,
mousewheelDebounce: 600,
useCSS3Transforms:true,
loop:false,
loopAdditionalSlides:0,
calculateHeight: false,
updateOnImagesReady:true,
releaseFormElements:true,
watchActiveIndex: false,
visibilityFullFit:false,
offsetPxBefore:0,
offsetPxAfter:0,
offsetSlidesBefore:0,
offsetSlidesAfter:0,
centeredSlides: false,
queueStartCallbacks:false,
queueEndCallbacks:false,
autoResize:true,
resizeReInit:false,
DOMAnimation:true,
loader: {
slides:[],
slidesHTMLType:'inner',
surroundGroups: 1,
logic: 'reload',
loadAllSlides: false
},
slideElement:'div',
slideClass:'swiper-slide',
slideActiveClass:'swiper-slide-active',
slideVisibleClass:'swiper-slide-visible',
wrapperClass:'swiper-wrapper',
paginationElementClass: 'swiper-pagination-switch',
paginationActiveClass:'swiper-active-switch ar-vis',
paginationVisibleClass:'swiper-visible-switch'
};
params=params||{};
for (var prop in defaults){
if(prop in params&&typeof params[prop]==='object'){
for (var subProp in defaults[prop]){
if(! (subProp in params[prop])){
params[prop][subProp]=defaults[prop][subProp];
}}
}
else if(! (prop in params)){
params[prop]=defaults[prop];
}}
_this.params=params;
if(params.scrollContainer){
params.freeMode=true;
params.freeModeFluid=true;
}
if(params.loop){
params.resistance='100%';
}
var isH=params.mode==='horizontal';
_this.touchEvents={
touchStart:_this.support.touch||!params.simulateTouch  ? 'touchstart':(_this.browser.ie10 ? 'MSPointerDown':'mousedown'),
touchMove:_this.support.touch||!params.simulateTouch ? 'touchmove':(_this.browser.ie10 ? 'MSPointerMove':'mousemove'),
touchEnd:_this.support.touch||!params.simulateTouch ? 'touchend':(_this.browser.ie10 ? 'MSPointerUp':'mouseup')
};
for (var i=_this.container.childNodes.length - 1; i >=0; i--){
if(_this.container.childNodes[i].className){
var _wrapperClasses=_this.container.childNodes[i].className.split(/\s+/);
for (var j=0; j < _wrapperClasses.length; j++){
if(_wrapperClasses[j]===params.wrapperClass){
wrapper=_this.container.childNodes[i];
}}
}}
_this.wrapper=wrapper;
_this._extendSwiperSlide=function  (el){
el.append=function (){
if(params.loop){
el.insertAfter(_this.slides.length-_this.loopedSlides);
_this.removeLoopedSlides();
_this.calcSlides();
_this.createLoop();
}else{
_this.wrapper.appendChild(el);
}
_this.reInit();
return el;
};
el.prepend=function (){
if(params.loop){
_this.wrapper.insertBefore(el, _this.slides[_this.loopedSlides]);
_this.removeLoopedSlides();
_this.calcSlides();
_this.createLoop();
}else{
_this.wrapper.insertBefore(el, _this.wrapper.firstChild);
}
_this.reInit();
return el;
};
el.insertAfter=function (index){
if(typeof index==='undefined') return false;
var beforeSlide;
if(params.loop){
beforeSlide=_this.slides[index + 1 + _this.loopedSlides];
_this.wrapper.insertBefore(el, beforeSlide);
_this.removeLoopedSlides();
_this.calcSlides();
_this.createLoop();
}else{
beforeSlide=_this.slides[index + 1];
_this.wrapper.insertBefore(el, beforeSlide);
}
_this.reInit();
return el;
};
el.clone=function (){
return _this._extendSwiperSlide(el.cloneNode(true));
};
el.remove=function (){
_this.wrapper.removeChild(el);
_this.reInit();
};
el.html=function (html){
if(typeof html==='undefined'){
return el.innerHTML;
}else{
el.innerHTML=html;
return el;
}};
el.index=function (){
var index;
for (var i=_this.slides.length - 1; i >=0; i--){
if(el===_this.slides[i]) index=i;
}
return index;
};
el.isActive=function (){
if(el.index()===_this.activeIndex){ return true; }
else return false;
};
if(!el.swiperSlideDataStorage) el.swiperSlideDataStorage={};
el.getData=function (name){
return el.swiperSlideDataStorage[name];
};
el.setData=function (name, value){
el.swiperSlideDataStorage[name]=value;
return el;
};
el.data=function (name, value){
if(!value){
return el.getAttribute('data-'+name);
}else{
el.setAttribute('data-'+name,value);
return el;
}};
el.getWidth=function (outer){
return _this.h.getWidth(el, outer);
};
el.getHeight=function (outer){
return _this.h.getHeight(el, outer);
};
el.getOffset=function(){
return _this.h.getOffset(el);
};
return el;
};
_this.calcSlides=function (forceCalcSlides){
var oldNumber=_this.slides ? _this.slides.length:false;
_this.slides=[];
_this.displaySlides=[];
for (var i=0; i < _this.wrapper.childNodes.length; i++){
if(_this.wrapper.childNodes[i].className){
var _className=_this.wrapper.childNodes[i].className;
var _slideClasses=_className.split(' ');
for (var j=0; j < _slideClasses.length; j++){
if(_slideClasses[j]===params.slideClass){
_this.slides.push(_this.wrapper.childNodes[i]);
}}
}}
for (i=_this.slides.length - 1; i >=0; i--){
_this._extendSwiperSlide(_this.slides[i]);
}
if(!oldNumber) return;
if(oldNumber!==_this.slides.length||forceCalcSlides){
removeSlideEvents();
addSlideEvents();
_this.updateActiveSlide();
if(params.createPagination&&_this.params.pagination) _this.createPagination();
_this.callPlugins('numberOfSlidesChanged');
}};
_this.createSlide=function (html, slideClassList, el){
var slideClassList=slideClassList||_this.params.slideClass;
var el=el||params.slideElement;
var newSlide=document.createElement(el);
newSlide.innerHTML=html||'';
newSlide.className=slideClassList;
return _this._extendSwiperSlide(newSlide);
};
_this.appendSlide=function (html, slideClassList, el){
if(!html) return;
if(html.nodeType){
return _this._extendSwiperSlide(html).append();
}else{
return _this.createSlide(html, slideClassList, el).append();
}};
_this.prependSlide=function (html, slideClassList, el){
if(!html) return;
if(html.nodeType){
return _this._extendSwiperSlide(html).prepend();
}else{
return _this.createSlide(html, slideClassList, el).prepend();
}};
_this.insertSlideAfter=function (index, html, slideClassList, el){
if(typeof index==='undefined') return false;
if(html.nodeType){
return _this._extendSwiperSlide(html).insertAfter(index);
}else{
return _this.createSlide(html, slideClassList, el).insertAfter(index);
}};
_this.removeSlide=function (index){
if(_this.slides[index]){
if(params.loop){
if(!_this.slides[index+_this.loopedSlides]) return false;
_this.slides[index+_this.loopedSlides].remove();
_this.removeLoopedSlides();
_this.calcSlides();
_this.createLoop();
}
else _this.slides[index].remove();
return true;
}
else return false;
};
_this.removeLastSlide=function (){
if(_this.slides.length>0){
if(params.loop){
_this.slides[_this.slides.length - 1 - _this.loopedSlides].remove();
_this.removeLoopedSlides();
_this.calcSlides();
_this.createLoop();
}
else _this.slides[ (_this.slides.length-1) ].remove();
return true;
}else{
return false;
}};
_this.removeAllSlides=function (){
for (var i=_this.slides.length - 1; i >=0; i--){
_this.slides[i].remove();
}};
_this.getSlide=function (index){
return _this.slides[index];
};
_this.getLastSlide=function (){
return _this.slides[ _this.slides.length-1 ];
};
_this.getFirstSlide=function (){
return _this.slides[0];
};
_this.activeSlide=function (){
return _this.slides[_this.activeIndex];
};
var _plugins=[];
for (var plugin in _this.plugins){
if(params[plugin]){
var p=_this.plugins[plugin](_this, params[plugin]);
if(p) _plugins.push(p);
}}
_this.callPlugins=function(method, args){
if(!args) args={}
for (var i=0; i<_plugins.length; i++){
if(method in _plugins[i]){
_plugins[i][method](args);
}}
};
_this.fireCallback=function(){
var callback=arguments[0];
if(Object.prototype.toString.call(callback)==='[object Array]'){
for (var i=0; i < callback.length; i++){
if(typeof callback[i]==='function'){
callback[i](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
}}
}else{
callback(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
}};
function isArray (obj){
"use strict";
if(Object.prototype.toString.apply(obj)==='[object Array]'){
return true;
}
return false;
}
_this.addCallback=function (callback, func){
"use strict";
var _this=this, tempFunc;
if(_this.params['on' + callback]){
if(isArray(this.params['on' + callback])){
return this.params['on' + callback].push(func);
}else if(typeof this.params['on' + callback]==='function'){
tempFunc=this.params['on' + callback];
this.params['on' + callback]=[];
this.params['on' + callback].push(tempFunc);
return this.params['on' + callback].push(func);
}}else{
this.params['on' + callback]=[];
return this.params['on' + callback].push(func);
}};
_this.removeCallbacks=function (callback){
if(_this.params['on' + callback]){
return _this.params['on' + callback]=null;
}};
if(_this.browser.ie10&&!params.onlyExternal){
_this.wrapper.classList.add('swiper-wp8-' + (isH ? 'horizontal':'vertical'));
}
if(params.freeMode){
_this.container.className+=' swiper-free-mode';
}
_this.initialized=false;
_this.init=function(force, forceCalcSlides){
var _width=_this.h.getWidth(_this.container);
var _height=_this.h.getHeight(_this.container);
if(_width===_this.width&&_height===_this.height&&!force) return;
_this.width=_width;
_this.height=_height;
containerSize=isH ? _width:_height;
var wrapper=_this.wrapper;
if(force){
_this.calcSlides(forceCalcSlides);
}
if(params.slidesPerView==='auto'){
var slidesWidth=0;
var slidesHeight=0;
if(params.slidesOffset>0){
wrapper.style.paddingLeft='';
wrapper.style.paddingRight='';
wrapper.style.paddingTop='';
wrapper.style.paddingBottom='';
}
wrapper.style.width='';
wrapper.style.height='';
if(params.offsetPxBefore>0){
if(isH) _this.wrapperLeft=params.offsetPxBefore;
else _this.wrapperTop=params.offsetPxBefore;
}
if(params.offsetPxAfter>0){
if(isH) _this.wrapperRight=params.offsetPxAfter;
else _this.wrapperBottom=params.offsetPxAfter;
}
if(params.centeredSlides){
if(isH){
_this.wrapperLeft=(containerSize - this.slides[0].getWidth(true))/2;
_this.wrapperRight=(containerSize - _this.slides[ _this.slides.length-1 ].getWidth(true))/2;
}else{
_this.wrapperTop=(containerSize - _this.slides[0].getHeight(true))/2;
_this.wrapperBottom=(containerSize - _this.slides[ _this.slides.length-1 ].getHeight(true))/2;
}}
if(isH){
if(_this.wrapperLeft>=0) wrapper.style.paddingLeft=_this.wrapperLeft+'px';
if(_this.wrapperRight>=0) wrapper.style.paddingRight=_this.wrapperRight+'px';
}else{
if(_this.wrapperTop>=0) wrapper.style.paddingTop=_this.wrapperTop+'px';
if(_this.wrapperBottom>=0) wrapper.style.paddingBottom=_this.wrapperBottom+'px';
}
var slideLeft=0;
var centeredSlideLeft=0;
_this.snapGrid=[];
_this.slidesGrid=[];
var slideMaxHeight=0;
for(var i=0; i<_this.slides.length; i++){
var slideWidth=_this.slides[i].getWidth(true);
var slideHeight=_this.slides[i].getHeight(true);
if(params.calculateHeight){
slideMaxHeight=Math.max(slideMaxHeight, slideHeight);
}
var _slideSize=isH ? slideWidth:slideHeight;
if(params.centeredSlides){
var nextSlideWidth=i===_this.slides.length-1 ? 0:_this.slides[i+1].getWidth(true);
var nextSlideHeight=i===_this.slides.length-1 ? 0:_this.slides[i+1].getHeight(true);
var nextSlideSize=isH ? nextSlideWidth:nextSlideHeight;
if(_slideSize>containerSize){
for (var j=0; j<=Math.floor(_slideSize/(containerSize+_this.wrapperLeft)); j++){
if(j===0) _this.snapGrid.push(slideLeft+_this.wrapperLeft);
else _this.snapGrid.push(slideLeft+_this.wrapperLeft+containerSize*j);
}
_this.slidesGrid.push(slideLeft+_this.wrapperLeft);
}else{
_this.snapGrid.push(centeredSlideLeft);
_this.slidesGrid.push(centeredSlideLeft);
}
centeredSlideLeft +=_slideSize/2 + nextSlideSize/2;
}else{
if(_slideSize>containerSize){
for (var j=0; j<=Math.floor(_slideSize/containerSize); j++){
_this.snapGrid.push(slideLeft+containerSize*j);
}}else{
_this.snapGrid.push(slideLeft);
}
_this.slidesGrid.push(slideLeft);
}
slideLeft +=_slideSize;
slidesWidth +=slideWidth;
slidesHeight +=slideHeight;
}
if(params.calculateHeight) _this.height=slideMaxHeight;
if(isH){
wrapperSize=slidesWidth + _this.wrapperRight + _this.wrapperLeft;
wrapper.style.width=(slidesWidth)+'px';
wrapper.style.height=(_this.height)+'px';
}else{
wrapperSize=slidesHeight + _this.wrapperTop + _this.wrapperBottom;
wrapper.style.width=(_this.width)+'px';
wrapper.style.height=(slidesHeight)+'px';
}}
else if(params.scrollContainer){
wrapper.style.width='';
wrapper.style.height='';
var wrapperWidth=_this.slides[0].getWidth(true);
var wrapperHeight=_this.slides[0].getHeight(true);
wrapperSize=isH ? wrapperWidth:wrapperHeight;
wrapper.style.width=wrapperWidth+'px';
wrapper.style.height=wrapperHeight+'px';
slideSize=isH ? wrapperWidth:wrapperHeight;
}else{
if(params.calculateHeight){
var slideMaxHeight=0;
var wrapperHeight=0;
if(!isH) _this.container.style.height='';
wrapper.style.height='';
for (var i=0; i<_this.slides.length; i++){
_this.slides[i].style.height='';
slideMaxHeight=Math.max(_this.slides[i].getHeight(true), slideMaxHeight);
if(!isH) wrapperHeight+=_this.slides[i].getHeight(true);
}
var slideHeight=slideMaxHeight;
_this.height=slideHeight;
if(isH) wrapperHeight=slideHeight;
else containerSize=slideHeight, _this.container.style.height=containerSize+'px';
}else{
var slideHeight=isH ? _this.height:_this.height/params.slidesPerView;
var wrapperHeight=isH ? _this.height:_this.slides.length*slideHeight;
}
var slideWidth=isH ? _this.width/params.slidesPerView:_this.width;
var wrapperWidth=isH ? _this.slides.length*slideWidth:_this.width;
slideSize=isH ? slideWidth:slideHeight;
if(params.offsetSlidesBefore>0){
if(isH) _this.wrapperLeft=slideSize*params.offsetSlidesBefore;
else _this.wrapperTop=slideSize*params.offsetSlidesBefore;
}
if(params.offsetSlidesAfter>0){
if(isH) _this.wrapperRight=slideSize*params.offsetSlidesAfter;
else _this.wrapperBottom=slideSize*params.offsetSlidesAfter;
}
if(params.offsetPxBefore>0){
if(isH) _this.wrapperLeft=params.offsetPxBefore;
else _this.wrapperTop=params.offsetPxBefore;
}
if(params.offsetPxAfter>0){
if(isH) _this.wrapperRight=params.offsetPxAfter;
else _this.wrapperBottom=params.offsetPxAfter;
}
if(params.centeredSlides){
if(isH){
_this.wrapperLeft=(containerSize - slideSize)/2;
_this.wrapperRight=(containerSize - slideSize)/2;
}else{
_this.wrapperTop=(containerSize - slideSize)/2;
_this.wrapperBottom=(containerSize - slideSize)/2;
}}
if(isH){
if(_this.wrapperLeft>0) wrapper.style.paddingLeft=_this.wrapperLeft+'px';
if(_this.wrapperRight>0) wrapper.style.paddingRight=_this.wrapperRight+'px';
}else{
if(_this.wrapperTop>0) wrapper.style.paddingTop=_this.wrapperTop+'px';
if(_this.wrapperBottom>0) wrapper.style.paddingBottom=_this.wrapperBottom+'px';
}
wrapperSize=isH ? wrapperWidth + _this.wrapperRight + _this.wrapperLeft:wrapperHeight + _this.wrapperTop + _this.wrapperBottom;
if(!params.cssWidthAndHeight){
if(parseFloat(wrapperWidth) > 0){
wrapper.style.width=wrapperWidth+'px';
}
if(parseFloat(wrapperHeight) > 0){
wrapper.style.height=wrapperHeight+'px';
}}
var slideLeft=0;
_this.snapGrid=[];
_this.slidesGrid=[];
for (var i=0; i<_this.slides.length; i++){
_this.snapGrid.push(slideLeft);
_this.slidesGrid.push(slideLeft);
slideLeft+=slideSize;
if(!params.cssWidthAndHeight){
if(parseFloat(slideWidth) > 0){
_this.slides[i].style.width=slideWidth+'px';
}
if(parseFloat(slideHeight) > 0){
_this.slides[i].style.height=slideHeight+'px';
}}
}}
if(!_this.initialized){
_this.callPlugins('onFirstInit');
if(params.onFirstInit) _this.fireCallback(params.onFirstInit,_this);
}else{
_this.callPlugins('onInit');
if(params.onInit) _this.fireCallback(params.onInit,_this);
}
_this.initialized=true;
};
_this.reInit=function (forceCalcSlides){
_this.init(true, forceCalcSlides);
};
_this.resizeFix=function (reInit){
_this.callPlugins('beforeResizeFix');
_this.init(params.resizeReInit||reInit);
if(!params.freeMode){
_this.swipeTo((params.loop ? _this.activeLoopIndex:_this.activeIndex), 0, false);
}
else if(_this.getWrapperTranslate() < -maxWrapperPosition()){
_this.setWrapperTransition(0);
_this.setWrapperTranslate(-maxWrapperPosition());
}
_this.callPlugins('afterResizeFix');
};
function maxWrapperPosition(){
var a=(wrapperSize - containerSize);
if(params.freeMode){
a=wrapperSize - containerSize;
}
if(params.slidesPerView > _this.slides.length) a=0;
if(a<0) a=0;
return a;
}
function minWrapperPosition(){
var a=0;
return a;
}
function initEvents(){
var bind=_this.h.addEventListener;
if(!_this.browser.ie10){
if(_this.support.touch){
bind(_this.wrapper, 'touchstart', onTouchStart);
bind(_this.wrapper, 'touchmove', onTouchMove);
bind(_this.wrapper, 'touchend', onTouchEnd);
}
if(params.simulateTouch){
bind(_this.wrapper, 'mousedown', onTouchStart);
bind(document, 'mousemove', onTouchMove);
bind(document, 'mouseup', onTouchEnd);
}}else{
bind(_this.wrapper, _this.touchEvents.touchStart, onTouchStart);
bind(document, _this.touchEvents.touchMove, onTouchMove);
bind(document, _this.touchEvents.touchEnd, onTouchEnd);
}
if(params.autoResize){
bind(window, 'resize', _this.resizeFix);
}
addSlideEvents();
_this._wheelEvent=false;
if(params.mousewheelControl){
if(document.onmousewheel!==undefined){
_this._wheelEvent="mousewheel";
}
try {
WheelEvent("wheel");
_this._wheelEvent="wheel";
} catch (e){}
if(!_this._wheelEvent){
_this._wheelEvent="DOMMouseScroll";
}
if(_this._wheelEvent){
bind(_this.container, _this._wheelEvent, handleMousewheel);
}}
if(params.keyboardControl){
bind(document, 'keydown', handleKeyboardKeys);
}
if(params.updateOnImagesReady){
_this.imagesToLoad=$$('img', _this.container);
for (var i=0; i<_this.imagesToLoad.length; i++){
_loadImage(_this.imagesToLoad[i].getAttribute('src'));
}}
function _loadImage(src){
var image=new Image();
image.onload=function(){
_this.imagesLoaded++;
if(_this.imagesLoaded==_this.imagesToLoad.length){
_this.reInit();
if(params.onImagesReady) _this.fireCallback(params.onImagesReady, _this);
}};
image.src=src;
}}
_this.destroy=function(removeResizeFix){
var unbind=_this.h.removeEventListener;
if(!_this.browser.ie10){
if(_this.support.touch){
unbind(_this.wrapper, 'touchstart', onTouchStart);
unbind(_this.wrapper, 'touchmove', onTouchMove);
unbind(_this.wrapper, 'touchend', onTouchEnd);
}
if(params.simulateTouch){
unbind(_this.wrapper, 'mousedown', onTouchStart);
unbind(document, 'mousemove', onTouchMove);
unbind(document, 'mouseup', onTouchEnd);
}}else{
unbind(_this.wrapper, _this.touchEvents.touchStart, onTouchStart);
unbind(document, _this.touchEvents.touchMove, onTouchMove);
unbind(document, _this.touchEvents.touchEnd, onTouchEnd);
}
if(params.autoResize){
unbind(window, 'resize', _this.resizeFix);
}
removeSlideEvents();
if(params.paginationClickable){
removePaginationEvents();
}
if(params.mousewheelControl&&_this._wheelEvent){
unbind(_this.container, _this._wheelEvent, handleMousewheel);
}
if(params.keyboardControl){
unbind(document, 'keydown', handleKeyboardKeys);
}
if(params.autoplay){
_this.stopAutoplay();
}
_this.callPlugins('onDestroy');
_this=null;
};
function addSlideEvents(){
var bind=_this.h.addEventListener,
i;
if(params.preventLinks){
var links=$$('a', _this.container);
for (i=0; i<links.length; i++){
bind(links[i], 'click', preventClick);
}}
if(params.releaseFormElements){
var formElements=$$('input, textarea, select', _this.container);
for (i=0; i<formElements.length; i++){
bind(formElements[i], _this.touchEvents.touchStart, releaseForms, true);
}}
if(params.onSlideClick){
for (i=0; i<_this.slides.length; i++){
bind(_this.slides[i], 'click', slideClick);
}}
if(params.onSlideTouch){
for (i=0; i<_this.slides.length; i++){
bind(_this.slides[i], _this.touchEvents.touchStart, slideTouch);
}}
}
function removeSlideEvents(){
var unbind=_this.h.removeEventListener,
i;
if(params.onSlideClick){
for (i=0; i<_this.slides.length; i++){
unbind(_this.slides[i], 'click', slideClick);
}}
if(params.onSlideTouch){
for (i=0; i<_this.slides.length; i++){
unbind(_this.slides[i], _this.touchEvents.touchStart, slideTouch);
}}
if(params.releaseFormElements){
var formElements=$$('input, textarea, select', _this.container);
for (i=0; i<formElements.length; i++){
unbind(formElements[i], _this.touchEvents.touchStart, releaseForms, true);
}}
if(params.preventLinks){
var links=$$('a', _this.container);
for (i=0; i<links.length; i++){
unbind(links[i], 'click', preventClick);
}}
}
function handleKeyboardKeys (e){
var kc=e.keyCode||e.charCode;
if(kc==37||kc==39||kc==38||kc==40){
var inView=false;
var swiperOffset=_this.h.getOffset(_this.container);
var scrollLeft=_this.h.windowScroll().left;
var scrollTop=_this.h.windowScroll().top;
var windowWidth=_this.h.windowWidth();
var windowHeight=_this.h.windowHeight();
var swiperCoord=[
[swiperOffset.left, swiperOffset.top],
[swiperOffset.left + _this.width, swiperOffset.top],
[swiperOffset.left, swiperOffset.top + _this.height],
[swiperOffset.left + _this.width, swiperOffset.top + _this.height]
];
for (var i=0; i<swiperCoord.length; i++){
var point=swiperCoord[i];
if(point[0]>=scrollLeft&&point[0]<=scrollLeft+windowWidth &&
point[1]>=scrollTop&&point[1]<=scrollTop+windowHeight
){
inView=true;
}}
if(!inView) return;
}
if(isH){
if(kc==37||kc==39){
if(e.preventDefault) e.preventDefault();
else e.returnValue=false;
}
if(kc==39) _this.swipeNext();
if(kc==37) _this.swipePrev();
}else{
if(kc==38||kc==40){
if(e.preventDefault) e.preventDefault();
else e.returnValue=false;
}
if(kc==40) _this.swipeNext();
if(kc==38) _this.swipePrev();
}}
var allowScrollChange=true;
var lastScrollTime=(new Date()).getTime();
function handleMousewheel (e){
var we=_this._wheelEvent;
var delta=0;
if(e.detail) delta=-e.detail;
else if(we=='mousewheel') delta=e.wheelDelta;
else if(we=='DOMMouseScroll') delta=-e.detail;
else if(we=='wheel'){
delta=Math.abs(e.deltaX)>Math.abs(e.deltaY) ? - e.deltaX:- e.deltaY;
}
if(!params.freeMode){
if(delta<0) _this.swipeNext();
else _this.swipePrev();
}else{
var position=_this.getWrapperTranslate() + delta;
if(position > 0) position=0;
if(position < -maxWrapperPosition()) position=-maxWrapperPosition();
_this.setWrapperTransition(0);
_this.setWrapperTranslate(position);
_this.updateActiveSlide(position);
}
if(params.autoplay) _this.stopAutoplay();
if(e.preventDefault) e.preventDefault();
else e.returnValue=false;
return false;
}
if(params.grabCursor){
var containerStyle=_this.container.style;
containerStyle.cursor='move';
containerStyle.cursor='grab';
containerStyle.cursor='-moz-grab';
containerStyle.cursor='-webkit-grab';
}
_this.allowSlideClick=true;
function slideClick(event){
if(_this.allowSlideClick){
setClickedSlide(event);
this.fireCallback(params.onSlideClick, _this, event);
}}
function slideTouch(event){
setClickedSlide(event);
_this.fireCallback(params.onSlideTouch, _this, event);
}
function setClickedSlide(event){
if(!event.currentTarget){
var element=event.srcElement;
do {
if(element.className.indexOf(params.slideClass) > -1){
break;
}}
while (element=element.parentNode);
_this.clickedSlide=element;
}else{
_this.clickedSlide=event.currentTarget;
}
_this.clickedSlideIndex=_this.slides.indexOf(_this.clickedSlide);
_this.clickedSlideLoopIndex=_this.clickedSlideIndex - (_this.loopedSlides||0);
}
_this.allowLinks=true;
function preventClick(e){
if(!_this.allowLinks){
if(e.preventDefault) e.preventDefault();
else e.returnValue=false;
return false;
}}
function releaseForms(e){
if(e.stopPropagation) e.stopPropagation();
else e.returnValue=false;
return false;
}
var isTouchEvent=false;
var allowThresholdMove;
var allowMomentumBounce=true;
function onTouchStart(event){
if(jQuery(event.target).parents('.wpb_gallery').length > 0&&jQuery(event.target).parents('.swiper-container').attr('data-desktop-swipe')=='false'&&!Modernizr.touch){
return false;
}
if(jQuery(event.target).parents('.swiper-container').find('.swiper-slide').length==1){
return false;
}
if(jQuery(event.target).parents('.swiper-container').find('.swiper-slide.duplicate-transition').length > 0) return false;
if(params.preventLinks) _this.allowLinks=true;
if(_this.isTouched||params.onlyExternal){
return false;
}
if(params.noSwiping&&(event.target||event.srcElement)&&noSwipingSlide(event.target||event.srcElement)) return false;
allowMomentumBounce=false;
_this.isTouched=true;
isTouchEvent=event.type=='touchstart';
if(!isTouchEvent||event.targetTouches.length==1){
_this.callPlugins('onTouchStartBegin');
if(!isTouchEvent){
if(event.preventDefault) event.preventDefault();
else event.returnValue=false;
}
var pageX=isTouchEvent ? event.targetTouches[0].pageX:(event.pageX||event.clientX);
var pageY=isTouchEvent ? event.targetTouches[0].pageY:(event.pageY||event.clientY);
_this.touches.startX=_this.touches.currentX=pageX;
_this.touches.startY=_this.touches.currentY=pageY;
_this.touches.start=_this.touches.current=isH ? pageX:pageY;
_this.setWrapperTransition(0);
_this.positions.start=_this.positions.current=_this.getWrapperTranslate();
_this.setWrapperTranslate(_this.positions.start);
_this.times.start=(new Date()).getTime();
isScrolling=undefined;
if(params.moveStartThreshold>0) allowThresholdMove=false;
if(params.onTouchStart) _this.fireCallback(params.onTouchStart, _this);
_this.callPlugins('onTouchStartEnd');
}}
var velocityPrevPosition, velocityPrevTime;
function onTouchMove(event){
if(!_this.isTouched||params.onlyExternal) return;
if(isTouchEvent&&event.type=='mousemove') return;
var pageX=isTouchEvent ? event.targetTouches[0].pageX:(event.pageX||event.clientX);
var pageY=isTouchEvent ? event.targetTouches[0].pageY:(event.pageY||event.clientY);
if(typeof isScrolling==='undefined'&&isH){
isScrolling = !!(isScrolling||Math.abs(pageY - _this.touches.startY) > Math.abs(pageX - _this.touches.startX) );
}
if(typeof isScrolling==='undefined'&&!isH){
isScrolling = !!(isScrolling||Math.abs(pageY - _this.touches.startY) < Math.abs(pageX - _this.touches.startX) );
}
if(isScrolling){
_this.isTouched=false;
return;
}
if(event.assignedToSwiper){
_this.isTouched=false;
return;
}
event.assignedToSwiper=true;
if(params.preventLinks){
_this.allowLinks=false;
}
if(params.onSlideClick){
_this.allowSlideClick=false;
}
if(params.autoplay){
_this.stopAutoplay();
}
if(!isTouchEvent||event.touches.length==1){
if(!_this.isMoved){
_this.callPlugins('onTouchMoveStart');
if(params.loop){
_this.fixLoop();
_this.positions.start=_this.getWrapperTranslate();
}
if(params.onTouchMoveStart) _this.fireCallback(params.onTouchMoveStart, _this);
}
_this.isMoved=true;
if(event.preventDefault) event.preventDefault();
else event.returnValue=false;
_this.touches.current=isH ? pageX:pageY ;
_this.positions.current=(_this.touches.current - _this.touches.start) * params.touchRatio + _this.positions.start;
if(_this.positions.current > 0&&params.onResistanceBefore){
_this.fireCallback(params.onResistanceBefore, _this, _this.positions.current);
}
if(_this.positions.current < -maxWrapperPosition()&&params.onResistanceAfter){
_this.fireCallback(params.onResistanceAfter, _this, Math.abs(_this.positions.current + maxWrapperPosition()));
}
if(params.resistance&&params.resistance!='100%'){
if(_this.positions.current > 0){
var resistance=1 - _this.positions.current/containerSize/2;
if(resistance < 0.5)
_this.positions.current=(containerSize/2);
else
_this.positions.current=_this.positions.current * resistance;
}
if(_this.positions.current < -maxWrapperPosition()){
var diff=(_this.touches.current - _this.touches.start)*params.touchRatio + (maxWrapperPosition()+_this.positions.start);
var resistance=(containerSize+diff)/(containerSize);
var newPos=_this.positions.current-diff*(1-resistance)/2;
var stopPos=-maxWrapperPosition() - containerSize/2;
if(newPos < stopPos||resistance<=0)
_this.positions.current=stopPos;
else
_this.positions.current=newPos;
}}
if(params.resistance&&params.resistance=='100%'){
if(_this.positions.current > 0&&!(params.freeMode&&!params.freeModeFluid)){
_this.positions.current=0;
}
if((_this.positions.current) < -maxWrapperPosition()&&!(params.freeMode&&!params.freeModeFluid)){
_this.positions.current=-maxWrapperPosition();
}}
if(!params.followFinger) return;
if(!params.moveStartThreshold){
_this.setWrapperTranslate(_this.positions.current);
}else{
if(Math.abs(_this.touches.current - _this.touches.start)>params.moveStartThreshold||allowThresholdMove){
allowThresholdMove=true;
_this.setWrapperTranslate(_this.positions.current);
}else{
_this.positions.current=_this.positions.start;
}}
if(params.freeMode||params.watchActiveIndex){
_this.updateActiveSlide(_this.positions.current);
}
if(params.grabCursor){
_this.container.style.cursor='move';
_this.container.style.cursor='grabbing';
_this.container.style.cursor='-moz-grabbing';
_this.container.style.cursor='-webkit-grabbing';
}
if(!velocityPrevPosition) velocityPrevPosition=_this.touches.current;
if(!velocityPrevTime) velocityPrevTime=(new Date).getTime();
_this.velocity=(_this.touches.current - velocityPrevPosition)/((new Date).getTime() - velocityPrevTime)/2;
if(Math.abs(_this.touches.current - velocityPrevPosition)<2) _this.velocity=0;
velocityPrevPosition=_this.touches.current;
velocityPrevTime=(new Date).getTime();
_this.callPlugins('onTouchMoveEnd');
if(params.onTouchMove) _this.fireCallback(params.onTouchMove, _this);
return false;
}}
function onTouchEnd(event){
if(isScrolling){
_this.swipeReset();
}
if(params.onlyExternal||!_this.isTouched){ return; }
_this.isTouched=false;
if(params.grabCursor){
_this.container.style.cursor='move';
_this.container.style.cursor='grab';
_this.container.style.cursor='-moz-grab';
_this.container.style.cursor='-webkit-grab';
}
if(!_this.positions.current&&_this.positions.current!==0){
_this.positions.current=_this.positions.start;
}
if(params.followFinger){
_this.setWrapperTranslate(_this.positions.current);
}
_this.times.end=(new Date()).getTime();
_this.touches.diff=_this.touches.current - _this.touches.start;
_this.touches.abs=Math.abs(_this.touches.diff);
_this.positions.diff=_this.positions.current - _this.positions.start;
_this.positions.abs=Math.abs(_this.positions.diff);
var diff=_this.positions.diff;
var diffAbs=_this.positions.abs;
var timeDiff=_this.times.end - _this.times.start;
if(diffAbs < 5&&(timeDiff) < 300&&_this.allowLinks==false){
if(!params.freeMode&&diffAbs!=0){
_this.swipeReset();
}
if(params.preventLinks){
_this.allowLinks=true;
}
if(params.onSlideClick){
_this.allowSlideClick=true;
}}
setTimeout(function (){
if(params.preventLinks){
_this.allowLinks=true;
}
if(params.onSlideClick){
_this.allowSlideClick=true;
}}, 100);
var maxPosition=maxWrapperPosition();
if(!_this.isMoved&&params.freeMode){
_this.isMoved=false;
if(params.onTouchEnd) _this.fireCallback(params.onTouchEnd, _this);
_this.callPlugins('onTouchEnd');
return;
}
if(!_this.isMoved||_this.positions.current > 0||_this.positions.current < -maxPosition){
_this.swipeReset();
if(params.onTouchEnd) _this.fireCallback(params.onTouchEnd, _this);
_this.callPlugins('onTouchEnd');
return;
}
_this.isMoved=false;
if(params.freeMode){
if(params.freeModeFluid){
var momentumDuration=1000*params.momentumRatio;
var momentumDistance=_this.velocity*momentumDuration;
var newPosition=_this.positions.current + momentumDistance;
var doBounce=false;
var afterBouncePosition;
var bounceAmount=Math.abs(_this.velocity)*20*params.momentumBounceRatio;
if(newPosition < -maxPosition){
if(params.momentumBounce&&_this.support.transitions){
if(newPosition + maxPosition < -bounceAmount) newPosition=-maxPosition-bounceAmount;
afterBouncePosition=-maxPosition;
doBounce=true;
allowMomentumBounce=true;
}
else newPosition=-maxPosition;
}
if(newPosition > 0){
if(params.momentumBounce&&_this.support.transitions){
if(newPosition>bounceAmount) newPosition=bounceAmount;
afterBouncePosition=0;
doBounce=true;
allowMomentumBounce=true;
}
else newPosition=0;
}
if(_this.velocity!=0) momentumDuration=Math.abs((newPosition - _this.positions.current)/_this.velocity);
_this.setWrapperTranslate(newPosition);
_this.setWrapperTransition(momentumDuration);
if(params.momentumBounce&&doBounce){
_this.wrapperTransitionEnd(function (){
if(!allowMomentumBounce) return;
if(params.onMomentumBounce) params.onMomentumBounce(_this);
_this.setWrapperTranslate(afterBouncePosition);
_this.setWrapperTransition(300);
});
}
_this.updateActiveSlide(newPosition);
}
if(!params.freeModeFluid||timeDiff >=300) _this.updateActiveSlide(_this.positions.current);
if(params.onTouchEnd) params.onTouchEnd(_this);
_this.callPlugins('onTouchEnd');
return;
}
direction=diff < 0 ? "toNext":"toPrev";
if(direction=="toNext"&&(timeDiff <=300) ){
if(diffAbs < 30||!params.shortSwipes) _this.swipeReset();
else _this.swipeNext(true);
}
if(direction=="toPrev"&&(timeDiff <=300) ){
if(diffAbs < 30||!params.shortSwipes) _this.swipeReset();
else _this.swipePrev(true);
}
var targetSlideSize=0;
if(params.slidesPerView=='auto'){
var currentPosition=Math.abs(_this.getWrapperTranslate());
var slidesOffset=0;
var _slideSize;
for (var i=0; i<_this.slides.length; i++){
_slideSize=isH ? _this.slides[i].getWidth(true):_this.slides[i].getHeight(true);
slidesOffset+=_slideSize;
if(slidesOffset>currentPosition){
targetSlideSize=_slideSize;
break;
}}
if(targetSlideSize>containerSize) targetSlideSize=containerSize;
}else{
targetSlideSize=slideSize * params.slidesPerView;
}
if(direction=="toNext"&&(timeDiff > 300) ){
if(diffAbs >=targetSlideSize*0.5){
_this.swipeNext(true);
}else{
_this.swipeReset();
}}
if(direction=="toPrev"&&(timeDiff > 300) ){
if(diffAbs >=targetSlideSize*0.5){
_this.swipePrev(true);
}else{
_this.swipeReset();
}}
if(params.onTouchEnd) params.onTouchEnd(_this);
_this.callPlugins('onTouchEnd');
}
function noSwipingSlide(el){
var noSwiping=false;
do{
if(el.className.indexOf(params.noSwipingClass)>-1){
noSwiping=true;
}
el=el.parentElement;
} while(!noSwiping&&el.parentElement&&el.className.indexOf(params.wrapperClass)==-1);
if(!noSwiping&&el.className.indexOf(params.wrapperClass)>-1&&el.className.indexOf(params.noSwipingClass)>-1)
noSwiping=true;
return noSwiping;
}
_this.swipeNext=function(internal){
if(!internal&&params.loop) _this.fixLoop();
_this.callPlugins('onSwipeNext');
var currentPosition=_this.getWrapperTranslate();
var newPosition=currentPosition;
if(params.slidesPerView=='auto'){
for (var i=0; i<_this.snapGrid.length; i++){
if(-currentPosition >=_this.snapGrid[i]&&-currentPosition<_this.snapGrid[i+1]){
newPosition=-_this.snapGrid[i+1];
break;
}}
}else{
var groupSize=slideSize * params.slidesPerGroup;
newPosition=-(Math.floor(Math.abs(currentPosition)/Math.floor(groupSize))*groupSize + groupSize);
}
if(newPosition < - maxWrapperPosition()){
newPosition=- maxWrapperPosition();
}
if(newPosition==currentPosition){ return false; }
swipeToPosition(newPosition, 'next');
return true;
};
_this.swipePrev=function(internal){
if(!internal&&params.loop) _this.fixLoop();
if(!internal&&params.autoplay) _this.stopAutoplay();
_this.callPlugins('onSwipePrev');
var currentPosition=Math.ceil(_this.getWrapperTranslate());
var newPosition;
if(params.slidesPerView=='auto'){
newPosition=0;
for (var i=1; i<_this.snapGrid.length; i++){
if(-currentPosition==_this.snapGrid[i]){
newPosition=-_this.snapGrid[i-1];
break;
}
if(-currentPosition > _this.snapGrid[i]&&-currentPosition<_this.snapGrid[i+1]){
newPosition=-_this.snapGrid[i];
break;
}}
}else{
var groupSize=slideSize * params.slidesPerGroup;
newPosition=-(Math.ceil(-currentPosition/groupSize)-1)*groupSize;
}
if(newPosition > 0) newPosition=0;
if(newPosition==currentPosition){
return false;
}
swipeToPosition(newPosition, 'prev');
return true;
};
_this.swipeReset=function(){
_this.callPlugins('onSwipeReset');
var currentPosition=_this.getWrapperTranslate();
var groupSize=slideSize * params.slidesPerGroup;
var newPosition;
var maxPosition=-maxWrapperPosition();
if(params.slidesPerView=='auto'){
newPosition=0;
for (var i=0; i<_this.snapGrid.length; i++){
if(-currentPosition===_this.snapGrid[i]) return;
if(-currentPosition >=_this.snapGrid[i]&&-currentPosition<_this.snapGrid[i+1]){
if(_this.positions.diff>0) newPosition=-_this.snapGrid[i+1];
else newPosition=-_this.snapGrid[i];
break;
}}
if(-currentPosition >=_this.snapGrid[_this.snapGrid.length-1]) newPosition=-_this.snapGrid[_this.snapGrid.length-1];
if(currentPosition <=-maxWrapperPosition()) newPosition=-maxWrapperPosition();
}else{
newPosition=currentPosition<0 ? Math.round(currentPosition/groupSize)*groupSize:0;
}
if(params.scrollContainer){
newPosition=currentPosition<0 ? currentPosition:0;
}
if(newPosition < -maxWrapperPosition()){
newPosition=-maxWrapperPosition();
}
if(params.scrollContainer&&(containerSize>slideSize)){
newPosition=0;
}
if(newPosition==currentPosition){ return false; }
swipeToPosition(newPosition, 'reset');
return true;
};
_this.swipeTo=function(index, speed, runCallbacks){
index=parseInt(index, 10);
_this.callPlugins('onSwipeTo', {index:index, speed:speed});
if(params.loop) index=index + _this.loopedSlides;
var currentPosition=_this.getWrapperTranslate();
if(index > (_this.slides.length-1)||index < 0){
return;
}
var newPosition;
if(params.slidesPerView=='auto'){
newPosition=-_this.slidesGrid[ index ];
}else{
newPosition=-index*slideSize;
}
if(newPosition < - maxWrapperPosition()){
newPosition=- maxWrapperPosition();
}
if(newPosition==currentPosition){
return false;
}
runCallbacks=runCallbacks===false ? false:true;
swipeToPosition(newPosition, 'to', {index:index, speed:speed, runCallbacks:runCallbacks});
return true;
};
function swipeToPosition(newPosition, action, toOptions){
var speed=(action=='to'&&toOptions.speed >=0) ? toOptions.speed:params.speed;
var timeOld=+ new Date();
if(_this.support.transitions||!params.DOMAnimation){
_this.setWrapperTranslate(newPosition);
_this.setWrapperTransition(speed);
}else{
var currentPosition=_this.getWrapperTranslate();
var animationStep=Math.ceil((newPosition - currentPosition)/speed*(1000/60));
var direction=currentPosition > newPosition ? 'toNext':'toPrev';
var condition=direction=='toNext' ? currentPosition > newPosition:currentPosition < newPosition;
if(_this._DOMAnimating) return;
anim();
}
function anim(){
var timeNew=+ new Date();
var time=timeNew - timeOld;
currentPosition +=animationStep * time / (1000/60);
condition=direction=='toNext' ? currentPosition > newPosition:currentPosition < newPosition;
if(condition){
_this.setWrapperTranslate(Math.round(currentPosition));
_this._DOMAnimating=true;
window.setTimeout(function(){
anim();
}, 1000 / 60);
}else{
if(params.onSlideChangeEnd){
_this.fireCallback(params.onSlideChangeEnd, _this);
}
_this.setWrapperTranslate(newPosition);
_this._DOMAnimating=false;
}}
_this.updateActiveSlide(newPosition);
if(params.onSlideNext&&action=='next'){
_this.fireCallback(params.onSlideNext, _this, newPosition);
}
if(params.onSlidePrev&&action=='prev'){
_this.fireCallback(params.onSlidePrev, _this, newPosition);
}
if(params.onSlideReset&&action=='reset'){
_this.fireCallback(params.onSlideReset, _this, newPosition);
}
if(action=='next'||action=='prev'||(action=='to'&&toOptions.runCallbacks==true))
slideChangeCallbacks(action);
}
_this._queueStartCallbacks=false;
_this._queueEndCallbacks=false;
function slideChangeCallbacks(direction){
_this.callPlugins('onSlideChangeStart');
if(params.onSlideChangeStart){
if(params.queueStartCallbacks&&_this.support.transitions){
if(_this._queueStartCallbacks){
return;
}
_this._queueStartCallbacks=true;
_this.fireCallback(params.onSlideChangeStart, _this, direction);
_this.wrapperTransitionEnd(function(){
_this._queueStartCallbacks=false;
});
}
else _this.fireCallback(params.onSlideChangeStart, _this, direction);
}
if(params.onSlideChangeEnd){
if(_this.support.transitions){
if(params.queueEndCallbacks){
if(_this._queueEndCallbacks){
return;
}
_this._queueEndCallbacks=true;
_this.wrapperTransitionEnd(function(swiper){
setTimeout(function(){ if(params.loop) _this.fixLoop(); },50);
_this.fireCallback(params.onSlideChangeEnd, swiper, direction);
});
}
else _this.wrapperTransitionEnd(function(swiper){
_this.fireCallback(params.onSlideChangeEnd, swiper, direction);
});
}else{
if(!params.DOMAnimation){
setTimeout(function(){
_this.fireCallback(params.onSlideChangeStart, _this, direction);
},10);
}}
}}
_this.updateActiveSlide=function(position){
if(!_this.initialized) return;
if(_this.slides.length==0) return;
_this.previousIndex=_this.activeIndex;
if(typeof position=='undefined') position=_this.getWrapperTranslate();
if(position>0) position=0;
if(params.slidesPerView=='auto'){
var slidesOffset=0;
_this.activeIndex=_this.slidesGrid.indexOf(-position);
if(_this.activeIndex<0){
for (var i=0; i<_this.slidesGrid.length-1; i++){
if(-position>_this.slidesGrid[i]&&-position<_this.slidesGrid[i+1]){
break;
}}
var leftDistance=Math.abs(_this.slidesGrid[i] + position);
var rightDistance=Math.abs(_this.slidesGrid[i+1] + position);
if(leftDistance<=rightDistance) _this.activeIndex=i;
else _this.activeIndex=i+1;
}}else{
_this.activeIndex=Math[params.visibilityFullFit ? 'ceil':'round'](-position/slideSize);
}
if(_this.activeIndex==_this.slides.length) _this.activeIndex=_this.slides.length - 1;
if(_this.activeIndex < 0) _this.activeIndex=0;
if(!_this.slides[_this.activeIndex]) return;
_this.calcVisibleSlides(position);
var activeClassRegexp=new RegExp("\\s*" + params.slideActiveClass);
var inViewClassRegexp=new RegExp("\\s*" + params.slideVisibleClass);
for (var i=0; i < _this.slides.length; i++){
_this.slides[ i ].className=_this.slides[ i ].className.replace(activeClassRegexp, '').replace(inViewClassRegexp, '');
if(_this.visibleSlides.indexOf(_this.slides[ i ])>=0){
_this.slides[ i ].className +=' ' + params.slideVisibleClass;
}}
_this.slides[ _this.activeIndex ].className +=' ' + params.slideActiveClass;
if(params.loop){
var ls=_this.loopedSlides;
_this.activeLoopIndex=_this.activeIndex - ls;
if(_this.activeLoopIndex >=_this.slides.length - ls*2){
_this.activeLoopIndex=_this.slides.length - ls*2 - _this.activeLoopIndex;
}
if(_this.activeLoopIndex<0){
_this.activeLoopIndex=_this.slides.length - ls*2 + _this.activeLoopIndex;
}}else{
_this.activeLoopIndex=_this.activeIndex;
}
if(params.pagination){
_this.updatePagination(position);
}};
_this.createPagination=function (firstInit){
if(params.paginationClickable&&_this.paginationButtons){
removePaginationEvents();
}
var paginationHTML="";
var numOfSlides=_this.slides.length;
var numOfButtons=numOfSlides;
if(params.loop){ numOfButtons -=_this.loopedSlides*2; }
for (var i=0; i < numOfButtons; i++){
paginationHTML +='<'+params.paginationElement+' class="'+params.paginationElementClass+'"></'+params.paginationElement+'>';
}
_this.paginationContainer=params.pagination.nodeType ? params.pagination:$$(params.pagination)[0];
_this.paginationContainer.innerHTML=paginationHTML;
_this.paginationButtons=$$('.'+params.paginationElementClass, _this.paginationContainer);
if(!firstInit){
_this.updatePagination();
}
_this.callPlugins('onCreatePagination');
if(params.paginationClickable){
addPaginationEvents();
}};
function removePaginationEvents(){
var pagers=_this.paginationButtons;
for (var i=0; i<pagers.length; i++){
_this.h.removeEventListener(pagers[i], 'click', paginationClick);
}}
function addPaginationEvents(){
var pagers=_this.paginationButtons;
for (var i=0; i<pagers.length; i++){
_this.h.addEventListener(pagers[i], 'click', paginationClick);
}}
function paginationClick(e){
var index;
var target=e.target||e.srcElement;
var pagers=_this.paginationButtons;
for (var i=0; i<pagers.length; i++){
if(target===pagers[i]) index=i;
}
_this.swipeTo(index);
}
_this.updatePagination=function(position){
if(!params.pagination) return;
if(_this.slides.length<1) return;
var activePagers=$$('.'+params.paginationActiveClass, _this.paginationContainer);
if(!activePagers) return;
var pagers=_this.paginationButtons;
if(pagers.length==0) return;
for (var i=0; i < pagers.length; i++){
pagers[i].className=params.paginationElementClass;
}
var indexOffset=params.loop ? _this.loopedSlides:0;
if(params.paginationAsRange){
if(!_this.visibleSlides) _this.calcVisibleSlides(position);
var visibleIndexes=[];
for (var i=0; i < _this.visibleSlides.length; i++){
var visIndex=_this.slides.indexOf(_this.visibleSlides[i]) - indexOffset
if(params.loop&&visIndex<0){
visIndex=_this.slides.length - _this.loopedSlides*2 + visIndex;
}
if(params.loop&&visIndex>=_this.slides.length-_this.loopedSlides*2){
visIndex=_this.slides.length - _this.loopedSlides*2 - visIndex;
visIndex=Math.abs(visIndex);
}
visibleIndexes.push(visIndex);
}
for (i=0; i<visibleIndexes.length; i++){
if(pagers[ visibleIndexes[i] ]) pagers[ visibleIndexes[i] ].className +=' ' + params.paginationVisibleClass;
}
if(params.loop){
pagers[ _this.activeLoopIndex ].className +=' ' + params.paginationActiveClass;
}else{
pagers[ _this.activeIndex ].className +=' ' + params.paginationActiveClass;
}}else{
if(params.loop){
pagers[ _this.activeLoopIndex ].className+=' '+params.paginationActiveClass+' '+params.paginationVisibleClass;
}else{
pagers[ _this.activeIndex ].className+=' '+params.paginationActiveClass+' '+params.paginationVisibleClass;
}}
};
_this.calcVisibleSlides=function(position){
var visibleSlides=[];
var _slideLeft=0, _slideSize=0, _slideRight=0;
if(isH&&_this.wrapperLeft>0) position=position+_this.wrapperLeft;
if(!isH&&_this.wrapperTop>0) position=position+_this.wrapperTop;
for (var i=0; i<_this.slides.length; i++){
_slideLeft +=_slideSize;
if(params.slidesPerView=='auto')
_slideSize=isH ? _this.h.getWidth(_this.slides[i],true):_this.h.getHeight(_this.slides[i],true);
else _slideSize=slideSize;
_slideRight=_slideLeft + _slideSize;
var isVisibile=false;
if(params.visibilityFullFit){
if(_slideLeft >=-position&&_slideRight <=-position+containerSize) isVisibile=true;
if(_slideLeft <=-position&&_slideRight >=-position+containerSize) isVisibile=true;
}else{
if(_slideRight > -position&&_slideRight <=((-position+containerSize))) isVisibile=true;
if(_slideLeft >=-position&&_slideLeft < ((-position+containerSize))) isVisibile=true;
if(_slideLeft < -position&&_slideRight > ((-position+containerSize))) isVisibile=true;
}
if(isVisibile) visibleSlides.push(_this.slides[i]);
}
if(visibleSlides.length==0) visibleSlides=[ _this.slides[ _this.activeIndex ] ];
_this.visibleSlides=visibleSlides;
};
_this.autoPlayIntervalId=undefined;
_this.startAutoplay=function (){
if(typeof _this.autoPlayIntervalId!=='undefined') return false;
if(params.autoplay&&!params.loop){
_this.autoPlayIntervalId=setInterval(function(){
if(!_this.swipeNext(true)) _this.swipeTo(0);
}, params.autoplay);
}
if(params.autoplay&&params.loop){
_this.autoPlayIntervalId=setInterval(function(){
_this.swipeNext();
}, params.autoplay);
}
_this.callPlugins('onAutoplayStart');
};
_this.stopAutoplay=function (){
if(_this.autoPlayIntervalId) clearInterval(_this.autoPlayIntervalId);
_this.autoPlayIntervalId=undefined;
_this.callPlugins('onAutoplayStop');
};
_this.loopCreated=false;
_this.removeLoopedSlides=function(){
if(_this.loopCreated){
for (var i=0; i<_this.slides.length; i++){
if(_this.slides[i].getData('looped')===true) _this.wrapper.removeChild(_this.slides[i]);
}}
};
_this.createLoop=function(){
if(_this.slides.length==0) return;
_this.loopedSlides=params.slidesPerView + params.loopAdditionalSlides;
if(_this.loopedSlides > _this.slides.length){
_this.loopedSlides=_this.slides.length;
}
var slideFirstHTML='',
slideLastHTML='',
i;
for (i=0; i<_this.loopedSlides; i++){
slideFirstHTML +=_this.slides[i].outerHTML;
}
for (i=_this.slides.length-_this.loopedSlides; i<_this.slides.length; i++){
slideLastHTML +=_this.slides[i].outerHTML;
}
wrapper.innerHTML=slideLastHTML + wrapper.innerHTML + slideFirstHTML;
_this.loopCreated=true;
_this.calcSlides();
for (i=0; i<_this.slides.length; i++){
if(i<_this.loopedSlides||i>=_this.slides.length-_this.loopedSlides) _this.slides[i].setData('looped', true);
}
_this.callPlugins('onCreateLoop');
};
_this.fixLoop=function(){
if(_this.params.loop==true){
var newIndex;
if(_this.activeIndex < _this.loopedSlides){
newIndex=_this.slides.length - _this.loopedSlides*3 + _this.activeIndex;
_this.swipeTo(newIndex, 0, false);
}
else if(_this.activeIndex > _this.slides.length - params.slidesPerView*2){
newIndex=-_this.slides.length + _this.activeIndex + _this.loopedSlides
_this.swipeTo(newIndex, 0, false);
}}
};
_this.loadSlides=function(){
var slidesHTML='';
_this.activeLoaderIndex=0;
var slides=params.loader.slides;
var slidesToLoad=params.loader.loadAllSlides ? slides.length:params.slidesPerView*(1+params.loader.surroundGroups);
for (var i=0; i< slidesToLoad; i++){
if(params.loader.slidesHTMLType=='outer') slidesHTML+=slides[i];
else {
slidesHTML+='<'+params.slideElement+' class="'+params.slideClass+'" data-swiperindex="'+i+'">'+slides[i]+'</'+params.slideElement+'>';
}}
_this.wrapper.innerHTML=slidesHTML;
_this.calcSlides(true);
if(!params.loader.loadAllSlides){
_this.wrapperTransitionEnd(_this.reloadSlides, true);
}};
_this.reloadSlides=function(){
var slides=params.loader.slides;
var newActiveIndex=parseInt(_this.activeSlide().data('swiperindex'),10);
if(newActiveIndex<0||newActiveIndex>slides.length-1){
return;
}
_this.activeLoaderIndex=newActiveIndex;
var firstIndex=Math.max(0, newActiveIndex - params.slidesPerView*params.loader.surroundGroups);
var lastIndex=Math.min(newActiveIndex+params.slidesPerView*(1+params.loader.surroundGroups)-1, slides.length-1);
if(newActiveIndex>0){
var newTransform=-slideSize*(newActiveIndex-firstIndex);
_this.setWrapperTranslate(newTransform);
_this.setWrapperTransition(0);
}
if(params.loader.logic==='reload'){
_this.wrapper.innerHTML='';
var slidesHTML='';
for (var i=firstIndex; i<=lastIndex; i++){
slidesHTML +=params.loader.slidesHTMLType=='outer' ? slides[i]:'<'+params.slideElement+' class="'+params.slideClass+'" data-swiperindex="'+i+'">'+slides[i]+'</'+params.slideElement+'>';
}
_this.wrapper.innerHTML=slidesHTML;
}else{
var minExistIndex=1000;
var maxExistIndex=0;
for (var i=0; i<_this.slides.length; i++){
var index=_this.slides[i].data('swiperindex');
if(index<firstIndex||index>lastIndex){
_this.wrapper.removeChild(_this.slides[i]);
}else{
minExistIndex=Math.min(index, minExistIndex);
maxExistIndex=Math.max(index, maxExistIndex);
}}
for (var i=firstIndex; i<=lastIndex; i++){
if(i<minExistIndex){
var newSlide=document.createElement(params.slideElement);
newSlide.className=params.slideClass;
newSlide.setAttribute('data-swiperindex',i);
newSlide.innerHTML=slides[i];
_this.wrapper.insertBefore(newSlide, _this.wrapper.firstChild);
}
if(i>maxExistIndex){
var newSlide=document.createElement(params.slideElement);
newSlide.className=params.slideClass;
newSlide.setAttribute('data-swiperindex',i);
newSlide.innerHTML=slides[i];
_this.wrapper.appendChild(newSlide);
}}
}
_this.reInit(true);
};
function makeSwiper(){
_this.calcSlides();
if(params.loader.slides.length>0&&_this.slides.length==0){
_this.loadSlides();
}
if(params.loop){
_this.createLoop();
}
_this.init();
initEvents();
if(params.pagination&&params.createPagination){
_this.createPagination(true);
}
if(params.loop||params.initialSlide>0){
_this.swipeTo(params.initialSlide, 0, false);
}else{
_this.updateActiveSlide(0);
}
if(params.autoplay){
_this.startAutoplay();
}}
makeSwiper();
};
NectarSwiper.prototype={
plugins:{},
wrapperTransitionEnd:function(callback, permanent){
var a=this,
el=a.wrapper,
events=['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'],
i;
function fireCallBack(){
callback(a);
if(a.params.queueEndCallbacks) a._queueEndCallbacks=false;
if(!permanent){
for (i=0; i<events.length; i++){
a.h.removeEventListener(el, events[i], fireCallBack);
}}
}
if(callback){
for (i=0; i<events.length; i++){
a.h.addEventListener(el, events[i], fireCallBack);
}}
},
getWrapperTranslate:function (axis){
var el=this.wrapper,
matrix, curTransform, curStyle, transformMatrix;
if(typeof axis=='undefined'){
axis=this.params.mode=='horizontal' ? 'x':'y';
}
curStyle=window.getComputedStyle(el, null);
if(window.WebKitCSSMatrix){
transformMatrix=new WebKitCSSMatrix(curStyle.webkitTransform);
}else{
transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,");
matrix=transformMatrix.toString().split(',');
}
if(this.support.transforms&&this.params.useCSS3Transforms){
if(axis=='x'){
if(window.WebKitCSSMatrix)
curTransform=transformMatrix.m41;
else if(matrix.length==16)
curTransform=parseFloat(matrix[12]);
else
curTransform=parseFloat(matrix[4]);
}
if(axis=='y'){
if(window.WebKitCSSMatrix)
curTransform=transformMatrix.m42;
else if(matrix.length==16)
curTransform=parseFloat(matrix[13]);
else
curTransform=parseFloat(matrix[5]);
}}else{
if(axis=='x') curTransform=parseFloat(el.style.left,10)||0;
if(axis=='y') curTransform=parseFloat(el.style.top,10)||0;
}
return curTransform||0;
},
setWrapperTranslate:function (x, y, z){
var es=this.wrapper.style,
coords={x: 0, y: 0, z: 0},
translate;
if(arguments.length==3){
coords.x=x;
coords.y=y;
coords.z=z;
}else{
if(typeof y=='undefined'){
y=this.params.mode=='horizontal' ? 'x':'y';
}
coords[y]=x;
}
if(this.support.transforms&&this.params.useCSS3Transforms){
translate=this.support.transforms3d ? 'translate3d(' + coords.x + 'px, ' + coords.y + 'px, ' + coords.z + 'px)':'translate(' + coords.x + 'px, ' + coords.y + 'px)';
es.webkitTransform=es.MsTransform=es.msTransform=es.MozTransform=es.OTransform=es.transform=translate;
}else{
es.left=coords.x + 'px';
es.top=coords.y + 'px';
}
this.callPlugins('onSetWrapperTransform', coords);
if(this.params.onSetWrapperTransform) this.fireCallback(this.params.onSetWrapperTransform, this, coords);
},
setWrapperTransition:function (duration){
var es=this.wrapper.style;
es.webkitTransitionDuration=es.MsTransitionDuration=es.msTransitionDuration=es.MozTransitionDuration=es.OTransitionDuration=es.transitionDuration=(duration / 1000) + 's';
this.callPlugins('onSetWrapperTransition', {duration: duration});
if(this.params.onSetWrapperTransition) this.fireCallback(this.params.onSetWrapperTransition, this, duration);
},
h:{
getWidth: function (el, outer){
var width=window.getComputedStyle(el, null).getPropertyValue('width');
var returnWidth=parseFloat(width);
if(isNaN(returnWidth)||width.indexOf('%')>0){
returnWidth=el.offsetWidth - parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-left')) - parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-right'));
}
if(outer) returnWidth +=parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-left')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-right'));
return returnWidth;
},
getHeight: function(el, outer){
if(outer) return el.offsetHeight;
var height=window.getComputedStyle(el, null).getPropertyValue('height');
var returnHeight=parseFloat(height);
if(isNaN(returnHeight)||height.indexOf('%')>0){
returnHeight=el.offsetHeight - parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-top')) - parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-bottom'));
}
if(outer) returnHeight +=parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue('padding-bottom'));
return returnHeight;
},
getOffset: function(el){
var box=el.getBoundingClientRect();
var body=document.body;
var clientTop=el.clientTop||body.clientTop||0;
var clientLeft=el.clientLeft||body.clientLeft||0;
var scrollTop=window.pageYOffset||el.scrollTop;
var scrollLeft=window.pageXOffset||el.scrollLeft;
if(document.documentElement&&!window.pageYOffset){
scrollTop=document.documentElement.scrollTop;
scrollLeft=document.documentElement.scrollLeft;
}
return {
top: box.top  + scrollTop  - clientTop,
left: box.left + scrollLeft - clientLeft
};},
windowWidth:function(){
if(window.innerWidth){ return window.innerWidth; }
else if(document.documentElement&&document.documentElement.clientWidth){ return document.documentElement.clientWidth; }},
windowHeight:function(){
if(window.innerHeight){ return window.innerHeight; }
else if(document.documentElement&&document.documentElement.clientHeight){ return document.documentElement.clientHeight; }},
windowScroll:function(){
var left=0, top=0;
if(typeof pageYOffset!='undefined'){
return {
left: window.pageXOffset,
top: window.pageYOffset
};}
else if(document.documentElement){
return {
left: document.documentElement.scrollLeft,
top: document.documentElement.scrollTop
};}},
addEventListener:function (el, event, listener, useCapture){
if(typeof useCapture=='undefined'){
useCapture=false;
}
if(el.addEventListener){
el.addEventListener(event, listener, useCapture);
}
else if(el.attachEvent){
el.attachEvent('on' + event, listener);
}},
removeEventListener:function (el, event, listener, useCapture){
if(typeof useCapture=='undefined'){
useCapture=false;
}
if(el.removeEventListener){
el.removeEventListener(event, listener, useCapture);
}
else if(el.detachEvent){
el.detachEvent('on' + event, listener);
}}
},
setTransform:function (el, transform){
var es=el.style;
es.webkitTransform=es.MsTransform=es.msTransform=es.MozTransform=es.OTransform=es.transform=transform;
},
setTranslate:function (el, translate){
var es=el.style;
var pos={
x:translate.x||0,
y:translate.y||0,
z:translate.z||0
};
var transformString=this.support.transforms3d ? 'translate3d('+(pos.x)+'px,'+(pos.y)+'px,'+(pos.z)+'px)':'translate('+(pos.x)+'px,'+(pos.y)+'px)';
es.webkitTransform=es.MsTransform=es.msTransform=es.MozTransform=es.OTransform=es.transform=transformString;
if(!this.support.transforms){
es.left=pos.x+'px';
es.top=pos.y+'px';
}},
setTransition:function (el, duration){
var es=el.style;
es.webkitTransitionDuration=es.MsTransitionDuration=es.msTransitionDuration=es.MozTransitionDuration=es.OTransitionDuration=es.transitionDuration=duration+'ms';
},
support: {
touch:(window.Modernizr&&Modernizr.touch===true)||(function(){
return !!(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch);
})(),
transforms3d:(window.Modernizr&&Modernizr.csstransforms3d===true)||(function(){
var div=document.createElement('div').style;
return ("webkitPerspective" in div||"MozPerspective" in div||"OPerspective" in div||"MsPerspective" in div||"perspective" in div);
})(),
transforms:(window.Modernizr&&Modernizr.csstransforms===true)||(function(){
var div=document.createElement('div').style;
return ('transform' in div||'WebkitTransform' in div||'MozTransform' in div||'msTransform' in div||'MsTransform' in div||'OTransform' in div);
})(),
transitions:(window.Modernizr&&Modernizr.csstransitions===true)||(function(){
var div=document.createElement('div').style;
return ('transition' in div||'WebkitTransition' in div||'MozTransition' in div||'msTransition' in div||'MsTransition' in div||'OTransition' in div);
})()
},
browser:{
ie8:(function(){
var rv=-1;
if(navigator.appName=='Microsoft Internet Explorer'){
var ua=navigator.userAgent;
var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1);
}
return rv!=-1&&rv < 9;
})(),
ie10:window.navigator.msPointerEnabled
}};
if(window.jQuery||window.Zepto){
(function($){
if(!jQuery().nectarswiper){
$.fn.nectarswiper=function(params){
var s=new NectarSwiper($(this)[0], params);
$(this).data('swiper',s);
return s;
};}})(window.jQuery||window.Zepto);
}
if(typeof(module)!=='undefined'){
module.exports=NectarSwiper;
}}
NectarSwiper.prototype.plugins.progress=function(a){function b(){for(var b=0;b<a.slides.length;b++){var c=a.slides[b];c.progressSlideSize=e?a.h.getWidth(c):a.h.getHeight(c),c.progressSlideOffset="offsetLeft"in c?e?c.offsetLeft:c.offsetTop:e?c.getOffset().left-a.h.getOffset(a.container).left:c.getOffset().top-a.h.getOffset(a.container).top}d=e?a.h.getWidth(a.wrapper)+a.wrapperLeft+a.wrapperRight-a.width:a.h.getHeight(a.wrapper)+a.wrapperTop+a.wrapperBottom-a.height}function c(b){var c,b=b||{x:0,y:0,z:0};c=1==a.params.centeredSlides?e?-b.x+a.width/2:-b.y+a.height/2:e?-b.x:-b.y;for(var f=0;f<a.slides.length;f++){var g=a.slides[f],h=1==a.params.centeredSlides?g.progressSlideSize/2:0,i=(c-g.progressSlideOffset-h)/g.progressSlideSize;g.progress=i}a.progress=e?-b.x/d:-b.y/d,a.params.onProgressChange&&a.fireCallback(a.params.onProgressChange,a)}var d,e="horizontal"==a.params.mode,f={onFirstInit:function(){b(),c({x:a.getWrapperTranslate("x"),y:a.getWrapperTranslate("y")})},onInit:function(){b()},onSetWrapperTransform:function(a){c(a)}};return f};
!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});
jQuery(document).ready(function($){
"use strict";
function nectarGetKeyByValue(arr, value){
for (let i=0; i < arr.length; i++){
if(arr[i]===value){
return i;
}}
return 0;
}
var doneVideoInit=false;
var $captionTrans=0;
var $loading_bg_storage=$('.first-section .nectar-slider-loading').css('background-image');
function transparentheaderLoadingCalcs(){
if($('body #header-outer[data-transparent-header="true"]').length > 0){
if($('#page-header-bg').length===0){
$('.nectar-slider-wrap.first-section .swiper-container .swiper-wrapper .swiper-slide').addClass('not-loaded');
if($('.container-wrap .main-content > .row > div').find('.nectar-slider-wrap.first-section').length > 0){
$('.container-wrap .main-content > .row > div').first().css('padding-top','0');
}
if($('#header-outer[data-remove-border="true"]').length===0){
if($('.first-section .nectar-slider-wrap[data-flexible-height="true"]').length===0 &&
$('.first-section .nectar-slider-wrap[data-fullscreen="true"]').length===0){
$('.first-section .nectar-slider-loading').css({
'top': $('#header-space').height(),
'background-position':'center ' + ((($('.first-section .swiper-container').height()/2) + 15) - $('#header-space').height()) +'px'
});
$('.first-section .nectar-slider-wrap .nectar-slider-loading .loading-icon').css({
'opacity':'1',
'height':$('.first-section .swiper-container').height() - $('#header-space').height() + 'px'
});
}else{
$loading_bg_storage=$('.first-section .nectar-slider-loading').css('background-image');
$('.first-section .nectar-slider-loading').css({
'top': $('#header-space').height(),
'background-image': 'none'
});
}}
}}
}
transparentheaderLoadingCalcs();
var $onMobileBrowser=navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/);
var $smoothSrollWidth=0;
var nectarSliderKenBurns;
function prevArrowAnimation(e){
if($(this).hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $timeout;
if($(this).parents('.swiper-container').attr('data-loop')!='true'){
if($(this).parents('.swiper-container').find('.swiper-slide-active').index()+1==1&&!$('html').hasClass('no-video')){
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,700);
if($(this).parents('.nectar-slider-wrap ').attr('data-transition')!='fade'){
$that=$(this);
$(this).parents('.swiper-container').animate({
'left':25+'px'
},250,function(){
$that.parents('.swiper-container').stop().animate({
'left':0+'px'
},250);
});
}
$(this).addClass('inactive');
}}
e.preventDefault();
$nectarSliders[i].swipePrev();
if($(this).parents('.nectar-slider-wrap ').attr('data-transition')==='fade'){
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,800);
$(this).addClass('inactive');
}}
function nextArrowAnimation(e){
if($(this).hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $slideNum=$(this).parents('.swiper-container').find('.swiper-wrapper > div').length;
var $timeout;
if($(this).parents('.swiper-container').attr('data-loop')!='true'){
if($(this).parents('.swiper-container').find('.swiper-slide-active').index()+1==$slideNum&&!$('html').hasClass('no-video')){
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,700);
if($(this).parents('.nectar-slider-wrap ').attr('data-transition')!='fade'){
$that=$(this);
$(this).parents('.swiper-container').animate({
'left':-25+'px'
},250,function(){
$that.parents('.swiper-container').stop().animate({
'left':0+'px'
},250);
});
}
$(this).addClass('inactive');
}}
e.preventDefault();
$nectarSliders[i].swipeNext();
if($(this).parents('.nectar-slider-wrap ').attr('data-transition')==='fade'){
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,800);
$(this).addClass('inactive');
}}
function prevArrowAnimationWithPreview(e){
if($(this).hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $timeout;
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,1000);
var $timeout2;
clearTimeout($timeout2);
$timeout2=setTimeout(function(){ $that.removeClass('stophover'); } ,500);
$(this).addClass('inactive').addClass('stophover');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').prev('.swiper-slide').removeClass('prev-high-z-index');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').stop().removeClass('prev-move');
e.preventDefault();
$nectarSliders[i].swipePrev();
}
function nextArrowAnimationWithPreview(e){
if($(this).hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $timeout;
clearTimeout($timeout);
$timeout=setTimeout(function(){ $that.removeClass('inactive'); } ,1000);
var $timeout2;
clearTimeout($timeout2);
$timeout2=setTimeout(function(){ $that.removeClass('stophover'); } ,500);
$(this).addClass('inactive').addClass('stophover');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').next('.swiper-slide').removeClass('high-z-index');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').stop().removeClass('next-move');
e.preventDefault();
$nectarSliders[i].swipeNext();
}
function darkSlideNextMouseOver(currentSlider, activeIndex){
var $indexAdd=($(currentSlider).find('.swiper-container').attr('data-loop')==='true') ? 2:2;
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + 1) +')').attr('data-color-scheme')==='dark'){
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +')').attr('data-color-scheme')==='dark'){
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +') .video-texture').addClass('half-light-overlay').addClass('no-trans');
}else{
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +') .video-texture').addClass('light-overlay').addClass('no-trans');
}}else{
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +')').attr('data-color-scheme')==='light'){
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +') .video-texture').addClass('half-dark-overlay').addClass('no-trans');
}else{
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + $indexAdd) +') .video-texture').addClass('dark-overlay').addClass('no-trans');
}}
}
function darkSlidePrevMouseOver(currentSlider, activeIndex){
var $indexAdd=($(currentSlider).find('.swiper-container').attr('data-loop')==='true') ? 0:0;
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex + 1) +')').attr('data-color-scheme')==='dark'){
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +')').attr('data-color-scheme')==='dark'){
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +') .video-texture').addClass('half-light-overlay').addClass('no-trans');
}else{
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +') .video-texture').addClass('light-overlay').addClass('no-trans');
}}else{
if($(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +')').attr('data-color-scheme')==='light'){
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +') .video-texture').addClass('half-dark-overlay').addClass('no-trans');
}else{
$(currentSlider).find('.swiper-slide:nth-child('+ (activeIndex - $indexAdd) +') .video-texture').addClass('dark-overlay').addClass('no-trans');
}}
}
function resetContentPos(i){
$($nectarSliders[i].container).find('.swiper-slide .content > *').css({ 'transform': 'translateX(0px)' });
}
function prevArrowAnimationDirectional(e){
if($(this).hasClass('inactive')||$(this).parents('.swiper-container').find('.slider-next').hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $timeout;
clearTimeout($timeout);
$timeout=setTimeout(function(){
$that.parents('.swiper-container').removeClass('directional-trans-prev');
$that.parents('.swiper-container').find('.swiper-wrapper').css({ 'transform': 'translateX(0)', 'left': parseInt($that.parents('.swiper-container').find('.swiper-wrapper').css('left')) + $that.parents('.swiper-container').width() });
setTimeout(function(){
$nectarSliders[i].updateActiveSlide();
$nectarSliders[i].fixLoop();
$that.removeClass('inactive');
},50);
resetContentPos(i);
} ,1100);
var $timeout2;
clearTimeout($timeout2);
$timeout2=setTimeout(function(){
if($that.parents('.swiper-container').attr('data-loop')!='true'){
if($that.parents('.swiper-container').find('.swiper-slide-active').index()+1!=1){
onChangeStart($nectarSliders[i]);
}}else{
onChangeStart($nectarSliders[i]);
}} ,100);
if($(this).parents('.swiper-container').attr('data-loop')!='true'){
$(this).parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active .content').children().each(function(i){
anime({
targets: $(this)[0],
translateX: [0, $that.parents('.swiper-container').width()/2.5 ],
easing: 'easeInOutCubic',
duration: 850
});
});
}
$(this).addClass('inactive');
anime({
targets: $(this).parents('.swiper-container').find('.swiper-wrapper')[0],
translateX: [0, $(this).parents('.swiper-container').width() ],
easing: 'easeInOutCubic',
duration: 1000
});
if($(this).parents('.swiper-container').attr('data-loop')==='true'){
$(this).parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active .content > *').each(function(i){
anime({
targets: $(this)[0],
translateX: [0, $that.parents('.swiper-container').width()/2.5 ],
easing: 'easeInOutCubic',
duration: 850,
delay: i*50
});
});
}
if($that.parents('.nectar-slider-wrap').is('[data-bg-animation="ken_burns"]')){
$that.parents('.swiper-container').find('.swiper-slide').attr('data-ken-burns','active');
clearTimeout(nectarSliderKenBurns);
nectarSliderKenBurns=setTimeout(function(){
$that.parents('.swiper-container').find('.swiper-slide:not(".swiper-slide-active")').attr('data-ken-burns','inactive');
},1350);
}
$that.parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active').prev('.swiper-slide').find('.content > *').css({
'transform': 'translateX(-' + $that.parents('.swiper-container').width() + "px)"
}, 0);
setTimeout(function(){
$that.parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active').prev('.swiper-slide').find('.content > *').each(function(i){
anime({
targets: $(this)[0],
translateX: 0,
easing: 'easeInOutCubic',
duration: 700,
delay: i*50
});
});
},200);
$that.parents('.swiper-container').addClass('directional-trans-prev');
e.preventDefault();
}
function nextArrowAnimationDirectional(e){
if($(this).hasClass('inactive')||$(this).parents('.swiper-container').find('.slider-prev').hasClass('inactive')){
return false;
}
var i=e.data.i;
var $that=$(this);
var $timeout;
clearTimeout($timeout);
$timeout=setTimeout(function(){
$that.parents('.swiper-container').removeClass('directional-trans-next');
$that.parents('.swiper-container').find('.swiper-wrapper').css({ 'transform': 'translateX(0)', 'left': parseInt($that.parents('.swiper-container').find('.swiper-wrapper').css('left')) - $that.parents('.swiper-container').width() });
setTimeout(function(){
$nectarSliders[i].updateActiveSlide();
$nectarSliders[i].fixLoop();
$that.removeClass('inactive');
},50);
resetContentPos(i);
} ,1100);
var $timeout2;
clearTimeout($timeout2);
$timeout2=setTimeout(function(){
if($that.parents('.swiper-container').attr('data-loop')!='true'){
if($that.parents('.swiper-container').find('.swiper-slide-active').index()+1!=$slideNum){
onChangeStart($nectarSliders[i]);
}}else{
onChangeStart($nectarSliders[i]);
}} ,100);
var $slideNum=$(this).parents('.swiper-container').find('.swiper-wrapper > div').length;
if($(this).parents('.swiper-container').attr('data-loop')!='true'){
if($(this).parents('.swiper-container').find('.swiper-slide-active').index()+1==$slideNum&&!$('html').hasClass('no-video')){
if($(this).parents('.nectar-slider-wrap ').attr('data-transition')!='fade'){
$(this).parents('.swiper-container').find('.swiper-wrapper').stop(true,false).css('transition','none').animate({
'left':parseInt($(this).parents('.swiper-container').find('.swiper-wrapper').css('left')) - 20
},200,function(){
$(this).parents('.swiper-container').find('.swiper-wrapper').stop(true,false).css('transition','left,top');
$nectarSliders[i].swipeReset();
});
}}else{
$(this).parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active .content > *').each(function(i){
anime({
targets: $(this)[0],
translateX: '-' + $that.parents('.swiper-container').width()/2.5 + "px",
easing: 'easeInOutCubic',
duration: 850,
delay: i*50
});
});
}}
$(this).addClass('inactive');
anime({
targets: $(this).parents('.swiper-container').find('.swiper-wrapper')[0],
translateX: '-' + $that.parents('.swiper-container').width() + "px",
easing: 'easeInOutCubic',
duration: 1000
});
if($(this).parents('.swiper-container').attr('data-loop')==='true'){
$(this).parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active .content > *').each(function(i){
anime({
targets: $(this)[0],
translateX: '-' + $that.parents('.swiper-container').width()/2.5 + "px",
easing: 'easeInOutCubic',
duration: 850,
delay: i*50
});
});
}
if($that.parents('.nectar-slider-wrap').is('[data-bg-animation="ken_burns"]')){
$that.parents('.swiper-container').find('.swiper-slide').attr('data-ken-burns','active');
clearTimeout(nectarSliderKenBurns);
nectarSliderKenBurns=setTimeout(function(){
$that.parents('.swiper-container').find('.swiper-slide:not(".swiper-slide-active")').attr('data-ken-burns','inactive');
},1350);
}
$that.parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active').next('.swiper-slide').find('.content > *').css({
'transform': 'translateX(' + $that.parents('.swiper-container').width() + "px)"
});
setTimeout(function(){
$that.parents('.swiper-container').find('.swiper-wrapper').find('.swiper-slide-active').next('.swiper-slide').find('.content > *').each(function(i){
anime({
targets: $(this)[0],
translateX: '0px',
easing: 'easeInOutCubic',
duration: 700,
delay: i*50
});
});
},200);
$that.parents('.swiper-container').addClass('directional-trans-next');
e.preventDefault();
}
var $nectarSliders=[];
function nectarSliderMainInit(){
$nectarSliders=[];
$('.nectar-slider-wrap[data-full-width="boxed-full-width"]').each(function(){
if($(this).parents('.wpb_column').length > 0 &&
$(this).parents('.full-width-content').length > 0){
$(this).attr('data-full-width','false');
}});
$('.full-width-content .wpb_column .nectar-slider-wrap[data-full-width="true"]').attr('data-full-width', 'false');
var $leftHeaderSize=($('#header-outer[data-format="left-header"]').length > 0&&window.innerWidth >=1000) ? parseInt($('#header-outer[data-format="left-header"]').width()):0;
var $windowWidth=$(window).width() - $leftHeaderSize;
if($('body > #boxed').length===0 &&
$('.nectar-slider-wrap[data-full-width="true"]').parent().attr('id')!='portfolio-extra' &&
$('.nectar-slider-wrap[data-full-width="true"]').parents('.post-area:not(".span_12")').length===0){
$('.nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .nectar-slider-wrap')
.css({'left': -(($windowWidth-$smoothSrollWidth)/2 - $('.main-content').width()/2), 'margin-left': '0' });
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap')
.css('width',$windowWidth);
}
else if($('.nectar-slider-wrap[data-full-width="true"]').parent().attr('id')==='portfolio-extra'&&$('#full_width_portfolio').length!==0){
$('.nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .nectar-slider-wrap')
.css({'left': -(($windowWidth-$smoothSrollWidth)/2 - $('.main-content').width()/2), 'margin-left': '0' });
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap')
.css('width',$windowWidth);
}else{
var $container=($('body > #boxed').length===0) ? '.post-area':'.container-wrap';
if($($container).width()=='0'&&$('body > #boxed').length > 0){
$container='#boxed';
}
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap')
.css('width',$($container).width());
}
$('.nectar-slider-wrap, .slide-bg-overlay').show();
$('.swiper-container').each(function(){
if($(this).parents('.wpb_gallery').length==0){
$(this).css('background-color','#000');
$(this).find('.swiper-slide').css('background-color','#000');
}});
$('.video-texture').css('opacity','1');
$('.nectar-slider-wrap').each(function(i){
var $arrows=$(this).find('.swiper-container').attr('data-arrows');
var $bullets=$(this).find('.swiper-container').attr('data-bullets');
var $swipe=$(this).find('.swiper-container').attr('data-desktop-swipe');
var $loop=$(this).find('.swiper-container').attr('data-loop');
var $grab=1;
var $desktopSwipe=1;
if($swipe=='true'&&$('#'+$(this).attr('id') +' .swiper-wrapper > div').length > 1 &&
$(this).attr('data-overall_style')!='directional'){
$grab=1;
$desktopSwipe=1;
}else{
$grab=0;
$desktopSwipe=0;
}
if($(window).width() < 1000&&$(this).attr('data-overall_style')!='directional'){
$grab=1;
$desktopSwipe=1;
}
if($bullets=='true'&&$(this).find('.swiper-wrapper > div').length > 1 &&
$(this).attr('data-overall_style')!='directional'){
$bullets='#'+$(this).attr('id')+' .slider-pagination';
}else{
$bullets=null;
}
var $useLoop=($loop=='true'&&$(this).find('.swiper-wrapper > div').length > 1&&!$('html').hasClass('no-video')||$(this).attr('data-overall_style')==='directional'&&$(this).find('.swiper-wrapper > div').length > 1&&!$('html').hasClass('no-video')) ? true:false;
if($useLoop==false){
$(this).find('.swiper-container').attr('data-loop','false');
}
var $sliderOptions, touchRatio;
if($(this).attr('data-transition')==='fade' &&
$(this).attr('data-overall_style')!=='directional' &&
$(this).attr('data-button-styling')!=='btn_with_preview'){
var progressVar=true;
touchRatio=1.3;
$sliderOptions={
loop: $useLoop,
grabCursor: $grab,
touchRatio: touchRatio,
speed: 600,
pagination:$bullets,
simulateTouch: $desktopSwipe,
onSlideChangeEnd: nectarSlideRotateReset,
onTouchEnd: nectarSlideRotateResetTouch,
onSlideChangeStart: onChangeStart,
onTouchMove: clearAutoplay,
onFirstInit: nectarInit,
progress: progressVar,
onProgressChange: function(swiper){
if($(swiper.container).parents('.nectar-slider-wrap').hasClass('loaded')){
for (var i=0; i < swiper.slides.length; i++){
var slide=swiper.slides[i];
var progress=slide.progress;
var translate=progress*swiper.width;
var opacity=Math.max(1 - Math.abs(progress), 0);
slide.style.opacity=opacity;
swiper.setTransform(slide,'translate3d('+translate+'px,0,0)');
}}
},
onTouchStart: function(swiper){
for (var i=0; i < swiper.slides.length; i++){
swiper.setTransition(swiper.slides[i], 0);
}},
onSetWrapperTransition:  function(swiper, speed){
for (var i=0; i < swiper.slides.length; i++){
swiper.setTransition(swiper.slides[i], speed);
}}
}}else{
touchRatio=0.6;
var css3Trans=($('#'+$(this).attr('id') + '.nectar-slider-wrap[data-overall_style="directional"]').length==1) ? false: true;
$sliderOptions={
loop: $useLoop,
grabCursor: $grab,
touchRatio: touchRatio,
speed: 500,
useCSS3Transforms: css3Trans,
pagination:$bullets,
simulateTouch: $desktopSwipe,
onSlideChangeEnd: nectarSlideRotateReset,
onTouchEnd: nectarSlideRotateResetTouch,
onSlideChangeStart: onChangeStart,
onTouchMove: clearAutoplay,
onFirstInit: nectarInit
}}
$nectarSliders[i]=new NectarSwiper('#'+$(this).attr('id')+' .swiper-container', $sliderOptions);
if(isNaN($nectarSliders[i].activeIndex)){
$nectarSliders[i].activeIndex=$useLoop ? 1:-0;
}
if(isNaN($nectarSliders[i].previousIndex)){
$nectarSliders[i].previousIndex=$useLoop ? 1:0;
}
$nectarSliders[i].swipeReset();
$('#'+$(this).attr('id')).addClass('nectar-slider-enabled');
if(navigator.userAgent.indexOf('Chrome') > 0 &&
!/Edge\/12./i.test(navigator.userAgent) &&
!/Edge\/\d./i.test(navigator.userAgent)){
var webmSource, webmSource2, firstVideo, lastVideo;
if(jQuery(this).find('.swiper-slide:nth-child(2) video source[type="video/webm"]').length > 0 &&
jQuery(this).find('.swiper-container').attr('data-loop')==='true'){
webmSource=jQuery(this).find('.swiper-slide:nth-child(2) video source[type="video/webm"]').attr('src') + "?id="+Math.ceil(Math.random()*10000);
firstVideo=jQuery(this).find('.swiper-slide:nth-child(2) video').get(0);
firstVideo.src=webmSource;
firstVideo.load();
webmSource2=jQuery(this).find('.swiper-slide:last-child video source[type="video/webm"]').attr('src') + "?id="+Math.ceil(Math.random()*10000);
lastVideo=jQuery(this).find('.swiper-slide:last-child video').get(0);
lastVideo.src=webmSource2;
lastVideo.load();
}
if(jQuery(this).find('.swiper-slide:eq(-2) video source[type="video/webm"]').length > 0 &&
jQuery(this).find('.swiper-container').attr('data-loop')==='true'){
webmSource=jQuery(this).find('.swiper-slide:eq(-2) video source[type="video/webm"]').attr('src') + "?id="+Math.ceil(Math.random()*10000);
firstVideo=jQuery(this).find('.swiper-slide:eq(-2) video').get(0);
firstVideo.src=webmSource;
firstVideo.load();
webmSource2=jQuery(this).find('.swiper-slide:nth-child(1) video source[type="video/webm"]').attr('src') + "?id="+Math.ceil(Math.random()*10000);
lastVideo=jQuery(this).find('.swiper-slide:nth-child(1) video').get(0);
lastVideo.src=webmSource2;
lastVideo.load();
}}
if($('#'+$(this).attr('id') + ' [data-bullet_style="see_through_ar_visualized"]').length==1){
$('#'+$(this).attr('id'))
.find('.slider-pagination .swiper-pagination-switch')
.append('<svg width="65px" height="65px" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><circle stroke-width="9" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle> <circle class="time" stroke-width="9" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle></svg>');
}
if($arrows=='true'&&$('#'+$(this).attr('id') +' .swiper-wrapper > div').length > 1 &&
$('#'+$(this).attr('id') + '.nectar-slider-wrap[data-button-styling="btn_with_preview"]').length===0 &&
$('#'+$(this).attr('id') + '.nectar-slider-wrap[data-overall_style="directional"]').length===0){
$('.slide-count i').css({ 'transform': 'scale(0.5)', 'opacity': '0' });
$('body').on('mouseenter','.nectar-slider-wrap[data-button-styling="btn_with_count"][data-overall_style="classic"] .swiper-container .slider-prev, .nectar-slider-wrap[data-button-styling="btn_with_count"][data-overall_style="classic"] .swiper-container .slider-next',function(){
anime({
targets: $(this).find('.slide-count i')[0],
scale: [0,1],
translateZ: 0,
opacity: 1,
easing: 'easeOutCubic',
duration: 250,
delay: 110
});
anime({
targets: $(this)[0],
width: [50,100],
easing: 'easeOutCubic',
duration: 300
});
anime({
targets: $(this)[0].querySelectorAll('.slide-count span'),
opacity: 1,
easing: 'easeOutCubic',
duration: 225,
delay: 100
});
});
$('body').on('mouseleave','.nectar-slider-wrap[data-button-styling="btn_with_count"][data-overall_style="classic"] .swiper-container .slider-prev, .nectar-slider-wrap[data-button-styling="btn_with_count"][data-overall_style="classic"] .swiper-container .slider-next',function(){
anime.remove('.slide-count i, .slider-next, .slider-prev, .slide-count span');
anime({
targets: $(this).find('.slide-count i')[0],
scale: 0,
translateZ: 0,
opacity: 0,
easing: 'easeOutCubic',
duration: 250
});
anime({
targets: $(this)[0],
width: 50,
easing: 'easeOutCubic',
duration: 300
});
anime({
targets: $(this)[0].querySelectorAll('.slide-count span'),
opacity: 0,
easing: 'easeOutCubic',
duration: 225
});
});
var $slideCount=($(this).find('.swiper-container').attr('data-loop')!='true') ? $('#'+$(this).attr('id') + ' .swiper-wrapper > div').length:$('#'+$(this).attr('id') + ' .swiper-wrapper > div').length - 2;
if($('html').hasClass('no-video')) $slideCount=$('#'+$(this).attr('id') + ' .swiper-wrapper > div').length;
$('#'+$(this).attr('id')+' .slider-prev .slide-count .slide-total').html($slideCount);
$('#'+$(this).attr('id')+' .slider-next .slide-count .slide-total').html($slideCount);
$('body').off('click','#'+$(this).attr('id')+' .slider-prev',prevArrowAnimation);
$('body').on('click','#'+$(this).attr('id')+' .slider-prev', {i: i}, prevArrowAnimation);
$('body').off('click','#'+$(this).attr('id')+' .slider-next',  nextArrowAnimation);
$('body').on('click','#'+$(this).attr('id')+' .slider-next', {i: i}, nextArrowAnimation);
}
else if($arrows=='true'&&$('#'+$(this).attr('id') +' .swiper-wrapper > div').length > 1&&$('#'+$(this).attr('id') + '.nectar-slider-wrap[data-button-styling="btn_with_preview"]').length==1&&$('#'+$(this).attr('id') + '.nectar-slider-wrap[data-overall_style="directional"]').length==0){
$('body').off('click','#'+$(this).attr('id')+' .slider-prev', prevArrowAnimationWithPreview);
$('body').on('click','#'+$(this).attr('id')+' .slider-prev', {i: i}, prevArrowAnimationWithPreview);
$('body').off('click','#'+$(this).attr('id')+' .slider-next', nextArrowAnimationWithPreview);
$('body').on('click','#'+$(this).attr('id')+' .slider-next', {i: i}, nextArrowAnimationWithPreview);
$('body').on('mouseenter','.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-next:not(.stophover)',function(){
$(this).parents('.nectar-slider-wrap')
.find('.swiper-slide-active')
.next('.swiper-slide')
.addClass('high-z-index');
$(this).parents('.nectar-slider-wrap')
.find('.swiper-slide-active')
.stop()
.addClass('next-move');
$(this).stop()
.addClass('next-arrow-move');
darkSlideNextMouseOver($(this).parents('.nectar-slider-wrap'), $(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').index());
});
$('body').on('mouseleave','.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-next',function(){
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').next('.swiper-slide').removeClass('high-z-index');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').stop().removeClass('next-move');
$(this).stop().removeClass('next-arrow-move');
});
$('body').on('mouseenter','.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-prev:not(.stophover)',function(){
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').prev('.swiper-slide').addClass('prev-high-z-index');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').stop().addClass('prev-move');
$(this).stop().addClass('prev-arrow-move');
darkSlidePrevMouseOver($(this).parents('.nectar-slider-wrap'), $(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').index());
});
$('body').on('mouseleave','.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-prev',function(){
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').prev('.swiper-slide').removeClass('prev-high-z-index');
$(this).parents('.nectar-slider-wrap').find('.swiper-slide-active').stop().removeClass('prev-move');
$(this).stop().removeClass('prev-arrow-move');
});
}else if($('#'+$(this).attr('id') + '.nectar-slider-wrap[data-overall_style="directional"]').length==1){
$('body').off('click','#'+$(this).attr('id')+' .slider-prev', prevArrowAnimationDirectional);
$('body').on('click','#'+$(this).attr('id')+' .slider-prev', {i: i}, prevArrowAnimationDirectional);
$('body').off('click','#'+$(this).attr('id')+' .slider-next',  nextArrowAnimationDirectional);
$('body').on('click','#'+$(this).attr('id')+' .slider-next',  {i: i}, nextArrowAnimationDirectional);
}
if($('#'+$(this).attr('id') +' .swiper-container').attr('data-bullet_style')==='scale'){
$('#'+$(this).attr('id')+' .slider-pagination .swiper-pagination-switch').append('<i />');
}
if($bullets!=null&&$('#'+$(this).attr('id') +' .swiper-wrapper > div').length > 1){
$('#'+$(this).attr('id')+' .slider-pagination .swiper-pagination-switch').on('click', function(){
$nectarSliders[i].swipeTo($(this).index());
});
}});
}
nectarSliderMainInit();
$(window).on('vc_reload', function(){
nectarSliderMainInit();
initialSlideLoad();
});
if('IntersectionObserver' in window){
var options={
rootMargin: '0px',
}
var sliderObserver=new IntersectionObserver(function(entries){
entries.forEach(function(entry){
if(entry.isIntersecting){
entry.target.classList.remove('out-of-view');
setTimeout(function(){
if($(entry.target).find('.swiper-slide-active').is('[data-color-scheme="dark"]')){
$('#header-outer.transparent').addClass('dark-slide');
}else{
$('#header-outer.transparent').removeClass('dark-slide');
}},200);
}else{
entry.target.classList.add('out-of-view');
}});
}, options);
if($('#nectar_fullscreen_rows').length==0&&$('#header-outer[data-permanent-transparent="1"]').length > 0){
$('.top-level .nectar-slider-wrap').each(function(slider){
if($(this).parents('.wpb_gallery').length===0){
sliderObserver.observe($(this)[0]);
}});
}}
function darkFirstSlide(slider){
if(slider.parents('.wpb_gallery').length > 0){
return;
}
if(slider.parents('.parallax_slider_outer').length > 0&&slider.parents('.first-section').length > 0&&slider.find('.swiper-slide-active[data-color-scheme="dark"]').length > 0){
$('#header-outer').addClass('dark-slide');
}else if(slider.parents('.parallax_slider_outer').length > 0||slider.parents('.first-section').length > 0){
if(slider.find('.swiper-slide-active[data-color-scheme="dark"]').length > 0&&slider.parents('.first-section').length > 0&&slider.is('[data-full-width="true"]')){
}else{
$('#header-outer').removeClass('dark-slide');
}}
}
var $animating=false;
var $sliderHeights=[];
var $existingSliders=[];
var slideAnimationQueues=[];
var sliderLength=$('.swiper-container').length;
var sliderLoadedLength=0;
function initialSlideLoad(){
$animating=false;
$('.swiper-wrapper').each(function(){
if($(this).find('.swiper-slide:nth-child(2) video').length > 0) $(this).find('.swiper-slide:nth-child(2)').addClass('first_video_slide');
if($(this).parents('.nectar-slider-wrap[data-bg-animation="ken_burns"]').length > 0){
if($('#nectar_fullscreen_rows').length > 0){
var $that=$(this);
setTimeout(function(){
$that.find('.swiper-slide.swiper-slide-active').addClass('ken-burns').attr('data-ken-burns','active');
},100);
}else{
$(this).find('.swiper-slide.swiper-slide-active').addClass('ken-burns').attr('data-ken-burns','active');
}}
});
$('.nectar-slider-wrap').each(function(i){
slideAnimationQueues[i]={
sliderID: $(this).attr('id'),
captionInterval: '',
kenBurnsInterval: ''
}
var $that=$(this);
if($(this).find('.swiper-slide-active video').length > 0){
if(!$('html').hasClass('no-video')&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)){
showSliderControls();
resizeToCover();
slideContentPos();
sliderLoadIn($that,i);
var $timeoutDelay=0;
if($('#ajax-loading-screen[data-effect="center_mask_reveal"]').length > 0&&$that.parents('.parallax_slider_outer').length > 0 ||
$('#ajax-loading-screen[data-effect="center_mask_reveal"]').length > 0&&$that.hasClass('first-nectar-slider')){
$timeoutDelay=450;
}
setTimeout(function(){ captionTransition($nectarSliders[i]); onChangeStart($nectarSliders[i]); }, $timeoutDelay);
darkFirstSlide($that);
$that.addClass('loaded');
if($that.parents('.parallax_slider_outer').length > 0||$that.hasClass('first-nectar-slider')){
$('#ajax-loading-screen').addClass('loaded');
setTimeout(function(){ $('#ajax-loading-screen').addClass('hidden'); },1000);
}}else{
showSliderControls();
resizeToCover();
slideContentPos();
sliderLoadIn($that,i);
captionTransition($nectarSliders[i]);
darkFirstSlide($that);
}}else{
showSliderControls();
resizeToCover();
slideContentPos();
sliderLoadIn($that,i);
var $timeout=0;
if($('#ajax-loading-screen[data-effect="center_mask_reveal"]').length > 0 &&
$that.parents('.parallax_slider_outer').length > 0 &&
$that.parents('.first-section').length > 0 ||
$('#ajax-loading-screen[data-effect="center_mask_reveal"]').length > 0&&$that.hasClass('first-nectar-slider')){
$timeout=450;
}
setTimeout(function(){
captionTransition($nectarSliders[i]);
onChangeStart($nectarSliders[i]);
},$timeout);
darkFirstSlide($that);
$that.addClass('loaded');
if($that.parents('.parallax_slider_outer').length > 0 ||
$that.hasClass('first-nectar-slider')){
$('#ajax-loading-screen').addClass('loaded');
setTimeout(function(){
$('#ajax-loading-screen').addClass('hidden');
},1000);
}}
if(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)){
$that.find('.video-wrap').each(function(){
var $videoSlide=$(this);
$(this).css('bottom','0');
$(this).find('video')[0].onplay=function(){
$videoSlide.find('video').css({'opacity':'1'});
setTimeout(function(){
$videoSlide.parents('.swiper-slide').find('.mobile-video-image').transition({'opacity':'0'},250);
anime({
targets: $videoSlide.parents('.swiper-slide').find('.mobile-video-image')[0],
opacity: 0,
easing: 'easeOutCubic',
duration: 250
});
},100);
};});
captionTransition($nectarSliders[i]);
showSliderControls();
resizeToCover();
slideContentPos();
darkFirstSlide($that);
setTimeout(function(){
resizeToCover();
slideContentPos();
},400);
$('.nectar-slider-wrap').find('.nectar-slider-loading').fadeOut(800,'easeInOutExpo');
$('.nectar-slider-wrap.first-section .swiper-container .swiper-wrapper .swiper-slide').removeClass('not-loaded');
$(this).addClass('loaded');
if($that.parents('.parallax_slider_outer').length > 0||$that.hasClass('first-nectar-slider')){
$('#ajax-loading-screen').addClass('loaded');
setTimeout(function(){ $('#ajax-loading-screen').addClass('hidden'); },1000);
}
autorotateInit($(this),i);
}
if($('header#top #logo img').length > 0){
var logoImg=new Image();
logoImg.src=$('header#top #logo img:first').attr('src');
$(logoImg).on('load', function(){
if($that.attr('data-overall_style')==='directional'){
$that.find('.swiper-container').addClass('directional-trans-current');
onChangeStart($nectarSliders[i]);
}});
}else{
if($that.attr('data-overall_style')==='directional'){
$that.find('.swiper-container').addClass('directional-trans-current');
onChangeStart($nectarSliders[i]);
}}
});
$('.swiper-container').each(function(){
if($(this).is('[data-bullet_position="left"]')){
if($(this).find('[data-x-pos="left"]').length > 0){
$(this).find('.slider-pagination-wrap').addClass('extra-room');
}}
if($(this).is('[data-bullet_position="right"]')){
if($(this).find('[data-x-pos="right"]').length > 0){
$(this).find('.slider-pagination-wrap').addClass('extra-room');
}}
});
}
function nectarInit(){
if(doneVideoInit==true){
return;
}
$('.swiper-slide iframe[data-aspectRatio]').each(function(){
var newWidth=$(this).parent().width();
var $el=$(this);
if($(this).parents('.swiper-slide').length > 0){
if($(this).is(':visible')) $el.width(newWidth).height(newWidth * $el.attr('data-aspectRatio'));
}else{
$el.width(newWidth).height(newWidth * $el.attr('data-aspectRatio'));
}});
doneVideoInit=true;
}
var autoplay=[];
var sliderAutoplayCount=0;
function nsSliderArrStore(){
$sliderHeights=[];
$existingSliders=[];
$('.swiper-container').each(function(i){
$sliderHeights[i]=parseInt($(this).attr('data-height'));
$existingSliders[i]=$(this).parent().attr('id');
});
}
nsSliderArrStore();
dynamicHeightSliders();
sliderSize();
resizeToCover();
for(var nsCount=0; nsCount<$nectarSliders.length; nsCount++){
$nectarSliders[nsCount].resizeFix();
}
$('.parallax_slider_outer .nectar-slider-wrap .slide-bg-wrap').each(function(){
if($(this).parents('.top-level').length > 0){
if($(this).find('.image-bg').length > 0){
$(this).find('.image-bg').css({'height':  Math.ceil($(this).parent().offset().top * 0.25) + $(this).outerHeight(true) });
}
if($(this).find('.video-wrap').length > 0){
$(this).find('.video-wrap').css({'height': Math.ceil($(this).parent().offset().top * 0.25) + $(this).outerHeight(true) });
}}
});
initialSlideLoad();
document.addEventListener("visibilitychange", function(){
if(document.hidden){
}else{
$('.nectar-slider-wrap').each(function(i){
if(typeof $nectarSliders[i]!='undefined'){
$nectarSliders[i].resizeFix();
}});
}});
var headerPadding=parseInt($('#header-outer').attr('data-padding'));
var shrinkNum=8;
if($('#header-outer[data-shrink-num]').length > 0){
shrinkNum=$('#header-outer').attr('data-shrink-num');
}
var feEditorStored=false;
function dynamicHeightSliders(){
var $adminBarHeight=($('#wpadminbar').length > 0) ? 28:0 ;
if($('body.compose-mode').length > 0&&feEditorStored==false){
nsSliderArrStore();
feEditorStored=true;
}
$('.nectar-slider-wrap').each(function(){
var $heightCalc, $heightCal;
var $minHeight=$('.swiper-container').attr('data-min-height');
if(window.innerWidth > 1000&&$('#ajax-content-wrap').length > 0){
$('body.material:not("[data-header-format=\'left-header\']") .parallax_slider_outer.first-section .nectar-slider-wrap').css('top',$('#ajax-content-wrap').offset().top);
}else{
$('body.material:not("[data-header-format=\'left-header\']") .parallax_slider_outer.first-section .nectar-slider-wrap').css('top','0');
}
if($(this).attr('data-fullscreen')==='true'&&$(this).attr('data-full-width')==='true' ||
$(this).attr('data-fullscreen')==='true'&&$(this).attr('data-full-width')==='boxed-full-width' ||
$(this).attr('data-fullscreen')==='true'&&$(this).parents('.full-width-content').length > 0&&$(this).parents('.vc_col-sm-12').length > 0){
if($(this).parents('#nectar_fullscreen_rows').length===0){
if($(this).hasClass('first-section')&&$(this).index()===0 ||
$(this).parents('.wpb_row').length > 0&&$(this).parents('.wpb_row').hasClass('first-section')&&$(this).index()===0&&$(this).parents('.parallax_slider_outer').length===0 ||
$(this).parents('.wpb_row').length > 0&&$(this).parents('.wpb_row').hasClass('top-level')&&$(this).parents('.parallax_slider_outer').length===0){
$heightCal=(($(window).height() - $(this).offset().top + 2) <=$minHeight) ? $minHeight:$(window).height() - $(this).offset().top + 2;
$(this).find('.swiper-container').attr('data-height',$heightCal);
}
else if($(this).parents('.first-section').length > 0&&$(this).parents('.parallax_slider_outer').length > 0&&$(this).parents('#full_width_portfolio').length===0 ||
$(this).parents('.top-level').length > 0&&$(this).parents('.parallax_slider_outer').length > 0&&$(this).parents('#full_width_portfolio').length===0){
$heightCal=(($(window).height() - $(this).offset().top + 2) <=$minHeight) ? $minHeight:$(window).height() - $(this).offset().top + 2;
$(this).find('.swiper-container').attr('data-height',$heightCal);
}
else if($(this).parents('#full_width_portfolio').length > 0&&$(this).attr('data-parallax')!='true'&&$(this).index()===0){
$heightCal=(($(window).height() - $(this).offset().top + 2) <=$minHeight) ? $minHeight:$(window).height() - $(this).offset().top + 2;
$(this).find('.swiper-container').attr('data-height',$heightCal);
}
else if($(this).parents('#full_width_portfolio').length > 0&&$(this).attr('data-parallax')==='true'){
$heightCal=(($(window).height() - $(this).offset().top + 2) <=$minHeight) ? $minHeight:$(window).height() - $(this).offset().top + 2;
$(this).find('.swiper-container').attr('data-height',$heightCal);
}else{
var headerPadding=parseInt($('#header-outer').attr('data-padding'));
var shrinkNum=8;
if($('#header-outer[data-shrink-num]').length > 0){
shrinkNum=$('#header-outer').attr('data-shrink-num');
}
var $resize=($('#header-outer[data-header-resize="0"]').length > 0) ? 0:parseInt(shrinkNum) + headerPadding*2;
var $headerSize=($('#header-outer[data-permanent-transparent="false"]').length > 0) ? $('#header-space').height() - $resize-3:-3;
if($('#nectar_fullscreen_rows').length > 0 ||
($('body[data-header-format="left-header"]').length > 0&&window.innerWidth >=1000)){
$headerSize=$adminBarHeight;
}
$heightCal=($(window).height() - $headerSize <=$minHeight) ? $minHeight:$(window).height() - $headerSize;
$(this).find('.swiper-container').attr('data-height',$heightCal);
}
if($('#header-outer[data-remove-border="true"]').length===0){
if($('body #header-outer[data-transparent-header="true"]').length > 0
&& $('.first-section .nectar-slider-wrap[data-fullscreen="true"]').length > 0 
&& $('#page-header-bg').length===0){
$('.first-section .nectar-slider-loading').css({
'background-image': $loading_bg_storage,
'background-position':'center ' + ((($(window).height() /2) + 15) - $('#header-space').height()) +'px'
});
$('.first-section .nectar-slider-wrap .nectar-slider-loading .loading-icon').css({
'opacity':'1',
'height':$(window).height() - $('#header-space').height() + 'px'
});
}}
}}
if($(this).attr('data-flexible-height')==='true' &&
$(this).attr('data-fullscreen')!=='true'){
if($(this).parents('.wpb_row.full-width-content').length===0 &&
$(this).attr('data-full-width')==='false'){
$(this).attr('data-flexible-height','false');
return false;
}
$minHeight=$('.swiper-container').attr('data-min-height');
var currentKey=nectarGetKeyByValue($existingSliders,$(this).attr('id'));
var $definedHeight=$sliderHeights[currentKey];
var dif=$(window).width() / 1600;
if(window.innerWidth > 1000&&$('#boxed').length===0){
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*dif));
}else{
var $parentCol=($(this).parents('.wpb_column').length > 0) ? $(this).parents('.wpb_column'):$(this).parents('.col') ;
if($parentCol.length==0) $parentCol=$('.main-content');
if(!$parentCol.hasClass('vc_span12') &&
!$parentCol.hasClass('main-content') &&
!$parentCol.hasClass('span_12') &&
!$parentCol.hasClass('vc_col-sm-12')){
var $parentColWidth=sliderColumnDesktopWidth($parentCol);
var $parentColRatio=1100/$parentColWidth;
if($definedHeight*dif <=$minHeight){
$(this).find('.swiper-container').attr('data-height',$minHeight);
}else{
$(this).find('.swiper-container').attr('data-height',Math.ceil($parentColRatio*$definedHeight*dif));
}}
else if($('#boxed').length > 0){
dif=$('#boxed').width() / 1600;
if(window.innerWidth > 1300){
if($('body[data-ext-responsive="true"]').length > 0){
if($(this).has('[data-full-width="boxed-full-width"]')){
($('#boxed').width() < 1400) ? $(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*dif)):$(this).find('.swiper-container').attr('data-height',$definedHeight*(1400/1600));
}}else{
if($(this).has('[data-full-width="boxed-full-width"]')){
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*(1200/1600)));
}}
}else if(window.innerWidth <=1300&&window.innerWidth >=1000){
if($('body[data-ext-responsive="true"]').length > 0){
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*dif));
}else{
if($(this).has('[data-full-width="boxed-full-width"]')){
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*(980/1600)));
}}
}else if(window.innerWidth < 1000&&window.innerWidth > 690){
$heightCalc=($definedHeight*(679/1600) <=$minHeight) ? $minHeight:$definedHeight*(679/1600);
if($(this).has('[data-full-width="boxed-full-width"]')){
$(this).find('.swiper-container').attr('data-height',$minHeight);
}}else if(window.innerWidth <=690){
$heightCalc=($definedHeight*dif <=$minHeight) ? $minHeight:$definedHeight*dif;
if($(this).has('[data-full-width="boxed-full-width"]')){
if($(this).parents('.full-width-ns').length > 0&&$('#header-outer[data-transparent-header="true"]').length > 0){
$(this).find('.swiper-container').attr('data-height', $heightCalc + 50);
}else{
$(this).find('.swiper-container').attr('data-height', $heightCalc);
}}
}}else{
if($definedHeight*dif <=$minHeight){
$(this).find('.swiper-container').attr('data-height',$minHeight);
}else{
if(window.innerWidth < 690 &&
$(this).parents('.full-width-ns').length > 0 &&
$('#header-outer[data-transparent-header="true"]').length > 0){
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*dif) + 50);
}else{
$(this).find('.swiper-container').attr('data-height',Math.ceil($definedHeight*dif));
}}
}}
if($('body #header-outer[data-transparent-header="true"]').length > 0 &&
$('.first-section .nectar-slider-wrap[data-flexible-height="true"]').length > 0){
$('.first-section .nectar-slider-loading').css({
'background-image': $loading_bg_storage,
'background-position':'center ' + (((($definedHeight*dif)/2) + 15) - $('#header-space').height()) +'px'
});
$('.first-section .nectar-slider-wrap .nectar-slider-loading .loading-icon').css({
'opacity':'1',
'height':$definedHeight*dif - $('#header-space').height() + 'px'
});
}}
});
}
var usingMobileBrowser=(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)) ? true:false;
if(!usingMobileBrowser){
$(window).on('resize', function(){
dynamicHeightSliders();
nsSliderContentResize();
});
$(window).on('smartresize', function(){
setTimeout(function(){
dynamicHeightSliders();
nsSliderContentResize();
}, 100);
});
}else{
var $windowWidth=$(window).width(), $windowHeight=$(window).height();
var $orientationChange=0;
window.addEventListener("orientationchange", function(){
$orientationChange=1;
});
$(window).on('resize', function(){
if(($(window).width()!=$windowWidth&&$(window).height!=$windowHeight)||$orientationChange==1){
dynamicHeightSliders();
nsSliderContentResize();
$(window).trigger('salient-parallax-bg-recalculate');
$windowWidth=$(window).width();
$windowHeight=$(window).height();
$orientationChange=0;
}});
}
setTimeout(function(){
dynamicHeightSliders();
},100);
function sliderColumnDesktopWidth(parentCol){
var $parentColWidth=1100;
var $columnNumberParsed=$(parentCol).attr('class').match(/\d+/);
if($columnNumberParsed=='2'){ $parentColWidth=170 }
else if($columnNumberParsed=='3'){ $parentColWidth=260 }
else if($columnNumberParsed=='4'){ $parentColWidth=340 }
else if($columnNumberParsed=='6'){ $parentColWidth=530 }
else if($columnNumberParsed=='8'){ $parentColWidth=700 }
else if($columnNumberParsed=='9'){ $parentColWidth=805 }
else if($columnNumberParsed=='10'){ $parentColWidth=916.3 }
else if($columnNumberParsed=='12'){ $parentColWidth=1100 }
return $parentColWidth;
}
$(window).on('resize', sliderSize);
function sliderSize(){
if(window.innerWidth < 1000&&window.innerWidth > 690){
var currentKey;
$('.nectar-slider-wrap[data-full-width="true"]:not([data-fullscreen="true"],[data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/1.4)
});
$('.nectar-slider-wrap[data-full-width="false"]:not([data-fullscreen="true"]):not([data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
var $currentSliderHeight=$sliderHeights[currentKey];
var $parentCol=($(this).parents('.wpb_column').length > 0) ? $(this).parents('.wpb_column'):$(this).parents('.col');
if($(this).parents('.post-area').length > 0&&$(this).parents('.vc_span12').length > 0) $parentCol=$(this).parents('.post-area');
if($parentCol.length===0){
$parentCol=$('.main-content');
}
var $parentColWidth=sliderColumnDesktopWidth($parentCol);
var $aspectRatio=$currentSliderHeight/$parentColWidth;
$(this).find('.swiper-container').attr('data-height',$aspectRatio*$parentCol.width());
});
$('.nectar-slider-wrap[data-full-width="boxed-full-width"]:not([data-flexible-height="true"]):not([data-fullscreen="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/1.9)
});
}
else if(window.innerWidth <=690){
$('.nectar-slider-wrap[data-full-width="true"]:not([data-fullscreen="true"],[data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
if($(this).parents('.full-width-ns').length > 0&&$('#header-outer[data-transparent-header="true"]').length > 0){
$(this).find('.swiper-container').attr('data-height',($sliderHeights[currentKey]/2.7) + 50);
}else{
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/2.7)
}});
$('.nectar-slider-wrap[data-full-width="false"]:not([data-fullscreen="true"]):not([data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
var $currentSliderHeight=$sliderHeights[currentKey];
var $parentCol=($(this).parents('.wpb_column').length > 0) ? $(this).parents('.wpb_column'):$(this).parents('.col');
if($(this).parents('.post-area').length > 0&&$(this).parents('.vc_span12').length > 0){
$parentCol=$(this).parents('.post-area');
}
if($parentCol.length===0){
$parentCol=$('.main-content');
}
var $parentColWidth=sliderColumnDesktopWidth($parentCol);
var $aspectRatio=$currentSliderHeight/$parentColWidth;
$(this).find('.swiper-container').attr('data-height',$aspectRatio*$parentCol.width());
});
$('.nectar-slider-wrap[data-full-width="boxed-full-width"]:not([data-flexible-height="true"]):not([data-fullscreen="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
if($(this).parents('.full-width-ns').length > 0&&$('#header-outer[data-transparent-header="true"]').length > 0){
$(this).find('.swiper-container').attr('data-height', ($sliderHeights[currentKey]/2.9) + 50);
}else{
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/2.9);
}});
}
else if(window.innerWidth < 1300&&window.innerWidth >=1000){
$('.nectar-slider-wrap[data-full-width="true"]:not([data-fullscreen="true"],[data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/1.2)
});
$('.nectar-slider-wrap[data-full-width="false"]:not([data-fullscreen="true"]):not([data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
var $currentSliderHeight=$sliderHeights[currentKey];
var $parentCol=($(this).parents('.wpb_column').length > 0) ? $(this).parents('.wpb_column'):$(this).parents('.col') ;
if($(this).parents('.post-area').length > 0&&$(this).parents('.vc_span12').length > 0){
$parentCol=$(this).parents('.post-area');
}
if($parentCol.length===0){
$parentCol=$('.main-content');
}
var $parentColWidth=sliderColumnDesktopWidth($parentCol);
var $aspectRatio=$currentSliderHeight/$parentColWidth;
$(this).find('.swiper-container').attr('data-height',$aspectRatio*$parentCol.width());
});
$('.nectar-slider-wrap[data-full-width="boxed-full-width"]:not([data-flexible-height="true"]):not([data-fullscreen="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
$(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey]/1.2)
});
}else{
$('.nectar-slider-wrap[data-full-width="true"]:not([data-fullscreen="true"],[data-flexible-height="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
if($(this).attr('data-flexible-height')!='true') $(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey])
});
$('.nectar-slider-wrap[data-full-width="false"]:not([data-fullscreen="true"]), .nectar-slider-wrap[data-full-width="boxed-full-width"]:not([data-flexible-height="true"]):not([data-fullscreen="true"])').each(function(){
currentKey=nectarGetKeyByValue($existingSliders, $(this).attr('id'));
if($(this).attr('data-flexible-height')!='true') $(this).find('.swiper-container').attr('data-height',$sliderHeights[currentKey])
});
}}
$('.nectar-slider-wrap').each(function(){
if($(this).find('.swiper-wrapper .swiper-slide').length==1){
$(this).find('.swiper-slide').addClass('no-transform');
$(this).find('.swiper-wrapper').addClass('no-transform');
}});
var min_w=1500;
var vid_w_orig;
var vid_h_orig;
vid_w_orig=1280;
vid_h_orig=720;
var $headerHeight=$('header').height()-1;
function nsSliderContentResize(){
resizeToCover();
slideContentPos();
for(var i=0; i < $nectarSliders.length; i++){
if($($nectarSliders[i].container).parent().attr('data-transition') &&
$($nectarSliders[i].container).parent().attr('data-transition')==='fade'){
for(var k=0; k < $nectarSliders[i].slides.length; k++){
$nectarSliders[i].setTransition($nectarSliders[i].slides[k], 0);
}
$('.swiper-wrapper').stop(true,true).css('transition-duration','0s');
if($('.nectar-slider-loading').css('display')==='none'){
$('.swiper-wrapper .swiper-slide.swiper-slide-active .content > *').css({
'opacity': 1,
'transform':'translateY(0)'
});
}}
$nectarSliders[i].reInit();
$nectarSliders[i].resizeFix();
}}
function resizeToCover(){
$('.nectar-slider-wrap').each(function(i){
if($(this).css('visibility')!='hidden'){
var $that=$(this);
var $leftHeaderSize=($('#header-outer[data-format="left-header"]').length > 0&&window.innerWidth >=1000) ? parseInt($('#header-outer[data-format="left-header"]').width()):0;
var $windowWidth=$(window).width() - $leftHeaderSize;
if($('body > #boxed').length===0 &&
$('.nectar-slider-wrap[data-full-width="true"]').parent().attr('id')!='portfolio-extra' &&
$(this).parents('.post-area:not(".span_12")').length===0){
$('.nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .nectar-slider-wrap').css({'left': -(($windowWidth-$smoothSrollWidth)/2 - $('.main-content').width()/2), 'margin-left': '0' });
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap').css('width',$windowWidth);
}
else if($('.nectar-slider-wrap[data-full-width="true"]').parent().attr('id')==='portfolio-extra' &&
$('#full_width_portfolio').length!==0){
$('.nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .nectar-slider-wrap').css({'left': -(($windowWidth-$smoothSrollWidth)/2 - $('.main-content').width()/2), 'margin-left': '0' });
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap').css('width',$windowWidth);
}else{
var $container=($('body > #boxed').length===0) ? '.post-area':'.container-wrap';
if($($container).width()=='0'&&$('body > #boxed').length > 0) $container='#boxed';
$('.nectar-slider-wrap[data-full-width="true"] .swiper-container, .nectar-slider-wrap[data-full-width="true"], .parallax_slider_outer.first-section .swiper-container, .parallax_slider_outer.first-section .nectar-slider-wrap').css({'width':$($container).width(), 'margin-left': '0'});
}
var $sliderHeight=parseInt($(this).find('.swiper-container').attr('data-height'));
var $sliderMinHeight=($(this).find('.swiper-container').is('[data-min-height]')&&$(this).find('.swiper-container').attr('data-min-height').length > 0) ? parseInt($(this).find('.swiper-container').attr('data-min-height')):0;
if($sliderMinHeight > $sliderHeight){
$sliderHeight=$sliderMinHeight;
}
var isFullWidthCompatible=($(this).attr('data-full-width')==='true') ? 'true':'false';
if($(this).parent().attr('id')=='portfolio-extra'&&$('#full_width_portfolio').length===0 ||
$(this).parents('.post-area').length > 0){
isFullWidthCompatible='false';
}
var $sliderWidth=(isFullWidthCompatible==='true') ? $windowWidth-$smoothSrollWidth:$(this).width();
var lrPadding=($(this).parents('.span_12').length > 0&&parseInt($(this).parents('.span_12').css('padding-left')) > 0) ? true:false;
if($(this).parents('.full-width-content').length > 0 &&
$(this).parents('.vc_col-sm-12').length > 0 &&
$('#boxed').length===0 &&
lrPadding===false){
$sliderWidth=$windowWidth;
if($(this).parents('.vc_col-sm-12.child_column').length > 0){
var parentChildCol=$(this).parents('.vc_col-sm-12.child_column');
if(parentChildCol.parents('.vc_col-sm-12').length==0){
$sliderWidth=$that.width();
}}
}
$(this).parents('.parallax_slider_outer').css('height',$sliderHeight);
$(this).css('height',$sliderHeight);
$(this).find('.swiper-container, .swiper-slide').css({'height':$sliderHeight+1});
$(this).find('.swiper-container').css('width', $sliderWidth);
if(!$(this).is('[data-parallax="true"]')){
$(this).find('.video-wrap').width($sliderWidth+2);
$(this).find('.video-wrap').height($sliderHeight+2);
var scale_h=$sliderWidth / vid_w_orig;
var scale_v=($sliderHeight - $headerHeight) / vid_h_orig;
var scale=scale_h > scale_v ? scale_h:scale_v;
min_w=1280/720 * ($sliderHeight+20);
if(scale * vid_w_orig < min_w){scale=min_w / vid_w_orig;}
$(this).find('video, .mejs-overlay, .mejs-poster').width(Math.ceil(scale * vid_w_orig +2));
$(this).find('video, .mejs-overlay, .mejs-poster').height(Math.ceil(scale * vid_h_orig +2));
$(this).find('.video-wrap').scrollLeft(($(this).find('video').width() - $sliderWidth) / 2);
$(this).find('.swiper-slide').each(function(){
if($(this).find('.video-wrap').length > 0){
if($(this).attr('data-bg-alignment')==='center'){
$(this).find('.video-wrap, .mejs-overlay, .mejs-poster').scrollTop(($(this).find('video').height() - ($sliderHeight)) / 2);
}
else if($(this).attr('data-bg-alignment')==='bottom'){
$(this).find('.video-wrap').scrollTop(($(this).find('video').height() - ($sliderHeight+2)));
}else{
$(this).find('.video-wrap').scrollTop(0);
}}
});
}}
});
}
resizeToCover();
function captionTransition(obj){
resizeToCover();
var $containerClass;
(typeof obj=='undefined') ? $containerClass='div[id^=ns-id-]':$containerClass='#'+$(obj.container).parents('.nectar-slider-wrap').attr('id');
var fromLeft=Math.abs(parseInt($($containerClass+' .swiper-wrapper').css('left')));
var currentSlide=Math.round(fromLeft/$($containerClass+' .swiper-slide').width());
var $slideNum=$($containerClass+':first .swiper-wrapper > div').length;
var captionTransString=$($containerClass).is('[data-caption-trans]') ? $($containerClass).attr('data-caption-trans'):'fade_in_from_bottom';
currentSlide=$($containerClass + ' .swiper-slide-active').index();
if(captionTransString==='none'){
$($containerClass+' .swiper-slide:not(".swiper-slide-active")').each(function(){
if($(this).find('.video-wrap video').length > 0){
$(this).find('.video-wrap video').get(0).pause();
if($(this).find('.video-wrap video').get(0).currentTime!=0){
$(this).find('.video-wrap video').get(0).currentTime=0;
}}
});
$($containerClass+' .swiper-slide').each(function(){
if($(this).hasClass('swiper-slide-active')){
if($(this).find('.video-wrap video').length > 0){
$(this).find('.video-wrap video').get(0).play();
}}
});
}
if($($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').find('.content *').length > 0&&captionTransString!=='reveal_title'){
if($($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').find('.content *').css('opacity')!='0'&&!$('html').hasClass('no-video')){
playVideoBG(currentSlide + 1, $containerClass);
if(!$($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').hasClass('autorotate-shown')){
return false;
}else{
$($containerClass+' .swiper-slide').removeClass('autorotate-shown');
}}
}
if($($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').find('.content .ns-heading-el').length > 0&&captionTransString==='reveal_title'){
if($($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').find('.content .ns-heading-el .word').css('opacity')!='0'&&!$('html').hasClass('no-video')){
playVideoBG(currentSlide + 1, $containerClass);
if(!$($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').hasClass('autorotate-shown')){
return false;
}else{
$($containerClass+' .swiper-slide').removeClass('autorotate-shown');
}}
}
if(!$('html').hasClass('no-video')){
if(captionTransString==='fade_in_from_bottom'){
if($($containerClass).parents('.wpb_gallery').length==0){
anime.remove($containerClass+' .swiper-slide .content p, '+$containerClass+' .swiper-slide .content h2, '+$containerClass+' .swiper-slide .content h1, '+$containerClass+' .swiper-slide .content .ns-heading-el, '+$containerClass+' .swiper-slide .content .buttons');
}
$($containerClass+' .swiper-slide .content p, '+$containerClass+' .swiper-slide .content h2, '+$containerClass+' .swiper-slide .content h1, '+$containerClass+' .swiper-slide .content .ns-heading-el, '+$containerClass+' .swiper-slide .content .buttons').stop(true,true).css({'opacity':0, 'transform':'translateZ(0) translateY(40px)'});
}else if(captionTransString==='reveal_title'){
$($containerClass+' .swiper-slide .content .ns-heading-el .word').stop(true,true).css({'opacity': '0'});
$($containerClass+' .swiper-slide .content .ns-heading-el .word > [class*="char"]').css({ 'opacity': '0'});
$($containerClass+' .swiper-slide .content .ns-heading-el .word > [class*="char"] > span').css({'transform':'scale(0) translateZ(0)'});
anime.remove($containerClass+' .swiper-slide .content p, '+$containerClass+' .swiper-slide .content .buttons');
$($containerClass+' .swiper-slide .content p, '+$containerClass+' .swiper-slide .content .buttons').stop(true,true).css({'opacity':0, 'transform':'translateZ(0) translateY(40px)'});
}}
$($containerClass+' .swiper-slide').each(function(){
if($(this).find('.video-wrap video').length > 0&&!$('html').hasClass('no-video')&&!$onMobileBrowser){
$(this).find('.video-wrap video').get(0).pause();
}});
$($containerClass+' .swiper-slide:not(".swiper-slide-active")').each(function(){
if($(this).find('.video-wrap video').length > 0){
if($(this).find('.video-wrap video').get(0).currentTime!=0){
$(this).find('.video-wrap video').get(0).currentTime=0;
}}
});
if($($containerClass +' .swiper-container').attr('data-loop')==='true'){
if($($containerClass+' .swiper-slide-active').index()+1==2 &&
$($containerClass+' .swiper-slide-active video').length > 0 &&
!$('html').hasClass('no-video')&&!$onMobileBrowser){
$($containerClass+' .swiper-slide:last-child').find('.video-wrap video').get(0).play();
$($containerClass+' .swiper-slide:last-child').find('.video-wrap video').get(0).pause();
}
if($($containerClass+' .swiper-slide-active').index()+1==$slideNum-1 &&
$($containerClass+' .swiper-slide-active video').length > 0 &&
!$('html').hasClass('no-video')&&!$onMobileBrowser){
$($containerClass+' .swiper-slide:first-child').find('.video-wrap video').get(0).play();
$($containerClass+' .swiper-slide:first-child').find('.video-wrap video').get(0).pause();
}
if($($containerClass+' .swiper-slide-active').index()+1!=2 &&
$($containerClass+' .swiper-slide:nth-child(2) video').length > 0 &&
!$('html').hasClass('no-video')&&!$onMobileBrowser){
$($containerClass+' .swiper-slide:last-child').find('.video-wrap video').get(0).play();
$($containerClass+' .swiper-slide:last-child').find('.video-wrap video').get(0).pause();
$($containerClass+' .swiper-slide:nth-child(2) video').get(0).pause();
if($($containerClass+' .swiper-slide:nth-child(2) video').get(0).currentTime!=0){
$($containerClass+' .swiper-slide:nth-child(2) video').get(0).currentTime=0;
}}
if($($containerClass).attr('data-overall_style')!='directional'){
if($($containerClass+' .swiper-slide-active').index()+1==$slideNum-1){
$($containerClass+' .swiper-slide:nth-child(1)').find('.content').children().each(function(i){
captionTransAnimation($(this),i,captionTransString);
});
}
if($($containerClass+' .swiper-slide-active').index()+1==2){
$($containerClass+' .swiper-slide:nth-child('+ ($slideNum) + ')').find('.content').children().each(function(i){
captionTransAnimation($(this),i,captionTransString);
});
}
if($($containerClass+' .swiper-slide-active').index()+1==$slideNum){
$($containerClass+' .swiper-slide:nth-child(2)').find('.content').children().each(function(i){
captionTransAnimation($(this),i,captionTransString);
});
}
if($($containerClass+' .swiper-slide-active').index()+1==1){
$($containerClass+' .swiper-slide:eq(-2)').find('.content').children().each(function(i){
captionTransAnimation($(this),i,captionTransString);
});
}}
}
setTimeout(function(){
playVideoBG($($containerClass + ' .swiper-slide-active').index() + 1, $containerClass);
},50);
if($($containerClass).attr('data-overall_style')!='directional'){
$($containerClass+' .swiper-slide:nth-child('+ (currentSlide + 1) +')').find('.content').children().each(function(i){
captionTransAnimation($(this),i,captionTransString);
});
}
$captionTrans++;
if($captionTrans==$('.swiper-wrapper').length){
$('div.first_video_slide').addClass('nulled');
}
setTimeout(function(){
if($('.slider-next').hasClass('next-arrow-move')){
$('.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-next').trigger('mouseenter');
}else if($('.slider-prev').hasClass('prev-arrow-move')){
$('.nectar-slider-wrap[data-button-styling="btn_with_preview"] .swiper-container .slider-prev').trigger('mouseenter');
}
if($($containerClass).attr('data-button-styling')==='btn_with_preview'){
$($containerClass+' .swiper-slide').addClass('prev-high-z-index-static');
$($containerClass+' .swiper-slide.swiper-slide-active').removeClass('prev-high-z-index-static');
}},175);
}
function NSsplitLineText(){
$('.nectar-slider-wrap[data-caption-trans="reveal_title"] .content .ns-heading-el').each(function(){
var storedCSSOpacity=($(this).parents('.swiper-slide-active').length > 0&&$(this).find('.word').length > 0) ? $(this).find('> .word').css('opacity'):'0';
var textArr=$(this).text();
textArr=textArr.trim();
textArr=textArr.split(' ');
$(this)[0].innerHTML='';
for(var i=0;i<textArr.length;i++){
$(this)[0].innerHTML +='<span class="word">'+ textArr[i] + '</span> ';
}
$(this).find('.word').each(function(){
charming($(this)[0]);
});
$(this).find('[class*="char"]').wrapInner('<span class="char-inner" />');
if($(this).parents('.swiper-slide-active').length > 0){
$(this).find('> .word').css('opacity', storedCSSOpacity);
}});
}
function charming(element, options){
options=options||{}
element.normalize()
var splitRegex=options.splitRegex
var tagName=options.tagName||'span'
var classPrefix=options.classPrefix!=null ? options.classPrefix:'char'
var count=1
function inject (element){
var parentNode=element.parentNode
var string=element.nodeValue
var split=splitRegex ? string.split(splitRegex):string
var length=split.length
var i=-1
while (++i < length){
var node=document.createElement(tagName)
if(classPrefix){
node.className=classPrefix + count
count++
}
node.appendChild(document.createTextNode(split[i]))
node.setAttribute('aria-hidden', 'true')
parentNode.insertBefore(node, element)
}
if(string.trim()!==''){
parentNode.setAttribute('aria-label', string)
}
parentNode.removeChild(element)
}
;(function traverse (element){
if(element.nodeType===3){
return inject(element)
}
var childNodes=Array.prototype.slice.call(element.childNodes)
var length=childNodes.length
if(length===1&&childNodes[0].nodeType===3){
return inject(childNodes[0])
}
var i=-1
while (++i < length){
traverse(childNodes[i])
}})(element)
}
NSsplitLineText();
var charCount=0;
function captionTransAnimation(obj,index,animationName){
if(animationName==='reveal_title'){
if(obj.parent().find('.word').length===0) charCount=0;
if(index===0&&obj.parent().find('.word').length > 0){
charCount=obj.find('.word > [class*="char"]').length;
obj.find('.word').css('opacity','1');
obj.find('.word > [class*="char"]').each(function(i){
anime({
targets: $(this)[0],
translateY: [50,0],
translateZ: 0,
opacity: 1,
easing: 'cubicBezier(.25,.25,.1,1)',
duration: 700,
delay: i*18
});
anime({
targets: $(this).find('> span')[0],
scale: [0,1],
translateZ: 0,
easing: 'cubicBezier(.25,.25,.1,1)',
duration: 700,
delay: i*18
});
});
}else{
anime({
targets: obj[0],
translateY: [50,0],
translateZ: 0,
opacity: 1,
easing: 'cubicBezier(.25,.25,.1,1)',
duration: 850,
delay: (index*150 + (charCount*18))
});
}}else if(animationName==='fade_in_from_bottom'){
anime({
targets: obj[0],
translateY: [50,0],
translateZ: 0,
opacity: 1,
easing: 'cubicBezier(.25,.25,.1,1)',
duration: 800,
delay: (index*130)
});
}}
function playVideoBG(nthChild, containerClass){
if($(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.video-wrap video').length > 0){
if(!$('html').hasClass('no-video')&&!$onMobileBrowser){
$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.video-wrap video').get(0).play();
}
if(!$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-overlay.mejs-overlay-play').hasClass('playing') &&
$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-overlay.mejs-overlay-play').hasClass('mobile-played')){
$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-overlay.mejs-overlay-play').addClass('playing');
}
if(!$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-poster').hasClass('playing') &&
$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-poster').hasClass('mobile-played')){
$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-poster').addClass('playing');
}
var $that=$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-overlay.mejs-overlay-play');
var $that2=$(containerClass+' .swiper-slide:nth-child('+ (nthChild) +')').find('.mejs-poster');
if($that.hasClass('playing')&&$that.hasClass('mobile-played')){
setTimeout(function(){
$that.addClass('behind-buttons');
$that2.addClass('behind-buttons');},200);
}else{
$that.removeClass('behind-buttons');
$that2.removeClass('behind-buttons');
}}
}
function slideContentPos(){
$('.swiper-wrapper').each(function(){
var $sliderHeight=parseInt($(this).parents('.swiper-container').attr('data-height'));
var $minimumHeight=($(this).parents('.swiper-container').css('min-height')) ? parseInt($(this).parents('.swiper-container').css('min-height')):0;
if($minimumHeight > $sliderHeight){
$sliderHeight=$minimumHeight;
}
var $transparentHeader=($('#header-outer[data-transparent-header="true"]').length > 0) ? $('#header-outer').height():0;
if($(this).parents('.first-section').length==0&&$(this).parents('.top-level').length==0||window.innerWidth < 1000){
$transparentHeader=0;
}else if($transparentHeader!=0&&$('#header-outer[data-remove-border="true"]').length > 0){
$transparentHeader=$transparentHeader/2
}
if($(this).parents('.swiper-container[data-bullet_position="right"][data-bullets="true"]').length > 0&&$transparentHeader > 0 ||
$(this).parents('.swiper-container[data-bullet_position="left"][data-bullets="true"]').length > 0&&$transparentHeader > 0){
var secondaryHeaderHeight=($('#header-secondary-outer').length > 0) ? $('#header-secondary-outer').height():0;
$(this).parents('.swiper-container').find('.slider-pagination-wrap').css({
'margin-top': ($transparentHeader + secondaryHeaderHeight)/2
});
}
$(this).find('.swiper-slide').each(function(){
var $contentHeight2=0;
$(this).find('.content > *').each(function(){
$contentHeight2 +=$(this).height() + parseInt($(this).css('margin-bottom')) + parseInt($(this).css('padding-bottom'));
});
if($(this).attr('data-y-pos')==='top'&&window.innerWidth > 690){
var secondaryHeaderHeight=($('#header-secondary-outer').length > 0) ? $('#header-secondary-outer').height():0;
var $topHeight=($transparentHeader > 0) ? $transparentHeader + secondaryHeaderHeight + 60:60;
$(this).find('.content').css('top', $topHeight + 'px');
}
else if($(this).attr('data-y-pos')==='middle'||window.innerWidth <=690){
$(this).find('.content').css('top', ((($sliderHeight + $transparentHeader)/2) - ($contentHeight2/2)) + 'px');
}else{
$(this).find('.content').css({'bottom': '75px', 'top': 'auto'});
}});
});
}
function showSliderControls(){
$('.swiper-container .slider-prev, .swiper-container .slider-next, .slider-pagination').animate({'opacity':1},550,'easeOutCubic');
}
function sliderLoadIn(slider,index){
slider.find('.nectar-slider-loading').fadeOut(800,'easeInOutExpo');
setTimeout(function(){
slider.find('.nectar-slider-loading').css('display','none');
},1000);
$('.nectar-slider-wrap.first-section .swiper-container .swiper-wrapper .swiper-slide').removeClass('not-loaded');
slider.find('span.ie-fix').remove();
if(slider.find('.swiper-container[data-bullet_style="see_through_ar_visualized"][data-bullets="true"]').length > 0){
slider.find('.swiper-active-switch').removeClass('ar-vis');
setTimeout(function(){
slider.parent().find('.swiper-active-switch').addClass('ar-vis');
},50);
}
sliderLoadedLength++;
if(!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)){ autorotateInit(slider,index); }}
$('body').on('mouseover','.swiper-slide', function(){
if(!$onMobileBrowser &&
$(this).find('video').length > 0 &&
$(this).find('video').get(0).paused==true &&
$animating==false){
$(this).find('video').get(0).play();
}});
$('body').on('click', '.mejs-overlay.mejs-overlay-play',function(){
$(this).toggleClass('playing');
$(this).addClass('mobile-played');
$(this).parent().find('.mejs-poster').toggleClass('playing');
$(this).parent().find('.mejs-poster').addClass('mobile-played');
var $that=$(this);
var $that2=$(this).parent().find('.mejs-poster');
if($(this).hasClass('playing')&&$(this).hasClass('mobile-played')){
setTimeout(function(){
$that.addClass('behind-buttons');
$that2.addClass('behind-buttons');
},200);
}else{
setTimeout(function(){
$that.removeClass('behind-buttons');
$that2.removeClass('behind-buttons');
},1);
}});
function autorotateInit(slider,num){
var $autoplayVal=slider.attr('data-autorotate');
var $sliderNum=num;
if(typeof $autoplayVal!='undefined' &&
$autoplayVal.length!='0'&&parseInt($autoplayVal)){
nectarSlideRotateInit(slider,$autoplayVal,$sliderNum);
}}
function nectarSlideRotateInit(slider,interval,sliderNum){
autoplay[sliderAutoplayCount]={
interval: setInterval(function(){ nectarSlideRotate(slider, sliderNum); } ,interval),
nectarSliderNum: sliderNum,
autoplayNum: sliderAutoplayCount,
nectarSliderID: slider.attr('id')
};
$('#'+slider.attr('id')).attr('autoplay-id',sliderAutoplayCount);
if($('#'+slider.attr('id')).find('[data-bullet_style="see_through_ar_visualized"]').length > 0){
$('#'+slider.attr('id')).find('.slider-pagination svg circle.time').css('transition', 'stroke-dashoffset '+ (parseInt(interval) + 100) +'ms linear, stroke 0.2s ease');
}
var sliderClosure=slider;
var sliderAutoplayCountClosure=sliderAutoplayCount;
var intervalClosure=interval;
var sliderNumClosure=sliderNum;
$('#'+slider.attr('id') + ' a.slider-prev, #'+slider.attr('id') + ' a.slider-next, #' + slider.attr('id') + ' .slider-pagination span:not(.swiper-active-switch)').on('click', function(){
nectarSlideRotateReset(sliderClosure, sliderAutoplayCountClosure, intervalClosure, sliderNumClosure);
});
sliderAutoplayCount++;
}
function nectarSlideRotateReset(slider, sliderAutoplayCount, interval,sliderNum){
slider=(typeof slider.activeIndex==='undefined') ? slider:$(slider.container).parent();
sliderAutoplayCount=(typeof sliderAutoplayCount!=='undefined'&&typeof sliderAutoplayCount==='number') ? sliderAutoplayCount:'unknown';
if(sliderAutoplayCount==='unknown'){
$.each(autoplay,function(k,v){
if($('body').find('#' + v.nectarSliderID).length > 0&&v.nectarSliderID==$(slider).attr('id')){
sliderAutoplayCount=v.autoplayNum;
interval=($('body').find('#' + v.nectarSliderID).attr('data-autorotate').length > 0&&parseInt($('body').find('#' + v.nectarSliderID).attr('data-autorotate')) > 1000) ? $('body').find('#' + v.nectarSliderID).attr('data-autorotate'):4000;
sliderNum=v.nectarSliderNum;
}});
}
if(sliderAutoplayCount!=='unknown'){
clearInterval(autoplay[$('#'+slider.attr('id')).attr('autoplay-id')].interval);
autoplay[sliderAutoplayCount].interval=setInterval(function(){ nectarSlideRotate(slider, sliderNum); } ,interval);
}}
var resetTouchIndex=1;
var resetTouchIndexLast='unknown';
function nectarSlideRotateResetTouch(slider){
if(Math.abs(slider.touches.diff) < 15){ return }
if(resetTouchIndexLast=='unknown'&&$(slider.container).is('[data-loop="true"]')){
resetTouchIndexLast=1;
}else if(resetTouchIndexLast=='unknown'){
resetTouchIndexLast=0;
}
resetTouchIndex=slider.activeIndex;
nectarSlideRotateReset(slider);
if($(slider.container).is('[data-bullets="true"][data-bullet_style="see_through_ar_visualized"]')&&resetTouchIndex==resetTouchIndexLast){
var dotIndexStored=$(slider.container).find('.ar-vis').index();
$(slider.container).find('.ar-vis').removeClass('ar-vis');
setTimeout(function(){
$(slider.container).find('.slider-pagination > span:nth-child('+ (dotIndexStored + 1) +')').addClass('ar-vis');
},50);
}
resetTouchIndexLast=slider.activeIndex;
}
function nectarSlideRotate(slider, sliderNum){
if($(slider).hasClass('out-of-view')){
return true;
}
if($('#nectar_fullscreen_rows').length > 0){
if($(slider).parents('.wpb_row.active').length==0){
return true;
}}
if($nectarSliders[sliderNum].activeIndex + 1 < $(slider).find('.swiper-wrapper > div.swiper-slide').length){
if($(slider).attr('data-button-styling')==='btn_with_preview'){
$(slider).find('.swiper-slide').removeClass('high-z-index').removeClass('prev-high-z-index');
$(slider).find('.swiper-slide').removeClass('next-move').removeClass('prev-move');
}
if($(slider).attr('data-overall_style')!='directional'){
$nectarSliders[sliderNum].updateActiveSlide();
$nectarSliders[sliderNum].swipeNext();
}else{
$($nectarSliders[sliderNum].container).find('.slider-next').trigger('click');
}}else{
if($(slider).find('.swiper-container').is("[data-loop]")&&$(slider).find('.swiper-container').attr('data-loop')==='true'){
if($(slider).attr('data-overall_style')!='directional'){
$nectarSliders[sliderNum].swipeNext();
}else{
$($nectarSliders[sliderNum].container).find('.slider-next').trigger('click');
}}else{
if($(slider).attr('data-overall_style')!='directional'){
$nectarSliders[sliderNum].swipeTo(0,550);
}else{
$(slider).find('.swiper-container').addClass('directional-trans-prev');
$nectarSliders[sliderNum].swipeTo(0,550);
var $timeout2;
clearTimeout($timeout2);
$timeout2=setTimeout(function(){ onChangeStart($nectarSliders[sliderNum]); } ,100);
}}
}}
function clearAutoplay(e){
var $autoplayVal=$('#'+$(e.container).parent().attr('id')).attr('data-autorotate');
if(typeof $autoplayVal!='undefined'&&$autoplayVal.length!='0'&&parseInt($autoplayVal)){
clearInterval(autoplay[$('#'+$(e.container).parent().attr('id')).attr('autoplay-id')].interval);
}}
function onChangeStart(e){
var $obj=e;
$animating=true;
var $slideNum=$($obj.container).find('.swiper-wrapper > div').length;
var $activeIndex=($($obj.container).attr('data-loop')==='true') ? $obj.activeIndex + 1: $obj.activeIndex+1;
var $activeIndex2=($($obj.container).attr('data-loop')==='true') ? $obj.activeIndex: $obj.activeIndex+1;
if(isNaN($activeIndex)){
$activeIndex=1;
}
if(isNaN($activeIndex2)){
$activeIndex2=1;
}
if($($obj.container).parent().attr('data-overall_style')!=='directional'){
if($($obj.container).parents('.wpb_gallery').length===0){
if($($obj.container).parents('.first-section').length > 0&&$($obj.container).find('.swiper-slide-active[data-color-scheme="dark"]').length > 0 ||
$('#nectar_fullscreen_rows').length > 0&&$($obj.container).find('.swiper-slide-active[data-color-scheme="dark"]').length > 0){
$('#header-outer').addClass('dark-slide');
}else if($($obj.container).parents('.first-section').length > 0||$('#nectar_fullscreen_rows').length > 0){
$('#header-outer').removeClass('dark-slide');
}}
}else{
if($($obj.container).hasClass('directional-trans-next')){
if($($obj.container).parents('.first-section').length > 0&&$($obj.container).find('.swiper-slide-active').next('.swiper-slide').is('[data-color-scheme="dark"]')){
$('#header-outer').addClass('dark-slide');
}else{
$('#header-outer').removeClass('dark-slide');
}}
else if($($obj.container).hasClass('directional-trans-prev')){
if($($obj.container).parents('.first-section').length > 0&&$($obj.container).find('.swiper-slide-active').prev('.swiper-slide').is('[data-color-scheme="dark"]')){
$('#header-outer').addClass('dark-slide');
}else{
$('#header-outer').removeClass('dark-slide');
}}
else if($($obj.container).hasClass('directional-trans-current')){
if($($obj.container).parents('.first-section').length > 0&&$($obj.container).find('.swiper-slide-active').is('[data-color-scheme="dark"]')){
$('#header-outer').addClass('dark-slide');
}else{
$('#header-outer').removeClass('dark-slide');
}}
}
if($($obj.container).parent().attr('data-overall_style')!='directional'){
if($($obj.container).find('.swiper-slide:nth-child('+ ($activeIndex) +')').attr('data-color-scheme')==='dark'){
$($obj.container).find('.slider-pagination').addClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').addClass('dark-cs');
}else{
$($obj.container).find('.slider-pagination').removeClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').removeClass('dark-cs');
}}else{
if($($obj.container).hasClass('directional-trans-next')){
if($($obj.container).find('.swiper-slide:nth-child('+ ($activeIndex+1) +')').attr('data-color-scheme')==='dark'){
$($obj.container).find('.slider-pagination').addClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').addClass('dark-cs');
}else{
$($obj.container).find('.slider-pagination').removeClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').removeClass('dark-cs');
}}else if($($obj.container).hasClass('directional-trans-prev')){
if($($obj.container).find('.swiper-slide:nth-child('+ ($activeIndex-1) +')').attr('data-color-scheme')==='dark'){
$($obj.container).find('.slider-pagination').addClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').addClass('dark-cs');
}else{
$($obj.container).find('.slider-pagination').removeClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').removeClass('dark-cs');
}}else if($($obj.container).hasClass('directional-trans-current')){
if($($obj.container).find('.swiper-slide:nth-child('+ ($activeIndex) +')').attr('data-color-scheme')==='dark'){
$($obj.container).find('.slider-pagination').addClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').addClass('dark-cs');
}else{
$($obj.container).find('.slider-pagination').removeClass('dark-cs');
$($obj.container).find('.slider-prev, .slider-next').removeClass('dark-cs');
}}
}
$($obj.container)
.find('.swiper-slide .video-texture')
.removeClass('no-trans')
.removeClass('light-overlay')
.removeClass('dark-overlay')
.removeClass('half-dark-overlay')
.removeClass('half-light-overlay');
$($obj.container).find('.slider-prev .slide-count .slide-current').html($activeIndex2);
$($obj.container).find('.slider-next .slide-count .slide-current').html($activeIndex2);
if($($obj.container).attr('data-loop')==='true'){
if($($obj.container).find('.swiper-slide-active').index()+1==1){
$($obj.container).find('.slider-next .slide-count .slide-current, .slider-prev .slide-count .slide-current').html($slideNum - 2);
}
else if($($obj.container).find('.swiper-slide-active').index()+1==$slideNum){
$($obj.container).find('.slider-next .slide-count .slide-current, .slider-prev .slide-count .slide-current').html(1);
}}
if($obj.activeIndex >=10){ $($obj.container).find('.slider-next .slide-count .slide-current').addClass('double-digits'); }else{
$($obj.container).find('.slider-next .slide-count .slide-current').removeClass('double-digits');
}
if($($obj.container).attr('data-loop')==='true'){
if($obj.previousIndex==1&&$obj.activeIndex==0||$obj.previousIndex==$slideNum - 2&&$obj.activeIndex==$slideNum - 1){
$('.swiper-slide').addClass('duplicate-transition');
}}
var sliderIndex=0;
slideAnimationQueues.forEach(function(val,index){
if(typeof val==='undefined') return;
if(val.sliderID==$($obj.container).parent().attr('id')){
sliderIndex=index;
}});
if($($obj.container).parent().is('[data-bg-animation="ken_burns"]')&&$($obj.container).parents('.nectar-slider-wrap[data-overall_style="directional"]').length===0){
$($obj.container).find('.swiper-slide').addClass('ken-burns');
clearTimeout(slideAnimationQueues[sliderIndex].kenBurnsInterval);
slideAnimationQueues[sliderIndex].kenBurnsInterval=setTimeout(function(){
$($obj.container).find('.swiper-slide:not(".swiper-slide-active")').removeClass('ken-burns');
},600);
}
var nsTimeout=($($obj.container).parents('.nectar-slider-wrap[data-transition="fade"]').length > 0) ? 350:525;
clearTimeout(slideAnimationQueues[sliderIndex].captionInterval);
if($($obj.container).parents('.nectar-slider-wrap[data-overall_style="directional"]').length===0){
slideAnimationQueues[sliderIndex].captionInterval=setTimeout(function(){
$animating=false;
if($($obj.container).attr('data-loop')==='true'){
$('.swiper-slide').removeClass('duplicate-transition');
$.each($nectarSliders,function(k){
$nectarSliders[k].updateActiveSlide();
$nectarSliders[k].fixLoop();
});
}
captionTransition($obj);
},nsTimeout);
}}
window.requestAnimationFrame=window.requestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.msRequestAnimationFrame
|| function(f){setTimeout(f, 1000/60)}
var $sliderHeight;
function sliderParallaxUpdateHeight(){
$sliderHeight=parseInt($('.parallax_slider_outer.first-section .swiper-container').attr('data-height'));
}
var $headerNavSpace=($('body[data-header-format="left-header"]').length > 0&&$(window).width() > 1000) ? 0:$('#header-space').height();
function sliderParallaxInit(){
if($('#portfolio-extra').length > 0&&$('#full_width_portfolio').length===0){
return false;
}
$('.parallax_slider_outer').addClass('element-in-view');
if(!$onMobileBrowser){
if($('.project-title.parallax-effect').length > 0){
$('.parallax_slider_outer.first-section .swiper-slide .content, .nectar-slider-wrap.first-section .swiper-slide .content').css('margin-top','0px');
$('.swiper-container .slider-prev, .swiper-container .slider-next').css('margin-top','-28px');
}
if($('.demo_store').length > 0) $('.project-title.parallax-effect').css('margin-top','-25px');
if($('#full_width_portfolio').length > 0){
$('.parallax_slider_outer.first-section').css('margin-top','93px');
}
$(window).off('resize.nsHeightUpdate');
$(window).on('resize.nsHeightUpdate',sliderParallaxUpdateHeight);
}}
function parallaxCheck(){
$(window).off('scroll.nsParallaxScroll');
if($('.parallax_slider_outer').length > 0){
sliderParallaxInit();
if($('body[data-hhun="1"]').length > 0&&!$('#header-outer[data-remove-fixed="1"]').length > 0){
$('#header-outer').addClass('parallax-contained');
}}
}
parallaxCheck();
$('.portfolio-items a.pp:contains(Video), .swiper-container .buttons a.pp').on('click', function(){
$('.swiper-slide').each(function(){
if($(this).find('.video-wrap video').length > 0){
$(this).find('.video-wrap video').get(0).pause();
}});
});
function hexConvert(x){
return ("0" + parseInt(x).toString(16)).slice(-2);
}
$.cssHooks.backgroundColor={
get: function(elem){
var bg;
if(elem.currentStyle){
bg=elem.currentStyle["backgroundColor"];
}
else if(window.getComputedStyle){
bg=document.defaultView.getComputedStyle(elem,null).getPropertyValue("background-color");
}
if(bg.search("rgb")==-1){
return bg;
}else{
bg=bg.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
if(bg){
return "#" + hexConvert(bg[1]) + hexConvert(bg[2]) + hexConvert(bg[3]);
}}
}}
$('.swiper-slide.external-full-link a.entire-slide-link').attr('target', '_blank');
$('.swiper-slide.external-button-1 .buttons > div:nth-child(1) a').attr('target', '_blank');
$('.swiper-slide.external-button-2 .buttons > div:nth-child(2) a').attr('target', '_blank');
headerPadding=headerPadding - headerPadding/1.8;
$('body').on('click','.slider-down-arrow',function(){
if($(this).parents('#nectar_fullscreen_rows').length > 0){
if($('#fp-nav li .active').parent().next('li').length > 0){
$('#fp-nav li .active').parent().next('li').find('a').trigger('click');
}
return;
}
var $currentSlider=$(this).parents('.swiper-container');
var $topDistance=$currentSlider.attr('data-height');
var $offset=($currentSlider.parents('.first-section').length===0||$('#header-outer[data-transparent-header="true"]').length===0) ? $currentSlider.offset().top:0;
var materialSecondary=0;
if($('body.material').length > 0&&$('#header-secondary-outer').length > 0){ materialSecondary=$('#header-secondary-outer').height(); }
if($('body[data-permanent-transparent="1"]').length===0){
if(!$('body').hasClass('mobile')){
if($('body[data-hhun="1"]').length > 0){
$('body,html').stop().animate({
scrollTop: parseInt($topDistance) + $offset + 2
},1000,'easeInOutCubic')
}else{
if($('#header-outer[data-condense="true"]').length > 0){
var $headerSpan9=$('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');
var $secondaryHeaderHeight=($('#header-secondary-outer').length > 0) ? $('#header-secondary-outer').height():0;
$headerNavSpace=$('#header-outer').height() - (parseInt($headerSpan9.position().top) - parseInt($('#header-outer #logo').css('margin-top'))) - parseInt($secondaryHeaderHeight);
$('body,html').stop().animate({
scrollTop: parseInt($topDistance - $headerNavSpace) + 2
},1000,'easeInOutCubic');
}else{
$('body,html').stop().animate({
scrollTop: parseInt($topDistance - $('#header-space').height()) + parseInt(shrinkNum) + headerPadding*2 + $offset + 2 + materialSecondary
},1000,'easeInOutCubic');
}}
}else{
var $scrollPos=($('#header-outer[data-mobile-fixed="1"]').length > 0) ? parseInt($topDistance) - $('#header-space').height() + parseInt($currentSlider.offset().top) + 2:parseInt($topDistance) + parseInt($currentSlider.offset().top) + 2;
$('body,html').stop().animate({
scrollTop: $scrollPos
},1000,'easeInOutCubic')
}}else{
$('body,html').stop().animate({
scrollTop: parseInt($topDistance) + parseInt($currentSlider.offset().top) + 2
},1000,'easeInOutCubic')
}
return false;
});
});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(u){"use strict";return u.widget("ui.sortable",u.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i))||(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=u("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),u.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,o,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),u.ui.ddmanager)&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push(["function"==typeof o.options.items?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?u(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,o=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=u("<"+o+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===o?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(t)):"tr"===o?i._createTrPlaceholder(i.currentItem,t):"img"===o&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=u(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td>&#160;</td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i)&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&u.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],i=u(i.containment).offset(),e="hidden"!==u(t).css("overflow"),this.containment=[i.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(P){"use strict";return P.widget("ui.draggable",P.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<P(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=P(this);return P("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=P.ui.safeActiveElement(this.document[0]);P(t.target).closest(e).length||P.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),P.ui.ddmanager&&(P.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===P(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),P.ui.ddmanager&&!e.dropBehaviour&&P.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),P.ui.ddmanager&&P.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new P.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",P.ui.ddmanager&&P.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return P.ui.ddmanager&&!this.options.dropBehaviour&&(s=P.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?P(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),P.ui.ddmanager&&P.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),P.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new P.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!P(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s="function"==typeof e.helper,t=s?P(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&P.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,s=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[P(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,P(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,P(window).scrollLeft()+P(window).width()-this.helperProportions.width-this.margins.left,P(window).scrollTop()+(P(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,P(s).width()-this.helperProportions.width-this.margins.left,(P(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(s=P(e.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var s,i=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(s=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<s[0]&&(n=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(n=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3])&&(r=s[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,r=!s||e-this.offset.click.top>=s[1]||e-this.offset.click.top>s[3]?e:e-this.offset.click.top>=s[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,n=!s||t-this.offset.click.left>=s[0]||t-this.offset.click.left>s[2]?t:t-this.offset.click.left>=s[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(n=this.originalPageX),"x"===i.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,s){return s=s||this._uiHash(),P.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),P.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),P.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var i=P.extend({},t,{item:s.element});s.sortables=[],P(s.options.connectToSortable).each(function(){var t=P(this).sortable("instance");t&&!t.options.disabled&&(s.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,s){var i=P.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,P.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(s,i,o){P.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,P.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&P.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},s.target=e.currentItem[0],e._mouseCapture(s,!0),e._mouseStart(s,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",s),o.dropped=e.element,P.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(s),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",s,e._uiHash(e)),e._mouseStop(s,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(s),i.position=o._generatePosition(s,!0),o._trigger("fromSortable",s),o.dropped=!1,P.each(o.sortables,function(){this.refreshPositions()}))})}}),P.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var i=P("body"),s=s.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,s){s=s.options;s._cursor&&P("body").css("cursor",s._cursor)}}),P.ui.plugin.add("draggable","opacity",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(t,e,s){s=s.options;s._opacity&&P(e.helper).css("opacity",s._opacity)}}),P.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var i=s.options,o=!1,n=s.scrollParentNotHidden[0],r=s.document[0];n!==r&&"HTML"!==n.tagName?(i.axis&&"x"===i.axis||(s.overflowOffset.top+n.offsetHeight-t.pageY<i.scrollSensitivity?n.scrollTop=o=n.scrollTop+i.scrollSpeed:t.pageY-s.overflowOffset.top<i.scrollSensitivity&&(n.scrollTop=o=n.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(s.overflowOffset.left+n.offsetWidth-t.pageX<i.scrollSensitivity?n.scrollLeft=o=n.scrollLeft+i.scrollSpeed:t.pageX-s.overflowOffset.left<i.scrollSensitivity&&(n.scrollLeft=o=n.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-P(r).scrollTop()<i.scrollSensitivity?o=P(r).scrollTop(P(r).scrollTop()-i.scrollSpeed):P(window).height()-(t.pageY-P(r).scrollTop())<i.scrollSensitivity&&(o=P(r).scrollTop(P(r).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-P(r).scrollLeft()<i.scrollSensitivity?o=P(r).scrollLeft(P(r).scrollLeft()-i.scrollSpeed):P(window).width()-(t.pageX-P(r).scrollLeft())<i.scrollSensitivity&&(o=P(r).scrollLeft(P(r).scrollLeft()+i.scrollSpeed)))),!1!==o&&P.ui.ddmanager&&!i.dropBehaviour&&P.ui.ddmanager.prepareOffsets(s,t)}}),P.ui.plugin.add("draggable","snap",{start:function(t,e,s){var i=s.options;s.snapElements=[],P(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=P(this),e=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,s){for(var i,o,n,r,l,a,h,p,c,f=s.options,d=f.snapTolerance,g=e.offset.left,u=g+s.helperProportions.width,m=e.offset.top,v=m+s.helperProportions.height,_=s.snapElements.length-1;0<=_;_--)a=(l=s.snapElements[_].left-s.margins.left)+s.snapElements[_].width,p=(h=s.snapElements[_].top-s.margins.top)+s.snapElements[_].height,u<l-d||a+d<g||v<h-d||p+d<m||!P.contains(s.snapElements[_].item.ownerDocument,s.snapElements[_].item)?(s.snapElements[_].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(h-v)<=d,o=Math.abs(p-m)<=d,n=Math.abs(l-u)<=d,r=Math.abs(a-g)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),c=i||o||n||r,"outer"!==f.snapMode&&(i=Math.abs(h-m)<=d,o=Math.abs(p-v)<=d,n=Math.abs(l-g)<=d,r=Math.abs(a-u)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),!s.snapElements[_].snapping&&(i||o||n||r||c)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=i||o||n||r||c)}}),P.ui.plugin.add("draggable","stack",{start:function(t,e,s){var i,s=s.options,s=P.makeArray(P(s.stack)).sort(function(t,e){return(parseInt(P(t).css("zIndex"),10)||0)-(parseInt(P(e).css("zIndex"),10)||0)});s.length&&(i=parseInt(P(s[0]).css("zIndex"),10)||0,P(s).each(function(t){P(this).css("zIndex",i+t)}),this.css("zIndex",i+s.length))}}),P.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(t,e,s){s=s.options;s._zIndex&&P(e.helper).css("zIndex",s._zIndex)}}),P.ui.draggable});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./draggable","./mouse","../version","../widget"],e):e(jQuery)}(function(a){"use strict";function h(e,t,i){return t<=e&&e<t+i}return a.widget("ui.droppable",{version:"1.13.3",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){a.ui.ddmanager.droppables[e]=a.ui.ddmanager.droppables[e]||[],a.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=a.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,t){var i;"accept"===e?this.accept="function"==typeof t?t:function(e){return e.is(t)}:"scope"===e&&(i=a.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(t)),this._super(e,t)},_activate:function(e){var t=a.ui.ddmanager.current;this._addActiveClass(),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=a.ui.ddmanager.current;this._removeActiveClass(),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=a.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||a.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=a(this).droppable("instance");if(e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&a.ui.intersect(i,a.extend(e,{offset:e.element.offset()}),e.options.tolerance,t))return!(s=!0)}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),a.ui.intersect=function(e,t,i,s){if(!t.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,n=o+e.helperProportions.width,a=r+e.helperProportions.height,l=t.offset.left,p=t.offset.top,c=l+t.proportions().width,d=p+t.proportions().height;switch(i){case"fit":return l<=o&&n<=c&&p<=r&&a<=d;case"intersect":return l<o+e.helperProportions.width/2&&n-e.helperProportions.width/2<c&&p<r+e.helperProportions.height/2&&a-e.helperProportions.height/2<d;case"pointer":return h(s.pageY,p,t.proportions().height)&&h(s.pageX,l,t.proportions().width);case"touch":return(p<=r&&r<=d||p<=a&&a<=d||r<p&&d<a)&&(l<=o&&o<=c||l<=n&&n<=c||o<l&&c<n);default:return!1}},!(a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,s,o=a.ui.ddmanager.droppables[e.options.scope]||[],r=t?t.type:null,n=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(s=0;s<n.length;s++)if(n[s]===o[i].element[0]){o[i].proportions().height=0;continue e}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===r&&o[i]._activate.call(o[i],t),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return a.each((a.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t))}),i},dragStart:function(e,t){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)})},drag:function(o,r){o.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(o,r),a.each(a.ui.ddmanager.droppables[o.options.scope]||[],function(){var e,t,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=a.ui.intersect(o,this,this.options.tolerance,r))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return a(this).droppable("instance").options.scope===t})).length)&&((e=a(i[0]).droppable("instance")).greedyChild="isover"===s),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),e)&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,r))})},dragStop:function(e,t){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||a.ui.ddmanager.prepareOffsets(e,t)}})!==a.uiBackCompat&&a.widget("ui.droppable",a.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),a.ui.droppable});
!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(u){var f,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],w=Array.prototype.slice;if(u.event.fixHooks)for(var i=e.length;i;)u.event.fixHooks[e[--i]]=u.event.mouseHooks;var c=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,{passive:false});else this.onmousewheel=n;u.data(this,"mousewheel-line-height",c.getLineHeight(this)),u.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),i=t["offsetParent"in u.fn?"offsetParent":"parent"]();return i.length||(i=u("body")),parseInt(i.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,i=e||window.event,n=w.call(arguments,1),o=0,l=0,s=0;if((e=u.event.fix(i)).type="mousewheel","detail"in i&&(s=-1*i.detail),"wheelDelta"in i&&(s=i.wheelDelta),"wheelDeltaY"in i&&(s=i.wheelDeltaY),"wheelDeltaX"in i&&(l=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(l=-1*s,s=0),o=0===s?l:s,"deltaY"in i&&(o=s=-1*i.deltaY),"deltaX"in i&&(l=i.deltaX,0===s&&(o=-1*l)),0!==s||0!==l){if(1===i.deltaMode){var a=u.data(this,"mousewheel-line-height");o*=a,s*=a,l*=a}else if(2===i.deltaMode){var h=u.data(this,"mousewheel-page-height");o*=h,s*=h,l*=h}if(t=Math.max(Math.abs(s),Math.abs(l)),(!d||t<d)&&g(i,d=t)&&(d/=40),g(i,t)&&(o/=40,l/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/d),l=Math[1<=l?"floor":"ceil"](l/d),s=Math[1<=s?"floor":"ceil"](s/d),c.settings.normalizeOffset&&this.getBoundingClientRect){var r=this.getBoundingClientRect();e.offsetX=e.clientX-r.left,e.offsetY=e.clientY-r.top}return e.deltaX=l,e.deltaY=s,e.deltaFactor=d,e.deltaMode=0,n.unshift(e,o,l,s),f&&window.clearTimeout(f),f=window.setTimeout(m,200),(u.event.dispatch||u.event.handle).apply(this,n)}}function m(){d=null}function g(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}u.fn.extend({mousewheel:function(e){return e?this.on("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.off("mousewheel",e)}})});
var headerEl=document.getElementById("header-outer"),headerSpaceEl=document.getElementById("header-space");void 0!==headerEl&&null!=headerEl&&void 0!==headerSpaceEl&&null!=headerSpaceEl&&headerSpaceEl.hasAttribute("data-secondary-header-display")&&(headerSpaceEl.style.height=headerEl.clientHeight+"px"),jQuery(function(e){"use strict";var t,a,r,n,o,d,i=!1;function h(){var a=t.offset().top;e("#page-header-wrap.fullscreen-header").css("height","auto"),t.css("height",parseInt(window.innerHeight)-parseInt(a)+"px")}if(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)&&(i=!0),i&&e("#page-header-bg.fullscreen-header").length>0){t=e("#page-header-bg"),h();var l=window.innerWidth,s=window.innerHeight;e(window).resize(function(){e(window).width()!=l&&e(window).height!=s&&(h(),l=window.innerWidth,s=window.innerHeight)})}i&&e(".nectar_fullscreen_zoom_recent_projects").length>0&&(a=e(".body-border-top").length>0&&e(window).width()>1e3?e(".body-border-top").height():0,e(".nectar_fullscreen_zoom_recent_projects").each(function(){e(this).parents(".first-section").length>0?e(this).css("height",e(window).height()-e(this).offset().top-a):e(this).css("height",e(window).height())})),e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&(r=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),n=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3'),o=e("#header-secondary-outer"),(d=n.find("#logo").clone()).is('[data-supplied-ml="true"]')&&d.find("img:not(.mobile-only-logo)").remove(),d.find("img.starting-logo").remove(),o.length>0&&o.addClass("centered-menu-bottom-bar"),d.removeAttr("id").addClass("logo-clone"),e('#header-outer[data-condense="true"]').length>0&&0==e('#header-outer[data-menu-bottom-bar-align="left"]').length&&r.prepend(d)),e('#page-header-bg[data-animate-in-effect="zoom-out"]').addClass("loaded")});
jQuery(function(t){!function(){var e="";if(t(".nectar-slider-wrap").each(function(){if(t(this).find(".swiper-container[data-tho]").length>0){var i=t(this).find(".swiper-container").attr("data-tho"),a=t(this).find(".swiper-container").attr("data-tco"),n=t(this).find(".swiper-container").attr("data-pho"),d=t(this).find(".swiper-container").attr("data-pco");"auto"==i&&"auto"==a||(e+="@media only screen and (max-width: 999px) and (min-width: 690px){","auto"!=i&&(e+="#"+t(this).attr("id")+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content .ns-heading-el, #boxed .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content .ns-heading-el, body .nectar-slider-wrap#"+t(this).attr("id")+'[data-full-width="true"] .swiper-slide .content .ns-heading-el, body .nectar-slider-wrap#'+t(this).attr("id")+'[data-full-width="boxed-full-width"] .swiper-slide .content .ns-heading-el, body .full-width-content .vc_span12 .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content .ns-heading-el { font-size:"+i+"px!important; line-height:"+(parseInt(i)+10)+"px!important;  }"),"auto"!=n&&(e+="#"+t(this).attr("id")+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content p, #boxed .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content p, body .nectar-slider-wrap#"+t(this).attr("id")+'[data-full-width="true"] .swiper-slide .content p, body .nectar-slider-wrap#'+t(this).attr("id")+'[data-full-width="boxed-full-width"] .swiper-slide .content p, body .full-width-content .vc_span12 .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content p { font-size:"+a+"px!important; line-height:"+(parseInt(a)+10)+"px!important;  }"),e+="}"),"auto"==n&&"auto"==d||(e+="@media only screen and (max-width: 690px){","auto"!=n&&(e+="#"+t(this).attr("id")+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content .ns-heading-el, #boxed .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content .ns-heading-el, body .nectar-slider-wrap#"+t(this).attr("id")+'[data-full-width="true"] .swiper-slide .content .ns-heading-el, body .nectar-slider-wrap#'+t(this).attr("id")+'[data-full-width="boxed-full-width"] .swiper-slide .content .ns-heading-el, body .full-width-content .vc_span12 .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content .ns-heading-el { font-size:"+n+"px!important; line-height:"+(parseInt(n)+10)+"px!important;  }"),"auto"!=n&&(e+="#"+t(this).attr("id")+'.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content p, #boxed .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content p,  body .nectar-slider-wrap#"+t(this).attr("id")+'[data-full-width="true"] .swiper-slide .content p, body .nectar-slider-wrap#'+t(this).attr("id")+'[data-full-width="boxed-full-width"] .swiper-slide .content p, body .full-width-content .vc_span12 .nectar-slider-wrap#'+t(this).attr("id")+" .swiper-slide .content p { font-size:"+d+"px!important; line-height:"+(parseInt(d)+10)+"px!important;  }"),e+="}")}}),e.length>1){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),i.appendChild(a),t(".nectar-slider-wrap .content").css("visibility","visible")}}()});
(function(k){k.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var d=document.createElement("div");var q={};function b(v){if(v in d.style){return v}var u=["Moz","Webkit","O","ms"];var r=v.charAt(0).toUpperCase()+v.substr(1);if(v in d.style){return v}for(var t=0;t<u.length;++t){var s=u[t]+r;if(s in d.style){return s}}}function e(){d.style[q.transform]="";d.style[q.transform]="rotateY(90deg)";return d.style[q.transform]!==""}var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;q.transition=b("transition");q.transitionDelay=b("transitionDelay");q.transform=b("transform");q.transformOrigin=b("transformOrigin");q.transform3d=e();var i={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var f=q.transitionEnd=i[q.transition]||null;for(var p in q){if(q.hasOwnProperty(p)&&typeof k.support[p]==="undefined"){k.support[p]=q[p]}}d=null;k.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};k.cssHooks["transit:transform"]={get:function(r){return k(r).data("transform")||new j()},set:function(s,r){var t=r;if(!(t instanceof j)){t=new j(t)}if(q.transform==="WebkitTransform"&&!a){s.style[q.transform]=t.toString(true)}else{s.style[q.transform]=t.toString()}k(s).data("transform",t)}};k.cssHooks.transform={set:k.cssHooks["transit:transform"].set};if(k.fn.jquery<"1.8"){k.cssHooks.transformOrigin={get:function(r){return r.style[q.transformOrigin]},set:function(r,s){r.style[q.transformOrigin]=s}};k.cssHooks.transition={get:function(r){return r.style[q.transition]},set:function(r,s){r.style[q.transition]=s}}}n("scale");n("translate");n("rotate");n("rotateX");n("rotateY");n("rotate3d");n("perspective");n("skewX");n("skewY");n("x",true);n("y",true);function j(r){if(typeof r==="string"){this.parse(r)}return this}j.prototype={setFromString:function(t,s){var r=(typeof s==="string")?s.split(","):(s.constructor===Array)?s:[s];r.unshift(t);j.prototype.set.apply(this,r)},set:function(s){var r=Array.prototype.slice.apply(arguments,[1]);if(this.setter[s]){this.setter[s].apply(this,r)}else{this[s]=r.join(",")}},get:function(r){if(this.getter[r]){return this.getter[r].apply(this)}else{return this[r]||0}},setter:{rotate:function(r){this.rotate=o(r,"deg")},rotateX:function(r){this.rotateX=o(r,"deg")},rotateY:function(r){this.rotateY=o(r,"deg")},scale:function(r,s){if(s===undefined){s=r}this.scale=r+","+s},skewX:function(r){this.skewX=o(r,"deg")},skewY:function(r){this.skewY=o(r,"deg")},perspective:function(r){this.perspective=o(r,"px")},x:function(r){this.set("translate",r,null)},y:function(r){this.set("translate",null,r)},translate:function(r,s){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(r!==null&&r!==undefined){this._translateX=o(r,"px")}if(s!==null&&s!==undefined){this._translateY=o(s,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var r=(this.scale||"1,1").split(",");if(r[0]){r[0]=parseFloat(r[0])}if(r[1]){r[1]=parseFloat(r[1])}return(r[0]===r[1])?r[0]:r},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var r=0;r<=3;++r){if(t[r]){t[r]=parseFloat(t[r])}}if(t[3]){t[3]=o(t[3],"deg")}return t}},parse:function(s){var r=this;s.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,v,u){r.setFromString(v,u)})},toString:function(t){var s=[];for(var r in this){if(this.hasOwnProperty(r)){if((!q.transform3d)&&((r==="rotateX")||(r==="rotateY")||(r==="perspective")||(r==="transformOrigin"))){continue}if(r[0]!=="_"){if(t&&(r==="scale")){s.push(r+"3d("+this[r]+",1)")}else{if(t&&(r==="translate")){s.push(r+"3d("+this[r]+",0)")}else{s.push(r+"("+this[r]+")")}}}}}return s.join(" ")}};function m(s,r,t){if(r===true){s.queue(t)}else{if(r){s.queue(r,t)}else{t()}}}function h(s){var r=[];k.each(s,function(t){t=k.camelCase(t);t=k.transit.propertyMap[t]||k.cssProps[t]||t;t=c(t);if(k.inArray(t,r)===-1){r.push(t)}});return r}function g(s,v,x,r){var t=h(s);if(k.cssEase[x]){x=k.cssEase[x]}var w=""+l(v)+" "+x;if(parseInt(r,10)>0){w+=" "+l(r)}var u=[];k.each(t,function(z,y){u.push(y+" "+w)});return u.join(", ")}k.fn.transition=k.fn.transit=function(z,s,y,C){var D=this;var u=0;var w=true;if(typeof s==="function"){C=s;s=undefined}if(typeof y==="function"){C=y;y=undefined}if(typeof z.easing!=="undefined"){y=z.easing;delete z.easing}if(typeof z.duration!=="undefined"){s=z.duration;delete z.duration}if(typeof z.complete!=="undefined"){C=z.complete;delete z.complete}if(typeof z.queue!=="undefined"){w=z.queue;delete z.queue}if(typeof z.delay!=="undefined"){u=z.delay;delete z.delay}if(typeof s==="undefined"){s=k.fx.speeds._default}if(typeof y==="undefined"){y=k.cssEase._default}s=l(s);var E=g(z,s,y,u);var B=k.transit.enabled&&q.transition;var t=B?(parseInt(s,10)+parseInt(u,10)):0;if(t===0){var A=function(F){D.css(z);if(C){C.apply(D)}if(F){F()}};m(D,w,A);return D}var x={};var r=function(H){var G=false;var F=function(){if(G){D.unbind(f,F)}if(t>0){D.each(function(){this.style[q.transition]=(x[this]||null)})}if(typeof C==="function"){C.apply(D)}if(typeof H==="function"){H()}};if((t>0)&&(f)&&(k.transit.useTransitionEnd)){G=true;D.bind(f,F)}else{window.setTimeout(F,t)}D.each(function(){if(t>0){this.style[q.transition]=E}k(this).css(z)})};var v=function(F){this.offsetWidth;r(F)};m(D,w,v);return this};function n(s,r){if(!r){k.cssNumber[s]=true}k.transit.propertyMap[s]=q.transform;k.cssHooks[s]={get:function(v){var u=k(v).css("transit:transform");return u.get(s)},set:function(v,w){var u=k(v).css("transit:transform");u.setFromString(s,w);k(v).css({"transit:transform":u})}}}function c(r){return r.replace(/([A-Z])/g,function(s){return"-"+s.toLowerCase()})}function o(s,r){if((typeof s==="string")&&(!s.match(/^[\-0-9\.]+$/))){return s}else{return""+s+r}}function l(s){var r=s;if(k.fx.speeds[r]){r=k.fx.speeds[r]}return o(r,"ms")}k.transit.getTransitionValue=g})(jQuery);
!function(){"use strict";var t=0,e={};function i(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,o),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=o.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),e[this.key]=this,t+=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 e[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 i=[];for(var o in e)i.push(e[o]);for(var n=0,r=i.length;n<r;n++)i[n][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.nectarDOMInfo&&window.nectarDOMInfo.winH?window.nectarDOMInfo.winH:window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return window.nectarDOMInfo&&window.nectarDOMInfo.winW?window.nectarDOMInfo.winW: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 t(t){window.setTimeout(t,1e3/60)}var e=0,i={},o=window.Waypoint,n=window.onload;function r(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),o=this.element==this.element.window;t&&e&&!o&&(this.adapter.off(".waypoints"),delete i[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))})},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",function(){t.didScroll&&!o.isTouch||(t.didScroll=!0,o.requestAnimationFrame(e))})},r.prototype.handleResize=function(){setTimeout(function(){o.Context.refreshAll()},150)},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:0,oldScroll:0,forward:"right",backward:"left"},vertical:{newScroll:window.nectarDOMInfo?window.nectarDOMInfo.scrollTop:0,oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},r.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 o=0,n=t.length;o<n;o++)t[o].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var r 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[r];for(var a in this.waypoints[r]){var l,h,p,c,u=this.waypoints[r][a],d=u.options.offset,f=u.triggerPoint,w=0,y=null==f;u.element!==u.element.window&&(w=u.adapter.offset()[s.offsetProp]),"function"==typeof d?d=d.apply(u):"string"==typeof d&&(d=parseFloat(d),u.options.offset.indexOf("%")>-1&&(d=Math.ceil(s.contextDimension*d/100))),l=s.contextScroll-s.contextOffset,u.triggerPoint=Math.floor(w+l-d),h=f<s.oldScroll,p=u.triggerPoint>=s.oldScroll,c=!h&&!p,!y&&(h&&p)?(u.queueTrigger(s.backward),n[u.group.id]=u.group):!y&&c?(u.queueTrigger(s.forward),n[u.group.id]=u.group):y&&s.oldScroll>=u.triggerPoint&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return o.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){n&&n(),r.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},o=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[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 i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;r<s;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&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 i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),t.each(["extend","inArray","isEmptyObject"],function(e,o){i[o]=t[o]}),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],o=arguments[0];return e.isFunction(arguments[0])&&((o=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var n=e.extend({},o,{element:this});"string"==typeof n.context&&(n.context=e(this).closest(n.context)[0]),i.push(new t(n))}),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}();
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)},delay=function(ev,$el,s,out){return delete $el.data("hoverIntent")[s.id],out.apply($el[0],[ev])};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var handleHover=function(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){delay(ev,$el,state,cfg.out)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var m=l[o];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop()-parseInt(e("html").css("margin-top")),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var g=t.wH=c.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(g)){var v=t._getScrollbarSize();v&&(h.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),u("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(g),u("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl,t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close"></button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,h,v,C=function(){v&&(h.after(v.addClass(g)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){C()})},getInline:function(n,i){if(C(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(h||(g=o.hiddenClass,h=d(g),g="mfp-"+g),v=a.after(h).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var y,w=function(){y&&e(document.body).removeClass(y)},b=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),y=t.st.ajax.cursor,p("Close.ajax",b),p("BeforeChange.ajax",b)},getAjax:function(n){y&&e(document.body).addClass(y),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){w(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var I,x=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,I&&clearInterval(I),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){I&&clearInterval(I),I=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(I),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:x(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(I&&clearInterval(I),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var k;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var T=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtube_compressed_url:{index:"youtu.be/",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?T():"iframe"===n&&T(!0))}),p("Close.iframe",function(){T()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var _=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},E=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=E(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?E(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=_(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=_(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=_(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var P,S,O;e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),P="ontouchstart"in window,S=function(){c.off("touchmove"+O+" touchend"+O)},O=".mfpFastClick",e.fn.mfpFastClick=function(t){return e(this).each(function(){var n,i,o,a,r,s,l,p=e(this);P&&p.on("touchstart"+O,function(e){r=!1,l=1,s=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],o=s.clientX,a=s.clientY,c.on("touchmove"+O,function(e){s=e.originalEvent?e.originalEvent.touches:e.touches,l=s.length,s=s[0],(Math.abs(s.clientX-o)>10||Math.abs(s.clientY-a)>10)&&(r=!0,S())}).on("touchend"+O,function(e){S(),r||l>1||(n=!0,e.preventDefault(),clearTimeout(i),i=setTimeout(function(){n=!1},1e3),t())})}),p.on("click"+O,function(){n||t()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+O+" click"+O),P&&c.off("touchmove"+O+" touchend"+O)},m()});
!function(e){"use strict";e(window).on("resize",function(){e(".sf-menu ul.tracked-pos").removeClass("tracked-pos")});var t,s,n,a,o,r,i,h,l,d,p,u,f,c,m,v,g=(s="sf-breadcrumb",n="sf-js-enabled",a="sf-with-ul",o="sf-arrows",r=function(){var t=/iPhone|iPad|iPod/i.test(navigator.userAgent);return t&&e("html").css("cursor","pointer").on("click",e.noop),t}(),i="behavior"in(t=document.documentElement.style)&&"fill"in t&&/iemobile/i.test(navigator.userAgent),h=function(e,t){var s=n;t.cssArrows&&(s+=" "+o),e.toggleClass(s)},l=function(e){e.children("a").toggleClass(a)},d=function(e){var t=e.css("ms-touch-action");t="pan-y"===t?"auto":"pan-y",e.css("ms-touch-action",t)},p=function(t){var s=e(this),n=s.siblings(t.data.popUpSelector);n.length>0&&n.is(":hidden")&&(s.one("click.superfish",!1),"MSPointerDown"===t.type?s.trigger("focus"):e.proxy(u,s.parent("li"))())},u=function(){var t=e(this),s=v(t);e(this).parents(".megamenu").length>0||(clearTimeout(s.sfTimer),t.siblings().superfish("hide").end().superfish("show"))},f=function(){var t=e(this),s=v(t);r?e.proxy(c,t,s)():(clearTimeout(s.sfTimer),s.sfTimer=setTimeout(e.proxy(c,t,s),s.delay))},c=function(t){t.retainPath=e.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(m(this)),t.$path.length&&e.proxy(u,t.$path)())},m=function(e){return e.closest("."+n)},v=function(e){return m(e).data("sf-options")},{hide:function(t){if(this.length){var s=v(r=this);if(!s)return this;if(e(this).hasClass("menu-item-over")&&e(this).hasClass("megamenu"))return!0;var n=!0===s.retainPath?s.$path:"",a=r.find("li."+s.hoverClass).add(this).not(n).removeClass(s.hoverClass).children(s.popUpSelector),o=s.speedOut;if(t&&(a.show(),o=0),s.retainPath=!1,s.onBeforeHide.call(a),"minimal"==s.dropdownStyle){var r=e(this);s.onHide.call(r)}else a.stop(!0,!0).animate(s.animationOut,o,function(){var t=e(this);s.onHide.call(t)});if(e(this).parents(".megamenu").length>0)return;e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&(0==e("#header-outer.scrolled-down").length&&0==e("#header-outer.small-nav").length&&0==e("#header-outer.detached").length&&0==e("#header-outer.fixed-menu").length&&e("#header-outer").addClass("transparent"),e('#header-outer[data-permanent-transparent="1"][data-transparent-header="true"]').length>0&&e("#header-outer").addClass("transparent"))}return this},show:function(){if(!(e(this).parents(".megamenu").length>0)){var t=v(this);if(!t)return this;var s=this.addClass(t.hoverClass).children(t.popUpSelector);if(e('#header-outer[data-megamenu-rt="1"]').length>0&&e(this).hasClass("megamenu")&&!e(this).hasClass("width-75")&&!e(this).hasClass("width-50")&&"true"==e("#header-outer").attr("data-transparent-header")&&(e("#header-outer").addClass("no-transition"),e("#header-outer").removeClass("transparent")),t.onBeforeShow.call(s),!s.hasClass("tracked-pos")&&!e(s).parents("li").hasClass("megamenu")&&!e(s).parents("ul").hasClass("sub-menu")&&s.offset()){s.addClass("temp-hidden-display");var n=e("#top .container").width(),a=s;a.offset().left-(e(window).width()-n)/2+a.width()<=e(window).width()-100?s.parents("li").removeClass("edge"):s.parents("li").addClass("edge"),s.removeClass("temp-hidden-display")}return"minimal"==t.dropdownStyle?t.onShow.call(s):s.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(s)}),s.hasClass("tracked-pos")||s.length>0&&s.parents(".sub-menu").length>0&&s.parents(".sf-menu").length>0&&s.offset().left+s.outerWidth()>e(window).width()&&(s.addClass("on-left-side"),s.find("ul").addClass("on-left-side")),s.addClass("tracked-pos"),this}},destroy:function(){return this.each(function(){var t,n=e(this),a=n.data("sf-options");if(!a)return!1;t=n.find(a.popUpSelector).parent("li"),clearTimeout(a.sfTimer),h(n,a),l(t),d(n),n.off(".superfish").off(".hoverIntent"),t.children(a.popUpSelector).attr("style",function(e,t){return t.replace(/display[^;]+;?/g,"")}),a.$path.removeClass(a.hoverClass+" "+s).addClass(a.pathClass),n.find("."+a.hoverClass).removeClass(a.hoverClass),a.onDestroy.call(n),n.removeData("sf-options")})},init:function(t){return this.each(function(){var n=e(this);if(n.data("sf-options"))return!1;var a=e.extend({},e.fn.superfish.defaults,t),o=n.find(a.popUpSelector).parent("li");a.$path=function(t,n){return t.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+s).filter(function(){return e(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)}(n,a),n.data("sf-options",a),h(n,a),l(o),d(n),function(t,s){var n="li:has("+s.popUpSelector+")";e.fn.hoverIntent&&!s.disableHI?t.hoverIntent(u,f,n):t.on("mouseenter.superfish",n,u).on("mouseleave.superfish",n,f);var a="MSPointerDown.superfish";r||(a+=" touchend.superfish"),i&&(a+=" mousedown.superfish"),t.on("focusin.superfish","li",u).on("focusout.superfish","li",f).on(a,"a",s,p)}(n,a),o.not("."+s).superfish("hide",!0),a.onInit.call(this)})}});e.fn.superfish=function(t,s){return g[t]?g[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?e.error("Method "+t+" does not exist on jQuery.fn.superfish"):g.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega, .nectar-global-section-megamenu",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,dropdownStyle:e('body[data-dropdown-style="minimal"]').length>0?"minimal":"classic"},e.fn.extend({hideSuperfishUl:g.hide,showSuperfishUl:g.show})}(jQuery);
!function(e,t,a){"use strict";var n,i,s=e(t),r=e("body"),o=e("#slide-out-widget-area"),l=e("#slide-out-widget-area-bg"),d=e("#header-outer"),c=e("#header-secondary-outer"),h=e("#header-outer #search-btn a"),u=e("#wpadminbar"),p=e("#ajax-loading-screen"),f=e(".body-border-top"),g=e("#page-header-bg"),m=e("#footer-outer"),v=!(!t.nectarOptions||!t.nectarOptions.delay_js||"1"!==t.nectarOptions.delay_js),b=e(".body-border-right").length>0?e(".body-border-right").width():0,w=d.is("[data-logo-height]")?parseInt(d.attr("data-logo-height")):30,y=d.is("[data-padding]")?parseInt(d.attr("data-padding")):28,_=d.is("[data-shrink-num]")?d.attr("data-shrink-num"):6,C=!!d.is('[data-condense="true"]'),x=!!d.is('[data-using-logo="1"]'),k=!!d.is('[data-header-resize="1"]'),$=!!d.is('[data-transparent-header="true"]'),T=(d.is('[data-mobile-fixed="1"]'),r.is("[data-header-format]")?r.attr("data-header-format"):"default"),I=r.is("[data-hhun]")?r.attr("data-hhun"):"",E=!!r.is('[data-contained-header="true"]'),O=r.is("[data-cae]")&&"swing"!==r.attr("data-cae")?r.attr("data-cae"):"easeOutCubic",z=r.is("[data-cad]")?r.attr("data-cad"):"650",H=e('body[data-animated-anchors="true"]').length>0,S=!(r.is('[data-m-animate="1"]')||!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)),A=t.nectarOptions&&t.nectarOptions.ocm_btn_position&&"left"===t.nectarOptions.ocm_btn_position?"left":"default",M=!(!t.nectarOptions||!t.nectarOptions.smooth_scroll||"true"!==t.nectarOptions.smooth_scroll),W=!(!t.nectarOptions||!t.nectarOptions.body_border_func||"vignette"!=t.nectarOptions.body_border_func),B=!(!t.nectarOptions||!t.nectarOptions.body_border_mobile||"1"!==t.nectarOptions.body_border_mobile),F=r.find(".body-border-top").height(),L=[],q=[],P=[],j=[],Y=[],R=[],V=[],X=[],N=[],D=[],Q=[],Z=[],G=[],U=[],J=[],K=[],ee=[],te=[],ae=[],ne=[],ie=[],se=[],re=[],oe=[],le=[],de=[],ce=[],he="",ue=!1,pe=!1,fe={},ge={animating:"false",perspect:"not-rolled",inUse:!1},me={$usingFullScreenRows:!1};f.length>0&&("#ffffff"==f.css("background-color")&&"light"==r.attr("data-header-color")||"rgb(255, 255, 255)"==f.css("background-color")&&"light"==r.attr("data-header-color")||f.css("background-color")==d.attr("data-user-set-bg"))&&(pe=!0);var ve=navigator.userAgent.match(/(iPod|iPhone|iPad)/)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2;(navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1||ve)&&(M=!1);var be={usingMobileBrowser:!!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/),usingIOS:!!(navigator.userAgent.match(/(iPod|iPhone|iPad)/)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2),usingTouchDevice:!!(navigator.maxTouchPoints&&navigator.maxTouchPoints>2),usingFrontEndEditor:void 0!==t.vc_iframe,getWindowSize:function(){be.winH=t.innerHeight,be.winW=t.innerWidth,be.adminBarHeight=u.length>0?u.height():0,be.secondaryHeaderHeight=c.length>0&&"none"!=c.css("display")?c.outerHeight():0,be.footerOuterHeight=m.length>0?m.outerHeight():0},scrollTop:0,clientX:0,clientY:0,scrollPosMouse:function(){return t.scrollY||s.scrollTop()},scrollPosRAF:function(){be.scrollTop=t.scrollY||s.scrollTop(),requestAnimationFrame(be.scrollPosRAF)},bindEvents:function(){be.usingMobileBrowser||(M||s.on("scroll",function(){be.scrollTop=be.scrollPosMouse()}),a.addEventListener("mousemove",function(e){be.clientX=e.clientX,be.clientY=e.clientY})),s.on("resize",be.getWindowSize),t.addEventListener("orientationchange",be.getWindowSize)},init:function(){u=e("#wpadminbar"),this.getWindowSize(),this.usingPhoneBrowser=!!(be.usingMobileBrowser&&be.winW<690),this.scrollTop=this.scrollPosMouse(),this.bindEvents(),this.usingFrontEndEditor=void 0!==t.vc_iframe}};t.nectarDOMInfo=be,be.init();var we,ye={materialOffCanvasOpen:!1,materialSearchOpen:!1,permanentTransHeader:!!d.is('[data-permanent-transparent="1"]'),animatedScrolling:!1,preventScroll:!1,ocmOpen:!1,ocmAnimating:!1,ocmInit:!1,mobileHeader:""};function _e(){Xt(),be.usingMobileBrowser||Rt(),En(),Pa(),e("#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul").each(function(){e(this).removeClass("on-left-side"),e(this).offset().left+e(this).outerWidth()>s.width()?(e(this).addClass("on-left-side"),e(this).find("ul").addClass("on-left-side")):(e(this).removeClass("on-left-side"),e(this).find("ul").removeClass("on-left-side"))}),Ae()}function Ce(){setTimeout(function(){Rt()},100)}function xe(){Mt(),Xt(),We(),Oa(),f&&(F=f.height()),be.usingMobileBrowser||Rt()}function ke(){e(".flex-gallery").each(function(){if(e().flexslider){var a=e(this);imagesLoaded(e(this),function(){var n=!a.find("ul").is('[data-d-autorotate="true"]');a.flexslider({animation:"fade",smoothHeight:!1,animationSpeed:500,useCSS:!1,touch:!0,slideshow:n}),e(".flex-gallery .flex-direction-nav li a.flex-next").html('<i class="fa fa-angle-right"></i>'),e(".flex-gallery .flex-direction-nav li a.flex-prev").html('<i class="fa fa-angle-left"></i>'),e(t).trigger("salient-parallax-bg-recalculate"),Lt()})}})}function $e(e,t){this.lastX=be.clientX,this.lastY=be.clientY,this.$el=e,this.iconType=t,this.timeout=!1,this.overEl=!1,this.initialCalc=!1,this.styleType="default",this.bgElSelector="",this.$dragEl="",this.$innerParallaxEl="",this.parallaxLastX=0,this.parallaxLastY=0,this.$viewEl="",this.$closeEl="",this.lerpDamp=.18,this.parallaxLerp=!0,this.arrowMarkup='<i class="fa fa-angle-left" role="none"></i><i class="fa fa-angle-right" role="none"></i>',this.createMarkup(),this.setup(),this.mouseBind()}function Te(){e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').each(function(){e(this).css({height:"",width:""});var t=parseInt(e(this).find("img").attr("height")),a=Qe(parseInt(e(this).find("img").attr("width")),t,2e3,parseInt(e(this).find("img").height())),n=e(this).find(".item-meta").length>0?e(this).find(".item-meta").outerHeight():0;e(this).css({height:a.height+n+"px",width:a.width+"px"})})}function Ie(){e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').length>0&&(Te(),s.on("smartresize",Te))}function Ee(){if(0==e(".nectar-flickity:not(.masonry)").length)return!1;j=[],Y=[],e(".nectar-flickity:not(.masonry)").each(function(t){j.push(new Oe(e(this),t))}),e(".nectar-carousel.nectar-flickity:not(.masonry)").length>0&&(be.usingMobileBrowser?t.addEventListener("orientationchange",ze):s.on("resize",ze))}function Oe(e,t){this.$el=e,this.index=t,this.instance={},this.$freeScrollBool=!(!this.$el.is("[data-free-scroll]")||"true"!=this.$el.attr("data-free-scroll")),this.$groupCellsBool=!0,this.$flickContainBool=!0,this.$flcikAttr=.025,this.$paginationBool=!1,this.$nextPrevArrowBool=!0,this.$setGallerySizeBool=!0,this.$imagesLoaded=!0,this.$flickCellAlign="center",this.fadeBool=!1,this.setup()}function ze(){var t=be.usingMobileBrowser?200:0;setTimeout(function(){e('.nectar-carousel.nectar-flickity:not(.masonry):not([data-adaptive-height="true"])').each(function(){He(e(this));var t=Flickity.data(e(this)[0]);t&&t.resize()})},t)}function He(t){var a=0;t.find(".flickity-slider > .cell").css("height","auto"),t.find(".flickity-slider > .cell").each(function(){e(this).height()>a&&(a=e(this).height())}),a<10&&(a="auto"),t.find(".flickity-slider > .cell").css("height",a+"px")}function Se(){e(".twentytwenty-container").each(function(){var t=e(this);0==t.find(".twentytwenty-handle").length&&e(this).imagesLoaded(function(){t.twentytwenty()})})}function Ae(){e("nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-left:not(.width-100)").each(function(){var t=e(this),a=e("header#top > .container > .row"),n=e(this).find("> ul.sub-menu, > .nectar-global-section-megamenu");if(t){if(n.width()+t.offset().left>be.winW)return e(this).addClass("align-middle"),!0;e(this).find("> ul.sub-menu, > .nectar-global-section-megamenu").css({right:a.width()-(t.offset().left+t.width()-a.offset().left)-e(this).find("> ul.sub-menu").width()+t.width(),left:"auto"}),e(this).removeClass("align-middle")}}),e("nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-right:not(.width-100)").each(function(){var t=e(this),a=e("header#top > .container > .row"),n=e(this).find("> ul.sub-menu, > .nectar-global-section-megamenu");if(t){if(t.offset().left+t.width()-n.width()<0)return e(this).addClass("align-middle"),!0;e(this).find("> ul.sub-menu, > .nectar-global-section-megamenu").css({right:a.width()-(t.offset().left+t.width()-a.offset().left),left:"auto"}),e(this).removeClass("align-middle")}}),e("nav:not(.left-side):not(.right-side) .sf-menu > .nectar-megamenu-menu-item.align-middle:not(.width-100)").each(function(){var t=e(this),a=e("header#top > .container > .row"),n=e(this).find("> ul.sub-menu, > .nectar-global-section-megamenu");if(t&&n.length>0){var i=a.width(),s=a.offset().left,r=t.offset().left,o=t.width(),l=n.width();n.css({right:i-(r+o-s)-l/2+o/2,left:"auto"});var d=n.offset();d.left<0?n.css({right:"auto",left:"0px"}):d.left+l>be.winW&&n.css({right:"0px",left:"auto"})}})}function Me(){var t=s.width(),a=e("header#top > .container").width();e("header#top nav:not(.left-side):not(.right-side) > ul > li.megamenu:not(.width-50):not(.width-75) > .sub-menu, header#top nav:not(.left-side):not(.right-side) > ul > li.megamenu:not(.width-50):not(.width-75) > .nectar-global-section-megamenu").css({"padding-left":(t-a)/2+"px","padding-right":(t+2-a)/2+"px",width:a,left:"-"+(t-a)/2+"px"})}function We(){be.winW<1e3&&"1"==r.attr("data-responsive")?(r.addClass("mobile"),e("header#top nav").css("display","none")):(r.removeClass("mobile"),e("header#top nav").css("display",""),e(".slide-out-widget-area-toggle #toggle-nav .lines-button").removeClass("close"))}function Be(){0!=e(".carousel").length&&("undefined"!=typeof SalientRecentProjectsCarousel&&e("ul.carousel.portfolio-items").each(function(t){re[t]=new SalientRecentProjectsCarousel(e(this))}),e('ul.carousel:not(".clients"):not(.portfolio-items)').each(function(){var a,n,i=e(this),s="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?"auto":3,o="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?"auto":"",l="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?500:453,d="true"==e(this).attr("data-autorotate"),c=!0,h=!0;e("body.ascend").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width")?e(this).find("li").length%3==0?(c=!0,h=!0):(c=!1,h=!0):(c=!0,h=!0),a=parseInt(e(this).attr("data-scroll-speed"))?parseInt(e(this).attr("data-scroll-speed")):700,n=e(this).is("[data-easing]")?e(this).attr("data-easing"):"linear";var u=i;0==i.find("img").length&&(u=r),imagesLoaded(u,function(){i.carouFredSel({circular:c,infinite:h,height:"auto",responsive:!0,items:{width:l,visible:{min:1,max:s}},swipe:{onTouch:!0,onMouse:!0,options:{excludedElements:"button, input, select, textarea, .noSwipe",tap:function(a,n){!e(n).attr("href")||e(n).is('[target="_blank"]')||e(n).is('[rel^="prettyPhoto"]')||e(n).is(".magnific-popup")||e(n).is(".magnific")||t.open(e(n).attr("href"),"_self")}},onBefore:function(){i.find(".work-item").trigger("mouseleave"),i.find(".work-item .work-info a").trigger("mouseup")}},scroll:{items:o,easing:n,duration:a,onBefore:function(){(e("body.ascend").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width"))&&i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length/i.triggerHandler("currentVisible").length))},onAfter:function(){(e("body.ascend").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width"))&&(i.parents(".carousel-wrap").find(".item-count .current").html(i.triggerHandler("currentPage")+1),i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length/i.triggerHandler("currentVisible").length)))}},prev:{button:function(){return i.parents(".carousel-wrap").find(".carousel-prev")}},next:{button:function(){return i.parents(".carousel-wrap").find(".carousel-next")}},auto:{play:d}},{transition:!0}).animate({opacity:1},1300),i.parents(".carousel-wrap").wrap('<div class="carousel-outer">'),"true"==i.parents(".carousel-wrap").attr("data-full-width")&&i.parents(".carousel-outer").css("overflow","visible"),(e("body.ascend").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width"))&&e('<div class="item-count"><span class="current">1</span>/<span class="total">'+i.find("> li").length/i.triggerHandler("currentVisible").length+"</span></div>").insertAfter(i.parents(".carousel-wrap").find(".carousel-prev")),i.addClass("finished-loading"),je()})}),s.off("smartresize.carouselHeightCalcs"),s.on("smartresize.carouselHeightCalcs",je))}function Fe(){0!==e(".owl-carousel[data-desktop-cols]").length&&e(".owl-carousel[data-desktop-cols]").each(function(){e(this).addClass("owl-theme");var t=e(this),a=t.attr("data-autorotate"),n=t.attr("data-autorotation-speed"),i=!!t.is('[data-loop="true"]'),s=!!r.hasClass("rtl");e(this).owlCarousel({responsive:{0:{items:e(this).attr("data-mobile-cols")},690:{items:e(this).attr("data-tablet-cols")},1000:{items:e(this).attr("data-desktop-small-cols")},1300:{items:e(this).attr("data-desktop-cols")}},autoplay:a,autoplayTimeout:n,loop:i,rtl:s,smartSpeed:350,onTranslate:function(){t.addClass("moving")},onTranslated:function(){t.removeClass("moving")}}),e(this).on("changed.owl.carousel",function(t){t.item.count-t.page.size==t.item.index&&e(t.target).find(".owl-dots div:last").addClass("active").siblings().removeClass("active")})})}function Le(e){var t=e.data.wooFlickity.selectedIndex+1;e.data.wooFlickityCount.text(t+"/"+e.data.wooFlickity.slides.length)}function qe(e,t,a){this.$el=e,this.index=a,this.type=t,this.instance={},this.setup()}function Pe(){0===e(".products-carousel").length&&0===e(".nectar-woo-flickity").length||(e(".products-carousel").each(function(t){new qe(e(this),"legacy",t)}),J=[],e(".nectar-woo-flickity").each(function(t){J.push(new qe(e(this),"flickity",t))}))}function je(){e('.carousel.finished-loading:not(".portfolio-items, .clients"), .caroufredsel_wrapper .products.finished-loading').each(function(){var t=0;e(this).find("> li").each(function(){e(this).height()>t&&(t=e(this).height())}),e(this).css("height",t+5),e(this).parents(".caroufredsel_wrapper").css("height",t+5),(e("body.ascend").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width"))&&(e(this).parents(".carousel-wrap").find(".item-count .current").html(Math.ceil((e(this).triggerHandler("currentPosition")+1)/e(this).triggerHandler("currentVisible").length)),e(this).parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(e(this).find("> li").length/e(this).triggerHandler("currentVisible").length)))})}function Ye(){0!==e(".carousel.clients").length&&(e(".carousel.clients").each(function(){var t,a=e(this),n=!e(this).hasClass("disable-autorotate");t=parseInt(e(this).attr("data-max"))?parseInt(e(this).attr("data-max")):5,s.width()<690&&"1"==r.attr("data-responsive")&&(t=2,e(this).addClass("phone"));var i=a;0==a.find("img").length&&(i=r),imagesLoaded(i,function(){a.carouFredSel({circular:!0,responsive:!0,items:{height:a.find("> div:first").height(),width:a.find("> div:first").width(),visible:{min:1,max:t}},swipe:{onTouch:!0,onMouse:!0},scroll:{items:1,easing:"easeInOutCubic",duration:"800",pauseOnHover:!0},auto:{play:n,timeoutDuration:2700}}).animate({opacity:1},1300),a.addClass("finished-loading"),a.parents(".carousel-wrap").wrap('<div class="carousel-outer">'),s.trigger("resize")})}),s.off("smartresize.clientsCarouselHeight",Re),s.on("smartresize.clientsCarouselHeight",Re))}function Re(){var t=0;e(".carousel.clients.finished-loading").each(function(){e(this).find("> div").each(function(){e(this).height()>t&&(t=e(this).height())}),e(this).css("height",t),e(this).parent().css("height",t)})}function Ve(){r.on("mousedown",'.caroufredsel_wrapper, .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a',function(){e(this).addClass("active")}),r.on("mouseup",'.caroufredsel_wrapper, .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a',function(){e(this).removeClass("active")}),e("body.ascend, body.material").on("mouseover",".carousel-next",function(){e(this).parent().find(".carousel-prev, .item-count").addClass("next-hovered")}),e("body.ascend, body.material").on("mouseleave",".carousel-next",function(){e(this).parent().find(".carousel-prev, .item-count").removeClass("next-hovered")})}function Xe(){return-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")}function Ne(e,t,a){return Math.max(Math.min(e,t),a)}function De(e,t,a){return(1-a)*e+a*t}function Qe(e,t,a,n){var i=Math.min(a/e,n/t);return{width:e*i,height:t*i}}function Ze(t){if(t){var a=e(t.bold());return a.find("script").remove(),a.html()}return""}function Ge(){var t;if(r.is('[data-header-format="left-header"]')&&be.winW>=1e3||r.is('[data-hhun="1"]')||e(".page-template-template-no-header-footer").length>0||e(".page-template-template-no-header").length>0)t=0;else if(!0===E)t=e("#header-outer").outerHeight()+parseInt(e("#header-outer").css("margin-top"));else{var a=y-y/1.8,n=d.outerHeight();(c.length>0&&r.is(".material")||c.length>0&&!r.is(".material")&&be.winW<1e3)&&(n-=be.secondaryHeaderHeight),t=d.is('[data-header-resize="1"]')&&!d.is(".small-nav")&&be.winW>=1e3?n-(parseInt(_)+2*a):n}if(be.winW>=1e3&&e('#header-outer[data-condense="true"]').length>0){var i=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');t=d.height()-(parseInt(i.position().top)-parseInt(d.find("#logo").css("margin-top")))-parseInt(be.secondaryHeaderHeight)}return t}function Ue(e,t,n){var i=a.querySelector(e);i&&(i.onload=function(){t>0?setTimeout(n,t):n()})}function Je(){be.usingMobileBrowser||(this.state={ocmFocus:!1},this.init(),this.events())}function Ke(e){return("0"+parseInt(e).toString(16)).slice(-2)}function et(){return Math.floor(1e4*Math.random())}function tt(e,n,i){var s=t.scrollY||a.documentElement.scrollTop,r=(e=e||0,i=i||"easeOutSine",0),o=Math.max(.1,Math.min(Math.abs(s-e)/1300,1.3)),l={easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)}};!function a(){var n=(r+=1/60)/o,d=l[i](n);n<1?(requestAnimationFrame(a),t.scrollTo(0,s+(e-s)*d)):t.scrollTo(0,e)}()}function at(){var t=e("body[data-header-breakpoint]").length>0&&"1000"!=r.attr("data-header-breakpoint")?parseInt(r.attr("data-header-breakpoint")):1e3,a=!1;return 1e3!=t&&be.winW>1e3&&be.winW<=t&&(a=!0),a}function nt(e){return e.replace(/"/g,"").replace(/url\(|\)$/gi,"")}t.nectarState=ye,$e.prototype.setup=function(){"post-grid-images"!==this.iconType&&"horizontal-movement"!==this.iconType&&"link-indicator"!==this.iconType&&"view-indicator"!==this.iconType||this.viewportTracking()},$e.prototype.viewportTracking=function(){var a=this;if("IntersectionObserver"in t){this.observer=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting?(a.$el.addClass("active").addClass("el-in-view"),a.$el.find(a.bgElSelector).css("visibility","visible"),a.activeViewRAF=!0):(a.$el.find(a.bgElSelector).css("visibility","hidden"),a.activeViewRAF=!1,a.$el.removeClass("el-in-view"),0==e(".el-in-view").length&&(a.$dragEl.length>0?a.$dragEl.removeClass("visible"):a.$viewEl.length>0&&a.$viewEl.removeClass("visible")))})},{rootMargin:"0px",threshold:0}),this.observer.observe(this.$el[0])}},$e.prototype.createMarkup=function(){var t=this;if("view-indicator"!==this.iconType&&"horizontal-movement"!==this.iconType||(this.$el.is("[data-indicator-bg]")&&(this.styleType="solid"),this.$el.is("[data-indicator-style]")&&"solid_bg"!==this.$el.attr("data-indicator-style")&&(this.styleType=this.$el.attr("data-indicator-style"))),("tooltip_text"===this.styleType||e('[data-indicator-style="tooltip_text"]').length>0)&&(this.parallaxLerp=!1,this.lerpDamp=.24),"horizontal-movement"===this.iconType){if(0==e(".nectar-drag-indicator").length){var a=e("body > #boxed").length>0?" in-boxed":"";e("body").append('<div class="nectar-drag-indicator'+a+'" data-type="'+this.styleType+'"><div class="color-circle"></div><span class="inner-layer">'+this.arrowMarkup+"</span></div>"),this.$dragEl=e(".nectar-drag-indicator"),this.dragRAF()}else this.$dragEl=e(".nectar-drag-indicator");"default"!=this.styleType&&(this.$innerParallaxEl=e(".nectar-drag-indicator .inner-layer"))}if("view-indicator"===this.iconType||"link-indicator"===this.iconType){if(this.activeViewRAF=!0,0==e(".nectar-view-indicator").length){a=e("body > #boxed").length>0?" in-boxed":"";e("body").append('<div class="nectar-view-indicator'+a+'"><div class="color-circle"></div><span class="inner-layer"></span></div>'),"gallery-zoom-indicator"!==this.iconType&&e(".nectar-view-indicator span").text(e(".nectar-post-grid[data-indicator-text]").attr("data-indicator-text")),this.$viewEl=e(".nectar-view-indicator"),setTimeout(function(){t.lastY=be.clientY,t.lastX=be.clientX,t.viewRAF()},100)}else this.$viewEl=e(".nectar-view-indicator");this.$innerParallaxEl=e(".nectar-view-indicator .inner-layer")}if("close-indicator"===this.iconType){if(0==e(".nectar-view-indicator").length){a=e("body > #boxed").length>0?" in-boxed":"";e("body").append('<div class="nectar-close-indicator'+a+'"><div class="inner"><div class="inner-layer"><i class="icon-salient-m-close"></i></div></div></div>'),this.$closeEl=e(".nectar-close-indicator"),this.closeRAF()}else this.$closeEl=e(".nectar-close-indicator");this.$innerParallaxEl=e(".nectar-close-indicator .inner-layer")}"post-grid-images"===this.iconType&&(this.activeViewRAF=!0,this.bgElSelector=this.$el.hasClass("nectar-category-grid")?".nectar-category-grid-item-bg":".nectar-post-grid-item-bg-wrap",this.$el.hasClass("mouse-move-bound")?(this.$viewEl=this.$el.find(this.bgElSelector),this.viewRAF()):(this.$viewEl=this.$el.find(this.bgElSelector),this.$el.addClass("mouse-move-bound"),this.viewRAF()))},$e.prototype.mouseBind=function(){var t=this;if("horizontal-movement"===this.iconType)t.$el.is('[data-indicator-blur="true"]')&&t.$dragEl.addClass("blurred-bg"),t.$el.find(".flickity-viewport").on("mouseenter",function(){t.$dragEl.attr("data-type",t.styleType),t.$dragEl.addClass("visible"),"tooltip_text"===t.styleType&&t.$el.is("[data-indicator-text]")?t.$dragEl.find("span").text(t.$el.attr("data-indicator-text")):t.$dragEl.find("span").html(t.arrowMarkup);var e=t.$el.is("[data-touch-icon-color]")?"color-"+t.$el.attr("data-touch-icon-color"):"";if(t.$dragEl.removeClass("color-dark").removeClass("color-light").removeClass("color-default"),"default"==t.styleType)t.$dragEl.addClass(e),t.$dragEl.find("> span, i").css("color",""),t.$dragEl.find(".color-circle").css("background-color","");else if("solid"==t.styleType){var a=t.$el.attr("data-indicator-bg");t.$dragEl.find(".color-circle").css("background-color",a),t.$dragEl.find("> span").css("color",a);var n=t.$el.attr("data-indicator-icon");t.$dragEl.find("i").css("color",n)}else if("tooltip_text"==t.styleType){a=t.$el.attr("data-indicator-bg");t.$dragEl.find(".color-circle").css("background-color",a);n=t.$el.attr("data-indicator-icon");t.$dragEl.find("span").css("color",n)}}),t.$el.find(".flickity-viewport").on("mouseleave",function(){t.$dragEl.removeClass("visible")}),t.$el.find(".product-add-to-cart a, .hide-nectar-indicator, .hide-nectar-indicator a").on("mouseenter",function(){t.$dragEl.removeClass("visible")}),t.$el.find(".product-add-to-cart a, .hide-nectar-indicator, .hide-nectar-indicator a").on("mouseleave",function(){t.$dragEl.addClass("visible")}),t.$el.find(".nectar-post-grid-item .meta-category a, .nectar-post-grid-item .meta-author a").on("mouseenter",function(){t.$dragEl.removeClass("visible")}),t.$el.find(".nectar-post-grid-item .meta-category a, .nectar-post-grid-item .meta-author a").on("mouseleave",function(){t.$dragEl.addClass("visible")});else if("close-indicator"===this.iconType)e("body").on("click",'.team-member[data-style*="bio_fullscreen"]',function(){e(".nectar_team_member_overlay:not(.open)").length>0||(t.$closeEl.addClass("visible"),t.$closeEl.find(".inner").addClass("visible"))}),e("body").on("click",'.nectar_team_member_overlay:not(.animating) a[target="_blank"]',function(e){e.stopPropagation()}),e("body").on("click",".nectar_team_member_overlay:not(.animating)",function(){t.$closeEl.removeClass("visible"),t.$closeEl.find(".inner").removeClass("visible")}),e("body").on("mouseenter",".nectar_team_member_overlay .bio-inner a",function(){t.$closeEl.removeClass("visible")}),e("body").on("mouseleave",".nectar_team_member_overlay .bio-inner a",function(){t.$closeEl.addClass("visible")});else if("link-indicator"===this.iconType)t.$el.off(),t.$el.on("mouseenter",function(){t.$viewEl.addClass("visible"),t.$viewEl.attr("class",function(e,t){return t.replace(/(^|\s)style-\S+/g,"")});var e=t.$el.attr("data-indicator-bg"),a=t.$el.attr("data-indicator-icon");t.$viewEl.find(".color-circle").css("background-color",e);var n='<div class="nectar-cta loaded" data-style="arrow-animation"><span class="link_wrap" style="color: '+a+'"><svg class="next-arrow" role="presentation" width="20px" height="25px" viewBox="0 0 50 80"><polyline stroke-width="9" fill="none" stroke-linecap="round" stroke-linejoin="round" points="0, 0 45, 40 0, 80"></polyline></svg><span class="line" role="none" style="background-color: '+a+'"></span></span></div>';t.$viewEl.find("span").html(n),t.$el.is('[data-indicator-blur="true"]')&&t.$viewEl.addClass("blurred-bg")}),t.$el.on("mouseleave",function(){t.$viewEl.removeClass("visible").removeClass("blurred-bg")});else if("view-indicator"===this.iconType){var a=t.$el.is("[data-indicator-text-color]")?t.$el.attr("data-indicator-text-color"):"#fff",n=t.$el.attr("data-indicator-color"),i=t.$el.attr("data-indicator-style"),s=t.$el.attr("data-indicator-text"),r=t.$el.find(".nectar-post-grid-item");t.$el.is("a")&&(r=t.$el),r.off(),r.on("mouseenter",function(){t.activeViewRAF=!0,t.$viewEl.addClass("visible"),t.$viewEl.find("span").text(s),t.$viewEl.attr("class",function(e,t){return t.replace(/(^|\s)style-\S+/g,"")}),t.$viewEl.addClass("style-"+i),"see-through"!==i&&(t.$viewEl.find(".color-circle").css("background-color",n),t.$viewEl.find(".inner-layer").css("color",a)),t.$el.is('[data-indicator-blur="true"]')&&t.$viewEl.addClass("blurred-bg"),clearTimeout(t.timeout)}),r.on("mouseleave",function(){t.$el.is("a")?(t.$viewEl.removeClass("visible"),t.$viewEl.removeClass("blurred-bg")):t.timeout=setTimeout(function(){t.$viewEl.removeClass("visible"),t.$viewEl.removeClass("blurred-bg")},100)}),t.$el.find(".nectar-post-grid-item .meta-category a, .nectar-post-grid-item .meta-author a").on("mouseenter",function(){t.$viewEl.removeClass("visible")}),t.$el.find(".nectar-post-grid-item .meta-category a, .nectar-post-grid-item .meta-author a").on("mouseleave",function(){t.$viewEl.addClass("visible")})}else"post-grid-images"===this.iconType&&(t.$el.on("mouseenter",function(){e(this).addClass("mouse-over"),t.activeViewRAF=!0}),t.$el.on("mouseleave",function(){e(this).removeClass("mouse-over")}))},$e.prototype.updatePos=function(){this.lastY=De(this.lastY,be.clientY,this.lerpDamp),this.lastX=De(this.lastX,be.clientX,this.lerpDamp)},$e.prototype.parallaxIcon=function(){this.parallaxLastX=De(this.parallaxLastX,parseInt(be.clientX)-parseInt(this.lastX),this.lerpDamp)/1.65,this.parallaxLastY=De(this.parallaxLastY,parseInt(be.clientY)-parseInt(this.lastY),this.lerpDamp)/1.65,this.$innerParallaxEl.length>0&&(this.$innerParallaxEl[0].style.transform="translateX("+Ne(this.parallaxLastX,12,-12)+"px) translateY("+Ne(this.parallaxLastY,12,-12)+"px)")},$e.prototype.dragRAF=function(){this.updatePos(),this.$dragEl[0].style.transform="translateX("+this.lastX+"px) translateY("+this.lastY+"px)",this.parallaxLerp&&this.parallaxIcon(),requestAnimationFrame(this.dragRAF.bind(this))},$e.prototype.viewRAF=function(){if(this.updatePos(),this.activeViewRAF||"view-indicator"===this.iconType||"link-indicator"===this.iconType){for(var e=0;e<this.$viewEl.length;e++)this.$viewEl[e].style.transform="translateX("+this.lastX+"px) translateY("+this.lastY+"px)";this.parallaxLerp&&this.parallaxIcon()}requestAnimationFrame(this.viewRAF.bind(this))},$e.prototype.closeRAF=function(){this.updatePos(),this.$closeEl.css({transform:"translateX("+this.lastX+"px) translateY("+this.lastY+"px)"}),this.parallaxIcon(),requestAnimationFrame(this.closeRAF.bind(this))},Oe.prototype.setup=function(){this.$el.removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),this.$el.addClass("instance-"+this.index);var a=this.$el.attr("data-controls").length>0?this.$el.attr("data-controls"):"";if(this.fullWidthOverlow(),this.$el.is('[data-format="fixed_text_content_fullwidth"]')&&(this.$flickCellAlign="left",this.$groupCellsBool=!1,this.$flickContainBool=!1,this.$flcikAttr=.02,this.$el.parent().is('[data-alignment="right"]')&&(this.$flickCellAlign="right")),1==this.$freeScrollBool&&(this.$groupCellsBool=!1),this.$el.find(".nectar-el-parallax-scroll").length>0&&this.$el.parents('[class*="wpb_gallery_slidesflickity_"]').length>0&&(this.$groupCellsBool=!1),"next_prev_arrows"==a||"next_prev_arrows_overlaid"==a?(this.$paginationBool=!1,this.$nextPrevArrowBool=!0):(this.$paginationBool=!0,this.$nextPrevArrowBool=!1),"none"==a&&(this.$paginationBool=!1,this.$nextPrevArrowBool=!1),this.$wrapAround=!this.$el.is("[data-wrap]")||"no-wrap"!=this.$el.attr("data-wrap"),this.ticker=!!this.$el.is(".ticker-rotate"),this.tickerPaused=!1,this.ticker){var n=this.$el.is("[data-ticker-speed]")?this.$el.attr("data-ticker-speed"):"slow",i=this.$el.is("[data-ticker-direction]")?this.$el.attr("data-ticker-direction"):"default";this.tickerSpeed="slow"===n?.4:"medium"===n?1.2:2,"reverse"===i&&(this.tickerSpeed=-1*this.tickerSpeed),this.$wrapAround=!0,this.$paginationBool=!1}this.$flickity_autoplay=!1,this.$flickity_stored_autoplay=!1,this.inView=!1,this.$el.is("[data-autoplay]")&&"true"==this.$el.attr("data-autoplay")&&!this.ticker&&(this.$flickity_autoplay=!0,this.$flickity_stored_autoplay=5e3,this.$el.is("[data-autoplay-dur]")&&this.$el.attr("data-autoplay-dur").length>0&&parseInt(this.$el.attr("data-autoplay-dur"))>100&&parseInt(this.$el.attr("data-autoplay-dur"))<3e4&&(this.$flickity_autoplay=parseInt(this.$el.attr("data-autoplay-dur")),this.$flickity_stored_autoplay=this.$flickity_autoplay)),this.$frontEndEditorDrag=!(e("body.vc_editor").length>0),this.$frontEndEditorPause=e("body.vc_editor").length>0,this.$arrowShape="",this.$el.is('[data-pause-on-hover="true"]')&&(this.$frontEndEditorPause=!0),this.$el.is('[data-centered-cells="true"]')&&(this.$groupCellsBool=!1),this.$flickity_adaptive_height=!1,this.$el.is('[data-adaptive-height="true"]')&&(this.$flickity_adaptive_height=!0),this.$lazyload=this.$el.find("img[data-flickity-lazyload]").length>0&&1,this.$el.find("img[data-flickity-lazyload]").length>0&&this.$el.is('[data-overflow="visible"]')&&this.$el.is('[data-wrap="no-wrap"]')&&(this.$lazyload=2),this.$flickity_rtl=!!r.hasClass("rtl"),"next_prev_arrows_overlaid"==a||"touch_total"==a||this.$el.hasClass("nectar-simple-slider")?this.$arrowShape={x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}:this.$arrowShape={x0:20,x1:70,y1:30,x2:70,y2:25,x3:70},this.$el.is('[data-format="fixed_text_content_fullwidth"]')&&this.$el.parents(".full-width-content.wpb_row").length>0&&this.$el.parents(".full-width-content.wpb_row").removeClass("full-width-content").addClass("full-width-section"),this.$el.hasClass("nectar-simple-slider")&&(this.$flickity_adaptive_height=!1,this.$paginationBool=!1,this.$nextPrevArrowBool=!1,this.$setGallerySizeBool=!1,this.$wrapAround=!1,this.$imagesLoaded=!1,this.$flcikAttr=.022,"true"==this.$el.attr("data-pagination")&&(this.$paginationBool=!0),"true"==this.$el.attr("data-wrap")&&(this.$wrapAround=!0),this.$el.is('[data-simple-slider-transition="fade"]')&&(this.fadeBool=!0));var s=this.$el.parents(".toggle").length>0;if(void 0===t.nectarFlickityActive){var o=this.$el.find(".flickity-viewport"),l=o.find(".flickity-slider");l.children().appendTo(this.$el),l.remove(),o.remove()}!be.usingFrontEndEditor&&!function(){if(-1!=navigator.userAgent.indexOf("Instagram"))return!0;return!1}()&&"IntersectionObserver"in t&&!s&&!1===me.$usingFullScreenRows?this.lazyInit():this.init()},Oe.prototype.lazyInit=function(){var e=this;this.observer=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e.init(),e.observer.unobserve(t.target))})},{root:Xe()?null:a,rootMargin:"350px 0px 350px 0px",threshold:0}),this.observer.observe(this.$el[0])},Oe.prototype.init=function(){this.instance=new Flickity(".nectar-flickity.instance-"+this.index,{setGallerySize:this.$setGallerySizeBool,contain:this.$flickContainBool,draggable:this.$frontEndEditorDrag,lazyLoad:this.$lazyload,imagesLoaded:this.$imagesLoaded,percentPosition:!0,adaptiveHeight:this.$flickity_adaptive_height,cellAlign:this.$flickCellAlign,groupCells:this.$groupCellsBool,prevNextButtons:this.$nextPrevArrowBool,freeScroll:this.$freeScrollBool,pageDots:this.$paginationBool,resize:!0,selectedAttraction:this.$flcikAttr,autoPlay:this.$flickity_autoplay,rightToLeft:this.$flickity_rtl,pauseAutoPlayOnHover:this.$frontEndEditorPause,wrapAround:this.$wrapAround,accessibility:!1,fade:this.fadeBool,dragThreshold:be.usingMobileBrowser?25:3,arrowShape:this.$arrowShape}),this.events()},Oe.prototype.trackView=function(){var e=this;new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting?e.inView=!0:e.inView=!1})},{root:Xe()?null:a,rootMargin:"200px 0px 200px 0px",threshold:0}).observe(this.$el[0])},Oe.prototype.fullWidthOverlow=function(){this.$el.is('[data-overflow="visible"]')&&0==this.$el.parents(".wpb_column:not(.vc_col-sm-12)").length&&(this.$el.parents(".wpb_row:not(.nectar-overflow-hidden):not(.full-width-content):not(.inner_row):not(.has-global-section)").length>0?this.$el.wrap('<div class="wpb_row vc_row-fluid vc_row full-width-content nectar-overflow-hidden carousel-dynamic-wrapper"><div class="normal-container container"></div></div>'):this.$el.parents(".wpb_row.full-width-content:not(.nectar-overflow-hidden)").length>0&&this.$el.parents(".wpb_row.full-width-content:not(.nectar-overflow-hidden)").addClass("nectar-overflow-hidden"))},Oe.prototype.events=function(){this.$el.hasClass("nectar-simple-slider")?this.simpleSliderStyle():(this.$el.is('.nectar-carousel[data-wrap="no-wrap"]')&&this.$el.find('.nectar-fancy-box[data-n-parallax-bg="true"]').length>0&&!0!==this.$groupCellsBool||this.$el.parents('[class*="wpb_gallery_slidesflickity_"]').length>0&&this.$el.find(".nectar-el-parallax-scroll").length>0)&&this.galleryParallax(),(this.$el.is('[data-controls="touch_total"]')||this.$el.is('[data-touch-indicator="true"]'))&&this.visualizedTotalControls(),this.$el.is('[data-format="fixed_text_content_fullwidth"]')&&!be.usingFrontEndEditor&&this.fixedContentStyle(),this.$el.parents(".wpb_gallery_slidesflickity_static_height_style").length>0&&this.$el.find(".item-meta").length>0&&(this.imageCaptionWidth(),s.on("resize",this.imageCaptionWidth.bind(this))),this.ticker&&("IntersectionObserver"in t&&this.trackView(),this.tickerRotate(),this.instance.on("dragStart",function(){this.tickerPaused=!0}.bind(this)),this.$el[0].addEventListener("mouseleave",function(){this.tickerPaused=!1}.bind(this)),(this.$el.is('[data-pause-on-hover="true"]')||this.$nextPrevArrowBool||be.usingFrontEndEditor)&&this.$el[0].addEventListener("mouseenter",function(){this.tickerPaused=!0}.bind(this))),this.sharedEvents()},Oe.prototype.sharedEvents=function(){var t,a,n=this,i=this.$el,s=this.instance;this.instance.on("dragStart",function(){clearTimeout(t),clearTimeout(a),i.addClass("is-dragging"),i.addClass("is-moving"),i.find(".flickity-prev-next-button").addClass("hidden")}),this.instance.on("dragEnd",function(){i.removeClass("is-dragging"),t=setTimeout(function(){i.removeClass("is-moving"),i.find(".flickity-prev-next-button").removeClass("hidden")},600),a=setTimeout(function(){i.removeClass("is-moving")},300)}),e(".flickity-prev-next-button").on("click",function(){clearTimeout(t),e(this).parents(".nectar-flickity").find(".flickity-prev-next-button").addClass("hidden"),t=setTimeout(function(){i.find(".flickity-prev-next-button").removeClass("hidden")},600)}),this.instance.$element.find(".flickity-prev-next-button").on("click",function(){if(!0!==n.$groupCellsBool){var t=s.selectedSlide.outerWidth,a=s.size.innerWidth,i=Math.floor(a/t);e(this).hasClass("next")&&1===s.selectedIndex&&i>1&&(2===i||3===i?s.select(2):i>3&&s.select(3))}}),setTimeout(function(){e('.nectar-post-grid.nectar-flickity[data-wrap="no-wrap"], .nectar-flickity.nectar-carousel[data-format="default"][data-wrap="no-wrap"]').addClass("transition-enabled")},200),i.hasClass("nectar-carousel")&&!i.is('[data-adaptive-height="true"]')&&imagesLoaded(i,function(){He(i)})},Oe.prototype.tickerRotate=function(){this.tickerPaused||1!=this.inView||this.instance.slides&&(this.instance.x=(this.instance.x-this.tickerSpeed)%this.instance.slideableWidth,this.instance.selectedIndex=this.instance.dragEndRestingSelect(),this.instance.settle(this.instance.x)),t.requestAnimationFrame(this.tickerRotate.bind(this))},Oe.prototype.imageCaptionWidth=function(){this.$el.find(".item-meta").each(function(){e(this).css({width:e(this).parent().find("img").width()})})},Oe.prototype.simpleSlideBGConnection=function(){var t=e("body.vc_editor").length>0?$that.find(".is-selected > .cell"):$that.find(".is-selected");this.$rowBG&&t&&this.$rowBG.css({transition:"background-color 0.5s ease-out","background-color":t.is(".has-bg-color")?t.find(".bg-layer-wrap").css("background-color"):this.$rowBGStored})},Oe.prototype.simpleSliderStyle=function(){var t=this.$el,a=this;if("true"==this.$el.attr("data-arrows")&&0==this.$el.find(".flickity-prev-next-button").length&&(this.$el.append('<button class="flickity-button flickity-prev-next-button previous" aria-label="'+nectar_front_i18n.previous+'" type="button"><svg class="flickity-button-icon" viewBox="0 0 100 100"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z" class="arrow"></path></svg></button>'),this.$el.append('<button class="flickity-button flickity-prev-next-button next" aria-label="'+nectar_front_i18n.next+'" type="button"><svg class="flickity-button-icon" viewBox="0 0 100 100"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z" class="arrow" transform="translate(100, 100) rotate(180) "></path></svg></button>'),this.$el.find(".flickity-prev-next-button.previous").on("click",function(){if(!1===a.$wrapAround&&0==a.instance.selectedIndex&&(0==a.instance.isAnimating||void 0===a.instance.isAnimating)){var e=a.instance.x;anime({targets:a.instance,x:e+100,duration:350,easing:"easeOutCubic"}),a.instance.startAnimation()}a.instance.previous()}),this.$el.find(".flickity-prev-next-button.next").on("click",function(){if(!1===a.$wrapAround&&a.instance.selectedIndex==a.instance.slides.length-1&&0==a.instance.isAnimating){var e=a.instance.x;anime({targets:a.instance,x:e-100,duration:350,easing:"easeOutCubic"}),a.instance.startAnimation()}a.instance.next()})),this.$rowBG="",this.$rowBGStored="",e(this).is('.nectar-simple-slider[data-row-bg-connection="true"]')&&(this.$rowBG=this.$el.parents(".wpb_row"),this.$rowBG=this.$rowBG.find("> .row-bg-wrap .row-bg"),this.$rowBGStored=this.$rowBG.length>0?this.$rowBG.css("background-color"):"",this.instance.on("change",simpleSlideBGConnection.bind(this)),this.simpleSlideBGConnection()),this.$el.find(".bg-layer[data-nectar-img-src]").length>0)var n=new Waypoint({element:this.$el[0],handler:function(){t.find(".bg-layer[data-nectar-img-src]").each(function(){var t=e(this)[0],a=t.getAttribute("data-nectar-img-src");t.style.backgroundImage="url('"+a+"')",t.classList.add("loaded")}),n.destroy()},offset:"95%"});if(this.$el.is('[data-parallax="true"]')){var i=this.$el.find(".cell");!0===this.$wrapAround&&this.$el.find(".flickity-prev-next-button").on("click",function(){t.addClass("disabled-nav"),setTimeout(function(){t.removeClass("disabled-nav")},500)});var s=this.$flickity_rtl?1:-1;this.instance.on("scroll",function(){e.each(a.instance.slides,function(e,t){var n=i[e].querySelector(".bg-layer"),r=i[e].querySelector(".inner"),o=a.instance,l=0;l=0===e&&o.slides.length>2?Math.abs(o.x)>o.slidesWidth?o.slidesWidth+o.x+o.slides[o.slides.length-1].outerWidth+t.target:t.target+o.x:e===o.slides.length-1&&Math.abs(o.x)+o.slides[e].outerWidth<o.slidesWidth?t.target-o.slidesWidth+o.x-o.slides[e].outerWidth:t.target+o.x,n.style.transform="translate3d("+l*(s/2)+"px,0,0)",r.style.transform="translate3d("+l*(s/4)+"px,0,0)"})})}this.$el.hasClass("nectar-simple-slider")&&1==this.$paginationBool&&(this.$el.find(".flickity-page-dots li").append('<svg width="65px" height="65px" viewBox="0 0 72 72" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><circle class="time" stroke-width="5" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle></svg>'),this.$flickity_stored_autoplay&&(this.$el.find(".flickity-page-dots li circle.time").css("transition","stroke-dashoffset "+(parseInt(this.$flickity_stored_autoplay)+100)+"ms linear, stroke 0.2s ease"),this.$el.find(".flickity-page-dots li:first").addClass("no-trans"),setTimeout(function(){t.find(".flickity-page-dots li:first").removeClass("no-trans")},60),this.instance.on("select",function(e){a.instance.playPlayer()}),this.instance.on("dragEnd",function(e){a.instance.playPlayer(),t.find(".flickity-page-dots .is-selected").removeClass("no-trans")}),this.instance.on("dragStart",function(e){t.find(".flickity-page-dots .is-selected").addClass("no-trans")})))},Oe.prototype.galleryParallax=function(){var t=this.$el.find(".cell"),a=this,n=this.$el.find(".nectar-fancy-box").length>0?".parallax-layer .box-bg":".nectar-el-parallax-scroll .img-wrap",i=!!this.$el.is('[data-wrap="wrap"]'),s=this.$flickity_rtl?1:-1;this.instance.on("scroll",function(){e.each(a.instance.slides,function(e,r){var o=t[e].querySelector(n),l=a.instance,d=0;d=0===e&&i?Math.abs(l.x)>l.slidesWidth?l.slidesWidth+l.x+l.slides[l.slides.length-1].outerWidth+r.target:r.target+l.x:1===e&&i?Math.abs(l.x)>l.slidesWidth?l.slidesWidth+l.x+l.slides[l.slides.length-2].outerWidth+r.target:r.target+l.x:e===l.slides.length-1&&i?Math.abs(l.x)+l.slides[e].outerWidth<l.slidesWidth?r.target-l.slidesWidth+l.x-l.slides[e].outerWidth:r.target+l.x:e===l.slides.length-2&&i&&Math.abs(l.x)+l.slides[e].outerWidth+l.slides[e+1].outerWidth<l.slidesWidth?r.target-l.slidesWidth+l.x-l.slides[e].outerWidth:r.target+l.x,o&&(o.style.transform="translate3d("+d*(s/11)+"px,0,0)",o.style.willChange="transform")})}),this.instance.reposition()},Oe.prototype.visualizedTotalControls=function(){var t=this.$el,a=!!(this.$el.hasClass("drag-indicator-only")||this.$el.is('[data-r-bottom-total="true"]')||this.ticker);0!=this.$el.find(".visualized-total").length||a||(this.$el.parents(".full-width-content").length>0&&this.$el.parents(".vc_col-sm-12").length>0?this.$el.append('<div class="container normal-container"><div class="visualized-total"><span role="none"></span></div></div>'):this.$el.append('<div class="visualized-total"><span role="none"></span></div>')),be.usingMobileBrowser||(Y[this.index]=new $e(this.$el,"horizontal-movement"),this.instance.on("dragMove",function(e,t){be.clientY=t.clientY,be.clientX=t.clientX}),this.instance.on("pointerDown",function(t,a){e(".nectar-drag-indicator").addClass("pointer-down")}),this.instance.on("pointerUp",function(t,a){e(".nectar-drag-indicator").removeClass("pointer-down")}));var n=this.$el.find(".flickity-page-dots li").length,i=this.$el.find(".visualized-total span"),r=1,o=this.$el.find(".visualized-total").width();a||(s.on("smartresize",function(){setTimeout(function(){n=t.find(".flickity-page-dots li").length,o=t.find(".visualized-total").width(),r=o/n*t.find(".flickity-page-dots .is-selected").index(),i.css("width",100/n+"%"),i.css({x:r+"px"})},200)}),setTimeout(function(){n=t.find(".flickity-page-dots li").length,o=t.find(".visualized-total").width(),i.css("width",100/n+"%")},200),this.instance.on("change",function(e,a){r=o/n*t.find(".flickity-page-dots .is-selected").index(),i.css({x:r+"px"})}))},Oe.prototype.fixedContentStyle=function(){var a=be.usingMobileBrowser,n=this.$el,i=this;this.$flickity_stored_autoplay&&(e(t).on("nectar-material-ocm-open",function(){i.instance.stopPlayer()}),e(t).on("nectar-material-ocm-close",function(){i.instance.playPlayer()})),this.instance.on("scroll",function(){if(!a)if(1!=ye.materialOffCanvasOpen){var t=n.find(".cell").outerWidth()+25,r=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?275:0,o=(s.width()+r-n.parents(".main-content").width())/2;o+=parseInt(n.css("margin-left"))+2,i.instance.slides.forEach(function(a,n){var s=1,r=0,l=0,d=10,c=1,h=e(a.cells[0].element).offset().left,u=e(".nectar-flickity.instance-"+i.index+" .cell:nth-child("+(n+1)+")");h-o<0&&h-o>-1*t?(s=1+(h-o)/1500,c=1+(h-o+70)/550,r=-1*(h-o),l=(h-o)/25*-1):(s=1,c=1,r=0,l=0),d=h+5-o<0&&h-o>-1*t?5:10,u.css({"z-index":d}),u.find(".inner-wrap-outer").css({transform:"perspective(800px) translateX("+r+"px) rotateY("+l+"deg) translateZ(0)",opacity:c}),u.find(".inner-wrap").css({transform:"scale("+s+") translateZ(0)"})})}else i.instance.slides.forEach(function(e,t){var a=n.find(".cell:nth-child("+(t+1)+")");a.find(".inner-wrap-outer").css({transform:"perspective(800px) translateX(0) rotateY(0) translateZ(0)",opacity:"1"}),a.find(".inner-wrap").css({transform:"scale(1) translateZ(0)"})})})},qe.prototype.setup=function(){!be.usingFrontEndEditor&&"IntersectionObserver"in t?this.lazyInit():this.init()},qe.prototype.init=function(){"legacy"===this.type?this.legacyCarousel():this.flickityCarousel()},qe.prototype.lazyInit=function(){var e=this;this.observer=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e.init(),e.observer.unobserve(t.target))})},{root:Xe()?null:a,rootMargin:"400px 0px 400px 0px",threshold:0}),this.observer.observe(this.$el[0])},qe.prototype.legacyCarousel=function(){var a=this.$el.find("ul.products"),n=this.$el.parents(".full-width-content ").length>0?400:353,i=a;0==a.find("img").length&&(i=r),this.$el.append('<a class="carousel-prev" href="#"><i class="icon-salient-left-arrow"></i></a> <a class="carousel-next" href="#"><i class="icon-salient-right-arrow"></i></a>'),imagesLoaded(i,function(){a.carouFredSel({circular:!0,responsive:!0,items:{width:n,visible:{min:1,max:"auto"}},swipe:{onTouch:!0,onMouse:!0,options:{excludedElements:"button, input, select, textarea, .noSwipe",tap:function(a,n){!e(n).attr("href")||e(n).is('[target="_blank"]')||e(n).hasClass("add_to_wishlist")||e(n).hasClass("add_to_cart_button")||e(n).is('[rel^="prettyPhoto"]')||t.open(e(n).attr("href"),"_self"),!e(n).parent().attr("href")||e(n).parent().is('[target="_blank"]')||e(n).parent().hasClass("add_to_wishlist")||e(n).parent().hasClass("add_to_cart_button")||e(n).parent().is('[rel^="prettyPhoto"]')||t.open(e(n).parent().attr("href"),"_self")}},onBefore:function(){a.find(".product-wrap").trigger("mouseleave"),a.find(".product a").trigger("mouseup")}},scroll:{items:"auto",easing:"easeInOutQuart",duration:800},prev:{button:function(){return a.parents(".carousel-wrap").find(".carousel-prev")}},next:{button:function(){return a.parents(".carousel-wrap").find(".carousel-next")}},auto:{play:!1}}).animate({opacity:1},1300),a.parents(".carousel-wrap").wrap('<div class="carousel-outer">'),a.addClass("finished-loading"),s.trigger("resize")})},qe.prototype.flickityCarousel=function(){var a=this.$el;this.$el.find(".products > li").each(function(){e(this).wrap('<div class="flickity-cell"></div>')});var n=!!a.is('[data-controls="bottom-pagination"]'),i=!a.is('[data-controls="bottom-pagination"]'),s=!a.is('[data-wrap="no-wrap"]'),o=1!=s||n,l=a.is("[data-autorotate-speed]")&&parseInt(a.attr("data-autorotate-speed"))>800?parseInt(a.attr("data-autorotate-speed")):5e3;a.is('[data-autorotate="true"]')||(l=!1),this.$el.find("ul.products").addClass("generate-markup"),this.instance=this.$el.find("ul.products"),a.is('[data-controls="arrows-overlaid"]')&&(i=!0),1==i&&this.instance.on("ready.flickity",function(){var e=a.find(".flickity-prev-next-button.previous").detach(),t=a.find(".flickity-prev-next-button.next").detach();a.find(".nectar-woo-carousel-top").append(e).append(t)});var d=!1,c="center";r.hasClass("rtl")&&(d=!0,c="right"),a.is('[data-group-columns="no-overflow"]')?(o=!0,c="left"):a.is('[data-group-columns="overflow"]')&&(o=!1,c="center");var h=!1;if(t.nectarOptions&&t.nectarOptions.woo_related_upsell_carousel&&"true"==t.nectarOptions.woo_related_upsell_carousel&&this.$el.hasClass("related-upsell-carousel")&&(h=!0,s=!1,o=!0,"center"==c&&this.$el.find(".products > div").length<4&&(c="left"),this.$el.find(".products > div").length<5&&this.$el.addClass("desktop-controls-hidden")),this.instance.flickity({draggable:!0,contain:!0,lazyLoad:!1,imagesLoaded:!0,cellAlign:c,groupCells:o,prevNextButtons:i,pageDots:n,resize:!0,adaptiveHeight:!1,percentPosition:!0,setGallerySize:!0,rightToLeft:d,wrapAround:s,autoPlay:l,dragThreshold:be.usingMobileBrowser?25:3,accessibility:!1}),this.$el.is('[data-controls="touch_indicator"]'))be.usingMobileBrowser||(Y.push(new $e(this.$el,"horizontal-movement")),this.instance.on("dragMove.flickity",function(e,t){be.clientY=t.clientY,be.clientX=t.clientX}),this.instance.on("pointerDown.flickity",function(t,a){e(".nectar-drag-indicator").addClass("pointer-down")}),this.instance.on("pointerUp.flickity",function(t,a){e(".nectar-drag-indicator").removeClass("pointer-down")}));else if(1==i){a.find(".flickity-prev-next-button").append('<svg width="65px" height="65px" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><circle stroke-width="3" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle> <circle class="time" stroke-width="3" fill="none" stroke-linecap="round" cx="33" cy="33" r="28"></circle></svg>');var u=e('<div class="woo-flickity-count" />');1==h?a.find("section > h2").append(u):a.append(u);var p=this.instance.data("flickity");Le({data:{wooFlickity:p,wooFlickityCount:u}}),this.instance.on("select.flickity",{wooFlickity:p,wooFlickityCount:u},Le)}this.$el.removeClass("animated-in"),wa()},s.on("orientationchange",function(){setTimeout(Re,200)}),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},e(t).on("resize",function(){clearTimeout(we),we=setTimeout(function(){e(t).trigger("smartresize")},125)}),e.fn.smartresize=function(e){return e?this.on("smartresize",e):this.trigger("smartresize",["execAsap"])},Je.prototype.init=function(){var e,t,n,i,s,r;t={hidden:!1},n=(e=a).createElement("STYLE"),i="addEventListener"in e,s=function(t,a){i?e.addEventListener(t,a):e.attachEvent("on"+t,a)},r=function(e){n.styleSheet?n.styleSheet.cssText=e:n.innerHTML=e},e.getElementsByTagName("HEAD")[0].appendChild(n),s("mousedown",function(){0==t.hidden&&(r(":focus{outline:0}::-moz-focus-inner{border:0;}"),t.hidden=!0)}),s("keydown",function(){r(""),t.hidden=!1})},Je.prototype.events=function(){e(t).on("nectar-ocm-open",this.setFocus.bind(this)),e(t).on("nectar-ocm-close",this.releaseFocus.bind(this)),e("nav").on("focus.aria mouseenter.aria",'[aria-haspopup="true"]',function(t){e(t.currentTarget).attr("aria-expanded",!0)}),e("nav").on("blur.aria mouseleave.aria",'[aria-haspopup="true"]',function(t){e(t.currentTarget).attr("aria-expanded",!1)}),this.escCloseEvents()},Je.prototype.setFocus=function(){this.state.ocmFocus=!0,e("#slide-out-widget-area").attr("tabindex","-1").focus()},Je.prototype.releaseFocus=function(){e("#slide-out-widget-area").attr("tabindex","")},Je.prototype.escCloseEvents=function(){e(a).on("keyup",function(t){27==t.keyCode&&(e(".open-search").length>0&&(closeSearch(),h.removeClass("open-search")),e(".ocm-effect-wrap.material-ocm-open").length>0?e(".slide-out-widget-area-toggle.material-open a").trigger("click"):e("#slide-out-widget-area .slide_out_area_close").length>0&&e("#slide-out-widget-area.open").length>0&&e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed").trigger("click"),e(".nectar-slide-in-cart.style_slide_in_click.open").length>0&&pn(),e("#review_form_wrapper.open").length>0&&e(".nectar-slide-in-cart-bg").trigger("click"))})},jQuery.fn.setCursorPosition=function(t){return 0==this.length?this:e(this).setSelection(t,t)},jQuery.fn.setSelection=function(e,t){if(0==this.length)return this;var a=this[0];if(a.createTextRange){var n=a.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select()}else a.setSelectionRange&&(a.focus(),a.setSelectionRange(e,t));return this},e.extend(jQuery.expr.pseudos,{transparent:function(t,a,n){return"0"===e(t).css("opacity")}}),e.cssHooks.color={get:function(e){var n;return e.currentStyle?n=e.currentStyle.color:t.getComputedStyle&&(n=a.defaultView.getComputedStyle(e,null).getPropertyValue("color")),-1==n.search("rgb")?n:(n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+Ke(n[1])+Ke(n[2])+Ke(n[3]):void 0}},e.cssHooks.backgroundColor={get:function(e){var n;return e.currentStyle?n=e.currentStyle.backgroundColor:t.getComputedStyle&&(n=a.defaultView.getComputedStyle(e,null).getPropertyValue("background-color")),-1==n.search("rgb")?n:(n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+Ke(n[1])+Ke(n[2])+Ke(n[3]):void 0}},function(e){function n(a,i){var s=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(e(a).is("body")?t:a),this.options=e.extend({},n.DEFAULTS,i),this.selector=(this.options.target||"")+" ul li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.pageSubmenuHeight=0,this.calcPageSubemnu(),this.refresh(),this.process(),e(t).on("resize",this.calcPageSubemnu.bind(this))}n.VERSION="3.2.0",n.DEFAULTS={offset:10},n.prototype.calcPageSubemnu=function(){(e('.page-submenu[data-sticky="true"]').length>0&&0==e('body[data-hhun="1"]').length||e('.page-submenu[data-sticky="true"]').length>0&&e('#header-outer[data-remove-fixed="1"]').length>0)&&(this.pageSubmenuHeight=e(".page-submenu").height())},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,a.documentElement.scrollHeight)},n.prototype.refresh=function(){var t,a="offset",n=0;null!=(t=this.$scrollElement[0])&&t===t.window||(a="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var t=e(this),i=t.data("target")||t.attr("href");"#%20"===i&&(i="");var s=/^#./.test(i)&&e(i);return s&&s.length&&s.is(":visible")&&[[s[a]().top+n,i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},n.prototype.process=function(){if(ye.preventScroll)return!0;var t,a=be.scrollTop+this.options.offset+this.pageSubmenuHeight,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height()-this.pageSubmenuHeight,s=this.offsets,r=this.targets,o=this.activeTarget;if(this.activeTarget&&a<this.offsets[0]&&this.offsets[0]>0)return this.activeTarget=null,void e(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item").removeClass("sfHover");if(this.scrollHeight!=n&&this.refresh(),a>=i)return o!=(t=r[r.length-1])&&this.activate(t);if(o&&a<=s[0])return o!=(t=r[0])&&this.activate(t);for(t=s.length;t--;)o!=r[t]&&a>=s[t]&&(!s[t+1]||a<=s[t+1])&&this.activate(r[t])},n.prototype.activate=function(t){this.activeTarget=t,e(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item").removeClass("sfHover");var a=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(a).parents("li").addClass("current-menu-item");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("current-menu-item")),n.trigger("activate.bs.scrollspy")};var i=e.fn.scrollspy;e.fn.scrollspy=function(t){return this.each(function(){var a=e(this),i=a.data("bs.scrollspy"),s="object"==typeof t&&t;i||a.data("bs.scrollspy",i=new n(this,s)),"string"==typeof t&&i[t]()})},e.fn.scrollspy.Constructor=n,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this}}(jQuery);var it,st,rt=function(e){e=e.split("+").join(" ");for(var t,a={},n=/[?&]?([^=]+)=([^&]*)/g;t=n.exec(e);)a[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return a}(a.location.search);it=jQuery,st=it(t),it.fn.visible=function(e,t,a){if(!(this.length<1)){var n=this.length>1?this.eq(0):this,i=n.get(0),s=st.width(),r=st.height(),o=(a=a||"both",!0!==t||i.offsetWidth*i.offsetHeight);if("function"==typeof i.getBoundingClientRect){var l=i.getBoundingClientRect(),d=l.top>=0&&l.top<r,c=l.bottom>0&&l.bottom<=r,h=l.left>=0&&l.left<s,u=l.right>0&&l.right<=s,p=e?d||c:d&&c,f=e?h||u:h&&u;if("both"===a)return o&&p&&f;if("vertical"===a)return o&&p;if("horizontal"===a)return o&&f}else{var g=st.scrollTop(),m=g+r,v=st.scrollLeft(),b=v+s,w=n.offset(),y=w.top,_=y+n.height(),C=w.left,x=C+n.width(),k=!0===e?_:y,$=!0===e?y:_,T=!0===e?x:C,I=!0===e?C:x;if("both"===a)return!!o&&m>=$&&k>=g&&b>=I&&T>=v;if("vertical"===a)return!!o&&m>=$&&k>=g;if("horizontal"===a)return!!o&&b>=I&&T>=v}}};var ot=function(e,n,i,s,r,o){for(var l=0,d=["webkit","moz","ms","o"],c=0;c<d.length&&!t.requestAnimationFrame;++c)t.requestAnimationFrame=t[d[c]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[d[c]+"CancelAnimationFrame"]||t[d[c]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(e){var a=(new Date).getTime(),n=Math.max(0,16-(a-l)),i=t.setTimeout(function(){e(a+n)},n);return l=a+n,i}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(e){clearTimeout(e)});var h=this;for(var u in h.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null},o)o.hasOwnProperty(u)&&(h.options[u]=o[u]);""===h.options.separator&&(h.options.useGrouping=!1),h.options.prefix||(h.options.prefix=""),h.options.suffix||(h.options.suffix=""),h.d="string"==typeof e?a.getElementById(e):e,h.startVal=Number(n),h.endVal=Number(i),h.countDown=h.startVal>h.endVal,h.frameVal=h.startVal,h.decimals=Math.max(0,s||0),h.dec=Math.pow(10,h.decimals),h.duration=1e3*Number(r)||2e3,h.formatNumber=function(e){var t,a,n,i;if(e=e.toFixed(h.decimals),a=(t=(e+="").split("."))[0],n=t.length>1?h.options.decimal+t[1]:"",i=/(\d+)(\d{3})/,h.options.useGrouping)for(;i.test(a);)a=a.replace(i,"$1"+h.options.separator+"$2");return h.options.prefix+a+n+h.options.suffix},h.easeOutExpo=function(e,t,a,n){return a*(1-Math.pow(2,-10*e/n))*1024/1023+t},h.easingFn=h.options.easingFn?h.options.easingFn:h.easeOutExpo,h.formattingFn=h.options.formattingFn?h.options.formattingFn:h.formatNumber,h.version=function(){return"1.7.1"},h.printValue=function(e){var t=h.formattingFn(e);"INPUT"===h.d.tagName?this.d.value=t:"text"===h.d.tagName||"tspan"===h.d.tagName?this.d.textContent=t:this.d.innerHTML=t},h.count=function(e){h.startTime||(h.startTime=e),h.timestamp=e;var t=e-h.startTime;h.remaining=h.duration-t,h.options.useEasing?h.countDown?h.frameVal=h.startVal-h.easingFn(t,0,h.startVal-h.endVal,h.duration):h.frameVal=h.easingFn(t,h.startVal,h.endVal-h.startVal,h.duration):h.countDown?h.frameVal=h.startVal-(h.startVal-h.endVal)*(t/h.duration):h.frameVal=h.startVal+(h.endVal-h.startVal)*(t/h.duration),h.countDown?h.frameVal=h.frameVal<h.endVal?h.endVal:h.frameVal:h.frameVal=h.frameVal>h.endVal?h.endVal:h.frameVal,h.frameVal=Math.round(h.frameVal*h.dec)/h.dec,h.printValue(h.frameVal),t<h.duration?h.rAF=requestAnimationFrame(h.count):h.callback&&h.callback()},h.start=function(e){return h.callback=e,h.rAF=requestAnimationFrame(h.count),!1},h.pauseResume=function(){h.paused?(h.paused=!1,delete h.startTime,h.duration=h.remaining,h.startVal=h.frameVal,requestAnimationFrame(h.count)):(h.paused=!0,cancelAnimationFrame(h.rAF))},h.reset=function(){h.paused=!1,delete h.startTime,h.startVal=n,cancelAnimationFrame(h.rAF),h.printValue(h.startVal)},h.update=function(e){cancelAnimationFrame(h.rAF),h.paused=!1,delete h.startTime,h.startVal=h.frameVal,h.endVal=Number(e),h.countDown=h.startVal>h.endVal,h.rAF=requestAnimationFrame(h.count)},h.printValue(h.startVal)},lt=function(e,t,a,n){return a*((e=e/n-1)*e*e+1)+t};function dt(t,n){if(t.length>0){var i=a.head||a.getElementsByTagName("head")[0],s=a.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=t:s.appendChild(a.createTextNode(t)),e(s).attr("id",n),e("head").find("#"+n).remove(),i.appendChild(s)}}function ct(){e("a.pp").removeClass("pp").attr("data-fancybox",""),e("a[rel^='prettyPhoto']:not([rel*='_gal']):not([rel*='product-gallery']):not([rel*='prettyPhoto['])").removeAttr("rel").attr("data-fancybox","");var t=et();e(".wpb_gallery .wpb_gallery_slidesnectarslider_style").each(function(){t=et(),e(this).find(".swiper-slide a:not(.ext-url-link)").attr("data-fancybox","group_"+t)}),e('.wpb_gallery_slides.wpb_flexslider:not([data-onclick="custom_link"])').each(function(){t=et(),e(this).find(".slides > li > a").attr("data-fancybox","group_"+t)}),e(".wpb_gallery_slidesflickity_style, .wpb_gallery_slidesflickity_static_height_style").each(function(){t=et(),e(this).find(".cell > a:not(.ext-url-link)").attr("data-fancybox","group_"+t)}),e(".portfolio-items, .wpb_gallery_slidesparallax_image_grid, .nectar-post-grid-item").each(function(){t=et(),e(this).find(".pretty_photo").length>0?e(this).find(".pretty_photo").removeClass("pretty_photo").attr("data-fancybox","group_"+t):e(this).find('a[rel*="prettyPhoto["]').length>0&&e(this).find('a[rel*="prettyPhoto["]').removeAttr("rel").attr("data-fancybox","group_"+t)}),r.hasClass("nectar-auto-lightbox")&&(e(".gallery").each(function(){if(0==e(this).find('.gallery-icon a[rel^="prettyPhoto"]').length){var t=et();e(this).find('.gallery-item .gallery-icon a[href*=".jpg"], .gallery-item .gallery-icon a[href*=".png"], .gallery-item .gallery-icon a[href*=".gif"], .gallery-item .gallery-icon a[href*=".jpeg"]').attr("data-fancybox","group_"+t).removeClass("pretty_photo")}}),e(".wp-block-gallery").each(function(){var t=et();e(this).find('.wp-block-image a[href*=".jpg"], .wp-block-image a[href*=".png"], .wp-block-image a[href*=".gif"], .wp-block-image a[href*=".jpeg"], .wp-block-image a[href*=".webp"]').attr("data-fancybox","group_"+t).removeClass("pretty_photo")}),e(".main-content img").each(function(){e(this).parent().is("[href]")&&!e(this).parent().is(".magnific-popup")&&0==e(this).parents(".tiled-gallery").length&&0==e(this).parents(".product-image").length&&0==e(this).parents(".gallery-icon").length&&0==e(this).parents(".wp-block-gallery").length&&0==e(this).parents(".woocommerce-product-gallery").length&&0==e(this).parents(".wpb_gallery_slides.wpb_flexslider").length&&0==e(this).parents(".iosSlider.product-slider").length&&(e(this).parent().attr("href").match(/\.(jpg|png|gif)\b/)&&e(this).parent().attr("data-fancybox",""))}));var a=(e("body.admin-bar").length,[60,100]);be.winW<1e3&&(a=[0,0]),e("[data-fancybox]").fancybox({animationEffect:"zoom-in-out",animationDuration:350,buttons:["fullScreen","zoom","close"],margin:a,backFocus:!1,loop:!0,caption:function(){return e(this).attr("title")},hash:!1,beforeLoad:function(t){"string"!=typeof t.current.src&&e.fancybox.close(!0)},mobile:{margin:0}})}function ht(){setTimeout(function(){e('body[data-ls="magnific"]').length>0||e('body[data-ls="pretty_photo"]').length>0?(e("a.pp").removeClass("pp").addClass("magnific-popup"),e("a[rel^='prettyPhoto']:not([rel*='_gal']):not([rel*='product-gallery']):not([rel*='prettyPhoto['])").removeAttr("rel").addClass("magnific-popup"),e(".wpb_gallery .wpb_gallery_slidesnectarslider_style").each(function(){e(this).find(".swiper-slide a:not(.ext-url-link)").addClass("pretty_photo")}),e('.wpb_gallery_slides.wpb_flexslider:not([data-onclick="custom_link"])').each(function(){e(this).find(".slides > li > a").addClass("pretty_photo")}),e(".wpb_gallery_slidesflickity_style, .wpb_gallery_slidesflickity_static_height_style").each(function(){e(this).find(".cell > a:not(.ext-url-link)").addClass("pretty_photo")}),e(".portfolio-items, .wpb_gallery .swiper-slide, .wpb_gallery_slidesflickity_style .cell, .wpb_gallery_slidesflickity_static_height_style .cell, .wpb_gallery_slides.wpb_flexslider ul > li, .wpb_gallery .parallax-grid-item, .nectar-post-grid-item").each(function(){e(this).find(".pretty_photo").length>0?e(this).find(".pretty_photo").removeClass("pretty_photo").addClass("gallery").addClass("magnific"):e(this).find('a[rel*="prettyPhoto["]').length>0&&e(this).find('a[rel*="prettyPhoto["]').removeAttr("rel").addClass("gallery").addClass("magnific")}),e("a[data-rel='prettyPhoto[product-gallery]']").each(function(){e(this).removeAttr("data-rel").addClass("magnific").addClass("gallery")}),r.hasClass("nectar-auto-lightbox")&&(e(".gallery").each(function(){0==e(this).find('.gallery-icon a[rel^="prettyPhoto"]').length&&e(this).find('.gallery-item .gallery-icon a[href*=".jpg"], .gallery-item .gallery-icon a[href*=".png"], .gallery-item .gallery-icon a[href*=".gif"], .gallery-item .gallery-icon a[href*=".jpeg"]').addClass("magnific").addClass("gallery").removeClass("pretty_photo")}),e(".main-content img").each(function(){e(this).parent().is("[href]")&&!e(this).parent().is(".magnific-popup")&&0==e(this).parents(".tiled-gallery").length&&0==e(this).parents(".product-image").length&&0==e(this).parents(".iosSlider.product-slider").length&&e(this).parent().attr("href").match(/\.(jpg|png|gif)\b/)&&e(this).parent().addClass("magnific-popup").addClass("image-link")})),e("a.magnific-popup:not(.gallery):not(.nectar_video_lightbox):not(.nectar_video_lightbox_trigger)").magnificPopup({type:"image",callbacks:{imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){e.magnificPopup.instance.next=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.next.call(t)},100)},e.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.prev.call(t)},100)}}},fixedContentPos:!1,mainClass:"mfp-zoom-in",removalDelay:400}),e("a.magnific-popup.nectar_video_lightbox, .nectar_video_lightbox_trigger, .magnific_nectar_video_lightbox a.link_text, .swiper-slide a[href*=youtube], .swiper-slide a[href*=vimeo], .nectar-video-box a.full-link.magnific-popup").magnificPopup({type:"iframe",fixedContentPos:!1,mainClass:"mfp-zoom-in",removalDelay:400}),e("a.magnific.gallery").each(function(){var t=e(this).closest(".wpb_column").length>0?e(this).closest(".wpb_column"):e(this).parents(".row");t.length>0&&!t.hasClass("lightbox-col")&&(t.magnificPopup({type:"image",delegate:"a.magnific",mainClass:"mfp-zoom-in",fixedContentPos:!1,callbacks:{elementParse:function(t){e(t.el).is("[href]")&&-1!=e(t.el).attr("href").indexOf("iframe=true")||e(t.el).is("[href]")&&-1!=e(t.el).attr("href").indexOf("https://www.youtube.com/watch")?t.type="iframe":e(t.el).is("[href]")&&-1!=e(t.el).attr("href").indexOf("video-popup-")?t.type="inline":t.type="image"},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){if(e(this.content).find(".mejs-video video").length>0&&e().mediaelementplayer){e(this.content).find(".mejs-video video")[0].player.remove();var t=this;setTimeout(function(){e(t.content).find("video").mediaelementplayer(),e(t.content).find(".mejs-video video")[0].player.play()},50)}e.magnificPopup.instance.next=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.next.call(t),e(t.content).find(".mejs-video video").length>0&&e(t.content).find(".mejs-video video")[0].play()},100)},e.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.prev.call(t),e(t.content).find(".mejs-video video").length>0&&e(t.content).find(".mejs-video video")[0].play()},100)}},close:function(){e(this.content).find(".mejs-video video").length>0&&e(this.content).find(".mejs-video video")[0].load()}},removalDelay:400,gallery:{enabled:!0}}),t.addClass("lightbox-col"))})):e('body[data-ls="fancybox"]').length>0&&(e().fancybox?ct():setTimeout(ct,200))},60)}function ut(){e(he+" .wpb_animate_when_almost_visible").each(function(){var t=e(this),a=1==ue?"200%":"90%",n=new Waypoint({element:t[0],handler:function(){t.parents(".wpb_tab").length>0&&"hidden"==t.parents(".wpb_tab").css("visibility")||t.hasClass("animated")?n.destroy():(t.addClass("animated"),t.addClass("wpb_start_animation"),n.destroy(),t.is(".nectar-button")&&e('body[data-button-style*="rounded_shadow"]').length>0&&setTimeout(function(){t.removeClass("wpb_start_animation")},1100))},offset:a})})}function pt(e,t){this.$el=e,this.duration=t,this.interval="",this.words=[],this.state={activeIndex:0,sequenceStarted:0,visible:!1},this.setup()}function ft(){e(he+".nectar-milestone").each(function(){var t=1==ue?"250%":"98%";be.usingMobileBrowser&&"98%"==t&&(t="110%");var a=0;e(this).is("[data-animation-delay]")&&e(this).attr("data-animation-delay").length>0&&"false"!=e(this).attr("data-animation")&&(a=e(this).attr("data-animation-delay"));var n=e(this),i=new Waypoint({element:n[0],handler:function(){if(n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in"))i.destroy();else{var t=n.find(".number span:not(.symbol)").text().replace(/,/g,""),s=0;if(-1!==t.toString().indexOf(".")){s=2;var r=t.toString().split(".")[1].length;r>2&&r<5&&(s=r)}t=parseFloat(t),setTimeout(function(){if(n.hasClass("motion_blur"))n.find("span").each(function(t){var a=e(this);setTimeout(function(){a.addClass("in-sight")},200*t)});else{var a={easingFn:lt},i=n.find(".number span:not(.symbol)")[0];new ot(i,0,t,s,2.2,a).start()}n.addClass("animated-in")},a),i.destroy()}},offset:t})})}function gt(e){var t,a,n;(t=e.parent()).length?(a=t.position().left,n=t.width()):a=n=0,e.parent().parent().find(".magic-line").css("transform","translateX("+a+"px) scaleX("+n+")")}function mt(){r.on("click",".tabbed > ul li:not(.cta-button) a",function(a){if(function(a){var n=a.parents("li").index()+1,i=e("body.vc_editor").length>0?"> .wpb_tab ":"";if(a.closest(".tabbed").length>0&&a.closest(".tabbed").is('[data-style="toggle_button"]')&&3===n&&(n=2),!a.hasClass("active-tab")&&!a.hasClass("loading")){a.parents("ul").find("a").removeClass("active-tab"),a.parents("ul").find("li").removeClass("active-tab"),a.addClass("active-tab"),a.parent().addClass("active-tab"),a.closest(".tabbed").find("> div:not(.clear)"+i).css({visibility:"hidden",position:"absolute",opacity:"0",left:"-9999px",display:"none"}).removeClass("visible-tab");var o=a.parents('.tabbed[data-animation="none"]').length>0?0:400;if(e("body.vc_editor").length>0){var l=a.parent().is("[data-m-id]")?a.parent().attr("data-m-id"):"";a.parents('.tabbed[data-style="toggle_button"]').length>0&&a.parents("li").index()+1===3&&a.parents(".wpb_tabs_nav").find(".toggle-button[data-m-id]").length>0&&(l=a.parents(".wpb_tabs_nav").find(".toggle-button").attr("data-m-id")),a.parents(".tabbed").find('> div[data-model-id="'+l+'"]'+i).css({visibility:"visible",position:"relative",left:"0",display:"block"}).stop().transition({opacity:1},o).addClass("visible-tab"),r.is('[data-flex-cols="true"]')||wi()}else a.closest(".tabbed").find("> div:nth-of-type("+n+")"+i).css({visibility:"visible",position:"relative",left:"0",display:"block"}).stop().transition({opacity:1},o).addClass("visible-tab");var d=a.closest(".tabbed").find("> div:nth-of-type("+n+")");(d.find(".iframe-embed").length>0||d.find(".portfolio-items").length>0||d.find(".nectar-video-bg").length>0)&&setTimeout(function(){s.trigger("resize")},10)}var c=a.parents(".tabbed").find("> div:nth-of-type("+n+")"+i);c.find(".nectar-progress-bar").length>0&&ea(),(c.find('.divider-small-border [data-animate="yes"]').length>0||c.find('.divider-border [data-animate="yes"]').length>0)&&ia(),(c.find("img.img-with-animation").length>0||c.find(".col.has-animation").length>0||c.find(".nectar_cascading_images").length>0||c.find(".wpb_column.has-animation").length>0)&&(Zt(),Gt()),(c.find(".parallax-layer").length>0||c.parents(".nectar-parallax-enabled").length>0)&&Rt(),Lt(),c.find(".nectar-milestone").length>0&&ft(),c.find('.nectar_image_with_hotspots[data-animation="true"]').length>0&&(oa(),setTimeout(function(){s.trigger("resize")},100)),c.find(".nectar-fancy-ul").length>0&&zt(),c.find(".nectar-split-heading").length>0&&Jt(),c.find('.wpb_column[data-border-animation="true"]').length>0&&ta(),c.find(".wpb_animate_when_almost_visible").length>0&&ut(),c.find(".nectar-animated-title").length>0&&va(),c.find(".nectar-highlighted-text").length>0&&ba(),c.find(".nectar_food_menu_item").length>0&&na(),c.find('.nectar-post-grid:not([data-animation="none"])').length>0&&ma(),c.find(".nectar-waypoint-el").length>0&&aa(),a.parents(".wpb_row").length>0&&((c.find(".vc_pie_chart").length>0||c.find(".wp-video-shortcode").length>0||c.find(".post-area.masonry .posts-container").length>0||c.find(".twentytwenty-container").length>0||a.parents('#nectar_fullscreen_rows[data-content-overflow="scrollbar"]').length>0||a.parents(".tabbed").find("> div:nth-of-type("+n+")").find(".wpb_gallery").length>0||a.parents(".tabbed").find("> div:nth-of-type("+n+")").find(".swiper-container").length>0||a.parents(".wpb_row").next().hasClass("parallax_section"))&&s.trigger("resize"),c.find(".nectar-flickity").length>0&&"undefined"!=typeof Flickity&&a.parents(".tabbed").find("> div:nth-of-type("+n+")").find(".nectar-flickity").each(function(){Flickity.data(e(this)[0]).resize()}),c.find(".nectar-woo-flickity").length>0&&"undefined"!=typeof Flickity&&setTimeout(function(){Flickity.data(a.parents(".tabbed").find("> div:nth-of-type("+n+")").find(".nectar-woo-flickity > ul")[0]).resize(),e(t).trigger("nectar-product-filters-layout")},100)),c.find(".svg-icon-holder").each(function(t){var a=e(this);setTimeout(function(){var e=0;a.is("[data-animation-delay]")&&a.attr("data-animation-delay").length>0&&"false"!=a.attr("data-animation")&&(e=a.attr("data-animation-delay")),clearTimeout(se[t]),"false"==a.attr("data-animation")?(a.css("opacity","1"),q[a.find("svg").attr("id").slice(-1)].finish()):(q[a.find("svg").attr("id").slice(-1)].reset(),se[t]=setTimeout(function(){q[a.find("svg").attr("id").slice(-1)].play()},e))},150)}),e(".nectar-cta .link_wrap, .nectar-cta .link_text").removeClass("hover"),a.parents(".tabbed").find(".wpb_row").each(function(){if(void 0!==e(this).find('[class*="vc_col-"]').first().offset()){var t=e(this).find('[class*="vc_col-"]').first().offset().left;e(this).find('[class*="vc_col-"]').each(function(){e(this).removeClass("no-left-margin"),e(this).offset().left<t+15?e(this).addClass("no-left-margin"):e(this).removeClass("no-left-margin")})}}),0,a.parent().parent().find(".magic-line").length>0&&gt(a),e(t).trigger("nectar-tab-changed")}(e(this)),void 0!==a.originalEvent&&be.winW<1e3&&0==me.$usingFullScreenRows&&!e(this).parents(".disable-mobile-tab-scroll")){var n=e(this).closest(".tabbed").find("> ul");if(n.height()>350){var i=n.offset().top+n.height()-be.adminBarHeight;e('#header-outer[data-mobile-fixed="1"]').length>0&&(i=n.offset().top+n.height()-d.outerHeight()-be.adminBarHeight),tt(i,0,"easeInOutQuint")}}return!1}),e("body").on("click",".wpb_tabs_nav > .toggle-button",function(){e(this).parents(".wpb_tabs_nav").find("> li:not(.active-tab):not(.toggle-button) a").trigger("click")}),e('a[class*="nectar-tab-trigger"]').on("click",function(t){if(!e(this).is('[href*="#"]')||e(this).attr("href").length<1)return!0;var a=e(this).attr("href");a=(a=a.substr(1)).replace(/\s+/g,"-").replace(/</g,"&lt;").replace(/"/g,"&quot;").toLowerCase(),e(".wpb_tabs_nav").each(function(){e(this).find("li").each(function(){var t=e(this).find("a").clone();t.find("svg").remove(),(t=(t=t.text()).replace(/\s+/g,"-").toLowerCase()).length>0&&"-"===t.substring(0,1)&&(t=t.substring(1)),t==a&&e(this).find("a").trigger("click")})}),t.preventDefault()}),e(".tabbed").each(function(){var t;e(this).find(".wpb_tab").each(function(t){if(e(this).is("[data-tab-icon]")&&e(this).attr("data-tab-icon").length>0&&0==e(this).find(".im-icon-wrap.tab-icon").length&&(e(this).closest(".tabbed").addClass("using-icons"),e(this).closest(".tabbed").find(".wpb_tabs_nav li:nth-child("+(t+1)+") > a").prepend('<i class="'+e(this).attr("data-tab-icon")+'"></i>'),e(this).closest(".tabbed").is('[data-style="toggle_button"]')&&1===t&&e(this).closest(".tabbed").find(".wpb_tabs_nav li:nth-child("+(t+2)+") > a").prepend('<i class="'+e(this).attr("data-tab-icon")+'"></i>')),e(this).find(".im-icon-wrap.tab-icon").length>0){var a=e(this).find(".im-icon-wrap.tab-icon").detach();e(this).closest(".tabbed").find(".wpb_tabs_nav li:nth-child("+(t+1)+") > a").prepend(a)}}),t=e(this),setTimeout(function(){t.is('[data-style="minimal_alt"]')&&(t.find("> ul").append('<li class="magic-line" />'),gt(t.find("> ul > li:first-child > a")))},100)}),e('.tabbed[data-style="minimal_alt"]').length>0&&s.on("smartresize",function(){e('.tabbed[data-style="minimal_alt"]').each(function(){e(this).find("a.active-tab").length>0&&gt(e(this).find("a.active-tab"))})}),void 0!==rt.tab&&e(".wpb_tabs_nav").each(function(){e(this).find("li").each(function(){var t=e(this).find("a").clone(),a=rt.tab,n=e(this);t.find("svg").remove(),(t=(t=t.text()).replace(/\s+/g,"-").toLowerCase()).length>0&&"-"===t.substring(0,1)&&(t=t.substring(1)),t==(a=a.replace(/\s+/g,"-").replace(/</g,"&lt;").replace(/"/g,"&quot;").toLowerCase())&&(e(this).find("a").trigger("click"),setTimeout(function(){n.find("a").trigger("click")},501))})}),e(".nectar-scrolling-tabs").each(function(t){be.usingFrontEndEditor||(le[t]=new vt(e(this)))});var a=!1;r.on("click",".scrolling-tab-nav-current-item",function(){e(this).toggleClass("open"),e(this).siblings(".wpb_tabs_nav").toggle(),Lt()}),r.on("click",".nectar-sticky-tabs .wpb_tabs_nav li",function(t){var a=e(this).parents(".wpb_tabs_nav"),n=e(this).parents(".scrolling-tab-nav").find(".scrolling-tab-nav-current-item"),i=e(this).find(".tab-nav-heading").clone();n.html(i),void 0!==t.originalEvent&&(e(this).parents(".scrolling-tab-nav").find(".scrolling-tab-nav-current-item").toggleClass("open"),a.toggle())}),r.on("click",".nectar-sticky-tabs .wpb_tabs_nav a",function(n){var i=e(this),s=i.parents("li").index()+1,r=e("body.vc_editor").length>0?"> .wpb_tab ":"",o=i.parents(".nectar-sticky-tabs"),l=o.hasClass("content_animation_fade")?200:600;(i.parents("li").hasClass("active-tab")||a)&&o.hasClass("loaded")||(a=!0,o.find(".wpb_tabs_nav li").removeClass("active-tab"),i.parents("li").addClass("active-tab"),o.find(".scrolling-tab-content  > div").removeClass("previously-active-tab"),o.find(".scrolling-tab-content > div.active-tab").addClass("previously-active-tab").removeClass("active-tab"),o.find(".scrolling-tab-content > div:nth-of-type("+s+")"+r).addClass("active-tab"),e(t).trigger("nectar-tab-changed"),setTimeout(function(){a=!1},l)),n.preventDefault()}),e(".tabbed .wpb_tab").first().addClass("visible-tab"),e(".nectar-sticky-tabs .wpb_tabs_nav > li:first-child").each(function(){e(this).find("a").first().trigger("click")}),a=!1,e(".nectar-sticky-tabs").addClass("loaded"),e(t).on("nectar-tab-changed",wa)}function vt(e){this.$el=e,this.$tabContent=e.find(".scrolling-tab-content"),this.$lineEl=e.find(".scrolling-tab-nav .line"),this.observer=null,this.linkFunc=this.$el.hasClass("navigation_func_active_link_only")?"single_link":"default",this.domSetup(),this.highlightObserve(),this.events()}function bt(){void 0!==rt.toggle&&e(".toggles").each(function(){e(this).find(".toggle").each(function(){var t=e(this).find("h3 a").clone(),a=rt.toggle;e(t).find("i").remove(),(t=(t=t.text()).replace(/\s+/g,"-").toLowerCase())==(a=a.replace(/\s+/g,"-").replace(/</g,"&lt;").replace(/"/g,"&quot;").toLowerCase())&&e(this).find("h3 a").trigger("click")})})}function wt(){e(".toggles").each(function(){var t=e(this).find(".toggle.open");t.length>0&&t.each(function(){var t=e(this).find("> div")[0];t.style.maxHeight=t.scrollHeight+"px"})})}function yt(){setTimeout(function(){e('.toggles.accordion:not([data-starting="closed"])').each(function(){if(0==e(this).find('.toggle[data-inner-wrap="true"]').length)e(this).find("> .toggle").first().addClass("open").find("> div").show();else if(!be.usingFrontEndEditor){var t=e(this).find("> .toggle").first();t.addClass("open"),t.find("> div")[0].style.maxHeight=t.find("> div")[0].scrollHeight+"px"}e(this).find("> .toggle").first().find("a:not(.nectar-button) i").attr("class","fa fa-minus-circle")}),setTimeout(bt,300)},60),e('.toggle[data-inner-wrap="true"]').length>0&&s.on("smartresize",wt),e(".toggle > h3:not(.toggle-title)").addClass("toggle-title")}function _t(e){this.$el=e,this.$innerEl=this.$el.find(" > .n-sticky > .vc_column-inner"),0!=this.$innerEl.length&&(this.topOffset=0,this.lazyInit())}function Ct(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var a,n,i="#";for(n=0;n<3;n++)a=parseInt(e.substr(2*n,2),16),i+=("00"+(a=Math.round(Math.min(Math.max(0,a+a*t),255)).toString(16))).substr(a.length);return i}function xt(){e(".nectar-3d-transparent-button").each(function(){if("visible"==e(this).css("visibility")){var t=e(this),a=0,n=1.7;if("extra_jumbo"==t.attr("data-size")){var i;be.winW<1e3&&be.winW>690?(a=64,i=34,t.find(".back-3d rect").attr("stroke-width","12"),n=1.7):be.winW<=690?(a=46,i=16,t.find(".back-3d rect").attr("stroke-width","10"),n=1.7):(a=100,i=64,t.find(".back-3d rect").attr("stroke-width","20"),n=1.6),t.find("svg text").attr("font-size",i);var s=e(this).find(".back-3d .button-text")[0].getBoundingClientRect().width,r=1.5*i;t.css({width:s+1.5*a+"px",height:r+a+"px"}),t.find("> a").css({height:r+a+"px"}),t.find(".back-3d svg, .front-3d svg").css({width:s+1.5*a+"px",height:r+a+"px"}).attr("viewBox","0 0 "+(s+1.5*a)+" "+(r+a)),t.find("svg text").attr("transform","matrix(1 0 0 1 "+(s+1.6*a)/2+" "+(r+a)/n+")"),t.find(".front-3d ").css("transform-origin","50% 50% -"+(r+a)/2+"px"),t.find(".back-3d").css("transform-origin","50% 50% -"+(r+a)/2+"px")}}})}function kt(){if(be.usingMobileBrowser||e('.nectar-cta[data-style="text-reveal-wave"], .menu-item-hover-text-reveal-wave, .nectar-cta[data-style="curved-arrow-animation"]').each(function(){e(this).find(".char").each(function(t){e(this).css("animation-delay",.015*t+"s")});var t=e(this).is('[data-using-bg="true"]')?".link_wrap":".link_text",a=!1;if(e(this).is('[class*="border_thickness_"]')&&!e(this).is('[class*="border_thickness_0px"]')&&(t=".link_wrap",a=!0),e(this).is(".menu-item-hover-text-reveal-wave")&&(t="a"),e(this).is("[data-triggered-by]")){var n=e(this).attr("data-triggered-by");e(this).parents(n).on("mouseenter",function(){if(be.winW>999){var t=e(this).find(".link_text");t.removeClass("hover"),setTimeout(function(){t.addClass("hover")},20)}})}else e(this).find(t).on("mouseenter",function(){if(be.winW>999){var t=a?e(this).find(".link_text"):e(this);t.removeClass("hover"),setTimeout(function(){t.addClass("hover")},20)}})}),e(".nectar-link-underline-effect a").on("mouseenter",function(){e(this).addClass("accessed")}),e(".nectar-button.see-through[data-color-override], .nectar-button.see-through-2[data-color-override], .nectar-button.see-through-3[data-color-override]").each(function(){var t,a,n=e('body.material[data-button-style^="rounded"]').length>0;if(e(this).css("visibility","visible"),e(this).hasClass("see-through-3")&&"false"==e(this).attr("data-color-override"))return!0;t="false"!=e(this).attr("data-color-override")?e(this).attr("data-color-override"):e(this).parents(".dark").length>0?"#000000":"#ffffff",e(this).hasClass("see-through-3")||e(this).css("color",t),e(this).find("i").css("color",t);var i=parseInt(t.substring(1),16),s=e(this).has("[data-hover-color-override]")?e(this).attr("data-hover-color-override"):"no-override",r=e(this).has("[data-hover-text-color-override]")?e(this).attr("data-hover-text-color-override"):"#fff",o=(16711680&i)>>16,l=(65280&i)>>8,d=(255&i)>>0,c=e(this).hasClass("see-through-3")?"1":"0.75";e(this).css("border-color","rgba("+o+","+l+","+d+","+c+")"),n&&e(this).find("i").css({"background-color":"rgba("+o+","+l+","+d+",1)","box-shadow":"0px 8px 15px rgba("+o+","+l+","+d+",0.24)"}),e(this).hasClass("see-through")?(a=e(this),e(this).on("mouseenter touchstart",function(){a.css("border-color","rgba("+o+","+l+","+d+",1)")}),e(this).on("mouseleave touchtouchend",function(){a.css("border-color","rgba("+o+","+l+","+d+",1)"),c=e(this).hasClass("see-through-3")?"1":"0.75",a.css("border-color","rgba("+o+","+l+","+d+","+c+")")})):(e(this).find("i").css("color",r),"no-override"!=s?(a=e(this),e(this).on("mouseenter touchstart",function(){a.css({"border-color":s,"background-color":s,color:r}),n&&a.find("i").css({"background-color":"","box-shadow":""})}),e(this).on("mouseleave touchtouchend",function(){c=e(this).hasClass("see-through-3")?"1":"0.75",n&&a.find("i").css({"background-color":"rgba("+o+","+l+","+d+",1)","box-shadow":"0px 8px 15px rgba("+o+","+l+","+d+",0.24)"}),a.hasClass("see-through-3")?a.css({"border-color":"rgba("+o+","+l+","+d+","+c+")","background-color":"transparent"}):a.css({"border-color":"rgba("+o+","+l+","+d+","+c+")","background-color":"transparent",color:t})})):(a=e(this),e(this).on("mouseenter touchstart",function(){a.css({"border-color":s,color:r})}),e(this).on("mouseleave touchtouchend",function(){c=a.hasClass("see-through-3")?"1":"0.75",a.css({"border-color":"rgba("+o+","+l+","+d+","+c+")",color:r})})))}),e(".nectar-button:not(.see-through):not(.see-through-2):not(.see-through-3)[data-color-override]").each(function(){if(e(this).css("visibility","visible"),"false"!=e(this).attr("data-color-override")){var t=e(this).attr("data-color-override");e(this).removeClass("accent-color").removeClass("extra-color-1").removeClass("extra-color-2").removeClass("extra-color-3").css("background-color",t)}}),e(".swiper-slide .solid_color_2").length>0||e(".tilt-button-inner").length>0){var t,a="";e(".swiper-slide .solid_color_2 a").each(function(n){e(this).addClass("instance-"+n),t="false"!=e(this).attr("data-color-override")?e(this).attr("data-color-override"):e(this).parents(".dark").length>0?"#000000":"#ffffff",e(this).css("color",t),e(this).find("i").css("color",t);var i=e(this).css("background-color"),s=Ct(i,.13),r=Ct(i,-.15);a+=".swiper-slide .solid_color_2 a.instance-"+n+":after { background-color: "+s+";  } .swiper-slide .solid_color_2 a.instance-"+n+":before { background-color: "+r+"; } "}),e(".tilt-button-wrap a").each(function(t){e(this).addClass("instance-"+t);var n,i=e(this).css("background-color");"false"!=e(this).attr("data-color-override")&&(n=e(this).attr("data-color-override"),e(this).css("background-color",n),i=n);var s=Ct(i,.13),r=Ct(i,-.15);a+=".tilt-button-wrap a.instance-"+t+":after { background-color: "+s+";  } .tilt-button-wrap a.instance-"+t+":before { background-color: "+r+"; } "}),dt(a,"tilt-button")}if(e(".nectar-3d-transparent-button").length>0){var n="";e(".nectar-3d-transparent-button").each(function(t){e(this).on("mouseover",function(){e(this).find("*").css("display","");var t=e(this);setTimeout(function(){t.find("*").css("display","block")},60)}),e(this).on("mouseleave",function(){e(this).find("*").css("display","block");var t=e(this);setTimeout(function(){t.find("*").css("display","")},60)});var a,i=e(this),s=i.attr("data-size"),r=0,o=1.5,l=1.65;"large"==s?(r=46,a=16,o=1.5,l=1.7):"medium"==s?(r=30,a=16):"small"==s?(r=20,a=12):"jumbo"==s?(r=54,a=24,o=1.5,l=1.68):"extra_jumbo"==s&&(r=100,a=64,o=1.6,l=1.6),i.find("svg text").attr("font-size",a);var d=e(this).find(".back-3d .button-text")[0].getBoundingClientRect().width,c=1.5*a;i.css({width:d+1.5*r+"px",height:c+r+"px"}),i.find("> a").css({height:c+r+"px"}),i.find(".back-3d svg, .front-3d svg").css({width:d+1.5*r+"px",height:c+r+"px"}).attr("viewBox","0 0 "+(d+1.5*r)+" "+(c+r)),i.find("svg text").attr("transform","matrix(1 0 0 1 "+(d+r*o)/2+" "+(c+r)/l+")"),i.find(".front-3d, .back-3d").css("transform-origin","50% 50% -"+(c+r)/2+"px"),e(this).find(".front-3d svg > rect").attr("id","masked-rect-id-"+t),e(this).find(".front-3d defs mask").attr("id","button-text-mask-"+t),i.css("visibility","visible"),n+="#masked-rect-id-"+t+" { mask: url(#button-text-mask-"+t+"); -webkit-mask: url(#button-text-mask-"+t+")} "}),xt(),s.on("smartresize",xt),dt(n,"nectar-td-button")}setTimeout(function(){e('.nectar-button[class*="color-gradient"] .start').removeClass("loading")},150),(navigator.userAgent.toLowerCase().indexOf("firefox")>-1||navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.match(/Trident\/7\./))&&e('.nectar-button[class*="color-gradient"] .start').addClass("no-text-grad")}function $t(){e(".icon-3x").each(function(){e(this).closest(".col").on("mouseenter",function(){e(this).find(".icon-3x").addClass("hovered")}),e(this).closest(".col").on("mouseleave",function(){e(this).find(".icon-3x").removeClass("hovered")})}),(navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.match(/Trident\/7\./))&&e('[class^="icon-"][class*="color-gradient"], .nectar_icon_wrap[data-color*="extra-color-gradient"] .nectar_icon, .nectar-gradient-text').addClass("no-grad")}function Tt(){var t=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?275:0;e(".nectar_team_member_overlay").css({width:s.width()-t,left:t})}function It(){var t="";e(".wpb_column").each(function(a){e(this).removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),("true"==e(this).attr("data-has-bg-color")||e(this).is('[data-hover-bg^="#"]'))&&e(this).addClass("instance-"+a);var n=e(this).find("> .vc_column-inner > .column-bg-overlay-wrap").length>0||e(this).find("> .vc_column-inner > .column-bg-overlay").length>0?" > .vc_column-inner ":"",i=e(this).find(n+" > .column-bg-overlay-wrap").length>0?"> .column-bg-overlay-wrap ":"";"true"==e(this).attr("data-has-bg-color")&&(t+=".wpb_column.instance-"+a+n+i+" > .column-bg-overlay { background-color:"+e(this).attr("data-bg-color")+";  opacity: "+e(this).attr("data-bg-opacity")+"; }"),e(this).is('[data-hover-bg^="#"]')&&(t+=".wpb_column.instance-"+a+":hover "+n+i+" > .column-bg-overlay { background-color: "+e(this).attr("data-hover-bg")+"!important; opacity: "+e(this).attr("data-hover-bg-opacity")+"!important; }")}),dt(t,"column-bg-colors")}function Et(){if(e(".morphing-outline").length>0){var t="",a=e("body.vc_editor").length>0?"":">";e(".morphing-outline").each(function(n){e(this).removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),e(this).addClass("instance-"+n).css({visibility:"visible"});var i=e(this).find(".inner").width(),s=e(this).find(".inner").height(),r=parseInt(e(this).attr("data-border-thickness")),o=e('body[data-button-style*="rounded"]').length>0?":hover":"",l=e('body[data-button-style*="rounded"]').length>0?"":":hover";t+="body .morphing-outline.instance-"+n+" .inner > * { color: "+e(this).attr("data-starting-color")+"; } ",t+="body .morphing-outline.instance-"+n+" .inner:after  { border-width:"+e(this).attr("data-border-thickness")+"px ; border-color: "+e(this).attr("data-starting-color")+"; } ",t+="body .wpb_column:hover > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner > *, body .wpb_column:hover > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner > * { color: "+e(this).attr("data-hover-color")+"; } ",t+="body .wpb_column:hover > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column:hover > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after  { border-color: "+e(this).attr("data-hover-color")+"; } ",t+="body .wpb_column"+l+" > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column"+l+" > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after { padding: "+((i+100+2*r-s)/2-r)+"px 50px}",t+=".morphing-outline.instance-"+n+" { padding: "+(30+(i+80+2*r-s)/2-r)+"px 50px}",t+="body .wpb_column"+l+" > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column"+l+" > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after { top: -"+parseInt((i+100+2*r-s)/2-r+r)+"px }",t+="body .wpb_column > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after { left: -"+parseInt(50+r)+"px }",t+="body .wpb_column"+o+" > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column"+o+" > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after { padding: 50px 50px}",t+="body .wpb_column"+o+" > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after, body .wpb_column"+o+" > .vc_column-inner > .wpb_wrapper "+a+" .morphing-outline.instance-"+n+" .inner:after { top: -"+parseInt(50+r)+"px }"}),dt(t,"morphing-outlines")}}function Ot(){var t=1==ue?"500%":"bottom-in-view";0==q.length||be.usingFrontEndEditor&&e("#nectar_fullscreen_rows").length>0?(e(".svg-icon-holder:not(.animated-in)").has("svg").each(function(a){var n=e(this);S&&n.attr("data-animation","false"),n.find("svg").css({height:parseInt(n.attr("data-size"))+"px",width:parseInt(n.attr("data-size"))+"px"}),e(this).find("svg").attr("id","nectar-svg-animation-instance-"+a);var i=n.is("[data-animation-speed]")&&n.attr("data-animation-speed").length>0?n.attr("data-animation-speed"):200;if("false"==n.attr("data-animation")&&(i=1,n.css("opacity","1")),n.hasClass("bound")||(q[a]=new Vivus(n.find("svg").attr("id"),{type:"delayed",pathTimingFunction:Vivus.EASE_OUT,animTimingFunction:Vivus.LINEAR,duration:i,onReady:function(){n.css({height:parseInt(n.attr("data-size"))+"px",width:parseInt(n.attr("data-size"))+"px"})}})),1!==i)var s=new Waypoint({element:n[0],handler:function(){n.hasClass("animated-in")?s.destroy():(r(),n.addClass("animated-in"),s.destroy())},offset:t});else r();function r(){var e=0;n.is("[data-animation-delay]")&&n.attr("data-animation-delay").length>0&&"false"!=n.attr("data-animation")&&(e=n.attr("data-animation-delay"));var t=n.find("svg").attr("id").replace(/[^0-9]/g,"");1==q[t].isReady?setTimeout(function(){n.css("opacity","1"),q[t].reset().play()},e):setTimeout(r,50)}n.addClass("bound")}),e('.vc_row-o-equal-height .svg-icon-holder[data-animation="true"]').length>0&&0==e("#nectar_fullscreen_rows").length&&s.on("smartresize",function(){clearTimeout(n),n=setTimeout(function(){q.length>0&&e(".svg-icon-holder.animated-in").each(function(){if(e(this).css("opacity","1"),e(this).is("[id]")){var t=e(this).attr("id").replace(/[^0-9]/g,"");q[t].finish()}})},300)})):e(".svg-icon-holder").addClass("animated-in").css("opacity","1"),e("#nectar_fullscreen_rows .svg-icon-holder.animated-in").has("svg").each(function(t){var a=0;e(this).is("[data-animation-delay]")&&e(this).attr("data-animation-delay").length>0&&"false"!=e(this).attr("data-animation")&&(a=e(this).attr("data-animation-delay"));var n=e(this),i=n.find("svg").attr("id").replace(/[^0-9]/g,"");clearTimeout(se[t]),"false"==n.attr("data-animation")?(n.css("opacity","1"),q[i].finish()):e(this).parents(".active").length>0||e(this).parents("#footer-outer").length>0||e("body.mobile").length>0?(q[i].reset(),se[t]=setTimeout(function(){q[i].play()},a)):q[i].reset().stop()})}function zt(){e(he+".nectar-fancy-ul").each(function(){var t=e(this).attr("data-animation"),a=0;if(e(this).is("[data-animation-delay]")&&e(this).attr("data-animation-delay").length>0&&"false"!=e(this).attr("data-animation")&&(a=e(this).attr("data-animation-delay")),"true"==t)var n=e(this),i=new Waypoint({element:n[0],handler:function(){n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in")?i.destroy():(setTimeout(function(){n.find("li").each(function(t){e(this).delay(220*t).transition({opacity:"1",left:"0"},220,"easeOutCubic")})},a),n.addClass("animated-in"),i.destroy())},offset:"bottom-in-view"})})}function Ht(){e('.nectar-fancy-ul:not([data-list-icon="dot"]):not([data-list-icon="none"])').each(function(){var t=e(this).attr("data-list-icon"),a=e(this).attr("data-color");e(this).find("li").each(function(){e(this).find("> i").remove(),e(this).prepend('<i class="icon-default-style '+t+" "+a+'"></i> ')})})}function St(){e(".nectar-flip-box").each(function(){var t=parseInt(e(this).attr("data-min-height")),a=e(this).find(".flip-box-front .inner").height();e(this).find(".flip-box-back .inner").height()>e(this).find(".flip-box-front .inner").height()&&(a=e(this).find(".flip-box-back .inner").height()),a>=t-80?e(this).find("> div").css("height",a+80):e(this).find("> div").css("height","auto"),e(this).parent().hasClass("wpb_wrapper")&&e(this).parent().css("transform","translateZ(0)")})}function At(){e('.wpb_row .vc_col-sm-12 .nectar-slider-wrap[data-full-width="true"]').each(function(){0==e(this).parents(".wpb_row.full-width-section").length&&0==e(this).parents(".wpb_row.full-width-content").length&&e(this).parents(".wpb_row").addClass("full-width-section")}),!be.usingMobileBrowser&&e('body[data-boxed-style="1"]').length>0&&e("#boxed").length>0&&e("#boxed").length>0&&e(".full-width-section[data-top-percent], .full-width-section[data-bottom-percent], .full-width-content[data-top-percent], .full-width-content[data-bottom-percent]").each(function(){var t=e(this).attr("data-top-percent")?e(this).attr("data-top-percent"):"skip",a=e(this).attr("data-bottom-percent")?e(this).attr("data-bottom-percent"):"skip";"skip"!=t&&e(this).css("padding-top",t),"skip"!=a&&e(this).css("padding-bottom",a)})}function Mt(){if(0!=e('.carousel-wrap[data-full-width="true"], .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), #boxed .full-width-content').length){var n,i,r,o=be.winW,l=e(".body-border-right").length>0&&o>1e3||e(".body-border-right").length>0&&t.nectarOptions&&t.nectarOptions.body_border_mobile&&"1"===t.nectarOptions.body_border_mobile?2*parseInt(e(".body-border-right").width()):0,d=e(".container-wrap").length>0?parseInt(e(".container-wrap").outerWidth()):s.width(),c=e("body[data-ext-padding]").length>0?2*parseInt(e("body").attr("data-ext-padding")):180,h=e(".main-content").css("max-width");if(h.indexOf("%")>-1){var u=t.innerWidth-a.documentElement.clientWidth;h=parseInt(h)/100*(be.winW-u)}else h=parseInt(h);if(1==e("#boxed").length)i=(parseInt(e(".container-wrap").width())-parseInt(e(".main-content").width()))/2+4;else{var p=e('body[data-ext-responsive="true"]').length>0&&o>=1e3?c:0;n=d-l<=h?h:d-l;var f=h;e('body.single-post[data-ext-responsive="true"]').length>0&&e(".container-wrap.no-sidebar").length>0&&(f=e(".post-area").width(),p=0),i=Math.ceil((n+p-f)/2)}e(".carousel-outer").has('.carousel-wrap[data-full-width="true"]').css("overflow","visible"),e('.carousel-wrap[data-full-width="true"], .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), #boxed .full-width-content').each(function(){var a=e('#header-outer[data-format="left-header"]').length>0&&o>=1e3?parseInt(e('#header-outer[data-format="left-header"]').width()):0,s=e(".body-border-right").length>0&&o>1e3||e(".body-border-right").length>0&&t.nectarOptions&&t.nectarOptions.body_border_mobile&&"1"===t.nectarOptions.body_border_mobile?2*parseInt(e(".body-border-right").width())-2:0;if(1==e("#boxed").length){var l=o>=690?parseInt(e(".main-content").width()):h;r=0==e("#nectar_fullscreen_rows").length?l:parseInt(e(this).parents(".container").width()),e('body.single-post[data-ext-responsive="true"]').length>0&&e(".container-wrap.no-sidebar").length>0&&e(this).parents(".post-area").length>0?(f=e(".post-area").width(),p=0,n=d-s,i=Math.ceil((n+p-f)/2)):i=e(this).parents(".page-submenu").length>0?(parseInt(e(".container-wrap").width())-r)/2:(parseInt(e(".container-wrap").width())-r)/2+4}else{if(e('body.single-post[data-ext-responsive="true"]').length>0&&e(".container-wrap.no-sidebar").length>0&&e(this).parents(".post-area").length>0)f=e(".post-area").width(),p=0,n=d-s;else{var u=0==e("#nectar_fullscreen_rows").length?h:parseInt(e(this).parents(".container").css("max-width"));d-s<=u&&(n=u),f=u,p=e('body[data-ext-responsive="true"]').length>0&&be.winW>=1e3?c:0,a>0&&(p=e('body[data-ext-responsive="true"]').length>0&&be.winW>=1e3?120:0)}i=Math.ceil((n+p-f)/2)}var g=0;e(this).hasClass("carousel-wrap")&&(g=1),e(this).hasClass("portfolio-items")&&(g=5);var m=1==e("#boxed").length?r+parseInt(2*i):d-s+g;if(0==e("#boxed").length&&e(this).hasClass("portfolio-items")&&e(this).is('[data-gutter*="px"]')&&e(this).attr("data-gutter").length>0&&"none"!=e(this).attr("data-gutter")&&(m=d>1e3?d-s+3:d-s),e(this).parent().hasClass("default-style"))r=0==e("#nectar_fullscreen_rows").length?parseInt(e(".main-content").width()):parseInt(e(this).parents(".container").width()),0!=e("#boxed").length?m=1==e("#boxed").length?r+parseInt(2*i):d+g:(m=1==e("#boxed").length?r+parseInt(2*i):d-s-.025*(d-s)+g,n=d-s<=r?r:d-s-.025*(d-s),i=Math.ceil((n-r)/2));else if(e(this).parent().hasClass("spaced"))if(r=0==e("#nectar_fullscreen_rows").length?parseInt(e(".main-content").width()):parseInt(e(this).parents(".container").width()),0!=e("#boxed").length)m=1==e("#boxed").length?r+parseInt(2*i)-.02*d:d+g;else{m=1==e("#boxed").length?r+parseInt(2*i):d-s-Math.ceil(.02*(d-s))+g;var v=d-s<=r?r:d-s-.02*(d-s);i=Math.ceil((v-r)/2+2)}!e(this).parents(".span_9").length>0&&!e(this).parent().hasClass("span_3")&&"sidebar-inner"!=e(this).parent().attr("id")&&!e(this).find(".nectar-carousel-flickity-fixed-content").length>0&&"portfolio-extra"!=e(this).parent().attr("id")?e(".single-product").length>0&&e(this).parents("#tab-description").length>0&&0==e(this).parents(".full-width-tabs").length?e(this).css({visibility:"visible"}):e(this).hasClass("portfolio-items")?0==e(this).parents(".full-width-content").length&&e(this).css({"margin-left":-i,left:0,width:m,visibility:"visible"}):e("#nectar_fullscreen_rows").length>0&&e(this).hasClass("wpb_row")?e(this).css({"margin-left":-i,width:m,visibility:"visible"}):0==e(this).parents(".full-width-content").length&&e(this).css({left:0,"margin-left":-i,width:m,visibility:"visible"}):"portfolio-extra"==e(this).parent().attr("id")&&0!=e("#full_width_portfolio").length?!e(this).find(".nectar-carousel-flickity-fixed-content").length>0&&e(this).css({left:0,"margin-left":-i,width:m,visibility:"visible"}):e(this).css({"margin-left":0,width:"auto",left:"0",visibility:"visible"})})}}function Wt(){e(".full-width-section.wpb_row, .full-width-content.wpb_row").each(function(){var t=e(this).parent();if(!t.hasClass("span_9")&&!t.hasClass("span_3")&&"sidebar-inner"!=t.attr("id")){if(e(this).parents("#portfolio-extra").length>0&&0==e("#full_width_portfolio").length)return!1;"0"==e(this).index()&&0==g.length&&0==e(".page-header-no-bg").length&&0==e(".project-title").length&&0==e("body.single").length&&(e(this).addClass("first-section"),e(this).addClass("loaded"))}})}function Bt(e){if(this.$element=e,this.$elementInner=e.find("> .vc_column-inner"),this.inView=!1,this.topLevel=!1,this.bottomLevel=!1,this.lastY=0,this.lerp=e.data("scroll-animation-lerp")?parseFloat(e.data("scroll-animation-lerp")):.28,this.intensity=e.data("scroll-animation-intensity")?Math.max(Math.min(parseFloat(e.data("scroll-animation-intensity")),8),-8):3,this.intensity=this.intensity/10,this.storedWinH=be.winH,this.intensity<-.29&&(this.lerp=1),this.type="translateY",this.persistOnMobile=!(!e.is("[data-scroll-animation-mobile]")||"true"!=e.attr("data-scroll-animation-mobile")),this.$element.hasClass("wpb_column")||0!=this.$element.parents(".cell").length||(this.$elementInner=e,this.$element=e.parent(),e.is("[data-scroll-animation-movement]")&&this.$element.attr("data-scroll-animation-movement",e.attr("data-scroll-animation-movement"))),!be.usingMobileBrowser||0!=this.persistOnMobile){this.setType(),this.calculatePos(),this.trackView(),this.animate(),0==this.$element.parents(".wpb_column.has-animation").length&&setInterval(this.calculatePos.bind(this),1e3),s.on("resize",this.calculatePos.bind(this));var a=this;t.addEventListener("orientationchange",function(){this.setTimeout(function(){a.orientationChange()},80)})}}function Ft(e,t,a,n){this.$el=e,this.$parallaxEl=this.$el.find(t),this.firstSection=!1,this.nestedParallax=!1,this.type=n,this.speed=a,this.storedWinH=be.winH,e.parents(".nectar-sticky-tabs").length>0||e.parents(".nectar-sticky-column-css").length>0||e.parents(".nectar-global-section-megamenu").length>0||(this.setup(),this.update())}function Lt(){for(var e=0;e<D.length;e++)D[e]&&D[e].resize();for(e=0;e<G.length;e++)G[e].resize();for(e=0;e<Z.length;e++)Z[e].calculatePos();for(e=0;e<Q.length;e++)Q[e].calculatePos();Waypoint.refreshAll()}function qt(e){this.$el=e,this.animations={},this.offsets={},this.topLevel=!1,this.timelines={},this.devices={desktop:{min:1e3,max:1e7},tablet:{min:691,max:999},phone:{min:0,max:690}},this.needsReset=!0,this.activeDevice="desktop",this.storedWinH=be.winH,this.setupProps(),this.lazyInit()}function Pt(){G=[],e("[data-nectar-animate-settings]").each(function(){G.push(new qt(e(this)))})}function jt(e){var t;switch(e){case"slow":t=.6;break;case"medium":t=.4;break;case"medium_fast":t=.28;break;case"fast":t=.2;break;case"mid_subtle":t=.15;break;case"subtle":t=.13;break;case"very_subtle":t=.12;break;case"minimum":t=.09}return t}function Yt(){if(!(be.usingMobileBrowser&&e('body[data-remove-m-parallax="1"]').length>0)){Z=[],e('.wpb_column[data-scroll-animation="true"], .nectar-el-parallax-scroll[data-scroll-animation="true"]').each(function(t){imagesLoaded(e(this),function(t){e(t.elements[0]).is('[data-scroll-animation="true"]')&&0==e("#nectar_fullscreen_rows").length&&0===e(t.elements[0]).parents(".n-sticky").length&&0===e(t.elements[0]).parents(".nectar-global-section-megamenu").length&&Z.push(new Bt(e(t.elements[0])))})}),Rt();var t=0;e('.nectar-recent-posts-single_featured, [data-n-parallax-bg="true"], .wpb_row.parallax_section, #page-header-bg[data-parallax="1"] .page-header-bg-image-wrap, #page-header-bg[data-parallax="1"] .nectar-video-wrap, .parallax_slider_outer .nectar-slider-wrap').each(function(){e(this).is("[data-n-parallax-bg][data-parallax-speed]")?(D[t]=new Ft(e(this),".parallax-layer",jt(e(this).attr("data-parallax-speed")),"regular"),t++):0==e(this).find('[data-parallax-speed="fixed"]').length&&(e(this).hasClass("nectar-slider-wrap")?D[t]=new Ft(e(this),".video-wrap, .image-bg",.25,"nectar-slider"):e(this).hasClass("page-header-bg-image-wrap")?D[t]=new Ft(e(this),".page-header-bg-image",.25,"page-header"):e(this).hasClass("nectar-video-wrap")&&e(this).parents("#page-header-bg").length>0?D[t]=new Ft(e(this),".nectar-video-bg",.25,"page-header"):(e(this).find(".row-bg.using-image").length>0&&(D[t]=new Ft(e(this),".row-bg.using-image",jt(e(this).find(".row-bg").attr("data-parallax-speed")),"regular")),e(this).find("> .nectar-video-wrap").length>0&&(D[t]=new Ft(e(this),"> .nectar-video-wrap .nectar-video-bg",jt(e(this).find(".row-bg").attr("data-parallax-speed")),"regular"))),t++),e(this).addClass("nectar-parallax-enabled")}),e(".woocommerce-tabs .wc-tabs li").on("click",function(){setTimeout(Rt,100)})}}function Rt(){be.usingMobileBrowser&&e('body[data-remove-m-parallax="1"]').length>0||e('.nectar-recent-posts-single_featured, [data-n-parallax-bg="true"], .wpb_row.parallax_section, #page-header-bg[data-parallax="1"] .page-header-bg-image-wrap, .parallax_slider_outer .nectar-slider-wrap .slide-bg-wrap').each(function(){var t;if(e(this).parents(".wpb_tab:not(.visible-tab)").length>0&&0==e(this).parents(".nectar-scrolling-tabs").length||e(this).parents(".wc-tab").length>0&&"block"!==e(this).parents(".wc-tab").css("display"))return!0;if(0==e(this).find(".row-bg").length&&e(this).find(".page-header-bg-image").length>0||0==e(this).find(".row-bg").length&&e(this).find(".image-bg").length>0&&(t=!1,0==e(".wpb_row").length&&e(this).parents('.nectar-slider-wrap[data-full-width="true"]').length>0&&e(this).parents(".parallax_slider_outer").length>0&&"1"==e(this).parents(".parallax_slider_outer").index()&&(t=!0),e("#portfolio-extra").length>0&&e(this).parents(".wpb_row").length>0&&e(this).parents(".parallax_slider_outer").length>0&&"0"==e(this).parents(".wpb_row").index()&&(t=!0),e(this).parents(".top-level").length>0&&!be.usingFrontEndEditor||t&&!be.usingFrontEndEditor?e(this).find(".image-bg").css({height:Math.ceil(.25*e(this).parent().offset().top)+e(this).outerHeight(!0)}):e(this).find(".image-bg").css({height:Math.ceil(.25*s.height())+e(this).outerHeight(!0)})),0==e(this).find(".row-bg").length&&e(this).find(".video-wrap").length>0){t=!1,0==e(".wpb_row").length&&e(this).parents('.nectar-slider-wrap[data-full-width="true"]').length>0&&e(this).parents(".parallax_slider_outer").length>0&&"1"==e(this).parents(".parallax_slider_outer").index()&&(t=!0),e("#portfolio-extra").length>0&&e(this).parents(".wpb_row").length>0&&e(this).parents(".parallax_slider_outer").length>0&&"0"==e(this).parents(".wpb_row").index()&&(t=!0),e(this).parents(".top-level").length>0&&!be.usingFrontEndEditor||t&&!be.usingFrontEndEditor?e(this).find(".video-wrap").css({height:Math.ceil(.25*e(this).parent().offset().top)+e(this).outerHeight(!0)}):e(this).find(".video-wrap").css({height:Math.ceil(.25*be.winH)+e(this).outerHeight(!0)});var a=e(this).find(".video-wrap video"),n=a.parent().width()/1280,i=a.parent().height()/720,r=n>i?n:i;a.width(1280*r),a.height(720*r)}else if(e(this).is(".nectar-recent-posts-single_featured")&&e(this).parents(".top-level").length>0&&!be.usingFrontEndEditor);else if(e(this).is(".nectar-simple-slider")&&e(this).parents(".top-level").length>0&&!be.usingFrontEndEditor);else if(e(this).is(".column-image-bg-wrap")&&e(this).parents(".top-level").length>0&&e(this).parent().parent().is(".vc_col-sm-12:not(.child_column)"));else if(!e(this).hasClass("top-level")||be.usingFrontEndEditor||e(this).find(".parallax-layer").length>0){var o=".row-bg, > .nectar-video-wrap .nectar-video-inner",l=e(this).find(".row-bg").attr("data-parallax-speed");e(this).find(".parallax-layer").length>0&&!e(this).hasClass("wpb_row")&&(o=".parallax-layer",l=e(this).attr("data-parallax-speed"));var d=e(this).find(o+'[data-parallax-speed="fast"]').length>0?60:0;0==e(this).parents("#page-header-bg").length&&e(this).find(o).css({height:Math.ceil(be.winH*jt(l))+e(this).outerHeight(!0)+d})}})}function Vt(){e('.wpb_wrapper > .nectar-slider-wrap[data-full-width="true"]').each(function(){e(this).parent().hasClass("span_9")||e(this).parent().hasClass("span_3")||"sidebar-inner"==e(this).parent().attr("id")||"0"==e(this).parents(".wpb_row").index()&&e(this).addClass("first-nectar-slider")});var t=0==e("#portfolio-extra").length?e(".main-content > .row > *").length:e(".main-content > .row #portfolio-extra > *").length;t=0==e("#portfolio-extra").length?e(".main-content > .row > .wpb_row").length>0?e(".main-content > .row > .wpb_row").length:e(".main-content > .row > *").length:e(".main-content > .row #portfolio-extra > *").length,e('.container-wrap .full-width-section, .container-wrap .full-width-content:not(.page-submenu .full-width-content):not(.blog-fullwidth-wrap), .row > .nectar-slider-wrap[data-full-width="true"], .wpb_wrapper > .nectar-slider-wrap[data-full-width="true"], .portfolio-items[data-col-num="elastic"]').each(function(){if(e(this).parents(".nectar-global-section.before-footer").length>0||e(this).parents('[class*="nectar_hook_sidebar"]').length>0)return!0;if(!e(this).parent().hasClass("span_9")&&!e(this).parent().hasClass("span_3")&&"sidebar-inner"!=e(this).parent().attr("id"))if(e(this).parents(".wpb_row").length>0){e(this).parent();var a=e(this).parents(".wpb_row").index();if(e(this).parents("#portfolio-extra").length>0&&0==e("#full_width_portfolio").length)return!1;"0"==a&&0!=g.length||"0"==a&&0==g.length&&0==e(".page-header-no-bg").length&&0==e(".project-title").length&&"0"==a&&0==e(".project-title").length&&0==e('body[data-bg-header="true"]').length&&(0==e(".single").length?e(".container-wrap").css("padding-top","0px"):e(this).addClass("first-section")),a==t-1&&0==e("#respond").length&&"portfolio-filters-inline"!=e(this).attr("id")&&(e(".container-wrap").css("padding-bottom","0px"),e("#call-to-action .triangle").remove())}else{if(e(this).parents("#portfolio-extra").length>0&&0==e("#full_width_portfolio").length)return!1;0==e(this).find(".portfolio-filters-inline").length&&"post-area"!=e(this).attr("id")&&("0"==e(this).index()&&0!=g.length||"0"!=e(this).index()||0!=g.length||"0"!=e(this).index()||0!=e(".page-header-no-bg").length||"0"!=e(this).index()||e(this).hasClass("blog_next_prev_buttons")||0!=e(this).parents(".nectar-global-section").length||e(this).hasClass("nectar-shop-outer")||0!=e(this).parents(".pum-container").length||(1==e('body[data-header-resize="0"]').length&&0==e(".single").length||e("body.material").length>0&&0==e(".single").length?!e("body.blog .blog-fullwidth-wrap > .masonry:not(.meta-overlaid)").length>0&&e(".container-wrap").css("padding-top","0px"):e(this).addClass("first-section")),e(this).index()==t-1&&0==e("#respond").length&&0==e("body.woocommerce-checkout").length&&(e(".container-wrap").css("padding-bottom","0px"),e(".bottom_controls").css("margin-top","0px"),e("#call-to-action .triangle").remove()))}}),e('#portfolio-extra > .nectar-slider-wrap[data-full-width="true"], .portfolio-wrap').each(function(){e(this).index()==t-1&&0==e("#commentform").length&&0==e("#pagination").length&&(parseInt(e(".container-wrap").css("padding-bottom"))>0&&e(this).css("margin-bottom","-40px"),e("#call-to-action .triangle").remove())}),e(".portfolio-filters").each(function(){"0"==e(this).index()&&0!=g.length||"0"==e(this).index()?e(this).addClass("first-section nder-page-header"):("0"==e(this).index()&&0==g.length||"0"==e(this).index())&&e(this).css({"margin-top":"0px"}).addClass("first-section")}),e(".portfolio-filters-inline").each(function(){e(this).parents(".wpb_row").length>0||("0"==e(this).index()&&0!=g.length||"0"==e(this).index()?e(this).addClass("first-section nder-page-header"):("0"==e(this).index()&&0==g.length||"0"==e(this).index())&&e(this).css({"margin-top":"-30px","padding-top":"50px"}).addClass("first-section"))})}function Xt(){var t=e("body.vc_editor").length>0?".vc_element > ":"",a=r.is('[data-flex-cols="true"]');e(".main-content > .row > "+t+" .full-width-content, #portfolio-extra > "+t+" .full-width-content, .woocommerce-tabs #tab-description > .full-width-content, .post-area.span_12 article .content-inner > .full-width-content").each(function(){if(e(this).find("> .span_12 > "+t+" .col").length>1){var n,i=0,s=0;e(this).find("> .span_12 > "+t+"  .col").each(function(){n=e(this).find("> .vc_column-inner > .wpb_wrapper").length>0?".vc_column-inner":".column-inner-wrap > .column-inner";var s=a?parseInt(e(this).find("> .vc_column-inner").css("padding-top")):parseInt(e(this).css("padding-top")),r=t.length>2&&e(this).find("> .vc_column-inner").length>0?parseInt(e(this).find("> .vc_column-inner").css("padding-top")):0,o=e(this).find("> "+n+" > .wpb_wrapper").height();o+2*s+r>i&&(i=o+2*s+r)}),e(this).find("> .span_12 > "+t+" .col").each(function(){n=e(this).find("> .vc_column-inner > .wpb_wrapper").length>0?".vc_column-inner":".column-inner-wrap > .column-inner",e(this).find("> "+n+" > .wpb_wrapper > *").length>0?t.length<2&&!e(this).parent().parent().hasClass("vc_row-o-equal-height")?(e(this).css("height",i),a&&e(this).find("> .vc_column-inner").css("height",i)):t.length>2&&!e(this).parent().parent().parent().hasClass("vc_row-o-equal-height")&&(e(this).css("height",i),a&&e(this).find("> .vc_column-inner").css("height",i)):e(this).is('[data-using-bg="true"]')&&0==e(this).parents(".vc_row-o-content-top").length&&(e(this).css("min-height",i),r.is('[data-flex-cols="true"]')&&e(this).find("> .vc_column-inner").css("min-height",i),e(this).is('[data-animation*="reveal"]')&&e(this).find(".column-inner").css("min-height",i))}),be.winW<1e3&&e(this).find("> .span_12 > "+t+" .col .wpb_row .col").css("min-height","0px"),e(this).hasClass("vertically-align-columns")&&be.winW>1e3&&!e(this).hasClass("vc_row-o-equal-height")&&e(this).find("> .span_12 > "+t+" .col").each(function(){n=e(this).find("> .vc_column-inner > .wpb_wrapper").length>0?".vc_column-inner":".column-inner-wrap > .column-inner",s=e(this).find("> "+n+" > .wpb_wrapper").height();var t=e(this).height()/2-s/2;t<=0&&(t=0),e(this).find("> "+n+" > .wpb_wrapper").css("margin-top",t).css("margin-bottom",t)})}}),0==e('body[data-flex-cols="true"]').length&&(e(".main-content > .row > .wpb_row:not(.full-width-content).vc_row-o-equal-height").each(function(){if(e(this).find(">.span_12 > "+t+' .wpb_column[data-animation*="reveal"]').length>0){var a=0;e(this).find("> .span_12 > "+t+" .col").each(function(){var t=parseInt(e(this).find("> .column-inner-wrap > .column-inner").css("padding-top"));e(this).find("> .column-inner-wrap > .column-inner").height()+2*t>a&&(a=e(this).find("> .column-inner-wrap > .column-inner").height()+2*t)}),e(this).find("> .span_12 > "+t+" .col").each(function(){e(this).find("> .column-inner-wrap > .column-inner .wpb_wrapper > *").length>0?e(this).find("> .column-inner-wrap").css("height",a):(e(this).css("min-height",a),e(this).is('[data-animation*="reveal"]')&&e(this).find(".column-inner").css("min-height",a))})}}),e(".wpb_row.vc_row-o-equal-height>.span_12> "+t+'.wpb_column[class*="padding-"][data-padding-pos="all"]').each(function(){0==e(this).parents(".tabbed").length&&e(this).css({"padding-top":e(this).css("padding-left"),"padding-bottom":e(this).css("padding-left")})}))}function Nt(){e(".wpb_row:has(.nectar-parallax-scene)").each(function(t){var a=parseInt(e(this).find(".nectar-parallax-scene").attr("data-scene-strength"));te[t]=e(this).find(".nectar-parallax-scene").parallax({scalarX:a,scalarY:a});var n=e(this).find(".nectar-parallax-scene li");e.each(n,function(){if(e(this).find("div").length>0){var t=e(this).find("div").css("background-image").replace(/"/g,"").replace(/url\(|\)$/gi,"");t&&""!==t&&"none"!==t&&(n=n.add(e("<img>").attr("src",t)))}})})}function Dt(){e("ul.checks li").each(function(){0==e(this).find("i.fa-check-circle").length&&e(this).prepend('<i class="fa fa-check-circle"></i>')})}function Qt(){e('.nectar-cta[data-style="arrow-animation"]').addClass("loaded")}function Zt(){var a=1==ue?"500%":"88%",n=1==ue?"500%":"70%",i=1==ue?"500%":"70%";e(he+".img-with-animation").each(function(t){var n=e(this),i=n.is("[data-animation]")?n.attr("data-animation"):"fade-in";("ro-reveal-from-right"==i&&"88%"==a||"ro-reveal-from-left"==i&&"88%"==a)&&(a="75%"),"slide-up"==i&&"88%"==a&&(a="99%");var s=O;e(this)[0].hasAttribute("data-animation-easing")&&(s=e(this).attr("data-animation-easing"));var r=parseInt(z);(n.parents(".row_position_absolute").length>0||n.hasClass("position_desktop_absolute"))&&(r=500);var o=new Waypoint({element:n[0],handler:function(){if(n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in"))o.destroy();else{if(!S||e('body[data-responsive="0"]').length>0){var t=n.is("[data-delay]")?n.attr("data-delay"):0,a=n.parents(".hover-wrap").length>0?n.parents(".hover-wrap"):n,l=z;n.parents(".nectar-disable-mobile-animation").length>0&&be.winW<1e3&&(l=0,r=0,t=0),"fade-in-from-left"==i||"fade-in-from-right"==i?a.delay(t).transition({opacity:1,x:"0px"},l,s):"fade-in-from-bottom"==i?ie.push(anime({targets:a[0],translateY:[100,0],translateZ:0,opacity:{value:[0,1],duration:r},delay:t,easing:s,duration:l})):"slide-up"==i?ie.push(anime({targets:a[0],translateY:[150,0],translateZ:0,delay:t,easing:s,duration:l})):"fade-in"==i?a.delay(t).transition({opacity:1},l,s):"grow-in"==i?setTimeout(function(){a.transition({scale:1,opacity:1},l,s)},t):"flip-in"==i?setTimeout(function(){a.transition({rotateY:0,opacity:1},l,s)},t):"flip-in-vertical"==i?setTimeout(function(){a.transition({rotateX:0,opacity:1},l,s)},t):"ro-reveal-from-left"!=i&&"ro-reveal-from-right"!=i&&"ro-reveal-from-bottom"!=i&&"ro-reveal-from-top"!=i||n.parents(".img-with-aniamtion-wrap").addClass("animated-in"),"none"!=i&&n.addClass("animated-in")}o.destroy()}},offset:a})}),e(he+".nectar_cascading_images").each(function(){var t=e(this),a=e(this).is("[data-animation-timing]")?e(this).attr("data-animation-timing"):175;a=parseInt(a);var i=new Waypoint({element:t[0],handler:function(){t.parents(".wpb_tab").length>0&&"hidden"==t.parents(".wpb_tab").css("visibility")||t.hasClass("animated-in")?i.destroy():((!S||e('body[data-responsive="0"]').length>0)&&(t.find(".cascading-image").each(function(t){var n=e(this);"flip-in"==n.attr("data-animation")||"flip-in-vertical"==n.attr("data-animation")?setTimeout(function(){n.find(".inner-wrap").css({opacity:1,transform:"rotate(0deg) translateZ(0px)"})},t*a):"grow-in-reveal"==n.attr("data-animation")?setTimeout(function(){n.find(".inner-wrap").css({opacity:1,transform:"translateX(0px) translateY(0px) scale(1,1) translateZ(0px)"}),n.find(".inner-wrap img").css({transform:"translateX(0px) translateY(0px) scale(1,1) translateZ(0px)"})},t*a):setTimeout(function(){n.find(".inner-wrap").css({opacity:1,transform:"translateX(0px) translateY(0px) scale(1,1) translateZ(0px)"})},t*a)}),t.addClass("animated-in")),i.destroy())},offset:n})}),e(he+'.col.has-animation:not([data-animation*="reveal"]), '+he+'.wpb_column.has-animation:not([data-animation*="reveal"]), '+he+".nectar-fancy-box.has-animation").each(function(n){if(v&&e(this).parents(".top-level").length>0&&!0!==me.$usingFullScreenRows)return!0;var i=e(this),s=a;e(this)[0].hasAttribute("data-animation-offset")&&(s=parseInt(e(this).attr("data-animation-offset"))+"%");var r=O;e(this)[0].hasAttribute("data-animation-easing")&&(r=e(this).attr("data-animation-easing"));var o=parseInt(z);i.parents(".row_position_absolute").length>0&&(o=500);var l=new Waypoint({element:i[0],handler:function(){if(i.parents(".wpb_tab").length>0&&"hidden"==i.parents(".wpb_tab").css("visibility")||i.hasClass("animated-in"))l.destroy();else{if(!S||e('body[data-responsive="0"]').length>0){i.addClass("triggered-animation"),e(t).trigger("nectar-column-animation-start");var a=i.attr("data-delay"),s=z;if(i.hasClass("mobile-disable-entrance-animation")&&be.winW<1e3&&(s=0,o=0,a=0),"fade-in-from-left"==i.attr("data-animation")||"fade-in-from-right"==i.attr("data-animation"))ne[n]=setTimeout(function(){i.transition({opacity:1,x:"0px"},s,r)},a);else if("fade-in-from-bottom"==i.attr("data-animation")||"slight-fade-in-from-bottom"==i.attr("data-animation")){var d="fade-in-from-bottom"==i.attr("data-animation")?100:50;ie.push(anime({targets:i[0],translateY:[d,0],translateZ:0,opacity:{value:[0,1],duration:o},delay:a,easing:r,duration:s}))}else"fade-in"==i.attr("data-animation")?ne[n]=setTimeout(function(){i.transition({opacity:1},s,r)},a):"grow-in"==i.attr("data-animation")||"zoom-out"==i.attr("data-animation")?ne[n]=setTimeout(function(){i.transition({scale:1,opacity:1},s,r)},a):"flip-in"==i.attr("data-animation")?ne[n]=setTimeout(function(){i.transition({rotateY:"0",opacity:1},s,r)},a):"flip-in-vertical"==i.attr("data-animation")?ne[n]=setTimeout(function(){i.transition({rotateX:"0",y:"0",opacity:1},s,r)},a):"slight-twist"==i.attr("data-animation")&&(ne[n]=setTimeout(function(){ie.push(anime({targets:i[0],rotateY:[20,0],rotateZ:[-4,0],opacity:1,easing:r,duration:s}))},a));i.hasClass("boxed")&&(i.addClass("no-pointer-events"),setTimeout(function(){i.removeClass("no-pointer-events")},parseInt(z)+parseInt(a)+30)),i.find('.nectar-post-grid-wrap[data-style="mouse_follow_image"]')&&setTimeout(function(){i[0].style.transform="none"},parseInt(z)+parseInt(a)+30),i.addClass("animated-in")}l.destroy()}},offset:s})}),e(he+'.wpb_column.has-animation[data-animation*="reveal"]').each(function(){var t=O;e(this)[0].hasAttribute("data-animation-easing")&&(t=e(this).attr("data-animation-easing"));var a=e(this).is('[data-animation="mask-reveal"]')?"88%":i;e(this)[0].hasAttribute("data-animation-offset")&&(a=parseInt(e(this).attr("data-animation-offset"))+"%");var n=e(this),s=new Waypoint({element:n[0],handler:function(){if(n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in"))s.destroy();else{var a=n.attr("data-delay");if(!S||e('body[data-responsive="0"]').length>0){var i=n.find("> .vc_column-inner").length>0;"reveal-from-bottom"==n.attr("data-animation")||"reveal-from-top"==n.attr("data-animation")?setTimeout(function(){1==i?n.find("> .vc_column-inner").transition({y:0},z,t):n.find(".column-inner-wrap, .column-inner").transition({y:0},z,t,function(){n.find(".column-inner-wrap, .column-inner").addClass("no-transform")}),n.addClass("animated-in")},a):"reveal-from-right"!=n.attr("data-animation")&&"reveal-from-left"!=n.attr("data-animation")||setTimeout(function(){1==i?n.find("> .vc_column-inner").transition({x:0},z,t):n.find(".column-inner-wrap, .column-inner").transition({x:0},z,t,function(){n.find(".column-inner-wrap, .column-inner").addClass("no-transform")}),n.addClass("animated-in")},a),setTimeout(function(){n.addClass("animated-in")},a)}s.destroy()}},offset:a})})}function Gt(){e(".nectar_cascading_images").each(function(){var t=!!e(this).hasClass("forced-aspect");e(this).parents(".vc_row-o-equal-height").length>0&&e(this).parents(".wpb_column").length>0&&e(this).css("max-width",e(this).parents(".wpb_column").width()),e(this).find(".bg-color").each(function(){if(1==t&&0==e(this).parents(".cascading-image").index())return!0;var a=0,n=0;if(0==e(this).parent().find(".img-wrap").length){var i=e(this).parents(".cascading-image").siblings('.cascading-image[data-has-img="true"]').first();a=i.find(".img-wrap").height(),n=i.find(".img-wrap").width()}else a=e(this).parent().find(".img-wrap").height(),n=e(this).parent().find(".img-wrap").width();e(this).css({height:a,width:n}).addClass("calculated")})})}function Ut(a,n){switch(this.$element=a,this.inView=!1,this.topLevel=!1,this.lastY=0,this.layer1Parallax=!!this.$element.is('[data-layer-1-parallax="yes"]'),n){case"subtle":this.intensity=.09;break;case"medium":this.intensity=.15;break;case"high":this.intensity=.25}if(this.calculatePos(),this.trackView(),this.animate(),(e(".portfolio-filters").length>0||e(".portfolio-filters-inline").length>0)&&setInterval(this.calculatePos.bind(this),700),be.usingMobileBrowser){t.matchMedia("(orientation: portrait)").addEventListener("change",this.calculatePos.bind(this))}else s.on("resize",this.calculatePos.bind(this))}function Jt(){e(he+".nectar-split-heading:not(.custom-trigger)").each(function(t){var a=1==ue?"500%":"bottom-in-view";e(this)[0].hasAttribute("data-animation-offset")&&1!=ue&&e(this).attr("data-animation-offset").length>0&&(a=parseInt(e(this).attr("data-animation-offset"))+"%");var n=e(this),i=n.is("[data-animation-delay]")?parseInt(n.attr("data-animation-delay")):0,s=new Waypoint({element:n[0],handler:function(){if(n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in"))s.destroy();else{var t;if(!S||e('body[data-responsive="0"]').length>0)setTimeout(function(){if(n.is('[data-animation-type="line-reveal-by-space"]:not([data-text-effect*="letter-reveal"])')){var a=0;n.is('[data-stagger="true"]')&&(a=500/n.find("> * > span").length,a=Math.min(Math.max(a,15),50)),t=parseInt(z)<1100?z:"1100",n.is('[data-m-rm-animation="true"]')&&be.winW<1e3?n.find("> * > span .inner").css({transform:"translateY(0)",opacity:"1"}):n.find("> * > span").each(function(n){if(0==a)e(this).find("> .inner").delay(n*a).transition({y:"0px",opacity:"1"},t,O);else{var i=e(this).find("> .inner");setTimeout(function(){i[0].style.transform="translateY(0em)",i[0].style.opacity="1"},n*a)}})}else if(n.is('[data-animation-type="line-reveal-by-space"][data-text-effect*="letter-reveal"]')){t=parseInt(z)<1e3?z:"1000";a=0;var i=n.find("> * > span span"),s=n.is('[data-text-effect="letter-reveal-top"]')?["-1.3em","0em"]:["1.3em","0em"];a=400/i.length,a=Math.min(Math.max(a,20),35),i.length>0&&ie.push(anime({targets:n.find("> * > span span").toArray(),translateY:s,delay:anime.stagger(a),duration:1200,easing:"cubicBezier(0.25,1,0.5,1)"}))}else n.find(".heading-line").each(function(t){e(this).find("> div").delay(70*t).transition({y:"0px"},z,O)});n.addClass("animated-in")},i);s.destroy()}},offset:a})}),e(he+".nectar-split-heading.scroll-timeline").each(function(t){if(!0===me.$usingFullScreenRows)var a=e(this),n=new Waypoint({element:a[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("animated-in")?n.destroy():(!S||e('body[data-responsive="0"]').length>0)&&a.find(".inner").each(function(t){var a=e(this);setTimeout(function(){a.css({opacity:"1"})},30*t)})},offset:"500%"});else new Kt(e(this))})}function Kt(e){this.$el=e,this.inView=!1,this.timeline=null,this.duration=450,this.speed=1.9,this.wordDelay=150,this.topLevel=!1,this.topCushion=.05*be.winH,this.mergedGroup=!1,this.$el.parents(".wpb_row.nectar-split-heading-merged").length>0||(this.mergeNeighbors(),this.trackInView(),this.createTimeline(),this.events(),this.raf())}function ea(){var t=1==ue?"500%":"bottom-in-view",a=e('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&be.usingMobileBrowser?".nectar-progress-bar":he+".nectar-progress-bar";be.usingMobileBrowser&&"bottom-in-view"==t&&(t="70%"),e(a).each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){if(a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed"))n.destroy();else{"100%"==t&&a.find(".bar-wrap").css("opacity","1");var e=a.find("span").attr("data-width"),i=parseInt(a.find("span strong i").text());a.find("span").transition({width:parseInt(e)+"%"},800,"easeInOutCubic");var s=a.find("span strong i")[0];new ot(s,0,i,0,1,{useEasing:!1}).start(),a.find("span strong").transition({opacity:1},550,"easeInCirc"),"100"==e&&a.find("span strong").addClass("full"),a.addClass("completed"),n.destroy()}},offset:t})})}function ta(){var t=1==ue?"500%":"75%";e(he+'.wpb_column[data-border-animation="true"]').each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){if(a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed"))n.destroy();else{var e=a.attr("data-border-animation-delay").length>0?parseInt(a.attr("data-border-animation-delay")):0;setTimeout(function(){a.find(".border-wrap").addClass("animation"),a.find(".border-wrap").addClass("completed")},e),n.destroy()}},offset:t})})}function aa(){e(he+".nectar-waypoint-el").each(function(){var t=!!e(this).is("[data-nectar-waypoint-el-stagger]")&&e(this).attr("data-nectar-waypoint-el-stagger"),a=e(this).is("[data-nectar-waypoint-el-delay]")?parseInt(e(this).attr("data-nectar-waypoint-el-delay")):0,n=e(this).is("[data-nectar-waypoint-el-offset]")?parseInt(e(this).attr("data-nectar-waypoint-el-offset"))+"%":"90%";1==ue&&(n="500%");var i=e(this),s=new Waypoint({element:i[0],handler:function(){i.parents(".wpb_tab").length>0&&"hidden"==i.parents(".wpb_tab").css("visibility")||i.hasClass("completed")?s.destroy():(setTimeout(function(){t?i.find("."+t).each(function(t){var a=e(this);setTimeout(function(){a.addClass("animated-in")},100*t)}):i.addClass("animated-in")},a),s.destroy())},offset:n})})}function na(){var t=1==ue?"500%":"80%";e(he+".nectar_food_menu_item").parent().each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed")?n.destroy():(a.find(".nectar_food_menu_item").each(function(t){var a=e(this);setTimeout(function(){a.addClass("animated-in")},150*t)}),n.destroy())},offset:t})})}function ia(){var t=1==ue?"500%":"bottom-in-view";e(he+'.divider-small-border[data-animate="yes"], '+he+'.divider-border[data-animate="yes"]').each(function(){var a=e(this).hasClass("divider-small-border")?1300:1500,n=e(this),i=new Waypoint({element:n[0],handler:function(){n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("completed")?i.destroy():(n.each(function(){e(this).css({transform:"scale(0,1)",visibility:"visible"});var t=e(this);t.delay(t.attr("data-animation-delay")).transition({transform:"scale(1, 1)"},a,"cubic-bezier(.18,0.75,.25,1)")}),n.addClass("completed"),i.destroy())},offset:t})})}function sa(){e(".nectar_image_with_hotspots").each(function(){e(this).find(".nectar_hotspot_wrap").each(function(){if(be.winW>690){e(this).parents('.nectar_image_with_hotspots[data-tooltip-func="hover"]').length>0&&(e(this).find(".nectar_hotspot").removeClass("click"),e(this).find(".nttip").removeClass("open")),e(this).find(".nttip .inner a.tipclose").remove(),e(".nttip").css("height","auto"),e(this).css({width:"auto",height:"auto"}),e(this).find(".nttip").removeClass("force-right").removeClass("force-left").removeClass("force-top").css("width","auto");var t=e(this).find(".nttip").offset();t.left>e(this).parents(".nectar_image_with_hotspots").width()-200?e(this).find(".nttip").css("width","250px"):e(this).find(".nttip").css("width","auto"),t.left<0?e(this).find(".nttip").addClass("force-right"):t.left+e(this).find(".nttip").outerWidth(!0)>be.winW?e(this).find(".nttip").addClass("force-left").css("width","250px"):t.top+e(this).find(".nttip").height()+35>s.height()&&e("#nectar_fullscreen_rows").length>0&&e(this).find(".nttip").addClass("force-top"),0==e(this).find("> .open").length&&e(this).css({width:"30px",height:"30px"})}else e(this).find(".nttip").removeClass("force-left").removeClass("force-right").removeClass("force-top"),e(this).find(".nectar_hotspot").addClass("click"),0==e(this).find(".nttip a.tipclose").length&&e(this).find(".nttip .inner").append('<a href="#" class="tipclose"><span><i class="screen-reader-text">'+nectar_front_i18n.close+"</i></span></a>"),e(".nttip").css("height",s.height())})})}function ra(){0!=e(".nectar_image_with_hotspots").length&&(!function(){e('.nectar_image_with_hotspots[data-hotspot-icon="numerical"]').each(function(){e(this).find(".nectar_hotspot_wrap").each(function(t){var a=e(this);setTimeout(function(){a.find(".nectar_hotspot").addClass("pulse")},300*t)})});var t=[];e('.nectar_image_with_hotspots:not([data-tooltip-func="click"]) .nectar_hotspot').each(function(a){t[a]="",e(this).on("mouseover",function(){clearTimeout(t[a]),e(this).parent().css({"z-index":"400",height:"auto",width:"auto"})}),e(this).on("mouseleave",function(){var n=e(this);n.parent().css({"z-index":"auto"}),t[a]=setTimeout(function(){n.parent().css({height:"30px",width:"30px"})},300)})})}(),r.on("click",".nectar_hotspot.click",function(){if(e(this).parents(".nectar_image_with_hotspots").find(".nttip").removeClass("open"),e(this).parent().find(".nttip").addClass("open"),e(this).parents(".nectar_image_with_hotspots").find(".nectar_hotspot").removeClass("open"),e(this).parent().find(".nectar_hotspot").addClass("open"),be.winW>690){e(this).parent().css({"z-index":"120",height:"auto",width:"auto"});var t=e(this);setTimeout(function(){t.parents(".nectar_image_with_hotspots").find(".nectar_hotspot_wrap").each(function(){0==e(this).find("> .open").length&&e(this).css({height:"30px",width:"30px","z-index":"auto"})})},300)}return be.winW<=690&&(e("body.nectar_box_roll").length>0&&e(".container-wrap").addClass("hotspot-open"),e(".nectar_hotspot.click").parents('.wpb_row, [class*="vc_col-"]').css("z-index",""),e(this).parents('.wpb_row, [class*="vc_col-"]').css("z-index","200")),!1}),r.on("click",".nectar_hotspot.open",function(){return e(this).parent().find(".nttip").removeClass("open"),e(this).parent().find(".nectar_hotspot").removeClass("open"),e(this).parents(".wpb_row").css("z-index","auto"),!1}),r.on("click",".nttip.open",function(t){if(be.winW<690){if(t.target&&e(t.target).is("a"))return;return e("body.nectar_box_roll").length>0&&e(".container-wrap").removeClass("hotspot-open"),e(this).parents(".nectar_image_with_hotspots").find(".nttip").removeClass("open"),e(this).parents(".nectar_image_with_hotspots").find(".nectar_hotspot").removeClass("open"),e(this).parents(".wpb_row").css("z-index","auto"),!1}}),sa(),s.on("resize",sa))}function oa(){var t=1==ue?"500%":"50%";e(he+'.nectar_image_with_hotspots[data-animation="true"]').each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed")?n.destroy():(a.addClass("completed"),a.find(".nectar_hotspot_wrap").each(function(t){var a=e(this),n=a.parents(".col.has-animation").length>0?1:0;setTimeout(function(){a.addClass("animated-in")},175*(t+n))}),n.destroy())},offset:t})})}function la(){[].slice.call(a.querySelectorAll("[data-nectar-img-src]")).forEach(function(e){var t=e.getAttribute("data-nectar-img-src");t&&da(e,t,fe)})}function da(a,n,i){if(a.classList.contains("nectar-lazy")){a.addEventListener("load",function(){a.classList.contains("keep-calculated-size")||(a.style.height="",a.style.width=""),a.classList.add("loaded"),a.removeAttribute("data-nectar-img-src"),"undefined"!=typeof SalientPortfolio&&a.classList.contains("image-gallery-portfolio-item")&&e(t).trigger("salient-portfolio-recalculate"),be.usingMobileBrowser||Waypoint.refreshAll(),i.unobserve(a)}),a.src=n;var s=a.getAttribute("data-nectar-img-srcset");s&&(a.setAttribute("srcset",s),a.removeAttribute("data-nectar-img-srcset")),a.parentNode.classList.add("img-loaded")}else a.style.backgroundImage="url('"+n+"')",a.classList.add("loaded"),a.removeAttribute("data-nectar-img-src"),i.unobserve(a)}function ca(e,t){if(e.isIntersecting){if(e.target.classList.contains("loaded"))return void t.unobserve(e.target);for(var a in e.target.children){var n=e.target.children[a];"string"==typeof n.tagName&&"SOURCE"===n.tagName&&(n.src=n.dataset.nectarVideoSrc)}e.target.load(),e.target.classList.remove("lazy"),e.target.classList.add("loaded"),t.unobserve(e.target)}}function ha(){var e=[].slice.call(a.querySelectorAll("[data-nectar-img-src]")),n=[].slice.call(a.querySelectorAll("[data-nectar-poster]")),i=[].slice.call(a.querySelectorAll(".nectar-lazy-video")),r=[].slice.call(a.querySelectorAll("#header-outer .nectar-lazy-video"));if("IntersectionObserver"in t){var o={rootMargin:"450px"};s.off("resize.nectarLazySizing",ua),s.on("resize.nectarLazySizing",ua),fe=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,a=t.getAttribute("data-nectar-img-src");a&&da(t,a,fe)}})},o);var l=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,a=t.getAttribute("data-nectar-poster");a&&(t.poster=a,t.removeAttribute("data-nectar-poster"),l.unobserve(t))}})},o);e.forEach(function(e){fe.observe(e)}),n.forEach(function(e){l.observe(e)});var d=new IntersectionObserver(function(e,t){e.forEach(function(e){ca(e,d)})},{root:Xe()?null:a,rootMargin:"125px"}),c=new IntersectionObserver(function(e,t){e.forEach(function(e){ca(e,c)})},{rootMargin:"125px"});r.forEach(function(e){c.observe(e)}),i.forEach(function(e){d.observe(e)})}else e.forEach(function(e){if(e.classList.contains("nectar-lazy")){e.classList.contains("keep-calculated-size")||(e.style.height="",e.style.width=""),e.src=e.getAttribute("data-nectar-img-src");var t=e.getAttribute("data-nectar-img-srcset");t&&(e.setAttribute("srcset",t),e.removeAttribute("data-nectar-img-srcset")),e.parentNode.classList.add("img-loaded"),e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}else e.style.backgroundImage="url('"+e.getAttribute("data-nectar-img-src")+"')",e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),i.forEach(function(e){for(var t in e.children){var a=e.children[t];"string"==typeof a.tagName&&"SOURCE"===a.tagName&&(a.src=a.dataset.nectarVideoSrc)}e.load(),e.classList.remove("lazy"),e.classList.add("loaded")})}function ua(){e("img.nectar-lazy:not(.loaded):not(.image-gallery-portfolio-item)").each(function(){if(e(this).hasClass("attachment-shop_thumbnail")||e(this).hasClass("attachment-woocommerce_thumbnail")||e(this).parents(".nectar-post-grid-item").length>0)return!0;e(this).css({height:"",width:""});var t=parseInt(e(this).attr("height")),a=parseInt(e(this).attr("width")),n=e(this).parents(".nectar_cascading_images").length>0?e(this).parents(".bg-layer").width():e(this).width();e(this).parents(".img-with-aniamtion-wrap.custom-size").length>0&&n>a&&(n=a),e(this).parents('.img-with-aniamtion-wrap[data-shadow*="depth"]').length>0&&(n=e(this).parents(".img-with-aniamtion-wrap").width()),e(this).parents(".nectar-post-grid-item-bg-wrap-inner").length>0&&!e(this).hasClass("nectar-post-grid-item__overlaid-img")&&(n=e(this).parents(".nectar-post-grid-item-bg-wrap-inner").width());var i=Qe(a,t,n,2e3);e(this).css({height:i.height+"px",width:i.width+"px"})})}function pa(){R=[],N=[],be.usingMobileBrowser||(e('.nectar-post-grid[data-indicator="yes"]').each(function(t){R[t]=new $e(e(this),"view-indicator")}),e('.nectar-post-grid-wrap[data-style="mouse_follow_image"] .nectar-post-grid').each(function(t){N[t]=new $e(e(this),"post-grid-images")}),e('.nectar-category-grid[data-style="mouse_follow_image"]').each(function(t){N[t]=new $e(e(this),"post-grid-images")}))}function fa(){oe=[],pa(),e(".nectar-post-grid-wrap").each(function(t){oe[t]=new ga(e(this))})}function ga(e){this.el=e,this.currentPage=0,this.activeFilter=1,this.activeCatTotal=0,this.settingsData=JSON.parse(this.el.attr("data-el-settings")),this.queryData=JSON.parse(this.el.attr("data-query")),this.sortable=this.el.find(".nectar-post-grid-filters").attr("data-sortable"),this.gridStyle=this.el.attr("data-style"),this.initialMarkup(),this.clickEvents(),this.deepLinking(),this.lightboxGroups(),this.externalProjectLinks()}function ma(){var t=1==ue?"200%":"75%";e(he+".nectar-post-grid-wrap").each(function(){if(!v||!e(this).hasClass("delay-js-loaded")||0!=me.$usingFullScreenRows)var a=e(this),n=new Waypoint({element:a[0],handler:function(){if(a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed"))n.destroy();else{var t=a.find(".nectar-post-grid[data-animation-stagger]")?parseInt(a.find(".nectar-post-grid").attr("data-animation-stagger")):90,i=a.find(".nectar-post-grid[data-animation]")?a.find(".nectar-post-grid").attr("data-animation"):"none";a.attr("data-style");a.find(".nectar-post-grid__reveal-image__inner").length>0&&a.find(".nectar-post-grid__reveal-image__inner").css({opacity:0}),a.find(".nectar-post-grid-filters").addClass("animated-in"),a.find(".nectar-post-grid-item").each(function(a){var n=e(this);setTimeout(function(){n.addClass("animated-in"),"zoom-out-reveal"===i&&Ln(n,function(){qn(n)})},a*t)}),setTimeout(function(){a.addClass("finished-animating")},950),n.destroy()}},offset:t})})}function va(){var t=1==ue?"500%":"bottom-in-view";e(he+".nectar-animated-title").each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("completed")?n.destroy():(a.addClass("completed"),n.destroy())},offset:t})})}function ba(){var t=1==ue?"500%":"bottom-in-view";be.usingMobileBrowser&&"bottom-in-view"==t&&(t="85%"),e(he+".nectar-highlighted-text").each(function(a){var n=0;if(e(this).find("i").each(function(){e(this).replaceWith(function(){return e("<em />").append(e(this).html())})}),e(this).is("[data-id]")){var i=e(this);e(this).find("em").each(function(t){t>0?e(this).attr("id",i.attr("data-id")+"-"+t):e(this).attr("id",i.attr("data-id"))})}if(e(this).is("[data-animation-delay]")&&e(this).attr("data-animation-delay").length>0&&"false"!=e(this).attr("data-animation")&&(n=e(this).attr("data-animation-delay")),e(this).find("em:has(a)").addClass("has-link"),S&&e(this).find("em").addClass("animated"),e(this).is('[data-style="none"]'))return!0;i=e(this);var s=new Waypoint({element:i[0],handler:function(){i.parents(".wpb_tab").length>0&&"hidden"==i.parents(".wpb_tab").css("visibility")||i.hasClass("animated")?s.destroy():(setTimeout(function(){i.find("em").each(function(t){var a=e(this);setTimeout(function(){a.addClass("animated")},300*t)})},n),s.destroy())},offset:t})})}function wa(){var t=1==ue?"500%":"75%";e(he+'.nectar-woo-flickity[data-animation*="fade-in"]').each(function(){var a=e(this),n=new Waypoint({element:a[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("animated-in")?n.destroy():(a.addClass("animated-in"),a.find(".flickity-cell").each(function(t){var a=e(this);setTimeout(function(){a.find("> .product").css({transform:"translate3d(0,0,0)",opacity:"1"})},100*t)}),n.destroy())},offset:t})})}function ya(){var t;e('.pricing-table[data-style="default"]').each(function(){t=0,e(this).find("> div ul").each(function(){e(this).height()>t&&(t=e(this).height())}),0==t&&(t="auto"),e(this).find("> div ul").css("height",t)})}function _a(){ee=[],"undefined"!=typeof NectarTestimonialSlider?e(".testimonial_slider").each(function(t){var a=e(this),n=e(this).is("[data-style]")?e(this).attr("data-style"):"none";ee[t]=new NectarTestimonialSlider(a,n,Ha,Xt),e(this).is('.disable-height-animation:not([data-style*="multiple_visible"])')&&(ee[t].testimonialSliderHeight(),setTimeout(ee[t].testimonialSliderHeight.bind(ee[t]),700)),e(this).is('.testimonial_slider[data-style="multiple_visible_minimal"]')&&ee[t].testimonialSliderHeightMinimalMult()}):Ue("#nectar-testimonial-sliders-js",0,_a)}function Ca(){s.off("smartresize.nectarTestimonials"),s.off("resize.nectarTestimonialsMin"),ee.length>0&&s.on("smartresize.nectarTestimonials",xa),e('.testimonial_slider[data-style="multiple_visible_minimal"]').length>0&&s.on("resize.nectarTestimonialsMin",ka)}function xa(){for(var e=0;e<ee.length;e++)ee[e].testimonialSliderHeight(),ee[e].testimonialHeightResize()}function ka(){for(var e=0;e<ee.length;e++)ee[e].testimonialSliderHeightMinimalMult()}function $a(t){return t.parents('.wpb_column[data-bg-color*="#"]').length>0&&t.parents('.wpb_column[data-bg-opacity="1"]').length>0?t.parents(".wpb_column").attr("data-bg-color"):t.parents(".wpb_row").length>0&&t.parents(".wpb_row").find(".row-bg.using-bg-color").length>0||t.parents(".wpb_row").length>0&&t.parents(".wpb_row").find(".row-bg.using-bg-color-excluded").length>0?t.parents(".wpb_row").find(".row-bg").css("background-color"):e("#nectar_fullscreen_rows").length>0?e("#nectar_fullscreen_rows > .wpb_row .full-page-inner-wrap").css("background-color"):e(".container-wrap").css("background-color")}function Ta(){var t="";e('.nectar-icon-list[data-icon-style="border"], .nectar_icon_wrap[data-style="border-animation"][data-color*="extra-color-gradient-"]').each(function(a){var n=$a(e(this));e(this).hasClass("nectar-icon-list")?e(this).find(".list-icon-holder").css("background-color",n):(e(this).removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),e(this).addClass("instance-"+a),t+=".nectar_icon_wrap.instance-"+a+" .nectar_icon:before { background-color: "+n+"!important; }")}),e('body.material .nectar-button.see-through[class*="m-extra-color-gradient"]').each(function(a){var n=$a(e(this));e(this).removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),e(this).addClass("instance-"+a),t+=".nectar-button.see-through.instance-"+a+":after { background-color: "+n+"!important; }"}),dt(t,"nectaricon-color-match")}function Ia(){e(".col.span_3, .vc_span3, .vc_col-sm-3").each(function(){if(!e(this).is('[data-t-w-inherits="small_desktop"]')){var t=e(this),a=e(this).next("div");(a.hasClass("span_3")&&!t.hasClass("one-fourths")||a.hasClass("vc_span3")&&!t.hasClass("one-fourths")||a.hasClass("vc_col-sm-3")&&!t.hasClass("one-fourths"))&&(t.addClass("one-fourths clear-both"),a.addClass("one-fourths right-edge"))}}),e(".span_12 .col.span_6").each(function(){e(this).next("div").hasClass("span_6")&&0==e.trim(e(this).next("div").html()).length&&e(this).addClass("empty-second")})}function Ea(){e("iframe").each(function(){if(void 0!==e(this).attr("src")&&!e(this).hasClass("skip-nectar-video-size")&&!e(this).hasClass("iframe-embed")&&!e(this).hasClass("elementor-video-iframe")&&0==e(this).parents(".gform_fields").length&&0==e(this).parents(".ult_modal").length&&0==e(this).parents(".ls-slide").length&&0==e(this).parents(".woo-variation-product-gallery").length&&0==e(this).parents(".esg-entry-media").length&&0==e(this).parents(".wpb_video_widget.wpb_content_element").length){if(e(this).parents(".woocommerce-product-gallery").length>0&&(!e(this).is('[width="100%"]')||!e(this).is('[height="100%"]')))return!0;var t=e(this).attr("src").toLowerCase();(t.indexOf("youtube")>=0||t.indexOf("vimeo")>=0||t.indexOf("twitch.tv")>=0||t.indexOf("kickstarter")>=0||t.indexOf("embed-ssl.ted")>=0||t.indexOf("dailymotion")>=0)&&(e(this).addClass("iframe-embed"),e(this).width()<e(this).parent().width()?e(this).attr("data-aspectRatio",e(this).height()/e(this).width()).removeAttr("height").removeAttr("width"):e(this).attr("data-aspectRatio","0.56").removeAttr("height").removeAttr("width"),e(this).parents(".post-area.masonry.classic").length>0&&e(this).attr("data-aspectRatio","0.56").removeAttr("height").removeAttr("width"))}})}function Oa(){e("iframe[data-aspectRatio]").each(function(){var t=e(this),a=t.parent().width();e(this).parents(".swiper-slide").length>0?e(this).is(":visible")&&t.width(a).height(a*t.attr("data-aspectRatio")):t.width(a).height(a*t.attr("data-aspectRatio"))})}function za(){e(".video-wrap iframe").unwrap(),e("#sidebar iframe[src]").unwrap(),e("audio").attr("width","100%").attr("height","100%").css("visibility","visible"),e("video").css("visibility","visible"),e(".wp-video").each(function(){e(this).find("video").get(0).addEventListener("loadeddata",function(){s.trigger("resize")},!1)}),e(".main-content iframe[src]").each(function(){e(this).css({opacity:"1",visibility:"visible"})})}function Ha(){e(".nectar-video-wrap").each(function(){e(this).addClass("position-loaded")})}function Sa(){function a(e){var t,a,n,i,s=e.innerWidth(),r=e.innerHeight();16/9>s/r?(t=r*(16/9),a=r,n=-Math.round((t-s)/2)+"px",i=-Math.round((a-r)/2)+"px",t+="px",a+="px"):(t=s,a=s*(9/16),i=-Math.round((a-r)/2)+"px",n=-Math.round((t-s)/2)+"px",t+="px",a+="px"),e.find(".vc_video-bg--nectar iframe").css({maxWidth:"1000%",marginLeft:n,marginTop:i,width:t,height:a})}0==e(".nectar-video-wrap").length&&0==e(".nectar-youtube-bg").length||(setTimeout(function(){e(".video-color-overlay").each(function(){e(this).css("background-color",e(this).attr("data-color"))}),e(".nectar-video-wrap").each(function(){if(0!=e(this).find("video").length){var t=e(this).parents("#page-header-bg").length>0,a=e(this);if(0===e(this).find("video.nectar-lazy-video").length)var n=setInterval(function(){a.find("video").get(0).readyState>3&&(be.usingMobileBrowser||(a.transition({opacity:"1"},400),a.find("video").transition({opacity:"1"},400),a.parent().find(".video-color-overlay").transition({opacity:"0.7"},400),1==t&&an()),p.addClass("loaded"),setTimeout(function(){p.addClass("hidden")},1e3),clearInterval(n))},60);else 1==t&&an();be.usingMobileBrowser&&(a.parents(".full-width-section").length>0&&0==a.parents("#nectar_fullscreen_rows").length&&!a.hasClass("column-video")?a.css("left","50%"):a.css("left","0px"),1==t&&an(),a.find("video")[0].onplay=function(){a.transition({opacity:"1"},400),a.find("video").transition({opacity:"1"},400),a.parent().find(".video-color-overlay").transition({opacity:"0.7"},400)})}})},300),be.usingMobileBrowser&&e(".nectar-video-wrap").each(function(){e(this).find("video").is("[muted]")||(e(this).parent().find(".mobile-video-image").show(),e(this).remove())}),e('.wpb_row:has(".nectar-video-wrap"):not(.fp-section)').each(function(t){e(this).css("z-index",100+t)}),e(".vc_row").each(function(){var e,n=jQuery(this);n.find(".nectar-youtube-bg").length>0?(e=function(e){if(void 0===e)return!1;var t=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==t&&t[1]}(n.find(".nectar-youtube-bg span").text()))&&(n.find(".vc_video-bg--nectar").remove(),function e(n,i,s){if("undefined"==typeof YT||void 0===YT.Player)return 100<(s=void 0===s?0:s)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){e(n,i,s++)},100);var r=n.prepend('<div class="vc_video-bg--nectar"><div class="inner"></div></div>').find(".inner");var o;o=new YT.Player(r[0],{width:"100%",height:"100%",videoId:i,playerVars:{playlist:i,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1},events:{onStateChange:function(e){-1===e.data&&(o.mute(),o.playVideo())},onReady:function(e){o.mute(),o.playVideo(),a(n)}}}),a(n),jQuery(t).on("resize",function(){a(n)});setTimeout(function(){a(n)},100)}(n.find(".nectar-youtube-bg"),e)):n.find(".nectar-youtube-bg").remove(),n.find(".nectar-youtube-bg span").remove(),be.usingMobileBrowser||n.find(".nectar-video-wrap, .nectar-youtube-bg").css({opacity:"1",width:"100%",height:"100%"}),n.find(".video-color-overlay").transition({opacity:"0.7"},400)}))}function Aa(){if(r.hasClass("single-post")&&e(".content-inner[data-has-gallery]").length>0&&(e(".wp-block-gallery").length>0?e(".content-inner").find(".wp-block-gallery").each(function(t){0!==t&&e(this).css("display","flex")}):e(".content-inner").find(".gallery").each(function(t){0!==t&&e(this).css("display","block")})),r.hasClass("single-post")&&e(".nectar-social.vertical").length>0){var t=e(".nectar-social.vertical");new Waypoint({element:e(".post-area")[0],handler:function(e){ye.materialOffCanvasOpen||("down"===e?t.addClass("visible"):t.removeClass("visible"))},offset:"70%"})}}function Ma(){if(e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0&&(Ba(),u.length>0)){var a=u.detach();e(".ocm-effect-wrap-inner").append(a)}!function(){if(e("body.material").length>0&&0==e('body[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length||e("body.material").length>0&&!0===W){if(0==e("#mobile-menu").length){var a=e("header#top ul .slide-out-widget-area-toggle:first a > span > i").clone();a.addClass("hover-effect"),e("header#top ul .slide-out-widget-area-toggle a > span").append(a);var n=e("header#top .slide-out-widget-area-toggle.mobile-icon a > span > i").clone();n.addClass("hover-effect"),e("header#top .slide-out-widget-area-toggle.mobile-icon a > span").append(n)}e('body:not([data-slide-out-widget-area-style="slide-out-from-right"]) header#top .slide-out-widget-area-toggle a > span').append(e('<span class="close-wrap"> <span class="close-line close-line1"></span> <span class="close-line close-line2"></span> </span>')),setTimeout(function(){e("header#top .slide-out-widget-area-toggle a > span .close-wrap").addClass("loaded")},200)}e("body.material #boxed").length>0&&e('body[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length>0&&e(".ocm-effect-wrap").length>0&&e("#ajax-content-wrap > .slide-out-widget-area-toggle.slide-out-hover-icon-effect").insertAfter(".ocm-effect-wrap");e("body.material").length>0&&0==e('body[data-slide-out-widget-area-style*="fullscreen"]').length&&e(".ocm-effect-wrap").length>0&&(e("body.material #slide-out-widget-area.slide-out-from-right .slide_out_area_close").insertAfter(".ocm-effect-wrap"),e("body > .slide_out_area_close").length>0&&e("body > .slide_out_area_close").wrap('<div class="slide_out_area_close__wrap" role="complementary" aria-label="'+t.nectar_front_i18n.close+'"></div>'),e("#slide-out-widget-area-bg").insertAfter(".ocm-effect-wrap"),o.insertAfter(".ocm-effect-wrap"))}(),function(){if(e('body.material[data-header-search="true"]').length>0||e("body.material .ocm-effect-wrap").length>0){var a,n=!1,i=0,r=be.winW,o=be.winH;t.addEventListener("orientationchange",function(){i=1}),s.on("resize",function(){be.usingMobileBrowser?(s.width()!=r&&s.height!=o||1===i)&&(r=be.winW,o=be.winH,i=0,n=!0):n=!0,n&&(clearTimeout(a),e('body[data-slide-out-widget-area-style="slide-out-from-right"] > .slide_out_area_close__wrap .slide_out_area_close, .material #header-outer, .ocm-effect-wrap, .ocm-effect-wrap-shadow').addClass("no-material-transition"),a=setTimeout(function(){e('body[data-slide-out-widget-area-style="slide-out-from-right"] > .slide_out_area_close__wrap .slide_out_area_close, .material #header-outer, .ocm-effect-wrap, .ocm-effect-wrap-shadow').removeClass("no-material-transition")},250),Ba(),n=!1)})}}(),s.on("resize",Fa)}function Wa(){var t,a=0;e("#slide-out-widget-area > .widget").each(function(){a+=e(this).height()}),t=o.height()-25-e(".bottom-meta-wrap").outerHeight(!0)-a>e("#slide-out-widget-area .off-canvas-menu-container:last-child").height()?o.height()-25-e(".bottom-meta-wrap").outerHeight(!0)-a:e("#slide-out-widget-area .off-canvas-menu-container:last-child").height(),e("#slide-out-widget-area .inner").first().css({height:"auto","min-height":t})}function Ba(){e("#slide-out-widget-area.slide-out-from-right").css({"padding-top":.1*s.height(),"padding-bottom":.1*s.height()}),Pa()}function Fa(){e(".ocm-effect-wrap.material-ocm-open").length>0&&(e(".ocm-effect-wrap").css({height:s.height()}),e(".ocm-effect-wrap-inner").css({"padding-top":be.adminBarHeight}))}function La(){e('#slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.menu-item-has-children').each(function(){e(this).find(".ocm-dropdown-arrow").css({top:e(this).find("a").height()/2})}),e("#slide-out-widget-area.fullscreen-split .off-canvas-menu-container li.menu-item-has-children").each(function(){e(this).find(".ocm-dropdown-arrow").css({top:e(this).find("a").height()/2})})}function qa(){t.nectarOptions&&t.nectarOptions.ocm_remove_ext_menu_items&&"remove_images"==t.nectarOptions.ocm_remove_ext_menu_items&&!1===ye.ocmInit&&(e('.off-canvas-menu-container .title[class*="inherit-h"], #mobile-menu .title[class*="inherit-h"]').removeClass(function(e,t){return(t.match(/(^|\s)inherit-h\S+/g)||[]).join(" ")}),e(".off-canvas-menu-container .nectar-ext-menu-item .image-layer-outer, #mobile-menu .nectar-ext-menu-item .image-layer-outer").remove(),e(".off-canvas-menu-container .nectar-ext-menu-item .menu-item-desc").removeClass("menu-item-desc").addClass("item_desc"),e(".off-canvas-menu-container .nectar-ext-menu-item .inner-content > .title").each(function(){0==e(this).find(".menu-title-text").length&&e(this).removeClass("title").addClass("menu-title-text")}),e(".off-canvas-menu-container .item_desc").each(function(){"none"!==e(this).css("display")&&e(this).parents(".menu-item").addClass("nectar-extra-menu-item-spacing")}),La(),ye.ocmInit=!0)}function Pa(){be.winW<1e3||e("body > #boxed").length>0||e(".ocm-effect-wrap-inner > #boxed").length>0?(e("#slide-out-widget-area.fullscreen .off-canvas-social-links, #slide-out-widget-area.fullscreen-alt .off-canvas-social-links").appendTo("#slide-out-widget-area .inner-wrap > .inner"),e("#slide-out-widget-area.fullscreen .bottom-text, #slide-out-widget-area.fullscreen-alt .bottom-text").appendTo("#slide-out-widget-area .inner-wrap > .inner")):(e("#slide-out-widget-area.fullscreen .off-canvas-social-links,#slide-out-widget-area.fullscreen-alt .off-canvas-social-links").appendTo("#slide-out-widget-area .inner-wrap"),e("#slide-out-widget-area.fullscreen .bottom-text, #slide-out-widget-area.fullscreen-alt .bottom-text").appendTo("#slide-out-widget-area .inner-wrap")),e(".slide-out-from-right.open .off-canvas-menu-container.mobile-only").length>0&&0==e("body.mobile").length&&e("#slide-out-widget-area .slide_out_area_close").trigger("click"),La()}function ja(){if(Wa(),(be.usingMobileBrowser||be.usingIOS||be.usingTouchDevice)&&e("#slide-out-widget-area.open").length>0||e(".slide-out-from-right-hover.ios-ocm-style").length>0&&e("#slide-out-widget-area.open").length>0)return Ra(),!1;(be.usingMobileBrowser||be.usingIOS||be.usingTouchDevice||e(".slide-out-from-right-hover.ios-ocm-style").length>0)&&(e(".slide-out-widget-area-toggle a").attr("aria-expanded","true"),l.css({height:"100%",width:"100%"})),o.css({transform:"translate3d(0,0,0)"}).addClass("open"),qa(),e(".slide-out-from-right-hover.ios-ocm-style").length>0&&(e("#ajax-content-wrap").addClass("ios-ocm-style-open"),setTimeout(function(){e("#slide-out-widget-area .slide_out_area_close").addClass("material-ocm-open"),e("#slide-out-widget-area .slide_out_area_close").removeClass("hide_until_rendered")},350));var a=at();be.winW<1e3&&(a=!0);var n=t.nectarOptions&&t.nectarOptions.mobile_header_format&&"centered-menu"===t.nectarOptions.mobile_header_format&&a?"left":"right";if(e("header#top .container .span_9 > .slide-out-widget-area-toggle").length>0){var i,c=e(".slide-out-hover-icon-effect"),h=be.secondaryHeaderHeight,u=at();if(e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&(u=!1),e("body.mobile").length>0||u||"left"===A)e(".left-aligned-ocm").length>0&&"none"!=e(".left-aligned-ocm").css("display")?c.css({top:e("header#top .left-aligned-ocm .slide-out-widget-area-toggle a").offset().top-be.scrollTop}):c.css({top:e("header#top .span_9 > .slide-out-widget-area-toggle a").offset().top-be.scrollTop}),"left"===n||"left"===A?c.css({left:parseInt(e("#header-outer header > .container").css("padding-right"))+1,right:""}):c.css({right:parseInt(e("#header-outer header > .container").css("padding-right"))+1,left:""});else if(pe){var p=e('#header-outer[data-has-menu="false"]').length>0?2:1;c.css({top:be.adminBarHeight+h+parseInt(e("header#top nav >ul .slide-out-widget-area-toggle a").css("padding-top")),right:29+p})}else e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0?(i="flex"==e("header#top .span_9 > .slide-out-widget-area-toggle").css("display")?e("header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon a").offset():e("header#top .span_3 .right-side .slide-out-widget-area-toggle > div").offset(),"flex"==e("#top .span_3 .slide-out-widget-area-toggle.mobile-icon").css("display")&&(i=e("#top .span_3 .slide-out-widget-area-toggle.mobile-icon a").offset()),c.css({top:parseInt(i.top)-be.scrollTop,right:parseInt(e("#header-outer header >.container").css("padding-right"))+2,left:""})):(i=r.hasClass("ascend")?"block"==e("header#top .span_9 > .slide-out-widget-area-toggle").css("display")?e("header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon").position():e("header#top nav .buttons .slide-out-widget-area-toggle > div a > span:not(.screen-reader-text)").position():"block"==e("header#top .span_9 > .slide-out-widget-area-toggle").css("display")?e("header#top .span_9 > .slide-out-widget-area-toggle.mobile-icon").position():e("header#top nav .buttons .slide-out-widget-area-toggle > div").position(),e("#header-secondary-outer.hide-up").length>0&&(h=0),c.css({top:be.adminBarHeight+h+parseInt(i.top),right:parseInt(e("#header-outer header >.container").css("padding-right"))+2,left:""}))}if(e(".slide-out-hover-icon-effect .lines-button").removeClass("no-delay").addClass("unhidden-line"),0==e('#header-outer[data-permanent-transparent="1"]').length&&0==e("#nectar_fullscreen_rows").length&&!be.usingFrontEndEditor&&be.winW>1e3&&(0==be.scrollTop&&e("#header-outer.transparent").length>0||0==e("body.mobile").length&&pe&&(d.attr("data-transparent","true").addClass("no-bg-color").addClass("slide-out-hover"),e("#header-outer header, #header-outer > .cart-outer").addClass("all-hidden")),0==e('#header-outer[data-remove-fixed="1"]').length&&0==e("body.mobile").length&&pe&&(1==k?(s.off("scroll",Cn),s.off("scroll",_n)):(s.off("scroll",xn),s.off("scroll",kn)))),be.usingMobileBrowser)return!1;s.on("mousemove.rightOffsetCheck",Ya)}function Ya(a){var n=s.width(),i=o.outerWidth(),r=at();be.winW<1e3&&(r=!0);("left"!==(t.nectarOptions&&t.nectarOptions.mobile_header_format&&"centered-menu"===t.nectarOptions.mobile_header_format&&r?"left":"right")&&"left"!==A?a.clientX<n-parseInt(i)-b:a.clientX>parseInt(i)+b)&&o.hasClass("mouse-accessed")&&(o.removeClass("mouse-accessed"),s.off("mousemove.rightOffsetCheck",Ya),o.css({transform:""}).removeClass("open"),d.removeClass("style-slide-out-from-right"),e(".slide-out-hover-icon-effect .lines-button").removeClass("unhidden-line").addClass("no-delay"),0==e('#header-outer[data-permanent-transparent="1"]').length&&(0==e('#header-outer[data-remove-fixed="1"]').length&&0==e("body.mobile").length&&pe&&0==e("body.mobile").length&&(d.removeClass("no-bg-color"),e("#header-outer header, #header-outer > .cart-outer").removeClass("all-hidden")),0==e('#header-outer[data-remove-fixed="1"]').length&&0==e("body.mobile").length&&pe&&(1==k?(s.off("scroll.headerResizeEffect"),0==be.scrollTop?(s.on("scroll.headerResizeEffect",_n),e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&f.length>0&&1==pe&&e("#header-outer.pseudo-data-transparent").length>0&&e('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({padding:"0"},{queue:!1,duration:250,easing:"easeOutCubic"})):s.on("scroll.headerResizeEffect",Cn)):(s.off("scroll.headerResizeEffectOpaque"),s.on("scroll.headerResizeEffectOpaque",xn)))))}function Ra(){(be.usingMobileBrowser||be.usingIOS||be.usingTouchDevice||e(".slide-out-from-right-hover.ios-ocm-style").length>0)&&(e(".slide-out-widget-area-toggle a").attr("aria-expanded","false"),l.css({height:"1px",width:"1px"})),e(".slide-out-from-right-hover.ios-ocm-style").length>0&&(e("#ajax-content-wrap").removeClass("ios-ocm-style-open"),e("#slide-out-widget-area .slide_out_area_close").removeClass("material-ocm-open")),o.css({transform:""}).removeClass("open"),d.removeClass("style-slide-out-from-right"),e(".slide-out-hover-icon-effect .lines-button").removeClass("unhidden-line").addClass("no-delay"),0==e('#header-outer[data-permanent-transparent="1"]').length&&(d.removeClass("no-bg-color"),e("#header-outer header").removeClass("all-hidden")),0==e('#header-outer[data-remove-fixed="1"]').length&&0==e("body.mobile").length&&pe&&(1==k?(s.off("scroll.headerResizeEffect"),0==be.scrollTop?(s.on("scroll.headerResizeEffect",_n),e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&f.length>0&&1==pe&&e("#header-outer.pseudo-data-transparent").length>0&&e('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({padding:"0"},{queue:!1,duration:250,easing:"easeOutCubic"})):s.on("scroll.headerResizeEffect",Cn)):(s.off("scroll.headerResizeEffectOpaque"),s.on("scroll.headerResizeEffectOpaque",xn)))}function Va(){e(".slide-out-from-right-hover.open").length>0&&(e(".slide-out-widget-area-toggle:not(.std-menu) a").first().addClass("non-human-allowed").trigger("click"),setTimeout(function(){e(".slide-out-widget-area-toggle:not(.std-menu) a").removeClass("non-human-allowed")},100))}function Xa(t){e("#mobile-menu").show(),e("header#top").find("."+t+":not(.std-menu) .lines-button").addClass("close"),e("#header-outer").addClass("simple-ocm-open"),e("body.material").length>0&&e("header#top").find("."+t+" a").addClass("menu-push-out"),setTimeout(function(){e("header#top").find("."+t+" > div > a").removeClass("animating")},100)}function Na(t){e("#mobile-menu").hide(),e("body").find("."+t+":not(.std-menu) .lines-button").removeClass("close"),e("#header-outer").removeClass("simple-ocm-open"),setTimeout(function(){e("body.material").length>0&&e("header#top ."+t+" a").removeClass("menu-push-out"),e("body").find("."+t+" a").removeClass("animating")},350)}function Da(){function a(){if(ye.ocmAnimating||"true"==ge.animating||e(".slide-out-from-right-hover").length>0)return!1;var a=700;return ye.ocmOpen=!0,qa(),d.removeClass("no-transition"),e(this).hasClass("simple-mobile-menu")?(Xa("simple-mobile-menu"),e(this).find("a").addClass("open"),!1):(o.hasClass("slide-out-from-right")?function(){var a=f.length>0&&0==e("body.mobile").length?f.height():0,n=at();be.winW<1e3&&(n=!0);var i=t.nectarOptions&&t.nectarOptions.mobile_header_format&&"centered-menu"===t.nectarOptions.mobile_header_format&&n?"left":"right";if(0==e("body.material").length){if(e("#slide-out-widget-area .inner").css({height:"auto","min-height":o.height()-25-e(".bottom-meta-wrap").height()}),e('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"] .inner > div:first-of-type > .menu > li:first-child').length>0&&e("#slide-out-widget-area .inner > div:first-of-type > .menu > li:first-child").hasClass("menu-item-has-children")&&e("#slide-out-widget-area .inner > div:first-of-type").css({"margin-top":"50px"}),0==e("#boxed").length){e(".container-wrap, .home-wrap, #footer-outer:not(#nectar_fullscreen_rows #footer-outer), .nectar-box-roll, #page-header-wrap .page-header-bg-image, #page-header-wrap .nectar-video-wrap, #page-header-wrap .mobile-video-image, #page-header-wrap #page-header-bg > .container, .page-header-no-bg, div:not(.container) > .project-title").stop(!0).transition({x:"left"===i||"left"===A?"300px":"-300px"},700,"easeInOutCubic");var h=at();0==e('#header-outer[data-format="centered-logo-between-menu"]').length||h?0==e('#header-outer[data-transparency-option="1"]').length||e('#header-outer[data-transparency-option="1"]').length>0&&0==e('#header-outer[data-full-width="true"]').length||e("body.mobile").length>0?d.stop(!0).css("transform","translateY(0)").transition({x:"left"===i||"left"===A?300+a+"px":"-"+(300+a)+"px"},700,"easeInOutCubic"):d.stop(!0).css("transform","translateY(0)").transition({x:"left"===i||"left"===A?300+a+"px":"-"+(300+a)+"px","background-color":"transparent","border-bottom":"1px solid rgba(255,255,255,0.22)"},700,"easeInOutCubic"):e('#header-outer header#top nav > ul.buttons, body:not(.material) #header-outer:not([data-format="centered-logo-between-menu"]) .cart-outer .cart-menu-wrap').transition({x:"left"===i||"left"===A?"300px":"-300px"},700,"easeInOutCubic")}if(o.stop(!0).transition({x:"left"===i||"left"===A?a+"px":"-"+a+"px"},700,"easeInOutCubic").addClass("open"),0==e("#boxed").length&&e('#header-outer[data-full-width="true"]').length>0&&!r.hasClass("mobile")&&(d.addClass("highzI"),e("#ascrail2000").addClass("z-index-adj"),0==e('#header-outer[data-format="centered-logo-between-menu"]').length&&0==b&&("left"===A||e("header#top #logo").stop(!0).transition({x:300+a+"px"},700,"easeInOutCubic")),e("header#top .slide-out-widget-area-toggle .lines-button:not(.legacy-double)").addClass("close"),e("body #header-outer nav > ul > li > a").css({"margin-bottom":"0"})),d.addClass("style-slide-out-from-right"),l.css({height:"100%",width:"100%"}).stop(!0).transition({opacity:1},700,"easeInOutCubic",function(){e(".slide-out-widget-area-toggle:not(.std-menu) > div > a").removeClass("animating")}),0==e('#header-outer[data-format="centered-logo-between-menu"]').length){var u=e("#logo img:visible").length>0?e("#logo img:visible").width():e("#logo").width();e("header#top nav > .sf-menu").offset().left-u-300<20&&d.addClass("hidden-menu")}else d.addClass("hidden-menu-items");0==e('#header-outer[data-remove-fixed="1"]').length&&be.winW>1e3&&(1==pe&&1==k&&"true"==d.attr("data-transparent-header")?(d.stop(!0).transition({y:"0"},0).addClass("transparent").css("transition","transform"),s.off("scroll",Cn),s.off("scroll",_n)):1==pe&&"true"==d.attr("data-transparent-header")&&(d.addClass("transparent"),s.off("scroll",xn),s.off("scroll",kn)))}else e("body.material").length>0&&(p.length>0&&e(".ocm-effect-wrap #ajax-loading-screen").length>0&&p.insertBefore(".ocm-effect-wrap"),be.scrollTop>40&&e('body[data-hhun="1"] #header-secondary-outer').addClass("hidden"),setTimeout(function(){e(".slide-out-widget-area-toggle:not(.std-menu) > div > a").removeClass("animating")},300),e("#slide-out-widget-area, #slide-out-widget-area-bg, #header-outer .slide-out-widget-area-toggle").addClass("material-open"),e('body:not(.mobile) #header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&"none"!=e('#header-outer[data-format="centered-menu-bottom-bar"] .span_9').css("display")&&(e("#header-outer:not(.fixed-menu)").css("top",be.adminBarHeight-be.scrollTop+"px"),c.length>0&&e("#header-outer.fixed-menu").length>0&&c.css("visibility","hidden")),e("#ajax-content-wrap").css({position:"relative",top:"-"+be.scrollTop+"px"}),e(".ocm-effect-wrap-inner").css({"padding-top":be.adminBarHeight}),e("#fp-nav").addClass("material-ocm-open"),ye.materialOffCanvasOpen=!0,r.addClass("material-ocm-open"),r.addClass("nectar-no-flex-height"),e(".ocm-effect-wrap").css({height:be.winH}),setTimeout(function(){e(".ocm-effect-wrap").addClass("material-ocm-open")},40),e("body > .slide_out_area_close__wrap .slide_out_area_close").addClass("follow-body"),e('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').addClass("effect-shown"),e('body[data-hhun="1"]:not(.no-scroll):not(.mobile) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({transition:"none",transform:"translateY("+be.adminBarHeight+"px)"}),setTimeout(function(){e("body > .slide_out_area_close__wrap .slide_out_area_close").addClass("material-ocm-open"),e("body > .slide_out_area_close__wrap .slide_out_area_close").removeClass("hide_until_rendered")},350));e(t).trigger("nectar-material-ocm-open")}():o.hasClass("fullscreen")?function(){e("body.material").length>0&&e("header#top .slide-out-widget-area-toggle a").addClass("menu-push-out");var t=0,a=0;be.scrollTop+s.height()>e(".blurred-wrap").height()&&0==e("#nectar_fullscreen_rows").length&&(e("body,html").stop().animate({scrollTop:e(".blurred-wrap").height()-s.height()},600,"easeInOutCubic"),t=550,a=200),e("header#top .slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)").addClass("close"),setTimeout(function(){e(".blurred-wrap").addClass("blurred")},t),e("#slide-out-widget-area.fullscreen").show().addClass("open"),0==e(".nectar-social.fixed").length&&ei(),e(".container-wrap").addClass("no-shadow"),d.stop(!0).css("transform","translateY(0)"),setTimeout(function(){e(".off-canvas-menu-container .menu > li").each(function(t){e(this).delay(50*t).transition({y:0,opacity:1},800,"easeOutExpo")}),e("#slide-out-widget-area.fullscreen .widget").each(function(t){e(this).delay(100*t).transition({y:0,opacity:1},800,"easeOutExpo")})},370+a),setTimeout(function(){e("#slide-out-widget-area .off-canvas-social-links").addClass("line-shown"),e("#slide-out-widget-area .off-canvas-social-links li").each(function(t){e(this).delay(50*t).transition({scale:1},400,"easeOutCubic")}),e("#slide-out-widget-area .bottom-text").transition({opacity:.7},400,"easeOutCubic")},750+a),setTimeout(function(){var t=e("body.mobile").length>0?"easeOutCubic":"easeInOutQuint";l.css({height:"100%",width:"100%"}).show().stop(!0).transition({y:"0%"},920,t,function(){e(".slide-out-widget-area-toggle > div > a").removeClass("animating")})},50+a),Pa(),e('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&e(".container-wrap").hasClass("no-scroll")&&e("#ajax-content-wrap").addClass("at-content");var n=d.offset().top-be.scrollTop+be.secondaryHeaderHeight;e("#slide-out-widget-area.fullscreen > .inner-wrap").css("padding-top",d.outerHeight()+n)}():o.hasClass("fullscreen-alt")||o.hasClass("fullscreen-split")?function(){var t=".fullscreen-alt";o.hasClass("fullscreen-split")&&(t=".fullscreen-split"),e("body.material").length>0&&e("header#top .slide-out-widget-area-toggle a").addClass("menu-push-out"),e("header#top .slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)").addClass("close"),".fullscreen-alt"===t?e("#slide-out-widget-area"+t).show().addClass("open"):e("#slide-out-widget-area"+t).addClass("open").removeClass("hidden"),l.addClass("open").removeClass("hidden"),e('body > div[class*="body-border"]').css("z-index","9995"),".fullscreen-alt"===t&&e(".off-canvas-menu-container .menu").transition({y:"0px",opacity:1},0),0==e(".nectar-social.fixed").length&&ei(),e("#header-outer.transparent").length>0&&f.length>0&&(e(".admin-bar #slide-out-widget-area-bg"+t).css({"padding-top":f.outerHeight(!0)+32+"px"}),e("body:not(.admin-bar) #slide-out-widget-area-bg"+t).css({"padding-top":f.outerHeight(!0)+"px"})),d.stop(!0).css("transform","translateY(0)"),s.width()>1e3&&0==e('#header-outer[data-format="centered-menu-bottom-bar"].fixed-menu').length&&0==e('body.material #header-outer[data-condense="true"]').length&&"true"==d.attr("data-transparent-header")&&!be.usingFrontEndEditor&&(e("#logo .starting-logo").length>0||e("#logo.no-image").length>0)&&d.stop(!0).css("transform","translateY(0)").addClass("transparent"),e(".off-canvas-menu-container .clip-wrap").css("transition-duration","0s"),".fullscreen-alt"===t&&(setTimeout(function(){e(".off-canvas-menu-container .menu > li").each(function(t){e(this).delay(50*t).transition({y:0,opacity:1},750,"easeOutCubic").addClass("no-pointer-events")}),setTimeout(function(){e(".off-canvas-menu-container .menu > li").removeClass("no-pointer-events"),e(".off-canvas-menu-container .clip-wrap").css("transition-duration",".45s")},500),e("#slide-out-widget-area.fullscreen-alt .widget").each(function(t){e(this).delay(100*t).transition({y:0,opacity:1},650,"easeOutCubic")})},200),setTimeout(function(){e("#slide-out-widget-area .off-canvas-social-links").addClass("line-shown"),e("#slide-out-widget-area .off-canvas-social-links li").css("opacity","1").each(function(t){e(this).delay(50*t).transition({scale:1},400,"easeOutCubic")}),e("#slide-out-widget-area .bottom-text").transition({opacity:1},600,"easeOutCubic")},200));var a=.4;l.hasClass("solid")&&(a=1),l.hasClass("dark")&&(a=.97),l.hasClass("medium")&&(a=.6),l.hasClass("light")&&(a=.4),l.removeClass("no-transition"),".fullscreen-alt"===t&&(l.addClass("padding-removed").css({height:"100%",width:"100%",left:"0",opacity:a}),Pa()),setTimeout(function(){e(".slide-out-widget-area-toggle > div > a").removeClass("animating")},600),e('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&e(".container-wrap").hasClass("no-scroll")&&e("#ajax-content-wrap").addClass("at-content");var n=d.outerHeight();if(e('body[data-contained-header="true"]').length>0&&(n=1.5*d.outerHeight()),".fullscreen-alt"===t){var i=d.offset().top-be.scrollTop+be.secondaryHeaderHeight;e("#slide-out-widget-area"+t+" > .inner-wrap").css("padding-top",d.outerHeight()+i)}else e("#slide-out-widget-area"+t+" > .inner-wrap").css("padding-top",n)}():o.hasClass("fullscreen-inline-images")?(!function(){var t=be.winW<be.winH;0===e('body[data-contained-header="true"]').length&&d.css({"z-index":"9990",transition:"transform 0.3s ease"}),0==e(".nectar-social.fixed").length&&ei(),e("body.material").length>0&&e("header#top .slide-out-widget-area-toggle a").addClass("menu-push-out"),e("header#top .slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)").addClass("close"),e("#slide-out-widget-area.fullscreen-inline-images").addClass("open").removeClass("hidden"),l.addClass("open").removeClass("hidden"),e('body > div[class*="body-border"]').css("z-index","9995"),setTimeout(function(){d.removeClass("side-widget-closed").addClass("side-widget-open"),$||(d.attr("data-transparent-header","true"),0===e("#logo .starting-logo:not(.dark-version)").length&&d.addClass("lighten-logo")),be.usingFrontEndEditor||d.stop(!0).css("transform","translateY(0)").addClass("transparent"),e("#header-outer.dark-slide.transparent").length>0&&0==e("#boxed").length&&d.removeClass("dark-slide").addClass("temp-removed-dark-slide"),0===e('body[data-contained-header="true"]').length&&setTimeout(function(){anime({targets:"#header-outer #top > .container",opacity:[0,1],duration:900,easing:"easeOutQuad"}),d.css({"z-index":"",transition:""})},50)},t?350:425),e(".off-canvas-menu-container .clip-wrap").css("transition-duration","0s"),l.removeClass("no-transition"),setTimeout(function(){e(".slide-out-widget-area-toggle > div > a").removeClass("animating")},600),e('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&e(".container-wrap").hasClass("no-scroll")&&e("#ajax-content-wrap").addClass("at-content");var a=d.outerHeight();e('body[data-contained-header="true"]').length>0&&(a=2*d.outerHeight()),e("#slide-out-widget-area.fullscreen-inline-images > .inner-wrap").css("padding-top",a)}(),a=1100):e("#header-outer #mobile-menu").length>0&&(a=150,Xa("slide-out-widget-area-toggle")),ye.ocmAnimating=!0,setTimeout(function(){ye.ocmAnimating=!1},a),0!=e("#header-outer #mobile-menu").length||o.hasClass("fullscreen-inline-images")||(d.removeClass("side-widget-closed").addClass("side-widget-open"),e('#header-outer[data-transparency-option="1"]').length>0&&0==e("#boxed").length&&e('#header-outer[data-full-width="true"]').length>0&&!be.usingFrontEndEditor&&0==e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length&&0==e('body.material #header-outer[data-condense="true"]').length&&d.addClass("transparent"),e("#header-outer.dark-slide.transparent").length>0&&0==e("#boxed").length&&0==e("body.material-ocm-open").length&&d.removeClass("dark-slide").addClass("temp-removed-dark-slide")),e(".slide-out-widget-area-toggle:not(.simple-mobile-menu) > div > a").removeClass("closed").addClass("open").attr("aria-expanded","true"),e(".slide-out-widget-area-toggle:not(.simple-mobile-menu) > div > a").addClass("animating"),e(t).trigger("nectar-ocm-open"),!1)}if(t.nectarOcmOpen&&a(),r.on("click",".slide-out-widget-area-toggle:not(.std-menu) a.closed.animating",function(){return!1}),r.on("click touchend",".slide-out-widget-area-toggle:not(.std-menu) a.closed:not(.animating), .nectar-ocm-trigger-open",a),r.on("click",".slide-out-widget-area-toggle:not(.std-menu) a.open.animating",function(){return!1}),r.on("click",".slide-out-widget-area-toggle:not(.std-menu) a.open:not(.animating), .nectar-ocm-trigger-open a.open, #slide-out-widget-area .slide_out_area_close, > .slide_out_area_close__wrap .slide_out_area_close, #slide-out-widget-area-bg.slide-out-from-right, .material-ocm-open #ajax-content-wrap, #ajax-content-wrap.ios-ocm-style-open",function(a){var n;if(null!=a.originalEvent||0!=e(".slide_out_area_close.non-human-allowed").length||0!=e(".slide-out-widget-area-toggle.mobile-icon a.non-human-allowed").length)return!(ye.ocmAnimating||e(".slide-out-widget-area-toggle:not(.std-menu) a.animating").length>0)&&(ye.ocmOpen=!1,d.removeClass("no-transition"),e(this).parents(".simple-mobile-menu").length>0?(Na("simple-mobile-menu"),e(this).removeClass("open"),!1):(e(".slide-out-widget-area-toggle:not(.std-menu):not(.simple-mobile-menu) a").removeClass("open").addClass("closed").attr("aria-expanded","false"),e(".slide-out-widget-area-toggle:not(.simple-mobile-menu):not(.std-menu) a").addClass("animating"),o.hasClass("slide-out-from-right")?function(){if(0==e("body.material").length){var a=at();be.winW<1e3&&(a=!0);var n=t.nectarOptions&&t.nectarOptions.mobile_header_format&&"centered-menu"===t.nectarOptions.mobile_header_format&&a?"left":"right";if(e(".container-wrap, .home-wrap, #footer-outer:not(#nectar_fullscreen_rows #footer-outer), .nectar-box-roll, #page-header-wrap .page-header-bg-image,  #page-header-wrap .nectar-video-wrap, #page-header-wrap .mobile-video-image, #page-header-wrap #page-header-bg > .container, .page-header-no-bg, div:not(.container) > .project-title").stop(!0).transition({x:"0px"},700,"easeInOutCubic"),e('#header-outer[data-transparency-option="1"]').length>0&&0==e("#boxed").length){var i=e("#header-outer[data-current-row-bg-color]").length>0?d.attr("data-current-row-bg-color"):d.attr("data-user-set-bg");d.stop(!0).transition({x:"0px","background-color":i},700,"easeInOutCubic")}else d.stop(!0).transition({x:"0px"},700,"easeInOutCubic");o.stop(!0).transition({x:"left"===n||"left"===A?"-301px":"301px"},700,"easeInOutCubic").removeClass("open"),0==e("#boxed").length&&e('#header-outer[data-full-width="true"]').length>0&&(d.removeClass("highzI"),e("header#top #logo").stop(!0).transition({x:"0px"},700,"easeInOutCubic"),e(".lines-button").removeClass("close")),e('#header-outer[data-format="centered-logo-between-menu"]').length>0&&e("#header-outer header#top nav > ul.buttons, #header-outer .cart-outer .cart-menu-wrap").stop(!0).transition({x:"0px"},700,"easeInOutCubic"),l.stop(!0).transition({opacity:0},700,"easeInOutCubic",function(){e(".slide-out-widget-area-toggle a").removeClass("animating"),e(this).css({height:"1px",width:"1px"}),0==e('#header-outer[data-remove-fixed="1"]').length&&(d.hasClass("parallax-contained")&&be.scrollTop>0&&0==e('#header-outer[data-permanent-transparent="1"]').length?d.removeClass("parallax-contained").addClass("detached").removeClass("transparent"):(0==be.scrollTop&&e('body[data-hhun="1"]').length>0&&e('#page-header-bg[data-parallax="1"]').length>0||0==be.scrollTop&&e('body[data-hhun="1"]').length>0&&e(".parallax_slider_outer").length>0)&&e('#header-outer[data-transparency-option="1"]').length>0&&d.addClass("transparent")),e(".container-wrap").css("transform","none")}),d.removeClass("style-slide-out-from-right"),0==e('#header-outer[data-remove-fixed="1"]').length&&(1==pe&&1==k&&be.winW>1e3?(s.off("scroll.headerResizeEffect"),0==be.scrollTop?(s.on("scroll.headerResizeEffect",_n),e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&f.length>0&&1==pe&&e("#header-outer.pseudo-data-transparent").length>0&&e('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({padding:"0"},{queue:!1,duration:250,easing:"easeOutCubic"})):s.on("scroll.headerResizeEffect",Cn),d.hasClass("pseudo-data-transparent")&&d.attr("data-transparent-header","false").removeClass("pseudo-data-transparent").removeClass("transparent"),d.css("transition","transform")):1==pe&&be.winW>1e3&&(s.off("scroll.headerResizeEffectOpaque"),s.on("scroll.headerResizeEffectOpaque",xn),d.css("transition","transform"),d.hasClass("pseudo-data-transparent")&&d.attr("data-transparent-header","false").removeClass("pseudo-data-transparent").removeClass("transparent")))}else e("body.material").length>0&&(o.removeClass("open"),e("#slide-out-widget-area, #slide-out-widget-area-bg, #header-outer .slide-out-widget-area-toggle").removeClass("material-open"),e(".ocm-effect-wrap, .ocm-effect-wrap-shadow, body > .slide_out_area_close__wrap .slide_out_area_close, #fp-nav").removeClass("material-ocm-open"),e("body > .slide_out_area_close__wrap .slide_out_area_close").removeClass("follow-body"),setTimeout(function(){e(".slide-out-widget-area-toggle a").removeClass("animating"),r.removeClass("material-ocm-open"),r.removeClass("nectar-no-flex-height"),e(".ocm-effect-wrap").css({height:"100%"}),e(".ocm-effect-wrap-inner").css({"padding-top":"0"}),s.scrollTop(Math.abs(parseInt(e("#ajax-content-wrap").css("top")))),e("#ajax-content-wrap").css({position:"",top:""}),e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&"none"!=e('#header-outer[data-format="centered-menu-bottom-bar"] .span_9').css("display")&&0==e("body.mobile").length&&(e("#header-outer:not(.fixed-menu)").css("top",""),c.css("visibility","")),e('body[data-hhun="1"]:not(.no-scroll) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({transform:""}),setTimeout(function(){e('body[data-hhun="1"]:not(.no-scroll) #header-outer[data-permanent-transparent="false"]:not(.detached):not(.parallax-contained):not(.at-top-before-box)').css({transition:""})},30),e('body[data-hhun="1"] #header-secondary-outer.hidden').removeClass("hidden"),ye.materialOffCanvasOpen=!1,e(t).trigger("nectar-material-ocm-close")},900),setTimeout(function(){e('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').addClass("no-trans").removeClass("effect-shown")},200),setTimeout(function(){e('#header-outer:not([data-format="left-header"]) header#top .slide-out-widget-area-toggle a').removeClass("no-trans")},500))}():o.hasClass("fullscreen")?(e("body.material").length>0&&setTimeout(function(){e("header#top .slide-out-widget-area-toggle a").removeClass("menu-push-out")},350),e(".slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)").removeClass("close"),e(".blurred-wrap").removeClass("blurred"),e("#slide-out-widget-area.fullscreen").transition({opacity:0},700,"easeOutQuad",function(){e("#slide-out-widget-area.fullscreen").hide().css("opacity","1")}).removeClass("open"),e("#slide-out-widget-area.fullscreen .widget").transition({opacity:0},700,"easeOutQuad",function(){e(this).transition({y:"110px"},0)}),setTimeout(function(){e(".off-canvas-menu-container .menu > li").transition({y:"80px",opacity:0},0),e("#slide-out-widget-area .off-canvas-social-links li").transition({scale:0},0),e("#slide-out-widget-area .off-canvas-social-links").removeClass("line-shown"),e("#slide-out-widget-area .bottom-text").transition({opacity:0},0),e("#slide-out-widget-area .menuwrapper .menu").removeClass("subview"),e("#slide-out-widget-area .menuwrapper .menu li").removeClass("subview subviewopen"),e("#slide-out-widget-area.fullscreen .inner .menu-wrap").css("height","auto")},800),setTimeout(function(){0==e(".nectar-social.fixed").length&&Kn(),e(".container-wrap").removeClass("no-shadow")},500),l.stop(!0).transition({opacity:0},900,"easeOutQuad",function(){e('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&e(".container-wrap").hasClass("no-scroll")&&e("#ajax-content-wrap").removeClass("at-content"),0==e('.mobile #header-outer[data-permanent-transparent="false"]').length&&e("#slide-out-widget-area.fullscreen > .inner-wrap").css("padding-top","0"),e(".slide-out-widget-area-toggle a").removeClass("animating");var t=.4;l.hasClass("solid")&&(t=1),l.hasClass("dark")&&(t=.93),l.hasClass("medium")&&(t=.6),l.hasClass("light")&&(t=.4),e(this).css({height:"1px",width:"1px",opacity:t}).transition({y:"-100%"},0)})):o.hasClass("fullscreen-alt")||o.hasClass("fullscreen-split")||o.hasClass("fullscreen-inline-images")?(n=".fullscreen-alt",o.hasClass("fullscreen-inline-images")?(n=".fullscreen-inline-images",d.css({"z-index":"9990",transition:"transform 0.3s ease"}),setTimeout(function(){d.css({"z-index":"",transition:""})},450),$||(d.removeClass("lighten-logo"),d.attr("data-transparent-header","").removeClass("transparent")),setTimeout(function(){e("#slide-out-widget-area .menuwrapper .menu").removeClass("subview"),e("#slide-out-widget-area .menuwrapper .menu li").removeClass("subview subviewopen"),e("#slide-out-widget-area.fullscreen-alt .inner .menu-wrap").css("height","auto")},550)):o.hasClass("fullscreen-split")&&(n=".fullscreen-split"),e("body.material").length>0&&setTimeout(function(){e("header#top .slide-out-widget-area-toggle a").removeClass("menu-push-out")},350),e(".slide-out-widget-area-toggle:not(.std-menu) .lines-button:not(.legacy-double)").removeClass("close"),l.removeClass("open"),".fullscreen-split"!==n&&".fullscreen-inline-images"!==n||setTimeout(function(){l.addClass("hidden"),e("#slide-out-widget-area"+n).addClass("hidden")},550),".fullscreen-alt"===n&&(e(".blurred-wrap").removeClass("blurred"),e("#slide-out-widget-area.fullscreen-alt .widget").transition({opacity:0},500,"easeOutQuad",function(){e(this).transition({y:"40px"},0)}),e("#slide-out-widget-area .bottom-text, #slide-out-widget-area .off-canvas-social-links li").transition({opacity:0},250,"easeOutQuad"),e("#slide-out-widget-area .off-canvas-social-links").removeClass("line-shown"),e(".off-canvas-menu-container .menu").transition({y:"-13px",opacity:0},400)),setTimeout(function(){".fullscreen-alt"===n&&(e(".off-canvas-menu-container .menu > li").stop(!0,!0).transition({y:"40px",opacity:0},0),e("#slide-out-widget-area .off-canvas-social-links li").transition({scale:0},0),e("#slide-out-widget-area .off-canvas-social-links").removeClass("line-shown"),e("#slide-out-widget-area .menuwrapper .menu").removeClass("subview"),e("#slide-out-widget-area .menuwrapper .menu li").removeClass("subview subviewopen"),e("#slide-out-widget-area.fullscreen-alt .inner .menu-wrap").css("height","auto"),l.css({height:"1px",width:"1px",left:"-100%"})),e('.mobile #header-outer[data-permanent-transparent="false"]').length>0&&e(".container-wrap").hasClass("no-scroll")&&e("#ajax-content-wrap").removeClass("at-content"),0==e('.mobile #header-outer[data-permanent-transparent="false"]').length&&e("#slide-out-widget-area"+n+" .inner-wrap").css("padding-top","0"),e(".slide-out-widget-area-toggle a").removeClass("animating"),".fullscreen-alt"===n&&e("#slide-out-widget-area"+n).hide().removeClass("open")},550),".fullscreen-split"!==n&&".fullscreen-inline-images"!==n||e("#slide-out-widget-area"+n).removeClass("open"),setTimeout(function(){0==e(".nectar-social.fixed").length&&Kn()},600),setTimeout(function(){l.removeClass("padding-removed")},50),setTimeout(function(){".fullscreen-alt"===n&&l.stop(!0).css({opacity:0}),e('#header-outer[data-transparent-header="true"]').length>0&&e('body > div[class*="body-border"]').css("z-index","10000")},1==pe?150:50),setTimeout(function(){e('#header-outer:not([data-permanent-transparent="1"]).transparent.small-nav, body[data-hhun="1"] #header-outer:not([data-permanent-transparent="1"]).transparent.scrolling, #header-outer:not([data-permanent-transparent="1"]).transparent.scrolled-down').removeClass("transparent"),d.hasClass("pseudo-data-transparent")&&d.attr("data-transparent-header","false").removeClass("pseudo-data-transparent").removeClass("transparent")},".fullscreen-inline-images"==n?0:100)):e("#header-outer #mobile-menu").length>0&&Na("slide-out-widget-area-toggle"),0==e("#header-outer #mobile-menu").length&&(e("#header-outer.temp-removed-dark-slide.transparent").length>0&&0==e("#boxed").length&&d.removeClass("temp-removed-dark-slide").addClass("dark-slide"),0==e('#header-outer[data-permanent-transparent="1"]').length&&0==e("#slide-out-widget-area.fullscreen-alt").length&&(0==e(".nectar-box-roll").length?(e("#header-outer.small-nav").length>0||e("#header-outer.scrolled-down").length>0)&&d.removeClass("transparent"):(e("#header-outer.small-nav").length>0||e("#header-outer.scrolled-down").length>0||e(".container-wrap.auto-height").length>0)&&d.removeClass("transparent")),d.removeClass("hidden-menu"),d.removeClass("side-widget-open").addClass("side-widget-closed")),e(t).trigger("nectar-ocm-close"),!1))}),o.hasClass("fullscreen-inline-images")){var n="";e('#slide-out-widget-area .off-canvas-menu-container .menu > li[class*="current"]').length>0&&(n=e('#slide-out-widget-area .off-canvas-menu-container .menu > li[class*="current"]').attr("class"));var i=Qa(n);e(".nectar-ocm-image."+i).length>0&&(e(".nectar-ocm-image.default").remove(),e(".nectar-ocm-image."+i).addClass("current")),e(".off-canvas-menu-container .menu > .menu-item-has-children > a").on("click",function(t){var a=Qa(e(this).parent().attr("class"));e(".nectar-ocm-image."+a).length>0&&(e(".nectar-ocm-image."+a).addClass("active-hold"),e(".nectar-ocm-image.current:not(.active-hold)").addClass("hidden"))}),e("body").on("mousedown",".off-canvas-menu-container .menu > .menu-item-has-children > ul > .back",function(t){setTimeout(function(){e(".nectar-ocm-image").removeClass("active-hold")},400)}),e("#slide-out-widget-area .off-canvas-menu-container li[class]").on("mouseenter",function(){var t=Qa(e(this).attr("class"));0===e(".nectar-ocm-image.active-hold").length&&(e(".nectar-ocm-image."+t).addClass("active"),e(".nectar-ocm-image."+t).length>0&&e(".nectar-ocm-image.current:not(.active)").addClass("hidden"))}),e("#slide-out-widget-area .off-canvas-menu-container li").on("mouseleave",function(){0===e(".nectar-ocm-image.active-hold").length&&(e(".nectar-ocm-image.active").removeClass("active"),e(".nectar-ocm-image.current").removeClass("hidden"))})}}function Qa(e){var t=e.split(" ").filter(function(e){return!(!/[0-9]+$/.test(e)||-1===e.indexOf("menu-item"))});return 1!==t.length?"not-found":t.join("")}function Za(){(W&&r.hasClass("material")&&o.hasClass("slide-out-from-right")||t.nectarOptions&&"1"===t.nectarOptions.simplify_ocm_mobile&&be.usingMobileBrowser&&o.hasClass("slide-out-from-right")&&e("body.material").length>0)&&(e("body").attr("data-slide-out-widget-area-style","slide-out-from-right-hover"),o.removeClass("slide-out-from-right"),o.addClass("slide-out-from-right-hover").addClass("ios-ocm-style"),W&&e("body").on("click","#ajax-content-wrap.ios-ocm-style-open",function(){e(".slide-out-widget-area-toggle a").trigger("click")}),e("#slide-out-widget-area .inner > .widget").wrapAll('<div class="bottom-meta-wrap"></div>')),e("#slide-out-widget-area.slide-out-from-right-hover").length>0?function(){var a=!0;if(0==e("#ajax-content-wrap > .slide-out-widget-area-toggle").length){var n=e('.slide-out-widget-area-toggle[data-custom-color="true"]').length>0?"#slide-out-widget-area > div":"#slide-out-widget-area";0===e(".ios-ocm-style").length&&e('<div class="slide-out-widget-area-toggle slide-out-hover-icon-effect" data-icon-animation="simple-transform"><div> <a href="#slide-out-widget-area" role="button" class="closed"> <span> <span class="screen-reader-text">'+nectar_front_i18n.menu+'</span> <i class="lines-button x2" role="none"> <i class="lines"></i> </i> </span> </a> </div> </div>').insertAfter(n),(e('#header-outer[data-has-menu="true"]').length>0||e('body[data-header-search="true"]').length>0||e(".slide-out-widget-area-toggle a.using-label").length>0||e('.slide-out-widget-area-toggle[data-custom-color="true"]').length>0)&&e(".slide-out-widget-area-toggle").addClass("small")}if(be.usingMobileBrowser||be.usingIOS||be.usingTouchDevice||0!=e(".ios-ocm-style").length){function i(){return a&&(ja(),a=!1,setTimeout(function(){a=!0},350)),!1}r.on("click touchend",".slide-out-widget-area-toggle:not(.std-menu) a",i),t.nectarOcmOpen&&setTimeout(()=>{i()},40),r.on("click","#slide-out-widget-area-bg",Va),r.on("click",".ios-ocm-style .slide_out_area_close",function(e){Va(),e.preventDefault()})}else r.on("mouseenter","#header-outer .slide-out-widget-area-toggle:not(.std-menu) a",ja),o.on("mouseenter",function(){e(this).addClass("mouse-accessed")});s.on("smartresize",Wa)}():(Da(),0!=e("#header-outer #mobile-menu").length&&(e("#header-outer #mobile-menu li.megamenu").removeClass("megamenu"),e("#header-outer #mobile-menu ul li a").each(function(){e(this).hasClass("nectar-widget-link")||0!=e(this).find(".nectar-ext-menu-item").length||e(this).wrapInner("<span></span>")}),e("#header-outer #mobile-menu ul li").each(function(){(e(this).find("> ul").length>0||e(this).find("> .nectar-global-section-megamenu").length>0)&&e(this).find("> a").append('<span class="sf-sub-indicator"><i class="fa fa-angle-down"></i></span>')}),e("#header-outer #mobile-menu").on("click",".sf-sub-indicator",function(){var t=e(this).parent().parent();return t.toggleClass("current-open-item"),t.hasClass("current-open-item")?(t.find("> ul, > .nectar-global-section-megamenu").show(),setTimeout(function(){t.addClass("visible")},30)):(t.find("ul, .nectar-global-section-megamenu").hide(),t.find("li").removeClass("visible").removeClass("current-open-item"),t.removeClass("visible")),!1}),s.on("smartresize",function(){(be.winW>1e3&&e(".slide-out-widget-area-toggle.mobile-icon a.open").length>0||be.winW>1e3&&e(".nectar-ocm-trigger-open.simple-mobile-menu a.open").length>0)&&(e(".slide-out-widget-area-toggle.mobile-icon a, .nectar-ocm-trigger-open.simple-mobile-menu a").addClass("non-human-allowed"),e(".slide-out-widget-area-toggle.mobile-icon a.open, .nectar-ocm-trigger-open.simple-mobile-menu a.open").trigger("click"),setTimeout(function(){e(".slide-out-widget-area-toggle.mobile-icon a, .nectar-ocm-trigger-open.simple-mobile-menu a").removeClass("non-human-allowed")},100))}))),e("#slide-out-widget-area").hasClass("fullscreen-inline-images")&&0==e(".off-canvas-menu-container .menu > li > a span.wrap").length&&e(".off-canvas-menu-container .menu > li a").wrapInner('<span class="wrap"></span>'),0==e("#slide-out-widget-area.fullscreen-split").length&&0==e('body.material[data-slide-out-widget-area-style*="slide-out-from-right"]').length&&0==e('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length?function(){e("#slide-out-widget-area .off-canvas-menu-container .menu").wrap('<div class="menu-wrap menuwrapper" />'),e("#slide-out-widget-area .off-canvas-menu-container .menu").addClass("menuopen");var t=e("#slide-out-widget-area.fullscreen-alt").length>0||e("#slide-out-widget-area.fullscreen-inline-images").length>0?"4":"5";e("#slide-out-widget-area .off-canvas-menu-container .menu-wrap").dlmenu({animationClasses:{classin:"dl-animate-in-"+t,classout:"dl-animate-out-"+t}})}():e('body.using-mobile-browser[data-slide-out-widget-area-style="slide-out-from-right-hover"]').length>0&&e('body #slide-out-widget-area .inner .off-canvas-menu-container li a[href*="#"]').on("click",function(){"#"!=e(this).attr("href")&&Ga(e(this).parent())}),e("#nectar_fullscreen_rows").length>0&&(e('body[data-slide-out-widget-area-style*="fullscreen"]').length>0||e('body[data-slide-out-widget-area-style="slide-out-from-right"]:not(.material)').length>0)&&e("body #slide-out-widget-area .inner .off-canvas-menu-container li a[href]").on("click",function(){var t=e(this).is('[href*="#"]')?e(this).attr("href"):"";"#"!=t&&e('div[data-fullscreen-anchor-id="'+t.substr(t.indexOf("#")+1)+'"]').length>0&&(setTimeout(function(){e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed").trigger("click")},100),setTimeout(function(){e("#slide-out-widget-area .slide_out_area_close").removeClass("non-human-allowed")},150))}),r.on("mouseover","#slide-out-widget-area .off-canvas-menu-container .menuwrapper > .sub-menu li > a",function(){var t=e(this).text();e(".off-canvas-menu-container .menuwrapper .menu li > a").removeClass("hovered"),e(".off-canvas-menu-container .menuwrapper .menu li > a:contains("+t+")").addClass("hovered")}),r.on("mouseover",".off-canvas-menu-container .menuwrapper .menu li > a",function(){e(".off-canvas-menu-container .menuwrapper .menu li > a").removeClass("hovered")})}function Ga(a){e("#slide-out-widget-area.open").length>0&&((t.location.href.split("#")[0]==a.find("> a").attr("href").split("#")[0]||a.find('a[href^="#"]').length>0)&&(a.parents(".slide-out-from-right-hover").length>0?e(".slide-out-widget-area-toggle.slide-out-hover-icon-effect a").trigger("click"):(e(".slide-out-widget-area-toggle a").addClass("non-human-allowed").trigger("click"),setTimeout(function(){e(".slide-out-widget-area-toggle a").removeClass("non-human-allowed")},100))))}pt.prototype.setup=function(){var a=this;this.$el.find(".dynamic-words > span").each(function(t){a.words[t]=e(this)}),this.viewportTracking(),this.$el.hasClass("element_stagger_words")&&!this.$el.hasClass("delay-js-loaded")?(this.staggerWaypoint(),e(t).on("nectar-waypoints-reinit nectar-tab-changed",this.staggerWaypoint.bind(this))):(clearInterval(this.interval),this.interval=setInterval(this.sequence.bind(this),this.duration)),be.usingMobileBrowser?t.addEventListener("orientationchange",this.calcWidth.bind(this)):e(t).on("resize",this.calcWidth.bind(this))},pt.prototype.viewportTracking=function(){var e=this;if("IntersectionObserver"in t){this.observer=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting?e.state.visible=!0:e.state.visible=!1})},{rootMargin:"0px",threshold:0}),this.observer.observe(this.$el[0])}else this.state.visible=!0},pt.prototype.calcWidth=function(){var e=this,t=this.$el.find(".dynamic-words").width();this.$el.find(".dynamic-words").css({width:""});var a=this.words[this.state.activeIndex].find("span").width();this.$el.find(".dynamic-words").css({width:t}),setTimeout(function(){e.$el.find(".dynamic-words").css({width:a})},30)},pt.prototype.sequence=function(){if(this.$el.find(".dynamic-words > span").length<2||0==this.state.visible)return!0;var e,t;this.state.activeIndex=(e=this.words.length,(t=this.state.activeIndex+1)>=0?t%e:(t%e+e)%e),this.calcWidth(),this.$el.find(".dynamic-words > span").removeClass("active"),this.words[this.state.activeIndex].addClass("active")},pt.prototype.staggerWaypoint=function(){var t=this;if(1==ue&&0==this.$el.parents(".active").length)return!0;var a=e(this).hasClass("animated-in")?" animated":"";this.$el.find(".beginning-text, .ending-text").each(function(){var t=e(this).text();t=(t=t.trim()).split(" "),e(this)[0].innerHTML="";for(var n=0;n<t.length;n++)e(this)[0].innerHTML+='<span class="text-wrap"><span class="inner'+a+'">'+t[n]+"</span></span> "}),this.$el.hasClass("animated-in")&&this.$el.find(".beginning-text .inner, .ending-text .inner").css({transform:"translateY(0)"}),this.$el.addClass("markup-generated");var n=1==ue?"500%":"bottom-in-view",i=this.$el,s=i.is("[data-delay]")?parseInt(i.attr("data-delay")):0,r=new Waypoint({element:i[0],handler:function(){if(i.parents(".wpb_tab").length>0&&"hidden"==i.parents(".wpb_tab").css("visibility")||i.hasClass("animated-in"))r.destroy();else{if(!S||e('body[data-responsive="0"]').length>0)setTimeout(function(){var t=0;t=500/i.find(".text-wrap").length,t=Math.min(Math.max(t,15),50),parseInt(z)<1100?z:"1100";var a=0;i.find(".text-wrap").each(function(){var n=e(this);if(e(this).parents(".dynamic-words").length>0&&!e(this).hasClass("active"))return n.find("> span").css({transform:"translate3d(0,0,0)"}),!0;setTimeout(function(){n.find("> span").css({transform:"translate3d(0,0,0)"})},a*t),a++}),i.addClass("animated-in")},s);1!=t.state.sequenceStarted&&(clearInterval(t.interval),t.interval=setInterval(t.sequence.bind(t),t.duration)),t.state.sequenceStarted=!0,r.destroy()}},offset:n})},vt.prototype.events=function(){var a=this;"single_link"==this.linkFunc&&(e(t).on("resize",this.setVertCenter.bind(this)),this.setVertCenter(),this.$el.find(".wpb_tabs_nav li").on("click",function(t){if(be.winW<1e3){var n=a.$el.find(".wpb_tabs_nav");void 0!==t.originalEvent&&(a.$el.find(".scrolling-tab-nav .scrolling-tab-nav-current-item").toggleClass("open"),n.toggle(),Lt()),a.$el.find(".scrolling-tab-nav li").removeClass("active"),e(this).addClass("active"),a.updateActiveTitle()}}))},vt.prototype.setVertCenter=function(){var e=(be.winH-this.$el.find(".scrolling-tab-nav").height())/2;a.documentElement.style.setProperty("--nectar-sticky-tabs-vert-y",e+"px")},vt.prototype.updateActiveTitle=function(){var e=this.$el.find(".scrolling-tab-nav .scrolling-tab-nav-current-item"),t=this.$el.find(".scrolling-tab-nav .menu-item.active .tab-nav-heading").clone(),a=this.$el.find(".scrolling-tab-nav .menu-item.active").index();this.$el.find(".scrolling-tab-content > div").removeClass("active"),this.$el.find(".scrolling-tab-content > div:eq("+a+")").addClass("active"),this.$el.find(".scrolling-tab-nav .scrolling-tab-nav-total .inner").css("transform","translateY(-"+100*a+"%)"),e.html(t)},vt.prototype.domSetup=function(){var t=this,a="";this.$el.find(".wpb_tab").each(function(n){if(e(this).is("[data-tab-icon]")&&e(this).attr("data-tab-icon").length>0&&0===e(this).find(".im-icon-wrap.tab-icon").length&&(t.$el.addClass("using-icons"),a=t.$el.find(".wpb_tabs_nav li:nth-child("+(n+1)+") a").attr("href"),t.$el.find(".wpb_tabs_nav li:nth-child("+(n+1)+")").addClass("has-icon").prepend('<a class="skip-hash" role="button" href="'+a+'"><i class="'+e(this).attr("data-tab-icon")+'"></i></a>')),e(this).find(".im-icon-wrap.tab-icon").length>0){a=t.$el.find(".wpb_tabs_nav li:nth-child("+(n+1)+") a").attr("href");var i=e(this).find(".im-icon-wrap.tab-icon").detach();t.$el.find(".wpb_tabs_nav li:nth-child("+(n+1)+")").addClass("has-icon").prepend('<a class="skip-hash svg-icon-link" role="button" href="'+a+'"></a>'),t.$el.find(".wpb_tabs_nav li:nth-child("+(n+1)+") .svg-icon-link").append(i)}}),this.$el.find(".scrolling-tab-nav .menu-item:first").addClass("active"),this.lineAnimation(),"single_link"==t.linkFunc&&this.updateActiveTitle(),1==this.$el.find(".scrolling-tab-nav .menu-item").length&&this.$el.find(".scrolling-tab-nav").addClass("single-tab");var n=this.$el.find(".scrolling-tab-content");this.$el.find(".scrolling-tab-nav .menu-item").each(function(a){a+=1;var i=n.find("> div:nth-child("+a+")");if("default"==t.linkFunc){var s=e(this).html();if(i.prepend('<div class="scrolling-tab-mobile-title"><div class="inner">'+Ze(s)+"</div></div>"),i.find(".scrolling-tab-mobile-title a").contents().unwrap(),i){var r=e(this).find("a").attr("href");r=r.substr(1),i.find("> .scrolling-tab-mobile-title").attr("id",r),i.removeAttr("id")}}}),this.$el.addClass("initalized")},vt.prototype.highlightObserve=function(){var n=this;if(!(be.usingMobileBrowser&&be.winW<1e3)&&"IntersectionObserver"in t){var i=d.is('[data-remove-fixed="1"]')?"100px 0px 0px 0px":"5px 0px 0px 0px",s={root:Xe()?null:a,rootMargin:i,threshold:1};this.observer=new IntersectionObserver(function(t){t.forEach(function(t){var a="#"+e(t.target).attr("id"),i=n.$el.find('.scrolling-tab-nav a[href="'+a+'"]');t.isIntersecting&&t.intersectionRatio>=1?i.parents(".menu-item").addClass("visible"):i.parents(".menu-item").removeClass("visible");var s=n.$el.find(".scrolling-tab-nav .menu-item.visible:first");s.length>0&&(n.$el.find(".scrolling-tab-nav .menu-item").removeClass("active"),s.addClass("active"),n.lineAnimation())})},s),this.$tabContent.find("> div > .scrolling-tab-mobile-title[id]").each(function(){n.observer.observe(e(this)[0])}),this.tabs=Array.from(this.$tabContent.find("> div")),this.scrollDir="up",this.prevScroll=0,this.prevIndex=0,this.observer=new IntersectionObserver(function(t){t.forEach(function(t){if(!(be.winW<1e3)){be.scrollTop>n.prevScroll?n.scrollDir="down":n.scrollDir="up";var a="down"===n.scrollDir?n.getTargetSection(t):t.target;if(n.shouldUpdate(t)){var i=e(a).index();i<n.prevIndex?n.$el.addClass("scrolling-up"):n.$el.removeClass("scrolling-up"),n.$el.find(".scrolling-tab-nav .ui-tabs-nav > .menu-item").removeClass("prev-active"),n.$el.find(".scrolling-tab-nav .ui-tabs-nav > .menu-item.active").addClass("prev-active"),n.$el.find(".scrolling-tab-nav .ui-tabs-nav > .menu-item").removeClass("active"),n.$el.find(".scrolling-tab-nav .ui-tabs-nav > .menu-item:eq("+i+")").addClass("active"),n.updateActiveTitle(),n.prevIndex=i}n.prevScroll=be.scrollTop}})},{root:Xe()?null:a,rootMargin:"-40% 0% -40% 0%",threshold:0}),this.$tabContent.find("> div").each(function(){n.observer.observe(e(this)[0])})}},vt.prototype.getTargetSection=function(e){var t=this.tabs.findIndex(function(t){return t==e.target});return t>=this.tabs.length-1?e.target:this.tabs[t+1]},vt.prototype.shouldUpdate=function(e){return"down"===this.scrollDir&&!e.isIntersecting&&0!=this.prevScroll||!("up"!==this.scrollDir||!e.isIntersecting||0==this.prevScroll)},vt.prototype.lineAnimation=function(){var e=this.$el.find(".scrolling-tab-nav .active");if(0!=e.length){var t=parseInt(e.position().top),a=parseInt(e.height());this.$lineEl.css({"max-height":a+"px",transform:"translate3d(0px, "+t+"px, 0px)"})}},_t.prototype.init=function(){this.resizeEvent(),s.on("resize",this.resizeEvent.bind(this))},_t.prototype.lazyInit=function(){var e=this;if(!be.usingFrontEndEditor&&"IntersectionObserver"in t){e=this;var n=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e.init(),n.unobserve(t.target))})},{root:Xe()?null:a,rootMargin:"400px 0px 400px 0px",threshold:0});n.observe(this.$el[0])}else this.init()},_t.prototype.calcTopOffset=function(){this.topOffset=(be.winH-this.$innerEl.height())/2},_t.prototype.resizeEvent=function(){be.winW>1e3?(this.calcTopOffset(),this.$innerEl.css({top:this.topOffset})):this.$innerEl.css({top:""})},Bt.prototype.setType=function(){this.$element.is("[data-scroll-animation-movement]")&&("transform_x"==this.$element.attr("data-scroll-animation-movement")&&(this.type="translateX"))},Bt.prototype.calculatePos=function(){1!=ye.materialOffCanvasOpen&&1!=ye.ocmAnimating&&(this.offsetTop=this.$element.offset().top,this.height=this.$element.outerHeight(),this.vertCenter=this.storedWinH/2-this.height/2),be.usingMobileBrowser||(this.storedWinH=be.winH)},Bt.prototype.orientationChange=function(){be.usingMobileBrowser&&(this.offsetTop=this.$element.offset().top,this.height=this.$element.outerHeight(),this.storedWinH=be.winH)},Bt.prototype.trackView=function(){var e=this;if(this.$element.parents(".top-level").length>0&&(this.topLevel=!0,this.offsetTop>be.winH&&(this.topLevel=!1)),this.$element.is(".nectar_hook_global_section_parallax_footer")&&(this.bottomLevel=!0),"IntersectionObserver"in t){var n={root:Xe()?null:a,rootMargin:"250px"};new IntersectionObserver(function(t){t.forEach(function(t){var a=t.isIntersecting;e.inView=!!a})},n).observe(this.$element[0])}},Bt.prototype.animate=function(){if(1!=ye.materialOffCanvasOpen){if(1==this.lerp?this.lastY=be.scrollTop:this.lastY=parseInt(De(this.lastY,be.scrollTop,this.lerp)),1==ye.animatedScrolling&&(this.inView=!0),this.inView){var e=this.intensity;be.winW<1025&&(e/=1.2),be.winW<690&&(e/=1.35),!0===this.topLevel&&be.winW>1e3||!0===this.topLevel&&this.persistOnMobile?this.$elementInner[0].style.transform=this.type+"("+-this.lastY*e+"px) translateZ(0)":!0===this.bottomLevel&&be.winW>1e3||!0===this.bottomLevel&&this.persistOnMobile?this.$elementInner[0].style.transform=this.type+"("+-(this.lastY-(this.offsetTop+this.height)+be.winH)*e+"px) translateZ(0)":be.winW>1e3||this.persistOnMobile?this.$elementInner[0].style.transform=this.type+"("+-(this.lastY-this.offsetTop+this.vertCenter)*e+"px) translateZ(0)":this.$elementInner[0].style.transform=this.type+"(0px) translateZ(0)"}t.requestAnimationFrame(this.animate.bind(this))}else t.requestAnimationFrame(this.animate.bind(this))},Ft.prototype.setup=function(){var a=this;(this.$el.parents("#page-header-bg").length>0||this.$el.parents(".featured-media-under-header").length>0)&&(this.type="page-header"),(this.$el.parents(".top-level").length>0&&this.$el.parents(".parallax_slider_outer").length>0||this.$el.parents(".top-level").length>0&&this.$el.hasClass("nectar-simple-slider")||this.$el.parents(".top-level").length>0&&this.$el.hasClass("nectar-recent-posts-single_featured")||this.$el.parents(".top-level").length>0&&this.$el.hasClass("column-image-bg-wrap")&&this.$el.parent().parent().is(".vc_col-sm-12:not(.child_column)")||this.$el.is(".wpb_row.top-level")||"page-header"==this.type||0==e(".wpb_row").length&&!this.$el.is(".blog_next_prev_buttons")&&!this.$el.is("#portfolio-nav"))&&(this.firstSection=!0),(0==e(".wpb_row").length&&this.$el.parents(".parallax_slider_outer").length>0&&this.$el.is('[data-full-width="true"]')||e("#portfolio-extra").length>0&&this.$el.parents(".parallax_slider_outer").length>0&&this.$el.parents(".wpb_row").length>0&&"0"==this.$el.parents(".wpb_row").index())&&(this.firstSection=!0),be.usingFrontEndEditor&&"page-header"!=this.type&&(this.firstSection=!1),this.$parallaxEl.addClass("translate"),this.nestedParallax=this.$parallaxEl.parents('[data-scroll-animation="true"]').length>0,this.nestedParallax||setInterval(function(){1!=ye.materialOffCanvasOpen&&1!=ye.ocmAnimating&&(a.offsetTop=a.$el.offset().top,a.height=a.$el.outerHeight(!0))},800),e(t).on("nectar-column-animation-start",this.checkColumnAnimation.bind(this)),e(t).on("resize load",this.resize.bind(this)),t.addEventListener("orientationchange",function(){this.setTimeout(function(){a.orientationChange()},110)}),this.offsetTop=this.$el.offset().top,this.height=this.$el.outerHeight(!0)},Ft.prototype.checkColumnAnimation=function(){this.$parallaxEl.parents(".col.has-animation.triggered-animation:not(.animated-in)").length>0&&this.realtimeOffsetUpdate()},Ft.prototype.realtimeOffsetUpdate=function(){var e=this,t=setInterval(function(){1!=ye.materialOffCanvasOpen&&(e.offsetTop=e.$el.offset().top,e.height=e.$el.outerHeight(!0))},30);setTimeout(function(){clearInterval(t)},2e3)},Ft.prototype.resize=function(){be.usingMobileBrowser?this.nestedParallax||(this.offsetTop=this.$el.offset().top,this.height=this.$el.outerHeight(!0)):(this.storedWinH=be.winH,this.offsetTop=this.$el.offset().top,this.height=this.$el.outerHeight(!0))},Ft.prototype.orientationChange=function(){be.usingMobileBrowser&&(this.offsetTop=this.$el.offset().top,this.height=this.$el.outerHeight(!0),this.storedWinH=be.winH)},Ft.prototype.update=function(){if(this.offsetTop+150+this.height<be.scrollTop||this.offsetTop-150>be.scrollTop+this.storedWinH||1==ye.materialOffCanvasOpen){for(var e=0;e<this.$parallaxEl.length;e++)this.$parallaxEl[e].style.willChange="auto";requestAnimationFrame(this.update.bind(this))}else{for(e=0;e<this.$parallaxEl.length;e++)!0===this.firstSection?this.$parallaxEl[e].style.transform="translate3d(0, "+be.scrollTop*this.speed+"px, 0)":this.$parallaxEl[e].style.transform="translate3d(0, "+(this.storedWinH+be.scrollTop-this.offsetTop)*this.speed+"px, 0) scale(1.005)",this.$parallaxEl[e].style.willChange="transform";requestAnimationFrame(this.update.bind(this))}},e(t).on("salient-parallax-el-recalculate",Lt),qt.prototype.setupProps=function(){var e=JSON.parse(this.$el[0].getAttribute("data-nectar-animate-settings"));"function"==typeof Object.assign&&(Object.assign(this.animations,e.animations),Object.assign(this.offsets,e.offsets),Object.assign(this,e.config)),(this.$el.is(".top-level")||this.$el.parents(".top-level").length>0||be.usingFrontEndEditor&&1===this.$el.parents(".vc_element").last().index())&&(this.topLevel=!0),r.hasClass("single-portfolio")&&this.$el.parents("#portfolio-extra").length>0&&this.$el.parents(".first-section").length>0&&(this.topLevel=!0)},qt.prototype.lazyInit=function(){var e=this;if(!be.usingFrontEndEditor&&"IntersectionObserver"in t&&!this.$el.hasClass("skip-lazy-init")){e=this;var n=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e.init(),n.unobserve(t.target))})},{root:Xe()?null:a,rootMargin:"400px 0px 400px 0px",threshold:0});n.observe(this.$el[0])}else this.init()},qt.prototype.init=function(){this.createTimeline(),this.events(),this.update()},qt.prototype.events=function(){var a=this;e(t).on("resize load",this.resize.bind(this)),t.addEventListener("orientationchange",function(){this.setTimeout(function(){a.orientationChange()},110)}),this.resize()},qt.prototype.resize=function(){be.usingMobileBrowser||(this.storedWinH=be.winH);var e=this.$el[0].getBoundingClientRect();this.offsetTop=e.top+be.scrollTop,this.elHeight=this.$el[0].offsetHeight,this.setActiveDevice()},qt.prototype.orientationChange=function(){if(be.usingMobileBrowser){var e=this.$el[0].getBoundingClientRect();this.offsetTop=e.top+be.scrollTop,this.elHeight=this.$el[0].offsetHeight,this.storedWinH=be.winH}},qt.prototype.setActiveDevice=function(){var e=this;Object.keys(this.devices).forEach(function(t){be.winW>=e.devices[t].min&&be.winW<=e.devices[t].max&&(e.activeDevice=t,void 0!==e.timelines[t]&&e.timelines[t].reset())})},qt.prototype.createTimeline=function(){var e=this;Object.keys(this.devices).forEach(function(t){if(void 0!==e.animations[t]){e.timelines[t]=anime.timeline({autoplay:!1});var a={},n={};Object.keys(e.animations[t]).forEach(function(i){n[i]=e.animations[t][i].start,a[i]=[e.animations[t][i].start,e.animations[t][i].end]}),e.setActiveDevice();var i={targets:void 0!==e.inner_selector?e.$el[0].querySelectorAll(e.inner_selector):e.$el[0],duration:1e3,easing:"linear"};Object.assign(i,a),e.timelines[t].add(i,0)}})},qt.prototype.progressValues=function(){if(void 0!==this.timelines[this.activeDevice]){var e=be.scrollTop,t=this.storedWinH,a=parseInt(this.offsets.start)/100,n=t-a*t;"bottom"===this.offsets.origin&&(n-=this.elHeight);var i=(e-(this.offsetTop-n))/t;"0"===this.offsets.start&&"100"===this.offsets.end&&(i=(e-(this.offsetTop-n))/(t+this.elHeight)),this.topLevel&&(n=0,i=e/t);var s=Math.max(Math.min(i,1),0),r=parseInt(this.offsets.end)/100,o=2+-1*r,l=r-a-.01;o>1&&(o*=1/Math.min(2*l,.9)),s>0?(this.needsReset=!0,this.timelines[this.activeDevice].seek(this.timelines[this.activeDevice].duration*s*o)):this.needsReset&&(this.timelines[this.activeDevice].reset(),this.needsReset=!1)}},qt.prototype.update=function(){1!=ye.materialOffCanvasOpen&&1!=ye.ocmAnimating&&this.progressValues(),requestAnimationFrame(this.update.bind(this))},e(t).on("salient-parallax-bg-recalculate",Rt),Ut.prototype.calculatePos=function(){1!=ye.materialOffCanvasOpen&&1!=ye.ocmAnimating&&(this.offsetTop=this.$element.offset().top,this.height=this.$element.outerHeight(),this.vertCenter=be.winH/2-this.height/2)},Ut.prototype.trackView=function(){var e=this;if(this.$element.parents(".top-level").length>0&&(this.topLevel=!0),"IntersectionObserver"in t){var n={root:Xe()?null:a,rootMargin:"250px"};new IntersectionObserver(function(t){t.forEach(function(t){var a=t.isIntersecting;e.inView=!!a})},n).observe(this.$element[0])}},Ut.prototype.animate=function(){if(1!=ye.materialOffCanvasOpen){if(1==ye.animatedScrolling&&(this.inView=!0),this.lastY=De(this.lastY,be.scrollTop,.2),this.inView){var a=this;this.$element.find(".bg-layer").each(function(t){var n=e(this).data("scale");a.layer1Parallax&&(t=t/1.5+1),!0===a.topLevel&&be.winW>1e3?e(this)[0].style.transform="translateY("+-a.lastY*a.intensity*t+"px) translateZ(0) scale("+n+")":e(this)[0].style.transform="translateY("+-(a.lastY-a.offsetTop+a.vertCenter)*a.intensity*t+"px) translateZ(0) scale("+n+")"})}t.requestAnimationFrame(this.animate.bind(this))}else t.requestAnimationFrame(this.animate.bind(this))},Kt.prototype.mergeNeighbors=function(){var e=this.$el.closest(".wpb_row");e.length>0&&e.find('.nectar-split-heading[data-text-effect="scroll-opacity-reveal"]').length>0&&(this.$el=e,this.mergedGroup=!0,e.addClass("nectar-split-heading-merged"))},Kt.prototype.trackInView=function(){var e=this;new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting?(e.inView=!0,e.elHeight=e.$el.outerHeight(),e.offsetTop=e.$el.offset().top):e.inView=!1})},{root:Xe()?null:a,rootMargin:"100px 0px 100px 0px",threshold:0}).observe(this.$el[0]);var t=this.$el[0].getBoundingClientRect();t.top+be.scrollTop+t.height<be.winH&&(this.topLevel=!0)},Kt.prototype.events=function(){be.usingMobileBrowser?t.addEventListener("orientationchange",this.calc.bind(this)):t.addEventListener("resize",this.calc.bind(this)),this.calc()},Kt.prototype.calc=function(){this.offsetTop=this.$el.offset().top,this.elHeight=this.$el.outerHeight(),this.wordCount=this.mergedGroup?this.$el.find(".nectar-split-heading .inner").length:this.$el.find(".inner").length,this.elHeight/be.winH<.25&&this.wordCount<40?this.speed=2.5:(this.speed=Math.max(2-Math.min(this.elHeight/be.winH,1.45),.66),(this.speed<1.2||this.wordCount<30&&this.speed<1.5)&&(this.topCushion=.25*be.winH,this.wordDelay=250));var e=this.$el.find('.nectar-split-heading[data-text-effect="scroll-opacity-reveal"]').attr("data-animation-offset");e&&parseInt(e)>0&&parseInt(e)<100&&(e=parseInt(e),this.topCushion=.05*be.winH+.05*be.winH*(1-e/100)*6)},Kt.prototype.createTimeline=function(){var e=this;this.timeline=anime.timeline({autoplay:!1});var t={targets:this.mergedGroup?this.$el[0].querySelectorAll(".nectar-split-heading .inner"):this.$el[0].querySelectorAll(".inner"),duration:this.duration,easing:"linear",opacity:[.2,1],delay:function(t,a){return a*e.wordDelay}};this.timeline.add(t,0)},Kt.prototype.raf=function(){var e;this.inView&&1!=ye.materialOffCanvasOpen?(e=this.topLevel?be.scrollTop/be.winH*1.5:1+(be.scrollTop-(this.offsetTop+this.topCushion))/be.winH,this.timeline.seek(e*this.timeline.duration*this.speed),requestAnimationFrame(this.raf.bind(this))):requestAnimationFrame(this.raf.bind(this))},e(t).on("salient-lazyloading-image-reinit",ha),e(t).on("salient-lazyloading-image-reinit",ua),ga.prototype.initialMarkup=function(){if(0==this.el.find(".nectar-post-grid-filters a.active").length&&this.el.find(".nectar-post-grid-filters a:first-child").addClass("active"),"load-more"===this.settingsData.pagination&&0==this.el.find(".load-more-wrap").length){if(this.el.find(".nectar-post-grid-filters .active").length>0&&(this.activeFilter=this.el.find(".nectar-post-grid-filters .active").index()+1),"yes"===this.sortable||0!==this.el.find(".active.all-filter").length)this.activeCatTotal=parseInt(this.el.find(".nectar-post-grid-filters a:nth-child("+this.activeFilter+")").attr("data-total-count"));else{var t=0;this.el.find(".nectar-post-grid-filters a").each(function(){t+=parseInt(e(this).attr("data-total-count"))}),this.activeCatTotal=t}this.el.find(".nectar-post-grid-item").length>=this.activeCatTotal?(this.el.addClass("all-loaded"),this.el.append('<div class="load-more-wrap inactive"><a href="#" role="button" class="load-more">'+this.el.attr("data-load-more-text")+"</a></div>")):(this.el.removeClass("all-loaded"),this.el.append('<div class="load-more-wrap"><a href="#" role="button" class="load-more">'+this.el.attr("data-load-more-text")+"</a></div>"))}},ga.prototype.lightboxGroups=function(){var t=et(),a=this.el.find(".nectar-post-grid-link.pretty_photo").length>0;e('body[data-ls="magnific"]').length>0?this.el.find(".nectar-post-grid-link.pretty_photo").addClass("magnific").addClass("gallery").removeClass("pretty_photo"):e('body[data-ls="fancybox"]').length>0&&(this.el.find(".nectar-post-grid-link.pretty_photo").attr("data-fancybox","group_"+t).removeClass("pretty_photo"),this.el.find(".nectar-post-grid-link[data-fancybox]").attr("data-fancybox","group_"+t)),a&&ht()},ga.prototype.externalProjectLinks=function(){this.el.hasClass("target-blank-external-urls")&&(this.el.find(".nectar-post-grid-item a[href*='http://']:not([href*='"+t.location.hostname+"'])").attr("target","_blank").attr("rel","nofollow"),this.el.find(".nectar-post-grid-item a[href*='https://']:not([href*='"+t.location.hostname+"'])").attr("target","_blank").attr("rel","nofollow")),this.el.hasClass("target-blank-all-urls")&&(this.el.find(".nectar-post-grid-item a[href*='http://']").attr("target","_blank"),this.el.find(".nectar-post-grid-item a[href*='https://']").attr("target","_blank"))},ga.prototype.clickEvents=function(){this.el.find(".nectar-post-grid-filters h4").on("click",function(){e(this).parent().find("div").toggleClass("visible"),e(this).toggleClass("visible")}),"content_under_image"==this.gridStyle&&this.el.find(".nectar-post-grid-link.pretty_photo").length>0&&this.el.on("click",".bg-wrap-link",function(){if(e(this).parents(".nectar-post-grid-item").find(".nectar-post-grid-link").length>0)return e(this).parents(".nectar-post-grid-item").find(".nectar-post-grid-link")[0].click(),!1});var a=this.settingsData,n=this.queryData,i=this;this.el.find(".nectar-post-grid-filters a, .load-more-wrap .load-more").on("click",function(r){var o=e(this);if(o.parents(".nectar-post-grid-wrap.loading").length>0||e(this).hasClass("active")||e(this).hasClass("inactive"))return!1;e(this).parents(".nectar-post-grid-filters").length>0?(o.parent().find("a").removeClass("active"),o.addClass("active"),i.currentPage=0,i.activeFilter=o.index()+1):i.currentPage++;var l=o.parents(".nectar-post-grid-wrap").find(".nectar-post-grid"),d=a.pagination,c=o.hasClass("load-more")&&"load-more"===d?"load-more":"filter",h="",u="";if("yes"===i.sortable)h=o.parents(".nectar-post-grid-wrap").find(".nectar-post-grid-filters a.active").attr("data-filter"),u=o.parents(".nectar-post-grid-wrap").find(".nectar-post-grid-filters a.active").attr("data-filter");else{var p=o.parents(".nectar-post-grid-wrap").find(".nectar-post-grid-filters a").length>1?":not(.all-filter)":"";o.parents(".nectar-post-grid-wrap").find(".nectar-post-grid-filters a"+p).each(function(){h+=e(this).attr("data-filter")+", ",u+=e(this).attr("data-filter")+", "}),h=h.substring(0,h.length-2),u=u.substring(0,u.length-2)}var f={action:"nectar_get_post_grid_segment",post_type:n.post_type,cpt_name:n.cpt_name,custom_query_tax:u,category:h,posts_per_page:n.posts_per_page,current_page:i.currentPage,offset:n.offset,order:n.order,orderby:n.orderby,load_action:c,ignore_sticky_posts:n.ignore_sticky_posts,settings:{pagination:d,animation:a.animation,post_type:a.post_type,image_size:a.image_size,parallax_scrolling:a.parallax_scrolling,aspect_ratio_image_size:a.aspect_ratio_image_size,card_bg_color:a.card_bg_color,category_position:a.category_position,category_display:a.category_display,display_categories:a.display_categories,display_estimated_reading_time:a.display_estimated_reading_time,display_excerpt:a.display_excerpt,excerpt_length:a.excerpt_length,display_date:a.display_date,display_author:a.display_author,author_functionality:a.author_functionality,author_position:a.author_position,color_overlay:a.color_overlay,color_overlay_opacity:a.color_overlay_opacity,color_overlay_hover_opacity:a.color_overlay_hover_opacity,grid_style:a.grid_style,hover_effect:a.hover_effect,heading_tag:a.heading_tag,heading_tag_render:a.heading_tag_render,post_title_overlay:a.post_title_overlay,category_style:a.category_style,enable_gallery_lightbox:a.enable_gallery_lightbox,overlay_secondary_project_image:a.overlay_secondary_project_image,vertical_list_hover_effect:a.vertical_list_hover_effect,vertical_list_read_more:a.vertical_list_read_more,read_more_button:a.read_more_button,custom_fields:a.custom_fields,custom_fields_location:a.custom_fields_location,display_type:a.display_type,text_content_layout:a.text_content_layout}};"rand"==n.orderby&&"load-more"==c&&(f.posts_shown="",l.find(".nectar-post-grid-item[data-post-id]").each(function(){f.posts_shown+=e(this).attr("data-post-id")+", "}),f.posts_shown=f.posts_shown.substring(0,f.posts_shown.length-2)),o.parents(".nectar-post-grid-wrap").addClass("loading"),e.post(t.nectarLove.ajaxurl,f,function(n){if("load-more"===c)l.append(n);else if(l.html(n),l.parent().hasClass("nectar-post-grid-wrap--fl-sidebar_left")||l.parent().hasClass("nectar-post-grid-wrap--fl-sidebar_right")){var r=l.parent().offset().top,h=0;0==e(".page-template-template-no-header-footer").length&&0==e(".page-template-template-no-header").length&&0==e('body[data-header-format="left-header"]').length&&(h=e("#header-outer").height()),be.winW>999&&be.scrollTop>r+200&&t.scrollTo(0,r-h)}kt(),l.is("[data-animation]")&&!l.is('[data-animation="none"]')&&(o.parents(".nectar-post-grid-wrap").removeClass("finished-animating"),l.find(".nectar-post-grid-item:not(.animated-in)").each(function(t){e(this).find(".nectar-split-heading").length>0&&Pn(e(this).find(".nectar-split-heading"));var n=e(this);setTimeout(function(){n.addClass("animated-in"),"zoom-out-reveal"===a.animation&&Ln(n,function(){qn(n)})},90*t)}),setTimeout(function(){o.parents(".nectar-post-grid-wrap").addClass("finished-animating")},950)),"load-more"===d&&(i.activeCatTotal=parseInt(i.el.find(".nectar-post-grid-filters a:nth-child("+i.activeFilter+")").attr("data-total-count")),l.find(".nectar-post-grid-item").length>=i.activeCatTotal||!n?(i.el.find(".load-more-wrap").addClass("inactive"),i.el.addClass("all-loaded")):(i.el.find(".load-more-wrap").removeClass("inactive"),i.el.removeClass("all-loaded"))),i.lightboxGroups(),i.externalProjectLinks(),o.parents(".nectar-post-grid-wrap").removeClass("loading"),s.trigger("resize"),e(t).trigger("nectar-post-grid-updated"),pa()}),r.preventDefault()})},ga.prototype.deepLinking=function(){void 0!==rt["grid-filter"]&&this.el.find(".nectar-post-grid-filters a").each(function(){var t=e(this).clone(),a=rt["grid-filter"];e(this);(t=(t=(t=t.text()).replace(/\s+/g,"-").toLowerCase()).replace(/&/g,"")).length>0&&"-"===t.substring(0,1)&&(t=t.substring(1)),t==(a=a.replace(/\s+/g,"-").replace(/</g,"&lt;").replace(/"/g,"&quot;").toLowerCase())&&e(this).trigger("click")})},e.DLMenu=function(t,a){this.$el=e(a),this._init(t)},e.DLMenu.defaults={animationClasses:{classin:"dl-animate-in-1",classout:"dl-animate-out-1"},onLevelClick:function(){return!1},onLinkClick:function(){return!1}},e.DLMenu.prototype={_init:function(t){this.options=e.extend(!0,{},e.DLMenu.defaults,t),this._config();this.animEndEventName="animationend.menu",this.transEndEventName="transitionend.menu",this.supportAnimations=!0,this.supportTransitions=!0,this._initEvents()},_config:function(){this.open=!1,this.$trigger=this.$el.children(".trigger"),this.$menu=this.$el.children("ul.menu"),this.$menuitems=this.$menu.find("li:not(.back) > a"),this.$el.find(".sub-menu").prepend('<li class="back"><a href="#"> '+o.attr("data-back-txt")+" </a></li>"),this.$back=this.$menu.find("li.back")},_initEvents:function(){var t=this;this.$trigger.on("click.menu",function(){return t.open?t._closeMenu():t._openMenu(),!1}),this.$menuitems.on("click.menu",function(a){var n=e(this).parent("li"),i=n.children(".sub-menu");if(e(".fullscreen-alt .off-canvas-menu-container .clip-wrap, .fullscreen-alt .off-canvas-menu-container .clip-wrap span").css("transition-duration","0s"),i.length>0){var s=i.clone().css("opacity",0).insertAfter(t.$menu),r=function(){t.$menu.off(t.animEndEventName).removeClass(t.options.animationClasses.classout).addClass("subview"),n.addClass("subviewopen").parents(".subviewopen:first").removeClass("subviewopen").addClass("subview"),s.remove(),setTimeout(function(){e(".off-canvas-menu-container .menu > li").removeClass("no-pointer-events"),e(".off-canvas-menu-container .clip-wrap, .off-canvas-menu-container .clip-wrap span").css("transition-duration",".45s")},300)};return setTimeout(function(){s.addClass(t.options.animationClasses.classin),t.$menu.addClass(t.options.animationClasses.classout),t.supportAnimations?t.$menu.on(t.animEndEventName,r):r.call(),t.options.onLevelClick(n,n.children("a:first").text())}),n.parents(".menu-wrap").css("height",n.parents(".off-canvas-menu-container").find(".menuwrapper .menu").height()).transition({height:s.height()},500,"easeInOutQuad"),setTimeout(Pa,600),!1}t.options.onLinkClick(n.find("> a"),a),Ga(n)}),this.$back.on("click.menu",function(){var a=e(this),n=a.parents(".sub-menu:first"),i=n.parent(),s=n.clone().insertAfter(t.$menu),r=function(){t.$menu.off(t.animEndEventName).removeClass(t.options.animationClasses.classin),s.remove()};return setTimeout(function(){s.addClass(t.options.animationClasses.classout),t.$menu.addClass(t.options.animationClasses.classin),t.supportAnimations?t.$menu.on(t.animEndEventName,r):r.call(),i.removeClass("subviewopen");var e=a.parents(".subview:first");e.is("li")&&e.addClass("subviewopen"),e.removeClass("subview")}),setTimeout(function(){i.parents(".menu-wrap").transition({height:i.parent().height()},500,"easeInOutQuad"),setTimeout(Pa,600)},50),!1})},closeMenu:function(){this.open&&this._closeMenu()},_closeMenu:function(){var e=this,t=function(){e.$menu.off(e.transEndEventName),e._resetMenu()};this.$menu.removeClass("menuopen"),this.$menu.addClass("menu-toggle"),this.$trigger.removeClass("active"),this.supportTransitions?this.$menu.on(this.transEndEventName,t):t.call(),this.open=!1},openMenu:function(){this.open||this._openMenu()},_openMenu:function(){var t=this;r.off("click").on("click.menu",function(){t._closeMenu()}),this.$menu.addClass("menuopen menu-toggle").on(this.transEndEventName,function(){e(this).removeClass("menu-toggle")}),this.$trigger.addClass("active"),this.open=!0},_resetMenu:function(){this.$menu.removeClass("subview"),this.$menuitems.removeClass("subview subviewopen")}};var Ua,Ja=function(e){t.console&&t.console.error(e)};function Ka(){var t=parseInt(g.outerHeight());e('body[data-aie="slide-down"] #page-header-wrap:not(.fullscreen-header):not([data-responsive="true"])').css("height",t+"px")}function en(){0!=e("#ajax-content-wrap").length&&r.hasClass("ajax-loaded")?1==e("#ajax-content-wrap").length&&e('#page-header-bg[data-parallax="1"]').css({opacity:1}):e('#page-header-bg[data-parallax="1"]').animate({opacity:1},350,"easeInCubic"),e('#page-header-bg[data-parallax="1"] .nectar-particles').append('<div class="fade-out" />')}function tn(){var a={inView:!0},n=e("#page-header-bg .span_6 .inner-wrap"),i=e("#page-header-bg #canvas");if(e('#page-header-bg[data-parallax="1"]').length>0){var r=new Image,o=parseInt(g.height()),l=e("#header-space").height(),d=e(".nectar-global-section.after-nav").length>0?e(".nectar-global-section.after-nav").height():0,c=nt(e('#page-header-bg[data-parallax="1"]').css("background-image"));c&&-1!==c.indexOf(".")?(r.onload=function(){en()},r.src=nt(e('#page-header-bg[data-parallax="1"]').css("background-image"))):en(),be.winW>1e3&&p(),t.addEventListener("scroll",function(){be.winW>1e3&&t.requestAnimationFrame(p)},!1)}var h=e('body[data-ajax-transitions="true"]').length>0&&e('#page-header-bg[data-animate-in-effect="slide-down"]').length>0?350:0;if(g.length>0){setTimeout(function(){Ka()},h),e('#page-header-bg[data-animate-in-effect="fade-in"]').addClass("loaded");var u=nt(g.css("background-image"));u&&-1!==u.indexOf(".")&&g.addClass("has-bg"),s.on("smartresize",Ka)}function p(){be.winW>=1e3&&null==navigator.userAgent.match(/iPad/i)&&1!=ye.materialOffCanvasOpen&&(1==a.inView&&(n.css({transform:"translateY("+.15*be.scrollTop+"px)",opacity:1-be.scrollTop/(.7*(d+o))}),i&&i.css({transform:"translateY("+.15*be.scrollTop*2+"px)"})),be.scrollTop/(o+l+be.adminBarHeight)>1?(a.inView=!1,e(".nectar-particles, #page-header-bg .fade-out").css("visibility","hidden").addClass("out-of-sight"),e("#page-header-bg").addClass("out-of-sight")):(a.inView=!0,e("#page-header-bg, .nectar-particles, #page-header-bg .fade-out").css("visibility","visible").removeClass("out-of-sight")))}g.length>0&&((-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")||navigator.userAgent.match(/(iPod|iPhone|iPad)/))&&(t.onunload=function(){tn(),e('#page-header-bg[data-parallax="1"] .span_6').css({opacity:1})}),0==e(".nectar-box-roll").length&&nn())}function an(){if(0==e("#page-header-bg .nectar-particles").length&&0==e('#page-header-bg[data-text-effect="none"]').length||e(".nectar-box-roll").length>0&&0==e("#page-header-bg .nectar-particles").length){var t=0==e(".nectar-box-roll").length?"#page-header-bg .span_6":".nectar-box-roll .overlaid-content .span_6";e(t).find(".wraped").each(function(t){e(this).find("span").delay(370*t).transition({rotateX:"0",opacity:1,y:0},400,"easeOutQuad")}),setTimeout(function(){e(t).find(".inner-wrap > *:not(.top-heading)").each(function(t){e(this).delay(370*t).transition({rotateX:"0",opacity:1,y:0},650,"easeOutQuad")}),e(".scroll-down-wrap, .scroll-down-wrap .section-down-arrow").removeClass("hidden")},370*e(t).find(".wraped").length)}}function nn(){g.each(function(){if("rotate_in"==e(this).attr("data-text-effect")){var t="none";if(e(this).find(".span_6 h1").length>0&&(t="h1"),"none"!=t){var a=e(this).find(".nectar-particles").length>0?".inner-wrap.shape-1":".span_6";e(this).find(a).find(t).addClass("top-heading").contents().filter(function(){return 3===this.nodeType&&void 0!==this.data&&this.data.replace(/\s+/,"")}).wrap('<span class="wraped"></span>'),e(this).find(a).find(".wraped").each(function(){var t=e(this),a=t.text().split(" "),n="";e.each(a,function(e,t){t.replace(/\s+/,"")&&(n+='<span class="wraped"><span>'+t+"</span></span> ")}),t.replaceWith(e(n))})}}});var t=p.length>0?800:0;0==e("#page-header-bg .nectar-video-wrap video").length&&setTimeout(an,t)}function sn(){if(e('#header-outer[data-permanent-transparent="1"]').length>0&&e('body[data-bg-header="true"]').length>0){0==e(".container-wrap div[data-midnight]").length&&e(".container-wrap").attr("data-midnight","dark");var t=[];e("div[data-midnight]:not(.has-global-section)").each(function(){("light"==e(this).attr("data-midnight")&&0==e(this).parents(".pum-content").length||"dark"==e(this).attr("data-midnight")&&0==e(this).parents(".pum-content").length)&&(e(this).is("#page-header-bg")&&e(this).parents("#page-header-wrap[data-midnight]").length>0||e(this).parents("#slide-out-widget-area").length>0||t.push(e(this)))}),t.length>0&&e.each(t,function(a,n){if("light"==n.attr("data-midnight")||"dark"==n.attr("data-midnight")){var i=n;new Waypoint({element:i[0],handler:function(n){var s;e("body.material-ocm-open").length>0||e("#slide-out-widget-area.open").length>0||"none"==i.css("display")||("down"==n?(s="light"==i.attr("data-midnight")?"":"dark-slide",d.removeClass("dark-slide").addClass(s)):(s="light"==t[a-1>=0?a-1:a].attr("data-midnight")?"":"dark-slide",d.removeClass("dark-slide").addClass(s)))},offset:d.height()})}})}}function rn(){if(t.nectarOptions&&t.nectarOptions.disable_box_roll_mobile&&"on"==t.nectarOptions.disable_box_roll_mobile&&be.usingMobileBrowser)return e(".nectar-box-roll").contents().unwrap(),e(".overlaid-content > .container").contents().unwrap(),e(".overlaid-content").contents().unwrap(),void e("#page-header-bg").wrap('<div id="page-header-wrap" class="fullscreen-header" />');e(".nectar-box-roll").length>0&&"undefined"!=typeof NectarBoxRoll&&(nn(),e(t).on("nectar-box-roll-scroll-disabled",function(){ye.preventScroll=!0}),e(t).on("nectar-box-roll-scroll-enabled",function(){ye.preventScroll=!1}),(ge=new NectarBoxRoll(be,on,sn,ni,Ha)).inUse=!0)}function on(){var t,a,n,i,s,o,l,c;a=1==ue?"500%":"93%",n=1==ue?"500%":"95%",e(he+'.row-bg-wrap[data-bg-animation]:not([data-bg-animation="none"]) .row-bg').each(function(){var i=e(this).parents(".row-bg-wrap").attr("data-bg-animation"),s=e(this).parents(".row-bg-wrap[data-bg-animation-delay]").length>0?e(this).parents(".row-bg-wrap").attr("data-bg-animation-delay"):0;t="zoom-out-reveal"!=i&&-1==i.indexOf("reveal-from-")?a:n;var r=e(this),o=new Waypoint({element:r.parents(".row-bg-wrap")[0],handler:function(){r.parents(".wpb_tab").length>0&&"hidden"==r.parents(".wpb_tab").css("visibility")||r.hasClass("animated-in")?o.destroy():(setTimeout(function(){r.parents(".inner-wrap").addClass("animated-in"),("zoom-out-reveal"==i||i.indexOf("reveal-from-")>-1||r.parents(".nectar-scrolling-text").length>0)&&r.parents(".row-bg-wrap").addClass("animated-in"),"clip-path"==i&&r.parents(".wpb_row ").addClass("animated-in")},s),o.destroy())},offset:t})}),s=1==ue?"500%":"93%",o=1==ue?"500%":"80%",e(he+'.column-image-bg-wrap[data-bg-animation]:not([data-bg-animation="none"]) .column-image-bg').each(function(){var t=e(this).parents(".column-image-bg-wrap").attr("data-bg-animation");i="zoom-out-reveal"!=t&&-1==t.indexOf("reveal-from-")?s:"ro-reveal-from-bottom"==t&&0==ue?"95%":"ro-reveal-from-top"==t&&0==ue?"65%":o;var a=e(this),n=new Waypoint({element:a.parents(".column-image-bg-wrap")[0],handler:function(){a.parents(".wpb_tab").length>0&&"hidden"==a.parents(".wpb_tab").css("visibility")||a.hasClass("animated-in")?n.destroy():(a.parents(".inner-wrap").addClass("animated-in"),("zoom-out-reveal"==t||t.indexOf("reveal-from-")>-1)&&(a.parents(".column-image-bg-wrap").addClass("animated-in"),a.parents(".column-image-bg-wrap").siblings(".column-bg-overlay-wrap").addClass("animated-in"),a.parents(".vc_column-inner").addClass("revealed-bg")),"mask-reveal"==t&&a.parents(".vc_column-inner").find(".column-bg-layer").addClass("animated-in"),n.destroy())},offset:i})}),e(he+".column-bg-overlay-wrap[data-bg-animation]").each(function(){i=o;var t=e(this),a=e(this).attr("data-bg-animation");if(("zoom-out-reveal"==a||"mask-reveal"==a||a.indexOf("reveal-from-")>0)&&0==t.parent().find(".column-image-bg-wrap").length)var n=new Waypoint({element:t[0],handler:function(){t.hasClass("animated-in")?n.destroy():(t.addClass("animated-in"),t.parents(".vc_column-inner").addClass("revealed-bg"),n.destroy())},offset:i})}),Zt(),ea(),ia(),l=1==ue?"250%":"75%",e(he+'.nectar-icon-list[data-animate="true"]').each(function(){var t=e(this),a=new Waypoint({element:t[0],handler:function(){t.parents(".wpb_tab").length>0&&"hidden"==t.parents(".wpb_tab").css("visibility")||t.hasClass("completed")?a.destroy():(t.each(function(){var a=t.is('[data-direction="horizontal"]')?100:300;e(this).find(".nectar-icon-list-item").each(function(t){var n=e(this);setTimeout(function(){n.addClass("animated")},t*a)})}),t.addClass("completed"),a.destroy())},offset:l})}),va(),ba(),oa(),c=1==ue?"200%":"95%",e(he+".clients.fade-in-animation").each(function(){var t=e(this),a=new Waypoint({element:t[0],handler:function(){t.parents(".wpb_tab").length>0&&"hidden"==t.parents(".wpb_tab").css("visibility")||t.hasClass("animated-in")?a.destroy():(t.find("> div").each(function(t){e(this).delay(80*t).transition({opacity:"1"},450)}),setTimeout(function(){t.addClass("completed")},80*t.find("> div").length+450),t.addClass("animated-in"),a.destroy())},offset:c})}),Jt(),"undefined"!=typeof Vivus?Ot():Ue("#vivus-js",100,function(){Ot()}),function(){if(e(".nectar-milestone").each(function(){var t;e(this).is("[data-symbol]")&&(0==e(this).find(".symbol-wrap").length&&("before"==e(this).attr("data-symbol-pos")?e(this).find(".number").prepend('<div class="symbol-wrap"><span class="symbol">'+Ze(e(this).attr("data-symbol"))+"</span></div>"):e(this).find(".number").append('<div class="symbol-wrap"><span class="symbol">'+Ze(e(this).attr("data-symbol"))+"</span></div>")),t=e(this).attr("data-symbol-size")==e(this).find(".number").attr("data-number-size")&&"superscript"==e(this).attr("data-symbol-alignment")?32:parseInt(e(this).attr("data-symbol-size")),e(this).find(".symbol-wrap").css({"font-size":t+"px","line-height":t+"px"})),e(this).find(".number").css({"font-size":e(this).find(".number").attr("data-number-size")+"px","line-height":e(this).find(".number").attr("data-number-size")+"px"})}),!S&&e(".nectar-milestone").length>0||r.hasClass("rtl")&&e(".nectar-milestone").length>0){var t="";e(he+".nectar-milestone.motion_blur").each(function(a){e(this).removeClass(function(e,t){return(t.match(/(^|\s)instance-\S+/g)||[]).join(" ")}),e(this).addClass("instance-"+a);var n=e(this).find(".number").css("color"),i=parseInt(n.substring(1),16),s=(16711680&i)>>16,r=(65280&i)>>8,o=(255&i)>>0,l="rgba("+s+","+r+","+o+",0.2)",d="rgba("+s+","+r+","+o+",1)",c=parseInt(e(this).find(".number").attr("data-number-size"));if(t+="@keyframes motion-blur-number-"+a+" {  0% { opacity: 0;color: "+l+"; text-shadow: 0 "+c/20+"px 0 "+l+", 0 "+c/10+"px 0 "+l+", 0 "+c/6+"px 0 "+l+", 0 "+c/5+"px 0 "+l+", 0 "+c/4+"px 0 "+l+", 0 -"+c/20+"px 0 "+l+", 0 -"+c/10+"px 0 "+l+", 0 -"+c/6+"px 0 "+l+", 0 -"+c/5+"px 0 "+l+", 0 -"+c/4+"px 0 "+l+"; transform: translateZ(0px) translateY(-100%); -webkit-transform: translateZ(0px) translateY(-100%); } 33% { opacity: 1 }100% { color: "+d+"; text-shadow: none; transform: translateZ(0px) translateY(0px); -webkit-transform: translateZ(0px) translateY(0px); }} @-webkit-keyframes motion-blur-number-"+a+" {  0% { opacity: 0;color: "+l+"; text-shadow: 0 "+c/20+"px 0 "+l+", 0 "+c/10+"px 0 "+l+", 0 "+c/6+"px 0 "+l+", 0 "+c/5+"px 0 "+l+", 0 "+c/4+"px 0 "+l+", 0 -"+c/20+"px 0 "+l+", 0 -"+c/10+"px 0 "+l+", 0 -"+c/6+"px 0 "+l+", 0 -"+c/5+"px 0 "+l+", 0 -"+c/4+"px 0 "+l+"; transform: translateZ(0px) translateY(-100%); -webkit-transform: translateZ(0px) translateY(-100%); } 33% { opacity: 1 }100% { color: "+d+"; text-shadow: none; transform: translateZ(0px) translateY(0px); -webkit-transform: translateZ(0px) translateY(0px); }} .nectar-milestone.motion_blur.instance-"+a+" .number span.in-sight { animation: 0.65s cubic-bezier(0, 0, 0.17, 1) 0s normal backwards 1 motion-blur-number-"+a+"; -webkit-animation: 0.65s cubic-bezier(0, 0, 0.17, 1) 0s normal backwards 1 motion-blur-number-"+a+"; } ",0!=me.$usingFullScreenRows||0==e(this).find(".number > span").length){var h=e(this).find(".symbol-wrap").clone();e(this).find(".symbol-wrap").remove();var u=e(this).find(".number").text().split(""),p=e(this).find(".milestone-heading").length>0?e(this).find(".milestone-heading"):e(this).find(".number");p.empty(),e.each(u,function(e,t){p.append("<span>"+t+"</span")}),e(this).has("[data-symbol]")&&("after"==e(this).attr("data-symbol-pos")?p.append(h):p.prepend(h))}}),dt(t,"milestone-blur"),ft()}}(),zt(),e(he+'.owl-carousel[data-enable-animation="true"]').each(function(){var t=1==ue?"200%":"bottom-in-view",a=0;e(this).is("[data-animation-delay]")&&e(this).attr("data-animation-delay").length>0&&"false"!=e(this).attr("data-animation")&&(a=e(this).attr("data-animation-delay"));var n=e(this),i=new Waypoint({element:n[0],handler:function(){n.parents(".wpb_tab").length>0&&"hidden"==n.parents(".wpb_tab").css("visibility")||n.hasClass("animated-in")?i.destroy():(setTimeout(function(){n.find(".owl-stage > .owl-item").each(function(t){e(this).delay(200*t).transition({opacity:"1",y:"0"},600,"easeOutQuart")}),n.addClass("animated-in")},a),i.destroy())},offset:t})}),function(){if(e('body[data-header-inherit-rc="true"]').length>0&&0==e(".mobile").length&&e('#header-outer[data-transparent-header="true"]').length>0){var t=w/2+y+be.adminBarHeight;0==e('#header-outer[data-permanent-transparent="1"]').length&&(t=w-_+Math.ceil(2*y/1.8)+be.adminBarHeight),e(".main-content > .row > .wpb_row, #full_width_portfolio #portfolio-extra > .wpb_row").each(function(){var a,n=e(this);new Waypoint({element:n[0],handler:function(t){"down"==t?n.find(".row-bg.using-bg-color").length>0?(a=n.find("> .col.span_12.light").length>0?"light-text":"dark-text",d.css("background-color",n.find(".row-bg").css("background-color")).removeClass("light-text").removeClass("dark-text").addClass(a),d.attr("data-current-row-bg-color",n.find(".row-bg").css("background-color")),e("body.material #header-outer .bg-color-stripe").css("background-color",n.find(".row-bg").css("background-color"))):(d.css("background-color",d.attr("data-user-set-bg")).removeClass("light-text").removeClass("dark-text"),d.attr("data-current-row-bg-color",d.attr("data-user-set-bg")),e("body.material #header-outer .bg-color-stripe").css("background-color","")):n.prev("div.wpb_row").find(".row-bg.using-bg-color").length>0?(a=n.prev("div.wpb_row").find("> .col.span_12.light").length>0?"light-text":"dark-text",d.css("background-color",n.prev("div.wpb_row").find(".row-bg").css("background-color")).removeClass("light-text").removeClass("dark-text").addClass(a),d.attr("data-current-row-bg-color",n.prev("div.wpb_row").find(".row-bg").css("background-color")),e("body.material #header-outer .bg-color-stripe").css("background-color",n.prev("div.wpb_row").find(".row-bg").css("background-color"))):(d.css("background-color",d.attr("data-user-set-bg")).removeClass("light-text").removeClass("dark-text"),d.attr("data-current-row-bg-color",d.attr("data-user-set-bg")),e("body.material #header-outer .bg-color-stripe").css("background-color",""))},offset:t})})}}(),Et(),ta(),na(),ut(),ma(),function(){if(de.length>0)for(var t=0;t<de.length;t++)clearInterval(de[t].interval);de=[],e(".nectar-rotating-words-title").each(function(t){var a=parseInt(e(this).attr("data-rotation"));de[t]=new pt(e(this),a)})}(),aa()}function ln(){var a;ke(),Ie(),setTimeout(Ee,100),Se(),Be(),Pe(),Ye(),Ve(),yt(),r.on("click",".toggle > h3 a, .toggle > .toggle-title a",function(){if(!e(this).parents(".toggles").hasClass("accordion")){if(0==e(this).parents('.toggle[data-inner-wrap="true"]').length)e(this).parents(".toggle").find("> div").slideToggle(300);else{var a=e(this).parents(".toggle").find("> div")[0];a.style.maxHeight?a.style.maxHeight=null:a.style.maxHeight=a.scrollHeight+"px"}if(e(this).parents(".toggle").toggleClass("open"),e(this).parents(".toggle").hasClass("open")?e(this).find("i").attr("class","fa fa-minus-circle"):e(this).find("i").attr("class","fa fa-plus-circle"),e(this).parents(".toggle").find("> div .iframe-embed").length>0&&"0"==e(this).parents(".toggle").find("> div iframe.iframe-embed").height()&&Oa(),e(this).parents(".toggle").find("> div img").length>0&&e(this).parents(".toggle").is('[data-inner-wrap="true"]'))for(var n=1;n<10;n++)setTimeout(wt,100*n);return setTimeout(function(){e(t).trigger("salient-parallax-el-recalculate")},500),e(this).parents(".full-width-content").length>0&&setTimeout(function(){Xt()},300),e("#nectar_fullscreen_rows").length>0&&setTimeout(function(){s.trigger("smartresize")},300),!1}}),r.on("click",".toggles.accordion .toggle > h3 a, .toggles.accordion .toggle > .toggle-title a",function(a){var n,i=e(this).parents(".toggles"),r=e(this).parents(".toggle");if(setTimeout(function(){e(t).trigger("salient-parallax-el-recalculate")},500),e(this).parents(".toggle").hasClass("open"))return i.find(".toggle > div").each(function(){e(this)[0].style.maxHeight=null}),i.find(".toggle h3 a i").attr("class","fa fa-plus-circle"),i.find(".toggle").removeClass("open"),!1;if(0==e(this).parents('.toggle[data-inner-wrap="true"]').length)i.find(".toggle > div").slideUp(300),i.find(".toggle h3 a i").attr("class","fa fa-plus-circle"),i.find(".toggle").removeClass("open"),r.find("> div").slideDown(300),r.addClass("open");else{void 0!==a.originalEvent&&be.winW<1e3&&i.find(".toggle.open").length>0&&0==me.$usingFullScreenRows&&(i.find(".toggle.open"),setTimeout(function(){var t=r.offset().top-be.adminBarHeight;e('#header-outer[data-mobile-fixed="1"]').length>0&&(t=r.offset().top-d.outerHeight()-be.adminBarHeight),tt(t,0,"easeInOutQuint")},50)),void 0!==a.originalEvent&&be.winW>1e3&&i.find(".toggle.open").length>0&&0==me.$usingFullScreenRows&&setTimeout(function(){if(r.offset().top<e(t).scrollTop()){var a=r.offset().top-be.adminBarHeight;e('#header-outer[data-remove-fixed="0"]').length>0&&(a=r.offset().top-d.outerHeight()-be.adminBarHeight),tt(a-30,0,"easeInOutQuint")}},500);var o=r.find("> div")[0];i.find(".toggle > div").each(function(){e(this)[0].style.maxHeight=null}),i.find(".toggle h3 a i").attr("class","fa fa-plus-circle"),i.find(".toggle").removeClass("open"),o.style.maxHeight=o.scrollHeight+"px",r.addClass("open")}return r.hasClass("open")?e(this).find("i").attr("class","fa fa-minus-circle"):e(this).find("i").attr("class","fa fa-plus-circle"),e(this).parents(".full-width-content").length>0&&(clearTimeout(n),n=setTimeout(function(){Xt()},400)),e("#nectar_fullscreen_rows").length>0&&(clearTimeout(n),n=setTimeout(function(){s.trigger("smartresize")},400)),!1}),$t(),Ta(),kt(),r.on("click",'.nectar-cta:not([data-style="material"]) .link_wrap',function(t){(e(this).parents('[data-using-bg="true"]').length>0||e(this).parents('[class*="border_thickness"]').length>0)&&(e(t.target).is("a")||0!=e(t.target).parents("a").length||e(this).find("a.link_text")[0].click())}),0!==e(".team-member").length&&(r.on("click keydown",'.team-member[data-style="bio_fullscreen"], .team-member[data-style="bio_fullscreen_alt"]',function(a){if(!(e(".nectar_team_member_overlay").length>0||"keydown"===a.type&&"Enter"!==a.key&&13!==a.keyCode)){var n=e("body > #boxed").length>0?"in-boxed":"",i=e(this).find(".nectar_team_bio").html(),o=e(this).is('[data-style="bio_fullscreen_alt"]')?e(this).find(".team-meta h5").html():e(this).find(".team-meta p").html(),l=e(this).find(".nectar_team_bio_img[data-img-src]").length>0?e(this).find(".nectar_team_bio_img").attr("data-img-src"):"",c=e(this).is('[data-style="bio_fullscreen_alt"]')?"bio-fullscreen-alt":"bio-fullscreen",h="";if(h=e(this).is('[data-style="bio_fullscreen_alt"]')?'<div class="title">'+Ze(o)+"</div><h2>"+e(this).find(".team-meta h3").text()+"</h2>":"<h2>"+e(this).find(".team-meta h3").text()+'</h2><div class="title">'+Ze(o)+"</div>",r.append('<div class="nectar_team_member_overlay nectar-modal '+n+'" data-style="'+c+'"><div class="inner-wrap"><div class="team_member_details"><div class="bio-inner"><span class="mobile-close"></span>'+h+'<div class="team-desc">'+Ze(i)+'</div></div></div><div class="team_member_picture"><div class="team_member_image_bg_cover"></div><div class="team_member_picture_wrap"><div class="team_member_image"></div></div></div></div></div>'),l.length>0){var u=new Image;u.src=l,u.onload=function(){e(".nectar_team_member_overlay .team_member_image").css("opacity","1")},e(".nectar_team_member_overlay .team_member_image").css({"background-image":'url("'+l+'")'})}var p=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?0:d.height();e(".nectar_team_member_overlay .inner-wrap").css({"padding-top":p}),e(".using-mobile-browser").length>0&&e("body,html").addClass("nectar-no-scrolling"),Tt(),e(".nectar_team_member_overlay").addClass("open").addClass("animating"),setTimeout(function(){e(".nectar_team_member_close").addClass("visible"),e(".nectar_team_member_overlay").removeClass("animating")},500),e('.team-member[data-style="bio_fullscreen"]').length>0&&be.usingMobileBrowser&&e(".nectar_team_member_overlay").addClass("on-mobile"),Oa(),e(t).trigger("nectar-team-member-opened")}}),r.on("click",".nectar_team_member_overlay",function(t){if(e(t.target).is("a")||e(t.target).parents("a").length>0||e(t.target).is(".skip-team-member-close")||e(t.target).parents(".skip-team-member-close").length>0)return!0;e(this).hasClass("animating")||(e(".nectar_team_member_overlay").removeClass("open"),e(".nectar_team_member_close").removeClass("visible"),e(".using-mobile-browser").length>0&&e("body,html").removeClass("nectar-no-scrolling"),setTimeout(function(){e(".nectar_team_member_overlay, .nectar_team_member_close").remove()},820))}),(e('.team-member[data-style="bio_fullscreen"]').length>0||e('.team-member[data-style="bio_fullscreen_alt"]').length>0)&&(s.on("resize",Tt),!be.usingMobileBrowser))&&new $e("","close-indicator"),e(".nectar-flip-box").length>0&&(be.usingMobileBrowser&&r.on("click",".nectar-flip-box",function(){e(this).toggleClass("flipped")}),St(),s.on("smartresize",St)),Fe(),Nt(),Dt(),Ht(),Dn(),Zn(),Qt(),e(".morphing-outline").length>0&&(setTimeout(Et,100),setTimeout(Xt,125),s.on("smartresize",Et)),V=[],be.usingMobileBrowser||e("[data-nectar-link-indicator]").each(function(t){e(this).is("[data-indicator-text]")?V[t]=new $e(e(this),"view-indicator"):V[t]=new $e(e(this),"link-indicator")}),fa(),e(".nectar_cascading_images").length>0&&(Q=[],e(".nectar_cascading_images").each(function(t){imagesLoaded(e(this),function(a){Gt(),e(a.elements[0]).is('[data-parallax="yes"]')&&!S&&0==e("#nectar_fullscreen_rows").length&&(Q[t]=new Ut(e(a.elements[0]),e(a.elements[0]).attr("data-parallax-intensity")))})}),s.on("resize",Gt)),ra(),ya(),function(){e('.page-submenu[data-sticky="true"]').length>0&&0==e("#nectar_fullscreen_rows").length&&(!function(){var e=t.jQuery,a=t.Waypoint,n=Ge();Ge();function i(t){this.options=e.extend({},a.defaults,i.defaults,t),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.topLevel=e(this.element).parents(".top-level").length>0,this.createWaypoint()}s.on("smartresize",function(){if(n=Ge(),u.length>0&&"fixed"==u.css("position")&&(n+=u.height()),(f.length>0&&s.width()>1e3&&e('body[data-hhun="1"]').length>0||f.length>0&&e('body[data-hhun="1"]').length>0&&B)&&(W||(n+=f.height())),e(".page-submenu.stuck").length>0){if(e(".page-submenu.stuck").addClass("no-trans").css("top",n).css("transform","translateY(0)").addClass("stuck"),setTimeout(function(){e(".page-submenu.stuck").removeClass("no-trans")},50),e(".page-submenu.stuck").parents(".wpb_row").css("z-index",1e4),e("#boxed").length>0){var t=s.width()>1e3?.04*e(".container-wrap").width():39;e(".page-submenu.stuck").css({"margin-left":"-"+t+"px",width:e(".container-wrap").width()})}}else e(".page-submenu.stuck").css("top","0").removeClass("stuck"),e(".page-submenu.stuck").parents(".wpb_row").css("z-index","auto"),e("#boxed").length>0&&e(".page-submenu.stuck").css({"margin-left":"0px",width:"100%"})}),i.prototype.createWaypoint=function(){var t=this.options.handler;n=Ge(),this.topLevel&&e('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0&&(n+=1,this.$element.css({"margin-top":"-1px"})),u.length>0&&"fixed"==u.css("position")&&(n+=u.height()),(f.length>0&&s.width()>1e3&&e('body[data-hhun="1"]').length>0||f.length>0&&B&&e('body[data-hhun="1"]').length>0)&&(W||(n+=f.height())),this.waypoint=new a(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(a){var i=this.options.direction.indexOf(a)>-1,r=i?this.$element.outerHeight(!0):"";if(this.$wrapper.height(r),i){var o=0;if(this.topLevel&&e('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0){var l=d.outerHeight(),h=0;c.length>0&&(l-=be.secondaryHeaderHeight),f.length>0&&0==e("body.mobile").length&&(h=pe?f.height():0),o=l-h}this.$element.addClass("no-trans").css("top",n).css("transform","translateY("+o+"px)").addClass("stuck");var u=this;if(setTimeout(function(){u.$element.removeClass("no-trans")},50),this.$element.parents(".wpb_row").css("z-index",1e4),e("#boxed").length>0){var p=s.width()>1e3?.04*e(".container-wrap").width():39;this.$element.css({"margin-left":"-"+p+"px",width:e(".container-wrap").width()})}}else this.$element.css("top","0").removeClass("stuck"),e("#boxed").length>0&&this.$element.css({"margin-left":"0px",width:"100%"});t&&t.call(this,a)},this),offset:n}));var i=this;setInterval(function(){if(e('body[data-hhun="1"] #header-outer.detached:not(.invisible)').length>0){var t=d.outerHeight();c.length>0&&(t-=be.secondaryHeaderHeight),i.waypoint.options.offset=n+t}else i.waypoint.options.offset=n;a.refreshAll()},100)},i.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},i.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},i.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},a.Sticky=i}(),e('.page-submenu[data-sticky="true"]').each(function(){var t=e(this)[0];if(e(this).parents(".span_12").find("> .wpb_column").length>1){var a=e(this).clone(),n=e(this).parents(".wpb_row");e(this).parents(".wpb_row.has-global-section").length>0&&(n=e(this).parents(".wpb_row.has-global-section")),e(this).remove(),n.before(a),t=a[0]}new Waypoint.Sticky({element:t})}));0==e("#nectar_fullscreen_rows").length&&e(".page-submenu").parents(".wpb_row").css("z-index",1e4);e(".page-submenu .mobile-menu-link").on("click",function(){return e(this).parents(".page-submenu").find("ul").stop(!0).slideToggle(350),!1}),e(".page-submenu ul li a").on("click",function(){e("body.mobile").length>0&&e(this).parents(".page-submenu").find("ul").stop(!0).slideToggle(350)})}(),K=[],"undefined"==typeof NectarLiquid||be.usingFrontEndEditor||e('.row-bg-wrap[data-bg-animation*="displace-filter"] .row-bg.using-image, .column-image-bg-wrap[data-bg-animation*="displace-filter"] .column-image-bg').each(function(t){var a,n,i=e(this);e(this).is(".row-bg")?(a=e(this).parents(".row-bg-wrap").attr("data-bg-animation"),n="row"):e(this).is(".column-image-bg")&&(a=e(this).parents(".column-image-bg-wrap").attr("data-bg-animation"),n="col"),K[t]=new NectarLiquid(i,a,n)}),_a(),function(){function t(){e('.blog-recent[data-style="title_only"]').each(function(){if(e(this).find("> .col").length>1)return!1;var t=e(this).parent().parent().parent();if(t.hasClass("vc_col-sm-3")||t.hasClass("vc_col-sm-4")||t.hasClass("vc_col-sm-6")||t.hasClass("vc_col-sm-8")||t.hasClass("vc_col-sm-9"))if(0==e("body.mobile").length&&0==e(this).next("div").length){var a=0;e(this).find("> .col").css("padding","50px 20px"),e(this).parents(".span_12").find(" > .wpb_column").each(function(){Math.floor(e(this).height())>a&&(a=Math.floor(e(this).height()))}),Math.floor(e(this).find("> .col").outerHeight(!0))<Math.floor(e(this).parents(".wpb_row").height())-1&&(e(this).find("> .col").css("padding-top",(a-e(this).find("> .col").height())/2+"px"),e(this).find("> .col").css("padding-bottom",(a-e(this).find("> .col").height())/2+"px"))}else e(this).find("> .col").css("padding","50px 20px")})}e('.blog-recent[data-style="title_only"]').length>0&&(t(),s.on("smartresize",t))}(),Xn(),Nn(),Un(),r.on("mouseover",'.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a',function(){e(this).parents(".grav-wrap").find("img").addClass("hovered")}),r.on("mouseleave",'.post-area.featured_img_left .grav-wrap .text a, .masonry.material .masonry-blog-item .grav-wrap .text a, .blog-recent[data-style="material"] .grav-wrap .text a',function(){e(this).parents(".grav-wrap").find("img").removeClass("hovered")}),r.on("mouseleave",'.container-wrap[data-nav-pos="after_project_2"] #portfolio-nav ul li, .blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul li',function(){e(this).addClass("mouse-leaving")}),ii(),li(),function(){if(0==e(".portfolio-items .col").length)return;if(e(".portfolio-items .col .style-3-alt").length>0||e(".portfolio-items .col .style-3").length>0||e(".portfolio-items .col .style-2").length>0||e(".portfolio-items .col .style-5").length>0){var t="";e(".portfolio-items .col").each(function(){var a=e(this).attr("data-title-color"),n=e(this).attr("data-subtitle-color");a.length>0&&(t+='.col[data-title-color="'+a+'"] .vert-center h3, .portfolio-items[data-ps="6"] .col[data-title-color="'+a+'"] .work-meta h4 { color: '+a+"!important; } ",t+=' .portfolio-items[data-ps="8"] .col[data-title-color="'+a+'"] .line { background-color: '+a+"; }",t+='.portfolio-items[data-ps="8"] .col[data-title-color="'+a+'"] .next-arrow line { stroke: '+a+"; } "),n.length>0&&(t+='.col[data-subtitle-color="'+n+'"] .vert-center p, .portfolio-items[data-ps="6"] .col[data-title-color="'+a+'"] .work-meta p { color: '+n+"!important; } ")}),dt(t,"nectar-portfolio-colors")}}(),e("body.search-results").length>0&&e("#search-results article").length>0&&0==e('#search-results[data-layout="list-no-sidebar"]').length&&0==e('#search-results[data-layout="list-with-sidebar"]').length&&((a=e("#search-results")).is('[data-layout="masonry-no-sidebar"]'),a.imagesLoaded(function(){a.isotope({itemSelector:".result",layoutMode:"packery",packery:{gutter:0}}),a.find("article").css("opacity","1")}),s.on("resize",function(){a.isotope({layoutMode:"packery",packery:{gutter:0}})})),function(){e(".single-portfolio #sidebar").attr("data-follow-on-scroll");if(0==e("body.single-portfolio").length||0==e("#sidebar[data-follow-on-scroll]").length)return;if(1==e(".single-portfolio #sidebar").attr("data-follow-on-scroll")&&!r.hasClass("mobile")&&parseInt(e("#sidebar").height())+50<=parseInt(e(".post-area").height())){var t=di();e(".single-portfolio #sidebar").theiaStickySidebar({additionalMarginTop:t,updateSidebarHeight:!1})}}(),jn(),e(".nectar-scrolling-text").each(function(){if(e(this).offset().top>be.winH){e(this).addClass("prevent-animation");var t=e(this);setTimeout(function(){t.removeClass("prevent-animation")},100)}}),mt()}function dn(){this.$toggleBtn=e(".nectar-shop-filters .nectar-shop-filter-trigger"),this.$sidebar=e("#sidebar"),this.sidebarPos=this.$sidebar.hasClass("col_last")?"right":"left",this.state={open:this.getLS()?this.getLS():"true"},this.setup(),this.events()}function cn(){this.$qty="",this.step=1,this.ajaxTimeout="",this.ajaxTimeoutDur=500,this.state={max:1e5,min:0,currentVal:1,key:0,removeFlag:!1},this.events()}function hn(){this.state={processing:!1,productID:!1,type:"regular"},this.events()}function un(){var n;r.on("click",".product .add_to_cart_button",function(){var t=e(this).parents("li").find("h2").length>0?"h2":"h3",a=e(this).parents("li").find(t).text();e("#header-outer .cart-notification span.item-name").html(a)}),r.on("mouseenter","#header-outer .cart-notification",function(){e(this).hide(),e("#header-outer .widget_shopping_cart").addClass("open").stop(!0,!0).show(),e("#header-outer .cart_list").stop(!0,!0).show(),clearTimeout(n)});var i;function o(){!e(".widget_shopping_cart .widget_shopping_cart_content .cart_list .empty").length&&e(".widget_shopping_cart .widget_shopping_cart_content .cart_list").length>0&&(e(".cart-menu-wrap").addClass("has_products"),e("header#top nav > ul, #search-outer #search #close a, header#top .span_9 >.slide-out-widget-area-toggle").addClass("product_added"),e(".cart-menu-wrap").hasClass("static")||e(".cart-menu-wrap, #mobile-cart-link").addClass("first-load"))}function l(){e("#header-outer .cart-notification").stop(!0,!0).fadeOut()}if(e("#header-outer .nectar-woo-cart").length>0&&e("#header-outer .nectar-woo-cart").hoverIntent(function(){e("#header-outer .widget_shopping_cart").addClass("open").stop(!0,!0).show(),e("#header-outer .cart_list").stop(!0,!0).show(),clearTimeout(n),e("#header-outer .cart-notification").hide()}),r.on("mouseleave","#header-outer .nectar-woo-cart",function(){var t=e(this);setTimeout(function(){t.is(":hover")||(e("#header-outer .widget_shopping_cart").removeClass("open").stop(!0,!0).fadeOut(300),e("#header-outer .cart_list").stop(!0,!0).fadeOut(300))},200)}),0==e('#header-outer[data-cart="false"]').length&&r.on("added_to_cart",function(t){setTimeout(function(){!function(t){if(clearTimeout(n),!e(".widget_shopping_cart .widget_shopping_cart_content .cart_list .empty").length&&e(".widget_shopping_cart .widget_shopping_cart_content .cart_list").length>0&&void 0!==t.type){if(e("#header-outer .cart-notification .item-name").length>0&&0==e("#header-outer .cart-notification .item-name").text().length)return;e("#header-outer .cart-menu-wrap").hasClass("has_products")?e("#header-outer .cart-notification").is(":visible")?e("#header-outer .cart-notification").show():e("#header-outer .cart-notification").fadeIn(400):setTimeout(function(){e("#header-outer .cart-notification").fadeIn(400)},400),e('body #header-outer [data-cart-style="slide_in_click"] .cart-menu-wrap').trigger("click"),n=setTimeout(l,2700)}}(t),o()},150)}),0==e('#header-outer[data-cart="false"]').length&&(i=setInterval(o,250),setTimeout(function(){clearInterval(i)},4500)),function(){if(0!=e("body.woocommerce-account #customer_login").length){0===e("#customer_login .nectar-form-controls").length&&(e(".woocommerce-account .woocommerce > #customer_login").prepend('<div class="nectar-form-controls" />'),e(".woocommerce-account .woocommerce > #customer_login > div:not(.nectar-form-controls)").each(function(){var t=e(this).find("> h2").text();e("#customer_login .nectar-form-controls").append('<div class="control">'+t+"</div>")})),e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control").on("click",function(){e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control").removeClass("active"),e(this).addClass("active");var t=e(this).index()+1;e('#customer_login div[class*="u-column"]').hide(),e('#customer_login div[class*="u-column"].col-'+t).show(),setTimeout(function(){e('#customer_login div[class*="u-column"]').removeClass("visible"),e('#customer_login div[class*="u-column"].col-'+t).addClass("visible")},30)});var a="1";if(void 0!==rt.tab&&"2"===rt.tab&&(a="2",t.history&&t.history.replaceState&&"function"==typeof URL)){var n=new URL(location);n.searchParams.delete("tab"),history.replaceState(null,null,n)}e(".woocommerce-account .woocommerce > #customer_login .nectar-form-controls .control:nth-child("+a+")").trigger("click")}}(),!(e('.products[data-rm-m-hover="1"]').length>0&&be.usingMobileBrowser)&&(r.on("mouseover",".text_on_hover .product-wrap, .text_on_hover > a:first-child",function(){e(this).parent().addClass("hovered")}),r.on("mouseout",".text_on_hover .product-wrap, .text_on_hover > a:first-child",function(){e(this).parent().removeClass("hovered")})),e(".material.product").length>0||e(".minimal.product").length>0||e('.nectar-fancy-box[data-style="parallax_hover"]').length>0||e('.nectar-category-grid[data-shadow-hover="yes"]').length>0||e('.nectar-post-grid[data-shadow-hover="yes"]').length>0){var d=101;r.on("mouseenter",'.material.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item',function(){d++,e(this).css("z-index",d+1)}),r.on("mouseleave",'.material.product, .nectar-fancy-box[data-style="parallax_hover"], .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item, .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item',function(){var t=e(this);setTimeout(function(){t.is(":hover")||t.css("z-index",100)},350)}),t.nectarOptions&&t.nectarOptions.woo_minimal_product_effect&&"default"===t.nectarOptions.woo_minimal_product_effect&&(r.on("mouseenter",".minimal.product",function(){d++,e(this).css("z-index",d+1)}),r.on("mouseleave",".minimal.product",function(){var t=e(this);setTimeout(function(){t.is(":hover")||t.css("z-index",100)},350)})),setInterval(function(){e('.nectar-fancy-box[data-style="parallax_hover"]:hover').length>0||e(".minimal.product:hover").length>0||(e('.material.product:not(:hover), .minimal.product:not(:hover), .nectar-fancy-box[data-style="parallax_hover"]:not(:hover), .nectar-post-grid[data-shadow-hover="yes"] .nectar-post-grid-item:not(:hover), .nectar-category-grid[data-shadow-hover="yes"] .nectar-category-grid-item:not(:hover)').css("z-index",100),d=101)},1e4)}function c(t){var a=s.width();t.clientX<a-370-b&&e(".nectar-slide-in-cart").hasClass("mouse-accessed")&&(s.off("mousemove.rightCartOffsetCheck",c),e(".nectar-slide-in-cart").removeClass("open").removeClass("mouse-accessed"))}if(e(".products .classic .product-wrap .add_to_cart_button").wrapInner("<span />"),e(".products .classic .product-wrap .add_to_cart_button").prepend('<i class="normal icon-salient-cart"></i>'),!(e('.products[data-rm-m-hover="1"]').length>0&&be.usingMobileBrowser)&&t.nectarOptions&&t.nectarOptions.woo_minimal_product_effect&&"default"===t.nectarOptions.woo_minimal_product_effect&&(r.on("mouseover",".products .minimal.product",function(){var t,a,n,i,s,r;t=e(this),n=(a=t).width(),i=a.height(),s=(parseInt(n)+40)/parseInt(n),r=(parseInt(i)+40)/parseInt(i),a.addClass("hover-bound"),a.find(".background-color-expand").css({transform:"scale("+s+","+r+") translateY(0px) translateZ(0px)"})}),r.on("mouseleave",".products .minimal.product",function(){e(this).find(".background-color-expand").css({transform:"scale(1, 1) translateY(0) translateZ(0px)"})})),e(".products .minimal.product").each(function(){e(this).is(":hover")&&e(this).trigger("mouseover")}),e(".woocommerce #sidebar .widget.woocommerce").each(function(){0==e(this).find("> h4").length&&e(this).addClass("no-widget-title")}),r.on("click","#sidebar .widget.woocommerce:not(.widget_price_filter) h4",function(){t.nectarOptions&&"false"!==t.nectarOptions.woo_sidebar_toggles&&s.width()<1e3&&(e(this).parent().is(".widget_product_tag_cloud")&&e(this).parent().find("> div").slideToggle(),e(this).parent().is(".woocommerce-widget-layered-nav")&&e(this).parent().find("> .woocommerce-widget-layered-nav-dropdown").length>0&&e(this).parent().find("> .woocommerce-widget-layered-nav-dropdown").slideToggle(),e(this).parent().find("> ul").slideToggle(),e(this).parent().toggleClass("open-filter"))}),r.on("mouseenter",'#header-outer [data-cart-style="slide_in"] .cart-menu-wrap',function(){e(".nectar-slide-in-cart ul.cart_list li:not(.empty)").length>0&&(e(".nectar-slide-in-cart").addClass("open"),s.on("mousemove.rightCartOffsetCheck",c))}),r.on("mouseenter",".nectar-slide-in-cart",function(){e(this).addClass("mouse-accessed")}),r.on("click",'#header-outer [data-cart-style="slide_in_click"] .cart-menu-wrap, #mobile-cart-link[data-cart-style="slide_in_click"]',function(){if(r.is(".woocommerce-checkout")||r.is(".woocommerce-cart"))return!0;return e(".nectar-slide-in-cart, .nectar-slide-in-cart-bg").addClass("open"),e(".nectar-slide-in-cart-bg").addClass("revealed"),clearTimeout(Ua),e(".style_slide_in_click div.quantity").each(function(){e(this).find(".minus").length>1&&e(this).find(".minus").first().remove(),e(this).find(".plus").length>1&&e(this).find(".plus").first().remove()}),!1}),r.on("click",".nectar-slide-in-cart.style_slide_in_click .close-cart, .nectar-slide-in-cart-bg",pn),new cn,t.nectarOptions&&"1"===t.nectarOptions.ajax_add_to_cart)new hn;if(t.nectarOptions&&"1"===t.nectarOptions.woo_product_filter_toggle&&r.is(".archive.woocommerce"))new dn;e(a).on("yith-wcan-ajax-filtered",ha)}function pn(){return e(".nectar-slide-in-cart, .nectar-slide-in-cart-bg").removeClass("open"),Ua=setTimeout(function(){e(".nectar-slide-in-cart-bg").removeClass("revealed")},400),!1}function fn(){this.$el=e("#search-outer #search .container #s"),this.$container="",this.$parent="",this.$searchEl=e("#search-outer"),this.request="",this.timeout="",this.setup(),this.events(),this.state={requesting:!1,open:!1,prevResults:""},this.minChars=2}function gn(){e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&function(){var t=d,a=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),n=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3'),i=c,r=n.find("nav >ul.buttons"),o=parseInt(e("body.material #header-outer").attr("data-padding")),l=parseInt(e("body.material #header-outer").attr("data-logo-height")),h=parseInt(n.css("margin-bottom")),u=o+h+l+parseInt(be.secondaryHeaderHeight);function p(){at()?d.addClass("within-custom-breakpoint"):d.removeClass("within-custom-breakpoint")}function g(){if(!(be.winW<1e3||e("body.page-template-template-no-header").length>0||e("body.page-template-template-no-header-footer").length>0||e("body.material-ocm-open").length>0||"none"==e('#header-outer[data-has-menu="true"][data-format="centered-menu-bottom-bar"] .span_9').css("display")||"none"==e('#header-outer[data-has-menu="true"][data-format="centered-menu-bottom-bar"] .span_9 > nav').css("display")))if(f=f.length>0&&be.secondaryHeaderHeight>0?f.height():0,t.hasClass("force-condense")||!t.hasClass("fixed-menu")&&be.scrollTop>=u){var n=parseInt(a.position().top)-o-parseInt(be.adminBarHeight)+parseInt(be.secondaryHeaderHeight)-f;if(e('#header-outer[data-megamenu-rt="1"]').length>0&&e("#header-outer .megamenu").length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&d.removeClass("no-transition"),t.addClass("fixed-menu").removeClass("transparent").css({top:"-"+n+"px",position:"fixed"}),!t.is('[data-menu-bottom-bar-align="left"]')){var i=e("header#top .span_9 nav > ul .menu-title-text").length>0?e("header#top .span_9 nav > ul .menu-title-text").offset().top:0,s=r.find("li:first-child > *").length>0?r.find("li:first-child > *").offset().top:0,l=a.find("nav .sf-menu > li > a .menu-title-text").length>0?(20-parseInt(a.find("nav .sf-menu > li > a .menu-title-text").height()))/2:2;r.css("transform","translateY("+Math.ceil(parseInt(i)-parseInt(s)-l)+"px)"),r.find(".nectar-woo-cart").css({height:"auto"})}}else(t.hasClass("force-condense-remove")||t.hasClass("fixed-menu")&&be.scrollTop<u)&&(t.removeClass("fixed-menu").css({top:"0",position:"absolute"}),r.css("transform","translateY(0px)"),r.find(".nectar-woo-cart").css({height:"",position:"relative"}),0==e("#header-outer.transparent").length&&(e('#header-outer[data-megamenu-rt="1"]').length>0&&e("#header-outer .megamenu").length>0&&d.removeClass("no-transition"),e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&e("#header-outer .megamenu").length>0?"true"==d.attr("data-transparent-header")&&0==e(".nectar-box-roll").length&&0==e(".megamenu.sfHover:not(.width-75):not(.width-50)").length?(d.addClass("transparent"),d.removeClass("no-transition")):"true"==d.attr("data-transparent-header")&&0==e(".nectar-box-roll").length&&e(".megamenu.sfHover").length>0&&d.addClass("no-transition"):"true"==d.attr("data-transparent-header")&&0==e(".nectar-box-roll").length&&d.addClass("transparent")))}i.length>0&&0==e('#header-outer[data-remove-fixed="1"]').length&&e('#header-outer[data-condense="true"]').length>0&&setTimeout(function(){"none"!=c.css("display")&&(be.secondaryHeaderHeight=c.outerHeight())},50),e('#header-outer[data-condense="true"]').length>0&&(s.on("scroll.centeredNavCondense",g),s.trigger("scroll"),s.on("resize",function(){(be.winW<1e3||at())&&(t.addClass("force-condense-remove"),s.off("scroll.centeredNavCondense"))}),s.on("smartresize",function(){p(),be.winW>=1e3&&0==at()&&t.hasClass("force-condense-remove")&&(g(),t.removeClass("force-condense-remove"),setTimeout(function(){be.scrollTop>=u&&(t.addClass("force-condense"),g(),t.removeClass("force-condense")),s.on("scroll.centeredNavCondense",g)},200))}),p())}()}function mn(){if(be.winW>1e3){var t,a,n=e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li').length;e("#header-outer #social-in-menu").length>0&&n--,t=0==e("#header-outer #top .row .col.span_3 #logo img:visible").length?parseInt(e("#header-outer #top .row .col.span_3").width()):parseInt(e("#header-outer #top .row .col.span_3 img:visible").width()),a=e('#header-outer[data-lhe="animated_underline"]').length>0?parseInt(e("header#top nav > ul > li:first-child > a").css("margin-right")):parseInt(e("header#top nav > ul > li:first-child > a").css("padding-right")),a+=a>30?45:a>20?40:30,r.hasClass("rtl")?e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child('+Math.floor(n/2)+")").css({"margin-left":t+a+"px"}).addClass("menu-item-with-margin"):e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:nth-child('+Math.floor(n/2)+")").css({"margin-right":t+a+"px"}).addClass("menu-item-with-margin");var i=0,s=0;e('#header-outer[data-format="centered-logo-between-menu"] #top nav > .sf-menu:not(.buttons) > li:not(#social-in-menu)').each(function(t){t+1<=Math.floor(n/2)?i+=e(this).width():s+=e(this).width()});var o=Math.abs(s-i);i>s||r.hasClass("rtl")&&i<s?e("#header-outer #top .row > .col.span_9").css("padding-right",o):e("#header-outer #top .row > .col.span_9").css("padding-left",o),e('#header-outer[data-format="centered-logo-between-menu"] nav').css("visibility","visible")}else e('#header-outer[data-format="centered-logo-between-menu"]').length>0&&be.winW<1e3&&e("#header-outer .row > .col.span_9").css({"padding-right":"0","padding-left":"0"})}function vn(){if(e('#header-outer[data-format="centered-logo-between-menu"]').length>0){if(x){if(x&&e('#header-outer[data-format="centered-logo-between-menu"]').length>0&&e("header#top #logo img:first[src]").length>0){var t=new Image;t.src=e("header#top #logo img:first").attr("src"),t.onload=function(){mn()}}}else mn();s.on("smartresize",mn)}}function bn(){e("#nectar_fullscreen_rows").length>0&&1==ue&&d.attr("data-permanent-transparent","false"),be.usingMobileBrowser&&e('#header-outer[data-mobile-fixed="1"]').length>0&&0==e('#header-outer[data-transparent-header="true"]').length&&e("#header-space").css("height",d.outerHeight()).addClass("calculated"),t.nectarOptions&&t.nectarOptions.header_entrance&&"true"==t.nectarOptions.header_entrance&&(0==be.scrollTop?e("#header-outer").addClass("entrance-animation"):e("#header-outer").css("opacity","1")),0==e("#nectar_fullscreen_rows").length&&0==e(".nectar-box-roll").length?sn():e("#nectar_fullscreen_rows").length>0&&0==ue&&sn()}e.fn.dlmenu=function(t){if("string"==typeof t){var a=Array.prototype.slice.call(arguments,1);this.each(function(){var n=e.data(this,"menu");n?e.isFunction(n[t])&&"_"!==t.charAt(0)?n[t].apply(n,a):Ja("no such method '"+t+"' for menu instance"):Ja("cannot call methods on menu prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var a=e.data(this,"menu");a?a._init():a=e.data(this,"menu",new e.DLMenu(t,this))});return this},dn.prototype.events=function(){this.$toggleBtn.on("click",this.toggle.bind(this)),this.$sidebar.find(".nectar-close-btn-wrap").on("click",this.mobileToggle.bind(this)),e(t).on("smartresize",this.mobileToggleResize.bind(this))},dn.prototype.mobileToggleResize=function(){this.$sidebar.hasClass("open")&&be.winW>999&&(this.$sidebar.removeClass("open"),this.$sidebar.find(".nectar-close-btn-wrap").removeClass("open"),e(".container-wrap").css("z-index","11"))},dn.prototype.mobileToggle=function(){return this.$sidebar.hasClass("open")?(this.$sidebar.removeClass("open"),this.$sidebar.find(".nectar-close-btn-wrap").removeClass("open"),e(".container-wrap").css("z-index","11")):(e(".container-wrap").css("z-index","10000"),this.$sidebar.addClass("open"),this.$sidebar.find(".nectar-close-btn-wrap").addClass("open")),!1},dn.prototype.toggle=function(){if(be.winW<1e3)return this.mobileToggle(),!1;var a="";return"true"==this.state.open?(this.state.open="false",a="false",this.$toggleBtn.find(".hide").hide(),this.$toggleBtn.find(".show").show(),this.$toggleBtn.find(".top-line, .bottom-line").css({transform:"translateX(0)"}),"left"==this.sidebarPos?this.$sidebar.css({"margin-right":"-25%",opacity:"0"}):this.$sidebar.css({"margin-left":"-25%",opacity:"0"}),this.$sidebar.find("> .inner").css({transform:"left"==this.sidebarPos?"translateX(-100%)":"translateX(100%)"})):(this.state.open="true",a="true",this.$toggleBtn.find(".show").hide(),this.$toggleBtn.find(".hide").show(),this.$toggleBtn.find(".top-line").css({transform:"translateX(10px)"}),this.$toggleBtn.find(".bottom-line").css({transform:"translateX(-10px)"}),"left"==this.sidebarPos?this.$sidebar.css({"margin-right":"0",opacity:"1"}):this.$sidebar.css({"margin-left":"0",opacity:"1"}),this.$sidebar.find("> .inner").css({transform:"translateX(0)"})),setTimeout(function(){e(t).trigger("nectar-product-filters-layout")},425),"undefined"!=typeof Storage&&localStorage.setItem("nectar_product_filters_vis",a),!1},dn.prototype.setup=function(){if(this.$sidebar.find(".widget.woocommerce").addClass("open-filter").find("ul").css({display:"block"}),this.$sidebar.find(".widget.woocommerce.widget_product_tag_cloud").find("div.tagcloud").css({display:"block"}),this.$sidebar.find(".widget.woocommerce.widget_layered_nav > .woocommerce-widget-layered-nav-dropdown").length>0&&this.$sidebar.find(".widget.woocommerce.widget_layered_nav > .woocommerce-widget-layered-nav-dropdown").css({display:"block"}),e(".nectar-active-product-filters").length>0){var t=e(".nectar-active-product-filters").clone();this.$sidebar.find("> .inner").prepend(t)}},dn.prototype.getLS=function(){return"undefined"!=typeof Storage?localStorage.getItem("nectar_product_filters_vis"):null},cn.prototype.updateState=function(e){var t=0;!0===this.checkMiniCart(this.$qty)&&(t=this.$qty.attr("name").match(/cart\[(\w+)\]/)[1]);var a=parseFloat(this.$qty.val());a&&""!==a&&"NaN"!==a||(a=0);var n=parseFloat(this.$qty.attr("max")),i=parseFloat(this.$qty.attr("min"));(""===n||"NaN"===n||isNaN(n))&&(n=""),(""===i||"NaN"===i||isNaN(i))&&(i=0),this.state={currentVal:a,max:n,min:i,key:t}},cn.prototype.events=function(){var t=this;e("body").on("click",".quantity .plus",function(){0==e(this).parents(".auction_form").length&&(t.$qty=e(this).closest(".quantity").find(".qty"),t.setStep(),t.updateState(),t.increment(e(this)))}),e("body").on("click",".quantity .minus",function(){0==e(this).parents(".auction_form").length&&(t.$qty=e(this).closest(".quantity").find(".qty"),t.setStep(),t.updateState(),t.decrement(e(this)))}),e("body").on("keyup",".woocommerce-mini-cart .quantity .qty",function(a){t.$qty=e(this),t.updateState(),t.state.max&&t.$qty.val()>t.state.max&&t.$qty.val(t.state.max),t.state.min&&(t.state.min==t.state.currentVal||t.state.currentVal<t.state.min)&&(t.state.removeFlag=!0),e(this).trigger("change")}),e("body").on("change",".woocommerce-mini-cart .quantity .qty",function(e){e.originalEvent||!0!==t.checkMiniCart(t.$qty)||t.updateCart(t.$qty.val())})},cn.prototype.setStep=function(){if(this.$qty.is("[step]")){var e=parseInt(this.$qty.attr("step"));isNaN(e)||""==e||0==e||(this.step=e)}},cn.prototype.increment=function(){this.state.max&&(this.state.max==this.state.currentVal||this.state.currentVal>this.state.max)?this.$qty.val(this.state.max):this.$qty.val(this.state.currentVal+parseFloat(this.step)),this.$qty.trigger("change")},cn.prototype.decrement=function(){this.state.min&&(this.state.min==this.state.currentVal||this.state.currentVal<this.state.min)?(this.$qty.val(this.state.min),this.state.removeFlag=!0):this.state.currentVal>0&&this.$qty.val(this.state.currentVal-parseFloat(this.step)),this.$qty.trigger("change")},cn.prototype.checkMiniCart=function(e){return e.parents(".woocommerce-mini-cart").length>0},cn.prototype.updateQuantityCallback=function(n,i){e(t).trigger("nectar_woo_mini_cart_updated"),i.$qty.closest(".widget_shopping_cart_content").removeClass("loading"),i.$qty.closest(".woocommerce-mini-cart-item").removeClass("blockUI").removeClass("blockOverlay");var s=i.$qty.closest(".widget_shopping_cart_content").find(".woocommerce-mini-cart__total");if(s.find(".woocommerce-Price-amount, .tax_label").remove(),s.append(n.subtotal),t.nectarOptions&&t.nectarOptions.woo_using_cart_addons&&"true"===t.nectarOptions.woo_using_cart_addons&&n.item_price&&n.item_price.length>0){var r=e(n.item_price),o=i.$qty.closest(".woocommerce-mini-cart-item").find(".product-price");r.text()!==o.find(".woocommerce-Price-amossunt").text()&&(o.find(".woocommerce-Price-amount, > del, > ins").remove(),o.prepend(n.item_price))}!0===i.state.removeFlag&&(i.$qty.closest(".woocommerce-mini-cart-item").remove(),i.state.removeFlag=!1,e(a.body).trigger("updated_wc_div")),e("#header-outer a.cart-contents .cart-wrap span").length>0&&e("#header-outer a.cart-contents .cart-wrap span").text(n.item_count),e("#header-outer #mobile-cart-link .cart-wrap span").length>0&&e("#header-outer #mobile-cart-link .cart-wrap span").text(n.item_count)},cn.prototype.updateCart=function(a){var n=this;clearTimeout(this.ajaxTimeout),this.ajaxTimeout=setTimeout(function(){n.$qty.closest(".widget_shopping_cart_content").addClass("loading"),n.$qty.closest(".woocommerce-mini-cart-item").addClass("blockUI").addClass("blockOverlay");var i={type:"POST",url:t.nectarLove.ajaxurl,data:{action:"nectar_minicart_update_quantity",quantity:a,item_key:n.state.key},cache:!1,success:function(e){e&&n.updateQuantityCallback(e,n)}};e.ajax(i),t.nectarOptions&&t.nectarOptions.woo_using_cart_addons&&"true"===t.nectarOptions.woo_using_cart_addons&&setTimeout(function(){e.ajax(i)},1e3)},this.ajaxTimeoutDur)},hn.prototype.events=function(){e("body").on("click","form.cart .single_add_to_cart_button",this.addToCartAJAX.bind(this))},hn.prototype.addNotices=function(t){var a=e(".nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart_content");e.each(t,function(e,t){a.prepend('<div class="nectar-notice">'+t.notice+"</div>")}),setTimeout(function(){a.find(".nectar-notice").slideUp(function(){e(this).remove()})},6e3)},hn.prototype.addToCartAJAX=function(a){var n=this,i=e(a.currentTarget).parents("form.cart");if(!(i.closest(".product").hasClass("product-type-external")||wc_add_to_cart_params&&"yes"===wc_add_to_cart_params.cart_redirect_after_add)&&(a.preventDefault(),1!=n.state.processing)){n.state.processing=!0,n.state.productID=!1,n.state.type="regular",i.parents(".nectar-quick-view-box").length>0&&(n.state.type="quickview");var s=i.closest(".product"),r=i.find("button.single_add_to_cart_button"),o=i.serializeArray(),l=0;s.is('[id*="product-"]')&&(l=s.attr("id").match(/\d+/))&&l[0]&&(n.state.productID=l[0]),!1===n.state.productID&&r.length>0&&(l=r.val().match(/\d+/))&&l[0]&&(n.state.productID=l[0]),!1!==n.state.productID?("quickview"===n.state.type&&(r=e(".single_add_to_cart_button_wrap .single_add_to_cart_button")),r.prepend('<div class="loading-wrap"><div class="loading" /></div></div>'),setTimeout(function(){r.addClass("processing")},50),o.push({name:"action",value:"nectar_ajax_add_to_cart"},{name:"add-to-cart",value:n.state.productID}),e.ajax({type:"POST",url:t.nectarLove.ajaxurl,data:o,cache:!1,success:function(t){setTimeout(function(){n.state.processing=!1,r.removeClass("processing"),r.find(".loading-wrap").remove()},300),t&&t.fragments&&(e("body").trigger("added_to_cart",[t.fragments,t.cart_hash]),t.notices&&t.notices.length>0&&setTimeout(function(){n.addNotices(t.notices)},100),"quickview"===n.state.type&&e(".nectar-quick-view-box .close").trigger("click"))}})):console.log("Error: no product ID found.")}},fn.prototype.setup=function(){this.$container=e('<div class="inner"></div>'),e("#search-outer").append(e('<div class="nectar-ajax-search-results"><div class="container"></div></div>')),this.$parent=e("#search-outer .nectar-ajax-search-results"),e("#search-outer .nectar-ajax-search-results .container").append(this.$container)},fn.prototype.events=function(){var a,n,i,s=this;this.throttled=(a=this.getResults.bind(this),n=350,i=!1,function(){i||(a.call(),i=!0,setTimeout(function(){i=!1},n))}),this.$el.on("keyup",this.keyHandle.bind(this)),e(t).on("resize",this.resize.bind(this)),e(t).on("nectar-search-close",function(){s.resetHeight(),s.requestCheck()})},fn.prototype.keyHandle=function(e){-1==[16,91,32,37,39,17].indexOf(e.keyCode)&&(this.throttled(),this.debouncedSearch())},fn.prototype.debouncedSearch=function(){var e=this;clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.state.requesting||e.getResults()},400)},fn.prototype.resize=function(){this.$parent.css({"max-height":""}),!0===this.state.open&&this.$parent.css({"max-height":parseInt(this.$container.outerHeight())+"px"})},fn.prototype.resetHeight=function(){this.$parent.css({"max-height":""}),setTimeout(function(){d.removeClass("results-shown")},400),this.state.prevResults="",this.state.open=!1},fn.prototype.requestCheck=function(){!0===this.state.requesting&&(this.request.abort(),this.state.requesting=!1)},fn.prototype.getResults=function(){var a=this,n=this.$el.val();if(0==n.length||n.length<this.minChars)return d.removeClass("results-shown"),this.requestCheck(),void this.resetHeight();this.request=e.ajax({type:"POST",url:t.nectarLove.ajaxurl,data:{action:"nectar_ajax_ext_search_results",search:n},cache:!1,success:function(t){a.state.requesting=!1,t||a.resetHeight(),t&&t.content&&t.content!==a.state.prevResults&&a.$searchEl.hasClass("material-open")&&(a.$container.html(t.content),a.$parent.css({"max-height":parseInt(a.$container.outerHeight())+"px"}),setTimeout(function(){d.addClass("results-shown")},200),be.winW>=1e3&&!d.hasClass("results-shown")&&(a.$container.find(".product, .search-post-item").css({opacity:"0",transform:"translateY(25px)",transition:"none"}),setTimeout(function(){a.$container.find(".product, .search-post-item").css({transition:"box-shadow 0.25s ease, opacity 0.55s cubic-bezier(0.2, 0.6, 0.4, 1), transform 0.55s cubic-bezier(0.2, 0.6, 0.4, 1)"})},50),a.$container.find(".product, .search-post-item").each(function(t){var a=e(this);setTimeout(function(){a.css({opacity:"1",transform:"translateY(0)"})},50+60*t)})),a.state.open=!0,a.state.prevResults=t.content)}}),this.state.requesting=!0};var wn={timeoutQueued:!1,visible:!0,init:!1,raf:"",bodyOffsetHeight:1e4};function yn(){var t=0,n=0==$&&e('#page-header-bg[data-parallax="1"]').length>0?200:60,s=2,r=e('.page-submenu[data-sticky="true"]').length>0;wn.bodyOffsetHeight=a.body.offsetHeight,0==wn.init&&setInterval(function(){1!=ye.materialOffCanvasOpen&&(wn.bodyOffsetHeight=a.body.offsetHeight)},1500),wn.raf=requestAnimationFrame(function a(){d[0].classList.add("detached");var o=be.scrollTop,l=Math.abs(o-t);if(1==ye.animatedScrolling||1==ye.preventScroll||1==ye.ocmOpen)return o>n&&(1==ye.animatedScrolling&&1==$&&0==ye.permanentTransHeader&&d.removeClass("transparent").addClass("scrolling"),t=be.scrollTop,o=be.scrollTop),void(wn.raf=requestAnimationFrame(a));if(1==ye.materialOffCanvasOpen||1==ye.materialSearchOpen)return 1==ye.materialSearchOpen&&1==$&&(0==ye.permanentTransHeader&&o>n?d.removeClass("transparent").addClass("scrolling"):d.addClass("transparent").removeClass("scrolling")),void(wn.raf=requestAnimationFrame(a));if(!d.hasClass("side-widget-open")&&!e("#header-outer .slide-out-widget-area-toggle a").hasClass("animating")){var h;if(c.length>0&&(o>n?(c.addClass("hide-up"),d.css("transform","translateY(-"+be.secondaryHeaderHeight+"px)")):(c.removeClass("hide-up"),d.css("transform","0px)"))),o>n)0==ye.permanentTransHeader&&(0==wn.timeoutQueued&&setTimeout(function(){0==ye.ocmOpen&&(d.removeClass("transparent"),d.addClass("scrolling")),wn.timeoutQueued=!1},400),wn.timeoutQueued=!0),d.removeClass("no-transition"),l>=s&&(o>t?(d.hasClass("invisible")||(d.addClass("invisible").removeClass("at-top"),be.winW>1e3&&e(".sf-menu").length>0&&e().superfish&&(e(".sf-menu").superfish("hide"),e("header#top nav > ul.sf-menu > li.menu-item-over").removeClass("menu-item-over"))),1==r&&e(".page-submenu.stuck").css("transform","translateY(0px)").addClass("header-not-visible")):(d.hasClass("invisible")&&d.removeClass("invisible"),1==r&&(h=d.outerHeight(),c.length>0&&(h-=be.secondaryHeaderHeight),f.length>0&&be.winW>999?(i=pe?f.height():0,e(".page-submenu.stuck").css("transform","translateY("+(h-i)+"px)").removeClass("header-not-visible")):e(".page-submenu.stuck").css("transform","translateY("+h+"px)").removeClass("header-not-visible"))));else{var u=c.length>0?32:0;M&&(u+=10),f.length>0&&(u=c.length>0?32+f.height():f.height()),o<=u&&(d.addClass("at-top").removeClass("invisible").removeClass("scrolling"),be.winW>999&&e('#header-outer[data-megamenu-rt="1"]').length>0&&1==$&&e("#header-outer .megamenu").length>0?0==e(".nectar-box-roll").length&&0==e(".megamenu.sfHover:not(.width-75):not(.width-50)").length?d.addClass("transparent").css("transform","translateY(0)").removeClass("no-transition"):e(".nectar-box-roll").length>0&&d.css("transform","translateY(0)").addClass("at-top-before-box"):1==$&&0==ge.inUse?d.addClass("transparent").css("transform","translateY(0)"):1==ge.inUse&&d.css("transform","translateY(0)").addClass("at-top-before-box"))}be.winH+be.scrollTop+30>=wn.bodyOffsetHeight&&(d.removeClass("invisible"),1==r&&(h=d.outerHeight(),c.length>0&&(h-=be.secondaryHeaderHeight),f.length>0&&be.winW>999?(i=pe?f.height():0,e(".page-submenu.stuck").css("transform","translateY("+(h-i)+"px)").removeClass("header-not-visible")):e(".page-submenu.stuck").css("transform","translateY("+h+"px)").removeClass("header-not-visible")))}t=o,wn.raf=requestAnimationFrame(a)}),0==wn.init&&(wn.init=!0)}function _n(){var t=be.scrollTop,a=be.winW,n=30;1!=$||be.usingMobileBrowser||(n=M?30:0),t>n&&a>=1e3&&0==e("body.material-ocm-open").length&&(r.is(".material")&&(0==e("#search-outer.material-open").length&&e('#header-outer[data-transparent-header="true"] .bg-color-stripe').css("transition","none"),c.length>0&&(c.addClass("hide-up"),d.css("transform","translateY(-"+be.secondaryHeaderHeight+"px)"))),e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&e("#header-outer .megamenu").length>0?"true"==d.attr("data-transparent-header")&&0==e("#header-outer.side-widget-open").length&&0==e('#header-outer[data-permanent-transparent="1"]').length&&0==e(".megamenu.sfHover:not(.width-75):not(.width-50)").length&&(d.removeClass("transparent"),d.removeClass("no-transition")):"true"==d.attr("data-transparent-header")&&0==e("#header-outer.side-widget-open").length&&0==e('#header-outer[data-permanent-transparent="1"]').length&&d.removeClass("transparent"),e("#header-outer:not(.small-nav) header#top nav > ul > li.menu-item-with-margin").stop(!0,!0).animate({"margin-right":parseInt(e("header#top nav > ul > li.menu-item-with-margin").css("margin-right"))-3*parseInt(_)+"px"},{queue:!1,duration:250,easing:"easeOutCubic"}),e("#header-outer, #search-outer").addClass("small-nav"),e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&f.length>0&&1==pe&&e('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({padding:"0"},{queue:!1,duration:250,easing:"easeOutCubic"}),e(".nectar-box-roll").length>0&&0==e('#header-outer[data-permanent-transparent="1"]').length&&e("#ajax-content-wrap").animate({"margin-top":Math.floor(w-_+2*y/1.8+be.adminBarHeight+be.secondaryHeaderHeight)},{queue:!1,duration:250,easing:"easeOutCubic"}),s.off("scroll.headerResizeEffect",_n),s.on("scroll.headerResizeEffect",Cn),e('#header-outer[data-transparent-header="true"]').css("transition","transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out, backdrop-filter 0.25s ease"),e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition","none"),setTimeout(function(){e('#header-outer[data-transparent-header="true"]').css("transition","transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out, backdrop-filter 0.25s ease"),e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition","border-color 0.30s ease")},300))}function Cn(){var t=be.scrollTop,a=be.winW,n=30;if(r.is(".material-ocm-open"))return!1;1!=$||be.usingMobileBrowser||(n=M?30:0),(t<=n&&a>=1e3||e(".small-nav").length>0&&e("#ajax-content-wrap.no-scroll").length>0)&&(e("#header-outer, #search-outer").removeClass("small-nav"),e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&e("#header-outer .megamenu").length>0?"true"==d.attr("data-transparent-header")&&0==e(".nectar-box-roll").length&&0==e(".megamenu.sfHover:not(.width-75):not(.width-50)").length&&(d.addClass("transparent"),d.removeClass("no-transition")):"true"==d.attr("data-transparent-header")&&0==e(".nectar-box-roll").length&&d.addClass("transparent"),e('#header-outer[data-full-width="true"][data-transparent-header="true"]').length>0&&f.length>0&&1==pe&&e('#header-outer[data-full-width="true"] header > .container').stop(!0,!0).animate({padding:"0 28px"},{queue:!1,duration:250,easing:"easeOutCubic"}),e("header#top nav > ul > li.menu-item-with-margin").stop(!0,!0).animate({"margin-right":parseInt(e("header#top nav > ul > li.menu-item-with-margin").css("margin-right"))+3*parseInt(_)+"px"},{queue:!1,duration:150,easing:"easeOutCubic"}),c.length>0&&(c.removeClass("hide-up"),d.removeClass("hide-up").css("transform","translateY(0%)")),e(".nectar-box-roll").length>0&&0==e('#header-outer[data-permanent-transparent="1"]').length&&e("#ajax-content-wrap").animate({"margin-top":Math.floor(w+2*y+be.adminBarHeight+be.secondaryHeaderHeight)},{queue:!1,duration:250,easing:"easeOutCubic"}),s.off("scroll.headerResizeEffect",Cn),s.on("scroll.headerResizeEffect",_n),e('#header-outer[data-transparent-header="true"]').css("transition","transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, margin 0.25s ease-out, backdrop-filter 0.25s ease"),e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition","none"),setTimeout(function(){e('#header-outer[data-transparent-header="true"]').css("transition","transform 0.3s ease, background-color 0.30s ease, opacity 0.3s ease, box-shadow 0.30s ease, border-color 0.30s ease, margin 0.25s ease-out, backdrop-filter 0.25s ease"),e('#header-outer[data-transparent-header="true"] .cart-menu').css("transition","border-color 0.30s ease")},300))}function xn(){e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&!d.hasClass("within-custom-breakpoint")||be.scrollTop>=1&&(e("body.material").length>0&&(d.addClass("scrolled-down"),c.length>0&&be.winW>1e3&&(c.addClass("hide-up"),d.css("transform","translateY(-"+be.secondaryHeaderHeight+"px)"))),"true"==d.attr("data-transparent-header")&&0==e('#header-outer[data-permanent-transparent="1"]').length&&d.removeClass("transparent").addClass("scrolled-down"),s.off("scroll.headerResizeEffectOpaque",xn),s.on("scroll.headerResizeEffectOpaque",kn))}function kn(){e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&!d.hasClass("within-custom-breakpoint")||be.scrollTop<1&&0==e("body.material-ocm-open").length&&(e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&e("#header-outer .megamenu").length>0?"true"==d.attr("data-transparent-header")&&0==e(".megamenu.sfHover:not(.width-75):not(.width-50)").length?(d.addClass("transparent").removeClass("scrolled-down"),d.removeClass("no-transition")):"true"==d.attr("data-transparent-header")&&d.removeClass("scrolled-down"):"true"==d.attr("data-transparent-header")&&d.addClass("transparent").removeClass("scrolled-down"),e("body.material").length>0&&(d.removeClass("scrolled-down"),c.length>0&&be.winW>1e3&&(c.removeClass("hide-up"),d.removeClass("hide-up").css("transform","translateY(0%)"))),s.off("scroll.headerResizeEffectOpaque",kn),s.on("scroll.headerResizeEffectOpaque",xn))}function $n(){1!=ye.materialOffCanvasOpen?(be.scrollTop>5?"scrolled"!=ye.mobileHeader&&(0==ye.permanentTransHeader&&d.removeClass("transparent"),be.secondaryHeaderHeight>0?(c.addClass("hide-up"),d.css("transform","translateY(-"+be.secondaryHeaderHeight+"px)").addClass("hidden-secondary")):d.removeClass("hidden-secondary"),d.addClass("scrolled-down"),ye.mobileHeader="scrolled"):"at-top"!=ye.mobileHeader&&("true"==d.attr("data-transparent-header")&&d.addClass("transparent"),be.secondaryHeaderHeight>0&&(c.removeClass("hide-up"),d.css("transform","translateY(0px)")),d.removeClass("hidden-secondary").removeClass("scrolled-down"),ye.mobileHeader="at-top"),be.winW<1e3&&requestAnimationFrame($n)):requestAnimationFrame($n)}function Tn(){be.winW>999||(ye.mobileHeader="",s.off("scroll.headerResizeEffect"),s.off("scroll.headerResizeEffectOpaque"),"1"==I&&e('#header-outer[data-mobile-fixed="1"]').length>0?(e(".nectar-box-roll").length>0&&d.addClass("at-top-before-box"),cancelAnimationFrame(wn.raf),wn.timeoutQueued=!1,yn()):e('#header-outer[data-mobile-fixed="1"]').length>0?(requestAnimationFrame($n),cancelAnimationFrame(wn.raf),d.removeClass("scrolled-down").removeClass("detached").removeClass("invisible").removeClass("at-top").css("transform","none")):"true"==d.attr("data-transparent-header")&&d.addClass("transparent"),s.off("smartresize.nectarNavScrollEffects"),s.on("smartresize.nectarNavScrollEffects",In))}function In(){be.winW<1e3||(1==k&&"1"!=I?(s.off("scroll.headerResizeEffect"),0==e("#nectar_fullscreen_rows").length?s.on("scroll.headerResizeEffect",_n):e('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&be.usingMobileBrowser&&s.on("scroll.headerResizeEffect",_n)):"1"!=I?(s.off("scroll.headerResizeEffectOpaque"),s.on("scroll.headerResizeEffectOpaque",xn)):"1"==I&&(e(".nectar-box-roll").length>0&&d.addClass("at-top-before-box"),0==e('#header-outer[data-remove-fixed="1"]').length?(cancelAnimationFrame(wn.raf),yn()):(cancelAnimationFrame(wn.raf),wn.timeoutQueued=!0,"true"==d.attr("data-transparent-header")&&0==e('body.material #header-outer[data-condense="true"]').length&&d.hasClass("detached")&&d.addClass("transparent"),d.removeClass("scrolled-down").removeClass("detached").removeClass("invisible").removeClass("at-top").css("transform","none"))),e('#header-outer[data-format="centered-menu-bottom-bar"][data-condense="true"]').length>0&&(c.length>0&&d.css("transform",""),be.scrollTop>200&&!d.hasClass("fixed-menu")&&d.addClass("fixed-menu")),s.off("smartresize.nectarNavScrollEffects"),s.on("smartresize.nectarNavScrollEffects",Tn))}function En(){if(e(".mobile").length>0)be.winH<be.winW&&be.winW>1e3?0==e("#header-outer.small-nav").length&&e("#header-space").css("height",d.outerHeight()).addClass("calculated"):e("#header-space").css("height",d.outerHeight()).addClass("calculated");else if(0==e(".nectar-parallax-scene.first-section").length){var t=y-y/1.8,a=e('#header-outer[data-header-resize="1"]').length>0&&e(".small-nav").length>0?d.outerHeight()+(parseInt(_)+2*t):d.outerHeight();Math.abs(a-e("#header-space").height())>7&&e("#header-space").css("height",a).addClass("calculated")}}function On(){var t=-1,a=-1,n=be.scrollTop;function i(){if(!r.hasClass("compose-mode")){if(n=be.scrollTop,t==n)return requestAnimationFrame(i),!1;t=n,o(),requestAnimationFrame(i)}}function o(){var t=0;if(be.winW<1e3||1==C&&"none"==e("#header-outer .span_9").css("display")||1==C&&"none"==e("#header-outer .span_9 > nav").css("display")){t=0;var a="fixed"==u.css("position")?u.height():0;(t+=be.adminBarHeight)-n>a?d.css("top",t-n+"px"):d.css("top",a)}else 0==C&&(t=0,d.is('[data-remove-fixed="1"]')||(t+=be.adminBarHeight),d.css("top",t+"px"))}function l(){var e=0;e+=F,d[0].style.marginTop=e-n>0?e-n+"px":"0px"}e('#header-outer[data-mobile-fixed="1"]').length>0&&u.length>0&&(0==e("#nectar_fullscreen_rows").length?requestAnimationFrame(i):e("#nectar_fullscreen_rows").length>0&&be.usingMobileBrowser&&requestAnimationFrame(i),s.on("smartresize",o)),W&&(0==e("#nectar_fullscreen_rows").length&&requestAnimationFrame(function e(){if(r.hasClass("compose-mode"))return;if(0==B&&be.winW<1e3)return requestAnimationFrame(e),d.css("margin-top","0"),!1;n=be.scrollTop;if(a==n)return requestAnimationFrame(e),!1;a=n;l();requestAnimationFrame(e)}),s.on("smartresize",l))}function zn(){var t=0,a=0;if(d.is("[data-logo-height]")&&d.is("[data-padding]")?d.hasClass("transparent")||(t="centered-menu-bottom-bar"==d.attr("data-format")&&be.winW>1e3?d.outerHeight():d.find("#logo.no-image").length>0?"left-header"==T&&be.winW>1e3?0:parseInt(d.find("#logo.no-image").height())+parseInt(2*d.attr("data-padding")):"left-header"==T&&be.winW>1e3?0:parseInt(d.attr("data-logo-height"))+parseInt(2*d.attr("data-padding"))):t="left-header"==T&&be.winW>1e3?0:d.outerHeight(),g.length>0&&(a+=g.height()),e(".page-header-no-bg").length>0&&(a+=e(".page-header-no-bg").height()),be.winH-be.adminBarHeight-t-be.footerOuterHeight-1-a>0){var n=e('body:not(.material) #header-outer[data-header-resize="1"]').length>0?55:0;e('body[data-footer-reveal="1"]:not(.nectar_using_pfsr) .container-wrap').css({"margin-bottom":be.footerOuterHeight}),e(".container-wrap").css({"min-height":be.winH-be.adminBarHeight-t-be.footerOuterHeight-a+n})}else e('body[data-footer-reveal="1"]:not(.nectar_using_pfsr) .container-wrap').css({"margin-bottom":be.footerOuterHeight});be.winW<1e3?m.attr("data-midnight","light"):m.removeAttr("data-midnight")}function Hn(){(e('body[data-footer-reveal="1"]').length>0||e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0)&&(setTimeout(zn,60),zn(),s.on("resize",zn),e('body[data-footer-reveal="1"][data-footer-reveal-shadow="large_2"]').length>0&&e(".container-wrap").css({boxShadow:"0 70px 110px -30px "+m.css("backgroundColor")}))}function Sn(e){this.$el=e,this.offsetTop=0,this.fullHeight=100,this.storedWinH=be.winH,this.events(),this.calculate()}function An(){ce=[],e(".vc_row-o-full-height").each(function(t){ce[t]=new Sn(e(this))})}function Mn(){var a=t.navigator.userAgent.indexOf("MSIE ");(a>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&e(".vc_row-o-full-height").each(function(){"flex"===e(this).find("> .span_12").css("display")&&e(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),(a>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&(Wn(),e(t).on("resize",Wn))}function Wn(){e(".img-with-aniamtion-wrap img.img-with-animation").each(function(){if(0==e(this).parents(".tabbed").length&&0==e(this).parents(".toggle").length){var t=e(this).parents(".img-with-aniamtion-wrap");t.css({height:""});var a=e(this).height();t.css({height:a})}})}function Bn(){e(".nectar-recent-posts-slider").each(function(){var t=parseInt(e(this).attr("data-height")),a=e('body[data-ext-responsive="true"]').length>0?s.width()/1400:s.width()/1100,n=e(this).find(".nectar-recent-post-slide, .flickity-viewport");if(be.winW>1e3&&0==e("#boxed").length)0==e(this).parents(".full-width-content").length?e('body[data-ext-responsive="true"]').length>0&&be.winW>=1400?n.css("height",Math.ceil(t)):0==e('body[data-ext-responsive="true"]').length&&be.winW>=1100?n.css("height",Math.ceil(t)):n.css("height",Math.ceil(t*a)):n.css("height",Math.ceil(t*a));else{var i=e(this).parents(".wpb_column").length>0?e(this).parents(".wpb_column"):e(this).parents(".col");if(0==i.length&&(i=e(".main-content")),i.hasClass("vc_span12")||i.hasClass("main-content")||i.hasClass("span_12")||i.hasClass("vc_col-sm-12"))t*a<=250?n.css("height",250):n.css("height",Math.ceil(t*a));else{var r=t/function(t){var a=1100,n=e(t).attr("class").match(/\d+/);"2"==n?a=170:"3"==n?a=260:"4"==n?a=340:"6"==n?a=530:"8"==n?a=700:"9"==n?a=805:"10"==n?a=916.3:"12"==n&&(a=1100);return a}(i);r*i.width()<=250?n.css("height",250):n.css("height",r*i.width())}}})}function Fn(){e(".nectar-recent-posts-single_featured.multiple_featured").each(function(){var t=e(this).find(".project-slides").length>0?".project-slide":".nectar-recent-post-slide",a=e(this).find(".project-slides").length>0?".project-info h1":".inner-wrap .large-featured-post-title a";e(this).find(t).each(function(){e(this).find(a).each(function(){var t=e(this).text();t=(t=t.trim()).split(" "),e(this)[0].innerHTML="";for(var a=0;a<t.length;a++)e(this)[0].innerHTML+="<span>"+t[a]+"</span> "}),e(this).find(a+" > span").wrapInner('<span class="inner" />')})})}function Ln(t,a){t.find(".nectar-split-heading > * > span").each(function(t){var a=e(this).find("> .inner");setTimeout(function(){a[0].style.transform="translateY(0em)",a[0].style.opacity="1"},40*t)});var n=40*t.find(".nectar-split-heading > * > span").length;setTimeout(function(){a()},n+1400)}function qn(t){t.find(".nectar-split-heading").each(function(t){var a=e(this).text();e(this).addClass("effect-removed"),e(this)[0].innerHTML=a})}function Pn(t){var a=t.hasClass("animated-in")?" animated":"";t.find("> *").each(function(){var t=e(this).text();t=(t=t.trim()).split(" "),e(this)[0].innerHTML="";for(var n=0;n<t.length;n++)e(this)[0].innerHTML+='<span><span class="inner'+a+'">'+t[n]+"</span></span> ";e(this).attr("aria-label",e(this).text())}),t.addClass("markup-generated")}function jn(){(e('.nectar-split-heading[data-animation-type="line-reveal-by-space"]').length>0||e('.nectar-split-heading[data-animation-type="letter-fade-reveal"]').length>0)&&(e('.nectar-split-heading[data-animation-type="line-reveal-by-space"]:not([data-text-effect="none"])').each(function(){Pn(e(this))}),e('.nectar-split-heading[data-animation-type="line-reveal-by-space"][data-text-effect*="letter-reveal"]').each(function(){if(e(this).is('[data-m-rm-animation="true"]')&&be.winW<1e3)return!0;var t=e(this).hasClass("animated-in")?' style="transform: none;"':"";e(this).find("> *").each(function(){var t=e(this).text();t=(t=t.trim()).split(" "),e(this)[0].innerHTML="";for(var a=0;a<t.length;a++)e(this)[0].innerHTML+="<span>"+t[a]+"</span> ";e(this).attr("aria-label",e(this).text())}),e(this).find("span").each(function(){var a=e(this),n=e(this).text().split("");a.empty(),e.each(n,function(e,n){a.append('<span class="inner"'+t+">"+n+"</span>")})}),e(this).addClass("markup-generated")}))}function Yn(){if(e(".nectar-recent-posts-slider-inner").length>0){var t=e(".nectar-recent-posts-slider_multiple_visible").length>0&&"90%",a=e(".nectar-recent-posts-slider-inner").flickity({contain:!0,groupCells:t,draggable:!0,lazyLoad:!1,imagesLoaded:!0,percentPosition:!0,prevNextButtons:!1,pageDots:!0,resize:!0,setGallerySize:!0,wrapAround:!0,dragThreshold:be.usingMobileBrowser?25:3,accessibility:!1});setTimeout(function(){e(".nectar-recent-posts-slider-inner").addClass("loaded")},1150);var n;a.data("flickity");a.on("dragStart.flickity",function(){e(".flickity-viewport").addClass("is-moving")}),a.on("dragEnd.flickity",function(){e(".flickity-viewport").removeClass("is-moving")}),a.on("select.flickity",function(){e(".flickity-viewport").addClass("no-hover"),clearTimeout(n),n=setTimeout(function(){e(".flickity-viewport").removeClass("no-hover")},400)}),Bn(),s.on("resize",Bn),be.usingMobileBrowser||be.usingFrontEndEditor||s.on("resize",Vn)}e(".nectar-recent-posts-single_featured.multiple_featured").each(function(t){e(this).find("> .normal-container").length>0&&e(this).find("> .normal-container").remove(),e(this).append('<div class="normal-container container"> <ul class="controls" data-color="'+e(this).attr("data-button-color")+'" data-num="'+e(this).find(".nectar-recent-post-slide").length+'"></ul> </div>');var a,n=e(this),i=0;P[t]={autorotate:""},e(this).find(".nectar-recent-post-slide").each(function(t){e(this).find(".recent-post-container").height()>i&&(e(this).siblings().removeClass("tallest"),e(this).addClass("tallest"),i=e(this).find(".recent-post-container").height());var a=0==t&&e(this).parents('.nectar-recent-posts-single_featured.multiple_featured[data-autorotate="none"]').length>0?'class="active"':"";n.find(".controls").append("<li "+a+'><span class="title">'+e(this).find(".large-featured-post-title").text()+"</span></li>")}),e(this).addClass("js-loaded"),e(this).find(".controls li").on("click",function(n){if(!e(this).hasClass("active")){void 0!==n.originalEvent&&e(this).parent().find(".active").addClass("trans-out");var i=e(this).index(),s=e(this).parent().find(".active").index(),r=e(this);clearTimeout(a),e(this).siblings().removeClass("active"),e(this).addClass("active"),a=setTimeout(function(){r.parents(".multiple_featured").find(".nectar-recent-post-slide:not(:eq("+i+"))").css("opacity","0").removeClass("active"),r.parent().find(".trans-out").removeClass("trans-out")},300),r.parents(".multiple_featured").find(".nectar-recent-post-slide:not(:eq("+i+"))").css("z-index","10"),r.parents(".multiple_featured").find(".nectar-recent-post-slide:eq("+s+")").css("z-index","15"),e(this).parents(".multiple_featured").find(".nectar-recent-post-slide").eq(i).css({opacity:"1","z-index":"20"}).addClass("active"),"none"!=e(this).parents(".multiple_featured").attr("data-autorotate")&&function(e,t){if(clearInterval(P[t].autorotate),e.attr("data-autorotate").length>0){var a=parseInt(e.attr("data-autorotate"))<100?4e3:parseInt(e.attr("data-autorotate"));P[t].autorotate=setInterval(function(){Gn(e)},a)}}(r.parents(".nectar-recent-posts-single_featured.multiple_featured"),t)}}),n=e(this),e(this).attr("data-autorotate").length>0&&"none"!=e(this).attr("data-autorotate")&&0==e("body.vc_editor").length&&setTimeout(function(){var e=parseInt(n.attr("data-autorotate"))<100?4e3:parseInt(n.attr("data-autorotate"));P[t].autorotate=setInterval(function(){Gn(n)},e),n.find(".controls > li:first-child").addClass("active")},30)}),Fn(),s.on("resize",Fn)}function Rn(){e(".nectar-recent-posts-slider").each(function(){var t=parseInt(e(this).find(".flickity-slider").position().left),a=e(this).find(".nectar-recent-post-slide"),n=a.length,i=a.width(),s=e(this).find(".nectar-recent-post-slide:last-child").index(),r=e(this).find(".nectar-recent-post-slide:first-child .nectar-recent-post-bg"),o=e(this).find(".nectar-recent-post-slide:last-child .nectar-recent-post-bg");t>=-3?o.css("margin-left",parseInt(Math.ceil(i/3.5))+"px"):o.css("margin-left","-"+parseInt(Math.ceil(i/3.5*s))+"px"),Math.abs(t)>=(n-1)*i?r.css("margin-left","-"+parseInt(Math.ceil(i/3.5*n))+"px"):r.css("margin-left","0px"),e(this).find(".nectar-recent-post-bg").css("transform","translateX("+Math.ceil(e(this).find(".flickity-slider").position().left/-3.5)+"px)")}),requestAnimationFrame(Rn)}function Vn(){e(".nectar-recent-posts-slider").each(function(){var t=e(this).find(".nectar-recent-post-slide").width();e(this).find(".nectar-recent-post-slide").each(function(a){e(this).find(".nectar-recent-post-bg").css("margin-left","-"+parseInt(Math.ceil(t/3.5)*a)+"px")})})}function Xn(){e().flickity?Yn():setTimeout(function(){Yn()},200),e('.blog-recent[data-style="classic_enhanced_alt"] .inner-wrap').each(function(){e(this).find(".post-featured-img").each(function(){var t=e(this).find("img").attr("src");e(this).css("background-image","url("+t+")")})}),e('.blog-recent[data-style="classic_enhanced"]').each(function(){0==e(this).find(".inner-wrap.has-post-thumbnail").length&&e(this).addClass("no-thumbs")}),be.usingMobileBrowser||e(".nectar-recent-posts-slider").length>0&&!be.usingFrontEndEditor&&t.requestAnimationFrame(Rn),be.usingMobileBrowser||be.usingFrontEndEditor||Vn()}function Nn(){e(".style-5").each(function(){e(this).find(".sizer").insertBefore(e(this).find(".parallaxImg"))}),e(".style-5").parents(".wpb_row").css("z-index","100");var n=a,i=(n.getElementsByTagName("body")[0],t),s=n.querySelectorAll(".parallaxImg"),o=s.length,l="ontouchstart"in i||navigator.msMaxTouchPoints,d=!1;if(!(o<=0)){for(var c=0;c<o;c++){var h=s[c],u=h.querySelectorAll(".parallaxImg-layer"),p=u.length;if(!(p<=0)){for(;h.firstChild;)h.removeChild(h.firstChild);var f=0,g=80;navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge/")<1?(g=1,e("html").addClass("cssreflections")):r.addClass("cssreflections");var m=n.createElement("div"),v=n.createElement("div"),b=n.createElement("div"),w=n.createElement("div"),y=[];h.id="parallaxImg__"+c,m.className="parallaxImg-container",b.className="parallaxImg-shadow",w.className="parallaxImg-layers";for(var _=0;_<p;_++){var C=n.createElement("div"),x=n.createElement("div"),k=u[_].getAttribute("data-img");e(C).html(e(u[_]).html()),C.className="parallaxImg-rendered-layer",C.setAttribute("data-layer",_),0==_&&0==e(h).parents(".wpb_gallery").length&&(x.className="bg-img",e(h).parents(".nectar-fancy-box").length>0?(x.setAttribute("data-nectar-img-src",k),d=!0):x.style.backgroundImage="url("+k+")",C.appendChild(x)),w.appendChild(C),y.push(C)}m.appendChild(w),h.appendChild(m),e(h).wrap('<div class="parallaxImg-wrap" />'),-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")||e(h).parent().append(b),l&&e("body.using-mobile-browser").length>0||function(a,n,i,s){e(h).parents(".style-5").on("mousemove",function(r){var o=e(this),l=o.find(".parallaxImg-container"),d=o.find(".parallaxImg-shadow"),c=Date.now(),h=e(a).parents(".wpb_gallery").length>0;c>f+g&&(f=c,t.requestAnimationFrame(function(){$(r,!1,a,n,i,s,o,l,d,h)}))}),e(h).parents(".style-5").on("mouseenter",function(e){T(e,a)}),e(h).parents(".style-5").on("mouseleave",function(e){I(e,a)})}(h,y,p,v),function(e,a,n,i){E(!1,e,a,n),t.addEventListener("resize",function(){E(!1,e,a,n)})}(h,y,p)}}d&&ha()}function $(t,a,n,i,s,r,o,l,d,c){if(!e(n.firstChild).hasClass("over"))return I(t,n),!1;var h=.03,u=.063,p="1.03",f="-10",g=!1;e(n).parents(".col.wide").length>0?(h=.03,u=.063,g=!0):e(n).parents(".col.regular").length>0||e(n).parents(".wpb_gallery").length>0?(h=.045,u=.045):e(n).parents(".col.tall").length>0?(h=.05,u=.015,g=!0):e(n).parents(".col.wide_tall").length>0?(h=.04,u=.04,g=!0):o.hasClass("nectar-fancy-box")?(h=.045,u=.022,p="1.06",f="-2"):(h=.045,u=.075);var m,v=be.scrollTop,b=a?t.touches[0].pageX:t.pageX,w=a?t.touches[0].pageY:t.pageY,y=n.getBoundingClientRect(),_=n.clientWidth||n.offsetWidth||n.scrollWidth,C=n.clientHeight||n.offsetHeight||n.scrollHeight,x=320/_,k=.52-(b-y.left-0)/_,$=.52-(w-y.top-v)/C,T=w-y.top-v-C/2,E=h*x*(k-(b-y.left-0-_/2)),O=u*x*(T-$);m=1==c?" perspective("+3*_+"px) rotateX("+1.9*-O+"deg) rotateY("+1.3*-E+"deg)":0==g?" perspective("+3*_+"px) rotateX("+O+"deg) rotateY("+E+"deg)  translateY("+$*f+"px) translateX("+k*f+"px) scale("+p+")":" perspective("+3*_+"px) rotateX("+O+"deg) rotateY("+E+"deg)  translateY("+-10*$+"px) translateX("+-10*k+"px) scale(1.013)",l.css("transform",m),-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")||d.css("transform",m)}function T(t,a){a.firstChild.className+=" over",a.className+=" over",e(a).addClass("transition"),e(a).parents(".wpb_gallery").length>0?setTimeout(function(){e(a).removeClass("transition")},450):setTimeout(function(){e(a).removeClass("transition")},200)}function I(t,a){var n=a.clientWidth||a.offsetWidth||a.scrollWidth,i=a.firstChild;i.className=i.className.replace(" over",""),a.className=a.className.replace(" over",""),e(i).css("transform","perspective("+3*n+"px) rotateX(0deg) rotateY(0deg) translateZ(0)"),e(a).parents(".parallaxImg-wrap").find(".parallaxImg-shadow").css("transform","perspective("+3*n+"px) rotateX(0deg) rotateY(0deg) translateZ(0)"),e(a).addClass("transition"),setTimeout(function(){e(a).removeClass("transition")},200)}function E(t,a,n,i){for(var s=a.clientWidth||a.offsetWidth||a.scrollWidth,r=a.firstChild,o=0;o<i;o++)0==o?e(n[o]).css("transform","translateZ(0px)"):e(n[o]).css("transform","translateZ("+3*s/27*(1.1*o)+"px) ");i+=3,e(r).css("transform","perspective("+3*s+"px)")}}function Dn(){if(0==e('.nectar-fancy-box[data-style="hover_desc"]').length)return!1;var t=0;e("body").on("mouseenter touchstart",'.nectar-fancy-box[data-style="hover_desc"]',function(){t=parseInt(e(this).find(".hover-content").outerHeight(!0)),e(this).addClass("hovered"),e(this).find(".heading-wrap").css("transform","translateY(-"+t+"px)")}),e("body").on("mouseleave touchend",'.nectar-fancy-box[data-style="hover_desc"]',function(){e(this).removeClass("hovered"),e(this).find(".heading-wrap").css("transform","translateY(0)")})}function Qn(e,t){this.$el=e,this.$iconEl=this.$el.find(t),this.$innerIconEl=this.$el.find(".inner"),this.initialX=this.$el.width()/2,this.initialY=this.$el.height()/2,this.elX=0,this.elY=0,this.lastScroll=0,this.scrollAdjust=0,this.lastX=this.initialX,this.lastY=this.initialY,this.lastY2=this.initialY,this.innerLastX=0,this.innerLastY=0,this.activeFollow=!1,this.hoverOnly=!1,this.percentage=.03,this.percentageInterval,this.exitTimeout,this.$iconEl.css({top:"0",left:"0"}),s.on("resize",this.resizeEvent.bind(this)),this.mouseEvents(),this.rafLoop()}function Zn(){if(X=[],r.on("mouseenter",'.nectar_video_lightbox[data-parent-hover="1"]',function(){var t=e(this).parents(".wpb_row");t.find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").addClass("transition"),t.find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").css({transform:"scale(1.08)"})}),r.on("mouseleave",'.nectar_video_lightbox[data-parent-hover="1"]',function(){e(this).parents(".wpb_row").find("> .row-bg-wrap .row-bg, > .nectar-video-wrap .nectar-video-inner").css({transform:"scale(1)"})}),e(".nectar_video_player_self_hosted").each(function(t){!be.usingMobileBrowser&&e(this).find(".play_button.follow_mouse").length>0&&(X[t]=new Qn(e(this),".play_button.follow_mouse .play"))}),"IntersectionObserver"in t){var n=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,a=200;t.readyState>1&&(a=20),setTimeout(function(){t.pause(),t.currentTime=0,t.play()},a),n.unobserve(e.target)}})},{root:Xe()?null:a,rootMargin:"-10% 0% -10% 0%",threshold:0});e("video.scroll-triggered-play").each(function(){n.observe(e(this)[0])})}e(".nectar-video-box").each(function(t){if(e(this).find(".play_button_mouse_follow").length>0){var a=e(this);e(this).imagesLoaded(function(){be.usingMobileBrowser||(X[t]=new Qn(a,".play_button_mouse_follow"));var e=a.is("[data-mouse-icon-color]")&&a.attr("data-mouse-icon-color").length>0?a.attr("data-mouse-icon-color"):"#000";a.is('[data-mouse-style="solid_color"]')&&a.find(".play_button_mouse_follow").css({"background-color":e}),a.find(".play_button_mouse_follow").addClass("visible")})}})}function Gn(t){if(!(e("body.vc_editor").length>0)){var a=t.find(".project-slides").length>0?".dot-nav > span":".controls > li",n=t.find(".project-slides").length>0?"span":" li",i=t.find(a).length;t.find(a+".active").index()+1==i?t.find(a+":first-child").trigger("click"):t.find(a+".active").next(n).trigger("click")}}function Un(){U=[],"undefined"!=typeof SalientRecentProjectsFullScreen&&e(".nectar_fullscreen_zoom_recent_projects").each(function(t){U[t]=new SalientRecentProjectsFullScreen(e(this))})}function Jn(){if(e(".infinite_scroll").length>0){e(".portfolio-items.infinite_scroll").infinitescroll({navSelector:"#pagination",nextSelector:"#pagination a:first",itemSelector:".portfolio-items.infinite_scroll .element",finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",msgText:" "},function(t){var a=e(".portfolio-items.infinite_scroll:not(.carousel)");e(t).css("opacity",0).imagesLoaded(function(){var n;(e(t).css("opacity",1),a.isotope("appended",e(t)),e(t).find(".work-item").addClass("ajax-loaded"),e(t).addClass("ajax-loaded"),e(t).find(".work-meta, .nectar-love-wrap").css({opacity:1}),e(".portfolio-filters-inline").length>0||e(".portfolio-filters").length>0)&&(n=e(".portfolio-filters-inline").length>0?e(".portfolio-filters-inline a.active").attr("data-filter"):e(".portfolio-filters a.active").attr("data-filter"),e(".portfolio-filters-inline a.active").attr("data-filter"),a.isotope({filter:n}));for(var i=0;i<L.length;i++)L[i].reLayout();if(e(t).find(".work-item.style-5").length>0&&Nn(),"none"==e(t).find(".inner-wrap").attr("data-animation"))e(".portfolio-items .col .inner-wrap").removeClass("animated");else{for(i=0;i<L.length;i++)L[i].masonryZindex(),L[i].portfolioAccentColor();e(t).each(function(){var t=e("#nectar_fullscreen_rows").length>0?"200%":"90%",a=e(this),n=new Waypoint({element:a[0],handler:function(){var e=a.is('[data-masonry-type="photography"].masonry-items')?85:115;setTimeout(function(){a.addClass("animated-in")},e*a.attr("data-delay-amount")),n.destroy()},offset:t})})}e(".portfolio-items").each(function(){var t=et();e(this).find('a[rel^="prettyPhoto"], a.pretty_photo').attr("rel","prettyPhoto["+t+"_gal]").removeClass("pretty_photo")}),e(".portfolio-items").each(function(){var t=et();e(this).find('a[data-fancybox^="group_"]').attr("data-fancybox","group_"+t)}),ht(),setTimeout(function(){for(var a=0;a<L.length;a++)L[a].masonryZindex(),L[a].reLayout(),L[a].isotopeCatSelection();e(t).removeClass("ajax-loaded")},700),Rt()})});var t=".post-area.infinite_scroll .posts-container .post";0==e("body").find(t).length&&(t=".post-area.infinite_scroll .posts-container > article"),e(".post-area.infinite_scroll .posts-container").infinitescroll({navSelector:"#pagination",nextSelector:"#pagination a:first",itemSelector:t,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",msgText:" "},function(t){e(t).find("[data-nectar-img-src]").length>0&&ha(),e(".masonry.classic").length>0||e(".post-area:not(.masonry):not(.featured_img_left)").length>0||e(".post-area.standard-minimal").length>0?(ke(),e().mediaelementplayer&&e(t).find(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer(),ht(),e(".carousel").length>0&&(Be(),Ye()),on(),e(".testimonial_slider").animate({opacity:"1"},800),_a(),Ca(),setTimeout(function(){Ea(),Oa(),s.trigger("resize")},500),Rt(),s.trigger("resize")):(Rt(),s.trigger("resize"));var a=e(".infinite_scroll .posts-container");a.parent().hasClass("masonry")&&e(t).addClass("masonry-blog-item");var n=e(t);if(0==n.find("img").length)n=e("body");else if(Xe()){Array.from(n.find("img[srcset]")).forEach(function(e){var t=e.getAttribute("srcset");e.setAttribute("srcset",""),e.setAttribute("srcset",t)})}n.imagesLoaded(function(){a.parent().hasClass("masonry")&&!a.parent().hasClass("auto_meta_overlaid_spaced")&&a.isotope("appended",e(t));for(var n=0;n<ae.length;n++)ae[n].flickityBlogInit();if(e(t).addClass("ajax-loaded"),a.parent().hasClass("classic_enhanced")&&(a.find(".large_featured.has-post-thumbnail.ajax-loaded .post-featured-img, .wide_tall.has-post-thumbnail.ajax-loaded .post-featured-img").each(function(){var t=e(this).find("img").attr("src");e(this).css("background-image","url("+t+")")}),a.find(".large_featured.ajax-loaded .nectar-flickity, .wide_tall.ajax-loaded .nectar-flickity").each(function(){e(this).find(".cell").each(function(){var t=e(this).find("img").attr("src");e(this).css("background-image","url("+t+")")})})),"none"==e(t).parents(".posts-container").attr("data-animation"))e(t).find(".inner-wrap").removeClass("animated");else{for(n=0;n<ae.length;n++)ae[n].blogMasonryZindex();e(t).each(function(){var t=e(this),a=new Waypoint({element:t[0],handler:function(){setTimeout(function(){t.addClass("animated-in")},80*t.attr("data-delay-amount")),a.destroy()},offset:"90%"})})}setTimeout(function(){e(t).removeClass("ajax-loaded")},700)})})}}function Kn(){be.scrollTop>350&&!o.is(".fullscreen.open")&&(e("#to-top").stop().transition({transform:"translateY(-50%)"},350,"easeInOutCubic"),s.off("scroll",Kn),s.on("scroll",ei))}function ei(){if(be.scrollTop<350||o.is(".fullscreen.open")){var t=e("#slide-out-widget-area.fullscreen.open").length>0?1150:350;e("#to-top").stop().transition({transform:"translateY(105%)"},t,"easeInOutQuint"),s.off("scroll",ei),s.on("scroll",Kn)}}function ti(){if(0==e(".nectar-social.fixed").length&&(e("#to-top").length>0&&be.winW>1020||e("#to-top").length>0&&e("#to-top.mobile-enabled").length>0)&&(be.scrollTop>350?s.on("scroll",ei):s.on("scroll",Kn)),e('body[data-button-style*="rounded"]').length>0){var t=e("#to-top .fa-angle-up").clone();t.addClass("top-icon"),e("#to-top").prepend(t)}r.on("click",'#to-top, a[href="#top"]',function(){return e("body,html").stop().animate({scrollTop:0},800,"easeOutQuad",function(){e(".nectar-box-roll").length>0&&r.trigger("mousewheel",[1,0,0])}),!1})}function ai(){var a=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?0:d.outerHeight();(e(".page-template-template-no-header-footer").length>0||e(".page-template-template-no-header").length>0)&&(a=0);var n=!1;e('header#top .sf-menu li a[href="#"]').on("click",function(e){e.preventDefault()}),0==e("#nectar_fullscreen_rows").length||0==me.$usingFullScreenRows?e("a.nectar-next-section").each(function(){if(e(this).parents(".wpb_row:not(.inner_row)").length>0){var t=e(this).parents(".wpb_row:not(.inner_row)");if(t.next(".wpb_row[id]:not(.inner_row)").length>0){var a=t.next(".wpb_row[id]:not(.inner_row)").attr("id");e(this).attr("href","#"+a),n=!0}}}):e().fullpage&&e("a.nectar-next-section").on("click",function(){return e.fn.fullpage.moveSectionDown(),!1}),e("#slide-out-widget-area .off-canvas-menu-container").length>0&&e("#slide-out-widget-area .off-canvas-menu-container").find("a[href*='"+location.pathname+"']").each(function(){var t=e(this).attr("href"),a=t.substr(t.indexOf("#"));"#"!=t&&-1!=t.indexOf("#")&&"#"!==t.substr(t.indexOf("#"))&&-1==a.indexOf("#/")&&e("div"+t.substr(t.indexOf("#"))).length>0&&(e(this).attr("href",t.substr(t.indexOf("#"))),e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")),e('div[data-fullscreen-anchor-id="'+t.substr(t.indexOf("#")+1)+'"]').length>0&&e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")}),e("#header-outer").find("a[href*='"+location.pathname+"']").each(function(){var t=e(this).attr("href"),a=t.substr(t.indexOf("#"));-1!=t.indexOf("#")&&"#"!==t.substr(t.indexOf("#"))&&-1==a.indexOf("#/")&&e("div"+t.substr(t.indexOf("#"))).length>0&&(e(this).attr("href",t.substr(t.indexOf("#"))),e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")),e('div[data-fullscreen-anchor-id="'+t.substr(t.indexOf("#")+1)+'"]').length>0&&e(this).parent().removeClass("current_page_item").removeClass("current-menu-item")}),e("#header-outer").length>0&&e("#header-outer").find("a[href*='#']:not([href='#'])").each(function(){"#"!==e(this).attr("href")&&"#searchbox"!==e(this).attr("href")&&"#slide-out-widget-area"!==e(this).attr("href")&&(n=!0)}),e("#slide-out-widget-area .off-canvas-menu-container").length>0&&e("#slide-out-widget-area .off-canvas-menu-container").find("a[href*='#']:not([href='#'])").each(function(){"#"!==e(this).attr("href")&&(n=!0)});var i=[];1==n&&i.push("#header-outer nav"),e('.page-submenu[data-sticky="true"] a[href*="#"]').length>0&&i.push('.page-submenu[data-sticky="true"]'),i.length>0&&i.forEach(function(n,i){(0==i?r:e(t)).scrollspy({target:n,offset:a+be.adminBarHeight+40})})}function ni(){var a=t.location.hash;a&&a.length>0&&(a=a.replace(/<|>/g,""));var n=a&&a.length>0?a.substring(1,a.length):0,i=y-y/1.8,o=0;if(n&&(o=(o=n.split("/")).length),n&&o>1&&(n=n.replace(/\//g,""),a=a.replace(/\//g,"")),a&&e(".main-content").find(a).length>0||a&&e(".main-content").find('[data-fullscreen-anchor-id="'+n+'"]').length>0){var l=e(".main-content").find(a).length>0?e(".main-content").find(a):e(".main-content").find('[data-fullscreen-anchor-id="'+n+'"]'),h=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?0:e("#header-space").outerHeight();(e(".page-template-template-no-header-footer").length>0||e(".page-template-template-no-header").length>0)&&(h=0);var u=100;e(".nectar-box-roll").length>0&&e(".container-wrap.bottomBoxOut").length>0&&(ge.boxRoll(null,-1),u=2050),e("img[data-nectar-img-src]").length>0&&(la(),u=200),setTimeout(function(){var t;if(!0===E){var n=e("#header-outer").outerHeight()+2*parseInt(e("#header-outer").css("margin-top"));t=e(a).offset().top-n-be.adminBarHeight}else if(0==e('body[data-permanent-transparent="1"]').length)if(r.hasClass("mobile"))t=e('#header-outer[data-mobile-fixed="1"]').length>0?l.offset().top+2-h+be.adminBarHeight:l.offset().top-be.adminBarHeight+1;else{var s=e('#header-outer[data-header-resize="0"]').length>0?0:parseInt(_)+2*i;if(e('#header-outer[data-remove-fixed="1"]').length>0&&(h=0),t=l.offset().top-parseInt(h)+s+3-be.adminBarHeight,0==e("body.mobile").length&&e('#header-outer[data-condense="true"]').length>0&&0===e("body.page-template-template-no-header").length&&0===e("body.page-template-template-no-header-footer").length){var o=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),u=d.height()-(parseInt(o.height())+parseInt(e("#header-outer #logo").css("margin-top")));t=l.offset().top-parseInt(h)+u-be.adminBarHeight}}else t=l.offset().top-be.adminBarHeight+1;e('body[data-hhun="1"]').length>0&&0==e('#header-outer[data-remove-fixed="1"]').length&&0==e("#header-outer.detached").length&&(t+=h),tt(t-(e('.page-submenu[data-sticky="true"]').length>0?e(".page-submenu").height():0)+(e("body.material").length>0&&c.length>0&&0==e('body[data-hhun="1"]').length&&0==e('#header-outer[data-remove-fixed="1"]').length&&!r.hasClass("mobile")?c.height():0),0,"easeInOutQuint"),ye.animatedScrolling=!0,setTimeout(function(){ye.animatedScrolling=!1},1100)},u)}}function ii(){L=[];var t=0;e(".portfolio-items:not(.carousel)").each(function(a){if(e(this).attr("instance",a),e(this).parent().parent().find("div[class^=portfolio-filters]").attr("instance",a),"undefined"!=typeof SalientPortfolio)L[t]=new SalientPortfolio(e(this),Xt,he,Mt),t++;else{var n=e(this);Ue("#salient-portfolio-js-js",100,function(){L[t]=new SalientPortfolio(n,Xt,he,Mt),t++})}})}function si(){be.winW>690&&e('.posts-container[data-load-animation="perspective"]').css("perspective-origin","50% "+(be.scrollTop+be.winH)+"px"),requestAnimationFrame(si)}function ri(){e('.posts-container[data-load-animation="perspective"]').length>0&&requestAnimationFrame(si)}function oi(t){"none"==t.attr("data-load-animation")?t.find(".inner-wrap").removeClass("animated"):t.find("article").each(function(t){if(e(this).visible(!0))e(this).delay(110*t).queue(function(t){e(this).addClass("animated-in"),t()});else var a=e(this),n=new Waypoint({element:a[0],handler:function(){setTimeout(function(){a.addClass("animated-in")},80*a.attr("data-delay-amount")),n.destroy()},offset:"90%"})})}function li(){ae=[],e(".posts-container").each(function(t){if(e(this).parent().hasClass("masonry")&&!e(this).parent().hasClass("auto_meta_overlaid_spaced")){if("undefined"==typeof NectarMasonryBlog){var a=e(this);return void Ue("#nectar-masonry-blog-js",0,function(){ae[t]=new NectarMasonryBlog(a,Mt,oi)})}ae[t]=new NectarMasonryBlog(e(this),Mt,oi)}else oi(e(this))})}function di(){var t=50;if(e('#header-outer[data-remove-fixed="0"]').length>0&&0==e('#header-outer[data-format="left-header"]').length){if(t+=d.outerHeight(),e('body[data-contained-header="true"]').length>0&&(t+=parseInt(d.css("margin-top"))),e('#header-outer[data-shrink-num][data-header-resize="1"]').length>0){var a=parseInt(d.attr("data-padding"))-parseInt(d.attr("data-padding"))/1.8;t-=_,t-=2*a}if(0==e("body.mobile").length&&e('#header-outer[data-condense="true"]').length>0){var n=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');t=50,t+=d.height()-(parseInt(n.position().top)-parseInt(e("#header-outer #logo").css("margin-top")))-parseInt(be.secondaryHeaderHeight)}}return u.length>0&&(t+=u.outerHeight()),t}function ci(){var n=di();if(!(be.winW<690&&be.usingMobileBrowser)){const e=a.querySelector(".container.main-content");e&&e.style.setProperty("--nectar-sticky-top-distance",n+"px")}if(e(".nectar-sticky-column-css").each(function(){e(this).hasClass("n-sticky-initialized")||(0==e(this).find(".n-sticky").length&&e(this).wrapInner('<div class="n-sticky" />'),e(this).addClass("n-sticky-initialized"),e(this).hasClass("nectar-sticky-column-css--middle")&&new _t(e(this)))}),e().theiaStickySidebar&&!(be.usingMobileBrowser&&be.winW<1e3)&&!(0!=me.$usingFullScreenRows&&be.winW>1e3)){var i='#sidebar[data-nectar-ss="true"], #sidebar[data-nectar-ss="1"], .nectar-scrolling-tabs:not(.navigation_func_active_link_only) .scrolling-tab-nav, .nectar-sticky-column';t.nectarOptions&&t.nectarOptions.woo_sticky_sidebar&&"1"===t.nectarOptions.woo_sticky_sidebar&&(i+=", .woocommerce.archive #sidebar"),e(i).each(function(){if(e(this).parents("#slide-out-widget-area").length>0)return!0;var t=n;e(this).parents(".wpb_widgetised_column").length>0?e("body.vc_editor").length>0||e(this).parents(".wpb_column").theiaStickySidebar({additionalMarginTop:t,updateSidebarHeight:!1}):e(this).theiaStickySidebar({additionalMarginTop:t,updateSidebarHeight:!1})})}}function hi(){e(".nectar-liquid-bg").removeClass("animated-in");for(var t=0;t<K.length;t++)"displace-filter-fade"==K[t].animationType&&e(K[t].canvasContainer).parents(".fp-section.active").length>0&&(0==e(K[t].canvasContainer).find(".image-added-to-stage").length&&K[t].imgContainer.addChild(K[t].bg),e(K[t].canvasContainer).find(".nectar-liquid-bg").addClass("image-added-to-stage"),K[t].animateProps(K[t]))}function ui(){if(e("#nectar_fullscreen_rows").length>0&&e().fullpage){he=t.vc_iframe?".vc_element.vc_vc_row.active ":".wpb_row.active ";var a=e("#nectar_fullscreen_rows[data-mobile-disable]").length>0?e("#nectar_fullscreen_rows").attr("data-mobile-disable"):"off";be.usingMobileBrowser||(a="off"),"on"!=a?ue=!0:he="","undefined"!=typeof NectarFullScreenRows&&(me=new NectarFullScreenRows(on,te,hi,be,sa,ne,q,ie))}else Ue("#nectar-fullpage-js",100,ui)}function pi(){e(".wpb_column").each(function(){if(e(this).hasClass("backdrop_filter_blur")){var t=e(this).closest(".wpb_row");t.addClass("row-col-gap");var a=e(this).closest(".wpb_row[data-column-margin]").length>0?e(this).closest(".wpb_row[data-column-margin]").attr("data-column-margin"):"default";"default"!=a&&t.find(".span_12").first().css({"column-gap":a})}}),be.usingMobileBrowser&&r.addClass("using-mobile-browser"),be.usingTouchDevice&&r.addClass("using-touch-device"),t.navigator.userAgent.indexOf("Edge/")>0&&r.addClass("msie"),0==e("html.js").length&&e("html").removeClass("no-js").addClass("js"),e("code").find("br").remove(),e(".wpcf7-form p:has(input[type=submit])").css("padding-bottom","0px"),e(".full-width-content .wpcf7-submit").on("click",function(){setTimeout(function(){Xt()},1e3),setTimeout(function(){Xt()},2e3)}),e(".gform_body").on("click",function(){setTimeout(function(){Xt()},200)}),e(".pum.pum-theme-salient-page-builder-optimized button.pum-close").wrapInner("<span />"),e(t).on("pumBeforeOpen",function(){t.dispatchEvent(new Event("resize"))}),e("#nectar_fullscreen_rows").length>0&&e(".pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12").length>0&&e(".pum-container .pum-content > .wpb_row .full-page-inner > .container > .span_12").unwrap(),e(".single .blog_next_prev_buttons").length>0&&e(".container-wrap").css("padding-bottom",0),e(".full-width-section").each(function(){e(this).find("> .span_12 > div.col_last").last().css("margin-bottom","0")}),e(".full-width-content .col.boxed").removeClass("boxed"),e(".wpb_column.neg-marg").parents(".wpb_row:not(.inner_row):not(.zindex-set)").css("z-index","110"),e(".wpb_row.legacy").each(function(){e(this).find(".wpb_column").length>0&&e(this).removeClass("legacy")})}function fi(){e(".wpb_row").each(function(){void 0!==e(this).find(".span_12").offset()&&e(this).find('[class*="vc_col-"]').each(function(){var t=e(this).parents(".span_12").offset().left;e(this).removeClass("no-left-margin"),e(this).offset().left<t+27?e(this).addClass("no-left-margin"):e(this).removeClass("no-left-margin")})})}function gi(){var a=be.winW,n=be.winH,i=0;r.is('[data-flex-cols="true"]')||e('[class*="vc_col-xs-"], [class*="vc_col-md-"], [class*="vc_col-lg-"]').length>0&&(fi(),be.usingMobileBrowser?(t.addEventListener("orientationchange",function(){i=1}),s.on("resize",function(){(s.width()!=a&&s.height!=n||1===i)&&(fi(),a=be.winW,n=be.winH,i=0)})):s.on("resize",fi))}function mi(){e('body[data-fancy-form-rcs="1"]').length>0&&0==e("#wcfm-main-content").length&&(e("select:not(.comment-form-rating #rating)").each(function(){var t;e(this).parents(".wpcf7-form-control-wrap").length>0?1==(t=e(this).parents(".wpcf7-form-control-wrap").find(".select2-container").length>0?e(e(this).prev(".select2-container")):e(this)).parents(".wpcf7-form-control-wrap").parent().find("label").length?t.parents(".wpcf7-form-control-wrap").parent().wrapInner('<div class="fancy-select-wrap" />'):t.wrap('<div class="fancy-select-wrap" />'):(t=e(this).prev(".select2-container").length>0?e(this).prev(".select2-container"):e(this),0==e(this).parents("#buddypress").length&&0==e(this).parents(".widget_categories").length&&0==e(this).parents(".wc-blocks-components-select__container").length&&(1==t.prev("label").length?t.prev("label").addBack().wrapAll('<div class="fancy-select-wrap" />'):1==t.next("label").length?t.next("label").addBack().wrapAll('<div class="fancy-select-wrap" />'):t.wrap('<div class="fancy-select-wrap" />')))}),e("select:not(.state_select):not(.country_select):not(.comment-form-rating #rating):not(#tribe-bar-form select):not(.woocommerce-currency-switcher):not(.wc-blocks-components-select__container select):not(.nectar-custom-product-attr select):not(.flatpickr-calendar select)").each(function(){var a=be.winW>690?7:200;if((e(this).hasClass("skip-select2-search")||e(this).parents(".skip-select2-search").length>0)&&(a=1e3),0==e(this).parents("#buddypress").length){var n={minimumResultsForSearch:a,width:"100%"};("underline"==(t.nectarOptions&&t.nectarOptions.woo_product_variable_select?t.nectarOptions.woo_product_variable_select:"default")||e(this).parents(".woocommerce-ordering").length>0)&&(n={minimumResultsForSearch:a,dropdownParent:e(this).parent(),dropdownAutoWidth:!0}),void 0!==e().select2&&e(this).select2(n)}}))}function vi(){(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")||navigator.userAgent.match(/(iPod|iPhone|iPad)/))&&(t.onpageshow=function(t){t.persisted&&(e(".nectar-video-wrap, .nectar-slider-wrap .swiper-slide .video-wrap").each(function(){e(this).find("video").length>0&&e(this).find("video")[0].play()}),e("body.material-ocm-open").length>0?(e("body > .slide_out_area_close__wrap .slide_out_area_close").addClass("non-human-allowed").trigger("click"),setTimeout(function(){e("body > .slide_out_area_close__wrap .slide_out_area_close").removeClass("non-human-allowed")},100)):e("#slide-out-widget-area.slide-out-from-right-hover.open").length>0&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)?Ra():(e("#slide-out-widget-area.fullscreen.open").length>0||e("#slide-out-widget-area.fullscreen-alt.open").length>0||e("#slide-out-widget-area.slide-out-from-right.open").length>0)&&(e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed"),e(".slide-out-widget-area-toggle:not(.std-menu) a.open").addClass("non-human-allowed").trigger("click"),setTimeout(function(){e("#slide-out-widget-area .slide_out_area_close").removeClass("non-human-allowed")},100)))})}function bi(){e(".wpb_row").removeClass("only-ns"),e('.nectar-slider-wrap[data-full-width="true"], .page-submenu, .portfolio-items[data-col-num="elastic"]:not(.fullwidth-constrained), .blog-fullwidth-wrap').parents(".wpb_row").addClass("only-ns"),e("body.vc_editor.compose-mode .wpb_row .vc_vc_column > .wpb_column > .vc_column-inner").each(function(){if(e(this).find("> .vc_element-container > div").length>0){var t=e(this).find("> .vc_element-container"),a=t.find("> div:first-child");a.is(".vc_vc_row_inner")?a.addClass("first-inner-row-el"):t.find("> div").removeClass("first-inner-row-el")}}),e("body.vc_editor.compose-mode .vc_row.inner_row").each(function(){e(this).hasClass("row_position_absolute")?e(this).parent().css({position:"static","min-height":"0"}):e(this).parent().css({position:"","min-height":""})}),e(".img-with-aniamtion-wrap, .nectar_icon_wrap, .nectar-lottie-wrap, .nectar-cta").each(function(){(e(this).hasClass("position_desktop_absolute")||e(this).hasClass("position_tablet_absolute")||e(this).hasClass("position_phone_absolute"))&&e(this).parent().addClass("absolute-parent")})}function wi(){e('.vc_element > .wpb_column[class*="padding-"][class*="-percent"]').each(function(){var t=4,a=this.className.match(/padding-\d+/);if(a&&(t=(t=a[0].match(/\d+/))?t[0]/100:0),t){var n=e(this).parents(".span_12").width();e(this).is('[data-padding-pos="all"]')?e(this).css("padding",n*t):e(this).is('[data-padding-pos="top"]')?e(this).css("padding-top",n*t):e(this).is('[data-padding-pos="bottom"]')?e(this).css("padding-bottom",n*t):e(this).is('[data-padding-pos="left"]')?e(this).css("padding-left",n*t):e(this).is('[data-padding-pos="right"]')?e(this).css("padding-right",n*t):e(this).is('[data-padding-pos="top-bottom"]')?e(this).css({"padding-top":n*t,"padding-bottom":n*t}):e(this).is('[data-padding-pos="top-right"]')?e(this).css({"padding-top":n*t,"padding-right":n*t}):e(this).is('[data-padding-pos="bottom-right"]')?e(this).css({"padding-right":n*t,"padding-bottom":n*t}):e(this).is('[data-padding-pos="bottom-left"]')?e(this).css({"padding-left":n*t,"padding-bottom":n*t}):e(this).is('[data-padding-pos="left-right"]')&&e(this).css({"padding-left":n*t,"padding-right":n*t})}}),e('.wpb_row[class*="vc_custom_"]').each(function(){e(this).parent().addClass("no-bottom-margin")})}function yi(){setTimeout(function(){e("body.compose-mode").length>0&&e(".container-wrap").addClass("visible-editor-controls"),be.usingFrontEndEditor&&(bi(),r.is('[data-flex-cols="true"]')||(wi(),s.on("smartresize",wi)))},200),s.on("vc_reload",function(){if(bi(),It(),kt(),Se(),Rt(),ke(),yt(),Dt(),Ht(),Dn(),Ia(),Ve(),fa(),jn(),Zn(),Qt(),ha(),e(".carousel").length>0&&(Be(),Ye(),je()),e(".owl-carousel").length>0&&(e(".owl-carousel").each(function(){e(this).trigger("destroy.owl.carousel").removeClass("owl-loaded"),e(this).find(".owl-stage-outer .owl-stage > *").unwrap(),e(this).find(".owl-stage-outer > *").unwrap(),e(this).find(".owl-item > *").unwrap(),e(this).find(".owl-dots").remove(),e(this).find(".owl-nav").remove()}),Fe()),e(".nectar_cascading_images").length>0&&imagesLoaded(e(".nectar_cascading_images"),function(){Gt()}),Mt(),Vt(),Xn(),e(".wpb_row.nectar-split-heading-merged").length>0&&e(".wpb_row.nectar-split-heading-merged").removeClass("nectar-split-heading-merged"),j.length>0)for(var a=0;a<j.length;a++)j[a].instance.reloadCells(),j[a].instance.off("scroll.flickity"),j[a].instance.off("dragStart.flickity"),j[a].instance.off("dragEnd.flickity");if(Ie(),setTimeout(function(){if(Ee(),j.length>0)for(var e=0;e<j.length;e++)j[e].instance.reloadCells(),j[e].instance.resize()},100),J.length>0)for(a=0;a<J.length;a++)J[a].instance.flickity("reloadCells"),J[a].instance.off("scroll.flickity"),J[a].instance.off("dragStart.flickity"),J[a].instance.off("dragEnd.flickity");setTimeout(function(){if(e(".nectar-woo-flickity").length>0&&Pe(),J.length>0)for(var t=0;t<J.length;t++)J[t].instance.flickity("reloadCells"),J[t].instance.flickity("resize")},100),_a();for(a=0;a<ee.length;a++)"multiple_visible"!=ee[a].type&&"multiple_visible_minimal"!=ee[a].type||(ee[a].flickityEl.flickity("reloadCells"),ee[a].flickityEl.off("select.flickity"),_a(),ee[a].flickityEl.resize()),ee[a].testimonialSliderHeight();if(Ca(),ya(),Ta(),ht(),ra(),$t(),sn(),Ea(),Oa(),Xt(),setTimeout(Xt,1e3),Sa(),An(),s.off("scroll.parallaxSections").off("resize.parallaxSections"),Yt(),Pt(),li(),ii(),L.length>0)for(a=0;a<L.length;a++)L[a].portfolioAccentColor();if(Nn(),Un(),setTimeout(function(){if(e(".nectar_fullscreen_zoom_recent_projects").length>0&&U.length>0)for(var t=0;t<U.length;t++)U[t].sliderCalcs()},300),s.unbind(".infscr"),Jn(),Nt(),e(".nectar-video-wrap").each(function(){e(this).find("video").length>0&&e(this).find("video").css("visibility","visible")}),e(".wpb_column[data-t-w-inherits]").each(function(){e(this).is('[data-t-w-inherits="small_desktop"]')?e(this).parent().addClass("inherits-s-desktop-col"):e(this).parent().removeClass("inherits-s-desktop-col")}),e("#nectar_fullscreen_rows").length>0){0==e("#nectar_fullscreen_rows > .vc_element").length&&e("#nectar_fullscreen_rows").prepend('<div class="vc_element empty_placeholder" />'),e("#nectar_fullscreen_rows > .vc_element:not(.empty_placeholder)").length>0&&e("#nectar_fullscreen_rows >.vc_element.empty_placeholder").remove();var n=e("#nectar_fullscreen_rows > div.vc_element.active").index();e.fn.fullpage.destroy("all"),ui();var i=[{el:"",offset:0}];e("#nectar_fullscreen_rows > div.vc_element").each(function(t){i[t]={el:e(this),offset:e(this).offset().top}}),n>-1&&e.fn.fullpage.silentMoveTo(n+1,0),1===e("#nectar_fullscreen_rows > div.vc_element").length&&e("#nectar_fullscreen_rows").css({transform:"translate3d(0,0,0)"}),r.scrollTo(0,0)}else e('body .main-content > .row > .vc_element:first > .wpb_row[class*="full-width-"]').length>0||e('body .main-content > .row > .vc_element:first .nectar-slider-wrap[data-full-width="true"]').length>0?e(".container-wrap").css({"padding-top":"0","margin-top":"0"}):e(".container-wrap").css({"padding-top":"40px"});q=[],e(".svg-icon-holder").removeClass("animated-in").removeClass("bound"),e(".vc_nectar_gmap").length>0&&setTimeout(function(){"object"==typeof google&&"object"==typeof google.maps?t.mapAPI_Loaded():t.nectarLove.mapApiKey.length>0&&e.getScript("https://maps.google.com/maps/api/js?sensor=false&key="+t.nectarLove.mapApiKey+"&callback=mapAPI_Loaded")},100),ci(),void 0!==t.Waypoint&&(Waypoint.destroyAll(),on())})}function _i(){var a=!1;if(e('body[data-ajax-transitions="true"]').length>0&&e('#ajax-loading-screen[data-disable-mobile="1"]').length>0&&be.winW<1e3&&(a=!0),e('body[data-ajax-transitions="true"]').length>0&&e('#ajax-loading-screen[data-method="standard"]').length>0&&0==a){if(e("html").addClass("page-trans-loaded"),e('#ajax-loading-screen[data-effect="standard"]').length>0?(0==e(".nectar-particles").length&&(p.transition({opacity:0},500,function(){e(this).css({display:"none"})}),e("#ajax-loading-screen .loading-icon").transition({opacity:0},500)),0==e(".nectar-box-roll").length&&setTimeout(function(){on()},550)):(e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0&&setTimeout(function(){p.addClass("loaded")},60),0==e('#page-header-wrap #page-header-bg[data-animate-in-effect="zoom-out"] .nectar-video-wrap').length&&setTimeout(function(){e("#ajax-loading-screen:not(.loaded)").addClass("loaded"),setTimeout(function(){p.addClass("hidden")},1e3)},150),0==e(".nectar-box-roll").length&&e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0?setTimeout(function(){on()},750):0==e(".nectar-box-roll").length&&setTimeout(function(){on()},350)),t.onpageshow=function(t){t.persisted&&(e("#ajax-loading-screen").stop().transition({opacity:0},200,function(){e(this).css({display:"none"})}),e("#ajax-loading-screen .loading-icon").transition({opacity:0},100))},e(".portfolio-loading, .nectar-slider-loading .loading-icon").remove(),0==e('#ajax-loading-screen[data-disable-fade-on-click="1"]').length&&0==e('body.using-mobile-browser #ajax-loading-screen[data-method="standard"][data-disable-mobile="1"]').length){var n=!1;e('a[href^="mailto"], a[href^="tel"], .woocommerce-order-downloads a[class*="downloads-file"], .wpdm-cta.download-link a[data-downloadurl], .nectar-ignore-beforeunload a').on("click",function(){n=!0}),t.addEventListener("beforeunload",function(){n||(p.addClass("set-to-fade"),e('#ajax-loading-screen[data-effect*="horizontal_swipe"]').length>0?(p.removeClass("loaded"),p.addClass("in-from-right"),setTimeout(function(){p.addClass("loaded")},30)):e('#ajax-loading-screen[data-effect="center_mask_reveal"]').length>0?p.css("opacity","0").css("display","block").transition({opacity:"1"},450):p.show().transition({opacity:"1"},450)),n=!1})}}else 1==a&&p.css({opacity:"0",display:"none"}).addClass("loaded").addClass("hidden"),0!=e(".nectar-box-roll").length||be.usingFrontEndEditor||on()}function Ci(n){var i,l,u,p,g;be.usingMobileBrowser&&be.scrollPosRAF(),ua(),function(){var n;if(We(),0!=e('body[data-header-format="left-header"]').length||be.usingPhoneBrowser||(n=!(e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0),t.nectarOptions&&t.nectarOptions.dropdown_hover_intent&&"add"===t.nectarOptions.dropdown_hover_intent&&(n=!1),e(".sf-menu:not(.buttons)").superfish({delay:500,speed:"fast",disableHI:n,speedOut:"fast",animation:{opacity:"show"}}),e("#header-outer .sf-menu.buttons li.menu-item").on("mouseover",function(){e(this).addClass("sfHover"),e('#header-outer[data-megamenu-rt="1"]').length>0&&e(this).hasClass("megamenu")&&!e(this).hasClass("width-75")&&!e(this).hasClass("width-50")&&"true"==e("#header-outer").attr("data-transparent-header")&&(e("#header-outer").addClass("no-transition"),e("#header-outer").removeClass("transparent"))}),e("#header-outer .sf-menu.buttons > li.menu-item.menu-item-has-children:not(.megamenu):not(.nectar-megamenu-menu-item)").on("mouseenter",function(){var a=e("#top .container").width(),n=e(this).children("ul");n.offset().left-(e(t).width()-a)/2+n.width()<=e(t).width()-100?e(this).removeClass("edge"):e(this).addClass("edge")}),e("#header-outer .sf-menu.buttons li.menu-item").on("mouseleave",function(){var t=e(this);t.is(".menu-item-has-children")?setTimeout(function(){t.is(":hover")||(t.removeClass("sfHover"),e('#header-outer[data-megamenu-rt="1"]').length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&(0==e("#header-outer.scrolled-down").length&&0==e("#header-outer.small-nav").length&&0==e("#header-outer.detached").length&&0==e("#header-outer.fixed-menu").length&&e("#header-outer").addClass("transparent"),e('#header-outer[data-permanent-transparent="1"][data-transparent-header="true"]').length>0&&e("#header-outer").addClass("transparent")))},200):t.removeClass("sfHover")}),e('#header-secondary-outer li.megamenu:not(.nectar-megamenu-menu-item), #header-outer:not([data-format="menu-left-aligned"]):not([data-format="centered-logo-between-menu-alt"]) .sf-menu.buttons li.megamenu').removeClass("nectar-megamenu-menu-item").removeClass("megamenu"),e('#header-outer[data-format="centered-menu-bottom-bar"] .right-side .sf-menu li.nectar-megamenu-menu-item').removeClass("align-left").removeClass("align-middle").addClass("align-right"),e('#header-outer[data-format="centered-menu-bottom-bar"] .left-side .sf-menu li.nectar-megamenu-menu-item').removeClass("align-right").removeClass("align-middle").addClass("align-left"),e("#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul").each(function(){e(this).offset().left+e(this).outerWidth()>s.width()&&(e(this).addClass("on-left-side"),e(this).find("ul").addClass("on-left-side"))}),e('body:not([data-header-format="left-header"]) header#top nav > ul > li.megamenu > ul > li > ul > li').each(function(){e(this).find("> ul").length>0&&e(this).addClass("has-ul")}),e('body[data-megamenu-width="full-width"]').length>0&&e("ul.sub-menu").length>0&&(Me(),s.on("smartresize",Me),e("header#top nav > ul > li.megamenu > .sub-menu, header#top nav > ul > li.megamenu > .nectar-global-section-megamenu").css("box-sizing","content-box")),e("header#top nav > ul.sf-menu > li.menu-item").on("mouseenter",function(){e(this).addClass("menu-item-over")}),e("header#top nav > ul.sf-menu > li.menu-item").on("mouseleave",function(){e(this).removeClass("menu-item-over")}),e("#header-outer nav .megamenu .sub-menu a.sf-with-ul .sf-sub-indicator, #header-outer .megamenu .sub-menu a .sf-sub-indicator").remove(),e(".sf-menu > .nectar-megamenu-menu-item > a .menu-title-text .megamenu-bg-lazy[data-bg-src]").each(function(){var t=e(this).parents(".nectar-megamenu-menu-item"),a=e(this).attr("data-bg-src"),n=e(this).attr("data-align").replace("_"," ");t.find("> ul").css({"background-position":n,"background-image":'url("'+a+'")'}),e(this).remove()}),e(".sf-menu > .nectar-megamenu-menu-item > ul > li > a .menu-title-text .megamenu-col-bg-lazy[data-bg-src]").each(function(){var t=e(this).closest(".menu-item"),a=e(this).attr("data-bg-src"),n=e(this).attr("data-align").replace("_"," ");t.css({"background-position":n,"background-image":'url("'+a+'")'}),e(this).remove()}),e("#header-outer nav > ul > li.megamenu > ul.sub-menu > li > a").each(function(){("-"==e(this).text()||"–"==e(this).text()||e(this).parent().hasClass("hide-title"))&&e(this).remove()})),"IntersectionObserver"in t){var i=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target;t.classList.add("loaded");var a=t.getAttribute("data-menu-img-src");a&&(t.setAttribute("src",a),t.removeAttribute("data-menu-img-src")),i.unobserve(t)}})},{rootMargin:"0px",threshold:0});[].slice.call(a.querySelectorAll(".nectar-menu-icon-img[data-menu-img-src], #header-outer .nectar-ext-menu-item .image-layer")).forEach(function(e){i.observe(e)})}else e(".sf-menu .nectar-menu-icon-img[data-menu-img-src]").each(function(){e(this).attr("src",e(this).attr("data-menu-img-src")),e(this).removeAttr("data-menu-img-src")}),e(".nectar-ext-menu-item .image-layer").addClass("loaded");e(".sub-menu .nectar-menu-icon, .sub-menu .nectar-menu-icon-img, .off-canvas-menu-container > ul > li > a .nectar-menu-icon, .off-canvas-menu-container > ul > li > a .nectar-menu-icon-img").each(function(){var t=e(this).parent(),a=e(this).detach();0==t.parents(".nectar-ext-menu-item").length&&(t.wrapInner('<span class="nectar-menu-icon-text" />'),t.addClass("nectar-menu-item-with-icon")),t.prepend(a)}),e("#slide-out-widget-area:not(.fullscreen) .nectar-menu-label").each(function(){0==e(this).parents(".nectar-ext-menu-item").length&&e(this).closest("a").addClass("nectar-menu-item-with-icon")}),e(".off-canvas-menu-container .nectar-menu-icon, .off-canvas-menu-container .nectar-menu-icon-img").each(function(){var t=e(this).parent();(t.find(".item_desc").length>0||t.find(".nav_desc").length>0)&&t.addClass("nectar-menu-item-with-desc")}),Ae()}(),function(){t.nectarOptions&&t.nectarOptions.quick_search&&"true"===t.nectarOptions.quick_search&&new fn;var n=e("#search-outer #search input[type=text][data-placeholder]").length>0?e("#search-outer #search input[type=text]").attr("data-placeholder"):"";function i(){if(r.hasClass("ascend")||e('body[data-header-format="left-header"]').length>0&&0==e("body.material").length?(e("#search-outer").stop().transition({opacity:0},300,"cubic-bezier(0.2, 1, 0.3, 1)"),h.addClass("inactive"),setTimeout(function(){e("#search-outer").hide(),h.removeClass("inactive")},300)):0==e("body.material").length&&e("#search-outer").stop(!0).fadeOut(450,"easeOutExpo"),r.hasClass("material")){e(t).trigger("nectar-search-close");var a=d.hasClass("results-shown")?800:400;setTimeout(function(){e("#search-outer #s").val("")},a),e("#ajax-content-wrap").removeClass("material-open"),ye.materialSearchOpen=!1,d.removeClass("material-search-open"),e("#search-outer").removeClass("material-open"),e("#fp-nav").removeClass("material-ocm-open")}}r.hasClass("material")&&0==e("#header-outer .bg-color-stripe").length&&d.append('<div class="bg-color-stripe" />'),r.on("click","#search-btn a",function(){return!1}),r.on("click","#search-btn a:not(.inactive), #header-outer .mobile-search, .nectar-search-open-trigger",function(){return!e(this).hasClass("open-search")&&(r.hasClass("original")&&e(".slide-out-widget-area-toggle.mobile-icon a.open").length>0&&(e(".slide-out-widget-area-toggle.mobile-icon a").addClass("non-human-allowed").trigger("click"),setTimeout(function(){e(".slide-out-widget-area-toggle.mobile-icon a").removeClass("non-human-allowed")},100)),r.hasClass("ascend")||e('body[data-header-format="left-header"]').length>0&&0==e("body.material").length?(e("#search-outer > #search form, #search-outer #search .span_12 span, #search-outer #search #close").css("opacity",0),e("#search-outer > #search form").css("transform","translateY(-30px)"),e("#search-outer #search .span_12 span").css("transform","translateY(20px)"),e("#search-outer").show(),e("#search-outer").stop().transition({scale:"1,0",opacity:1},0).transition({scale:"1,1"},700,"cubic-bezier(0.2, 1, 0.3, 1)"),e("#search-outer > #search form").delay(350).transition({opacity:1,transform:"translateY(0)"},700,"cubic-bezier(0.2, 1, 0.3, 1)"),e("#search-outer #search #close").delay(500).transition({opacity:1},700,"cubic-bezier(0.2, 1, 0.3, 1)"),e("#search-outer #search .span_12 span").delay(450).transition({opacity:1,transform:"translateY(0)"},700,"cubic-bezier(0.2, 1, 0.3, 1)")):r.hasClass("material")?(e('#header-outer[data-transparent-header="true"] .bg-color-stripe').css("transition",""),e("#search-outer, #ajax-content-wrap").addClass("material-open"),ye.materialSearchOpen=!0,d.addClass("material-search-open"),e("#fp-nav").addClass("material-ocm-open"),e(t).trigger("nectar-search-open")):e("#search-outer").stop(!0).fadeIn(600,"easeOutExpo"),setTimeout(function(){e("#search input[type=text]").trigger("focus"),e("#search input[type=text]").val()==n&&e("#search input[type=text]").setCursorPosition(0)},300),e(this).hasClass("nectar-search-open-trigger")||e(this).toggleClass("open-search"),e(".slide-out-widget-area-toggle a:not(#toggle-nav).open:not(.animating)").trigger("click"),!1)}),e("body:not(.material)").on("keydown","#search input[type=text]",function(){e(this).val()==n&&e(this).val("")}),e("body:not(.material)").on("keyup","#search input[type=text]",function(){0==e(this).val().length&&(e(this).val(n),e(this).setCursorPosition(0))}),r.on("click","#close",function(){return i(),h.removeClass("open-search"),e("#header-outer .mobile-search").removeClass("open-search"),!1}),e("body:not(.material)").on("blur","#search-box input[type=text]",function(){i(),h.removeClass("open-search"),e("#header-outer .mobile-search").removeClass("open-search")}),e("body.material").on("click","#ajax-content-wrap",function(t){void 0!==t.originalEvent&&(i(),h.removeClass("open-search"),e("#header-outer .mobile-search").removeClass("open-search"))}),e("body.material").length>0&&e(a).on("keyup",function(t){27==t.keyCode&&(i(),h.removeClass("open-search"),e(".ocm-effect-wrap.material-ocm-open").length>0&&e(".slide-out-widget-area-toggle.material-open a").trigger("click"))})}(),0==e('#header-outer[data-remove-fixed="1"]').length&&be.winW>1e3&&0!=e(t).scrollTop()&&1==e('#header-outer.transparent[data-permanent-transparent="false"]').length&&d.removeClass("transparent"),be.winW<1e3?(0==e(".nectar-box-roll").length||"1"==I&&0==e('#header-outer[data-remove-fixed="1"]').length)&&(Tn(),s.on("smartresize.nectarNavScrollEffects",Tn)):(In(),s.on("smartresize.nectarNavScrollEffects",In)),ci(),Ca(),It(),i=e("#top #mobile-menu").length>0?"#top #mobile-menu ":".off-canvas-menu-container.mobile-only ",e(i+".menu-item > ul > li > a").each(function(){if("-"==e(this).text()||"–"==e(this).text()||e(this).parent().hasClass("hide-title")||e(this).find("> .remove-menu-item-title").length>0){var t=e(this).parent().find("> ul > li:not(.back)").clone();e(this).parent().find("> .widget-area-active").length>0?e(this).parent().find("> a").remove():(e(this).parent().find("ul").remove(),e(this).parent().parent().append(t),e(this).parent().remove())}}),Za(),Ma(),"separate-dropdown-parent-link"==(e("#slide-out-widget-area[data-dropdown-func]").length>0?o.attr("data-dropdown-func"):"default")&&e("#slide-out-widget-area .off-canvas-menu-container li.menu-item-has-children").append('<span class="ocm-dropdown-arrow"><i class="fa fa-angle-down"></i></span>'),function(){if(!(!e('#header-outer[data-format="left-header"]').length>0&&!e('body.material[data-slide-out-widget-area-style*="slide-out-from-right"]').length>0&&!e("#slide-out-widget-area.fullscreen-split").length>0&&!e('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length>0)){var a;e('#header-outer[data-format="left-header"] nav li.megamenu').removeClass("nectar-megamenu-menu-item").removeClass("megamenu"),a=e('#slide-out-widget-area[data-dropdown-func="separate-dropdown-parent-link"]').length>0?"#slide-out-widget-area .off-canvas-menu-container li.menu-item-has-children > .ocm-dropdown-arrow":'body.material #slide-out-widget-area[class*="slide-out-from-right"] .off-canvas-menu-container li.menu-item-has-children > a, #slide-out-widget-area.fullscreen-split .off-canvas-menu-container li.menu-item-has-children > a';var n='#header-outer[data-format="left-header"] nav li.menu-item-has-children > a',i=t.nectarOptions&&t.nectarOptions.left_header_dropdown_func?t.nectarOptions.left_header_dropdown_func:"default";"separate-dropdown-parent-link"===i&&(n='#header-outer[data-format="left-header"] nav li.menu-item-has-children > a .sf-sub-indicator'),e(n+", "+a).on("click",function(){var t=e(this).parent();if("separate-dropdown-parent-link"===i&&(t=e(this).closest(".menu-item")),t.hasClass("open-submenu"))t.find(".sub-menu").css({"max-height":"0"}),t.removeClass("open-submenu");else{var a,n=e(this);t.find("> .sub-menu").addClass("no-trans"),setTimeout(function(){t.find("> .sub-menu").css({"max-height":"none",position:"absolute",visibility:"hidden"}),a=t.find("> .sub-menu").height(),t.find("> .sub-menu").removeClass("no-trans"),t.find("> .sub-menu").css({"max-height":"0",position:"relative",visibility:"visible"})},25),setTimeout(function(){n.closest("ul").find("li.menu-item-has-children").removeClass("open-submenu"),n.closest("ul").find("li.menu-item-has-children > .sub-menu").css({"max-height":"0"}),t.addClass("open-submenu"),t.find("> .sub-menu").css("max-height",a),n.parents("ul").length>0&&n.parents("ul:not(.sf-menu)").each(function(){e(this).css("max-height"),e(this).css("max-height",parseInt(e(this).height()+2*parseInt(e(this).css("padding-top"))+a)+"px")})},50)}return!1});var s=e('#header-outer[data-format="left-header"] nav .sf-menu > .current-menu-ancestor.menu-item-has-children');if(s.length>0&&s.find(".current-menu-item").length>0){s.find("ul").css("transition","none");var r=s.find(".current-menu-item").parents(".current-menu-ancestor.menu-item-has-children");r=Array.from(r),"separate-dropdown-parent-link"===i?r.reverse().forEach(function(t){e(t).find("> a .sf-sub-indicator").trigger("click")}):r.reverse().forEach(function(t){e(t).find("> a").trigger("click")}),setTimeout(function(){s.find("ul").css("transition","")},100)}}}(),l=0,u=0,e(p=".carousel-wrap .portfolio-items .col .work-info a, .woocommerce .products-carousel ul.products li.product a").on("mousedown",function(e){l=e.clientX}),e(p).on("mouseup",function(e){u=e.clientX}),e(p).on("click",function(){if(Math.abs(l-u)>10)return!1}),Pt(),ht(),Jn(),ti(),g=y-y/1.8,r.on("click",".section-down-arrow, .scroll-down-wrap > .minimal-arrow",function(){if(e(this).parents(".nectar-box-roll").length>0)return!1;var t=e(this).parents("#page-header-bg"),a=t.height(),n=0==t.parents(".first-section").length||e('body[data-transparent-header="false"]').length>0?t.offset().top:0,i=f.length>0&&s.width()>1e3?f.height():0,o=e('body[data-header-format="left-header"]').length>0?0:e("#header-space").height(),l=0;if(e("body.material").length>0&&c.length>0&&(l=c.height()),0==e('body[data-permanent-transparent="1"]').length)if(r.hasClass("mobile"))tt((e('#header-outer[data-mobile-fixed="1"]').length>0?parseInt(a)-o+parseInt(t.offset().top)+2:parseInt(a)+parseInt(t.offset().top)+2)-2*i,0,"easeInOutQuint");else if(e('body[data-hhun="1"]').length>0&&0==e('#header-outer[data-remove-fixed="1"]').length)tt(parseInt(a)+n+2-2*i,0,"easeInOutQuint");else{var h=e('#header-outer[data-header-resize="0"]').length>0?0:parseInt(_)+2*g;if(e('#header-outer[data-remove-fixed="1"]').length>0&&(o=0,n=0),0==e("body.mobile").length&&e('#header-outer[data-condense="true"]').length>0){var u=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9');o=d.height()-(parseInt(u.position().top)-parseInt(e("#header-outer #logo").css("margin-top")))-parseInt(be.secondaryHeaderHeight)}tt(parseInt(a-o)+h+3+n+l,0,"easeInOutQuint")}else tt(parseInt(a)+parseInt(t.offset().top)+2-2*i,0,"easeInOutQuint");return!1}),function(){if(H&&r.on("click",'#header-outer nav .sf-menu li:not(.slide-out-widget-area-toggle) a[href*="#"]',function(){ye.ocmOpen&&"#"!=e(this).attr("href")&&Ga(e(this).parent())}),e('body[data-animated-anchors="true"]').length>0||e('.single-product [data-gallery-style="left_thumb_sticky"]').length>0){var a,n=y-y/1.8;setTimeout(ai,100),r.on("click",'#header-outer nav .sf-menu a:not([href="#slide-out-widget-area"]), #header-outer .mobile-header .sf-menu a, #footer-outer .nectar-button, #footer-outer .widget_nav_menu a, #footer-widgets .textwidget a, #mobile-menu li a, .nectar-scrolling-tabs:not(.navigation_func_active_link_only) .scrolling-tab-nav a, .container-wrap a:not(.wpb_tabs_nav a):not(.navigation_func_active_link_only .scrolling-tab-nav a):not(.comment-wrap .navigation a):not(.woocommerce-checkout a):not(.um-woo-view-order):not(.magnific):not([data-fancybox]):not(.woocommerce-tabs .tabs a):not(.slider-prev):not(.slider-next):not(.testimonial-next-prev a):not(.page-numbers), .swiper-slide .button a, #slide-out-widget-area a, #slide-out-widget-area .inner div a',function(i){var o=!0,l=e(this).prop("hash");l&&!e(this).hasClass("nectar-next-section")&&0==e(this).parents(".slide-out-widget-area-toggle").length&&(r.addClass("animated-scrolling"),ye.animatedScrolling=!0),clearTimeout(a),a=setTimeout(function(){r.removeClass("animated-scrolling"),ye.animatedScrolling=!1},1100);var h=e('body[data-header-format="left-header"]').length>0&&s.width()>1e3?0:e("#header-space").outerHeight();if((e(".page-template-template-no-header-footer").length>0||e(".page-template-template-no-header").length>0||0==e("#header-space").length)&&(h=0),0!=me.$usingFullScreenRows&&e('#nectar_fullscreen_rows[data-anchors="on"]').length>0&&l&&""!=l&&"#top"!=l&&e('body.material[data-slide-out-widget-area-style="slide-out-from-right"].material-ocm-open').length>0&&(i.preventDefault(),e(this).hasClass("skip-hash")||(history.pushState?history.pushState(null,null,l):location.hash=l),setTimeout(function(){e(t).trigger("hashchange")},800)),l&&r.find(l).length>0&&"#top"!=l&&""!=l&&-1!==e(this).attr("href").indexOf(t.location.href.split("#")[0])||e(this).is('[href^="#"]')&&""!=l&&r.find(l).length>0&&"#top"!=l){if(e(this).hasClass("skip-hash")||(history.pushState?history.pushState(null,null,l):location.hash=l),e(this).parents("ul").length>0&&e(this).parents("ul").find("li").removeClass("current-menu-item"),e(this).parents("#slide-out-widget-area").length>0){if(e('body.material[data-slide-out-widget-area-style="slide-out-from-right"].material-ocm-open').length>0){e("body > .slide_out_area_close__wrap .slide_out_area_close").addClass("non-human-allowed").trigger("click");var u=e(this);o=!1,setTimeout(function(){u.trigger("click")},1e3)}else e("#slide-out-widget-area .slide_out_area_close").addClass("non-human-allowed").trigger("click");setTimeout(function(){e('body.material[data-slide-out-widget-area-style="slide-out-from-right"]').length>0?e("body > .slide_out_area_close__wrap .slide_out_area_close").removeClass("non-human-allowed"):e("#slide-out-widget-area .slide_out_area_close").removeClass("non-human-allowed")},100)}e(this).parents("#mobile-menu").length>0&&(e(".slide-out-widget-area-toggle.mobile-icon a").addClass("non-human-allowed").trigger("click"),setTimeout(function(){e(".slide-out-widget-area-toggle.mobile-icon a").removeClass("non-human-allowed")},100));var p=1,f=e(this);e(".nectar-box-roll").length>0&&e(".container-wrap.bottomBoxOut").length>0&&(ge.boxRoll(null,-1),p=2050),e("img[data-nectar-img-src]").length>0&&(la(),p=200),setTimeout(function(){var t;if(!0===E){var a=e("#header-outer").outerHeight()+2*parseInt(e("#header-outer").css("margin-top"));t=e(l).offset().top-a-be.adminBarHeight}else if(0==e('body[data-permanent-transparent="1"]').length)if(r.hasClass("mobile"))t=e('#header-outer[data-mobile-fixed="1"]').length>0?e(l).offset().top+2-h+be.adminBarHeight:e(l).offset().top-be.adminBarHeight+1;else{var i=e('#header-outer[data-header-resize="0"]').length>0?0:parseInt(_)+2*n;if(e('#header-outer[data-remove-fixed="1"]').length>0&&(h=0),t=e(l).offset().top-parseInt(h)+i+3-be.adminBarHeight,0==e("body.mobile").length&&0===e("body.page-template-template-no-header").length&&0===e("body.page-template-template-no-header-footer").length&&e('#header-outer[data-condense="true"]').length>0){var s=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),u=d.height()-(parseInt(s.height())+parseInt(e("#header-outer #logo").css("margin-top")));t=e(l).offset().top-parseInt(h)+u-be.adminBarHeight}}else t=e(l).offset().top-be.adminBarHeight+1;e('body[data-hhun="1"]').length>0&&0==e('#header-outer[data-remove-fixed="1"]').length&&((0==e("#header-outer.detached").length||f.parents('.page-submenu[data-sticky="true"]').length>0)&&(t+=h),f.parents('.page-submenu[data-sticky="true"]').length>0&&(e("#header-outer.detached").addClass("invisible"),e(".page-submenu").addClass("header-not-visible").css("transform","translateY(0px)")));var p,g=f.parents('.page-submenu[data-sticky="true"]').length>0?f.parents(".page-submenu").height():0;p=e("body.material").length>0&&c.length>0&&0==e('body[data-hhun="1"]').length&&0==e('#header-outer[data-remove-fixed="1"]').length&&!r.hasClass("mobile")?c.height():e('body[data-hhun="1"]').length>0&&c.length>0&&!r.hasClass("mobile")&&0==e('#header-outer[data-remove-fixed="1"]').length?c.height():0,o&&tt(t-g+p,0,"easeInOutQuint")},p),i.preventDefault()}"#top"==l&&e(this).parents("#slide-out-widget-area").length>0&&e("#slide-out-widget-area .slide_out_area_close").trigger("click")})}}()}function xi(){0==e(t).scrollTop()&&En(),e("video").css("visibility","visible"),e('body[data-animated-anchors="true"]').length>0&&(0==e(".nectar-box-roll").length&&0==e("#nectar_fullscreen_rows").length&&(void 0!==rt.tab?setTimeout(function(){ni()},800):ni()),e('#nectar_fullscreen_rows[data-mobile-disable="on"]').length>0&&0==e(".nectar-box-roll").length&&be.usingMobileBrowser&&ni()),Xt(),be.usingMobileBrowser||Rt()}Sn.prototype.events=function(){var a=this;e(t).on("smartresize",this.resize.bind(this)),t.addEventListener("orientationchange",function(){this.setTimeout(function(){a.orientationChange()},100)})},Sn.prototype.resize=function(){be.usingMobileBrowser||(this.storedWinH=be.winH,this.calculate())},Sn.prototype.calculate=function(){if(1==ye.materialOffCanvasOpen)return!0;this.offsetTop=this.$el.offset().top,this.offsetTop<this.storedWinH&&this.$el.hasClass("top-level")&&!be.usingFrontEndEditor||(this.$el.css("min-height",this.storedWinH),this.$el.find("> .col.span_12").css("min-height",this.storedWinH))},Sn.prototype.orientationChange=function(){be.usingMobileBrowser&&(this.storedWinH=be.winH,this.calculate())},Qn.prototype.resizeEvent=function(){this.initialX=this.$el.width()/2,this.initialY=this.$el.height()/2},Qn.prototype.mouseEvents=function(){var a=this;a.$el.hasClass("play_button_hover")&&(a.hoverOnly=!0),a.$el.on("mouseenter",function(e){a.activeFollow=!0,a.elX=e.offsetX,a.elY=e.offsetY,a.lastScroll=0,a.hoverOnly?(a.percentage=1,clearTimeout(a.exitTimeout),setTimeout(function(){a.percentage=.16},60)):(clearInterval(a.percentageInterval),a.percentageInterval=setInterval(function(){a.percentage<.16?a.percentage+=.008:clearInterval(a.percentageInterval)},30))}),a.$el.on("mouseleave",function(){a.hoverOnly?a.exitTimeout=setTimeout(function(){a.activeFollow=!1,a.lastScroll=0,clearInterval(a.percentageInterval),a.percentage=.03},400):(a.activeFollow=!1,a.lastScroll=0,clearInterval(a.percentageInterval),a.percentage=.03)}),a.$el.on("mousemove",function(e){a.elX=e.offsetX,a.elY=e.offsetY,a.lastScroll=0}),e(t).on("scroll",function(){1==a.activeFollow&&0==a.lastScroll&&(a.lastScroll=be.scrollTop)})},Qn.prototype.rafLoop=function(){1==this.activeFollow?(this.scrollAdjust=0,this.alteredY=this.elY,this.lastScroll>0&&(this.scrollAdjust=be.scrollTop-this.lastScroll,this.alteredY+=this.scrollAdjust),this.lastY=De(this.lastY,this.alteredY,this.percentage),this.lastX=De(this.lastX,this.elX,this.percentage),this.lastY2=De(this.lastY2,this.alteredY,this.percentage),this.innerLastX=De(this.innerLastX,parseInt(this.elX)-parseInt(this.lastX),this.percentage)/1.7,this.innerLastY=De(this.innerLastY,parseInt(this.alteredY)-parseInt(this.lastY2),this.percentage)/1.7):(this.lastY=De(this.lastY,this.initialY,.055),this.lastX=De(this.lastX,this.initialX,.055),this.innerLastX=0,this.innerLastY=0),this.$iconEl[0].style.transform="translateX("+this.lastX+"px) translateY("+this.lastY+"px)",this.$innerIconEl.length>0&&(this.$innerIconEl[0].style.transform="translateX("+Ne(this.innerLastX,14,-14)+"px) translateY("+Ne(this.innerLastY,14,-14)+"px)"),requestAnimationFrame(this.rafLoop.bind(this))},jQuery(a).ready(function(e){be.usingFrontEndEditor=void 0!==t.vc_iframe,rn(),ui(),ha(),gn(),vn(),bn(),On(),ln(),gi(),Mt(),Vt(),At(),Wt(),Xt(),Ia(),Mn(),An(),Yt(),Rt(),za(),Ea(),Oa(),Sa(),Aa(),tn(),Hn(),un(),mi(),ri(),Ci(),new Je,pi(),vi(),yi(),_i(),s.off("smartresize.srInit"),s.on("smartresize.srInit",_e),s.off("resize.srInit"),s.on("resize.srInit",xe),t.addEventListener("orientationchange",Ce),"complete"===a.readyState&&xi(),s.on("load",xi)})}(window.jQuery,window,document);
(function(d){var m="left",l="right",c="up",s="down",b="in",t="out",j="none",o="auto",i="swipe",p="pinch",u="tap",x="horizontal",q="vertical",g="all",e="start",h="move",f="end",n="cancel",a="ontouchstart" in window,v="TouchSwipe";var k={fingers:1,threshold:75,cancelThreshold:25,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};d.fn.swipe=function(A){var z=d(this),y=z.data(v);if(y&&typeof A==="string"){if(y[A]){return y[A].apply(this,Array.prototype.slice.call(arguments,1))}else{d.error("Method "+A+" does not exist on jQuery.swipe")}}else{if(!y&&(typeof A==="object"||!A)){return r.apply(this,arguments)}}return z};d.fn.swipe.defaults=k;d.fn.swipe.phases={PHASE_START:e,PHASE_MOVE:h,PHASE_END:f,PHASE_CANCEL:n};d.fn.swipe.directions={LEFT:m,RIGHT:l,UP:c,DOWN:s,IN:b,OUT:t};d.fn.swipe.pageScroll={NONE:j,HORIZONTAL:x,VERTICAL:q,AUTO:o};d.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:g};function r(y){if(y&&(y.allowPageScroll===undefined&&(y.swipe!==undefined||y.swipeStatus!==undefined))){y.allowPageScroll=j}if(y.click!==undefined&&y.tap===undefined){y.tap=y.click}if(!y){y={}}y=d.extend({},d.fn.swipe.defaults,y);return this.each(function(){var A=d(this);var z=A.data(v);if(!z){z=new w(this,y);A.data(v,z)}})}function w(S,ag){var aJ=(a||!ag.fallbackToMouseEvents),az=aJ?"touchstart":"mousedown",U=aJ?"touchmove":"mousemove",av=aJ?"touchend":"mouseup",D=aJ?null:"mouseleave",R="touchcancel";var ad=0,N=null,ah=0,aF=0,A=0,aj=1,aA=0,aN=0,Z=null;var H=d(S);var O="start";var aI=0;var ai=null;var I=0,Y=0,aD=0,aP=0;try{H.bind(az,at);H.bind(R,L)}catch(aG){d.error("events not supported "+az+","+R+" on jQuery.swipe")}this.enable=function(){H.bind(az,at);H.bind(R,L);return H};this.disable=function(){Q();return H};this.destroy=function(){Q();H.data(v,null);return H};this.option=function(aR,aQ){if(ag[aR]!==undefined){if(aQ===undefined){return ag[aR]}else{ag[aR]=aQ}}else{d.error("Option "+aR+" does not exist on jQuery.swipe.options")}};function at(aS){if(X()){return}if(d(aS.target).closest(ag.excludedElements,H).length>0){return}var aT=aS.originalEvent?aS.originalEvent:aS;var aR,aQ=a?aT.touches[0]:aT;O=e;if(a){aI=aT.touches.length}else{aS.preventDefault()}ad=0;N=null;aN=null;ah=0;aF=0;A=0;aj=1;aA=0;ai=T();Z=aE();z();if(!a||(aI===ag.fingers||ag.fingers===g)||ap()){aO(0,aQ);I=B();if(aI==2){aO(1,aT.touches[1]);aF=A=aa(ai[0].start,ai[1].start)}if(ag.swipeStatus||ag.pinchStatus){aR=aH(aT,O)}}else{aR=false}if(aR===false){O=n;aH(aT,O);return aR}else{ak(true)}}function P(aT){var aW=aT.originalEvent?aT.originalEvent:aT;if(O===f||O===n||af()){return}var aS,aR=a?aW.touches[0]:aW;var aU=V(aR);Y=B();if(a){aI=aW.touches.length}O=h;if(aI==2){if(aF==0){aO(1,aW.touches[1]);aF=A=aa(ai[0].start,ai[1].start)}else{V(aW.touches[1]);A=aa(ai[0].end,ai[1].end);aN=ao(ai[0].end,ai[1].end)}aj=y(aF,A);aA=Math.abs(aF-A)}if((aI===ag.fingers||ag.fingers===g)||!a||ap()){N=ar(aU.start,aU.end);C(aT,N);ad=G(aU.start,aU.end);ah=K();aK(N,ad);if(ag.swipeStatus||ag.pinchStatus){aS=aH(aW,O)}if(!ag.triggerOnTouchEnd||ag.triggerOnTouchLeave){var aQ=true;if(ag.triggerOnTouchLeave){var aV=au(this);aQ=aC(aU.end,aV)}if(!ag.triggerOnTouchEnd&&aQ){O=aM(h)}else{if(ag.triggerOnTouchLeave&&!aQ){O=aM(f)}}if(O==n||O==f){aH(aW,O)}}}else{O=n;aH(aW,O)}if(aS===false){O=n;aH(aW,O)}}function ab(aS){var aU=aS.originalEvent;if(a){if(aU.touches.length>0){aw();return true}}if(af()){aI=aP}aS.preventDefault();Y=B();if(ag.triggerOnTouchEnd||(ag.triggerOnTouchEnd==false&&O===h)){O=f;var aR=((aI===ag.fingers||ag.fingers===g)||!a);var aQ=ai[0].end.x!==0;var aT=aR&&aQ&&(an()||aB());if(aT){aH(aU,O)}else{O=n;aH(aU,O)}}else{if(!ag.triggerOnTouchEnd&&ay()){O=f;am(aU,O,u)}else{if(O===h){O=n;aH(aU,O)}}}ak(false)}function L(){aI=0;Y=0;I=0;aF=0;A=0;aj=1;z();ak(false)}function W(aQ){var aR=aQ.originalEvent;if(ag.triggerOnTouchLeave){O=aM(f);aH(aR,O)}}function Q(){H.unbind(az,at);H.unbind(R,L);H.unbind(U,P);H.unbind(av,ab);if(D){H.unbind(D,W)}ak(false)}function aM(aT){var aS=aT;var aR=aq();var aQ=ae();if(!aR){aS=n}else{if(aQ&&aT==h&&(!ag.triggerOnTouchEnd||ag.triggerOnTouchLeave)){aS=f}else{if(!aQ&&aT==f&&ag.triggerOnTouchLeave){aS=n}}}return aS}function aH(aS,aQ){var aR=undefined;if(ac()){aR=am(aS,aQ,i)}if(ap()&&aR!==false){aR=am(aS,aQ,p)}if(ay()&&aR!==false){aR=am(aS,aQ,u)}if(aQ===n){L(aS)}if(aQ===f){if(a){if(aS.touches.length==0){L(aS)}}else{L(aS)}}return aR}function am(aT,aQ,aS){var aR=undefined;if(aS==i){H.trigger("swipeStatus",[aQ,N||null,ad||0,ah||0,aI]);if(ag.swipeStatus){aR=ag.swipeStatus.call(H,aT,aQ,N||null,ad||0,ah||0,aI);if(aR===false){return false}}if(aQ==f&&aB()){H.trigger("swipe",[N,ad,ah,aI]);if(ag.swipe){aR=ag.swipe.call(H,aT,N,ad,ah,aI);if(aR===false){return false}}switch(N){case m:H.trigger("swipeLeft",[N,ad,ah,aI]);if(ag.swipeLeft){aR=ag.swipeLeft.call(H,aT,N,ad,ah,aI)}break;case l:H.trigger("swipeRight",[N,ad,ah,aI]);if(ag.swipeRight){aR=ag.swipeRight.call(H,aT,N,ad,ah,aI)}break;case c:H.trigger("swipeUp",[N,ad,ah,aI]);if(ag.swipeUp){aR=ag.swipeUp.call(H,aT,N,ad,ah,aI)}break;case s:H.trigger("swipeDown",[N,ad,ah,aI]);if(ag.swipeDown){aR=ag.swipeDown.call(H,aT,N,ad,ah,aI)}break}}}if(aS==p){H.trigger("pinchStatus",[aQ,aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchStatus){aR=ag.pinchStatus.call(H,aT,aQ,aN||null,aA||0,ah||0,aI,aj);if(aR===false){return false}}if(aQ==f&&an()){switch(aN){case b:H.trigger("pinchIn",[aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchIn){aR=ag.pinchIn.call(H,aT,aN||null,aA||0,ah||0,aI,aj)}break;case t:H.trigger("pinchOut",[aN||null,aA||0,ah||0,aI,aj]);if(ag.pinchOut){aR=ag.pinchOut.call(H,aT,aN||null,aA||0,ah||0,aI,aj)}break}}}if(aS==u){if(aQ===n||aQ===f){if((aI===1||!a)&&(isNaN(ad)||ad===0)){H.trigger("tap",[aT.target]);if(ag.tap){aR=ag.tap.call(H,aT,aT.target)}}}}return aR}function ae(){var aQ=true;if(ag.threshold!==null){aQ=ad>=ag.threshold}if(aQ&&ag.cancelThreshold!==null){aQ=(M(N)-ad)<ag.cancelThreshold}return aQ}function al(){if(ag.pinchThreshold!==null){return aA>=ag.pinchThreshold}return true}function aq(){var aQ;if(ag.maxTimeThreshold){if(ah>=ag.maxTimeThreshold){aQ=false}else{aQ=true}}else{aQ=true}return aQ}function C(aQ,aR){if(ag.allowPageScroll===j||ap()){aQ.preventDefault()}else{var aS=ag.allowPageScroll===o;switch(aR){case m:if((ag.swipeLeft&&aS)||(!aS&&ag.allowPageScroll!=x)){aQ.preventDefault()}break;case l:if((ag.swipeRight&&aS)||(!aS&&ag.allowPageScroll!=x)){aQ.preventDefault()}break;case c:if((ag.swipeUp&&aS)||(!aS&&ag.allowPageScroll!=q)){aQ.preventDefault()}break;case s:if((ag.swipeDown&&aS)||(!aS&&ag.allowPageScroll!=q)){aQ.preventDefault()}break}}}function an(){return al()}function ap(){return !!(ag.pinchStatus||ag.pinchIn||ag.pinchOut)}function ax(){return !!(an()&&ap())}function aB(){var aQ=aq();var aS=ae();var aR=aS&&aQ;return aR}function ac(){return !!(ag.swipe||ag.swipeStatus||ag.swipeLeft||ag.swipeRight||ag.swipeUp||ag.swipeDown)}function E(){return !!(aB()&&ac())}function ay(){return !!(ag.tap)}function aw(){aD=B();aP=event.touches.length+1}function z(){aD=0;aP=0}function af(){var aQ=false;if(aD){var aR=B()-aD;if(aR<=ag.fingerReleaseThreshold){aQ=true}}return aQ}function X(){return !!(H.data(v+"_intouch")===true)}function ak(aQ){if(aQ===true){H.bind(U,P);H.bind(av,ab);if(D){H.bind(D,W)}}else{H.unbind(U,P,false);H.unbind(av,ab,false);if(D){H.unbind(D,W,false)}}H.data(v+"_intouch",aQ===true)}function aO(aR,aQ){var aS=aQ.identifier!==undefined?aQ.identifier:0;ai[aR].identifier=aS;ai[aR].start.x=ai[aR].end.x=aQ.pageX||aQ.clientX;ai[aR].start.y=ai[aR].end.y=aQ.pageY||aQ.clientY;return ai[aR]}function V(aQ){var aS=aQ.identifier!==undefined?aQ.identifier:0;var aR=J(aS);aR.end.x=aQ.pageX||aQ.clientX;aR.end.y=aQ.pageY||aQ.clientY;return aR}function J(aR){for(var aQ=0;aQ<ai.length;aQ++){if(ai[aQ].identifier==aR){return ai[aQ]}}}function T(){var aQ=[];for(var aR=0;aR<=5;aR++){aQ.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return aQ}function aK(aQ,aR){aR=Math.max(aR,M(aQ));Z[aQ].distance=aR}function M(aQ){return Z[aQ].distance}function aE(){var aQ={};aQ[m]=aL(m);aQ[l]=aL(l);aQ[c]=aL(c);aQ[s]=aL(s);return aQ}function aL(aQ){return{direction:aQ,distance:0}}function K(){return Y-I}function aa(aT,aS){var aR=Math.abs(aT.x-aS.x);var aQ=Math.abs(aT.y-aS.y);return Math.round(Math.sqrt(aR*aR+aQ*aQ))}function y(aQ,aR){var aS=(aR/aQ)*1;return aS.toFixed(2)}function ao(){if(aj<1){return t}else{return b}}function G(aR,aQ){return Math.round(Math.sqrt(Math.pow(aQ.x-aR.x,2)+Math.pow(aQ.y-aR.y,2)))}function F(aT,aR){var aQ=aT.x-aR.x;var aV=aR.y-aT.y;var aS=Math.atan2(aV,aQ);var aU=Math.round(aS*180/Math.PI);if(aU<0){aU=360-Math.abs(aU)}return aU}function ar(aR,aQ){var aS=F(aR,aQ);if((aS<=45)&&(aS>=0)){return m}else{if((aS<=360)&&(aS>=315)){return m}else{if((aS>=135)&&(aS<=225)){return l}else{if((aS>45)&&(aS<135)){return s}else{return c}}}}}function B(){var aQ=new Date();return aQ.getTime()}function au(aQ){aQ=d(aQ);var aS=aQ.offset();var aR={left:aS.left,right:aS.left+aQ.outerWidth(),top:aS.top,bottom:aS.top+aQ.outerHeight()};return aR}function aC(aQ,aR){return(aQ.x>aR.left&&aQ.x<aR.right&&aQ.y>aR.top&&aQ.y<aR.bottom)}}})(jQuery);
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
document.documentElement.className +=" js_active ", document.documentElement.className +="ontouchstart" in document.documentElement ? " vc_mobile ":" vc_desktop ", (()=> {
for (var e=["-webkit-", "-moz-", "-ms-", "-o-", ""], t=0; t < e.length; t++) e[t] + "transform" in document.documentElement.style&&(document.documentElement.className +=" vc_transform ")
})(), (c=> {
"function"!=typeof window.vc_js&&(window.vc_js=function(){
vc_rowBehaviour();
}), "function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){
(e ? e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){
var e=jQuery(this),
t=1e3 * parseInt(e.attr("data-interval"), 10),
o=e.attr("data-flex_fx"),
i=0==t ? !1:!0;
e.is(":visible")&&setTimeout(function(){
e.flexslider({
animation: o,
slideshow: i,
slideshowSpeed: t,
sliderSpeed: 800,
smoothHeight: !0
})
}, 1)
})
}), "function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){
var e, t;
0 < jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript", e.async = !0, e.src="https://apis.google.com/js/plusone.js", (t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e, t))
}), "function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){
var e, t;
0 < jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript", e.async = !0, e.src="https://assets.pinterest.com/js/pinit.js", (t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e, t))
}), "function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){
void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){
var e=jQuery(this);
e.vcwaypoint(function(){
e.find(".vc_single_bar").each(function(e){
var t=jQuery(this).find(".vc_bar"),
o=t.data("percentage-value");
setTimeout(function(){
t.css({
width: o + "%"
})
}, 200 * e)
})
}, {
offset: "85%"
})
})
}), "function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){
void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){
var e=jQuery(this);
e.vcwaypoint(function(){
e.addClass("wpb_start_animation animated")
}, {
offset: "85%"
})
})
}), "function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){
function t(e){
e&&e.preventDefault&&e.preventDefault();
var t=jQuery(this).closest(".vc_toggle"),
e=t.find(".vc_toggle_content");
t.hasClass("vc_toggle_active") ? e.slideUp({
duration: 300,
complete: function(){
t.removeClass("vc_toggle_active")
}}):e.slideDown({
duration: 300,
complete: function(){
t.addClass("vc_toggle_active")
}})
}(e ? e.hasClass("vc_toggle_title") ? e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click", t)
}), "function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){
function t(){
var e=jQuery(this);
e.toggleClass("wpb-tta-toggle-active"), e.parent().parent().parent().find(".vc_pagination-item").each(function(){
if(!c(this).hasClass("vc_active")) return c(this).find("a").click(), !1
})
}(e ? e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click", t), setTimeout(function(){
jQuery(".wpb-tta-toggle").each(function(){
var e=jQuery(this);
e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")
})
}, 1e3)
}), "function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){
var t, i;
jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"), t=jQuery.ui&&jQuery.ui.version ? jQuery.ui.version.split("."):"1.10", i=1===parseInt(t[0], 10)&&parseInt(t[1], 10) < 9, e.each(function(){
var e=jQuery(this).attr("data-interval"),
t=[],
o=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({
show: function(e, t){
wpb_prepare_tab_content(e, t)
},
activate: function(e, t){
wpb_prepare_tab_content(e, t)
}});
if(e&&0 < e) try {
o.tabs("rotate", 1e3 * e)
} catch (e){
window.console&&window.console.warn&&console.warn("tabs behaviours error", e)
}
jQuery(this).find(".wpb_tab").each(function(){
t.push(this.id)
}), jQuery(this).find(".wpb_tabs_nav li").on("click", function(e){
return e&&e.preventDefault&&e.preventDefault(), i ? o.tabs("select", jQuery("a", this).attr("href")):o.tabs("option", "active", jQuery(this).index()), !1
}), jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click", function(e){
var t;
e&&e.preventDefault&&e.preventDefault(), i ? (t=o.tabs("option", "selected"), jQuery(this).parent().hasClass("wpb_next_slide") ? t++:t--, t < 0 ? t=o.tabs("length") - 1:t >=o.tabs("length")&&(t=0), o.tabs("select", t)):(t=o.tabs("option", "active"), e=o.find(".wpb_tab").length, t=jQuery(this).parent().hasClass("wpb_next_slide") ? e <=t + 1 ? 0:t + 1:t - 1 < 0 ? e - 1:t - 1, o.tabs("option", "active", t))
})
}))
}), "function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){
jQuery(".wpb_accordion").each(function(){
var e=jQuery(this),
t=(e.attr("data-interval"), !isNaN(jQuery(this).data("active-tab"))&&0 < parseInt(e.data("active-tab"), 10)&&parseInt(e.data("active-tab"), 10) - 1),
o = !1===t||"yes"===e.data("collapsible"),
t=e.find(".wpb_accordion_wrapper").accordion({
header: "> div > h3",
autoHeight: !1,
heightStyle: "content",
active: t,
collapsible: o,
navigation: !0,
activate: vc_accordionActivate,
change: function(e, t){
void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"), vc_carouselBehaviour(t.newPanel)
}});
!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})
})
}), "function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){
var i={
fitrows: "fitRows",
masonry: "masonry"
};
jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){
var e=jQuery(this),
t=e.find(".wpb_thumbnails"),
o=t.attr("data-layout-mode");
t.isotope({
itemSelector: ".isotope-item",
layoutMode: void 0===i[o] ? "fitRows":i[o]
}), e.find(".categories_filter a").data("isotope", t).on("click", function(e){
e&&e.preventDefault&&e.preventDefault();
e=jQuery(this).data("isotope");
jQuery(this).parent().parent().find(".active").removeClass("active"), jQuery(this).parent().addClass("active"), e.isotope({
filter: jQuery(this).attr("data-filter")
})
}), jQuery(window).on("load resize", function(){
t.isotope("layout")
})
})
}), "function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){
(e ? e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){
var e=jQuery(this);
!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled", !0), getColumnsCount(jQuery(this)), jQuery(this).hasClass("columns_count_1"), (e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({
"margin-right": e.css("margin-left"),
"margin-left": 0
}), (e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width() + 300))
})
}), "function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){
jQuery(".wpb_gallery_slides").each(function(){
var e, t, o=jQuery(this);
o.hasClass("wpb_slider_nivo") ? (0===(t=1e3 * o.attr("data-interval"))&&(t=9999999999), o.find(".nivoSlider").nivoSlider({
effect: "boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",
slices: 15,
boxCols: 8,
boxRows: 4,
animSpeed: 800,
pauseTime: t,
startSlide: 0,
directionNav: !0,
directionNavHide: !0,
controlNav: !0,
keyboardNav: !1,
pauseOnHover: !0,
manualAdvance: !1,
prevText: "Prev",
nextText: "Next"
})):o.hasClass("wpb_image_grid")&&o.find(".wpb_image_grid_ul")&&o.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded ? e=o.find(".wpb_image_grid_ul").imagesLoaded(function(){
e.isotope({
itemSelector: ".isotope-item",
layoutMode: "fitRows"
})
}):o.find(".wpb_image_grid_ul").isotope({
itemSelector: ".isotope-item",
layoutMode: "fitRows"
}))
})
}), "function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){
try {
jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
animationSpeed: "normal",
hook: "data-rel",
padding: 15,
opacity: .7,
showTitle: !0,
allowresize: !0,
counter_separator_label: "/",
hideflash: !1,
deeplinking: !1,
modal: !1,
callback: function(){
-1 < location.href.indexOf("#!prettyPhoto")&&(location.hash="")
},
social_tools: ""
})
} catch (e){
window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error", e)
}}), "function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){
return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"), !1
}), window.vcParallaxSkroll = !1, "function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){
var s=window.jQuery;
function e(){
var e;
void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'), s.each(e, function(){
var e, t, o, i, n, a, r, c=s(this),
d=(c.addClass("vc_hidden"), c.next(".vc_row-full-width"));
(d=d.length ? d:c.parent().next(".vc_row-full-width")).length&&(e=parseInt(c.css("margin-left"), 10), t=parseInt(c.css("margin-right"), 10), o=0 - d.offset().left - e, i=s(window).width(), n={
position: "relative",
left: o="rtl"===c.css("direction") ? (o=o - d.width() + i) + e + t:o,
"box-sizing": "border-box",
width: i,
"max-width": i
}, c.css(n), c.data("vcStretchContent")||("rtl"===c.css("direction") ? ((a=o) < 0&&(a=0), (r=o) < 0&&(r=0)):(r=i - (a=(a=-1 * o) < 0 ? 0:a) - d.width() + e + t) < 0&&(r=0), c.css({
"padding-left": a + "px",
"padding-right": r + "px"
})), c.attr("data-vc-full-width-init", "true"), c.removeClass("vc_hidden"), s(document).trigger("vc-full-width-row-single", {
el: c,
offset: o,
marginLeft: e,
marginRight: t,
elFull: d,
width: i,
maxWidth: i
}))
}), s(document).trigger("vc-full-width-row", e))
}
function t(){
var e, t, o=s(".vc_row-o-full-height:first");
o.length&&(e=s(window).height(), (t=o.offset().top) < e)&&o.css("min-height", 100 - t / (e / 100) + "vh"), s(document).trigger("vc-full-height-row", o)
}
s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour", e).on("resize.vcRowBehaviour", t), e(), t(), (0 < window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){
"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')
}), vc_initVideoBackgrounds();
var n = !1;
if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(), s(".vc_parallax-inner").remove(), s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"), s("[data-vc-parallax]").each(function(){
var e, t, o, i;
n = !0, "on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom", "opacity:0;").attr("data-30p-top-bottom", "opacity:1;"), e=100 * s(this).data("vcParallax"), (t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e + "%"), o=s(this).data("vcParallaxImage"), (i=vcExtractYoutubeId(o)) ? insertYoutubeVideoAsBackground(t, i):void 0!==o&&t.css("background-image", "url(" + o + ")"), t.attr("data-bottom-top", "top: " + -(e - 100) + "%;").attr("data-top-bottom", "top: 0%;")
}), n&&window.skrollr) window.vcParallaxSkroll=skrollr.init({
forceHeight: !1,
smoothScrolling: !1,
mobileCheck: function(){
return !1
}}), window.vcParallaxSkroll
}), "function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){
jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()
}), "function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){
for (var t = !1, o=1; !1===t;){
if(e.hasClass("columns_count_" + o)) return t = !0, o;
o++
}}), "function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e, t){
var o=t.panel||t.newPanel,
i=o.find(".vc_pie_chart:not(.vc_ready)"),
n=o.find(".vc_round-chart"),
a=o.find(".vc_line-chart"),
r=o.find('[data-ride="vc_carousel"]');
vc_carouselBehaviour(), vc_plugin_flexslider(o), t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var e=jQuery(this).data("vcGrid");
e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()
}), o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var e=jQuery(this).data("vcGrid");
e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()
}), i.length&&jQuery.fn.vcChat&&i.vcChat(), n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({
reload: !1
}), a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({
reload: !1
}), r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"), t=o.find(".isotope, .wpb_image_grid_ul"), i=o.find(".wpb_gmaps_widget"), 0 < t.length&&t.isotope("layout"), i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src", n.attr("src")), i.addClass("map_ready")), o.parents(".isotope").length&&o.parents(".isotope").each(function(){
jQuery(this).isotope("layout")
}), c(document).trigger("wpb_prepare_tab_content", o)
}), "function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){
jQuery("[data-vc-accordion]").on("show.vc.accordion", function(e){
var t=window.jQuery,
o={};
o.newPanel=t(this).data("vc.accordion").getTarget(), window.wpb_prepare_tab_content(e, o)
})
}), "function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e, t){
var o, i, n, a;
t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"), i=t.newPanel.find(".vc_round-chart"), n=t.newPanel.find(".vc_line-chart"), a=t.newPanel.find('[data-ride="vc_carousel"]'), void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"), t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var e=jQuery(this).data("vcGrid");
e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()
}), vc_carouselBehaviour(t.newPanel), vc_plugin_flexslider(t.newPanel), o.length&&jQuery.fn.vcChat&&o.vcChat(), i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({
reload: !1
}), n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({
reload: !1
}), a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"), t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){
jQuery(this).isotope("layout")
})
}), "function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){
return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"), vc_initVideoBackgrounds()
}), "function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){
c(".vc_video-bg").remove(), c("[data-vc-video-bg]").each(function(){
var e, o=jQuery(this);
o.data("vcVideoBg") ? (e=o.data("vcVideoBg"), (e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(), insertYoutubeVideoAsBackground(o, e)), jQuery(window).on("grid:items:added", function(e, t){
o.has(t).length&&vcResizeVideoBackground(o)
})):o.find(".vc_video-bg").remove()
})
}), "function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e, t, o){
if("undefined"==typeof YT||void 0===YT.Player) return 100 < (o=void 0===o ? 0:o) ? void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){
insertYoutubeVideoAsBackground(e, t, o++)
}, 100);
var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");
new YT.Player(i[0], {
width: "100%",
height: "100%",
videoId: t,
playerVars: {
playlist: t,
iv_load_policy: 3,
enablejsapi: 1,
disablekb: 1,
autoplay: 1,
controls: 0,
showinfo: 0,
rel: 0,
loop: 1,
mute: 1,
wmode: "transparent"
},
events: {
onReady: function(e){
e.target.mute().setLoop(!0)
}}
}), vcResizeVideoBackground(e), jQuery(window).on("resize", function(){
vcResizeVideoBackground(e)
})
}), "function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){
var t, o, i, n, a=e.innerWidth(),
r=e.innerHeight();
a / r < 16 / 9 ? (t=r * (16 / 9), o=r, i=-Math.round((t - a) / 2) + "px", n=-Math.round((o - r) / 2) + "px"):(o=(t=a) * (9 / 16), n=-Math.round((o - r) / 2) + "px", i=-Math.round((t - a) / 2) + "px"), t +="px", o +="px", e.find(".vc_video-bg iframe").css({
maxWidth: "1000%",
marginLeft: i,
marginTop: n,
width: t,
height: o
})
}), "function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){
return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]
}), "function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){
var e=window.jQuery,
t=e(".wpb_gmaps_widget");
t.on("click", function(){
e("iframe", this).css("pointer-events", "auto")
}), t.on("mouseleave", function(){
e("iframe", this).css("pointer-events", "none")
}), e(".wpb_gmaps_widget iframe").css("pointer-events", "none")
}), "function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){
e.each(function(){
var e=jQuery(this),
t=e.width();
e.css("perspective", 4 * t + "px")
})
}), "function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){
e.each(function(){
var e=jQuery(this),
t=e.find(".vc-hoverbox-inner"),
o=(t.css("min-height", 0), e.find(".vc-hoverbox-front-inner").outerHeight()),
e=e.find(".vc-hoverbox-back-inner").outerHeight(),
o=e < o ? o:e;
t.css("min-height", (o=o < 250 ? 250:o) + "px")
})
}), "function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){
var e=jQuery(".vc-hoverbox");
vc_setHoverBoxHeight(e), vc_setHoverBoxPerspective(e)
}), jQuery(document).ready(window.vc_prepareHoverBox), jQuery(window).on("resize", window.vc_prepareHoverBox), jQuery(document).ready(function(){
window.vc_js()
})
})(window.jQuery);
function load_scripts_and_css(a){var b={};jQuery.each(a.css,function(a,c){b["ig_css_"+a]=1}),jQuery.each(a.scripts,function(a,c){b["ig_script_"+a]=1});var c=function(c){var d=c.target.id||"";""!=d&&b.hasOwnProperty(d)&&delete b[d],jQuery.isEmptyObject(b)&&(jQuery(window).trigger("scripts_loaded.icegram"),jQuery(function(){window.icegram=new Icegram,window.icegram.init(a),jQuery("body").addClass("ig_"+icegram_pre_data.post_obj.device),icegram_timing.end=Date.now()}))};jQuery.each(a.css,function(a,b){jQuery("<link>").attr("type","text/css").attr("rel","stylesheet").attr("id","ig_css_"+a).attr("media","all").appendTo("head").on("load",c).attr("href",b)});var d=a.scripts.shift();jQuery("<script>").attr("type","text/javascript").attr("id","ig_script_0").appendTo("body").on("load",function(b){c(b),jQuery.each(a.scripts,function(a,b){jQuery("<script>").attr("type","text/javascript").attr("id","ig_script_"+(a+1)).appendTo("body").on("load",c).attr("src",b)})}).attr("src",d)}try{var icegram_data,icegram_timing={};icegram_pre_data.post_obj.referral_url=window.location.href,icegram_timing.start=Date.now(),"yes"===icegram_pre_data.post_obj.cache_compatibility?(icegram_pre_data.post_obj.hasOwnProperty("add-to-cart")&&delete icegram_pre_data.post_obj["add-to-cart"],jQuery.ajax({url:icegram_pre_data.ajax_url,type:"POST",async:!0,cache:!1,data:icegram_pre_data.post_obj,dataType:"json",success:function(a){a?(icegram_data=a,load_scripts_and_css(icegram_data)):jQuery(".ig_inline_container:empty").remove()},error:function(a){}}),jQuery(window).on("init.icegram",function(a,b){"undefined"!=typeof b&&"undefined"!=typeof b.messages&&jQuery.each(b.messages,function(a,b){b.data.assets&&(jQuery.each(b.data.assets.styles||[],function(a,b){var c=jQuery("<div/>").html(b).find("link").attr("href");c&&0==jQuery('link[href="'+c+'"]').length&&jQuery("body").append(b)}),jQuery.each(b.data.assets.scripts||[],function(a,b){var c=jQuery("<div/>").html("<script "+b).find("script").attr("src");c&&0==jQuery('script[src="'+c+'"]').length&&jQuery("body").append("<script "+b)}))})})):"undefined"!=typeof icegram_data&&load_scripts_and_css(icegram_data),jQuery(window).on("init.icegram",function(a,b){"undefined"!=typeof b&&"undefined"!=typeof b.messages&&jQuery.each(b.messages,function(a,b){"yes"==b.data.use_custom_code&&"undefined"!=typeof b.data.custom_js&&jQuery("body").append(b.data.custom_js)}),jQuery("body").find(".trigger_onclick").length&&jQuery.each(jQuery("body").find(".trigger_onclick"),function(a,c){var d="",e=jQuery(c).data("campaigns"),f=b.get_message_by_campaign_id(e);jQuery.each(f,function(a,b){var c=parseInt(b.data.id);d+="icegram.get_message_by_id("+c+").show();"}),jQuery(c).children().length?jQuery(c).children().attr("onclick",d):jQuery(c).attr("onclick",d)})})}catch(err){console.log(err)};