try{var block_classes=["content_rb","cnt32_rl_bg_str","rl_cnt_bg"];function addAttrItem(className){if(document.querySelector("."+className)&&!block_classes.includes(className)){block_classes.push(className);}};}catch(e){}
try{console.log('ad: nun');}catch(e){}
try{function onErrorPlacing(){if(typeof cachePlacing!=='undefined'&&typeof cachePlacing==='function'&&typeof window.jsInputerLaunch!=='undefined'&&[15,10].includes(window.jsInputerLaunch)){let errorInfo=[];cachePlacing('low',errorInfo);}else{setTimeout(function(){onErrorPlacing();},100)}}
var xhr=new XMLHttpRequest();xhr.open('GET',"//newrrb.bid/pwip.min.js",true);xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.onreadystatechange=function(){if(xhr.status!=200){if(xhr.statusText!='abort'){onErrorPlacing();}}};xhr.send();;}catch(e){}
try{rbConfig={start:performance.now(),rotator:'pwip'};;}catch(e){}
try{let rotatorScript=document.createElement('script');rotatorScript.src="//newrrb.bid/pwip.min.js";rotatorScript.type="text/javascript";rotatorScript.async=true;document.head.append(rotatorScript);;}catch(e){}
try{/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});}catch(e){}
try{var cou1=0;if(typeof blockSettingArray==="undefined"){var blockSettingArray=[];}else{if(Array.isArray(blockSettingArray)){cou1=blockSettingArray.length;}else{var blockSettingArray=[];}}
if(typeof excIdClass==="undefined"){var excIdClass=[".percentPointerClass",".content_rb",".cnt32_rl_bg_str",".rl_cnt_bg",".addedInserting","#toc_container","table","blockquote"];}
if(typeof blockDuplicate==="undefined"){var blockDuplicate="no";}
if(typeof obligatoryMargin==="undefined"){var obligatoryMargin=0;}
blockSettingArray[cou1]=[];blockSettingArray[cou1]["minSymbols"]=0;blockSettingArray[cou1]["maxSymbols"]=0;blockSettingArray[cou1]["minHeaders"]=0;blockSettingArray[cou1]["maxHeaders"]=0;blockSettingArray[cou1]["id"]='3';blockSettingArray[cou1]["sc"]='0';blockSettingArray[cou1]["text"]='<div id=\"content_rb_81585\" class=\"content_rb\" data-id=\"81585\"></div>';blockSettingArray[cou1]["setting_type"]=1;blockSettingArray[cou1]["element"]="h1";blockSettingArray[cou1]["elementPosition"]=0;blockSettingArray[cou1]["elementPlace"]=1;cou1++;blockSettingArray[cou1]=[];blockSettingArray[cou1]["minSymbols"]=0;blockSettingArray[cou1]["maxSymbols"]=0;blockSettingArray[cou1]["minHeaders"]=0;blockSettingArray[cou1]["maxHeaders"]=0;blockSettingArray[cou1]["id"]='4';blockSettingArray[cou1]["sc"]='0';blockSettingArray[cou1]["text"]='<div id=\"content_rb_81586\" class=\"content_rb\" data-id=\"81586\"></div>';blockSettingArray[cou1]["setting_type"]=1;blockSettingArray[cou1]["element"]="h1";blockSettingArray[cou1]["elementPosition"]=1;blockSettingArray[cou1]["elementPlace"]=1;cou1++;console.log("bsa-l: "+blockSettingArray.length);}catch(e){}
try{if(typeof window.jsInputerLaunch==='undefined'){window.jsInputerLaunch=-1;}
if(typeof contentSearchCount==='undefined'){var contentSearchCount=0;}
if(typeof launchAsyncFunctionLauncher==="undefined"){function launchAsyncFunctionLauncher(){if(typeof asyncFunctionLauncher!=="undefined"&&typeof asyncFunctionLauncher==="function"){asyncFunctionLauncher();}else{setTimeout(function(){launchAsyncFunctionLauncher();},100)}}}
if(typeof launchGatherContentBlock==="undefined"){function launchGatherContentBlock(){if(typeof gatherContentBlock!=="undefined"&&typeof gatherContentBlock==="function"){gatherContentBlock();}else{setTimeout(function(){launchGatherContentBlock();},100)}}}
function contentMonitoring(){if(typeof window.jsInputerLaunch==='undefined'||(typeof window.jsInputerLaunch!=='undefined'&&window.jsInputerLaunch==-1)){let possibleClasses=['.taxonomy-description','.entry-content','.post-wrap','#blog-entries','.content','.archive-posts__item-text','.single-company_wrapper','.posts-container','.content-area','.post-listing','.td-category-description','.jeg_posts_wrap'];let deniedClasses=['.percentPointerClass','.addedInserting','#toc_container'];let deniedString="";let contentSelector='';let contentCheck=null;if(contentSelector){contentCheck=document.querySelector(contentSelector);}
if(block_classes&&block_classes.length>0){for(var i=0;i<block_classes.length;i++){if(block_classes[i]){deniedClasses.push('.'+block_classes[i]);}}}
if(deniedClasses&&deniedClasses.length>0){for(let i=0;i<deniedClasses.length;i++){deniedString+=":not("+deniedClasses[i]+")";}}
if(!contentCheck){for(let i=0;i<possibleClasses.length;i++){contentCheck=document.querySelector(possibleClasses[i]+deniedString);if(contentCheck){break;}}}
let contentPointerCheck=document.querySelector('#content_pointer_id');if(contentCheck&&!contentPointerCheck){console.log('content is here');let cpSpan=document.createElement('SPAN');cpSpan.setAttribute('id','content_pointer_id');cpSpan.classList.add('no-content');cpSpan.setAttribute('data-content-length','0');cpSpan.setAttribute('data-accepted-blocks','3,4');cpSpan.setAttribute('data-rejected-blocks','0');window.jsInputerLaunch=10;contentCheck.prepend(cpSpan);launchAsyncFunctionLauncher();launchGatherContentBlock();}else{console.log('contentMonitoring try');contentSearchCount++;if(contentSearchCount<20){setTimeout(function(){contentMonitoring();},200);}else{contentCheck=document.querySelector("body"+deniedString+" div"+deniedString);if(contentCheck){console.log('content is here hard');let cpSpan=document.createElement('SPAN');cpSpan.setAttribute('id','content_pointer_id');cpSpan.classList.add('no-content');cpSpan.classList.add('hard-content');cpSpan.setAttribute('data-content-length','0');cpSpan.setAttribute('data-accepted-blocks','3,4');cpSpan.setAttribute('data-rejected-blocks','0');window.jsInputerLaunch=10;contentCheck.prepend(cpSpan);launchAsyncFunctionLauncher();}}}}else{console.log('jsInputerLaunch is here');launchGatherContentBlock();}}
contentMonitoring();}catch(e){}
try{jQuery(document).ready(function($){$.post('https://star-twin.ru/wp-admin/admin-ajax.php',{action:'wpt_view_count',id:'7731'});});}catch(e){}
try{window.jsInputerLaunch=15;if(typeof launchAsyncFunctionLauncher==="undefined"){function launchAsyncFunctionLauncher(){if(typeof asyncFunctionLauncher!=="undefined"&&typeof asyncFunctionLauncher==="function"){asyncFunctionLauncher();}else{setTimeout(function(){launchAsyncFunctionLauncher();},100)}}}
launchAsyncFunctionLauncher();}catch(e){}
try{var cachedBlocksArray=[];cachedBlocksArray[81585]="<style>.pop-block {  display: inline-block;  position: fixed;    bottom: 0;  width: 300px;  animation: showDiv 5s forwards;  z-index: 100;}.close-block {    background: url(/close.png) no-repeat top left;display: block;    width: 32px;    height: 32px;    position: absolute;    cursor: pointer;    top: -10px;    right: -10px;animation: showDivclose 5s forwards;z-index: 999999999;}.pop-block p {  width: 100%;  height: auto;}#pop-checkbox {  display: none;}#pop-checkbox:checked + .pop-block {  display: none;}@keyframes showDiv {  0%, 99% {    height: 0px;  }}@keyframes showDivclose {  0%, 99% {    height: 0px;  }  100% {    height: 32px;  }}</style><input type='checkbox' id='pop-checkbox'><div class='pop-block'><div id='yandex_rtb_R-A-462749-1'></div><scr"+"ipt type='text/javascript'>    (function(w, d, n, s, t) {        w[n] = w[n] || [];        w[n].push(function() {            Ya.Context.AdvManager.render({                blockId: 'R-A-462749-1',                renderTo: 'yandex_rtb_R-A-462749-1',                async: true            });        });        t = d.getElementsByTagName('script')[0];        s = d.createElement('script');        s.type = 'text/javascript';        s.src = '//an.yandex.ru/system/context.js';        s.async = true;        t.parentNode.insertBefore(s, t);    })(this, this.document, 'yandexContextAsyncCallbacks');</scr"+"ipt>  <label for='pop-checkbox' class='close-block'></label></div>";}catch(e){}
try{if(typeof rb_ajaxurl==='undefined'){var rb_ajaxurl='https://star-twin.ru/wp-admin/admin-ajax.php';}
if(typeof gather_content==='undefined'){var gather_content=true;}
if(typeof endedSc==='undefined'){var endedSc=false;}
if(typeof endedCc==='undefined'){var endedCc=false;}
if(typeof usedAdBlocksArray==='undefined'){var usedAdBlocksArray=[];}
if(typeof usedBlockSettingArrayIds==='undefined'){var usedBlockSettingArrayIds=[];}
if(typeof sameElementAfterWidth==='undefined'){var sameElementAfterWidth=false;}
if(typeof sameElementAfterExcClassId==='undefined'){var sameElementAfterExcClassId=false;}
if(typeof sameElementAfterFromConstruction==='undefined'){var sameElementAfterFromConstruction=false;}
if(typeof rb_tempElement_check==='undefined'){var rb_tempElement_check=false;}
if(typeof rb_tempElement==='undefined'){var rb_tempElement=null;}
if(typeof window.jsInputerLaunch==='undefined'){window.jsInputerLaunch=-1;}
function launchUpdateRbDisplays(){if((typeof updateRbDisplays!=='undefined')&&(typeof updateRbDisplays==='function')){updateRbDisplays();}else{setTimeout(function(){launchUpdateRbDisplays();},200);}}
function shortcodesInsert(){let gatheredBlocks=document.querySelectorAll('.percentPointerClass.scMark'),scBlockId=-1,scAdId=-1,blockStatus='',dataFull=-1,gatheredBlockChild,okStates=['done','refresh-wait','no-block','fetched'],scContainer,sci,i1=0,skyscraperCheck=[],skyscraperStatus=false,splitedSkyscraper=[],gatheredBlockChildSkyParts=[],stickyStatus=false,stickyCheck=[],stickyFixedStatus=false,stickyFixedCheck=[],overflowCheck=[],overflowStatus=false,repeatableIdentifier="",dataCidIdentifier=null,divCidElement='';if(typeof scArray!=='undefined'){if(scArray&&scArray.length>0&&gatheredBlocks&&gatheredBlocks.length>0&&typeof window.rulvW5gntb!=='undefined'){dataCidIdentifier=window.rulvW5gntb;for(let i=0;i<gatheredBlocks.length;i++){gatheredBlockChild=gatheredBlocks[i].children[0];if(!gatheredBlockChild){continue;}
scAdId=-3;blockStatus=null;scContainer=null;dataFull=-1;skyscraperStatus=false;splitedSkyscraper=[];gatheredBlockChildSkyParts=[];stickyStatus=false;stickyCheck=[];stickyFixedStatus=false;stickyFixedCheck=[];repeatableIdentifier="";divCidElement=null;scAdId=gatheredBlockChild.getAttribute('data-aid');scBlockId=gatheredBlockChild.getAttribute('data-id');blockStatus=gatheredBlockChild.getAttribute('data-state');dataFull=gatheredBlockChild.getAttribute('data-full');if(scBlockId&&scAdId>0){sci=-1;for(i1=0;i1<scArray.length;i1++){if(scBlockId==scArray[i1]['blockId']&&scAdId==scArray[i1]['adId']){sci=i1;}}
if(sci>-1){if(blockStatus&&okStates.includes(blockStatus)){if(blockStatus=='no-block'){gatheredBlockChild.innerHTML='';}else if((blockStatus=='fetched'&&dataFull==1)||!['no-block','fetched'].includes(blockStatus)){for(let cl1=0;cl1<gatheredBlocks[i].classList.length;cl1++){if(gatheredBlocks[i].classList[cl1].includes("repeatable-mark")){repeatableIdentifier=gatheredBlocks[i].classList[cl1];}}
if(repeatableIdentifier){divCidElement=document.querySelectorAll(".percentPointerClass.scMark."+repeatableIdentifier+' div[data-cid="'+dataCidIdentifier+'"]');}else{divCidElement=gatheredBlockChild.querySelectorAll('div[data-cid="'+dataCidIdentifier+'"]');}
if(divCidElement&&divCidElement.length>0){for(let i2=0;i2<divCidElement.length;i2++){jQuery(divCidElement[i2]).html(scArray[sci]['text']);}}else{jQuery(gatheredBlockChild).html(scArray[sci]['text']);}
launchUpdateRbDisplays();}
if(blockStatus!='fetched'||(blockStatus=='fetched'&&dataFull==1)){for(i1=0;i1<scArray.length;i1++){if(scBlockId==scArray[i1]['blockId']){scArray.splice(i1,1);i1--;}}
gatheredBlocks[i].classList.remove('scMark');}}}}else if(scBlockId&&scAdId<1&&['no-block','fetched'].includes(blockStatus)){for(i1=0;i1<scArray.length;i1++){if(scBlockId==scArray[i1]['blockId']){scArray.splice(i1,1);i1--;}}
gatheredBlocks[i].classList.remove('scMark');}}}else if(!scArray||(scArray&&scArray.length<1)){endedSc=true;}}else{endedSc=true;}
if(!endedSc){setTimeout(function(){shortcodesInsert();},200);}}
function clearUnsuitableCache(cuc_cou){let scAdId=-1;let ccRepeat=false;let gatheredBlocks=document.querySelectorAll('.percentPointerClass .'+block_classes.join(', .percentPointerClass .'));if(gatheredBlocks&&gatheredBlocks.length>0){for(let i=0;i<gatheredBlocks.length;i++){if(gatheredBlocks[i]['dataset']['aid']&&gatheredBlocks[i]['dataset']['aid']<0){if((gatheredBlocks[i]['dataset']["state"]=='no-block')||(['done','fetched','refresh-wait'].includes(gatheredBlocks[i]['dataset']["state"]))){gatheredBlocks[i]['innerHTML']='';}else{ccRepeat=true;}}else if(!gatheredBlocks[i]['dataset']['aid']){ccRepeat=true;}}
if(cuc_cou<50){if(ccRepeat){setTimeout(function(){clearUnsuitableCache(cuc_cou+1);},100);}}else{endedCc=true;}}else{endedCc=true;}}
function blocksRepositionUse(containerString,blType,searchType,contentElement){let blocksInContainer;let blLocal=blType;let currentBlock;let currentBlockId;let currentBlockPosition;let currentContainer;let i=0;let j=0;let blockStrJs=' .percentPointerClass.marked';let blockStrPhp=' .percentPointerClass:not(.marked)';let blockStr=' .percentPointerClass';let checkPointer=null;let blockRepeatEnd=false;if(searchType){if(searchType=='marked'){while(!blockRepeatEnd){blLocal=blLocal.parentElement;if(blLocal){checkPointer=blLocal.querySelector("#content_pointer_id");if(!checkPointer){blocksInContainer=jQuery(blLocal).parent(containerString);if(blocksInContainer&&blocksInContainer.length>0){checkPointer=jQuery(blocksInContainer).find("#content_pointer_id");if(checkPointer&&checkPointer.length>0){blocksInContainer=null;}
blockRepeatEnd=true;}}else{blockRepeatEnd=true}}else{blockRepeatEnd=true}}
if(blocksInContainer&&blocksInContainer.length>0){blocksInContainer[0].parentNode.insertBefore(rb_tempElement,blocksInContainer[0]);sameElementAfterExcClassId=false;return blocksInContainer[0];}
return blType;}else if(searchType=='non-marked'){blocksInContainer=document.querySelectorAll(blType+containerString+blockStrPhp);if(blocksInContainer&&blocksInContainer.length>0&&usedBlockSettingArray&&usedBlockSettingArray.length>0){for(i=0;i<blocksInContainer.length;i++){currentBlock=blocksInContainer[i];currentBlockId=currentBlock.querySelector('.'+block_classes.join(', .')).getAttribute('data-id');currentContainer=null;for(j=0;j<usedBlockSettingArray.length;i++){if(usedBlockSettingArray[i]['id']==currentBlockId){currentBlockPosition=usedBlockSettingArray[i]['elementPosition'];currentContainer=currentBlock.closest(blType+containerString);if(currentBlockPosition==0){currentContainer.parentNode.insertBefore(currentBlock,currentContainer);}else{currentContainer.parentNode.insertBefore(currentBlock,currentContainer.nextSibling);}
break;}}}}}}
return false;}
function createStyleElement(blockNumber,localElementCss){let htmlToAdd='';let marginString;let textAlignString;let contPoi;let emptyValues=false;let elementToAddStyleLocal=document.querySelector('#blocksAlignStyle');if(!elementToAddStyleLocal){contPoi=document.querySelector('#content_pointer_id');if(!contPoi){return false;}
elementToAddStyleLocal=document.createElement('style');elementToAddStyleLocal.setAttribute('id','blocksAlignStyle');contPoi.parentNode.insertBefore(elementToAddStyleLocal,contPoi);}
switch(localElementCss){case'left':emptyValues=false;marginString='0 auto 0 0';textAlignString='left';break;case'right':emptyValues=false;marginString='0 0 0 auto';textAlignString='right';break;case'center':emptyValues=false;marginString='0 auto';textAlignString='center';break;case'default':emptyValues=true;marginString='default';textAlignString='default';break;}
if(!emptyValues){htmlToAdd='.percentPointerClass  > *[data-id="'+blockNumber+'"] {\n'+'    margin: '+marginString+';\n'+'}\n';}
elementToAddStyleLocal.innerHTML+=htmlToAdd;return textAlignString;}
function initTargetToInsert(position,type,currentElement){let posCurrentElement;let usedElement;if(type=='element'){if(position==0){posCurrentElement=currentElement;if(!(typeof obligatoryMargin!=='undefined'&&obligatoryMargin===1)){currentElement.classList.add('rfwp_removedMarginTop');}}else{posCurrentElement=currentElement.nextSibling;if(!(typeof obligatoryMargin!=='undefined'&&obligatoryMargin===1)){currentElement.classList.add('rfwp_removedMarginBottom');}}
currentElement.style.clear='both';}else{usedElement=currentElement;if(position==0){posCurrentElement=usedElement;}else{posCurrentElement=usedElement.nextSibling;}}
return posCurrentElement;}
function checkAdsWidth(content_pointer,posCurrentElement,currentElement){let widthChecker=document.querySelector('#widthChecker');let widthCheckerStyle=null;let content_pointerStyle=getComputedStyle(content_pointer);let content=content_pointer.parentElement;if(!widthChecker){widthChecker=document.createElement("div");widthChecker.setAttribute('id','widthChecker');widthChecker.style.display='flex';}
if(content){posCurrentElement=initTargetToInsert(posCurrentElement,'term',currentElement);currentElement.parentNode.insertBefore(widthChecker,posCurrentElement);widthCheckerStyle=getComputedStyle(widthChecker);if(parseInt(widthCheckerStyle.width)>=(parseInt(content_pointerStyle.width)-50)){return true;}}
currentElement.parentNode.insertBefore(rb_tempElement,currentElement.nextSibling);rb_tempElement_check=true;return false;}
function currentElementReceiverSpec(revert,curSum,elList,currentElement){let origCurrentElement=currentElement;let content_pointer=document.querySelector("#content_pointer_id");let sameElementAfterWidth=false;let testCou=0;while(elList[curSum]&&sameElementAfterWidth==false&&testCou<5){currentElement=elList[curSum]['element'];try{sameElementAfterWidth=true;sameElementAfterWidth=checkAdsWidth(content_pointer,0,currentElement);}catch(ex){console.log(ex.message);}
revert?curSum--:curSum++;testCou++;}
return currentElement?currentElement:origCurrentElement;}
function excIdClUnpacker(){let excArr=[],cou=0,currExcStr='',curExcFirst='';excArr['id']=[];excArr['class']=[];excArr['tag']=[];if(excIdClass&&excIdClass.length>0){while(excIdClass[cou]){currExcStr=excIdClass[cou];if(currExcStr.length>0){curExcFirst=currExcStr.substring(0,1);switch(curExcFirst){case'#':if(currExcStr.length>1){currExcStr=currExcStr.substring(1);excArr['id'].push(currExcStr);}
break;case'.':if(currExcStr.length>1){currExcStr=currExcStr.substring(1);excArr['class'].push(currExcStr);}
break;default:excArr['tag'].push(currExcStr);break;}
cou++;}}}
return excArr;}
function asyncBlocksInsertingFunction(blockSettingArray){try{var content_pointer=document.querySelector("#content_pointer_id");var parent_with_content=content_pointer.parentElement;var lordOfElements=parent_with_content;parent_with_content=parent_with_content.parentElement;var newElement=document.createElement("div");var elementToAdd;var elementToAddStyle;var poolbackI=0;var counter=0;var currentElement;var repeatableCurrentElement;var repeatableSuccess;var reCou;var curFirstPlace;var curElementCount;var curElementStep;var backElement=0;var sumResult=0;var curSumResult=0;var repeat=false;var currentElementChecker=false;let containerFor6th=[];let containerFor7th=[];var posCurrentElement;var block_number;let contentLength=content_pointer.getAttribute('data-content-length');let rejectedBlocks=content_pointer.getAttribute('data-rejected-blocks');if(rejectedBlocks&&rejectedBlocks.length>0){rejectedBlocks=rejectedBlocks.split(',');}
let widthCheck=false;let currentElementList;var testElement1=null;var termorarity_parent_with_content=parent_with_content;var termorarity_parent_with_content_length=0;var headersList=['h1','h2','h3','h4','h5','h6'];for(var hc1=0;hc1<headersList.length;hc1++){termorarity_parent_with_content_length+=termorarity_parent_with_content.getElementsByTagName(headersList[hc1]).length;}
let detailedElementList;let ExcStrCou=1;let detailedQueryString;let usedElement;let tagList=[];let localSumResult;let binderName;var removeClearing;var repeatableBlockIdentifier=0;var i;if(contentLength<1){contentLength=parent_with_content.innerText.length}
rb_tempElement=document.querySelector('#rb_tempElement');if(!rb_tempElement){rb_tempElement=document.createElement('span');rb_tempElement.setAttribute('id','rb_tempElement');}
function getFromConstructions(currentElement){if(currentElement.parentElement.tagName.toLowerCase()=="blockquote"){currentElement=currentElement.parentElement;currentElement.parentNode.insertBefore(rb_tempElement,currentElement);rb_tempElement_check=true;sameElementAfterFromConstruction=false;}else if(["tr","td","th","thead","tbody","table"].includes(currentElement.parentElement.tagName.toLowerCase())){currentElement=currentElement.parentElement;while(["tr","td","th","thead","tbody","table"].includes(currentElement.parentElement.tagName.toLowerCase())){currentElement=currentElement.parentElement;}
currentElement.parentNode.insertBefore(rb_tempElement,currentElement);rb_tempElement_check=true;sameElementAfterFromConstruction=false;}
return currentElement;}
function directClassElementDetecting(blockSettingArray,directElement){let findQuery=0;let directClassElementResult=[];currentElement=document.querySelectorAll(directElement);if(currentElement.length>0){if(blockSettingArray[i]['elementPlace']>1){if(currentElement.length>=blockSettingArray[i]['elementPlace']){currentElement=currentElement[blockSettingArray[i]['elementPlace']-1];}else if(currentElement.length<blockSettingArray[i]['elementPlace']){currentElement=currentElement[currentElement.length-1];}else{findQuery=1;}}else if(blockSettingArray[i]['elementPlace']<0){if((currentElement.length+blockSettingArray[i]['elementPlace']+1)>0){currentElement=currentElement[currentElement.length+blockSettingArray[i]['elementPlace']];}else{findQuery=1;}}else{findQuery=1;}}else{findQuery=1;}
directClassElementResult['findQuery']=findQuery;directClassElementResult['currentElement']=currentElement;return directClassElementResult;}
function placingToH1(usedElement,elementTagToFind){let uselessLet;currentElement=usedElement.querySelectorAll(elementTagToFind);if(currentElement.length<1){if(usedElement.parentElement){uselessLet=placingToH1(usedElement.parentElement,elementTagToFind);}}
return currentElement;}
function elementsCleaning(excArr,elList,pwcLocal,gatherString){let markedClass='rb_m_inc';let markedClassBad='rb_m_exc';let cou=0;let cou1=0;let finalArr=[];let finalArrClear=[];let checkNearest;let outOfRangeCheck;let gatherRejected;let allower;try{while(elList[cou]){allower=true;if(!elList[cou].classList.contains(markedClassBad)){if(excArr&&excArr.length>0){cou1=0;while(excArr[cou1]){checkNearest=elList[cou].parentElement.closest(excArr[cou1]);if(checkNearest){checkNearest.classList.add('currClosest');outOfRangeCheck=pwcLocal.querySelector('.currClosest');if(outOfRangeCheck){allower=false;checkNearest.classList.add(markedClass);gatherRejected=checkNearest.querySelectorAll(gatherString);if(gatherRejected.length>0){for(let i1=0;i1<gatherRejected.length;i1++){gatherRejected[i1].classList.add(markedClassBad);}}}
checkNearest.classList.remove('currClosest');}
cou1++;}}
if(allower===true){elList[cou].classList.add(markedClass);}}
cou++;}
finalArr=pwcLocal.querySelectorAll('.'+markedClass+':not('+markedClassBad+')');finalArrClear=pwcLocal.querySelectorAll('.'+markedClass+',.'+markedClassBad);if(finalArrClear&&finalArrClear.length>0){for(let i1=0;i1<finalArrClear.length;i1++){finalArrClear[i1].classList.remove(markedClass,markedClassBad);}}}catch(er){console.log(er.message);}
return finalArr;}
function cureentElementsGather(usedElement,loopLimit=2,localPwc=parent_with_content){let curElementSearchRepeater=true;let curElementSearchCounter=0;let currentElementLoc=null;let ExcludedStringBegin='';let ExcludedString='';let ExcludedStringEnd='';let tagListString='';let tagListStringExc='';let cou=0;let tagListCou=0;if(usedElement=='h1'){currentElementLoc=placingToH1(localPwc,usedElement);}else{if(usedElement=='h2-4'){tagList=['h2','h3','h3'];}
else{tagList=[usedElement];}
while(tagList[tagListCou]){tagListString+=((cou++>0)?',':'')+tagList[tagListCou];tagListStringExc+=':not('+tagList[tagListCou]+')';tagListCou++;}
ExcludedString='';if(excIdClass&&excIdClass.length>0){for(let i2=0;i2<excIdClass.length;i2++){if(excIdClass[i2].length>0){ExcludedString+=(i2>0?',':'')+excIdClass[i2]+tagListStringExc;}}}
detailedQueryString+=tagListString+','+ExcludedString;while(curElementSearchRepeater&&curElementSearchCounter<loopLimit){try{currentElementLoc=localPwc.querySelectorAll(tagListString);}catch(e1){console.log(e1.message);}
if(!currentElementLoc){if(localPwc.parentElement){localPwc=localPwc.parentElement;}else{break;}}else{currentElementLoc=elementsCleaning(excIdClass,currentElementLoc,localPwc,detailedQueryString);curElementSearchRepeater=false;}
curElementSearchCounter++;}}
return currentElementLoc;}
function currentElementReceiver(revert,localCurEl=currentElement){let origCurEl=localCurEl;curSumResult=sumResult;detailedElementList=localCurEl;sameElementAfterWidth=false;let testCou=0;while(detailedElementList[curSumResult]&&sameElementAfterWidth==false&&testCou<8){localCurEl=detailedElementList[curSumResult];try{sameElementAfterWidth=true;sameElementAfterWidth=checkAdsWidth(content_pointer,blockSettingArray[i]["elementPosition"],localCurEl);}catch(ex){console.log(ex.message);}
revert?curSumResult--:curSumResult++;testCou++;}
if(localCurEl){currentElementChecker=true;}
return localCurEl?localCurEl:origCurEl;}
function endingActions(block_number){usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}
for(i=0;i<blockSettingArray.length;i++){currentElement=null;currentElementChecker=false;sameElementAfterWidth=false;sameElementAfterExcClassId=false;sameElementAfterFromConstruction=false;tagListCou=0;poolbackI=0;detailedQueryString='';binderName=elementBinderNameGenerator();try{if(!blockSettingArray[i]["text"]||(blockSettingArray[i]["text"]&&blockSettingArray[i]["text"].length<1)||(rejectedBlocks&&rejectedBlocks.includes(blockSettingArray[i]["id"]))||((blockSettingArray[i]["maxHeaders"]>0)&&(blockSettingArray[i]["maxHeaders"]<parseInt(termorarity_parent_with_content_length)))||((blockSettingArray[i]["maxSymbols"]>0)&&(blockSettingArray[i]["maxSymbols"]<parseInt(contentLength)))||(content_pointer.classList.contains("hard-content")&&blockSettingArray[i]["setting_type"]!=3)){blockSettingArray.splice(i--,1);poolbackI=1;continue;}
block_number=0;elementToAdd=document.createElement("div");elementToAdd.classList.add("percentPointerClass");elementToAdd.classList.add("marked");if(blockSettingArray[i]["sc"]==1){elementToAdd.classList.add("scMark");}
elementToAdd.innerHTML=blockSettingArray[i]["text"];elementToAdd.dataset.rbinder=binderName;block_number=elementToAdd.children[0].attributes['data-id'].value;if(blockDuplicate=='no'){if(usedBlockSettingArrayIds.length>0){for(let i1=0;i1<usedBlockSettingArrayIds.length;i1++){if(block_number==usedBlockSettingArrayIds[i1]){blockSettingArray.splice(i--,1);poolbackI=1;break;}}
if(poolbackI==1){continue;}}}
elementToAddStyle=createStyleElement(block_number,blockSettingArray[i]["elementCss"]);if(elementToAddStyle&&elementToAddStyle!='default'){elementToAdd.style.textAlign=elementToAddStyle;}
if((blockSettingArray[i]["minHeaders"]>0)&&(blockSettingArray[i]["minHeaders"]>termorarity_parent_with_content_length)){continue;}
if(blockSettingArray[i]["minSymbols"]>contentLength){continue;}
if(blockSettingArray[i]["setting_type"]==1){currentElement=cureentElementsGather(blockSettingArray[i]["element"].toLowerCase());if(currentElement){if(blockSettingArray[i]["elementPlace"]<0){sumResult=currentElement.length+blockSettingArray[i]["elementPlace"];if(sumResult>=0&&sumResult<currentElement.length){currentElement=currentElementReceiver(true);}}else{sumResult=blockSettingArray[i]["elementPlace"]-1;if(sumResult<currentElement.length){currentElement=currentElementReceiver(false);}}}
if(currentElement!=undefined&&currentElement!=null&&currentElementChecker){posCurrentElement=initTargetToInsert(blockSettingArray[i]["elementPosition"],'element',currentElement);currentElement.parentNode.insertBefore(elementToAdd,posCurrentElement);currentElement.classList.add('rbinder-'+binderName);elementToAdd.classList.remove('coveredAd');usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;rb_tempElement_check=false;}else{repeat=true;}}
else if(blockSettingArray[i]["setting_type"]==2){if(blockDuplicate=='no'){blockSettingArray[i]["elementCount"]=1;}
repeatableCurrentElement=[];reCou=0;curFirstPlace=blockSettingArray[i]["firstPlace"];curElementCount=blockSettingArray[i]["elementCount"];curElementStep=blockSettingArray[i]["elementStep"];repeatableSuccess=false;elementToAddStyle=createStyleElement(block_number,blockSettingArray[i]["elementCss"]);repeatableCurrentElement=cureentElementsGather(blockSettingArray[i]["element"].toLowerCase());if(repeatableCurrentElement){for(let i1=0;i1<blockSettingArray[i]["elementCount"];i1++){currentElementChecker=false;let repElementToAdd=document.createElement("div");repElementToAdd.classList.add("percentPointerClass");repElementToAdd.classList.add("marked");if(blockSettingArray[i]["sc"]==1){repElementToAdd.classList.add("scMark");}
repElementToAdd.classList.add("repeatable-mark-"+repeatableBlockIdentifier);repElementToAdd.innerHTML=blockSettingArray[i]["text"];if(elementToAddStyle&&elementToAddStyle!='default'){repElementToAdd.style.textAlign=elementToAddStyle;}
sumResult=Math.round(parseInt(blockSettingArray[i]["firstPlace"])+(i1*parseInt(blockSettingArray[i]["elementStep"]))-1);if(sumResult<repeatableCurrentElement.length){currentElement=currentElementReceiver(false,repeatableCurrentElement);}
if(currentElement!=undefined&&currentElement!=null&&currentElementChecker){posCurrentElement=initTargetToInsert(blockSettingArray[i]["elementPosition"],'element',currentElement);currentElement.parentNode.insertBefore(repElementToAdd,posCurrentElement);currentElement.classList.add('rbinder-'+binderName);repElementToAdd.classList.remove('coveredAd');curFirstPlace=sumResult+parseInt(blockSettingArray[i]["elementStep"])+1;curElementCount--;repeatableSuccess=true;}else{repeatableSuccess=false;break;}}}
if(repeatableSuccess==true){usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;repeatableBlockIdentifier++;}else{if(!blockSettingArray[i]["unsuccess"]){blockSettingArray[i]["unsuccess"]=1;}else{blockSettingArray[i]["unsuccess"]=Math.round(blockSettingArray[i]["unsuccess"]+1);}
if(blockSettingArray[i]["unsuccess"]>10){usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}else{blockSettingArray[i]["firstPlace"]=curFirstPlace;blockSettingArray[i]["elementCount"]=curElementCount;blockSettingArray[i]["elementStep"]=curElementStep;repeat=true;}}}
else if(blockSettingArray[i]["setting_type"]==3){let elementTypeSymbol='';let elementSpaceSymbol='';let elementName='';let elementType='';let elementTag='';let findQuery=0;let directClassResult=[];let directElement=blockSettingArray[i]["directElement"].trim();if(directElement.search('#')>-1){findQuery=1;}else if((directElement.search('#')<0)&&(directElement.search('.')>-1)){directClassResult=directClassElementDetecting(blockSettingArray,directElement);findQuery=directClassResult['findQuery'];currentElement=directClassResult['currentElement'];}
if(findQuery==1){currentElement=document.querySelector(directElement);}
if(currentElement){currentElementChecker=true;}
if(currentElement!=undefined&&currentElement!=null&&currentElementChecker){posCurrentElement=initTargetToInsert(blockSettingArray[i]["elementPosition"],'element',currentElement);currentElement.parentNode.insertBefore(elementToAdd,posCurrentElement);elementToAdd.classList.remove('coveredAd');currentElement.classList.add('rbinder-'+binderName);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}else{repeat=true;}}
else if(blockSettingArray[i]["setting_type"]==4){document.querySelector("#content_pointer_id").parentElement.append(elementToAdd);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}
else if(blockSettingArray[i]["setting_type"]==5){let currentElementList=cureentElementsGather('p',1,content_pointer.parentElement);if(currentElementList&&currentElementList.length>0){let pCount=currentElementList.length;let elementNumber=Math.round(pCount/2);if(pCount>1){currentElement=currentElementList[elementNumber+1];}
if(currentElement!=undefined&&currentElement!=null){if(pCount>1){currentElement.parentNode.insertBefore(elementToAdd,currentElement);}else{currentElement.parentNode.insertBefore(elementToAdd,currentElement.nextSibling);}
elementToAdd.classList.remove('coveredAd');currentElement.classList.add('rbinder-'+binderName);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}else{repeat=true;}}else{repeat=true;}}
else if(blockSettingArray[i]["setting_type"]==6){if(containerFor6th.length>0){for(let j=0;j<containerFor6th.length;j++){if(containerFor6th[j]["elementPlace"]<blockSettingArray[i]["elementPlace"]){if(j==containerFor6th.length-1){containerFor6th.push(blockSettingArray[i]);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;break;}}else{for(let k=containerFor6th.length-1;k>j-1;k--){containerFor6th[k+1]=containerFor6th[k];}
containerFor6th[j]=blockSettingArray[i];usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;break;}}}else{containerFor6th.push(blockSettingArray[i]);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}}
else if(blockSettingArray[i]["setting_type"]==7){if(containerFor7th.length>0){for(let j=0;j<containerFor7th.length;j++){if(containerFor7th[j]["elementPlace"]<blockSettingArray[i]["elementPlace"]){if(j==containerFor7th.length-1){containerFor7th.push(blockSettingArray[i]);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;break;}}else{for(let k=containerFor7th.length-1;k>j-1;k--){containerFor7th[k+1]=containerFor7th[k];}
containerFor7th[j]=blockSettingArray[i];usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;break;}}}else{containerFor7th.push(blockSettingArray[i]);usedBlockSettingArrayIds.push(block_number);blockSettingArray.splice(i--,1);poolbackI=1;}}}catch(e){console.log(e.message);}}
var array=textLengthGatherer(lordOfElements),tlArray=array.array,length=array.length;if(containerFor6th.length>0){percentInserter(lordOfElements,containerFor6th,tlArray,length);}
if(containerFor7th.length>0){symbolInserter(lordOfElements,containerFor7th,tlArray);}
shortcodesInsert();let stopper=0;window.addEventListener('load',function(){if(repeat=true){setTimeout(function(){asyncBlocksInsertingFunction(blockSettingArray);},100);}});}catch(e){console.log(e.message);}}
function possibleTagsInCheckConfirmer(possibleTagsArray,possibleTagsInCheck){if(possibleTagsArray.includes("LI")){if(possibleTagsArray.includes("UL")){possibleTagsInCheck.push("UL");}
if(possibleTagsArray.includes("OL")){possibleTagsInCheck.push("OL");}}
return false;}
function textLengthGatherer(lordOfElementsLoc){var possibleTagsArray;if(typeof tagsListForTextLength!=="undefined"){possibleTagsArray=tagsListForTextLength;}else{possibleTagsArray=["P","H1","H2","H3","H4","H5","H6","DIV","BLOCKQUOTE","INDEX","ARTICLE","SECTION"];}
let possibleTagsInCheck=["DIV","INDEX","SECTION"];possibleTagsInCheckConfirmer(possibleTagsArray,possibleTagsInCheck);let excArr=excIdClUnpacker(),textLength=0,tlArray=[];function textLengthGathererRec(lordOfElementsLoc){let allowed;let cou1;let classesArray;let countSuccess=0;try{for(let i=0;i<lordOfElementsLoc.children.length;i++){if(possibleTagsArray.includes(lordOfElementsLoc.children[i].tagName)&&!lordOfElementsLoc.children[i].classList.contains("percentPointerClass")&&lordOfElementsLoc.children[i].id!="toc_container"){if(possibleTagsInCheck.includes(lordOfElementsLoc.children[i].tagName)&&(lordOfElementsLoc.children[i].children.length>0)){allowed=true;if(lordOfElementsLoc.children[i].id&&excArr['id'].length>0){cou1=0;while(excArr['id'][cou1]){if(lordOfElementsLoc.children[i].id.toLowerCase()==excArr['id'][cou1].toLowerCase()){allowed=false;break;}
cou1++;}}
if(lordOfElementsLoc.children[i].classList.length>0&&excArr['class'].length>0){cou1=0;while(excArr['class'][cou1]){classesArray=excArr['class'][cou1].split('.');if(classesArray.every(className=>lordOfElementsLoc.children[i].classList.contains(className))){allowed=false;break;}
cou1++;}}
if(excArr['tag'].length>0){cou1=0;while(excArr['tag'][cou1]){if(lordOfElementsLoc.children[i].tagName.toLowerCase()==excArr['tag'][cou1].toLowerCase()){allowed=false;break;}
cou1++;}}
if(allowed){if(textLengthGathererRec(lordOfElementsLoc.children[i],excArr,possibleTagsArray,possibleTagsInCheck)){countSuccess++;continue;}}}
textLength=textLength+lordOfElementsLoc.children[i].innerText.length;tlArray.push({tag:lordOfElementsLoc.children[i].tagName,length:lordOfElementsLoc.children[i].innerText.length,lengthSum:textLength,element:lordOfElementsLoc.children[i]});countSuccess++;}}}catch(er){console.log(er.message);}
return countSuccess>0;}
textLengthGathererRec(lordOfElementsLoc);return{array:tlArray,length:textLength};}
window.asyncFunctionLauncher=function(){if(window.jsInputerLaunch!==undefined&&[15,10].includes(window.jsInputerLaunch)&&(typeof asyncBlocksInsertingFunction!=='undefined')&&(typeof asyncBlocksInsertingFunction==='function')&&typeof endedSc!=='undefined'&&typeof endedCc!=='undefined'&&typeof usedAdBlocksArray!=='undefined'&&typeof usedBlockSettingArrayIds!=='undefined'&&typeof sameElementAfterWidth!=='undefined'&&typeof sameElementAfterExcClassId!=='undefined'&&typeof sameElementAfterFromConstruction!=='undefined'&&typeof rb_tempElement_check!=='undefined'&&typeof rb_tempElement!=='undefined'&&typeof window.jsInputerLaunch!=='undefined'){asyncBlocksInsertingFunction(blockSettingArray);if(!endedSc){shortcodesInsert();}
if(!endedCc){}}else{setTimeout(function(){asyncFunctionLauncher();},50);}};function asyncInsertingsInsertingFunction(insertingsArray){let currentElementForInserting=0;let currentElementToMove=0;let positionElement=0;let position=0;let insertToAdd=0;let postId=0;let repeatSearch=0;if(insertingsArray&&insertingsArray.length>0){for(let i=0;i<insertingsArray.length;i++){if(!insertingsArray[i]['used']||(insertingsArray[i]['used']&&insertingsArray[i]['used']==0)){positionElement=insertingsArray[i]['position_element'];position=insertingsArray[i]['position'];insertToAdd=insertingsArray[i]['content'];postId=insertingsArray[i]['postId'];currentElementForInserting=document.querySelector(positionElement);currentElementToMove=document.querySelector('.coveredInsertings[data-id="'+postId+'"]');if(currentElementForInserting){if(position==0){currentElementForInserting.parentNode.insertBefore(currentElementToMove,currentElementForInserting);currentElementToMove.classList.remove('coveredInsertings');insertingsArray[i]['used']=1;}else{currentElementForInserting.parentNode.insertBefore(currentElementToMove,currentElementForInserting.nextSibling);currentElementToMove.classList.remove('coveredInsertings');insertingsArray[i]['used']=1;}}else{repeatSearch=1;}}}}
if(repeatSearch==1){setTimeout(function(){asyncInsertingsInsertingFunction(insertingsArray);},100)}}
function insertingsFunctionLaunch(){if(window.jsInsertingsLaunch!==undefined&&jsInsertingsLaunch==25){asyncInsertingsInsertingFunction(insertingsArray);}else{setTimeout(function(){insertingsFunctionLaunch();},100)}}
function setLongCache(){let xhttp=new XMLHttpRequest();let sendData='action=setLongCache&type=longCatching';xhttp.onreadystatechange=function(redata){if(this.readyState==4&&this.status==200){console.log('long cache deployed');}};xhttp.open("POST",rb_ajaxurl,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.send(sendData);}
function cachePlacing(alert_type,errorInfo=null){let adBlocks=document.querySelectorAll('.percentPointerClass .'+block_classes.join(', .percentPointerClass .'));let curAdBlock;let okStates=['done','refresh-wait','no-block','fetched'];let blockAid=null;let blockId;if(typeof cachedBlocksArray!=='undefined'&&cachedBlocksArray&&cachedBlocksArray.length>0&&adBlocks&&adBlocks.length>0){for(let i=0;i<adBlocks.length;i++){blockAid=adBlocks[i]['dataset']['aid'];if(!blockAid){blockId=adBlocks[i]['dataset']['id'];if(cachedBlocksArray[blockId]){jQuery(adBlocks[i]).html(cachedBlocksArray[blockId]);}}}}
if(alert_type&&alert_type=='high'){setLongCache();}}
function symbolInserter(lordOfElements,containerFor7th,tlArray){try{var currentChildrenLength=0;let previousBreak=0;let needleLength;let currentSumLength;let elementToAdd;let elementToBind;let elementToAddStyle;let block_number;let binderName;if(!document.getElementById("markedSpan1")){for(let i=0;i<containerFor7th.length;i++){previousBreak=0;currentChildrenLength=0;currentSumLength=0;needleLength=Math.abs(containerFor7th[i]['elementPlace']);binderName=elementBinderNameGenerator();elementToAdd=document.createElement("div");elementToAdd.classList.add("percentPointerClass");elementToAdd.classList.add("marked");if(containerFor7th[i]["sc"]==1){elementToAdd.classList.add("scMark");}
elementToAdd.dataset.rbinder=binderName;elementToAdd.innerHTML=containerFor7th[i]["text"];block_number=elementToAdd.children[0].attributes['data-id'].value;if(!elementToAdd){continue;}
elementToAddStyle=createStyleElement(block_number,containerFor7th[i]["elementCss"]);if(elementToAddStyle&&elementToAddStyle!='default'){elementToAdd.style.textAlign=elementToAddStyle;}
if(containerFor7th[i]['elementPlace']<0){for(let j=tlArray.length-1;j>-1;j--){currentSumLength=currentSumLength+tlArray[j]['length'];if(needleLength<currentSumLength){elementToBind=tlArray[j]['element'];elementToBind=currentElementReceiverSpec(true,j,tlArray,elementToBind);elementToBind.parentNode.insertBefore(elementToAdd,elementToBind);elementToBind.classList.add('rbinder-'+binderName);elementToAdd.classList.remove('coveredAd');break;}}}else if(containerFor7th[i]['elementPlace']==0){elementToBind=tlArray[0]['element'];elementToBind.parentNode.insertBefore(elementToAdd,elementToBind);elementToBind.classList.add('rbinder-'+binderName);elementToAdd.classList.remove('coveredAd');}else{for(let j=0;j<tlArray.length;j++){currentSumLength=currentSumLength+tlArray[j]['length'];if(needleLength<currentSumLength){elementToBind=tlArray[j]['element'];elementToBind=currentElementReceiverSpec(false,j,tlArray,elementToBind);elementToBind.parentNode.insertBefore(elementToAdd,elementToBind.nextSibling);elementToBind.classList.add('rbinder-'+binderName);elementToAdd.classList.remove('coveredAd');break;}}}}
var spanMarker=document.createElement("span");spanMarker.setAttribute("id","markedSpan1");lordOfElements.prepend(spanMarker);}}catch(e){console.log(e);}}
function percentInserter(lordOfElements,containerFor6th,tlArray,textLength){try{var textNeedyLength=0;let elementToAdd;var elementToBind;let elementToAddStyle;let block_number;var binderName;function insertByPercents(textLength){let localMiddleValue=0;for(let j=0;j<containerFor6th.length;j++){textNeedyLength=Math.round(textLength*(containerFor6th[j]["elementPlace"]/100));for(let i=0;i<tlArray.length;i++){if(tlArray[i]['lengthSum']>=textNeedyLength){binderName=elementBinderNameGenerator();elementToAdd=document.createElement("div");elementToAdd.classList.add("percentPointerClass");elementToAdd.classList.add("marked");if(containerFor6th[j]["sc"]==1){elementToAdd.classList.add("scMark");}
elementToAdd.dataset.rbinder=binderName;elementToAdd.innerHTML=containerFor6th[j]["text"];if(!elementToAdd){break;}
block_number=elementToAdd.children[0].attributes['data-id'].value;elementToAddStyle=createStyleElement(block_number,containerFor6th[j]["elementCss"]);if(elementToAddStyle&&elementToAddStyle!='default'){elementToAdd.style.textAlign=elementToAddStyle;}
localMiddleValue=tlArray[i]['lengthSum']-Math.round(tlArray[i]['length']/2);elementToBind=tlArray[i]['element'];currentElementReceiverSpec(false,i,tlArray,elementToBind);if(textNeedyLength<localMiddleValue){elementToBind.parentNode.insertBefore(elementToAdd,elementToBind);}else{elementToBind.parentNode.insertBefore(elementToAdd,elementToBind.nextSibling);}
elementToBind.classList.add('rbinder-'+binderName);elementToAdd.classList.remove('coveredAd');break;}}}
return false;}
function clearTlMarks(){let marksForDeleting=document.querySelectorAll('.textLengthMarker');if(marksForDeleting.length>0){for(let i=0;i<marksForDeleting.length;i++){marksForDeleting[i].remove();}}}
if(!document.getElementById("markedSpan")){insertByPercents(textLength);clearTlMarks();var spanMarker=document.createElement("span");spanMarker.setAttribute("id","markedSpan");lordOfElements.prepend(spanMarker);}}catch(e){console.log(e.message);}}
function saveContentBlock(contentContainer){try{if(!gather_content){console.log('content gather save function entered');let xhttp=new XMLHttpRequest();let sendData='action=RFWP_saveContentContainer&type=gatherContentBlock&data='+contentContainer;xhttp.onreadystatechange=function(redata){if(this.readyState==4&&this.status==200){console.log('content gather succeed');}else{console.log('content gather gone wrong');}};xhttp.open("POST",rb_ajaxurl,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.send(sendData);}}catch(er){console.log('content gather error: '+er+';');}}
window.gatherContentBlock=function(){let cPointer=null,cPointerParent=null,cPointerParentString=null,classWords=['content','entry','post','wrap','description','taxonomy'],classChoosed=false;cPointer=document.querySelector('#content_pointer_id');if(cPointer){if(window.jsInputerLaunch!==15){return false;}
cPointerParent=cPointer.parentElement;if(cPointerParent){if(cPointerParent.id){cPointerParentString='#'+cPointerParent.id;}else{if(cPointerParent.classList.length>0){cPointerParentString='.'+cPointerParent.classList[0];for(let j=0;j<classWords.length;j++){for(let i=0;i<cPointerParent.classList.length;i++){if(cPointerParent.classList[i].includes(classWords[j])){cPointerParentString='.'+cPointerParent.classList[i];classChoosed=true;break;}}
if(classChoosed===true){break;}}}}
if(cPointerParentString){console.log('content gather content block detected');saveContentBlock(cPointerParentString);}}}else{console.log('content gather delayed');setTimeout(function(){gatherContentBlock();},500);}};window.removeMarginClass=function(blockObject){if(blockObject&&typeof window.jsInputerLaunch!=='undefined'&&[15,10].includes(window.jsInputerLaunch)){let binderName,neededElement,currentDirection,seekerIterationCount,currentSubling;binderName=blockObject.dataset.rbinder;if(binderName){seekerIterationCount=0;currentDirection='before';do{seekerIterationCount++;currentSubling=blockObject.nextElementSibling;if(currentSubling&&currentSubling.classList.contains('rbinder-'+binderName)){neededElement=currentSubling;}}while(currentSubling&&!neededElement&&seekerIterationCount<5);if(!neededElement){seekerIterationCount=0;currentDirection='after';do{seekerIterationCount++;currentSubling=blockObject.previousElementSibling;if(currentSubling&&currentSubling.classList.contains('rbinder-'+binderName)){neededElement=currentSubling;}}while(currentSubling&&!neededElement&&seekerIterationCount<5);}
if(neededElement){if(currentDirection==='before'){neededElement.classList.remove('rfwp_removedMarginTop');}else{neededElement.classList.remove('rfwp_removedMarginBottom');}}}}
return false;};function elementBinderNameGenerator(){let binderName='',checkedElements,passed=false;while(passed===false){binderName=Math.floor(Math.random()*100000);checkedElements=document.querySelectorAll('[data-rbinder="'+binderName+'"]');if(checkedElements.length<1){passed=true;}}
return binderName;};}catch(e){}
try{if(typeof rb_ajaxurl==='undefined'){var rb_ajaxurl='https://star-twin.ru/wp-admin/admin-ajax.php';}
if(typeof cache_devices==='undefined'){var cache_devices=true;}
var nReadyBlock=false;var fetchedCounter=0;function sendReadyBlocksNew(blocks){if(!cache_devices){let xhttp=new XMLHttpRequest();let sendData='action=saveAdBlocks&type=blocksGethering&data='+blocks;xhttp.onreadystatechange=function(redata){if(this.readyState==4&&this.status==200){console.log('cache succeed');}};xhttp.open("POST",rb_ajaxurl,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.send(sendData);}}
function gatherReadyBlocks(){if(block_classes&&block_classes.length){let blocks={};let counter1=0;let gatheredBlocks=document.querySelectorAll('.'+block_classes.join(', .'));let checker=0;let adContent='';let curState='';let thisData=[];let sumData=[];let newBlocks='';let thisDataString='';if(gatheredBlocks.length>0){blocks.data={};for(let i=0;i<gatheredBlocks.length;i++){curState=gatheredBlocks[i]['dataset']["state"].toLowerCase();checker=0;if(curState&&gatheredBlocks[i]['innerHTML'].length>0&&gatheredBlocks[i]['dataset']['aid']>0&&curState!='no-block'){if(gatheredBlocks[i]['innerHTML'].length>0){checker=1;}
if(checker==1){blocks.data[counter1]={id:gatheredBlocks[i]['dataset']['id'],code:gatheredBlocks[i]['dataset']['aid']};counter1++;}}}
blocks=JSON.stringify(blocks);sendReadyBlocksNew(blocks);}}else nReadyBlock=true;}
function timeBeforeGathering(){if(block_classes&&block_classes.length>0)
{let gatheredBlocks=document.querySelectorAll('.'+block_classes.join(', .'));let okStates=['done','refresh-wait','no-block','fetched'];let curState='';for(let i=0;i<gatheredBlocks.length;i++){if(!gatheredBlocks[i]['dataset']["state"]){nReadyBlock=true;break;}else{curState=gatheredBlocks[i]['dataset']["state"].toLowerCase();if(!okStates.includes(curState)){nReadyBlock=true;break;}else if(curState=='fetched'&&fetchedCounter<3){fetchedCounter++;nReadyBlock=true;break;}}}}
else nReadyBlock=true;if(nReadyBlock==true){nReadyBlock=false;setTimeout(timeBeforeGathering,2000);}else{gatherReadyBlocks();}}
function launchTimeBeforeGathering(){if(document.readyState==="complete"||(document.readyState!=="loading"&&!document.documentElement.doScroll)){timeBeforeGathering();}else{setTimeout(launchTimeBeforeGathering,100);}}
launchTimeBeforeGathering();}catch(e){}
try{document.body.classList.remove("no-js");}catch(e){}
try{if(-1!==navigator.userAgent.indexOf('MSIE')||-1!==navigator.appVersion.indexOf('Trident/')){document.body.classList.add('is-IE');};}catch(e){}
try{/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);}catch(e){}
try{function twentytwentyoneToggleAriaExpanded(el,withListeners){if('true'!==el.getAttribute('aria-expanded')){el.setAttribute('aria-expanded','true');twentytwentyoneSubmenuPosition(el.parentElement);if(withListeners){document.addEventListener('click',twentytwentyoneCollapseMenuOnClickOutside);}}else{el.setAttribute('aria-expanded','false');if(withListeners){document.removeEventListener('click',twentytwentyoneCollapseMenuOnClickOutside);}}}
function twentytwentyoneCollapseMenuOnClickOutside(event){if(!document.getElementById('site-navigation').contains(event.target)){document.getElementById('site-navigation').querySelectorAll('.sub-menu-toggle').forEach(function(button){button.setAttribute('aria-expanded','false');});}}
function twentytwentyoneSubmenuPosition(li){var subMenu=li.querySelector('ul.sub-menu'),rect,right,left,windowWidth;if(!subMenu){return;}
rect=subMenu.getBoundingClientRect();right=Math.round(rect.right);left=Math.round(rect.left);windowWidth=Math.round(window.innerWidth);if(right>windowWidth){subMenu.classList.add('submenu-reposition-right');}else if(document.body.classList.contains('rtl')&&left<0){subMenu.classList.add('submenu-reposition-left');}}
function twentytwentyoneExpandSubMenu(el){el.closest('nav').querySelectorAll('.sub-menu-toggle').forEach(function(button){if(button!==el){button.setAttribute('aria-expanded','false');}});twentytwentyoneToggleAriaExpanded(el,true);el.parentNode.querySelectorAll('ul > li:last-child > a').forEach(function(linkEl){linkEl.addEventListener('blur',function(event){if(!el.parentNode.contains(event.relatedTarget)){el.setAttribute('aria-expanded','false');}});});}
(function(){var navMenu=function(id){var wrapper=document.body,mobileButton=document.getElementById(id+'-mobile-menu'),navMenuEl=document.getElementById('site-navigation');if(!navMenuEl){return;}
if(mobileButton){mobileButton.onclick=function(){wrapper.classList.toggle(id+'-navigation-open');wrapper.classList.toggle('lock-scrolling');twentytwentyoneToggleAriaExpanded(mobileButton);mobileButton.focus();};}
document.addEventListener('keydown',function(event){var modal,elements,selectors,lastEl,firstEl,activeEl,tabKey,shiftKey,escKey;if(!wrapper.classList.contains(id+'-navigation-open')){return;}
modal=document.querySelector('.'+id+'-navigation');selectors='input, a, button';elements=modal.querySelectorAll(selectors);elements=Array.prototype.slice.call(elements);tabKey=event.keyCode===9;shiftKey=event.shiftKey;escKey=event.keyCode===27;activeEl=document.activeElement;lastEl=elements[elements.length-1];firstEl=elements[0];if(escKey){event.preventDefault();wrapper.classList.remove(id+'-navigation-open','lock-scrolling');twentytwentyoneToggleAriaExpanded(mobileButton);mobileButton.focus();}
if(!shiftKey&&tabKey&&lastEl===activeEl){event.preventDefault();firstEl.focus();}
if(shiftKey&&tabKey&&firstEl===activeEl){event.preventDefault();lastEl.focus();}
if(tabKey&&firstEl===lastEl){event.preventDefault();}});document.getElementById('site-navigation').addEventListener('click',function(event){if(event.target.hash){wrapper.classList.remove(id+'-navigation-open','lock-scrolling');twentytwentyoneToggleAriaExpanded(mobileButton);setTimeout(function(){var anchor=document.getElementById(event.target.hash.slice(1));if(anchor){anchor.scrollIntoView();}},550);}});navMenuEl.querySelectorAll('.menu-wrapper > .menu-item-has-children').forEach(function(li){li.addEventListener('mouseenter',function(){this.querySelector('.sub-menu-toggle').setAttribute('aria-expanded','true');twentytwentyoneSubmenuPosition(li);});li.addEventListener('mouseleave',function(){this.querySelector('.sub-menu-toggle').setAttribute('aria-expanded','false');});});};window.addEventListener('load',function(){new navMenu('primary');});}());}catch(e){}
try{function twentytwentyoneResponsiveEmbeds(){var proportion,parentWidth;document.querySelectorAll('iframe').forEach(function(iframe){if(iframe.width&&iframe.height){proportion=parseFloat(iframe.width)/parseFloat(iframe.height);parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement,null).width.replace('px',''));iframe.style.maxWidth='100%';iframe.style.maxHeight=Math.round(parentWidth/proportion).toString()+'px';}});}
twentytwentyoneResponsiveEmbeds();window.onresize=twentytwentyoneResponsiveEmbeds;}catch(e){}
try{function q2w3_sidebar_init(){for(var e=0;e<q2w3_sidebar_options.length;e++)q2w3_sidebar(q2w3_sidebar_options[e]);jQuery(window).on("resize",function(){for(var e=0;e<q2w3_sidebar_options.length;e++)q2w3_sidebar(q2w3_sidebar_options[e])});var i=function(){for(var e=["WebKit","Moz","O","Ms",""],i=0;i<e.length;i++)if(e[i]+"MutationObserver"in window)return window[e[i]+"MutationObserver"];return!1}();0==q2w3_sidebar_options[0].disable_mo_api&&i?(q2w3Refresh=!1,new i(function(e){e.forEach(function(e){-1!=q2w3_exclude_mutations_array(q2w3_sidebar_options).indexOf(e.target.id)||e.target.className&&"function"==typeof e.target.className.indexOf&&-1!=e.target.className.indexOf("q2w3-fixed-widget-container")||(q2w3Refresh=!0)})}).observe(document.body,{childList:!0,attributes:!0,attributeFilter:["style","class"],subtree:!0}),setInterval(function(){if(q2w3Refresh){for(var e=0;e<q2w3_sidebar_options.length;e++)q2w3_sidebar(q2w3_sidebar_options[e]);q2w3Refresh=!1}},300)):(console.log("MutationObserver not supported or disabled!"),q2w3_sidebar_options[0].refresh_interval>0&&setInterval(function(){for(var e=0;e<q2w3_sidebar_options.length;e++)q2w3_sidebar(q2w3_sidebar_options[e])},q2w3_sidebar_options[0].refresh_interval))}function q2w3_exclude_mutations_array(e){for(var i=new Array,o=0;o<e.length;o++)if(e[o].widgets.length>0)for(var t=0;t<e[o].widgets.length;t++)i.push(e[o].widgets[t]),i.push(e[o].widgets[t]+"_clone");return i}function q2w3_sidebar(e){if(!e)return!1;if(!e.widgets)return!1;if(e.widgets.length<1)return!1;function i(){}e.sidebar||(e.sidebar="q2w3-default-sidebar");var o=new Array,t=jQuery(window).height(),n=jQuery(document).height(),r=e.margin_top;jQuery("#wpadminbar").length&&(r=e.margin_top+jQuery("#wpadminbar").height()),jQuery(".q2w3-widget-clone-"+e.sidebar).remove();for(var s=0;s<e.widgets.length;s++)widget_obj=jQuery("#"+e.widgets[s]),widget_obj.css("position",""),widget_obj.attr("id")?(o[s]=new i,o[s].obj=widget_obj,o[s].clone=widget_obj.clone(),o[s].clone.children().remove(),o[s].clone_id=widget_obj.attr("id")+"_clone",o[s].clone.addClass("q2w3-widget-clone-"+e.sidebar),o[s].clone.attr("id",o[s].clone_id),o[s].clone.css("height",widget_obj.height()),o[s].clone.css("visibility","hidden"),o[s].offset_top=widget_obj.offset().top,o[s].fixed_margin_top=r,o[s].height=widget_obj.outerHeight(!0),o[s].fixed_margin_bottom=r+o[s].height,r+=o[s].height):o[s]=!1;var d,a=0;for(s=o.length-1;s>=0;s--)o[s]&&(o[s].next_widgets_height=a,o[s].fixed_margin_bottom+=a,a+=o[s].height,d||((d=widget_obj.parent()).addClass("q2w3-fixed-widget-container"),d.css("height",""),d.height(d.height())));jQuery(window).off("scroll."+e.sidebar);for(s=0;s<o.length;s++)o[s]&&_(o[s]);function _(i){var o,r=i.offset_top-i.fixed_margin_top,s=n-e.margin_bottom;e.stop_id&&jQuery("#"+e.stop_id).length&&(s=jQuery("#"+e.stop_id).offset().top-e.margin_bottom),o=e.width_inherit?"inherit":i.obj.css("width");var d=!1,a=!1,_=!1;jQuery(window).on("scroll."+e.sidebar,function(n){if(jQuery(window).width()<=e.screen_max_width||jQuery(window).height()<=e.screen_max_height)_||(i.obj.css("position",""),i.obj.css("top",""),i.obj.css("bottom",""),i.obj.css("width",""),i.obj.css("margin",""),i.obj.css("padding",""),widget_obj.parent().css("height",""),jQuery("#"+i.clone_id).length>0&&jQuery("#"+i.clone_id).remove(),_=!0,d=!1,a=!1);else{var w=jQuery(this).scrollTop();w+i.fixed_margin_bottom>=s?(a||(i.obj.css("position","fixed"),i.obj.css("top",""),i.obj.css("width",o),jQuery("#"+i.clone_id).length<=0&&i.obj.before(i.clone),a=!0,d=!1,_=!1),i.obj.css("bottom",w+t+i.next_widgets_height-s)):w>=r?d||(i.obj.css("position","fixed"),i.obj.css("top",i.fixed_margin_top),i.obj.css("bottom",""),i.obj.css("width",o),jQuery("#"+i.clone_id).length<=0&&i.obj.before(i.clone),d=!0,a=!1,_=!1):_||(i.obj.css("position",""),i.obj.css("top",""),i.obj.css("bottom",""),i.obj.css("width",""),jQuery("#"+i.clone_id).length>0&&jQuery("#"+i.clone_id).remove(),_=!0,d=!1,a=!1)}}).trigger("scroll."+e.sidebar)}}"undefined"!=typeof q2w3_sidebar_options&&q2w3_sidebar_options.length>0?window.jQuery?q2w3_sidebar_options[0].window_load_hook?jQuery(window).load(q2w3_sidebar_init):"loading"!=document.readyState?q2w3_sidebar_init():document.addEventListener("DOMContentLoaded",q2w3_sidebar_init):console.log("jQuery is not loaded!"):console.log("q2w3_sidebar_options not found!");}catch(e){}
try{var a3_lazyload_params={"apply_images":"1","apply_videos":"1"};}catch(e){}
try{/* Lazy Load XT 1.1.0 | MIT License */
!function(m,y,e,o){var p="lazyLoadXT",w="lazied",z="load error",t="lazy-hidden",C=e.documentElement||e.body,b={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:y.onscroll===o||!!y.operamini||!C.getBoundingClientRect,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:t},onload:{removeClass:t,addClass:"lazy-loaded"},onerror:{removeClass:t},checkDuplicates:!0},n={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},a=m(y),d=m.extend,E=m.data||function(e,t){return m(e).data(t)},T=[],L=0,r=0;function c(e,t){return e[t]===o?b[t]:e[t]}function I(){var e=y.pageYOffset;return e===o?C.scrollTop:e}function X(e,t){var o=b["on"+e];o&&("function"==typeof o?o.call(t[0]):(o.addClass&&t.addClass(o.addClass),o.removeClass&&t.removeClass(o.removeClass))),t.trigger("lazy"+e,[t]),u()}function B(e){X(e.type,m(this).off(z,B))}function i(e){if(T.length){e=e||b.forceLoad,L=1/0;for(var t=I(),o=y.innerHeight||C.clientHeight,n=y.innerWidth||C.clientWidth,a=0,r=T.length;a<r;a++){var i,l,s,d,c,u,f=T[a],h=f[0],v=f[p],A=!1,g=e||E(h,w)<0;m.contains(C,h)?(e||!v.visibleOnly||h.offsetWidth||h.offsetHeight)&&(g||(i=h.getBoundingClientRect(),l=v.edgeX,s=v.edgeY,g=(d=i.top+t-s-o)<=t&&i.bottom>-s&&i.left<=n+l&&i.right>-l),g?(f.on(z,B),X("show",f),(u="function"==typeof(c=v.srcAttr)?c(f):h.getAttribute(c))&&(h.src=u),A=!0):d<L&&(L=d)):A=!0,A&&(T.splice(a--,1),r--)}r||X("complete",m(C))}}function l(){1<r?(r=1,i(),setTimeout(l,b.throttle)):r=0}function u(e){T.length&&(e&&"scroll"===e.type&&e.currentTarget===y&&L>=I()||(r||setTimeout(l,0),r=2))}function s(){a.lazyLoadXT()}function f(){i(!0)}m[p]=d(b,n,m[p]),m.fn[p]=function(a){var e,r=c(a=a||{},"blankImage"),i=c(a,"checkDuplicates"),t=c(a,"scrollContainer"),l=c(a,"show"),s={};for(e in m(t).on("scroll",u),n)s[e]=c(a,e);return this.each(function(e,t){if(t===y)m(b.selector).lazyLoadXT(a);else{var o=i&&E(t,w),n=m(t).data(w,l?-1:1);if(o)return void u();r&&"IMG"===t.tagName&&!t.src&&(t.src=r),n[p]=d({},s),X("init",n),T.push(n),u()}})},m(e).ready(function(){X("start",a),a.on(b.updateEvent,u).on(b.forceEvent,f),m(e).on(b.updateEvent,u),b.autoInit&&(a.on(b.loadEvent,s),s())})}(window.jQuery||window.Zepto||window.$,window,document),function(l){var o=l.lazyLoadXT;o.selector+=",video,iframe[data-src],embed[data-src]",o.videoPoster="data-poster",l(document).on("lazyshow","video",function(e,t){var a=t.lazyLoadXT.srcAttr,r="function"==typeof a,i=!1;t.attr("poster",t.attr(o.videoPoster)),t.children("source,track").each(function(e,t){var o=l(t),n=r?a(o):o.attr(a);n&&(o.attr("src",n),i=!0)}),i&&void 0!==l(this).attr("preload")&&"none"!=l(this).attr("preload")&&this.load(),l(this).removeClass("lazy-hidden")}),l(document).on("lazyshow","embed",function(e,t){l(this).removeClass("lazy-hidden")})}(window.jQuery||window.Zepto||window.$);}catch(e){}
try{/* Lazy Load XT 1.1.0 | MIT License */
!function(t,r,e,s){var n,a,c=t.lazyLoadXT,i="srcset"in new Image,o=/^\s*(\S*)/,d=/\S\s+(\d+)w/,u=/\S\s+(\d+)h/,l=/\S\s+([\d\.]+)x/,x=[0,1/0],w=[0,1],h={srcsetAttr:"data-srcset",srcsetExtended:!0,srcsetBaseAttr:"data-srcset-base",srcsetExtAttr:"data-srcset-ext"},f={w:0,h:0,x:0};for(n in h)void 0===c[n]&&(c[n]=h[n]);function p(r,e){return Math[e].apply(null,t.map(r,function(t){return t[n]}))}function A(t){return t[n]>=f[n]||t[n]===a}function m(t){return t[n]===a}function g(s){var i=s.attr(c.srcsetAttr);if(!i)return!1;var h=t.map(i.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(t){return{url:o.exec(t)[1],w:parseFloat((d.exec(t)||x)[1]),h:parseFloat((u.exec(t)||x)[1]),x:parseFloat((l.exec(t)||w)[1])}});if(!h.length)return!1;var g,v,y=e.documentElement;for(g in f={w:r.innerWidth||y.clientWidth,h:r.innerHeight||y.clientHeight,x:r.devicePixelRatio||1})n=g,a=p(h,"max"),h=t.grep(h,A);for(g in f)n=g,a=p(h,"min"),h=t.grep(h,m);return v=h[0].url,c.srcsetExtended&&(v=(s.attr(c.srcsetBaseAttr)||"")+v+(s.attr(c.srcsetExtAttr)||"")),v}c.selector+=",img["+c.srcsetAttr+"],source["+c.srcsetAttr+"]",t(e).on("lazyshow","img",function(t,r){var e=r.attr(c.srcsetAttr);e&&(!c.srcsetExtended&&i?(r.attr("srcset",e),r.attr("data-srcset","")):r.lazyLoadXT.srcAttr=g)}),t(e).on("lazyshow","source",function(r,e){t(this).removeClass("lazy-hidden");var s=e.attr(c.srcsetAttr);s&&(!c.srcsetExtended&&i?(e.attr("srcset",s),e.attr("data-srcset","")):e.lazyLoadXT.srcAttr=g)})}(window.jQuery||window.Zepto||window.$,window,document);}catch(e){}
try{var a3_lazyload_extend_params={"edgeY":"0","horizontal_container_classnames":""};}catch(e){}
try{jQuery.lazyLoadXT.updateEvent='load orientationchange resize scroll touchmove focus click customlazyloadxtevent';jQuery.lazyLoadXT.edgeY=a3_lazyload_extend_params.edgeY;jQuery.lazyLoadXT.srcsetExtended=false;if(typeof a3_lazyload_extend_params.horizontal_container_classnames!=='undefined'&&''!==a3_lazyload_extend_params.horizontal_container_classnames){jQuery.lazyLoadXT.scrollContainer=a3_lazyload_extend_params.horizontal_container_classnames;}
jQuery(document).ready(function($){jQuery(document).on('mouseenter','.site-header-cart',function(){jQuery(document).trigger('customlazyloadxtevent');});jQuery(document).on('mouseenter','.widget_shopping_cart',function(){jQuery(document).trigger('customlazyloadxtevent');});jQuery(document).on('mouseover','#wp-admin-bar-top-secondary',function(){jQuery(document).trigger('customlazyloadxtevent');});});jQuery(document).ajaxComplete(function(){setTimeout(function(){jQuery(window).lazyLoadXT();},1000);});}catch(e){}