// source --> https://kviztenger.hu/wp-content/plugins/mashsharer/assets/js/mashsb.min.js?ver=4.0.47 
var strict;
/*!------------------------------------------------------
 * jQuery nearest v1.0.3
 * http://github.com/jjenzz/jQuery.nearest
 * ------------------------------------------------------
 * Copyright (c) 2012 J. Smith (@jjenzz)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */!function(e,t){e.fn.nearest=function(n){var s,i,r,a,o,h=t.querySelectorAll;function update(t){i=i?i.add(t):e(t)}return this.each((function(){s=this,e.each(n.split(","),(function(){if((a=e.trim(this)).indexOf("#"))for(o=s.parentNode;o;){if((r=h?o.querySelectorAll(a):e(o).find(a)).length){update(r);break}o=o.parentNode}else update(h?t.querySelectorAll(a):e(a))}))})),i||e()}}(jQuery,document),jQuery(document).ready((function(e){(navigator.userAgent.match(/(iPhone)/i)||navigator.userAgent.match(/(Android)/i))&&e(".mashicon-whatsapp").show();function mashsb_is_rate_limit(){if(void 0===mashsb.servertime)return!0;var e=Number(mashsb.servertime);return Math.floor(Date.now()/1e3)>e+30?(console.log("rate limited: "+(e+30)),!0):(console.log("not rate limited: "+(e+30)),!1)}function roundShares(e){if("undefined"!=typeof mashsb&&1==mashsb.round_shares){if(e>1e6)return shares=Math.round(e/1e6*10)/10+"M",shares;if(e>1e3)return shares=Math.round(e/1e3*10)/10+"k",shares}return e.toFixed(0)}e("body").off("click",".mashicon-pinterest").on("click",".mashicon-pinterest",(function(t){t.preventDefault(),console.log("preventDefault:"+t),winWidth=520,winHeight=350;var n=screen.height/2-winHeight/2,s=screen.width/2-winWidth/2,i=e(this).attr("data-mashsb-url");window.open(i,"sharer","top="+n+",left="+s+",toolbar=0,status=0,width="+winWidth+",height="+winHeight+",resizable=yes")})),""==e(".mashsbcount").text()&&e(".mashsbcount").text(0),function mashsb_check_cache(){if(mashsb_is_rate_limit())return!1;setTimeout((function(){"1"==mashsb.refresh&&function mashsb_update_cache(){var e=window.location.href;e.indexOf("?")>-1?e+="&mashsb-refresh":e+="?mashsb-refresh";var t=new XMLHttpRequest;t.open("GET",e,!0),t.send()}()}),6e3)}(),e(".onoffswitch").on("click",(function(){var t=e(this).parents(".mashsb-container");t.find(".onoffswitch").hide(),t.find(".secondary-shares").show(),t.find(".onoffswitch2").show()})),e(".onoffswitch2").on("click",(function(){var t=e(this).parents(".mashsb-container");t.find(".onoffswitch").show(),t.find(".secondary-shares").hide()})),"undefined"==typeof lashare_fb&&"undefined"!=typeof mashsb&&e(".mashicon-facebook").click((function(t){winWidth=520,winHeight=550;var n=screen.height/2-winHeight/2,s=screen.width/2-winWidth/2,i=e(this).attr("href");return window.open(i,"sharer","top="+n+",left="+s+",toolbar=0,status=0,width="+winWidth+",height="+winHeight),t.preventDefault(),!1})),"undefined"!=typeof mashsb&&e(".mashicon-twitter").click((function(t){winWidth=520,winHeight=350;var n=screen.height/2-winHeight/2,s=screen.width/2-winWidth/2,i=e(this).attr("href");return"1"===mashsb.twitter_popup&&window.open(i,"sharer","top="+n+",left="+s+",toolbar=0,status=0,width="+winWidth+",height="+winHeight),t.preventDefault(),!1})),"undefined"!=typeof mashsb&&"content"===mashsb.subscribe&&(e(".mashicon-subscribe").not(".trigger_active").nearest(".mashsb-toggle-container").hide(),e(".mashicon-subscribe").click((function(){var t=e(this);return t.hasClass("trigger_active")?(e(t).nearest(".mashsb-toggle-container").slideToggle("fast"),t.removeClass("trigger_active")):(e(".trigger_active").nearest(".mashsb-toggle-container").slideToggle("slow"),e(".trigger_active").removeClass("trigger_active"),e(t).nearest(".mashsb-toggle-container").slideToggle("fast"),t.addClass("trigger_active")),!1}))),"undefined"!=typeof mashsb&&"link"===mashsb.subscribe&&e(".mashicon-subscribe").click((function(){var t=mashsb.subscribe_url;e(this).attr("href",t)})),function(e){e.fn.countTo=function(t){return t=t||{},e(this).each((function(){var n=e.extend({},e.fn.countTo.defaults,{from:e(this).data("from"),to:e(this).data("to"),speed:e(this).data("speed"),refreshInterval:e(this).data("refresh-interval"),decimals:e(this).data("decimals")},t),s=Math.ceil(n.speed/n.refreshInterval),i=(n.to-n.from)/s,r=this,a=e(this),o=0,h=n.from,c=a.data("countTo")||{};function render(e){var t=n.formatter.call(r,e,n);a.text(t)}a.data("countTo",c),c.interval&&clearInterval(c.interval),c.interval=setInterval((function updateTimer(){o++,render(h+=i),"function"==typeof n.onUpdate&&n.onUpdate.call(r,h);o>=s&&(a.removeData("countTo"),clearInterval(c.interval),h=n.to,"function"==typeof n.onComplete&&n.onComplete.call(r,h))}),n.refreshInterval),render(h)}))},e.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:roundShares,onUpdate:null,onComplete:null}}(jQuery),"undefined"!=typeof mashsb&&1==mashsb.animate_shares&&e(".mashsbcount").length&&e(".mashsbcount").countTo({from:0,to:mashsb.shares,speed:1e3,refreshInterval:100})}));
