/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
function getRandom(n,t){return Math.random()*(t-n)+n}function timeDayDifference(n,t){var i=n.getTime()-t.getTime();return Math.floor(i/864e5)*864e5}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function _my_event(n,t,i,r,u,f,e){_paq.push(["trackEvent",i,r,u,f,e])}function loadjscssfile(n,t){var i;t=="js"?(i=document.createElement("script"),i.setAttribute("type","text/javascript"),i.setAttribute("src",n)):t=="css"&&(i=document.createElement("link"),i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",n));typeof i!="undefined"&&document.getElementsByTagName("head")[0].appendChild(i)}function checkloadjscssfile(n,t){filesadded.indexOf("["+n+"]")==-1&&(loadjscssfile(n,t),filesadded+="["+n+"]")}function filterReviewDom(n){return n.clone().find("script,noscript,style,form,.modal,.toReviewBtn").remove().end()}function AddReview(n,t){var r="?";$("#"+t+" input,form textarea").each(function(){var n=$(this);r=r+n.attr("name")+"="+encodeURI(n.val())+"&"});var i=$(n),u="/manage/addReview"+r,f=$.ajax(u).done(function(n){n=="1"&&(i.attr("disabled","disabled"),i.removeClass("btn-default"),i.addClass("btn-success"),i.text("Posláno. Děkujeme za pomoc, co nejdříve změnu provedeme."));n=="0"&&(i.removeClass("btn-default"),i.addClass("btn-danger"),i.text("Chyba. Opravu jsme nedostali. Zkuste to za chvili znovu."))}).fail(function(){i.removeClass("btn-default");i.addClass("btn-danger");i.text("Chyba volání. Hlídání se neuložilo. Zkuste to za chvíli znovu.")})}function AddNewWD(n,t,i,r,u,f){var e=$(f),o="/manage/addWd?name="+encodeURIComponent(i)+"&datatype="+encodeURIComponent(t)+"&period="+r+"&focus="+u+"&query="+encodeURIComponent(n),s=$.ajax(o).done(function(n){n=="1"&&(e.attr("disabled","disabled"),e.removeClass("btn-default"),e.addClass("btn-success"),e.text("Uloženo. V noci začínáme hlídat."));n=="0"&&(e.removeClass("btn-default"),e.addClass("btn-danger"),e.text("Chyba. Hlídání se neuložilo. Zkuste to za chvíli znovu."));n=="2"&&(e.removeClass("btn-default"),e.addClass("btn-danger"),e.attr("href","/cenik"),e.text("Problém. Hlídání se uložilo, ale nemůžeme ho spustit. Klikněte sem pro více informací."),e.prop("onclick",null).off("click"))}).fail(function(){e.removeClass("btn-default");e.addClass("btn-danger");e.text("Chyba volání. Hlídání se neuložilo. Zkuste to za chvíli znovu.")})}function ResendConfirmationMail(n){var t=$(n),i,r;t.attr("disabled","disabled");t.removeClass("btn-default");t.addClass("btn-success disabled");i="/api/v1/ResendConfirmationMail";r=$.ajax(i).done(function(n){n=="ok"?(t.removeClass("btn-default"),t.addClass("btn-success"),t.text("Email odeslán. Zkontrolujte si poštu, i složku s nevyžádanou poštou.")):(t.removeClass("btn-default"),t.addClass("btn-danger"),t.text("Nastala nějaká chyba, víme o ni a budeme ji řešit."))}).fail(function(){t.removeClass("btn-default");t.addClass("btn-danger");t.text("Nastala nějaká chyba, víme o ni a budeme ji řešit.")})}function ChangeBookmark(n){var t=$(n),o;if(t.hasClass("bookmarkOn"))var i=encodeURIComponent(t.attr("bmid")),r=t.attr("bmtype"),u="/manage/removeBookmark?id="+i+"&type="+r;else var f=encodeURIComponent(t.attr("bmname")),e=encodeURIComponent(t.attr("bmurl")),i=encodeURIComponent(t.attr("bmid")),r=t.attr("bmtype"),u="/manage/setBookmark?name="+f+"&url="+e+"&id="+i+"&type="+r;o=$.ajax(u).done(function(n){n=="1"&&(t.removeClass("bookmarkOff"),t.addClass("bookmarkOn"));n=="0"&&(t.removeClass("bookmarkOn"),t.addClass("bookmarkOff"));n=="-1"&&window.alert("Nastala chyba na serveru. Už o tom víme a řešíme to. Omlouváme se.")}).fail(function(){window.alert("Nastala chyba na serveru. Už o tom víme a řešíme to. Omlouváme se.")})}function InitLowBox(){console.log("init LowBox");$(".low-box").each(function(){var n=$(this),t=n.find(".low-box-line:first"),i=n.outerHeight(),r=parseInt(n.css("max-height"),10),u;i<r?(u=0,n.find(".low-box-content").css({"max-height":9999,top:0}),t.hide()):t.show()})}function formatOptions(n){if(n.loading)return"Hledám…";typeof n.description=="undefined"&&(n.imageElement="<i class='fas fa-search'><\/i>",n.description="fulltextové vyhledávání",n.type="fulltext",n.text=n.text);return $("<div class='select2-result-repository clearfix'><div class='select2-result-repository__avatar'>"+n.imageElement+"<\/div><div class='select2-result-repository__meta'><div class='select2-result-repository__title'>"+n.text+"<\/div><div class='select2-result-repository__description'>"+n.description+"<\/div><div class='select2-result-repository__statistics'><div class='select2-result-repository__forks'><i>"+n.type+"<\/i> <\/div><\/div><\/div><\/div>")}function toggleSearchComponent(){$("#old-search-input").toggle();$("#new-search-input").toggle();$("button.old-search-input").toggle();$("button.new-search-input").toggle()}function setOldSearchAsDefault(){createCookie("defaultOldSearch",1,60)}function setNewSearchAsDefault(){createCookie("defaultOldSearch",0,60)}var persons,param,replace,url,regExp,menuOpened,SocialShareKit;(function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(n.document)})(this);
/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs  */
if(function(n){"use strict";function nt(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),p=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)};if(t.ajax=p,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all")!==null&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var i=n.document,r=i.documentElement,e=[],o=[],u=[],c={},w=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),l,b,a,v=function(){var f,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,u=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=u=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),u&&r.insertBefore(n,r.firstChild),f=t.offsetWidth,u?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),a=parseFloat(f)},y=function(t){var rt="clientWidth",ut=r[rt],ft=i.compatMode==="CSS1Compat"&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&l&&et-l<w){n.clearTimeout(b);b=n.setTimeout(y,w);return}l=et;for(tt in e)if(e.hasOwnProperty(tt)){var c=e[tt],k=c.minw,d=c.maxw,ot=k===null,st=d===null,ht="em";!k||(k=parseFloat(k)*(k.indexOf(ht)>-1?a||v():1));!d||(d=parseFloat(d)*(d.indexOf(ht)>-1?a||v():1));c.hasquery&&(ot&&st||!(ot||ft>=k)||!(st||ft<=d))||(p[c.media]||(p[c.media]=[]),p[c.media].push(o[c.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},k=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;f<c;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;s<w;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},d=function(){if(f.length){var t=f.shift();p(t.href,function(i){k(i,t.href,t.media);c[t.href]=!0;n.setTimeout(function(){d()},0)})}},g=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&i.rel.toLowerCase()==="stylesheet";!t||!e||c[t]||(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,t,u),c[t]=!0):(/^([a-zA-Z:]*\/\/)/.test(t)||it)&&t.replace(RegExp.$1,"").split("/")[0]!==n.location.host||(t.substring(0,2)==="//"&&(t=n.location.protocol+t),f.push({href:t,media:u})))}d()};g();t.update=g;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",nt,!1):n.attachEvent&&n.attachEvent("onresize",nt)}}(this),param="fbclid",location.search.indexOf(param+"=")!==-1){replace="";try{url=new URL(location);url.searchParams.delete(param);replace=url.pathname+url.search+url.hash}catch(ex){regExp=new RegExp("[?&]"+param+"=.*$");replace=location.search.replace(regExp,"");replace=location.pathname+replace+location.hash}history.replaceState(null,"",replace)}const cyrb53=function(n,t=0){let i=3735928559^t,r=1103547991^t;for(let t=0,u;t<n.length;t++)u=n.charCodeAt(t),i=Math.imul(i^u,2654435761),r=Math.imul(r^u,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&r)+(i>>>0)};var trackInLink=function(n,t){var i=n.getAttribute("href");return _my_event("send","event","insideLink",t,i,{transport:"beacon"}),!0},trackOutLink=function(n,t){var i=n.getAttribute("href");return _my_event("send","event","outbound",t,i,{transport:"beacon"}),!0},filesadded="";$(function(){$(".hstabs").each(function(){var n=$(this);n.find(".btn[data-tab]").click(function(){var t=$(this).data("tab");n.find(".content[data-tab]").hide();n.find('.content[data-tab="'+t+'"]').show();n.find(".btn[data-tab]").removeClass("btn-primary");$(this).addClass("btn-primary")})})});menuOpened=!1;$(function(){function s(){function i(){t.toggleClass("nav-open")}function r(){n.on("click",i)}function u(){r()}var n=$(".hamburger"),t=$("body");u()}var n,r,t,i,u;if(InitLowBox(),$(".low-box .low-box-line .more").click(function(){var n=0;return $el=$(this),$p=$el.parent(),$up=$p.parent(),$ps=$up.find(".low-box-content:first"),$ps.each(function(){n+=$(this).outerHeight()}),$up.css({height:$up.height(),"max-height":9999}).animate({height:n,top:"+=60"}),$p.fadeOut(function(){$ps.css({top:0})}),!1}),$("div.verticaltab-menu>div.list-group>a").click(function(n){n.preventDefault();var t=$(this),i=t.parents("div.verticaltab-container").first(),r=$(this).index();t.siblings("a.active").removeClass("active");t.addClass("active");i.find("div.verticaltab>div.verticaltab-content").removeClass("active");i.find("div.verticaltab>div.verticaltab-content").eq(r).addClass("active")}),n="ceny",r=parseInt(readCookie("darLast"+n)),isNaN(r)&&(r=1),t=parseInt(readCookie("darNum"+n)),isNaN(t)&&(t=0),i=new Date,u=timeDayDifference(i,new Date(r)),!1&&u>5&&t<20){$("#dar-footer-msg-"+n).fadeIn();_my_event("send","event","darujAdfooter"+n,"shown",{nonInteraction:!0});const r=new bootstrap.Modal("#dar-footer-msg-"+n+"-modal");r.show();createCookie("darLast"+n,i.getTime(),25);createCookie("darNum"+n,t+1,360);var f=$("#dar-footer-msg"+n+" #fund-zavri-btn"),e=$("#dar-footer-msg"+n+" #fund-info-btn"),o=$("#dar-footer-msg"+n+" #fund-daruj-btn");o.click(function(){createCookie("darLast"+n,i.getTime(),25);createCookie("darNum"+n,t+3,360);$("#dar-footer-msg"+n).fadeOut()});e.click(function(){return createCookie("darLast"+n,i.getTime(),11),createCookie("darNum"+n,t+1,360),$("#dar-footer-msg"+n).fadeOut(),!0});f.click(function(){return createCookie("darLast"+n,i.getTime(),5),createCookie("darNum"+n,t+1,360),$("#dar-footer-msg"+n).fadeOut(),!1})}$('[data-toggle="popover"]').popover();$(".social-fb, .social-tw").on("click",function(n){var f,e;if(bowser.mobile||bowser.tablet)return!0;n.preventDefault();var t=$(window).width(),u=$(window).height(),i=580,r=325;i>t&&(i=t);r>t&&(r=u);f=t/2-i/2;e=u/2-r/2;window.open($(this).attr("href"),"sharer","top="+e+",left="+f+",toolbar=0,status=0,width=580,height=325")});s();$("#VZInfoAnon").on("show.bs.modal",function(n){var r=$(n.relatedTarget),t=encodeURI(r.data("url")),i=$(this);i.find("#VZInfoAnonRegister").attr("href","/account/Register?returnUrl="+t);i.find("#VZInfoAnonLogin").attr("href","/account/Login?returnUrl="+t)})});$(document).ready(function(){var n=parseInt(readCookie("defaultOldSearch"));isNaN(n)||n==0?($("#old-search-input").hide(),$("#new-search-input").show(),$("button.old-search-input").hide(),$("button.new-search-input").show()):($("#old-search-input").show(),$("#new-search-input").hide(),$("button.old-search-input").show(),$("button.new-search-input").hide());$("#new-search-input").css("visibility","visible");$("#old-search-input").css("visibility","visible");$("button.old-search-input").click(toggleSearchComponent).click(setNewSearchAsDefault);$("button.new-search-input").click(toggleSearchComponent).click(setOldSearchAsDefault)});
/*!
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2025 The Bootstrap Authors
* Licensed under the Creative Commons Attribution 3.0 Unported License.
*/
(()=>{"use strict";const t=()=>localStorage.getItem("theme"),i=n=>localStorage.setItem("theme",n),r=()=>{const n=t();return n?n:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},u=n=>{n==="auto"?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",n)},n=(n,t=false)=>{const r=document.querySelector("#bd-theme");if(r){const u=document.querySelector("#bd-theme-text"),f=document.querySelector(".theme-icon-active use"),i=document.querySelector(`[data-bs-theme-value="${n}"]`),e=i.querySelector("svg use").getAttribute("href");document.querySelectorAll("[data-bs-theme-value]").forEach(n=>{n.classList.remove("active"),n.setAttribute("aria-pressed","false")});i.classList.add("active");i.setAttribute("aria-pressed","true");f.setAttribute("href",e);const o=`${u.textContent} (${i.dataset.bsThemeValue})`;r.setAttribute("aria-label",o);t&&r.focus()}};!1&&window.addEventListener("DOMContentLoaded",()=>{n(r()),document.querySelectorAll("[data-bs-theme-value]").forEach(t=>{t.addEventListener("click",()=>{const r=t.getAttribute("data-bs-theme-value");i(r);u(r);n(r,!0)})})})})();!function(n){var t=function(t){this._options={checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",baitStyle:"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",debug:!1};this._var={version:"3.2.1",bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}};void 0!==t&&this.setOption(t);var i=this,r=function(){setTimeout(function(){i._options.checkOnLoad===!0&&(i._options.debug===!0&&i._log("onload->eventCallback","A check loading is launched"),null===i._var.bait&&i._creatBait(),setTimeout(function(){i.check()},1))},1)};void 0!==n.addEventListener?n.addEventListener("load",r,!1):n.attachEvent("onload",r)};t.prototype._options=null;t.prototype._var=null;t.prototype._bait=null;t.prototype._log=function(n,t){console.log("[FuckAdBlock]["+n+"] "+t)};t.prototype.setOption=function(n,t){var r,i;void 0!==t&&(r=n,n={},n[r]=t);for(i in n)this._options[i]=n[i],this._options.debug===!0&&this._log("setOption",'The option "'+i+'" he was assigned to "'+n[i]+'"');return this};t.prototype._creatBait=function(){var t=document.createElement("div");t.setAttribute("class",this._options.baitClass);t.setAttribute("style",this._options.baitStyle);this._var.bait=n.document.body.appendChild(t);this._var.bait.offsetParent;this._var.bait.offsetHeight;this._var.bait.offsetLeft;this._var.bait.offsetTop;this._var.bait.offsetWidth;this._var.bait.clientHeight;this._var.bait.clientWidth;this._options.debug===!0&&this._log("_creatBait","Bait has been created")};t.prototype._destroyBait=function(){n.document.body.removeChild(this._var.bait);this._var.bait=null;this._options.debug===!0&&this._log("_destroyBait","Bait has been removed")};t.prototype.check=function(n){if(void 0===n&&(n=!0),this._options.debug===!0&&this._log("check","An audit was requested "+(n===!0?"with a":"without")+" loop"),this._var.checking===!0)return this._options.debug===!0&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0;null===this._var.bait&&this._creatBait();var t=this;return this._var.loopNumber=0,n===!0&&(this._var.loop=setInterval(function(){t._checkBait(n)},this._options.loopCheckTime)),setTimeout(function(){t._checkBait(n)},1),this._options.debug===!0&&this._log("check","A check is in progress ..."),!0};t.prototype._checkBait=function(t){var i=!1,r;(null===this._var.bait&&this._creatBait(),(null!==n.document.body.getAttribute("abp")||null===this._var.bait.offsetParent||0==this._var.bait.offsetHeight||0==this._var.bait.offsetLeft||0==this._var.bait.offsetTop||0==this._var.bait.offsetWidth||0==this._var.bait.clientHeight||0==this._var.bait.clientWidth)&&(i=!0),void 0!==n.getComputedStyle)&&(r=n.getComputedStyle(this._var.bait,null),r&&("none"==r.getPropertyValue("display")||"hidden"==r.getPropertyValue("visibility"))&&(i=!0));this._options.debug===!0&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(i===!0?"positive":"negative"));t===!0&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop());i===!0?(this._stopLoop(),this._destroyBait(),this.emitEvent(!0),t===!0&&(this._var.checking=!1)):(null===this._var.loop||t===!1)&&(this._destroyBait(),this.emitEvent(!1),t===!0&&(this._var.checking=!1))};t.prototype._stopLoop=function(){clearInterval(this._var.loop);this._var.loop=null;this._var.loopNumber=0;this._options.debug===!0&&this._log("_stopLoop","A loop has been stopped")};t.prototype.emitEvent=function(n){var t,i;this._options.debug===!0&&this._log("emitEvent","An event with a "+(n===!0?"positive":"negative")+" detection was called");t=this._var.event[n===!0?"detected":"notDetected"];for(i in t)this._options.debug===!0&&this._log("emitEvent","Call function "+(parseInt(i)+1)+"/"+t.length),t.hasOwnProperty(i)&&t[i]();return this._options.resetOnEnd===!0&&this.clearEvent(),this};t.prototype.clearEvent=function(){this._var.event.detected=[];this._var.event.notDetected=[];this._options.debug===!0&&this._log("clearEvent","The event list has been cleared")};t.prototype.on=function(n,t){return this._var.event[n===!0?"detected":"notDetected"].push(t),this._options.debug===!0&&this._log("on",'A type of event "'+(n===!0?"detected":"notDetected")+'" was added'),this};t.prototype.onDetected=function(n){return this.on(!0,n)};t.prototype.onNotDetected=function(n){return this.on(!1,n)};n.FuckAdBlock=t;void 0===n.fuckAdBlock&&(n.fuckAdBlock=new t({checkOnLoad:!0,resetOnEnd:!0}))}(window);
/*!
 * Social Share Kit v1.0.14 (http://socialsharekit.com)
 * Copyright 2015 Social Share Kit / Kaspars Sprogis.
 * @Licensed under Creative Commons Attribution-NonCommercial 3.0 license:
 * https://github.com/darklow/social-share-kit/blob/master/LICENSE
 * ---
 */
SocialShareKit=function(){function s(n){return e(n).share()}function h(n){"loading"!=document.readyState?n():document.addEventListener?document.addEventListener("DOMContentLoaded",n):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&n()})}function i(n){return document.querySelectorAll(n)}function c(n,t){for(var i=0;i<n.length;i++)t(n[i],i)}function l(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent("on"+t,function(){i.call(n)})}function r(n){return n.className.match(nt)}function a(n){var t=n||window.event;return t.preventDefault?t.preventDefault():(t.returnValue=!1,t.cancelBubble=!0),t.currentTarget||t.srcElement}function v(n,t,i){var r,u,f,e;return t&&i?(u=document.documentElement.clientWidth/2-t/2,f=(document.documentElement.clientHeight-i)/2,e="status=1,resizable=yes,width="+t+",height="+i+",top="+f+",left="+u,r=window.open(n,"",e)):r=window.open(n),r.focus(),r}function y(t,i,r){var e,s=f(t,i,r),v=u(t,i,r,s),c="undefined"!=typeof s.title?s.title:p(i),h="undefined"!=typeof s.text?s.text:w(i),l=s.image?s.image:n("og:image"),a="undefined"!=typeof s.via?s.via:n("twitter:site"),o={shareUrl:v,title:c,text:h,image:l,via:a,options:t,shareUrlEncoded:function(){return encodeURIComponent(this.shareUrl)}};switch(i){case"facebook":e="https://www.facebook.com/share.php?u="+o.shareUrlEncoded();break;case"twitter":e="https://twitter.com/intent/tweet?url="+o.shareUrlEncoded()+"&text="+encodeURIComponent(c+(h&&c?" - ":"")+h);a&&(e+="&via="+a.replace("@",""));break;case"google-plus":e="https://plus.google.com/share?url="+o.shareUrlEncoded();break;case"pinterest":e="https://pinterest.com/pin/create/button/?url="+o.shareUrlEncoded()+"&description="+encodeURIComponent(h);l&&(e+="&media="+encodeURIComponent(l));break;case"tumblr":e="https://www.tumblr.com/share/link?url="+o.shareUrlEncoded()+"&name="+encodeURIComponent(c)+"&description="+encodeURIComponent(h);break;case"linkedin":e="https://www.linkedin.com/shareArticle?mini=true&url="+o.shareUrlEncoded()+"&title="+encodeURIComponent(c)+"&summary="+encodeURIComponent(h);break;case"vk":e="https://vkontakte.ru/share.php?url="+o.shareUrlEncoded();break;case"buffer":e="https://buffer.com/add?source=button&url="+o.shareUrlEncoded()+"&text="+encodeURIComponent(h);break;case"email":e="mailto:?subject="+encodeURIComponent(c)+"&body="+encodeURIComponent(c+"\n"+v+"\n\n"+h+"\n")}return o.networkUrl=e,t.onBeforeOpen&&t.onBeforeOpen(r,i,o),o.networkUrl}function u(n,t,i,r){return r=r||f(n,t,i),r.url||window.location.href}function p(t){var i;return"twitter"==t&&(i=n("twitter:title")),i||document.title}function w(t){var i;return"twitter"==t&&(i=n("twitter:description")),i||n("description")}function n(n,t){var r,u=i("meta["+(t?t:0===n.indexOf("og:")?"property":"name")+'="'+n+'"]');return u.length&&(r=u[0].getAttribute("content")||""),r||""}function f(n,t,i){var u,r,f,o,e=["url","title","text","image"],s={},h=i.parentNode;"twitter"==t&&e.push("via");for(o in e)r=e[o],f="data-"+r,u=i.getAttribute(f)||h.getAttribute(f)||(n[t]&&"undefined"!=typeof n[t][r]?n[t][r]:n[r]),"undefined"!=typeof u&&(s[r]=u);return s}function b(n,t){var i=document.createElement("div");i.innerHTML=t;i.className="ssk-num";n.appendChild(i)}function k(n,t,i,r){var u,f,o,e=encodeURIComponent(t);switch(n){case"facebook":u="https://graph.facebook.com/?id="+e;f=function(n){return r(n.share?n.share.share_count:0)};break;case"twitter":i&&i.twitter&&i.twitter.countCallback&&i.twitter.countCallback(t,r);break;case"google-plus":return u="https://clients6.google.com/rpc?key=AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ",o='[{"method":"pos.plusones.get","id":"p","params":{"id":"'+t+'","userId":"@viewer","groupId":"@self","nolog":true},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]',f=function(n){if(n=JSON.parse(n),n.length)return r(n[0].result.metadata.globalCounts.count)},void d(u,f,o);case"linkedin":u="https://www.linkedin.com/countserv/count/share?url="+e;f=function(n){return r(n.count)};break;case"pinterest":u="https://api.pinterest.com/v1/urls/count.json?url="+e;f=function(n){return r(n.count)};break;case"vk":u="https://vk.com/share.php?act=count&url="+e;f=function(n){return r(n)};break;case"buffer":u="https://api.bufferapp.com/1/links/shares.json?url="+e;f=function(n){return r(n.shares)}}u&&f&&g(n,u,f,o)}function d(n,t,i){var r=new XMLHttpRequest;r.onreadystatechange=function(){4===this.readyState&&this.status>=200&&this.status<400&&t(this.responseText)};r.open("POST",n,!0);r.setRequestHeader("Content-Type","application/json");r.send(i)}function g(n,t,i){var r="cb_"+n+"_"+Math.round(1e5*Math.random()),u=document.createElement("script");return window[r]=function(n){try{delete window[r]}catch(n){}document.body.removeChild(u);i(n)},"vk"==n?window.VK={Share:{count:function(n,t){window[r](t)}}}:"google-plus"==n&&(window.services={gplus:{cb:window[r]}}),u.src=t+(t.indexOf("?")>=0?"&":"?")+"callback="+r,document.body.appendChild(u),!0}var e,t,nt=/(twitter|facebook|google-plus|pinterest|tumblr|vk|linkedin|buffer|email)/,o="*|*";return t=function(n){var t=n||{},r=t.selector||".ssk";this.nodes=i(r);this.options=t},t.prototype={share:function(){function e(t){var i,u=a(t),h=r(u),f=h[0],o,s,e,c;if(h&&(i=y(n,f,u))){if(window.twttr&&u.getAttribute("href").indexOf("twitter.com/intent/")!==-1)return void u.setAttribute("href",i);"email"!==f?("buffer"===f?(o=800,s=680):(o=575,s=400),e=v(i,o,s),(n.onOpen&&n.onOpen(u,f,i,e),n.onClose)&&(c=window.setInterval(function(){e.closed!==!1&&(window.clearInterval(c),n.onClose(u,f,i,e))},250))):document.location=i}}function s(){var i,r;for(i in t)r=i.split(o),function(t){k(r[0],r[1],n,function(n){for(var i in t)b(t[i],n)})}(t[i])}var i=this.nodes,n=this.options,t={},f=function(){i.length&&(c(i,function(i){var s,f=r(i);f&&(i.getAttribute("data-ssk-ready")||(i.setAttribute("data-ssk-ready",!0),l(i,"click",e),i.parentNode.className.indexOf("ssk-count")!==-1&&(f=f[0],s=f+o+u(n,f,i),s in t||(t[s]=[]),t[s].push(i))))}),s())};return n.forceInit===!0?f():h(f),this.nodes}},e=function(n){return new t(n)},{init:s}}();window.SocialShareKit=SocialShareKit