// source --> https://insperia.ru/wp-content/plugins/wp-reading-progress/wp-reading-progress.min.js?ver=1.6.0 
function ruigehond006(){function u(a){n=window.innerHeight;"undefined"!==typeof ruigehond006_c.mark_it_zero&&(r=Math.max(n-(t(a)+window.scrollY),0));v=l?l.offsetHeight:0;if(!document.getElementById("ruigehond006_bar")){document.body.insertAdjacentHTML("beforeend",'<div id="ruigehond006_wrap"><div id="ruigehond006_inner"><div id="ruigehond006_bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" tabindex="-1"></div></div></div>');const c=document.getElementById("ruigehond006_bar");
c.style.backgroundColor=ruigehond006_c.bar_color;ruigehond006_c.hasOwnProperty("aria_label")&&c.setAttribute("aria-label",ruigehond006_c.aria_label);"bottom"===ruigehond006_c.bar_attach&&(document.getElementById("ruigehond006_wrap").style.bottom="0",document.getElementById("ruigehond006_inner").style.bottom="0")}p(a);setTimeout(function(){p(a);document.getElementById("ruigehond006_inner").style.height||requestAnimationFrame(function(){document.getElementById("ruigehond006_inner").style.height=ruigehond006_c.bar_height})},
502)}function p(a){const c=a.scrollHeight-r,b=Math.max(Math.min(100*(n-t(a)-r)/c,100),0);requestAnimationFrame(function(){const h=document.getElementById("ruigehond006_bar");h.style.width=b+"%";h.setAttribute("aria-valuenow",Math.trunc(b).toString());"bottom"!==ruigehond006_c.bar_attach&&x()})}function x(){const a=document.getElementById("ruigehond006_wrap"),c=document.getElementById("ruigehond006_inner");(q=y())?requestAnimationFrame(function(){q.querySelector("#ruigehond006_wrap")||("undefined"!==
typeof ruigehond006_c.stick_relative?a.style.position="relative":(a.style.position="absolute",a.style.top="inherit"),q.insertAdjacentElement("beforeend",a));const b=(q.getBoundingClientRect().bottom-a.getBoundingClientRect().top).toFixed(2);b!==k&&(console.warn(`set cor from ${k} to ${b}`),c.style.transform=`translateY(${b}px)`,k=b)}):z(a,c)}function y(){let a,c;let b,h;if(0===m.length){var g=ruigehond006_c.bar_attach.split(",");b=0;for(h=g.length;b<h;++b){var e=g[b].trim();if(0===e.indexOf("#")&&
-1===e.indexOf(" "))m.push(document.getElementById(e.slice(1)));else if(e=document.querySelectorAll(e))for(c=0,a=e.length;c<a;++c)m.push(e[c])}}b=0;for(h=m.length;b<h;++b)if((g=m[b])&&((e=g.offsetHeight)||g.offsetWidth||g.getClientRects().length)&&0<(e+=t(g))&&e<n)return g;return null}function t(a){const c=window.scrollY;let b=0;for(;a;){b+=a.offsetTop;if(0<c&&"fixed"===(a.style.position||window.getComputedStyle(a).position).toLowerCase())return b;a=a.offsetParent}return b-c}function z(a,c){if(l||
"fixed"!==a.style.position){k="0";if(l&&"fixed"===(l.style.position||window.getComputedStyle(l).position).toLowerCase()&&(k=parseFloat(v).toFixed(2)+"px",k===a.style.top))return;requestAnimationFrame(function(){a.style.position="fixed";a.style.top=k;c.style.transform="translateY(0)";document.body.insertAdjacentElement("beforeend",a)})}}let n=0,r=0,q=null,v=0,f,d,w,k=0,m=[];const l=document.getElementById("wpadminbar");"undefined"!==typeof ruigehond006_c&&(f=document.querySelectorAll(ruigehond006_c.post_identifier),
d=1===f.length?f[0]:document.getElementById("post-"+ruigehond006_c.post_id)||document.body,ruigehond006_c.include_comments||(1===(f=d.querySelectorAll(".entry-content:not(.comment-content)")).length?d=f[0]:1===(f=d.querySelectorAll(".post-content:not(.comment-content)")).length?d=f[0]:1===(f=d.querySelectorAll(".main-content:not(.comment-content)")).length&&(d=f[0])),u(d),window.addEventListener("load",function(){p(d)}),window.addEventListener("scroll",function(){p(d)},{passive:!0}),window.addEventListener("resize",
function(){clearTimeout(w);w=setTimeout(function(){u(d)},372)}))}"complete"===document.readyState?setTimeout(ruigehond006,351):window.addEventListener("load",function(){setTimeout(ruigehond006,351)});
// source --> https://insperia.ru/wp-content/plugins/wp-yandex-metrika/assets/YmEc.min.js?ver=1.2.2 
function YmEc(options){const self=this;let products={};let cartItems={};let detailProductId=null;let currency=null;let hasActiveVariation=false;let sentDetails=[];let dataLayerName=options?options:"dataLayer";window[dataLayerName]=window[dataLayerName]||[];this.addData=function(data){if(!data){return}if(data.products){this.registerProducts(data.products)}if(data.cartItems){this.registerCartItems(data.cartItems)}if(data.currency){this.setCurrency(data.currency)}if(data.detailProductId){this.setDetailProductId(data.detailProductId)}if(data.hasActiveVariation){hasActiveVariation=true}if(data.actions){for(var index in data.actions){var action=data.actions[index];this.send(action.type,action.data)}}if(data.purchase){this.sendPurchase(data.purchase.actionField,data.purchase.products)}};this.registerCartItem=function(hash,data){cartItems[hash]=data};this.registerProduct=function(id,data){if(typeof data==="string"){console.log(data);try{data=JSON.parse(data)}catch(e){console.log("При регистрации товара произошла ошибка - неверная JSON строка");return}}products[id]=data};this.registerProducts=function(products){for(var productId in products){if(!products.hasOwnProperty(productId)){continue}self.registerProduct(productId,products[productId])}};this.registerCartItems=function(cartItems){for(var hash in cartItems){if(!cartItems.hasOwnProperty(hash)){continue}self.registerCartItem(hash,cartItems[hash])}};this.isDetail=function(){return!!detailProductId};this.hasActiveVariation=function(){return hasActiveVariation};this.setDetailProductId=function(productId){detailProductId=productId};this.setCurrency=function(currencyCode){currency=currencyCode};this.getCurrency=function(){return currency};this.getDetailProductId=function(){return detailProductId};this.getProduct=function(id){return products[id]||null};this.getProductByHash=function(hash){if(!cartItems.hasOwnProperty(hash)){return null}const productId=cartItems[hash].id;return products[productId]||null};this.getProducts=function(){return products};this.getCartItems=function(){return cartItems};this.clearCartItems=function(){cartItems={}};this.clearProducts=function(){products={}};this.updateCartItems=function(newCartItems){for(let hash in cartItems){const cartItem=cartItems[hash];if(typeof newCartItems[hash]==="undefined"){this.send("remove",hash,{quantity:cartItem.quantity});delete cartItems[hash]}}for(let hash in newCartItems){const newCartItem=newCartItems[hash];const lastCartItem=cartItems[hash];const quantity=Math.abs(newCartItem.quantity-lastCartItem.quantity);const type=newCartItem.quantity>lastCartItem.quantity?"add":"remove";if(quantity>0){this.send(type,hash,{quantity:quantity})}lastCartItem.quantity=newCartItem.quantity}};this.send=function(type,product,additionalData){if(["string","number"].indexOf(typeof product)>-1){product=self.getProduct(product)}if(!product){console.log("Не удалось найти данные товара для отправки в электронную коммерцию",product);return}additionalData=additionalData||{};for(let key in additionalData){if(!additionalData.hasOwnProperty(key)){continue}product[key]=additionalData[key]}const dataLayerData={ecommerce:{}};dataLayerData.ecommerce[type]={products:[product]};if(currency){dataLayerData["ecommerce"]["currencyCode"]=currency}window[dataLayerName].push(dataLayerData)};this.sendPurchase=function(actionField,products){const dataLayerData={ecommerce:{purchase:{actionField:actionField,products:products}}};if(currency){dataLayerData["ecommerce"]["currencyCode"]=currency}window[dataLayerName].push(dataLayerData)}};