Blast of Tempest

PG-13
HD
24
24
TV24m
Yoshino Takigawa, an ordinary teenager, is secretly dating his best friend Mahiro's younger sister. But when his girlfriend Aika mysteriously dies, Mahiro disappears, vowing to find the one responsible and make them pay for murdering his beloved sister. Yoshino continues his life as usual and has not heard from Mahiro in a month—until he is confronted by a strange girl who holds him at gunpoint, and his best friend arrives in the nick of time to save him. Yoshino learns that Mahiro has enlisted the help of a witch named Hakaze Kusaribe to find Aika's killer and of the existence of an entity known as the "Tree of Exodus." The witch's brother selfishly desires to make use of its power, in spite of the impending peril to the world. However, Hakaze is banished to a deserted island, and it is now up to Yoshino and Mahiro to help her save the world, while inching ever closer to the truth behind Aika's death. [Written by MAL Rewrite]
9Anime is the best site to watch Blast of Tempest SUB online, or you can even watch Blast of Tempest DUB in HD quality. You can also find Bones anime on 9Anime website.
Overview:
Yoshino Takigawa, an ordinary teenager, is secretly dating his best friend Mahiro's younger sister. But when his girlfriend Aika mysteriously dies, Mahiro disappears, vowing to find the one responsible and make them pay for murdering his beloved sister. Yoshino continues his life as usual and has not heard from Mahiro in a month—until he is confronted by a strange girl who holds him at gunpoint, and his best friend arrives in the nick of time to save him. Yoshino learns that Mahiro has enlisted the help of a witch named Hakaze Kusaribe to find Aika's killer and of the existence of an entity known as the "Tree of Exodus." The witch's brother selfishly desires to make use of its power, in spite of the impending peril to the world. However, Hakaze is banished to a deserted island, and it is now up to Yoshino and Mahiro to help her save the world, while inching ever closer to the truth behind Aika's death. [Written by MAL Rewrite]
Japanese:絶園のテンペスト
Synonyms:Zetsuen no Tempest: The Civilization Blaster
Aired:Oct 5, 2012 to Mar 29, 2013
Premiered:Fall 2012
Duration:24m
Status:Finished Airing
MAL Score:8.01
Studios:Bones
9Anime is the best site to watch Blast of Tempest SUB online, or you can even watch Blast of Tempest DUB in HD quality. You can also find Bones anime on 9Anime website.

Promotion Videos

PV 1

Recommended for you

