try{ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr(props, pass) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g=0)&&b(c,!e)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(b,c){function d(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===c?["Left","Right"]:["Top","Bottom"],f=c.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(b){return void 0===b?g["inner"+c].call(this):this.each(function(){a(this).css(f,d(this,b)+"px")})},a.fn["outer"+c]=function(b,e){return"number"!=typeof b?g["outer"+c].call(this,b):this.each(function(){a(this).css(f,d(this,b,!0,e)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(b){if(void 0!==b)return this.css("zIndex",b);if(this.length)for(var c,d,e=a(this[0]);e.length&&e[0]!==document;){if(c=e.css("position"),("absolute"===c||"relative"===c||"fixed"===c)&&(d=parseInt(e.css("zIndex"),10),!isNaN(d)&&0!==d))return d;e=e.parent()}return 0}}),a.ui.plugin={add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c,d){var e,f=a.plugins[b];if(f&&(d||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(e=0;e'+wc_add_to_cart_params.i18n_view_cart+""),e&&a.each(e,function(b,c){a(b).replaceWith(c)}),a(".widget_shopping_cart, .updating").stop(!0).css("opacity","1").unblock(),a(".shop_table.cart").load(d+" .shop_table.cart:eq(0) > *",function(){a(".shop_table.cart").stop(!0).css("opacity","1").unblock(),a(document.body).trigger("cart_page_refreshed")}),a(".cart_totals").load(d+" .cart_totals:eq(0) > *",function(){a(".cart_totals").stop(!0).css("opacity","1").unblock()}),a(document.body).trigger("added_to_cart",[e,f,b])}}),!1}return!0})});}catch(e){} try{window.jQuery(document).ready(function($){$('body').on('adding_to_cart',function(event,$button,data){$button&&$button.hasClass('vc_gitem-link')&&$button.addClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').addClass('vc-woocommerce-add-to-cart-loading').append($('
'));}).on('added_to_cart',function(event,fragments,cart_hash,$button){if('undefined'===typeof($button)){$button=$('.vc-gitem-add-to-cart-loading-btn');} $button&&$button.hasClass('vc_gitem-link')&&$button.removeClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').removeClass('vc-woocommerce-add-to-cart-loading').find('.vc_wc-load-add-to-loader-wrapper').remove();});});}catch(e){} try{function countUp(a,b,c,d,e,f){this.options=f||{useEasing:!0,useGrouping:!0,separator:",",decimal:"."};for(var g=0,h=["webkit","moz","ms"],i=0;ithis.endVal,this.startTime=null,this.timestamp=null,this.remaining=null,this.frameVal=this.startVal,this.rAF=null,this.decimals=Math.max(0,d||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*e||2e3,this.easeOutExpo=function(a,b,c,d){return c*(-Math.pow(2,-10*a/d)+1)*1024/1023+b},this.count=function(a){null===j.startTime&&(j.startTime=a),j.timestamp=a;var b=a-j.startTime;if(j.remaining=j.duration-b,j.options.useEasing)if(j.countDown){var c=j.easeOutExpo(b,0,j.startVal-j.endVal,j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.easeOutExpo(b,j.startVal,j.endVal-j.startVal,j.duration);else if(j.countDown){var c=(j.startVal-j.endVal)*(b/j.duration);j.frameVal=j.startVal-c}else j.frameVal=j.startVal+(j.endVal-j.startVal)*(b/j.duration);j.frameVal=Math.round(j.frameVal*j.dec)/j.dec,j.countDown?j.frameVal=j.frameValj.endVal?j.endVal:j.frameVal,j.d.innerHTML=j.formatNumber(j.frameVal.toFixed(j.decimals)),b1?j.options.decimal+b[1]:"",e=/(\d+)(\d{3})/,j.options.useGrouping)for(;e.test(c);)c=c.replace(e,"$1"+j.options.separator+"$2");return c+d},j.d.innerHTML=j.formatNumber(j.startVal.toFixed(j.decimals))}function ult_creative_link_ht(){jQuery(".ult_cl_link_9").each(function(a){var b=jQuery(this).find(".ult_colorlink").outerHeight(),b=parseInt(b/2);jQuery(this).find(".ult_btn9_link_top").css({"-webkit-transform":"translateY(-"+b+"px)","-ms-transform":"translateY(-"+b+"px)","-moz-transform":"translateY(-"+b+"px)",transform:"translateY(-"+b+"px)"}),jQuery(this).find(".ult_btn9_link_btm").css({"-webkit-transform":"translateY("+b+"px)","-moz-transform":"translateY("+b+"px)","-ms-transform":"translateY("+b+"px)",transform:"translateY("+b+"px)"})})}function recallme(){jQuery(".ult_dual_button").each(function(a){var b=jQuery(this).attr("id"),c=jQuery(this).data("response");if("undefined"!=c&&""!=c||(c="on"),"on"==c){var d=b;d=document.createElement("style"),d.type="text/css",d.innerHTML="@media(min-width:300px) and (max-width:768px){#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper { margin: 0px;float: none;position: relative}.ult_main_dualbtn { display: inline-block}.ult_dualbutton-wrapper { display: block }#"+b+".ult_dual_button .middle-text {top: 100%;right: 50%}#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:first-child .ult_ivan_button { border-bottom-right-radius: 0!important; border-bottom-left-radius: 0!important; border-top-right-radius: inherit; border-bottom: 0px!important;}#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:last-child .ult_ivan_button { border-top-left-radius: 0!important;border-top-right-radius: 0!important}}@media(min-width:0px) and (max-width:0px){#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper { float: left; position: relative}.ult_dual1 { border-right: none!important } .ult_dualbutton-wrapper {display: block}#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:first-child .ult_ivan_button { border-top-right-radius: 0!important; border-bottom-right-radius: 0!important}#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:last-child .ult_ivan_button { border-top-left-radius: 0!important; border-bottom-left-radius: 0!important }}@media(min-width:768px) and (max-width:970px){ #"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper { margin: -4px; float: none; position: relative }.ult_dualbutton-wrapper { display: block} #"+b+".ult_dual_button .middle-text { top: 100%; right: 50% }#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:first-child .ult_ivan_button { border-bottom-right-radius: 0!important; border-bottom-left-radius: 0!important; border-top-right-radius: inherit }#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:last-child .ult_ivan_button { border-top-left-radius: 0!important; border-top-right-radius: 0!important }}@media(min-width:970px){ #"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:first-child .ult_ivan_button { border-top-right-radius: 0!important; border-bottom-right-radius: 0!important}#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:last-child .ult_ivan_button { border-top-left-radius: 0!important; border-bottom-left-radius: 0!important }#"+b+".ult_dual_button .ult_dual1 { border-right: none!important}}",document.getElementsByTagName("head")[0].appendChild(d),document.getElementsByTagName("head")[0].appendChild(d);var e=jQuery(window).width(),f=jQuery(this).find(".ult_dual1").outerWidth(),g=jQuery(this).find(".ult_dual2").outerWidth();if(e>300&&e<=768)var h="inset 0px -"+f+"px 0px 0px ",i=" inset 0px "+g+"px 0px 0px ";else if(e>768&&e<1015)var h="inset 0px -"+f+"px 0px 0px ",i=" inset 0px "+g+"px 0px 0px ";else var h="inset -"+f+"px 0 0 0 ",i="inset "+g+"px 0 0 0";jQuery("#"+b).find(".ult_dual1").mouseenter(function(){var a=jQuery(this).find(".ult-dual-btn-1").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-1").data("bghovercolor");jQuery(this).css({"box-shadow":h+c})}}),jQuery("#"+b).find(".ult_dual1").mouseleave(function(){var a=jQuery(this).find(".ult-dual-btn-1").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-1").data("bgcolor");jQuery(this).css({"box-shadow":"inset 0px 0 0 0 "+c})}}),jQuery("#"+b).find(".ult_dual2").mouseenter(function(){var a=jQuery(this).find(".ult-dual-btn-2").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-2").data("bghovercolor");jQuery(this).css({"box-shadow":i+c})}}),jQuery("#"+b).find(".ult_dual2").mouseleave(function(){var a=jQuery(this).find(".ult-dual-btn-2").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-2").data("bgcolor");jQuery(this).css({"box-shadow":"inset 0px 0 0 0 "+c})}})}else{var d=b;d=document.createElement("style"),d.type="text/css",d.innerHTML="#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:first-child .ult_ivan_button { border-top-right-radius: 0!important; border-bottom-right-radius: 0!important }#"+b+".ult_dual_button .ulitmate_dual_buttons .ult_dualbutton-wrapper:last-child .ult_ivan_button { border-top-left-radius: 0!important; border-bottom-left-radius: 0!important }#"+b+".ult_dual_button .ult_dual1 { border-right: none!important}",document.getElementsByTagName("head")[0].appendChild(d),document.getElementsByTagName("head")[0].appendChild(d),jQuery("#"+b).find(".ult_dual1").mouseenter(function(){var a=jQuery(this).find(".ult-dual-btn-1").attr("class"),b=a.split(" "),a=b[1]+b[2],c=jQuery(this).outerWidth();if("Style2"==a){var d="inset -"+c+"px 0 0 0 ",e=jQuery(this).find(".ult-dual-btn-1").data("bghovercolor");jQuery(this).css({"box-shadow":d+e})}}),jQuery("#"+b).find(".ult_dual1").mouseleave(function(){var a=jQuery(this).find(".ult-dual-btn-1").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-1").data("bgcolor");jQuery(this).css({"box-shadow":"inset 0px 0 0 0 "+c})}}),jQuery("#"+b).find(".ult_dual2").mouseenter(function(){var a=jQuery(this).find(".ult-dual-btn-2").attr("class"),b=a.split(" "),a=b[1]+b[2],c=jQuery(this).outerWidth();if("Style2"==a){var d="inset "+c+"px 0 0 0",e=jQuery(this).find(".ult-dual-btn-2").data("bghovercolor");jQuery(this).css({"box-shadow":d+e})}}),jQuery("#"+b).find(".ult_dual2").mouseleave(function(){var a=jQuery(this).find(".ult-dual-btn-2").attr("class"),b=a.split(" "),a=b[1]+b[2];if("Style2"==a){var c=jQuery(this).find(".ult-dual-btn-2").data("bgcolor");jQuery(this).css({"box-shadow":"inset 0px 0 0 0 "+c})}})}})}function info_box_set_auto_height(){jQuery(".aio-icon-box.square_box-icon").each(function(a,b){var c=jQuery(window).width()||"";if(""!=c)if(c>=768){var d=jQuery(this).attr("data-min-height")||"";""!=d&&jQuery(this).css("min-height",d)}else jQuery(this).css("min-height","initial")})}function calculate_clipped_circle(){jQuery(".clipped-info-circle").each(function(){var a=jQuery(this).data("circle-type"),b=jQuery(this).data("half-percentage"),c=jQuery(this).children().data("responsive-circle");if("on"==c){var d=jQuery(this).children().data("responsive-breakpoint"),e=jQuery(window).width(),a=jQuery(this).data("circle-type");if(e>d){var f=jQuery(this).data("first-height");"undefined"!=typeof f&&""!=f&&jQuery(this).height(f),jQuery(this).width("100%"),make_info_circle(".info-c-full-br",resizedd)}}var g=jQuery(this).find(".info-circle-icons").outerHeight(),h=jQuery(this).find(".info-circle-icons").outerHeight();if("full-circle"!=a){var i=jQuery(this).outerHeight(),j=(jQuery(this).outerWidth(),jQuery(this).css("margin-top")),k=jQuery(this).css("margin-bottom"),l=jQuery(this).children().outerWidth(),m=parseInt(jQuery(this).find(".info-c-full").css("margin-top").replace(/[^-\d\.]/g,"")),n=parseInt(jQuery(this).find(".info-c-full").css("padding-top").replace(/[^-\d\.]/g,""));if("top-circle"==a||"bottom-circle"==a){jQuery(this).css({overflow:"hidden"});var o=(jQuery(this).find(".info-c-full").outerWidth(),jQuery(this).find(".info-c-full").width());if("top-circle"==a){var p=b/100*i;jQuery(this).css({"padding-top":j,height:p,"margin-bottom":0});var q=p-m-parseInt(j.replace(/[^-\d\.]/g,""))-n-n/2;jQuery(this).find(".info-c-full-wrap").css({height:q})}else if("bottom-circle"==a){var r=(100-b)/100*i,p=i-r+10;jQuery(this).css({"padding-bottom":k,height:p,"margin-top":0}),jQuery(this).children().css({"margin-top":-(r+g/2)});var q=p-m-parseInt(j.replace(/[^-\d\.]/g,""))-n-n/2;jQuery(this).find(".info-c-full-wrap").height(q);var s=o-q;jQuery(this).find(".info-c-full-wrap").css({"margin-top":s+"px"})}}else if("left-circle"==a||"right-circle"==a){jQuery(this).css({overflow:"hidden","padding-top":j,"padding-bottom":k});var o=(jQuery(this).find(".info-c-full").outerWidth(),jQuery(this).find(".info-c-full").width());if("left-circle"==a){var t=b/100*l;jQuery(this).css({width:t,"padding-left":j}),jQuery(this).children().css({width:l,"max-width":l});var u=t-m-(n+n/2)-parseInt(j.replace(/[^-\d\.]/g,""));jQuery(this).find(".info-c-full-wrap").width(u)}else if("right-circle"==a){var v=(100-b)/100*l,t=parseInt(l-v);jQuery(this).css({width:t,"padding-right":j}),jQuery(this).children().css({"margin-left":-(v+h/2),"max-width":l,width:l});var w=v-m;w=w+parseInt(j.replace(/[^-\d\.]/g,""))-n;var u=t-m-parseInt(j.replace(/[^-\d\.]/g,""))-n,x=w;jQuery(this).find(".info-c-full-wrap").width(u),jQuery(this).find(".info-c-full-wrap").css({"margin-left":x+"px"})}}}if("on"==c){var d=jQuery(this).children().data("responsive-breakpoint"),e=jQuery(window).width();e<=d&&jQuery(this).css({width:"auto",overflow:"visible",height:"auto",padding:0})}})}function info_circle_slide(a,b){b.bsf_appear(function(){setInterval(function(){if("on"==b.attr("data-slide-true")){var a=1*b.attr("data-slide-number"),c=b.find(".info-circle-icons").length;"full"!=b.data("info-circle-angle")?c-1==a&&(a=0):c==a&&(a=0);var d=b.find(".info-circle-icons").eq(a);b.attr("data-slide-number",a+1),show_next_info_circle(d)}},a)})}function show_next_info_circle(a){var b=a.parents(".info-c-full-br").data("highlight-style");""!=b&&(a.parents(".info-c-full-br").find("."+b).removeClass(b).removeClass("info-cirlce-active"),a.addClass(b).addClass("info-cirlce-active"));var c=a.next(),d=a.parents(".info-c-full-br").data("icon-show-size");"not-show"==a.parents(".info-c-full-br").data("icon-show")&&(c.find("i").remove(),c.find("img").remove(),a.parents(".info-c-full-br").find(".info-c-full").addClass("cirlce-noicon")),c=c.html();var e=(a.css("font-size"),a.attr("style"),a.parents(".info-c-full-br"));e.find(".info-c-full-wrap").stop().animate({opacity:0},"slow",function(){a.parents(".info-c-full-br").find(".info-c-full .info-c-full-wrap").html(c),e.find(".info-c-full i").css({"font-size":parseInt(d)+"px"}),e.find(".info-c-full img").css({width:parseInt(d)+"px"}),a.parents(".info-c-full-br").find(".info-c-full-wrap").animate({opacity:1},"slow")})}function responsive_check(a){jQuery(a).each(function(){if("on"==jQuery(this).data("responsive-circle")){var a=jQuery(this).parent(),b=a.data("uniqid"),c=jQuery(this).data("responsive-breakpoint"),d="info-circle-wrapper-"+b,e="";jQuery("head").append(e);var f=jQuery(this).parent().find(".smile_icon_list_wrap .smile_icon_list"),g=f.find(".icon_list_item").clone();f.find(".icon_list_item").remove();var h=jQuery(this).next().data("content_bg"),i=jQuery(this).next().data("content_color");jQuery(this).find(".icon-circle-list .info-details").each(function(){var a=jQuery(this).attr("data-icon-class"),b=jQuery(this).find(".info-circle-heading").html(),c=jQuery(this).find(".info-circle-text").html(),d=jQuery(this).prev().css("background-color"),e=jQuery(this).prev().css("color"),j=jQuery(this).prev().css("border"),k=jQuery(this).find(".info-circle-sub-def").children().eq(0).clone();g.find(".icon_list_icon").html(k.wrap("
").parent().html()),g.find(".icon_description").css("color",i),g.find(".icon_description").css("background-color",h),g.find(".icon_description h3").html(b),g.find(".icon_description p").html(c),g.find(".icon_list_icon").css({"background-color":d,color:e,border:j}),g.addClass(a),f.append(g.wrap("
").parent().html())})}})}function make_info_circle(a,b){jQuery(a).each(function(a,b){var c=jQuery(b).data("icon-size");jQuery(jQuery(b).find(".icon-circle-list .info-circle-icons")).each(function(a,d){var e,f,g,h,i=!!jQuery(d).hasClass("info-circle-icon-without-background");i?(e=f=h=c,g=c/2):(e=f=h=2*c,g=c),jQuery(b).parent().css({"margin-top":g+10+"px","margin-bottom":g+10+"px"}),jQuery(b).find(".icon-circle-list .info-circle-icons").css({"font-size":c+"px",height:e+"px",width:f+"px",margin:"-"+(g+"px"),"line-height":h+"px"})})}),".info-c-full-br"==a&&jQuery(a).each(function(){jQuery(this).css("height",jQuery(this).width()),jQuery(this).css("opacity","1")}),".info-c-semi-br"==a&&jQuery(a).each(function(){var a=jQuery(this).width();jQuery(this).css("height",parseInt(a)/2+"px");var a=a+"px "+a+"px 0 0";jQuery(this).css("border-radius",a);var b=jQuery(this).find(".info-c-full").width();b=b+"px "+b+"px 0 0",jQuery(this).find(".info-c-full").css("border-radius",b)}),setTimeout(function(){b==resizedd&&(".info-c-full-br"==a&&part_circle_icon(a),".info-c-semi-br"==a&&semi_circle_icon(a))},1e3)}function part_circle_icon(a){jQuery(a).each(function(){jQuery(this).bsf_appear(function(){if("none"!=jQuery(this).css("display")){var a=jQuery(this).find(".icon-circle-list .info-circle-icons").length,b=new Array,c=jQuery(this).outerWidth()/2,d=0,e=jQuery(this).data("start-degree");"undefined"==typeof e&&""==e||(d=e);var f=180/a,g=jQuery(this).data("info-circle-angle"),h=jQuery(this).data("divert"),i="";"full"==g&&(i=g,g=180,f=90,c=-c);var j=0,k=!1;for(m=1;m<=a;m++){var l=m*((180+2*f)/a);"full"==i?(ld&&1==m&&(j=l-d,k=!0),1==k?l-=j:l+=j):l=l+g-f+h,l=.0174532925*l,b.push(c*Math.cos(l)),b.push(c*Math.sin(l))}var m=0,n=0,o=jQuery(this).data("launch"),p=jQuery(this).data("launch-duration"),q=jQuery(this).data("launch-delay");p||(p=1),q||(q=.15),""!=o?(n=-(1e3*q),jQuery(this).find(".icon-circle-list .info-circle-icons").each(function(){var a=jQuery(this);n+=1e3*q,setTimeout(function(){a.animate({opacity:1,left:b[m++],top:b[m++]},{duration:1e3*p,easing:o})},n)})):jQuery(this).find(".icon-circle-list .info-circle-icons").each(function(){var a=jQuery(this);a.css({opacity:"1",left:b[m++],top:b[m++]})})}})})}function setmytime(){function a(){var a=jQuery(window).width();jQuery(".ult_tabs").each(function(){var b=(jQuery(this).data("tabsstyle"),jQuery(this).data("respmode")),d=jQuery(this).data("respwidth"),e=jQuery(this).data("responsivemode");a>=d?(jQuery(this).parent().find(".ult_acord").css({display:"none"}),jQuery(this).parent().find(".ult_tabs").css({display:"block"}),"Both"!=e&&(jQuery(this).find(".aio-icon").hasClass("ult_tab_resp_icon")&&jQuery(this).find(".aio-icon").removeClass("ult_tab_resp_icon").addClass("icon-top"),jQuery(this).find(".ult_tab_main").hasClass("ult_tab_resp_ult_top")&&jQuery(this).find(".ult_tab_main").removeClass("ult_tab_resp_ult_top").addClass("ult_top"))):("Accordion"==b&&(jQuery(this).parent().find(".ult_acord").css({display:"block"}),jQuery(this).parent().find(".ult_tabs").css({display:"none"})),"Both"!=e&&(jQuery(this).find(".aio-icon").hasClass("icon-top")&&jQuery(this).find(".aio-icon").removeClass("icon-top").addClass("ult_tab_resp_icon"),jQuery(this).find(".ult_tab_main").hasClass("ult_top")&&jQuery(this).find(".ult_tab_main").removeClass("ult_top").addClass("ult_tab_resp_ult_top"))),a>300&&a<660&&(jQuery(this).find(".ult_a ").removeClass("false"),c.push(ht1),"Both"!=e&&(jQuery(this).find(".aio-icon").hasClass("icon-top")&&jQuery(this).find(".aio-icon").removeClass("icon-top").addClass("ult_tab_resp_icon"),jQuery(this).find(".ult_tab_main").hasClass("ult_top")&&jQuery(this).find(".ult_tab_main").removeClass("ult_top").addClass("ult_tab_resp_ult_top")))})}var b=[],c=[],d=!0,e=escape(window.location.hash.substr(1));if(""!=e){var f=jQuery("a[href$='"+e+"']");if(f.parents(".ult_tabs").length>0){var g=f.parents(".ult_tabs"),h=g.data("activebg"),i=g.data("titlebg"),j=g.data("titlecolor"),k=g.data("activetitle"),l=g.data("tabsstyle"),m=g.data("activeicon"),n=g.find("li.ult_tab_li").data("iconcolor");if(""==m)var m=g.find("li.ult_tab_li").data("iconhover");g.find("li.ult_tab_li").removeClass("current"),f.parent().addClass("current"),"style1"==l||"style2"==l?(g.find("a.ult_a").css({"background-color":i}),f.css({"background-color":h})):(g.find("li.ult_tab_li").css({"background-color":i}),f.parent().css({"background-color":h})),g.find("a.ult_a").css({color:j}),f.css({color:k}),g.find(".ult_tab_icon").css({color:n}),f.find(".ult_tab_icon").css({color:m});var o=f.parent().index()+1;g.find(".ult_tabitemname").css({display:"none"}),g.find(".ult_tabitemname:nth-child("+o+")").css({display:"block"});g.offset().top,g.offset().left;g.hasClass("ult_aniamte")||jQuery("html, body").animate({scrollTop:g.offset().top},1e3),g.addClass("ult_aniamte"),g.find("ul.ult_tabmenu li a.ult_a").click(function(a){a.preventDefault(),jQuery("html,body").clearQueue(),jQuery("html,body").stop()})}}jQuery(".ult_tabs").each(function(){var a=jQuery(this).data("fullheight"),e=0;"on"==a&&jQuery(this).find(".ult_tabitemname").each(function(){e=i?(jQuery(this).parent().find(".ult_acord").css({display:"none"}),jQuery(this).parent().find(".ult_tabs").css({display:"block"})):"Accordion"==h&&(jQuery(this).parent().find(".ult_acord").css({display:"block"}),jQuery(this).parent().find(".ult_tabs").css({display:"none"})),jQuery(this).find(".ult_tabmenu").hasClass("Style_4");var m=0;d="false",jQuery(this).find(".ult_tab_li").each(function(){m300&&g<660&&(ht1=m/2)):"style1"==f&&jQuery(this).find(".ult_tabmenu").hasClass("Style_5"),g>300&&g<660&&(jQuery(this).find(".ult_a ").removeClass("false"),c.push(ht1),"Both"!=j&&(jQuery(this).find(".aio-icon").hasClass("icon-top")&&jQuery(this).find(".aio-icon").removeClass("icon-top").addClass("ult_tab_resp_icon"),jQuery(this).find(".ult_tab_main").hasClass("ult_top")&&jQuery(this).find(".ult_tab_main").removeClass("ult_top").addClass("ult_tab_resp_ult_top"))),jQuery(this).find(".ult_a ").hasClass("false")&&b.push(ht1)}),jQuery(window).resize(function(b){a()})}!function(a){jQuery(document).ready(function(){function b(){return!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&void jQuery(".enable-on-viewport").each(function(a,b){var c=jQuery(this).isVdoOnScreen();jQuery(this).hasClass("hosted-video")&&!jQuery(this).hasClass("override-controls")&&(c?(jQuery(this)[0].play(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","play"),jQuery(this).parent().parent().parent().find(".video-controls").html('')):(jQuery(this)[0].pause(),jQuery(this).parent().parent().parent().find(".video-controls").attr("data-action","pause"),jQuery(this).parent().parent().parent().find(".video-controls").html('')))})}function c(a){var b=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(b,function(a,b,c,d){return b+b+c+c+d+d});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null}function d(b,d){var e=b.data("seperator"),f=b.data("seperator-type"),g=b.data("seperator-shape-size"),h=b.data("seperator-background-color"),i=b.data("seperator-border"),j=b.data("seperator-border-color"),k=b.data("seperator-border-width"),l=b.data("seperator-svg-height"),m=b.data("seperator-full-width"),n=b.data("seperator-position");"undefined"!=typeof n&&""!=n||(n="top_seperator");var o=b.data("icon");o="undefined"==typeof o?"":'
'+o+"
";var p=seperator_class=seperator_border_css=seperator_border_line_css=seperator_css="";if("undefined"!=typeof e&&"true"==e.toString()){var q=shape_css=svg=inner_html=seperator_css=shape_css="",r=!1,s=Math.floor(9999999999999*Math.random()),t="uvc-seperator-"+s;"undefined"!=typeof g&&""!=g&&"undefined"!=g||(g=0),g=parseInt(g);var u=g/2,v=0;if("triangle_seperator"==f)seperator_class="ult-trinalge-seperator";else if("circle_seperator"==f)seperator_class="ult-circle-seperator";else if("diagonal_seperator"==f)seperator_class="ult-double-diagonal";else if("triangle_svg_seperator"==f)seperator_class="ult-svg-triangle",svg='',r=!0;else if("circle_svg_seperator"==f)seperator_class="ult-svg-circle",svg='',r=!0;else if("xlarge_triangle_seperator"==f)seperator_class="ult-xlarge-triangle",svg='',r=!0;else if("xlarge_triangle_left_seperator"==f)seperator_class="ult-xlarge-triangle-left",svg='',r=!0;else if("xlarge_triangle_right_seperator"==f)seperator_class="ult-xlarge-triangle-right",svg='',r=!0;else if("xlarge_circle_seperator"==f)seperator_class="ult-xlarge-circle",svg='',r=!0;else if("curve_up_seperator"==f)seperator_class="ult-curve-up-seperator",svg='',r=!0;else if("curve_down_seperator"==f)seperator_class="ult-curve-down-seperator",svg='',r=!0;else if("tilt_left_seperator"==f)seperator_class="ult-tilt-left-seperator",svg='',r=!0;else if("tilt_right_seperator"==f)seperator_class="ult-tilt-right-seperator",svg='',r=!0;else if("waves_seperator"==f)seperator_class="ult-wave-seperator",svg='', r=!0;else if("clouds_seperator"==f)seperator_class="ult-cloud-seperator",svg='',r=!0;else if("multi_triangle_seperator"==f){seperator_class="ult-multi-trianle";var w=c(h);svg='\t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t ',r=!0}else if("round_split_seperator"==f){var x=temp_border_before=temp_border_after=temp_border_line="";temp_padding=0,seperator_class="ult-rounded-split-seperator-wrapper";jQuery(b).outerHeight();if(0!=g){var y=parseInt(jQuery(b).css("padding-bottom"));jQuery(b).css({"padding-bottom":g+"px"}),0==y&&(temp_padding=g)}if("top_seperator"==n)var z="top-split-seperator",A="0px",B="auto",C="border-radius: 0 0 "+g+"px 0 !important;",D="border-radius: 0 0 0 "+g+"px !important;";else if("bottom_seperator"==n)var z="bottom-split-seperator",A="auto",B="0px",C="border-radius: 0 "+g+"px 0 0 !important;",D="border-radius: "+g+"px 0 0 0 !important;";else var z="top-bottom-split-seperator",E="0px",F="auto",G="auto",H="0px",I="border-radius: 0 0 "+g+"px 0 !important;",J="border-radius: 0 0 0 "+g+"px !important;",K="border-radius: 0 "+g+"px 0 0 !important;",L="border-radius: "+g+"px 0 0 0 !important;";inner_html='
',"none"!=i&&(temp_border_line=k+"px "+i+" "+j,temp_border_before="border-top: "+temp_border_line+"; border-right: "+temp_border_line+";",temp_border_after="border-top: "+temp_border_line+"; border-left: "+temp_border_line+";"),"top_seperator"==n||"bottom_seperator"==n?(x="",jQuery("head").append(x)):(x="",temp_css_bottom="",jQuery("head").append(x+temp_css_bottom))}else seperator_class="ult-no-shape-seperator";if("undefined"!=typeof k&&""!=k&&0!=k&&(v=parseInt(k)),shape_css='content: "";width:'+g+"px; height:"+g+"px; bottom: -"+(u+v)+"px;",""!=h&&(shape_css+="background-color:"+h+";"),"none"!=i&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==r&&(seperator_border_line_css=k+"px "+i+" "+j,shape_css+="border-bottom:"+seperator_border_line_css+"; border-right:"+seperator_border_line_css+";",seperator_css+="border-bottom:"+seperator_border_line_css+";",p="bottom:"+k+"px !important"),"ult-no-shape-seperator"!=seperator_class&&"ult-rounded-split-seperator-wrapper"!=seperator_class&&0==r){var q="";jQuery("head").append(q)}if(1==r&&(inner_html=svg),"top_bottom_seperator"==n){var M='
'+inner_html+"
"+o+"
";M+='
'+inner_html+"
"+o+"
"}else var M='
'+inner_html+"
"+o+"
";if(d.prepend(M),seperator_css="",""!=p&&(p="",seperator_css+=p),""!=o){var N=l/2;"none_seperator"==f||"circle_svg_seperator"==f||"triangle_svg_seperator"==f?seperator_css+="":seperator_css+=""}1==r&&(jQuery("."+t).find("svg").css("height",l),setTimeout(function(){"multi_triangle_seperator"==f&&jQuery(".ult-multi-trianle").each(function(b,c){var d=a(c).find("svg").height();a(c).hasClass("top_seperator")||a(c).hasClass("bottom_seperator")&&a(c).css("bottom",d-1)})},300)),jQuery("head").append(seperator_css)}}function e(){jQuery(".ult-vc-hide-row").each(function(a,b){var c=jQuery(b).data("hide-row");""!=c&&jQuery(b).addClass(c)})}function f(){jQuery(".ult-vc-seperator").each(function(a,b){var c=jQuery(this).data("full-width"),d=jQuery(this).parent().data("rtl");"undefined"==typeof d&&(d="false");var e=jQuery(this).parent().find(".upb_row_bg").data("bg-override");if("undefined"==typeof e)var e=jQuery(this).parent().find(".upb_video-bg").data("bg-override");if(("ex-full"==e||"full"==e||"browser_size"==e)&&1==c){var f=jQuery("html").width();if(jQuery(this).hasClass("ult-rounded-split-seperator-wrapper")){var g=jQuery(this).data("border"),h=jQuery(this).data("border-width");"undefined"!=typeof g&&"none"!=g&&"undefined"!=g&&(f-=h)}var i=jQuery(this).offset().left;jQuery(this).find(".ult-main-seperator-inner").width(f),"true"==d.toString()?jQuery(this).find(".ult-main-seperator-inner").css({"margin-right":-i+"px"}):jQuery(this).find(".ult-main-seperator-inner").css({"margin-left":-i+"px"})}})}/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&a("html").addClass("ult-remove-fixed-background"),jQuery(window).scroll(function(){b()}),jQuery(window).load(function(){b()}),jQuery.fn.isVdoOnScreen=function(){var a=jQuery(window),b={top:a.scrollTop(),left:a.scrollLeft()};b.right=b.left+a.width(),b.bottom=b.top+a.height()-200;var c=this.parent().offset();return c.right=c.left+this.parent().outerWidth(),c.bottom=c.top+this.parent().outerHeight()-300,!(b.rightc.right||b.bottomc.bottom)},jQuery.fn.ultimate_video_bg=function(a){return jQuery(this).each(function(){var c=jQuery(this),e=c.data("ultimate-video"),f=c.data("ultimate-video2"),g=c.data("ultimate-video-muted"),h=c.data("ultimate-video-loop"),i=c.data("ultimate-video-autoplay"),j=c.data("ultimate-video-poster"),k=c.data("bg-override"),l=c.data("start-time"),m=c.data("stop-time"),n=c.data("upb-bg-animation"),o=c.data("overlay"),p=c.data("overlay-color"),q=c.data("overlay-pattern"),r=c.data("overlay-pattern-opacity"),s=c.data("overlay-pattern-size"),t=c.data("overlay-pattern-attachment"),u=c.data("viewport-video"),v=c.data("controls"),w=c.data("controls-color"),x=c.data("fadeout"),y=c.data("fadeout-percentage"),z=c.data("parallax-content"),A=c.data("parallax-content-sense"),B=c.data("row-effect-mobile-disable"),C=c.data("hide-row"),D=c.data("rtl"),E=c.data("video_fixer"),F="",G="",H=c.data("custom-vc-row"),I=c.data("vc"),J=c.data("theme-support"),K=c.data("is_old_vc");"undefined"!=typeof H&&""!==H||(H="wpb_row"),"undefined"==typeof I&&(I=0),"undefined"==typeof K&&(K=!1),"undefined"==typeof J&&(J="disable"),c.data("multi-color-overlay")&&(F=c.data("multi-color-overlay"),G=c.data("multi-color-overlay-opacity"));var L=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof o&&"true"===o.toString()&&(""!=q&&(""!=s&&(s="background-size:"+s+"px;"),"undefined"!=typeof t&&""!=t&&(overlay_pattern_attachment_css="background-attachment:"+t+";"),overlay_pattern_html='
'),""!=p&&(overlay_color_html='
'),""!=F&&(overlay_multi_color_html='
'),L=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),m=0!=m?m:"",1==K||"enable"==J)if(c.prev().is("p")||c.prev().is("style"))var M=c.prev().prev();else var M=c.prev();else var M=c.prevAll("."+H+":first");M.css("position","relative");var N=M.attr("class"),O=c;c=M;var P=function(){var a,b,d,e="",f="";if(d=c,resize_selector=d.find(".upb_video-bg"),"full"==k&&(d=jQuery("body")),"ex-full"==k&&(d=jQuery("html")),!isNaN(k))for(var g=0;g'}if("browser_size"==k&&(c.wrapInner('
'),c.find(".upb_video-text-wrapper").find(".upb_video-text").addClass(N)),"parallax_content_value"==z){c.addClass("vc-row-translate"),c.attr("data-parallax-content-sense",A),c.wrapInner('
');var T=c.css("padding-top"),U=c.css("padding-bottom");c.find(".vc-row-translate-wrapper").css({"padding-top":T,"padding-bottom":U}),c[0].style.setProperty("padding-top","0px","important"),c[0].style.setProperty("padding-bottom","0px","important")}var V="";if("true"==E.toString()&&(V="uvc-video-fixer"),"youtube"==a||"vimeo"==a?c.prepend('
'+L+"
"):c.prepend('
'+Q+L+"
"),d(O,c),O.remove(),"youtube"==a){e=e.substring(e.indexOf("watch?v=")+8,e.indexOf("watch?v=")+19);var W=c.find(".upb_video-bg");"loop"==h&&(h=!0),"muted"==g&&(g=!0),W.attr("data-vdo",e),W.attr("data-loop",h),W.attr("data-poster",j),W.attr("data-muted",g),W.attr("data-start",l),W.attr("data-stop",m),u===!0&&(W.addClass("enable-on-viewport"),W.addClass("youtube-video"),b())}else if("vimeo"==a){e=e.substring(e.indexOf("vimeo.com/")+10,e.indexOf("vimeo.com/")+18);var W=c.find(".upb_video-bg");W.html('')}else{var W=c.find(".upb_video-src");if(hosted_wrapper=W.parent(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"display_control"!=v)"display_control"!=v&&(""!=j&&W.parent().find(".video-controls").hide(),W.remove());else{if(jQuery("",{type:"video/mp4",src:e}).appendTo(W),"undefined"!=typeof f&&""!==f){var X="";f.match(/.ogg/i)?X="video/ogg":f.match(/.webm/i)&&(X="video/webm"),""!=X&&jQuery("",{type:X,src:f}).appendTo(W)}"muted"==g&&W.attr({"data-mute":"muted"}),"loop"==h&&W.attr({loop:h}),W.attr({preload:"auto"}),u===!0?(W.addClass("enable-on-viewport"),W.addClass("hosted-video"),b()):"autoplay"==i&&W.attr({autoplay:i})}}""!=j&&(console.log(W),W.is(".utube")?W.css({"background-image":"url("+j+")"}):hosted_wrapper.css({"background-image":"url("+j+")"})),jQuery(".upb_video-src").each(function(a,b){var c=jQuery(b).attr("data-mute");if("undefined"==typeof c&&(c=!1),"muted"===c){var d=jQuery(b)[0];d.muted="muted"}})}),this},jQuery.fn.ultimate_bg_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=a.data("ultimate-bg"),c=a.data("ultimate-bg-style"),e=a.prev().css("background-color"),f=a.data("bg-img-repeat"),g=a.data("bg-img-size"),h=a.data("bg-img-position"),i=a.data("parallx_sense"),j=a.data("bg-override"),k=a.data("bg_img_attach"),l=a.data("upb-bg-animation"),m="",n=a.data("overlay"),m=a.data("overlay-color"),o=a.data("overlay-pattern"),p=a.data("overlay-pattern-opacity"),q=a.data("overlay-pattern-size"),r=a.data("overlay-pattern-attachment"),s=a.data("fadeout"),t=a.data("fadeout-percentage"),u=a.data("parallax-content"),v=a.data("parallax-content-sense"),w=a.data("bg-animation"),x=a.data("bg-animation-type"),y=a.data("animation-repeat"),z=a.data("row-effect-mobile-disable"),A=a.data("img-parallax-mobile-disable"),B=a.data("hide-row"),C=a.data("rtl"),D="",E="",F=a.data("custom-vc-row"),G=a.data("vc"),H=a.data("theme-support"),I=a.data("is_old_vc");"undefined"!=typeof F&&""!==F||(F="wpb_row"),"undefined"==typeof G&&(G=0),"undefined"==typeof I&&(I=!1),"undefined"==typeof H&&(H="disable"),a.data("multi-color-overlay")&&(D=a.data("multi-color-overlay"),E=a.data("multi-color-overlay-opacity"));var J=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof n&&"true"===n.toString()&&(""!=o&&(""!=q&&(q="background-size:"+q+"px;"),"undefined"!=typeof r&&""!=r&&(overlay_pattern_attachment_css="background-attachment:"+r+";"),overlay_pattern_html='
'),""!=m&&(overlay_color_html='
'),""!=D&&(overlay_multi_color_html='
'),J=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),1==I||"enable"==H)if(a.prev().is("p")||a.prev().is("style"))var K=a.prev().prev();else var K=a.prev();else var K=a.prevAll("."+F+":first");K.css("position","relative");var L=K.attr("class");if("browser_size"==j&&(K.wrapInner('
'),a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),a.parent().find(".upb-background-text-wrapper").find(".upb-background-text").addClass(L)),"parallax_content_value"==u){K.addClass("vc-row-translate"),K.attr("data-parallax-content-sense",v),K.wrapInner('
');var M=K.css("padding-top"),N=K.css("padding-bottom");K.find(".vc-row-translate-wrapper").css({"padding-top":M,"padding-bottom":N}),K[0].style.setProperty("padding-top","0px","important"),K[0].style.setProperty("padding-bottom","0px","important")}""!=B&&(K.addClass("ult-vc-hide-row"),K.attr("data-hide-row",B)),K.attr("data-rtl",C),K.prepend('
'+J+"
"),a.remove(),d(a,K),a=K,a.attr("data-row-effect-mobile-disable",z),a.attr("data-img-parallax-mobile-disable",A),"fadeout_row_value"==s&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",t)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.attr("data-upb_br_animation",l),"automatic"!=g?a.css({"background-size":g}):a.addClass("upb_bg_size_automatic"),a.css({"background-repeat":f,"background-position":h,"background-color":e}),"vcpb-fs-jquery"==c||"vcpb-mlvp-jquery"==c?a.attr("data-img-array",b):a.css({"background-image":b,"background-attachment":k}),a.attr("data-parallax_sense",i),a.attr("data-bg-override",j),a.attr("data-bg-animation",w),a.attr("data-bg-animation-type",x),a.attr("data-animation-repeat",y),a.addClass(c);var O=function(){var b,c,d,e,f;if(d=a.parent(),"full"==j&&(d=jQuery("body"),e=0),"ex-full"==j&&(d=jQuery("html"),e=0),!isNaN(j)){for(var g=0;gwh&&(wh=h),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};O(),jQuery(window).load(function(){O()}),jQuery(window).resize(function(){O()})}),this},jQuery.fn.ultimate_grad_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=a.data("grad"),c=(a.data("grad-type"),a.data("grad-custom-degree"),jQuery(this).data("bg-override")),e=a.data("overlay"),f=a.data("overlay-color"),g=a.data("overlay-pattern"),h=a.data("overlay-pattern-opacity"),i=a.data("overlay-pattern-size"),j=a.data("overlay-pattern-attachment"),k=a.data("upb-bg-animation"),l=a.data("fadeout"),m=a.data("fadeout-percentage"),n=a.data("parallax-content"),o=a.data("parallax-content-sense"),p=a.data("row-effect-mobile-disable"),q=a.data("hide-row"),r=a.data("rtl"),s="",t="",u=a.data("custom-vc-row"),v=a.data("vc"),w=a.data("theme-support"),x=a.data("is_old_vc");if("undefined"!=typeof u&&""!==u||(u="wpb_row"),"undefined"==typeof v&&(v=0),"undefined"==typeof x&&(x=!1),"undefined"==typeof w&&(w="disable"),a.data("multi-color-overlay")&&(s=a.data("multi-color-overlay"),t=a.data("multi-color-overlay-opacity")),1==x||"enable"==w)if(a.prev().is("p")||a.prev().is("style"))var y=a.prev().prev();else var y=a.prev();else var y=a.prevAll("."+u+":first");y.css("position","relative");var z=y.attr("class");a.remove();var A=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof e&&"true"===e.toString()&&(""!=g&&(""!=i&&(i="background-size:"+i+"px;"),"undefined"!=typeof j&&""!=j&&(overlay_pattern_attachment_css="background-attachment:"+j+";"),overlay_pattern_html='
'),""!=f&&(overlay_color_html='
'),""!=s&&(overlay_multi_color_html='
'),A=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==c&&(y.wrapInner('
'),y.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(z),y.addClass("full-browser-size")),"parallax_content_value"==n){y.addClass("vc-row-translate"),y.attr("data-parallax-content-sense",o),y.wrapInner('
');var B=y.css("padding-top"),C=y.css("padding-bottom");y.find(".vc-row-translate-wrapper").css({"padding-top":B,"padding-bottom":C}),y[0].style.setProperty("padding-top","0px","important"),y[0].style.setProperty("padding-bottom","0px","important")}""!=q&&(y.addClass("ult-vc-hide-row"),y.attr("data-hide-row",q)),y.attr("data-rtl",r),y.prepend('
'+A+"
"),d(a,y),a=y,a.attr("data-row-effect-mobile-disable",p),"fadeout_row_value"==l&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",m)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.attr("data-upb_br_animation",k),b=b.replace("url(data:image/svg+xml;base64,","");var D=b.indexOf(";");b=b.substring(D+1),a.attr("style",b),a.attr("data-bg-override",c),"browser_size"==c&&a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");var E=function(){var b,d,e,f,g;if(e=a.parent(),"full"==c&&(e=jQuery("body"),f=0),"ex-full"==c&&(e=jQuery("html"),f=0),!isNaN(c)){for(var h=0;hwh&&(wh=i),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};E(),jQuery(window).load(function(){E()}),jQuery(window).resize(function(){E()})}),this},jQuery.fn.ultimate_bg_color_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=jQuery(this).data("bg-override"),c=jQuery(this).data("bg-color"),e=a.data("fadeout"),f=a.data("fadeout-percentage"),g=a.data("parallax-content"),h=a.data("parallax-content-sense"),i=a.data("row-effect-mobile-disable"),j=a.data("overlay"),k=a.data("overlay-color"),l=a.data("overlay-pattern"),m=a.data("overlay-pattern-opacity"),n=a.data("overlay-pattern-size"),o=a.data("overlay-pattern-attachment"),p=a.data("hide-row"),q=a.data("rtl"),r="",s="",t=a.data("vc"),u=a.data("theme-support"),v=a.data("custom-vc-row"),w=a.data("is_old_vc");if("undefined"!=typeof v&&""!==v||(v="wpb_row"),"undefined"==typeof t&&(t=0),"undefined"==typeof w&&(w=!1),"undefined"==typeof u&&(u="disable"),a.data("multi-color-overlay")&&(r=a.data("multi-color-overlay"),s=a.data("multi-color-overlay-opacity")),1==w||"enable"==u)if(a.prev().is("p")||a.prev().is("style"))var x=a.prev().prev();else var x=a.prev();else var x=a.prevAll("."+v+":first");x.css("position","relative");var y=x.attr("class"),z=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof j&&"true"===j.toString()&&(""!=l&&(""!=n&&(n="background-size:"+n+"px;"),"undefined"!=typeof o&&""!=o&&(overlay_pattern_attachment_css="background-attachment:"+o+";"),overlay_pattern_html='
'),""!=k&&(overlay_color_html='
'),""!=r&&(overlay_multi_color_html='
'),z=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==b)x.wrapInner('
'),x.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(y);else;if(""!=p&&(x.addClass("ult-vc-hide-row"),x.attr("data-hide-row",p)),x.attr("data-rtl",q),"parallax_content_value"==g){x.addClass("vc-row-translate"),x.wrapInner('
'),x.attr("data-parallax-content-sense",h);var A=x.css("padding-top"),B=x.css("padding-bottom");x.find(".vc-row-translate-wrapper").css({"padding-top":A,"padding-bottom":B}),x[0].style.setProperty("padding-top","0px","important"),x[0].style.setProperty("padding-bottom","0px","important")}x.prepend('
'+z+"
"),d(a,x),a.remove(),a=x,a.attr("data-row-effect-mobile-disable",i),"fadeout_row_value"==e&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",f)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.css({background:c}),a.attr("data-bg-override",b),"browser_size"==b&&a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");var C=function(){var c,d,e,f,g;if(e=a.parent(),"full"==b&&(e=jQuery("body"),f=0),"ex-full"==b&&(e=jQuery("html"),f=0),!isNaN(b)){for(var h=0;hwh&&(wh=i),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};C(),jQuery(window).load(function(){C()}),jQuery(window).resize(function(){C()})}),this},jQuery.fn.ultimate_parallax_animation=function(a){function b(){var b,g=jQuery(window).scrollTop();e.each(function(){if("upb_fade_animation"==jQuery(this).data("upb_br_animation")){b=jQuery(this).offset().top;var e=jQuery(this),h=e.offset().top,i=d(e);if(h+ig+c-100)return;var j=f-g;if(h+i-c
');var l=k.css("padding-top"),m=k.css("padding-bottom");k.find(".vc-row-translate-wrapper").css({"padding-top":l,"padding-bottom":m}),k[0].style.setProperty("padding-top","0px","important"),k[0].style.setProperty("padding-bottom","0px","important")}}),jQuery(".upb_no_bg").remove();var h=function(){jQuery(".upb_row_bg").each(function(){var a,b,c=jQuery(this).data("bg-override"),d=jQuery(this).data("theme-support"),e=jQuery(this).data("row");if(b="undefined"!=typeof d&&"enable"!==d?jQuery(this).parents("."+e+":first"):jQuery(this).parent(),b.addClass("vc_row-has-fill"),"browser_size"==c&&(a=jQuery("html")),"ex-full"==c)a=jQuery("html");else if("full"==c)a=jQuery("body");else if(!isNaN(c)){a=b;for(var f=0;f0&&(left=0),jQuery(this).css({width:i,left:j}),"browser_size"==c){var k=(a.width(),a.height(),b.width(),b.height()),l=b.find(".upb-background-text").height(),m=jQuery(window).height();if(l>k)var n=l;else var n=m;b.css("min-height",n+"px"),b.find(".upb-background-text-wrapper").css("min-height",n+"px")}}),jQuery(".upb_video-bg").each(function(a,b){var c,d,e=jQuery(this).data("bg-override"),f=jQuery(this).attr("data-rtl"),h=jQuery(this).data("theme-support"),i=jQuery(this).data("row");if(d="undefined"!=typeof h&&"enable"!==h?jQuery(this).parents("."+i+":first"):jQuery(this).parent(),"true"==d.attr("data-vc-full-width")||1==d.attr("data-vc-full-width")?d.addClass("uvc-vc-full-width"):d.addClass("uvc-row"),"browser_size"==e)c=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("ex-full"==e)c=jQuery("html"), jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("full"==e)c=jQuery("body"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if(isNaN(e)||0==e)c=d;else{c=d;for(var j=1;j<=e&&!c.is("html");j++)c=c.parent()}var k=(parseInt(c.css("paddingLeft")),parseInt(c.css("paddingRight")),parseInt(c.css("marginLeft")),c.outerWidth()),l=k,m=jQuery(this).offset().left,n=jQuery(this).position().left,o=c.offset().left,p=o-m;n<0&&(p=n+p),0==a&&(g=n),g>0&&(p=g),p>0&&(p=0),"undefined"==typeof f||f!==!0&&"true"!==f?jQuery(this).css({width:k,"min-width":k,left:p}):jQuery(this).css({width:k,"min-width":k,right:p});var q=16/9,r=(jQuery(window).width(),jQuery(window).height());d.find("video").height();if("browser_size"==e)var s=d.find(".upb_video-text").height();else var s=d.height();if(k<960){var t=16/9*s;k=t+k}pHeight=Math.ceil(k/q),children=jQuery(this).children(),children.removeClass("ult-make-full-height"),s>l&&children.addClass("ult-make-full-height");var u=jQuery(this).css("background-image");if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))"undefined"!=typeof u&&"none"!=u||(children.css({"max-height":"auto",height:"auto"}),d.css("min-height","auto"));else if("browser_size"==e){if(s>r)var v=s;else var v=r;d.addClass("video-browser-size"),d.find(".upb-background-text-wrapper").addClass("full-browser-size"),d.css("min-height",v+"px"),d.find(".upb_video-text-wrapper").length>0&&(d.find(".upb_video-text-wrapper").addClass("full-browser-size"),d.find(".upb_video-text-wrapper").css("min-height",v+"px"))}})};h(),jQuery(window).load(function(){h(),f()}),jQuery(window).resize(function(){h(),f()}),jQuery(document).ajaxComplete(function(a,b,c){jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev().prev().css("background-image","").css("background-repeat",""):jQuery(".upb_content_video, .upb_content_iframe").prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift()}),jQuery(".video-controls").click(function(a){var b=jQuery(this).attr("data-action"),c=jQuery(this).parent().find(".upb_video-src");"pause"==b?(jQuery(this).attr("data-action","play"),c[0].play(),jQuery(this).html('')):(jQuery(this).attr("data-action","pause"),c[0].pause(),jQuery(this).html('')),c.hasClass("enable-on-viewport")&&c.addClass("override-controls")}),e(),f(),jQuery(".vcpb-animated").each(function(a,b){var c=jQuery(b).data("animation-repeat");jQuery(this).css({"background-repeat":c});var d=jQuery(b).parent().attr("data-img-parallax-mobile-disable");if(d="undefined"==typeof d?"false":d.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var e="true";else var e="false";if("true"==e&&"true"==d)var f="true";else var f="false";if("false"==f){var g=10;""!=jQuery(this).attr("data-parallax_sense")&&(g=jQuery(this).attr("data-parallax_sense")),g=100-g;var h=jQuery(this).attr("data-bg-animation-type"),i=jQuery(this).attr("data-bg-animation"),j=0,k=h;setInterval(function(a){"right-animation"==i||"bottom-animation"==i?j-=1:j+=1,jQuery(b).css("backgroundPosition","h"==k?j+"px 0":"0 "+j+"px")},g)}})})}(jQuery),function(a,b,c){function d(){a(".ult-content-box").each(function(c,d){var f=a(d).css("background-color")||"",i=a(d).data("border_color")||"transparent",j=a(d).css("box-shadow")||"",k=a(d).data("hover_bg_color")||a(d).css("background-color"),l=a(d).data("hover_border_color")||"transparent",m=a(d).data("hover_box_shadow")||a(d).css("box-shadow");a(d).hover(function(){a(d).css("background-color",k),a(d).css("border-color",l),a(d).css("box-shadow",m)},function(){a(d).css("background-color",f),a(d).css("border-color",i),a(d).css("box-shadow",j)});var n={},o=a(d).data("responsive_margins");"undefined"!=typeof o&&null!=o&&(n=g(o));var p={},q=a(d).data("normal_margins");p="undefined"!=typeof q&&null!=q?g(q):e(d);var r=a(b).width()||"";""!=r&&(r>=768?h(p,d):h(n,d))})}function e(b){var c={};c["margin-left"]=f(a(b).css("margin-left")),c["margin-right"]=f(a(b).css("margin-right")),c["margin-top"]=f(a(b).css("margin-top")),c["margin-bottom"]=f(a(b).css("margin-bottom"));var d="";return a.each(c,function(a,b){"undefined"!=typeof b&&null!=b&&(d+=a+":"+b+"px;")}),a(b).attr("data-normal_margins",d),c}function f(a){var b;return"undefined"!=typeof a&&null!=a&&(b=a.split("px"),b=parseInt(b[0])),b}function g(b){var d={},e=b.split(";");return"undefined"!=typeof e&&null!=e&&a.each(e,function(a,b){if(typeof b!=c&&null!=b){var e=b.split(":");if(typeof e[0]!=c&&null!=e[0]&&typeof e[1]!=c&&null!=e[1])switch(e[0]){case"margin":d.margin=e[1];break;case"margin-left":d["margin-left"]=e[1];break;case"margin-right":d["margin-right"]=e[1];break;case"margin-top":d["margin-top"]=e[1];break;case"margin-bottom":d["margin-bottom"]=e[1]}}}),d}function h(b,c){a.isEmptyObject(b)||a.each(b,function(b,d){"undefined"!=typeof d&&null!=d&&a(c).css(b,d)})}jQuery(b).load(function(a){d()}),jQuery(b).resize(function(a){d()}),jQuery(document).ready(function(a){d()})}(jQuery,window),jQuery(window).load(function(){var a=function(){var a="",b="",c="",d="",e="",f="";jQuery(".ult-responsive").each(function(g,h){var i=jQuery(h),j=i.attr("data-responsive-json-new"),k=i.data("ultimate-target"),l="",m="",n="",o="",p="",q="";"undefined"==typeof j&&null==j||jQuery.each(jQuery.parseJSON(j),function(a,b){var c=a;if("undefined"!=typeof b&&null!=b){var d=b.split(";");jQuery.each(d,function(a,b){if("undefined"!=typeof b||null!=b){var d=b.split(":");switch(d[0]){case"large_screen":l+=c+":"+d[1]+";";break;case"desktop":m+=c+":"+d[1]+";";break;case"tablet":n+=c+":"+d[1]+";";break;case"tablet_portrait":o+=c+":"+d[1]+";";break;case"mobile_landscape":p+=c+":"+d[1]+";";break;case"mobile":q+=c+":"+d[1]+";"}}})}}),""!=q&&(f+=k+"{"+q+"}"),""!=p&&(e+=k+"{"+p+"}"),""!=o&&(d+=k+"{"+o+"}"),""!=n&&(c+=k+"{"+n+"}"),""!=m&&(b+=k+"{"+m+"}"),""!=l&&(a+=k+"{"+l+"}")});var g="",jQuery("head").append(g)};a(),jQuery(".ult_countdown-dateAndTime").each(function(){var a=new Date(jQuery(this).html()),b=(60*jQuery(this).data("time-zone"),jQuery(this).data("countformat")),c=jQuery(this).data("labels"),d=c.split(","),e=jQuery(this).data("labels2"),f=e.split(","),g=function(){return new Date(jQuery(this).data("time-now"))},h=function(a){var b=jQuery(".ult_countdown-dateAndTime").attr("data-responsive-json-new"),c=jQuery(".ult_countdown-dateAndTime").attr("data-ultimate-target"),d=jQuery(".ult_countdown").attr("data-responsive-json-new"),e=jQuery(".ult_countdown").attr("data-ultimate-target");jQuery(".ult_countdown-period").addClass("ult-responsive"),jQuery(this).find(".ult_countdown-amount").attr({"data-ultimate-target":c,"data-responsive-json-new":b}),jQuery(this).find(".ult_countdown-period").attr({"data-ultimate-target":e,"data-responsive-json-new":d}),jQuery(this).find(".ult_countdown-amount").css({color:jQuery(this).data("tick-col")}),jQuery(this).find(".ult_countdown-amount").addClass("ult-responsive"),jQuery(this).find(".ult_countdown-period").css({"font-size":jQuery(this).data("tick-p-size"),color:jQuery(this).data("tick-p-col")}),jQuery(this).find(".ult_countdown-amount").css({"border-color":jQuery(this).data("br-color"),"border-width":jQuery(this).data("br-size"),"border-style":jQuery(this).data("br-style"),"border-radius":jQuery(this).data("br-radius"),background:jQuery(this).data("bg-color"),padding:jQuery(this).data("padd")}),"bold"==jQuery(this).data("tick-style")?jQuery(this).find(".ult_countdown-amount").css("font-weight","bold"):"italic"==jQuery(this).data("tick-style")?jQuery(this).find(".ult_countdown-amount").css("font-style","italic"):"boldnitalic"==jQuery(this).data("tick-style")&&(jQuery(this).find(".ult_countdown-amount").css("font-weight","bold"),jQuery(this).find(".ult_countdown-amount").css("font-style","italic")),"bold"==jQuery(this).data("tick-p-style")?jQuery(this).find(".ult_countdown-period").css("font-weight","bold"):"italic"==jQuery(this).data("tick-p-style")?jQuery(this).find(".ult_countdown-period").css("font-style","italic"):"boldnitalic"==jQuery(this).data("tick-p-style")&&(jQuery(this).find(".ult_countdown-period").css("font-weight","bold"),jQuery(this).find(".ult_countdown-period").css("font-style","italic"))};jQuery(this).hasClass("ult-usrtz")?jQuery(this).ult_countdown({labels:d,labels1:f,until:a,format:b,padZeroes:!0,onTick:h}):jQuery(this).ult_countdown({labels:d,labels1:f,until:a,format:b,padZeroes:!0,onTick:h,serverSync:g})})}),function(){var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function b(c){function d(){!a&&this._init&&this._init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]?function(a,b){return function(){var c=this._super;this._super=function(b){return e[a].apply(this,b)};var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=b,d}}(),function($){function camelCase(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var a=camelCase(this.name);$[a]=this,$.fn[a]=function(b){var c=Array.prototype.slice.call(arguments,1);return $[a]._isNotChained(b,c)?$[a][b].apply($[a],[this[0]].concat(c)):this.each(function(){if("string"==typeof b){if("_"===b[0]||!$[a][b])throw"Unknown method: "+b;$[a][b].apply($[a],[this].concat(c))}else $[a]._attach(this,b)})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){return"option"===a&&(0===b.length||1===b.length&&"string"==typeof b[0])||$.inArray(a,this._getters)>-1},_attach:function(a,b){if(a=$(a),!a.hasClass(this._getMarker())){a.addClass(this._getMarker()),b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c),this._postAttach(a,c),this.option(a,b)}},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,c){var d=f.substring(0,c).match(/"/g);return d&&d.length%2!==0?b+":":'"'+b+'":'}),f=$.parseJSON("{"+f+"}");for(var g in f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||"string"==typeof b&&null==c){var e=(d||{}).options;return e&&b?e[b]:e}if(a.hasClass(this._getMarker())){var e=b||{};"string"==typeof b&&(e={},e[b]=c),this._optionsChanged(a,d,e),$.extend(d.options,e)}},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a),a.hasClass(this._getMarker())&&(this._preDestroy(a,this._getInst(a)),a.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(a,b){}}),$.JQPlugin={createPlugin:function(a,b){"object"==typeof a&&(b=a,a="JQPlugin"),a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b),new JQClass.classes[c]}}}(jQuery),function(a){var b="ult_countdown",c=0,d=1,e=2,f=3,g=4,h=5,i=6;a.JQPlugin.createPlugin({name:b,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:b+"-rtl",_sectionClass:b+"-section",_amountClass:b+"-amount",_periodClass:b+"-period",_rowClass:b+"-row",_holdingClass:b+"-holding",_showClass:b+"-show",_descrClass:b+"-descr",_timerElems:[],_init:function(){function b(a){var h=a<1e12?e?performance.now()+performance.timing.navigationStart:d():a||d();h-g>=1e3&&(c._updateElems(),g=h),f(b)}var c=this;this._super(),this._serverSyncs=[];var d="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},e=window.performance&&"function"==typeof window.performance.now,f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,g=0;!f||a.noRequestAnimationFrame?(a.noRequestAnimationFrame=null,setInterval(function(){c._updateElems()},980)):(g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d(),f(b))},UTCDate:function(a,b,c,d,e,f,g,h){"object"==typeof b&&b.constructor==Date&&(h=b.getMilliseconds(),g=b.getSeconds(),f=b.getMinutes(),e=b.getHours(),d=b.getDate(),c=b.getMonth(),b=b.getFullYear());var i=new Date;return i.setUTCFullYear(b),i.setUTCDate(1),i.setUTCMonth(c||0),i.setUTCDate(d||1),i.setUTCHours(e||0),i.setUTCMinutes((f||0)-(Math.abs(a)<30?60*a:a)),i.setUTCSeconds(g||0),i.setUTCMilliseconds(h||0),i},periodsToSeconds:function(a){return 31557600*a[0]+2629800*a[1]+604800*a[2]+86400*a[3]+3600*a[4]+60*a[5]+a[6]},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(a){this._hasElem(a)||this._timerElems.push(a)},_hasElem:function(b){return a.inArray(b,this._timerElems)>-1},_removeElem:function(b){this._timerElems=a.map(this._timerElems,function(a){return a==b?null:a})},_updateElems:function(){for(var a=this._timerElems.length-1;a>=0;a--)this._updateCountdown(this._timerElems[a])},_optionsChanged:function(b,c,d){d.layout&&(d.layout=d.layout.replace(/</g,"<").replace(/>/g,">")),this._resetExtraLabels(c.options,d);var e=c.options.timezone!=d.timezone;a.extend(c.options,d),this._adjustSettings(b,c,null!=d.until||null!=d.since||e);var f=new Date;(c._since&&c._sincef)&&this._addElem(b[0]),this._updateCountdown(b,c)},_updateCountdown:function(b,c){if(b=b.jquery?b:a(b),c=c||b.data(this.name)){if(b.html(this._generateHTML(c)).toggleClass(this._rtlClass,c.options.isRTL),a.isFunction(c.options.onTick)){var d="lap"!=c._hold?c._periods:this._calculatePeriods(c,c._show,c.options.significant,new Date);1!=c.options.tickInterval&&this.periodsToSeconds(d)%c.options.tickInterval!=0||c.options.onTick.apply(b[0],[d])}var e="pause"!=c._hold&&(c._since?c._now.getTime()=c._until.getTime());if(e&&!c._expiring){if(c._expiring=!0,this._hasElem(b[0])||c.options.alwaysExpire){if(this._removeElem(b[0]),a.isFunction(c.options.onExpiry)&&c.options.onExpiry.apply(b[0],[]),c.options.expiryText){var f=c.options.layout;c.options.layout=c.options.expiryText,this._updateCountdown(b[0],c),c.options.layout=f}c.options.expiryUrl&&(window.location=c.options.expiryUrl)}c._expiring=!1}else"pause"==c._hold&&this._removeElem(b[0])}},_resetExtraLabels:function(a,b){var c=!1;for(var d in b)if("whichLabels"!=d&&d.match(/[Ll]abels/)){c=!0;break}if(c)for(var d in a)d.match(/[Ll]abels[02-9]|compactLabels1/)&&(a[d]=null)},_adjustSettings:function(b,c,d){for(var e,f=0,g=null,h=0;h0,n[o]="?"!=b._show[o]||k?b._show[o]:null,l+=n[o]?1:0,m-=b._periods[o]>0?1:0;for(var p=[!1,!1,!1,!1,!1,!1,!1],o=i;o>=c;o--)b._show[o]&&(b._periods[o]?p[o]=!0:(p[o]=m>0,m--));var q=b.options.compact?b.options.compactLabels:b.options.labels,r=b.options.whichLabels||this._normalLabels,s=function(a){var c=b.options["compactLabels"+r(b._periods[a])];return n[a]?j._translateDigits(b,b._periods[a])+(c?c[a]:q[a])+" ":""},t=b.options.padZeroes?2:1,u=function(a){var c=b.options["labels"+r(b._periods[a])];return!b.options.significant&&n[a]||b.options.significant&&p[a]?''+j._minDigits(b,b._periods[a],t)+''+(c?c[a]:q[a])+"":""};return b.options.layout?this._buildLayout(b,n,b.options.layout,b.options.compact,b.options.significant,p):(b.options.compact?''+s(c)+s(d)+s(e)+s(f)+(n[g]?this._minDigits(b,b._periods[g],2):"")+(n[h]?(n[g]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[h],2):"")+(n[i]?(n[g]||n[h]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[i],2):""):''+u(c)+u(d)+u(e)+u(f)+u(g)+u(h)+u(i))+""+(b.options.description?''+b.options.description+"":"")},_buildLayout:function(b,j,k,l,m,n){for(var o=b.options[l?"compactLabels":"labels"],p=b.options.whichLabels||this._normalLabels,q=function(a){return(b.options[(l?"compactLabels":"labels")+p(b._periods[a])]||o)[a]},r=function(a,c){return b.options.digits[Math.floor(a/c)%10]},s={desc:b.options.description,sep:b.options.timeSeparator,yl:q(c),yn:this._minDigits(b,b._periods[c],1),ynn:this._minDigits(b,b._periods[c],2),ynnn:this._minDigits(b,b._periods[c],3),y1:r(b._periods[c],1),y10:r(b._periods[c],10),y100:r(b._periods[c],100),y1000:r(b._periods[c],1e3),ol:q(d),on:this._minDigits(b,b._periods[d],1),onn:this._minDigits(b,b._periods[d],2),onnn:this._minDigits(b,b._periods[d],3),o1:r(b._periods[d],1),o10:r(b._periods[d],10),o100:r(b._periods[d],100),o1000:r(b._periods[d],1e3),wl:q(e),wn:this._minDigits(b,b._periods[e],1),wnn:this._minDigits(b,b._periods[e],2),wnnn:this._minDigits(b,b._periods[e],3),w1:r(b._periods[e],1),w10:r(b._periods[e],10),w100:r(b._periods[e],100),w1000:r(b._periods[e],1e3),dl:q(f),dn:this._minDigits(b,b._periods[f],1),dnn:this._minDigits(b,b._periods[f],2),dnnn:this._minDigits(b,b._periods[f],3),d1:r(b._periods[f],1),d10:r(b._periods[f],10),d100:r(b._periods[f],100),d1000:r(b._periods[f],1e3),hl:q(g),hn:this._minDigits(b,b._periods[g],1),hnn:this._minDigits(b,b._periods[g],2),hnnn:this._minDigits(b,b._periods[g],3),h1:r(b._periods[g],1),h10:r(b._periods[g],10),h100:r(b._periods[g],100),h1000:r(b._periods[g],1e3),ml:q(h),mn:this._minDigits(b,b._periods[h],1),mnn:this._minDigits(b,b._periods[h],2),mnnn:this._minDigits(b,b._periods[h],3),m1:r(b._periods[h],1),m10:r(b._periods[h],10),m100:r(b._periods[h],100),m1000:r(b._periods[h],1e3),sl:q(i),sn:this._minDigits(b,b._periods[i],1),snn:this._minDigits(b,b._periods[i],2),snnn:this._minDigits(b,b._periods[i],3),s1:r(b._periods[i],1),s10:r(b._periods[i],10),s100:r(b._periods[i],100),s1000:r(b._periods[i],1e3)},t=k,u=c;u<=i;u++){var v="yowdhms".charAt(u),w=new RegExp("\\{"+v+"<\\}([\\s\\S]*)\\{"+v+">\\}","g");t=t.replace(w,!m&&j[u]||m&&n[u]?"$1":"")}return a.each(s,function(a,b){var c=new RegExp("\\{"+a+"\\}","g");t=t.replace(c,b)}),t},_minDigits:function(a,b,c){return b=""+b,b.length>=c?this._translateDigits(a,b):(b="0000000000"+b,this._translateDigits(a,b.substr(b.length-c)))},_translateDigits:function(a,b){return(""+b).replace(/[0-9]/g,function(b){return a.options.digits[b]})},_determineShow:function(a){var b=a.options.format,j=[];return j[c]=b.match("y")?"?":b.match("Y")?"!":null,j[d]=b.match("o")?"?":b.match("O")?"!":null,j[e]=b.match("w")?"?":b.match("W")?"!":null,j[f]=b.match("d")?"?":b.match("D")?"!":null,j[g]=b.match("h")?"?":b.match("H")?"!":null,j[h]=b.match("m")?"?":b.match("M")?"!":null,j[i]=b.match("s")?"?":b.match("S")?"!":null,j},_calculatePeriods:function(a,b,j,k){a._now=k,a._now.setMilliseconds(0);var l=new Date(a._now.getTime());a._since?k.getTime()a._until.getTime()&&(a._now=k=l));var m=[0,0,0,0,0,0,0];if(b[c]||b[d]){var n=this._getDaysInMonth(k.getFullYear(),k.getMonth()),o=this._getDaysInMonth(l.getFullYear(),l.getMonth()),p=l.getDate()==k.getDate()||l.getDate()>=Math.min(n,o)&&k.getDate()>=Math.min(n,o),q=function(a){return 60*(60*a.getHours()+a.getMinutes())+a.getSeconds()},r=Math.max(0,12*(l.getFullYear()-k.getFullYear())+l.getMonth()-k.getMonth()+(l.getDate()t&&k.setDate(t),k.setFullYear(k.getFullYear()+m[c]),k.setMonth(k.getMonth()+m[d]),s&&k.setDate(t)}var u=Math.floor((l.getTime()-k.getTime())/1e3),v=function(a,c){m[a]=b[a]?Math.floor(u/c):0,u-=m[a]*c};if(v(e,604800),v(f,86400),v(g,3600),v(h,60),v(i,1),u>0&&!a._since)for(var w=[1,12,4.3482,7,24,60,60],x=i,y=1,z=i;z>=c;z--)b[z]&&(m[x]>=y&&(m[x]=0,u=1),u>0&&(m[z]++,u=0,x=z,y=1)),y*=w[z];if(j)for(var z=c;z<=i;z++)j&&m[z]?j--:j||(m[z]=0);return m}})}(jQuery),jQuery(document).ready(function(){jQuery(".ult_colorlink").hover(function(){var a=jQuery(this).data("style");if("Style_6"==a){var b=jQuery(this).find(".ult_btn6_link_top").data("color");jQuery(this).find(".ult_btn6_link_top").css("text-shadow","10px 0 "+b+", -10px 0 "+b),jQuery(this).find(".ult_btn6_link_top").css("color",b)}if("Style_10"==a){var c=jQuery(this).find(".ult_btn10_span").data("bhover"),d=jQuery(this).find(".ult_btn10_span").data("bstyle");" "!=d&&(jQuery(this).find(".ult_btn10_span").css("border-top-style","solid"),jQuery(this).find(".ult_btn10_span").css("border-top-color",c))}var e=jQuery(this).data("texthover"),f=jQuery(this).data("bghover");jQuery(this).css("color",e),jQuery(this).find(".ult_btn10_span").css("color",e),"Style_2"==a&&jQuery(this).find(".ult_btn10_span").css("background",f)},function(){var a=jQuery(this).data("style");if("Style_6"==a&&jQuery(this).find(".ult_btn6_link_top").removeAttr("style"),"Style_10"==a){var b=jQuery(this).find(".ult_btn10_span").data("color"),c=jQuery(this).find(".ult_btn10_span").data("bstyle");" "!=c&&(jQuery(this).find(".ult_btn10_span").css("border-top-style",c),jQuery(this).find(".ult_btn10_span").css("border-top-color",b))}var d=jQuery(this).data("textcolor"),e=jQuery(this).data("bgcolor");jQuery(this).css("color",d),jQuery(this).find(".ult_btn10_span").css("color",d),"Style_2"==a&&jQuery(this).find(".ult_btn10_span").css("background",e)})}),jQuery(window).load(function(){ult_creative_link_ht()}),jQuery(document).ready(function(a){ult_creative_link_ht()}),jQuery(window).resize(function(a){ult_creative_link_ht()}),function(a){"use strict";function b(a,b,c){if("img"===c){var d=parseInt(b.outerHeight()),e=d/2;a.css("padding-top",e+"px"),a.parent().css("margin-top",e+20+"px"),b.css("top",-d+"px")}else{var d=parseInt(b.outerHeight()),e=d/2;a.css("padding-top",e+"px"),a.parent().css("margin-top",e+20+"px"),b.css("top",-d+"px")}}function c(b){b.find(".timeline-icon-block").length>0&&a(".timeline-block").each(function(b,c){var d=a(this).find(".timeline-header-block"),e=a(this).find(".timeline-icon-block");e.css({position:"absolute"});var f=e.outerHeight(),g=e.outerWidth(),h=-(g/2),i=parseInt(d.find(".timeline-header").css("padding-left").replace(/[^\d.]/g,""));a(this).hasClass("timeline-post-left")?(e.css({left:h,right:"auto"}),d.css({"padding-left":g/2+i+"px"})):a(this).hasClass("timeline-post-right")&&(e.css({left:"auto",right:h}),d.css({"padding-right":g/2+i+"px"}));var j=d.height(),k=j/2,l=f/2,m=k-l;e.css({top:m});var n=e.offset().left,o=a(window).width();(0>n||o=e?c.find(".ult-new-ib-content").hide():c.find(".ult-new-ib-content").show()}})}function g(){var b="";a(".ult-spacer").each(function(c,d){var e=a(d).data("id"),f=(a("body").width(),a(d).data("height-mobile")),g=a(d).data("height-mobile-landscape"),h=a(d).data("height-tab"),i=a(d).data("height-tab-portrait"),j=a(d).data("height");""!=j&&(b+=" .spacer-"+e+" { height:"+j+"px } "),""==h&&"0"!=h&&0!=h||(b+=" @media (max-width: 1199px){ .spacer-"+e+" { height:"+h+"px }} "),"undefined"==typeof i||""==i&&"0"!=i&&0!=i||(b+=" @media (max-width: 991px){ .spacer-"+e+" { height:"+i+"px }} "),"undefined"==typeof g||""==g&&"0"!=g&&0!=g||(b+=" @media (max-width: 767px){ .spacer-"+e+" { height:"+g+"px }} "),""==f&&"0"!=f&&0!=f||(b+=" @media (max-width: 479px){ .spacer-"+e+" { height:"+f+"px }} ")}),""!=b&&(b="",a("head").append(b))}a.fn.vc_translate_row=function(){var b=a(window).scrollTop(),c=a(window).height();a(this).each(function(d,e){var f=a(e).attr("data-row-effect-mobile-disable");if(f="undefined"==typeof f?"false":f.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var g="true";else var g="false";if("true"==g&&"true"==f)var h="true";else var h="false";if("false"==h){var i=0,j=a(e).outerHeight(),k=a(e).offset().top,l=k-b,m=l+j,n=a(e).attr("data-parallax-content-sense"),o=n/100,p=0,q=c-c*(i/100);if(m<=q&&l<=0){if(j>c)var p=(c-m)*o;else var p=-(l*o);p<0&&(p=0)}else p=0;var r=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator,.ult-easy-separator-wrapper";a(e).find(".vc-row-translate-wrapper").children().each(function(b,c){jQuery(c).is(r)||a(c).css({transform:"translate3d(0,"+p+"px,0)","-webkit-transform":"translate3d(0,"+p+"px,0)","-ms-transform":"translate3d(0,"+p+"px,0)"})})}})},a.fn.vc_fade_row=function(){var b=a(window).scrollTop(),c=a(window).height();a(this).each(function(d,e){var f=a(e).attr("data-row-effect-mobile-disable");if(f="undefined"==typeof f?"false":f.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var g="true";else var g="false";if("true"==g&&"true"==f)var h="true";else var h="false";if("false"==h){var i=0,j=a(e).data("fadeout-percentage");j=100-j;var k=a(e).outerHeight(),l=a(e).offset().top,m=l-b,n=m+k,o=1,p=c-c*(j/100),q=(p-n)/p*(1-i);q>0&&(o=1-q),n<=p?(o1&&(o=1),a(e).children().each(function(b,c){var d=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator";a(c).is(d)||a(c).css({opacity:o})})):a(e).children().each(function(b,c){a(c).css({opacity:o})})}})},jQuery(document).ready(function(){g()}),jQuery(window).scroll(function(){var b=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&b>=1?jQuery(".ult-animation").css("opacity",1):d(),a(".vc-row-fade").vc_fade_row(),a(".vc-row-translate").vc_translate_row()}),jQuery(window).load(function(){jQuery(".ult-banner-block-custom-height").each(function(a,b){var c=jQuery(this).find("img"),d=jQuery(this).width(),e=jQuery(this).height();c.width();d>e&&c.css({width:"100%",height:"auto"})});var b=0,d=0,e=function(){jQuery(".ifb-jq-height").each(function(){jQuery(this).find(".ifb-back").css("height","auto"), jQuery(this).find(".ifb-front").css("height","auto");var a=parseInt(jQuery(this).find(".ifb-front > div").outerHeight(!0)),b=parseInt(jQuery(this).find(".ifb-back > div").outerHeight(!0)),c=a>b?a:b;jQuery(this).find(".ifb-front").css("height",c+"px"),jQuery(this).find(".ifb-back").css("height",c+"px"),jQuery(this).hasClass("vertical_door_flip")?jQuery(this).find(".ifb-flip-box").css("height",c+"px"):jQuery(this).hasClass("horizontal_door_flip")?jQuery(this).find(".ifb-flip-box").css("height",c+"px"):jQuery(this).hasClass("style_9")&&jQuery(this).find(".ifb-flip-box").css("height",c+"px")}),jQuery(".ifb-auto-height").each(function(){if(jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("vertical_door_flip")){var a=parseInt(jQuery(this).find(".ifb-front > div").outerHeight()),b=parseInt(jQuery(this).find(".ifb-back > div").outerHeight()),c=a>b?a:b;jQuery(this).find(".ifb-flip-box").css("height",c+"px")}})};navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1?setTimeout(function(){e()},500):e(),jQuery(document).on("ultAdvancedTabClicked",function(a,b){e()}),jQuery(window).resize(function(){b++,setTimeout(function(){d++,b==d&&e()},500)});var g=0;jQuery(window).resize(function(){f(),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){c(jQuery(this))}),a(".jstime .timeline-wrapper").each(function(){c(jQuery(this))}),"none"==jQuery(".smile-icon-timeline-wrap.jstime .timeline-line").css("display")?0===g&&(a(".jstime .timeline-wrapper").masonry("destroy"),g=1):1==g&&(jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"}),setTimeout(function(){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block",width:"401px"}),jQuery(this).find(".timeline-block").each(function(){jQuery(this).css("left","initial"),"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right")}),g=0},300))}),a(".smile-icon-timeline-wrap").each(function(){var b=jQuery(this).data("timeline-cutom-width");b&&jQuery(this).css("width",2*b+40+"px");var d=parseInt(jQuery(this).width()),e=parseInt(jQuery(this).find(".timeline-block").width()),f=d-2*e-40;f=f/d*100,a(".jstime .timeline-wrapper").each(function(){jQuery(this).masonry({itemSelector:".timeline-block"})}),setTimeout(function(){a(".jstime .timeline-wrapper").each(function(){jQuery(this).find(".timeline-block").each(function(){"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right"),c(jQuery(this))}),jQuery(".timeline-block").each(function(){var a=parseInt(jQuery(this).css("top"))-parseInt(jQuery(this).next().css("top"));a<14&&a>0||0==a?jQuery(this).next().addClass("time-clash-right"):a>-14&&jQuery(this).next().addClass("time-clash-left")})}),jQuery(".timeline-post-right").each(function(){var a=jQuery(this).find(".timeline-icon-block").clone();jQuery(this).find(".timeline-icon-block").remove(),jQuery(this).find(".timeline-header-block").after(a)}),jQuery(".smile-icon-timeline-wrap").each(function(){var a=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",a),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",a),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",a),jQuery(this).find(".feat-item").css("background-color",a),jQuery(this).find(".feat-item").find(".feat-top").length>0?jQuery(this).find(".feat-item l").css("border-top-color",a):jQuery(this).find(".feat-item l").css("border-bottom-color",a)}),jQuery(".jstime.timeline_preloader").remove(),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","1")},1e3),jQuery(this).find(".timeline-wrapper").each(function(){""===jQuery(this).text().trim()&&jQuery(this).remove()}),jQuery(this).find(".timeline-line ").next().hasClass("timeline-separator-text")||jQuery(this).find(".timeline-line").prepend("");var g=jQuery(this).data("time_sep_color"),h=jQuery(this).data("time_sep_bg_color"),i=jQuery(".smile-icon-timeline-wrap .timeline-line").css("border-right-color");jQuery(this).find(".timeline-dot").css("background-color",h),jQuery(this).find(".timeline-line z").css("background-color",h),jQuery(this).find(".timeline-line o").css("background-color",h),jQuery(this).find(".timeline-separator-text").css("color",g),jQuery(this).find(".timeline-separator-text .sep-text").css("background-color",h),jQuery(this).find(".ult-timeline-arrow s").css("border-color","rgba(255, 255, 255, 0) "+i),jQuery(this).find(".feat-item .ult-timeline-arrow s").css("border-color",i+" rgba(255, 255, 255, 0)"),jQuery(this).find(".timeline-block").css("border-color",i),jQuery(this).find(".feat-item").css("border-color",i)})}),jQuery(document).ready(function(a){var e=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&e>=1?jQuery(".ult-animation").css("opacity",1):d(),f(),jQuery(".ubtn").hover(function(){var a=jQuery(this);a.find(".ubtn-text").css("color",a.data("hover")),a.find(".ubtn-hover").css("background",a.data("hover-bg")).addClass("ubtn-hover-active");var b=""!=a.data("hover-bg")&&a.data("hover-bg");setTimeout(function(){b!==!1&&a.hasClass(".ubtn-fade-bg")&&a.css("background",a.data("hover-bg"))},150);var c=a.attr("style");if(""!=a.data("shadow-hover")){a.css("box-shadow");c+="box-shadow:"+a.data("shadow-hover")}if(a.attr("style",c),""!=a.data("border-hover")&&a.css("border-color",a.data("border-hover")),"none"!=a.data("shadow-click")){var d=a.data("shd-shadow")-3;""!=a.is(".shd-left")?a.css({right:d}):""!=a.is(".shd-right")?a.css({left:d}):""!=a.is(".shd-top")?a.css({bottom:d}):""!=a.is(".shd-bottom")&&a.css({top:d})}},function(){var a=jQuery(this);a.find(".ubtn-text").removeAttr("style"),a.find(".ubtn-hover").removeClass("ubtn-hover-active"),a.css("background",a.data("bg"));var b=a.data("border-color"),c=a.attr("style");""!=a.data("shadow-hover")&&(c+="box-shadow:"+a.data("shadow")),a.attr("style",c),""!=a.data("border-hover")&&a.css("border-color",b),"none"!=a.data("shadow-click")&&(a.removeClass("no-ubtn-shadow"),""!=a.is(".shd-left")?a.css({right:"auto"}):""!=a.is(".shd-right")?a.css({left:"auto"}):""!=a.is(".shd-top")?a.css({bottom:"auto"}):""!=a.is(".shd-bottom")&&a.css({top:"auto"}))}),jQuery(".ubtn").on("focus blur mousedown mouseup",function(a){var b=jQuery(this);"none"!=b.data("shadow-click")&&setTimeout(function(){b.is(":focus")?(b.addClass("no-ubtn-shadow"),""!=b.is(".shd-left")?b.css({right:b.data("shd-shadow")+"px"}):""!=b.is(".shd-right")?b.css({left:b.data("shd-shadow")+"px"}):""!=b.is(".shd-top")?b.css({bottom:b.data("shd-shadow")+"px"}):""!=b.is(".shd-bottom")&&b.css({top:b.data("shd-shadow")+"px"})):(b.removeClass("no-ubtn-shadow"),""!=b.is(".shd-left")?b.css({right:"auto"}):""!=b.is(".shd-right")?b.css({left:"auto"}):""!=b.is(".shd-top")?b.css({bottom:"auto"}):""!=b.is(".shd-bottom")&&b.css({top:"auto"}))},0)}),jQuery(".ubtn").focusout(function(){var a=jQuery(this);a.removeClass("no-ubtn-shadow"),""!=a.is(".shd-left")?a.css({right:"auto"}):""!=a.is(".shd-right")?a.css({left:"auto"}):""!=a.is(".shd-top")?a.css({bottom:"auto"}):""!=a.is(".shd-bottom")&&a.css({top:"auto"})}),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","0"),jQuery(".jstime.timeline_preloader").css("opacity","1"),jQuery(".smile-icon-timeline-wrap.csstime .timeline-wrapper").each(function(){jQuery(".csstime .timeline-block:even").addClass("timeline-post-left"),jQuery(".csstime .timeline-block:odd").addClass("timeline-post-right")}),jQuery(".csstime .timeline-post-right").each(function(){jQuery(this).css("float","right"),jQuery("
").insertAfter(jQuery(this))}),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){var a=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",a),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",a),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",a),jQuery(this).find(".feat-item").css("background-color",a),jQuery(this).find(".feat-item").find(".feat-top").length>0?jQuery(this).find(".feat-item l").css("border-top-color",a):jQuery(this).find(".feat-item l").css("border-bottom-color",a),c(jQuery(this))}),jQuery(".aio-icon, .aio-icon-img, .flip-box, .ultb3-info, .icon_list_icon, .ult-banner-block, .uavc-list-icon, .ult_tabs, .icon_list_connector").each(function(){if(jQuery(this).attr("data-animation")){var b=jQuery(this).attr("data-animation"),c="delay-"+jQuery(this).attr("data-animation-delay");if("undefined"==typeof b||""===b)return!1;a(this).bsf_appear(function(){var a=jQuery(this);a.addClass("animated").addClass(b),a.addClass("animated").addClass(c)})}}),jQuery(".stats-block").each(function(){a(this).bsf_appear(function(){var a=parseFloat(jQuery(this).find(".stats-number").data("counter-value")),b=jQuery(this).find(".stats-number").data("counter-value")+" ",c=parseInt(jQuery(this).find(".stats-number").data("speed")),d=jQuery(this).find(".stats-number").data("id"),e=jQuery(this).find(".stats-number").data("separator"),f=jQuery(this).find(".stats-number").data("decimal"),g=b.split(".");g=g[1]?g[1].length-1:0;var h=!0;"none"==f&&(f=""),h="none"!=e;var i={useEasing:!0,useGrouping:h,separator:e,decimal:f},j=new countUp(d,0,a,g,c,i);setTimeout(function(){j.start()},500)})}),jQuery(document).on("click","#page",function(){jQuery(".ifb-hover").removeClass("ifb-hover")}),jQuery(document).on("hover",".ifb-flip-box",function(a){a.stopPropagation(),jQuery(this).toggleClass("ifb-hover")}),jQuery(".ifb-flip-box").each(function(a,b){jQuery(this).parent().hasClass("style_9")&&(jQuery(this).hover(function(){jQuery(this).addClass("ifb-door-hover")},function(){jQuery(this).removeClass("ifb-door-hover")}),jQuery(this).on("click",function(){jQuery(this).toggleClass("ifb-door-right-open"),jQuery(this).removeClass("ifb-door-hover")}))}),jQuery(document).on("click",".ifb-flip-box",function(a){a.stopPropagation(),jQuery(document).trigger("ultFlipBoxClicked",jQuery(this))}),jQuery(".vertical_door_flip .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_vertical_door_flip .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".horizontal_door_flip .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_horizontal_door_flip .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())});var g=/^((?!chrome).)*safari/i.test(navigator.userAgent);g&&(jQuery(".vertical_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-multiple-front").css("width","50.2%")}),jQuery(".horizontal_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-multiple-front").css("height","50.2%")}),jQuery(".reverse_vertical_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px")}),jQuery(".reverse_horizontal_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-back").css("position","inherit")})),jQuery(".square_box-icon").each(function(a,c){var d=jQuery(this);if(jQuery(this).find(".aio-icon-img").length>0){var e=jQuery(this).find(".aio-icon-img");b(d,e,"img"),e.find(".img-icon").load(function(){b(d,e,"icon")})}else{var e=jQuery(this).find(".aio-icon");b(d,e,"icon"),jQuery(window).load(function(){b(d,e,"icon")})}})})}(jQuery),jQuery(document).ready(function(){function a(){jQuery(".ult-new-ib").each(function(a,b){var c=jQuery(this).data("min-height")||"";jQuery(this).find(".ult-new-ib-img").data("min-height")||"",jQuery(this).find(".ult-new-ib-img").data("max-width")||"";if(""!=c){jQuery(this).addClass("ult-ib2-min-height"),jQuery(this).css("height",c),jQuery(this).find(".ult-new-ib-img").removeClass("ult-ib2-toggle-size");var d=(jQuery(this).find(".ult-new-ib-img").width(),jQuery(this).find(".ult-new-ib-img").height()),e=jQuery(this).width();(e<=c||d0&&a()}),jQuery(".ui-accordion").bind("accordionactivate",function(b,c){jQuery(this).find(".ultimate-map-wrapper").length>0&&a()}),jQuery(document).on("onUVCModalPopupOpen",function(){a()}),jQuery(document).on("UVCMapResize",function(){a()})}),function(a){a(document).ready(function(){var b=a(window).width();if(b>300&&b<768);else if(b>768&&b<1015);else;a(document).on("mouseenter",".ult_dual1",function(){var b=a(this).find(".ult-dual-btn-1").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 20px 50px "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-1").data("icon_hover_color");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-1").data("iconbghovercolor");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({background:f});var g=a(this).find(".ult-dual-btn-1").data("iconhoverborder");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({"border-color":g}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({background:f}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({"border-color":g});var h=a(this).find(".ult-dual-btn-1").data("texthovercolor");a(this).find(".ult-dual-btn-1").find(".ult-dual-button-title").css({color:h})}}),a(document).on("mouseleave",".ult_dual1",function(){var b=a(this).find(".ult-dual-btn-1").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-1").data("bgcolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-1").data("bgcolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-1").data("bgcolor");a(this).css({"box-shadow":"inset 0px 0 0 0 "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-1").data("icon_color");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-1").data("textcolor");a(this).find(".ult-dual-btn-1").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-1").data("iconbgcolor");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-1").data("iconborder");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({"border-color":h})}}),a(document).on("mouseenter",".ult_dual2",function(){var b=a(this).find(".ult-dual-btn-2").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 20px 50px "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-2").data("icon_hover_color");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-2").data("texthovercolor");a(this).find(".ult-dual-btn-2").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-2").data("iconbghovercolor");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-2").data("iconhoverborder");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({"border-color":h})}}),a(document).on("mouseleave",".ult_dual2",function(){var b=a(this).find(".ult-dual-btn-2").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-2").data("bgcolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-2").data("bgcolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 0 0 "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-2").data("icon_color");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-2").data("textcolor");a(this).find(".ult-dual-btn-2").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-2").data("iconbgcolor");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-2").data("iconborder");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({"border-color":h})}})}),a(document).on("mouseenter",".ult_main_dualbtn",function(){a(this).data("bhcolor")}),a(document).on("mouseleave",".ult_main_dualbtn",function(){a(this).data("bcolor")})}(jQuery),jQuery(document).ready(function(a){jQuery(".ult_main_dualbtn").each(function(a){var b=jQuery(this).find(".ult_dual1").outerHeight();b=parseInt(b);var c=jQuery(this).find(".ult_dual2").outerHeight();c=parseInt(c),b>c?(jQuery(this).find(".ult_dual2").css({height:b}),jQuery(this).find(".ult_dual1").css({height:b})):b0)var e=jQuery(b).parents(".wpb_column");else if(jQuery(b).parents(".wpb_column").length>0)var e=jQuery(b).parents(".wpb_row");else var e=jQuery(b).parent();if("full"==c&&(e=jQuery("body"),d="false"),"ex-full"==c&&(e=jQuery("html"),d="false"),!isNaN(c))for(var a=1;a0&&(a=!0),c.body.removeChild(b),a}function f(b,c,d){this.child=b,this._$child=a(b),this.parent=c,this.options={className:"fixto-fixed",top:0},this._setOptions(d)}function g(a,b,c){f.call(this,a,b,c),this._replacer=new j.MimicNode(a),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHeight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function h(a,b,c){f.call(this,a,b,c),this.start()}var i=function(){var a={getAll:function(a){return c.defaultView.getComputedStyle(a)},get:function(a,b){return this.getAll(a)[b]},toFloat:function(a){return parseFloat(a,10)||0},getFloat:function(a,b){return this.toFloat(this.get(a,b))},_getAllCurrentStyle:function(a){return a.currentStyle}};return c.documentElement.currentStyle&&(a.getAll=a._getAllCurrentStyle),a}(),j=function(){function b(a){this.element=a,this.replacer=c.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),a.parentNode.insertBefore(this.replacer,a)}b.prototype={replace:function(){var a=this.replacer.style,b=i.getAll(this.element);a.width=this._width(),a.height=this._height(),a.marginTop=b.marginTop,a.marginBottom=b.marginBottom,a.marginLeft=b.marginLeft,a.marginRight=b.marginRight,a.cssFloat=b.cssFloat,a.styleFloat=b.styleFloat,a.position=b.position,a.top=b.top,a.right=b.right,a.bottom=b.bottom,a.left=b.left,a.display=b.display},hide:function(){this.replacer.style.display="none"},_width:function(){return this.element.getBoundingClientRect().width+"px"},_widthOffset:function(){return this.element.offsetWidth+"px"},_height:function(){return this.element.getBoundingClientRect().height+"px"},_heightOffset:function(){return this.element.offsetHeight+"px"},destroy:function(){a(this.replacer).remove();for(var b in this)this.hasOwnProperty(b)&&(this[b]=null)}};var d=c.documentElement.getBoundingClientRect();return d.width||(b.prototype._width=b.prototype._widthOffset,b.prototype._height=b.prototype._heightOffset),{MimicNode:b,computedStyle:i}}();d.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:function(a,b){return a.jsPrefix+b[0].toUpperCase()+b.substr(1)},_prefixValue:function(a,b){return a.cssPrefix+b},_valueSupported:function(a,b,c){try{return c.style[a]=b,c.style[a]===b}catch(d){return!1}},propertySupported:function(a){return void 0!==c.documentElement.style[a]},getJsProperty:function(a){if(this.propertySupported(a))return a;if(this._vendor)return this._prefixJsProperty(this._vendor,a);var b;for(var c in this._vendors)if(b=this._prefixJsProperty(this._vendors[c],a),this.propertySupported(b))return this._vendor=this._vendors[c],b;return null},getCssValue:function(a,b){var d=c.createElement("div"),e=this.getJsProperty(a);if(this._valueSupported(e,b,d))return b;var f;if(this._vendor&&(f=this._prefixValue(this._vendor,b),this._valueSupported(e,f,d)))return f;for(var g in this._vendors)if(f=this._prefixValue(this._vendors[g],b),this._valueSupported(e,f,d))return this._vendor=this._vendors[g],f;return null}};var k,l,m=new d,n=m.getJsProperty("transform"),o=m.getCssValue("position","sticky"),p=m.getCssValue("position","fixed"),q="Microsoft Internet Explorer"===navigator.appName;q&&(l=parseFloat(navigator.appVersion.split("MSIE")[1])),f.prototype={_mindtop:function(){var a=0;if(this._$mind)for(var b,c,d=0,e=this._$mind.length;dthis._parentBottom||this._scrollTopthis._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop()&&this._viewportHeight>this.child.offsetHeight+i.toFloat(a.marginTop)+i.toFloat(a.marginBottom)&&(this._fix(),this._adjust())}},_adjust:function(){var a=0,b=this._mindtop(),c=0,d=i.getAll(this.child),e=null;k&&(e=this._getContext(),e&&(e.getBoundingClientRect().top>0?a-=e.getBoundingClientRect().top:a=Math.abs(e.getBoundingClientRect().top))),c=this._parentBottom-this._scrollTop-(this.child.offsetHeight+i.toFloat(d.marginBottom)+b+this.options.top),c>0&&(c=0),this.child.style.top=c+b+a+this.options.top-i.toFloat(d.marginTop)+"px"},_fullOffset:function(a,b,c){for(var d=b[a],e=b.offsetParent;null!==e&&e!==c;)d+=e[a],e=e.offsetParent;return d},_getContext:function(){for(var a,b,d=this.child,e=null;!e;){if(a=d.parentNode,a===c.documentElement)return null;if(b=i.getAll(a),"none"!==b[n]){e=a;break}d=a}return e},_fix:function(){var a=this.child,b=a.style,d=i.getAll(a),e=a.getBoundingClientRect().left,f=d.width;if(this._saveStyles(),c.documentElement.currentStyle&&(f=a.offsetWidth-(i.toFloat(d.paddingLeft)+i.toFloat(d.paddingRight)+i.toFloat(d.borderLeftWidth)+i.toFloat(d.borderRightWidth))+"px"),k){var g=this._getContext();g&&(e=a.getBoundingClientRect().left-g.getBoundingClientRect().left)}this._replacer.replace(),b.left=e-i.toFloat(d.marginLeft)+"px",b.width=f,b.position="fixed",b.top=this._mindtop()+this.options.top-i.toFloat(d.marginTop)+"px",this._$child.addClass(this.options.className),this.fixed=!0},_unfix:function(){var a=this.child.style;this._replacer.hide(),a.position=this._childOriginalPosition,a.top=this._childOriginalTop,a.width=this._childOriginalWidth,a.left=this._childOriginalLeft,this._$child.removeClass(this.options.className),this.fixed=!1},_saveStyles:function(){var a=this.child.style;this._childOriginalPosition=a.position,this._childOriginalTop=a.top,this._childOriginalWidth=a.width,this._childOriginalLeft=a.left},_onresize:function(){this.refresh()},_saveViewportHeight:function(){this._viewportHeight=b.innerHeight||c.documentElement.clientHeight},_stop:function(){this._unfix(),a(b).unbind("scroll",this._proxied_onscroll),a(this._toresize).unbind("resize",this._proxied_onresize); },_start:function(){this._onscroll(),a(b).bind("scroll",this._proxied_onscroll),a(this._toresize).bind("resize",this._proxied_onresize)},_destroy:function(){this._replacer.destroy()},refresh:function(){this._saveViewportHeight(),this._unfix(),this._onscroll()}}),h.prototype=new f,a.extend(h.prototype,{_start:function(){var a=i.getAll(this.child);this._childOriginalPosition=a.position,this._childOriginalTop=a.top,this.child.style.position=o,this.refresh()},_stop:function(){this.child.style.position=this._childOriginalPosition,this.child.style.top=this._childOriginalTop},refresh:function(){this.child.style.top=this._mindtop()+this.options.top+"px"}});var r=function(a,b,c){return o&&!c||o&&c&&c.useNativeSticky!==!1?new h(a,b,c):p?(void 0===k&&(k=e()),new g(a,b,c)):"Neither fixed nor sticky positioning supported"};return l<8&&(r=function(){return"not supported"}),a.fn.fixTo=function(b,c){var d=a(b),e=0;return this.each(function(){var f=a(this).data("fixto-instance");if(f){var g=b;f[g].call(f,c)}else a(this).data("fixto-instance",r(this,d[e],c));e++})},{FixToContainer:g,fixTo:r,computedStyle:i,mimicNode:j}}(window.jQuery,window,document);!function(a,b,c){function d(){a(".flip-box").each(function(c,d){var e=(a(document).width(),b.innerWidth);if(""!=e)if(e>=768){var f=a(this).attr("data-min-height")||"";if(""!=f){if(a(this).hasClass("ifb-custom-height")){if(a(this).css("height",f),a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(f);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}if(a(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var i=a(this).find(".ifb-front").outerHeight();i=parseInt(f);var j=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();j=parseInt(j),j>=i&&a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}}else if(a(this).hasClass("ifb-jq-height")){var k=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();k=parseInt(k);var l=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();l=parseInt(l),k>=l?a(this).find(".ifb-face").css("height",k):a(this).find(".ifb-face").css("height",l)}else if(a(this).hasClass("ifb-auto-height")&&a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}else{var f=a(this).attr("data-min-height")||"";if(a(this).hasClass("style_9")){a(this).css("height","initial");var m=a(this).find(".ifb-front-1 .ifb-front").outerHeight(),n=a(this).find(".ifb-back-1 .ifb-back").outerHeight();m>n?a(this).css("height",m):a(this).css("height",n)}else if(a(this).hasClass("ifb-jq-height")){var k=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();k=parseInt(k);var l=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();l=parseInt(l),k>=l?a(this).find(".ifb-face").css("height",k):a(this).find(".ifb-face").css("height",l)}else if(a(this).hasClass("ifb-auto-height")){if(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}else if(a(this).hasClass("ifb-custom-height")){if(""!=f){if(a(this).css("height",f),a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}if(a(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var i=a(this).find(".ifb-front").outerHeight();i=parseInt(i);var j=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();j=parseInt(j),j>=i?a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle"):a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}}else a(this).css("height","initial")}})}a(b).load(function(a){d()}),a(document).ready(function(a){d()}),a(b).resize(function(a){d()})}(jQuery,window),function(a){function b(){var a=0;$jh(".uvc-heading").each(function(){var b,c,d,e=$jh(this).outerWidth(),f=$jh(this).attr("data-hline_width"),g=$jh(this).attr("data-hicon_type"),h=$jh(this).attr("data-halign"),i=$jh(this).attr("data-hspacer");if("line_with_icon"==i){var j=$jh(this).attr("id");a=$jh(this).attr("data-hfixer"),a="undefined"==typeof a||""===a?0:parseInt(a);var k=e/2;$jh(this).find(".dynamic_ultimate_heading_css").remove(),d="auto"==f||f>e?e:f;var l=d/2;"selector"==g?(c=$jh(this).find(".aio-icon").outerWidth(),b=$jh(this).find(".aio-icon").outerHeight()):(c=$jh(this).find(".aio-icon-img").outerWidth(),b=$jh(this).find(".aio-icon-img").outerHeight());var m=c/2,n=k-m+c+a,o=l;if(b+=3,$jh(this).find(".uvc-heading-spacer").height(b),"center"==h){$jh(this).find(".aio-icon-img").css({margin:"0 auto"});var p="#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+n+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+n+"px;}"}else if("left"==h){$jh(this).find(".aio-icon-img").css({float:h});var p="";p=""!=d?"#"+j+" .uvc-heading-spacer.line_with_icon:before{left:"+(c+a)+"px;right:auto;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(o+c+a)+"px;right:auto;}":"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(n-c-2*a)+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(n-a)+"px;}"}else if("right"==h){$jh(this).find(".aio-icon-img").css({float:h});var p="";p=""!=d?"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(c+a)+"px;left:auto;}#"+j+" .uvc-heading-spacer.line_with_icon:after{right:"+(o+c+a)+"px;left:auto;}":"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(n-a)+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(n-c-2*a)+"px;}"}var q=$jh(this).attr("data-hborder_style"),r=$jh(this).attr("data-hborder_color"),s=$jh(this).attr("data-hborder_height");"auto"==f&&"center"==h&&(o=Math.floor(o-c+a));var t='
";$jh(this).prepend(t)}else"line_only"==i&&("right"==h||"left"==h?$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({float:h}):$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({margin:"0 auto"}))})}$jh=a.noConflict(),$jh(document).ready(function(a){b(),$jh(window).resize(function(a){b()})}),a(window).load(function(a){b(),jQuery(".ult_exp_section").select(function(){var a=jQuery(this).parent().find(".uvc-heading").length;a>0&&b()})})}(jQuery),function(a){function b(){a(".ultimate-call-to-action").each(function(b,c){var d=a(c).data("override");if(0!=d){a(c).css({"margin-left":0});var e="true";if(a(c).parents(".wpb_row").length>0)var f=a(c).parents(".wpb_row");else if(a(c).parents(".wpb_column").length>0)var f=a(c).parents(".wpb_column");else var f=a(c).parent();if("full"==d&&(f=a("body"),e="false"),"ex-full"==d&&(f=a("html"),e="false"),!isNaN(d))for(var b=1;b<=d&&"HTML"!=f.prop("tagName");b++)f=f.parent();var g=f.outerWidth(),h=a(c).offset().left,i=(a(c).position().left,f.offset().left),j=f.position().left,k=i-h;"full"!=d&&"ex-full"!=d&&(k=i-j),a(c).css({width:g,"margin-left":k})}})}a(document).ready(function(){a(document).on("mouseenter",".ultimate-call-to-action",function(){a(this).addClass("ultimate-call-to-action-hover");var b=a(this).data("background-hover");a(this).css({"background-color":b})}),a(document).on("mouseleave",".ultimate-call-to-action",function(){a(this).removeClass("ultimate-call-to-action-hover");var b=a(this).data("background");a(this).css({"background-color":b})}),b(),a(window).resize(function(){b()})})}(jQuery),function(a,b,c){function d(b,c){this.bodyOverflowX,this.callbacks={hide:[],show:[]},this.checkInterval=null,this.Content,this.$el=a(b),this.$elProxy,this.elProxyPosition,this.enabled=!0,this.options=a.extend({},i,c),this.mouseIsOverProxy=!1,this.namespace="ult-tooltipster-"+Math.round(1e5*Math.random()),this.Status="hidden",this.timerHide=null,this.timerShow=null,this.$tooltip,this.options.iconTheme=this.options.iconTheme.replace(".",""),this.options.theme=this.options.theme.replace(".",""),this._init()}function e(b,c){var d=!0;return a.each(b,function(a,e){if("undefined"==typeof c[a]||b[a]!==c[a])return d=!1,!1}),d}function f(){return!k&&j}function g(){var a=c.body||c.documentElement,b=a.style,d="transition";if("string"==typeof b[d])return!0;v=["Moz","Webkit","Khtml","O","ms"],d=d.charAt(0).toUpperCase()+d.substr(1);for(var e=0;e
'),b.$elProxy.text(b.options.icon)):b.options.iconCloning?b.$elProxy=b.options.icon.clone(!0):b.$elProxy=b.options.icon,b.$elProxy.insertAfter(b.$el)):b.$elProxy=b.$el,"hover"==b.options.trigger?(b.$elProxy.on("mouseenter."+b.namespace,function(){f()&&!b.options.touchDevices||(b.mouseIsOverProxy=!0,b._show())}).on("mouseleave."+b.namespace,function(){f()&&!b.options.touchDevices||(b.mouseIsOverProxy=!1)}),j&&b.options.touchDevices&&b.$elProxy.on("touchstart."+b.namespace,function(){b._showNow()})):"click"==b.options.trigger&&b.$elProxy.on("click."+b.namespace,function(){f()&&!b.options.touchDevices||b._show()})}},_responsive:function(){var a="",b="",c="",d="",e="",f="";jQuery(".ult-responsive").each(function(g,h){var i=jQuery(h),j=i.attr("data-responsive-json-new"),k=i.data("ultimate-target"),l="",m="",n="",o="",p="",q="";jQuery(h).hasClass("ult-tooltipster-content"),"undefined"==typeof j&&null==j||jQuery.each(jQuery.parseJSON(j),function(a,b){var c=a;if("undefined"!=typeof b&&null!=b){var d=b.split(";");jQuery.each(d,function(a,b){if("undefined"!=typeof b||null!=b){var d=b.split(":");switch(d[0]){case"large_screen":l+=c+":"+d[1]+";";break;case"desktop":m+=c+":"+d[1]+";";break;case"tablet":n+=c+":"+d[1]+";";break;case"tablet_portrait":o+=c+":"+d[1]+";";break;case"mobile_landscape":p+=c+":"+d[1]+";";break;case"mobile":q+=c+":"+d[1]+";"}}})}}),""!=q&&(f+=k+"{"+q+"}"),""!=p&&(e+=k+"{"+p+"}"),""!=o&&(d+=k+"{"+o+"}"),""!=n&&(c+=k+"{"+n+"}"),""!=m&&(b+=k+"{"+m+"}"),""!=l&&(a+=k+"{"+l+"}")});var g="",jQuery("head").append(g)},_show:function(){var a=this;"shown"!=a.Status&&"appearing"!=a.Status&&(a.options.delay?a.timerShow=setTimeout(function(){("click"==a.options.trigger||"hover"==a.options.trigger&&a.mouseIsOverProxy)&&(a._showNow(),a._responsive())},a.options.delay):a._showNow()),a._responsive()},_showNow:function(c){var d=this;d.options.functionBefore.call(d.$el,d.$el,function(){if(d.enabled&&null!==d.Content){c&&d.callbacks.show.push(c),d.callbacks.hide=[],clearTimeout(d.timerShow),d.timerShow=null,clearTimeout(d.timerHide),d.timerHide=null,d.options.onlyOne&&a(".ult-tooltipstered").not(d.$el).each(function(b,c){var d=a(c),e=d.data("ult-tooltipster-ns");a.each(e,function(a,b){var c=d.data(b),e=c.status(),f=c.option("autoClose");"hidden"!==e&&"disappearing"!==e&&f&&c.hide()})});var e=function(){d.Status="shown",a.each(d.callbacks.show,function(a,b){b.call(d.$el)}),d.callbacks.show=[]};if("hidden"!==d.Status){var f=0;"disappearing"===d.Status?(d.Status="appearing",g()?(d.$tooltip.clearQueue().removeClass("ult-tooltipster-dying").addClass("ult-tooltipster-"+d.options.animation+"-show"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(e)):d.$tooltip.stop().fadeIn(e)):"shown"===d.Status&&e()}else{d.Status="appearing";var f=d.options.speed,h=BaseStyle="";d.options.ultCustomTooltipStyle&&(h=d.options.ultContentStyle?d.options.ultContentStyle:"",BaseStyle=d.options.ultBaseStyle?d.options.ultBaseStyle:""),d.bodyOverflowX=a("body").css("overflow-x"),a("body").css("overflow-x","hidden");var i="ult-tooltipster-"+d.options.animation,k="-webkit-transition-duration: "+d.options.speed+"ms; -webkit-animation-duration: "+d.options.speed+"ms; -moz-transition-duration: "+d.options.speed+"ms; -moz-animation-duration: "+d.options.speed+"ms; -o-transition-duration: "+d.options.speed+"ms; -o-animation-duration: "+d.options.speed+"ms; -ms-transition-duration: "+d.options.speed+"ms; -ms-animation-duration: "+d.options.speed+"ms; transition-duration: "+d.options.speed+"ms; animation-duration: "+d.options.speed+"ms;",l=d.options.minWidth?"min-width:"+Math.round(d.options.minWidth)+"px;":"",m=d.options.maxWidth?"max-width:"+Math.round(d.options.maxWidth)+"px;":"",n=d.options.interactive?"pointer-events: auto;":"";if(BaseStyle=BaseStyle+" "+l+" "+m+" "+n+" "+k,d.$tooltip=a('
'),g()&&d.$tooltip.addClass(i),d._content_insert(),d.$tooltip.appendTo("body"),d.reposition(),d.options.functionReady.call(d.$el,d.$el,d.$tooltip),g()?(d.$tooltip.addClass(i+"-show"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(e)):d.$tooltip.css("display","none").fadeIn(d.options.speed,e),d._interval_set(),a(b).on("scroll."+d.namespace+" resize."+d.namespace,function(){d.reposition()}),d.options.autoClose)if(a("body").off("."+d.namespace),"hover"==d.options.trigger)if(j&&setTimeout(function(){a("body").on("touchstart."+d.namespace,function(){d.hide()})},0),d.options.interactive){j&&d.$tooltip.on("touchstart."+d.namespace,function(a){a.stopPropagation()});var o=null;d.$elProxy.add(d.$tooltip).on("mouseleave."+d.namespace+"-autoClose",function(){clearTimeout(o),o=setTimeout(function(){d.hide()},d.options.interactiveTolerance)}).on("mouseenter."+d.namespace+"-autoClose",function(){clearTimeout(o)})}else d.$elProxy.on("mouseleave."+d.namespace+"-autoClose",function(){d.hide()});else"click"==d.options.trigger&&(setTimeout(function(){a("body").on("click."+d.namespace+" touchstart."+d.namespace,function(){d.hide()})},0),d.options.interactive&&d.$tooltip.on("click."+d.namespace+" touchstart."+d.namespace,function(a){a.stopPropagation()}))}d.options.timer>0&&(d.timerHide=setTimeout(function(){d.timerHide=null,d.hide()},d.options.timer+f))}})},_interval_set:function(){var b=this;b.checkInterval=setInterval(function(){if(0===a("body").find(b.$el).length||0===a("body").find(b.$elProxy).length||"hidden"==b.Status||0===a("body").find(b.$tooltip).length)"shown"!=b.Status&&"appearing"!=b.Status||b.hide(),b._interval_cancel();else if(b.options.positionTracker){var c=b._repositionInfo(b.$elProxy),d=!1;e(c.dimension,b.elProxyPosition.dimension)&&("fixed"===b.$elProxy.css("position")?e(c.position,b.elProxyPosition.position)&&(d=!0):e(c.offset,b.elProxyPosition.offset)&&(d=!0)),d||b.reposition()}},200)},_interval_cancel:function(){clearInterval(this.checkInterval),this.checkInterval=null},_content_set:function(a){"object"==typeof a&&null!==a&&this.options.contentCloning&&(a=a.clone(!0)),this.Content=a},_content_insert:function(){var a=this,b=this.$tooltip.find(".ult-tooltipster-content");"string"!=typeof a.Content||a.options.contentAsHTML?b.empty().append(a.Content):b.text(a.Content)},_update:function(a){var b=this;b._content_set(a),null!==b.Content?"hidden"!==b.Status&&(b._content_insert(),b.reposition(),b.options.updateAnimation&&(g()?(b.$tooltip.css({width:"","-webkit-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("ult-tooltipster-content-changing"),setTimeout(function(){"hidden"!=b.Status&&(b.$tooltip.removeClass("ult-tooltipster-content-changing"),setTimeout(function(){"hidden"!==b.Status&&b.$tooltip.css({"-webkit-transition":b.options.speed+"ms","-moz-transition":b.options.speed+"ms","-o-transition":b.options.speed+"ms","-ms-transition":b.options.speed+"ms",transition:b.options.speed+"ms"})},b.options.speed))},b.options.speed)):b.$tooltip.fadeTo(b.options.speed,.5,function(){"hidden"!=b.Status&&b.$tooltip.fadeTo(b.options.speed,1)}))):b.hide()},_repositionInfo:function(a){return{dimension:{height:a.outerHeight(!1),width:a.outerWidth(!1)},offset:a.offset(),position:{left:parseInt(a.css("left")),top:parseInt(a.css("top"))}}},hide:function(c){var d=this;c&&d.callbacks.hide.push(c),d.callbacks.show=[],clearTimeout(d.timerShow),d.timerShow=null,clearTimeout(d.timerHide),d.timerHide=null;var e=function(){a.each(d.callbacks.hide,function(a,b){b.call(d.$el)}),d.callbacks.hide=[]};if("shown"==d.Status||"appearing"==d.Status){d.Status="disappearing";var f=function(){d.Status="hidden","object"==typeof d.Content&&null!==d.Content&&d.Content.detach(),d.$tooltip.remove(),d.$tooltip=null,a(b).off("."+d.namespace),a("body").off("."+d.namespace).css("overflow-x",d.bodyOverflowX),a("body").off("."+d.namespace),d.$elProxy.off("."+d.namespace+"-autoClose"),d.options.functionAfter.call(d.$el,d.$el),e()};g()?(d.$tooltip.clearQueue().removeClass("ult-tooltipster-"+d.options.animation+"-show").addClass("ult-tooltipster-dying"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(f)):d.$tooltip.stop().fadeOut(d.options.speed,f)}else"hidden"==d.Status&&e();return d},show:function(a){return this._showNow(a),this},update:function(a){return this.content(a)},content:function(a){return"undefined"==typeof a?this.Content:(this._update(a),this)},reposition:function(){function c(){var c=a(b).scrollLeft();C-c<0&&(f=C-c,C=c),C+i-c>g&&(f=C-(g+c-i),C=g+c-i)}function d(c,d){h.offset.top-a(b).scrollTop()-j-F-12<0&&d.indexOf("top")>-1&&(H=c),h.offset.top+h.dimension.height+j+12+F>a(b).scrollTop()+a(b).height()&&d.indexOf("bottom")>-1&&(H=c,E=h.offset.top-j-F-12)}var e=this;if(0!==a("body").find(e.$tooltip).length){e.$tooltip.css("width",""),e.elProxyPosition=e._repositionInfo(e.$elProxy);var f=null,g=a(b).width(),h=e.elProxyPosition,i=e.$tooltip.outerWidth(!1),j=(e.$tooltip.innerWidth()+1,e.$tooltip.outerHeight(!1));if(e.$elProxy.is("area")){var k=e.$elProxy.attr("shape"),l=e.$elProxy.parent().attr("name"),m=a('img[usemap="#'+l+'"]'),n=m.offset().left,o=m.offset().top,p=void 0!==e.$elProxy.attr("coords")?e.$elProxy.attr("coords").split(","):void 0;if("circle"==k){var q=parseInt(p[0]),r=parseInt(p[1]),s=parseInt(p[2]);h.dimension.height=2*s,h.dimension.width=2*s,h.offset.top=o+r-s,h.offset.left=n+q-s}else if("rect"==k){var q=parseInt(p[0]),r=parseInt(p[1]),t=parseInt(p[2]),u=parseInt(p[3]);h.dimension.height=u-r,h.dimension.width=t-q,h.offset.top=o+r,h.offset.left=n+q}else if("poly"==k){for(var v=0,w=0,x=0,y=0,z="even",A=0;Ax&&(x=B,0===A&&(v=x)),By&&(y=B,1==A&&(w=y)),Bg){var K=2*parseFloat(e.$tooltip.css("border-width")),L=i+C-K;e.$tooltip.css("width",L+"px"),j=e.$tooltip.outerHeight(!1),C=h.offset.left-G-L-12-K,J=h.offset.top+j-(h.offset.top+h.dimension.height),E=h.offset.top-J/2-F}else C<0&&(C=h.offset.left+G+h.dimension.width+12,f="left")}if("right"==H){C=h.offset.left+G+h.dimension.width+12,D=h.offset.left-G-i-12;var J=h.offset.top+j-(h.offset.top+h.dimension.height);if(E=h.offset.top-J/2-F,C+i>g&&D<0){var K=2*parseFloat(e.$tooltip.css("border-width")),L=g-C-K;e.$tooltip.css("width",L+"px"),j=e.$tooltip.outerHeight(!1),J=h.offset.top+j-(h.offset.top+h.dimension.height),E=h.offset.top-J/2-F}else C+i>g&&(C=h.offset.left-G-i-12,f="right")}if(e.options.arrow){var M="ult-tooltipster-arrow-"+H;if(e.options.arrowColor.length<1)var N=e.$tooltip.css("background-color");else var N=e.options.arrowColor;if(f?"left"==f?(M="ult-tooltipster-arrow-right",f=""):"right"==f?(M="ult-tooltipster-arrow-left",f=""):f="left:"+Math.round(f)+"px;":f="","top"==H||"top-left"==H||"top-right"==H)var O=parseFloat(e.$tooltip.css("border-bottom-width")),P=e.$tooltip.css("border-bottom-color");else if("bottom"==H||"bottom-left"==H||"bottom-right"==H)var O=parseFloat(e.$tooltip.css("border-top-width")),P=e.$tooltip.css("border-top-color");else if("left"==H)var O=parseFloat(e.$tooltip.css("border-right-width")),P=e.$tooltip.css("border-right-color");else if("right"==H)var O=parseFloat(e.$tooltip.css("border-left-width")),P=e.$tooltip.css("border-left-color");else var O=parseFloat(e.$tooltip.css("border-bottom-width")),P=e.$tooltip.css("border-bottom-color");O>1&&O++;var Q="";if(0!==O){var R="",S="border-color: "+P+";";M.indexOf("bottom")!==-1?R="margin-top: -"+Math.round(O)+"px;":M.indexOf("top")!==-1?R="margin-bottom: -"+Math.round(O)+"px;":M.indexOf("left")!==-1?R="margin-right: -"+Math.round(O)+"px;":M.indexOf("right")!==-1&&(R="margin-left: -"+Math.round(O)+"px;"),Q=''}e.$tooltip.find(".ult-tooltipster-arrow").remove();var T='
'+Q+'
';e.$tooltip.append(T)}e.$tooltip.css({top:Math.round(E)+"px",left:Math.round(C)+"px"})}return e},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var b=this;b.hide(),b.$el[0]!==b.$elProxy[0]&&b.$elProxy.remove(),b.$el.removeData(b.namespace).off("."+b.namespace);var c=b.$el.data("ult-tooltipster-ns");if(1===c.length){var d="string"==typeof b.Content?b.Content:a("
").append(b.Content).html();b.$el.removeClass("ult-tooltipstered").attr("title",d).removeData(b.namespace).removeData("ult-tooltipster-ns").off("."+b.namespace)}else c=a.grep(c,function(a,c){return a!==b.namespace}),b.$el.data("ult-tooltipster-ns",c);return b},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:void 0},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:void 0},option:function(a,b){return"undefined"==typeof b?this.options[a]:(this.options[a]=b,this)},status:function(){return this.Status}},a.fn[h]=function(){var b=arguments;if(0===this.length){if("string"==typeof b[0]){var c=!0;switch(b[0]){case"setDefaults":a.extend(i,b[1]);break;default:c=!1}return!!c||this}return this}if("string"==typeof b[0]){var e="#*$~&";return this.each(function(){var c=a(this).data("ult-tooltipster-ns"),d=c?a(this).data(c[0]):null;if(!d)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof d[b[0]])throw new Error('Unknown method .ult-tooltipster("'+b[0]+'")');var f=d[b[0]](b[1],b[2]);if(f!==d)return e=f,!1}),"#*$~&"!==e?e:this}var f=[],g=b[0]&&"undefined"!=typeof b[0].multiple,h=g&&b[0].multiple||!g&&i.multiple,j=b[0]&&"undefined"!=typeof b[0].debug,k=j&&b[0].debug||!j&&i.debug;return this.each(function(){var c=!1,e=a(this).data("ult-tooltipster-ns"),g=null;e?h?c=!0:k&&console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):c=!0,c&&(g=new d(this,b[0]),e||(e=[]),e.push(g.namespace),a(this).data("ult-tooltipster-ns",e),a(this).data(g.namespace,g)),f.push(g)}),h?f:this};var j=!!("ontouchstart"in b),k=!1;a("body").one("mousemove",function(){k=!0})}(jQuery,window,document),function(a,b,c){a(document).ready(function(c){function d(){var b="",d="";a('a[href="#"]').click(function(a){a.preventDefault()}),c(".ult_hotspot_container.ult-hotspot-tooltip-wrapper").each(function(){c(this);c(this).data("opacity")||.5;c(".ult-hotspot-tooltip[data-link_style='tootip']",c(this)).each(function(){if(a(this).find(".aio-icon-img").length>0)var e=a(this).find(".aio-icon-img").outerHeight(!0),f=a(this).find(".aio-icon-img").outerWidth(!0);else var e=jQuery(this).find(".aio-icon").outerHeight(!0),f=jQuery(this).find(".aio-icon").outerWidth(!0);var g=Math.round(e/2),h=Math.round(f/2),i=c(this).data("tooltipanimation"),j=c(this).data("trigger")||"hover",k=c(this).data("arrowposition")||"top",l=c(this).data("bubble-arrow"),m=c(this).data("tooltip-content-style"),n=c(this).data("tooltip-base-style"),o=c(this).find(".hotspot-tooltip-content").html();c(this).data("tooltip-offsety")||0;o=c(this).find(".hotspot-tooltip-content").html(o).text();var p=c(this).data("mycust-id");b=c(this).data("ultimate-target"),d=c(this).data("responsive-json-new"),d=JSON.stringify(d),"top"==k&&(g=0),"bottom"==k&&(g=e),"left"==k&&(g=-g,h=0),"right"==k&&(h=f,g=-g),/firefox/.test(navigator.userAgent.toLowerCase())&&(h=0,g=0),c(this).ulttooltipster({content:o,position:k,offsetX:h,offsetY:g,ultCustomTooltipStyle:!0,ultContentStyle:m,ultBaseStyle:n,arrow:l,delay:100,speed:300,interactive:!0,animation:i,trigger:j,contentAsHTML:1,ult_adv_id:p,responsive_json_new:d,ultimate_target:b})})})}d(),setTimeout(function(){a(b).load(function(){if(a(".ult_hotspot_container").length>0){var b=a(".ult_hotspot_container").find(".ult-hotspot-tooltip").attr("data-status")||"hide";"show"===b&&a(".ult-tooltipstered").ulttooltipster("destroy"),d()}})},700),a(document).ajaxComplete(function(a,b,c){d()})})}(jQuery,window),function(a,b,c){function d(b,c,d,e,f,g){""!=c&&(c>=768?a(b).find(".ult-ih-item, .ult-ih-img, .ult-ih-image-block, .ult-ih-list-item").css({height:d,width:e}):a(b).find(".ult-ih-item, .ult-ih-img, .ult-ih-image-block, .ult-ih-list-item").css({height:f,width:g}))}function e(){a(".ult-ih-list").each(function(c,e){var f=a(e).attr("data-shape"),g=a(e).attr("data-height"),h=a(e).attr("data-width"),i=a(e).attr("data-res_height"),j=a(e).attr("data-res_width"),k=jQuery(b).width()||"";a(e).find("li").each(function(){a(e).find(".ult-ih-item").addClass("ult-ih-"+f),d(e,k,g,h,i,j)})})}a(b).load(function(){a(".ult-ih-container").css({visibility:"visible",opacity:1})}),a(document).ready(function(){e(),a(document).ajaxComplete(function(a,b,c){e()})}),a(b).resize(function(){e()})}(jQuery,window),function(a){a(document).ready(function(){a(document).trigger("ultImageSeparator")}),a(window).load(function(){a(document).trigger("ultImageSeparator")}),a(document).on("ultImageSeparator",function(b){a(".ult-easy-separator-wrapper").each(function(b,c){var d=a(this).attr("data-vc-row"),e=a(this).parents("."+d+":first");e.hasClass("upb-background-text")&&(e=e.parents("."+d+":first")),a(this).appendTo(e).find(".ult-no-animation").css({opacity:"1"})})})}(jQuery),function(a){function b(){a(".ultb3-box").each(function(b,c){var d=a(c).outerHeight(),e=a(c).find(".ultb3-info").outerHeight(),f=(d-e)/2;a(c).find(".ultb3-info").css({top:f})})}a(document).ready(function(){b(),a(window).resize(function(){b()}),jQuery(".ultb3-box .ultb3-info").each(function(){if(jQuery(this).attr("data-animation")){jQuery(this).css("opacity","0");var a=jQuery(this).attr("data-animation"),b="delay-"+jQuery(this).attr("data-animation-delay");jQuery(this).bsf_appear(function(){var c=jQuery(this);c.addClass("animated").addClass(a),c.addClass("animated").addClass(b),c.css("opacity","1")},{accY:-70})}})}),a(window).load(function(){b()})}(jQuery),jQuery(window).load(function(a){info_box_set_auto_height()}),jQuery(document).ready(function(a){info_box_set_auto_height(),jQuery(window).resize(function(a){info_box_set_auto_height()})});var resizedd=0,time_f_arr=[];jQuery(document).ready(function(){make_info_circle(".info-c-full-br",0),responsive_check(".info-c-full-br"),calculate_clipped_circle(),jQuery(".clipped-info-circle").each(function(a,b){var c=jQuery(this).outerHeight(),d=jQuery(this).outerWidth();jQuery(this).attr("data-first-width",d),jQuery(this).attr("data-first-height",c)}),jQuery(window).resize(function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(window).load(function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(document).on("ultAdvancedTabClicked",function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(".info-c-full-br").each(function(){"click"==jQuery(this).data("focus-on")&&jQuery(this).find(".icon-circle-list .info-circle-icons").click(function(){ var a=jQuery(this);jQuery(this).parents(".info-c-full-br").attr("data-slide-true","false"),show_next_info_circle(a)}),"hover"==jQuery(this).data("focus-on")&&jQuery(this).find(".icon-circle-list .info-circle-icons").hover(function(){var a=jQuery(this);jQuery(this).parents(".info-c-full-br").attr("data-slide-true","false"),show_next_info_circle(a)},function(){})}),setTimeout(function(){jQuery(".info-c-full-br").each(function(){var a=jQuery(this).data("slide-duration");a||(a=.2),jQuery(this).attr("data-slide-number","1"),info_circle_slide(1e3*a,jQuery(this));var b=jQuery(this).find(".info-circle-icons").eq(0);show_next_info_circle(b)})},1e3)}),jQuery(window).load(function(){jQuery(".info-c-full-br").each(function(){"on"==jQuery(this).attr("data-slide-true")&&jQuery(this).hover(function(){jQuery(this).attr("data-slide-true","off")},function(){jQuery(this).attr("data-slide-true","on")})})}),jQuery(document).ready(function(a){jQuery(".icon_list_item").each(function(a,b){var c=jQuery(this),d=c.find(".info-circle-img-icon").length;d>=1&&c.closest("ul.smile_icon_list").addClass("ic-resp-img")})}),function(a){a.fn.bsf_appear=function(b,c){var d=a.extend({data:void 0,one:!0,accX:0,accY:0},c);return this.each(function(){var c=a(this);if(c.bsf_appeared=!1,!b)return void c.trigger("bsf_appear",d.data);var e=a(window),f=function(){if(!c.is(":visible"))return void(c.bsf_appeared=!1);var a=e.scrollLeft(),b=e.scrollTop(),f=c.offset(),g=f.left,h=f.top,i=d.accX,j=d.accY,k=c.height(),l=e.height(),m=c.width(),n=e.width();h+k+j>=b&&h<=b+l+j&&g+m+i>=a&&g<=a+n+i?c.bsf_appeared||c.trigger("bsf_appear",d.data):c.bsf_appeared=!1},g=function(){if(c.bsf_appeared=!0,d.one){e.unbind("scroll",f);var g=a.inArray(f,a.fn.bsf_appear.checks);g>=0&&a.fn.bsf_appear.checks.splice(g,1)}b.apply(this,arguments)};d.one?c.one("bsf_appear",d.data,g):c.bind("bsf_appear",d.data,g),e.scroll(f),a.fn.bsf_appear.checks.push(f),f()})},a.extend(a.fn.bsf_appear,{checks:[],timeout:null,checkAll:function(){var b=a.fn.bsf_appear.checks.length;if(b>0)for(;b--;)a.fn.bsf_appear.checks[b]()},run:function(){a.fn.bsf_appear.timeout?clearTimeout(a.fn.bsf_appear.timeout):a.fn.bsf_appear.timeout=setTimeout(a.fn.bsf_appear.checkAll,20)}}),a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(b,c){var d=a.fn[c];d&&(a.fn[c]=function(){var b=d.apply(this,arguments);return a.fn.bsf_appear.run(),b})})}(jQuery),function(){var a,b;a=this.jQuery||window.jQuery,b=a(window),a.fn.stick_in_parent=function(c){var d,e,f,g,h,i,j,k,l,m,n,o;for(null==c&&(c={}),o=c.sticky_class,i=c.inner_scrolling,n=c.recalc_every,m=c.parent,l=c.offset_top,k=c.spacer,f=c.bottoming,null==l&&(l=0),null==m&&(m=void 0),null==i&&(i=!0),null==o&&(o="is_stuck"),d=a(document),null==f&&(f=!0),g=function(c,e,g,h,j,p,q,r){var s,t,u,v,w,x,y,z,A,B,C,D;if(!c.data("sticky_kit")){if(c.data("sticky_kit",!0),w=d.height(),y=c.parent(),null!=m&&(y=y.closest(m)),!y.length)throw"failed to find stick parent";if(u=!1,s=!1,C=null!=k?k&&c.closest(k):a("
"),C&&C.css("position",c.css("position")),z=function(){var a,b,f;if(!r)return w=d.height(),a=parseInt(y.css("border-top-width"),10),b=parseInt(y.css("padding-top"),10),e=parseInt(y.css("padding-bottom"),10),g=y.offset().top+a+b,h=y.height(),u&&(u=!1,s=!1,null==k&&(c.insertAfter(C),C.detach()),c.css({position:"",top:"",width:"",bottom:""}).removeClass(o),f=!0),j=c.offset().top-(parseInt(c.css("margin-top"),10)||0)-l,p=c.outerHeight(!0),q=c.css("float"),C&&C.css({width:c.outerWidth(!0),height:p,display:c.css("display"),"vertical-align":c.css("vertical-align"),float:q}),f?D():void 0},z(),p!==h)return v=void 0,x=l,B=n,D=function(){var a,m,t,A,D,E;if(!r)return t=!1,null!=B&&(B-=1,B<=0&&(B=n,z(),t=!0)),t||d.height()===w||(z(),t=!0),A=b.scrollTop(),null!=v&&(m=A-v),v=A,u?(f&&(D=A+p+x>h+g,s&&!D&&(s=!1,c.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),AE&&(s||(x-=m,x=Math.max(E-p,x),x=Math.min(l,x),u&&c.css({top:x+"px"}))))):A>j&&(u=!0,a={position:"fixed",top:x},a.width="border-box"===c.css("box-sizing")?c.outerWidth()+"px":c.width()+"px",c.css(a).addClass(o),null==k&&(c.after(C),"left"!==q&&"right"!==q||C.append(c)),c.trigger("sticky_kit:stick")),u&&f&&(null==D&&(D=A+p+x>h+g),!s&&D)?(s=!0,"static"===y.css("position")&&y.css({position:"relative"}),c.css({position:"absolute",bottom:e,top:"auto"}).trigger("sticky_kit:bottom")):void 0},A=function(){return z(),D()},t=function(){if(r=!0,b.off("touchmove",D),b.off("scroll",D),b.off("resize",A),a(document.body).off("sticky_kit:recalc",A),c.off("sticky_kit:detach",t),c.removeData("sticky_kit"),c.css({position:"",bottom:"",top:"",width:""}),y.position("position",""),u)return null==k&&("left"!==q&&"right"!==q||c.insertAfter(C),C.remove()),c.removeClass(o)},b.on("touchmove",D),b.on("scroll",D),b.on("resize",A),a(document.body).on("sticky_kit:recalc",A),c.on("sticky_kit:detach",t),setTimeout(D,0)}},h=0,j=this.length;hb?c:b,f=f>d?f:d});var A=f+"px "+c+"px 35px";h.css("padding",A)}"on"==r&&(x.find(".ult-description").each(function(){var b=a(this).outerHeight();g=g>b?g:b}),g=g+30+"px",x.find(".ult-desc-wrap").css("min-height",g)),h.find(".ui-slider-labels").children(".ui-slider-label-ticks").css("background",k);var B={},C="background";B[C]=o;var D=y.find(".ui-slider-handle");y.css("background",k),D.css(B),y.find(".ui-slider-range").css("background",n)})}),function(a){a(document).ready(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){b.css("left",0),b.css("right",0);var c=b.attr("data-rtl"),d=a("html").outerWidth(),e=0,f=b.offset().left,g=Math.abs(e-f),h=g;"true"===c||c===!0?b.css({position:"relative",right:"-"+h+"px",width:d+"px"}):b.css({position:"relative",left:"-"+h+"px",width:d+"px"})}}),a(".ult-carousel-wrapper").each(function(b,c){var d=a(c).data("gutter"),e=a(c).attr("id");if(""!=d){var f="";a("head").append(f)}}),a(window).resize(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){var c=b.attr("data-rtl");b.removeAttr("style");var d=a("html").outerWidth(),e=0,f=b.offset().left,g=Math.abs(e-f),h=g;"true"===c||c===!0?b.css({position:"relative",right:"-"+h+"px",width:d+"px"}):b.css({position:"relative",left:"-"+h+"px",width:d+"px"})}})})}),a(window).load(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){b.css("left",0),b.css("right",0);var c=0,d=b.offset().left,e=Math.abs(c-d),f=b.attr("data-rtl"),g=a("html").outerWidth(),h=e;"true"===f||f===!0?b.css({position:"relative",right:"-"+h+"px",width:g+"px"}):b.css({position:"relative",left:"-"+h+"px",width:g+"px"})}})})}(jQuery),!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function b(b,d){var e,f=this;f.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(b),appendDots:a(b),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){S();var o=t(this);if("string"==typeof i)if("open"===i){var n,s=b?o.data("magnificPopup"):o[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?n=s.items[r]:(n=o,s.delegate&&(n=n.find(s.delegate)),n=n.eq(r)),e._openClick({mfpEl:n},o,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),b?o.data("magnificPopup",i):o[0].magnificPopup=i,e.addGroup(o,i);return o};var E,k,A,W="inline",L=function(){A&&(k.after(A.addClass(E)).detach(),A=null)};t.magnificPopup.registerModule(W,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(W),z(a+"."+W,function(){L()})},getInline:function(i,o){if(L(),i.src){var n=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(k||(E=n.hiddenClass,k=C(E),E="mfp-"+E),A=s.after(k).detach().removeClass(E)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),s=t("
");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(o,{},i),o}}});var O,P="ajax",B=function(){O&&t(document.body).removeClass(O)},D=function(){B(),e.req&&e.req.abort()};t.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(P),O=e.st.ajax.cursor,z(a+"."+P,D),z("BeforeChange."+P,D)},getAjax:function(i){O&&t(document.body).addClass(O),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(o,n,s){var r={data:o,xhr:s};_("ParseAjax",r),e.appendContent(t(r.data),P),i.finished=!0,B(),e._setFocus(),setTimeout(function(){e.wrap.addClass(g)},16),e.updateStatus("ready"),_("AjaxContentAdded")},error:function(){B(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var R,M=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,i);if(i.el)return i.el.attr(o)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o=".image";e.types.push("image"),z(p+o,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),z(a+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),x.off("resize"+m)}),z("Resize"+o,e.resizeImage),e.isLowIE&&z("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,R&&clearInterval(R),t.isCheckingImgSize=!1,_("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],n=function(s){R&&clearInterval(R),R=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(R),i++,void(3===i?n(10):40===i?n(50):100===i&&n(500)))},s)};n(1)},getImage:function(i,o){var n=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,_("ImageLoadComplete")):(n++,200>n?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=o.find(".mfp-img");if(l.length){var h=document.createElement("img");h.className="mfp-img",i.el&&i.el.find("img").length&&(h.alt=i.el.find("img").attr("alt")),i.img=t(h).on("load.mfploader",s).on("error.mfploader",r),h.src=i.src,l.is("img")&&(i.img=i.img.clone()),h=i.img[0],h.naturalWidth>0?i.hasSize=!0:h.width||(i.hasSize=!1)}return e._parseMarkup(o,{title:M(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(R&&clearInterval(R),i.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(i)),o)}}});var j,H=function(){return void 0===j&&(j=void 0!==document.createElement("p").style.MozTransform),j};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,o=".zoom";if(i.enabled&&e.supportsTransition){var n,s,r=i.duration,h=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return n["-webkit-"+s]=n["-moz-"+s]=n["-o-"+s]=n[s]=o,e.css(n),e},c=function(){e.content.css("visibility","visible")};z("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void c();s=h(t),s.css(e._getOffset()),e.wrap.append(s),n=setTimeout(function(){s.css(e._getOffset(!0)),n=setTimeout(function(){c(),setTimeout(function(){s.remove(),t=s=null,_("ZoomAnimationEnded")},16)},r)},16)}}),z(l+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=r,!t){if(t=e._getItemToZoom(),!t)return;s=h(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),z(a+o,function(){e._allowZoom()&&(c(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(i){var o;o=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var n=o.offset(),s=parseInt(o.css("padding-top"),10),r=parseInt(o.css("padding-bottom"),10);n.top-=t(window).scrollTop()-s;var a={width:o.width(),height:(b?o.innerHeight():o[0].offsetHeight)-r-s};return H()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var $="iframe",F="//about:blank",N=function(t){if(e.currTemplate[$]){var i=e.currTemplate[$].find("iframe");i.length&&(t||(i[0].src=F),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule($,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push($),z("BeforeChange",function(t,e,i){e!==i&&(e===$?N():i===$&&N(!0))}),z(a+"."+$,function(){N()})},getIframe:function(i,o){var n=i.src,s=e.st.iframe;t.each(s.patterns,function(){return n.indexOf(this.index)>-1?(this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1):void 0});var r={};return s.srcAction&&(r[s.srcAction]=n),e._parseMarkup(o,r,i),e.updateStatus("ready"),o}}});var q=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},Q=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery";return e.direction=!0,i&&i.enabled?(s+=" mfp-gallery",z(p+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),z("UpdateStatus"+n,function(t,i){i.text&&(i.text=Q(i.text,e.currItem.index,e.items.length))}),z(d+n,function(t,o,n,s){var r=e.items.length;n.counter=r>1?Q(i.tCounter,s.index,r):""}),z("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var o=i.arrowMarkup,n=e.arrowLeft=t(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),s=e.arrowRight=t(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y);n.click(function(){e.prev()}),s.click(function(){e.next()}),e.container.append(n.add(s))}}),z(u+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void z(a+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=q(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=q(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,o=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=q(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),_("LazyLoad",o),"image"===o.type&&(o.img=t('').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,_("LazyLoadError",o) }).attr("src",o.src)),o.preloaded=!0}}}});var U="retina";t.magnificPopup.registerModule(U,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(z("ImageHasSize."+U,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),z("ElementParse."+U,function(e,o){o.src=t.replaceSrc(o,i)}))}}}}),S()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){"use strict";var e="selectric",i="Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive Above Scroll Group GroupLabel",o=".sl",n={onChange:function(e){t(e).change()},maxHeight:300,keySearchTimeout:500,arrowButtonMarkup:'',disableOnMobile:!0,openOnHover:!1,hoverIntentTimeout:500,expandToItemText:!1,responsive:!1,preventWindowScroll:!0,inheritOriginalWidth:!1,allowWrap:!0,customClass:{prefix:e,camelCase:!1},optionsItemBuilder:"{text}",labelBuilder:"{text}"},s={add:function(t,e,i){this[t]||(this[t]={}),this[t][e]=i},remove:function(t,e){delete this[t][e]}},r={replaceDiacritics:function(t){for(var e="40-46 50-53 54-57 62-70 71-74 61 47 77".replace(/\d+/g,"\\3$&").split(" "),i=e.length;i--;)t=t.toLowerCase().replace(RegExp("["+e[i]+"]","g"),"aeiouncy".charAt(i));return t},format:function(t){var e=arguments;return(""+t).replace(/{(\d+|(\w+))}/g,function(t,i,o){return o&&e[1]?e[1][o]:e[i]})},nextEnabledItem:function(t,e){for(;t[e=(e+1)%t.length].disabled;);return e},previousEnabledItem:function(t,e){for(;t[e=(e>0?e:t.length)-1].disabled;);return e},toDash:function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},triggerCallback:function(i,o){var n=o.element,a=o.options["on"+i];t.isFunction(a)&&a.call(n,n,o),s[i]&&t.each(s[i],function(){this.call(n,n,o)}),t(n).trigger(e+"-"+r.toDash(i),o)}},a=t(document),l=t(window),h=function(s,h){function c(e){if(D.options=t.extend(!0,{},n,D.options,e),D.classes={},D.element=s,r.triggerCallback("BeforeInit",D),D.options.disableOnMobile&&H)return void(D.disableOnMobile=!0);b(!0);var o=D.options.customClass,a=i.split(" "),l=R.width();t.each(a,function(t,e){var i=o.prefix+e;D.classes[e.toLowerCase()]=o.camelCase?i:r.toDash(i)}),x=t("",{"class":D.classes.input,readonly:H}),z=t("
",{"class":D.classes.items,tabindex:-1}),C=t("
",{"class":D.classes.scroll}),_=t("
",{"class":o.prefix,html:D.options.arrowButtonMarkup}),T=t('

'),S=R.wrap("

").parent().append(_.prepend(T),z,x),P={open:m,close:v,destroy:b,refresh:p,init:c},R.on(P).wrap('
'),t.extend(D,P),B=D.options.labelBuilder,D.options.inheritOriginalWidth&&l>0&&S.width(l),d()}function d(){D.items=[];var e=R.children(),i="
    ",n=R.find("option"),s=n.index(n.filter(":selected")),a=0;k=E=~s?s:0,(O=e.length)&&(e.each(function(){function e(){var e=t(this),o=e.html(),n=e.prop("disabled"),s=D.options.optionsItemBuilder;D.items[a]={element:e,value:e.val(),text:o,slug:r.replaceDiacritics(o),disabled:n},i+=r.format('
  • {3}
  • ',a,t.trim([a==k?"selected":"",a==O-1?"last":"",n?"disabled":""].join(" ")),t.isFunction(s)?s(D.items[a],e,a):r.format(s,D.items[a])),a++}var o=t(this);if(o.is("optgroup")){var n=o.prop("disabled"),s=o.children();i+=r.format('
    • {3}
    • ',t.trim([D.classes.group,n?"disabled":"",o.prop("class")].join(" ")),D.classes.grouplabel,o.prop("label")),n&&s.prop("disabled",!0),s.each(e),i+="
    "}else e.call(o)}),z.append(C.html(i+"
")),T.html(t.isFunction(B)?B(D.items[k]):r.format(B,D.items[k]))),_.add(R).add(S).add(x).off(o),S.prop("class",[D.classes.wrapper,R.prop("class").replace(/\S+/g,D.options.customClass.prefix+"-$&"),D.options.responsive?D.classes.responsive:""].join(" ")),R.prop("disabled")?(S.addClass(D.classes.disabled),x.prop("disabled",!0)):(j=!0,S.removeClass(D.classes.disabled).on("mouseenter"+o+" mouseleave"+o,function(e){t(this).toggleClass(D.classes.hover),D.options.openOnHover&&(clearTimeout(D.closeTimer),"mouseleave"==e.type?D.closeTimer=setTimeout(v,D.options.hoverIntentTimeout):m())}),_.on("click"+o,function(t){M?v():m(t)}),x.prop({tabindex:$,disabled:!1}).on("keypress"+o,u).on("keydown"+o,function(t){u(t),clearTimeout(D.resetStr),D.resetStr=setTimeout(function(){x.val("")},D.options.keySearchTimeout);var e=t.keyCode||t.which;if(e>36&&41>e){if(!D.options.allowWrap&&(39>e&&0==E||e>38&&E+1==D.items.length))return;y(r[(39>e?"previous":"next")+"EnabledItem"](D.items,E))}}).on("focusin"+o,function(t){M||m(t)}).on("oninput"in x[0]?"input":"keyup",function(){x.val().length&&t.each(D.items,function(t,e){return RegExp("^"+x.val(),"i").test(e.slug)&&!e.disabled?(y(t),!1):void 0})}),R.prop("tabindex",!1),I=t("li",z.removeAttr("style")).on({mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(){return y(t(this).data("index"),!0),!1}}).filter("[data-index]")),r.triggerCallback("Init",D)}function p(){r.triggerCallback("Refresh",D),d()}function u(t){var e=t.keyCode||t.which;13==e&&t.preventDefault(),/^(9|13|27)$/.test(e)&&(t.stopPropagation(),y(E,!0))}function f(){var t=z.closest(":visible").children(":hidden").addClass(D.classes.tempshow),e=D.options.maxHeight,i=z.outerWidth(),o=_.outerWidth()-(i-z.width());!D.options.expandToItemText||o>i?L=o:(z.css("overflow","scroll"),S.width(9e4),L=z.width(),z.css("overflow",""),S.width("")),z.width(L).height()>e&&z.height(e),t.removeClass(D.classes.tempshow)}function m(i){r.triggerCallback("BeforeOpen",D),i&&(i.preventDefault(),i.stopPropagation()),j&&(f(),t("."+D.classes.hideselect,"."+D.classes.open).children()[e]("close"),M=!0,A=z.outerHeight(),W=z.height(),S.addClass(D.classes.open),x.val(""),i&&"focusin"!==i.type&&x.focus(),a.on("click"+o,v).on("scroll"+o,g),g(),D.options.preventWindowScroll&&a.on("mousewheel"+o+" DOMMouseScroll"+o,"."+D.classes.scroll,function(e){var i=e.originalEvent,o=t(this).scrollTop(),n=0;"detail"in i&&(n=-1*i.detail),"wheelDelta"in i&&(n=i.wheelDelta),"wheelDeltaY"in i&&(n=i.wheelDeltaY),"deltaY"in i&&(n=-1*i.deltaY),(o==this.scrollHeight-W&&0>n||0==o&&n>0)&&e.preventDefault()}),w(E),r.triggerCallback("Open",D))}function g(){var t=l.scrollTop(),e=l.height(),i=S.offset().top,o=S.outerHeight(),n=t+e>=i+o+A,s=i-A>t,r=!n&&s;S.toggleClass(D.classes.above,r)}function v(){if(r.triggerCallback("BeforeClose",D),k!=E){r.triggerCallback("BeforeChange",D);var e=D.items[E].text;R.prop("selectedIndex",k=E).data("value",e),T.html(t.isFunction(B)?B(D.items[E]):r.format(B,D.items[E])),r.triggerCallback("Change",D)}a.off(o),S.removeClass(D.classes.open),M=!1,r.triggerCallback("Close",D)}function y(t,e){void 0!=t&&(D.items[t].disabled||(I.removeClass("selected").eq(E=t).addClass("selected"),w(t),e&&v()))}function w(t){var e=I.eq(t).outerHeight(),i=I[t].offsetTop,o=C.scrollTop(),n=i+2*e;C.scrollTop(n>o+A?n-A:o>i-e?i-e:o)}function b(t){j&&(z.add(_).add(x).remove(),!t&&R.removeData(e).removeData("value"),R.prop("tabindex",$).off(o).off(P).unwrap().unwrap(),j=!1)}var x,z,C,_,T,S,I,E,k,A,W,L,O,P,B,D=this,R=t(s),M=!1,j=!1,H=/android|ip(hone|od|ad)/i.test(navigator.userAgent),$=R.prop("tabindex");c(h)};t.fn[e]=function(i){return this.each(function(){var o=t.data(this,e);o&&!o.disableOnMobile?""+i===i&&o[i]?o[i]():o.init(i):t.data(this,e,new h(this,i))})},t.fn[e].hooks=s});}catch(e){} try{ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){return function(){function b(a,b,c){return[parseFloat(a[0])*(n.test(a[0])?b/100:1),parseFloat(a[1])*(n.test(a[1])?c/100:1)]}function c(b,c){return parseInt(a.css(b,c),10)||0}function d(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var e,f,g=Math.max,h=Math.abs,i=Math.round,j=/left|center|right/,k=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,m=/^\w+/,n=/%$/,o=a.fn.position;a.position={scrollbarWidth:function(){if(void 0!==e)return e;var b,c,d=a("
"),f=d.children()[0];return a("body").append(d),b=f.offsetWidth,d.css("overflow","scroll"),c=f.offsetWidth,b===c&&(c=d[0].clientWidth),d.remove(),e=b-c},getScrollInfo:function(b){var c=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),d=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width0?"right":"center",vertical:f<0?"top":d>0?"bottom":"middle"};pg(h(d),h(f))?i.important="horizontal":i.important="vertical",e.using.call(this,a,i)}),k.offset(a.extend(B,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-f-e;b.collisionWidth>f?i>0&&j<=0?(c=a.left+i+b.collisionWidth-f-e,a.left+=i-c):j>0&&i<=0?a.left=e:i>j?a.left=e+f-b.collisionWidth:a.left=e:i>0?a.left+=i:j>0?a.left-=j:a.left=g(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,f=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-f-e;b.collisionHeight>f?i>0&&j<=0?(c=a.top+i+b.collisionHeight-f-e,a.top+=i-c):j>0&&i<=0?a.top=e:i>j?a.top=e+f-b.collisionHeight:a.top=e:i>0?a.top+=i:j>0?a.top-=j:a.top=g(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,g=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-g-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];k<0?(c=a.left+m+n+o+b.collisionWidth-g-f,(c<0||c0&&(d=a.left-b.collisionPosition.marginLeft+m+n+o-i,(d>0||h(d)0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,(c>0||h(c)10&&e<11,b.innerHTML="",c.removeChild(b)}()}(),a.ui.position});}catch(e){} try{(function(t,e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof exports==="object"){module.exports=e(require("jquery"))}else{e(t.jQuery)}})(this,function(t){t.transit={version:"0.9.11",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var e=document.createElement("div");var n={};function i(t){if(t in e.style)return t;var n=["Moz","Webkit","O","ms"];var i=t.charAt(0).toUpperCase()+t.substr(1);for(var r=0;r-1;n.transition=i("transition");n.transitionDelay=i("transitionDelay");n.transform=i("transform");n.transformOrigin=i("transformOrigin");n.filter=i("Filter");n.transform3d=r();var a={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var o=n.transitionEnd=a[n.transition]||null;for(var u in n){if(n.hasOwnProperty(u)&&typeof t.support[u]==="undefined"){t.support[u]=n[u]}}e=null;t.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",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)"};t.cssHooks["transit:transform"]={get:function(e){return t(e).data("transform")||new f},set:function(e,i){var r=i;if(!(r instanceof f)){r=new f(r)}if(n.transform==="WebkitTransform"&&!s){e.style[n.transform]=r.toString(true)}else{e.style[n.transform]=r.toString()}t(e).data("transform",r)}};t.cssHooks.transform={set:t.cssHooks["transit:transform"].set};t.cssHooks.filter={get:function(t){return t.style[n.filter]},set:function(t,e){t.style[n.filter]=e}};if(t.fn.jquery<"1.8"){t.cssHooks.transformOrigin={get:function(t){return t.style[n.transformOrigin]},set:function(t,e){t.style[n.transformOrigin]=e}};t.cssHooks.transition={get:function(t){return t.style[n.transition]},set:function(t,e){t.style[n.transition]=e}}}p("scale");p("scaleX");p("scaleY");p("translate");p("rotate");p("rotateX");p("rotateY");p("rotate3d");p("perspective");p("skewX");p("skewY");p("x",true);p("y",true);function f(t){if(typeof t==="string"){this.parse(t)}return this}f.prototype={setFromString:function(t,e){var n=typeof e==="string"?e.split(","):e.constructor===Array?e:[e];n.unshift(t);f.prototype.set.apply(this,n)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);if(this.setter[t]){this.setter[t].apply(this,e)}else{this[t]=e.join(",")}},get:function(t){if(this.getter[t]){return this.getter[t].apply(this)}else{return this[t]||0}},setter:{rotate:function(t){this.rotate=y(t,"deg")},rotateX:function(t){this.rotateX=y(t,"deg")},rotateY:function(t){this.rotateY=y(t,"deg")},scale:function(t,e){if(e===undefined){e=t}this.scale=t+","+e},skewX:function(t){this.skewX=y(t,"deg")},skewY:function(t){this.skewY=y(t,"deg")},perspective:function(t){this.perspective=y(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(t!==null&&t!==undefined){this._translateX=y(t,"px")}if(e!==null&&e!==undefined){this._translateY=y(e,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");if(t[0]){t[0]=parseFloat(t[0])}if(t[1]){t[1]=parseFloat(t[1])}return t[0]===t[1]?t[0]:t},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var e=0;e<=3;++e){if(t[e]){t[e]=parseFloat(t[e])}}if(t[3]){t[3]=y(t[3],"deg")}return t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(t){var e=[];for(var i in this){if(this.hasOwnProperty(i)){if(!n.transform3d&&(i==="rotateX"||i==="rotateY"||i==="perspective"||i==="transformOrigin")){continue}if(i[0]!=="_"){if(t&&i==="scale"){e.push(i+"3d("+this[i]+",1)")}else if(t&&i==="translate"){e.push(i+"3d("+this[i]+",0)")}else{e.push(i+"("+this[i]+")")}}}}return e.join(" ")}};function c(t,e,n){if(e===true){t.queue(n)}else if(e){t.queue(e,n)}else{t.each(function(){n.call(this)})}}function l(e){var i=[];t.each(e,function(e){e=t.camelCase(e);e=t.transit.propertyMap[e]||t.cssProps[e]||e;e=h(e);if(n[e])e=h(n[e]);if(t.inArray(e,i)===-1){i.push(e)}});return i}function d(e,n,i,r){var s=l(e);if(t.cssEase[i]){i=t.cssEase[i]}var a=""+b(n)+" "+i;if(parseInt(r,10)>0){a+=" "+b(r)}var o=[];t.each(s,function(t,e){o.push(e+" "+a)});return o.join(", ")}t.fn.transition=t.fn.transit=function(e,i,r,s){var a=this;var u=0;var f=true;var l=jQuery.extend(true,{},e);if(typeof i==="function"){s=i;i=undefined}if(typeof i==="object"){r=i.easing;u=i.delay||0;f=typeof i.queue==="undefined"?true:i.queue;s=i.complete;i=i.duration}if(typeof r==="function"){s=r;r=undefined}if(typeof l.easing!=="undefined"){r=l.easing;delete l.easing}if(typeof l.duration!=="undefined"){i=l.duration;delete l.duration}if(typeof l.complete!=="undefined"){s=l.complete;delete l.complete}if(typeof l.queue!=="undefined"){f=l.queue;delete l.queue}if(typeof l.delay!=="undefined"){u=l.delay;delete l.delay}if(typeof i==="undefined"){i=t.fx.speeds._default}if(typeof r==="undefined"){r=t.cssEase._default}i=b(i);var p=d(l,i,r,u);var h=t.transit.enabled&&n.transition;var y=h?parseInt(i,10)+parseInt(u,10):0;if(y===0){var g=function(t){a.css(l);if(s){s.apply(a)}if(t){t()}};c(a,f,g);return a}var m={};var v=function(i){var r=false;var u=function(){if(r){a.unbind(o,u)}if(y>0){a.each(function(){this.style[n.transition]=m[this]||null})}if(typeof s==="function"){s.apply(a)}if(typeof i==="function"){i()}};if(y>0&&o&&t.transit.useTransitionEnd){r=true;a.bind(o,u)}else{window.setTimeout(u,y)}a.each(function(){if(y>0){this.style[n.transition]=p}t(this).css(e)})};var z=function(t){this.offsetWidth;v(t)};c(a,f,z);return this};function p(e,i){if(!i){t.cssNumber[e]=true}t.transit.propertyMap[e]=n.transform;t.cssHooks[e]={get:function(n){var i=t(n).css("transit:transform");return i.get(e)},set:function(n,i){var r=t(n).css("transit:transform");r.setFromString(e,i);t(n).css({"transit:transform":r})}}}function h(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function y(t,e){if(typeof t==="string"&&!t.match(/^[\-0-9\.]+$/)){return t}else{return""+t+e}}function b(e){var n=e;if(typeof n==="string"&&!n.match(/^[\-0-9\.]+/)){n=t.fx.speeds[n]||t.fx.speeds._default}return y(n,"ms")}t.transit.getTransitionValue=d;return t});}catch(e){} try{(function(jQuery){if(!jQuery.isFunction(jQuery.fn.on)){jQuery.fn.on=function(types,sel,fn){return this.delegate(sel,types,fn);};jQuery.fn.off=function(types,sel,fn){return this.undelegate(sel,types,fn);};} if(!jQuery.support.transition) jQuery.fn.transition=jQuery.fn.animate;jQuery.fn.emodal=function(method){if(jQuery.fn.emodal.methods[method]){return jQuery.fn.emodal.methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return jQuery.fn.emodal.methods.init.apply(this,arguments);}else{jQuery.error('Method '+method+' does not exist on jQuery.fn.emodal');}};jQuery.fn.emodal.methods={init:function(options){return this.each(function(){var $this=jQuery(this);var settings=jQuery.extend(true,{},jQuery.fn.emodal.defaults,$this.data('emodal'),options);if(!$this.parent().is('body')) $this.appendTo('body');if(!jQuery('#'+settings.overlay.attr.id).length) jQuery('
').attr(settings.overlay.attr).appendTo('body');jQuery(window).on('resize',function(){if($this.hasClass('active')) jQuery.fn.emodal.utilities.throttle(setTimeout(function(){$this.emodal('reposition');},25),500,false);});$this.data('emodal',settings).on('emodalBeforeOpen.hide_modal',function(e){jQuery(this).css({visibility:"visible"}).hide().addClass(settings.container.active_class);if(!settings.meta.display.stackable){$this.emodal('close_all');}}).on('emodalAfterClose.close_overlay',function(e){$overlay=jQuery('#'+settings.overlay.attr.id);if($overlay.length&&$overlay.is(":visible")){$overlay.fadeOut(settings.close.close_speed);}}).on('emodalAfterClose.reset_videos',function(e){jQuery('iframe',$this).filter('[src*="youtube"],[src*="vimeo"]').each(function(){var src=jQuery(this).attr('src');jQuery(this).attr('src','').attr('src',src);});}).on('emodalBeforeOpen.setup_close',function(){$this.emodal('setup_close');}).on('emodalBeforeOpen.retheme',function(){$this.emodal('retheme');}).on('emodalBeforeOpen.reposition',function(){$this.emodal('reposition');}).trigger('emodalInit');return this;});},setup_close:function(){var $this=jQuery(this),settings=$this.data('emodal'),$overlay=jQuery('#'+settings.overlay.attr.id),$close=jQuery('.'+settings.close.attr.class,$this);$close.off('click.emodal').on("click.emodal",function(e){e.preventDefault();e.stopPropagation();$this.emodal('close');});if(settings.meta.close.esc_press) jQuery(window).off('keyup.emodal').on('keyup.emodal',function(e){if(e.keyCode==27) $this.emodal('close');});if(settings.meta.close.overlay_click) $overlay.off('click.emodal').on('click.emodal',function(e){e.preventDefault();e.stopPropagation();$this.emodal('close');});$this.on('emodalAfterClose',function(){jQuery(window).off('keyup.emodal');$overlay.off('click.emodal');$close.off('click.emodal');}).trigger('emodalSetupClose');},open:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');$this.trigger('emodalBeforeOpen').emodal('animate',settings.meta.display.animation.type,function(){$this.trigger('emodalAfterOpen');if(callback!==undefined)callback();});return this;},close:function(){return this.each(function(){var $this=jQuery(this),settings=$this.data('emodal');$this.trigger('emodalBeforeClose').removeClass('active').fadeOut(settings.close.close_speed,function(){$this.trigger('emodalAfterClose');});return this;});},close_all:function(){var settings=jQuery(this).data('emodal');jQuery('.'+settings.container.attr.class).removeClass('active').hide(0);return this;},reposition:function(callback){var $this=jQuery(this);$this.trigger('emodalBeforeReposition');var settings=$this.data('emodal');var location=settings.meta.display.location;var position=settings.meta.display.position;var reposition={my:"",at:""};if(location.indexOf('left')>=0)reposition={my:reposition.my+" left"+(position.left!==0?"+"+position.left:""),at:reposition.at+" left"};if(location.indexOf('right')>=0)reposition={my:reposition.my+" right"+(position.right!==0?"-"+position.right:""),at:reposition.at+" right"};if(location.indexOf('center')>=0){if(location=='center')reposition={my:"center",at:"center"};else reposition={my:reposition.my+" center",at:reposition.at+" center"};} if(location.indexOf('top')>=0)reposition={my:reposition.my+" top"+(position.top!==0?"+"+position.top:""),at:reposition.at+" top"};if(location.indexOf('bottom')>=0)reposition={my:reposition.my+" bottom"+(position.bottom!==0?"-"+position.bottom:""),at:reposition.at+" bottom"};reposition.my=jQuery.trim(reposition.my);reposition.at=jQuery.trim(reposition.at);reposition.of=window;reposition.collision='fit';reposition.using=typeof(callback)=="function"?callback:jQuery.fn.emodal.callbacks.reposition_using;var opacity=false;if($this.is(':hidden')){opacity=$this.css("opacity");$this.css({opacity:0}).show();} if(position.fixed) $this.addClass('fixed');else $this.removeClass('fixed');if(settings.meta.display.size=='custom'){$this.css({width:settings.meta.display.custom_width+settings.meta.display.custom_width_unit,height:settings.meta.display.custom_height_auto?'auto':settings.meta.display.custom_height+settings.meta.display.custom_height_unit});} $this.addClass('custom-position').position(reposition).trigger('emodalAfterReposition');if(opacity){$this.css({opacity:opacity}).hide();} return this;},retheme:function(theme){var $this=jQuery(this);$this.trigger('emodalBeforeRetheme');var settings=$this.data('emodal'),$overlay=jQuery('#'+settings.overlay.attr.id),$container=$this,$title=jQuery('> .'+settings.title.attr.class,$container),$content=jQuery('> .'+settings.content.attr.class,$container),$close=jQuery('> .'+settings.close.attr.class,$container);if(theme===undefined){theme=jQuery.fn.emodal.themes[settings.theme_id];if(theme===undefined){theme=jQuery.fn.emodal.themes[1];}} $overlay.removeAttr('style').css({backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.overlay.background.color,theme.overlay.background.opacity)});var container_inset=theme.container.boxshadow.inset=='yes'?'inset ':'';$container.css({padding:theme.container.padding+'px',backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.container.background.color,theme.container.background.opacity),borderStyle:theme.container.border.style,borderColor:theme.container.border.color,borderWidth:theme.container.border.width+'px',borderRadius:theme.container.border.radius+'px',boxShadow:container_inset+theme.container.boxshadow.horizontal+'px '+theme.container.boxshadow.vertical+'px '+theme.container.boxshadow.blur+'px '+theme.container.boxshadow.spread+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.container.boxshadow.color,theme.container.boxshadow.opacity)});$title.css({color:theme.title.font.color,fontSize:theme.title.font.size+'px',fontFamily:theme.title.font.family,textAlign:theme.title.text.align,textShadow:theme.title.textshadow.horizontal+'px '+theme.title.textshadow.vertical+'px '+theme.title.textshadow.blur+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.title.textshadow.color,theme.title.textshadow.opacity)});$content.css({color:theme.content.font.color,fontFamily:theme.content.font.family});jQuery('p, label',$content).css({color:theme.content.font.color,fontFamily:theme.content.font.family});var close_inset=theme.close.boxshadow.inset=='yes'?'inset ':'';$close.html(theme.close.text).css({padding:theme.close.padding+'px',backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.close.background.color,theme.close.background.opacity),color:theme.close.font.color,fontSize:theme.close.font.size+'px',fontFamily:theme.close.font.family,borderStyle:theme.close.border.style,borderColor:theme.close.border.color,borderWidth:theme.close.border.width+'px',borderRadius:theme.close.border.radius+'px',boxShadow:close_inset+theme.close.boxshadow.horizontal+'px '+theme.close.boxshadow.vertical+'px '+theme.close.boxshadow.blur+'px '+theme.close.boxshadow.spread+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.close.boxshadow.color,theme.close.boxshadow.opacity),textShadow:theme.close.textshadow.horizontal+'px '+theme.close.textshadow.vertical+'px '+theme.close.textshadow.blur+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.close.textshadow.color,theme.close.textshadow.opacity)});switch(theme.close.location){case"topleft":$close.css({top:theme.close.position.top+'px',left:theme.close.position.left+'px'});break;case"topright":$close.css({top:theme.close.position.top+'px',right:theme.close.position.right+'px'});break;case"bottomleft":$close.css({bottom:theme.close.position.bottom+'px',left:theme.close.position.left+'px'});break;case"bottomright":$close.css({bottom:theme.close.position.bottom+'px',right:theme.close.position.right+'px'});break;} $this.trigger('emodalAfterRetheme',[theme]);return this;},animate_overlay:function(style,duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');if(settings.meta.display.overlay_disabled){callback();}else{if(jQuery.fn.emodal.overlay_animations[style]) return jQuery.fn.emodal.overlay_animations[style].apply(this,Array.prototype.slice.call(arguments,1));else jQuery.error('Animation style '+jQuery.fn.emodal.overlay_animations+' does not exist.');} return this;},animate:function(style,callback){if(jQuery.fn.emodal.animations[style]) return jQuery.fn.emodal.animations[style].apply(this,Array.prototype.slice.call(arguments,1));else jQuery.error('Animation style '+jQuery.fn.emodal.animations+' does not exist.');return this;}};jQuery.fn.emodal.callbacks={reposition_using:function(position){jQuery(this).css(position);}};jQuery.fn.emodal.utilities={convert_hex:function(hex,opacity){hex=hex.replace('#','');r=parseInt(hex.substring(0,2),16);g=parseInt(hex.substring(2,4),16);b=parseInt(hex.substring(4,6),16);result='rgba('+r+','+g+','+b+','+opacity/100+')';return result;},debounce:function(callback,threshold){var timeout;return function(){var context=this,params=arguments;window.clearTimeout(timeout);timeout=window.setTimeout(function(){callback.apply(context,params);},threshold);};},throttle:function(callback,threshold){var suppress=false;var clear=function(){suppress=false;};return function(){if(!suppress){callback.apply(this,arguments);window.setTimeout(clear,threshold);suppress=true;};}}};jQuery.fn.emodal.utilies=jQuery.fn.emodal.utilities;jQuery.fn.emodal.defaults={meta:{display:{stackable:0,overlay_disabled:0,size:'medium',custom_width:'',custom_width_unit:'%',custom_height:'',custom_height_unit:'em',custom_height_auto:1,location:'center top',position:{top:100,left:0,bottom:0,right:0,fixed:0},animation:{type:'fade',speed:350,origin:'center top'}},close:{overlay_click:0,esc_press:1}},container:{active_class:'active',attr:{class:"emodal"}},title:{attr:{class:"emodal-title"}},content:{attr:{class:"emodal-content"}},close:{close_speed:0,attr:{class:"emodal-close"}},overlay:{attr:{id:"emodal-overlay",class:"emodal-overlay"}}};jQuery.fn.emodal.themes=emodal_themes;jQuery.fn.emodal.overlay_animations={none:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).show(duration,callback);},fade:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).fadeIn(duration,callback);},slide:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).slideDown(duration,callback);}};jQuery.fn.emodal.animations={none:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');$this.emodal('animate_overlay','none',0,function(){$this.show();if(callback!==undefined)callback();});return this;},slide:function(callback){var $this=jQuery(this).show(0).css({opacity:0});var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start).css({opacity:1});$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.opacity=1;$this.transition(position,speed*0.75,function(){jQuery('html').css('overflow-x','inherit');if(callback!==undefined)callback();});});});return this;},fade:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed/2;$this.emodal('animate_overlay','fade',speed,function(){$this.fadeIn(speed,function(){if(callback!==undefined)callback();});});return this;},fadeAndSlide:function(callback){var $this=jQuery(this).show(0).css({opacity:0});var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start);$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.opacity=1;$this.transition(position,speed*0.75,function(){jQuery('html').css('overflow-x','inherit');if(callback!==undefined)callback();});});});return this;},grow:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;$this.css({transformOrigin:origin,opacity:0}).show();$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.scale=1;position.duration=speed*0.75;$this.css({scale:0,opacity:1}).transition(position);if(callback!==undefined)callback();});});return this;},growAndSlide:function(callback){var $this=jQuery(this).css({opacity:0}).show();var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start).css({opacity:origin=='center center'?0:1,transformOrigin:origin});$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.scale=1;position.opacity=1;position.duration=speed*0.75;$this.css({scale:0}).transition(position,function(){jQuery('html').css('overflow-x','inherit');});if(callback!==undefined)callback();});});return this;}};jQuery('.emodal').css({visibility:"visible"}).hide();jQuery(document).ready(function(){jQuery('.emodal').emodal().each(function(){var $this=jQuery(this);jQuery(document).on('click','.'+$this.attr('id'),function(e){e.preventDefault();e.stopPropagation();$this.emodal('open');});jQuery('.'+$this.attr('id')).css('cursor','pointer');});});}(jQuery));}catch(e){} try{ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i').val(m.extraData[d].value).appendTo(w)[0]:e('').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(y){i="parsererror",x.error=r=y||i}}catch(y){a("error caught: ",y),i="error",x.error=r=y||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,y,b,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;l'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand ("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),d&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},d=m.global,d&&0===e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;y=w.clk,y&&(b=y.name,b&&!y.disabled&&(m.extraData=m.extraData||{},m.extraData[b]=y.value,"image"==y.type&&(m.extraData[b+".x"]=w.clk_x,m.extraData[b+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,c,l,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),c=t.url||this.attr2("action"),l="string"==typeof c?e.trim(c):"",l=l||window.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var p,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,p=e.param(t.data,d)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,d);p&&(g=g?g+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(y,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var b=t.error;t.error=function(e,r,a){var n=t.context||this;b.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;Ec;c++)if(d=u[c],f=d.name,f&&!d.disabled)if(t&&o.clk&&"image"==d.type)o.clk==d&&(a.push({name:f,value:e(d).val(),type:d.type}),a.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(m=e.fieldValue(d,!0),m&&m.constructor==Array)for(r&&r.push(d),l=0,h=m.length;h>l;l++)a.push({name:f,value:m[l]});else if(n.fileapi&&"file"==d.type){r&&r.push(d);var v=d.files;if(v.length)for(l=0;li;i++)r.push({name:a,value:n[i]});else null!==n&&"undefined"!=typeof n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,c="select-one"==n,l=c?o+1:u.length,f=c?o:0;l>f;f++){var m=u[f];if(m.selected){var d=m.value;if(d||(d=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),c)return d;s.push(d)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1});}catch(e){} try{(function($){'use strict';if(typeof _wpcf7==='undefined'||_wpcf7===null){return;} _wpcf7=$.extend({cached:0,inputs:[]},_wpcf7);$.fn.wpcf7InitForm=function(){this.ajaxForm({beforeSubmit:function(arr,$form,options){$form.wpcf7ClearResponseOutput();$form.find('[aria-invalid]').attr('aria-invalid','false');$form.find('.ajax-loader').addClass('is-active');return true;},beforeSerialize:function($form,options){$form.find('[placeholder].placeheld').each(function(i,n){$(n).val('');});return true;},data:{'_wpcf7_is_ajax_call':1},dataType:'json',success:$.wpcf7AjaxSuccess,error:function(xhr,status,error,$form){var e=$('
').text(error.message);$form.after(e);}});if(_wpcf7.cached){this.wpcf7OnloadRefill();} this.wpcf7ToggleSubmit();this.find('.wpcf7-submit').wpcf7AjaxLoader();this.find('.wpcf7-acceptance').click(function(){$(this).closest('form').wpcf7ToggleSubmit();});this.find('.wpcf7-exclusive-checkbox').wpcf7ExclusiveCheckbox();this.find('.wpcf7-list-item.has-free-text').wpcf7ToggleCheckboxFreetext();this.find('[placeholder]').wpcf7Placeholder();if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.date){this.find('input.wpcf7-date[type="date"]').each(function(){$(this).datepicker({dateFormat:'yy-mm-dd',minDate:new Date($(this).attr('min')),maxDate:new Date($(this).attr('max'))});});} if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.number){this.find('input.wpcf7-number[type="number"]').each(function(){$(this).spinner({min:$(this).attr('min'),max:$(this).attr('max'),step:$(this).attr('step')});});} this.find('.wpcf7-character-count').wpcf7CharacterCount();this.find('.wpcf7-validates-as-url').change(function(){$(this).wpcf7NormalizeUrl();});this.find('.wpcf7-recaptcha').wpcf7Recaptcha();};$.wpcf7AjaxSuccess=function(data,status,xhr,$form){if(!$.isPlainObject(data)||$.isEmptyObject(data)){return;} _wpcf7.inputs=$form.serializeArray();var $responseOutput=$form.find('div.wpcf7-response-output');$form.wpcf7ClearResponseOutput();$form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid');$form.removeClass('invalid spam sent failed');if(data.captcha){$form.wpcf7RefillCaptcha(data.captcha);} if(data.quiz){$form.wpcf7RefillQuiz(data.quiz);} if(data.invalids){$.each(data.invalids,function(i,n){$form.find(n.into).wpcf7NotValidTip(n.message);$form.find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid');$form.find(n.into).find('[aria-invalid]').attr('aria-invalid','true');});$responseOutput.addClass('wpcf7-validation-errors');$form.addClass('invalid');$(data.into).wpcf7TriggerEvent('invalid');}else if(1==data.spam){$form.find('[name="g-recaptcha-response"]').each(function(){if(''==$(this).val()){var $recaptcha=$(this).closest('.wpcf7-form-control-wrap');$recaptcha.wpcf7NotValidTip(_wpcf7.recaptcha.messages.empty);}});$responseOutput.addClass('wpcf7-spam-blocked');$form.addClass('spam');$(data.into).wpcf7TriggerEvent('spam');}else if(1==data.mailSent){$responseOutput.addClass('wpcf7-mail-sent-ok');$form.addClass('sent');if(data.onSentOk){$.each(data.onSentOk,function(i,n){eval(n)});} $(data.into).wpcf7TriggerEvent('mailsent');}else{$responseOutput.addClass('wpcf7-mail-sent-ng');$form.addClass('failed');$(data.into).wpcf7TriggerEvent('mailfailed');} if(data.onSubmit){$.each(data.onSubmit,function(i,n){eval(n)});} $(data.into).wpcf7TriggerEvent('submit');if(1==data.mailSent){$form.resetForm();} $form.find('[placeholder].placeheld').each(function(i,n){$(n).val($(n).attr('placeholder'));});$responseOutput.append(data.message).slideDown('fast');$responseOutput.attr('role','alert');$.wpcf7UpdateScreenReaderResponse($form,data);};$.fn.wpcf7TriggerEvent=function(name){return this.each(function(){var elmId=this.id;var inputs=_wpcf7.inputs;var event=new CustomEvent('wpcf7'+name,{bubbles:true,detail:{id:elmId,inputs:inputs}});this.dispatchEvent(event);$(this).trigger('wpcf7:'+name);$(this).trigger(name+'.wpcf7');});};$.fn.wpcf7ExclusiveCheckbox=function(){return this.find('input:checkbox').click(function(){var name=$(this).attr('name');$(this).closest('form').find('input:checkbox[name="'+name+'"]').not(this).prop('checked',false);});};$.fn.wpcf7Placeholder=function(){if(_wpcf7.supportHtml5.placeholder){return this;} return this.each(function(){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');$(this).focus(function(){if($(this).hasClass('placeheld')){$(this).val('').removeClass('placeheld');}});$(this).blur(function(){if(''===$(this).val()){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');}});});};$.fn.wpcf7AjaxLoader=function(){return this.each(function(){$(this).after('');});};$.fn.wpcf7ToggleSubmit=function(){return this.each(function(){var form=$(this);if(this.tagName.toLowerCase()!='form'){form=$(this).find('form').first();} if(form.hasClass('wpcf7-acceptance-as-validation')){return;} var submit=form.find('input:submit');if(!submit.length){return;} var acceptances=form.find('input:checkbox.wpcf7-acceptance');if(!acceptances.length){return;} submit.removeAttr('disabled');acceptances.each(function(i,n){n=$(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked')){submit.attr('disabled','disabled');}});});};$.fn.wpcf7ToggleCheckboxFreetext=function(){return this.each(function(){var $wrap=$(this).closest('.wpcf7-form-control');if($(this).find(':checkbox, :radio').is(':checked')){$(this).find(':input.wpcf7-free-text').prop('disabled',false);}else{$(this).find(':input.wpcf7-free-text').prop('disabled',true);} $wrap.find(':checkbox, :radio').change(function(){var $cb=$('.has-free-text',$wrap).find(':checkbox, :radio');var $freetext=$(':input.wpcf7-free-text',$wrap);if($cb.is(':checked')){$freetext.prop('disabled',false).focus();}else{$freetext.prop('disabled',true);}});});};$.fn.wpcf7CharacterCount=function(){return this.each(function(){var $count=$(this);var name=$count.attr('data-target-name');var down=$count.hasClass('down');var starting=parseInt($count.attr('data-starting-value'),10);var maximum=parseInt($count.attr('data-maximum-value'),10);var minimum=parseInt($count.attr('data-minimum-value'),10);var updateCount=function($target){var length=$target.val().length;var count=down?starting-length:length;$count.attr('data-current-value',count);$count.text(count);if(maximum&&maximum'+message+'');if($into.is('.use-floating-validation-tip *')){$('.wpcf7-not-valid-tip',$into).mouseover(function(){$(this).wpcf7FadeOut();});$(':input',$into).focus(function(){$('.wpcf7-not-valid-tip',$into).not(':hidden').wpcf7FadeOut();});}});};$.fn.wpcf7FadeOut=function(){return this.each(function(){$(this).animate({opacity:0},'fast',function(){$(this).css({'z-index':-100});});});};$.fn.wpcf7OnloadRefill=function(){return this.each(function(){var url=$(this).attr('action');if(0');$.each(data.invalids,function(i,n){if(n.idref){var $li=$('
  • ').append($('').attr('href','#'+n.idref).append(n.message));}else{var $li=$('
  • ').append(n.message);} $invalids.append($li);});$response.append($invalids);} $response.attr('role','alert').focus();}};$.wpcf7SupportHtml5=function(){var features={};var input=document.createElement('input');features.placeholder='placeholder'in input;var inputTypes=['email','url','tel','number','range','date'];$.each(inputTypes,function(index,value){input.setAttribute('type',value);features[value]=input.type!=='text';});return features;};$(function(){_wpcf7.supportHtml5=$.wpcf7SupportHtml5();$('div.wpcf7 > form').wpcf7InitForm();});})(jQuery);(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;} CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent;})();}catch(e){} try{!function(a){function b(){var a=location.href;return hashtag=a.indexOf("#prettyPhoto")!==-1&&decodeURI(a.substring(a.indexOf("#prettyPhoto")+1,a.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function c(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function d(){location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto")}function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null==e?"":e[1]}a.prettyPhoto={version:"3.1.6"},a.fn.prettyPhoto=function(f){function g(){a(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(A/2-r.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:r.contentHeight,width:r.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:B/2-r.containerWidth/2<0?0:B/2-r.containerWidth/2,width:r.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(r.height).width(r.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==l(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(r.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide()),!settings.autoplay_slideshow||x||s||a.prettyPhoto.startSlideshow(),settings.changepicturecallback(),s=!0}),p(),f.ajaxcallback()}function h(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show(),b()})}function i(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function j(a,b){if(resized=!1,k(a,b),imageWidth=a,imageHeight=b,(w>B||v>A)&&doresize&&settings.allow_resize&&!z){for(resized=!0,fitting=!1;!fitting;)w>B?(imageWidth=B-200,imageHeight=b/a*imageWidth):v>A?(imageHeight=A-200,imageWidth=a/b*imageHeight):fitting=!0,v=imageHeight,w=imageWidth;(w>B||v>A)&&j(w,v),k(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(v),containerWidth:Math.floor(w)+2*settings.horizontal_padding,contentHeight:Math.floor(t),contentWidth:Math.floor(u),resized:resized}}function k(b,c){b=parseFloat(b),c=parseFloat(c),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(b),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(b),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),t=c+detailsHeight,u=b,v=t+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),w=b}function l(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0,1)?"inline":"image"}function m(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=n(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=A/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>A)return;$pp_pic_holder.css({top:projectedTop,left:B/2+scroll_pos.scrollLeft-contentwidth/2})}}function n(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function o(){A=a(window).height(),B=a(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(B)}function p(){isSet&&settings.overlay_gallery&&"image"==l(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((r.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(b){a(this).find("a").click(function(){return a.prettyPhoto.changePage(b),a.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()}),a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),!1}),settings.allow_expand&&a("a.pp_expand").bind("click",function(b){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(a(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),h(function(){a.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),!1}),m()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
    \t\t\t\t\t\t
     
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\tExpand \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\tnext \t\t\t\t\t\t\t\t\t\t\tprevious \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t\tPrevious \t\t\t\t\t\t\t\t\t\t\t\t

    0/0

    \t\t\t\t\t\t\t\t\t\t\t\tNext \t\t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t\t\t

    \t\t\t\t\t\t\t\t\t\t\t
    {pp_social}
    \t\t\t\t\t\t\t\t\t\t\tClose \t\t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t\t
    \t\t\t\t\t\t
    \t\t\t\t\t
    \t\t\t\t\t
    ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
    {content}
    ',custom_markup:"",social_tools:''},f);var r,s,t,u,v,w,x,y=this,z=!1,A=a(window).height(),B=a(window).width();return doresize=!0,scroll_pos=n(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){m(),o()}),f.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous"),b.preventDefault();break;case 39:a.prettyPhoto.changePage("next"),b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=f,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href")),pp_titles=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(a(this).attr("href"),pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),q(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){m()}),a.prettyPhoto.open(),!1},a.prettyPhoto.open=function(b){return"undefined"==typeof settings&&(settings=f,pp_images=a.makeArray(arguments[0]),pp_titles=arguments[1]?a.makeArray(arguments[1]):a.makeArray(""),pp_descriptions=arguments[2]?a.makeArray(arguments[2]):a.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,q(b.target)),settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),i(a(pp_images).length),a(".pp_loaderIcon").show(),settings.deeplinking&&c(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).length),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString(),z=!1,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),z=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),z=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=!1,l(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,e("rel",pp_images[set_position])?movie+="?rel="+e("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":r=j(movie_width,movie_height),movie_id=pp_images[set_position];var b=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,c=movie_id.match(b);movie="//player.vimeo.com/video/"+c[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=r.width+"/embed/?moog_width="+r.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,r.height).replace(/{path}/g,movie);break;case"quicktime":r=j(movie_width,movie_height),r.height+=15,r.contentHeight+=15,r.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":r=j(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":r=j(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,r=j(movie_width,movie_height),doresize=!0,skipInjection=!0,a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g()});break;case"custom":r=j(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
    ').css({width:settings.default_width}).wrapInner('
    ').appendTo(a("body")).show(),doresize=!1,r=j(a(myClone).width(),a(myClone).height()),doresize=!0,a(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g())}),!1},a.prettyPhoto.changePage=function(b){currentGalleryPage=0,"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).length-1)):"next"==b?(set_position++,set_position>a(pp_images).length-1&&(set_position=0)):set_position=b,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),h(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(a){"next"==a?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==a?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a,slide_speed="next"==a||"previous"==a?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof x?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),!1}),x=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1}),clearInterval(x),x=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),a(this).remove(),a(window).unbind("scroll.prettyphoto"),d(),settings.callback(),doresize=!0,s=!1,delete settings}))},!pp_alreadyInitialized&&b()&&(pp_alreadyInitialized=!0,hashIndex=b(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;}catch(e){} try{!function(a){a(function(){a("a.zoom").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1}),a("a[data-rel^='prettyPhoto']").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})})}(jQuery);}catch(e){} try{jQuery(function(a){return"undefined"!=typeof wc_single_product_params&&(a("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){a(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var b=window.location.hash,c=window.location.href,d=a(this).find(".wc-tabs, ul.tabs").first();b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b?d.find("li.reviews_tab a").click():c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0?d.find("li.reviews_tab a").click():d.find("li:first a").click()}).on("click",".wc-tabs li a, ul.tabs li a",function(b){b.preventDefault();var c=a(this),d=c.closest(".wc-tabs-wrapper, .woocommerce-tabs"),e=d.find(".wc-tabs, ul.tabs");e.find("li").removeClass("active"),d.find(".wc-tab, .panel:not(.panel .panel)").hide(),c.closest("li").addClass("active"),d.find(c.attr("href")).show()}).on("click","a.woocommerce-review-link",function(){return a(".reviews_tab a").click(),!0}).on("init","#rating",function(){a("#rating").hide().before('

    12345

    ')}).on("click","#respond p.stars a",function(){var b=a(this),c=a(this).closest("#respond").find("#rating"),d=a(this).closest(".stars");return c.val(b.text()),b.siblings("a").removeClass("active"),b.addClass("active"),d.addClass("selected"),!1}).on("click","#respond #submit",function(){var b=a(this).closest("#respond").find("#rating"),c=b.val();if(b.length>0&&!c&&"yes"===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),void a(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"))});}catch(e){} try{ !function(){"use strict";function a(a){function b(b,d){var f,p,q=b==window,r=d&&void 0!==d.message?d.message:void 0;if(d=a.extend({},a.blockUI.defaults,d||{}),!d.ignoreIfBlocked||!a(b).data("blockUI.isBlocked")){if(d.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,d.overlayCSS||{}),f=a.extend({},a.blockUI.defaults.css,d.css||{}),d.onOverlayClick&&(d.overlayCSS.cursor="pointer"),p=a.extend({},a.blockUI.defaults.themedCSS,d.themedCSS||{}),r=void 0===r?d.message:r,q&&n&&c(window,{fadeOut:0}),r&&"string"!=typeof r&&(r.parentNode||r.jquery)){var s=r.jquery?r[0]:r,t={};a(b).data("blockUI.history",t),t.el=s,t.parent=s.parentNode,t.display=s.style.display,t.position=s.style.position,t.parent&&t.parent.removeChild(s)}a(b).data("blockUI.onUnblock",d.onUnblock);var u,v,w,x,y=d.baseZ;u=a(k||d.forceIframe?'':''),v=a(d.theme?'':''),d.theme&&q?(x='"):d.theme?(x='"):x=q?'':'',w=a(x),r&&(d.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(f)),d.theme||v.css(d.overlayCSS),v.css("position",q?"fixed":"absolute"),(k||d.forceIframe)&&u.css("opacity",0);var z=[u,v,w],A=a(q?"body":b);a.each(z,function(){this.appendTo(A)}),d.theme&&d.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var B=m&&(!a.support.boxModel||a("object,embed",q?null:b).length>0);if(l||B){if(q&&d.allowBodyStretch&&a.support.boxModel&&a("html,body").css("height","100%"),(l||!a.support.boxModel)&&!q)var C=i(b,"borderTopWidth"),D=i(b,"borderLeftWidth"),E=C?"(0 - "+C+")":0,F=D?"(0 - "+D+")":0;a.each(z,function(a,b){var c=b[0].style;if(c.position="absolute",a<2)q?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+d.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"'),q?c.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"'),F&&c.setExpression("left",F),E&&c.setExpression("top",E);else if(d.centerY)q&&c.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),c.marginTop=0;else if(!d.centerY&&q){var e=d.css&&d.css.top?parseInt(d.css.top,10):0,f="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+e+') + "px"';c.setExpression("top",f)}})}if(r&&(d.theme?w.find(".ui-widget-content").append(r):w.append(r),(r.jquery||r.nodeType)&&a(r).show()),(k||d.forceIframe)&&d.showOverlay&&u.show(),d.fadeIn){var G=d.onBlock?d.onBlock:j,H=d.showOverlay&&!r?G:j,I=r?G:j;d.showOverlay&&v._fadeIn(d.fadeIn,H),r&&w._fadeIn(d.fadeIn,I)}else d.showOverlay&&v.show(),r&&w.show(),d.onBlock&&d.onBlock.bind(w)();if(e(1,b,d),q?(n=w[0],o=a(d.focusableElements,n),d.focusInput&&setTimeout(g,20)):h(w[0],d.centerX,d.centerY),d.timeout){var J=setTimeout(function(){q?a.unblockUI(d):a(b).unblock(d)},d.timeout);a(b).data("blockUI.timeout",J)}}}function c(b,c){var f,g=b==window,h=a(b),i=h.data("blockUI.history"),j=h.data("blockUI.timeout");j&&(clearTimeout(j),h.removeData("blockUI.timeout")),c=a.extend({},a.blockUI.defaults,c||{}),e(0,b,c),null===c.onUnblock&&(c.onUnblock=h.data("blockUI.onUnblock"),h.removeData("blockUI.onUnblock"));var k;k=g?a(document.body).children().filter(".blockUI").add("body > .blockUI"):h.find(">.blockUI"),c.cursorReset&&(k.length>1&&(k[1].style.cursor=c.cursorReset),k.length>2&&(k[2].style.cursor=c.cursorReset)),g&&(n=o=null),c.fadeOut?(f=k.length,k.stop().fadeOut(c.fadeOut,function(){0===--f&&d(k,i,c,b)})):d(k,i,c,b)}function d(b,c,d,e){var f=a(e);if(!f.data("blockUI.isBlocked")){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)}),c&&c.el&&(c.el.style.display=c.display,c.el.style.position=c.position,c.el.style.cursor="default",c.parent&&c.parent.appendChild(c.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),"function"==typeof d.onUnblock&&d.onUnblock(e,d);var g=a(document.body),h=g.width(),i=g[0].style.width;g.width(h-1).width(h),g[0].style.width=i}}function e(b,c,d){var e=c==window,g=a(c);if((b||(!e||n)&&(e||g.data("blockUI.isBlocked")))&&(g.data("blockUI.isBlocked",b),e&&d.bindEvents&&(!b||d.showOverlay))){var h="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";b?a(document).bind(h,d,f):a(document).unbind(h,f)}}function f(b){if("keydown"===b.type&&b.keyCode&&9==b.keyCode&&n&&b.data.constrainTabKey){var c=o,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e)return setTimeout(function(){g(e)},10),!1}var f=b.data,h=a(b.target);return h.hasClass("blockOverlay")&&f.onOverlayClick&&f.onOverlayClick(b),h.parents("div."+f.blockMsgClass).length>0||0===h.parents().children().filter("div.blockUI").length}function g(a){if(o){var b=o[a===!0?o.length-1:0];b&&b.focus()}}function h(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-i(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-i(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0"),c&&(e.top=g>0?g+"px":"0")}function i(b,c){return parseInt(a.css(b,c),10)||0}a.fn._fadeIn=a.fn.fadeIn;var j=a.noop||function(){},k=/MSIE/.test(navigator.userAgent),l=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),m=(document.documentMode||0,a.isFunction(document.createElement("div").style.setExpression));a.blockUI=function(a){b(window,a)},a.unblockUI=function(a){c(window,a)},a.growlUI=function(b,c,d,e){var f=a('
    ');b&&f.append("

    "+b+"

    "),c&&f.append("

    "+c+"

    "),void 0===d&&(d=3e3);var g=function(b){b=b||{},a.blockUI({message:f,fadeIn:"undefined"!=typeof b.fadeIn?b.fadeIn:700,fadeOut:"undefined"!=typeof b.fadeOut?b.fadeOut:1e3,timeout:"undefined"!=typeof b.timeout?b.timeout:d,centerY:!1,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};g();f.css("opacity");f.mouseover(function(){g({fadeIn:0,timeout:3e4});var b=a(".blockMsg");b.stop(),b.fadeTo(300,1)}).mouseout(function(){a(".blockMsg").fadeOut(1e3)})},a.fn.block=function(c){if(this[0]===window)return a.blockUI(c),this;var d=a.extend({},a.blockUI.defaults,c||{});return this.each(function(){var b=a(this);d.ignoreIfBlocked&&b.data("blockUI.isBlocked")||b.unblock({fadeOut:0})}),this.each(function(){"static"==a.css(this,"position")&&(this.style.position="relative",a(this).data("blockUI.static",!0)),this.style.zoom=1,b(this,c)})},a.fn.unblock=function(b){return this[0]===window?(a.unblockUI(b),this):this.each(function(){c(this,b)})},a.blockUI.version=2.7,a.blockUI.defaults={message:"

    Please wait...

    ",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var n=null,o=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}();}catch(e){} try{jQuery(function(a){a(".woocommerce-ordering").on("change","select.orderby",function(){a(this).closest("form").submit()}),a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseFloat(a(this).attr("min"));b>=0&&parseFloat(a(this).val())0?a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),a(document.body).bind("adding_to_cart",function(){a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()})});}catch(e){} try{(function(d){"function"===typeof define&&define.amd?define(["jquery"],d):d(jQuery)})(function(d){function g(a,b){var c=function(){},c={autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:g.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0, preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"===typeof a?d.parseJSON(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results"};this.element=a;this.el=d(a);this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.element.value;this.intervalId=0;this.cachedResponse={};this.onChange=this.onChangeInterval=null;this.isLocal=!1;this.suggestionsContainer=null;this.options= d.extend({},c,b);this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.initialize();this.setOptions(b)}var h=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");b.className=a;b.style.position="absolute";b.style.display="none";return b}}}();g.utils=h;d.YithAutocomplete=g;g.formatResult=function(a, b){var c="("+h.escapeRegExChars(b)+")";return a.value.replace(new RegExp(c,"gi"),"$1")};g.prototype={killerFn:null,initialize:function(){var a=this,b="."+a.classes.suggestion,c=a.classes.selected,e=a.options,f;a.element.setAttribute("autocomplete","off");a.killerFn=function(b){0===d(b.target).closest("."+a.options.containerClass).length&&(a.killSuggestions(),a.disableKillerFn())};a.suggestionsContainer=g.utils.createNode(e.containerClass);f=d(a.suggestionsContainer);f.appendTo(e.appendTo); "auto"!==e.width&&f.width(e.width);f.on("mouseover.autocomplete",b,function(){a.activate(d(this).data("index"))});f.on("mouseout.autocomplete",function(){a.selectedIndex=-1;f.children("."+c).removeClass(c)});f.on("click.autocomplete",b,function(){a.select(d(this).data("index"))});a.fixPosition();a.fixPositionCapture=function(){a.visible&&a.fixPosition()};d(window).on("resize.autocomplete",a.fixPositionCapture);a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)});a.el.on("keyup.autocomplete", function(b){a.onKeyUp(b)});a.el.on("blur.autocomplete",function(){a.onBlur()});a.el.on("focus.autocomplete",function(){a.onFocus()});a.el.on("change.autocomplete",function(b){a.onKeyUp(b)})},onFocus:function(){this.fixPosition();if(this.options.minChars<=this.el.val().length)this.onValueChange()},onBlur:function(){this.enableKillerFn()},setOptions:function(a){var b=this.options;d.extend(b,a);if(this.isLocal=d.isArray(b.lookup))b.lookup=this.verifySuggestionsFormat(b.lookup);d(this.suggestionsContainer).css({"max-height":b.maxHeight+ "px",width:b.width+"px","z-index":b.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){this.disabled=!0;this.currentRequest&&this.currentRequest.abort()},enable:function(){this.disabled=!1},fixPosition:function(){var a;"body"===this.options.appendTo&&(a=this.el.offset(),a={top:a.top+this.el.outerHeight()+"px",left:a.left+"px"},"auto"===this.options.width&&(a.width=this.el.outerWidth()- 2+"px"),d(this.suggestionsContainer).css(a))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions();a.intervalId=window.setInterval(function(){a.hide();a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a=this.el.val().length,b=this.element.selectionStart;return"number"===typeof b?b===a:document.selection?(b=document.selection.createRange(),b.moveStart("character",-a),a===b.text.length):!0},onKeyPress:function(a){if(!this.disabled&&!this.visible&&40===a.which&&this.currentValue)this.suggest();else if(!this.disabled&&this.visible){switch(a.which){case 27:this.el.val(this.currentValue);this.hide();break;case 39:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case 9:if(this.hint&&this.options.onHint){this.selectHint();return}case 13:if(-1===this.selectedIndex){this.hide();return}this.select(this.selectedIndex);if(9===a.which&&!1===this.options.tabDisabled)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}a.stopImmediatePropagation();a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case 38:case 40:return}clearInterval(b.onChangeInterval);if(b.currentValue!==b.el.val())if(b.findBestHint(),0f&&(b.suggestions=b.suggestions.slice(0,f));return b},getSuggestions:function(a){var b,c=this,e=c.options, f=e.serviceUrl,k,g;e.params[e.paramName]=a;k=e.ignoreParams?null:e.params;c.isLocal?b=c.getSuggestionsLocal(a):(d.isFunction(f)&&(f=f.call(c.element,a)),g=f+"?"+d.param(k||{}),b=c.cachedResponse[g]);b&&d.isArray(b.suggestions)?(c.suggestions=b.suggestions,c.suggest()):c.isBadQuery(a)||!1===e.onSearchStart.call(c.element,e.params)||(c.currentRequest&&c.currentRequest.abort(),c.currentRequest=d.ajax({url:f,data:k,type:e.type,dataType:e.dataType}).done(function(b){c.currentRequest=null;b=e.transformResult(b); c.processResponse(b,a,g);e.onSearchComplete.call(c.element,a,b.suggestions)}).fail(function(b,d,f){e.onSearchError.call(c.element,a,b,d,f)}))},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){this.visible=!1;this.selectedIndex=-1;d(this.suggestionsContainer).hide();this.signalHint(null)},suggest:function(){if(0===this.suggestions.length)this.options.showNoSuggestionNotice?this.noSuggestions(): this.hide();else{var a=this.options,b=a.formatResult,c=this.getQuery(this.currentValue),e=this.classes.suggestion,f=this.classes.selected,g=d(this.suggestionsContainer),h=a.beforeRender,l="",m;if(a.triggerSelectOnValidInput&&(m=this.findSuggestionIndex(c),-1!==m)){this.select(m);return}d.each(this.suggestions,function(a,d){l+='
    '+b(d,c)+"
    "});this.adjustContainerWidth();g.html(l);a.autoSelectFirst&&(this.selectedIndex=0,g.children().first().addClass(f));d.isFunction(h)&& h.call(this.element,g);g.show();this.visible=!0;this.findBestHint()}},noSuggestions:function(){var a=d(this.suggestionsContainer),b;b=""+('
    '+this.options.noSuggestionNotice+"
    ");this.adjustContainerWidth();a.html(b);a.show();this.visible=!0},adjustContainerWidth:function(){var a=this.options,b=d(this.suggestionsContainer);"auto"===a.width&&(a=this.el.outerWidth()-2,b.width(0this.selectedIndex?(a=e.get(this.selectedIndex),d(a).addClass(b),a):null},selectHint:function(){var a=d.inArray(this.hint, this.suggestions);this.select(a)},select:function(a){this.hide();this.onSelect(a)},moveUp:function(){-1!==this.selectedIndex&&(0===this.selectedIndex?(d(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue),this.findBestHint()):this.adjustScroll(this.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b=this.activate(a), c,e;b&&(b=b.offsetTop,c=d(this.suggestionsContainer).scrollTop(),e=c+this.options.maxHeight-25,be&&d(this.suggestionsContainer).scrollTop(b-this.options.maxHeight+25),this.el.val(this.getValue(this.suggestions[a].value)),this.signalHint(null))},onSelect:function(a){var b=this.options.onSelect;a=this.suggestions[a];this.currentValue=this.getValue(a.value);this.currentValue!==this.el.val()&&this.el.val(this.currentValue);this.signalHint(null);this.suggestions= [];this.selection=a;d.isFunction(b)&&b.call(this.element,a)},getValue:function(a){var b=this.options.delimiter,c;if(!b)return a;c=this.currentValue;b=c.split(b);return 1===b.length?a:c.substr(0,c.length-b[b.length-1].length)+a},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete");this.disableKillerFn();d(window).off("resize.autocomplete",this.fixPositionCapture);d(this.suggestionsContainer).remove()}};d.fn.yithautocomplete=function(a,b){return 0===arguments.length?this.first().data("autocomplete"): this.each(function(){var c=d(this),e=c.data("autocomplete");if("string"===typeof a){if(e&&"function"===typeof e[a])e[a](b)}else e&&e.dispose&&e.dispose(),e=new g(this,a),c.data("autocomplete",e)})}});}catch(e){} try{!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g))=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);}catch(e){} try{window.wp=window.wp||{},function(a){var b="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(b){var c,d={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(c=c||_.template(a("#tmpl-"+b).html(),d))(e)}}),wp.ajax={settings:b.ajax||{},post:function(a,b){return wp.ajax.send({data:_.isObject(a)?a:_.extend(b||{},{action:a})})},send:function(b,c){var d,e;return _.isObject(b)?c=b:(c=c||{},c.data=_.extend(c.data||{},{action:b})),c=_.defaults(c||{},{type:"POST",url:wp.ajax.settings.url,context:this}),e=a.Deferred(function(b){c.success&&b.done(c.success),c.error&&b.fail(c.error),delete c.success,delete c.error,b.jqXHR=a.ajax(c).done(function(a){"1"!==a&&1!==a||(a={success:!0}),_.isObject(a)&&!_.isUndefined(a.success)?b[a.success?"resolveWith":"rejectWith"](this,[a.data]):b.rejectWith(this,[a])}).fail(function(){b.rejectWith(this,arguments)})}),d=e.promise(),d.abort=function(){return e.jqXHR.abort(),this},d}}}(jQuery);}catch(e){} try{!function(a,b,c,d){var e=function(a){this.$form=a,this.$attributeFields=a.find(".variations select"),this.$singleVariation=a.find(".single_variation"),this.$singleVariationWrap=a.find(".single_variation_wrap"),this.$resetVariations=a.find(".reset_variations"),this.$product=a.closest(".product"),this.variationData=a.data("product_variations"),this.useAjax=!1===this.variationData,this.xhr=!1,this.$singleVariationWrap.show(),this.$form.unbind("check_variations update_variation_values found_variation"),this.$resetVariations.unbind("click"),this.$attributeFields.unbind("change "),this.getChosenAttributes=this.getChosenAttributes.bind(this),this.findMatchingVariations=this.findMatchingVariations.bind(this),this.isMatch=this.isMatch.bind(this),this.toggleResetLink=this.toggleResetLink.bind(this),a.on("click",".reset_variations",{variationForm:this},this.onReset),a.on("reload_product_variations",{variationForm:this},this.onReload),a.on("hide_variation",{variationForm:this},this.onHide),a.on("show_variation",{variationForm:this},this.onShow),a.on("click",".single_add_to_cart_button",{variationForm:this},this.onAddToCart),a.on("reset_data",{variationForm:this},this.onResetDisplayedVariation),a.on("reset_image",{variationForm:this},this.onResetImage),a.on("change",".variations select",{variationForm:this},this.onChange),a.on("found_variation",{variationForm:this},this.onFoundVariation),a.on("check_variations",{variationForm:this},this.onFindVariation),a.on("update_variation_values",{variationForm:this},this.onUpdateAttributes),a.trigger("check_variations"),a.trigger("wc_variation_form")};e.prototype.onReset=function(a){a.preventDefault(),a.data.variationForm.$attributeFields.val("").change(),a.data.variationForm.$form.trigger("reset_data")},e.prototype.onReload=function(a){var b=a.data.variationForm;b.variationData=b.$form.data("product_variations"),b.useAjax=!1===b.variationData,b.$form.trigger("check_variations")},e.prototype.onHide=function(a){a.preventDefault(),a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-is-unavailable").addClass("disabled wc-variation-selection-needed"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")},e.prototype.onShow=function(a,b,c){a.preventDefault(),c?(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("disabled wc-variation-selection-needed wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-disabled").addClass("woocommerce-variation-add-to-cart-enabled")):(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-selection-needed").addClass("disabled wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled"))},e.prototype.onAddToCart=function(c){a(this).is(".disabled")&&(c.preventDefault(),a(this).is(".wc-variation-is-unavailable")?b.alert(wc_add_to_cart_variation_params.i18n_unavailable_text):a(this).is(".wc-variation-selection-needed")&&b.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))},e.prototype.onResetDisplayedVariation=function(a){var b=a.data.variationForm;b.$product.find(".product_meta").find(".sku").wc_reset_content(),b.$product.find(".product_weight").wc_reset_content(),b.$product.find(".product_dimensions").wc_reset_content(),b.$form.trigger("reset_image"),b.$singleVariation.slideUp(200).trigger("hide_variation")},e.prototype.onResetImage=function(a){a.data.variationForm.$form.wc_variations_image_update(!1)},e.prototype.onFindVariation=function(c){var d=c.data.variationForm,e=d.getChosenAttributes(),f=e.data;if(e.count===e.chosenCount)if(d.useAjax)d.xhr&&d.xhr.abort(),d.$form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),f.product_id=parseInt(d.$form.data("product_id"),10),f.custom_data=d.$form.data("custom_data"),d.xhr=a.ajax({url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_variation"),type:"POST",data:f,success:function(a){a?d.$form.trigger("found_variation",[a]):(d.$form.trigger("reset_data"),d.$form.find(".single_variation").after('

    '+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"

    "),d.$form.find(".wc-no-matching-variations").slideDown(200))},complete:function(){d.$form.unblock()}});else{d.$form.trigger("update_variation_values");var g=d.findMatchingVariations(d.variationData,f),h=g.shift();h?d.$form.trigger("found_variation",[h]):(b.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text),d.$form.trigger("reset_data"))}else d.$form.trigger("update_variation_values"),d.$form.trigger("reset_data");d.toggleResetLink(e.chosenCount>0),a(".product.has-default-attributes > .images").fadeTo(200,1)},e.prototype.onFoundVariation=function(b,c){var d=b.data.variationForm,e=d.$product.find(".product_meta").find(".sku"),f=d.$product.find(".product_weight"),g=d.$product.find(".product_dimensions"),h=d.$singleVariationWrap.find(".quantity"),i=!0,j="",k=!1,l="";c.sku?e.wc_set_content(c.sku):e.wc_reset_content(),c.weight?f.wc_set_content(c.weight):f.wc_reset_content(),c.dimensions?g.wc_set_content(c.dimensions):g.wc_reset_content(),d.$form.wc_variations_image_update(c),c.variation_is_visible?(k=wp.template("variation-template"),j=c.variation_id):k=wp.template("unavailable-variation-template"),l=k({variation:c}),l=l.replace("",""),l=l.replace("",""),d.$singleVariation.html(l),d.$form.find('input[name="variation_id"], input.variation_id').val(c.variation_id).change(),"yes"===c.is_sold_individually?(h.find("input.qty").val("1").attr("min","1").attr("max",""),h.hide()):(h.find("input.qty").attr("min",c.min_qty).attr("max",c.max_qty),h.show()),c.is_purchasable&&c.is_in_stock&&c.variation_is_visible||(i=!1),a.trim(d.$singleVariation.text())?d.$singleVariation.slideDown(200).trigger("show_variation",[c,i]):d.$singleVariation.show().trigger("show_variation",[c,i])},e.prototype.onChange=function(b){var c=b.data.variationForm;c.$form.find('input[name="variation_id"], input.variation_id').val("").change(),c.$form.find(".wc-no-matching-variations").remove(),c.useAjax?c.$form.trigger("check_variations"):(c.$form.trigger("woocommerce_variation_select_change"),c.$form.trigger("check_variations"),a(this).blur()),c.$form.trigger("woocommerce_variation_has_changed")},e.prototype.addSlashes=function(a){return a=a.replace(/'/g,"\\'"),a=a.replace(/"/g,'\\"')},e.prototype.onUpdateAttributes=function(b){var c=b.data.variationForm,d=c.getChosenAttributes(),e=d.data;c.useAjax||(c.$attributeFields.each(function(b,d){var f=a(d),g=f.data("attribute_name")||f.attr("name"),h=a(d).data("show_option_none"),i=":gt(0)",j=0,k=a("').prepend(''); $('input.qty:not(.product-quantity input.qty)').each(function(){ var min=parseFloat($(this).attr('min')); if(min&&min > 0&&parseFloat($(this).val()) < min){ $(this).val(min); }}); $(document).off('click', '.plus, .minus').on('click', '.plus, .minus', function(){ var $qty=$(this).closest('.quantity').find('.qty'), currentVal=parseFloat($qty.val()), max=parseFloat($qty.attr('max')), min=parseFloat($qty.attr('min')), step=$qty.attr('step'); if(! currentVal||currentVal===''||currentVal==='NaN') currentVal=0; if(max===''||max==='NaN') max=''; if(min===''||min==='NaN') min=0; if(step==='any'||step===''||step===undefined||parseFloat(step)==='NaN') step=1; if($(this).is('.plus')){ if(max&&(max==currentVal||currentVal > max)){ $qty.val(max); }else{ $qty.val(currentVal + parseFloat(step)); }}else{ if(min&&(min==currentVal||currentVal < min)){ $qty.val(min); }else if(currentVal > 0){ $qty.val(currentVal - parseFloat(step)); }} $qty.trigger('change'); }); return self; }, events: function(){ var self=this; $(document).ajaxComplete(function(event, xhr, options){ self.build(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var duration=300; $.extend(theme, { WooVariationForm: { initialize: function(){ this.events(); return this; }, events: function(){ var self=this; $('.variations_form').each(function(){ var $variation_form=$(this), $reset_variations=$variation_form.find('.reset_variations'); if($reset_variations.css('visibility')=='hidden') $reset_variations.hide(); }); $(document).on('check_variations', '.variations_form', function(event, exclude, focus){ var $variation_form=$(this), $reset_variations=$variation_form.find('.reset_variations'); if($reset_variations.css('visibility')=='hidden') $reset_variations.hide(); }); $(document).on('reset_image', '.variations_form', function(event){ var $product=$(this).closest('.product'); var $product_img=$product.find('div.product-images .woocommerce-main-image'); var o_src=$product_img.attr('data-o_src'); var o_title=$product_img.attr('data-o_title'); var o_href=$product_img.attr('data-o_href'); var $thumb_img=$product.find('.woocommerce-main-thumb'); var o_thumb_src=$thumb_img.attr('data-o_src'); var $image_slider=$product.find('.product-image-slider'); var $thumbs_slider=$product.find('.product-thumbs-slider'); if($image_slider.length){ $image_slider.trigger('to.owl.carousel', [0, duration, true]); } if($thumbs_slider.length){ $thumbs_slider.trigger('to.owl.carousel', [0, duration, true]); $thumbs_slider.find('.owl-item:eq(0)').click(); } var links=$image_slider.data('links'); if(o_src){ $product_img .attr('src', o_src) .attr('srcset', '') .attr('alt', o_title) .attr('href', o_href); $product_img.each(function(){ var elevateZoom=$(this).data('elevateZoom'); if(typeof elevateZoom!='undefined'){ elevateZoom.swaptheimage($(this).attr('src'), $(this).attr('src')); }}); if(typeof links!='undefined'){ links[0].src=o_href; links[0].title=o_title; }} if(o_thumb_src){ $thumb_img.attr('src', o_thumb_src); }}); $(document).on('found_variation', '.variations_form', function(event, variation){ if(typeof variation=='undefined'){ return; } var $product=$(this).closest('.product'); var $image_slider=$product.find('.product-image-slider'); var $thumbs_slider=$product.find('.product-thumbs-slider'); if($image_slider.length){ $image_slider.trigger('to.owl.carousel', [0, duration, true]); } if($thumbs_slider.length){ $thumbs_slider.trigger('to.owl.carousel', [0, duration, true]); $thumbs_slider.find('.owl-item:eq(0)').click(); } var links=$image_slider.data('links'); var $shop_single_image=$product.find('div.product-images .woocommerce-main-image'); var productimage=$shop_single_image.attr('data-o_src'); var imagetitle=$shop_single_image.attr('data-o_title'); var imagehref=$shop_single_image.attr('data-o_href'); var $shop_thumb_image=$product.find('.woocommerce-main-thumb'); var thumbimage=$shop_thumb_image.attr('data-o_src'); var variation_image=variation.image_src; var variation_link=variation.image_link; var variation_title=variation.image_title; var variation_thumb=variation.image_thumb; if(! productimage){ productimage=(! $shop_single_image.attr('src')) ? '':$shop_single_image.attr('src'); $shop_single_image.attr('data-o_src', productimage); } if(! imagehref){ imagehref=(! $shop_single_image.attr('href')) ? '':$shop_single_image.attr('href'); $shop_single_image.attr('data-o_href', imagehref); } if(! imagetitle){ imagetitle=(! $shop_single_image.attr('alt')) ? '':$shop_single_image.attr('alt'); $shop_single_image.attr('data-o_title', imagetitle); } if(! thumbimage){ thumbimage=(! $shop_thumb_image.attr('src')) ? '':$shop_thumb_image.attr('src'); $shop_thumb_image.attr('data-o_src', thumbimage); } if(variation_image){ $shop_single_image.attr('src', variation_image) $shop_single_image.attr('srcset', '') $shop_single_image.attr('alt', variation_title) $shop_single_image.attr('href', variation_link); $shop_thumb_image.attr('src', variation_thumb); if(typeof links!='undefined'){ links[0].src=variation_link; links[0].title=variation_title; }}else{ $shop_single_image.attr('src', productimage) $shop_single_image.attr('srcset', '') $shop_single_image.attr('alt', imagetitle) $shop_single_image.attr('href', imagehref); $shop_thumb_image.attr('src', thumbimage); if(typeof links!='undefined'){ links[0].src=imagehref; links[0].title=imagetitle; }} $shop_single_image.each(function(){ var elevateZoom=$(this).data('elevateZoom'); if(typeof elevateZoom!='undefined'){ elevateZoom.swaptheimage($(this).attr('src'), $(this).attr('src')); }}); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { WooEvents: { initialize: function(){ this.events(); return this; }, events: function(){ var self=this; $('.wcml-switcher li').on('click', function(){ if($(this).parent().attr('disabled')=='disabled') return; var currency=$(this).attr('rel'); self.loadCurrency(currency); }); $('.woocs-switcher li').on('click', function(){ if($(this).parent().attr('disabled')=='disabled') return; var currency=$(this).attr('rel'); self.loadWoocsCurrency(currency); }); return self; }, loadCurrency:function(currency){ $('.wcml-switcher').attr('disabled', 'disabled'); $('.wcml-switcher').append('
  • '); var data={action: 'wcml_switch_currency', currency: currency} $.ajax({ type:'post', url:theme.ajax_url, data:{ action: 'wcml_switch_currency', currency:currency }, success: function(response){ $('.wcml-switcher').removeAttr('disabled'); $('.wcml-switcher').find('.loading').remove(); window.location=window.location.href; }}); }, loadWoocsCurrency:function(currency){ $('.woocs-switcher').attr('disabled', 'disabled'); $('.woocs-switcher').append('
  • '); var l=window.location.href; l=l.split('?'); l=l[0]; var string_of_get='?'; woocs_array_of_get.currency=currency; if(Object.keys(woocs_array_of_get).length > 0){ jQuery.each(woocs_array_of_get, function (index, value){ string_of_get=string_of_get + "&" + index + "=" + value; }); } window.location=l + string_of_get; }, removeParameterFromUrl:function(url, parameter){ return url .replace(new RegExp('[?&]' + parameter + '=[^&#]*(#.*)?$'), '$1') .replace(new RegExp('([?&])' + parameter + '=[^&]*&'), '$1'); }} }); }).apply(this, [window.theme, jQuery]); function porto_init(){ (function($){ 'use strict'; if($.isFunction($.fn['themeAccordion'])){ $(function(){ $('.panel-group:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAccordion(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeAccordionMenu'])){ $(function(){ $('.accordion-menu:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAccordionMenu(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeAnimate'])){ $(function(){ $('[data-plugin-animate], [data-appear-animation]').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAnimate(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeCarousel'])){ $(function(){ $('[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeCarousel(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeChartCircular'])){ $(function(){ $('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeChartCircular(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeFitVideo'])){ $(function(){ $('.fit-video:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeFitVideo(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeFlickrZoom'])){ $(function(){ $('.wpb_flickr_widget:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeFlickrZoom(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeLightbox'])){ $(function(){ $('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeLightbox(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeMasonry'])){ $(function(){ $('[data-plugin-masonry]:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeMasonry(opts); }); $('.posts-grid .grid:not(.manual)').each(function(){ $(this).themeMasonry({ itemSelector: '.post' }); }); $('.page-portfolios .portfolio-row:not(.manual)').each(function(){ var $parent=$(this).parent(), layoutMode='masonry', options, columnWidth='.portfolio:not(.w2)'; if($parent.hasClass('portfolios-grid')) layoutMode='fitRows'; options={ itemSelector: '.portfolio', layoutMode: layoutMode, callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-portfolios')); }, 400); }}; if(layoutMode=='masonry'){ if(!$parent.find('.portfolio:not(.w2)').length) columnWidth='.portfolio'; options=$.extend(true, {}, options, { masonry: { columnWidth: columnWidth }}); } $(this).themeMasonry(options); }); $('.page-members .member-row:not(.manual)').each(function(){ $(this).themeMasonry({ itemSelector: '.member', layoutMode: 'fitRows', callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-members')); }, 400); }}); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themePreviewImage'])){ $(function(){ $('.thumb-info-preview .thumb-info-image:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themePreviewImage(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeRefreshVideoSize'])){ $(function(){ $('.video-cover:not(.manual) .upb_video-bg').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeRefreshVideoSize(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeToggle'])){ $(function(){ $('section.toggle:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeToggle(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeParallax'])){ $(function(){ $('[data-plugin-parallax]:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeParallax(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeVcImageZoom'])){ $(function(){ $('.porto-vc-zoom:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeVcImageZoom(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeSticky'])){ $(function(){ $('[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeSticky(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooWidgetToggle'])){ $(function(){ $('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter').find('.widget-title').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooWidgetToggle(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooWidgetAccordion'])){ $(function(){ $('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooWidgetAccordion(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooProductsSlider'])){ $(function(){ $('.products-slider:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooProductsSlider(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['tooltip'])){ $("[data-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)").tooltip(); } $('[data-toggle="dropdown"]').dropdownHover(); $("[data-toggle='popover']").popover(); if($().waypoint){ $('.vc_progress_bar').each(function(){ var $tooltips=$(this).find('.progress-bar-tooltip'); $($tooltips.get(0)).waypoint(function(){ var delay=200; $tooltips.each(function(index){ var $tooltip=$(this); setTimeout(function(){ $tooltip.animate({ opacity: 1 }); }, 200 + delay * index); }); }, { offset: '85%' }); }); } $('.video-fixed').each(function(){ var $this=$(this), $video=$this.find('video, iframe'); if($video.length){ $(window).on('scroll', function(){ var offset=$(window).scrollTop() - $this.position().top + theme.adminBarHeight(); $video.css("cssText", "top: " + offset + "px !important;"); }); }}); $('.porto-popup-iframe').magnificPopup($.extend(true, {}, theme.mfpConfig, { disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false })); $('.porto-popup-iframe').magnificPopup($.extend(true, {}, theme.mfpConfig, { disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false })); $('.porto-popup-ajax').magnificPopup($.extend(true, {}, theme.mfpConfig, { type: 'ajax' })); $('.porto-popup-content').each(function(){ var animation=$(this).attr('data-animation'); $(this).magnificPopup($.extend(true, {}, theme.mfpConfig, { type: 'inline', fixedContentPos: false, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: animation })); }); $('.thumb-gallery-thumbs').each(function(){ var $thumbs=$(this), $detail=$thumbs.parent().find('.thumb-gallery-detail'), flag=false, duration=300; if($thumbs.data('initThumbs')) return; $detail.on('changed.owl.carousel', function(e){ if(!flag){ flag=true; var len=$detail.find('.owl-item').length, cloned=$detail.find('.cloned').length; if(len){ $thumbs.trigger('to.owl.carousel', [(e.item.index - cloned / 2 - 1) % len, duration, true]); } flag=false; }}); $thumbs.on('changed.owl.carousel', function(e){ if(!flag){ flag=true; var len=$thumbs.find('.owl-item').length, cloned=$thumbs.find('.cloned').length; if(len){ $detail.trigger('to.owl.carousel', [(e.item.index - cloned / 2) % len, duration, true]); } flag=false; }}).on('click', '.owl-item', function(){ if(!flag){ flag=true; var len=$thumbs.find('.owl-item').length, cloned=$thumbs.find('.cloned').length; if(len){ $detail.trigger('to.owl.carousel', [($(this).index() - cloned / 2) % len, duration, true]); } flag=false; }}).data('initThumbs', true); }); }).apply(this, [jQuery]); (function($){ 'use strict'; if($.cookie&&$.cookie('gridcookie')){ var $toggle=$('.gridlist-toggle'); if($toggle.get(0)){ var $parent=$toggle.parent().parent(); if($parent.find('ul.products').hasClass('grid')){ $.cookie('gridcookie', 'grid', { path: '/' }); }else if($parent.find('ul.products').hasClass('list')){ $.cookie('gridcookie', 'list', { path: '/' }); }else{ $parent.find('ul.products').addClass($.cookie('gridcookie')); }} } if($.cookie&&$.cookie('gridcookie')=='grid'){ $('.gridlist-toggle #grid').addClass('active'); $('.gridlist-toggle #list').removeClass('active'); } if($.cookie&&$.cookie('gridcookie')=='list'){ $('.gridlist-toggle #list').addClass('active'); $('.gridlist-toggle #grid').removeClass('active'); } if($.cookie&&$.cookie('gridcookie')==null){ var $toggle=$('.gridlist-toggle'); if($toggle.get(0)){ var $parent=$toggle.parent().parent(); $parent.find('ul.products').addClass('grid'); } $('.gridlist-toggle #grid').addClass('active'); if($.cookie) $.cookie('gridcookie', 'grid', { path: '/' }); }}).apply(this, [jQuery]); } (function(theme, $){ 'use strict'; $(document).ready(function(){ porto_init(); if(typeof theme.ScrollToTop!=='undefined'){ theme.ScrollToTop.initialize(); } if(typeof theme.MegaMenu!=='undefined'){ theme.MegaMenu.initialize(); } if(typeof theme.SidebarMenu!=='undefined'){ theme.SidebarMenu.initialize(); } if(typeof theme.SideNav!=='undefined'){ theme.SideNav.initialize(); } if(typeof theme.StickyHeader!=='undefined'){ theme.StickyHeader.initialize(); } if(typeof theme.Search!=='undefined'){ theme.Search.initialize(); } if(typeof theme.HashScroll!=='undefined'){ theme.HashScroll.initialize(); } if(typeof theme.PostsInfinite!=='undefined'){ theme.PostsInfinite.initialize(); } if(typeof theme.PortfolioAjaxPage!=='undefined'){ theme.PortfolioAjaxPage.initialize(); } if(typeof theme.PortfolioAjaxModal!=='undefined'){ theme.PortfolioAjaxModal.initialize(); } if(typeof theme.PortfoliosInfinite!=='undefined'){ theme.PortfoliosInfinite.initialize(); } if(typeof theme.PortfolioFilter!=='undefined'){ theme.PortfolioFilter.initialize(); } if(typeof theme.MemberAjaxPage!=='undefined'){ theme.MemberAjaxPage.initialize(); } if(typeof theme.MembersInfinite!=='undefined'){ theme.MembersInfinite.initialize(); } if(typeof theme.MemberFilter!=='undefined'){ theme.MemberFilter.initialize(); } if(typeof theme.FaqsInfinite!=='undefined'){ theme.FaqsInfinite.initialize(); } if(typeof theme.FaqFilter!=='undefined'){ theme.FaqFilter.initialize(); } if(typeof theme.FilterZoom!=='undefined'){ theme.FilterZoom.initialize($('.page-portfolios')); theme.FilterZoom.initialize($('.page-members')); theme.FilterZoom.initialize($('.blog-posts-related')); } if(typeof theme.SortFilter!=='undefined'){ theme.SortFilter.initialize(); } if(typeof theme.WooQtyField!=='undefined'){ theme.WooQtyField.initialize(); } if(typeof theme.WooQuickView!=='undefined'){ theme.WooQuickView.initialize(); } if(typeof theme.WooEvents!=='undefined'){ theme.WooEvents.initialize(); } $('.sidebar-toggle').click(function(e){ var $html=$('html'); if($html.hasClass('sidebar-opened')){ $html.removeClass('sidebar-opened'); $('.sidebar-overlay').removeClass('active'); }else{ $html.addClass('sidebar-opened'); $('.sidebar-overlay').addClass('active'); }}); $('.sidebar-overlay').click(function(){ $('html').removeClass('sidebar-opened'); $(this).removeClass('active'); }); $(window).on('resize', function(){ if($(window).width() > 991 - theme.getScrollbarWidth()){ $('.sidebar-overlay').click(); }}); if(!('ontouchstart' in document)){ $('.mini-cart').on('hide.bs.dropdown', function (){ return false; }); } if($.isFunction($.fn['matchHeight'])){ $('.tabs-simple .featured-box .box-content').matchHeight(); $('.porto-content-box .featured-box .box-content').matchHeight(); $('.vc_general.vc_cta3').matchHeight(); $('.match-height').matchHeight(); $('.fdm-section .fdm-item').matchHeight(); } if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ $('.share-whatsapp').css('display', 'inline-block'); } $(document).ajaxComplete(function(event, xhr, options){ if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ $('.share-whatsapp').css('display', 'inline-block'); }}); var ua=window.navigator.userAgent, ie12=ua.indexOf('Edge/') > 0; if(ie12) $('html').addClass('ie12'); if(!$('#yith-wcwl-popup-message').get(0)){ var message_div=$('
    ') .attr('id', 'yith-wcwl-message'), popup_div=$('
    ') .attr('id', 'yith-wcwl-popup-message') .html(message_div) .hide(); $('body').prepend(popup_div); } $(document).on('click', '.portfolios-lightbox a.portfolio-link', function(e){ $(this).find('.thumb-info-zoom').click(); return false; }); $(document).on('click', '.porto-portfolios .pagination:not(.load-more) a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-portfolios').find('.shortcode-id').val(), $container=$this.closest('.porto-portfolios' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('
    ' + response + '
    ').find('.porto-portfolios'+shortcode_id); $container.html($response_container.html()); theme.PortfolioAjaxPage.initialize($container.find('.page-portfolios')); theme.PortfolioAjaxModal.initialize($container.find('.page-portfolios')); porto_init(); theme.PortfolioFilter.initialize($container.find('.portfolio-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('click', '.porto-members .pagination a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-members').find('.shortcode-id').val(), $container=$this.closest('.porto-members' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('
    ' + response + '
    ').find('.porto-members'+shortcode_id); $container.html($response_container.html()); theme.MemberAjaxPage.initialize($container.find('.page-members')); porto_init(); theme.MemberFilter.initialize($container.find('.member-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('click', '.porto-faqs .pagination a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-faqs').find('.shortcode-id').val(), $container=$this.closest('.porto-faqs' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('
    ' + response + '
    ').find('.porto-faqs'+shortcode_id); $container.html($response_container.html()); porto_init(); theme.FaqFilter.initialize($container.find('.faq-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('shown.bs.collapse', '.collapse', function(){ var panel=$(this); theme.refreshVCContent(panel); }); $(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function(e){ var panel=$($(e.target).attr('href')); theme.refreshVCContent(panel); }); $(document).on('tabactivate', '.woocommerce-tabs', function(e, ui){ var label=$(ui).attr('aria-controls'); var panel=$('[aria-labelledby="' + label + '"'); theme.refreshVCContent(panel); }); $(".porto-tooltip .tooltip-icon").click(function(){ if($(this).parent().children(".tooltip-popup").css("display")=="none"){ $(this).parent().children(".tooltip-popup").fadeIn(200); }else{ $(this).parent().children(".tooltip-popup").fadeOut(200); }}); $(".porto-tooltip .tooltip-close").click(function(){ $(this).parent().fadeOut(200); }); $(document).ready(function(){ $('body.single-portfolio .post-content > div:first-child > div:last-child').prepend($('body.single-portfolio .portfolio-info')); }); }); }).apply(this, [window.theme, jQuery]); (function (theme, $, undefined){ "use strict"; if(typeof theme.WooVariationForm!=='undefined'){ theme.WooVariationForm.initialize(); } if(typeof theme.WooProductImageSlider!=='undefined'){ theme.WooProductImageSlider.initialize(); } $(document).ready(function(){ $(window).bind('vc_reload', function(){ porto_init(); $('.type-product').addClass('product'); $('.type-post').addClass('post'); $('.type-portfolio').addClass('portfolio'); $('.type-member').addClass('member'); $('.type-block').addClass('block'); }); }); if(theme.rtl){ $(document).bind('vc-full-width-row', function(){ $('[data-vc-full-width="true"]').each(function(){ var $this=$(this), left=$this.css('left'); $this.css('right', left); $this.css('left', 'auto'); }); }); } var masonryContainer, masonryOptions; $(document).on('click', '.porto-portfolios .pagination.load-more a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-portfolios').find('.shortcode-id').val(), $container=$this.closest('.porto-portfolios' + shortcode_id), $loader=$container.find('.pagination-wrap.load-more .bounce-loader'), $btn=$container.find('.pagination.load-more a.next'); if(url){ e.preventDefault(); $btn.hide(); $loader.show(); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('
    ' + response + '
    ').find('.porto-portfolios'+shortcode_id), $portfolio_thumbs=$response_container.find('.porto-portfolios-lighbox-thumbnails .owl-carousel').html(), $next_posts=$response_container.find('.portfolio-row'); $($next_posts).contents(':not(article)').remove(); $container.find('.pagination-wrap').replaceWith($response_container.find('.pagination-wrap')); $container.find('.porto-portfolios-lighbox-thumbnails .owl-carousel').append($portfolio_thumbs); $($next_posts.html()).insertAfter($container.find('article').last()); theme.PortfolioAjaxPage.initialize($('.page-portfolios')); theme.PortfolioAjaxModal.initialize($('.page-portfolios')); porto_init(); theme.PortfolioFilter.initialize($('.portfolio-filter')); var $parent=$container.find('.page-portfolios'), layoutMode='masonry', columnWidth='.portfolio:not(.w2)'; if($parent.hasClass('portfolios-grid')) layoutMode='fitRows'; masonryOptions={ itemSelector: '.portfolio', layoutMode: layoutMode, callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-portfolios')); }, 400); }}; if(layoutMode=='masonry'){ if(!$parent.find('.portfolio:not(.w2)').length) columnWidth='.portfolio'; masonryOptions=$.extend(true, {}, masonryOptions, { masonry: { columnWidth: columnWidth }}); } masonryContainer=$parent.find('.portfolio-row'); masonryContainer.themeMasonry(masonryOptions); $(masonryContainer).masonry(masonryOptions); setTimeout(function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }, 100); $(window).on('resize', function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }); }}).always(function(){ $loader.hide(); }); return false; }}); $(window).bind('resizeEnd', function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }); $(window).resize(function(){ if(this.resizeTO) clearTimeout(this.resizeTO); this.resizeTO=setTimeout(function(){ $(this).trigger('resizeEnd'); }, 700); }); })(window.theme, jQuery);}catch(e){} try{(function($){$.fn.validationEngineLanguage=function(){};$.validationEngineLanguage={newLang:function(){$.validationEngineLanguage.allRules={"required":{"regex":"none","alertText":"* Необходимо заполнить","alertTextCheckboxMultiple":"* Вы должны выбрать вариант","alertTextCheckboxe":"* Необходимо отметить"},"requiredInFunction":{"func":function(field,rules,i,options){return(field.val()=="test")?true:false;},"alertText":"* Значением поля должно быть test"},"minSize":{"regex":"none","alertText":"* Минимум ","alertText2":" символа(ов)"},"maxSize":{"regex":"none","alertText":"* Максимум ","alertText2":" символа(ов)"},"groupRequired":{"regex":"none","alertText":"* Вы должны заполнить одно из следующих полей"},"min":{"regex":"none","alertText":"* Минимальное значение "},"max":{"regex":"none","alertText":"* Максимальное значение "},"past":{"regex":"none","alertText":"* Дата до "},"future":{"regex":"none","alertText":"* Дата от "},"maxCheckbox":{"regex":"none","alertText":"* Нельзя выбрать столько вариантов"},"minCheckbox":{"regex":"none","alertText":"* Пожалуйста, выберите ","alertText2":" опцию(ии)"},"equals":{"regex":"none","alertText":"* Поля не совпадают"},"creditCard":{"regex":"none","alertText":"* Неверный номер кредитной карты"},"phone":{"regex":/^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,"alertText":"* Неправильный формат телефона"},"email":{"regex":/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"alertText":"* Неверный формат email"},"integer":{"regex":/^[\-\+]?\d+$/,"alertText":"* Не целое число"},"number":{"regex":/^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,"alertText":"* Неправильное число с плавающей точкой"},"date":{"regex":/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,"alertText":"* Неправильная дата (должно быть в ДД.MM.ГГГГ формате)"},"ipv4":{"regex":/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,"alertText":"* Неправильный IP-адрес"},"url":{"regex":/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,"alertText":"* Неправильный URL"},"onlyNumberSp":{"regex":/^[0-9\ ]+$/,"alertText":"* Только числа"},"onlyLetterSp":{"regex":/^[a-zA-Z\u0400-\u04FF\ \']+$/,"alertText":"* Только буквы"},"onlyLetterNumber":{"regex":/^[0-9a-zA-Z\u0400-\u04FF]+$/,"alertText":"* Запрещены специальные символы"},"ajaxUserCall":{"url":"ajaxValidateFieldUser","extraData":"name=eric","alertText":"* Этот пользователь уже занят","alertTextLoad":"* Проверка, подождите..."},"ajaxNameCall":{"url":"ajaxValidateFieldName","alertText":"* Это имя уже занято","alertTextOk":"* Это имя доступно","alertTextLoad":"* Проверка, подождите..."},"validate2fields":{"alertText":"* Пожалуйста, введите HELLO"}};}};$.validationEngineLanguage.newLang();})(jQuery);}catch(e){} try{(function($){"use strict";var methods={init:function(options){var form=this;if(!form.data('jqv')||form.data('jqv')==null){options=methods._saveOptions(form,options);$(document).on("click",".formError",function(){$(this).fadeOut(150,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});});} return this;},attach:function(userOptions){var form=this;var options;if(userOptions) options=methods._saveOptions(form,userOptions);else options=form.data('jqv');options.validateAttribute=(form.find("[data-validation-engine*=validate]").length)?"data-validation-engine":"class";if(options.binded){form.on(options.validationEventTrigger,"["+options.validateAttribute+"*=validate]:not([type=checkbox]):not([type=radio]):not(.datepicker)",methods._onFieldEvent);form.on("click","["+options.validateAttribute+"*=validate][type=checkbox],["+options.validateAttribute+"*=validate][type=radio]",methods._onFieldEvent);form.on(options.validationEventTrigger,"["+options.validateAttribute+"*=validate][class*=datepicker]",{"delay":300},methods._onFieldEvent);} if(options.autoPositionUpdate){$(window).bind("resize",{"noAnimation":true,"formElem":form},methods.updatePromptsPosition);} form.on("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",methods._submitButtonClick);form.removeData('jqv_submitButton');form.on("submit",methods._onSubmitEvent);return this;},detach:function(){var form=this;var options=form.data('jqv');form.find("["+options.validateAttribute+"*=validate]").not("[type=checkbox]").off(options.validationEventTrigger,methods._onFieldEvent);form.find("["+options.validateAttribute+"*=validate][type=checkbox],[class*=validate][type=radio]").off("click",methods._onFieldEvent);form.off("submit",methods.onAjaxFormComplete);form.off("submit",methods.onAjaxFormComplete);form.removeData('jqv');form.off("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",methods._submitButtonClick);form.removeData('jqv_submitButton');if(options.autoPositionUpdate) $(window).unbind("resize",methods.updatePromptsPosition);return this;},validate:function(){var element=$(this);var valid=null;if(element.is("form")||element.hasClass("validationEngineContainer")){if(element.hasClass('validating')){return false;}else{element.addClass('validating');var options=element.data('jqv');var valid=methods._validateFields(this);setTimeout(function(){element.removeClass('validating');},100);if(valid&&options.onSuccess){options.onSuccess();}else if(!valid&&options.onFailure){options.onFailure();}}}else if(element.is('form')||element.hasClass('validationEngineContainer')){element.removeClass('validating');}else{var form=element.closest('form, .validationEngineContainer'),options=(form.data('jqv'))?form.data('jqv'):$.validationEngine.defaults,valid=methods._validateField(element,options);if(valid&&options.onFieldSuccess) options.onFieldSuccess();else if(options.onFieldFailure&&options.InvalidFields.length>0){options.onFieldFailure();}} if(options.onValidationComplete){return!!options.onValidationComplete(form,valid);} return valid;},updatePromptsPosition:function(event){if(event&&this==window){var form=event.data.formElem;var noAnimation=event.data.noAnimation;} else var form=$(this.closest('form, .validationEngineContainer'));var options=form.data('jqv');form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each(function(){var field=$(this);if(options.prettySelect&&field.is(":hidden")) field=form.find("#"+options.usePrefix+field.attr('id')+options.useSuffix);var prompt=methods._getPrompt(field);var promptText=$(prompt).find(".formErrorContent").html();if(prompt) methods._updatePrompt(field,$(prompt),promptText,undefined,false,options,noAnimation);});return this;},showPrompt:function(promptText,type,promptPosition,showArrow){var form=this.closest('form, .validationEngineContainer');var options=form.data('jqv');if(!options) options=methods._saveOptions(this,options);if(promptPosition) options.promptPosition=promptPosition;options.showArrow=showArrow==true;methods._showPrompt(this,promptText,type,false,options);return this;},hide:function(){var form=$(this).closest('form, .validationEngineContainer');var options=form.data('jqv');var fadeDuration=(options&&options.fadeDuration)?options.fadeDuration:0.3;var closingtag;if($(this).is("form")||$(this).hasClass("validationEngineContainer")){closingtag="parentForm"+methods._getClassName($(this).attr("id"));}else{closingtag=methods._getClassName($(this).attr("id"))+"formError";} $('.'+closingtag).fadeTo(fadeDuration,0.3,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});return this;},hideAll:function(){var form=this;var options=form.data('jqv');var duration=options?options.fadeDuration:300;$('.formError').fadeTo(duration,300,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});return this;},_onFieldEvent:function(event){var field=$(this);var form=field.closest('form, .validationEngineContainer');var options=form.data('jqv');options.eventTrigger="field";window.setTimeout(function(){methods._validateField(field,options);if(options.InvalidFields.length==0&&options.onFieldSuccess){options.onFieldSuccess();}else if(options.InvalidFields.length>0&&options.onFieldFailure){options.onFieldFailure();}},(event.data)?event.data.delay:0);},_onSubmitEvent:function(){var form=$(this);var options=form.data('jqv');if(form.data("jqv_submitButton")){var submitButton=$("#"+form.data("jqv_submitButton"));if(submitButton){if(submitButton.length>0){if(submitButton.hasClass("validate-skip")||submitButton.attr("data-validation-engine-skip")=="true") return true;}}} options.eventTrigger="submit";var r=methods._validateFields(form);if(r&&options.ajaxFormValidation){methods._validateFormWithAjax(form,options);return false;} if(options.onValidationComplete){return!!options.onValidationComplete(form,r);} return r;},_checkAjaxStatus:function(options){var status=true;$.each(options.ajaxValidCache,function(key,value){if(!value){status=false;return false;}});return status;},_checkAjaxFieldStatus:function(fieldid,options){return options.ajaxValidCache[fieldid]==true;},_validateFields:function(form){var options=form.data('jqv');var errorFound=false;form.trigger("jqv.form.validating");var first_err=null;form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each(function(){var field=$(this);var names=[];if($.inArray(field.attr('name'),names)<0){errorFound|=methods._validateField(field,options);if(errorFound&&first_err==null) if(field.is(":hidden")&&options.prettySelect) first_err=field=form.find("#"+options.usePrefix+methods._jqSelector(field.attr('id'))+options.useSuffix);else first_err=field;if(options.doNotShowAllErrosOnSubmit) return false;names.push(field.attr('name'));if(options.showOneMessage==true&&errorFound){return false;}}});form.trigger("jqv.form.result",[errorFound]);if(errorFound){if(options.scroll){var destination=first_err.offset().top;var fixleft=first_err.offset().left;var positionType=options.promptPosition;if(typeof(positionType)=='string'&&positionType.indexOf(":")!=-1) positionType=positionType.substring(0,positionType.indexOf(":"));if(positionType!="bottomRight"&&positionType!="bottomLeft"){var prompt_err=methods._getPrompt(first_err);if(prompt_err){destination=prompt_err.offset().top;}} if(options.scrollOffset){destination-=options.scrollOffset;} if(options.isOverflown){var overflowDIV=$(options.overflownDIV);if(!overflowDIV.length)return false;var scrollContainerScroll=overflowDIV.scrollTop();var scrollContainerPos=-parseInt(overflowDIV.offset().top);destination+=scrollContainerScroll+scrollContainerPos-5;var scrollContainer=$(options.overflownDIV+":not(:animated)");scrollContainer.animate({scrollTop:destination},1100,function(){if(options.focusFirstField)first_err.focus();});}else{$("html, body").animate({scrollTop:destination},1100,function(){if(options.focusFirstField)first_err.focus();});$("html, body").animate({scrollLeft:fixleft},1100)}}else if(options.focusFirstField) first_err.focus();return false;} return true;},_validateFormWithAjax:function(form,options){var data=form.serialize();var type=(options.ajaxFormValidationMethod)?options.ajaxFormValidationMethod:"GET";var url=(options.ajaxFormValidationURL)?options.ajaxFormValidationURL:form.attr("action");var dataType=(options.dataType)?options.dataType:"json";$.ajax({type:type,url:url,cache:false,dataType:dataType,data:data,form:form,methods:methods,options:options,beforeSend:function(){return options.onBeforeAjaxFormValidation(form,options);},error:function(data,transport){methods._ajaxError(data,transport);},success:function(json){if((dataType=="json")&&(json!==true)){var errorInForm=false;for(var i=0;i0){limitErrors=true;} var form=$(field.closest("form, .validationEngineContainer"));for(var i=0;i=options.maxErrorsPerField){if(!required){var have_required=$.inArray('required',rules);required=(have_required!=-1&&have_required>=i);} break;} var errorMsg=undefined;switch(rules[i]){case"required":required=true;errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._required);break;case"custom":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._custom);break;case"groupRequired":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";var firstOfGroup=form.find(classGroup).eq(0);if(firstOfGroup[0]!=field[0]){methods._validateField(firstOfGroup,options,skipAjaxValidation);options.showArrow=true;} errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._groupRequired);if(errorMsg)required=true;options.showArrow=false;break;case"ajax":errorMsg=methods._ajax(field,rules,i,options);if(errorMsg){promptType="load";} break;case"minSize":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._minSize);break;case"maxSize":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._maxSize);break;case"min":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._min);break;case"max":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._max);break;case"past":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._past);break;case"future":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._future);break;case"dateRange":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";options.firstOfGroup=form.find(classGroup).eq(0);options.secondOfGroup=form.find(classGroup).eq(1);if(options.firstOfGroup[0].value||options.secondOfGroup[0].value){errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._dateRange);} if(errorMsg)required=true;options.showArrow=false;break;case"dateTimeRange":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";options.firstOfGroup=form.find(classGroup).eq(0);options.secondOfGroup=form.find(classGroup).eq(1);if(options.firstOfGroup[0].value||options.secondOfGroup[0].value){errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._dateTimeRange);} if(errorMsg)required=true;options.showArrow=false;break;case"maxCheckbox":field=$(form.find("input[name='"+fieldName+"']"));errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._maxCheckbox);break;case"minCheckbox":field=$(form.find("input[name='"+fieldName+"']"));errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._minCheckbox);break;case"equals":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._equals);break;case"funcCall":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._funcCall);break;case"creditCard":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._creditCard);break;case"condRequired":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._condRequired);if(errorMsg!==undefined){required=true;} break;default:} var end_validation=false;if(typeof errorMsg=="object"){switch(errorMsg.status){case"_break":end_validation=true;break;case"_error":errorMsg=errorMsg.message;break;case"_error_no_prompt":return true;break;default:break;}} if(end_validation){break;} if(typeof errorMsg=='string'){promptText+=errorMsg+"
    ";options.isError=true;field_errors++;}} if(!required&&!(field.val())&&field.val().length<1)options.isError=false;var fieldType=field.prop("type");var positionType=field.data("promptPosition")||options.promptPosition;if((fieldType=="radio"||fieldType=="checkbox")&&form.find("input[name='"+fieldName+"']").size()>1){if(positionType==='inline'){field=$(form.find("input[name='"+fieldName+"'][type!=hidden]:last"));}else{field=$(form.find("input[name='"+fieldName+"'][type!=hidden]:first"));} options.showArrow=false;} if(field.is(":hidden")&&options.prettySelect){field=form.find("#"+options.usePrefix+methods._jqSelector(field.attr('id'))+options.useSuffix);} if(options.isError&&options.showPrompts){methods._showPrompt(field,promptText,promptType,false,options);}else{if(!isAjaxValidator)methods._closePrompt(field);} if(!isAjaxValidator){field.trigger("jqv.field.result",[field,options.isError,promptText]);} var errindex=$.inArray(field[0],options.InvalidFields);if(errindex==-1){if(options.isError) options.InvalidFields.push(field[0]);}else if(!options.isError){options.InvalidFields.splice(errindex,1);} methods._handleStatusCssClasses(field,options);if(options.isError&&options.onFieldFailure) options.onFieldFailure(field);if(!options.isError&&options.onFieldSuccess) options.onFieldSuccess(field);return options.isError;},_handleStatusCssClasses:function(field,options){if(options.addSuccessCssClassToField) field.removeClass(options.addSuccessCssClassToField);if(options.addFailureCssClassToField) field.removeClass(options.addFailureCssClassToField);if(options.addSuccessCssClassToField&&!options.isError) field.addClass(options.addSuccessCssClassToField);if(options.addFailureCssClassToField&&options.isError) field.addClass(options.addFailureCssClassToField);},_getErrorMessage:function(form,field,rule,rules,i,options,originalValidationMethod){var rule_index=jQuery.inArray(rule,rules);if(rule==="custom"||rule==="funcCall"){var custom_validation_type=rules[rule_index+1];rule=rule+"["+custom_validation_type+"]";delete(rules[rule_index]);} var alteredRule=rule;var element_classes=(field.attr("data-validation-engine"))?field.attr("data-validation-engine"):field.attr("class");var element_classes_array=element_classes.split(" ");var errorMsg;if(rule=="future"||rule=="past"||rule=="maxCheckbox"||rule=="minCheckbox"){errorMsg=originalValidationMethod(form,field,rules,i,options);}else{errorMsg=originalValidationMethod(field,rules,i,options);} if(errorMsg!=undefined){var custom_message=methods._getCustomErrorMessage($(field),element_classes_array,alteredRule,options);if(custom_message)errorMsg=custom_message;} return errorMsg;},_getCustomErrorMessage:function(field,classes,rule,options){var custom_message=false;var validityProp=methods._validityProp[rule];if(validityProp!=undefined){custom_message=field.attr("data-errormessage-"+validityProp);if(custom_message!=undefined) return custom_message;} custom_message=field.attr("data-errormessage");if(custom_message!=undefined) return custom_message;var id='#'+field.attr("id");if(typeof options.custom_error_messages[id]!="undefined"&&typeof options.custom_error_messages[id][rule]!="undefined"){custom_message=options.custom_error_messages[id][rule]['message'];}else if(classes.length>0){for(var i=0;i0;i++){var element_class="."+classes[i];if(typeof options.custom_error_messages[element_class]!="undefined"&&typeof options.custom_error_messages[element_class][rule]!="undefined"){custom_message=options.custom_error_messages[element_class][rule]['message'];break;}}} if(!custom_message&&typeof options.custom_error_messages[rule]!="undefined"&&typeof options.custom_error_messages[rule]['message']!="undefined"){custom_message=options.custom_error_messages[rule]['message'];} return custom_message;},_validityProp:{"required":"value-missing","custom":"custom-error","groupRequired":"value-missing","ajax":"custom-error","minSize":"range-underflow","maxSize":"range-overflow","min":"range-underflow","max":"range-overflow","past":"type-mismatch","future":"type-mismatch","dateRange":"type-mismatch","dateTimeRange":"type-mismatch","maxCheckbox":"range-overflow","minCheckbox":"range-underflow","equals":"pattern-mismatch","funcCall":"custom-error","creditCard":"pattern-mismatch","condRequired":"value-missing"},_required:function(field,rules,i,options,condRequired){switch(field.prop("type")){case"text":case"password":case"textarea":case"file":case"select-one":case"select-multiple":default:var field_val=$.trim(field.val());var dv_placeholder=$.trim(field.attr("data-validation-placeholder"));var placeholder=$.trim(field.attr("placeholder"));if((!field_val)||(dv_placeholder&&field_val==dv_placeholder)||(placeholder&&field_val==placeholder)){return options.allrules[rules[i]].alertText;} break;case"radio":case"checkbox":if(condRequired){if(!field.attr('checked')){return options.allrules[rules[i]].alertTextCheckboxMultiple;} break;} var form=field.closest("form, .validationEngineContainer");var name=field.attr("name");if(form.find("input[name='"+name+"']:checked").size()==0){if(form.find("input[name='"+name+"']:visible").size()==1) return options.allrules[rules[i]].alertTextCheckboxe;else return options.allrules[rules[i]].alertTextCheckboxMultiple;} break;}},_groupRequired:function(field,rules,i,options){var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";var isValid=false;field.closest("form, .validationEngineContainer").find(classGroup).each(function(){if(!methods._required($(this),rules,i,options)){isValid=true;return false;}});if(!isValid){return options.allrules[rules[i]].alertText;}},_custom:function(field,rules,i,options){var customRule=rules[i+1];var rule=options.allrules[customRule];var fn;if(!rule){alert("jqv:custom rule not found - "+customRule);return;} if(rule["regex"]){var ex=rule.regex;if(!ex){alert("jqv:custom regex not found - "+customRule);return;} var pattern=new RegExp(ex);if(!pattern.test(field.val()))return options.allrules[customRule].alertText;}else if(rule["func"]){fn=rule["func"];if(typeof(fn)!=="function"){alert("jqv:custom parameter 'function' is no function - "+customRule);return;} if(!fn(field,rules,i,options)) return options.allrules[customRule].alertText;}else{alert("jqv:custom type not allowed "+customRule);return;}},_funcCall:function(field,rules,i,options){var functionName=rules[i+1];var fn;if(functionName.indexOf('.')>-1){var namespaces=functionName.split('.');var scope=window;while(namespaces.length){scope=scope[namespaces.shift()];} fn=scope;} else fn=window[functionName]||options.customFunctions[functionName];if(typeof(fn)=='function') return fn(field,rules,i,options);},_equals:function(field,rules,i,options){var equalsField=rules[i+1];if(field.val()!=$("#"+equalsField).val()) return options.allrules.equals.alertText;},_maxSize:function(field,rules,i,options){var max=rules[i+1];var len=field.val().length;if(len>max){var rule=options.allrules.maxSize;return rule.alertText+max+rule.alertText2;}},_minSize:function(field,rules,i,options){var min=rules[i+1];var len=field.val().length;if(lenmax){var rule=options.allrules.max;if(rule.alertText2)return rule.alertText+max+rule.alertText2;return rule.alertText+max;}},_past:function(form,field,rules,i,options){var p=rules[i+1];var fieldAlt=$(form.find("input[name='"+p.replace(/^#+/,'')+"']"));var pdate;if(p.toLowerCase()=="now"){pdate=new Date();}else if(undefined!=fieldAlt.val()){if(fieldAlt.is(":disabled")) return;pdate=methods._parseDate(fieldAlt.val());}else{pdate=methods._parseDate(p);} var vdate=methods._parseDate(field.val());if(vdate>pdate){var rule=options.allrules.past;if(rule.alertText2)return rule.alertText+methods._dateToString(pdate)+rule.alertText2;return rule.alertText+methods._dateToString(pdate);}},_future:function(form,field,rules,i,options){var p=rules[i+1];var fieldAlt=$(form.find("input[name='"+p.replace(/^#+/,'')+"']"));var pdate;if(p.toLowerCase()=="now"){pdate=new Date();}else if(undefined!=fieldAlt.val()){if(fieldAlt.is(":disabled")) return;pdate=methods._parseDate(fieldAlt.val());}else{pdate=methods._parseDate(p);} var vdate=methods._parseDate(field.val());if(vdatenbCheck){options.showArrow=false;if(options.allrules.maxCheckbox.alertText2) return options.allrules.maxCheckbox.alertText+" "+nbCheck+" "+options.allrules.maxCheckbox.alertText2;return options.allrules.maxCheckbox.alertText;}},_minCheckbox:function(form,field,rules,i,options){var nbCheck=rules[i+1];var groupname=field.attr("name");var groupSize=form.find("input[name='"+groupname+"']:checked").size();if(groupSize=14&&numDigits<=16&&parseInt(cardNumber)>0){var sum=0,i=numDigits-1,pos=1,digit,luhn=new String();do{digit=parseInt(cardNumber.charAt(i));luhn+=(pos++%2==0)?digit*2:digit;}while(--i>=0) for(i=0;i');prompt.addClass(methods._getClassName(field.attr("id"))+"formError");prompt.addClass("parentForm"+methods._getClassName(field.closest('form, .validationEngineContainer').attr("id")));prompt.addClass("formError");switch(type){case"pass":prompt.addClass("greenPopup");break;case"load":prompt.addClass("blackPopup");break;default:} if(ajaxed) prompt.addClass("ajaxed");var promptContent=$('
    ').addClass("formErrorContent").html(promptText).appendTo(prompt);var positionType=field.data("promptPosition")||options.promptPosition;if(options.showArrow){var arrow=$('
    ').addClass("formErrorArrow");if(typeof(positionType)=='string'){var pos=positionType.indexOf(":");if(pos!=-1) positionType=positionType.substring(0,pos);} switch(positionType){case"bottomLeft":case"bottomRight":prompt.find(".formErrorContent").before(arrow);arrow.addClass("formErrorArrowBottom").html('
    ');break;case"topLeft":case"topRight":arrow.html('
    ');prompt.append(arrow);break;}} if(options.addPromptClass) prompt.addClass(options.addPromptClass);var requiredOverride=field.attr('data-required-class');if(requiredOverride!==undefined){prompt.addClass(requiredOverride);}else{if(options.prettySelect){if($('#'+field.attr('id')).next().is('select')){var prettyOverrideClass=$('#'+field.attr('id').substr(options.usePrefix.length).substring(options.useSuffix.length)).attr('data-required-class');if(prettyOverrideClass!==undefined){prompt.addClass(prettyOverrideClass);}}}} prompt.css({"opacity":0});if(positionType==='inline'){prompt.addClass("inline");if(typeof field.attr('data-prompt-target')!=='undefined'&&$('#'+field.attr('data-prompt-target')).length>0){prompt.appendTo($('#'+field.attr('data-prompt-target')));}else{field.after(prompt);}}else{field.before(prompt);} var pos=methods._calculatePosition(field,prompt,options);prompt.css({'position':positionType==='inline'?'relative':'absolute',"top":pos.callerTopPosition,"left":pos.callerleftPosition,"marginTop":pos.marginTopSize,"opacity":0}).data("callerField",field);if(options.autoHidePrompt){setTimeout(function(){prompt.animate({"opacity":0},function(){prompt.closest('.formErrorOuter').remove();prompt.remove();});},options.autoHideDelay);} return prompt.animate({"opacity":0.87});},_updatePrompt:function(field,prompt,promptText,type,ajaxed,options,noAnimation){if(prompt){if(typeof type!=="undefined"){if(type=="pass") prompt.addClass("greenPopup");else prompt.removeClass("greenPopup");if(type=="load") prompt.addClass("blackPopup");else prompt.removeClass("blackPopup");} if(ajaxed) prompt.addClass("ajaxed");else prompt.removeClass("ajaxed");prompt.find(".formErrorContent").html(promptText);var pos=methods._calculatePosition(field,prompt,options);var css={"top":pos.callerTopPosition,"left":pos.callerleftPosition,"marginTop":pos.marginTopSize};if(noAnimation) prompt.css(css);else prompt.animate(css);}},_closePrompt:function(field){var prompt=methods._getPrompt(field);if(prompt) prompt.fadeTo("fast",0,function(){prompt.parent('.formErrorOuter').remove();prompt.remove();});},closePrompt:function(field){return methods._closePrompt(field);},_getPrompt:function(field){var formId=$(field).closest('form, .validationEngineContainer').attr('id');var className=methods._getClassName(field.attr("id"))+"formError";var match=$("."+methods._escapeExpression(className)+'.parentForm'+formId)[0];if(match) return $(match);},_escapeExpression:function(selector){return selector.replace(/([#;&,\.\+\*\~':"\!\^$\[\]\(\)=>\|])/g,"\\$1");},isRTL:function(field){var $document=$(document);var $body=$('body');var rtl=(field&&field.hasClass('rtl'))||(field&&(field.attr('dir')||'').toLowerCase()==='rtl')||$document.hasClass('rtl')||($document.attr('dir')||'').toLowerCase()==='rtl'||$body.hasClass('rtl')||($body.attr('dir')||'').toLowerCase()==='rtl';return Boolean(rtl);},_calculatePosition:function(field,promptElmt,options){var promptTopPosition,promptleftPosition,marginTopSize;var fieldWidth=field.width();var fieldLeft=field.position().left;var fieldTop=field.position().top;var fieldHeight=field.height();var promptHeight=promptElmt.height();promptTopPosition=promptleftPosition=0;marginTopSize=-promptHeight;var positionType=field.data("promptPosition")||options.promptPosition;var shift1="";var shift2="";var shiftX=0;var shiftY=0;if(typeof(positionType)=='string'){if(positionType.indexOf(":")!=-1){shift1=positionType.substring(positionType.indexOf(":")+1);positionType=positionType.substring(0,positionType.indexOf(":"));if(shift1.indexOf(",")!=-1){shift2=shift1.substring(shift1.indexOf(",")+1);shift1=shift1.substring(0,shift1.indexOf(","));shiftY=parseInt(shift2);if(isNaN(shiftY))shiftY=0;};shiftX=parseInt(shift1);if(isNaN(shift1))shift1=0;};};switch(positionType){default:case"topRight":promptleftPosition+=fieldLeft+fieldWidth-30;promptTopPosition+=fieldTop;break;case"topLeft":promptTopPosition+=fieldTop;promptleftPosition+=fieldLeft;break;case"centerRight":promptTopPosition=fieldTop+4;marginTopSize=0;promptleftPosition=fieldLeft+field.outerWidth(true)+5;break;case"centerLeft":promptleftPosition=fieldLeft-(promptElmt.width()+2);promptTopPosition=fieldTop+4;marginTopSize=0;break;case"bottomLeft":promptTopPosition=fieldTop+field.height()+5;marginTopSize=0;promptleftPosition=fieldLeft;break;case"bottomRight":promptleftPosition=fieldLeft+fieldWidth-30;promptTopPosition=fieldTop+field.height()+5;marginTopSize=0;break;case"inline":promptleftPosition=0;promptTopPosition=0;marginTopSize=0;};promptleftPosition+=shiftX;promptTopPosition+=shiftY;return{"callerTopPosition":promptTopPosition+"px","callerleftPosition":promptleftPosition+"px","marginTopSize":marginTopSize+"px"};},_saveOptions:function(form,options){if($.validationEngineLanguage) var allRules=$.validationEngineLanguage.allRules;else $.error("jQuery.validationEngine rules are not loaded, plz add localization files to the page");$.validationEngine.defaults.allrules=allRules;var userOptions=$.extend(true,{},$.validationEngine.defaults,options);form.data('jqv',userOptions);return userOptions;},_getClassName:function(className){if(className) return className.replace(/:/g,"_").replace(/\./g,"_");},_jqSelector:function(str){return str.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,'\\$1');},_condRequired:function(field,rules,i,options){var idx,dependingField;for(idx=(i+1);idxe;e++){if(parseInt(a[e])>parseInt(n[e]))return 1;if(parseInt(a[e])n.length?1:a.length'+wysijaAJAX.loadingTrans+"
    "),t("#"+l).fadeOut(),t.ajax({type:"post",url:wysijaAJAX.ajaxurl,data:wysijaAJAX,success:function(i){t("#msg-"+l).html('
    '),i.result||t("#"+l).fadeIn(),t.each(i.msgs,function(i,a){t("#msg-"+l+" .allmsgs ."+i+" ul").length||t("#msg-"+l+" .allmsgs").append('
      '),t.each(a,function(a,n){t("#msg-"+l+" .allmsgs ."+i+" ul").append("
    • "+n+"
    • ")})})},error:function(i,a,n){t("#msg-"+l).html('
      '),t("#msg-"+l+" .allmsgs").html('
      • Oops! There is a problem with this form:
      • textStatus:'+a+"
      • errorThrown:"+n+"
      • responseText:"+i.responseText+"
      ")},dataType:"jsonp"})}return!1}),t(function(){var i="centerRight";wysijaAJAX.is_rtl&&(i="centerLeft"),t("form.widget_wysija").validationEngine("attach",{promptPosition:i,scroll:!1}),t("form.widget_wysija").bind("jqv.form.validating",function(){t(this).find("input[placeholder]").each(function(){t(this).val()===t(this).attr("placeholder")&&t(this).val("")})}),t("form.widget_wysija").find("input[placeholder]").each(function(){""===t(this).val()&&t(this).val(t(this).attr("placeholder"))}),t("form.widget_wysija").bind("jqv.form.validating",function(){t(this).find("input.defaultlabels").each(function(){t(this).val()===t(this).attr("title")&&t(this).val("")})}),t("form.widget_wysija").find("input.defaultlabels").each(function(){""===t(this).val()&&t(this).val(t(this).attr("title"))})})});}catch(e){} try{window.bsfmodernizr=function(a,b,c){function d(a){s.cssText=a}function e(a,b){return typeof a===b}function f(a,b){return!!~(""+a).indexOf(b)}function g(a,b){for(var d in a){var e=a[d];if(!f(e,"-")&&s[e]!==c)return"pfx"!=b||e}return!1}function h(a,b,d){for(var f in a){var g=b[a[f]];if(g!==c)return d===!1?a[f]:e(g,"function")?g.bind(d||b):g}return!1}function i(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+u.join(d+" ")+d).split(" ");return e(b,"string")||e(b,"undefined")?g(f,b):(f=(a+" "+v.join(d+" ")+d).split(" "),h(f,b,c))}var j,k,l,m="2.7.1",n={},o=!0,p=b.documentElement,q="bsfmodernizr",r=b.createElement(q),s=r.style,t=({}.toString,"Webkit Moz O ms"),u=t.split(" "),v=t.toLowerCase().split(" "),w={},x=[],y=x.slice,z={}.hasOwnProperty;l=e(z,"undefined")||e(z.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return z.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=y.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(y.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(y.call(arguments)))};return d}),w.csstransitions=function(){return i("transition")};for(var A in w)l(w,A)&&(k=A.toLowerCase(),n[k]=w[A](),x.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),n._version=m,n._domPrefixes=v,n._cssomPrefixes=u,n.testProp=function(a){return g([a])},n.testAllProps=i,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+x.join(" "):""),n}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;c",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),n._version=m,n._domPrefixes=v,n._cssomPrefixes=u,n.testProp=function(a){return g([a])},n.testAllProps=i,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+x.join(" "):""),n}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;cc;c++)b+=a[c],2>c&&(b+="/");return g=b,this},api:function(a,c){if(!this.element||!a)return!1;var e=this.element,f=""!==e.id?e.id:null,g=c&&c.constructor&&c.call&&c.apply?null:c,h=c&&c.constructor&&c.call&&c.apply?c:null;return h&&d(a,h,f),b(a,g,e),this},addEvent:function(a,c){if(!this.element)return!1;var e=this.element,g=""!==e.id?e.id:null;return d(a,c,g),"ready"!=a?b("addEventListener",a,e):"ready"==a&&f&&c.call(null,g),this},removeEvent:function(a){if(!this.element)return!1;var c,d=this.element;a:{if((c=""!==d.id?d.id:null)&&e[c]){if(!e[c][a]){c=!1;break a}e[c][a]=null}else{if(!e[a]){c=!1;break a}e[a]=null}c=!0}"ready"!=a&&c&&b("removeEventListener",a,d)}},a.fn.init.prototype=a.fn,window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c),window.Froogaloop=window.$f=a}();!function(a){var b,c,d="0.4.2",e="hasOwnProperty",f=/[\.\/]/,g="*",h=function(){},i=function(a,b){return a-b},j={n:{}},k=function(a,d){a=String(a);var e,f=c,g=Array.prototype.slice.call(arguments,2),h=k.listeners(a),j=0,l=[],m={},n=[],o=b;b=a,c=0;for(var p=0,q=h.length;q>p;p++)"zIndex"in h[p]&&(l.push(h[p].zIndex),h[p].zIndex<0&&(m[h[p].zIndex]=h[p]));for(l.sort(i);l[j]<0;)if(e=m[l[j++]],n.push(e.apply(d,g)),c)return c=f,n;for(p=0;q>p;p++)if(e=h[p],"zIndex"in e)if(e.zIndex==l[j]){if(n.push(e.apply(d,g)),c)break;do if(j++,e=m[l[j]],e&&n.push(e.apply(d,g)),c)break;while(e)}else m[e.zIndex]=e;else if(n.push(e.apply(d,g)),c)break;return c=f,b=o,n.length?n:null};k._events=j,k.listeners=function(a){var b,c,d,e,h,i,k,l,m=a.split(f),n=j,o=[n],p=[];for(e=0,h=m.length;h>e;e++){for(l=[],i=0,k=o.length;k>i;i++)for(n=o[i].n,c=[n[m[e]],n[g]],d=2;d--;)b=c[d],b&&(l.push(b),p=p.concat(b.f||[]));o=l}return p},k.on=function(a,b){if(a=String(a),"function"!=typeof b)return function(){};for(var c=a.split(f),d=j,e=0,g=c.length;g>e;e++)d=d.n,d=d.hasOwnProperty(c[e])&&d[c[e]]||(d[c[e]]={n:{}});for(d.f=d.f||[],e=0,g=d.f.length;g>e;e++)if(d.f[e]==b)return h;return d.f.push(b),function(a){+a==+a&&(b.zIndex=+a)}},k.f=function(a){var b=[].slice.call(arguments,1);return function(){k.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}},k.stop=function(){c=1},k.nt=function(a){return a?new RegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)").test(b):b},k.nts=function(){return b.split(f)},k.off=k.unbind=function(a,b){if(!a)return void(k._events=j={n:{}});var c,d,h,i,l,m,n,o=a.split(f),p=[j];for(i=0,l=o.length;l>i;i++)for(m=0;mi;i++)for(c=p[i];c.n;){if(b){if(c.f){for(m=0,n=c.f.length;n>m;m++)if(c.f[m]==b){c.f.splice(m,1);break}!c.f.length&&delete c.f}for(d in c.n)if(c.n[e](d)&&c.n[d].f){var q=c.n[d].f;for(m=0,n=q.length;n>m;m++)if(q[m]==b){q.splice(m,1);break}!q.length&&delete c.n[d].f}}else{delete c.f;for(d in c.n)c.n[e](d)&&c.n[d].f&&delete c.n[d].f}c=c.n}},k.once=function(a,b){var c=function(){return k.unbind(a,c),b.apply(this,arguments)};return k.on(a,c)},k.version=d,k.toString=function(){return"You are running Eve "+d},"undefined"!=typeof module&&module.exports?module.exports=k:"undefined"!=typeof define?define("eve",[],function(){return k}):a.eve=k}(this),function(a,b){"function"==typeof define&&define.amd?define(["eve"],function(c){return b(a,c)}):b(a,a.eve)}(this,function(a,b){var c=function(b){var c={},d=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){setTimeout(a,16)},e=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},f=0,g="M"+(+new Date).toString(36),h=function(){return g+(f++).toString(36)},i=Date.now||function(){return+new Date},j=function(a){var b=this;if(null==a)return b.s;var c=b.s-a;b.b+=b.dur*c,b.B+=b.dur*c,b.s=a},k=function(a){var b=this;return null==a?b.spd:void(b.spd=a)},l=function(a){var b=this;return null==a?b.dur:(b.s=b.s*a/b.dur,void(b.dur=a))},m=function(){var a=this;delete c[a.id],b("mina.stop."+a.id,a)},n=function(){var a=this;a.pdif||(delete c[a.id],a.pdif=a.get()-a.b)},o=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,c[a.id]=a)},p=function(){var a=0;for(var f in c)if(c.hasOwnProperty(f)){var g,h=c[f],i=h.get();if(a++,h.s=(i-h.b)/(h.dur/h.spd),h.s>=1&&(delete c[f],h.s=1,a--,function(a){setTimeout(function(){b("mina.finish."+a.id,a)})}(h)),e(h.start)){g=[];for(var j=0,k=h.start.length;k>j;j++)g[j]=+h.start[j]+(h.end[j]-h.start[j])*h.easing(h.s)}else g=+h.start+(h.end-h.start)*h.easing(h.s);h.set(g)}a&&d(p)},q=function(a,b,e,f,g,i,r){var s={id:h(),start:a,end:b,b:e,s:0,dur:f-e,spd:1,get:g,set:i,easing:r||q.linear,status:j,speed:k,duration:l,stop:m,pause:n,resume:o};c[s.id]=s;var t,u=0;for(t in c)if(c.hasOwnProperty(t)&&(u++,2==u))break;return 1==u&&d(p),s};return q.time=i,q.getById=function(a){return c[a]||null},q.linear=function(a){return a},q.easeout=function(a){return Math.pow(a,1.7)},q.easein=function(a){return Math.pow(a,.48)},q.easeinout=function(a){if(1==a)return 1;if(0==a)return 0;var b=.48-a/1.04,c=Math.sqrt(.1734+b*b),d=c-b,e=Math.pow(Math.abs(d),1/3)*(0>d?-1:1),f=-c-b,g=Math.pow(Math.abs(f),1/3)*(0>f?-1:1),h=e+g+.5;return 3*(1-h)*h*h+h*h*h},q.backin=function(a){if(1==a)return 1;var b=1.70158;return a*a*((b+1)*a-b)},q.backout=function(a){if(0==a)return 0;a-=1;var b=1.70158;return a*a*((b+1)*a+b)+1},q.elastic=function(a){return a==!!a?a:Math.pow(2,-10*a)*Math.sin(2*(a-.075)*Math.PI/.3)+1},q.bounce=function(a){var b,c=7.5625,d=2.75;return 1/d>a?b=c*a*a:2/d>a?(a-=1.5/d,b=c*a*a+.75):2.5/d>a?(a-=2.25/d,b=c*a*a+.9375):(a-=2.625/d,b=c*a*a+.984375),b},a.mina=q,q}("undefined"==typeof b?function(){}:b),d=function(){function d(a,b){if(a){if(a.tagName)return z(a);if(a instanceof u)return a;if(null==b)return a=I.doc.querySelector(a),z(a)}return a=null==a?"100%":a,b=null==b?"100%":b,new y(a,b)}function e(a,b){if(b){if("string"==typeof a&&(a=e(a)),"string"==typeof b)return"xlink:"==b.substring(0,6)?a.getAttributeNS(fa,b.substring(6)):"xml:"==b.substring(0,4)?a.getAttributeNS(ga,b.substring(4)):a.getAttribute(b);for(var c in b)if(b[J](c)){var d=K(b[c]);d?"xlink:"==c.substring(0,6)?a.setAttributeNS(fa,c.substring(6),d):"xml:"==c.substring(0,4)?a.setAttributeNS(ga,c.substring(4),d):a.setAttribute(c,d):a.removeAttribute(c)}}else a=I.doc.createElementNS(ga,a);return a}function f(a,b){return b=K.prototype.toLowerCase.call(b),"finite"==b?isFinite(a):!("array"!=b||!(a instanceof Array||Array.isArray&&Array.isArray(a)))||("null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||U.call(a).slice(8,-1).toLowerCase()==b)}function h(a){if("function"==typeof a||Object(a)!==a)return a;var b=new a.constructor;for(var c in a)a[J](c)&&(b[c]=h(a[c]));return b}function i(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return a.push(a.splice(c,1)[0])}function j(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),g=d.cache=d.cache||{},h=d.count=d.count||[];return g[J](f)?(i(h,f),c?c(g[f]):g[f]):(h.length>=1e3&&delete g[h.shift()],h.push(f),g[f]=a.apply(b,e),c?c(g[f]):g[f])}return d}function k(a,b,c,d,e,f){if(null==e){var g=a-c,h=b-d;return g||h?(180+180*N.atan2(-h,-g)/R+360)%360:0}return k(a,b,e,f)-k(c,d,e,f)}function l(a){return a%360*R/180}function m(a){return 180*a/R%360}function n(a,b,c,d,e,f){return null==b&&"[object SVGMatrix]"==U.call(a)?(this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,void(this.f=a.f)):void(null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}function o(a){var b=[];return a=a.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(a,c,d){return d=d.split(/\s*,\s*|\s+/),"rotate"==c&&1==d.length&&d.push(0,0),"scale"==c&&(2==d.length&&d.push(0,0),1==d.length&&d.push(d[0],0,0)),"skewX"==c?b.push(["m",1,0,N.tan(l(d[0])),1,0,0]):"skewY"==c?b.push(["m",1,N.tan(l(d[0])),0,1,0,0]):b.push([c.charAt(0)].concat(d)),a}),b}function p(a,b){var c=qa(a),d=new n;if(c)for(var e=0,f=c.length;f>e;e++){var g,h,i,j,k,l=c[e],m=l.length,o=K(l[0]).toLowerCase(),p=l[0]!=o,q=p?d.invert():0;"t"==o&&2==m?d.translate(l[1],0):"t"==o&&3==m?p?(g=q.x(0,0),h=q.y(0,0),i=q.x(l[1],l[2]),j=q.y(l[1],l[2]),d.translate(i-g,j-h)):d.translate(l[1],l[2]):"r"==o?2==m?(k=k||b,d.rotate(l[1],k.x+k.width/2,k.y+k.height/2)):4==m&&(p?(i=q.x(l[2],l[3]),j=q.y(l[2],l[3]),d.rotate(l[1],i,j)):d.rotate(l[1],l[2],l[3])):"s"==o?2==m||3==m?(k=k||b,d.scale(l[1],l[m-1],k.x+k.width/2,k.y+k.height/2)):4==m?p?(i=q.x(l[2],l[3]),j=q.y(l[2],l[3]),d.scale(l[1],l[1],i,j)):d.scale(l[1],l[1],l[2],l[3]):5==m&&(p?(i=q.x(l[3],l[4]),j=q.y(l[3],l[4]),d.scale(l[1],l[2],i,j)):d.scale(l[1],l[2],l[3],l[4])):"m"==o&&7==m&&d.add(l[1],l[2],l[3],l[4],l[5],l[6])}return d}function q(a,b){if(null==b){var c=!0;if(b="linearGradient"==a.type||"radialGradient"==a.type?a.node.getAttribute("gradientTransform"):"pattern"==a.type?a.node.getAttribute("patternTransform"):a.node.getAttribute("transform"),!b)return new n;b=o(b)}else b=d._.rgTransform.test(b)?K(b).replace(/\.{3}|\u2026/g,a._.transform||S):o(b),f(b,"array")&&(b=d.path?d.path.toString.call(b):K(b)),a._.transform=b;var e=p(b,a.getBBox(1));return c?e:void(a.matrix=e)}function r(a){var b=d._.someDefs;if(b&&ra(b.ownerDocument.documentElement,b))return b;var c=a.node.ownerSVGElement&&z(a.node.ownerSVGElement)||a.node.parentNode&&z(a.node.parentNode)||d.select("svg")||d(0,0),e=c.select("defs"),f=null!=e&&e.node;return f||(f=x("defs",c.node).node),d._.someDefs=f,f}function s(a,b,c){function d(a){return null==a?S:a==+a?a:(e(j,{width:a}),j.getBBox().width)}function f(a){return null==a?S:a==+a?a:(e(j,{height:a}),j.getBBox().height)}function g(d,e){null==b?i[d]=e(a.attr(d)):d==b&&(i=e(null==c?a.attr(d):c))}var h=r(a),i={},j=h.querySelector(".svg---mgr");switch(j||(j=e("rect"),e(j,{width:10,height:10,class:"svg---mgr"}),h.appendChild(j)),a.type){case"rect":g("rx",d),g("ry",f);case"image":g("width",d),g("height",f);case"text":g("x",d),g("y",f);break;case"circle":g("cx",d),g("cy",f),g("r",d);break;case"ellipse":g("cx",d),g("cy",f),g("rx",d),g("ry",f);break;case"line":g("x1",d),g("x2",d),g("y1",f),g("y2",f);break;case"marker":g("refX",d),g("markerWidth",d),g("refY",f),g("markerHeight",f);break;case"radialGradient":g("fx",d),g("fy",f);break;case"tspan":g("dx",d),g("dy",f);break;default:g(b,d)}return i}function t(a){f(a,"array")||(a=Array.prototype.slice.call(arguments,0));for(var b=0,c=0,d=this.node;this[b];)delete this[b++];for(b=0;bc;c++)if(b=b||a[c])return b}function w(a){this.node=a}function x(a,b){var c=e(a);b.appendChild(c);var d=z(c);return d.type=a,d}function y(a,b){var c,d,f,g=y.prototype;if(a&&"svg"==a.tagName){if(a.snap in ha)return ha[a.snap];c=new u(a),d=a.getElementsByTagName("desc")[0],f=a.getElementsByTagName("defs")[0],d||(d=e("desc"),d.appendChild(I.doc.createTextNode("Created with Snap")),c.node.appendChild(d)),f||(f=e("defs"),c.node.appendChild(f)),c.defs=f;for(var h in g)g[J](h)&&(c[h]=g[h]);c.paper=c.root=c}else c=x("svg",I.doc.body),e(c.node,{height:b,version:1.1,width:a,xmlns:ga});return c}function z(a){return a?a instanceof u||a instanceof w?a:"svg"==a.tagName?new y(a):new u(a):a}function A(){return this.selectAll("stop")}function B(a,b){var c=e("stop"),f={offset:+b+"%"};return a=d.color(a),f["stop-color"]=a.hex,a.opacity<1&&(f["stop-opacity"]=a.opacity),e(c,f),this.node.appendChild(c),this}function C(){if("linearGradient"==this.type){var a=e(this.node,"x1")||0,b=e(this.node,"x2")||1,c=e(this.node,"y1")||0,f=e(this.node,"y2")||0;return d._.box(a,c,N.abs(b-a),N.abs(f-c))}var g=this.node.cx||.5,h=this.node.cy||.5,i=this.node.r||0;return d._.box(g-i,h-i,2*i,2*i)}function D(a,c){function d(a,b){for(var c=(b-j)/(a-k),d=k;a>d;d++)h[d].offset=+(+j+c*(d-k)).toFixed(2);k=a,j=b}var f,g=v(b("snap.util.grad.parse",null,c));if(!g)return null;g.params.unshift(a),f="l"==g.type.toLowerCase()?E.apply(0,g.params):F.apply(0,g.params),g.type!=g.type.toLowerCase()&&e(f.node,{gradientUnits:"userSpaceOnUse"});var h=g.stops,i=h.length,j=0,k=0;i--;for(var l=0;i>l;l++)"offset"in h[l]&&d(l,h[l].offset);for(h[i].offset=h[i].offset||100,d(i,h[i].offset),l=0;i>=l;l++){var m=h[l];f.addStop(m.color,m.offset)}return f}function E(a,b,c,d,f){var g=x("linearGradient",a);return g.stops=A,g.addStop=B,g.getBBox=C,null!=b&&e(g.node,{x1:b,y1:c,x2:d,y2:f}),g}function F(a,b,c,d,f,g){var h=x("radialGradient",a);return h.stops=A,h.addStop=B,h.getBBox=C,null!=b&&e(h.node,{cx:b,cy:c,r:d}),null!=f&&null!=g&&e(h.node,{fx:f,fy:g}),h}function G(a){return function(c){if(b.stop(),c instanceof w&&1==c.node.childNodes.length&&("radialGradient"==c.node.firstChild.tagName||"linearGradient"==c.node.firstChild.tagName||"pattern"==c.node.firstChild.tagName)&&(c=c.node.firstChild,r(this).appendChild(c),c=z(c)),c instanceof u)if("radialGradient"==c.type||"linearGradient"==c.type||"pattern"==c.type){c.node.id||e(c.node,{id:c.id});var f=ia(c.node.id)}else f=c.attr(a);else if(f=d.color(c),f.error){var g=D(r(this),c);g?(g.node.id||e(g.node,{id:g.id}),f=ia(g.node.id)):f=c}else f=K(f);var h={};h[a]=f,e(this.node,h),this.node.style[a]=S}}function H(a){for(var b=[],c=a.childNodes,d=0,e=c.length;e>d;d++){var f=c[d];3==f.nodeType&&b.push(f.nodeValue),"tspan"==f.tagName&&(1==f.childNodes.length&&3==f.firstChild.nodeType?b.push(f.firstChild.nodeValue):b.push(H(f)))}return b}d.version="0.2.0",d.toString=function(){return"Snap v"+this.version},d._={};var I={win:a,doc:a.document};d._.glob=I;var J="hasOwnProperty",K=String,L=parseFloat,M=parseInt,N=Math,O=N.max,P=N.min,Q=N.abs,R=(N.pow,N.PI),S=(N.round,""),T=" ",U=Object.prototype.toString,V=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,W=/^url\(#?([^)]+)\)$/,X="\t\n\v\f\r   ᠎              \u2028\u2029",Y=new RegExp("[,"+X+"]+"),Z=(new RegExp("["+X+"]","g"),new RegExp("["+X+"]*,["+X+"]*")),$={hs:1,rg:1},_=new RegExp("([a-z])["+X+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+X+"]*,?["+X+"]*)+)","ig"),aa=new RegExp("([rstm])["+X+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+X+"]*,?["+X+"]*)+)","ig"),ba=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+X+"]*,?["+X+"]*","ig"),ca=0,da="S"+(+new Date).toString(36),ea=function(){return da+(ca++).toString(36)},fa="http://www.w3.org/1999/xlink",ga="http://www.w3.org/2000/svg",ha={},ia=d.url=function(a){return"url('#"+a+"')"};d._.$=e,d._.id=ea,d.format=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;return c.replace(b,function(a,b,c,d,f){b=b||d,e&&(b in e&&(e=e[b]),"function"==typeof e&&f&&(e=e()))}),e=(null==e||e==d?a:e)+""};return function(b,d){return K(b).replace(a,function(a,b){return c(a,b,d)})}}();var ja=function(){function a(){this.parentNode.removeChild(this)}return function(b,c){var d=I.doc.createElement("img"),e=I.doc.body;d.style.cssText="position:absolute;left:-9999em;top:-9999em",d.onload=function(){c.call(d),d.onload=d.onerror=null,e.removeChild(d)},d.onerror=a,e.appendChild(d),d.src=b}}();d._.clone=h,d._.cacher=j,d.rad=l,d.deg=m,d.angle=k,d.is=f,d.snapTo=function(a,b,c){if(c=f(c,"finite")?c:10,f(a,"array")){for(var d=a.length;d--;)if(Q(a[d]-b)<=c)return a[d]}else{a=+a;var e=b%a;if(c>e)return b-e;if(e>a-c)return b-e+a}return b},function(a){function b(a){return a[0]*a[0]+a[1]*a[1]}function c(a){var c=N.sqrt(b(a));a[0]&&(a[0]/=c),a[1]&&(a[1]/=c)}a.add=function(a,b,c,d,e,f){var g,h,i,j,k=[[],[],[]],l=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],m=[[a,c,e],[b,d,f],[0,0,1]];for(a&&a instanceof n&&(m=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]),g=0;3>g;g++)for(h=0;3>h;h++){for(j=0,i=0;3>i;i++)j+=l[g][i]*m[i][h];k[g][h]=j}return this.a=k[0][0],this.b=k[1][0],this.c=k[0][1],this.d=k[1][1],this.e=k[0][2],this.f=k[1][2],this},a.invert=function(){var a=this,b=a.a*a.d-a.b*a.c;return new n(a.d/b,-a.b/b,-a.c/b,a.a/b,(a.c*a.f-a.d*a.e)/b,(a.b*a.e-a.a*a.f)/b)},a.clone=function(){return new n(this.a,this.b,this.c,this.d,this.e,this.f)},a.translate=function(a,b){return this.add(1,0,0,1,a,b)},a.scale=function(a,b,c,d){return null==b&&(b=a),(c||d)&&this.add(1,0,0,1,c,d),this.add(a,0,0,b,0,0),(c||d)&&this.add(1,0,0,1,-c,-d),this},a.rotate=function(a,b,c){a=l(a),b=b||0,c=c||0;var d=+N.cos(a).toFixed(9),e=+N.sin(a).toFixed(9);return this.add(d,e,-e,d,b,c),this.add(1,0,0,1,-b,-c)},a.x=function(a,b){return a*this.a+b*this.c+this.e},a.y=function(a,b){return a*this.b+b*this.d+this.f},a.get=function(a){return+this[K.fromCharCode(97+a)].toFixed(4)},a.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},a.split=function(){var a={};a.dx=this.e,a.dy=this.f;var d=[[this.a,this.c],[this.b,this.d]];a.scalex=N.sqrt(b(d[0])),c(d[0]),a.shear=d[0][0]*d[1][0]+d[0][1]*d[1][1],d[1]=[d[1][0]-d[0][0]*a.shear,d[1][1]-d[0][1]*a.shear],a.scaley=N.sqrt(b(d[1])),c(d[1]),a.shear/=a.scaley;var e=-d[0][1],f=d[1][1];return 0>f?(a.rotate=m(N.acos(f)),0>e&&(a.rotate=360-a.rotate)):a.rotate=m(N.asin(e)),a.isSimple=!(+a.shear.toFixed(9)||a.scalex.toFixed(9)!=a.scaley.toFixed(9)&&a.rotate),a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate,a.noRotation=!+a.shear.toFixed(9)&&!a.rotate,a},a.toTransformString=function(a){var b=a||this.split();return b.isSimple?(b.scalex=+b.scalex.toFixed(4),b.scaley=+b.scaley.toFixed(4),b.rotate=+b.rotate.toFixed(4),(b.dx||b.dy?"t"+[+b.dx.toFixed(4),+b.dy.toFixed(4)]:S)+(1!=b.scalex||1!=b.scaley?"s"+[b.scalex,b.scaley,0,0]:S)+(b.rotate?"r"+[+b.rotate.toFixed(4),0,0]:S)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(n.prototype),d.Matrix=n,d.getRGB=j(function(a){if(!a||(a=K(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:na};if(!($[J](a.toLowerCase().substring(0,2))||"#"==a.charAt())&&(a=ka(a)),!a)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na};var b,c,e,g,h,i,j=a.match(V);return j?(j[2]&&(e=M(j[2].substring(5),16),c=M(j[2].substring(3,5),16),b=M(j[2].substring(1,3),16)),j[3]&&(e=M((h=j[3].charAt(3))+h,16),c=M((h=j[3].charAt(2))+h,16),b=M((h=j[3].charAt(1))+h,16)),j[4]&&(i=j[4].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b*=2.55),c=L(i[1]),"%"==i[1].slice(-1)&&(c*=2.55),e=L(i[2]),"%"==i[2].slice(-1)&&(e*=2.55),"rgba"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100)),j[5]?(i=j[5].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b/=100),c=L(i[1]),"%"==i[1].slice(-1)&&(c/=100),e=L(i[2]),"%"==i[2].slice(-1)&&(e/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsba"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),d.hsb2rgb(b,c,e,g)):j[6]?(i=j[6].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b/=100),c=L(i[1]),"%"==i[1].slice(-1)&&(c/=100),e=L(i[2]),"%"==i[2].slice(-1)&&(e/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsla"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),d.hsl2rgb(b,c,e,g)):(b=P(N.round(b),255),c=P(N.round(c),255),e=P(N.round(e),255),g=P(O(g,0),1),j={r:b,g:c,b:e,toString:na},j.hex="#"+(16777216|e|c<<8|b<<16).toString(16).slice(1),j.opacity=f(g,"finite")?g:1,j)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na}},d),d.hsb=j(function(a,b,c){return d.hsb2rgb(a,b,c).hex}),d.hsl=j(function(a,b,c){return d.hsl2rgb(a,b,c).hex}),d.rgb=j(function(a,b,c,d){if(f(d,"finite")){var e=N.round;return"rgba("+[e(a),e(b),e(c),+d.toFixed(2)]+")"}return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});var ka=function(a){var b=I.doc.getElementsByTagName("head")[0],c="rgb(255, 0, 0)";return(ka=j(function(a){if("red"==a.toLowerCase())return c;b.style.color=c,b.style.color=a;var d=I.doc.defaultView.getComputedStyle(b,S).getPropertyValue("color");return d==c?null:d}))(a)},la=function(){return"hsb("+[this.h,this.s,this.b]+")"},ma=function(){return"hsl("+[this.h,this.s,this.l]+")"},na=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},oa=function(a,b,c){if(null==b&&f(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(c=a.b,b=a.g,a=a.r),null==b&&f(a,string)){var e=d.getRGB(a);a=e.r,b=e.g,c=e.b}return(a>1||b>1||c>1)&&(a/=255,b/=255,c/=255),[a,b,c]},pa=function(a,b,c,e){a=N.round(255*a),b=N.round(255*b),c=N.round(255*c);var g={r:a,g:b,b:c,opacity:f(e,"finite")?e:1,hex:d.rgb(a,b,c),toString:na};return f(e,"finite")&&(g.opacity=e),g};d.color=function(a){var b;return f(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=d.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):f(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=d.hsl2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):(f(a,"string")&&(a=d.getRGB(a)),f(a,"object")&&"r"in a&&"g"in a&&"b"in a&&!("error"in a)?(b=d.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=d.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1,a.error=1)),a.toString=na,a},d.hsb2rgb=function(a,b,c,d){f(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,d=a.o),a*=360;var e,g,h,i,j;return a=a%360/60,j=c*b,i=j*(1-Q(a%2-1)),e=g=h=c-j,a=~~a,e+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],pa(e,g,h,d)},d.hsl2rgb=function(a,b,c,d){f(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h),(a>1||b>1||c>1)&&(a/=360,b/=100,c/=100),a*=360;var e,g,h,i,j;return a=a%360/60,j=2*b*(.5>c?c:1-c),i=j*(1-Q(a%2-1)),e=g=h=c-j/2,a=~~a,e+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],pa(e,g,h,d)},d.rgb2hsb=function(a,b,c){c=oa(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g;return f=O(a,b,c),g=f-P(a,b,c),d=0==g?null:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4, d=60*((d+360)%6)/360,e=0==g?0:g/f,{h:d,s:e,b:f,toString:la}},d.rgb2hsl=function(a,b,c){c=oa(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g,h,i;return g=O(a,b,c),h=P(a,b,c),i=g-h,d=0==i?null:g==a?(b-c)/i:g==b?(c-a)/i+2:(a-b)/i+4,d=60*((d+360)%6)/360,f=(g+h)/2,e=0==i?0:.5>f?i/(2*f):i/(2-2*f),{h:d,s:e,l:f,toString:ma}},d.parsePathString=function(a){if(!a)return null;var b=d.path(a);if(b.arr)return d.path.clone(b.arr);var c={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},e=[];return f(a,"array")&&f(a[0],"array")&&(e=d.path.clone(a)),e.length||K(a).replace(_,function(a,b,d){var f=[],g=b.toLowerCase();if(d.replace(ba,function(a,b){b&&f.push(+b)}),"m"==g&&f.length>2&&(e.push([b].concat(f.splice(0,2))),g="l",b="m"==b?"l":"L"),"o"==g&&1==f.length&&e.push([b,f[0]]),"r"==g)e.push([b].concat(f));else for(;f.length>=c[g]&&(e.push([b].concat(f.splice(0,c[g]))),c[g]););}),e.toString=d.path.toString,b.arr=d.path.clone(e),e};var qa=d.parseTransformString=function(a){if(!a)return null;var b=[];return f(a,"array")&&f(a[0],"array")&&(b=d.path.clone(a)),b.length||K(a).replace(aa,function(a,c,d){var e=[];c.toLowerCase(),d.replace(ba,function(a,b){b&&e.push(+b)}),b.push([c].concat(e))}),b.toString=d.path.toString,b};d._.svgTransform2string=o,d._.rgTransform=new RegExp("^[a-z]["+X+"]*-?\\.?\\d","i"),d._.transform2matrix=p,d._unit2px=s;var ra=I.doc.contains||I.doc.compareDocumentPosition?function(a,b){var c=9==a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a==d||!(!d||1!=d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b;)if(b=b.parentNode,b==a)return!0;return!1};d._.getSomeDefs=r,d.select=function(a){return z(I.doc.querySelector(a))},d.selectAll=function(a){for(var b=I.doc.querySelectorAll(a),c=(d.set||Array)(),e=0;ej;j++){d=f[j],b(d,"fill"),b(d,"stroke"),b(d,"filter"),b(d,"mask"),b(d,"clip-path"),c(d);var l=e(d.node,"id");l&&(e(d.node,{id:d.id}),h.push({old:l,id:d.id}))}for(j=0,k=h.length;k>j;j++){var m=i[h[j].old];if(m)for(var n=0,o=m.length;o>n;n++)m[n](h[j].id)}}function h(a,b,c){return function(d){var e=d.slice(a,b);return 1==e.length&&(e=e[0]),c?c(e):e}}function i(a){return function(){var b=a?"<"+this.type:"",c=this.node.attributes,d=this.node.childNodes;if(a)for(var e=0,f=c.length;f>e;e++)b+=" "+c[e].name+'="'+c[e].value.replace(/"/g,'\\"')+'"';if(d.length){for(a&&(b+=">"),e=0,f=d.length;f>e;e++)3==d[e].nodeType?b+=d[e].nodeValue:1==d[e].nodeType&&(b+=z(d[e]).toString());a&&(b+="")}else a&&(b+="/>");return b}}a.attr=function(a,c){var d=this;if(d.node,!a)return d;if(f(a,"string")){if(!(arguments.length>1))return v(b("snap.util.getattr."+a,d));var e={};e[a]=c,a=e}for(var g in a)a[J](g)&&b("snap.util.attr."+g,d,a[g]);return d},a.getBBox=function(a){var b=this;if("use"==b.type&&(b=b.original),b.removed)return{};var c=b._;return a?(c.bboxwt=d.path.get[b.type]?d.path.getBBox(b.realPath=d.path.get[b.type](b)):d._.box(b.node.getBBox()),d._.box(c.bboxwt)):(b.realPath=(d.path.get[b.type]||d.path.get.deflt)(b),c.bbox=d.path.getBBox(d.path.map(b.realPath,b.matrix)),d._.box(c.bbox))};var j=function(){return this.string};a.transform=function(a){var b=this._;if(null==a){var c=new n(this.node.getCTM()),d=q(this),f=d.toTransformString(),g=K(d)==K(this.matrix)?b.transform:f;return{string:g,globalMatrix:c,localMatrix:d,diffMatrix:c.clone().add(d.invert()),global:c.toTransformString(),local:f,toString:j}}return a instanceof n&&(a=a.toTransformString()),q(this,a),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?e(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?e(this.node,{patternTransform:this.matrix}):e(this.node,{transform:this.matrix})),this},a.parent=function(){return z(this.node.parentNode)},a.append=a.add=function(a){if(a){if("set"==a.type){var b=this;return a.forEach(function(a){b.add(a)}),this}a=z(a),this.node.appendChild(a.node),a.paper=this.paper}return this},a.appendTo=function(a){return a&&(a=z(a),a.append(this)),this},a.prepend=function(a){if(a){a=z(a);var b=a.parent();this.node.insertBefore(a.node,this.node.firstChild),this.add&&this.add(),a.paper=this.paper,this.parent()&&this.parent().add(),b&&b.add()}return this},a.prependTo=function(a){return a=z(a),a.prepend(this),this},a.before=function(a){if("set"==a.type){var b=this;return a.forEach(function(a){var c=a.parent();b.node.parentNode.insertBefore(a.node,b.node),c&&c.add()}),this.parent().add(),this}a=z(a);var c=a.parent();return this.node.parentNode.insertBefore(a.node,this.node),this.parent()&&this.parent().add(),c&&c.add(),a.paper=this.paper,this},a.after=function(a){a=z(a);var b=a.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(a.node,this.node.nextSibling):this.node.parentNode.appendChild(a.node),this.parent()&&this.parent().add(),b&&b.add(),a.paper=this.paper,this},a.insertBefore=function(a){a=z(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},a.insertAfter=function(a){a=z(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node.nextSibling),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},a.remove=function(){var a=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,a&&a.add(),this},a.select=function(a){return z(this.node.querySelector(a))},a.selectAll=function(a){for(var b=this.node.querySelectorAll(a),c=(d.set||Array)(),e=0;eb;b++)a[b].stop();return this},a.animate=function(a,d,e,g){"function"!=typeof e||e.length||(g=e,e=c.linear),a instanceof k&&(g=a.callback,e=a.easing,d=e.dur,a=a.attr);var i,j,l,m,n=[],o=[],p={},q=this;for(var r in a)if(a[J](r)){q.equal?(m=q.equal(r,K(a[r])),i=m.from,j=m.to,l=m.f):(i=+q.attr(r),j=+a[r]);var s=f(i,"array")?i.length:1;p[r]=h(n.length,n.length+s,l),n=n.concat(i),o=o.concat(j)}var t=c.time(),u=c(n,o,t,t+d,c.time,function(a){var b={};for(var c in p)p[J](c)&&(b[c]=p[c](a));q.attr(b)},e);return q.anims[u.id]=u,u._attrs=a,u._callback=g,b.once("mina.finish."+u.id,function(){delete q.anims[u.id],g&&g.call(q)}),b.once("mina.stop."+u.id,function(){delete q.anims[u.id]}),q};var l={};a.data=function(a,c){var e=l[this.id]=l[this.id]||{};if(0==arguments.length)return b("snap.data.get."+this.id,this,e,null),e;if(1==arguments.length){if(d.is(a,"object")){for(var f in a)a[J](f)&&this.data(f,a[f]);return this}return b("snap.data.get."+this.id,this,e[a],a),e[a]}return e[a]=c,b("snap.data.set."+this.id,this,c,a),this},a.removeData=function(a){return null==a?l[this.id]={}:l[this.id]&&delete l[this.id][a],this},a.outerSVG=a.toString=i(1),a.innerSVG=i()}(u.prototype),d.parse=function(a){var b=I.doc.createDocumentFragment(),c=!0,d=I.doc.createElement("div");if(a=K(a),a.match(/^\s*<\s*svg(?:\s|>)/)||(a=""+a+"",c=!1),d.innerHTML=a,a=d.getElementsByTagName("svg")[0])if(c)b=a;else for(;a.firstChild;)b.appendChild(a.firstChild);return d.innerHTML=S,new w(b)},w.prototype.select=u.prototype.select,w.prototype.selectAll=u.prototype.selectAll,d.fragment=function(){for(var a=Array.prototype.slice.call(arguments,0),b=I.doc.createDocumentFragment(),c=0,e=a.length;e>c;c++){var f=a[c];f.node&&f.node.nodeType&&b.appendChild(f.node),f.nodeType&&b.appendChild(f),"string"==typeof f&&b.appendChild(d.parse(f).node)}return new w(b)},function(a){a.el=function(a,b){return x(a,this.node).attr(b)},a.rect=function(a,b,c,d,e,g){var h;return null==g&&(g=e),f(a,"object")&&"x"in a?h=a:null!=a&&(h={x:a,y:b,width:c,height:d},null!=e&&(h.rx=e,h.ry=g)),this.el("rect",h)},a.circle=function(a,b,c){var d;return f(a,"object")&&"cx"in a?d=a:null!=a&&(d={cx:a,cy:b,r:c}),this.el("circle",d)},a.image=function(a,b,c,d,g){var h=x("image",this.node);if(f(a,"object")&&"src"in a)h.attr(a);else if(null!=a){var i={"xlink:href":a,preserveAspectRatio:"none"};null!=b&&null!=c&&(i.x=b,i.y=c),null!=d&&null!=g?(i.width=d,i.height=g):ja(a,function(){e(h.node,{width:this.offsetWidth,height:this.offsetHeight})}),e(h.node,i)}return h},a.ellipse=function(a,b,c,d){var e=x("ellipse",this.node);return f(a,"object")&&"cx"in a?e.attr(a):null!=a&&e.attr({cx:a,cy:b,rx:c,ry:d}),e},a.path=function(a){var b=x("path",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):a&&b.attr({d:a}),b},a.group=a.g=function(b){var c=x("g",this.node);c.add=t;for(var d in a)a[J](d)&&(c[d]=a[d]);return 1==arguments.length&&b&&!b.type?c.attr(b):arguments.length&&c.add(Array.prototype.slice.call(arguments,0)),c},a.text=function(a,b,c){var d=x("text",this.node);return f(a,"object")?d.attr(a):null!=a&&d.attr({x:a,y:b,text:c||""}),d},a.line=function(a,b,c,d){var e=x("line",this.node);return f(a,"object")?e.attr(a):null!=a&&e.attr({x1:a,x2:c,y1:b,y2:d}),e},a.polyline=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b=x("polyline",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):null!=a&&b.attr({points:a}),b},a.polygon=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b=x("polygon",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):null!=a&&b.attr({points:a}),b},function(){a.gradient=function(a){return D(this.defs,a)},a.gradientLinear=function(a,b,c,d){return E(this.defs,a,b,c,d)},a.gradientRadial=function(a,b,c,d,e){return F(this.defs,a,b,c,d,e)},a.toString=function(){var a,b=I.doc.createDocumentFragment(),c=I.doc.createElement("div"),d=this.node.cloneNode(!0);return b.appendChild(c),c.appendChild(d),e(d,{xmlns:ga}),a=c.innerHTML,b.removeChild(b.firstChild),a},a.clear=function(){for(var a,b=this.node.firstChild;b;)a=b.nextSibling,"defs"!=b.tagName&&b.parentNode.removeChild(b),b=a}}()}(y.prototype),d.ajax=function(a,c,d,e){var g=new XMLHttpRequest,h=ea();if(g){if(f(c,"function"))e=d,d=c,c=null;else if(f(c,"object")){var i=[];for(var j in c)c.hasOwnProperty(j)&&i.push(encodeURIComponent(j)+"="+encodeURIComponent(c[j]));c=i.join("&")}return g.open(c?"POST":"GET",a,!0),g.setRequestHeader("X-Requested-With","XMLHttpRequest"),c&&g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d&&(b.once("snap.ajax."+h+".0",d),b.once("snap.ajax."+h+".200",d),b.once("snap.ajax."+h+".304",d)),g.onreadystatechange=function(){4==g.readyState&&b("snap.ajax."+h+"."+g.status,e,g)},4==g.readyState?g:(g.send(c),g)}},d.load=function(a,b,c){d.ajax(a,function(a){var e=d.parse(a.responseText);c?b.call(c,e):b(e)})},b.on("snap.util.attr.mask",function(a){if(a instanceof u||a instanceof w){if(b.stop(),a instanceof w&&1==a.node.childNodes.length&&(a=a.node.firstChild,r(this).appendChild(a),a=z(a)),"mask"==a.type)var c=a;else c=x("mask",r(this)),c.node.appendChild(a.node),!c.node.id&&e(c.node,{id:c.id});e(this.node,{mask:ia(c.id)})}}),function(a){b.on("snap.util.attr.clip",a),b.on("snap.util.attr.clip-path",a),b.on("snap.util.attr.clipPath",a)}(function(a){if(a instanceof u||a instanceof w){if(b.stop(),"clipPath"==a.type)var c=a;else c=x("clipPath",r(this)),c.node.appendChild(a.node),!c.node.id&&e(c.node,{id:c.id});e(this.node,{"clip-path":ia(c.id)})}}),b.on("snap.util.attr.fill",G("fill")),b.on("snap.util.attr.stroke",G("stroke"));var sa=/^([lr])(?:\(([^)]*)\))?(.*)$/i;b.on("snap.util.grad.parse",function(a){a=K(a);var b=a.match(sa);if(!b)return null;var c=b[1],d=b[2],e=b[3];return d=d.split(/\s*,\s*/).map(function(a){return+a==a?+a:a}),1==d.length&&0==d[0]&&(d=[]),e=e.split("-"),e=e.map(function(a){a=a.split(":");var b={color:a[0]};return a[1]&&(b.offset=a[1]),b}),{type:c,params:d,stops:e}}),b.on("snap.util.attr.d",function(a){b.stop(),f(a,"array")&&f(a[0],"array")&&(a=d.path.toString.call(a)),a=K(a),a.match(/[ruo]/i)&&(a=d.path.toAbsolute(a)),e(this.node,{d:a})})(-1),b.on("snap.util.attr.#text",function(a){b.stop(),a=K(a);for(var c=I.doc.createTextNode(a);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(c)})(-1),b.on("snap.util.attr.path",function(a){b.stop(),this.attr({d:a})})(-1),b.on("snap.util.attr.viewBox",function(a){var c;c=f(a,"object")&&"x"in a?[a.x,a.y,a.width,a.height].join(" "):f(a,"array")?a.join(" "):a,e(this.node,{viewBox:c}),b.stop()})(-1),b.on("snap.util.attr.transform",function(a){this.transform(a),b.stop()})(-1),b.on("snap.util.attr.r",function(a){"rect"==this.type&&(b.stop(),e(this.node,{rx:a,ry:a}))})(-1),b.on("snap.util.attr.textpath",function(a){if(b.stop(),"text"==this.type){var c,d,g;if(!a&&this.textPath){for(d=this.textPath;d.node.firstChild;)this.node.appendChild(d.node.firstChild);return d.remove(),void delete this.textPath}if(f(a,"string")){var h=r(this),i=z(h.parentNode).path(a);h.appendChild(i.node),c=i.id,i.attr({id:c})}else a=z(a),a instanceof u&&(c=a.attr("id"),c||(c=a.id,a.attr({id:c})));if(c)if(d=this.textPath,g=this.node,d)d.attr({"xlink:href":"#"+c});else{for(d=e("textPath",{"xlink:href":"#"+c});g.firstChild;)d.appendChild(g.firstChild);g.appendChild(d),this.textPath=z(d)}}})(-1),b.on("snap.util.attr.text",function(a){if("text"==this.type){for(var c=this.node,d=function(a){var b=e("tspan");if(f(a,"array"))for(var c=0;cr;r++){if(l=a[r],"M"==l[0])j=+l[1],k=+l[2];else{if(m=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6]),q+m>f){if(d&&!p.start){if(n=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6],f-q),o+=["C"+e(n.start.x),e(n.start.y),e(n.m.x),e(n.m.y),e(n.x),e(n.y)],h)return o;p.start=o,o=["M"+e(n.x),e(n.y)+"C"+e(n.n.x),e(n.n.y),e(n.end.x),e(n.end.y),e(l[5]),e(l[6])].join(),q+=m,j=+l[5],k=+l[6];continue}if(!c&&!d)return n=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6],f-q)}q+=m,j=+l[5],k=+l[6]}o+=l.shift()+l}return p.end=o,n=c?q:d?p:i(j,k,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,a._.clone)}function i(a,b,c,d,e,f,g,h,i){var j=1-i,k=S(j,3),l=S(j,2),m=i*i,n=m*i,o=k*a+3*l*i*c+3*j*i*i*e+n*g,p=k*b+3*l*i*d+3*j*i*i*f+n*h,q=a+2*i*(c-a)+m*(e-2*c+a),r=b+2*i*(d-b)+m*(f-2*d+b),s=c+2*i*(e-c)+m*(g-2*e+c),t=d+2*i*(f-d)+m*(h-2*f+d),u=j*a+i*c,v=j*b+i*d,w=j*e+i*g,x=j*f+i*h,y=90-180*O.atan2(q-s,r-t)/P;return{x:o,y:p,m:{x:q,y:r},n:{x:s,y:t},start:{x:u,y:v},end:{x:w,y:x},alpha:y}}function j(b,c,e,f,g,h,i,j){a.is(b,"array")||(b=[b,c,e,f,g,h,i,j]);var k=E.apply(null,b);return d(k.min.x,k.min.y,k.max.x-k.min.x,k.max.y-k.min.y)}function k(a,b,c){return b>=a.x&&b<=a.x+a.width&&c>=a.y&&c<=a.y+a.height}function l(a,b){return a=d(a),b=d(b),k(b,a.x,a.y)||k(b,a.x2,a.y)||k(b,a.x,a.y2)||k(b,a.x2,a.y2)||k(a,b.x,b.y)||k(a,b.x2,b.y)||k(a,b.x,b.y2)||k(a,b.x2,b.y2)||(a.xb.x||b.xa.x)&&(a.yb.y||b.ya.y)}function m(a,b,c,d,e){var f=-3*b+9*c-9*d+3*e,g=a*f+6*b-12*c+6*d;return a*g-3*b+3*c}function n(a,b,c,d,e,f,g,h,i){null==i&&(i=1),i=i>1?1:0>i?0:i;for(var j=i/2,k=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],n=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],o=0,p=0;k>p;p++){var q=j*l[p]+j,r=m(q,a,c,e,g),s=m(q,b,d,f,h),t=r*r+s*s;o+=n[p]*O.sqrt(t)}return j*o}function o(a,b,c,d,e,f,g,h,i){if(!(0>i||n(a,b,c,d,e,f,g,h)o;)l/=2,m+=(i>j?1:-1)*l,j=n(a,b,c,d,e,f,g,h,m);return m}}function p(a,b,c,d,e,f,g,h){if(!(R(a,c)R(e,g)||R(b,d)R(f,h))){var i=(a*d-b*c)*(e-g)-(a-c)*(e*h-f*g),j=(a*d-b*c)*(f-h)-(b-d)*(e*h-f*g),k=(a-c)*(f-h)-(b-d)*(e-g);if(k){var l=i/k,m=j/k,n=+l.toFixed(2),o=+m.toFixed(2);if(!(n<+Q(a,c).toFixed(2)||n>+R(a,c).toFixed(2)||n<+Q(e,g).toFixed(2)||n>+R(e,g).toFixed(2)||o<+Q(b,d).toFixed(2)||o>+R(b,d).toFixed(2)||o<+Q(f,h).toFixed(2)||o>+R(f,h).toFixed(2)))return{x:l,y:m}}}}function q(a,b,c){var d=j(a),e=j(b);if(!l(d,e))return c?0:[];for(var f=n.apply(0,a),g=n.apply(0,b),h=~~(f/5),k=~~(g/5),m=[],o=[],q={},r=c?0:[],s=0;h+1>s;s++){var t=i.apply(0,a.concat(s/h));m.push({x:t.x,y:t.y,t:s/h})}for(s=0;k+1>s;s++)t=i.apply(0,b.concat(s/k)),o.push({x:t.x,y:t.y,t:s/k});for(s=0;h>s;s++)for(var u=0;k>u;u++){var v=m[s],w=m[s+1],x=o[u],y=o[u+1],z=T(w.x-v.x)<.001?"y":"x",A=T(y.x-x.x)<.001?"y":"x",B=p(v.x,v.y,w.x,w.y,x.x,x.y,y.x,y.y);if(B){if(q[B.x.toFixed(4)]==B.y.toFixed(4))continue;q[B.x.toFixed(4)]=B.y.toFixed(4);var C=v.t+T((B[z]-v[z])/(w[z]-v[z]))*(w.t-v.t),D=x.t+T((B[A]-x[A])/(y[A]-x[A]))*(y.t-x.t);C>=0&&1>=C&&D>=0&&1>=D&&(c?r++:r.push({x:B.x,y:B.y,t1:C,t2:D}))}}return r}function r(a,b){return t(a,b)}function s(a,b){return t(a,b,1)}function t(a,b,c){a=F(a),b=F(b);for(var d,e,f,g,h,i,j,k,l,m,n=c?0:[],o=0,p=a.length;p>o;o++){var r=a[o];if("M"==r[0])d=h=r[1],e=i=r[2];else{"C"==r[0]?(l=[d,e].concat(r.slice(1)),d=l[6],e=l[7]):(l=[d,e,d,e,h,i,h,i],d=h,e=i);for(var s=0,t=b.length;t>s;s++){var u=b[s];if("M"==u[0])f=j=u[1],g=k=u[2];else{"C"==u[0]?(m=[f,g].concat(u.slice(1)),f=m[6],g=m[7]):(m=[f,g,f,g,j,k,j,k],f=j,g=k);var v=q(l,m,c);if(c)n+=v;else{for(var w=0,x=v.length;x>w;w++)v[w].segment1=o,v[w].segment2=s,v[w].bez1=l,v[w].bez2=m;n=n.concat(v)}}}}}return n}function u(a,b,c){var d=v(a);return k(d,b,c)&&1==t(a,[["M",b,c],["H",d.x2+10]],1)%2}function v(a){var b=c(a);if(b.bbox)return K(b.bbox);if(!a)return d();a=F(a);for(var e,f=0,g=0,h=[],i=[],j=0,k=a.length;k>j;j++)if(e=a[j],"M"==e[0])f=e[1],g=e[2],h.push(f),i.push(g);else{var l=E(f,g,e[1],e[2],e[3],e[4],e[5],e[6]);h=h.concat(l.min.x,l.max.x),i=i.concat(l.min.y,l.max.y),f=e[5],g=e[6]}var m=Q.apply(0,h),n=Q.apply(0,i),o=R.apply(0,h),p=R.apply(0,i),q=d(m,n,o-m,p-n);return b.bbox=K(q),q}function w(a,b,c,d,f){if(f)return[["M",a+f,b],["l",c-2*f,0],["a",f,f,0,0,1,f,f],["l",0,d-2*f],["a",f,f,0,0,1,-f,f],["l",2*f-c,0],["a",f,f,0,0,1,-f,-f],["l",0,2*f-d],["a",f,f,0,0,1,f,-f],["z"]];var g=[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]];return g.toString=e,g}function x(a,b,c,d,f){if(null==f&&null==d&&(d=c),null!=f)var g=Math.PI/180,h=a+c*Math.cos(-d*g),i=a+c*Math.cos(-f*g),j=b+c*Math.sin(-d*g),k=b+c*Math.sin(-f*g),l=[["M",h,j],["A",c,c,0,+(f-d>180),0,i,k]];else l=[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]];return l.toString=e,l}function y(b){var d=c(b),g=String.prototype.toLowerCase;if(d.rel)return f(d.rel);a.is(b,"array")&&a.is(b&&b[0],"array")||(b=a.parsePathString(b));var h=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=b[0][1],j=b[0][2],k=i,l=j,m++,h.push(["M",i,j]));for(var n=m,o=b.length;o>n;n++){var p=h[n]=[],q=b[n];if(q[0]!=g.call(q[0]))switch(p[0]=g.call(q[0]),p[0]){case"a":p[1]=q[1],p[2]=q[2],p[3]=q[3],p[4]=q[4],p[5]=q[5],p[6]=+(q[6]-i).toFixed(3),p[7]=+(q[7]-j).toFixed(3);break;case"v":p[1]=+(q[1]-j).toFixed(3);break;case"m":k=q[1],l=q[2];default:for(var r=1,s=q.length;s>r;r++)p[r]=+(q[r]-(r%2?i:j)).toFixed(3)}else{p=h[n]=[],"m"==q[0]&&(k=q[1]+i,l=q[2]+j);for(var t=0,u=q.length;u>t;t++)h[n][t]=q[t]}var v=h[n].length;switch(h[n][0]){case"z":i=k,j=l;break;case"h":i+=+h[n][v-1];break;case"v":j+=+h[n][v-1];break;default:i+=+h[n][v-2],j+=+h[n][v-1]}}return h.toString=e,d.rel=f(h),h}function z(b){var d=c(b);if(d.abs)return f(d.abs);if(J(b,"array")&&J(b&&b[0],"array")||(b=a.parsePathString(b)),!b||!b.length)return[["M",0,0]];var g,h=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=+b[0][1],j=+b[0][2],k=i,l=j,m++,h[0]=["M",i,j]);for(var n,o,p=3==b.length&&"M"==b[0][0]&&"R"==b[1][0].toUpperCase()&&"Z"==b[2][0].toUpperCase(),q=m,r=b.length;r>q;q++){if(h.push(n=[]),o=b[q],g=o[0],g!=g.toUpperCase())switch(n[0]=g.toUpperCase(),n[0]){case"A":n[1]=o[1],n[2]=o[2],n[3]=o[3],n[4]=o[4],n[5]=o[5],n[6]=+(o[6]+i),n[7]=+(o[7]+j);break;case"V":n[1]=+o[1]+j;break;case"H":n[1]=+o[1]+i;break;case"R":for(var s=[i,j].concat(o.slice(1)),t=2,u=s.length;u>t;t++)s[t]=+s[t]+i,s[++t]=+s[t]+j;h.pop(),h=h.concat(H(s,p));break;case"O":h.pop(),s=x(i,j,o[1],o[2]),s.push(s[0]),h=h.concat(s);break;case"U":h.pop(),h=h.concat(x(i,j,o[1],o[2],o[3])),n=["U"].concat(h[h.length-1].slice(-2));break;case"M":k=+o[1]+i,l=+o[2]+j;default:for(t=1,u=o.length;u>t;t++)n[t]=+o[t]+(t%2?i:j)}else if("R"==g)s=[i,j].concat(o.slice(1)),h.pop(),h=h.concat(H(s,p)),n=["R"].concat(o.slice(-2));else if("O"==g)h.pop(),s=x(i,j,o[1],o[2]),s.push(s[0]),h=h.concat(s);else if("U"==g)h.pop(),h=h.concat(x(i,j,o[1],o[2],o[3])),n=["U"].concat(h[h.length-1].slice(-2));else for(var v=0,w=o.length;w>v;v++)n[v]=o[v];if(g=g.toUpperCase(),"O"!=g)switch(n[0]){case"Z":i=k,j=l;break;case"H":i=n[1];break;case"V":j=n[1];break;case"M":k=n[n.length-2],l=n[n.length-1];default:i=n[n.length-2],j=n[n.length-1]}}return h.toString=e,d.abs=f(h),h}function A(a,b,c,d){return[a,b,c,d,c,d]}function B(a,b,c,d,e,f){var g=1/3,h=2/3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]}function C(b,c,d,e,f,g,h,i,j,k){var l,m=120*P/180,n=P/180*(+f||0),o=[],p=a._.cacher(function(a,b,c){var d=a*O.cos(c)-b*O.sin(c),e=a*O.sin(c)+b*O.cos(c);return{x:d,y:e}});if(k)y=k[0],z=k[1],w=k[2],x=k[3];else{l=p(b,c,-n),b=l.x,c=l.y,l=p(i,j,-n),i=l.x,j=l.y;var q=(O.cos(P/180*f),O.sin(P/180*f),(b-i)/2),r=(c-j)/2,s=q*q/(d*d)+r*r/(e*e);s>1&&(s=O.sqrt(s),d=s*d,e=s*e);var t=d*d,u=e*e,v=(g==h?-1:1)*O.sqrt(T((t*u-t*r*r-u*q*q)/(t*r*r+u*q*q))),w=v*d*r/e+(b+i)/2,x=v*-e*q/d+(c+j)/2,y=O.asin(((c-x)/e).toFixed(9)),z=O.asin(((j-x)/e).toFixed(9));y=w>b?P-y:y,z=w>i?P-z:z,0>y&&(y=2*P+y),0>z&&(z=2*P+z),h&&y>z&&(y-=2*P),!h&&z>y&&(z-=2*P)}var A=z-y;if(T(A)>m){var B=z,D=i,E=j;z=y+m*(h&&z>y?1:-1),i=w+d*O.cos(z),j=x+e*O.sin(z),o=C(i,j,d,e,f,0,h,D,E,[z,B,w,x])}A=z-y;var F=O.cos(y),G=O.sin(y),H=O.cos(z),I=O.sin(z),J=O.tan(A/4),K=4/3*d*J,L=4/3*e*J,M=[b,c],N=[b+K*G,c-L*F],Q=[i+K*I,j-L*H],R=[i,j];if(N[0]=2*M[0]-N[0],N[1]=2*M[1]-N[1],k)return[N,Q,R].concat(o);o=[N,Q,R].concat(o).join().split(",");for(var S=[],U=0,V=o.length;V>U;U++)S[U]=U%2?p(o[U-1],o[U],n).y:p(o[U],o[U+1],n).x;return S}function D(a,b,c,d,e,f,g,h,i){var j=1-i;return{x:S(j,3)*a+3*S(j,2)*i*c+3*j*i*i*e+S(i,3)*g,y:S(j,3)*b+3*S(j,2)*i*d+3*j*i*i*f+S(i,3)*h}}function E(a,b,c,d,e,f,g,h){var i,j=e-2*c+a-(g-2*e+c),k=2*(c-a)-2*(e-c),l=a-c,m=(-k+O.sqrt(k*k-4*j*l))/2/j,n=(-k-O.sqrt(k*k-4*j*l))/2/j,o=[b,h],p=[a,g];return T(m)>"1e12"&&(m=.5),T(n)>"1e12"&&(n=.5),m>0&&1>m&&(i=D(a,b,c,d,e,f,g,h,m),p.push(i.x),o.push(i.y)),n>0&&1>n&&(i=D(a,b,c,d,e,f,g,h,n),p.push(i.x),o.push(i.y)),j=f-2*d+b-(h-2*f+d),k=2*(d-b)-2*(f-d),l=b-d,m=(-k+O.sqrt(k*k-4*j*l))/2/j,n=(-k-O.sqrt(k*k-4*j*l))/2/j,T(m)>"1e12"&&(m=.5),T(n)>"1e12"&&(n=.5),m>0&&1>m&&(i=D(a,b,c,d,e,f,g,h,m),p.push(i.x),o.push(i.y)),n>0&&1>n&&(i=D(a,b,c,d,e,f,g,h,n),p.push(i.x),o.push(i.y)),{min:{x:Q.apply(0,p),y:Q.apply(0,o)},max:{x:R.apply(0,p),y:R.apply(0,o)}}}function F(a,b){var d=!b&&c(a);if(!b&&d.curve)return f(d.curve);for(var e=z(a),g=b&&z(b),h={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},j=(function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];switch(!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null),a[0]){case"M":b.X=a[1],b.Y=a[2];break;case"A":a=["C"].concat(C.apply(0,[b.x,b.y].concat(a.slice(1))));break;case"S":c=b.x+(b.x-(b.bx||b.x)),d=b.y+(b.y-(b.by||b.y)),a=["C",c,d].concat(a.slice(1));break;case"T":b.qx=b.x+(b.x-(b.qx||b.x)),b.qy=b.y+(b.y-(b.qy||b.y)),a=["C"].concat(B(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case"Q":b.qx=a[1],b.qy=a[2],a=["C"].concat(B(b.x,b.y,a[1],a[2],a[3],a[4]));break;case"L":a=["C"].concat(A(b.x,b.y,a[1],a[2]));break;case"H":a=["C"].concat(A(b.x,b.y,a[1],b.y));break;case"V":a=["C"].concat(A(b.x,b.y,b.x,a[1]));break;case"Z":a=["C"].concat(A(b.x,b.y,b.X,b.Y))}return a}),k=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1),n=R(e.length,g&&g.length||0)}},l=function(a,b,c,d,f){a&&b&&"M"==a[f][0]&&"M"!=b[f][0]&&(b.splice(f,0,["M",d.x,d.y]),c.bx=0,c.by=0,c.x=a[f][1],c.y=a[f][2],n=R(e.length,g&&g.length||0))},m=0,n=R(e.length,g&&g.length||0);n>m;m++){e[m]=j(e[m],h),k(e,m),g&&(g[m]=j(g[m],i)),g&&k(g,m),l(e,g,h,i,m),l(g,e,i,h,m);var o=e[m],p=g&&g[m],q=o.length,r=g&&p.length;h.x=o[q-2],h.y=o[q-1],h.bx=N(o[q-4])||h.x,h.by=N(o[q-3])||h.y,i.bx=g&&(N(p[r-4])||i.x),i.by=g&&(N(p[r-3])||i.y),i.x=g&&p[r-2],i.y=g&&p[r-1]}return g||(d.curve=f(e)),g?[e,g]:e}function G(a,b){if(!b)return a;var c,d,e,f,g,h,i;for(a=F(a),e=0,g=a.length;g>e;e++)for(i=a[e],f=1,h=i.length;h>f;f+=2)c=b.x(i[f],i[f+1]),d=b.y(i[f],i[f+1]),i[f]=c,i[f+1]=d;return a}function H(a,b){for(var c=[],d=0,e=a.length;e-2*!b>d;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return c}var I=b.prototype,J=a.is,K=a._.clone,L="hasOwnProperty",M=/,?([a-z]),?/gi,N=parseFloat,O=Math,P=O.PI,Q=O.min,R=O.max,S=O.pow,T=O.abs,U=h(1),V=h(),W=h(0,1),X=a._unit2px,Y={path:function(a){return a.attr("path"); },circle:function(a){var b=X(a);return x(b.cx,b.cy,b.r)},ellipse:function(a){var b=X(a);return x(b.cx,b.cy,b.rx,b.ry)},rect:function(a){var b=X(a);return w(b.x,b.y,b.width,b.height,b.rx,b.ry)},image:function(a){var b=X(a);return w(b.x,b.y,b.width,b.height)},text:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},g:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},symbol:function(a){var b=a.getBBox();return w(b.x,b.y,b.width,b.height)},line:function(a){return"M"+[a.attr("x1"),a.attr("y1"),a.attr("x2"),a.attr("y2")]},polyline:function(a){return"M"+a.attr("points")},polygon:function(a){return"M"+a.attr("points")+"z"},svg:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},deflt:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)}};a.path=c,a.path.getTotalLength=U,a.path.getPointAtLength=V,a.path.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1e-6)return W(a,b).end;var d=W(a,c,1);return b?W(d,b).end:d},I.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},I.getPointAtLength=function(a){return V(this.attr("d"),a)},I.getSubpath=function(b,c){return a.path.getSubpath(this.attr("d"),b,c)},a._.box=d,a.path.findDotsAtSegment=i,a.path.bezierBBox=j,a.path.isPointInsideBBox=k,a.path.isBBoxIntersect=l,a.path.intersection=r,a.path.intersectionNumber=s,a.path.isPointInside=u,a.path.getBBox=v,a.path.get=Y,a.path.toRelative=y,a.path.toAbsolute=z,a.path.toCubic=F,a.path.map=G,a.path.toString=e,a.path.clone=f}),d.plugin(function(a){var b=Math.max,c=Math.min,d=function(a){if(this.items=[],this.length=0,this.type="set",a)for(var b=0,c=a.length;c>b;b++)a[b]&&(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},e=d.prototype;e.push=function(){for(var a,b,c=0,d=arguments.length;d>c;c++)a=arguments[c],a&&(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this},e.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},e.forEach=function(a,b){for(var c=0,d=this.items.length;d>c;c++)if(a.call(b,this.items[c],c)===!1)return this;return this},e.remove=function(){for(;this.length;)this.pop().remove();return this},e.attr=function(a){for(var b=0,c=this.items.length;c>b;b++)this.items[b].attr(a);return this},e.clear=function(){for(;this.length;)this.pop()},e.splice=function(a,e){a=0>a?b(this.length+a,0):a,e=b(0,c(this.length-a,e));var f,g=[],h=[],i=[];for(f=2;ff;f++)h.push(this[a+f]);for(;ff?i[f]:g[f-j];for(f=this.items.length=this.length-=e-j;this[f];)delete this[f++];return new d(h)},e.exclude=function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]==a)return this.splice(b,1),!0;return!1},e.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this},e.getBBox=function(){for(var a=[],d=[],e=[],f=[],g=this.items.length;g--;)if(!this.items[g].removed){var h=this.items[g].getBBox();a.push(h.x),d.push(h.y),e.push(h.x+h.width),f.push(h.y+h.height)}return a=c.apply(0,a),d=c.apply(0,d),e=b.apply(0,e),f=b.apply(0,f),{x:a,y:d,x2:e,y2:f,width:e-a,height:f-d,cx:a+(e-a)/2,cy:d+(f-d)/2}},e.clone=function(a){a=new d;for(var b=0,c=this.items.length;c>b;b++)a.push(this.items[b].clone());return a},e.toString=function(){return"Snap‘s set"},e.type="set",a.set=function(){var a=new d;return arguments.length&&a.push.apply(a,Array.prototype.slice.call(arguments,0)),a}}),d.plugin(function(a,b){function c(a){var b=a[0];switch(b.toLowerCase()){case"t":return[b,0,0];case"m":return[b,1,0,0,1,0,0];case"r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case"s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}}function d(b,d,e){d=l(d).replace(/\.{3}|\u2026/g,b),b=a.parseTransformString(b)||[],d=a.parseTransformString(d)||[];for(var f,g,j,k,m=Math.max(b.length,d.length),n=[],o=[],p=0;m>p;p++){if(j=b[p]||c(d[p]),k=d[p]||c(j),j[0]!=k[0]||"r"==j[0].toLowerCase()&&(j[2]!=k[2]||j[3]!=k[3])||"s"==j[0].toLowerCase()&&(j[3]!=k[3]||j[4]!=k[4])){b=a._.transform2matrix(b,e()),d=a._.transform2matrix(d,e()),n=[["m",b.a,b.b,b.c,b.d,b.e,b.f]],o=[["m",d.a,d.b,d.c,d.d,d.e,d.f]];break}for(n[p]=[],o[p]=[],f=0,g=Math.max(j.length,k.length);g>f;f++)f in j&&(n[p][f]=j[f]),f in k&&(o[p][f]=k[f])}return{from:i(n),to:i(o),f:h(n)}}function e(a){return a}function f(a){return function(b){return+b.toFixed(3)+a}}function g(b){return a.rgb(b[0],b[1],b[2])}function h(a){var b,c,d,e,f,g,h=0,i=[];for(b=0,c=a.length;c>b;b++){for(f="[",g=['"'+a[b][0]+'"'],d=1,e=a[b].length;e>d;d++)g[d]="val["+h++ +"]";f+=g+"]",i[b]=f}return Function("val","return Snap.path.toString.call(["+i+"])")}function i(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=1,f=a[c].length;f>e;e++)b.push(a[c][e]);return b}var j={},k=/[a-z]+$/i,l=String;j.stroke=j.fill="colour",b.prototype.equal=function(b,c){var m,n,o=l(this.attr(b)||""),p=this;if(o==+o&&c==+c)return{from:+o,to:+c,f:e};if("colour"==j[b])return m=a.color(o),n=a.color(c),{from:[m.r,m.g,m.b,m.opacity],to:[n.r,n.g,n.b,n.opacity],f:g};if("transform"==b||"gradientTransform"==b||"patternTransform"==b)return c instanceof a.Matrix&&(c=c.toTransformString()),a._.rgTransform.test(c)||(c=a._.svgTransform2string(c)),d(o,c,function(){return p.getBBox(1)});if("d"==b||"path"==b)return m=a.path.toCubic(o,c),{from:i(m[0]),to:i(m[1]),f:h(m[0])};if("points"==b)return m=l(o).split(","),n=l(c).split(","),{from:m,to:n,f:function(a){return a}};var q=o.match(k),r=l(c).match(k);return q&&q==r?{from:parseFloat(o),to:parseFloat(c),f:f(q)}:{from:this.asPX(b),to:this.asPX(b,c),f:e}}}),d.plugin(function(a,c,d,e){for(var f=c.prototype,g="hasOwnProperty",h=("createTouch"in e.doc),i=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],j={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},k=function(a){var b="y"==a?"scrollTop":"scrollLeft";return e.doc.documentElement[b]||e.doc.body[b]},l=function(){this.returnValue=!1},m=function(){return this.originalEvent.preventDefault()},n=function(){this.cancelBubble=!0},o=function(){return this.originalEvent.stopPropagation()},p=function(){return e.doc.addEventListener?function(a,b,c,d){var e=h&&j[b]?j[b]:b,f=function(e){var f=k("y"),i=k("x");if(h&&j[g](b))for(var l=0,n=e.targetTouches&&e.targetTouches.length;n>l;l++)if(e.targetTouches[l].target==a||a.contains(e.targetTouches[l].target)){var p=e;e=e.targetTouches[l],e.originalEvent=p,e.preventDefault=m,e.stopPropagation=o;break}var q=e.clientX+i,r=e.clientY+f;return c.call(d,e,q,r)};return b!==e&&a.addEventListener(b,f,!1),a.addEventListener(e,f,!1),function(){return b!==e&&a.removeEventListener(b,f,!1),a.removeEventListener(e,f,!1),!0}}:e.doc.attachEvent?function(a,b,c,d){var f=function(a){a=a||e.win.event;var b=k("y"),f=k("x"),g=a.clientX+f,h=a.clientY+b;return a.preventDefault=a.preventDefault||l,a.stopPropagation=a.stopPropagation||n,c.call(d,a,g,h)};a.attachEvent("on"+b,f);var g=function(){return a.detachEvent("on"+b,f),!0};return g}:void 0}(),q=[],r=function(c){for(var d,e=c.clientX,f=c.clientY,g=k("y"),i=k("x"),j=q.length;j--;){if(d=q[j],h){for(var l,m=c.touches&&c.touches.length;m--;)if(l=c.touches[m],l.identifier==d.el._drag.id||d.el.node.contains(l.target)){e=l.clientX,f=l.clientY,(c.originalEvent?c.originalEvent:c).preventDefault();break}}else c.preventDefault();var n=d.el.node;a._.glob,n.nextSibling,n.parentNode,n.style.display,e+=i,f+=g,b("snap.drag.move."+d.el.id,d.move_scope||d.el,e-d.el._drag.x,f-d.el._drag.y,e,f,c)}},s=function(c){a.unmousemove(r).unmouseup(s);for(var d,e=q.length;e--;)d=q[e],d.el._drag={},b("snap.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,c);q=[]},t=i.length;t--;)!function(b){a[b]=f[b]=function(c,d){return a.is(c,"function")&&(this.events=this.events||[],this.events.push({name:b,f:c,unbind:p(this.shape||this.node||e.doc,b,c,d||this)})),this},a["un"+b]=f["un"+b]=function(a){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==b&&(c[d].f==a||!a))return c[d].unbind(),c.splice(d,1),!c.length&&delete this.events,this;return this}}(i[t]);f.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)},f.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var u=[];f.drag=function(c,d,e,f,g,h){function i(i,j,k){(i.originalEvent||i).preventDefault(),this._drag.x=j,this._drag.y=k,this._drag.id=i.identifier,!q.length&&a.mousemove(r).mouseup(s),q.push({el:this,move_scope:f,start_scope:g,end_scope:h}),d&&b.on("snap.drag.start."+this.id,d),c&&b.on("snap.drag.move."+this.id,c),e&&b.on("snap.drag.end."+this.id,e),b("snap.drag.start."+this.id,g||f||this,j,k,i)}if(!arguments.length){var j;return this.drag(function(a,b){this.attr({transform:j+(j?"T":"t")+[a,b]})},function(){j=this.transform().local})}return this._drag={},u.push({el:this,start:i}),this.mousedown(i),this},f.undrag=function(){for(var c=u.length;c--;)u[c].el==this&&(this.unmousedown(u[c].start),u.splice(c,1),b.unbind("snap.drag.*."+this.id));return!u.length&&a.unmousemove(r).unmouseup(s),this}}),d.plugin(function(a,c,d){var e=(c.prototype,d.prototype),f=/^\s*url\((.+)\)/,g=String,h=a._.$;a.filter={},e.filter=function(b){var d=this;"svg"!=d.type&&(d=d.paper);var e=a.parse(g(b)),f=a._.id(),i=(d.node.offsetWidth,d.node.offsetHeight,h("filter"));return h(i,{id:f,filterUnits:"userSpaceOnUse"}),i.appendChild(e.node),d.defs.appendChild(i),new c(i)},b.on("snap.util.getattr.filter",function(){b.stop();var c=h(this.node,"filter");if(c){var d=g(c).match(f);return d&&a.select(d[1])}}),b.on("snap.util.attr.filter",function(d){if(d instanceof c&&"filter"==d.type){b.stop();var e=d.node.id;e||(h(d.node,{id:d.id}),e=d.id),h(this.node,{filter:a.url(e)})}d&&"none"!=d||(b.stop(),this.node.removeAttribute("filter"))}),a.filter.blur=function(b,c){null==b&&(b=2);var d=null==c?b:[b,c];return a.format('',{def:d})},a.filter.blur.toString=function(){return this()},a.filter.shadow=function(b,c,d,e){return e=e||"#000",null==d&&(d=4),"string"==typeof d&&(e=d,d=4),null==b&&(b=0,c=2),null==c&&(c=b),e=a.color(e),a.format('',{color:e,dx:b,dy:c,blur:d})},a.filter.shadow.toString=function(){return this()},a.filter.grayscale=function(b){return null==b&&(b=1),a.format('',{a:.2126+.7874*(1-b),b:.7152-.7152*(1-b),c:.0722-.0722*(1-b),d:.2126-.2126*(1-b),e:.7152+.2848*(1-b),f:.0722-.0722*(1-b),g:.2126-.2126*(1-b),h:.0722+.9278*(1-b)})},a.filter.grayscale.toString=function(){return this()},a.filter.sepia=function(b){return null==b&&(b=1),a.format('',{a:.393+.607*(1-b),b:.769-.769*(1-b),c:.189-.189*(1-b),d:.349-.349*(1-b),e:.686+.314*(1-b),f:.168-.168*(1-b),g:.272-.272*(1-b),h:.534-.534*(1-b),i:.131+.869*(1-b)})},a.filter.sepia.toString=function(){return this()},a.filter.saturate=function(b){return null==b&&(b=1),a.format('',{amount:1-b})},a.filter.saturate.toString=function(){return this()},a.filter.hueRotate=function(b){return b=b||0,a.format('',{angle:b})},a.filter.hueRotate.toString=function(){return this()},a.filter.invert=function(b){return null==b&&(b=1),a.format('',{amount:b,amount2:1-b})},a.filter.invert.toString=function(){return this()},a.filter.brightness=function(b){return null==b&&(b=1),a.format('',{amount:b})},a.filter.brightness.toString=function(){return this()},a.filter.contrast=function(b){return null==b&&(b=1),a.format('',{amount:b,amount2:.5-b/2})},a.filter.contrast.toString=function(){return this()}}),d}),function(a){function b(b){var c="div.ult-overlay."+b;if(joverlay=document.querySelector(c),i=a(c),i.hasClass("ult-open")){i.removeClass("ult-open"),i.addClass("ult-close");var d=function(a){if(support.transitions){if("visibility"!==a.propertyName)return;this.removeEventListener(transEndEventName,d)}i.removeClass("ult-close")};support.transitions?(joverlay.addEventListener(transEndEventName,d),i.removeClass("ult-close"),fi-1||g.animate({path:h[a]},60,mina.linear,function(){l(a)})};l(j)}}function e(a){for(var b,c,d=a.length;0!==d;)c=Math.floor(Math.random()*d),d-=1,b=a[d],a[d]=a[c],a[c]=b;return a}function f(b){var c="div.overlay-boxes."+b,d=document.querySelector(c),f=a(c),g=[].slice.call(d.querySelectorAll("svg > path")),h=g.length,i=0;e(g),f.hasClass("ult-open")?(f.removeClass("ult-open"),f.addClass("ult-close"),g.forEach(function(a,b){setTimeout(function(){++i,a.style.display="none",i===h&&f.removeClass("ult-close")},30*b)})):f.hasClass("ult-close")||(f.addClass("ult-open"),g.forEach(function(a,b){setTimeout(function(){a.style.display="block"},30*b)}))}function g(b){var c=a("."+b).find(".ult_modal-content").height(),d=a(window).height();c>d?a("."+b).addClass("ult_modal-auto-top"):a("."+b).removeClass("ult_modal-auto-top"),a("."+b).find("iframe").length>0&&a("."+b).find("iframe").each(function(b,c){a(c).attr("src",a(c).attr("src"))}),a(document).trigger("onUVCModalPopupOpen",b)}function h(){a(".ult_modal-body iframe").each(function(b,c){var d=a(this).parent().width(),e=(!!a(this).parent().parent().parent().hasClass("ult-small"),!!a(this).parent().parent().parent().hasClass("ult-medium"),!!a(this).parent().parent().parent().hasClass("ult-container")),f=!!a(this).parent().parent().parent().hasClass("ult-block"),g=d/10,h=d*(9/16)+g,i=!(!a(this).parent().hasClass("ult-youtube")&&!a(this).parent().hasClass("ult-vimeo"));if(!i)return!1;if(e){var j=a(window).height();j