// source --> https://kviztenger.hu/wp-content/themes/bimber/js/modernizr/modernizr-custom.min.js?ver=3.3.0 
/*! modernizr 3.3.0 (Custom Build) | MIT *
 * http://modernizr.com/download/?-cssanimations-flexbox-flexboxtweener-setclasses-shiv !*/
!function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,a,i,s;for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)i=e[a],s=i.split("."),1===s.length?Modernizr[s[0]]=o:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=o),y.push((o?"":"no-")+s.join("-"))}}function a(e){var t=x.className,n=Modernizr._config.classPrefix||"";if(b&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),b?x.className.baseVal=t:x.className=t)}function i(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):b?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function c(e,t){return function(){return e.apply(t,arguments)}}function f(e,t,n){var o;for(var a in e)if(e[a]in t)return n===!1?e[a]:(o=t[e[a]],r(o,"function")?c(o,n||t):o);return!1}function u(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function d(){var e=t.body;return e||(e=s(b?"svg":"body"),e.fake=!0),e}function p(e,n,r,o){var a,i,l,c,f="modernizr",u=s("div"),p=d();if(parseInt(r,10))for(;r--;)l=s("div"),l.id=o?o[r]:f+(r+1),u.appendChild(l);return a=s("style"),a.type="text/css",a.id="s"+f,(p.fake?p:u).appendChild(a),p.appendChild(u),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(t.createTextNode(e)),u.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",c=x.style.overflow,x.style.overflow="hidden",x.appendChild(p)),i=n(u,e),p.fake?(p.parentNode.removeChild(p),x.style.overflow=c,x.offsetHeight):u.parentNode.removeChild(u),!!i}function m(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(u(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var a=[];o--;)a.push("("+u(t[o])+":"+r+")");return a=a.join(" or "),p("@supports ("+a+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function h(e,t,o,a){function c(){u&&(delete T.style,delete T.modElem)}if(a=r(a,"undefined")?!1:a,!r(o,"undefined")){var f=m(e,o);if(!r(f,"undefined"))return f}for(var u,d,p,h,g,v=["modernizr","tspan"];!T.style;)u=!0,T.modElem=s(v.shift()),T.style=T.modElem.style;for(p=e.length,d=0;p>d;d++)if(h=e[d],g=T.style[h],i(h,"-")&&(h=l(h)),T.style[h]!==n){if(a||r(o,"undefined"))return c(),"pfx"==t?h:!0;try{T.style[h]=o}catch(y){}if(T.style[h]!=g)return c(),"pfx"==t?h:!0}return c(),!1}function g(e,t,n,o,a){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+w.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?h(s,t,o,a):(s=(e+" "+_.join(i+" ")+i).split(" "),f(s,t,n))}function v(e,t,r){return g(e,n,n,t,r)}var y=[],C=[],E={_version:"3.3.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=E,Modernizr=new Modernizr;var x=t.documentElement,b="svg"===x.nodeName.toLowerCase();b||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=C.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=C.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),C.elements=n+" "+e,c(t)}function a(e){var t=y[e[g]];return t||(t={},v++,e[g]=v,y[v]=t),t}function i(e,n,r){if(n||(n=t),u)return n.createElement(e);r||(r=a(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():h.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!o.canHaveChildren||m.test(e)||o.tagUrn?o:r.frag.appendChild(o)}function s(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||a(e);for(var o=n.frag.cloneNode(),i=0,s=r(),l=s.length;l>i;i++)o.createElement(s[i]);return o}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return C.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(C,t.frag)}function c(e){e||(e=t);var r=a(e);return!C.shivCSS||f||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,r),e}var f,u,d="3.7.3",p=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",f="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){f=!0,u=!0}}();var C={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:d,shivCSS:p.shivCSS!==!1,supportsUnknownElements:u,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:c,createElement:i,createDocumentFragment:s,addElements:o};e.html5=C,c(t),"object"==typeof module&&module.exports&&(module.exports=C)}("undefined"!=typeof e?e:this,t);var S="Moz O ms Webkit",w=E._config.usePrefixes?S.split(" "):[];E._cssomPrefixes=w;var _=E._config.usePrefixes?S.toLowerCase().split(" "):[];E._domPrefixes=_;var N={elem:s("modernizr")};Modernizr._q.push(function(){delete N.elem});var T={style:N.elem.style};Modernizr._q.unshift(function(){delete T.style}),E.testAllProps=g,E.testAllProps=v,Modernizr.addTest("cssanimations",v("animationName","a",!0)),Modernizr.addTest("flexbox",v("flexBasis","1px",!0)),Modernizr.addTest("flexboxtweener",v("flexAlign","end",!0)),o(),a(y),delete E.addTest,delete E.addAsyncTest;for(var j=0;j<Modernizr._q.length;j++)Modernizr._q[j]();e.Modernizr=Modernizr}(window,document);