!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|;)"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' ['+i+"]"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("
").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("
").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}}); jQuery(document).ready(function(s){"use strict";jQuery.fn.essb_toggle_more=function(){return this.each(function(){s(this).removeClass("essb_after_more"),s(this).addClass("essb_before_less")})},jQuery.fn.essb_toggle_less=function(){return this.each(function(){s(this).addClass("essb_after_more"),s(this).removeClass("essb_before_less")})},jQuery.fn.extend({center:function(){return this.each(function(){var s=(jQuery(window).height()-jQuery(this).outerHeight())/2,e=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(s>0?s:0)+"px",left:(e>0?e:0)+"px"})})}})}),function(s){s.fn.countTo=function(e){return e=e||{},s(this).each(function(){var t=s.extend({},s.fn.countTo.defaults,{from:s(this).data("from"),to:s(this).data("to"),speed:s(this).data("speed"),refreshInterval:s(this).data("refresh-interval"),decimals:s(this).data("decimals")},e),o=Math.ceil(t.speed/t.refreshInterval),i=(t.to-t.from)/o,a=this,n=s(this),r=0,b=t.from,d=n.data("countTo")||{};function l(s){var e=t.formatter.call(a,s,t);n.text(e)}n.data("countTo",d),d.interval&&clearInterval(d.interval),d.interval=setInterval(function(){r++,l(b+=i),"function"==typeof t.onUpdate&&t.onUpdate.call(a,b);r>=o&&(n.removeData("countTo"),clearInterval(d.interval),b=t.to,"function"==typeof t.onComplete&&t.onComplete.call(a,b))},t.refreshInterval),l(b)})},s.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(s,e){return s.toFixed(e.decimals)},onUpdate:null,onComplete:null}}(jQuery),function(s){"use strict";var e={},t=function(s,e){var t,o,i,a;return function(){i=this,o=[].slice.call(arguments,0),a=new Date;var n=function(){var r=new Date-a;r=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},i=function(e){var t=s(e).offset().top,o=s(e).offset().top+s(e).outerHeight(),i=s(window).scrollTop()+s(window).innerHeight(),a=s(window).scrollTop();return i>t&&ar-30){var f=0;o&&(s(l).css({top:"5px"}),f+=5),s(l).css({height:r-i-d-f+"px"}),s(_).css({height:r-i-f-(d+50)+"px",overflowY:"auto"})}if(o&&s(p).css({height:r-(o?i:0)+"px"}),c){var m=(s(window).width()-s(l).outerWidth())/2;s(l).css({left:m+"px",position:"fixed",margin:0,bottom:i+d+"px"})}else s(l).center();s(l).fadeIn(400),s(p).fadeIn(200),e.essb_morepopup_opened=!0}},e.toggle_less_popup=function(t){s(".essb_morepopup_"+t).fadeOut(200),s(".essb_morepopup_shadow_"+t).fadeOut(200),e.essb_morepopup_opened=!1},e.toggle_more_inline=function(t){var o=s(".essb_"+t);if(o.length){var i=".essb_morepopup_"+t,a=s(o).position().top+s(o).outerHeight(!0),n=s(o).position().left,r="absolute",b=!1;if("fixed"===s(o).css("position")&&(r="fixed"),s(o).hasClass("essb_displayed_bottombar")&&(b=!0),b){a=s(o).position().top-s(i).outerHeight(!0);var d=s(i).find(".modal-pointer");s(d).hasClass("modal-pointer-up-left")&&(s(d).removeClass("modal-pointer-up-left"),s(d).addClass("modal-pointer-down-left"))}var l=s(o).find(".essb_link_more");s(l).length||(l=s(o).find(".essb_link_more_dots")),s(l).length&&(n="fixed"!=r?s(l).position().left-5:n+s(l).position().left-5);var p=s(o).find(".essb_link_share");s(p).length&&(n="fixed"!=r?s(p).position().left-5:n+s(p).position().left-5),s(i).css({left:n+"px",position:r,margin:0,top:a+"px"}),s(i).fadeIn(200),e.essb_morepopup_opened=!0}},e.subscribe_popup_close=function(e){s(".essb-subscribe-form-"+e).fadeOut(400),s(".essb-subscribe-form-overlay-"+e).fadeOut(400)},e.sharebutton=function(e){s(".essb-windowcs-"+e).length&&(s(".essb-windowcs-"+e).fadeIn(200),s(".essb-windowcs-"+e+" .inner-content").center())},e.sharebutton_close=function(e){s(".essb-windowcs-"+e).length&&s(".essb-windowcs-"+e).fadeOut(200)},e.toggle_subscribe=function(t){if(s(".essb-subscribe-form-"+t).length)if(e.essb_subscribe_opened||(e.essb_subscribe_opened={}),"1"!=(s(".essb-subscribe-form-"+t).attr("data-popup")||""))s(".essb-subscribe-form-"+t).hasClass("essb-subscribe-opened")?(s(".essb-subscribe-form-"+t).slideUp("fast"),s(".essb-subscribe-form-"+t).removeClass("essb-subscribe-opened")):(s(".essb-subscribe-form-"+t).slideDown("fast"),s(".essb-subscribe-form-"+t).addClass("essb-subscribe-opened"),e.essb_subscribe_opened[t]||(e.essb_subscribe_opened[t]=t,e.tracking_only("","subscribe",t,!0)));else{var o=s(window).width(),i=(s("document").height(),600);o-1&&-1==l.indexOf("https://")&&(l=l.replace("http://","https://")),s(".essb-subscribe-captcha").length)l+="&validate_recaptcha=true&recaptcha="+s("#g-recaptcha-response").val();s.post(l,{mailchimp_email1:b,mailchimp_name1:d},function(o){if(o){if(console.log(o),"1"==o.code)s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-success").show(),s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").hide(),s(i).hide(),"undefined"!=typeof essb_subscribe_tracking&&essb_subscribe_tracking(n),o.redirect&&setTimeout(function(){o.redirect_new?window.open(o.redirect,"_blank").focus():window.location.href=o.redirect},200),e.trigger("subscribe_success",{design:r,position:n,email:b,name:d});else{var a=s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message")||"";""==a&&s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message",s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text()),90==o.code?s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(o.message):s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(a),s(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").show(),s(".essb-subscribe-form-"+t).find(".essb-subscribe-from-content-form").show(),s(i).find(".submit").prop("disabled",!1)}s(".essb-subscribe-form-"+t).find(".essb-subscribe-loader").hide()}},"json")}},e.is_after_comment=function(){return window.location.href.indexOf("#comment")>-1},e.flyin_close=function(){s(".essb-flyin").fadeOut(200)},e.popup_close=function(){s(".essb-popup").fadeOut(200),s(".essb-popup-shadow").fadeOut(400)},e.copy_link=function(e,t){var o=window.location.href,i=s(window).width();if(e&&s(".essb_"+e).length){var a=s(".essb_"+e).data("essb-url")||"";""!=a&&(o=a)}if(t&&""!=t&&(o=t),!s(".essb-copylink-window").length){var n=[];n.push('"),n.push(''),s("body").append(n.join("")),s(".essb-copylink-window .essb_morepopup_close").on("click",function(e){e.preventDefault(),s(".essb-copylink-window").fadeOut(300),s(".essb-copylink-shadow").fadeOut(200)}),s(".essb-copylink-window .essb-copy-link").on("click",function(e){e.preventDefault();var t=document.querySelector("#essb_copy_link_field");try{t.select(),t.setSelectionRange(0,99999),document.execCommand ("copy"),s(".essb-copylink-window .essb_morepopup_header span").html(essb_settings.translate_copy_message2?essb_settings.translate_copy_message2:"Copied to clipboard."),setTimeout(function(){s(".essb-copylink-window .essb_morepopup_header span").html(" ")},2e3)}catch(e){s(".essb-copylink-window .essb_morepopup_header span").html(essb_settings.translate_copy_message3?essb_settings.translate_copy_message3:"Please use Ctrl/Cmd+C to copy the URL."),setTimeout(function(){s(".essb-copylink-window .essb_morepopup_header span").html(" ")},2e3)}})}s(".essb-copy-message").html(""),s(".essb-copylink-window").css({width:(i>600?600:i-50)+"px"}),s(".essb-copylink-window").center(),s(".essb-copylink-window").fadeIn(300),s(".essb-copylink-shadow").fadeIn(200),s("#essb_copy_link_field").val(o),s("#essb_copy_link_field").focus(),s("#essb_copy_link_field").select()},e.mobile_sharebar_open=function(){var t=s(".essb-mobile-sharebar-window");if(t.length){var o=s(".essb-mobile-sharebar");if(o.length||(o=s(".essb-mobile-sharepoint")),o.length)if(e.is_displayed_sharebar)e.mobile_sharebar_close();else{var i=s(o).outerHeight(),a=s(window).height(),n=s(window).width();a-=i,s("#wpadminbar").length&&s("#wpadminbar").hide();var r=s(".essb-mobile-sharebar-window-content");r.length&&r.css({height:a-60+"px"}),s(t).css({width:n+"px",height:a+"px"}),s(t).fadeIn(400),e.is_displayed_sharebar=!0}}},e.mobile_sharebar_close=function(){var t=s(".essb-mobile-sharebar-window");t.length&&(s(t).fadeOut(400),e.is_displayed_sharebar=!1)},e.update_facebook_counter=function(e,t){/bot|crawl|slurp|spider/i.test(navigator.userAgent)||s.when(s.get("https://graph.facebook.com/?id="+e+"&fields=og_object{engagement}"),t?s.get("https://graph.facebook.com/?id="+t+"&fields=og_object{engagement}"):"").then(function(e,o){if(void 0!==e[0].og_object&&e[0].og_object.engagement){var i=0,a=0;if(i=parseInt(e[0].og_object.engagement.count||0)+parseInt(e[0].og_object.engagement.comments||0)+0,t&&o[0]&&void 0!==o[0].og_object&&o[0].og_object.engagement){i!=(a=parseInt(o[0].og_object.engagement.count||0)+parseInt(o[0].og_object.engagement.comments||0)+0)&&(i+=a)}s.post(essb_settings.ajax_url,{action:"essb_facebook_counter_update",post_id:essb_settings.post_id,count:i,nonce:essb_settings.essb3_nonce},function(s){s&&console.log(s)},"json")}})},e.update_pinterest_counter=function(e,t){/bot|crawl|slurp|spider/i.test(navigator.userAgent)||s.get("https://api.pinterest.com/v1/urls/count.json?callback=?&url="+e,{},function(e){var t=e.count?e.count:0;console.log("total_shares1="+t),s.post(essb_settings.ajax_url,{action:"essb_pinterest_counter_update",post_id:essb_settings.post_id,count:t.toString(),nonce:essb_settings.essb3_nonce},function(s){s&&console.log(s)},"json")},"json")},e.responsiveEventsCanRun=function(e){var t=s(e).hasClass("essb_mobile_hidden"),o=s(e).hasClass("essb_desktop_hidden"),i=s(e).hasClass("essb_tablet_hidden"),a=s(window).width(),n=!0;return a<=768&&t&&(n=!1),a>768&&a<=1100&&i&&(n=!1),a>1100&&o&&(n=!1),s(e).length||(n=!1),n},window.essb=e;var a=function(s){return s=parseInt(s),!isNaN(s)&&isFinite(s)||(s=0),s},n=function(e,t){"undefined"!=typeof essb_settings&&(t=String(t),s.post(essb_settings.ajax_url,{action:"essb_self_postcount",post_id:t,service:e,nonce:essb_settings.essb3_nonce},function(s){},"json"))},r=function(t,o){if(essb_settings&&essb_settings.aftershare_networks){if(-1==(""!=essb_settings.aftershare_networks?essb_settings.aftershare_networks.split(","):[]).indexOf(t))return}else if("subscribe"==t||"comments"==t||"email"==t||"mail"==t)return;if("subscribe"!=t&&"comments"!=t&&"email"!=t&&"mail"!=t&&("function"==typeof l&&l(),"function"==typeof essb_acs_code&&essb_acs_code(t,o),s(".essb-aftershare-subscribe-form").length)){var i=s(".essb-aftershare-subscribe-form").data("salt")||"";""!=i&&e.toggle_subscribe(i)}},b=function(s,e,t){var o=essb_settings.essb3_ga_mode;"ga"in window&&void 0!==window.ga&&"function"==typeof window.ga&&("extended"==o?ga("send","event","social",s+" "+t,e):ga("send","event","social",s,e)),"layers"==o&&"undefined"!=typeof dataLayer&&dataLayer.push({service:s,position:t,url:e,event:"social"})},d=(window.essb_open_mailform=function(t){if(e.essb_mailform_opened)d(t);else{var o=s(".essb_"+t);if(o.length){var i=s(o).attr("data-essb-postid")||"";s("#essb_mail_instance").val(t),s("#essb_mail_post").val(i);var a=s(window).width(),n=s(window).height(),r=400;an-30&&s(".essb_mailform").css({height:n-20+"px"}),s("#essb_mailform_from").val(""),s("#essb_mailform_to").val(""),s("#essb_mailform_from_name").val(""),s("#essb_mailform_c").length&&s("#essb_mailform_c").val(""),"undefined"!=typeof essb_recaptcha&&essb_recaptcha&&essb_recaptcha.recaptchaSitekey&&grecaptcha.render("essb-modal-recaptcha",{sitekey:essb_recaptcha.recaptchaSitekey}),s(".essb_mailform").center(),s(".essb_mailform").slideDown(200),s(".essb_mailform_shadow").fadeIn(200),e.essb_mailform_opened=!0,e.tracking_only("","mail",t)}}},window.essb_close_mailform=function(){s(".essb_mailform").fadeOut(200),s(".essb_mailform_shadow").fadeOut(200),e.essb_mailform_opened=!1}),l=(window.essb_mailform_send=function(){var e=s("#essb_mailform_from").val(),t=s("#essb_mailform_from_name").val(),o=s("#essb_mailform_to").val(),i=!!s("#essb_mailform_c").length,a=s(".essb_mailform").attr("data-error")||"",n=i?s("#essb_mailform_c").val():"",r=s("#g-recaptcha-response").val();if(""==e||""==o||""==n&&i)alert(a);else{var b=s("#essb_mail_salt").val(),l=s("#essb_mail_post").val();"undefined"!=typeof essb_settings&&s.post(essb_settings.ajax_url,{action:"essb_mail_action",post_id:l,from:e,from_name:t,to:o,c:n,cu:"",salt:b,recapcha:r,nonce:essb_settings.essb3_nonce},function(s){s&&(alert(s.message),"1"==s.code&&d())},"json")}},window.essbasc_popup_show=function(){if(s(".essbasc-popup").length&&!e.getCookie("essb_aftershare")){var t="undefined"!=typeof essbasc_cookie_live?essbasc_cookie_live:7;0==parseInt(t)&&(t=7);var o=s(window).width(),i=800,a=s(".essbasc-popup").attr("data-popup-width")||"",n=s(".essbasc-popup").attr("data-single")||"";Number(a)&&Number(a)>0&&(i=a),o0&&(r=parseInt(c)),(""==f||"true"==f&&m)&&s(window).on("scroll",t(function(){var e=s(window).scrollTop()/(s(document).height()-s(window).height())*100,t=!0;b&&!n&&er&&(t=!1),b&&n&&(e>r||e0&&(g=parseInt(g),v=!0);var y=!1;""!=w&&Number(w)>0&&(w=parseInt(w),y=!0),e.responsiveEventsCanRun(s(".essb_displayed_float"))&&s(window).on("scroll",t(function(){var e=s(window).scrollTop();y&&(e-=w);var t=e/(s(document).height()-s(window).height())*100;if(e>=h){if(""==u){var o=s(".essb_displayed_float").width();u=o,s(".essb_displayed_float").width(o)}s(".essb_displayed_float").addClass("essb_fixed")}else s(".essb_displayed_float").removeClass("essb_fixed"),""!=u&&s(".essb_displayed_float").width(u);if(v){if(t>=g&&!s(".essb_displayed_float").hasClass("hidden-float"))return s(".essb_displayed_float").addClass("hidden-float"),void s(".essb_displayed_float").fadeOut(100);if(tt?0:Math.round((t-e)/2),s(".essb_sidebar_location_middle").css({top:o+"px",opacity:"1"})};C(),s(window).on("resize",t(C,1))}s(".essb_link_sidebar-close a").each(function(){s(this).on("click",function(e){e.preventDefault();var t=s(this).parent().parent().get(0);s(t).length&&s(t).find(".essb_item").each(function(){s(this).hasClass("essb_link_sidebar-close")?s(this).toggleClass("essb-sidebar-closed-clicked"):s(this).toggleClass("essb-sidebar-closed-item")})})});var k,I,x,P=function(){var e,t=s(window).scrollTop(),o=t/(s(document).height()-s(window).height())*100;if(s(".essb_displayed_sidebar").length&&(e=s(".essb_displayed_sidebar")),s(".essb_displayed_sidebar_right").length&&(e=s(".essb_displayed_sidebar_right")),e&&void 0!==e){var n=a(s(e).data("sidebar-disappear-pos")||""),r=a(s(e).data("sidebar-appear-pos")||"");if("px"==(s(e).data("sidebar-appear-unit")||"")&&(o=t),"yes"==(s(e).data("sidebar-contenthidden")||"")&&(s(".essb_displayed_top").length||s(".essb_displayed_bottom").length)&&(s(".essb_displayed_top").length&&i(s(".essb_displayed_top"))||s(".essb_displayed_bottom").length&&i(s(".essb_displayed_bottom"))?e.fadeOut(100):e.fadeIn(100)),r>0&&0==n){if(o>=r&&!e.hasClass("active-sidebar"))return e.fadeIn(100),void e.addClass("active-sidebar");if(o0&&0==r){if(o>=n&&!e.hasClass("hidden-sidebar"))return e.fadeOut(100),void e.addClass("hidden-sidebar");if(o0&&n>0){if(o>=r&&o=n)&&e.hasClass("active-sidebar"))return e.fadeOut(100),void e.removeClass("active-sidebar")}}};if(e.responsiveEventsCanRun(s(".essb_displayed_sidebar"))){var N=s(".essb_displayed_sidebar").data("sidebar-contenthidden")||"",T=s(".essb_displayed_sidebar").data("sidebar-appear-pos")||"",j=s(".essb_displayed_sidebar").data("sidebar-disappear-pos")||"";""==T&&""==j&&"yes"!=N||s(window).width()>800&&(s(window).on("scroll",t(P,1)),P())}if(s(".essb-postbar").length){var O=s(".essb_postbar_start"),R=s(".essb_postbar_end");if(O.length){var S,E,z=O.offset().top,U=R.offset().top,D=U-z,L=s(".essb-postbar-progress-bar"),H=s(window).height();s(".essb-postbar-prev-post a").on("mouseenter touchstart",function(){s(this).next("div").css("top","-162px")}),s(".essb-postbar-close-prev").on("click",function(){s(".essb-postbar-prev-post a").next("div").css("top","46px")}),s(".essb-postbar-next-post a").on("mouseenter touchstart",function(){s(this).next("div").css("top","-162px")}),s(".essb-postbar-close-next").on("click",function(){s(".essb-postbar-next-post a").next("div").css("top","46px")}),s(window).on("load",function(){z=O.offset().top,U=R.offset().top,D=U-z}),s(window).on("scroll",function(){S=s(window).scrollTop(),(E=H+S-z)<0&&(E=0),E>D&&(E=D);var e=E/D*100;L.css({width:e+"%"})}),s(window).on("resize",function(){z=O.offset().top,U=R.offset().top,D=U-z,H=s(window).height(),s(window).trigger("scroll")}),s(window).trigger("scroll")}}if(s(".essb_displayed_postfloat").length){var M=s(".essb_displayed_postfloat").offset().top-parseFloat(s(".essb_displayed_postfloat").css("marginTop").replace(/auto/,0)),Q="true"==(s(".essb_displayed_postfloat").data("postfloat-stay")||"").toString(),A=s(".essb_displayed_postfloat").data("postfloat-top")||"",F=s(".essb_displayed_postfloat").data("postfloat-selectors")||"",Y=[],B=s(".essb_displayed_postfloat").data("postfloat-percent")||"";if(Number(B)&&0!=Number(B)||(B="",s(".essb_displayed_postfloat").attr("data-postfloat-percent","")),""!=F){Y=F.split(",");for(var W=0;W=Number(o):r>=Number(o))?(s(".essb_displayed_postfloat").css({opacity:"1"}),s(".essb_displayed_postfloat").css({transform:"translateY(0)"})):(s(".essb_displayed_postfloat").css({opacity:"0"}),s(".essb_displayed_postfloat").css({transform:"translateY(50px)"}))}if(e>=M){s(".essb_displayed_postfloat").addClass("essb_postfloat_fixed");var b=s(".essb_displayed_postfloat").offset(),d=s(".essb_displayed_postfloat").outerHeight(),l=parseInt(b.top)+parseInt(d);if(Q){var p=!1;s(".essb-postfloat-monitor").each(function(){i(s(this))&&(p=!0)}),p?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll")}else l>t?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll")}else s(".essb_displayed_postfloat").removeClass("essb_postfloat_fixed")},1))}if(s(".essb-flyin").length){var $=!1,q=(window.essb_flyin_manual_show=function(){if(s(".essb-flyin").length){var e=s(".essb-flyin"),t=s(e).attr("data-width")||"",o=s(window).width(),i=400;Number(t)&&Number(t)>0&&(i=Number(t)),o0&&(l=p),d0){var c=parseFloat(r);c*=1e3,setTimeout(function(){s(".essb-flyin").fadeOut(200)},c)}s(".essb-flyin").css({width:l+"px"}),s(".essb-flyin").fadeIn(400),$=!0}}}),G=!1,X=-1,J=!1;if(e.responsiveEventsCanRun(s(".essb-flyin"))){var K=s(".essb-flyin");if(e.is_after_comment()&&K.hasClass("essb-flyin-oncomment"))return void q();var V=s(K).attr("data-load-percent")||"",Z=s(K).attr("data-load-time")||"",ss=s(K).attr("data-load-end")||"";if("1"==(rs=s(K).attr("data-load-manual")||""))return;""==V&&"1"!=ss||(X=Number(V),G=!1,J="1"==ss,s(window).on("scroll",t(function(){if(!G){var e=s(window).scrollTop(),t=e/(s(document).height()-s(window).height())*100;if(J){if(!s(".essb_break_scroll").length)return;e>=s(".essb_break_scroll").offset().top-parseFloat(s(".essb_break_scroll").css("marginTop").replace(/auto/,0))&&(G=!0,q())}else t>X&&X>0&&(G=!0,q())}},1))),Z&&void 0!==Z?""!=Z&&Number(Z)?setTimeout(function(){q()},1e3*Number(Z)):q():""==V&&"1"!=ss&&q()}}if(s(".essb-popup").length){var es=!1,ts=-1,os=!1,is=!1,as=!1,ns=window.essb_popup_show=function(){if(!as){var t=s(".essb-popup");if(t.length){var o=s(t).attr("data-width")||"",i=s(t).attr("data-close-hide")||"",a=s(t).attr("data-close-hide-all")||"",n=s(t).attr("data-postid")||"",r=s(t).attr("data-close-after")||"";if("1"==i||"1"==a){var b="";if("1"==i){if(b="essb_popup_"+n,"yes"==e.getCookie(b))return;e.setCookie(b,"yes",7)}if("1"==a){if(b="essb_popup_all","yes"==e.getCookie(b))return;e.setCookie(b,"yes",7)}}var d=s(window).width(),l=(s("document").height(),800),p=o;Number(p)&&Number(p)>0&&(l=p),d0&&(optin_time=1e3*Number(r),setTimeout(function(){e.popup_close()},optin_time)),s(".essb-popup").css({width:l+"px"}),s(".essb-popup").center(),s(".essb-popup").fadeIn(400),s(".essb-popup-shadow").fadeIn(200),as=!0}}};if(e.responsiveEventsCanRun(s(".essb-popup"))){K=s(".essb-popup");if(e.is_after_comment()&&K.hasClass("essb-popup-oncomment"))return void ns();V=s(K).attr("data-load-percent")||"",Z=s(K).attr("data-load-time")||"",ss=s(K).attr("data-load-end")||"";var rs=s(K).attr("data-load-manual")||"",bs=s(K).attr("data-exit-intent")||"";if("1"==rs&&(V="",Z="-1",ss="",bs=""),""==V&&"1"!=ss||(ts=Number(V),es=!1,os="1"==ss,s(window).on("scroll",function(){if(!es){var e=s(window).scrollTop(),t=e/(s(document).height()-s(window).height())*100;os?s(".essb_break_scroll").length?e>=s(".essb_break_scroll").offset().top-parseFloat(s(".essb_break_scroll").css("marginTop").replace(/auto/,0))&&(es=!0,ns()):t>90&&(es=!0,ns()):t>ts&&ts>0&&(es=!0,ns())}})),"1"==bs){k=document,I="mouseout",x=function(s){if("input"!=(s=s||window.event).target.tagName.toLowerCase()){var e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);s.clientX>=e-50||s.clientY>=50||null===s.toElement&&null===s.relatedTarget&&function(s){if(!is){var e=s||window.event,t=e.relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(is=!0,ns())}}()}},k.addEventListener?k.addEventListener(I,x,!1):k.attachEvent&&k.attachEvent("on"+I,x)}Z&&void 0!==Z&&"-1"!=Z?""!=Z&&Number(Z)?setTimeout(function(){ns()},1e3*Number(Z)):ns():""==V&&"1"!=ss&&"1"!=bs&&"-1"!=Z&&ns()}}if(s(".essb_bottombar").length&&e.responsiveEventsCanRun(s(".essb_bottombar"))){K=s(".essb_bottombar");""==(s(K).find(".essb_links").data("bottombar-appear")||"")&&""==(s(K).find(".essb_links").data("bottombar-disappear")||"")||s(window).on("scroll",t(function(){var e,t=s(window).scrollTop()/(s(document).height()-s(window).height())*100;if(s(".essb_bottombar").length&&(e=s(".essb_bottombar")),e&&void 0!==e){var o=a(s(e).find(".essb_links").data("bottombar-appear")||""),i=a(s(e).find(".essb_links").data("bottombar-disappear")||"");if(o>0){if(t>=o&&!e.hasClass("essb_active_bottombar"))return void e.addClass("essb_active_bottombar");if(t0){if(t>=i&&!e.hasClass("hidden-float"))return e.addClass("hidden-float"),void e.css({opacity:"0"});if(t0){if(t>=o&&!e.hasClass("essb_active_topbar"))return void e.addClass("essb_active_topbar");if(t0){if(t>=i&&!e.hasClass("hidden-float"))return e.addClass("hidden-float"),void e.css({opacity:"0"});if(t0){if(t>=o&&!e.hasClass("essb_active_postfloat"))return void e.addClass("essb_active_postfloat");if(t0&&Number(t)>i&&(e=!0),e?s(".essb-followme").hasClass("active")&&s(".essb-followme").removeClass("active"):s(".essb-followme").hasClass("active")||s(".essb-followme").addClass("active"),""!=fs&&(a>95?s(".essb-followme").hasClass("essb-followme-hiddenend")||(s(".essb-followme").addClass("essb-followme-hiddenend"),s(".essb-followme").slideUp(100)):s(".essb-followme").hasClass("essb-followme-hiddenend")&&(s(".essb-followme").removeClass("essb-followme-hiddenend"),s(".essb-followme").slideDown(100)))}s(window).on("scroll",t(us,1)),us()}if(s(".essb-point").length){var gs=!1,ws="",vs=s(".essb-point").attr("data-trigger-scroll")||"",ys=s(".essb-point").attr("data-point-type")||"simple",Cs=Number(s(".essb-point").attr("data-autoclose")||0)||0;e.responsiveEventsCanRun(s(".essb-point"))&&("end"!=vs&&"middle"!=vs||(ws=vs,s(window).on("scroll",function(){var e=s(window).scrollTop()+s(window).height()-200,t=s(".essb_break_scroll").offset().top-parseFloat(s(".essb_break_scroll").css("marginTop").replace(/auto/,0));"end"==ws&&e>=t&&!gs&&(s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")||(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").toggleClass("essb-point-open"),gs=!0,Cs>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").removeClass("essb-point-open")},1e3*Cs))),"middle"==ws&&100*e/t>49&&!gs&&(s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")||(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").toggleClass("essb-point-open"),gs=!0,Cs>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").removeClass("essb-point-open")},1e3*Cs)))}))),s(".essb-point").on("click",function(){s(".essb-point-share-buttons").toggleClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").toggleClass("essb-point-open"),Cs>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=ys&&s(".essb-point").removeClass("essb-point-open")},1e3*Cs)})}if(s(".essb-cornerbar").length){s(".essb-cornerbar .essb_links").length&&s(".essb-cornerbar .essb_links").removeClass("essb_displayed_cornerbar");var ks=s(".essb-cornerbar").attr("data-show")||"",Is=s(".essb-cornerbar").attr("data-hide")||"";function xs(){var e=s(window).scrollTop()/(s(document).height()-s(window).height())*100;if("onscroll"!=ks&&"onscroll50"!=ks||(e>("onscroll"==ks?5:45)?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden")),"content"==ks){var t=!1;s(".essb_displayed_top").each(function(){o(s(this))&&(t=!0)}),s(".essb_displayed_bottom").each(function(){o(s(this))&&(t=!0)}),t?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden")}""!=Is&&(e>90?s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")||s(".essb-cornerbar").addClass("essb-cornerbar-hiddenend"):s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hiddenend"))}e.responsiveEventsCanRun(s(".essb-cornerbar"))&&(""==Is&&""==ks||s(window).on("scroll",t(xs,1)),"content"==ks&&xs())}if(s(".essb-sharebooster").length){function Ps(){zs||(s(".essb-sharebooster").center(),s(".essb-sharebooster").fadeIn(400),s(".essb-sharebooster-overlay").fadeIn(200),s("body").addClass("essb-sharebooster-preventscroll"),zs=!0,Number(Es)&&setTimeout(Ns,1e3*Number(Es)))}function Ns(){s(".essb-sharebooster").fadeOut(200),s(".essb-sharebooster-overlay").fadeOut(400),s("body").removeClass("essb-sharebooster-preventscroll")}window.essb_booster_close_from_action=function(){var s="all"==Ss?"essb_booster_all":"essb_booster_"+essb_settings.post_id;e.setCookie(s,"yes",Number(Rs)),Ns()};var Ts=s(".essb-sharebooster").attr("data-trigger")||"",js=s(".essb-sharebooster").attr("data-trigger-time")||"",Os=s(".essb-sharebooster").attr("data-trigger-scroll")||"",Rs=s(".essb-sharebooster").attr("data-donotshow")||"",Ss=s(".essb-sharebooster").attr("data-donotshowon")||"",Es=s(".essb-sharebooster").attr("data-autoclose")||"",zs=!1;Number(Rs)||(Rs=7);var Us="all"==Ss?"essb_booster_all":"essb_booster_"+essb_settings.post_id;e.getCookie(Us)&&(Ts="disabled"),e.responsiveEventsCanRun(s(".essb-sharebooster"))&&(""==Ts&&Ps(),"time"==Ts&&setTimeout(Ps,1e3*Number(js)),"scroll"==Ts&&s(window).on("scroll",t(function(){s(window).scrollTop()/(s(document).height()-s(window).height())*100>Os&&Ps()},1))),s(".essb-sharebooster-close").length&&s(".essb-sharebooster-close").on("click",function(s){s.preventDefault(),Ns()})}if(s(".essb-click2chat").length&&(s(".essb-click2chat").on("click",function(e){e.preventDefault(),s(".essb-click2chat-window").toggleClass("active")}),s(".essb-click2chat-window .chat-close").length&&s(".essb-click2chat-window .chat-close").on("click",function(e){e.preventDefault(),s(".essb-click2chat-window").toggleClass("active")}),s(".essb-click2chat-window .operator").each(function(){s(this).on("click",function(e){e.preventDefault();var t=s(this).attr("data-app")||"",o=s(this).attr("data-number")||"",i=s(this).attr("data-message")||"",a="",n=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(n=!0),"whatsapp"==t&&(a="https://api.whatsapp.com/send?phone="+o+"&text="+i),"viber"==t&&(a="viber://chat?number="+o+"&text="+i),"email"==t&&(a="mailto:"+o+"&body="+i),"phone"==t&&(a="tel:"+o),n?window.location.href=a:window.open(a,"_blank")})})),essb_settings.force_pin_description&&essb_settings.pin_description&&s("img").each(function(){s(this).data("pin-description")||s(this).attr("data-pin-description",essb_settings.pin_description)}),essb_settings.pin_pinid_active&&essb_settings.pin_pinid&&s("img").each(function(){var e=s(this).data("pin-id")||"";e&&""!=e||s(this).attr("data-pin-id",essb_settings.pin_pinid)}),essb_settings.pin_force_active&&essb_settings.pin_force_image&&s("img").each(function(){if(s(this).attr("data-pin-media",essb_settings.pin_force_image),!s(this).data("pin-description")){var e="";s(this).attr("title")?e=s(this).attr("title"):s(this).attr("alt")&&(e=s(this).attr("alt")),essbPinImages.force_custompin&&!essbPinImages.custompin&&(essbPinImages.custompin=document.title),essbPinImages.custompin&&(e=essbPinImages.custompin),""==e&&(e=document.title),s(this).attr("data-pin-description",e)}s(this).data("pin-url")||s(this).attr("data-pin-url",encodeURI(document.URL))}),s(".essb-block-image").each(function(){var e=s(this).data("essb-pin-id")||"",t=s(this).data("essb-pin-description")||"";if("true"==(s(this).data("essb-pin-nopin")||"").toString())return s(this).find("img").attr("data-pin-nopin","true"),void s(this).find("img").addClass("no_pin");""!=e&&s(this).find("img").attr("data-pin-id",e),""!=t&&s(this).find("img").attr("data-pin-description",t)}),essb_settings.force_pin_thumbs){var Ds=window.essbReposiveImagesMap={},Ls=window.essbDetectAndLocateImageSize=function(e,t,o){o&&(Ds[t].responsive[e]={}),s("",{load:function(){Ds[t]&&(o?(Ds[t].responsive[e]={w:this.width,h:this.height,done:!0},Hs(t)):(Ds[t].originalSize={w:this.width,h:this.height,done:!0},Hs(t)))},src:e})},Hs=window.essbCompileTheDataPinImage=function(e){var t=0,o=0,i=0,a="";for(var n in Ds[e].responsive){var r=Ds[e].responsive[n]||{};t++,r.done&&(o++,(0==i||iDs[e].originalSize.w&&(s('[data-pinpro-key="'+e+'"]').attr("data-pin-media",a),s('[data-pinpro-key="'+e+'"]').attr("data-media",a),s('[data-pinpro-key="'+e+'"]').attr("data-pin-url",window.location.href),s('[data-pinpro-key="'+e+'"]').removeClass("pin-process"),s('[data-pinpro-key="'+e+'"]').each(Ms))};s("img").each(function(){var e=s(this).attr("srcset")||"",t=Math.random().toString(36).substr(2,9),o=t;if(e&&""!=e){s(this).attr("data-pinpro-key",t),s(this).addClass("pin-process");var i=e.split(", "),a=s(this).attr("src")||"";Ds[o]={source:o,original:a,originalSize:{},responsive:{}},Ls(a,o);for(var n=0;n-1||t.indexOf("data:image/gif")>-1)){e.data("media")&&(t=e.data("media")),e.data("lazy-src")&&(t=e.data("lazy-src")),e.data("pin-media")&&(t=e.data("pin-media")),e.data("pin-description")?o=e.data("pin-description"):e.attr("title")?o=e.attr("title"):e.attr("alt")&&(o=e.attr("alt")),essbPinImages.force_custompin&&!essbPinImages.custompin&&(essbPinImages.custompin=document.title),essbPinImages.custompin&&(o=essbPinImages.custompin),""==o&&(o=document.title);var b="https://pinterest.com/pin/create/button/?url="+encodeURI(document.URL)+"&is_video=false&media="+encodeURI(t)+"&description="+encodeURIComponent(o);essbPinImages.legacy_share_cmd&&(b="https://pinterest.com/pin/create/bookmarklet/?url="+encodeURI(document.URL)+"&media="+encodeURI(t)+"&title="+encodeURIComponent(o)+"&description="+encodeURIComponent(o)+"&media="+encodeURI(t)),""!=r&&(b="https://www.pinterest.com/pin/"+r+"/repin/x/");var d=e.attr("class"),l=e.attr("style");if("icon_hover"==essbPinImages.button_style&&(a=" essb_hide_name"),"icon"==essbPinImages.button_style&&(a=" essb_force_hide_name essb_force_hide"),"button_name"==essbPinImages.button_style&&(a=" essb_hide_icon"),"vertical"==essbPinImages.button_style&&(a=" essb_vertical_name"),essbPinImages.button_size&&(n=" essb_size_"+essbPinImages.button_size),essbPinImages.animation&&(n+=" "+essbPinImages.animation),essbPinImages.position&&(n+=" essb_pos_"+essbPinImages.position),essbPinImages.mobile_position&&(n+=" essb_mobilepos_"+essbPinImages.mobile_position),essbPinImages.visibility&&"always"==essbPinImages.visibility&&(n+=" essb_always_visible"),e.removeClass().attr("style","").wrap('
'),""!=d&&e.parent(".essb-pin").addClass(d),""!=l&&e.parent(".essb-pin").attr("style",l),essbPinImages.reposition){var p=s(e).width();Number(p)&&!isNaN(p)&&Number(p)>0&&e.parent(".essb-pin").css({"max-width":p+"px"})}var c=(new Date).getTime().toString(36);i.push('"),e.after(i.join("")),e.addClass("pin-generated"),e.parent(".essb-pin").hasClass("lazyloading")&&e.parent(".essb-pin").removeClass("lazyloading")}}};if("undefined"!=typeof essbPinImages&&s("body").hasClass("tcb-edit-mode")&&(essbPinImages.active=!1),"undefined"!=typeof essbPinImages&&essbPinImages.active){essbPinImages.min_width&&Number(essbPinImages.min_width)||(essbPinImages.min_width=300),essbPinImages.min_height&&Number(essbPinImages.min_height)||(essbPinImages.min_height=300),s(window).width()<720&&(Number(essbPinImages.min_width_mobile)&&(essbPinImages.min_width=Number(essbPinImages.min_width_mobile)),Number(essbPinImages.min_height_mobile)&&(essbPinImages.min_height=Number(essbPinImages.min_height_mobile))),s(".essb-pin.tve_image").length&&(s(".essb-pin.tve_image .essb_links").remove(),s(".essb-pin img").removeClass("pin-generated")),s(".rll-youtube-player img").each(function(){s(this).addClass("no-pin")}),essbPinImages.hideon&&s(essbPinImages.hideon).each(function(){s(this).addClass("no-pin")}),window.addEventListener("LazyLoad::Initialized",function(e){s(".rll-youtube-player img").each(function(){s(this).addClass("no-pin")})});var Qs=function(){if(s(".rll-youtube-player img").each(function(){s(this).addClass("no-pin")}),essbPinImages.selector)s(essbPinImages.selector).each(Ms);else{if(!s(".essb-pinterest-images").length)return;s(".essb-pinterest-images").parent().find("img").each(Ms)}};essbPinImages.lazyload&&s(window).on("scroll",t(Qs,10)),setTimeout(Qs,1)}("undefined"!=typeof essbPinImages&&!essbPinImages.active||"undefined"==typeof essbPinImages)&&s(".essb-pin.tve_image").length&&(s(".essb-pin.tve_image .essb_links").remove(),s(".essb-pin img").removeClass("pin-generated")),s(".essbfc-container-sidebar").length&&s(".essbfc-container-sidebar").each(function(){s(this).hasClass("essbfc-container-sidebar-transition")&&s(this).removeClass("essbfc-container-sidebar-transition")}),s(".essb-subscribe-captcha").length&&s(".essb-subscribe-captcha").each(function(){var e=s(this).attr("id")||"";""!=e&&"undefined"!=typeof essb_subscribe_recaptcha&&essb_subscribe_recaptcha&&essb_subscribe_recaptcha.recaptchaSitekey&&grecaptcha.render(e,{sitekey:essb_subscribe_recaptcha.recaptchaSitekey})})})}(jQuery);