(function($){ "use strict"; jQuery(document).ready(function($){ var eForm=jQuery('#contact-form'); var spinner=jQuery('.spinner'); eForm.find('#submit').on('click', function(e){ e.preventDefault(); jQuery('#contactsMsgs').html(''); spinner.show(); var errmsg; errmsg=''; if(errmsg){ jQuery('#contactsMsgs').html('

' + errmsg + '

'); spinner.hide(); }else{ var url=eForm.attr('action'); var data=eForm.serialize(); jQuery.ajax({ url: url, method: 'POST', data: data, error: function(data){ var $error_while_ajax_request=prefix_object_name.error_while_ajax_request; jQuery('#contactsMsgs').html('

'+ $error_while_ajax_request +'

'); spinner.hide(); }, success:function(data){ var $thank_you_your_email_has_been_sent=prefix_object_name.thank_you_your_email_has_been_sent; var $please_try_again=prefix_object_name.please_try_again; if(data.status=='success'){ jQuery('#contactsMsgs').html('

'+ $thank_you_your_email_has_been_sent +'

'); eForm.find("input[type=text], textarea").val(""); }else{ jQuery('#contactsMsgs').html('

'+ $please_try_again +'

'); } spinner.hide(); }}); }}); jQuery('.pagenation-blog > ul').addClass('pagenation-list').removeClass('page-numbers'); jQuery('.maxhost_sidebar .widget_categories > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_recent_entries > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_archive > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_meta > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_pages > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_recent_comments > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_nav_menu > ul').addClass('cat-list'); jQuery('.maxhost_sidebar .widget_nav_menu > div > ul').addClass('cat-list'); jQuery('.tagcloud').addClass('tags').removeClass('tagcloud'); jQuery('.comment-author-link').addClass('font-color').removeClass('comment-author-link'); jQuery('.comment-reply-title').addClass('m-i-bottom3 font-thin font25').removeClass('comment-reply-title'); jQuery('#comments .comment').addClass('comment-list'); jQuery('.mm').addClass('img-circle').removeClass('mm'); jQuery('.widget_search').addClass('sidebar_search').removeClass('widget_search'); jQuery('.widget_calendar').addClass('sidebar_search').removeClass('widget_calendar'); jQuery('.maxhost_sidebar .widget_text .textwidget > form > select > option').addClass('option-width'); }); }(jQuery)); if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); jQuery(document).ready(function(){ jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h=t&&u<=t+c+f&&o+h+a>=e&&o<=e+p+a){if(!n.appeared)n.trigger("appear",r.data)}else{n.appeared=false}};var o=function(){n.appeared=true;if(r.one){i.unbind("scroll",s);var o=e.inArray(s,e.fn.appear.checks);if(o>=0)e.fn.appear.checks.splice(o,1)}t.apply(this,arguments)};if(r.one)n.one("appear",r.data,o);else n.bind("appear",r.data,o);i.scroll(s);e.fn.appear.checks.push(s);s()})};e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)while(t--)e.fn.appear.checks[t]()},run:function(){if(e.fn.appear.timeout)clearTimeout(e.fn.appear.timeout);e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}});e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,n){var r=e.fn[n];if(r){e.fn[n]=function(){var t=r.apply(this,arguments);e.fn.appear.run();return t}}})})(jQuery); !function(a,b,c,d){"use strict";function e(b,c,d){var f,g=this,h="cbp";if(a.data(b,"cubeportfolio"))throw new Error("cubeportfolio is already initialized. Destroy it before initialize again!");a.data(b,"cubeportfolio",g),g.options=a.extend({},a.fn.cubeportfolio.options,c),g.isAnimating=!0,g.defaultFilter=g.options.defaultFilter,g.registeredEvents=[],g.queue=[],g.addedWrapp=!1,a.isFunction(d)&&g.registerEvent("initFinish",d,!0),g.obj=b,g.$obj=a(b),f=g.$obj.children(),g.options.caption&&("expand"===g.options.caption||e.Private.modernBrowser||(g.options.caption="minimal"),h+=" cbp-caption-active cbp-caption-"+g.options.caption),g.$obj.addClass(h),(0===f.length||f.first().hasClass("cbp-item"))&&(g.wrapInner(g.obj,"cbp-wrapper"),g.addedWrapp=!0),g.$ul=g.$obj.children().addClass("cbp-wrapper"),g.wrapInner(g.obj,"cbp-wrapper-outer"),g.wrapper=g.$obj.children(".cbp-wrapper-outer"),g.blocks=g.$ul.children(".cbp-item"),g.blocksOn=g.blocks,g.wrapInner(g.blocks,"cbp-item-wrapper"),g.loadImages(g.$obj,g.display)}a.extend(e.prototype,{storeData:function(b,c){var d=this;c=c||0,b.each(function(b,e){var f=a(e),g=f.width(),h=f.height();f.data("cbp",{index:c+b,wrapper:f.children(".cbp-item-wrapper"),widthInitial:g,heightInitial:h,width:g,height:h,widthAndGap:g+d.options.gapVertical,heightAndGap:h+d.options.gapHorizontal,left:null,leftNew:null,top:null,topNew:null,pack:!1})})},wrapInner:function(a,b){var e,f,g;if(b=b||"",!(a.length&&a.length<1))for(a.length===d&&(a=[a]),f=a.length-1;f>=0;f--){for(e=a[f],g=c.createElement("div"),g.setAttribute("class",b);e.childNodes.length;)g.appendChild(e.childNodes[0]);e.appendChild(g)}},loadImages:function(b,c){var d=this;requestAnimationFrame(function(){var e=b.find("img").map(function(a,b){return d.checkSrc(b.src)}),f=e.length;0===f&&c.call(d),a.each(e,function(a,b){b.one("load.cbp error.cbp",function(){f--,0===f&&c.call(d)})})})},checkSrc:function(b){if(""===b)return null;var c=new Image;return c.src=b,c.complete&&c.naturalWidth!==d&&0!==c.naturalWidth?null:a(c)},display:function(){var b=this;b.width=b.$obj.outerWidth(),b.storeData(b.blocks),b.filterFromUrl(),b.plugins=a.map(e.Plugins,function(a){return a(b)}),b.triggerEvent("initStartRead"),b.triggerEvent("initStartWrite"),"slider"===b.options.layoutMode&&b.registerEvent("gridAdjust",function(){b.sliderMarkup()},!0),b.layoutAndAdjustment(),b.triggerEvent("initEndRead"),b.triggerEvent("initEndWrite"),b.$obj.addClass("cbp-ready"),b.runQueue("delayFrame",b.delayFrame)},delayFrame:function(){var a=this;requestAnimationFrame(function(){a.resizeEvent(),a.triggerEvent("initFinish"),a.isAnimating=!1,a.$obj.trigger("initComplete.cbp")})},resizeEvent:function(){var c,d,e=this;a(b).on("resize.cbp",function(){clearTimeout(c),c=setTimeout(function(){b.innerHeight!=screen.height&&(d=e.$obj.outerWidth(),e.width!==d&&("alignCenter"===e.options.gridAdjustment&&(e.wrapper[0].style.maxWidth=""),e.width=d,e.layoutAndAdjustment(),"slider"===e.options.layoutMode&&e.updateSlider(),e.triggerEvent("resizeGrid")),e.triggerEvent("resizeWindow"))},50)})},gridAdjust:function(){var b=this;"responsive"===b.options.gridAdjustment?b.responsiveLayout():(b.blocks.removeAttr("style"),b.blocks.each(function(c,d){var e=a(d).data("cbp"),f=d.getBoundingClientRect(),g=b.columnWidthTruncate(f.right-f.left),h=Math.round(f.bottom-f.top);e.height=h,e.heightAndGap=h+b.options.gapHorizontal,e.width=g,e.widthAndGap=g+b.options.gapVertical}),b.widthAvailable=b.width+b.options.gapVertical),b.triggerEvent("gridAdjust")},layoutAndAdjustment:function(){var a=this;a.gridAdjust(),a.layout()},layout:function(){var a=this;a.computeBlocks(),"slider"===a.options.layoutMode?(a.sliderLayoutReset(),a.sliderLayout()):(a.mosaicLayoutReset(),a.mosaicLayout()),a.positionateItems(),a.resizeMainContainer()},computeFilter:function(){var a=this;a.computeBlocks(),a.mosaicLayoutReset(),a.mosaicLayout(),a.filterLayout(a.filterConcat(a.defaultFilter))},filterLayout:function(){var b=this;b.blocksOff.addClass("cbp-item-off"),b.blocksOn.removeClass("cbp-item-off").each(function(b,c){var d=a(c).data("cbp");d.left=d.leftNew,d.top=d.topNew,c.style.left=d.left+"px",c.style.top=d.top+"px"}),b.resizeMainContainer(),b.filterFinish()},filterFinish:function(){var a=this;a.isAnimating=!1,a.blocksAreSorted&&a.sortBlocks(a.blocks,"index"),a.$obj.trigger("filterComplete.cbp"),a.triggerEvent("filterFinish")},computeBlocks:function(){var a=this,b=a.filterConcat(a.defaultFilter);a.blocksOnInitial=a.blocksOn,a.blocksOn=a.blocks.filter(b),a.blocksOff=a.blocks.not(b)},responsiveLayout:function(){var b=this;b.cols=b[a.isArray(b.options.mediaQueries)?"getColumnsBreakpoints":"getColumnsAuto"](),b.columnWidth=b.columnWidthTruncate((b.width+b.options.gapVertical)/b.cols),b.widthAvailable=b.columnWidth*b.cols,"mosaic"===b.options.layoutMode&&b.getMosaicWidthReference(),b.blocks.each(function(c,d){var e,f=a(d).data("cbp"),g=1;"mosaic"===b.options.layoutMode&&(g=b.getColsMosaic(f.widthInitial)),e=b.columnWidth*g-b.options.gapVertical,d.style.width=e+"px",f.width=e,f.widthAndGap=e+b.options.gapVertical,d.style.height=""}),b.blocks.each(function(c,d){var e=a(d).data("cbp"),f=d.getBoundingClientRect(),g=Math.round(f.bottom-f.top);e.height=g,e.heightAndGap=g+b.options.gapHorizontal})},getMosaicWidthReference:function(){var b=this,c=[];b.blocks.each(function(b,d){var e=a(d).data("cbp");c.push(e.widthInitial)}),c.sort(function(a,b){return a-b}),b.mosaicWidthReference=c[0]?c[0]:b.columnWidth},getColsMosaic:function(a){var b=this;if(a===b.width)return b.cols;var c=a/b.mosaicWidthReference;return c=c%1>=.79?Math.ceil(c):Math.floor(c),Math.min(Math.max(c,1),b.cols)},getColumnsAuto:function(){var a=this;if(0===a.blocks.length)return 1;var b=a.blocks.first().data("cbp").widthInitial+a.options.gapVertical;return Math.max(Math.round(a.width/b),1)},getColumnsBreakpoints:function(){var b,c=this,e=c.width;return a.each(c.options.mediaQueries,function(a,c){return e>=c.width?(b=c.cols,!1):void 0}),b===d&&(b=c.options.mediaQueries[c.options.mediaQueries.length-1].cols),b},columnWidthTruncate:function(a){return Math.floor(a)},positionateItems:function(){var b,c=this;c.blocksOn.removeClass("cbp-item-off").each(function(c,d){b=a(d).data("cbp"),b.left=b.leftNew,b.top=b.topNew,d.style.left=b.left+"px",d.style.top=b.top+"px"}),c.blocksOff.addClass("cbp-item-off"),c.blocksAreSorted&&c.sortBlocks(c.blocks,"index")},resizeMainContainer:function(){var b,c=this,f=c.freeSpaces.slice(-1)[0].topStart-c.options.gapHorizontal;"alignCenter"===c.options.gridAdjustment&&(b=0,c.blocksOn.each(function(c,d){var e=a(d).data("cbp"),f=e.left+e.width;f>b&&(b=f)}),c.wrapper[0].style.maxWidth=b+"px"),f!==c.height&&(c.obj.style.height=f+"px",c.height!==d&&(e.Private.modernBrowser?c.$obj.one(e.Private.transitionend,function(){c.$obj.trigger("pluginResize.cbp")}):c.$obj.trigger("pluginResize.cbp")),c.height=f)},filterFromUrl:function(){var a=this,b=/#cbpf=(.*?)([#\?&]|$)/gi.exec(location.href);null!==b&&(a.defaultFilter=decodeURIComponent(b[1]))},filterConcat:function(a){return a.replace(/\|/gi,"")},pushQueue:function(a,b){var c=this;c.queue[a]=c.queue[a]||[],c.queue[a].push(b)},runQueue:function(b,c){var d=this,e=d.queue[b]||[];a.when.apply(a,e).then(a.proxy(c,d))},clearQueue:function(a){var b=this;b.queue[a]=[]},registerEvent:function(a,b,c){var d=this;d.registeredEvents[a]||(d.registeredEvents[a]=[]),d.registeredEvents[a].push({func:b,oneTime:c||!1})},triggerEvent:function(a,b){var c,d,e=this;if(e.registeredEvents[a])for(c=0,d=e.registeredEvents[a].length;d>c;c++)e.registeredEvents[a][c].func.call(e,b),e.registeredEvents[a][c].oneTime&&(e.registeredEvents[a].splice(c,1),c--,d--)},addItems:function(b,c){var d=this;d.wrapInner(b,"cbp-item-wrapper"),b.addClass("cbp-item-loading").css({top:"100%",left:0}).appendTo(d.$ul),e.Private.modernBrowser?b.last().one(e.Private.animationend,function(){d.addItemsFinish(b,c)}):d.addItemsFinish(b,c),d.loadImages(b,function(){d.$obj.addClass("cbp-addItems"),d.storeData(b,d.blocks.length),a.merge(d.blocks,b),d.triggerEvent("addItemsToDOM",b),d.layoutAndAdjustment(),"slider"===d.options.layoutMode&&d.updateSlider(),d.elems&&e.Public.showCounter.call(d.obj,d.elems)})},addItemsFinish:function(b,c){var d=this;d.isAnimating=!1,d.$obj.removeClass("cbp-addItems"),b.removeClass("cbp-item-loading"),a.isFunction(c)&&c.call(d)}}),a.fn.cubeportfolio=function(a,b,c){return this.each(function(){if("object"==typeof a||!a)return e.Public.init.call(this,a,c);if(e.Public[a])return e.Public[a].call(this,b,c);throw new Error("Method "+a+" does not exist on jquery.cubeportfolio.js")})},e.Plugins={},a.fn.cubeportfolio.Constructor=e}(jQuery,window,document),function(a){"use strict";function b(b){var c=this;c.parent=b,c.filters=a(b.options.filters),c.filterData=[],c.registerFilter()}var c=a.fn.cubeportfolio.Constructor;b.prototype.registerFilter=function(){var b=this,c=b.parent,d=c.defaultFilter.split("|");b.wrap=b.filters.find(".cbp-l-filters-dropdownWrap").on({"mouseenter.cbp":function(){a(this).addClass("cbp-l-filters-dropdownWrap-open")},"mouseleave.cbp":function(){a(this).removeClass("cbp-l-filters-dropdownWrap-open")}}),b.filters.each(function(e,f){var g=a(f),h="*",i=g.find(".cbp-filter-item");c.$obj.cubeportfolio("showCounter",i),a.each(d,function(a,b){return i.filter('[data-filter="'+b+'"]').length?(h=b,d.splice(a,1),!1):void 0}),a.data(f,"filterName",h),b.filterData.push(f),b.filtersCallback(g,i.filter('[data-filter="'+h+'"]')),i.on("click.cbp",function(){var d=a(this);if(!d.hasClass("cbp-filter-item-active")){c.isAnimating||b.filtersCallback(g,d),a.data(f,"filterName",d.data("filter"));var e=a.map(b.filterData,function(b){var c=a.data(b,"filterName");return""!==c&&"*"!==c?c:null});e.length<1&&(e=["*"]),c.$obj.cubeportfolio("filter",e.join("|"))}})})},b.prototype.filtersCallback=function(a,b){var c;a.hasClass("cbp-l-filters-dropdown")&&(c=a.find(".cbp-l-filters-dropdownWrap"),c.trigger("mouseleave.cbp"),c.find(".cbp-l-filters-dropdownHeader").text(b.text())),b.addClass("cbp-filter-item-active").siblings().removeClass("cbp-filter-item-active")},b.prototype.destroy=function(){var a=this;a.filters.off(".cbp"),a.wrap.off(".cbp")},c.Plugins.Filters=function(a){return""===a.options.filters?null:new b(a)}}(jQuery,window,document),function(a,b){"use strict";function c(b){var c=this;c.parent=b,c.loadMore=a(b.options.loadMore).find(".cbp-l-loadMore-link"),b.options.loadMoreAction.length&&c[b.options.loadMoreAction]()}var d=a.fn.cubeportfolio.Constructor;c.prototype.click=function(){var b=this,c=0;b.loadMore.on("click.cbp",function(d){var e=a(this);d.preventDefault(),e.hasClass("cbp-l-loadMore-stop")||(e.addClass("cbp-l-loadMore-loading"),c++,a.ajax({url:b.loadMore.attr("href"),type:"GET",dataType:"HTML"}).done(function(d){var f,g;f=a(d).filter(function(){return a(this).is("div.cbp-loadMore-block"+c)}),b.parent.$obj.cubeportfolio("appendItems",f.html(),function(){e.removeClass("cbp-l-loadMore-loading"),g=a(d).filter(function(){return a(this).is("div.cbp-loadMore-block"+(c+1))}),0===g.length&&e.addClass("cbp-l-loadMore-stop")})}).fail(function(){}))})},c.prototype.auto=function(){var c=this;c.parent.$obj.on("initComplete.cbp",function(){Object.create({init:function(){var d=this;d.isActive=!1,d.numberOfClicks=0,c.loadMore.addClass("cbp-l-loadMore-loading"),d.window=a(b),d.addEvents(),d.getNewItems()},addEvents:function(){var a,b=this;c.loadMore.on("click.cbp",function(a){a.preventDefault()}),b.window.on("scroll.loadMoreObject",function(){clearTimeout(a),a=setTimeout(function(){c.parent.isAnimating||b.getNewItems()},80)}),c.parent.$obj.on("filterComplete.cbp",function(){b.getNewItems()})},getNewItems:function(){var b,d,e=this;e.isActive||c.loadMore.hasClass("cbp-l-loadMore-stop")||(b=c.loadMore.offset().top,d=e.window.scrollTop()+e.window.height(),b>d||(e.isActive=!0,e.numberOfClicks++,a.ajax({url:c.loadMore.attr("href"),type:"GET",dataType:"HTML",cache:!0}).done(function(b){var d,f;d=a(b).filter(function(){return a(this).is("div.cbp-loadMore-block"+e.numberOfClicks)}),c.parent.$obj.cubeportfolio("appendItems",d.html(),function(){f=a(b).filter(function(){return a(this).is("div.cbp-loadMore-block"+(e.numberOfClicks+1))}),0===f.length?(c.loadMore.addClass("cbp-l-loadMore-stop"),e.window.off("scroll.loadMoreObject"),c.parent.$obj.off("filterComplete.cbp")):(e.isActive=!1,e.window.trigger("scroll.loadMoreObject"))})}).fail(function(){e.isActive=!1})))}}).init()})},c.prototype.destroy=function(){var c=this;c.loadMore.off(".cbp"),a(b).off("scroll.loadMoreObject")},d.Plugins.LoadMore=function(a){return""===a.options.loadMore?null:new c(a)}}(jQuery,window,document),jQuery.fn.cubeportfolio.options={filters:"",loadMore:"",loadMoreAction:"click",layoutMode:"grid",sortToPreventGaps:!1,drag:!0,auto:!1,autoTimeout:5e3,autoPauseOnHover:!0,showNavigation:!0,showPagination:!0,rewindNav:!0,scrollByPage:!1,defaultFilter:"*",filterDeeplinking:!1,animationType:"fadeOut",gridAdjustment:"responsive",mediaQueries:!1,gapHorizontal:10,gapVertical:10,caption:"pushTop",displayType:"lazyLoading",displayTypeSpeed:400,lightboxDelegate:".cbp-lightbox",lightboxGallery:!0,lightboxTitleSrc:"data-title",lightboxCounter:'
{{current}} of {{total}}
',singlePageDelegate:".cbp-singlePage",singlePageDeeplinking:!0,singlePageStickyNavigation:!0,singlePageCounter:'
{{current}} of {{total}}
',singlePageAnimation:"left",singlePageCallback:function(){},singlePageInlineDelegate:".cbp-singlePageInline",singlePageInlinePosition:"top",singlePageInlineInFocus:!0,singlePageInlineCallback:function(){}},function(a,b,c){"use strict";function d(a){var b=this;b.parent=a,a.options.lightboxShowCounter===!1&&(a.options.lightboxCounter=""),a.options.singlePageShowCounter===!1&&(a.options.singlePageCounter=""),b.run()}var e=a.fn.cubeportfolio.Constructor,f={init:function(b,d){var e,f=this;if(f.cubeportfolio=b,f.type=d,f.isOpen=!1,f.options=f.cubeportfolio.options,"lightbox"===d&&f.cubeportfolio.registerEvent("resizeWindow",function(){f.resizeImage()}),"singlePageInline"===d)return f.startInline=-1,f.height=0,f.createMarkupSinglePageInline(),void f.cubeportfolio.registerEvent("resizeGrid",function(){f.isOpen&&f.close()});if(f.createMarkup(),"singlePage"===d&&(f.cubeportfolio.registerEvent("resizeWindow",function(){if(f.options.singlePageStickyNavigation){var a=f.wrap[0].clientWidth;a>0&&(f.navigationWrap.width(a),f.navigation.width(a))}}),f.options.singlePageDeeplinking)){f.url=location.href,"#"===f.url.slice(-1)&&(f.url=f.url.slice(0,-1));var g=f.url.split("#cbp="),h=g.shift();if(a.each(g,function(b,c){return f.cubeportfolio.blocksOn.each(function(b,d){var g=a(d).find(f.options.singlePageDelegate+'[href="'+c+'"]');return g.length?(e=g,!1):void 0}),e?!1:void 0}),e){f.url=h;var i=e,j=i.attr("data-cbp-singlePage"),k=[];j?k=i.closest(a(".cbp-item")).find('[data-cbp-singlePage="'+j+'"]'):f.cubeportfolio.blocksOn.each(function(b,c){var d=a(c);d.not(".cbp-item-off")&&d.find(f.options.singlePageDelegate).each(function(b,c){a(c).attr("data-cbp-singlePage")||k.push(c)})}),f.openSinglePage(k,e[0])}else if(g.length){var l=c.createElement("a");l.setAttribute("href",g[0]),f.openSinglePage([l],l)}}},createMarkup:function(){var b=this,d="";"singlePage"===b.type&&"left"!==b.options.singlePageAnimation&&(d=" cbp-popup-singlePage-"+b.options.singlePageAnimation),b.wrap=a("
",{"class":"cbp-popup-wrap cbp-popup-"+b.type+d,"data-action":"lightbox"===b.type?"close":""}).on("click.cbp",function(c){if(!b.stopEvents){var d=a(c.target).attr("data-action");b[d]&&(b[d](),c.preventDefault())}}),b.content=a("
",{"class":"cbp-popup-content"}).appendTo(b.wrap),a("
",{"class":"cbp-popup-loadingBox"}).appendTo(b.wrap),"ie8"===e.Private.browser&&(b.bg=a("
",{"class":"cbp-popup-ie8bg","data-action":"lightbox"===b.type?"close":""}).appendTo(b.wrap)),b.navigationWrap=a("
",{"class":"cbp-popup-navigation-wrap"}).appendTo(b.wrap),b.navigation=a("
",{"class":"cbp-popup-navigation"}).appendTo(b.navigationWrap),b.closeButton=a("
",{"class":"cbp-popup-close",title:"Close (Esc arrow key)","data-action":"close"}).appendTo(b.navigation),b.nextButton=a("
",{"class":"cbp-popup-next",title:"Next (Right arrow key)","data-action":"next"}).appendTo(b.navigation),b.prevButton=a("
",{"class":"cbp-popup-prev",title:"Previous (Left arrow key)","data-action":"prev"}).appendTo(b.navigation),"singlePage"===b.type&&(b.options.singlePageCounter&&(b.counter=a(b.options.singlePageCounter).appendTo(b.navigation),b.counter.text("")),b.content.on("click.cbp",b.options.singlePageDelegate,function(a){a.preventDefault();var c,d=b.dataArray.length,e=this.getAttribute("href");for(c=0;d>c&&b.dataArray[c].url!==e;c++);b.singlePageJumpTo(c-b.current)}),b.wrap.on("mousewheel.cbp DOMMouseScroll.cbp",function(a){a.stopImmediatePropagation()})),a(c).on("keydown.cbp",function(a){b.isOpen&&(b.stopEvents||(37===a.keyCode?b.prev():39===a.keyCode?b.next():27===a.keyCode&&b.close()))})},createMarkupSinglePageInline:function(){var b=this;b.wrap=a("
",{"class":"cbp-popup-singlePageInline"}).on("click.cbp",function(c){if(!b.stopEvents){var d=a(c.target).attr("data-action");d&&b[d]&&(b[d](),c.preventDefault())}}),b.content=a("
",{"class":"cbp-popup-content"}).appendTo(b.wrap),b.navigation=a("
",{"class":"cbp-popup-navigation"}).appendTo(b.wrap),b.closeButton=a("
",{"class":"cbp-popup-close",title:"Close (Esc arrow key)","data-action":"close"}).appendTo(b.navigation)},destroy:function(){var b=this,d=a("body");a(c).off("keydown.cbp"),d.off("click.cbp",b.options.lightboxDelegate),d.off("click.cbp",b.options.singlePageDelegate),b.content.off("click.cbp",b.options.singlePageDelegate),b.cubeportfolio.$obj.off("click.cbp",b.options.singlePageInlineDelegate),b.cubeportfolio.$obj.off("click.cbp",b.options.lightboxDelegate),b.cubeportfolio.$obj.off("click.cbp",b.options.singlePageDelegate),b.cubeportfolio.$obj.removeClass("cbp-popup-isOpening"),b.cubeportfolio.$obj.find(".cbp-item").removeClass("cbp-singlePageInline-active"),b.wrap.remove()},openLightbox:function(d,e){var f,g,h=this,i=0,j=[];if(!h.isOpen){if(h.isOpen=!0,h.stopEvents=!1,h.dataArray=[],h.current=null,f=e.getAttribute("href"),null===f)throw new Error("HEI! Your clicked element doesn't have a href attribute.");a.each(d,function(b,c){var d,e=c.getAttribute("href"),g=e,k="isImage";if(-1===a.inArray(e,j)){if(f===e)h.current=i;else if(!h.options.lightboxGallery)return;/youtube/i.test(e)?(d=e.substring(e.lastIndexOf("v=")+2),/autoplay=/i.test(d)||(d+="&autoplay=1"),d=d.replace(/\?|&/,"?"),g="//www.youtube.com/embed/"+d,k="isYoutube"):/vimeo/i.test(e)?(d=e.substring(e.lastIndexOf("/")+1),/autoplay=/i.test(d)||(d+="&autoplay=1"),d=d.replace(/\?|&/,"?"),g="//player.vimeo.com/video/"+d,k="isVimeo"):/ted\.com/i.test(e)?(g="http://embed.ted.com/talks/"+e.substring(e.lastIndexOf("/")+1)+".html",k="isTed"):/soundcloud\.com/i.test(e)?(g=e,k="isSoundCloud"):/(\.mp4)|(\.ogg)|(\.ogv)|(\.webm)/i.test(e)?(g=e.split(-1!==e.indexOf("|")?"|":"%7C"),k="isSelfHostedVideo"):/\.mp3$/i.test(e)&&(g=e,k="isSelfHostedAudio"),h.dataArray.push({src:g,title:c.getAttribute(h.options.lightboxTitleSrc),type:k}),i++}j.push(e)}),h.counterTotal=h.dataArray.length,1===h.counterTotal?(h.nextButton.hide(),h.prevButton.hide(),h.dataActionImg=""):(h.nextButton.show(),h.prevButton.show(),h.dataActionImg='data-action="next"'),h.wrap.appendTo(c.body),h.scrollTop=a(b).scrollTop(),h.originalStyle=a("html").attr("style"),a("html").css({overflow:"hidden",paddingRight:b.innerWidth-a(c).width()}),h.wrap.show(),g=h.dataArray[h.current],h[g.type](g)}},openSinglePage:function(d,f){var g,h=this,i=0,j=[];if(!h.isOpen){if(h.cubeportfolio.singlePageInline&&h.cubeportfolio.singlePageInline.isOpen&&h.cubeportfolio.singlePageInline.close(),h.isOpen=!0,h.stopEvents=!1,h.dataArray=[],h.current=null,g=f.getAttribute("href"),null===g)throw new Error("HEI! Your clicked element doesn't have a href attribute.");if(a.each(d,function(b,c){var d=c.getAttribute("href");-1===a.inArray(d,j)&&(g===d&&(h.current=i),h.dataArray.push({url:d,element:c}),i++),j.push(d)}),h.counterTotal=h.dataArray.length,1===h.counterTotal?(h.nextButton.hide(),h.prevButton.hide()):(h.nextButton.show(),h.prevButton.show()),h.wrap.appendTo(c.body),h.scrollTop=a(b).scrollTop(),a("html").css({overflow:"hidden",paddingRight:b.innerWidth-a(c).width()}),h.wrap.scrollTop(0),h.wrap.show(),h.finishOpen=2,h.navigationMobile=a(),h.wrap.one(e.Private.transitionend,function(){var b;h.options.singlePageStickyNavigation&&(h.wrap.addClass("cbp-popup-singlePage-sticky"),b=h.wrap[0].clientWidth,h.navigationWrap.width(b),("android"===e.Private.browser||"ios"===e.Private.browser)&&(h.navigationMobile=a("
",{"class":"cbp-popup-singlePage cbp-popup-singlePage-sticky",id:h.wrap.attr("id")}).on("click.cbp",function(b){if(!h.stopEvents){var c=a(b.target).attr("data-action");h[c]&&(h[c](),b.preventDefault())}}),h.navigationMobile.appendTo(c.body).append(h.navigationWrap))),h.finishOpen--,h.finishOpen<=0&&h.updateSinglePageIsOpen.call(h)}),"ie8"===e.Private.browser||"ie9"===e.Private.browser){if(h.options.singlePageStickyNavigation){var k=h.wrap[0].clientWidth;h.navigationWrap.width(k),setTimeout(function(){h.wrap.addClass("cbp-popup-singlePage-sticky")},1e3)}h.finishOpen--}h.wrap.addClass("cbp-popup-loading"),h.wrap.offset(),h.wrap.addClass("cbp-popup-singlePage-open"),h.options.singlePageDeeplinking&&(h.url=h.url.split("#cbp=")[0],location.href=h.url+"#cbp="+h.dataArray[h.current].url),a.isFunction(h.options.singlePageCallback)&&h.options.singlePageCallback.call(h,h.dataArray[h.current].url,h.dataArray[h.current].element)}},openSinglePageInline:function(c,d,e){var f,g,h,i,j=this;if(e=e||!1,j.fromOpen=e,j.storeBlocks=c,j.storeCurrentBlock=d,j.isOpen)return g=a(d).closest(".cbp-item").index(),void(j.dataArray[j.current].url!==d.getAttribute("href")||j.current!==g?j.cubeportfolio.singlePageInline.close("open",{blocks:c,currentBlock:d,fromOpen:!0}):j.close());if(j.isOpen=!0,j.stopEvents=!1,j.dataArray=[],j.current=null,f=d.getAttribute("href"),null===f)throw new Error("HEI! Your clicked element doesn't have a href attribute.");if(h=a(d).closest(".cbp-item")[0],c.each(function(a,b){h===b&&(j.current=a)}),j.dataArray[j.current]={url:f,element:d},i=a(j.dataArray[j.current].element).parents(".cbp-item").addClass("cbp-singlePageInline-active"),j.counterTotal=c.length,j.wrap.insertBefore(j.cubeportfolio.wrapper),"top"===j.options.singlePageInlinePosition?(j.startInline=0,j.top=0,j.firstRow=!0,j.lastRow=!1):"bottom"===j.options.singlePageInlinePosition?(j.startInline=j.counterTotal,j.top=j.cubeportfolio.height,j.firstRow=!1,j.lastRow=!0):"above"===j.options.singlePageInlinePosition?(j.startInline=j.cubeportfolio.cols*Math.floor(j.current/j.cubeportfolio.cols),j.top=a(c[j.current]).data("cbp").top,0===j.startInline?j.firstRow=!0:(j.top-=j.options.gapHorizontal,j.firstRow=!1),j.lastRow=!1):(j.top=a(c[j.current]).data("cbp").top+a(c[j.current]).data("cbp").height,j.startInline=Math.min(j.cubeportfolio.cols*(Math.floor(j.current/j.cubeportfolio.cols)+1),j.counterTotal),j.firstRow=!1,j.lastRow=j.startInline===j.counterTotal?!0:!1),j.wrap[0].style.height=j.wrap.outerHeight(!0)+"px",j.deferredInline=a.Deferred(),j.options.singlePageInlineInFocus){j.scrollTop=a(b).scrollTop();var k=j.cubeportfolio.$obj.offset().top+j.top-100;j.scrollTop!==k?a("html,body").animate({scrollTop:k},350).promise().then(function(){j.resizeSinglePageInline(),j.deferredInline.resolve()}):(j.resizeSinglePageInline(),j.deferredInline.resolve())}else j.resizeSinglePageInline(),j.deferredInline.resolve();j.cubeportfolio.$obj.addClass("cbp-popup-singlePageInline-open"),j.wrap.css({top:j.top}),a.isFunction(j.options.singlePageInlineCallback)&&j.options.singlePageInlineCallback.call(j,j.dataArray[j.current].url,j.dataArray[j.current].element)},resizeSinglePageInline:function(){var a=this;a.height=a.firstRow||a.lastRow?a.wrap.outerHeight(!0):a.wrap.outerHeight(!0)-a.options.gapHorizontal,a.storeBlocks.each(function(b,c){b
'),function(){c.updateImagesMarkup(b.src,b.title,c.getCounterMarkup(c.options.lightboxCounter,c.current+1,c.counterTotal)),c.tooggleLoading(!1)})},isVimeo:function(a){var b=this;b.updateVideoMarkup(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},isYoutube:function(a){var b=this;b.updateVideoMarkup(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},isTed:function(a){var b=this;b.updateVideoMarkup(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},isSoundCloud:function(a){var b=this;b.updateVideoMarkup(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},isSelfHostedVideo:function(a){var b=this;b.updateSelfHostedVideo(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},isSelfHostedAudio:function(a){var b=this;b.updateSelfHostedAudio(a.src,a.title,b.getCounterMarkup(b.options.lightboxCounter,b.current+1,b.counterTotal))},getCounterMarkup:function(a,b,c){if(!a.length)return"";var d={current:b,total:c};return a.replace(/\{\{current}}|\{\{total}}/gi,function(a){return d[a.slice(2,-2)]})},updateSelfHostedVideo:function(a,b,c){var d,e=this;e.wrap.addClass("cbp-popup-lightbox-isIframe");var f='
'+(b?'
'+b+"
":"")+c+"
",e.content.html(f),e.wrap.addClass("cbp-popup-ready"),e.preloadNearbyImages()},updateSelfHostedAudio:function(a,b,c){var d=this;d.wrap.addClass("cbp-popup-lightbox-isIframe");var e='
'+(b?'
'+b+"
":"")+c+"
";d.content.html(e),d.wrap.addClass("cbp-popup-ready"),d.preloadNearbyImages()},updateVideoMarkup:function(a,b,c){var d=this;d.wrap.addClass("cbp-popup-lightbox-isIframe");var e='
'+(b?'
'+b+"
":"")+c+"
";d.content.html(e),d.wrap.addClass("cbp-popup-ready"),d.preloadNearbyImages()},updateImagesMarkup:function(a,b,c){var d=this;d.wrap.removeClass("cbp-popup-lightbox-isIframe");var e='
'+(b?'
'+b+"
":"")+c+"
";d.content.html(e),d.wrap.addClass("cbp-popup-ready"),d.resizeImage(),d.preloadNearbyImages()},next:function(){var a=this;a[a.type+"JumpTo"](1)},prev:function(){var a=this;a[a.type+"JumpTo"](-1)},lightboxJumpTo:function(a){var b,c=this;c.current=c.getIndex(c.current+a),b=c.dataArray[c.current],c[b.type](b)},singlePageJumpTo:function(b){var c=this;c.current=c.getIndex(c.current+b),a.isFunction(c.options.singlePageCallback)&&(c.resetWrap(),c.wrap.scrollTop(0),c.wrap.addClass("cbp-popup-loading"),c.options.singlePageCallback.call(c,c.dataArray[c.current].url,c.dataArray[c.current].element),c.options.singlePageDeeplinking&&(location.href=c.url+"#cbp="+c.dataArray[c.current].url))},resetWrap:function(){var a=this;"singlePage"===a.type&&a.options.singlePageDeeplinking&&(location.href=a.url+"#")},getIndex:function(a){var b=this;return a%=b.counterTotal,0>a&&(a=b.counterTotal+a),a},close:function(c,d){function f(){h.content.html(""),h.wrap.detach(),h.cubeportfolio.$obj.removeClass("cbp-popup-singlePageInline-open cbp-popup-singlePageInline-close"),"promise"===c&&a.isFunction(d.callback)&&d.callback.call(h.cubeportfolio)}function g(){h.options.singlePageInlineInFocus&&"promise"!==c?a("html,body").animate({scrollTop:h.scrollTop},350).promise().then(function(){f()}):f()}var h=this;h.isOpen=!1,"singlePageInline"===h.type?"open"===c?(h.wrap.removeClass("cbp-popup-singlePageInline-ready"),a(h.dataArray[h.current].element).closest(".cbp-item").removeClass("cbp-singlePageInline-active"),h.openSinglePageInline(d.blocks,d.currentBlock,d.fromOpen)):(h.height=0,h.revertResizeSinglePageInline(),h.wrap.removeClass("cbp-popup-singlePageInline-ready"),h.cubeportfolio.$obj.addClass("cbp-popup-singlePageInline-close"),h.startInline=-1,h.cubeportfolio.$obj.find(".cbp-item").removeClass("cbp-singlePageInline-active"),e.Private.modernBrowser?h.wrap.one(e.Private.transitionend,function(){ g()}):g()):"singlePage"===h.type?(h.resetWrap(),h.wrap.removeClass("cbp-popup-ready"),("android"===e.Private.browser||"ios"===e.Private.browser)&&(a("html").css({position:""}),h.navigationWrap.appendTo(h.wrap),h.navigationMobile.remove()),a(b).scrollTop(h.scrollTop),setTimeout(function(){h.stopScroll=!0,h.navigationWrap.css({top:h.wrap.scrollTop()}),h.wrap.removeClass("cbp-popup-singlePage-open cbp-popup-singlePage-sticky"),("ie8"===e.Private.browser||"ie9"===e.Private.browser)&&(h.content.html(""),h.wrap.detach(),a("html").css({overflow:"",paddingRight:"",position:""}),h.navigationWrap.removeAttr("style"))},0),h.wrap.one(e.Private.transitionend,function(){h.content.html(""),h.wrap.detach(),a("html").css({overflow:"",paddingRight:"",position:""}),h.navigationWrap.removeAttr("style")})):(h.originalStyle?a("html").attr("style",h.originalStyle):a("html").css({overflow:"",paddingRight:""}),a(b).scrollTop(h.scrollTop),h.content.html(""),h.wrap.detach())},tooggleLoading:function(a){var b=this;b.stopEvents=a,b.wrap[a?"addClass":"removeClass"]("cbp-popup-loading")},resizeImage:function(){if(this.isOpen){var c=a(b).height(),d=this.content.find("img"),e=parseInt(d.css("margin-top"),10)+parseInt(d.css("margin-bottom"),10);d.css("max-height",c-e+"px")}},preloadNearbyImages:function(){var a=[],b=this;a.push(b.getIndex(b.current+1)),a.push(b.getIndex(b.current+2)),a.push(b.getIndex(b.current+3)),a.push(b.getIndex(b.current-1)),a.push(b.getIndex(b.current-2)),a.push(b.getIndex(b.current-3));for(var c=a.length-1;c>=0;c--)"isImage"===b.dataArray[a[c]].type&&b.cubeportfolio.checkSrc(b.dataArray[a[c]].src)}},g=!1,h=!1;d.prototype.run=function(){var b=this,d=b.parent,e=a(c.body);d.lightbox=null,d.options.lightboxDelegate&&!g&&(g=!0,d.lightbox=Object.create(f),d.lightbox.init(d,"lightbox"),e.on("click.cbp",d.options.lightboxDelegate,function(c){c.preventDefault();var e=a(this),f=e.attr("data-cbp-lightbox"),g=b.detectScope(e),h=g.data("cubeportfolio"),i=[];h?h.blocksOn.each(function(b,c){var e=a(c);e.not(".cbp-item-off")&&e.find(d.options.lightboxDelegate).each(function(b,c){f?a(c).attr("data-cbp-lightbox")===f&&i.push(c):i.push(c)})}):i=g.find(f?d.options.lightboxDelegate+"[data-cbp-lightbox="+f+"]":d.options.lightboxDelegate),d.lightbox.openLightbox(i,e[0])})),d.singlePage=null,d.options.singlePageDelegate&&!h&&(h=!0,d.singlePage=Object.create(f),d.singlePage.init(d,"singlePage"),e.on("click.cbp",d.options.singlePageDelegate,function(c){c.preventDefault();var e=a(this),f=e.attr("data-cbp-singlePage"),g=b.detectScope(e),h=g.data("cubeportfolio"),i=[];h?h.blocksOn.each(function(b,c){var e=a(c);e.not(".cbp-item-off")&&e.find(d.options.singlePageDelegate).each(function(b,c){f?a(c).attr("data-cbp-singlePage")===f&&i.push(c):i.push(c)})}):i=g.find(f?d.options.singlePageDelegate+"[data-cbp-singlePage="+f+"]":d.options.singlePageDelegate),d.singlePage.openSinglePage(i,e[0])})),d.singlePageInline=null,d.options.singlePageDelegate&&(d.singlePageInline=Object.create(f),d.singlePageInline.init(d,"singlePageInline"),d.$obj.on("click.cbp",d.options.singlePageInlineDelegate,function(a){a.preventDefault(),d.singlePageInline.openSinglePageInline(d.blocksOn,this)}))},d.prototype.detectScope=function(b){var d,e,f;return d=b.closest(".cbp-popup-singlePageInline"),d.length?(f=b.closest(".cbp",d[0]),f.length?f:d):(e=b.closest(".cbp-popup-singlePage"),e.length?(f=b.closest(".cbp",e[0]),f.length?f:e):(f=b.closest(".cbp"),f.length?f:a(c.body)))},d.prototype.destroy=function(){var b=this.parent;a(c.body).off("click.cbp"),g=!1,h=!1,b.lightbox&&b.lightbox.destroy(),b.singlePage&&b.singlePage.destroy(),b.singlePageInline&&b.singlePageInline.destroy()},e.Plugins.PopUp=function(a){return new d(a)}}(jQuery,window,document),function(a,b,c,d){"use strict";var e=a.fn.cubeportfolio.Constructor;e.Private={checkInstance:function(b){var c=a.data(this,"cubeportfolio");if(!c)throw new Error("cubeportfolio is not initialized. Initialize it before calling "+b+" method!");return c},browserInfo:function(){var a,c,f,g=e.Private,h=navigator.appVersion;g.browser=-1!==h.indexOf("MSIE 8.")?"ie8":-1!==h.indexOf("MSIE 9.")?"ie9":-1!==h.indexOf("MSIE 10.")?"ie10":b.ActiveXObject||"ActiveXObject"in b?"ie11":/android/gi.test(h)?"android":/iphone|ipad|ipod/gi.test(h)?"ios":/chrome/gi.test(h)?"chrome":"",f=g.styleSupport("perspective"),typeof f!==d&&(a=g.styleSupport("transition"),g.transitionend={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],c=g.styleSupport("animation"),g.animationend={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"}[c],g.animationDuration={WebkitAnimation:"webkitAnimationDuration",animation:"animationDuration"}[c],g.animationDelay={WebkitAnimation:"webkitAnimationDelay",animation:"animationDelay"}[c],g.transform=g.styleSupport("transform"),a&&c&&g.transform&&(g.modernBrowser=!0))},styleSupport:function(a){var b,d="Webkit"+a.charAt(0).toUpperCase()+a.slice(1),e=c.createElement("div");return a in e.style?b=a:d in e.style&&(b=d),e=null,b}},e.Private.browserInfo()}(jQuery,window,document),function(a,b,c){"use strict";var d=a.fn.cubeportfolio.Constructor;d.Public={init:function(a,b){new d(this,a,b)},destroy:function(e){var f=d.Private.checkInstance.call(this,"destroy");f.triggerEvent("beforeDestroy"),a.removeData(this,"cubeportfolio"),f.blocks.removeData("cbp"),f.$obj.removeClass("cbp-ready").removeAttr("style"),f.$ul.removeClass("cbp-wrapper"),a(b).off("resize.cbp"),f.$obj.off(".cbp"),a(c).off(".cbp"),f.blocks.removeClass("cbp-item-off").removeAttr("style"),f.blocks.find(".cbp-item-wrapper").children().unwrap(),f.options.caption&&f.$obj.removeClass("cbp-caption-active cbp-caption-"+f.options.caption),f.destroySlider(),f.$ul.unwrap(),f.addedWrapp&&f.blocks.unwrap(),a.each(f.plugins,function(a,b){"function"==typeof b.destroy&&b.destroy()}),a.isFunction(e)&&e.call(f),f.triggerEvent("afterDestroy")},filter:function(b,c){var e,f=d.Private.checkInstance.call(this,"filter");a.isFunction(c)&&f.registerEvent("filterFinish",c,!0),f.isAnimating||f.defaultFilter===b||(f.options.filterDeeplinking&&(e=location.href.replace(/#cbpf=(.*?)([#\?&]|$)/gi,""),location.href=e+"#cbpf="+encodeURIComponent(b),f.singlePage&&f.singlePage.url&&(f.singlePage.url=location.href)),f.isAnimating=!0,f.defaultFilter=b,f.singlePageInline&&f.singlePageInline.isOpen?f.singlePageInline.close("promise",{callback:function(){f.computeFilter()}}):f.computeFilter())},showCounter:function(b,c){var e=d.Private.checkInstance.call(this,"showCounter");e.elems=b,a.each(b,function(){var b,c=a(this),d=c.data("filter");b=e.blocks.filter(d).length,c.find(".cbp-filter-counter").text(b)}),a.isFunction(c)&&c.call(e)},appendItems:function(b,c){var e=d.Private.checkInstance.call(this,"appendItems"),f=a(b).filter(".cbp-item");return e.isAnimating||f.length<1?void(a.isFunction(c)&&c.call(e)):(e.isAnimating=!0,void(e.singlePageInline&&e.singlePageInline.isOpen?e.singlePageInline.close("promise",{callback:function(){e.addItems(f,c)}}):e.addItems(f,c)))}}}(jQuery,window,document),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(){for(var a=0,b=["moz","webkit"],c=0;ca;a++){if(d=b.getSpaceIndexAndBlock(),null===d)return b.sortBlocksToPreventGaps(),void b.mosaicLayout();b.generateF1F2(d.spaceIndex,d.dataBlock),b.generateG1G2G3G4(d.dataBlock),b.cleanFreeSpaces(),b.addHeightToBlocks()}b.blocksAreSorted&&b.sortBlocks(b.blocksOn,"topNew")},getSpaceIndexAndBlock:function(){var b=this,c=null;return a.each(b.freeSpaces,function(d,e){var f=e.leftEnd-e.leftStart,g=e.topEnd-e.topStart;return b.blocksOn.each(function(b,h){var i=a(h).data("cbp");if(i.pack!==!0)return i.widthAndGap<=f&&i.heightAndGap<=g?(i.pack=!0,c={spaceIndex:d,dataBlock:i},i.leftNew=e.leftStart,i.topNew=e.topStart,!1):void 0}),!b.blocksAreSorted&&b.options.sortToPreventGaps&&d>0?(c=null,!1):null!==c?!1:void 0}),c},generateF1F2:function(a,b){var c=this,d=c.freeSpaces[a],e={leftStart:d.leftStart+b.widthAndGap,leftEnd:d.leftEnd,topStart:d.topStart,topEnd:d.topEnd},f={leftStart:d.leftStart,leftEnd:d.leftEnd,topStart:d.topStart+b.heightAndGap,topEnd:d.topEnd};c.freeSpaces.splice(a,1),e.leftEnd>e.leftStart&&e.topEnd>e.topStart&&(c.freeSpaces.splice(a,0,e),a++),f.leftEnd>f.leftStart&&f.topEnd>f.topStart&&c.freeSpaces.splice(a,0,f)},generateG1G2G3G4:function(b){var c=this,d=[];a.each(c.freeSpaces,function(a,e){var f=c.intersectSpaces(e,b);return null===f?void d.push(e):(c.generateG1(e,f,d),c.generateG2(e,f,d),c.generateG3(e,f,d),void c.generateG4(e,f,d))}),c.freeSpaces=d},intersectSpaces:function(a,b){var c={leftStart:b.leftNew,leftEnd:b.leftNew+b.widthAndGap,topStart:b.topNew,topEnd:b.topNew+b.heightAndGap};if(a.leftStart===c.leftStart&&a.leftEnd===c.leftEnd&&a.topStart===c.topStart&&a.topEnd===c.topEnd)return null;var d=Math.max(a.leftStart,c.leftStart),e=Math.min(a.leftEnd,c.leftEnd),f=Math.max(a.topStart,c.topStart),g=Math.min(a.topEnd,c.topEnd);return d>=e||f>=g?null:{leftStart:d,leftEnd:e,topStart:f,topEnd:g}},generateG1:function(a,b,c){a.topStart!==b.topStart&&c.push({leftStart:a.leftStart,leftEnd:a.leftEnd,topStart:a.topStart,topEnd:b.topStart})},generateG2:function(a,b,c){a.leftEnd!==b.leftEnd&&c.push({leftStart:b.leftEnd,leftEnd:a.leftEnd,topStart:a.topStart,topEnd:a.topEnd})},generateG3:function(a,b,c){a.topEnd!==b.topEnd&&c.push({leftStart:a.leftStart,leftEnd:a.leftEnd,topStart:b.topEnd,topEnd:a.topEnd})},generateG4:function(a,b,c){a.leftStart!==b.leftStart&&c.push({leftStart:a.leftStart,leftEnd:b.leftStart,topStart:a.topStart,topEnd:a.topEnd})},cleanFreeSpaces:function(){var a=this;a.freeSpaces.sort(function(a,b){return a.topStart>b.topStart?1:a.topStartb.leftStart?1:a.leftStarta;a++)c=e.freeSpaces[a],d=e.freeSpaces[a+1],d.topStart-c.topStart<=1&&(d.topStart=c.topStart)},removeNonMaximalFreeSpaces:function(){var b=this;b.uniqueFreeSpaces(),b.freeSpaces=a.map(b.freeSpaces,function(c,d){return a.each(b.freeSpaces,function(a,b){return d!==a&&b.leftStart<=c.leftStart&&b.leftEnd>=c.leftEnd&&b.topStart<=c.topStart&&b.topEnd>=c.topEnd?(c=null,!1):void 0}),c})},uniqueFreeSpaces:function(){var b=this,c=[];a.each(b.freeSpaces,function(b,d){a.each(c,function(a,b){return b.leftStart===d.leftStart&&b.leftEnd===d.leftEnd&&b.topStart===d.topStart&&b.topEnd===d.topEnd?(d=null,!1):void 0}),null!==d&&c.push(d)}),b.freeSpaces=c},addHeightToBlocks:function(){var b=this;if(!(b.freeSpaces.length>1)){var c=b.freeSpaces[0].topStart;b.blocksOn.each(function(b,d){var e=a(d).data("cbp");if(e.pack===!0){var f=c-e.topNew-e.heightAndGap;0>f&&(d.style.height=e.height+f+"px")}})}},sortBlocksToPreventGaps:function(){var b=this;b.blocksAreSorted=!0,b.blocksOn.sort(function(b,c){var d=a(b).data("cbp"),e=a(c).data("cbp");return d.widthAndGape.widthAndGap?-1:d.heightAndGape.heightAndGap?-1:d.index>e.index?1:d.indexf[c]?1:e[c]f.leftNew?1:e.leftNew",{"class":"cbp-nav"}),b.nav.on("click.cbp","[data-slider-action]",function(c){if(c.preventDefault(),c.stopImmediatePropagation(),c.stopPropagation(),!b.sliderStopEvents){var d=a(this),e=d.attr("data-slider-action");b[e+"Slider"]&&b[e+"Slider"](d)}}),b.options.showNavigation&&(b.controls=a("
",{"class":"cbp-nav-controls"}),b.navPrev=a("
",{"class":"cbp-nav-prev","data-slider-action":"prev"}).appendTo(b.controls),b.navNext=a("
",{"class":"cbp-nav-next","data-slider-action":"next"}).appendTo(b.controls),b.controls.appendTo(b.nav)),b.options.showPagination&&(b.navPagination=a("
",{"class":"cbp-nav-pagination"}).appendTo(b.nav)),(b.controls||b.navPagination)&&b.nav.appendTo(b.$obj),b.updateSliderPagination(),b.options.auto&&(b.options.autoPauseOnHover&&(b.mouseIsEntered=!1,b.$obj.on("mouseenter.cbp",function(){b.mouseIsEntered=!0,b.stopSliderAuto()}).on("mouseleave.cbp",function(){b.mouseIsEntered=!1,b.startSliderAuto()})),b.startSliderAuto()),b.options.drag&&e.Private.modernBrowser&&b.dragSlider()},updateSlider:function(){var a=this;a.updateSliderPosition(),a.updateSliderPagination()},updateSliderPagination:function(){var b,c,d=this;if(d.options.showPagination){for(b=Math.ceil(d.blocksOn.length/d.cols),d.navPagination.empty(),c=b-1;c>=0;c--)a("
",{"class":"cbp-nav-pagination-item","data-slider-action":"jumpTo"}).appendTo(d.navPagination);d.navPaginationItems=d.navPagination.children()}d.enableDisableNavSlider()},destroySlider:function(){var a=this;"slider"===a.options.layoutMode&&(a.$obj.off("click.cbp"),a.$obj.removeClass("cbp-mode-slider"),a.options.showNavigation&&a.nav.remove(),a.navPagination&&a.navPagination.remove())},nextSlider:function(){var a=this;if(a.isEndSlider()){if(!a.isRewindNav())return;a.sliderActive=0}else a.options.scrollByPage?a.sliderActive=Math.min(a.sliderActive+a.cols,a.blocksOn.length-a.cols):a.sliderActive+=1;a.goToSlider()},prevSlider:function(){var a=this;if(a.isStartSlider()){if(!a.isRewindNav())return;a.sliderActive=a.blocksOn.length-a.cols}else a.options.scrollByPage?a.sliderActive=Math.max(0,a.sliderActive-a.cols):a.sliderActive-=1;a.goToSlider()},jumpToSlider:function(a){var b=this,c=Math.min(a.index()*b.cols,b.blocksOn.length-b.cols);c!==b.sliderActive&&(b.sliderActive=c,b.goToSlider())},jumpDragToSlider:function(a){var b,c,d,e=this,f=a>0?!0:!1;e.options.scrollByPage?(b=e.cols*e.columnWidth,c=e.cols):(b=e.columnWidth,c=1),a=Math.abs(a),d=Math.floor(a/b)*c,a%b>20&&(d+=c),e.sliderActive=f?Math.min(e.sliderActive+d,e.blocksOn.length-e.cols):Math.max(0,e.sliderActive-d),e.goToSlider()},isStartSlider:function(){return 0===this.sliderActive},isEndSlider:function(){var a=this;return a.sliderActive+a.cols>a.blocksOn.length-1},goToSlider:function(){var a=this;a.enableDisableNavSlider(),a.updateSliderPosition()},startSliderAuto:function(){var a=this;return a.isDrag?void a.stopSliderAuto():void(a.timeout=setTimeout(function(){a.nextSlider(),a.startSliderAuto()},a.options.autoTimeout))},stopSliderAuto:function(){clearTimeout(this.timeout)},enableDisableNavSlider:function(){var a,b,c=this;c.isRewindNav()||(b=c.isStartSlider()?"addClass":"removeClass",c.navPrev[b]("cbp-nav-stop"),b=c.isEndSlider()?"addClass":"removeClass",c.navNext[b]("cbp-nav-stop")),c.options.showPagination&&(a=c.options.scrollByPage?Math.ceil(c.sliderActive/c.cols):c.isEndSlider()?c.navPaginationItems.length-1:Math.floor(c.sliderActive/c.cols),c.navPaginationItems.removeClass("cbp-nav-pagination-active").eq(a).addClass("cbp-nav-pagination-active"))},isRewindNav:function(){var a=this;return a.options.showNavigation?a.blocksOn.length<=a.cols?!1:a.options.rewindNav?!0:!1:!0},sliderItemsLength:function(){return this.blocksOn.length<=this.cols},sliderLayout:function(){var b=this;b.blocksOn.each(function(c,d){var e=a(d).data("cbp");e.leftNew=b.columnWidth*c,e.topNew=0,b.sliderFreeSpaces.push({topStart:e.heightAndGap})}),b.getFreeSpacesForSlider(),b.$ul.width(b.columnWidth*b.blocksOn.length-b.options.gapVertical)},getFreeSpacesForSlider:function(){var a=this;a.freeSpaces=a.sliderFreeSpaces.slice(a.sliderActive,a.sliderActive+a.cols),a.freeSpaces.sort(function(a,b){return a.topStart>b.topStart?1:a.topStart8||-8>l)&&a.preventDefault(),q.isDrag=!0;var b=n-l;0>l&&n>l?b=(n-l)/5:l>0&&-o>n-l&&(b=-o+(o+n-l)/5),e.Private.modernBrowser?q.$ul[0].style[e.Private.transform]="translate3d("+b+"px, 0px, 0)":q.$ul[0].style.left=b+"px"}function i(){if(s=!1,q.isDrag=!1,q.options.auto){if(q.mouseIsEntered)return;q.startSliderAuto()}}function j(a){return a.originalEvent!==d&&a.originalEvent.touches!==d&&(a=a.originalEvent.touches[0]),{x:a.pageX,y:a.pageY}}var k,l,m,n,o,p,q=this,r=a(c),s=!1,t={},u=!1;q.isDrag=!1,"ontouchstart"in b||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?(t={start:"touchstart.cbp",move:"touchmove.cbp",end:"touchend.cbp"},u=!0):t={start:"mousedown.cbp",move:"mousemove.cbp",end:"mouseup.cbp"},q.$ul.on(t.start,f)},sliderLayoutReset:function(){var a=this;a.freeSpaces=[],a.sliderFreeSpaces=[]}})}(jQuery,window,document); (function($, window, document, undefined){ 'use strict'; $('#js-grid-faq').cubeportfolio({ filters: '#js-filters-faq', defaultFilter: '*', animationType: 'sequentially', gridAdjustment: 'default', displayType: 'default', caption: 'expand', gapHorizontal: 0, gapVertical: 0 }); })(jQuery, window, document); jQuery(document).ready(function($){initTopButton();function initTopButton(){var $=jQuery;$("#back-top").hide();$(function(){$(window).scroll(function(){if($(this).scrollTop()>0){$('#back-top').fadeIn();}else{$('#back-top').fadeOut();}});$('#back-top a').click(function(){$('body,html').animate({scrollTop:0},300);return false;});});};var headerView=function(){var scroll=$(window).scrollTop();if(scroll<=0){$("body").removeClass("compact");}else{$("body").addClass("compact");}} headerView();$(window).scroll(function(){headerView();});}); if(typeof Object.create!=="function"){ Object.create=function (obj){ function F(){} F.prototype=obj; return new F(); };} (function ($, window, document){ var Carousel={ init:function (options, el){ var base=this; base.$elem=$(el); base.options=$.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options); base.userOptions=options; base.loadContent(); }, loadContent:function (){ var base=this, url; function getData(data){ var i, content=""; if(typeof base.options.jsonSuccess==="function"){ base.options.jsonSuccess.apply(this, [data]); }else{ for (i in data.owl){ if(data.owl.hasOwnProperty(i)){ content +=data.owl[i].item; }} base.$elem.html(content); } base.logIn(); } if(typeof base.options.beforeInit==="function"){ base.options.beforeInit.apply(this, [base.$elem]); } if(typeof base.options.jsonPath==="string"){ url=base.options.jsonPath; $.getJSON(url, getData); }else{ base.logIn(); }}, logIn:function (){ var base=this; base.$elem.data({ "owl-originalStyles": base.$elem.attr("style"), "owl-originalClasses": base.$elem.attr("class") }); base.$elem.css({opacity: 0}); base.orignalItems=base.options.items; base.checkBrowser(); base.wrapperWidth=0; base.checkVisible=null; base.setVars(); }, setVars:function (){ var base=this; if(base.$elem.children().length===0){return false; } base.baseClass(); base.eventTypes(); base.$userItems=base.$elem.children(); base.itemsAmount=base.$userItems.length; base.wrapItems(); base.$owlItems=base.$elem.find(".owl-item"); base.$owlWrapper=base.$elem.find(".owl-wrapper"); base.playDirection="next"; base.prevItem=0; base.prevArr=[0]; base.currentItem=0; base.customEvents(); base.onStartup(); }, onStartup:function (){ var base=this; base.updateItems(); base.calculateAll(); base.buildControls(); base.updateControls(); base.response(); base.moveEvents(); base.stopOnHover(); base.owlStatus(); if(base.options.transitionStyle!==false){ base.transitionTypes(base.options.transitionStyle); } if(base.options.autoPlay===true){ base.options.autoPlay=5000; } base.play(); base.$elem.find(".owl-wrapper").css("display", "block"); if(!base.$elem.is(":visible")){ base.watchVisibility(); }else{ base.$elem.css("opacity", 1); } base.onstartup=false; base.eachMoveUpdate(); if(typeof base.options.afterInit==="function"){ base.options.afterInit.apply(this, [base.$elem]); }}, eachMoveUpdate:function (){ var base=this; if(base.options.lazyLoad===true){ base.lazyLoad(); } if(base.options.autoHeight===true){ base.autoHeight(); } base.onVisibleItems(); if(typeof base.options.afterAction==="function"){ base.options.afterAction.apply(this, [base.$elem]); }}, updateVars:function (){ var base=this; if(typeof base.options.beforeUpdate==="function"){ base.options.beforeUpdate.apply(this, [base.$elem]); } base.watchVisibility(); base.updateItems(); base.calculateAll(); base.updatePosition(); base.updateControls(); base.eachMoveUpdate(); if(typeof base.options.afterUpdate==="function"){ base.options.afterUpdate.apply(this, [base.$elem]); }}, reload:function (){ var base=this; window.setTimeout(function (){ base.updateVars(); }, 0); }, watchVisibility:function (){ var base=this; if(base.$elem.is(":visible")===false){ base.$elem.css({opacity: 0}); window.clearInterval(base.autoPlayInterval); window.clearInterval(base.checkVisible); }else{ return false; } base.checkVisible=window.setInterval(function (){ if(base.$elem.is(":visible")){ base.reload(); base.$elem.animate({opacity: 1}, 200); window.clearInterval(base.checkVisible); }}, 500); }, wrapItems:function (){ var base=this; base.$userItems.wrapAll("
").wrap("
"); base.$elem.find(".owl-wrapper").wrap("
"); base.wrapperOuter=base.$elem.find(".owl-wrapper-outer"); base.$elem.css("display", "block"); }, baseClass:function (){ var base=this, hasBaseClass=base.$elem.hasClass(base.options.baseClass), hasThemeClass=base.$elem.hasClass(base.options.theme); if(!hasBaseClass){ base.$elem.addClass(base.options.baseClass); } if(!hasThemeClass){ base.$elem.addClass(base.options.theme); }}, updateItems:function (){ var base=this, width, i; if(base.options.responsive===false){ return false; } if(base.options.singleItem===true){ base.options.items=base.orignalItems=1; base.options.itemsCustom=false; base.options.itemsDesktop=false; base.options.itemsDesktopSmall=false; base.options.itemsTablet=false; base.options.itemsTabletSmall=false; base.options.itemsMobile=false; return false; } width=$(base.options.responsiveBaseWidth).width(); if(width > (base.options.itemsDesktop[0]||base.orignalItems)){ base.options.items=base.orignalItems; } if(base.options.itemsCustom!==false){ base.options.itemsCustom.sort(function (a, b){return a[0] - b[0]; }); for (i=0; i < base.options.itemsCustom.length; i +=1){ if(base.options.itemsCustom[i][0] <=width){ base.options.items=base.options.itemsCustom[i][1]; }} }else{ if(width <=base.options.itemsDesktop[0]&&base.options.itemsDesktop!==false){ base.options.items=base.options.itemsDesktop[1]; } if(width <=base.options.itemsDesktopSmall[0]&&base.options.itemsDesktopSmall!==false){ base.options.items=base.options.itemsDesktopSmall[1]; } if(width <=base.options.itemsTablet[0]&&base.options.itemsTablet!==false){ base.options.items=base.options.itemsTablet[1]; } if(width <=base.options.itemsTabletSmall[0]&&base.options.itemsTabletSmall!==false){ base.options.items=base.options.itemsTabletSmall[1]; } if(width <=base.options.itemsMobile[0]&&base.options.itemsMobile!==false){ base.options.items=base.options.itemsMobile[1]; }} if(base.options.items > base.itemsAmount&&base.options.itemsScaleUp===true){ base.options.items=base.itemsAmount; }}, response:function (){ var base=this, smallDelay, lastWindowWidth; if(base.options.responsive!==true){ return false; } lastWindowWidth=$(window).width(); base.resizer=function (){ if($(window).width()!==lastWindowWidth){ if(base.options.autoPlay!==false){ window.clearInterval(base.autoPlayInterval); } window.clearTimeout(smallDelay); smallDelay=window.setTimeout(function (){ lastWindowWidth=$(window).width(); base.updateVars(); }, base.options.responsiveRefreshRate); }}; $(window).resize(base.resizer); }, updatePosition:function (){ var base=this; base.jumpTo(base.currentItem); if(base.options.autoPlay!==false){ base.checkAp(); }}, appendItemsSizes:function (){ var base=this, roundPages=0, lastItem=base.itemsAmount - base.options.items; base.$owlItems.each(function (index){ var $this=$(this); $this .css({"width": base.itemWidth}) .data("owl-item", Number(index)); if(index % base.options.items===0||index===lastItem){ if(!(index > lastItem)){ roundPages +=1; }} $this.data("owl-roundPages", roundPages); }); }, appendWrapperSizes:function (){ var base=this, width=base.$owlItems.length * base.itemWidth; base.$owlWrapper.css({ "width": width * 2, "left": 0 }); base.appendItemsSizes(); }, calculateAll:function (){ var base=this; base.calculateWidth(); base.appendWrapperSizes(); base.loops(); base.max(); }, calculateWidth:function (){ var base=this; base.itemWidth=Math.round(base.$elem.width() / base.options.items); }, max:function (){ var base=this, maximum=((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1; if(base.options.items > base.itemsAmount){ base.maximumItem=0; maximum=0; base.maximumPixels=0; }else{ base.maximumItem=base.itemsAmount - base.options.items; base.maximumPixels=maximum; } return maximum; }, min:function (){ return 0; }, loops:function (){ var base=this, prev=0, elWidth=0, i, item, roundPageNum; base.positionsInArray=[0]; base.pagesInArray=[]; for (i=0; i < base.itemsAmount; i +=1){ elWidth +=base.itemWidth; base.positionsInArray.push(-elWidth); if(base.options.scrollPerPage===true){ item=$(base.$owlItems[i]); roundPageNum=item.data("owl-roundPages"); if(roundPageNum!==prev){ base.pagesInArray[prev]=base.positionsInArray[i]; prev=roundPageNum; }} }}, buildControls:function (){ var base=this; if(base.options.navigation===true||base.options.pagination===true){ base.owlControls=$("
").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem); } if(base.options.pagination===true){ base.buildPagination(); } if(base.options.navigation===true){ base.buildButtons(); }}, buildButtons:function (){ var base=this, buttonsWrapper=$("
"); base.owlControls.append(buttonsWrapper); base.buttonPrev=$("
", { "class":"owl-prev", "html":base.options.navigationText[0]||"" }); base.buttonNext=$("
", { "class":"owl-next", "html":base.options.navigationText[1]||"" }); buttonsWrapper .append(base.buttonPrev) .append(base.buttonNext); buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function (event){ event.preventDefault(); }); buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function (event){ event.preventDefault(); if($(this).hasClass("owl-next")){ base.next(); }else{ base.prev(); }}); }, buildPagination:function (){ var base=this; base.paginationWrapper=$("
"); base.owlControls.append(base.paginationWrapper); base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function (event){ event.preventDefault(); if(Number($(this).data("owl-page"))!==base.currentItem){ base.goTo(Number($(this).data("owl-page")), true); }}); }, updatePagination:function (){ var base=this, counter, lastPage, lastItem, i, paginationButton, paginationButtonInner; if(base.options.pagination===false){ return false; } base.paginationWrapper.html(""); counter=0; lastPage=base.itemsAmount - base.itemsAmount % base.options.items; for (i=0; i < base.itemsAmount; i +=1){ if(i % base.options.items===0){ counter +=1; if(lastPage===i){ lastItem=base.itemsAmount - base.options.items; } paginationButton=$("
", { "class":"owl-page" }); paginationButtonInner=$("", { "text": base.options.paginationNumbers===true ? counter:"", "class": base.options.paginationNumbers===true ? "owl-numbers":"" }); paginationButton.append(paginationButtonInner); paginationButton.data("owl-page", lastPage===i ? lastItem:i); paginationButton.data("owl-roundPages", counter); base.paginationWrapper.append(paginationButton); }} base.checkPagination(); }, checkPagination:function (){ var base=this; if(base.options.pagination===false){ return false; } base.paginationWrapper.find(".owl-page").each(function (){ if($(this).data("owl-roundPages")===$(base.$owlItems[base.currentItem]).data("owl-roundPages")){ base.paginationWrapper .find(".owl-page") .removeClass("active"); $(this).addClass("active"); }}); }, checkNavigation:function (){ var base=this; if(base.options.navigation===false){ return false; } if(base.options.rewindNav===false){ if(base.currentItem===0&&base.maximumItem===0){ base.buttonPrev.addClass("disabled"); base.buttonNext.addClass("disabled"); }else if(base.currentItem===0&&base.maximumItem!==0){ base.buttonPrev.addClass("disabled"); base.buttonNext.removeClass("disabled"); }else if(base.currentItem===base.maximumItem){ base.buttonPrev.removeClass("disabled"); base.buttonNext.addClass("disabled"); }else if(base.currentItem!==0&&base.currentItem!==base.maximumItem){ base.buttonPrev.removeClass("disabled"); base.buttonNext.removeClass("disabled"); }} }, updateControls:function (){ var base=this; base.updatePagination(); base.checkNavigation(); if(base.owlControls){ if(base.options.items >=base.itemsAmount){ base.owlControls.hide(); }else{ base.owlControls.show(); }} }, destroyControls:function (){ var base=this; if(base.owlControls){ base.owlControls.remove(); }}, next:function (speed){ var base=this; if(base.isTransition){ return false; } base.currentItem +=base.options.scrollPerPage===true ? base.options.items:1; if(base.currentItem > base.maximumItem + (base.options.scrollPerPage===true ? (base.options.items - 1):0)){ if(base.options.rewindNav===true){ base.currentItem=0; speed="rewind"; }else{ base.currentItem=base.maximumItem; return false; }} base.goTo(base.currentItem, speed); }, prev:function (speed){ var base=this; if(base.isTransition){ return false; } if(base.options.scrollPerPage===true&&base.currentItem > 0&&base.currentItem < base.options.items){ base.currentItem=0; }else{ base.currentItem -=base.options.scrollPerPage===true ? base.options.items:1; } if(base.currentItem < 0){ if(base.options.rewindNav===true){ base.currentItem=base.maximumItem; speed="rewind"; }else{ base.currentItem=0; return false; }} base.goTo(base.currentItem, speed); }, goTo:function (position, speed, drag){ var base=this, goToPixel; if(base.isTransition){ return false; } if(typeof base.options.beforeMove==="function"){ base.options.beforeMove.apply(this, [base.$elem]); } if(position >=base.maximumItem){ position=base.maximumItem; }else if(position <=0){ position=0; } base.currentItem=base.owl.currentItem=position; if(base.options.transitionStyle!==false&&drag!=="drag"&&base.options.items===1&&base.browser.support3d===true){ base.swapSpeed(0); if(base.browser.support3d===true){ base.transition3d(base.positionsInArray[position]); }else{ base.css2slide(base.positionsInArray[position], 1); } base.afterGo(); base.singleItemTransition(); return false; } goToPixel=base.positionsInArray[position]; if(base.browser.support3d===true){ base.isCss3Finish=false; if(speed===true){ base.swapSpeed("paginationSpeed"); window.setTimeout(function (){ base.isCss3Finish=true; }, base.options.paginationSpeed); }else if(speed==="rewind"){ base.swapSpeed(base.options.rewindSpeed); window.setTimeout(function (){ base.isCss3Finish=true; }, base.options.rewindSpeed); }else{ base.swapSpeed("slideSpeed"); window.setTimeout(function (){ base.isCss3Finish=true; }, base.options.slideSpeed); } base.transition3d(goToPixel); }else{ if(speed===true){ base.css2slide(goToPixel, base.options.paginationSpeed); }else if(speed==="rewind"){ base.css2slide(goToPixel, base.options.rewindSpeed); }else{ base.css2slide(goToPixel, base.options.slideSpeed); }} base.afterGo(); }, jumpTo:function (position){ var base=this; if(typeof base.options.beforeMove==="function"){ base.options.beforeMove.apply(this, [base.$elem]); } if(position >=base.maximumItem||position===-1){ position=base.maximumItem; }else if(position <=0){ position=0; } base.swapSpeed(0); if(base.browser.support3d===true){ base.transition3d(base.positionsInArray[position]); }else{ base.css2slide(base.positionsInArray[position], 1); } base.currentItem=base.owl.currentItem=position; base.afterGo(); }, afterGo:function (){ var base=this; base.prevArr.push(base.currentItem); base.prevItem=base.owl.prevItem=base.prevArr[base.prevArr.length - 2]; base.prevArr.shift(0); if(base.prevItem!==base.currentItem){ base.checkPagination(); base.checkNavigation(); base.eachMoveUpdate(); if(base.options.autoPlay!==false){ base.checkAp(); }} if(typeof base.options.afterMove==="function"&&base.prevItem!==base.currentItem){ base.options.afterMove.apply(this, [base.$elem]); }}, stop:function (){ var base=this; base.apStatus="stop"; window.clearInterval(base.autoPlayInterval); }, checkAp:function (){ var base=this; if(base.apStatus!=="stop"){ base.play(); }}, play:function (){ var base=this; base.apStatus="play"; if(base.options.autoPlay===false){ return false; } window.clearInterval(base.autoPlayInterval); base.autoPlayInterval=window.setInterval(function (){ base.next(true); }, base.options.autoPlay); }, swapSpeed:function (action){ var base=this; if(action==="slideSpeed"){ base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed)); }else if(action==="paginationSpeed"){ base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed)); }else if(typeof action!=="string"){ base.$owlWrapper.css(base.addCssSpeed(action)); }}, addCssSpeed:function (speed){ return { "-webkit-transition": "all " + speed + "ms ease", "-moz-transition": "all " + speed + "ms ease", "-o-transition": "all " + speed + "ms ease", "transition": "all " + speed + "ms ease" };}, removeTransition:function (){ return { "-webkit-transition": "", "-moz-transition": "", "-o-transition": "", "transition": "" };}, doTranslate:function (pixels){ return { "-webkit-transform": "translate3d(" + pixels + "px, 0px, 0px)", "-moz-transform": "translate3d(" + pixels + "px, 0px, 0px)", "-o-transform": "translate3d(" + pixels + "px, 0px, 0px)", "-ms-transform": "translate3d(" + pixels + "px, 0px, 0px)", "transform": "translate3d(" + pixels + "px, 0px,0px)" };}, transition3d:function (value){ var base=this; base.$owlWrapper.css(base.doTranslate(value)); }, css2move:function (value){ var base=this; base.$owlWrapper.css({"left":value}); }, css2slide:function (value, speed){ var base=this; base.isCssFinish=false; base.$owlWrapper.stop(true, true).animate({ "left":value }, { duration:speed||base.options.slideSpeed, complete:function (){ base.isCssFinish=true; }}); }, checkBrowser:function (){ var base=this, translate3D="translate3d(0px, 0px, 0px)", tempElem=document.createElement("div"), regex, asSupport, support3d, isTouch; tempElem.style.cssText=" -moz-transform:" + translate3D + "; -ms-transform:" + translate3D + "; -o-transform:" + translate3D + "; -webkit-transform:" + translate3D + "; transform:" + translate3D; regex=/translate3d\(0px, 0px, 0px\)/g; asSupport=tempElem.style.cssText.match(regex); support3d=(asSupport!==null&&asSupport.length===1); isTouch="ontouchstart" in window||window.navigator.msMaxTouchPoints; base.browser={ "support3d":support3d, "isTouch":isTouch };}, moveEvents:function (){ var base=this; if(base.options.mouseDrag!==false||base.options.touchDrag!==false){ base.gestures(); base.disabledEvents(); }}, eventTypes:function (){ var base=this, types=["s", "e", "x"]; base.ev_types={}; if(base.options.mouseDrag===true&&base.options.touchDrag===true){ types=[ "touchstart.owl mousedown.owl", "touchmove.owl mousemove.owl", "touchend.owl touchcancel.owl mouseup.owl" ]; }else if(base.options.mouseDrag===false&&base.options.touchDrag===true){ types=[ "touchstart.owl", "touchmove.owl", "touchend.owl touchcancel.owl" ]; }else if(base.options.mouseDrag===true&&base.options.touchDrag===false){ types=[ "mousedown.owl", "mousemove.owl", "mouseup.owl" ]; } base.ev_types.start=types[0]; base.ev_types.move=types[1]; base.ev_types.end=types[2]; }, disabledEvents:function (){ var base=this; base.$elem.on("dragstart.owl", function (event){ event.preventDefault(); }); base.$elem.on("mousedown.disableTextSelect", function (e){ return $(e.target).is('input, textarea, select, option'); }); }, gestures:function (){ var base=this, locals={ offsetX:0, offsetY:0, baseElWidth:0, relativePos:0, position: null, minSwipe:null, maxSwipe: null, sliding:null, dargging: null, targetElement:null }; base.isCssFinish=true; function getTouches(event){ if(event.touches!==undefined){ return { x:event.touches[0].pageX, y:event.touches[0].pageY };} if(event.touches===undefined){ if(event.pageX!==undefined){ return { x:event.pageX, y:event.pageY };} if(event.pageX===undefined){ return { x:event.clientX, y:event.clientY };}} } function swapEvents(type){ if(type==="on"){ $(document).on(base.ev_types.move, dragMove); $(document).on(base.ev_types.end, dragEnd); }else if(type==="off"){ $(document).off(base.ev_types.move); $(document).off(base.ev_types.end); }} function dragStart(event){ var ev=event.originalEvent||event||window.event, position; if(ev.which===3){ return false; } if(base.itemsAmount <=base.options.items){ return; } if(base.isCssFinish===false&&!base.options.dragBeforeAnimFinish){ return false; } if(base.isCss3Finish===false&&!base.options.dragBeforeAnimFinish){ return false; } if(base.options.autoPlay!==false){ window.clearInterval(base.autoPlayInterval); } if(base.browser.isTouch!==true&&!base.$owlWrapper.hasClass("grabbing")){ base.$owlWrapper.addClass("grabbing"); } base.newPosX=0; base.newRelativeX=0; $(this).css(base.removeTransition()); position=$(this).position(); locals.relativePos=position.left; locals.offsetX=getTouches(ev).x - position.left; locals.offsetY=getTouches(ev).y - position.top; swapEvents("on"); locals.sliding=false; locals.targetElement=ev.target||ev.srcElement; } function dragMove(event){ var ev=event.originalEvent||event||window.event, minSwipe, maxSwipe; base.newPosX=getTouches(ev).x - locals.offsetX; base.newPosY=getTouches(ev).y - locals.offsetY; base.newRelativeX=base.newPosX - locals.relativePos; if(typeof base.options.startDragging==="function"&&locals.dragging!==true&&base.newRelativeX!==0){ locals.dragging=true; base.options.startDragging.apply(base, [base.$elem]); } if((base.newRelativeX > 8||base.newRelativeX < -8)&&(base.browser.isTouch===true)){ if(ev.preventDefault!==undefined){ ev.preventDefault(); }else{ ev.returnValue=false; } locals.sliding=true; } if((base.newPosY > 10||base.newPosY < -10)&&locals.sliding===false){ $(document).off("touchmove.owl"); } minSwipe=function (){ return base.newRelativeX / 5; }; maxSwipe=function (){ return base.maximumPixels + base.newRelativeX / 5; }; base.newPosX=Math.max(Math.min(base.newPosX, minSwipe()), maxSwipe()); if(base.browser.support3d===true){ base.transition3d(base.newPosX); }else{ base.css2move(base.newPosX); }} function dragEnd(event){ var ev=event.originalEvent||event||window.event, newPosition, handlers, owlStopEvent; ev.target=ev.target||ev.srcElement; locals.dragging=false; if(base.browser.isTouch!==true){ base.$owlWrapper.removeClass("grabbing"); } if(base.newRelativeX < 0){ base.dragDirection=base.owl.dragDirection="left"; }else{ base.dragDirection=base.owl.dragDirection="right"; } if(base.newRelativeX!==0){ newPosition=base.getNewPosition(); base.goTo(newPosition, false, "drag"); if(locals.targetElement===ev.target&&base.browser.isTouch!==true){ $(ev.target).on("click.disable", function (ev){ ev.stopImmediatePropagation(); ev.stopPropagation(); ev.preventDefault(); $(ev.target).off("click.disable"); }); handlers=$._data(ev.target, "events").click; owlStopEvent=handlers.pop(); handlers.splice(0, 0, owlStopEvent); }} swapEvents("off"); } base.$elem.on(base.ev_types.start, ".owl-wrapper", dragStart); }, getNewPosition:function (){ var base=this, newPosition=base.closestItem(); if(newPosition > base.maximumItem){ base.currentItem=base.maximumItem; newPosition=base.maximumItem; }else if(base.newPosX >=0){ newPosition=0; base.currentItem=0; } return newPosition; }, closestItem:function (){ var base=this, array=base.options.scrollPerPage===true ? base.pagesInArray:base.positionsInArray, goal=base.newPosX, closest=null; $.each(array, function (i, v){ if(goal - (base.itemWidth / 20) > array[i + 1]&&goal - (base.itemWidth / 20) < v&&base.moveDirection()==="left"){ closest=v; if(base.options.scrollPerPage===true){ base.currentItem=$.inArray(closest, base.positionsInArray); }else{ base.currentItem=i; }}else if(goal + (base.itemWidth / 20) < v&&goal + (base.itemWidth / 20) > (array[i + 1]||array[i] - base.itemWidth)&&base.moveDirection()==="right"){ if(base.options.scrollPerPage===true){ closest=array[i + 1]||array[array.length - 1]; base.currentItem=$.inArray(closest, base.positionsInArray); }else{ closest=array[i + 1]; base.currentItem=i + 1; }} }); return base.currentItem; }, moveDirection:function (){ var base=this, direction; if(base.newRelativeX < 0){ direction="right"; base.playDirection="next"; }else{ direction="left"; base.playDirection="prev"; } return direction; }, customEvents:function (){ var base=this; base.$elem.on("owl.next", function (){ base.next(); }); base.$elem.on("owl.prev", function (){ base.prev(); }); base.$elem.on("owl.play", function (event, speed){ base.options.autoPlay=speed; base.play(); base.hoverStatus="play"; }); base.$elem.on("owl.stop", function (){ base.stop(); base.hoverStatus="stop"; }); base.$elem.on("owl.goTo", function (event, item){ base.goTo(item); }); base.$elem.on("owl.jumpTo", function (event, item){ base.jumpTo(item); }); }, stopOnHover:function (){ var base=this; if(base.options.stopOnHover===true&&base.browser.isTouch!==true&&base.options.autoPlay!==false){ base.$elem.on("mouseover", function (){ base.stop(); }); base.$elem.on("mouseout", function (){ if(base.hoverStatus!=="stop"){ base.play(); }}); }}, lazyLoad:function (){ var base=this, i, $item, itemNumber, $lazyImg, follow; if(base.options.lazyLoad===false){ return false; } for (i=0; i < base.itemsAmount; i +=1){ $item=$(base.$owlItems[i]); if($item.data("owl-loaded")==="loaded"){ continue; } itemNumber=$item.data("owl-item"); $lazyImg=$item.find(".lazyOwl"); if(typeof $lazyImg.data("src")!=="string"){ $item.data("owl-loaded", "loaded"); continue; } if($item.data("owl-loaded")===undefined){ $lazyImg.hide(); $item.addClass("loading").data("owl-loaded", "checked"); } if(base.options.lazyFollow===true){ follow=itemNumber >=base.currentItem; }else{ follow=true; } if(follow&&itemNumber < base.currentItem + base.options.items&&$lazyImg.length){ $lazyImg.each(function(){ base.lazyPreload($item, $(this)); }); }} }, lazyPreload:function ($item, $lazyImg){ var base=this, iterations=0, isBackgroundImg; if($lazyImg.prop("tagName")==="DIV"){ $lazyImg.css("background-image", "url(" + $lazyImg.data("src") + ")"); isBackgroundImg=true; }else{ $lazyImg[0].src=$lazyImg.data("src"); } function showImage(){ $item.data("owl-loaded", "loaded").removeClass("loading"); $lazyImg.removeAttr("data-src"); if(base.options.lazyEffect==="fade"){ $lazyImg.fadeIn(400); }else{ $lazyImg.show(); } if(typeof base.options.afterLazyLoad==="function"){ base.options.afterLazyLoad.apply(this, [base.$elem]); }} function checkLazyImage(){ iterations +=1; if(base.completeImg($lazyImg.get(0))||isBackgroundImg===true){ showImage(); }else if(iterations <=100){ window.setTimeout(checkLazyImage, 100); }else{ showImage(); }} checkLazyImage(); }, autoHeight:function (){ var base=this, $currentimg=$(base.$owlItems[base.currentItem]).find("img"), iterations; function addHeight(){ var $currentItem=$(base.$owlItems[base.currentItem]).height(); base.wrapperOuter.css("height", $currentItem + "px"); if(!base.wrapperOuter.hasClass("autoHeight")){ window.setTimeout(function (){ base.wrapperOuter.addClass("autoHeight"); }, 0); }} function checkImage(){ iterations +=1; if(base.completeImg($currentimg.get(0))){ addHeight(); }else if(iterations <=100){ window.setTimeout(checkImage, 100); }else{ base.wrapperOuter.css("height", ""); }} if($currentimg.get(0)!==undefined){ iterations=0; checkImage(); }else{ addHeight(); }}, completeImg:function (img){ var naturalWidthType; if(!img.complete){ return false; } naturalWidthType=typeof img.naturalWidth; if(naturalWidthType!=="undefined"&&img.naturalWidth===0){ return false; } return true; }, onVisibleItems:function (){ var base=this, i; if(base.options.addClassActive===true){ base.$owlItems.removeClass("active"); } base.visibleItems=[]; for (i=base.currentItem; i < base.currentItem + base.options.items; i +=1){ base.visibleItems.push(i); if(base.options.addClassActive===true){ $(base.$owlItems[i]).addClass("active"); }} base.owl.visibleItems=base.visibleItems; }, transitionTypes:function (className){ var base=this; base.outClass="owl-" + className + "-out"; base.inClass="owl-" + className + "-in"; }, singleItemTransition:function (){ var base=this, outClass=base.outClass, inClass=base.inClass, $currentItem=base.$owlItems.eq(base.currentItem), $prevItem=base.$owlItems.eq(base.prevItem), prevPos=Math.abs(base.positionsInArray[base.currentItem]) + base.positionsInArray[base.prevItem], origin=Math.abs(base.positionsInArray[base.currentItem]) + base.itemWidth / 2, animEnd='webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend'; base.isTransition=true; base.$owlWrapper .addClass('owl-origin') .css({ "-webkit-transform-origin":origin + "px", "-moz-perspective-origin":origin + "px", "perspective-origin":origin + "px" }); function transStyles(prevPos){ return { "position":"relative", "left":prevPos + "px" };} $prevItem .css(transStyles(prevPos, 10)) .addClass(outClass) .on(animEnd, function (){ base.endPrev=true; $prevItem.off(animEnd); base.clearTransStyle($prevItem, outClass); }); $currentItem .addClass(inClass) .on(animEnd, function (){ base.endCurrent=true; $currentItem.off(animEnd); base.clearTransStyle($currentItem, inClass); }); }, clearTransStyle:function (item, classToRemove){ var base=this; item.css({ "position":"", "left":"" }).removeClass(classToRemove); if(base.endPrev&&base.endCurrent){ base.$owlWrapper.removeClass('owl-origin'); base.endPrev=false; base.endCurrent=false; base.isTransition=false; }}, owlStatus:function (){ var base=this; base.owl={ "userOptions":base.userOptions, "baseElement":base.$elem, "userItems":base.$userItems, "owlItems":base.$owlItems, "currentItem":base.currentItem, "prevItem":base.prevItem, "visibleItems":base.visibleItems, "isTouch":base.browser.isTouch, "browser":base.browser, "dragDirection":base.dragDirection };}, clearEvents:function (){ var base=this; base.$elem.off(".owl owl mousedown.disableTextSelect"); $(document).off(".owl owl"); $(window).off("resize", base.resizer); }, unWrap:function (){ var base=this; if(base.$elem.children().length!==0){ base.$owlWrapper.unwrap(); base.$userItems.unwrap().unwrap(); if(base.owlControls){ base.owlControls.remove(); }} base.clearEvents(); base.$elem.attr({ style: base.$elem.data("owl-originalStyles")||"", class: base.$elem.data("owl-originalClasses") }); }, destroy:function (){ var base=this; base.stop(); window.clearInterval(base.checkVisible); base.unWrap(); base.$elem.removeData(); }, reinit:function (newOptions){ var base=this, options=$.extend({}, base.userOptions, newOptions); base.unWrap(); base.init(options, base.$elem); }, addItem:function (htmlString, targetPosition){ var base=this, position; if(!htmlString){return false; } if(base.$elem.children().length===0){ base.$elem.append(htmlString); base.setVars(); return false; } base.unWrap(); if(targetPosition===undefined||targetPosition===-1){ position=-1; }else{ position=targetPosition; } if(position >=base.$userItems.length||position===-1){ base.$userItems.eq(-1).after(htmlString); }else{ base.$userItems.eq(position).before(htmlString); } base.setVars(); }, removeItem:function (targetPosition){ var base=this, position; if(base.$elem.children().length===0){ return false; } if(targetPosition===undefined||targetPosition===-1){ position=-1; }else{ position=targetPosition; } base.unWrap(); base.$userItems.eq(position).remove(); base.setVars(); }}; $.fn.owlCarousel=function (options){ return this.each(function (){ if($(this).data("owl-init")===true){ return false; } $(this).data("owl-init", true); var carousel=Object.create(Carousel); carousel.init(options, this); $.data(this, "owlCarousel", carousel); }); }; $.fn.owlCarousel.options={ items:5, itemsCustom:false, itemsDesktop:[1199, 4], itemsDesktopSmall:[979, 3], itemsTablet:[768, 2], itemsTabletSmall:false, itemsMobile:[479, 1], singleItem:false, itemsScaleUp:false, slideSpeed:200, paginationSpeed:800, rewindSpeed:1000, autoPlay:false, stopOnHover:false, navigation:false, navigationText:["prev", "next"], rewindNav:true, scrollPerPage:false, pagination:true, paginationNumbers:false, responsive:true, responsiveRefreshRate:200, responsiveBaseWidth:window, baseClass:"owl-carousel", theme:"owl-theme", lazyLoad:false, lazyFollow:true, lazyEffect:"fade", autoHeight:false, jsonPath:false, jsonSuccess:false, dragBeforeAnimFinish:true, mouseDrag:true, touchDrag:true, addClassActive:false, transitionStyle:false, beforeUpdate:false, afterUpdate:false, beforeInit:false, afterInit:false, beforeMove:false, afterMove:false, afterAction:false, startDragging:false, afterLazyLoad: false };}(jQuery, window, document)); (function($){ "use strict"; $(document).ready(function(){ $("#owl-demo").owlCarousel({ navigation:false, slideSpeed:3000, autoPlay: false, paginationSpeed:400, transitionStyle:"fadeUp", singleItem:true }); $("#owl-demo2").owlCarousel({ navigation:false, slideSpeed:3000, autoPlay: false, paginationSpeed:400, singleItem:true }); $("#owl-demo3").owlCarousel({ navigation:false, slideSpeed:3000, autoPlay: false, paginationSpeed:400, singleItem:true }); $("#owl-demo4").owlCarousel({ navigation:false, slideSpeed:3000, autoPlay: false, paginationSpeed:400, singleItem:true }); $("#owl-demo5").owlCarousel({ autoPlay: 3000, items:4, itemsDesktop:[1199,3], itemsDesktopSmall:[979,3] }); $("#owl-demo6").owlCarousel({ autoPlay:3000, stopOnHover:true, navigation:true, paginationSpeed:1000, goToFirstSpeed:2000, singleItem:true, autoHeight:true, transitionStyle:"fadeUp" }); $("#owl-demo7").owlCarousel({ navigation:true, slideSpeed:1000, paginationSpeed:400, singleItem:true, transitionStyle:"goDown" }); function random(owlSelector){ owlSelector.children().sort(function(){ return Math.round(Math.random()) - 0.5; }).each(function(){ $(this).appendTo(owlSelector); }); } $("#owl-demo8").owlCarousel({ navigation: true, slideSpeed:700, pagination:false, navigationText: [ "prev", "next" ], beforeInit:function(elem){ random(elem); }}); $("#owl-demo9").owlCarousel({ navigation:true, slideSpeed:1000, paginationSpeed:400, singleItem:true, pagination:false, transitionStyle:"goDown" }); $("#owl-demo10").owlCarousel({ navigation:true, slideSpeed:1000, paginationSpeed:400, singleItem:true, pagination:true, navigation:false, transitionStyle:"fadeUp" }); var sync1=$("#sync1"); var sync2=$("#sync2"); sync1.owlCarousel({ singleItem:true, slideSpeed:1000, pagination:false, afterAction:syncPosition, responsiveRefreshRate:200, }); sync2.owlCarousel({ items:5, itemsDesktop:[1170,4], itemsDesktopSmall:[979,4], itemsTablet:[768,3], itemsMobile:[479,2], pagination:false, responsiveRefreshRate:100, afterInit:function(el){ el.find(".owl-item").eq(0).addClass("synced"); }}); function syncPosition(el){ var current=this.currentItem; $("#sync2") .find(".owl-item") .removeClass("synced") .eq(current) .addClass("synced") if($("#sync2").data("owlCarousel")!==undefined){ center(current) }} $("#sync2").on("click", ".owl-item", function(e){ e.preventDefault(); var number=$(this).data("owlItem"); sync1.trigger("owl.goTo",number); }); function center(number){ var sync2visible=sync2.data("owlCarousel").owl.visibleItems; var num=number; var found=false; for(var i in sync2visible){ if(num===sync2visible[i]){ var found=true; }} if(found===false){ if(num>sync2visible[sync2visible.length-1]){ sync2.trigger("owl.goTo", num - sync2visible.length+2) }else{ if(num - 1===-1){ num=0; } sync2.trigger("owl.goTo", num); }}else if(num===sync2visible[sync2visible.length-1]){ sync2.trigger("owl.goTo", sync2visible[1]) }else if(num===sync2visible[0]){ sync2.trigger("owl.goTo", num-1) }} }); })(jQuery); (function($){ "use strict"; $(document).ready(function(){ $(window).scroll(function(){ if($(this).scrollTop() > 100){ $('.scrollup').fadeIn(); }else{ $('.scrollup').fadeOut(); }}); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 500); return false; }); }); })(jQuery); !function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found. Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery), function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery), function(a){"use strict";a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"
{{title}}
{{desc}}
",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery), function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:""}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery), function(a){"use strict";a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery), function(a){"use strict";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery), function(a){"use strict";a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d1)for(h=g,f=0;fb.slideCount-b.carouselVisible||(b.API.advanceSlide(a),b.API.trigger("cycle-next",[b]).log("cycle-next"))})}),a.fn.cycle.transitions.carousel={preInit:function(b){b.hideNonActive=!1,b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.API.stopTransition=this.stopTransition;for(var c=0;cb.slideCount&&(b.carouselVisible=b.slideCount-1);var h=b.carouselVisible||b.slides.length,i={display:g?"block":"inline-block",position:"static"};if(b.container.css({position:"relative",overflow:"hidden"}),b.slides.css(i),b._currSlide=b.currSlide,f=a('').prependTo(b.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(b.slides),b._carouselWrap=f,g||f.css("white-space","nowrap"),b.allowWrap!==!1){for(d=0;d<(void 0===b.carouselVisible?2:1);d++){for(c=0;c0;var l=b._currSlide,m=b.slideCount-b.carouselVisible;i>0&&b.nextSlide>m&&l==m?i=0:i>0&&b.nextSlide>m?i=b.nextSlide-l-(b.nextSlide-m):0>i&&b.currSlide>m&&b.nextSlide>m?i=0:0>i&&b.currSlide>m?i+=b.currSlide-m:l=b.currSlide,g=this.getScroll(b,j,l,i),b.API.opts()._currSlide=b.nextSlide>m?m:b.nextSlide}else e&&0===b.nextSlide?(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f)):e||b.nextSlide!=b.slideCount-1?g=this.getScroll(b,j,b.currSlide,i):(g=this.getDim(b,b.currSlide,j),f=this.genCallback(b,e,j,f));h[j?"top":"left"]=e?"-="+g:"+="+g,b.throttleSpeed&&(k=g/a(b.slides[0])[j?"height":"width"]()*b.speed),b._carouselWrap.animate(h,k,b.easing,f)},getDim:function(b,c,d){var e=a(b.slides[c]);return e[d?"outerHeight":"outerWidth"](!0)},getScroll:function(a,b,c,d){var e,f=0;if(d>0)for(e=c;c+d>e;e++)f+=this.getDim(a,e,b);else for(e=c;e>c+d;e--)f+=this.getDim(a,e,b);return f},genCallback:function(b,c,d,e){return function(){var c=a(b.slides[b.nextSlide]).position(),f=0-c[d?"top":"left"]+(b.carouselOffset||0);b._carouselWrap.css(b.carouselVertical?"top":"left",f),e()}},stopTransition:function(){var a=this.opts();a.slides.stop(!1,!0),a._carouselWrap.stop(!1,!0)},onDestroy:function(){var b=this.opts();b._carouselResizeThrottle&&a(window).off("resize",b._carouselResizeThrottle),b.slides.prependTo(b.container),b._carouselWrap.remove()}}}(jQuery); !function(a){"use strict";a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind("touchstart",function(c){function d(b){if(g){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e,f=c.originalEvent.touches?c.originalEvent.touches[0]:c,g={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:a(c.target)};b.bind("touchmove",d).one("touchend",function(){b.unbind("touchmove",d),g&&e&&e.time-g.timea.event.special.swipe.horizontalDistanceThreshold&&Math.abs(g.coords[1]-e.coords[1])e.coords[0]?"swipeleft":"swiperight"),g=e=void 0})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind("swipe",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft}(jQuery); !function(a){"use strict";a.fn.cycle.transitions.tileSlide=a.fn.cycle.transitions.tileBlind={before:function(b,c,d,e){b.API.stackSlides(c,d,e),a(c).css({display:"block",visibility:"visible"}),b.container.css("overflow","hidden"),b.tileDelay=b.tileDelay||"tileSlide"==b.fx?100:125,b.tileCount=b.tileCount||7,b.tileVertical=b.tileVertical!==!1,b.container.data("cycleTileInitialized")||(b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.container.data("cycleTileInitialized",!0))},transition:function(b,c,d,e,f){function g(a){m.eq(a).animate(t,{duration:b.speed,easing:b.easing,complete:function(){(e?p-1===a:0===a)&&b._tileAniCallback()}}),setTimeout(function(){(e?p-1!==a:0!==a)&&g(e?a+1:a-1)},b.tileDelay)}b.slides.not(c).not(d).css("visibility","hidden");var h,i,j,k,l,m=a(),n=a(c),o=a(d),p=b.tileCount,q=b.tileVertical,r=b.container.height(),s=b.container.width();q?(i=Math.floor(s/p),k=s-i*(p-1),j=l=r):(i=k=s,j=Math.floor(r/p),l=r-j*(p-1)),b.container.find(".cycle-tiles-container").remove();var t,u={left:0,top:0,overflow:"hidden",position:"absolute",margin:0,padding:0};t=q?"tileSlide"==b.fx?{top:r}:{width:0}:"tileSlide"==b.fx?{left:s}:{height:0};var v=a('
');v.css({zIndex:n.css("z-index"),overflow:"visible",position:"absolute",top:0,left:0,direction:"ltr"}),v.insertBefore(d);for(var w=0;p>w;w++)h=a("
").css(u).css({width:p-1===w?k:i,height:p-1===w?l:j,marginLeft:q?w*i:0,marginTop:q?0:w*j}).append(n.clone().css({position:"relative",maxWidth:"none",width:n.width(),margin:0,padding:0,marginLeft:q?-(w*i):0,marginTop:q?0:-(w*j)})),m=m.add(h);v.append(m),n.css("visibility","hidden"),o.css({opacity:1,display:"block",visibility:"visible"}),g(e?0:p-1),b._tileAniCallback=function(){o.css({display:"block",visibility:"visible"}),n.css("visibility","hidden"),v.remove(),f()}},stopTransition:function(a){a.container.find("*").stop(!0,!0),a._tileAniCallback&&a._tileAniCallback()},onDestroy:function(){var a=this.opts();a.container.find(".cycle-tiles-container").remove()}}}(jQuery); !function(a){"use strict";function b(){try{this.playVideo()}catch(a){}}function c(){try{this.pauseVideo()}catch(a){}}var d='
';a.extend(a.fn.cycle.defaults,{youtubeAllowFullScreen:!0,youtubeAutostart:!1,youtubeAutostop:!0}),a(document).on("cycle-bootstrap",function(e,f){f.youtube&&(f.hideNonActive=!1,f.container.find(f.slides).each(function(b){if(void 0!==a(this).attr("href")){var c,e=a(this),g=e.attr("href"),h=f.youtubeAllowFullScreen?"true":"false";g+=(/\?/.test(g)?"&":"?")+"enablejsapi=1",f.youtubeAutostart&&f.startingSlide===b&&(g+="&autoplay=1"),c=f.API.tmpl(d,{url:g,allowFullScreen:h}),e.replaceWith(c)}}),f.slides=f.slides.replace(/(\b>?a\b)/,"div.cycle-youtube"),f.youtubeAutostart&&f.container.on("cycle-initialized cycle-after",function(c,d){var e="cycle-initialized"==c.type?d.currSlide:d.nextSlide;a(d.slides[e]).find("object,embed").each(b)}),f.youtubeAutostop&&f.container.on("cycle-before",function(b,d){a(d.slides[d.currSlide]).find("object,embed").each(c)}))})}(jQuery); (function(){ var speed='fast'; var slides_selector='.cycloneslider-template-dark .cycloneslider-slides'; jQuery(document).on('cycle-before', slides_selector, function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){ jQuery(this).find('.cycloneslider-caption-title').stop().fadeOut(0).end().find('.cycloneslider-caption-description').stop().fadeOut(0).end().find('.cycloneslider-caption-more').stop().fadeOut(0); }); jQuery(document).on('cycle-initialized cycle-after', slides_selector, function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){ var index=(event.type=='cycle-initialized') ? optionHash.currSlide:optionHash.nextSlide; var slide=jQuery(optionHash.slides[ index ]); slide.find('.cycloneslider-caption-title').fadeIn(speed, function(){ slide.find('.cycloneslider-caption-description').fadeIn(speed, function(){ slide.find('.cycloneslider-caption-more').fadeIn(speed); }); }); }); })(); (function(){ var main='.cycloneslider-template-thumbnails'; jQuery(document).on('cycle-initialized', main+' .cycloneslider-slides', function(event, optionHash){ jQuery(this).parent().next().find('li').eq(optionHash.currSlide).addClass('current'); }); jQuery(document).on('cycle-before', '.cycloneslider-template-thumbnails .cycloneslider-slides', function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){ var i=optionHash.nextSlide; jQuery(this).parent().next().find('li').removeClass('current').eq(i).addClass('current'); }); jQuery(document).on('click', '.cycloneslider-thumbnails li', function(){ var i=jQuery(this).index(); jQuery(this).parents('.cycloneslider-thumbnails').prev().find('.cycloneslider-slides').cycle('goto', i); }); })(); (function (global, factory){ typeof exports==='object'&&typeof module!=='undefined' ? module.exports=factory() : typeof define==='function'&&define.amd ? define(factory) : (global.Vimeo=global.Vimeo||{}, global.Vimeo.Player=factory()); }(this, (function (){ 'use strict'; var arrayIndexOfSupport=typeof Array.prototype.indexOf!=='undefined'; var postMessageSupport=typeof window.postMessage!=='undefined'; if(!arrayIndexOfSupport||!postMessageSupport){ throw new Error('Sorry, the Vimeo Player API is not available in this browser.'); } var commonjsGlobal=typeof window!=='undefined' ? window:typeof global!=='undefined' ? global:typeof self!=='undefined' ? self:{}; function createCommonjsModule(fn, module){ return module={ exports: {}}, fn(module, module.exports), module.exports; } var index=createCommonjsModule(function (module, exports){ (function (exports){ 'use strict'; var i; var defineProperty=Object.defineProperty, is=function is(a, b){ return a===b||a!==a&&b!==b; }; if(typeof WeakMap=='undefined'){ exports.WeakMap=createCollection({ 'delete': sharedDelete, clear: sharedClear, get: sharedGet, has: mapHas, set: sharedSet }, true); } if(typeof Map=='undefined'||typeof new Map().values!=='function'||!new Map().values().next){ exports.Map=createCollection({ 'delete': sharedDelete, has: mapHas, get: sharedGet, set: sharedSet, keys: sharedKeys, values: sharedValues, entries: mapEntries, forEach: sharedForEach, clear: sharedClear }); } if(typeof Set=='undefined'||typeof new Set().values!=='function'||!new Set().values().next){ exports.Set=createCollection({ has: setHas, add: sharedAdd, 'delete': sharedDelete, clear: sharedClear, keys: sharedValues, values: sharedValues, entries: setEntries, forEach: sharedForEach }); } if(typeof WeakSet=='undefined'){ exports.WeakSet=createCollection({ 'delete': sharedDelete, add: sharedAdd, clear: sharedClear, has: setHas }, true); } function createCollection(proto, objectOnly){ function Collection(a){ if(!this||this.constructor!==Collection) return new Collection(a); this._keys=[]; this._values=[]; this._itp=[]; this.objectOnly=objectOnly; if(a) init.call(this, a); } if(!objectOnly){ defineProperty(proto, 'size', { get: sharedSize }); } proto.constructor=Collection; Collection.prototype=proto; return Collection; } function init(a){ var i; if(this.add) a.forEach(this.add, this); else a.forEach(function (a){ this.set(a[0], a[1]); }, this); } function sharedDelete(key){ if(this.has(key)){ this._keys.splice(i, 1); this._values.splice(i, 1); this._itp.forEach(function (p){ if(i < p[0]) p[0]--; }); } return -1 < i; } function sharedGet(key){ return this.has(key) ? this._values[i]:undefined; } function has(list, key){ if(this.objectOnly&&key!==Object(key)) throw new TypeError("Invalid value used as weak collection key"); if(key!=key||key===0) for (i=list.length; i--&&!is(list[i], key);){} else i=list.indexOf(key); return -1 < i; } function setHas(value){ return has.call(this, this._values, value); } function mapHas(value){ return has.call(this, this._keys, value); } function sharedSet(key, value){ this.has(key) ? this._values[i]=value:this._values[this._keys.push(key) - 1]=value; return this; } function sharedAdd(value){ if(!this.has(value)) this._values.push(value); return this; } function sharedClear(){ (this._keys||0).length=this._values.length=0; } function sharedKeys(){ return sharedIterator(this._itp, this._keys); } function sharedValues(){ return sharedIterator(this._itp, this._values); } function mapEntries(){ return sharedIterator(this._itp, this._keys, this._values); } function setEntries(){ return sharedIterator(this._itp, this._values, this._values); } function sharedIterator(itp, array, array2){ var p=[0], done=false; itp.push(p); return { next: function next(){ var v, k=p[0]; if(!done&&k < array.length){ v=array2 ? [array[k], array2[k]]:array[k]; p[0]++; }else{ done=true; itp.splice(itp.indexOf(p), 1); } return { done: done, value: v };}};} function sharedSize(){ return this._values.length; } function sharedForEach(callback, context){ var it=this.entries(); for (;;){ var r=it.next(); if(r.done) break; callback.call(context, r.value[1], r.value[0], this); }} })(typeof exports!='undefined'&&typeof commonjsGlobal!='undefined' ? commonjsGlobal:window); }); var npo_src=createCommonjsModule(function (module){ var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol" ? function (obj){ return typeof obj; }:function (obj){ return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? "symbol":typeof obj; }; (function UMD(name, context, definition){ context[name]=context[name]||definition(); if(typeof module!="undefined"&&module.exports){ module.exports=context[name]; }else if(typeof define=="function"&&define.amd){ define(function $AMD$(){ return context[name]; }); }})("Promise", typeof commonjsGlobal!="undefined" ? commonjsGlobal:commonjsGlobal, function DEF(){ "use strict"; var builtInProp, cycle, scheduling_queue, ToString=Object.prototype.toString, timer=typeof setImmediate!="undefined" ? function timer(fn){ return setImmediate(fn); }:setTimeout; try { Object.defineProperty({}, "x", {}); builtInProp=function builtInProp(obj, name, val, config){ return Object.defineProperty(obj, name, { value: val, writable: true, configurable: config!==false }); };} catch (err){ builtInProp=function builtInProp(obj, name, val){ obj[name]=val; return obj; };} scheduling_queue=function Queue(){ var first, last, item; function Item(fn, self){ this.fn=fn; this.self=self; this.next=void 0; } return { add: function add(fn, self){ item=new Item(fn, self); if(last){ last.next=item; }else{ first=item; } last=item; item=void 0; }, drain: function drain(){ var f=first; first=last=cycle=void 0; while (f){ f.fn.call(f.self); f=f.next; }} };}(); function schedule(fn, self){ scheduling_queue.add(fn, self); if(!cycle){ cycle=timer(scheduling_queue.drain); }} function isThenable(o){ var _then, o_type=typeof o==="undefined" ? "undefined":_typeof(o); if(o!=null&&(o_type=="object"||o_type=="function")){ _then=o.then; } return typeof _then=="function" ? _then:false; } function notify(){ for (var i=0; i < this.chain.length; i++){ notifyIsolated(this, this.state===1 ? this.chain[i].success:this.chain[i].failure, this.chain[i]); } this.chain.length=0; } function notifyIsolated(self, cb, chain){ var ret, _then; try { if(cb===false){ chain.reject(self.msg); }else{ if(cb===true){ ret=self.msg; }else{ ret=cb.call(void 0, self.msg); } if(ret===chain.promise){ chain.reject(TypeError("Promise-chain cycle")); }else if(_then=isThenable(ret)){ _then.call(ret, chain.resolve, chain.reject); }else{ chain.resolve(ret); }} } catch (err){ chain.reject(err); }} function resolve(msg){ var _then, self=this; if(self.triggered){ return; } self.triggered=true; if(self.def){ self=self.def; } try { if(_then=isThenable(msg)){ schedule(function (){ var def_wrapper=new MakeDefWrapper(self); try { _then.call(msg, function $resolve$(){ resolve.apply(def_wrapper, arguments); }, function $reject$(){ reject.apply(def_wrapper, arguments); }); } catch (err){ reject.call(def_wrapper, err); }}); }else{ self.msg=msg; self.state=1; if(self.chain.length > 0){ schedule(notify, self); }} } catch (err){ reject.call(new MakeDefWrapper(self), err); }} function reject(msg){ var self=this; if(self.triggered){ return; } self.triggered=true; if(self.def){ self=self.def; } self.msg=msg; self.state=2; if(self.chain.length > 0){ schedule(notify, self); }} function iteratePromises(Constructor, arr, resolver, rejecter){ for (var idx=0; idx < arr.length; idx++){ (function IIFE(idx){ Constructor.resolve(arr[idx]).then(function $resolver$(msg){ resolver(idx, msg); }, rejecter); })(idx); }} function MakeDefWrapper(self){ this.def=self; this.triggered=false; } function MakeDef(self){ this.promise=self; this.state=0; this.triggered=false; this.chain=[]; this.msg=void 0; } function Promise(executor){ if(typeof executor!="function"){ throw TypeError("Not a function"); } if(this.__NPO__!==0){ throw TypeError("Not a promise"); } this.__NPO__=1; var def=new MakeDef(this); this["then"]=function then(success, failure){ var o={ success: typeof success=="function" ? success:true, failure: typeof failure=="function" ? failure:false }; o.promise=new this.constructor(function extractChain(resolve, reject){ if(typeof resolve!="function"||typeof reject!="function"){ throw TypeError("Not a function"); } o.resolve=resolve; o.reject=reject; }); def.chain.push(o); if(def.state!==0){ schedule(notify, def); } return o.promise; }; this["catch"]=function $catch$(failure){ return this.then(void 0, failure); }; try { executor.call(void 0, function publicResolve(msg){ resolve.call(def, msg); }, function publicReject(msg){ reject.call(def, msg); }); } catch (err){ reject.call(def, err); }} var PromisePrototype=builtInProp({}, "constructor", Promise, false); Promise.prototype=PromisePrototype; builtInProp(PromisePrototype, "__NPO__", 0, false); builtInProp(Promise, "resolve", function Promise$resolve(msg){ var Constructor=this; if(msg&&(typeof msg==="undefined" ? "undefined":_typeof(msg))=="object"&&msg.__NPO__===1){ return msg; } return new Constructor(function executor(resolve, reject){ if(typeof resolve!="function"||typeof reject!="function"){ throw TypeError("Not a function"); } resolve(msg); }); }); builtInProp(Promise, "reject", function Promise$reject(msg){ return new this(function executor(resolve, reject){ if(typeof resolve!="function"||typeof reject!="function"){ throw TypeError("Not a function"); } reject(msg); }); }); builtInProp(Promise, "all", function Promise$all(arr){ var Constructor=this; if(ToString.call(arr)!="[object Array]"){ return Constructor.reject(TypeError("Not an array")); } if(arr.length===0){ return Constructor.resolve([]); } return new Constructor(function executor(resolve, reject){ if(typeof resolve!="function"||typeof reject!="function"){ throw TypeError("Not a function"); } var len=arr.length, msgs=Array(len), count=0; iteratePromises(Constructor, arr, function resolver(idx, msg){ msgs[idx]=msg; if(++count===len){ resolve(msgs); }}, reject); }); }); builtInProp(Promise, "race", function Promise$race(arr){ var Constructor=this; if(ToString.call(arr)!="[object Array]"){ return Constructor.reject(TypeError("Not an array")); } return new Constructor(function executor(resolve, reject){ if(typeof resolve!="function"||typeof reject!="function"){ throw TypeError("Not a function"); } iteratePromises(Constructor, arr, function resolver(idx, msg){ resolve(msg); }, reject); }); }); return Promise; }); }); var callbackMap=new WeakMap(); /** * Store a callback for a method or event for a player. * * @author Brad Dougherty * @param {Player} player The player object. * @param {string} name The method or event name. * @param {(function(this:Player, *): void|{resolve: function, reject: function})} callback * The callback to call or an object with resolve and reject functions for a promise. * @return {void} */ function storeCallback(player, name, callback){ var playerCallbacks=callbackMap.get(player.element)||{}; if(!(name in playerCallbacks)){ playerCallbacks[name]=[]; } playerCallbacks[name].push(callback); callbackMap.set(player.element, playerCallbacks); } function getCallbacks(player, name){ var playerCallbacks=callbackMap.get(player.element)||{}; return playerCallbacks[name]||[]; } function removeCallback(player, name, callback){ var playerCallbacks=callbackMap.get(player.element)||{}; if(!playerCallbacks[name]){ return true; } if(!callback){ playerCallbacks[name]=[]; callbackMap.set(player.element, playerCallbacks); return true; } var index=playerCallbacks[name].indexOf(callback); if(index!==-1){ playerCallbacks[name].splice(index, 1); } callbackMap.set(player.element, playerCallbacks); return playerCallbacks[name]&&playerCallbacks[name].length===0; } function shiftCallbacks(player, name){ var playerCallbacks=getCallbacks(player, name); if(playerCallbacks.length < 1){ return false; } var callback=playerCallbacks.shift(); removeCallback(player, name, callback); return callback; } function swapCallbacks(oldElement, newElement){ var playerCallbacks=callbackMap.get(oldElement); callbackMap.set(newElement, playerCallbacks); callbackMap.delete(oldElement); } function getMethodName(prop, type){ if(prop.indexOf(type.toLowerCase())===0){ return prop; } return '' + type.toLowerCase() + prop.substr(0, 1).toUpperCase() + prop.substr(1); } function isDomElement(element){ return element instanceof window.HTMLElement; } function isInteger(value){ return !isNaN(parseFloat(value))&&isFinite(value)&&Math.floor(value)==value; } function isVimeoUrl(url){ return (/^(https?:)?\/\/(player.)?vimeo.com(?=$|\/)/.test(url) ); } function getVimeoUrl(){ var oEmbedParameters=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{}; var id=oEmbedParameters.id; var url=oEmbedParameters.url; var idOrUrl=id||url; if(!idOrUrl){ throw new Error('An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.'); } if(isInteger(idOrUrl)){ return 'https://vimeo.com/' + idOrUrl; } if(isVimeoUrl(idOrUrl)){ return idOrUrl.replace('http:', 'https:'); } if(id){ throw new TypeError('\u201C' + id + '\u201D is not a valid video id.'); } throw new TypeError('\u201C' + idOrUrl + '\u201D is not a vimeo.com url.'); } var oEmbedParameters=['id', 'url', 'width', 'maxwidth', 'height', 'maxheight', 'portrait', 'title', 'byline', 'color', 'autoplay', 'autopause', 'loop', 'responsive']; function getOEmbedParameters(element){ var defaults=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:{}; return oEmbedParameters.reduce(function (params, param){ var value=element.getAttribute('data-vimeo-' + param); if(value||value===''){ params[param]=value==='' ? 1:value; } return params; }, defaults); } function getOEmbedData(videoUrl){ var params=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:{}; return new Promise(function (resolve, reject){ if(!isVimeoUrl(videoUrl)){ throw new TypeError('\u201C' + videoUrl + '\u201D is not a vimeo.com url.'); } var url='https://vimeo.com/api/oembed.json?url=' + encodeURIComponent(videoUrl); for (var param in params){ if(params.hasOwnProperty(param)){ url +='&' + param + '=' + encodeURIComponent(params[param]); }} var xhr='XDomainRequest' in window ? new XDomainRequest():new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onload=function (){ if(xhr.status===404){ reject(new Error('\u201C' + videoUrl + '\u201D was not found.')); return; } if(xhr.status===403){ reject(new Error('\u201C' + videoUrl + '\u201D is not embeddable.')); return; } try { var json=JSON.parse(xhr.responseText); resolve(json); } catch (error){ reject(error); }}; xhr.onerror=function (){ var status=xhr.status ? ' (' + xhr.status + ')':''; reject(new Error('There was an error fetching the embed code from Vimeo' + status + '.')); }; xhr.send(); }); } function createEmbed(_ref, element){ var html=_ref.html; if(!element){ throw new TypeError('An element must be provided'); } if(element.getAttribute('data-vimeo-initialized')!==null){ return element.querySelector('iframe'); } var div=document.createElement('div'); div.innerHTML=html; element.appendChild(div.firstChild); element.setAttribute('data-vimeo-initialized', 'true'); return element.querySelector('iframe'); } function initializeEmbeds(){ var parent=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:document; var elements=[].slice.call(parent.querySelectorAll('[data-vimeo-id], [data-vimeo-url]')); var handleError=function handleError(error){ if('console' in window&&console.error){ console.error('There was an error creating an embed: ' + error); }}; elements.forEach(function (element){ try { if(element.getAttribute('data-vimeo-defer')!==null){ return; } var params=getOEmbedParameters(element); var url=getVimeoUrl(params); getOEmbedData(url, params).then(function (data){ return createEmbed(data, element); }).catch(handleError); } catch (error){ handleError(error); }}); } function parseMessageData(data){ if(typeof data==='string'){ data=JSON.parse(data); } return data; } function postMessage(player, method, params){ if(!player.element.contentWindow.postMessage){ return; } var message={ method: method }; if(params!==undefined){ message.value=params; } var ieVersion=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/, '$1')); if(ieVersion >=8&&ieVersion < 10){ message=JSON.stringify(message); } player.element.contentWindow.postMessage(message, player.origin); } function processData(player, data){ data=parseMessageData(data); var callbacks=[]; var param=void 0; if(data.event){ if(data.event==='error'){ var promises=getCallbacks(player, data.data.method); promises.forEach(function (promise){ var error=new Error(data.data.message); error.name=data.data.name; promise.reject(error); removeCallback(player, data.data.method, promise); }); } callbacks=getCallbacks(player, 'event:' + data.event); param=data.data; }else if(data.method){ var callback=shiftCallbacks(player, data.method); if(callback){ callbacks.push(callback); param=data.value; }} callbacks.forEach(function (callback){ try { if(typeof callback==='function'){ callback.call(player, param); return; } callback.resolve(param); } catch (e){ }}); } var _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if("value" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}(); function _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError("Cannot call a class as a function"); }} var playerMap=new WeakMap(); var readyMap=new WeakMap(); var Player=function (){ function Player(element){ var _this=this; var options=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:{}; _classCallCheck(this, Player); if(window.jQuery&&element instanceof jQuery){ if(element.length > 1&&window.console&&console.warn){ console.warn('A jQuery object with multiple elements was passed, using the first element.'); } element=element[0]; } if(typeof element==='string'){ element=document.getElementById(element); } if(!isDomElement(element)){ throw new TypeError('You must pass either a valid element or a valid id.'); } if(element.nodeName!=='IFRAME'){ var iframe=element.querySelector('iframe'); if(iframe){ element=iframe; }} if(element.nodeName==='IFRAME'&&!isVimeoUrl(element.getAttribute('src')||'')){ throw new Error('The player element passed isn’t a Vimeo embed.'); } if(playerMap.has(element)){ return playerMap.get(element); } this.element=element; this.origin='*'; var readyPromise=new npo_src(function (resolve, reject){ var onMessage=function onMessage(event){ if(!isVimeoUrl(event.origin)||_this.element.contentWindow!==event.source){ return; } if(_this.origin==='*'){ _this.origin=event.origin; } var data=parseMessageData(event.data); var isReadyEvent='event' in data&&data.event==='ready'; var isPingResponse='method' in data&&data.method==='ping'; if(isReadyEvent||isPingResponse){ _this.element.setAttribute('data-ready', 'true'); resolve(); return; } processData(_this, data); }; if(window.addEventListener){ window.addEventListener('message', onMessage, false); }else if(window.attachEvent){ window.attachEvent('onmessage', onMessage); } if(_this.element.nodeName!=='IFRAME'){ var params=getOEmbedParameters(element, options); var url=getVimeoUrl(params); getOEmbedData(url, params).then(function (data){ var iframe=createEmbed(data, element); _this.element=iframe; swapCallbacks(element, iframe); return data; }).catch(function (error){ return reject(error); }); }}); readyMap.set(this, readyPromise); playerMap.set(this.element, this); if(this.element.nodeName==='IFRAME'){ postMessage(this, 'ping'); } return this; } _createClass(Player, [{ key: 'callMethod', value: function callMethod(name){ var _this2=this; var args=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:{}; return new npo_src(function (resolve, reject){ return _this2.ready().then(function (){ storeCallback(_this2, name, { resolve: resolve, reject: reject }); postMessage(_this2, name, args); }); }); } }, { key: 'get', value: function get(name){ var _this3=this; return new npo_src(function (resolve, reject){ name=getMethodName(name, 'get'); return _this3.ready().then(function (){ storeCallback(_this3, name, { resolve: resolve, reject: reject }); postMessage(_this3, name); }); }); } }, { key: 'set', value: function set(name, value){ var _this4=this; return npo_src.resolve(value).then(function (val){ name=getMethodName(name, 'set'); if(val===undefined||val===null){ throw new TypeError('There must be a value to set.'); } return _this4.ready().then(function (){ return new npo_src(function (resolve, reject){ storeCallback(_this4, name, { resolve: resolve, reject: reject }); postMessage(_this4, name, val); }); }); }); } /** * Add an event listener for the specified event. Will call the * callback with a single parameter, `data`, that contains the data for * that event. * * @author Brad Dougherty * @param {string} eventName The name of the event. * @param {function(*)} callback The function to call when the event fires. * @return {void} */ }, { key: 'on', value: function on(eventName, callback){ if(!eventName){ throw new TypeError('You must pass an event name.'); } if(!callback){ throw new TypeError('You must pass a callback function.'); } if(typeof callback!=='function'){ throw new TypeError('The callback must be a function.'); } var callbacks=getCallbacks(this, 'event:' + eventName); if(callbacks.length===0){ this.callMethod('addEventListener', eventName).catch(function (){ }); } storeCallback(this, 'event:' + eventName, callback); } }, { key: 'off', value: function off(eventName, callback){ if(!eventName){ throw new TypeError('You must pass an event name.'); } if(callback&&typeof callback!=='function'){ throw new TypeError('The callback must be a function.'); } var lastCallback=removeCallback(this, 'event:' + eventName, callback); if(lastCallback){ this.callMethod('removeEventListener', eventName).catch(function (e){ }); }} }, { key: 'loadVideo', value: function loadVideo(id){ return this.callMethod('loadVideo', id); } }, { key: 'ready', value: function ready(){ var readyPromise=readyMap.get(this); return npo_src.resolve(readyPromise); } }, { key: 'addCuePoint', value: function addCuePoint(time){ var data=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:{}; return this.callMethod('addCuePoint', { time: time, data: data }); } }, { key: 'removeCuePoint', value: function removeCuePoint(id){ return this.callMethod('removeCuePoint', id); } }, { key: 'enableTextTrack', value: function enableTextTrack(language, kind){ if(!language){ throw new TypeError('You must pass a language.'); } return this.callMethod('enableTextTrack', { language: language, kind: kind }); } }, { key: 'disableTextTrack', value: function disableTextTrack(){ return this.callMethod('disableTextTrack'); } }, { key: 'pause', value: function pause(){ return this.callMethod('pause'); } }, { key: 'play', value: function play(){ return this.callMethod('play'); } }, { key: 'unload', value: function unload(){ return this.callMethod('unload'); } }, { key: 'getAutopause', value: function getAutopause(){ return this.get('autopause'); } }, { key: 'setAutopause', value: function setAutopause(autopause){ return this.set('autopause', autopause); } }, { key: 'getColor', value: function getColor(){ return this.get('color'); } }, { key: 'setColor', value: function setColor(color){ return this.set('color', color); } }, { key: 'getCuePoints', value: function getCuePoints(){ return this.get('cuePoints'); } }, { key: 'getCurrentTime', value: function getCurrentTime(){ return this.get('currentTime'); } }, { key: 'setCurrentTime', value: function setCurrentTime(currentTime){ return this.set('currentTime', currentTime); } }, { key: 'getDuration', value: function getDuration(){ return this.get('duration'); } }, { key: 'getEnded', value: function getEnded(){ return this.get('ended'); } }, { key: 'getLoop', value: function getLoop(){ return this.get('loop'); } }, { key: 'setLoop', value: function setLoop(loop){ return this.set('loop', loop); } }, { key: 'getPaused', value: function getPaused(){ return this.get('paused'); } }, { key: 'getTextTracks', value: function getTextTracks(){ return this.get('textTracks'); } }, { key: 'getVideoEmbedCode', value: function getVideoEmbedCode(){ return this.get('videoEmbedCode'); } }, { key: 'getVideoId', value: function getVideoId(){ return this.get('videoId'); } }, { key: 'getVideoTitle', value: function getVideoTitle(){ return this.get('videoTitle'); } }, { key: 'getVideoWidth', value: function getVideoWidth(){ return this.get('videoWidth'); } }, { key: 'getVideoHeight', value: function getVideoHeight(){ return this.get('videoHeight'); } }, { key: 'getVideoUrl', value: function getVideoUrl(){ return this.get('videoUrl'); } }, { key: 'getVolume', value: function getVolume(){ return this.get('volume'); } }, { key: 'setVolume', value: function setVolume(volume){ return this.set('volume', volume); }}]); return Player; }(); initializeEmbeds(); return Player; }))); jQuery(document).ready(function($){ (function(){ try{ $('.magnific-pop').magnificPopup({ type:'image' }); } catch (ignore){}})(); }); (function(){ var slides_selector='.cycloneslider-template-dark .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-default .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-standard .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-thumbnails .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-galleria .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-text .cycloneslider-slides'; slides_selector +=',.cycloneslider-template-dos .cycloneslider-slides'; jQuery(document).on('cycle-before', slides_selector, function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){ var slide=jQuery(outgoingSlideEl), curHeight=0, nextHeight=0; if("on"==optionHash.dynamicHeight){ curHeight=jQuery(outgoingSlideEl)[0].getBoundingClientRect().height; if(undefined==curHeight||0==curHeight){ curHeight=jQuery(outgoingSlideEl).outerHeight(); } nextHeight=jQuery(incomingSlideEl)[0].getBoundingClientRect().height; if(undefined==nextHeight||0==nextHeight){ nextHeight=jQuery(incomingSlideEl).outerHeight(); } if(nextHeight!=curHeight) jQuery(this).animate({height:nextHeight}, optionHash.autoHeightSpeed, optionHash.autoHeightEasing); } if(slide.hasClass('cycloneslider-slide-youtube')) pauseYoutube(slide); if(slide.hasClass('cycloneslider-slide-vimeo')) pauseVimeo(slide); }); jQuery(document).on('cycle-initialized cycle-after', slides_selector, function(event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){ var index=(event.type=='cycle-initialized') ? optionHash.currSlide:optionHash.nextSlide; var slide=jQuery(optionHash.slides[ index ]); if(false==optionHash.hideNonActive) slide.css('zIndex', parseInt(slide.css('zIndex'))+20); }); function pauseYoutube(slide){ var data={ "event": "command", "func": "pauseVideo", "args": [], "id": "" } postMessage(slide.find('iframe'), data, '*'); } function pauseVimeo(slide){ postMessage(slide.find('iframe'), {method:'pause'}, slide.find('iframe').attr('src')); } function postMessage(iframe, data, url){ try{ if(iframe[0]){ iframe[0].contentWindow.postMessage(JSON.stringify(data), url); }} catch (ignore){}} })(); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var n=/\+/g;function o(e){return t.raw?e:encodeURIComponent(e)}function i(e){return o(t.json?JSON.stringify(e):String(e))}function r(o,i){var r=t.raw?o:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),t.json?JSON.parse(e):e}catch(e){}}(o);return e.isFunction(i)?i(r):r}var t=e.cookie=function(n,c,u){if(arguments.length>1&&!e.isFunction(c)){if("number"==typeof(u=e.extend({},t.defaults,u)).expires){var s=u.expires,a=u.expires=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*s)}return document.cookie=[o(n),"=",i(c),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var d,f=n?void 0:{},p=document.cookie?document.cookie.split("; "):[],l=0,m=p.length;l1)){var d=1;jQuery(this).find("li").each(function(){if(jQuery(this).hasClass("mystickyelements-minimize")){jQuery(this).hasClass("element-minimize")&&jQuery(this).trigger("click");return}if(jQuery(this).hasClass("element-"+b+"-on")){if(a==d)return jQuery(this).addClass("elements-active"),jQuery(this).parent().parent().parent().hasClass("mystickyelements-on-click")||jQuery(this).parent().parent().parent().addClass("mystickyelements-on-click"),!1;d++}}),c++}})}function close_mystickyelements(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),jQuery(".mystickyelements-fixed .mystickyelements-lists").each(function(){jQuery(this).find("li").each(function(){jQuery(this).hasClass("elements-active")&&jQuery(this).removeClass("elements-active")})})}function hide_mystickyelements(){jQuery(".mystickyelements-fixed").each(function(){jQuery(this).hide(),jQuery.cookie("hide_mystickyelements","closed",{expires:365,path:"/"})})}function show_mystickyelements(){jQuery(".mystickyelements-fixed").each(function(){jQuery(this).show(),jQuery.cookie("hide_mystickyelements","opened",{expires:1,path:"/"})})}!function($){"use strict";var a="",b="",c=0,d=!1,e=0,f=-1;function g(){return/Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"mobile":"desktop"}function h(){if(1024>=$(window).width()){if($(".mystickyelements-fixed").hasClass("mystickyelements-position-mobile-top")){var a=$(".mystickyelements-fixed").height();$("html").attr("style","margin-top: "+a+"px !important")}}else $("html").css("margin-top","")}function i(){if(0!==$(".element-contact-form").length){var g=$(window).height(),i=$(".mystickyelements-fixed").position().top;$(".element-contact-form").offset().top;var j=$("#mystickyelements-contact-form #stickyelements-form").innerHeight()+$(".element-contact-form h3").innerHeight();if(g1025&&!$(".mystickyelements-fixed").hasClass("mystickyelements-position-bottom")&&$("#mystickyelements-contact-form .element-contact-form").css("top","-"+f+"px"),1024>$(window).width()&&!$(".mystickyelements-fixed").hasClass("mystickyelements-position-mobile-bottom")&&$("#mystickyelements-contact-form .element-contact-form").css("top","-"+f+"px")}else{var h=$("ul.mystickyelements-lists .mystickyelements-minimize").height();null===h&&(h=0);var f=i-(g-j)+h+10;$(window).width()>1025&&!$(".mystickyelements-fixed").hasClass("mystickyelements-position-bottom")&&$("#mystickyelements-contact-form .element-contact-form").css("top","-"+f+"px"),1024>$(window).width()&&!$(".mystickyelements-fixed").hasClass("mystickyelements-position-mobile-bottom")&&$("#mystickyelements-contact-form .element-contact-form").css("top","-"+f+"px"),$("#mystickyelements-contact-form .element-contact-form").css("overflowY",""),$("#mystickyelements-contact-form .element-contact-form").css("max-height","")}}var e="";/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e="mobile-");var k=0;$(".mystickyelements-fixed ul li").each(function(){if("1"===mystickyelements.google_analytics&&!0!==$(this).hasClass("mystickyelements-minimize")&&"mystickyelements-contact-form"!==$(this).attr("id")){if(0!==$(this).find("a").length){var f=$(this).attr("id").split("mystickyelements-social-");$(this).find("a").addClass("update-analytics"),$(this).find("a").attr("data-social-slug",f[1])}else $(this).addClass("analytics-update")}$(".mystickyelements-position-"+e+"left #"+$(this).attr("id")+" .mystickyelements-social-icon").css("border-radius",""),$(".mystickyelements-position-"+e+"right #"+$(this).attr("id")+" .mystickyelements-social-icon").css("border-radius",""),0==c&&($(window).width()>1024&&!$(this).hasClass("element-desktop-on")&&(d=!0),1025>$(window).width()&&!$(this).hasClass("element-mobile-on")&&(d=!0)),1==c&&!0===d&&($(window).width()>1024&&(b=$(this).attr("id")),1025>$(window).width()&&(b=$(this).attr("id"))),$(window).width()>1024&&$(this).hasClass("element-desktop-on")&&(a=$(this).attr("id")),1025>$(window).width()&&$(this).hasClass("element-mobile-on")&&(a=$(this).attr("id"),k++),c++}),$(".mystickyelements-fixed.mystickyelements-position-mobile-bottom").addClass("mystickyelements-bottom-social-channel-"+k),$(".mystickyelements-fixed.mystickyelements-position-mobile-top").addClass("mystickyelements-top-social-channel-"+k),""!=a?"mystickyelements-contact-form"===a?($(".mystickyelements-position-"+e+"left #"+a+" .mystickyelements-social-icon").css("border-bottom-left-radius","10px"),$(".mystickyelements-position-"+e+"right #"+a+" .mystickyelements-social-icon").css("border-top-left-radius","10px"),$(".mystickyelements-position-"+e+"bottom #"+a+" .mystickyelements-social-icon").css("border-top-right-radius","10px"),1!==$("li.mystickyelements-minimize").length&&($(".mystickyelements-position-"+e+"left #"+a+" .mystickyelements-social-icon").css("border-bottom-right-radius","10px"),$(".mystickyelements-position-"+e+"right #"+a+" .mystickyelements-social-icon").css("border-top-right-radius","10px"))):"mystickyelements-contact-form"!==a&&(1===c?($(".mystickyelements-position-"+e+"left #"+a+" .mystickyelements-social-icon").css("border-radius","0px 10px 10px 0"),$(".mystickyelements-position"+e+"-right #"+a+" .mystickyelements-social-icon").css("border-radius","10px 0 0 10px")):($(".mystickyelements-position-"+e+"left #"+a+" .mystickyelements-social-icon").css("border-bottom-right-radius","10px"),$(".mystickyelements-position-"+e+"right #"+a+" .mystickyelements-social-icon").css("border-bottom-left-radius","10px"),$(".mystickyelements-position-"+e+"bottom #"+a+" .mystickyelements-social-icon").css("border-top-right-radius","10px"))):($(".mystickyelement-credit").hide(),$(".mystickyelements-fixed").hide()),""!=b&&"mystickyelements-contact-form"!==b&&1!==$("li.mystickyelements-minimize").length&&($(".mystickyelements-position-"+e+"left #"+b+" .mystickyelements-social-icon").css("border-top-right-radius","10px"),$(".mystickyelements-position-"+e+"right #"+b+" .mystickyelements-social-icon").css("border-top-left-radius","10px"),$(".mystickyelements-position-"+e+"bottom #"+b+" .mystickyelements-social-icon").css("border-top-left-radius","10px"))}function j(a){a.parent().parent().removeClass("elements-active")}$(document).ready(function(){function b(a){a.find("a").attr("href","#"),e++,f=0}function c(a,b){f=1,e++,a.find("a").attr("href",b)}if("closed"==$.cookie("hide_mystickyelements")&&$(".mystickyelements-fixed").each(function(){jQuery(this).hide()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&$(".mystickyelements-fixed").addClass("mystickyelements-on-click").removeClass("mystickyelements-on-hover"),$("#stickyelements-form").on("submit",function(a){a.preventDefault(),$("#stickyelements-form .mse-input-error").removeClass("mse-input-error"),$("#stickyelements-form .mse-input-message").remove();var b=0;return $("#stickyelements-form .required").length&&$("#stickyelements-form .required").each(function(){""==$.trim($(this).val())&&($(this).addClass("mse-input-error"),$(this).after("This field is required"),b++)}),$("#stickyelements-form .email.required:not(.mse-input-error)").length&&$("#stickyelements-form .email.required:not(.mse-input-error)").each(function(){var a=$.trim($(this).val());!/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(a)&&($(this).addClass("mse-input-error"),$(this).after("Email address is not valid"),b++)}),0==b&&jQuery.ajax({url:mystickyelements.ajaxurl,type:"post",data:"action=mystickyelements_contact_form&"+jQuery("form#stickyelements-form").serialize()+"&security="+mystickyelements.ajax_nonce,beforeSend:function(){$("#stickyelements-submit-form").prop("disabled",!0)},success:function(a){if($("#stickyelements-submit-form").prop("disabled",!1),$("#stickyelements-form .mse-input-error").removeClass("mse-input-error"),$("#stickyelements-form .mse-input-message").remove(),"1"==(a=$.parseJSON(a)).error)for(var b=0;b"+a.errors[b].message+"")):($("#mse-form-error").removeClass("mse-form-success-message").addClass("mse-form-error-message").show(),$("#mse-form-error").html(a.errors[b].message));else"0"==a.status?($("#mse-form-error").removeClass("mse-form-success-message").addClass("mse-form-error-message").show(),$("#mse-form-error").html(a.message)):($("#mse-form-error").removeClass("mse-form-error-message").addClass("mse-form-success-message").show(),$("#mse-form-error").html(a.message),$('#stickyelements-form input[type="text"], #stickyelements-form input[type="tel"], #stickyelements-form input[type="email"]').val(""),$("#stickyelements-form textarea").val(""),$.cookie("closed_contactform","closed",{path:"/"}));return setTimeout(function(){$(".mse-form-success-message").slideUp("slow")},5e3),1==a.status&&""!=a.redirect_link&&(window.location=a.redirect_link),!1}}),!1}),$(".mystickyelements-on-click .mystickyelements-social-icon").on("click touch",function(k){var a,j,d,h,i,l=$(this).data("click"),m=g(),n=$(this);($(this).parent("li").hasClass("mystickyelements-contact-form")||("0"==l&&($(".mystickyelements-social-icon").data("click","0"),e=0),a=n,j=m,d=a.data("tab-setting"),h=a.data("click"),i=a.find("a").data("url"),"mobile"==j?function(a,d,h,g){if("hover"==d&&"enable"==a.data("mobile-behavior")){if(a.data("click","1"),0==e)b(a);else{c(a,g);return}}else if("click"==d&&"enable"==a.data("flyout")){if(a.data("click","1"),0==e)b(a);else{c(a,g);return}}else if("click"==d&&"disable"==a.data("flyout")){a.children("a").length?$(".mystickyelements-on-click .elements-active").removeClass("elements-active"):a.parent("li").addClass("elements-active"),f=1;return}else f=1}(a,d,h,i):function(a,g,h,d){if("enable"==a.data("flyout")){if(a.data("click","1"),0==e)b(a);else{c(a,d);return}}else if("disable"==a.data("flyout")){a.children("a").length?$(".mystickyelements-on-click .elements-active").removeClass("elements-active"):a.parent("li").addClass("elements-active"),f=1,a.find("a").attr("href",d);return}}(a,d,h,i),1!=f))&&($(this).parent("li").hasClass("elements-active")?($(this).parent("li").removeClass("elements-active"),$.cookie("closed_contactform","closed",{path:"/"}),k.preventDefault()):($(".mystickyelements-on-click .elements-active").removeClass("elements-active"),$(this).parent("li").addClass("elements-active")))}),$(".mystickyelements-on-hover .mystickyelements-social-icon").on("click",function(a){$(this).parent("li").hasClass("elements-active")&&0==$(this).children("a").length&&($(this).parent("li").removeClass("elements-hover-active"),a.preventDefault(),$(this).parent().parent().parent().parent(".mystickyelements-on-hover").removeClass("mystickyelements-on-click"))}),$(".mystickyelements-on-hover .mystickyelements-social-icon-li").on("mouseenter",function(){$(this).hasClass("elements-active"),$(this).hasClass("elements-active")||($(".mystickyelements-on-click .elements-active").removeClass("elements-active"),$(this).addClass("elements-active"),$(this).addClass("elements-hover-active"),$(this).parent().parent().parent(".mystickyelements-on-hover").addClass("mystickyelements-on-click"))}).on("mouseleave",function(){$(this).removeClass("elements-active"),$(this).removeClass("elements-hover-active"),$(this).parent().parent().parent(".mystickyelements-on-hover").removeClass("mystickyelements-on-click")}),$(".mystickyelements-on-hover ul li.mystickyelements-contact-form").on("mouseenter",function(){$(this).addClass("element-contact-active")}).on("mouseleave",function(){$(this).removeClass("element-contact-active")}),$(".element-contact-close").on("click touch",function(a){$(".mystickyelements-contact-form").removeClass("elements-active"),$(".mystickyelements-contact-form").removeClass("element-contact-active"),$.cookie("closed_contactform","closed",{path:"/"})}),$("#stickyelements-form input:not(#stickyelements-submit-form), #stickyelements-form textarea ").on("keyup",function(a){$(this).val()&&($(this).css("background-color","#EFF5F8"),$(this).css("border-color","#7761DF"))}),i(),$("li.mystickyelements-minimize").on("click",function(e){var c,b,a,d;$(this).toggleClass("element-minimize"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(b="mobile",a="mobile-",d="element-mobile-on"):(b="desktop",a="",d="element-desktop-on"),!0===$(this).hasClass("element-minimize")?($.cookie("minimize_"+b,"minimize",{path:"/"}),c=!0):($.cookie("minimize_"+b,"minimize_not",{path:"/"}),c=!1),$(".mystickyelements-position-"+a+"left ul li").each(function(){!0==$(this).hasClass(d)&&(!0==$(".mystickyelements-fixed").hasClass("mystickyelements-size-large")?$(this).animate({width:"toggle",left:!0===c?"-=80":""}):$(this).animate({width:"toggle",left:!0===c?"-=50":""}))}),$(".mystickyelements-position-"+a+"right ul li").each(function(){!0==$(this).hasClass(d)&&(!0==$(".mystickyelements-fixed").hasClass("mystickyelements-size-large")?$(this).animate({width:"toggle",left:!0===c?"+=80":""},300,function(){}):$(this).animate({width:"toggle",left:!0===c?"+=50":""},300,function(){}))}),$(".mystickyelements-position-"+a+"bottom ul li").each(function(){!0==$(this).hasClass(d)&&($(this).css("position","relative"),!0==$(".mystickyelements-fixed").hasClass("mystickyelements-size-large")?$(this).animate({height:"toggle",bottom:!0===c?"-=80":""},300,function(){$(this).css("position",!0===c?"relative":"static")}):$(this).animate({height:"toggle",bottom:!0===c?"-=60":""},300,function(){$(this).css("position",!0===c?"relative":"static")}))}),$(".mystickyelements-position-"+a+"top ul li").each(function(){!0==$(this).hasClass(d)&&($(this).css("position","relative"),!0==$(".mystickyelements-fixed").hasClass("mystickyelements-size-large")?$(this).animate({height:"toggle",top:!0===c?"-=80":""},300,function(){$(this).css("position",!0===c?"relative":"static")}):$(this).animate({height:"toggle",top:!0===c?"-=60":""},300,function(){$(this).css("position",!0===c?"relative":"static")}))}),!0===$("span.mystickyelements-minimize").hasClass("minimize-position-"+a+"left")?!0===$("li.mystickyelements-minimize").hasClass("element-minimize")?$(".mystickyelements-minimize.minimize-position-"+a+"left").html("→"):$(".mystickyelements-minimize.minimize-position-"+a+"left").html("←"):!0===$("span.mystickyelements-minimize").hasClass("minimize-position-"+a+"bottom")?!0===$("li.mystickyelements-minimize").hasClass("element-minimize")?$(".mystickyelements-minimize.minimize-position-"+a+"bottom").html("↑"):$(".mystickyelements-minimize.minimize-position-"+a+"bottom").html("↓"):!0===$("span.mystickyelements-minimize").hasClass("minimize-position-"+a+"top")?!0===$("li.mystickyelements-minimize").hasClass("element-minimize")?$(".mystickyelements-minimize.minimize-position-"+a+"top").html("↓"):$(".mystickyelements-minimize.minimize-position-"+a+"top").html("↑"):!0===$("li.mystickyelements-minimize").hasClass("element-minimize")?$(".mystickyelements-minimize.minimize-position-"+a+"right").html("←"):$(".mystickyelements-minimize.minimize-position-"+a+"right").html("→")}),$(".mystickyelements-fixed ul li").each(function(){$(this).hasClass("mystickyelements-custom-html-main")&&$(this).hasClass("mystickyelements-custom-html-iframe")&&($(this).find(".mystickyelements-custom-html").height(),$(".mystickyelements-fixed ul").height())}),setTimeout(function(){$(".mystickyelements-entry-effect-fade.entry-effect,.mystickyelements-entry-effect-slide-in.entry-effect").css("transition","all 0s ease 0s")},1e3),$(".mystickyelements-fixed ul li").on("click",function(){$(this).hasClass("mystickyelements-custom-html-iframe")?$(".mystickyelements-fixed").toggleClass("mystickyelements-custom-html-iframe-open"):$(".mystickyelements-fixed").removeClass("mystickyelements-custom-html-iframe-open")}),$(".mystickyelements-fixed").addClass("entry-effect"),$(window).width()>1024&&300>$(".mystickyelements-position-bottom .mystickyelements-lists").width()&&$(".mystickyelements-position-bottom .mystickyelements-contact-form .element-contact-form").width("300"),h(),1==$("#phone_formate").val()){var a=document.querySelector("#contact-form-phone");window.intlTelInput(a,{dropdownContainer:document.body,formatOnDisplay:!0,hiddenInput:"full_number",initialCountry:"auto",nationalMode:!0,separateDialCode:!0,utilsScript:mystickyelement_obj.plugin_url+"intl-tel-input-src/build/js/utils.js"}),$("#contact-form-phone").addClass("tel_formate")}}),$(window).on("resize",function(){i(),h()}),jQuery(document).on("click",".mystickyelements-social-text a",function(){e=0,j($(this))}),jQuery(document).on("click",".mystickyelements-social-icon a",function(){var b=g(),a=$(this);"mobile"==b?"hover"==$(this).data("tab-setting")&&"enable"!==$(this).data("mobile-behavior")?j(a):"click"==$(this).data("tab-setting")&&"enable"!==$(this).data("flyout")?j(a):e>1&&(j(a),e=0):"enable"!==$(this).data("flyout")?j(a):e>1&&(j(a),e=0)}),jQuery("body").mouseup(function(a){0===$(a.target).closest(".mystickyelement-lists-wrap").length&&(e=0,jQuery(".mystickyelements-social-icon-li").removeClass("elements-active"))}),jQuery(document).on("click",".iti--allow-dropdown",function(){"hover"==jQuery(this).closest(".mystickyelements-contact-form").data("tab-opt")&&jQuery(this).closest("#mystickyelements-contact-form").parent().closest(".mystickyelements-on-hover").length>0&&(jQuery(this).closest(".mystickyelements-contact-form").addClass("country-code-trigger"),jQuery(this).closest(".mystickyelements-contact-form").removeClass("element-contact-active"),jQuery(this).closest(".mystickyelements-contact-form").addClass("elements-active"))}),jQuery(document).on("click","ul.iti__country-list li",function(){$(".mystickyelements-contact-form").each(function(a){"hover"==jQuery(this).data("tab-opt")&&(jQuery(this).addClass("element-contact-active"),jQuery(this).removeClass("elements-active"))})})}(jQuery); (function(factory){ if(typeof module==="object"&&module.exports) module.exports=factory(); else window.intlTelInput=factory(); })(function(undefined){ "use strict"; return function(){ var allCountries=[ [ "Afghanistan (‫افغانستان‬‎)", "af", "93" ], [ "Albania (Shqipëri)", "al", "355" ], [ "Algeria (‫الجزائر‬‎)", "dz", "213" ], [ "American Samoa", "as", "1", 5, [ "684" ] ], [ "Andorra", "ad", "376" ], [ "Angola", "ao", "244" ], [ "Anguilla", "ai", "1", 6, [ "264" ] ], [ "Antigua and Barbuda", "ag", "1", 7, [ "268" ] ], [ "Argentina", "ar", "54" ], [ "Armenia (Հայաստան)", "am", "374" ], [ "Aruba", "aw", "297" ], [ "Ascension Island", "ac", "247" ], [ "Australia", "au", "61", 0 ], [ "Austria (Österreich)", "at", "43" ], [ "Azerbaijan (Azərbaycan)", "az", "994" ], [ "Bahamas", "bs", "1", 8, [ "242" ] ], [ "Bahrain (‫البحرين‬‎)", "bh", "973" ], [ "Bangladesh (বাংলাদেশ)", "bd", "880" ], [ "Barbados", "bb", "1", 9, [ "246" ] ], [ "Belarus (Беларусь)", "by", "375" ], [ "Belgium (België)", "be", "32" ], [ "Belize", "bz", "501" ], [ "Benin (Bénin)", "bj", "229" ], [ "Bermuda", "bm", "1", 10, [ "441" ] ], [ "Bhutan (འབྲུག)", "bt", "975" ], [ "Bolivia", "bo", "591" ], [ "Bosnia and Herzegovina (Босна и Херцеговина)", "ba", "387" ], [ "Botswana", "bw", "267" ], [ "Brazil (Brasil)", "br", "55" ], [ "British Indian Ocean Territory", "io", "246" ], [ "British Virgin Islands", "vg", "1", 11, [ "284" ] ], [ "Brunei", "bn", "673" ], [ "Bulgaria (България)", "bg", "359" ], [ "Burkina Faso", "bf", "226" ], [ "Burundi (Uburundi)", "bi", "257" ], [ "Cambodia (កម្ពុជា)", "kh", "855" ], [ "Cameroon (Cameroun)", "cm", "237" ], [ "Canada", "ca", "1", 1, [ "204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905" ] ], [ "Cape Verde (Kabu Verdi)", "cv", "238" ], [ "Caribbean Netherlands", "bq", "599", 1, [ "3", "4", "7" ] ], [ "Cayman Islands", "ky", "1", 12, [ "345" ] ], [ "Central African Republic (République centrafricaine)", "cf", "236" ], [ "Chad (Tchad)", "td", "235" ], [ "Chile", "cl", "56" ], [ "China (中国)", "cn", "86" ], [ "Christmas Island", "cx", "61", 2, [ "89164" ] ], [ "Cocos (Keeling) Islands", "cc", "61", 1, [ "89162" ] ], [ "Colombia", "co", "57" ], [ "Comoros (‫جزر القمر‬‎)", "km", "269" ], [ "Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)", "cd", "243" ], [ "Congo (Republic) (Congo-Brazzaville)", "cg", "242" ], [ "Cook Islands", "ck", "682" ], [ "Costa Rica", "cr", "506" ], [ "Côte d’Ivoire", "ci", "225" ], [ "Croatia (Hrvatska)", "hr", "385" ], [ "Cuba", "cu", "53" ], [ "Curaçao", "cw", "599", 0 ], [ "Cyprus (Κύπρος)", "cy", "357" ], [ "Czech Republic (Česká republika)", "cz", "420" ], [ "Denmark (Danmark)", "dk", "45" ], [ "Djibouti", "dj", "253" ], [ "Dominica", "dm", "1", 13, [ "767" ] ], [ "Dominican Republic (República Dominicana)", "do", "1", 2, [ "809", "829", "849" ] ], [ "Ecuador", "ec", "593" ], [ "Egypt (‫مصر‬‎)", "eg", "20" ], [ "El Salvador", "sv", "503" ], [ "Equatorial Guinea (Guinea Ecuatorial)", "gq", "240" ], [ "Eritrea", "er", "291" ], [ "Estonia (Eesti)", "ee", "372" ], [ "Eswatini", "sz", "268" ], [ "Ethiopia", "et", "251" ], [ "Falkland Islands (Islas Malvinas)", "fk", "500" ], [ "Faroe Islands (Føroyar)", "fo", "298" ], [ "Fiji", "fj", "679" ], [ "Finland (Suomi)", "fi", "358", 0 ], [ "France", "fr", "33" ], [ "French Guiana (Guyane française)", "gf", "594" ], [ "French Polynesia (Polynésie française)", "pf", "689" ], [ "Gabon", "ga", "241" ], [ "Gambia", "gm", "220" ], [ "Georgia (საქართველო)", "ge", "995" ], [ "Germany (Deutschland)", "de", "49" ], [ "Ghana (Gaana)", "gh", "233" ], [ "Gibraltar", "gi", "350" ], [ "Greece (Ελλάδα)", "gr", "30" ], [ "Greenland (Kalaallit Nunaat)", "gl", "299" ], [ "Grenada", "gd", "1", 14, [ "473" ] ], [ "Guadeloupe", "gp", "590", 0 ], [ "Guam", "gu", "1", 15, [ "671" ] ], [ "Guatemala", "gt", "502" ], [ "Guernsey", "gg", "44", 1, [ "1481", "7781", "7839", "7911" ] ], [ "Guinea (Guinée)", "gn", "224" ], [ "Guinea-Bissau (Guiné Bissau)", "gw", "245" ], [ "Guyana", "gy", "592" ], [ "Haiti", "ht", "509" ], [ "Honduras", "hn", "504" ], [ "Hong Kong (香港)", "hk", "852" ], [ "Hungary (Magyarország)", "hu", "36" ], [ "Iceland (Ísland)", "is", "354" ], [ "India (भारत)", "in", "91" ], [ "Indonesia", "id", "62" ], [ "Iran (‫ایران‬‎)", "ir", "98" ], [ "Iraq (‫العراق‬‎)", "iq", "964" ], [ "Ireland", "ie", "353" ], [ "Isle of Man", "im", "44", 2, [ "1624", "74576", "7524", "7924", "7624" ] ], [ "Israel (‫ישראל‬‎)", "il", "972" ], [ "Italy (Italia)", "it", "39", 0 ], [ "Jamaica", "jm", "1", 4, [ "876", "658" ] ], [ "Japan (日本)", "jp", "81" ], [ "Jersey", "je", "44", 3, [ "1534", "7509", "7700", "7797", "7829", "7937" ] ], [ "Jordan (‫الأردن‬‎)", "jo", "962" ], [ "Kazakhstan (Казахстан)", "kz", "7", 1, [ "33", "7" ] ], [ "Kenya", "ke", "254" ], [ "Kiribati", "ki", "686" ], [ "Kosovo", "xk", "383" ], [ "Kuwait (‫الكويت‬‎)", "kw", "965" ], [ "Kyrgyzstan (Кыргызстан)", "kg", "996" ], [ "Laos (ລາວ)", "la", "856" ], [ "Latvia (Latvija)", "lv", "371" ], [ "Lebanon (‫لبنان‬‎)", "lb", "961" ], [ "Lesotho", "ls", "266" ], [ "Liberia", "lr", "231" ], [ "Libya (‫ليبيا‬‎)", "ly", "218" ], [ "Liechtenstein", "li", "423" ], [ "Lithuania (Lietuva)", "lt", "370" ], [ "Luxembourg", "lu", "352" ], [ "Macau (澳門)", "mo", "853" ], [ "North Macedonia (Македонија)", "mk", "389" ], [ "Madagascar (Madagasikara)", "mg", "261" ], [ "Malawi", "mw", "265" ], [ "Malaysia", "my", "60" ], [ "Maldives", "mv", "960" ], [ "Mali", "ml", "223" ], [ "Malta", "mt", "356" ], [ "Marshall Islands", "mh", "692" ], [ "Martinique", "mq", "596" ], [ "Mauritania (‫موريتانيا‬‎)", "mr", "222" ], [ "Mauritius (Moris)", "mu", "230" ], [ "Mayotte", "yt", "262", 1, [ "269", "639" ] ], [ "Mexico (México)", "mx", "52" ], [ "Micronesia", "fm", "691" ], [ "Moldova (Republica Moldova)", "md", "373" ], [ "Monaco", "mc", "377" ], [ "Mongolia (Монгол)", "mn", "976" ], [ "Montenegro (Crna Gora)", "me", "382" ], [ "Montserrat", "ms", "1", 16, [ "664" ] ], [ "Morocco (‫المغرب‬‎)", "ma", "212", 0 ], [ "Mozambique (Moçambique)", "mz", "258" ], [ "Myanmar (Burma) (မြန်မာ)", "mm", "95" ], [ "Namibia (Namibië)", "na", "264" ], [ "Nauru", "nr", "674" ], [ "Nepal (नेपाल)", "np", "977" ], [ "Netherlands (Nederland)", "nl", "31" ], [ "New Caledonia (Nouvelle-Calédonie)", "nc", "687" ], [ "New Zealand", "nz", "64" ], [ "Nicaragua", "ni", "505" ], [ "Niger (Nijar)", "ne", "227" ], [ "Nigeria", "ng", "234" ], [ "Niue", "nu", "683" ], [ "Norfolk Island", "nf", "672" ], [ "North Korea (조선 민주주의 인민 공화국)", "kp", "850" ], [ "Northern Mariana Islands", "mp", "1", 17, [ "670" ] ], [ "Norway (Norge)", "no", "47", 0 ], [ "Oman (‫عُمان‬‎)", "om", "968" ], [ "Pakistan (‫پاکستان‬‎)", "pk", "92" ], [ "Palau", "pw", "680" ], [ "Palestine (‫فلسطين‬‎)", "ps", "970" ], [ "Panama (Panamá)", "pa", "507" ], [ "Papua New Guinea", "pg", "675" ], [ "Paraguay", "py", "595" ], [ "Peru (Perú)", "pe", "51" ], [ "Philippines", "ph", "63" ], [ "Poland (Polska)", "pl", "48" ], [ "Portugal", "pt", "351" ], [ "Puerto Rico", "pr", "1", 3, [ "787", "939" ] ], [ "Qatar (‫قطر‬‎)", "qa", "974" ], [ "Réunion (La Réunion)", "re", "262", 0 ], [ "Romania (România)", "ro", "40" ], [ "Russia (Россия)", "ru", "7", 0 ], [ "Rwanda", "rw", "250" ], [ "Saint Barthélemy", "bl", "590", 1 ], [ "Saint Helena", "sh", "290" ], [ "Saint Kitts and Nevis", "kn", "1", 18, [ "869" ] ], [ "Saint Lucia", "lc", "1", 19, [ "758" ] ], [ "Saint Martin (Saint-Martin (partie française))", "mf", "590", 2 ], [ "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)", "pm", "508" ], [ "Saint Vincent and the Grenadines", "vc", "1", 20, [ "784" ] ], [ "Samoa", "ws", "685" ], [ "San Marino", "sm", "378" ], [ "São Tomé and Príncipe (São Tomé e Príncipe)", "st", "239" ], [ "Saudi Arabia (‫المملكة العربية السعودية‬‎)", "sa", "966" ], [ "Senegal (Sénégal)", "sn", "221" ], [ "Serbia (Србија)", "rs", "381" ], [ "Seychelles", "sc", "248" ], [ "Sierra Leone", "sl", "232" ], [ "Singapore", "sg", "65" ], [ "Sint Maarten", "sx", "1", 21, [ "721" ] ], [ "Slovakia (Slovensko)", "sk", "421" ], [ "Slovenia (Slovenija)", "si", "386" ], [ "Solomon Islands", "sb", "677" ], [ "Somalia (Soomaaliya)", "so", "252" ], [ "South Africa", "za", "27" ], [ "South Korea (대한민국)", "kr", "82" ], [ "South Sudan (‫جنوب السودان‬‎)", "ss", "211" ], [ "Spain (España)", "es", "34" ], [ "Sri Lanka (ශ්‍රී ලංකාව)", "lk", "94" ], [ "Sudan (‫السودان‬‎)", "sd", "249" ], [ "Suriname", "sr", "597" ], [ "Svalbard and Jan Mayen", "sj", "47", 1, [ "79" ] ], [ "Sweden (Sverige)", "se", "46" ], [ "Switzerland (Schweiz)", "ch", "41" ], [ "Syria (‫سوريا‬‎)", "sy", "963" ], [ "Taiwan (台灣)", "tw", "886" ], [ "Tajikistan", "tj", "992" ], [ "Tanzania", "tz", "255" ], [ "Thailand (ไทย)", "th", "66" ], [ "Timor-Leste", "tl", "670" ], [ "Togo", "tg", "228" ], [ "Tokelau", "tk", "690" ], [ "Tonga", "to", "676" ], [ "Trinidad and Tobago", "tt", "1", 22, [ "868" ] ], [ "Tunisia (‫تونس‬‎)", "tn", "216" ], [ "Turkey (Türkiye)", "tr", "90" ], [ "Turkmenistan", "tm", "993" ], [ "Turks and Caicos Islands", "tc", "1", 23, [ "649" ] ], [ "Tuvalu", "tv", "688" ], [ "U.S. Virgin Islands", "vi", "1", 24, [ "340" ] ], [ "Uganda", "ug", "256" ], [ "Ukraine (Україна)", "ua", "380" ], [ "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)", "ae", "971" ], [ "United Kingdom", "gb", "44", 0 ], [ "United States", "us", "1", 0 ], [ "Uruguay", "uy", "598" ], [ "Uzbekistan (Oʻzbekiston)", "uz", "998" ], [ "Vanuatu", "vu", "678" ], [ "Vatican City (Città del Vaticano)", "va", "39", 1, [ "06698" ] ], [ "Venezuela", "ve", "58" ], [ "Vietnam (Việt Nam)", "vn", "84" ], [ "Wallis and Futuna (Wallis-et-Futuna)", "wf", "681" ], [ "Western Sahara (‫الصحراء الغربية‬‎)", "eh", "212", 1, [ "5288", "5289" ] ], [ "Yemen (‫اليمن‬‎)", "ye", "967" ], [ "Zambia", "zm", "260" ], [ "Zimbabwe", "zw", "263" ], [ "Åland Islands", "ax", "358", 1, [ "18" ] ] ]; for (var i=0; i < allCountries.length; i++){ var c=allCountries[i]; allCountries[i]={ name: c[0], iso2: c[1], dialCode: c[2], priority: c[3]||0, areaCodes: c[4]||null };} "use strict"; function _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError("Cannot call a class as a function"); }} function _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if("value" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} function _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; } var intlTelInputGlobals={ getInstance: function getInstance(input){ var id=input.getAttribute("data-intl-tel-input-id"); return window.intlTelInputGlobals.instances[id]; }, instances: {}, documentReady: function documentReady(){ return document.readyState==="complete"; }}; if(typeof window==="object") window.intlTelInputGlobals=intlTelInputGlobals; var id=0; var defaults={ allowDropdown: true, autoHideDialCode: true, autoPlaceholder: "polite", customContainer: "", customPlaceholder: null, dropdownContainer: null, excludeCountries: [], formatOnDisplay: true, geoIpLookup: null, hiddenInput: "", initialCountry: "", localizedCountries: null, nationalMode: true, onlyCountries: [], placeholderNumberType: "MOBILE", preferredCountries: [ "us", "gb" ], separateDialCode: false, utilsScript: "" }; var regionlessNanpNumbers=[ "800", "822", "833", "844", "855", "866", "877", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889" ]; var forEachProp=function forEachProp(obj, callback){ var keys=Object.keys(obj); for (var i=0; i < keys.length; i++){ callback(keys[i], obj[keys[i]]); }}; var forEachInstance=function forEachInstance(method){ forEachProp(window.intlTelInputGlobals.instances, function(key){ window.intlTelInputGlobals.instances[key][method](); }); }; var Iti= function(){ function Iti(input, options){ var _this=this; _classCallCheck(this, Iti); this.id=id++; this.telInput=input; this.activeItem=null; this.highlightedItem=null; var customOptions=options||{}; this.options={}; forEachProp(defaults, function(key, value){ _this.options[key]=customOptions.hasOwnProperty(key) ? customOptions[key]:value; }); this.hadInitialPlaceholder=Boolean(input.getAttribute("placeholder")); } _createClass(Iti, [ { key: "_init", value: function _init(){ var _this2=this; if(this.options.nationalMode) this.options.autoHideDialCode=false; if(this.options.separateDialCode){ this.options.autoHideDialCode=this.options.nationalMode=false; } this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); if(this.isMobile){ document.body.classList.add("iti-mobile"); if(!this.options.dropdownContainer) this.options.dropdownContainer=document.body; } if(typeof Promise!=="undefined"){ var autoCountryPromise=new Promise(function(resolve, reject){ _this2.resolveAutoCountryPromise=resolve; _this2.rejectAutoCountryPromise=reject; }); var utilsScriptPromise=new Promise(function(resolve, reject){ _this2.resolveUtilsScriptPromise=resolve; _this2.rejectUtilsScriptPromise=reject; }); this.promise=Promise.all([ autoCountryPromise, utilsScriptPromise ]); }else{ this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){}; this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};} this.selectedCountryData={}; this._processCountryData(); this._generateMarkup(); this._setInitialState(); this._initListeners(); this._initRequests(); }}, { key: "_processCountryData", value: function _processCountryData(){ this._processAllCountries(); this._processCountryCodes(); this._processPreferredCountries(); if(this.options.localizedCountries) this._translateCountriesByLocale(); if(this.options.onlyCountries.length||this.options.localizedCountries){ this.countries.sort(this._countryNameSort); }} }, { key: "_addCountryCode", value: function _addCountryCode(iso2, countryCode, priority){ if(countryCode.length > this.countryCodeMaxLen){ this.countryCodeMaxLen=countryCode.length; } if(!this.countryCodes.hasOwnProperty(countryCode)){ this.countryCodes[countryCode]=[]; } for (var i=0; i < this.countryCodes[countryCode].length; i++){ if(this.countryCodes[countryCode][i]===iso2) return; } var index=priority!==undefined ? priority:this.countryCodes[countryCode].length; this.countryCodes[countryCode][index]=iso2; }}, { key: "_processAllCountries", value: function _processAllCountries(){ if(this.options.onlyCountries.length){ var lowerCaseOnlyCountries=this.options.onlyCountries.map(function(country){ return country.toLowerCase(); }); this.countries=allCountries.filter(function(country){ return lowerCaseOnlyCountries.indexOf(country.iso2) > -1; }); }else if(this.options.excludeCountries.length){ var lowerCaseExcludeCountries=this.options.excludeCountries.map(function(country){ return country.toLowerCase(); }); this.countries=allCountries.filter(function(country){ return lowerCaseExcludeCountries.indexOf(country.iso2)===-1; }); }else{ this.countries=allCountries; }} }, { key: "_translateCountriesByLocale", value: function _translateCountriesByLocale(){ for (var i=0; i < this.countries.length; i++){ var iso=this.countries[i].iso2.toLowerCase(); if(this.options.localizedCountries.hasOwnProperty(iso)){ this.countries[i].name=this.options.localizedCountries[iso]; }} }}, { key: "_countryNameSort", value: function _countryNameSort(a, b){ return a.name.localeCompare(b.name); }}, { key: "_processCountryCodes", value: function _processCountryCodes(){ this.countryCodeMaxLen=0; this.dialCodes={}; this.countryCodes={}; for (var i=0; i < this.countries.length; i++){ var c=this.countries[i]; if(!this.dialCodes[c.dialCode]) this.dialCodes[c.dialCode]=true; this._addCountryCode(c.iso2, c.dialCode, c.priority); } for (var _i=0; _i < this.countries.length; _i++){ var _c=this.countries[_i]; if(_c.areaCodes){ var rootCountryCode=this.countryCodes[_c.dialCode][0]; for (var j=0; j < _c.areaCodes.length; j++){ var areaCode=_c.areaCodes[j]; for (var k=1; k < areaCode.length; k++){ var partialDialCode=_c.dialCode + areaCode.substr(0, k); this._addCountryCode(rootCountryCode, partialDialCode); this._addCountryCode(_c.iso2, partialDialCode); } this._addCountryCode(_c.iso2, _c.dialCode + areaCode); }} }} }, { key: "_processPreferredCountries", value: function _processPreferredCountries(){ this.preferredCountries=[]; for (var i=0; i < this.options.preferredCountries.length; i++){ var countryCode=this.options.preferredCountries[i].toLowerCase(); var countryData=this._getCountryData(countryCode, false, true); if(countryData) this.preferredCountries.push(countryData); }} }, { key: "_createEl", value: function _createEl(name, attrs, container){ var el=document.createElement(name); if(attrs) forEachProp(attrs, function(key, value){ return el.setAttribute(key, value); }); if(container) container.appendChild(el); return el; }}, { key: "_generateMarkup", value: function _generateMarkup(){ if(!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))){ this.telInput.setAttribute("autocomplete", "off"); } var parentClass="iti"; if(this.options.allowDropdown) parentClass +=" iti--allow-dropdown"; if(this.options.separateDialCode) parentClass +=" iti--separate-dial-code"; if(this.options.customContainer){ parentClass +=" "; parentClass +=this.options.customContainer; } var wrapper=this._createEl("div", { "class": parentClass }); this.telInput.parentNode.insertBefore(wrapper, this.telInput); this.flagsContainer=this._createEl("div", { "class": "iti__flag-container" }, wrapper); wrapper.appendChild(this.telInput); this.selectedFlag=this._createEl("div", { "class": "iti__selected-flag", role: "combobox", "aria-controls": "iti-".concat(this.id, "__country-listbox"), "aria-owns": "iti-".concat(this.id, "__country-listbox"), "aria-expanded": "false" }, this.flagsContainer); this.selectedFlagInner=this._createEl("div", { "class": "iti__flag" }, this.selectedFlag); if(this.options.separateDialCode){ this.selectedDialCode=this._createEl("div", { "class": "iti__selected-dial-code" }, this.selectedFlag); } if(this.options.allowDropdown){ this.selectedFlag.setAttribute("tabindex", "0"); this.dropdownArrow=this._createEl("div", { "class": "iti__arrow" }, this.selectedFlag); this.countryList=this._createEl("ul", { "class": "iti__country-list iti__hide", id: "iti-".concat(this.id, "__country-listbox"), role: "listbox", "aria-label": "List of countries" }); if(this.preferredCountries.length){ this._appendListItems(this.preferredCountries, "iti__preferred", true); this._createEl("li", { "class": "iti__divider", role: "separator", "aria-disabled": "true" }, this.countryList); } this._appendListItems(this.countries, "iti__standard"); if(this.options.dropdownContainer){ this.dropdown=this._createEl("div", { "class": "iti iti--container" }); this.dropdown.appendChild(this.countryList); }else{ this.flagsContainer.appendChild(this.countryList); }} if(this.options.hiddenInput){ var hiddenInputName=this.options.hiddenInput; var name=this.telInput.getAttribute("name"); if(name){ var i=name.lastIndexOf("["); if(i!==-1) hiddenInputName="".concat(name.substr(0, i), "[").concat(hiddenInputName, "]"); } this.hiddenInput=this._createEl("input", { type: "hidden", name: hiddenInputName }); wrapper.appendChild(this.hiddenInput); }} }, { key: "_appendListItems", value: function _appendListItems(countries, className, preferred){ var tmp=""; for (var i=0; i < countries.length; i++){ var c=countries[i]; var idSuffix=preferred ? "-preferred":""; tmp +="
  • "); tmp +="
    "); tmp +="".concat(c.name, ""); tmp +="+".concat(c.dialCode, ""); tmp +="
  • "; } this.countryList.insertAdjacentHTML("beforeend", tmp); }}, { key: "_setInitialState", value: function _setInitialState(){ var attributeValue=this.telInput.getAttribute("value"); var inputValue=this.telInput.value; var useAttribute=attributeValue&&attributeValue.charAt(0)==="+"&&(!inputValue||inputValue.charAt(0)!=="+"); var val=useAttribute ? attributeValue:inputValue; var dialCode=this._getDialCode(val); var isRegionlessNanp=this._isRegionlessNanp(val); var _this$options=this.options, initialCountry=_this$options.initialCountry, nationalMode=_this$options.nationalMode, autoHideDialCode=_this$options.autoHideDialCode, separateDialCode=_this$options.separateDialCode; if(dialCode&&!isRegionlessNanp){ this._updateFlagFromNumber(val); }else if(initialCountry!=="auto"){ if(initialCountry){ this._setFlag(initialCountry.toLowerCase()); }else{ if(dialCode&&isRegionlessNanp){ this._setFlag("us"); }else{ this.defaultCountry=this.preferredCountries.length ? this.preferredCountries[0].iso2:this.countries[0].iso2; if(!val){ this._setFlag(this.defaultCountry); }} } if(!val&&!nationalMode&&!autoHideDialCode&&!separateDialCode){ this.telInput.value="+".concat(this.selectedCountryData.dialCode); }} if(val) this._updateValFromNumber(val); }}, { key: "_initListeners", value: function _initListeners(){ this._initKeyListeners(); if(this.options.autoHideDialCode) this._initBlurListeners(); if(this.options.allowDropdown) this._initDropdownListeners(); if(this.hiddenInput) this._initHiddenInputListener(); }}, { key: "_initHiddenInputListener", value: function _initHiddenInputListener(){ var _this3=this; this._handleHiddenInputSubmit=function(){ _this3.hiddenInput.value=_this3.getNumber(); }; if(this.telInput.form) this.telInput.form.addEventListener("submit", this._handleHiddenInputSubmit); }}, { key: "_getClosestLabel", value: function _getClosestLabel(){ var el=this.telInput; while (el&&el.tagName!=="LABEL"){ el=el.parentNode; } return el; }}, { key: "_initDropdownListeners", value: function _initDropdownListeners(){ var _this4=this; this._handleLabelClick=function(e){ if(_this4.countryList.classList.contains("iti__hide")) _this4.telInput.focus(); else e.preventDefault(); }; var label=this._getClosestLabel(); if(label) label.addEventListener("click", this._handleLabelClick); this._handleClickSelectedFlag=function(){ if(_this4.countryList.classList.contains("iti__hide")&&!_this4.telInput.disabled&&!_this4.telInput.readOnly){ _this4._showDropdown(); }}; this.selectedFlag.addEventListener("click", this._handleClickSelectedFlag); this._handleFlagsContainerKeydown=function(e){ var isDropdownHidden=_this4.countryList.classList.contains("iti__hide"); if(isDropdownHidden&&[ "ArrowUp", "Up", "ArrowDown", "Down", " ", "Enter" ].indexOf(e.key)!==-1){ e.preventDefault(); e.stopPropagation(); _this4._showDropdown(); } if(e.key==="Tab") _this4._closeDropdown(); }; this.flagsContainer.addEventListener("keydown", this._handleFlagsContainerKeydown); }}, { key: "_initRequests", value: function _initRequests(){ var _this5=this; if(this.options.utilsScript&&!window.intlTelInputUtils){ if(window.intlTelInputGlobals.documentReady()){ window.intlTelInputGlobals.loadUtils(this.options.utilsScript); }else{ window.addEventListener("load", function(){ window.intlTelInputGlobals.loadUtils(_this5.options.utilsScript); }); }} else this.resolveUtilsScriptPromise(); if(this.options.initialCountry==="auto") this._loadAutoCountry(); else this.resolveAutoCountryPromise(); }}, { key: "_loadAutoCountry", value: function _loadAutoCountry(){ if(window.intlTelInputGlobals.autoCountry){ this.handleAutoCountry(); }else if(!window.intlTelInputGlobals.startedLoadingAutoCountry){ window.intlTelInputGlobals.startedLoadingAutoCountry=true; if(typeof this.options.geoIpLookup==="function"){ this.options.geoIpLookup(function(countryCode){ window.intlTelInputGlobals.autoCountry=countryCode.toLowerCase(); setTimeout(function(){ return forEachInstance("handleAutoCountry"); }); }, function(){ return forEachInstance("rejectAutoCountryPromise"); }); }} }}, { key: "_initKeyListeners", value: function _initKeyListeners(){ var _this6=this; this._handleKeyupEvent=function(){ if(_this6._updateFlagFromNumber(_this6.telInput.value)){ _this6._triggerCountryChange(); }}; this.telInput.addEventListener("keyup", this._handleKeyupEvent); this._handleClipboardEvent=function(){ setTimeout(_this6._handleKeyupEvent); }; this.telInput.addEventListener("cut", this._handleClipboardEvent); this.telInput.addEventListener("paste", this._handleClipboardEvent); }}, { key: "_cap", value: function _cap(number){ var max=this.telInput.getAttribute("maxlength"); return max&&number.length > max ? number.substr(0, max):number; }}, { key: "_initBlurListeners", value: function _initBlurListeners(){ var _this7=this; this._handleSubmitOrBlurEvent=function(){ _this7._removeEmptyDialCode(); }; if(this.telInput.form) this.telInput.form.addEventListener("submit", this._handleSubmitOrBlurEvent); this.telInput.addEventListener("blur", this._handleSubmitOrBlurEvent); }}, { key: "_removeEmptyDialCode", value: function _removeEmptyDialCode(){ if(this.telInput.value.charAt(0)==="+"){ var numeric=this._getNumeric(this.telInput.value); if(!numeric||this.selectedCountryData.dialCode===numeric){ this.telInput.value=""; }} }}, { key: "_getNumeric", value: function _getNumeric(s){ return s.replace(/\D/g, ""); }}, { key: "_trigger", value: function _trigger(name){ var e=document.createEvent("Event"); e.initEvent(name, true, true); this.telInput.dispatchEvent(e); }}, { key: "_showDropdown", value: function _showDropdown(){ this.countryList.classList.remove("iti__hide"); this.selectedFlag.setAttribute("aria-expanded", "true"); this._setDropdownPosition(); if(this.activeItem){ this._highlightListItem(this.activeItem, false); this._scrollTo(this.activeItem, true); } this._bindDropdownListeners(); this.dropdownArrow.classList.add("iti__arrow--up"); this._trigger("open:countrydropdown"); }}, { key: "_toggleClass", value: function _toggleClass(el, className, shouldHaveClass){ if(shouldHaveClass&&!el.classList.contains(className)) el.classList.add(className); else if(!shouldHaveClass&&el.classList.contains(className)) el.classList.remove(className); }}, { key: "_setDropdownPosition", value: function _setDropdownPosition(){ var _this8=this; if(this.options.dropdownContainer){ this.options.dropdownContainer.appendChild(this.dropdown); } if(!this.isMobile){ var pos=this.telInput.getBoundingClientRect(); var windowTop=window.pageYOffset||document.documentElement.scrollTop; var inputTop=pos.top + windowTop; var dropdownHeight=this.countryList.offsetHeight; var dropdownFitsBelow=inputTop + this.telInput.offsetHeight + dropdownHeight < windowTop + window.innerHeight; var dropdownFitsAbove=inputTop - dropdownHeight > windowTop; this._toggleClass(this.countryList, "iti__country-list--dropup", !dropdownFitsBelow&&dropdownFitsAbove); if(this.options.dropdownContainer){ var extraTop = !dropdownFitsBelow&&dropdownFitsAbove ? 0:this.telInput.offsetHeight; this.dropdown.style.top="".concat(inputTop + extraTop, "px"); this.dropdown.style.left="".concat(pos.left + document.body.scrollLeft, "px"); this._handleWindowScroll=function(){ return _this8._closeDropdown(); }; window.addEventListener("scroll", this._handleWindowScroll); }} }}, { key: "_getClosestListItem", value: function _getClosestListItem(target){ var el=target; while (el&&el!==this.countryList&&!el.classList.contains("iti__country")){ el=el.parentNode; } return el===this.countryList ? null:el; }}, { key: "_bindDropdownListeners", value: function _bindDropdownListeners(){ var _this9=this; this._handleMouseoverCountryList=function(e){ var listItem=_this9._getClosestListItem(e.target); if(listItem) _this9._highlightListItem(listItem, false); }; this.countryList.addEventListener("mouseover", this._handleMouseoverCountryList); this._handleClickCountryList=function(e){ var listItem=_this9._getClosestListItem(e.target); if(listItem) _this9._selectListItem(listItem); }; this.countryList.addEventListener("click", this._handleClickCountryList); var isOpening=true; this._handleClickOffToClose=function(){ if(!isOpening) _this9._closeDropdown(); isOpening=false; }; document.documentElement.addEventListener("click", this._handleClickOffToClose); var query=""; var queryTimer=null; this._handleKeydownOnDropdown=function(e){ e.preventDefault(); if(e.key==="ArrowUp"||e.key==="Up"||e.key==="ArrowDown"||e.key==="Down") _this9._handleUpDownKey(e.key); else if(e.key==="Enter") _this9._handleEnterKey(); else if(e.key==="Escape") _this9._closeDropdown(); else if(/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)){ if(queryTimer) clearTimeout(queryTimer); query +=e.key.toLowerCase(); _this9._searchForCountry(query); queryTimer=setTimeout(function(){ query=""; }, 1e3); }}; document.addEventListener("keydown", this._handleKeydownOnDropdown); }}, { key: "_handleUpDownKey", value: function _handleUpDownKey(key){ var next=key==="ArrowUp"||key==="Up" ? this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling; if(next){ if(next.classList.contains("iti__divider")){ next=key==="ArrowUp"||key==="Up" ? next.previousElementSibling:next.nextElementSibling; } this._highlightListItem(next, true); }} }, { key: "_handleEnterKey", value: function _handleEnterKey(){ if(this.highlightedItem) this._selectListItem(this.highlightedItem); }}, { key: "_searchForCountry", value: function _searchForCountry(query){ for (var i=0; i < this.countries.length; i++){ if(this._startsWith(this.countries[i].name, query)){ var listItem=this.countryList.querySelector("#iti-".concat(this.id, "__item-").concat(this.countries[i].iso2)); this._highlightListItem(listItem, false); this._scrollTo(listItem, true); break; }} }}, { key: "_startsWith", value: function _startsWith(a, b){ return a.substr(0, b.length).toLowerCase()===b; }}, { key: "_updateValFromNumber", value: function _updateValFromNumber(originalNumber){ var number=originalNumber; if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){ var useNational = !this.options.separateDialCode&&(this.options.nationalMode||number.charAt(0)!=="+"); var _intlTelInputUtils$nu=intlTelInputUtils.numberFormat, NATIONAL=_intlTelInputUtils$nu.NATIONAL, INTERNATIONAL=_intlTelInputUtils$nu.INTERNATIONAL; var format=useNational ? NATIONAL:INTERNATIONAL; number=intlTelInputUtils.formatNumber(number, this.selectedCountryData.iso2, format); } number=this._beforeSetNumber(number); this.telInput.value=number; }}, { key: "_updateFlagFromNumber", value: function _updateFlagFromNumber(originalNumber){ var number=originalNumber; var selectedDialCode=this.selectedCountryData.dialCode; var isNanp=selectedDialCode==="1"; if(number&&this.options.nationalMode&&isNanp&&number.charAt(0)!=="+"){ if(number.charAt(0)!=="1") number="1".concat(number); number="+".concat(number); } if(this.options.separateDialCode&&selectedDialCode&&number.charAt(0)!=="+"){ number="+".concat(selectedDialCode).concat(number); } var dialCode=this._getDialCode(number, true); var numeric=this._getNumeric(number); var countryCode=null; if(dialCode){ var countryCodes=this.countryCodes[this._getNumeric(dialCode)]; var alreadySelected=countryCodes.indexOf(this.selectedCountryData.iso2)!==-1&&numeric.length <=dialCode.length - 1; var isRegionlessNanpNumber=selectedDialCode==="1"&&this._isRegionlessNanp(numeric); if(!isRegionlessNanpNumber&&!alreadySelected){ for (var j=0; j < countryCodes.length; j++){ if(countryCodes[j]){ countryCode=countryCodes[j]; break; }} }}else if(number.charAt(0)==="+"&&numeric.length){ countryCode=""; }else if(!number||number==="+"){ countryCode=this.defaultCountry; } if(countryCode!==null){ return this._setFlag(countryCode); } return false; }}, { key: "_isRegionlessNanp", value: function _isRegionlessNanp(number){ var numeric=this._getNumeric(number); if(numeric.charAt(0)==="1"){ var areaCode=numeric.substr(1, 3); return regionlessNanpNumbers.indexOf(areaCode)!==-1; } return false; }}, { key: "_highlightListItem", value: function _highlightListItem(listItem, shouldFocus){ var prevItem=this.highlightedItem; if(prevItem) prevItem.classList.remove("iti__highlight"); this.highlightedItem=listItem; this.highlightedItem.classList.add("iti__highlight"); if(shouldFocus) this.highlightedItem.focus(); }}, { key: "_getCountryData", value: function _getCountryData(countryCode, ignoreOnlyCountriesOption, allowFail){ var countryList=ignoreOnlyCountriesOption ? allCountries:this.countries; for (var i=0; i < countryList.length; i++){ if(countryList[i].iso2===countryCode){ return countryList[i]; }} if(allowFail){ return null; } throw new Error("No country data for '".concat(countryCode, "'")); }}, { key: "_setFlag", value: function _setFlag(countryCode){ var prevCountry=this.selectedCountryData.iso2 ? this.selectedCountryData:{}; this.selectedCountryData=countryCode ? this._getCountryData(countryCode, false, false):{}; if(this.selectedCountryData.iso2){ this.defaultCountry=this.selectedCountryData.iso2; } this.selectedFlagInner.setAttribute("class", "iti__flag iti__".concat(countryCode)); var title=countryCode ? "".concat(this.selectedCountryData.name, ": +").concat(this.selectedCountryData.dialCode):"Unknown"; this.selectedFlag.setAttribute("title", title); if(this.options.separateDialCode){ var dialCode=this.selectedCountryData.dialCode ? "+".concat(this.selectedCountryData.dialCode):""; this.selectedDialCode.innerHTML=dialCode; var selectedFlagWidth=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth(); this.telInput.style.paddingLeft="".concat(selectedFlagWidth + 6, "px"); } this._updatePlaceholder(); if(this.options.allowDropdown){ var prevItem=this.activeItem; if(prevItem){ prevItem.classList.remove("iti__active"); prevItem.setAttribute("aria-selected", "false"); } if(countryCode){ var nextItem=this.countryList.querySelector("#iti-".concat(this.id, "__item-").concat(countryCode, "-preferred"))||this.countryList.querySelector("#iti-".concat(this.id, "__item-").concat(countryCode)); nextItem.setAttribute("aria-selected", "true"); nextItem.classList.add("iti__active"); this.activeItem=nextItem; this.selectedFlag.setAttribute("aria-activedescendant", nextItem.getAttribute("id")); }} return prevCountry.iso2!==countryCode; }}, { key: "_getHiddenSelectedFlagWidth", value: function _getHiddenSelectedFlagWidth(){ var containerClone=this.telInput.parentNode.cloneNode(); containerClone.style.visibility="hidden"; document.body.appendChild(containerClone); var flagsContainerClone=this.flagsContainer.cloneNode(); containerClone.appendChild(flagsContainerClone); var selectedFlagClone=this.selectedFlag.cloneNode(true); flagsContainerClone.appendChild(selectedFlagClone); var width=selectedFlagClone.offsetWidth; containerClone.parentNode.removeChild(containerClone); return width; }}, { key: "_updatePlaceholder", value: function _updatePlaceholder(){ var shouldSetPlaceholder=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite"; if(window.intlTelInputUtils&&shouldSetPlaceholder){ var numberType=intlTelInputUtils.numberType[this.options.placeholderNumberType]; var placeholder=this.selectedCountryData.iso2 ? intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2, this.options.nationalMode, numberType):""; placeholder=this._beforeSetNumber(placeholder); if(typeof this.options.customPlaceholder==="function"){ placeholder=this.options.customPlaceholder(placeholder, this.selectedCountryData); } this.telInput.setAttribute("placeholder", placeholder); }} }, { key: "_selectListItem", value: function _selectListItem(listItem){ var flagChanged=this._setFlag(listItem.getAttribute("data-country-code")); this._closeDropdown(); this._updateDialCode(listItem.getAttribute("data-dial-code"), true); this.telInput.focus(); var len=this.telInput.value.length; this.telInput.setSelectionRange(len, len); if(flagChanged){ this._triggerCountryChange(); }} }, { key: "_closeDropdown", value: function _closeDropdown(){ this.countryList.classList.add("iti__hide"); this.selectedFlag.setAttribute("aria-expanded", "false"); this.dropdownArrow.classList.remove("iti__arrow--up"); document.removeEventListener("keydown", this._handleKeydownOnDropdown); document.documentElement.removeEventListener("click", this._handleClickOffToClose); this.countryList.removeEventListener("mouseover", this._handleMouseoverCountryList); this.countryList.removeEventListener("click", this._handleClickCountryList); if(this.options.dropdownContainer){ if(!this.isMobile) window.removeEventListener("scroll", this._handleWindowScroll); if(this.dropdown.parentNode) this.dropdown.parentNode.removeChild(this.dropdown); } this._trigger("close:countrydropdown"); }}, { key: "_scrollTo", value: function _scrollTo(element, middle){ var container=this.countryList; var windowTop=window.pageYOffset||document.documentElement.scrollTop; var containerHeight=container.offsetHeight; var containerTop=container.getBoundingClientRect().top + windowTop; var containerBottom=containerTop + containerHeight; var elementHeight=element.offsetHeight; var elementTop=element.getBoundingClientRect().top + windowTop; var elementBottom=elementTop + elementHeight; var newScrollTop=elementTop - containerTop + container.scrollTop; var middleOffset=containerHeight / 2 - elementHeight / 2; if(elementTop < containerTop){ if(middle) newScrollTop -=middleOffset; container.scrollTop=newScrollTop; }else if(elementBottom > containerBottom){ if(middle) newScrollTop +=middleOffset; var heightDifference=containerHeight - elementHeight; container.scrollTop=newScrollTop - heightDifference; }} }, { key: "_updateDialCode", value: function _updateDialCode(newDialCodeBare, hasSelectedListItem){ var inputVal=this.telInput.value; var newDialCode="+".concat(newDialCodeBare); var newNumber; if(inputVal.charAt(0)==="+"){ var prevDialCode=this._getDialCode(inputVal); if(prevDialCode){ newNumber=inputVal.replace(prevDialCode, newDialCode); }else{ newNumber=newDialCode; }}else if(this.options.nationalMode||this.options.separateDialCode){ return; }else{ if(inputVal){ newNumber=newDialCode + inputVal; }else if(hasSelectedListItem||!this.options.autoHideDialCode){ newNumber=newDialCode; }else{ return; }} this.telInput.value=newNumber; }}, { key: "_getDialCode", value: function _getDialCode(number, includeAreaCode){ var dialCode=""; if(number.charAt(0)==="+"){ var numericChars=""; for (var i=0; i < number.length; i++){ var c=number.charAt(i); if(!isNaN(parseInt(c, 10))){ numericChars +=c; if(includeAreaCode){ if(this.countryCodes[numericChars]){ dialCode=number.substr(0, i + 1); }}else{ if(this.dialCodes[numericChars]){ dialCode=number.substr(0, i + 1); break; }} if(numericChars.length===this.countryCodeMaxLen){ break; }} }} return dialCode; }}, { key: "_getFullNumber", value: function _getFullNumber(){ var val=this.telInput.value.trim(); var dialCode=this.selectedCountryData.dialCode; var prefix; var numericVal=this._getNumeric(val); if(this.options.separateDialCode&&val.charAt(0)!=="+"&&dialCode&&numericVal){ prefix="+".concat(dialCode); }else{ prefix=""; } return prefix + val; }}, { key: "_beforeSetNumber", value: function _beforeSetNumber(originalNumber){ var number=originalNumber; if(this.options.separateDialCode){ var dialCode=this._getDialCode(number); if(dialCode){ dialCode="+".concat(this.selectedCountryData.dialCode); var start=number[dialCode.length]===" "||number[dialCode.length]==="-" ? dialCode.length + 1:dialCode.length; number=number.substr(start); }} return this._cap(number); }}, { key: "_triggerCountryChange", value: function _triggerCountryChange(){ this._trigger("countrychange"); }}, { key: "handleAutoCountry", value: function handleAutoCountry(){ if(this.options.initialCountry==="auto"){ this.defaultCountry=window.intlTelInputGlobals.autoCountry; if(!this.telInput.value){ this.setCountry(this.defaultCountry); } this.resolveAutoCountryPromise(); }} }, { key: "handleUtils", value: function handleUtils(){ if(window.intlTelInputUtils){ if(this.telInput.value){ this._updateValFromNumber(this.telInput.value); } this._updatePlaceholder(); } this.resolveUtilsScriptPromise(); }}, { key: "destroy", value: function destroy(){ var form=this.telInput.form; if(this.options.allowDropdown){ this._closeDropdown(); this.selectedFlag.removeEventListener("click", this._handleClickSelectedFlag); this.flagsContainer.removeEventListener("keydown", this._handleFlagsContainerKeydown); var label=this._getClosestLabel(); if(label) label.removeEventListener("click", this._handleLabelClick); } if(this.hiddenInput&&form) form.removeEventListener("submit", this._handleHiddenInputSubmit); if(this.options.autoHideDialCode){ if(form) form.removeEventListener("submit", this._handleSubmitOrBlurEvent); this.telInput.removeEventListener("blur", this._handleSubmitOrBlurEvent); } this.telInput.removeEventListener("keyup", this._handleKeyupEvent); this.telInput.removeEventListener("cut", this._handleClipboardEvent); this.telInput.removeEventListener("paste", this._handleClipboardEvent); this.telInput.removeAttribute("data-intl-tel-input-id"); var wrapper=this.telInput.parentNode; wrapper.parentNode.insertBefore(this.telInput, wrapper); wrapper.parentNode.removeChild(wrapper); delete window.intlTelInputGlobals.instances[this.id]; }}, { key: "getExtension", value: function getExtension(){ if(window.intlTelInputUtils){ return intlTelInputUtils.getExtension(this._getFullNumber(), this.selectedCountryData.iso2); } return ""; }}, { key: "getNumber", value: function getNumber(format){ if(window.intlTelInputUtils){ var iso2=this.selectedCountryData.iso2; return intlTelInputUtils.formatNumber(this._getFullNumber(), iso2, format); } return ""; }}, { key: "getNumberType", value: function getNumberType(){ if(window.intlTelInputUtils){ return intlTelInputUtils.getNumberType(this._getFullNumber(), this.selectedCountryData.iso2); } return -99; }}, { key: "getSelectedCountryData", value: function getSelectedCountryData(){ return this.selectedCountryData; }}, { key: "getValidationError", value: function getValidationError(){ if(window.intlTelInputUtils){ var iso2=this.selectedCountryData.iso2; return intlTelInputUtils.getValidationError(this._getFullNumber(), iso2); } return -99; }}, { key: "isValidNumber", value: function isValidNumber(){ var val=this._getFullNumber().trim(); var countryCode=this.options.nationalMode ? this.selectedCountryData.iso2:""; return window.intlTelInputUtils ? intlTelInputUtils.isValidNumber(val, countryCode):null; }}, { key: "setCountry", value: function setCountry(originalCountryCode){ var countryCode=originalCountryCode.toLowerCase(); if(!this.selectedFlagInner.classList.contains("iti__".concat(countryCode))){ this._setFlag(countryCode); this._updateDialCode(this.selectedCountryData.dialCode, false); this._triggerCountryChange(); }} }, { key: "setNumber", value: function setNumber(number){ var flagChanged=this._updateFlagFromNumber(number); this._updateValFromNumber(number); if(flagChanged){ this._triggerCountryChange(); }} }, { key: "setPlaceholderNumberType", value: function setPlaceholderNumberType(type){ this.options.placeholderNumberType=type; this._updatePlaceholder(); }} ]); return Iti; }(); intlTelInputGlobals.getCountryData=function(){ return allCountries; }; var injectScript=function injectScript(path, handleSuccess, handleFailure){ var script=document.createElement("script"); script.onload=function(){ forEachInstance("handleUtils"); if(handleSuccess) handleSuccess(); }; script.onerror=function(){ forEachInstance("rejectUtilsScriptPromise"); if(handleFailure) handleFailure(); }; script.className="iti-load-utils"; script.async=true; script.src=path; document.body.appendChild(script); }; intlTelInputGlobals.loadUtils=function(path){ if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){ window.intlTelInputGlobals.startedLoadingUtilsScript=true; if(typeof Promise!=="undefined"){ return new Promise(function(resolve, reject){ return injectScript(path, resolve, reject); }); } injectScript(path); } return null; }; intlTelInputGlobals.defaults=defaults; intlTelInputGlobals.version="17.0.16"; return function(input, options){ var iti=new Iti(input, options); iti._init(); input.setAttribute("data-intl-tel-input-id", iti.id); window.intlTelInputGlobals.instances[iti.id]=iti; return iti; };}(); }); !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;cscreen_w?"desktop":768screen_w?"tablet":300screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('
    ').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}function vc_setHoverBoxPerspective(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width(),perspective=4*width+"px";$this.css("perspective",perspective)})}function vc_setHoverBoxHeight(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=$this.find(".vc-hoverbox-front-inner").outerHeight(),backHeight=$this.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=frontHeight>backHeight?frontHeight:backHeight;hoverBoxHeight<250&&(hoverBoxHeight=250),hoverBoxInner.css("min-height",hoverBoxHeight+"px")})}function vc_prepareHoverBox(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&0index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1");var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){location.href.indexOf("#!prettyPhoto")>-1&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width})}}),$(document).trigger("vc-full-width-row",$elements)}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,offsetTop0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('
    ')})}(),vc_initVideoBackgrounds(),function(){var vcSkrollrOptions,callSkrollInit=!1;window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("
    ").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),!(!callSkrollInit||!window.skrollr)&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),window.vc_googleMapsPointer,jQuery(document).ready(vc_prepareHoverBox),jQuery(window).resize(vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()}); !function(a){a.idleTimer=function(b,c){var d;"object"==typeof b?(d=b,b=null):"number"==typeof b&&(d={timeout:b},b=null),c=c||document,d=a.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},d);var e=a(c),f=e.data("idleTimerObj")||{},g=function(b){var d=a.data(c,"idleTimerObj")||{};d.idle=!d.idle,d.olddate=+new Date;var e=a.Event((d.idle?"idle":"active")+".idleTimer");a(c).trigger(e,[c,a.extend({},d),b])},h=function(b){var d=a.data(c,"idleTimerObj")||{};if(null==d.remaining){if("mousemove"===b.type){if(b.pageX===d.pageX&&b.pageY===d.pageY)return;if(void 0===b.pageX&&void 0===b.pageY)return;if(200>+new Date-d.olddate)return}clearTimeout(d.tId),d.idle&&g(b),d.lastActive=+new Date,d.pageX=b.pageX,d.pageY=b.pageY,d.tId=setTimeout(g,d.timeout)}},i=function(){var b=a.data(c,"idleTimerObj")||{};b.idle=b.idleBackup,b.olddate=+new Date,b.lastActive=b.olddate,b.remaining=null,clearTimeout(b.tId),b.idle||(b.tId=setTimeout(g,b.timeout))},j=function(){var b=a.data(c,"idleTimerObj")||{};null==b.remaining&&(b.remaining=b.timeout-(+new Date-b.olddate),clearTimeout(b.tId))},k=function(){var b=a.data(c,"idleTimerObj")||{};null!=b.remaining&&(b.idle||(b.tId=setTimeout(g,b.remaining)),b.remaining=null)},l=function(){var b=a.data(c,"idleTimerObj")||{};clearTimeout(b.tId),e.removeData("idleTimerObj"),e.off("._idleTimer")},m=function(){var b=a.data(c,"idleTimerObj")||{};if(b.idle)return 0;if(null!=b.remaining)return b.remaining;var d=b.timeout-(+new Date-b.lastActive);return 0>d&&(d=0),d};if(null===b&&void 0!==f.idle)return i(),e;if(null===b);else{if(null!==b&&void 0===f.idle)return!1;if("destroy"===b)return l(),e;if("pause"===b)return j(),e;if("resume"===b)return k(),e;if("reset"===b)return i(),e;if("getRemainingTime"===b)return m();if("getElapsedTime"===b)return+new Date-f.olddate;if("getLastActiveTime"===b)return f.lastActive;if("isIdle"===b)return f.idle}return e.on(a.trim((d.events+" ").split(" ").join("._idleTimer ")),function(a){h(a)}),f=a.extend({},{olddate:+new Date,lastActive:+new Date,idle:d.idle,idleBackup:d.idle,timeout:d.timeout,remaining:null,tId:null,pageX:null,pageY:null}),f.idle||(f.tId=setTimeout(g,f.timeout)),a.data(c,"idleTimerObj",f),e},a.fn.idleTimer=function(b){return this[0]?a.idleTimer(b,this[0]):this}}(jQuery),function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0&&c.splice(d,1),a.className=c.join(" ")}c.add=function(a,b){a.classList?a.classList.add(b):d(a,b)},c.remove=function(a,b){a.classList?a.classList.remove(b):e(a,b)},c.list=function(a){return a.classList?Array.prototype.slice.apply(a.classList):a.className.split(" ")}},{}],3:[function(a,b,c){"use strict";function d(a,b){return window.getComputedStyle(a)[b]}function e(a,b,c){return"number"==typeof c&&(c=c.toString()+"px"),a.style[b]=c,a}function f(a,b){for(var c in b){var d=b[c];"number"==typeof d&&(d=d.toString()+"px"),a.style[c]=d}return a}var g={};g.e=function(a,b){var c=document.createElement(a);return c.className=b,c},g.appendTo=function(a,b){return b.appendChild(a),a},g.css=function(a,b,c){return"object"==typeof b?f(a,b):void 0===c?d(a,b):e(a,b,c)},g.matches=function(a,b){return void 0!==a.matches?a.matches(b):void 0!==a.matchesSelector?a.matchesSelector(b):void 0!==a.webkitMatchesSelector?a.webkitMatchesSelector(b):void 0!==a.mozMatchesSelector?a.mozMatchesSelector(b):void 0!==a.msMatchesSelector?a.msMatchesSelector(b):void 0},g.remove=function(a){void 0!==a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)},g.queryChildren=function(a,b){return Array.prototype.filter.call(a.childNodes,function(a){return g.matches(a,b)})},b.exports=g},{}],4:[function(a,b,c){"use strict";var d=function(a){this.element=a,this.events={}};d.prototype.bind=function(a,b){void 0===this.events[a]&&(this.events[a]=[]),this.events[a].push(b),this.element.addEventListener(a,b,!1)},d.prototype.unbind=function(a,b){var c=void 0!==b;this.events[a]=this.events[a].filter(function(d){return!(!c||d===b)||(this.element.removeEventListener(a,d,!1),!1)},this)},d.prototype.unbindAll=function(){for(var a in this.events)this.unbind(a)};var e=function(){this.eventElements=[]};e.prototype.eventElement=function(a){var b=this.eventElements.filter(function(b){return b.element===a})[0];return void 0===b&&(b=new d(a),this.eventElements.push(b)),b},e.prototype.bind=function(a,b,c){this.eventElement(a).bind(b,c)},e.prototype.unbind=function(a,b,c){this.eventElement(a).unbind(b,c)},e.prototype.unbindAll=function(){for(var a=0;ak?k=0:k>1&&(k=1),h(a,"top",(b.contentHeight-b.containerHeight)*k),g(a),d.stopPropagation()}),b.settings.stopPropagationOnClick&&b.event.bind(b.scrollbarX,"click",d),b.event.bind(b.scrollbarXRail,"click",function(d){var f=e.toInt(b.scrollbarXWidth/2),i=b.railXRatio*(d.pageX-window.scrollX-c(b.scrollbarXRail).left-f),j=b.railXRatio*(b.railXWidth-b.scrollbarXWidth),k=i/j;0>k?k=0:k>1&&(k=1),h(a,"left",(b.contentWidth-b.containerWidth)*k-b.negativeScrollAdjustment),g(a),d.stopPropagation()})}var e=a("../../lib/helper"),f=a("../instances"),g=a("../update-geometry"),h=a("../update-scroll");b.exports=function(a){d(a,f.get(a))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(a,b,c){"use strict";function d(a,b){function c(c){var e=d+c*b.railXRatio,f=b.scrollbarXRail.getBoundingClientRect().left+b.railXRatio*(b.railXWidth-b.scrollbarXWidth);b.scrollbarXLeft=0>e?0:e>f?f:e;var h=g.toInt(b.scrollbarXLeft*(b.contentWidth-b.containerWidth)/(b.containerWidth-b.railXRatio*b.scrollbarXWidth))-b.negativeScrollAdjustment;j(a,"left",h)}var d=null,e=null,h=function(b){c(b.pageX-e),i(a),b.stopPropagation(),b.preventDefault()},k=function(){g.stopScrolling(a,"x"),b.event.unbind(b.ownerDocument,"mousemove",h)};b.event.bind(b.scrollbarX,"mousedown",function(c){e=c.pageX,d=g.toInt(f.css(b.scrollbarX,"left"))*b.railXRatio,g.startScrolling(a,"x"),b.event.bind(b.ownerDocument,"mousemove",h),b.event.once(b.ownerDocument,"mouseup",k),c.stopPropagation(),c.preventDefault()})}function e(a,b){function c(c){var e=d+c*b.railYRatio,f=b.scrollbarYRail.getBoundingClientRect().top+b.railYRatio*(b.railYHeight-b.scrollbarYHeight);b.scrollbarYTop=0>e?0:e>f?f:e;var h=g.toInt(b.scrollbarYTop*(b.contentHeight-b.containerHeight)/(b.containerHeight-b.railYRatio*b.scrollbarYHeight));j(a,"top",h)}var d=null,e=null,h=function(b){c(b.pageY-e),i(a),b.stopPropagation(),b.preventDefault()},k=function(){g.stopScrolling(a,"y"),b.event.unbind(b.ownerDocument,"mousemove",h)};b.event.bind(b.scrollbarY,"mousedown",function(c){e=c.pageY,d=g.toInt(f.css(b.scrollbarY,"top"))*b.railYRatio,g.startScrolling(a,"y"),b.event.bind(b.ownerDocument,"mousemove",h),b.event.once(b.ownerDocument,"mouseup",k),c.stopPropagation(),c.preventDefault()})}var f=a("../../lib/dom"),g=a("../../lib/helper"),h=a("../instances"),i=a("../update-geometry"),j=a("../update-scroll");b.exports=function(a){var b=h.get(a);d(a,b),e(a,b)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(a,b,c){"use strict";function d(a,b){function c(c,d){var e=a.scrollTop;if(0===c){if(!b.scrollbarYActive)return!1;if(0===e&&d>0||e>=b.contentHeight-b.containerHeight&&0>d)return!b.settings.wheelPropagation}var f=a.scrollLeft;if(0===d){if(!b.scrollbarXActive)return!1;if(0===f&&0>c||f>=b.contentWidth-b.containerWidth&&c>0)return!b.settings.wheelPropagation}return!0}var d=!1;b.event.bind(a,"mouseenter",function(){d=!0}),b.event.bind(a,"mouseleave",function(){d=!1});var f=!1;b.event.bind(b.ownerDocument,"keydown",function(i){if((!i.isDefaultPrevented||!i.isDefaultPrevented())&&d){var j=document.activeElement?document.activeElement:b.ownerDocument.activeElement;if(j){for(;j.shadowRoot;)j=j.shadowRoot.activeElement;if(e.isEditable(j))return}var k=0,l=0;switch(i.which){case 37:k=-30;break;case 38:l=30;break;case 39:k=30;break;case 40:l=-30;break;case 33:l=90;break;case 32:l=i.shiftKey?90:-90;break;case 34:l=-90;break;case 35:l=i.ctrlKey?-b.contentHeight:-b.containerHeight;break;case 36:l=i.ctrlKey?a.scrollTop:b.containerHeight;break;default:return}h(a,"top",a.scrollTop-l),h(a,"left",a.scrollLeft+k),g(a),(f=c(k,l))&&i.preventDefault()}})}var e=a("../../lib/helper"),f=a("../instances"),g=a("../update-geometry"),h=a("../update-scroll");b.exports=function(a){d(a,f.get(a))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(a,b,c){"use strict";function d(a,b){function c(c,d){var e=a.scrollTop;if(0===c){if(!b.scrollbarYActive)return!1;if(0===e&&d>0||e>=b.contentHeight-b.containerHeight&&0>d)return!b.settings.wheelPropagation}var f=a.scrollLeft;if(0===d){if(!b.scrollbarXActive)return!1;if(0===f&&0>c||f>=b.contentWidth-b.containerWidth&&c>0)return!b.settings.wheelPropagation}return!0}function d(a){var b=a.deltaX,c=-1*a.deltaY;return(void 0===b||void 0===c)&&(b=-1*a.wheelDeltaX/6,c=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(b*=10,c*=10),b!==b&&c!==c&&(b=0,c=a.wheelDelta),[b,c]}function f(b,c){var d=a.querySelector("textarea:hover");if(d){var e=d.scrollHeight-d.clientHeight;if(e>0&&!(0===d.scrollTop&&c>0||d.scrollTop===e&&0>c))return!0;var f=d.scrollLeft-d.clientWidth;if(f>0&&!(0===d.scrollLeft&&0>b||d.scrollLeft===f&&b>0))return!0}return!1}function i(i){if(e.env.isWebKit||!a.querySelector("select:focus")){var k=d(i),l=k[0],m=k[1];f(l,m)||(j=!1,b.settings.useBothWheelAxes?b.scrollbarYActive&&!b.scrollbarXActive?(m?h(a,"top",a.scrollTop-m*b.settings.wheelSpeed):h(a,"top",a.scrollTop+l*b.settings.wheelSpeed),j=!0):b.scrollbarXActive&&!b.scrollbarYActive&&(l?h(a,"left",a.scrollLeft+l*b.settings.wheelSpeed):h(a,"left",a.scrollLeft-m*b.settings.wheelSpeed),j=!0):(h(a,"top",a.scrollTop-m*b.settings.wheelSpeed),h(a,"left",a.scrollLeft+l*b.settings.wheelSpeed)),g(a),(j=j||c(l,m))&&(i.stopPropagation(),i.preventDefault()))}}var j=!1;void 0!==window.onwheel?b.event.bind(a,"wheel",i):void 0!==window.onmousewheel&&b.event.bind(a,"mousewheel",i)}var e=a("../../lib/helper"),f=a("../instances"),g=a("../update-geometry"),h=a("../update-scroll");b.exports=function(a){d(a,f.get(a))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(a,b,c){"use strict";function d(a,b){b.event.bind(a,"scroll",function(){f(a)})}var e=a("../instances"),f=a("../update-geometry");b.exports=function(a){d(a,e.get(a))}},{"../instances":18,"../update-geometry":19}],15:[function(a,b,c){"use strict";function d(a,b){function c(){var a=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"";return 0===a.toString().length?null:a.getRangeAt(0).commonAncestorContainer}function d(){j||(j=setInterval(function(){return f.get(a)?(h(a,"top",a.scrollTop+k.top),h(a,"left",a.scrollLeft+k.left),void g(a)):void clearInterval(j)},50))}function i(){j&&(clearInterval(j),j=null),e.stopScrolling(a)}var j=null,k={top:0,left:0},l=!1;b.event.bind(b.ownerDocument,"selectionchange",function(){a.contains(c())?l=!0:(l=!1,i())}),b.event.bind(window,"mouseup",function(){l&&(l=!1,i())}),b.event.bind(window,"mousemove",function(b){if(l){var c={x:b.pageX,y:b.pageY},f={left:a.offsetLeft,right:a.offsetLeft+a.offsetWidth,top:a.offsetTop,bottom:a.offsetTop+a.offsetHeight};c.xf.right-3?(k.left=5,e.startScrolling(a,"x")):k.left=0,c.yf.bottom-3?(c.y-f.bottom+3<5?k.top=5:k.top=20,e.startScrolling(a,"y")):k.top=0,0===k.top&&0===k.left?i():d()}})}var e=a("../../lib/helper"),f=a("../instances"),g=a("../update-geometry"),h=a("../update-scroll");b.exports=function(a){d(a,f.get(a))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(a,b,c){"use strict";function d(a,b,c,d){function h(c,d){var e=a.scrollTop,f=a.scrollLeft,g=Math.abs(c),h=Math.abs(d);if(h>g){if(0>d&&e===b.contentHeight-b.containerHeight||d>0&&0===e)return!b.settings.swipePropagation}else if(g>h&&(0>c&&f===b.contentWidth-b.containerWidth||c>0&&0===f))return!b.settings.swipePropagation;return!0}function i(b,c){g(a,"top",a.scrollTop-c),g(a,"left",a.scrollLeft-b),f(a)}function j(){u=!0}function k(){u=!1}function l(a){return a.targetTouches?a.targetTouches[0]:a}function m(a){return!(!a.targetTouches||1!==a.targetTouches.length)||!(!a.pointerType||"mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE)}function n(a){if(m(a)){v=!0;var b=l(a);q.pageX=b.pageX,q.pageY=b.pageY,r=(new Date).getTime(),null!==t&&clearInterval(t),a.stopPropagation()}}function o(a){if(!u&&v&&m(a)){var b=l(a),c={pageX:b.pageX,pageY:b.pageY},d=c.pageX-q.pageX,e=c.pageY-q.pageY;i(d,e),q=c;var f=(new Date).getTime(),g=f-r;g>0&&(s.x=d/g,s.y=e/g,r=f),h(d,e)&&(a.stopPropagation(),a.preventDefault())}}function p(){!u&&v&&(v=!1,clearInterval(t),t=setInterval(function(){return e.get(a)?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?void clearInterval(t):(i(30*s.x,30*s.y),s.x*=.8,void(s.y*=.8)):void clearInterval(t)},10))}var q={},r=0,s={},t=null,u=!1,v=!1;c&&(b.event.bind(window,"touchstart",j),b.event.bind(window,"touchend",k),b.event.bind(a,"touchstart",n),b.event.bind(a,"touchmove",o),b.event.bind(a,"touchend",p)),d&&(window.PointerEvent?(b.event.bind(window,"pointerdown",j),b.event.bind(window,"pointerup",k),b.event.bind(a,"pointerdown",n),b.event.bind(a,"pointermove",o),b.event.bind(a,"pointerup",p)):window.MSPointerEvent&&(b.event.bind(window,"MSPointerDown",j),b.event.bind(window,"MSPointerUp",k),b.event.bind(a,"MSPointerDown",n),b.event.bind(a,"MSPointerMove",o),b.event.bind(a,"MSPointerUp",p)))}var e=a("../instances"),f=a("../update-geometry"),g=a("../update-scroll");b.exports=function(a,b,c){d(a,e.get(a),b,c)}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(a,b,c){"use strict";var d=a("../lib/class"),e=a("../lib/helper"),f=a("./instances"),g=a("./update-geometry"),h=a("./handler/click-rail"),i=a("./handler/drag-scrollbar"),j=a("./handler/keyboard"),k=a("./handler/mouse-wheel"),l=a("./handler/native-scroll"),m=a("./handler/selection"),n=a("./handler/touch");b.exports=function(a,b){b="object"==typeof b?b:{},d.add(a,"ps-container");var c=f.add(a);c.settings=e.extend(c.settings,b),h(a),i(a),k(a),l(a),c.settings.useSelectionScroll&&m(a),(e.env.supportsTouch||e.env.supportsIePointer)&&n(a,e.env.supportsTouch,e.env.supportsIePointer),c.settings.useKeyboard&&j(a),g(a)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(a,b,c){"use strict";function d(a){var b=this;b.settings=l.clone(i),b.containerWidth=null,b.containerHeight=null,b.contentWidth=null,b.contentHeight=null,b.isRtl="rtl"===h.css(a,"direction"),b.isNegativeScroll=function(){var b=a.scrollLeft,c=null;return a.scrollLeft=-1,c=a.scrollLeft<0,a.scrollLeft=b,c}(),b.negativeScrollAdjustment=b.isNegativeScroll?a.scrollWidth-a.clientWidth:0,b.event=new j,b.ownerDocument=a.ownerDocument||document,b.scrollbarXRail=h.appendTo(h.e("div","ps-scrollbar-x-rail"),a),b.scrollbarX=h.appendTo(h.e("div","ps-scrollbar-x"),b.scrollbarXRail),b.scrollbarXActive=null,b.scrollbarXWidth=null,b.scrollbarXLeft=null,b.scrollbarXBottom=l.toInt(h.css(b.scrollbarXRail,"bottom")),b.isScrollbarXUsingBottom=b.scrollbarXBottom===b.scrollbarXBottom,b.scrollbarXTop=b.isScrollbarXUsingBottom?null:l.toInt(h.css(b.scrollbarXRail,"top")),b.railBorderXWidth=l.toInt(h.css(b.scrollbarXRail,"borderLeftWidth"))+l.toInt(h.css(b.scrollbarXRail,"borderRightWidth")),h.css(b.scrollbarXRail,"display","block"),b.railXMarginWidth=l.toInt(h.css(b.scrollbarXRail,"marginLeft"))+l.toInt(h.css(b.scrollbarXRail,"marginRight")),h.css(b.scrollbarXRail,"display",""),b.railXWidth=null,b.railXRatio=null,b.scrollbarYRail=h.appendTo(h.e("div","ps-scrollbar-y-rail"),a),b.scrollbarY=h.appendTo(h.e("div","ps-scrollbar-y"),b.scrollbarYRail),b.scrollbarYActive=null,b.scrollbarYHeight=null,b.scrollbarYTop=null,b.scrollbarYRight=l.toInt(h.css(b.scrollbarYRail,"right")),b.isScrollbarYUsingRight=b.scrollbarYRight===b.scrollbarYRight,b.scrollbarYLeft=b.isScrollbarYUsingRight?null:l.toInt(h.css(b.scrollbarYRail,"left")),b.scrollbarYOuterWidth=b.isRtl?l.outerWidth(b.scrollbarY):null,b.railBorderYWidth=l.toInt(h.css(b.scrollbarYRail,"borderTopWidth"))+l.toInt(h.css(b.scrollbarYRail,"borderBottomWidth")),h.css(b.scrollbarYRail,"display","block"),b.railYMarginHeight=l.toInt(h.css(b.scrollbarYRail,"marginTop"))+l.toInt(h.css(b.scrollbarYRail,"marginBottom")),h.css(b.scrollbarYRail,"display",""),b.railYHeight=null,b.railYRatio=null}function e(a){return void 0===a.dataset?a.getAttribute("data-ps-id"):a.dataset.psId}function f(a,b){void 0===a.dataset?a.setAttribute("data-ps-id",b):a.dataset.psId=b}function g(a){void 0===a.dataset?a.removeAttribute("data-ps-id"):delete a.dataset.psId}var h=a("../lib/dom"),i=a("./default-setting"),j=a("../lib/event-manager"),k=a("../lib/guid"),l=a("../lib/helper"),m={};c.add=function(a){var b=k();return f(a,b),m[b]=new d(a),m[b]},c.remove=function(a){delete m[e(a)],g(a)},c.get=function(a){return m[e(a)]}},{"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(a,b,c){"use strict";function d(a,b){return a.settings.minScrollbarLength&&(b=Math.max(b,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(b=Math.min(b,a.settings.maxScrollbarLength)),b}function e(a,b){var c={width:b.railXWidth};b.isRtl?c.left=b.negativeScrollAdjustment+a.scrollLeft+b.containerWidth-b.contentWidth:c.left=a.scrollLeft,b.isScrollbarXUsingBottom?c.bottom=b.scrollbarXBottom-a.scrollTop:c.top=b.scrollbarXTop+a.scrollTop,g.css(b.scrollbarXRail,c);var d={top:a.scrollTop,height:b.railYHeight};b.isScrollbarYUsingRight?b.isRtl?d.right=b.contentWidth-(b.negativeScrollAdjustment+a.scrollLeft)-b.scrollbarYRight-b.scrollbarYOuterWidth:d.right=b.scrollbarYRight-a.scrollLeft:b.isRtl?d.left=b.negativeScrollAdjustment+a.scrollLeft+2*b.containerWidth-b.contentWidth-b.scrollbarYLeft-b.scrollbarYOuterWidth:d.left=b.scrollbarYLeft+a.scrollLeft,g.css(b.scrollbarYRail,d),g.css(b.scrollbarX,{left:b.scrollbarXLeft,width:b.scrollbarXWidth-b.railBorderXWidth}),g.css(b.scrollbarY,{top:b.scrollbarYTop,height:b.scrollbarYHeight-b.railBorderYWidth})}var f=a("../lib/class"),g=a("../lib/dom"),h=a("../lib/helper"),i=a("./instances"),j=a("./update-scroll");b.exports=function(a){var b=i.get(a);b.containerWidth=a.clientWidth,b.containerHeight=a.clientHeight,b.contentWidth=a.scrollWidth,b.contentHeight=a.scrollHeight;var c;a.contains(b.scrollbarXRail)||(c=g.queryChildren(a,".ps-scrollbar-x-rail"),c.length>0&&c.forEach(function(a){g.remove(a)}),g.appendTo(b.scrollbarXRail,a)),a.contains(b.scrollbarYRail)||(c=g.queryChildren(a,".ps-scrollbar-y-rail"),c.length>0&&c.forEach(function(a){g.remove(a)}),g.appendTo(b.scrollbarYRail,a)),!b.settings.suppressScrollX&&b.containerWidth+b.settings.scrollXMarginOffset=b.railXWidth-b.scrollbarXWidth&&(b.scrollbarXLeft=b.railXWidth-b.scrollbarXWidth),b.scrollbarYTop>=b.railYHeight-b.scrollbarYHeight&&(b.scrollbarYTop=b.railYHeight-b.scrollbarYHeight),e(a,b),f[b.scrollbarXActive?"add":"remove"](a,"ps-active-x"),f[b.scrollbarYActive?"add":"remove"](a,"ps-active-y")}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(a,b,c){"use strict";var d,e,f=a("./instances"),g=document.createEvent("Event"),h=document.createEvent("Event"),i=document.createEvent("Event"),j=document.createEvent("Event"),k=document.createEvent("Event"),l=document.createEvent("Event"),m=document.createEvent("Event"),n=document.createEvent("Event"),o=document.createEvent("Event"),p=document.createEvent("Event");g.initEvent("ps-scroll-up",!0,!0),h.initEvent("ps-scroll-down",!0,!0),i.initEvent("ps-scroll-left",!0,!0),j.initEvent("ps-scroll-right",!0,!0),k.initEvent("ps-scroll-y",!0,!0),l.initEvent("ps-scroll-x",!0,!0),m.initEvent("ps-x-reach-start",!0,!0),n.initEvent("ps-x-reach-end",!0,!0),o.initEvent("ps-y-reach-start",!0,!0),p.initEvent("ps-y-reach-end",!0,!0),b.exports=function(a,b,c){if(void 0===a)throw"You must provide an element to the update-scroll function";if(void 0===b)throw"You must provide an axis to the update-scroll function";if(void 0===c)throw"You must provide a value to the update-scroll function";if("top"===b&&0>=c)return a.scrollTop=0,void a.dispatchEvent(o);if("left"===b&&0>=c)return a.scrollLeft=0,void a.dispatchEvent(m);var q=f.get(a);return"top"===b&&c>q.contentHeight-q.containerHeight?(a.scrollTop=q.contentHeight-q.containerHeight,void a.dispatchEvent(p)):"left"===b&&c>q.contentWidth-q.containerWidth?(a.scrollLeft=q.contentWidth-q.containerWidth,void a.dispatchEvent(n)):(d||(d=a.scrollTop),e||(e=a.scrollLeft),"top"===b&&d>c&&a.dispatchEvent(g),"top"===b&&c>d&&a.dispatchEvent(h),"left"===b&&e>c&&a.dispatchEvent(i),"left"===b&&c>e&&a.dispatchEvent(j),"top"===b&&(a.scrollTop=d=c,a.dispatchEvent(k)),void("left"===b&&(a.scrollLeft=e=c,a.dispatchEvent(l))))}},{"./instances":18}],21:[function(a,b,c){"use strict";var d=a("../lib/dom"),e=a("../lib/helper"),f=a("./instances"),g=a("./update-geometry");b.exports=function(a){var b=f.get(a);b&&(b.negativeScrollAdjustment=b.isNegativeScroll?a.scrollWidth-a.clientWidth:0,d.css(b.scrollbarXRail,"display","block"),d.css(b.scrollbarYRail,"display","block"),b.railXMarginWidth=e.toInt(d.css(b.scrollbarXRail,"marginLeft"))+e.toInt(d.css(b.scrollbarXRail,"marginRight")),b.railYMarginHeight=e.toInt(d.css(b.scrollbarYRail,"marginTop"))+e.toInt(d.css(b.scrollbarYRail,"marginBottom")),d.css(b.scrollbarXRail,"display","none"),d.css(b.scrollbarYRail,"display","none"),g(a),d.css(b.scrollbarXRail,"display",""),d.css(b.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19}]},{},[1]),function(a,b,c,d){function e(b,c){this.anchor=b,this.$anchor=a(b),this.options=a.extend({},g,c,this.$anchor.data()),this._defaults=g,this._name=f,this.init()}var f="frosty",g={attribute:"title",className:"tip",content:"",delay:0,hasArrow:!0,html:!1,offset:30,position:"left",removeTitle:!0,selector:!1,trigger:"hover,focus",onHidden:function(){},onShown:function(){}};e.prototype={init:function(){this._createTip(),this._bindEvents()},show:function(){var a=this,b="object"==typeof this.options.delay?parseInt(this.options.delay.show):parseInt(this.options.delay);clearTimeout(this.timeout),this.timeout=0===b?this._setState("visible"):setTimeout(function(){a._setState("visible")},b)},hide:function(){var a=this;delay="object"==typeof this.options.delay?parseInt(this.options.delay.hide):parseInt(this.options.delay),clearTimeout(this.timeout),this.timeout=0===delay?this._setState("hidden"):setTimeout(function(){a._setState("hidden")},delay)},toggle:function(){"visible"===this.state?this.hide():this.show()},addClass:function(a){console.log("in"),"string"==typeof a&&this.$el.addClass(a)},removeClass:function(a){"string"==typeof a&&this.$el.removeClass(a)},_setState:function(a){switch(this.state=a,a){case"visible":this.$el.appendTo("body"),this._checkContent(),this._setPosition(),this.options.onShown.call(this),this.$anchor.trigger("shown");break;case"hidden":this.$el.detach(),this.options.onHidden.call(this),this.$anchor.trigger("hidden")}},_checkContent:function(){this.options.selector&&(this.tipContent=a(this.options.selector).html(),this.$el.html(this.tipContent))},_createTip:function(){this.options.html?this.tipContent=this.options.content:this.options.selector?this.tipContent=a(this.options.selector).html():(this.tipContent=this.$anchor.attr(this.options.attribute),"title"===this.options.attribute&&this.options.removeTitle&&(this.$anchor.attr("data-original-title",this.tipContent),this.$anchor.removeAttr("title"))),this.$el=a("
    ",{class:this.options.className,html:''+this.tipContent+""}).css({"z-index":"9999999999",left:"-9999px",position:"absolute"}),this.$el.appendTo("body");var b=this.getPosition();this.$el.detach().css(b),this.options.hasArrow&&this._addArrowClass()},_addArrowClass:function(){switch(this.options.position){case"left":this.$el.addClass("arrow-right");break;case"right":this.$el.addClass("arrow-left");break;case"bottom":this.$el.addClass("arrow-top");break;default:this.$el.addClass("arrow-bottom")}},_bindEvents:function(){switch(this.options.trigger){case"click":this.$anchor.click(a.proxy(this.toggle,this));break;case"manual":break;case"focus":this.$anchor.focus(a.proxy(this.show,this)),this.$anchor.blur(a.proxy(this.hide,this));break;default:this.$anchor.hover(a.proxy(this.show,this),a.proxy(this.hide,this))}},getPosition:function(){var a=this.$anchor.offset();switch(this.options.position){case"left":a.left=a.left-this.$el.outerWidth()-this.options.offset,a.top=a.top+this.$anchor.outerHeight()/2-this.$el.outerHeight()/2;break;case"right":a.left=a.left+this.$anchor.outerWidth()+this.options.offset,a.top=a.top+this.$anchor.outerHeight()/2-this.$el.outerHeight()/2;break;case"bottom":a.top=a.top+this.$anchor.outerHeight()+this.options.offset,a.left=a.left+this.$anchor.outerWidth()/2-this.$el.outerWidth()/2;break;default:a.top=a.top-this.$el.outerHeight()-this.options.offset;var b=a.left+this.$anchor.outerWidth()/2-this.$el.outerWidth()/2;b<0&&(b=0),a.left=b}return a},_setPosition:function(){this.$el.css(this.getPosition())}},a.fn[f]=function(b,c){if("string"==typeof b)switch(b){case"show":this.each(function(){a.data(this,"plugin_"+f).show()});break;case"hide":this.each(function(){a.data(this,"plugin_"+f).hide()});break;case"toggle":this.each(function(){a.data(this,"plugin_"+f).toggle()});break;case"addClass":this.each(function(){a.data(this,"plugin_"+f).addClass(c)});break;case"removeClass":this.each(function(){a.data(this,"plugin_"+f).removeClass(c)})}return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a){a(document).ready(function(){a(".bsf-has-tip, .has-tip").each(function(b,c){$tip=a(c);var d=void 0!==$tip.attr("data-attribute")?$tip.attr("data-attribute"):"title",e=void 0!==$tip.attr("data-offset")?$tip.attr("data-offset"):10,f=void 0!==$tip.attr("data-position")?$tip.attr("data-position"):"top",g=($tip.attr("data-trigger"),$tip.attr("data-trigger")),h=void 0!==$tip.attr("data-classes")?"tip "+$tip.attr("data-classes"):"tip";$tip.frosty({className:h,attribute:d,offset:e,position:f,trigger:g})})})}(jQuery),function(a){"use strict";function b(b){var c=b.data("module-type"),d=(b.data("exit-intent"),!0);if("modal"==c){var f=b.data("class-id");e=a("."+f),d=e.hasClass("cp-open")||e.hasClass("cp-visited-popup")}else if("slide_in"==c){var f=b.data("class-id");slide_in=a("."+f),d=slide_in.hasClass("si-open")}else"info-bar"==c&&(d=b.hasClass("ib-display"));return d} var c="",d="",e="",f="",g="",h="",i=new Date,j=i.toGMTString(),k=i.toLocaleString(),l=new Date,m="",n="",o="",p="",q="",r="",s="",t="",u="",v="",p="",w="",x="",y="",z="",A="",B="",C="",D="",g="",E=!0,F=!0,G="",H="",I="",J="",K="",L="",M="",N=!1,O=!1,P="",Q="",R=Array(),S=Array(),T="",U="",V="",W="",X="",Y="",Z="",$="",_="",aa="",ba="",ca="",da="",ea="",fa="",ga="",ha=!0,ia="",ja=0,ka={init:function(b,h,i){a("body");switch(c=h,d=h.data("class-id"),ba=h.data("module-type"),q=h.data("dev-mode"),r=h.data("exit-intent"),s=h.data("option"),e=a("."+d),ga=h.data("onload-delay"),t=1e3*ga,u=h.data("load-on-refresh"),v=h.data("onscroll-value"),f=!1,w=h.find(".cp-impress-nonce").val(),C=h.data("referrer-domain"),D=h.data("referrer-check"),g=document.referrer.toLowerCase(),G=e.find(".cp-youtube-frame").attr("data-autoplay")||"0",I=a("."+d).parents(".cp-modal-popup-container"),J=ka._getPrioritized(),K=h.data("inactive-time"),L=jQuery(".cp-load-after-post").length,M=h.data("after-content-value"),P=h.data("scroll-class"),N=h.hasClass("cp-after-post"),aa=h.data("custom-class"),ia=h.data("custom-selector"),T=h.attr("id"),Q=e.find("iframe"),X=e.data("load-on-count"),"info-bar"==ba?(y=h.data("info_bar-id"),x=h.data("parent-style"),U=h.data("info_bar-style"),V=h,T=h.attr("id"),W=h.data("toggle-visible"),f=!0,ca=V,Y=h,N=h.hasClass("ib-after-post"),X=h.data("load-on-count"),ka._infoBarPos(V),p=ka._isScheduled(V),setTimeout(function(){Z=Y.outerHeight()},100)):"modal"==ba?(x=e.data("parent-style"),y=h.data("modal-id"),U=h.data("modal-style"),p=ka._isScheduled(e),ca=e):"slide_in"==ba&&(ea=a("."+d),y=ea.data("slidein-id"),W=h.data("toggle-visible"),U=ea.data("slidein-style"),N=h.hasClass("si-after-post"),fa=h.closest(".cp-slidein-popup-container"),ca=a("."+d),p=ka._isScheduled(ea),x=ea.data("parent-style")),"modal"==ba&&ca.hasClass("cp-window-size")&&e.windowSize(),void 0!==x&&(y=x),z="temp_"+y,ka._removeCookie(z),i){case"load":""!==ga&&this._CploadEvent(),this._CpCustomClass(),this._CpIframe(),"slide_in"==ba&&this._close_button_tootip();break;case"scroll":this._CpscrollEvent(b);break;case"mouseleave":this._CpmouseleaveEvent(b);break;case"closepopup":this._CpclosepopupEvent(b);break;case"idle":this._CpidleEvent()}},_hide_on_page_load:function(a){var b=!1;if("disabled"==u){var c=a.data("load-on-count"),c=c-1,d=parseInt(ka._getPageCookie(y+"pageLoads"),10);isNaN(d)||d<=0?ka._setPageCookie(y+"pageLoads",1):ka._setPageCookie(y+"pageLoads",d+1);ka._getPageCookie(y+"pageLoads")>c&&(b=!0)}else ka._removeCookie(y+"pageLoads");return b},_CpclosepopupEvent:function(a){var b=ba;if("modal"==b&&void 0!==e){var c=I.data("template"),d=e.data("closed-cookie-time"),f=e.find(".cp-animate-container"),g=e.data("overlay-animation"),h=f.data("exit-animation"),i=f.data("disable-animationwidth"),j=jQuery(window).width(),k=e.data("parent-style");if(void 0!==k)var l=k;else var l=e.data("modal-id");ka._createCookie(z,!0,1);var m=ka._getCookie(l);ka._cpExecuteVideoAPI(e,"pause"),void 0!==a&&a.preventDefault(),m||d&&(ka._createCookie(l,!0,d),ka._cpExecuteVideoAPI(e,"pause")),("cp-overlay-none"==h||void 0!==i&&j<=i)&&(e.removeClass("cp-open"),e.hasClass("cp-hide-inline-style")&&(h="cp-overlay-none"),h="cp-overlay-none",jQuery(".cp-open").length<1&&jQuery("html").removeAttr("style")),f.removeClass(g),(j>=i||void 0===i)&&f.addClass(h),"cp-overlay-none"!==h&&setTimeout(function(){ka._cpExecuteVideoAPI(e,"pause"),jQuery(".cp-open").length<1&&jQuery("html").removeAttr("style"),setTimeout(function(){f.removeClass(h)},500),e.removeClass("cp-open"),jQuery(".cp-overlay").removeClass("cp-open")},1e3)}else if("info-bar"==b){var g=V.data("entry-animation"),h=V.data("exit-animation"),d=V.data("closed-cookie-time"),l=V.data("info_bar-id"),n=V.data("animate-push-page"),o=V.data("push-down")||null,k=V.data("parent-style");if(jQuery("html").removeClass("cp-ib-open"),l=void 0!==k?k:V.data("info_bar-id"),z="temp_"+l,V.hasClass("cp-ifb-with-toggle")||(V.removeClass(g),V.addClass(h)),V.hasClass("cp-pos-top")){if(o){var p=jQuery("#cp-top-offset-container").val(),q=jQuery("#cp-top-offset-container").data("offset_def_settings");if(void 0!==q){var r=q.margin_top,s=q.top;setTimeout(function(){V.hasClass("cp-ifb-hide")&&(r=0,s=0),1==n?""==p?jQuery("body").animate({marginTop:r,top:s}):jQuery(p).animate({"margin-top":r,top:s}):""==p?jQuery("body").css({"margin-top":r,top:s}):jQuery(p).css({"margin-top":r,top:s})},2e3)}}if(1==jQuery(".ib-display").length){var t=jQuery("#wpadminbar").outerHeight(),u=jQuery("#cp-push-down-support").val();jQuery("#wpadminbar").length?1==n?jQuery(u).animate({top:t},1e3):jQuery(u).css("top",t):1==n?jQuery(u).animate({top:"0px"},1e3):jQuery(u).css("top","0px")}}ka._createCookie(z,!0,1),d&&ka._createCookie(l,!0,d),(V.hasClass("cp-hide-inline-style")||V.hasClass("cp-close-ifb"))&&(h="cp-overlay-none"),V.hasClass("cp-close-ifb")&&setTimeout(function(){V.hide(),V.removeClass("ib-display"),V.removeClass(h),V.addClass(g),jQuery("html").css("overflow-x","auto")},3e3),"cp-overlay-none"!==h?setTimeout(function(){V.hasClass("cp-ifb-with-toggle")||(V.hide(),V.removeClass("ib-display"),V.removeClass(h),V.addClass(g)),jQuery("html").css("overflow-x","auto")},3e3):setTimeout(function(){V.hasClass("cp-ifb-with-toggle")||(V.hide(),V.removeClass("ib-display"),h="cp-overlay-none",V.removeClass(h),V.addClass(g)),jQuery("html").css("overflow-x","auto")},100)}else if("slide_in"==b){var v=ea.parents(".cp-slidein-popup-container"),c=v.data("template"),d=ea.data("closed-cookie-time"),f=ea.find(".cp-animate-container"),g=ea.data("overlay-animation"),h=f.data("exit-animation"),k=ea.data("parent-style");jQuery("html").removeClass("cp-si-open"),l=void 0!==k?k:ea.data("slidein-id"),z="temp_"+l,ka._createCookie(z,!0,1),m=ka._getCookie(l),void 0!==a&&a.preventDefault(),m||d&&ka._createCookie(l,!0,d),(ea.hasClass("cp-hide-inline-style")||ea.hasClass("cp-close-slidein"))&&(h="cp-overlay-none"),(ea.hasClass("cp-close-slidein")||ea.hasClass("cp-close-after-x"))&&ea.removeClass("si-open");var i=f.data("disable-animationwidth"),j=jQuery(window).width();if(("cp-overlay-none"==h||void 0!==i&&j<=i)&&(ea.hasClass("cp-slide-without-toggle")&&ea.removeClass("si-open"),h="cp-overlay-none",jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style")),!c){f.removeClass(g);var i=f.data("disable-animationwidth"),j=jQuery(window).width();(j>=i||void 0===i)&&f.addClass(h),"cp-overlay-none"!==h&&setTimeout(function(){ea.hasClass("cp-slide-without-toggle")&&ea.removeClass("si-open"),jQuery(".cp-slidein-global.si-open").length<1&&jQuery("html").removeAttr("style"),setTimeout(function(){ea.hasClass("do_not_close")||f.removeClass(h)})},1e3)}}jQuery("html").removeClass("cp-mp-open"),jQuery("html").removeClass("cp-oveflow-hidden"),jQuery("html").removeClass("customize-support"),jQuery("html").removeClass("cp-exceed-viewport"),jQuery("html").removeClass("cp-exceed-vieport cp-window-viewport"),jQuery("html").removeClass("cp-custom-viewport"),jQuery("html").removeClass("cp-overflow-hidden")},_CpCustomClass:function(){void 0!==aa&&""!==aa&&(aa=aa.split(" "),jQuery.each(aa,function(a,b){void 0!==b&&""!==b&&S.push(b)}))},_CpIframe:function(){jQuery.each(Q,function(a,b){var c=b.src,e=c.search("youtube.com"),f=c.search("vimeo.com"),c=c.replace("&autoplay=1","");if(-1!==e){var g=-1===c.indexOf("?")?c+"?enablejsapi=1":c+"&enablejsapi=1";b.src=g,b.id="yt-"+d}if(-1!==f){c.indexOf("?");b.src=b.src+"?api=1",b.id="vim-"+d}})},_CploadEvent:function(){var a=ca,b=ba,c=U,d=!1,e=!1;if("disabled"==u)var f=ka._hide_on_page_load(a);else var f=!0;void 0!==a&&ka._canCpShow()&&f&&t&&setTimeout(function(){d=ka._isOtherPopupOpen(b),"slide_in"==b&&(e=ka._check_slide_open(a))&&(d=!0),d&&ka._displayPopup(a,b,c)},parseInt(t)),"enabled"==q&&ka._removeCookie(y)},_CpmouseleaveEvent:function(a){var b=ca,c=ba,d=U,e=!1;"enabled"==r&&void 0!==b&&ka._canCpShow()&&a.clientY<=0&&(e=ka._isOtherPopupOpen(c),"slide_in"==c&&ka._check_slide_open(b)&&(e=!0),e&&ka._displayPopup(b,c,d)),"enabled"==q&&ka._removeCookie(y)},_check_slide_open:function(a){return 0!==a.find(".cp-slide-in-float-on").length&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&(ja=1),jQuery(".si-open").length<=ja},_CpscrollEvent:function(b){var c=jQuery(window).scrollTop(),d=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height()),e=ca,f=!1,g=!1,h="disable",i="",j="",k="",l=U,m=ba;v&&(h="enable",c=d.toFixed(0)),void 0!==P&&(k="enable"),ka._canCpShow()&&(f=ka._isOtherPopupOpen(m),c>=v&&"enable"==h?g=!0:N?L>0?(i=jQuery(".cp-load-after-post").offset().top-30,i-=jQuery(window).height()*M/100,c>=i&&(g=!0)):g=!1:"enable"==k&&(P=P.split(" "),a.each(P,function(a,b){var c=jQuery(b).position();void 0!==c&&" "!==c&&(j=ka._cp_modal_isOnScreen(jQuery(b)),f&&j&&ka._displayPopup(e,m,l))}),g=!1),f&&g&&ka._displayPopup(e,m,l)),"enabled"==q&&ka._removeCookie(y)},_CpidleEvent:function(){var a=ca,b=ba,c=U;ka._canCpShow()&&ka._isOtherPopupOpen(b)&&void 0!==K&&ka._displayPopup(a,b,c)},_displayPopup:function(b,c,d){var e=Array(),f=ka._getCookie("cp-impression-added-for"+d);"modal"==c?(a(window).trigger("modalOpen",[b]),a(document).trigger("resize"),G=b.find(".cp-youtube-frame").attr("data-autoplay")||"0","1"===G&&ka._cpExecuteVideoAPI(b,"play"),b.addClass("cp-open cp-visited-popup"),f||b.hasClass("cp_impression_counted")||b.hasClass("cp-disabled-impression")||(-1==e.indexOf(d)&&e.push(d),b.addClass("cp_impression_counted"),ka._createCookie("cp-impression-added-for"+d,!0,1),0!==e.length&&ka.update_impressions(e)),ka._youtube_show_cta(b)):"info-bar"==c?(f||b.hasClass("cp_impression_counted")||b.hasClass("cp-disabled-impression")||(-1==e.indexOf(d)&&e.push(d),0!==e.length&&void 0===W&&(ka.update_impressions(e),ka._createCookie("cp-impression-added-for"+d,!0,1),jQuery("[data-info_bar-style="+U+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")}))),b.hasClass("cp-pos-top")?jQuery("body").hasClass("admin-bar")&&(_=jQuery("#wpadminbar").outerHeight(),b.css("top",_+"px")):(da=b.find(".cp-info-bar-body").outerHeight(),b.css("min-height",da+"px")),b.addClass("ib-display"),jQuery(document).trigger("resize"),jQuery(document).trigger("infobarOpen",[b]),setTimeout(function(){$=b.find(".cp-submit").data("animation"),b.find(".cp-submit").addClass($)},2e3)):"slide_in"==c&&(ka._adjustToggleButton(fa),jQuery(window).trigger("slideinOpen",[b]),b.addClass("si-open"),f||b.hasClass("cp_impression_counted")||b.hasClass("cp-disabled-impression")||(-1==e.indexOf(d)&&e.push(d),0!==e.length&&void 0===W&&(ka.update_impressions(e),ka._createCookie("cp-impression-added-for"+d,!0,1),jQuery("[data-slidein-style="+U+"]").each(function(a){jQuery(this).addClass("cp_impression_counted")}))))},update_impressions:function(a){1==ha?(w=jQuery(".cp-impress-nonce").val(),H={action:"smile_update_impressions",impression:!0,styles:a,option:"smile_modal_styles",security:w},jQuery.ajax({url:smile_ajax.url,data:H,type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend:function(a){ha=!1}})):setTimeout(function(){w=jQuery(".cp-impress-nonce").val(),H={action:"smile_update_impressions",impression:!0,styles:a,option:"smile_modal_styles",security:w},jQuery.ajax({url:smile_ajax.url,data:H,type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend:function(a){ha=!1}})},2e3)},_isOtherPopupOpen:function(b){var c="";if("modal"==b)c=a(".cp-open").length<=0&&!e.hasClass("cp-visited-popup");else if("info-bar"==b)c=jQuery(".ib-display").length<=0;else if("slide_in"==b){var d=jQuery(".si-open").find(".cp-slide-in-float-on").length,f=1;if(0==d)var f=0;c=jQuery(".si-open").length<=f&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1&&!ea.hasClass("cp_impression_counted")}return c},_canCpShow:function(){if(A=ka._getCookie(y),B=ka._getCookie(z),A="enabled"==q?!!B||ka._getCookie(y):ka._getCookie(y),"slide_in"==ba)if("enabled"==q)ka._removeCookie(y+"-conversion");else{A&&ea.hasClass("cp-always-minimize-widget")&&(ea.addClass("cp-minimize-widget"),A=!1);var a=ka._getCookie(y+"-conversion");a&&ea.hasClass("cp-always-minimize-widget")&&(A=!0)}return null==A&&(A=!1),void 0!==C&&""!==C&&(E=ka._isReferrer(C,g,D)),F=ka._isOtherPopupOpen(ba),!A&&p&&E&&F},_isWindowSize:function(a){return a.hasClass("cp-window-size")},_removeCookie:function(a){ka._createCookie(a,"",-1)},_createCookie:function(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3);var d="; expires="+e.toGMTString()}document.cookie=a+"="+b+d+"; path=/"},_getCookie:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d=b&&k<=c}return!0},_isReferrer:function(a,b,c){var d=!1;if(void 0!==b){var e=ka._stripTrailingSlash(b.replace(/.*?:\/\//g,"")),f=a.split(",");jQuery.each(f,function(a,b){var b=ka._stripTrailingSlash(b),f=e.replace("www.",""),g=f.split("."),h=(b.match(/./gim).length,""),i="";g[0];if(b=ka._stripTrailingSlash(b.replace(/.*?:\/\//g,"")),b=b.replace("www.",""),h=b.split("*"),-1!==f.indexOf("reddit.com")?f="reddit.com":-1!==f.indexOf("t.co")&&(f="twitter.com"),-1!==f.indexOf("plus.google.co")?f="plus.google.com":-1!==f.indexOf("google.co")&&(f="google.com"),i=h[0],i=ka._stripTrailingSlash(i),"display"==c){if(-1!==b.indexOf("*"))return i==f?(d=!0,!1):-1!==f.indexOf(i)?(d=!0,!1):(d=!1,!1);if(b==f)return d=!0,!1;if(-1!==f.indexOf(i))return d=!0,!1;d=!1}else if("hide"==c){if(-1!==b.indexOf("*"))return i==f?(d=!1,!1):-1!==f.indexOf(i)?(d=!1,!1):(d=!0,!1);if(b==f)return d=!1,!1;if(-1!==f.indexOf(i))return d=!1,!1;d=!0}})}return d},_stripTrailingSlash:function(a){return"/"===a.substr(-1)?a.substr(0,a.length-1):a},_getPrioritized:function(){var a="none";return jQuery(".cp-global-load").each(function(b,c){var d=jQuery(this).data("class-id");if(jQuery(this).hasClass("priority_modal"))return a=jQuery("."+d)}),a},_cpExecuteVideoAPI:function(a,b){var c=a.find("iframe");jQuery.each(c,function(a,d){var e=d.src,f=e.search("youtube.com");if(1==O&&(b="pause"),f>=1){var g=d.contentWindow;"play"==b?(g.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),c.hasClass("cp-youtube-frame")&&c.attr("src",c.attr("src").replace("autoplay=0","autoplay=1"))):(g.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),g.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}if(e.search("vimeo.com")>=1){var h=d.contentWindow;"play"==b?h.postMessage('{"method":"play"}',"*"):h.postMessage('{"method":"pause"}',"*")}})},_youtube_show_cta:function(a){var b=a.find(".cp-form-container");if(a.find(".cp-modal-body").hasClass("cp-youtube")&&!b.hasClass("cp-youtube-cta-none")){var c=b.attr("data-cta-delay")||"";""!=typeof c&&null!=c&&(c=parseInt(1e3*c),b.slideUp("500"),setTimeout(function(){b.slideDown("500")},c))}},_check_responsive_font_sizes:function(){jQuery(".cp_responsive[data-font-size-init]").each(function(a,b){var c=jQuery(b),d=jQuery(this).html();d.toLowerCase().indexOf("cp_font")>=0&&d.match("^$")?c.addClass("cp-no-responsive"):c.removeClass("cp-no-responsive")})},_count_inline_impressions:function(a){var b=a.data("module-type"),c="";"modal"==b?c=".cp-modal-inline-end":"info-bar"==b?c=".cp-info_bar-inline-end":"slide_in"==b&&(c=".cp-slide_in-inline-end"),jQuery(c).each(function(a){var c=jQuery(this),d=ka._isScrolledIntoStyleView(c),e=c.data("style"),f=ka._getCookie("cp-impression-added-for"+e);if("modal"==b){var g=!jQuery(".cp-overlay[data-modal-style="+e+"]").hasClass("cp_impression_counted")&&!jQuery(".cp-overlay[data-modal-style="+e+"]").hasClass("cp-disabled-impression");h=".cp-overlay[data-modal-style="+e+"]"}else if("info-bar"==b)var g=!jQuery("[data-info_bar-style="+e+"]").hasClass("cp_impression_counted")&&!jQuery("[data-info_bar-style="+e+"]").hasClass("cp-disabled-impression"),h="[data-info_bar-style="+e+"]";else if("slide_in"==b)var g=!jQuery("[data-slidein-style="+e+"]").hasClass("cp_impression_counted")&&!jQuery("[data-slidein-style="+e+"]").hasClass("cp-disabled-impression"),h="[data-slidein-style="+e+"]";if(d&!f){var i=Array();g&&(i.push(e),ka.update_impressions(i),ka._createCookie("cp-impression-added-for"+e,!0,1)),jQuery(h).each(function(){c.addClass("cp_impression_counted")})}})},_close_button_tootip:function(){if("modal"==ba&&"undefined"!==ba)jQuery(".cp-overlay").each(function(a){var b=jQuery(this),c=b.find(".cp-tooltip-icon").data("classes"),d=(b.find(".cp-tooltip-icon").data("closeid"),b.find(".cp-tooltip-icon").data("color")),e=b.find(".cp-tooltip-icon").data("bgcolor"),f=b.find(".cp-tooltip-icon").data("font-family"),g=(b.find(".cp-modal-content").height(),jQuery(window).width(),b.data("modal-id"),"");b.find(".cp-overlay-close").hasClass("cp-adjacent-left")?g="right":b.find(".cp-overlay-close").hasClass("cp-adjacent-right")&&(g="left"),b.find(".cp-tooltip-icon").removeAttr("data-position"),b.find(".cp-tooltip-icon").attr("data-position",g);var h=g;jQuery("body").addClass("customize-support"),void 0!==c&&jQuery("."+c).remove(),jQuery("head").append('"),"left"==h?jQuery("head").append('"):"right"==h?jQuery("head").append('"):jQuery("head").append('")});else if("slide_in"==ba&&"undefined"!==ba){var a=ca.find(".has-tip").data("classes"),b=(ca.find(".has-tip").data("closeid"),ca.find(".has-tip").data("color")),c=ca.find(".has-tip").data("bgcolor"),d=(ca.find(".cp-slidein-content").height(),jQuery(window).width(),ca.find(".has-tip").data("position"));jQuery("body").addClass("customize-support"),jQuery("head").append('"),"left"==d?jQuery("head").append('"):"right"==d?jQuery("head").append('"):jQuery("head").append('")}},_isScrolledIntoStyleView:function(b){var c=b,d=a(window),e=d.scrollTop(),f=e+d.height(),g=c.offset().top;return g+c.height()<=f&&g>=e},_cp_modal_isOnScreen:function(b){var c=a(window),d={top:c.scrollTop(),left:c.scrollLeft()};d.right=d.left+c.width(),d.bottom=d.top+c.height();var e=b.offset();return e.right=e.left+b.outerWidth(),e.bottom=e.top+b.outerHeight(),!(d.righte.right||d.bottome.bottom)},_infoBarPos:function(a){if(a.hasClass("cp-pos-top"))a.css("top","0");else if(a.hasClass("ib-fixed"))a.css("top","auto");else{var b=a.data("toggle"),c=jQuery("body").parent("html").height(),d=a.find(".cp-ifb-toggle-btn").outerHeight(),e=a.find(".cp-info-bar-body").outerHeight();1==b&&(c=c-e+d),a.hasClass("cp-info-bar-inline")||a.css("top",c+"px"),a.css("min-height",e+"px")}if(jQuery("body").hasClass("admin-bar")&&a.hasClass("cp-pos-top")){var f=jQuery("#wpadminbar").outerHeight();a.hasClass("cp-info-bar-inline")||a.css("top",f+"px")}},_windowSize:function(){var a=this.find(".cp-content-container"),b=this.find(".cp-info-bar"),c=this.find(".cp-info-bar-content"),d=this.find(".cp-info-bar-body");b.removeAttr("style"),c.removeAttr("style"),a.removeAttr("style"),d.removeAttr("style");var e=jQuery(window).width()+30,f=jQuery(window).height();jQuery(this).find("iframe").css("width",e),a.css({"max-width":e+"px",width:"100%",height:f+"px",padding:"0",margin:"0 auto"}),c.css({"max-width":e+"px",width:"100%"}),b.css({"max-width":e+"px",width:"100%",left:"0",right:"0"}),d.css({"max-width":e+"px",width:"100%",height:f+"px"})},_cp_set_ifb_ht:function(a){var b=parseInt(jQuery(a).outerHeight()),c=jQuery(window).outerWidth(),d=window.navigator.userAgent,e=0;void 0!==d&&(e=d.indexOf("MSIE ")),(e>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&(c>768?jQuery(a).find(".cp-info-bar-body").css({height:b+"px"}):jQuery(a).find(".cp-info-bar-body").css({height:"auto"}))},_cp_ifb_color_for_list_tag:function(a){var b=jQuery(a).data("class");jQuery(a).find("li").each(function(){if(0==jQuery(this).parents(".cp_social_networks").length){var a=jQuery(this),c=a.parents("div").attr("class").split(" ")[0],d=a.index()+1,e=a.find(".cp_font").css("font-size"),f=a.find("span").css("color"),g=a.parent(),g=g[0].nodeName.toLowerCase();"ul"==g?"none"==a.closest("ul").css("list-style-type")&&a.closest("ul").css("list-style-type","disc"):"none"==a.closest("ol").css("list-style-type")&&a.closest("ol").css("list-style-type","decimal"),jQuery(this).find("span").each(function(){var a=jQuery(this).css("color");a.length>0&&(f=a)});var h="";jQuery(".cp-li-color-css-"+d).remove(),jQuery(".cp-li-font-css-"+d).remove(),e&&(h="font-size:"+e,jQuery("head").append('")),f&&jQuery("head").append('")}})},_apply_push_page_down:function(a,b){setTimeout(function(){var b=(a.data("toggle"),a.data("toggle-visible")||null);ka._push_page_down(a,!1,b)},300)},_push_page_down:function(b,c,d){var e=b.data("push-down")||null,f=b.data("animate-push-page"),g=jQuery("#cp-top-offset-container").val();if(e&&!d&&b.hasClass("cp-pos-top")){var h="",i=ka._cal_top_margin_push_down(b,f,c);isNaN(parseFloat(i))||(1==f?""==g?(jQuery("body").removeClass("cp_push_no_scroll").addClass("cp_push_scroll_animate"),h="body.cp_push_scroll_animate{margin-top:"+i+"px!important}"):h=g+"{margin-top:"+i+"px}":""==g?(jQuery("body").removeClass("cp_push_scroll_animate").addClass("cp_push_no_scroll"),h="body.cp_push_no_scroll{margin-top:"+i+"px!important}"):h=g+"{margin-top:"+i+"px}",a(".cp-push-page-css").remove(),a("head").append('"))}},_cal_top_margin_push_down:function(a,b,c){var d=(jQuery("#cp-push-down-support").val(),jQuery("#cp-top-offset-container").val()),e=jQuery("#wpadminbar").outerHeight(),f=a.outerHeight();if(""==d&&ma<=1)var g=jQuery("body").offset().top,h={margin_top:jQuery("body").css("margin-top"),top:jQuery("body").css("top")};else if(jQuery(d).length>0)var g=jQuery(d).offset().top,h={margin_top:jQuery(d).css("margin-top"),top:jQuery(d).css("top")};if(void 0!==h){var i=JSON.stringify(h);jQuery("#cp-top-offset-container").attr("data-offset_def_settings",i)}void 0===g&&(g=0),void 0===e&&(e=0);var j=f+g-e,k=f+g,l=(jQuery("#cp-push-down-support").outerHeight(),k-0);return c&&(l=e+f,j=f),1==b?jQuery("#cp-push-down-support").stop().animate({top:l+"px"},1200):jQuery("#cp-push-down-support").css("top",l+"px"),j},_cp_ifb_toggle:function(){jQuery(".cp-info-bar").each(function(a,b){var c=jQuery(b);c.find(".cp-ifb-toggle-btn").click(function(){var a=jQuery(this),b=a.closest(".cp-info-bar"),d="smile-slideInDown",e=b.data("exit-animation"),f=b.data("entry-animation"),g=b.find(".cp-info-bar-body"),h=b.data("toggle-visible"),i=b.data("impression-added"),j=b.data("info_bar-id");if(1==h&&void 0===i&&!b.hasClass("cp-disabled-impression")){var k=[j];ka.update_impressions(k),b.data("impression-added","true")}var l=!1;ka._push_page_down(b,l,null),b.removeClass(f),b.removeClass(e),b.hasClass("cp-pos-bottom")&&(d="smile-slideInUp");var m=b.attr("class");a.removeClass("cp-ifb-show smile-animated "+d),b.attr("class",m),b.attr("class",m+" smile-animated "+f),b.removeClass("cp-ifb-hide"),a.addClass("cp-ifb-hide"),g.addClass("cp-flex"),b.find(".ib-close").css({visibility:"visible"});var l=!0;ka._push_page_down(c,l)}),c.find(".ib-close").click(function(){var a=jQuery(this).parents(".cp-info-bar"),b=a.find(".cp-ifb-toggle-btn"),c=a.find(".cp-info-bar-body"),d="smile-slideInDown",e=a.data("exit-animation"),f=a.data("entry-animation"),g=a.data("toggle"),h=a.find(".form-main").attr("class");if(1==g){a.hasClass("cp-pos-bottom")&&(d="smile-slideInUp"),a.removeClass(f);var i=a.attr("class");a.attr("class",i+" "+e),setTimeout(function(){b.removeClass("cp-ifb-hide"),b.addClass("cp-ifb-show smile-animated "+d),a.removeClass("smile-animated"),a.removeClass(e),a.addClass("cp-ifb-hide"),c.removeClass("cp-flex"),a.find(".ib-close").css({visibility:"hidden"}),void 0!==h&&(a.find(".smile-optin-form")[0].reset(),a.find(".cp-form-processing-wrap").css("display","none"),a.find(".cp-form-processing").removeAttr("style"),a.find(".cp-msg-on-submit").removeAttr("style"),a.find(".cp-m-success").remove(),a.find(".cp-m-error").remove())},1500)}})})},_adjustToggleButton:function(a){if(a.find(".cp-slidein-toggle").length>0){var b=a.find(".cp-slidein-head").outerHeight();a.find(".cp-animate-container").css({height:b+"px",opacity:"0"})}}};a(window).on("load",function(){a(".cp-global-load").each(function(b){var c=jQuery(this).data("inactive-time");void 0!==c&&(c*=1e3,jQuery(document).idleTimer({timeout:c,idle:!1})),ka.init(b,a(this),"load"),void 0!==window.orientation&&(O=!0)}),a(".cp-modal-global").each(function(){var b=a(this).data("modal-style");if(void 0!==b&&""!==b){var c=jQuery(".cp-modal-popup-container."+b);c.hasClass("cp-inline-modal-container")||(c.appendTo(document.body),a(this).appendTo(document.body))}}),jQuery("html").addClass("cp-overflow-hidden");var b=[];jQuery.each(S,function(c,d){-1===a.inArray(d,b)&&b.push(d)}),jQuery.each(b,function(b,c){if(""!=c&&"undefined"!=c&&null!=c){var d="."+c,e=!1;if(-1!=c.indexOf("#")||-1!=c.indexOf(".")){var f=c;f=f.replace(/^(?:\[[^\]]*\]|\([^()]*\))\s*|\s*(?:\[[^\]]*\]|\([^()]*\))/g,""),d=f,e=!0}jQuery("body").on("click",d,function(b){if(e)var c=jQuery(".cp-global-load[data-custom-selector='"+ia+"']");else var c=jQuery(".cp-global-load"+d);var f=c.data("module-type"),g=!1;if(jQuery(this).hasClass("global_info_bar_container")&&(g=!0),"modal"==f){var h=c.data("modal-style");if(!jQuery(".cp-modal-popup-container."+h).find(".cp-animate-container").hasClass("cp-form-submit-success")){b.preventDefault();var i=c.data("class-id"),j=a("."+i);if(j.hasClass("cp-window-size")&&j.windowSize(),a(".global_modal_container.cp-open").length<=0){ka._displayPopup(j,f,h);var k=j.find(".cp-tooltip-icon").data("classes");a("head").append('")}0!==R.length&&(a(this).hasClass("cp-disabled")||j.hasClass("cp-disabled-impression")||(ka.update_impressions(R),a(document).trigger("cp_custom_class_clicked",[this])))}}else if("info-bar"!=f||g){if("slide_in"==f&&!jQuery(this).hasClass("slidein-overlay")){b.preventDefault();var f=c.data("module-type"),l=c,i=c.data("class-id"),m=a("."+i),n=m.data("slidein-style"),o=jQuery(".si-open").length<=1&&jQuery(".si-open").find(".cp-slide-in-float-on").length<=1;o&&(m.find(".cp-animate-container").removeClass("cp-hide-slide"),ka._displayPopup(m,f,n))}}else{jQuery(this).hasClass("global_info_bar_container")||b.preventDefault();var l=c.first(),p=l.data("info_bar-id");if(!l.hasClass("cp-form-submit-success")){var i=l.data("custom-class");ka._isOtherPopupOpen(f)&&(l.css("display","block"),ka._displayPopup(l,f,p))}}})}})}),a(document).on("mouseleave",function(c){a(".cp-global-load").each(function(d){var e=a(this);"enabled"==e.data("exit-intent")&&(0==b(e)&&ka.init(c,e,"mouseleave"))})}),a(document).scroll(function(c){clearTimeout(a.data(this,"CP_scrollEvent")),a.data(this,"CP_scrollEvent",setTimeout(function(){a(".cp-global-load").each(function(d){var e=a(this),f=e.data("onscroll-value"),g=e.data("scroll-class"),h=(e.data("after-content-value"),e.hasClass("cp-after-post")||e.hasClass("ib-after-post")||e.hasClass("si-after-post"));if(void 0!==g&&""!==g||""!==f||h){0==b(e)&&ka.init(c,e,"scroll")}ka._count_inline_impressions(a(this))})},200))}),jQuery(document).on("idle.idleTimer",function(b,c,d){a(".cp-global-load").each(function(c){ka.init(b,a(this),"idle")})}),jQuery(document).ready(function(){ka._check_responsive_font_sizes(),jQuery(".blinking-cursor").remove(),a(".cp-global-load").each(function(b){ka._count_inline_impressions(a(this))}),ka._cp_ifb_toggle()}),jQuery(window).on("load",function(b){clearTimeout(a.data(this,"cp_check_empty_span")),a.data(this,"cp_check_empty_span",setTimeout(function(){var a=jQuery.trim(jQuery(".cp-load-after-post").parent().text());if(void 0!==a){if("0"==jQuery.trim(a).length){1!==jQuery(window.parent.document).find(".cs-preview-frame-container").length&&jQuery(".cp-load-after-post").parent().addClass("cp-empty-content")}}navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/)&&jQuery("html").addClass("cp-iphone-browser")},1e3))});var la,ma=0;jQuery(window).on("resize",function(a){clearTimeout(la),la=setTimeout(function(){ka._close_button_tootip(),jQuery(".cp-info-bar.ib-display").each(function(){var a=jQuery(this);ma++,ka._apply_push_page_down(a,"resize")}),jQuery(".cp-info-bar").each(function(a){ka._infoBarPos(jQuery(this))})},1e3)}),jQuery(window).on("modalOpen",function(a,b){ka._close_button_tootip()}),jQuery(document).on("cp_conversion_done",function(a,b,c){if(!jQuery(b).parents(".cp-form-container").find(".cp-email").length>0){jQuery(b).parents(".cp-form-container").find('[name="only_conversion"]').length>0&&jQuery(b).parents(".cp-modal-popup-container").hasClass("cp-"+c)&&jQuery(b).addClass("cp-disabled")}}),jQuery(document).on("cp_custom_class_clicked",function(a,b){jQuery(b).addClass("cp-disabled")}),jQuery(document).on("click",".cp-form-submit-error",function(a){var b=jQuery(this),c=b.find(".cp-form-processing-wrap"),d=b.find(".cp-tooltip-icon").data("classes"),e=b.find(".cp-msg-on-submit");c.hide(),b.removeClass("cp-form-submit-error"),e.html(""),e.removeAttr("style"),jQuery("head").append('")}),jQuery(".cp-overlay").on("idle.idleTimer",function(a,b,c){var d=jQuery(".cp-overlay");jQuery(document).trigger("closeModal",[d]);var e=d.find(".cp-tooltip-icon").data("classes");setTimeout(function(){jQuery("head").append('")},1e3)}),jQuery(document).on("idle.idleTimer",function(a,b,c){if(jQuery(".ib-display").hasClass("cp-close-after-x")){var d=jQuery(".ib-display");jQuery(document).trigger("cp_close_info_bar",[d])}if(jQuery(".slidein-overlay").hasClass("cp-close-after-x")){var e=jQuery(".slidein-overlay");jQuery(document).trigger("closeSlideIn",[e])}}), jQuery(document).on("click",".cp-close",function(a){if(!jQuery(this).parents(".cp-overlay").hasClass("do_not_close")){var b=jQuery(this).parents(".cp-overlay");jQuery(document).trigger("closeModal",[b])}}),jQuery(document).on("click",".cp-inner-close",function(a){var b=jQuery(this).parents(".cp-overlay");jQuery(document).trigger("closeModal",[b])}),jQuery(document).on("closeModal",function(b,c){var d=c.data("class"),e=a(".cp-global-load[data-class-id="+d+"]");ka.init(b,e,"closepopup")}),jQuery(document).on("cp_close_info_bar",function(b,c){var d=c.data("class");a(".cp-ib-onload[data-class-id="+d+"]");ka.init(b,c,"closepopup")}),jQuery("body").on("click",".cp-slidein-head .cp-widget-open",function(a){var b=jQuery(this).parents(".slidein-overlay"),c=b.data("closed-cookie-time"),d=b.data("slidein-id"),e=b.find(".cp-animate-container"),f=(b.data("overlay-animation"),e.data("exit-animation"),b.data("conversion-cookie-time"),"temp_"+d);ka._createCookie(f,!0,1),ka._getCookie(d)||c&&(b.addClass("cp-always-minimize-widget"),ka._createCookie(d,!0,c))}),jQuery(document).on("closeSlideIn",function(b,c){var d=(c.parents(".cp-slidein-popup-container"),c.data("class")),e=a(".si-onload[data-class-id="+d+"]");ka.init(b,e,"closepopup")}),jQuery(".smile-optin-form").each(function(){var a=jQuery(this).find("input.cp-input").last();a.hasClass("cp-input")&&a.addClass("cp-last-field")}),jQuery("input.cp-input").keydown(function(a){9==(window.event?a.which:a.keyCode)&&jQuery(this).hasClass("cp-last-field")&&(a.preventDefault(),jQuery(this).parents(".smile-optin-form").find(".cp-submit").attr("tabindex",-1).focus())}),a(document).scroll(function(b){clearTimeout(a.data(this,"CP_scrollTimer")),a.data(this,"CP_scrollTimer",setTimeout(function(){a(".cp-ib-onload.cp-pos-top").each(function(b){var c=a(this),d=c.outerHeight(),e=c.data("push-down")||null;c.data("toggle-visible");if(e&&c.hasClass("ib-display")&&c.hasClass("ib-fixed")){var f=jQuery(".fusion-header-wrapper").find(".fusion-sticky-menu-"),g="";if(void 0!==f&&(g=f.length),g>0){var h=".fusion-header";(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(h=".fusion-secondary-main-menu");var i=jQuery("#wpadminbar").outerHeight(),j=d+i;if(jQuery(h).addClass("cp-fusion-header"),jQuery(".cp_fusion_css").remove(),c.find(".cp-ifb-toggle-btn").hasClass("cp-ifb-show")){var k=".cp-fusion-header{top:"+i+"px !important}";a("head").append("")}else{var k=".cp-fusion-header{top:"+j+"px !important}";a("head").append("")}jQuery(h).addClass("cp-scroll-start")}}else{var h=".fusion-header";(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(h=".fusion-secondary-main-menu"),jQuery(h).addClass("cp-fusion-header");var i=jQuery("#wpadminbar").outerHeight(),k=".cp-fusion-header{top:"+i+"px !important}";a("head").append("")}})},100))}),jQuery(document).on("infobarOpen",function(b,c){var d=c,e=d.outerHeight(),f=d.data("push-down")||null;if(jQuery(".fusion-header-wrapper").find(".fusion-sticky-menu-").length&&f){var g=".fusion-header";(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))&&(g=".fusion-secondary-main-menu");var h=jQuery("#wpadminbar").outerHeight(),i=e+h,j=jQuery(g).css("top");if(jQuery(g).attr("data-old-top",j),!d.data("toggle-visible")&&d.hasClass("ib-fixed")){jQuery(".cp_fusion_css").remove(),jQuery(g).addClass("cp-fusion-header");var k=".cp-fusion-header{top:"+i+"px !important}";a("head").append(""),jQuery(g).addClass("cp-scroll-start")}}}),jQuery(document).on("cp_close_info_bar",function(b,c){var d=c,e=(d.outerHeight(),d.data("push-down")||null);if(jQuery("body").hasClass("fusion-header-layout-v4")||jQuery("body").hasClass("fusion-header-layout-v5"))var f=".fusion-secondary-main-menu";else var f=".fusion-header";if(e){jQuery(f).attr("data-old-top");jQuery(".cp_fusion_css").remove()}c.addClass("cp-stop-scroll"),jQuery(f).removeClass("cp-scroll-start"),a(".cp-push-page-css").remove()}),jQuery(document).bind("gform_confirmation_loaded",function(a,b){var c=jQuery("#gf_"+b),d=c.parents(".cp-module").data("style-id"),e=c.parents(".cp-module").data("module-name");jQuery(document).trigger("cp_custom_analytics",[d]),jQuery(document).trigger("cp_custom_close_module",[c,e])}),document.addEventListener("wpcf7submit",function(a){var b=a.detail.status,c=a.detail.id;if("mail_sent"==b){var d=jQuery("#"+c),e=d.parents(".cp-module").data("style-id"),f=d.parents(".cp-module").data("module-name");jQuery(document).trigger("cp_custom_analytics",[e]),jQuery(document).trigger("cp_custom_close_module",[d,f])}},!1),jQuery(document).on("nfFormSubmitResponse",function(a,b){var c=(b.response.errors,"nf-form-"+b.id+"-cont"),d=jQuery("#"+c),e=d.parents(".cp-module").data("style-id"),f=d.parents(".cp-module").data("module-name");jQuery(document).trigger("cp_custom_analytics",[e]),jQuery(document).trigger("cp_custom_close_module",[d,f])}),jQuery(window).on("cp_custom_close_module",function(a,b,c){if("modal"==c){var d=b.parents(".cp-open");jQuery(document).trigger("closeModal",[d])}else if("slidein"==c){var e=b.parents(".slidein-overlay");jQuery(document).trigger("closeSlideIn",[e])}else if("infobar"==c){var f=b.parents(".cp-info-bar");jQuery(document).trigger("cp_close_info_bar",[f])}}),jQuery(window).on("cp_custom_analytics",function(a,b){setTimeout(function(){var a=jQuery(".cp-impress-nonce").val(),c={action:"smile_update_custom_conversions",conversion:!0,style_id:b,option:"smile_modal_styles",security:a};jQuery.ajax({url:smile_ajax.url,data:c,type:"POST",dataType:"HTML",security:jQuery(".cp-impress-nonce").val(),beforeSend:function(a){ha=!1}})},2e3)})}(jQuery); function cp_column_equilize(){setTimeout(function(){jQuery(".cp-columns-equalized").each(function(){if(jQuery(this).closest(".cp-overlay").hasClass("cp-open")||jQuery(this).closest(".global_modal_container").hasClass("cp-modal-inline")){var a=jQuery(window).width(),b=Array();jQuery(this).children(".cp-column-equalized-center").each(function(){var a=jQuery(this).outerHeight();b.push(a)});var c=0;jQuery(this).find(".cp-image-container").length>0&&jQuery(this).find(".cp-highlight").each(function(a,b){c++});var d=parseInt(jQuery(this).css("padding-top")),e=parseInt(jQuery(this).css("padding-top")),f=d+e,g=Math.max.apply(Math,b)+f;g-=c,a>768?jQuery(this).css("height",g):jQuery(this).css("height","auto")}})},200)}function CPResponsiveTypoInit(){jQuery(".cp_responsive").each(function(a,b){var c=jQuery(b);if(!c.hasClass("cp_line_height")){var d=c.css("font-size"),e=c.attr("data-font-size");e||c.attr("data-font-size-init",d)}if(!c.hasClass("cp_font")){var f=c.css("line-height"),e=c.attr("data-line-height");e||c.attr("data-line-height-init",f)}})}function CPModelHeight(){setTimeout(function(){jQuery(".cp-overlay").parents("body").hasClass("admin_page_cp_customizer")?jQuery(".cp-modal-popup-container").each(function(a,b){var c=jQuery(b),d=c.find(".cp-modal"),e=c.find(".cp-overlay"),f=c.find(".cp-overlay").outerHeight(),g=c.find(".cp-modal-body").outerHeight();jQuery(window).width();jQuery(this).find(".cp-overlay").hasClass("cp-open")&&(jQuery(this).hasClass("cp-inline-modal-container")||(g>f?(d.addClass("cp-modal-exceed"),e.each(function(a,b){jQuery(b).hasClass("cp-open")&&jQuery("html").addClass("cp-exceed-vieport"),jQuery("html").removeClass("cp-window-viewport")})):(d.removeClass("cp-modal-exceed"),jQuery("html").removeClass("cp-exceed-vieport"),d.css("height","")))),set_affiliate_link()}):jQuery(".cp-overlay").each(function(a,b){var c=jQuery(b),d=c.find(".cp-modal"),e=c,f=c.outerHeight(),g=c.find(".cp-modal-body").outerHeight();jQuery(window).width();c.hasClass("cp-open")&&(c.hasClass("cp-inline-modal-container")||(g>f||g>=650?(d.addClass("cp-modal-exceed"),e.each(function(a,b){jQuery(b).hasClass("cp-open")&&jQuery("html").addClass("cp-exceed-viewport"),jQuery("html").removeClass("cp-window-viewport")})):(d.removeClass("cp-modal-exceed"),jQuery("html").removeClass("cp-exceed-vieport"),d.css("height","")))),set_affiliate_link()})},1200)}function set_affiliate_link(a){jQuery(".cp-overlay").each(function(){var b=jQuery(this).find(".cp-modal").hasClass("cp-modal-window-size"),c=jQuery(this).data("affiliate_setting");if(vw=jQuery(window).width(),cp_affilate_link=jQuery(this).find(".cp-affilate-link"),cp_animate_container=jQuery(this).find(".cp-animate-container"),cp_overlay=jQuery(this),jQuery(this).hasClass("ps-container"))var c=a;if("1"==c)if(b)if(vw<=768){cp_affilate_link.addClass("cp-afl-for-smallscreen"),cp_affilate_link.appendTo(cp_animate_container);jQuery(this).find(".cp-modal-content").outerHeight()}else cp_affilate_link.removeClass("cp-afl-for-smallscreen"),cp_affilate_link.appendTo(cp_overlay),cp_affilate_link.css("top","");else vw<=768?(cp_affilate_link.appendTo(cp_animate_container),cp_affilate_link.addClass("cp-afl-for-smallscreen")):(cp_affilate_link.removeClass("cp-afl-for-smallscreen"),cp_affilate_link.appendTo(cp_overlay))})}function cp_color_for_list_tag(){jQuery(".cp-overlay").each(function(){var a=jQuery(this);jQuery(this).parents(".cp_responsive").length;jQuery(this).find("li").each(function(){if(0==jQuery(this).parents(".cp_social_networks").length&&0==jQuery(this).parents(".custom-html-form").length){var b=jQuery(a).find(".cp-modal-body").attr("class").split(" ")[1],c=jQuery(this).parents(".cp_responsiv").attr("class");c=null!==c&&void 0!==c?jQuery(this).parents(".cp_responsive").attr("class").split(" ")[0]:jQuery(this).parents("div").attr("class").split(" ")[0];var d=jQuery(this).index()+1,e=jQuery(this).find(".cp_font").css("font-size"),f=jQuery(this).find("span").css("color"),g=jQuery(this).parent(),g=g[0].nodeName.toLowerCase();"ul"==g?"none"==jQuery(this).closest("ul").css("list-style-type")&&jQuery(this).closest("ul").css("list-style-type","disc"):"none"==jQuery(this).closest("ol").css("list-style-type")&&jQuery(this).closest("ol").css("list-style-type","decimal"),jQuery(this).find("span").each(function(){var a=jQuery(this).css("color");a.length>0&&(f=a)});var h="";jQuery(".cp-li-color-css-"+d).remove(),jQuery(".cp-li-font-css-"+d).remove(),e&&(h="font-size:"+e,jQuery("head").append('")),f&&jQuery("head").append('")}})})}function cp_modal_common(a){cp_column_equilize(),cp_row_equilize(),addPaddingtoYoutubeFrame()}function cp_form_sep_setting(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var a=jQuery(this).find(".cp-form-separator").data("form-sep-pos"),b=jQuery(this).find(".cp-form-separator").data("form-sep-part"),c=jQuery(this).find(".cp-form-separator").data("form-sep");if("horizontal"==a?"part-of-content"==b?jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-content-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row .cp-form-section")):jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row")),"part-of-content"==b)var d=jQuery(this).find(".cp-content-section-overlay").css("background-color");else var d=jQuery(this).find(".cp-form-section-overlay").css("background-color");var e=cp_get_viewbox_svg(c),f=cp_get_svg(c,d,e,b);jQuery(this).find(".cp-form-separator").html(f)}})}function cp_get_svg(a,b,c,d){var e="";aspRatio="waves"==a?'preserveAspectRatio="none"':"",svgclass=0==d?" right":" left";jQuery(".cp-modal-content").outerHeight();switch(e+='',a){case"waves":var f='';e+=f;break;case"triangle":var f='';e+=f;break;case"big_triangle_right":case"big_triangle_left":var g='';e+=g;break;case"clouds":e+='';break;case"curve_center":var f='';e+=f;break;case"tilt":var g='';e+=g;break;case"circle_bottom":var f='';e+=f;break;case"round_split":var f='';e+=f}return e+=""}function cp_get_viewbox_svg(a){var b="";switch(a){case"triangle":var b="0 0 4.66666 0.333331";break;case"big_triangle_left":case"big_triangle_right":var b="0 -148 1600 90";break;case"waves":var b="0 0 6 0.1";break;case"clouds":var b="0 0 1600 90";break;case"curve_center":var b="0 0 4.66666 0.333331";break;case"tilt":var b="0 172 1600 90";break;case"circle_bottom":var b="0 0 0.2 0.1";break;case"round_split":var b="0 0 1600 90"}return b}function cp_form_sep_top(){setTimeout(function(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var a=jQuery(this).find(".cp-form-separator"),b=jQuery(this).find(".cp-content-section").outerHeight()-5+"px",c=jQuery(this).find(".cp-form-section").outerHeight()-5+"px";a.hasClass("cp-fs-horizontal")&&(a.hasClass("part-of-content")?a.hasClass("upward")?a.css("bottom",b):a.css("top",b):a.hasClass("upward")?a.css("bottom",c):a.css("top",c))}})},500)}function cp_set_width_svg(){setTimeout(function(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var a=jQuery(this).find(".cp-form-separator");if(a.length>0){var b=jQuery(this).find(".cp-content-section"),c=jQuery(this).find(".cp-form-section"),d=a.find("svg").outerHeight()+10+"px";a.hasClass("form_bottom")||a.hasClass("img_left_form_bottom")||a.hasClass("img_right_form_bottom")||a.hasClass("form_bottom_img_top")?a.hasClass("part-of-content")?(c.css("padding",d+" 15px 15px 15px"),b.css("padding","15px")):(b.css("padding","15px 15px "+d+" 15px"),c.css("padding","15px")):a.hasClass("form_left")||a.hasClass("form_left_img_botttom")||a.hasClass("form_left_img_top")?f>=768?a.hasClass("part-of-content")?(c.css("padding","15px "+d+" 15px 15px"),b.css("padding","15px")):(b.css("padding","15px 15px 15px "+d),c.css("padding","15px")):a.hasClass("part-of-content")?(c.css("padding","15px 15px "+d+" 15px"),b.css("padding","15px")):(b.css("padding",d+" 15px 15px 15px"),c.css("padding","15px")):f>=768?a.hasClass("part-of-content")?(c.css("padding","15px 15px 15px "+d),b.css("padding","15px")):(b.css("padding","15px "+d+" 15px 15px"),c.css("padding","15px")):a.hasClass("part-of-content")?(c.css("padding",d+" 15px 15px 15px"),b.css("padding","15px")):(b.css("padding","15px 15px "+d+" 15px"),c.css("padding","15px"))}var e=jQuery(this).find(".cp-modal-body > .cp-row").outerHeight()+5+"px",f=jQuery(window).width();(a.hasClass("triangle")||a.hasClass("round_split")||a.hasClass("tilt"))&&(a.hasClass("form_bottom")||a.hasClass("img_left_form_bottom")||a.hasClass("img_right_form_bottom")||a.hasClass("form_bottom_img_top")?a.find("svg").attr("width","100%"):f>=768?a.hasClass("tilt")?a.find("svg").attr("width","100%"):a.find("svg").attr("width",e):a.find("svg").attr("width","100%"))}})},200)}function form_sep_position(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")){var a=jQuery(this).find(".cp-form-separator"),b=jQuery(window).width();a.hasClass("form_bottom")||jQuery(".cp-form-separator").hasClass("form_bottom_img_top")||(b<768?a.hasClass("part-of-form")?(a.removeClass("cp-fs-vertical cp-fs-vertical-form").addClass("cp-fs-horizontal cp-fs-horizontal-form"),jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-form-section"))):(jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-content-section")),a.removeClass("cp-fs-vertical cp-fs-vertical-content").addClass("cp-fs-horizontal cp-fs-horizontal-content")):a.hasClass("img_left_form_bottom")||a.hasClass("img_right_form_bottom")||(jQuery(this).find(".cp-form-separator").appendTo(jQuery(this).find(".cp-modal-body > .cp-row")),jQuery(this).find(".cp-form-separator").hasClass("part-of-form")?jQuery(this).find(".cp-form-separator").removeClass("cp-fs-horizontal cp-fs-horizontal-form cp-fs-vertical-content").addClass("cp-fs-vertical cp-fs-vertical-form"):jQuery(this).find(".cp-form-separator").removeClass("cp-fs-horizontal cp-fs-horizontal-content").addClass("cp-fs-vertical cp-fs-vertical-content"),jQuery(this).find(".cp-form-separator").css({bottom:"",top:""})))}})}function addPaddingtoYoutubeFrame(){if(jQuery(".cp-youtube-container").length)if(jQuery(".cp-modal").hasClass("cp-modal-window-size")){var a=jQuery(".cp-form-container").outerHeight(),b=jQuery(".cp-form-container").css("display");"none"!=b?jQuery(".cp-youtube-frame").css("padding-bottom",a+"px"):jQuery(".cp-youtube-frame").css("padding-bottom","")}else jQuery(".cp-youtube-frame").css("padding-bottom","")}function cp_row_equilize(){setTimeout(function(){jQuery(".cp-row-equalized-center").each(function(){var a=(jQuery(window).width(),jQuery(this).closest(".cp-row-equalized-center").outerHeight());jQuery(this).closest(".cp-modal-body").css("min-height").replace("px","")=0?a.addClass("count-down-shadow"):a.removeClass("count-down-shadow")})}function cp_social_responsive(){var a=jQuery(window).width();jQuery(".cp-modal").find(".cp_social_networks").each(function(){var b=jQuery(this).data("column-no"),c="";a<768?(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass(b),c=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks cp_social_autowidth "+c)):(jQuery(this).removeClass("cp_social_networks"),jQuery(this).removeClass("cp_social_autowidth"),jQuery(this).removeClass(b),c=jQuery(this).attr("class"),jQuery(this).attr("class","cp_social_networks "+b+" "+c))})}!function(a){function b(a,b){a.hasClass("cp-description")||a.hasClass("cp-short-description")||a.hasClass("cp-info-container")?a.fitText(1.7,{minFontSize:"12px",maxFontSize:b}):a.fitText(1.2,{minFontSize:"16px",maxFontSize:b})}function c(){jQuery(".cp_responsive").each(function(a,c){var d="",e=jQuery(window).width(),f=jQuery(c),g=f.css("font-size"),h=f.attr("data-font-size"),i=f.attr("data-font-size-init"),j=f.attr("data-line-height"),k=f.attr("data-line-height-init");h?g=h:i&&(g=i),j?d=j:k&&(d=k),e<=800?(f.hasClass("cp-submit")?f.css({"line-height":"1.15em"}):f.css({display:"block","line-height":"1.15em"}),b(f,g)):(f.css({display:"","line-height":d}),f.fitText(1.2,{minFontSize:g,maxFontSize:g}))})}function d(){jQuery(".cp-overlay").each(function(){var a=jQuery(window).innerWidth(),b=(jQuery(this).data("image-position"),jQuery(this).data("hide-img-on-mobile"));b&&(a<=b?jQuery(this).find(".cp-image-container").addClass("cp-hide-image"):jQuery(this).find(".cp-image-container").removeClass("cp-hide-image"))})}function e(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-optin-to-win")){var a=jQuery(window).innerWidth(),b=(jQuery(this).data("image-position"),jQuery(this).data("hide-img-on-mobile"));a<=b?b>=768&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 ")}})}function f(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-direct-download")){var a=jQuery(window).width(),b=(jQuery(this).data("image-position"),jQuery(this).data("hide-img-on-mobile"));a<=b?b>=768&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 ")}})}function g(){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-free-ebook")){var a=jQuery(window).outerWidth(),b=(jQuery(this).data("image-position"),jQuery(this).data("hide-img-on-mobile"));a<=b?b>=768&&jQuery(this).find(".cp-text-container").removeClass("col-lg-7 col-md-7 col-sm-7").addClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container"):jQuery(this).find(".cp-text-container").removeClass("col-lg-12 col-md-12 col-sm-12 cp-bigtext-container").addClass("col-lg-7 col-md-7 col-sm-7 ")}})}!function(a){a.fn.fitText=function(b,c){var d=b||1,e=a.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},c);return this.each(function(){var b=a(this),c=function(){b.css("font-size",Math.max(Math.min(b.width()/(10*d),parseFloat(e.maxFontSize)),parseFloat(e.minFontSize)))};c(),a(window).on("resize.fittext orientationchange.fittext",c)})}}(jQuery),jQuery(document).ready(function(){setTimeout(function(){CPResponsiveTypoInit(),cp_color_for_list_tag(),cp_column_equilize()},500),d(),e(),f(),g(),cp_form_sep_setting(),form_sep_position(),cp_set_width_svg(),setTimeout(function(){cp_column_equilize()},300),cp_social_responsive()}),jQuery(window).resize(function(){CPModelHeight(),c(),jQuery(".cp-onload").each(function(a){var b=jQuery(this).data("class-id"),c=jQuery("."+b);c.hasClass("cp-window-size")&&c.windowSize()}),d(),e(),f(),g(),setTimeout(function(){cp_column_equilize(),cp_row_equilize()},300),cp_form_sep_top(),form_sep_position(),set_affiliate_link(),cp_set_width_svg(),cp_social_responsive()}),jQuery(window).on("load",function(){set_affiliate_link()}),jQuery.fn.windowSize=function(){var a=this.find(".cp-content-container"),b=this.find(".cp-modal"),c=this.find(".cp-modal-content"),d=this.find(".cp-modal-body");b.removeAttr("style"),c.removeAttr("style"),a.removeAttr("style"),d.removeAttr("style");var e=jQuery(window).width()+30,f=jQuery(window).height();jQuery(this).find("iframe").css("width",e),a.css({"max-width":e+"px",width:"100%",height:f+"px",padding:"0",margin:"0 auto"}),c.css({"max-width":e+"px",width:"100%"}),b.css({"max-width":e+"px",width:"100%",left:"0",right:"0"}),d.css({"max-width":e+"px",width:"100%",height:f+"px"})}}(jQuery);var smile_global_data="";jQuery(document).on("smile_data_continue_received",function(a){addPaddingtoYoutubeFrame()}),jQuery(document).on("smile_data_received",function(a,b){cp_modal_common(b)}),jQuery(document).on("after_cp_column_equilize",function(a){jQuery(".cp-overlay").each(function(){if(jQuery(this).find(".cp-modal-body").hasClass("cp-jugaad")&&jQuery(this).find(".cp-modal-body .cp-form-separator").length){var a=jQuery(this).find(".cp-modal-body .cp-form-separator").outerHeight(),b=jQuery(this).find(".cp-modal-body .cp-columns-equalized").outerHeight()+a;jQuery(this).find(".cp-modal-body .cp-columns-equalized").css("height",b)}})}),function(a){"use strict";function b(a){var b=a.height();if(a.find(".cp-modal-content").attr("data-height",b),a.hasClass("cp-overlay")&&void 0!==a){var c=0;if(!a.hasClass("ps-container")){c++;var d=a.find(".cp-modal-content"),e=d.attr("id");d.attr("id",e+"-"+c);var f=d.attr("id");"undefined"!=typeof Ps&&Ps.initialize(document.getElementById(f));var b=d.data("height");b=parseInt(b)-100;d.height();a.find(".cp-modal").hasClass("cp-modal-exceed")&&d.css("height",b+"px")}}}jQuery(document).on("click",".cp-overlay-close",function(b){if(!jQuery(this).hasClass("do_not_close")){var c=a(this).parents(".cp-overlay"),d=c.find(".cp-tooltip-icon").data("classes");jQuery(document).trigger("closeModal",[c]),jQuery("head").append('")}}),jQuery(document).on("click",".cp-overlay",function(a){if(!jQuery(this).hasClass("do_not_close")&&jQuery(this).hasClass("close_btn_nd_overlay")){var b=jQuery(this);jQuery(document).trigger("closeModal",[b])}}),jQuery(document).on("click",".cp_fs_overlay",function(a){if(!jQuery(this).parents(".cp-overlay").hasClass("do_not_close")&&jQuery(this).parents(".cp-overlay").hasClass("close_btn_nd_overlay")){var b=jQuery(this).parents(".cp-overlay");jQuery(document).trigger("closeModal",[b])}}),jQuery(document).on("click",".cp-overlay .cp-modal",function(a){a.stopPropagation()}),jQuery(document).on("smile_customizer_field_change",function(a){CPResponsiveTypoInit()}),jQuery(document).on("smile_data_received",function(a,b){CPResponsiveTypoInit()}),jQuery(".wpcf7").on("wpcf7:invalid",function(a){cp_column_equilize()}),jQuery(window).on("modalOpen",function(c,d){jQuery("html").addClass("cp-mp-open");var e=d.data("close-btnonload-delay");e=Math.round(1e3*e),e&&setTimeout(function(){d.find(".cp-overlay-close").removeClass("cp-hide-close")},e),cp_column_equilize(),CPModelHeight(),cp_form_sep_top(),cp_set_width_svg(),cp_row_equilize();var f=d.find(".cp-animate-container"),g=f.data("overlay-animation"),h=f.data("disable-animationwidth");(jQuery(window).width()>=h||void 0===h)&&jQuery(f).addClass("smile-animated "+g),jQuery("#cp-tooltip-close-css").remove(),jQuery(".cp-modal-popup-container").each(function(a,b){var c=jQuery(b),d=c.find(".cp-modal");d.hasClass("cp-modal-exceed")||(d.hasClass("cp-modal-window-size")?jQuery("html").addClass("cp-window-viewport"):jQuery("html").delay(1e3).addClass("cp-custom-viewport"))});var i=d.data("close-after");a.idleTimer("destroy"),void 0!==i&&(i*=1e3,jQuery(".cp-overlay").idleTimer({timeout:i,idle:!1})),jQuery(".kleo-carousel-features-pager").length>0&&setTimeout(function(){a(window).trigger("resize")},1500),setTimeout(function(){b(d)},1500)}),jQuery(document).ready(function(){jQuery(document).bind("keydown",function(a){if(27==a.which){var b=jQuery(".cp-open"),c=b;b.hasClass("close_btn_nd_overlay")&&!b.hasClass("do_not_close")&&jQuery(document).trigger("closeModal",[c])}}),set_affiliate_link(),CPResponsiveTypoInit()})}(jQuery),function(a){"use strict";function b(a){return new RegExp(/^((([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).test(a)}function c(a,c){return!c.trim()||(a.hasClass("cp-email")?!b(c):!!a.hasClass("cp-textfeild")&&0==/^[a-zA-Z0-9- ]*$/.test(c))}function d(d){var g=jQuery(d).parents(".cp-modal-body").find(".smile-optin-form"),h=g.serialize(),i=jQuery(d).parents(".cp-animate-container").find(".cp-msg-on-submit"),j=(jQuery(d).parents(".cp-modal-body").find(".cp-form-container"),jQuery(d).parents(".cp-animate-container").find(".cp-form-processing")),k=jQuery(d).parents(".global_modal_container "),l=jQuery(d).parents(".cp-animate-container").find(".cp-form-processing-wrap"),m=jQuery(d).parents(".cp-animate-container"),n=k.find(".cp-tooltip-icon").data("classes"),o=k.data("conversion-cookie-time"),p=jQuery(d).parents(".global_modal_container ").hasClass("do_not_close"),q=jQuery(d).parents(".global_modal_container ").data("redirect-lead-data"),r=jQuery(d).parents(".global_modal_container ").data("redirect-to"),s=jQuery(d).parents(".global_modal_container").data("form-action"),t=jQuery(d).parents(".global_modal_container").data("form-action-time"),t=parseInt(1e3*t),u=k.data("parent-style");if(void 0!==u)var v=u;else var v=k.data("modal-id");var w="",x=!0,y="";g.find(".cp-input").each(function(a){var b=jQuery(this);if(!b.hasClass("cp-submit-button")){var d=b.attr("name"),e=b.val(),f=d.replace(/param/gi,function(a){return""});f=f.replace("[",""),f=f.replace("]",""),w+=0!=a?"&":"",w+=f+"="+e;!!b.attr("required")&&(c(b,e)?(x=!1,b.addClass("cp-input-error")):b.removeClass("cp-input-error"))}});var z=0,A="";g.find("select, textarea, input ").each(function(c,d){if(jQuery(d).prop("required")){if("checkbox"==jQuery(d).attr("type")&&0==a(this).prop("checked"))z++,setTimeout(function(){jQuery(d).addClass("cp-error")},100),f=jQuery(d).attr("name"),A+=f+" is required \n";else if(jQuery(d).val())if(jQuery(d).hasClass("cp-email")){var e=jQuery(d).val();if(b(e))jQuery(d).removeClass("cp-error");else{setTimeout(function(){jQuery(d).addClass("cp-error")},100),z++;var f=jQuery(d).attr("name")||"";A+=f+" is required \n"}}else jQuery(d).removeClass("cp-error");else z++,setTimeout(function(){jQuery(d).addClass("cp-error")},100),f=jQuery(d).attr("name"),A+=f+" is required \n"}}),z>0?console.log(A):(l.show(),i.fadeOut(120,function(){jQuery(this).show().css({visibility:"hidden"})}),j.hide().css({visibility:"visible"}).fadeIn(100),jQuery.ajax({url:smile_ajax.url,data:h,type:"POST",dataType:"HTML",success:function(a){console.log("result: "+a),o&&f(v,!0,o);var b=jQuery.parseJSON(a),c="",h="";void 0!==b.status&&null!=b.status&&(h=b.status),b.email_status?g.find(".cp-email").removeClass("cp-error"):(setTimeout(function(){g.find(".cp-email").addClass("cp-error")},100),g.find(".cp-email").focus());var u=void 0!==b.detailed_msg&&null!==b.detailed_msg?b.detailed_msg:"";if(""!==u&&null!==u&&(u="
    Here is More Information:
    "+u+"
    ",u+="
    Read How to Fix This, click here
    ",u+="
    Go Back
    ",c+='
    [Only you can see this message]
    '),b.message=b.message.replace(/\\/g,""),void 0!==b.message&&null!=b.message&&(i.hide().css({visibility:"visible"}).fadeIn(120),c+='
    '+b.message+"
    "+u+"
    ",i.html(c),m.addClass("cp-form-submit-"+h)),void 0!==b.action&&null!=b.action&&(j.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})}),i.hide().css({visibility:"visible"}).fadeIn(120),"success"===h)){if(jQuery("head").append('"),"redirect"===b.action){l.hide();var x=b.url,z="";z=x.indexOf("?")>-1?"&":"?";var A=x+z+decodeURI(w);if(A=1==q?A:b.url,"download"!==r){y=r;""==window.open(A,"_"+y)&&(document.location.href=A)}else e(A);k.removeClass("cp-open"),jQuery(document).trigger("closeModal",[k])}else{if(l.show(),jQuery(d).find("a").length>0){var B=jQuery(d).find("a").attr("href"),C=jQuery(d).find("a").attr("target");""!=C&&void 0!==C||(C="_self"),""==B&&"#"==B||window.open(B,C)}"disappear"==s?(k.removeClass("cp-hide-inline-style"),setTimeout(function(){k.hasClass("cp-modal-inline")&&k.addClass("cp-hide-inline-style"),jQuery(document).trigger("closeModal",[k])},t)):"reappear"==s&&setTimeout(function(){i.empty(),l.css({display:"none"}),i.removeAttr("style"),j.removeAttr("style"),g.trigger("reset")},t)}p&&!k.hasClass("cp-do-not-close-inline")&&setTimeout(function(){jQuery(document).trigger("closeModal",[k])},3e3)}},error:function(a){l.hide(),j.fadeOut(100,function(){jQuery(this).show().css({visibility:"hidden"})})}}))}function e(a,b){if(window.ActiveXObject){ if(window.ActiveXObject&&document.execCommand){var c=window.open(a,"_blank");c.document.close(),c.document.execCommand ("SaveAs",!0,b||a),c.close()}}else{var d=document.createElement("a");d.href=a,d.target="_blank";var e=a.substring(a.lastIndexOf("/")+1);if(d.download=b||e,navigator.userAgent.toLowerCase().match(/(ipad|iphone|safari)/)&&navigator.userAgent.search("Chrome")<0)document.location=d.href;else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});d.dispatchEvent(f),(window.URL||window.webkitURL).revokeObjectURL(d.href)}jQuery("html").removeClass("cp-custom-viewport"),jQuery("html").removeClass("cp-exceed-vieport cp-window-viewport")}}var f=function(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"};jQuery(document).ready(function(){jQuery(".cp-modal-popup-container").find(".smile-optin-form").each(function(a,b){jQuery(b).find("input").keypress(function(a){if(13==a.which){a.preventDefault();var b=jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-success");jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-error");b||d(this)}}),jQuery(b).find(".btn-subscribe").click(function(a){a.preventDefault;var c=jQuery(this).parents(".global_modal_container").data("modal-id");if(jQuery(b).find(".cp-input").removeClass("cp-error"),!jQuery(this).hasClass("cp-disabled")){d(this),jQuery(document).trigger("cp_conversion_done",[this,c]);var e=jQuery(this).attr("data-redirect-link")||"",f=jQuery(this).attr("data-redirect-link-target")||"_blank";"undefined"!=e&&""!=e&&(navigator.userAgent.toLowerCase().match(/(ipad|iphone)/)?document.location=e:window.open(e,f))}a.preventDefault()}),jQuery(b).find(".btn-subscribe").keypress(function(a){if(13==a.which){a.preventDefault();var b=jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-success");jQuery(this).parents(".cp-animate-container").hasClass("cp-form-submit-error");b||d(this)}})})})}(jQuery);