!function(){function e(){let e,t=this.parentNode,o=arguments.length;if(t)for(o||t.removeChild(this);o--;)e=arguments[o],"object"!=typeof e?e=this.ownerDocument.createTextNode(e):e.parentNode&&e.parentNode.removeChild(e),o?t.insertBefore(e,this.nextSibling):t.replaceChild(e,this)}"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}),Element.prototype.replaceWith||(Element.prototype.replaceWith=e),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=e),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=e),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){let o;const s=this.length;for(t=t||window,o=0;o<s;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage(){"use strict";try{return!(!window||void 0===window.localStorage||(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),0))}catch(e){return!1}},max_per_session(e,t){let o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up(e,t){let o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:e=>!!get_cookie(e)||(set_cookie(e,"",0),!1),get_cookie(e){let t,o,s,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(o=a[t].substr(0,a[t].indexOf("=")),s=a[t].substr(a[t].indexOf("=")+1),o=o.replace(/^\s+|\s+$/g,""),o===e)return decodeURIComponent(s)},set_cookie(e,t,o,s,a,i){const n=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,n,s,a,i)},set_cookie_sec(e,t,o,s,a,i){const n=new Date;n.setSeconds(n.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+n.toUTCString())+(null==s?"; path=/":"; path="+s)+(null==a?"":"; domain="+a)+(null==i?"":"; secure")},cookie_exists(e){const t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move(e,t,o){const s=jQuery(e),a=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),void 0===o.offset||"right"!==o.offset&&"left"!==o.offset||(o.method="insertAfter"),""===t&&void 0!==o.target&&"wrapper"===o.target){var i="left";void 0!==o.offset&&(i=o.offset),t=this.find_wrapper(e,i)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+a+"' found "+t.length+" times."),o.method){case"insertBefore":s.insertBefore(t);break;case"insertAfter":s.insertAfter(t);break;case"appendTo":s.appendTo(t);break;default:s.prependTo(t)}},set_parent_relative(e,t){t=void 0!==t?t:{};let o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element(e,t){t=void 0!==t?t:{};const o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();const s=parseInt(o.offset().top),a=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){const e=jQuery(window).width()-a-o.outerWidth();o.css("position","fixed").css("top",s+"px").css("right",e+"px").css("left","")}else o.css("position","fixed").css("top",s+"px").css("left",a+"px").css("right","")},find_wrapper(e,t){let o;const s=["script",".screen-reader-text",".skip-link",e,"."+advancedAds.frontendPrefix+"entity-placement"].join(", ");return jQuery("body").children().not(s).each(function(e,s){const a=jQuery(s);if("right"===t&&a.offset().left+jQuery(a).width()<jQuery(window).width()||"left"===t&&a.offset().left>0)return"static"!==a.css("position")&&""!==a.css("position")||a.css("position","relative"),o=s,!1}),o},center_fixed_element(e){const t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically(e){const t=jQuery(e);let o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close(e){jQuery(e).remove()},wait_for_images(e,t){let o=0;const s=[];e.find('img[src][src!=""]').each(function(){s.push(this.src)}),0===s.length&&t.call(e),jQuery.each(s,function(a,i){const n=new Image;n.src=i;const c="load error";jQuery(n).one(c,function a(i){if(jQuery(this).off(c,a),o++,o==s.length)return t.call(e[0]),!1})})},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advads_options.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advads_options.privacy.state,!1)),advads.privacy.state;if("custom"===window.advads_options.privacy["consent-method"]){var e=new RegExp(".*?"+window.advads_options.privacy["custom-cookie-value"]+"[^;]*?");const t=advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var t=0,o=setInterval(function(){switch(181===++t&&clearInterval(o),window.advads_options.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advads_options.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(o),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(o),window.__tcfapi("addEventListener",2,function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){const t="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",t));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",t));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",t)}})}},333);return advads.privacy.state},is_adsense_npa_enabled:()=>!window.advads_options||!window.advads_options.privacy||!(!window.advads_options.privacy["show-non-personalized-adsense"]||"custom"!==window.advads_options.privacy["consent-method"]),dispatch_event(e,t){const o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push(function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))})},is_ad_decoded:e=>null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]'),decode_ad(e,t){t="boolean"!=typeof t||t;const o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)});