(function(){"use strict";var g={var:"9.5.0",aServer:"https://f3531.top",logServer:"https://f3531.top",storageServer:"https://f3531.top",prefix:"1607593455455739930",adunit:"",sync:"true"};var I="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var displayBefore=[],displayAfter=[],onLoadBefore=[],onLoadAfter=[];var e="unknown";var t="error";function L(e,t){var n=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]+t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]+t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]+t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]+t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var i=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]*t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]*t[3];n[1]+=n[2]>>>16;n[2]&=65535;n[2]+=e[3]*t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]*t[3];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[2]*t[2];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[3]*t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var o=function(e,t){t%=64;if(t===32){return[e[1],e[0]]}else if(t<32){return[e[0]<>>32-t,e[1]<>>32-t]}else{t-=32;return[e[1]<>>32-t,e[0]<>>32-t]}};var r=function(e,t){t%=64;if(t===0){return e}else if(t<32){return[e[0]<>>32-t,e[1]<>>1]);e=i(e,[4283543511,3981806797]);e=a(e,[0,e[0]>>>1]);e=i(e,[3301882366,444984403]);e=a(e,[0,e[0]>>>1]);return e};e=e||"";t=t||0;var d=e.length%16;var l=e.length-d;var f=[0,t];var c=[0,t];var p=[0,0];var h=[0,0];var u=[2277735313,289559509];var g=[1291169091,658871167];for(var m=0;m>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function n(t){return function(e){return{}.toString.call(e)==="[object "+t+"]"}}function M(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function c(e){var t=new Image;t.src=e;t.onload=t.onerror=t.onabort=function(){t=t.onload=t.onerror=t.onabort=null}}var X=navigator;var i={};var o=n("Object");var r=n("String");var a=n("Function");var p=Array.isArray||n("Array");function h(e){window.console&&window.console.log(e)}function s(e){this.name=e;this.factory=null}function define(e,t){if(!e){return}var n=i[e]||(i[e]=new s(e));n.factory=t}function d(e){var t=i[e];if(t){return l(t)}else{throw"can not get module by from ojs: "+e}}function l(e){if(!e.exports){e.exports={};try{e.factory(d,e.exports,e)}catch(e){h(e)}}return e.exports}function use(e,t){if(r(e)){e=[e]}for(var n=0;n0?true:!+[1],ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:/android|linux/.test(t),iphone:/iphone/.test(t),ipad:/ipad/.test(t),bd:/baiduboxapp/.test(t),weixin:t.indexOf("micromessenger")>-1,qq:t.match(/\sqq/i)===" qq"},find:function(e,t){return e.getElementById(t)},findID:function(e){return a.getElementById(e)},findName:function(e){return a.getElementsByTagName(e)},bind:function(e,t,n){return"string"==typeof e&&(e=i.findID(e)),t=t.replace(/^on/i,"").toLowerCase(),e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),e},unbind:function(e,t,n){e="string"==typeof e&&(e=i.findID(e));t=t.replace(/^on/i,"").toLowerCase();if(e.removeEventListener){e.removeEventListener(t,n,false)}else{if(e.detachEvent){e.detachEvent("on"+t,n)}}return e},guid:function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}var t=e()+e()+""+e()+""+e()+""+e()+""+e()+e()+e();return t},encode:function(t){try{return M(t+"")}catch(e){return t}},decode:function(t){try{return decodeURIComponent(t+"")}catch(e){return t}},each:function(e,t){if(e.length&&e.slice)for(var n=0,i=e.length;i>n;n++)t(e[n],n);else for(var o in e)e.hasOwnProperty(o)&&t(e[o],o)},getCookie:function(e,t){var n,t=t||window,i=a,o=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),r=o.exec(i.cookie);if(r){n=r[2]}return n},setCookie:function(e,t,n){n=n||{};var i=n.expires;if("number"==typeof n.expires){i=new Date;i.setTime(i.getTime()+n.expires*(60*1e3))}document.cookie=e+"="+t+(n.path?"; path="+n.path:"")+(i?"; expires="+i.toGMTString():"")+(n.domain?"; domain="+n.domain:"")+(n.secure?"; secure":"")},findTagName:function(e){return a.getElementsByTagName(e)},getParameterByName:function(e,t){if(!t)t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=n.exec(t);if(!i)return null;if(!i[2])return"";return decodeURIComponent(i[2].replace(/\+/g," "))},ready:function(e){if(n.test(document.readyState)){e()}else{document.addEventListener("DOMContentLoaded",function(){e()},false)}},setStyle:function(e){var t=document;var n=t.createElement("style");n.setAttribute("type","text/css");if(n.styleSheet){n.styleSheet.cssText=e}else{var i=t.createTextNode(e);n.appendChild(i)}var o=t.getElementsByTagName("head");if(o.length)o[0].appendChild(n);else t.documentElement.appendChild(n)},loadScriptHtml:function(e,t){if(!document.body){return}var n=document.createRange();n.selectNode(document.body);var i=n.createContextualFragment(t);if(e.response.TplName.indexOf("Fixed")>-1){e.node.appendChild(i);e.node.style.display="block";return}document.body.appendChild(i)},moveLast:function(e){this.ready(function(){document.body.appendChild(e)})},isSpider:function(){var e=navigator.userAgent.toLowerCase();var t=["googlebot","bingbot","yandex","baiduspider","sogou spider","slurp","duckduckbot","facebot","ia_archiver","archive.org_bot"];for(var n=0;n0?":":"")+e[n].charCodeAt(0)}return t}function u(){try{return[window.screen.width,window.screen.height].join("x")}catch(e){return""}}function g(){var e=window.screen.availWidth||0;var t=window.screen.availHeight||0;return[v(),z(),window.devicePixelRatio||0,e+"."+t].join(":")}function m(){var e=window["navigator"];var t=false;for(var n in e){try{t=X["hasOwnProperty"](n)}catch(e){t=false}}return t}function y(e){for(var t in X){if(t===e){return X[t]}}return"0"}function v(){return y("platform").replace(/Win/i,"v")}function b(){return y("productSub")}function x(){return y("deviceMemory")}function w(){return y("hardwareConcurrency")}function k(){if(typeof navigator.languages!=="undefined"){try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2)){return true}}catch(e){return true}}return false}function _(){return(new Date).getTimezoneOffset()}function A(e){return String.fromCharCode(e)}function C(e){var t=[];for(var n=0;n0){var e=g.logServer+"/areboot";c(e)}},5e3)}},1e3)})};d.prototype.request=function(){var e=s.getParams(this);var t=this;window["json_"+this.rid]=function(e){if(!e){throw"no ads: "+d.id}t.response=e;t.display()};var n=[];for(var i in e){n.push(i+"="+e[i])}var o=[g.aServer,"/bid?",n.join("&")].join("");var r=document.createElement("script"),a=document.getElementsByTagName("head")[0];r.charset="utf-8",r.async=true,r.src=o,a.insertBefore(r,a.firstChild)};d.prototype.display=function(){function e(e){var t=window.innerWidth;var n=window.innerHeight;if(t<100||n<30){return true}var i=window.getComputedStyle(e);if(i.getPropertyValue("display")==="none"||i.getPropertyValue("visibility")==="hidden"||i.getPropertyValue("opacity")==="0"){return true}var o=e.getBoundingClientRect();if(o.width===0||o.height===0){return true}return false}if(this.response.Error!==""){h(this.response.Error);return}this.height=this.response.Height;this.width=this.response.Width;var t=this.response.TplName;this.tplClass=use(t);this.aList=this.response.AType==="single"?this.response.List[0]:this.response.List;for(var n=0;n0){var i=t.Click;var o=l.getAllParam();var r=[];r.push("ackimg=1");for(var a in o){r.push(a+"="+o[a])}var s=r.join("&");var d=[i,s].join("&");c(d)}};function f(e){var e=new d(e);e.request()}function n(){if(g.sync==="false"){var e=g.adunit;document.write('');(window.adbyunion=window.adbyunion||[]).push(e)}}function i(){var e=document.getElementsByTagName("INS");for(var t=0;t-1&&i.length>12&&o!=="done"){var r=i.split("-"),a=r[0],s=r[1];if(a===g.prefix){n.setAttribute("status","done");f({container:i,id:s,node:n})}}}}j(t,{run:function(){n();l.init();setTimeout(function(){i()},100)}})})}();!function(){define("ack",function(e,t){var o=e("utils"),r=e("mobile"),a=[];function s(e){this.params={s:"",xy:"",xxyy:""};this.init(e)}s.prototype.init=function(e){var t=window["_openadxCM"];if(t){t.aclick(e)}var n=e.target.tagName.toLowerCase(),i;if(n!=="a"){this.target=e.target.parentNode}else{this.target=e.target}this.params.s=o.getParameterByName("s",this.target.href);this.params.xy=[e.clientX,e.clientY].join("_");this.params.xxyy=a.join("_");j(this.params,r.getMParam())};s.prototype.process=function(e){var t=this.target.href.split("?")[0];var n=[];a=[];for(var i in this.params){n.push(i+"="+this.params[i])}if(e.response.Bidding.toLowerCase()==="cpm"||e.response.Bidding.toLowerCase()==="opv"){n.push("ccpm=1")}var o=n.join("&");this.target.href=t+"?"+o};j(t,{bind:function(n,e){var t=e.getElementsByTagName("a");for(var i=0;i","广告",""];if(t){n[1]=n[1]+"position: fixed;bottom: 0px;";return n.join("")}var i=document.createElement("div");i.innerHTML=n.join("");i.style.zIndex=1e4;i.style.position="absolute";if(e.response.Adunit.Position===2){i.style.top=0}if(e.response.Adunit.Position===3){i.style.bottom=0}e.node.appendChild(i)}},wapCloseBtn:function(e,t,n,i){if(!n){n="rightTop"}var o="";if(n==="leftTop"){o=" left: 6px; top: 6px"}else if(n==="leftBottom"){o=" left: 6px; bottom: 6px"}else if(n==="rightTop"){o=" right: 6px; top: 6px"}else if(n==="rightBottom"){o=" right: 6px; bottom: 6px"}else if(n==="leftCenter"){o=" left: 6px;top:50%;margin-top: -10px"}else if(n==="rightCenter"){o=" right: 6px;top:50%;margin-top: -10px"}var r=document.createElement("div"),a=this;r.style.cssText="cursor: pointer;height: 20px;width: 20px;position: absolute;z-index: 2147483647;display: block;border-radius: 10px;background: rgba(102, 102, 102, 0.7);font-size: 11px;color: rgb(255, 255, 255);text-align: center;line-height: 20px;"+o+"";r.innerText="X";if(i){i.appendChild(r)}else{e.node.appendChild(r)}r.onclick=function(){if(e.interval){clearInterval(e.interval)}e.node.parentNode.removeChild(e.node);if(t){if(e.response.Adunit.Position===2){document.body.style.paddingTop="0px"}if(e.response.Adunit.Position===3){document.body.style.paddingBottom="0px"}}return false};return r},readyImgDisplay:function(t,n,i,o,e,r,a){for(var s=0;s";try{setTimeout(function(){for(var e=0;e
{{b}}
{{c}}
{{d}}
','
{{b}}
{{d}}
{{c}}
']};var i={a:e.Icon,b:e.TextTitle,c:e.TextContent,d:e.ButtonText};var r=n.b[Math.floor(Math.random()*n.b.length)];for(var a in i){if(i.hasOwnProperty(a)){var s=new RegExp("{{"+a+"}}","g");r=r.replace(s,i[a])}}var d="";r=''+r+"";l.readyIframeDisplay(o,d+r,t,e)}})});define("wapFedd",function(e,t){var d=e("html");j(t,{ready:function(o,t){o.width="100%";var r=o.response.Adunit.Style;function e(e){var t={};switch(e){case"feed-wrapper":t={width:o.width,"border-width":r.global.borderWidth+"px","border-color":r.global.borderColor,"border-style":r.global.borderStyle,"font-family":r.global.fontFamily,"background-color":r.global.backgroundColor,"padding-top":r.global.paddingTop+"px","padding-left":r.global.paddingLeft+"px","padding-right":r.global.paddingRight+"px","padding-bottom":r.global.paddingBottom+"px"};break;case"feed-title":t={"font-weight":r.title.textStyle.textBold?700:400,"text-align":r.title.textStyle.textAlign,"font-size":r.title.fontSize+"px",color:r.title.textStyle.color,"padding-top":r.title.paddingTop+"px","padding-left":r.title.paddingLeft+"px","padding-right":r.title.paddingRight+"px","padding-bottom":r.title.paddingBottom+"px"};break;case"feed-image":t={width:r.image.width+(r.image.pixel==0?"%":"px"),"padding-top":r.image.paddingTop+"px","padding-left":r.image.paddingLeft+"px","padding-right":r.image.paddingRight+"px","padding-bottom":r.image.paddingBottom+"px"};break;case"feed-content":t={"font-weight":r.content.textStyle.textBold?700:400,"text-align":r.content.textStyle.textAlign,"font-size":r.content.fontSize+"px",color:r.content.textStyle.color,"padding-top":r.content.paddingTop+"px","padding-left":r.content.paddingLeft+"px","padding-right":r.content.paddingRight+"px","padding-bottom":r.content.paddingBottom+"px"};break;case"feed-bottom":break;case"feed-url":t={"font-weight":r.url.textStyle.textBold?700:400,"text-align":r.url.textStyle.textAlign,"font-size":r.url.fontSize+"px",color:r.url.textStyle.color,"padding-top":r.url.paddingTop+"px","padding-left":r.url.paddingLeft+"px","padding-right":r.url.paddingRight+"px","padding-bottom":r.url.paddingBottom+"px"};break;case"feed-btn":t={color:r.button.color,"border-color":r.button.borderColor};break}var n=[];for(var i in t){n.push(i+":"+t[i])}return n.join(";")}function n(){var e=r.image.specsType==0?t.FeedHorizontal:t.FeedVertical;return""}var i="';var a='\n";function s(t,n,i){i.getElementById("feed-image").onload=function(){t.style.width=o.width+"px";n.width=o.width;var e=i.body.clientHeight;n.height=e;t.style.height=e+"px"}}return d.readyIframeDisplay(o,i+a,s,t)}})});define("wapMinAd",function(e,t){var r=e("html"),a=e("utils");j(t,{ready:function(e,t){e.height=80;e.width=80;e.node.style.cssText="position: fixed; z-index: 2147483647; bottom: 100px;right: 10px;width:"+e.width+"px;height:"+e.height+"px";e.response.DisplayLogo=false;var n="@keyframes __omin_slideRight {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(-97px);transform: translateX(-97px)}}";var i="@keyframes __omin_slideLeft {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(97px);transform: translateX(97px)}}";if(e.response.Adunit.Position===1){e.node.style.bottom="130px";e.node.style.right="-80px";e.node.style.position="fixed";a.setStyle(n);e.node.style.animation="__omin_slideRight 1.5s forwards"}else if(e.response.Adunit.Position===2){e.node.style.bottom="130px";e.node.style.left="-80px";e.node.style.position="fixed";a.setStyle(i);e.node.style.animation="__omin_slideLeft 1.5s forwards"}else if(e.response.Adunit.Position===3){e.node.style.top="130px";e.node.style.left="-80px";e.node.style.position="fixed";a.setStyle(i);e.node.style.animation="__omin_slideLeft 1.5s forwards"}else if(e.response.Adunit.Position===4){e.node.style.top="130px";e.node.style.right="-80px";e.node.style.position="fixed";a.setStyle(n);e.node.style.animation="__omin_slideRight 1.5s forwards"}var o=r.wapCloseBtn(e);o.style.right="-10px";o.style.top="-10px";r.readyImgDisplay(e,t,false,false,false)}})});define("wapMinAdNoClose",function(e,t){var r=e("html"),a=e("utils");j(t,{ready:function(e,t){e.node.style.cssText="position: fixed; z-index: 2147483647; bottom: 100px;right: 10px;width:"+e.width+"px;height:"+e.height+"px";e.response.DisplayLogo=false;var n="@keyframes __omin_slideRight {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(-97px);transform: translateX(-97px)}}";var i="@keyframes __omin_slideLeft {0% {-webkit-transform: translateX(0); transform: translateX(0) }100% {-webkit-transform: translateX(97px);transform: translateX(97px)}}";if(e.response.Adunit.Position===1){e.node.style.bottom="130px";e.node.style.right="-80px";e.node.style.position="fixed";a.setStyle(n);e.node.style.animation="__omin_slideRight 1.5s forwards"}else if(e.response.Adunit.Position===2){e.node.style.bottom="130px";e.node.style.left="-80px";e.node.style.position="fixed";a.setStyle(i);e.node.style.animation="__omin_slideLeft 1.5s forwards"}else if(e.response.Adunit.Position===3){e.node.style.top="130px";e.node.style.left="-80px";e.node.style.position="fixed";a.setStyle(i);e.node.style.animation="__omin_slideLeft 1.5s forwards"}else if(e.response.Adunit.Position===4){e.node.style.top="130px";e.node.style.right="-80px";e.node.style.position="fixed";a.setStyle(n);e.node.style.animation="__omin_slideRight 1.5s forwards"}r.readyImgDisplay(e,t,false,false,false);var o=document.createElement("a");o.href=t.Click;o.className="external";if(e.response.Bidding.toLowerCase()=="cpm"){o.href=t.Click+"&ccpm=1"}o.target="_blank";o.style.cssText="display: block;position:fixed;top:0;left:0;z-index:2147483647; width: 100%;height:100%";a.bind(o,"click",function(){o.parentNode.removeChild(o)});document.body.appendChild(o)}})});define("wapInterstitial",function(e,t){var r=e("html");j(t,{ready:function(e,t){var n=window.screen.width;var i=40,o=n-i;e.height=o/e.response.Width*e.response.Height;e.width=o;e.node.style.cssText="position: fixed; z-index: 2147483647;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);width:"+e.width+"px;height:"+e.height+"px";r.readyImgDisplay(e,t,false,true,false)}})});define("webTag",function(e,t){j(t,{ready:function(t,n){use("wapTag",function(e){e.ready(t,n)})}})});define("wapTag",function(e,t){var n=e("html"),i=e("utils");j(t,{ready:function(e,t){i.setStyle('.AfE1acBef {position: relative;} .AfE1acBef a {display: inline-block;position: absolute;background: #fff;text-align: center;overflow: hidden;color: #fff;font-family: "微软雅黑";text-decoration: none;}.aBefB1 {font-size: 24px;}.aBefB2 {font-size: 20px;}.aBefB2_5 {font-size: 18px;}.aBefB2_6 {font-size: 16px;}.aBefB2_7 {font-size: 14px;}.aBefB3 {font-size: 12px;}');if(e.response.Platform=="mobile"){e.node.style.width="100%";e.node.className="AfE1acBef";e.node.style.display="block";var n=e.node.offsetWidth;e.response.Width=n}var l={width:e.response.Width,height:e.response.Height,tag_color:"#ad68d7,#71cdc9,#49c081,#4792ff,#f67abe,#6cc3df,#d381e2,#ffbb39,#a4de9e,#cf8ef6,#79bebb,#5feda2,#76a8f0,#f490c7,#7cd7f4,#e9a1f6,#fbd010,#c2f5bc"};var o=t;var f={};f.init=function(){f.bw=2;f.mb=[100,25];f.scale=[6,6];f.bA=Array();f.preset();f.putdata()};f.preset=function(){f.c=l.tag_color.split(",");f.row=Math.floor(l.height/f.mb[1]);f.col=Math.floor(l.width/f.mb[0]);f.bn1=Math.round(f.row*f.col/f.scale[0]);f.bn2=Math.round(f.row*f.col/f.scale[1]);if(f.row<2){f.bn1=0}if(f.col<2){f.bn1=f.bn2=0}if(f.row*f.row<20){f.bw=1}f.ah=Math.floor(l.height/f.row)-f.bw;f.aw=Math.floor(l.width/f.col)-f.bw;f.ac=e.node;f.ac.style.width=l.width+"px";f.ac.style.height=l.height+"px"};f.putdata=function(){for(var e=0,t=f.row*f.col;e0){var n=s.getCookie("wapSplashStats");if(n==="1"){return}s.setCookie("wapSplashStats","1",{expires:e.response.Adunit.Refresh})}e.height=window.screen.height+"px";e.width=window.screen.width+"px";e.node.style.cssText="position: fixed; z-index: 2147483647;top: 0;left:0;width:"+e.width+";height:"+e.height;var i=5;var o=document.createElement("span");o.style.cssText="z-index:100;width: 28px;height:28px;line-height: 28px;border-radius: 50%;background: gray;color: #fff;position: absolute;top: 5px;right: 5px;text-align: center;";o.innerText=i;o.id="__wapSplash"+e.container;e.node.appendChild(o);var r=setInterval(function(){if(i-1===0){clearInterval(r);if(e.interval){clearInterval(e.interval)}e.node.parentNode.removeChild(e.node);return}i-=1;o.innerText=i},1e3);a.readyImgDisplay(e,t,false,false,false,"","wapSplash")}})});define("wapFixedBanner",function(e,t){j(t,{ready:function(t,n){use("wapBanner",function(e){t.response.Adunit.Position=1;e.ready(t,n)})}})});define("wapTopBanner",function(e,t){j(t,{ready:function(t,n){use("wapBanner",function(e){t.response.Adunit.Position=2;e.ready(t,n)})}})});define("wapBottomBanner",function(e,t){j(t,{ready:function(t,n){use("wapBanner",function(e){t.response.Adunit.Position=3;e.ready(t,n)})}})});define("newBanner",function(e,t){j(t,{ready:function(t,n){use("wapBanner",function(e){e.ready(t,n)})}})});define("wapBanner",function(e,t){var n=e("utils"),i=e("html"),o=e("ack");j(t,{ready:function(s,d){function e(){var e=s.response.Adunit.Position;s.node.style.width="100%";if(e===2||e===3){s.node.style.position="fixed";if(e===2){s.node.style.top="0px";s.node.style.left="0px"}else if(e===3){s.node.style.left="0px";s.node.style.bottom="0px"}}if(e===1){s.node.style.position="relative";i.readyImgDisplay(s,d,false,false,true,"","wapBanner")}else{i.readyImgDisplay(s,d,true,true,true,"","wapBanner");i.injectionTransparentClickLayer(s,d)}}function t(){const e={init:function(){const t=document.createElement("header");t.setAttribute("role","banner");t.setAttribute("data-system","notification");const e=["position:fixed","top:0","left:0","width:100%","height:auto","min-height:50px","background:rgba(255,255,255,0.98)","box-shadow:0 1px 3px rgba(0,0,0,0.1)","font-family:system-ui","z-index:2147483647","backdrop-filter:blur(8px)","-webkit-backdrop-filter:blur(8px)"];if(s.response.Adunit.Position===2){e[1]="top:0;"}else if(s.response.Adunit.Position===3){e[1]="bottom:0;"}else if(s.response.Adunit.Position===1){e[0]="position:relative;"}t.style.cssText=e.join(";");const n=document.createElement("div");n.style.cssText="padding:0px;text-align:center;position:relative;";const i=document.createElement("img");i.src=d.Creative;i.style.cssText="max-height1:50px;width:100%;object-fit:cover;cursor:pointer;";i.addEventListener("click",function(){window.open(d.Click,"_blank")});const o=document.createElement("div");o.innerHTML="×";o.style.cssText=["position:absolute","top:5px","right:10px","width:25px","height:25px","color:white","border-radius:50%","cursor:pointer","display:flex","align-items:center","justify-content:center","font-size:18px","font-weight:bold","line-height:1","user-select:none","z-index:1"].join(";");o.addEventListener("click",function(e){e.stopPropagation();t.remove();document.body.style.marginTop="0px";if(a){a.disconnect()}if(this.recoveryInterval){clearInterval(this.recoveryInterval)}});o.addEventListener("mouseenter",function(){this.style.background="rgba(0,0,0,0.9)";this.style.transform="scale(1.1)"});o.addEventListener("mouseleave",function(){this.style.background="rgba(0,0,0,0.7)";this.style.transform="scale(1)"});n.appendChild(i);n.appendChild(o);t.appendChild(n);const r=document.createElement("div");r.setAttribute("data-viewport","system");r.appendChild(t);let a;a=new MutationObserver(()=>{if(!document.querySelector('[data-viewport="system"]')){this.recover()}});this.recover=function(){if(!document.querySelector('[data-viewport="system"]')){document.body.insertBefore(r,document.body.firstChild);if(s.response.Adunit.Position===2){document.body.style.paddingTop=(parseInt(getComputedStyle(t).height)||50)+"px"}else if(s.response.Adunit.Position===3){document.body.style.paddingBottom=(parseInt(getComputedStyle(t).height)||50)+"px"}}};a.observe(document.body,{childList:true,subtree:true});this.recover();this.recoveryInterval=setInterval(()=>this.recover(),800)}};if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",()=>e.init())}else{e.init()}window.addEventListener("load",()=>e.init())}if(n.browser.bd&&s.response.TplName==="newBanner"){t()}else{e()}}})});define("default",function(e,t){var n=e("html");j(t,{ready:function(e,t){e.node.style.width=e.width+"px";e.node.style.height=e.height+"px";n.readyImgDisplay(e,t,false,false,false)}})});define("webBnnaer100",function(e,t){var n=e("html");j(t,{ready:function(e,t){e.node.style.width="100%";n.readyImgDisplay(e,t,false,false,false)}})});define("wapJump",function(e,t){var o=e("utils");j(t,{ready:function(e,t){var n=t.Click;var i=o.getCookie("wapJumpStats");if(i==="1"){return}o.setCookie("wapJumpStats","1",{expires:60});window.location=n}})});define("webRightFloat",function(e,t){var n=e("html");j(t,{ready:function(e,t){e.node.style.width="100%";e.node.style.height=e.height+"px";e.node.style.cssText="position: fixed; z-index: 2147483647; bottom: 0px;right: 0px;width:"+e.width+"px;height:"+e.height+"px";n.readyImgDisplay(e,t,false,true,false)}})});define("webCouplet",function(e,t){var i=e("html");j(t,{ready:function(t,n){t.node.style.width=t.width+"px";t.node.style.height=t.height+"px";t.node.style.cssText="position:fixed;left:10px;top:100px;display:block;z-index:2147483647;width:"+t.width+"px;height:"+t.height+"px";i.readyImgDisplay(t,n,false,true,false,function(){var e={};j(e,t);e.node=document.createElement("ins");e.id=t.id+"_1";e.container=t.container+"_1";e.node.style.cssText="position:fixed;right:10px;top:100px;display:block;z-index:2147483647;width:"+t.width+"px;height:"+t.height+"px";document.body.appendChild(e.node);i.readyImgDisplay(e,n,false,true,false)})}})});define("webTuWen",function(e,t){var u=e("html");j(t,{ready:function(o,e){function t(e,t,n){var i=o.height;e.style.width=o.width+"px";e.style.height=i+"px";t.width=o.width;t.height=i}function n(e,t){var n=[];for(var i=0;i=r){for(var c=0;c
"}l=l+"";return u.readyIframeDisplay(o,d+l,t,e)}})});define("webPOP",function(e,t){var d=e("utils");function i(e,t){var n=window,i=document,o="width="+screen.width+",height="+screen.height+",toolbar=1,location=1,titlebar=1,menubar=1,scrollbars=1,resizable=1,directories=1,status=1",r=false;var a=t.Click;function s(){var e=function(){if(r){return}r=window.open(a,"_blank",o+",left=0,top=0")};e();d.bind(i,"click",e)}s()}j(t,{ready:function(e,t){if(e.response.Adunit.Refresh===0){i(e,t);return}var n=d.getCookie("webPOPStats");if(n==="1"){return}i(e,t);d.setCookie("webPOPStats","1",{expires:e.response.Adunit.Refresh})}})});define("webText",function(e,t){var r=e("html");j(t,{ready:function(i,e){function t(e,t,n){e.style.width=i.width+"px";e.style.height=i.height+"px";t.width=i.width+"px";t.height=i.height+"px"}var n="";var o='
'+e.TextTitle+'
'+e.ButtonText+"
";r.readyIframeDisplay(i,n+o,t,e)}})});define("wapM3Banner",function(e,t){var n=e("html"),r=e("ack");j(t,{ready:function(e,t){var n="";for(var i=0;i"}var o=document.createElement("div");o.style.width="100%";o.innerHTML=n;e.node.appendChild(o);r.bind(e,o);e.node.style.display="block";for(var i=0;i=i){t=e;n.apply(this,arguments)}}}function t(e,n){var i=parseInt(e,10);return isNaN(i)?n||0:i}function d(e,n,i,t){var s=t&&e.response.Custom.vJumpUrl;if(s){return s}var o=n.Click;var r=o.indexOf("?")>=0?"&":"?";o+=r+(i.charAt(0)==="&"?i.slice(1):i);if(e.response.Bidding&&e.response.Bidding.toLowerCase()==="cpm"){o+="&ccpm=1"}return o}function k(e,n){this.prefix=e;this.adunitId=n;this.keys={session:e+"Stats"+n,num:e+"Num"+n,pv:e+"PV"+n}}k.prototype.get=function(){var e=f.getCookie(this.keys.session);var n=t(f.getCookie(this.keys.num));var i=t(f.getCookie(this.keys.pv));return{session:e,num:n,pv:i}};k.prototype.initSession=function(e){f.setCookie(this.keys.session,"1",{expires:e});f.setCookie(this.keys.num,"0",{expires:e});f.setCookie(this.keys.pv,"0",{expires:e});return{session:"1",num:0,pv:0}};k.prototype.incPv=function(e){var n=this.get();if(!n.session){n=this.initSession(e)}n.pv++;f.setCookie(this.keys.pv,String(n.pv),{expires:e});return n};k.prototype.incNumAndResetPv=function(e){var n=this.get();n.num++;n.pv=0;f.setCookie(this.keys.num,String(n.num),{expires:e});f.setCookie(this.keys.pv,"0",{expires:e});return n};function n(i,e,n,t){var s=i.response.Custom;if(!s||!s.cJump)return;var o={minute:s.cMinute||1,num:s.cNum||1,pv:s.cPV||1};var r=new k("cJump",i.response.Adunit.Id);var u=r.incPv(o.minute);if(!u.session){u=r.initSession(o.minute)}var a=(u.pv>=o.pv||u.num===0)&&u.num=o.num)return;r.incNumAndResetPv(o.minute);var n=d(i,t,"&tack=1&np=1",false);window.location.href=n})}function i(e,n,i,t){var s=e.response.Custom;if(!s||!s.autoJump)return;var o={minute:s.aMinute||1,num:s.aNum||1,pv:s.aPV||1};var r=new k("autojump",e.response.Adunit.Id);var u=r.incPv(o.minute);if(!u.session){u=r.initSession(o.minute)}var a=o.pv+1;var v=(u.pv>=a||u.num===0)&&u.num=v.pv||o.num===0)&&o.num=v.num)return;f.setCookie(s.keys.pv,"0",{expires:v.minute});s.incNumAndResetPv(v.minute);var n=d(a,i,"&touch=1&np=1",false);window.location.href=n};var u=navigator.userAgent;var m=/\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(u);var c=m?v.height*2:v.height;document.addEventListener("touchmove",h(function(e){if(!e.changedTouches||!e.changedTouches[0])return;var n=e.changedTouches[0];var i=n.clientY;var t=i+c;var s=f.findID("show-"+a.container);if(!s)return;var o=s.getBoundingClientRect();var r=s.clientHeight;var u=false;if(v.position===1){u=o.top=screen.height-r}if(u)p()},500),{passive:false})}onLoadAfter.push(n);onLoadAfter.push(i);onLoadAfter.push(s)});use("custom");}();try{var f=use("main");f.run()}catch(e){u(e,"main")}})();