`),this.#I()})).catch((e=>{if(e&&this.#i.error(e),e&&this.#o&&!this.#k)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#k=!0,this.#s.enableAdbMode(),void this.show();this.#r(oe)}))}#I(){this.#i.debug("render"),this.#S.render(this.#y)}#C(e){let t=`${window.location.protocol}//${this.#v}/script/interstitial.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:e}=this.#o,i=`/${ee("abcdefgh0123456789")}`;t=`${window.location.protocol}//${e}${i}`}return t+=`?r=${this.#l}`,this.#m&&(t+="&rbd=1"),this.#b&&(t+=this.#b),t=t+"&atag=1"+`&czid=${this.#u}`+`&aggr=${this.#h}`+`&seqid=${e}`+`&ufp=${encodeURIComponent(this.#T)}`+`&srs=${this.#s.getSesionRandomString()}`+`&cbpage=${encodeURIComponent(O())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(F())}`,this.#o&&(t+="&abtg=1"),this.#g&&(t+="&ppv=1"),this.#p&&(t+=`&ab_test=${this.#p}`),!1===this.#f&&(t+="&cap=0"),this.#o&&this.#o.adbVersion&&(t+=`&adbv=${this.#o.adbVersion}`),this.#s.isSandboxed()&&(t+="&sbx=1"),this.#o&&this.#s.isAdbMode()?(t+="&sadbl=2",t+="&fmt=intrn",this.#i.debug(`bid url: ${t}`),te(t)):(this.#i.debug(`bid url: ${t}`),t)}};const Oe=6e5,Ee='[doskip*="1"]',Pe="znid";var Re=class{targetElementsCssSelector=null;shouldTriggerPopOnTargetClick=!1;constructor(e,t,i){this.targetElementsCssSelector=e,this.shouldTriggerPopOnTargetClick=t,this.zoneId=i}isPresent(){return!!this.targetElementsCssSelector}isActionAllowedOnElement(e){if(!this.isPresent())return!0;if(e.hasAttribute(Pe))return e.getAttribute(Pe)===this.zoneId;if(e.hasAttribute("doskip"))return!1;const t=w()(document.querySelectorAll(Ee));for(const i of t)if(i.contains(e))return!1;return this.#O(e)?this.shouldTriggerPopOnTargetClick:!this.shouldTriggerPopOnTargetClick}#O(e){const t=document.querySelectorAll(this.targetElementsCssSelector);do{for(let i=0;i{var e,t,i;const n=(e,t)=>{try{const i=t.getBoundingClientRect();e.style.top=`${i.top+window.scrollY}px`,e.style.left=`${i.left+window.scrollX}px`,e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}catch(e){}};A()(e=this.iframesToOverlays).call(e,(e=>{let{overlay:t,iframe:i}=e;return n(t,i)})),A()(t=this.videosToOverlays).call(t,(e=>{let{overlay:t,video:i}=e;return n(t,i)})),A()(i=this.anchorsToOverlays).call(i,(e=>{let{overlay:t,anchor:i}=e;return n(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#P(e){const t=document.createElement("div");if(t.addEventListener("mousedown",(e=>{this.#i.debug("mousedown on overlay"),e.stopPropagation(),e.preventDefault(),this.desktopClickListener(e)}),this.#E),e===document.body)t.id="dontfoid",t.style.top="0px",t.style.left="0px",t.style.width=`${window.innerWidth||document.body.clientWidth}px`,t.style.height=`${window.innerHeight||document.body.clientHeight}px`,t.style.position="fixed";else{const i=e.getBoundingClientRect();t.style.top=`${i.top+window.scrollY}px`,t.style.left=`${i.left+window.scrollX}px`,t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.position="absolute",t.setAttribute("donto","")}return t.setAttribute(Pe,this.#l),t.style.zIndex=2147483647,t.style.backgroundColor="transparent",e===document.body?document.body.appendChild(t):e.parentNode.appendChild(t),t}attachVideoOverlays(){const e=document.querySelectorAll("video");for(let t=0;t false"),this.#E=!1),this.overlays=new Le(this.elementTargeting,t()(i=this.#z).call(i,this),this.#i,this.#t.zoneId,this.#E),e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#x)}show(){this.#y=null,this.#L=null,this.#R=!1,fetch(this.#C()).then((e=>200===e.status||202===e.status?e.json():(204===e.status&&(this.hasNoInventory=!0,this.#i.debug(`no inventory! reset after ${this.#w} sec`),o()((()=>{this.hasNoInventory=!1}),1e3*this.#w),this.#w<7200&&(this.#w*=5)),l().reject()))).then(se).then((e=>{if(this.#i.debug("response:",e),e.capped_ttl)return this.isCapped=!0,this.#i.debug(`capped! reset after ${e.capped_ttl} sec`),o()((()=>{this.isCapped=!1}),1e3*e.capped_ttl),void this.#t.actionCallback(ae);if(this.#w>12&&(this.#w=12),!this.#m){this.#m=!0;const t=e.delay??0;return this.#i.debug("delay is",t),void o()((()=>{this.#F(e)}),1e3*t)}this.#F(e)})).catch((e=>{if(e&&this.#i.error(e),e&&this.#t.adblockSettings&&!this.#k)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#s.enableAdbMode(),this.#k=!0,void this.show();this.#t.actionCallback(ae)}))}#C(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/suurl5.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,i=`/${ee("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}if(e+=`?r=${this.#t.zoneId}`,this.#m&&(e+="&rbd=1"),this.#t.targetCountries){const t=this.#t.targetCountries.join(",");this.#t.triggerOnTargetCountries?e+="&allowed_countries="+encodeURIComponent(t):e+="&excluded_countries="+encodeURIComponent(t)}return e=e+this.#t.clientHintsQueryStr+"&atag=1&cbur="+Math.random()+"&cbiframe="+E()+"&cbWidth="+L()+"&cbHeight="+$()+"&cbtitle="+encodeURIComponent(z())+"&cbpage="+encodeURIComponent(O())+"&cbref="+encodeURIComponent(F())+"&cbdescription="+encodeURIComponent(U("description"))+"&cbkeywords="+encodeURIComponent(U("keywords"))+"&cbcdn="+encodeURIComponent(this.#s.getCdnDomain())+"&ts="+r()()+"&atv="+this.#x+"&ufp="+encodeURIComponent(this.#t.uniqueFingerprint)+"&srs="+this.#s.getSesionRandomString(),this.#t.adblockSettings&&(e+="&abtg=1"),this.#t.aggressivity&&(e+=`&aggr=${this.#t.aggressivity}`),this.#t.collectiveZoneId&&(e+=`&czid=${this.#t.collectiveZoneId}`),this.#t.recordPageView&&(e+="&ppv=1"),this.#t.abTest&&(e+=`&ab_test=${this.#t.abTest}`),!1===this.#t.adsCapping&&(e+="&cap=0"),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(e+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#s.isSandboxed()&&(e+="&sbx=1"),this.#t.adblockSettings&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=suv5",this.#i.debug(`bid url: ${e}`),te(e)):(this.#i.debug(`bid url: ${e}`),e)}#U(e){try{let t=this.#$?this.#$(""):window.open("");return t.document.open(),t.document.writeln('`),void(!this.#m&&this.#t.delay>0?(this.#i.debug(`delay present. render after: ${this.#t.delay} sec`),o()(t()(c=this.#I).call(c,this),1e3*this.#t.delay)):this.#I())))}#Xe(e){this.#i.debug("fallback script str:",e);const t=(new DOMParser).parseFromString(e,"text/html").querySelector("script");if(!t)return void this.#i.error("invalid fallback script. move on");this.#i.debug("fallback script:",t);const i=document.createElement("script");for(const e of t.attributes)i.setAttribute(e.name,e.value);i.src||(i.textContent=t.textContent),document.body.appendChild(i)}#Ye(e){this.#i.debug("hp data:",e);const t={zoneId:e.pop_zone_id.toString(),linkedZoneId:e.source_zone_id.toString()};var i;e.attributes&&(e.attributes["element-list"]&&(t.targetElementsCssSelector=e.attributes["element-list"],t.triggerOnTargetElementsClick="allow"===e.attributes["element-action"]),e.attributes["country-list"]&&(t.targetCountries=Ve()(i=e.attributes["country-list"]).call(i).split(","),t.triggerOnTargetCountries="allow"===e.attributes["country-action"])),this.#s.runPop(t)}#r(){if(this.#t.showOnInnerLinkClick&&this.#Je)return this.#i.debug("redirect to inner link"),void(window.location.href=this.#Je);this.#Ke=!1,this.#t.refreshRate>0?(this.#i.debug(`rebid after ${this.#t.refreshRate} sec`),o()((()=>{this.#m=!0,this.#He()}),1e3*this.#t.refreshRate)):this.#i.debug("no rebidding. finish")}#et(){const e=document.querySelectorAll("a"),t=new(v())(O()).hostname;for(let i=0;i{t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():t.returnValue=!1,this.#Ke||(this.#i.debug("click on inner link detected. render ad"),this.#Ke=!0,this.#Je=e[i].href,this.#S.render(this.#y))}),{capture:!0})}#I(){this.#i.debug("render"),this.#t.showOnInnerLinkClick?(this.#i.debug("google friendly interstitial. ad will be rendered on inner link click"),this.#et()):this.#S.render(this.#y)}#C(){let e=`${window.location.protocol}//${this.#v}/script/interstitial.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#o,i=`/${ee("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#l}`,this.#m&&(e+="&rbd=1"),this.#b&&(e+=this.#b),e=e+`&srs=${this.#s.getSesionRandomString()}`+`&ufp=${encodeURIComponent(this.#T)}`+`&cbpage=${encodeURIComponent(O())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(F())}`,this.#Ze&&(e+=`&sub1=${encodeURIComponent(this.#Ze)}`),this.#Ge&&(e+="&atag=1"),this.#u&&(e+=`&czid=${this.#u}`),this.#Qe&&(e+=`&pblcz=${this.#Qe}`),this.#h&&(e+=`&aggr=${this.#h}`),this.#o&&(e+="&abtg=1"),this.#g&&(e+="&ppv=1"),this.#p&&(e+=`&ab_test=${this.#p}`),this.#o&&this.#o.adbVersion&&(e+=`&adbv=${this.#o.adbVersion}`),this.#s.isSandboxed()&&(e+="&sbx=1"),this.#o&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=intrn",this.#i.debug(`bid url: ${e}`),te(e)):(this.#i.debug(`bid url: ${e}`),e)}},InPagePush:class{#t={};#i;#s;#b="";#tt;#m=!1;#it=!1;#x="62.3";#nt=[];#rt=null;#Be=10;#k=!1;constructor(e){this.#i=new a(`ipp_new_${e.zoneId}`),this.#i.debug("init ipp with config:",e),this.#t=e,this.#s=window[e.adcashGlobalName],customElements.get("in-page-message")||customElements.define("in-page-message",Xe),e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),T(window,"resize",(()=>{var e;A()(e=this.#nt).call(e,(e=>{let{htmlElement:t}=e;t&&t.resize()}))})),this.#s.getClientHints(!1).then((e=>{this.#b=e})).finally((()=>{o()((()=>{this.#He()}),1e3*this.#t.delay)}))}#C(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/push.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,i=`/${ee("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#t.zoneId}&ipp=1`,this.#tt=Y?this.#t.renderPosMobile:this.#t.renderPosDesktop,e+=`&mads=${this.#t.maxAds}&position=${this.#tt}`,this.#t.isAutoTag&&(e+=`&czid=${this.#t.collectiveZoneId}&atag=1`),this.#t.aggressivity&&(e+=`&aggr=${this.#t.aggressivity}`),this.#t.adblockSettings&&(e+="&abtg=1"),this.#m&&(e+="&rbd=1"),this.#t.recordPageView&&(e+="&ppv=1"),this.#t.linkedZoneId&&(e+=`&pblcz=${this.#t.linkedZoneId}`),this.#t.abTest&&(e+=`&ab_test=${this.#t.abTest}`),this.#t.sub1&&(e+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(e+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#s.isSandboxed()&&(e+="&sbx=1"),e=e+`&srs=${this.#s.getSesionRandomString()}`+`&ufp=${encodeURIComponent(this.#t.uniqueFingerprint)}`+`&cbpage=${encodeURIComponent(O())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(F())}`,this.#b&&(e+=this.#b),this.#rt&&(e+="&ipptr=1"),this.#t.adblockSettings&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=ippg",this.#i.debug(`bid url: ${e}`),te(e)):(this.#i.debug(`bid url: ${e}`),e)}#st(e){var i;this.#i.debug(`rebid after ${e} sec`),o()(t()(i=this.#He).call(i,this),1e3*e)}#ot(){this.#t.refreshRate>0&&this.#st(this.#t.refreshRate)}#je(){this.#Be<1200&&(this.#Be*=2)}#_e(){this.#Be=10}#at(){this.#st(this.#Be),this.#je()}async#He(){if(this.#ct()>=this.#t.maxAds||document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)return this.#i.debug("max ads reached or fullscreen."),void this.#ot();let e,t;try{if(e=await fetch(this.#C()),!e.ok)throw new Error(`HTTP error! Status: ${e.status}`)}catch(e){return this.#i.error(e),this.#t.adblockSettings&&!this.#k?(this.#i.debug("fetch failed. adb present - switch to adb mode"),this.#k=!0,this.#s.enableAdbMode(),void this.#He()):this.#s.isAdbMode()?void this.#i.debug("fetch failed with adb mode on. exit"):void this.#at()}return 204===e.status?(this.#i.debug("unsold inventory!"),this.#m=!0,void this.#at()):200!==e.status&&202!==e.status?(this.#i.error(`response status ${e.status} not recognised!`),void this.#at()):(this.#m=!0,t=await e.json(),t=se(t),this.#i.debug("response data:",t),202===e.status?(t.hp&&this.#lt(t.hp),t.capped_ttl?(this.#i.debug("capped!"),void this.#st(t.capped_ttl)):void this.#at()):(t.hp&&this.#lt(t.hp),t.fallback?this.#Xe(t.fallback)?void this.#i.debug("fallback rendered. exit!"):void this.#at():(this.#_e(),this.#t.refreshRate=t.rr,this.#b&&(t.impression_url&&(t.impression_url+=this.#b),t.click_url&&(t.click_url+=this.#b)),2===t.type?this.#rt?this.#i.debug("custom ipp html already present"):this.#dt({script:t.script||"",link:t.click_url,impressionLink:t.impression_url||null}):(this.#nt.push({title:t.title||"",description:t.description||"",icon:t.icon||t.image,link:t.click_url,impressionLink:t.impression_url||null}),this.#ut()),void this.#ot())))}#ct(){return this.#rt?this.#nt.length+1:this.#nt.length}#Xe(e){this.#i.debug("fallback script str decoded:",e);const t=(new DOMParser).parseFromString(e,"text/html").querySelector("script");if(!t)return this.#i.error("invalid fallback script. move on"),!1;this.#i.debug("fallback script:",t);const i=document.createElement("script");for(const e of t.attributes)i.setAttribute(e.name,e.value);return i.src||(i.textContent=t.textContent),document.body.appendChild(i),!0}#lt(e){if(this.#it)return void this.#i.debug("hp already attached");if(this.#t.isAutoTag)return void this.#i.debug("hp not allowed when autotag");this.#it=!0,this.#i.debug("attach hp. hp data:",e);const t={zoneId:e.pop_zone_id.toString(),linkedZoneId:e.source_zone_id.toString(),isHPop:!0};var i;e.attributes&&(e.attributes["element-list"]&&(t.targetElementsCssSelector=e.attributes["element-list"],t.triggerOnTargetElementsClick="allow"===e.attributes["element-action"]),e.attributes["country-list"]&&(t.targetCountries=Ve()(i=e.attributes["country-list"]).call(i).split(","),t.triggerOnTargetCountries="allow"===e.attributes["country-action"])),this.#s.runPop(t)}#dt(e){this.#rt=e;const t=(new DOMParser).parseFromString(this.#rt.script,"text/html").querySelector("script"),i=document.createElement("script");if(t)for(const e of t.attributes)i.setAttribute(e.name,e.value);i.src||(i.innerText=t.innerText);const n=()=>{this.#i.debug("CT-CLICK"),fetch(this.#rt.link,{mode:"no-cors"}),document.removeEventListener("ct-click",n)},r=()=>{this.#i.debug("CT-CLOSE"),document.removeEventListener("ct-click",n),document.removeEventListener("ct-close",r),this.#rt=null,document.body.removeChild(i)};T(document,"ct-click",n),T(document,"ct-close",r);let s=this.#rt.impressionLink;window[Je]&&(s+=`&utsid=${window[Je]}`),s+=`&cbpage=${encodeURIComponent(O())}`,s+=`&cbref=${encodeURIComponent(F())}`,(async()=>{try{await fetch(s.toString())}catch(e){return this.#i.debug(e),void(this.#t.adblockSettings&&!this.#s.isAdbMode()&&(this.#i.debug("imp failed: try alt domain and path"),this.#s.enableAdbMode()))}document.dispatchEvent(new CustomEvent("impression-event"))})(),i.onerror=()=>{this.#i.debug("custom html script failed to load"),this.#rt=null},document.body.appendChild(i)}#ut(){var e,t;this.#i.debug("drawing.."),A()(e=this.#nt).call(e,(e=>{let{htmlElement:t}=e;t&&t.remove()})),A()(t=this.#nt).call(t,((e,t)=>{const i=document.createElement("in-page-message");i.setAttribute("doskip","1"),i.setAttribute("id",t.toString()),i.setAttribute("data-icon",e.icon),i.setAttribute("data-title",e.title),i.setAttribute("data-description",e.description),i.setAttribute("data-offset-top",this.#t.offsetTop),i.setAttribute("data-render-pos-desktop",this.#t.renderPosDesktop),i.setAttribute("data-render-pos-mobile",this.#t.renderPosMobile),e.impressionLink&&(i.setAttribute("data-imp-link",e.impressionLink),e.impressionLink=null,document.dispatchEvent(new CustomEvent("impression-event"))),i.addEventListener(Qe,(()=>{var n;if(Y||this.#t.adblockSettings&&this.#s.isAdbMode()){const t=document.createElement("a");t.href=e.link,t.rel="noopener, noreferrer",t.target="_blank",t.click()}else try{window.open(e.link,"_blank","noopener,noreferrer")}catch{}i.remove(),Ze()(n=this.#nt).call(n,t,1),this.#ut()})),i.addEventListener(Ke,(()=>{var e;i.remove(),Ze()(e=this.#nt).call(e,t,1),this.#ut()})),e.htmlElement=i,document.body.appendChild(i)}))}},Banner:class{#s;#t={};#i;#ht="";#gt;#l=null;#ft=null;#pt=null;#vt=null;#bt;#mt;#v="youradexchange.com";#ve="velocecdn.com";#yt;#o;#k=!1;#x="62.3";constructor(e){this.#i=new a(`banner_${e.zoneId}`),this.#s=window[e.adcashGlobalName],this.#i.debug("init banner with config:",e),this.#t=e,this.#l=this.#t.zoneId,this.#ft=this.#t.width,this.#pt=this.#t.height,this.#vt=this.#t.renderIn,this.#o=this.#t.adblockSettings,this.#t.currentScript&&(this.#yt=this.#t.currentScript),this.#bt=this.#mt=document.body.clientWidth||window.innerWidth,e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#x),this.#wt()}#xt(){const e=this.#gt.impression_url;(new Image).src=e}async#wt(){this.#i.debug("get initial ad and config"),this.#ht=await I(this.#i);const e=await this.#St();let t;this.#i.debug("URL to fetch",e);try{t=await fetch(e)}catch(e){return this.#i.error(e),this.#o&&!this.#k?(this.#i.debug("fetch failed: try alt domain and path"),this.#k=!0,this.#s.enableAdbMode(),void this.#wt()):this.#s.isAdbMode()?void this.#i.debug("fetch failed: alt domain and path blocked. exit"):void this.#i.debug("fetch failed. exit")}if(200===t.status||202===t.status){this.#i.debug("initial fetch received 200 or 202");const e=await t.json();this.#gt=se(e),this.#kt()}else 204===t.status&&this.#i.debug("initial fetch received 204. No inventory")}async#St(){let e=`${window.location.protocol}//${this.#v}/script/banner.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#o,i=`/${ee("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#l}`,e+=`&cbpage=${encodeURIComponent(O())}`,e+=`&cbref=${encodeURIComponent(F())}`,e+=`&cbdescription=${encodeURIComponent(U("description"))}`,e+=`&cbkeywords=${encodeURIComponent(U("keywords"))}`,e+=`&cbtitle=${encodeURIComponent(z())}`,e+=`&srs=${R()}`,e+=`&ufp=${encodeURIComponent(this.#t.uniqueFingerprint)}`,e+=`&atv=${this.#x}`,this.#t.sub1&&(e+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#o&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=bnr",te(e)):e}#kt(){if(!this.#gt||"undefined"===this.#gt)return;if(this.#gt.hp&&(this.#At(this.#gt.hp),1===tt()(this.#gt).length))return;if(this.#gt.capped_ttl)return void this.#i.debug("capped");let e;e=this.#vt?document.querySelector(this.#vt):this.#t.currentElement?this.#t.currentElement:this.#yt.parentElement,this.#Tt(e);const t=this.#Ct();e.appendChild(t)}#Ct(){let e;return this.#gt.fallback?(this.#i.debug("Banner type - fallback"),e=this.#It()):1===this.#gt.render_image?(this.#i.debug("Banner type - image"),e=this.#Ot()):(this.#i.debug("Banner type - html"),e=this.#Et()),this.#gt.fallback||this.#xt(),this.#s||this.#Pt(),e}#Ot(){const e=document.createElement("a");e.href=this.#gt.click_url,e.target="_blank",e.rel="noopener, noreferrer",e.style.display="block",e.style.width=`${this.#ft?this.#ft:this.#gt.width}px`,e.style.height=`${this.#pt?this.#pt:this.#gt.height}px`,e.style.position="relative",e.style.top=0,e.style.left=0,e.style.right=0,e.style.bottom=0,e.setAttribute("doskip","1"),e.setAttribute(Te,"1");const t=document.createElement("img");if(t.src=this.#gt.image_url,t.target="_blank",t.width=this.#ft?this.#ft:this.#gt.width,t.height=this.#pt?this.#pt:this.#gt.height,this.#gt.width>this.#bt&&this.#gt.force_resize){const i=(this.#ft?this.#ft:this.#gt.width)/this.#mt;e.style.width=`${this.#mt}px`,e.style.height=`${Math.round((this.#pt?this.#pt:this.#gt.height)/i)}px`,t.style="max-width: 100%;",t.width=this.#mt,t.height=Math.round((this.#pt?this.#pt:this.#gt.height)/i)}return e.appendChild(t),e}#Et(){const e=`banner_${this.#l}`,t=document.createElement("div");t.id=e,t.style.display="block",t.style.width=`${this.#ft?this.#ft:this.#gt.width}px`,t.style.height=`${this.#pt?this.#pt:this.#gt.height}px`,t.style.position="relative",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.width=this.#ft?this.#ft:this.#gt.width,t.height=this.#pt?this.#pt:this.#gt.height,t.setAttribute("doskip","1"),t.setAttribute(Te,"1"),this.#Rt(t,this.#gt.html);const i=()=>{this.#i.debug("click recorded:",this.#gt.click_url),(new Image).src=this.#gt.click_url,r()},n=()=>{this.#i.debug("click on divNode"),i()},r=()=>{t.removeEventListener("click",n),clearInterval(s)};t.addEventListener("click",n);const s=ue()((()=>{document.activeElement&&"IFRAME"===document.activeElement.tagName&&((e,t)=>{let i=e.parentElement;for(;i;){if(i.id===t)return i;i=i.parentElement}return null})(document.activeElement,e)&&(this.#i.debug("click on iframe"),i())}),200);return t}#Rt(e,t){var i;e.innerHTML=t,A()(i=w()(e.querySelectorAll("script"))).call(i,(e=>{var t;const i=document.createElement("script");A()(t=w()(e.attributes)).call(t,(e=>{i.setAttribute(e.name,e.value)}));const n=document.createTextNode(e.innerHTML);i.appendChild(n),e.parentNode.replaceChild(i,e)}))}#It(){const e=`banner_${this.#l}`,t=document.createElement("iframe");return t.id=e,t.style.border="medium none",t.style.padding="0",t.style.margin="0",t.style.width=`${this.#ft?this.#ft:this.#gt.width}px`,t.style.height=`${this.#pt?this.#pt:this.#gt.height}px`,t.width=this.#ft?this.#ft:this.#gt.width,t.height=this.#pt?this.#pt:this.#gt.height,t.scrolling="no",t.vspace="0",t.hspace="0",t.allowtransparency="true",t.allowfullscreen="true",t.srcdoc=this.#gt.fallback,t}#At=e=>{if(this.#s){const i={zoneId:e.pop_zone_id.toString(),linkedZoneId:e.source_zone_id.toString()};var t;return e.attributes&&(e.attributes["element-list"]&&(i.targetElementsCssSelector=e.attributes["element-list"],i.triggerOnTargetElementsClick="allow"===e.attributes["element-action"]),e.attributes["country-list"]&&(i.targetCountries=Ve()(t=e.attributes["country-list"]).call(t).split(","),i.triggerOnTargetCountries="allow"===e.attributes["country-action"])),void this.#s.runPop(i)}const i=document.createElement("script");var n;i.type="text/javascript",i.src=`//${this.#ve}/script/suv4.js`,i.setAttribute("zid",e.pop_zone_id),i.setAttribute("lpzi",e.source_zone_id),i.setAttribute("data-adel","lwsu"),i.setAttribute("adlm","ipvipplm"),e.attributes&&A()(n=tt()(e.attributes)).call(n,(t=>{i.setAttribute(t,e.attributes[t])})),document.body.appendChild(i)};#Tt(e){if(this.#i.debug("Initial viewport:",this.#bt),this.#gt.width>this.#bt&&this.#gt.force_resize){var t=window.getComputedStyle(e),i=nt()(t.paddingLeft),n=nt()(t.marginLeft);this.#mt=e.clientWidth-i-n,this.#i.debug("Parent element width:",this.#mt)}}#Pt(){const e=document.createElement("a");e.style.display="none",e.style.visibility="hidden",e.style.position="relative",e.style.left="-1000px",e.style.top="-1000px",e.href=this.#gt.bot_link,document.body.appendChild(e)}}}}))}()}();