/*!2016-08-15 18:16:53 */

!function(){var yaparameter,yautil,yacookie,yauuid,yasysinfo,yasessionData,yadataStorage,yahiidologic,yaconfig,yaanalytics,yatimer,yadateFormat,yareportSender,yaClass,yabaseReport,yaTimer,yamd5,yahuyaReport,yacore,ya;yaparameter=function(){var a=function(){this.initialize()};return a.prototype={constructor:a,initialize:function(){this.data={},this.size=0},add:function(a,b){a in this.data||this.size++,this.data[a]=b},get:function(a){return this.data[a]},remove:function(a){a in this.data&&(delete this.data[a],this.size--)},addAll:function(b){if(b instanceof a)for(var c in b.data)this.add(c,b.get(c))},addAllIfNoExist:function(b){if(b instanceof a)for(var c in b.data)c in this.data||this.add(c,b.get(c))},containsKey:function(a){return a in this.data},containsValue:function(a){for(var b in this.data)if(this.get(b)===a)return!0;return!1},removeAll:function(b){if(b instanceof a)for(var c in b.data)this.remove(c)},toString:function(){var a="",b="";for(var c in this.data)"act"!=c?(""!=a&&(a+="&"),a+=c+"="+this.data[c]):b=this.data[c];return b&&(a="act="+b+"&"+a),a}},a}(),yautil=function(a){var b={trim:function(a){return a.replace(/(^\s*)|(\s*$)/g,"")},replaceBlank:function(a){var b=a.toString();return b=b.replace(/ /g,""),b=b.replace(/&nbsp;/g,""),b=b.replace(/&/g,"|||"),b=b.replace(/r/g,"")},isNotBlank:function(a){return""!==this.trim(a)},isBlank:function(a){return!this.isNotBlank(a)},contains:function(a,b){return a.indexOf(b)>-1},startWith:function(a,b){return!b||0===a.length||b.length>a.length?!1:a.substring(0,b.length)===b?!0:!1},encode:function(a){return encodeURIComponent(a)},decode:function(a){return decodeURIComponent(a)},parseToInt:function(a){return isNaN(parseInt(a))?0:parseInt(a)},getQueryParam:function(b){var c=new a;if(!b)return c;for(var d=this.decode(b).replace("?","?&").split("&"),e=0;e<d.length;e++){var f=d[e].split("=");!f||f.length<2||c.add(f[0],f[1])}return c},getUrlDomain:function(a){if(!a)return document.domain;var b=/.*\:\/\/([^\/]*).*/,c=a.match(b),d="";return"undefined"!=typeof c&&null!=c&&(d=c[1]),d},getURILocation:function(a){return this.isURL(a)?a.replace(/(.*\.[\w-]+\/){0,}([^\?]+).*/gi,"$2"):""},isURL:function(a){var b=/^((http|https|ftp):\/\/)?(\w(\:\w)?@)?([0-9a-z_-]+\.)*?([a-z0-9-]+\.[a-z]{2,6}(\.[a-z]{2})?(\:[0-9]{2,6})?)((\/[^?#<>\/\\*":]*)+(\?[^#]*)?(#.*)?)?$/i;return b.test(a)},extractByCutPrefix:function(a,b){return!a instanceof String||!this.startWith(a,b)?a:a.substring(b.length,a.length)},getYaParamByPrefix:function(b,c,d){var e=new a;if(b)for(var f in b.data)this.startWith(f,c)?e.add(this.extractByCutPrefix(f,c),b.get(f)):d&&e.add(f,b.get(f));return e},consoleLog:function(a){try{}catch(b){}}};return b}(yaparameter),yacookie=function(a){var b={init:"",getCookieValue:function(b){var c=document.cookie.indexOf(";",b);return-1==c&&(c=document.cookie.length),a.decode(document.cookie.substring(b,c))},getCookie:function(a){for(var b=a+"=",c=b.length,d=document.cookie.length,e=0;d>e;){var f=e+c;if(document.cookie.substring(e,f)==b)return this.getCookieValue(f);if(e=document.cookie.indexOf(" ",e)+1,0==e)break}return null},getCookie_mid:function(a){return this.getCookie(a)},getCookiesObj:function(){var a={};if(document.cookie){var b=document.cookie.split("; ");for(var c in b){var d=b[c].indexOf("="),e=b[c].substr(0,d),f=b[c].substr(d+1,b[c].length);a[e]=f}}return a},getCookieLength:function(){var a=this.getCookiesObj(),b=0;for(var c in a)b++;return b},getExpires:function(a){var b=new Date;return b.setTime(b.getTime()+a),b},deleteCookie:function(a){this.setCookie(a,"",0)},setCookie:function(b,c,d){var e=document.domain,e="huya.com",c=b+"="+a.encode(c)+"; domain="+e+"; path=/;";d>0&&(c+=" expires="+this.getExpires(d).toGMTString()),document.cookie=c}};return b}(yautil),yauuid=function(){var a={generate32:function(){var a=new Date(1582,10,15,0,0,0,0),b=new Date,c=b.getTime()-a.getTime(),d="",e=this.generateBits(c,0,31),f=this.generateBits(c,32,47),g=this.generateBits(c,48,59)+"1",h=this.generateBits(this.rand(4095),0,7),i=this.generateBits(this.rand(4095),0,7),j=this.generateBits(this.rand(8191),0,7)+this.generateBits(this.rand(8191),8,15)+this.generateBits(this.rand(8191),0,7)+this.generateBits(this.rand(8191),8,15)+this.generateBits(this.rand(8191),0,15);return e+d+f+d+g+d+h+i+d+j},generateBits:function(a,b,c){var d=this.returnBase(a,16),e=new Array,f="",g=0;for(g=0;g<d.length;g++)e.push(d.substring(g,g+1));for(g=Math.floor(b/4);g<=Math.floor(c/4);g++)f+=e[g]&&""!=e[g]?e[g]:"0";return f},returnBase:function(a,b){var c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];if(b>a)var d=c[a];else{var e=""+Math.floor(a/b),f=a-e*b;if(e>=b)var d=this.returnBase(e,b)+c[f];else var d=c[e]+c[f]}return d},rand:function(a){return Math.floor(Math.random()*a)}};return a}(),yasysinfo=function(UTIL){var SysInfo={getOS:function(){var a=navigator.userAgent.toLowerCase(),b=navigator.platform,c="Win32"===b||"Windows"===b,d="Mac68K"===b||"MacPPC"===b||"Macintosh"===b||"MacIntel"===b,e="X11"===b&&!c&&!d,f=String(b).indexOf("Linux")>-1,g="android"===a.match(/android/i);if(d)return"Mac";if(e)return"Unix";if(f)return g?"Android":"Linux";if(c){var h={ce:"WindowsMobile",mobile:"WindowsMobile","nt 5.0":"Windows2000","nt 5.1":"WindowsXP","nt 5.2":"Windows2003","nt 6.0":"WindowsVista","nt 6.1":"Windows7","nt 6.2":"Windows8","nt 10.0":"Windows10",2000:"Windows2000",xp:"WindowsXP",2003:"Windows2003",vista:"WindowsVista",7:"Windows7",8:"Windows8",10:"Windows10"};for(var i in h)if(a.indexOf("windows "+i)>-1)return h[i]}return"unknown"},getBrowerVersion:function(){var a,b="unknown",c=navigator.userAgent.toLowerCase();return(a=c.match(/msie ([\d.]+)/))?b=a[0]:(a=c.match(/firefox\/([\d.]+)/))?b=a[0]:(a=c.match(/yye\/([\d.]+)/))?b=a[0]:(a=c.match(/chrome\/([\d.]+)/))?b=a[0]:(a=c.match(/opera.([\d.]+)/))?b=a[0]:(a=c.match(/version\/([\d.]+).*safari/))?b=a[0]:0,b},getFlashVersion:function(){var f="0",n=navigator;if(n.plugins&&n.plugins.length){for(var ii=0;ii<n.plugins.length;ii++)if(-1!=n.plugins[ii].name.indexOf("Shockwave Flash")){f=n.plugins[ii].description.split("Shockwave Flash ")[1];break}}else if(window.ActiveXObject)for(var ii=10;ii>=2;ii--)try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){f=ii+".0";break}}catch(e){}return UTIL.replaceBlank(f)}};return SysInfo}(yautil),yasessionData=function(a,b,c,d,e){var f={defaultSessionIdKey:"product",_yasdatas:"_yasdatas_",_yasids:"_yasids",sessionIds:new a,sDataQueue:new Array,separator:"",add:function(d,e,f){var g={pro:"",cha:"",rso:""},h=b.getQueryParam(e),i=new a;for(var j in g)i.add(j,h.get(j));var k=new a;k.add(d,e),this.sDataQueue.push(k),1==f&&c.setCookie(this._yasdatas+d,i.toString(),-1)},get:function(b){for(var c=null,e=0;e<this.sDataQueue.length;e++)this.sDataQueue[e]instanceof a&&this.sDataQueue[e].containsKey(b)&&(c=this.sDataQueue[e]);if(c instanceof a)return c.get(b);if(null==c){var f=this.getCCParam(this._yasdatas+b);f&&f.size>1&&(f.add("act","/session_data"),f.add("session_id",b),f.addAll(d.getBaseClientInfo()),this.add(b,f.toString()),c=f.toString())}return c},list:function(){var b=new Array,c=new Array,d=this.separator,e=new a;e.addAll(this.sessionIds),e.addAll(this.getCCParam(this._yasids));var f=5;for(var g in e.data){var h=this.get(e.get(g));h&&c.push(h),i%f==0&&(b.push(c.join(d)),c=[])}return b.push(c.join(d)),b},getCCParam:function(a){return b.getQueryParam(this.getCCValue(a))},getCCValue:function(a){return c.getCookie(a)},generateSessionId:function(b,d){var f=b?b.toLowerCase():this.defaultSessionIdKey,g=e.generate32();if(this.sessionIds.add(f,g),1==d){var h=this.getCCParam(this._yasids);if(!h)var h=new a;h.add(f,g),c.setCookie(this._yasids,h.toString(),-1)}return g},getSessionId:function(a,b){var c=a?a.toLowerCase():this.defaultSessionIdKey,d=this.sessionIds.get(c);if(!d||b){var e=this.getCCParam(this._yasids);d=e.get(c),d&&this.sessionIds.add(c,d)}return d},getSessionIdAndGenIfNotExist:function(a,b,c){var d=this.getSessionId(a,c);return d||(d=this.generateSessionId(a,b)),d}};return f}(yaparameter,yautil,yacookie,yaconfig,yauuid),yadataStorage=function(){var a={domain:"huya.com",create:function(){if(!window.localStorage&&!this.instance)try{var a=document.createElement("input");a.type="hidden",a.style.display="none",a.addBehavior("#default#userData"),document.getElementsByTagName("head")[0].appendChild(a),this.instance=a}catch(b){return!1}return!0},set:function(a,b,c){if(window.localStorage)window.localStorage.setItem(a,b);else if(this.create()){var d=new Date,e=this.domain,f=this.instance;d.setTime(d.getTime()+c),f.expires=d.toUTCString(),f.load(e),f.setAttribute(a,b),f.save(e)}},get:function(a){if(window.localStorage)return window.localStorage.getItem(a);if(this.create()){var b=this.instance;return b.load(this.domain),b.getAttribute(a)}return null},remove:function(a){if(window.localStorage)window.localStorage.removeItem(a);else if(this.create()){var b=this.domain,c=this.instance;c.load(b),c.removeAttribute(a),c.save(b)}}};return window.dataStorage=a,a}(),yahiidologic=function(){var hiidoLogic={getCookie:function(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return null;if(-1==b)return null;var d=document.cookie.indexOf(";",c);return-1==d&&(d=document.cookie.length),unescape(document.cookie.substring(c,d))},setCookie:function(a,b,c,d,e,f){var g=new Date;g.setTime(g.getTime()),c&&(c=1e3*c*60*60*24);var h=new Date(g.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+h.toGMTString():"")+(d?";path="+d:"")+(e?";domain="+e:"")+(f?";secure":"")},setCookieWrap:function(a,b){a&&b&&this.setCookie(a,b,700,"/",".huya.com")},getUid:function(){var a=this.getCookie("ya_ui");return a||(a=Math.random(),this.setCookieWrap("ya_ui",a)),a},getUidOwn:function(){var a=this.getCookie("ya_uid");return a||(a=Math.random(),this.setCookieWrap("ya_uid",a)),a},getBs:function(){var a=0,b=navigator.userAgent.toLowerCase();return a=-1!=b.indexOf("maxthon")?31:-1!=b.indexOf("tencent")||-1!=b.indexOf("qqbrowser")?32:-1!=b.indexOf("theworld")?33:/se (\d+).x metasr/.test(b)?34:-1!=b.indexOf("360se")?35:-1!=b.indexOf("115")?36:-1!=b.indexOf("155")?37:/trident.*rv:11\./i.test(b)?11:/edge/i.test(b)?46:-1!=b.indexOf("firefox")?20:-1!=b.indexOf("opera")||/opr\//.test(b)?21:-1!=b.indexOf("lbbrowser")||-1!=b.indexOf("liebao")?44:-1!=b.indexOf("ubrowser")?47:-1!=b.indexOf("chrome")?22:-1!=b.indexOf("ucweb")||-1!=b.indexOf("ucbrowser")?25:-1!=b.indexOf("adobeair")?24:-1!=b.indexOf("netscape")?38:-1!=b.indexOf("lunascape")?39:-1!=b.indexOf("bidubrowser")?40:-1!=b.indexOf("360ee")?41:-1!=b.indexOf("myie")?42:-1!=b.indexOf("taobrowser")?43:-1!=b.indexOf("2345explorer")?45:/safari/.test(b)&&-1!=b.indexOf("mac")?23:/msie/.test(b)?b.indexOf("msie 6")>-1?6:b.indexOf("msie 7")>-1?7:b.indexOf("msie 8")>-1?8:b.indexOf("msie 9")>-1?9:b.indexOf("msie 10")>-1?10:5:0},getMobile:function(){var a=0,b=navigator.userAgent.toLowerCase();return-1!=b.indexOf("iphone")?a=21:-1!=b.indexOf("ipad")?a=22:-1!=b.indexOf("ipod")?a=23:-1!=b.indexOf("blackberry")?a=31:-1!=b.indexOf("nokia")?a=32:-1!=b.indexOf("sonyericsson")?a=33:-1!=b.indexOf("mot")?a=34:-1!=b.indexOf("sec")||-1!=b.indexOf("samsung")?a=35:-1!=b.indexOf("-sgh")?a=35:-1!=b.indexOf("mi-")||-1!=b.indexOf("xiaomi")?a=47:-1!=b.indexOf("zte")?a=48:-1!=b.indexOf("huawei ")?a=50:-1!=b.indexOf("coolpad ")?a=51:-1!=b.indexOf("dopod")||-1!=b.indexOf("htc")?a=36:-1!=b.indexOf("philips")?a=37:-1!=b.indexOf("lenovo")?a=38:-1!=b.indexOf("nec")?a=39:-1!=b.indexOf("sharp")?a=40:-1!=b.indexOf("palm")?a=41:-1!=b.indexOf("panasonic")?a=42:-1!=b.indexOf("meizu")||-1!=b.indexOf("mx4")?a=43:-1!=b.indexOf("alcatel")?a=44:-1!=b.indexOf("benq")?a=45:-1!=b.indexOf("lg")?a=46:-1!=b.indexOf("sie")&&-1==b.indexOf("msie")?a=52:-1!=b.indexOf("amoi")?a=97:-1!=b.indexOf("bird")?a=98:-1!=b.indexOf("tcl")?a=99:-1!=b.indexOf("nexus")?a=100:-1!=b.indexOf("smartisan")?a=101:-1!=b.indexOf("vivo")?a=102:-1!=b.indexOf("daxian")||-1!=b.indexOf("dx")?a=103:-1!=b.indexOf("telson")?a=104:-1!=b.indexOf("haier")?a=105:-1!=b.indexOf("cect")?a=106:-1!=b.indexOf("dbtel")?a=107:-1!=b.indexOf("oppo")?a=108:-1!=b.indexOf("konka")?a=109:-1!=b.indexOf("changhong")?a=110:-1!=b.indexOf("malata")?a=120:-1!=b.indexOf("ktouch")||-1!=b.indexOf("tianyu")?a=111:-1!=b.indexOf("pantech")?a=112:-1!=b.indexOf("eastcom")?a=113:-1!=b.indexOf("doov")?a=114:-1!=b.indexOf("nubia")?a=115:-1!=b.indexOf("oneplus")?a=116:-1!=b.indexOf("gionee")?a=117:-1!=b.indexOf("asus")?a=118:-1!=b.indexOf("koobee")?a=119:-1!=b.indexOf("curl")||-1!=b.indexOf("crul")||-1!=b.indexOf("wget")?a=80:-1!=b.indexOf("googlebot")?a=91:-1!=b.indexOf("baidu")&&-1!=b.indexOf("ider")?a=92:-1!=b.indexOf("soso")&&-1!=b.indexOf("ider")?a=93:-1!=b.indexOf("youdaobot")||-1!=b.indexOf("yodaobot")?a=94:-1!=b.indexOf("msnbot")||-1!=b.indexOf("bing")?a=95:-1!=b.indexOf("sogou")&&-1!=b.indexOf("ider")?a=96:(-1!=b.indexOf("bot")||-1!=b.indexOf("spider")||-1!=b.indexOf("sprider")||-1!=b.indexOf("crawler")||-1!=b.indexOf("slurp"))&&(a=90),a},getOs:function(){var a=0,b=navigator.userAgent.toLowerCase();return-1!=b.indexOf("win")?a=b.indexOf("windows ce")>-1?23:b.indexOf("windows nt 5.0")>-1||b.indexOf("windows 2000")>-1?4:b.indexOf("windows nt 5.1")>-1||b.indexOf("windows xp")>-1?2:b.indexOf("windows nt 5.2")>-1||b.indexOf("windows 2003")>-1?3:b.indexOf("windows nt 6.0")>-1||b.indexOf("windows vista")>-1?1:b.indexOf("windows nt 6.1")>-1||b.indexOf("windows 2008")>-1||b.indexOf("windows 7")>-1?21:b.indexOf("windows nt 6.2")>-1||b.indexOf("windows nt 6.3")>-1||b.indexOf("windows 8")>-1?22:b.indexOf("windows nt 7.0")>-1||b.indexOf("windows nt 6.4")>-1||b.indexOf("windows 9")>-1||b.indexOf("threshold")>-1?33:b.indexOf("windows nt 10.")>-1?34:b.indexOf("windows phone")>-1?32:8:-1!=b.indexOf("mac")?a=13:-1!=b.indexOf("cros")||-1!=b.indexOf("chromeos")?a=24:-1!=b.indexOf("android")?a=-1!=b.indexOf("xiaomi")||-1!=b.indexOf("miui")?28:-1!=b.indexOf("huawei")?29:-1!=b.indexOf("smartisan")?30:-1!=b.indexOf("oppo")?31:25:-1!=b.indexOf("bb10")?a=35:-1!=b.indexOf("series60")?a=26:-1!=b.indexOf("symbian")||-1!=b.indexOf("series")?a=27:-1!=b.indexOf("unix")||-1!=b.indexOf("sunos")||-1!=b.indexOf("bsd")||-1!=b.indexOf("x11")?a=11:(-1!=b.indexOf("linux")||-1!=b.indexOf("redhat")||-1!=b.indexOf("ubuntu"))&&(a=12),a},getAti:function(){var a=new Date,b=a.getFullYear(),c=a.getMonth()+1,d=a.getDate(),e=a.getHours(),f=a.getMinutes(),g=a.getSeconds();return[b,c,d,e,f,g].join("")},report:function(){var _this=this;!function(){function hiidov3(){function getSp(a){return a=1024.768==a?1:800.6==a?2:1280.1024==a?3:1440.9==a?4:1152.864==a?5:1280.8==a?6:1280.768==a?7:1600.12==a?8:1680.105==a?10:1600.1024==a?11:1920.12==a?12:1280.96==a?13:1280.72==a?14:1360.768==a?15:960.6==a?16:1400.105==a?17:1600.9==a?18:640.48==a?19:1152.72==a?20:1088.612==a?21:1920.108==a?22:1920.144==a?23:2048.1152==a?24:2048.1536==a?25:2560.16==a?26:2560.2048==a?27:800.48==a?28:640.35==a?29:320.24==a?30:1366.768==a?31:480.32==a?32:1080.1024==a?33:960.64==a?34:1136.64==a?35:2560.144==a?36:2048.108==a?37:3200.2==a?38:3200.2048==a?39:3200.24==a?40:2880.18==a?41:3840.216==a?42:3840.24==a?43:4096.216==a?44:4096.3112==a?45:3656.2664==a?46:720.348==a?47:720.35==a?48:720.36==a?49:5120.4096==a?50:6400.4096==a?51:6400.48==a?52:7680.48==a?53:7680.432==a?54:720.576==a?55:720.48==a?56:720.486==a?57:648.486==a?58:0}function UL(a){var b=/(\w+):\/\/([\w.-]+)(?::\d+)?\/(\S*)/,c=a.match(b);if(null!=c){var d=(c[0],c[1],c[2]),e=c[3];return"localhost"!=d?{host:d,path:e}:!1}return!1}function HQ(a,b){if(-1!=a.indexOf("weibo")||-1!=a.indexOf("qq")||-1!=a.indexOf("163")||-1!=a.indexOf("sohu"))var c,d=new RegExp("(^|)"+b+"[/|=]([^&]*)(&?|$)","gi").exec(a);else var c,d=new RegExp("(^|)"+b+"=([^&]*)(&|$)","gi").exec(a);return(c=d)?c[2]:"0"}function getDomain(a){function b(a,b){this.n=a,this.k=b}var c="",d="",e="",f="";if(a)for(var g=new Array(new b("duowan.com",""),new b("yy.com","@yy"),new b("yy.tv","@yytv"),new b("kuaikuai.cn","@kuaikuai"),new b("hiido.com","@hiido"),new b("hiido.cn","@hiidocn"),new b("hiido.net","@hiidonet"),new b("bengou.com","@bengou"),new b("5253.com","@5253"),new b("duowan.cn","@duowancn"),new b("zzvv.com","@zzvv"),new b("99d.com","@99d"),new b("sc2.com.cn","@sc2"),new b("100.com","@100"),new b("5153.com","@5153"),new b("huya.com","@huya"),new b("1931.com","@1931"),new b("fengkaobiguo.com","@fengkaobiguo"),new b("up24.com","@up24"),new b("edu24ol.com","@edu24ol"),new b("ruixueys.com","@ruixueys"),new b("hqgwy.cn","@hqgwy"),new b("erdmusic.com","@erdmusic"),new b("zhiniu8.com","@zhiniu8"),new b("100yy.com","@100yy")),h=a.split("."),i=0;i<g.length;i++){var j=g[i].n.split(".");if(a.indexOf(g[i].n)>-1){if(2==j.length&&3==h.length&&j[0]!=h[1])continue;c=g[i].n,d=g[i].k,e=g[i].n.split(".").length,f=2==h.length?"www":h[h.length-e-1];break}}return{dmn:c,dmk:d,dml:e,dsn:f}}function getCookie(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return null;if(-1==b)return null;var d=document.cookie.indexOf(";",c);return-1==d&&(d=document.cookie.length),unescape(document.cookie.substring(c,d))}function setCookie(a,b,c,d,e,f){var g=new Date;g.setTime(g.getTime()),c&&(c=1e3*c*60*60*24);var h=new Date(g.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+h.toGMTString():"")+(d?";path="+d:"")+(e?";domain="+e:"")+(f?";secure":"")}function isIP(a){if(!a)return!1;var b=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g;return b.test(a)?RegExp.$1<256&&RegExp.$2<256&&RegExp.$3<256&&RegExp.$4<256?!0:void 0:!1}function RP(a){return a=String(a),a=a.replace(/ /g,""),a=a.replace(/&nbsp;/g,""),a=a.replace(/&/g,"|||"),a=a.replace(/r/g,"")}function GF(){var f="0",n=navigator;try{if(n.plugins&&n.plugins.length){for(var ii=0;ii<n.plugins.length;ii++)if(-1!=n.plugins[ii].name.indexOf("Shockwave Flash")){f=n.plugins[ii].description.split("Shockwave Flash ")[1];break}}else if(window.ActiveXObject)for(var ii=17;ii>=5;ii--)try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){f=ii+".0";break}}catch(e){}}catch(e){}return RP(f)}function SL(){var a=0,b=navigator;try{if(b.plugins&&b.plugins.length){for(var c=0;c<b.plugins.length;c++)if(-1!=b.plugins[c].name.indexOf("Silverlight")){a=b.plugins[c].description.substring(0,3);break}}else if(window.ActiveXObject)for(var d=new ActiveXObject("AgControl.AgControl"),c=100;c>0;c--){var e=parseInt(c/10)+"."+parseInt(c%10);try{if(d.IsVersionSupported(e)){a=e;break}}catch(f){}}}catch(f){}return RP(a)}function getOs(){var a=0;return-1!=au.indexOf("win")?a=au.indexOf("windows ce")>-1?23:au.indexOf("windows nt 5.0")>-1||au.indexOf("windows 2000")>-1?4:au.indexOf("windows nt 5.1")>-1||au.indexOf("windows xp")>-1?2:au.indexOf("windows nt 5.2")>-1||au.indexOf("windows 2003")>-1?3:au.indexOf("windows nt 6.0")>-1||au.indexOf("windows vista")>-1?1:au.indexOf("windows nt 6.1")>-1||au.indexOf("windows 2008")>-1||au.indexOf("windows 7")>-1?21:au.indexOf("windows nt 6.2")>-1||au.indexOf("windows nt 6.3")>-1||au.indexOf("windows 8")>-1?22:au.indexOf("windows nt 7.0")>-1||au.indexOf("windows nt 6.4")>-1||au.indexOf("windows 9")>-1||au.indexOf("threshold")>-1?33:au.indexOf("windows nt 10.")>-1?34:au.indexOf("windows phone")>-1?32:8:-1!=au.indexOf("mac")?a=13:-1!=au.indexOf("cros")||-1!=au.indexOf("chromeos")?a=24:-1!=au.indexOf("android")?a=-1!=au.indexOf("xiaomi")||-1!=au.indexOf("miui")?28:-1!=au.indexOf("huawei")?29:-1!=au.indexOf("smartisan")?30:-1!=au.indexOf("oppo")?31:25:-1!=au.indexOf("bb10")?a=35:-1!=au.indexOf("series60")?a=26:-1!=au.indexOf("symbian")||-1!=au.indexOf("series")?a=27:-1!=au.indexOf("unix")||-1!=au.indexOf("sunos")||-1!=au.indexOf("bsd")||-1!=au.indexOf("x11")?a=11:(-1!=au.indexOf("linux")||-1!=au.indexOf("redhat")||-1!=au.indexOf("ubuntu"))&&(a=12),a}function getBs(){var a=0;return a=-1!=au.indexOf("maxthon")?31:-1!=au.indexOf("tencent")||-1!=au.indexOf("qqbrowser")?32:-1!=au.indexOf("theworld")?33:/se (\d+).x metasr/.test(au)?34:-1!=au.indexOf("360se")?35:-1!=au.indexOf("115")?36:-1!=au.indexOf("155")?37:/trident.*rv:11\./i.test(au)?11:/edge/i.test(au)?46:-1!=au.indexOf("firefox")?20:-1!=au.indexOf("opera")||/opr\//.test(au)?21:-1!=au.indexOf("lbbrowser")||-1!=au.indexOf("liebao")?44:-1!=au.indexOf("ubrowser")?47:-1!=au.indexOf("chrome")?22:-1!=au.indexOf("ucweb")||-1!=au.indexOf("ucbrowser")?25:-1!=au.indexOf("adobeair")?24:-1!=au.indexOf("netscape")?38:-1!=au.indexOf("lunascape")?39:-1!=au.indexOf("bidubrowser")?40:-1!=au.indexOf("360ee")?41:-1!=au.indexOf("myie")?42:-1!=au.indexOf("taobrowser")?43:-1!=au.indexOf("2345explorer")?45:/safari/.test(au)&&-1!=au.indexOf("mac")?23:/msie/.test(au)?au.indexOf("msie 6")>-1?6:au.indexOf("msie 7")>-1?7:au.indexOf("msie 8")>-1?8:au.indexOf("msie 9")>-1?9:au.indexOf("msie 10")>-1?10:5:0}function getMobile(){var a=0;return-1!=au.indexOf("iphone")?a=21:-1!=au.indexOf("ipad")?a=22:-1!=au.indexOf("ipod")?a=23:-1!=au.indexOf("blackberry")?a=31:-1!=au.indexOf("nokia")?a=32:-1!=au.indexOf("sonyericsson")?a=33:-1!=au.indexOf("mot")?a=34:-1!=au.indexOf("sec")||-1!=au.indexOf("samsung")?a=35:-1!=au.indexOf("-sgh")?a=35:-1!=au.indexOf("mi-")||-1!=au.indexOf("xiaomi")?a=47:-1!=au.indexOf("zte")?a=48:-1!=au.indexOf("huawei ")?a=50:-1!=au.indexOf("coolpad ")?a=51:-1!=au.indexOf("dopod")||-1!=au.indexOf("htc")?a=36:-1!=au.indexOf("philips")?a=37:-1!=au.indexOf("lenovo")?a=38:-1!=au.indexOf("nec")?a=39:-1!=au.indexOf("sharp")?a=40:-1!=au.indexOf("palm")?a=41:-1!=au.indexOf("panasonic")?a=42:-1!=au.indexOf("meizu")||-1!=au.indexOf("mx4")?a=43:-1!=au.indexOf("alcatel")?a=44:-1!=au.indexOf("benq")?a=45:-1!=au.indexOf("lg")?a=46:-1!=au.indexOf("sie")&&-1==au.indexOf("msie")?a=52:-1!=au.indexOf("amoi")?a=97:-1!=au.indexOf("bird")?a=98:-1!=au.indexOf("tcl")?a=99:-1!=au.indexOf("nexus")?a=100:-1!=au.indexOf("smartisan")?a=101:-1!=au.indexOf("vivo")?a=102:-1!=au.indexOf("daxian")||-1!=au.indexOf("dx")?a=103:-1!=au.indexOf("telson")?a=104:-1!=au.indexOf("haier")?a=105:-1!=au.indexOf("cect")?a=106:-1!=au.indexOf("dbtel")?a=107:-1!=au.indexOf("oppo")?a=108:-1!=au.indexOf("konka")?a=109:-1!=au.indexOf("changhong")?a=110:-1!=au.indexOf("malata")?a=120:-1!=au.indexOf("ktouch")||-1!=au.indexOf("tianyu")?a=111:-1!=au.indexOf("pantech")?a=112:-1!=au.indexOf("eastcom")?a=113:-1!=au.indexOf("doov")?a=114:-1!=au.indexOf("nubia")?a=115:-1!=au.indexOf("oneplus")?a=116:-1!=au.indexOf("gionee")?a=117:-1!=au.indexOf("asus")?a=118:-1!=au.indexOf("koobee")?a=119:-1!=au.indexOf("curl")||-1!=au.indexOf("crul")||-1!=au.indexOf("wget")?a=80:-1!=au.indexOf("googlebot")?a=91:-1!=au.indexOf("baidu")&&-1!=au.indexOf("ider")?a=92:-1!=au.indexOf("soso")&&-1!=au.indexOf("ider")?a=93:-1!=au.indexOf("youdaobot")||-1!=au.indexOf("yodaobot")?a=94:-1!=au.indexOf("msnbot")||-1!=au.indexOf("bing")?a=95:-1!=au.indexOf("sogou")&&-1!=au.indexOf("ider")?a=96:(-1!=au.indexOf("bot")||-1!=au.indexOf("spider")||-1!=au.indexOf("sprider")||-1!=au.indexOf("crawler")||-1!=au.indexOf("slurp"))&&(a=90),a}function searchEngine(){function a(a,b){this.s=a,this.k=b}var b=0,c=0;if(fd)for(var d=new Array(new a("baidu.com","wd|word|w"),new a("so.163.com","q"),new a("yahoo.com","p|q"),new a("etao.com","q"),new a("soso.com","w"),new a("google.","q"),new a("goso.cn","q"),new a("118114.cn","kw"),new a("sogou.com","query"),new a("vnet.cn","kw"),new a("iask.com","k"),new a("zhongsou.com","w|word"),new a("tom.com","w|word"),new a("youdao.com","q"),new a("alexa.com","q"),new a("bing.com","q"),new a("search.com","q"),new a("haosou.com","q"),new a("sm.cn","q"),new a("chinaso.com","q"),new a("soku.com","keyword"),new a("weibo.com","weibo|wb|user|pic|apps"),new a("qq.com","k"),new a("163.com","k"),new a("sohu.com","key")),e=d.length,f=0;e>f;f++){var g=f,h=d[f].s,i=!1;if(h.indexOf(",")>-1)for(var j=h.split(","),k=0;k<j.length;k++)fd.indexOf(j[k])>-1&&(i=!0);else fd.indexOf(h)>-1&&(i=!0);if(i){for(var l=d[f].k.split("|"),f=0;f<l.length;f++)if(0!=HQ(fs,l[f])){c=g+1,b=HQ(fs,l[f]);break}break}}return{skw:b,skn:c}}function getSNS(){return-1!=au.indexOf("micromessenger")?"weixin":-1!=au.indexOf("yixin")?"yixin":"null"}function _isArray(a){return"[object Array]"===Object.prototype.toString.call(a)}function in_array(a,b){for(var c in b)if(b[c]==a)return!0;return!1}function sync2Wui(a){wui=a,wui&&setCookie("hiido_wui",wui,1,"/","."+domainKey.dmn),hiidoT(wids)}function hiidoT(a){if(a.indexOf("undefined")>-1||""==wids)return!1;var b="http://ylog.hiido.com/j.gif?act=zhwebevent&bve="+_this.getBs()+"&os="+_this.getOs()+"&fla=Y&pro=testmid&actoin=/event&extra=session_id=1&domain="+encodeURIComponent(window.location.host)+"&sdk_ver=ya-testMid&dty=pas&eid=startup&mid="+ui+"&ati="+_this.getAti()+"&time=0&key=324338e05dd29f9a22e91c1c955df0cc&hiido_mid=&lla=zh-CN&sco=24&sre=1280.800&jav=0&coo=1&rso=&fve=20.00&rso_desc=&cha=web",c=new Image(1,1);c.src=b,c.onload=function(){}}var fs=document.referrer,mRfUL=UL(fs),fd=mRfUL?mRfUL.host:0,lh=mRfUL?escape(mRfUL.path):0;"undefined"==lh&&(lh=0);var ls=String(window.location.href),mLHUL=UL(ls),lsd=mLHUL?mLHUL.host:".";if("https:"==window.location.protocol&&(_hiidoHttpProtocol="https"),"."==lsd||isIP(lsd))return!1;var domainKey=getDomain(lsd);if(!domainKey.dmn)return!1;var nw=1;fs?lsd==fd&&(nw=2,lh=0):nw=0;var ap=navigator.appName,av=navigator.appVersion,au=navigator.userAgent.toLowerCase(),fl=parseInt(GF()),sl=parseInt(SL()),ss=parseInt(getOs()),bs=parseInt(getBs()),mb=parseInt(getMobile());if(Math.ceil(window.screen.width)>Math.ceil(window.screen.height))var sp=getSp(Math.ceil(window.screen.width)+"."+Math.ceil(window.screen.height));else var sp=getSp(Math.ceil(window.screen.height)+"."+Math.ceil(window.screen.width));var se=searchEngine(),wd=se.skw,sn=se.skn,sns=getSNS(),hiidoid=HQ(ls,"hiido"),userDate=new Date,wids="",syncUi=!1,syncWids=["_2b03681","_5bb57a0","_9bf4475","_0911446","_d59cdac","_99e3e3b"];try{if(_hiido_wid&&_isArray(_hiido_wid))for(var hid=0;hid<_hiido_wid.length;hid++)wids+=_hiido_wid[hid]+domainKey.dmk+"|",!syncUi&&in_array(_hiido_wid[hid],syncWids)&&(syncUi=!0)}catch(e){}var wui=getCookie("hiido_wui"),hiido_jsonpConfig={url:"http://uvstat.v.duowan.com/stat.php",callback:sync2Wui,data:{}},ui=getCookie("ya_uid");ui||(ui=Math.random(),setCookie("ya_uid",ui,700,"/","."+domainKey.dmn)),("undefined"==typeof _hiido_no||0!=_hiido_no)&&domainKey.dsn&&(wids+=domainKey.dsn+domainKey.dmk+"|");try{if(syncUi&&!wui&&"undefined"!=typeof jsonp&&jsonp instanceof Function)return jsonp(hiido_jsonpConfig),!1;hiidoT(wids)}catch(e){}}var _hiidoHttpProtocol="http",_hiidoHttpHost="ylog.hiido.com";try{hiidov3()}catch(e){}}()}};return hiidoLogic}(),yaconfig=function(a,b,c,d,e,f,g,h){var i={sdk_ver:"js-ya.huya-1.0",ap:navigator.appName,av:navigator.appVersion,ua:navigator.userAgent.toLowerCase(),cen:navigator.cookieEnabled?1:0,jen:navigator.javaEnabled()?1:0,lla:navigator.language?navigator.language:navigator.browserLanguage,sre:screen.width+"."+screen.height,sco:parseInt(screen.colorDepth)||parseInt(screen.pixelDepth),__yaParamPrex:"__ya",__yaOnerrorRetry:!1,__debug:!1,_yaDataCollectUrl:"https:"==document.location.protocol?"https://ylog.hiido.com/j.gif":"http://ylog.hiido.com/j.gif"},j={_yaHuyaTestCookieKey:"__yamid_tt1",_yaMidCookieKey:"__yamid_new",_yaHuyaMidCookieKey:"__huyamid",_yaSessionMid:"__yasmid",_yaMidCookieTimeout:63072e6,setConfig:function(a){for(var b in a)"function"!=typeof a[b]&&(i[b]=a[b])},getConfig:function(a){return i[a]},initConfig:function(b){this.referrer=document.referrer,this.refrerrerParam=a.getQueryParam(this.referrer),this.yaLocation=window.location,this.locationParam=a.getQueryParam(this.yaLocation),this.setYaConfigParam(b)},getYaParam:function(){return a.getYaParamByPrefix(this.locationParam,i.__yaParamPrex)},getBaseClientInfo:function(){if(this.baseParam)return this.baseParam;var c=new b;c.add("mid",this.getYamid(this.locationParam.get("mid"))),c.add("bve",e.getBrowerVersion()),c.add("lla",i.lla),c.add("os",e.getOS()),c.add("sco",i.sco),c.add("sre",i.sre),c.add("fve",e.getFlashVersion()),c.add("jav",i.jen),c.add("coo",i.cen),c.add("domain",a.getUrlDomain()),c.add("fla","Y"),c.add("sdk_ver",i.sdk_ver);var d=this.getYaParam();return d.size>0&&c.addAll(d),this.yaConfigParam.size>0&&c.addAll(this.yaConfigParam),this.baseParam=c,this.baseParam},setYaConfigParam:function(a){var c=new b;if(a)for(var d in a)c.add(d,a[d]);c.containsKey("error_retry")&&(i.__yaOnerrorRetry=c.get("error_retry")),this.yaConfigParam=c},setYaMidCookie:function(a){a&&c.setCookie(this._yaMidCookieKey,a,this._yaMidCookieTimeout)},setTestYaMidCookie:function(a,b){b&&h.setCookieWrap(a,b)},setSessionMid:function(a){a&&c.setCookie(this._yaSessionMid,a,-1)},getSessionMid:function(){var a=c.getCookie_mid(this._yaSessionMid);return a||""},storeSmid:function(a,b){var c=a;a&&a==b&&(c=b),a&&!b&&(this.setSessionMid(a),c=a),b||a||(a=Math.random(),this.setSessionMid(a),this.setTestYaMidCookie(this._yaHuyaTestCookieKey,a),c=a),b&&!a&&(this.setTestYaMidCookie(this._yaHuyaTestCookieKey,b),c=b),a&&b&&a!=b&&(this.setTestYaMidCookie(this._yaHuyaTestCookieKey,b),c=b),window.HuyaYaTestSmid=c},getYamid:function(a){var b=c.getCookie_mid(this._yaMidCookieKey),e=c.getCookie_mid(this._yaHuyaTestCookieKey),f=this.getSessionMid();return window.hiidoMid=h.getCookie("hiido_ui")||"",this.storeSmid(e,f),b?b:(b=a?a:d.generate32(),this.setYaMidCookie(b),b)},reportHuyaTest:function(a,b,c,d){this.sendToPas("cookieErr","",a,b,c,d)},sendToPas:function(a,b,c,d,e,f){var g={act:"/event",pro:"fuckhijack",dty:"pas",__yafm:"i",eid:a,eid_desc:b||"",setmid:c,getmid:d,huyamid:e,cookieLen:f},h=this.generalPasUrl(g);this.doGetSend(h)},generalPasUrl:function(a){var b="http://stat.game.yy.com/data.do?";for(var c in a)b+=c+"="+encodeURIComponent(a[c])+"&";return b+=(new Date).getTime()+parseInt(1e3*Math.random())},doGetSend:function(a){var b=new Image(1,1);b.onload=function(){b=null},b.onerror=function(){b=null},b.src=a}};return j}(yautil,yaparameter,yacookie,yauuid,yasysinfo,yasessionData,yadataStorage,yahiidologic),yaanalytics=function(a){var b=function(){this.init.apply(this,arguments)};return b.prototype={constructor:b,init:function(b,c,d,e){a.initConfig(e),this.reportInstance=new b(c,d)},setParam:function(a,b){this.reportInstance.setParam.apply(this.reportInstance,arguments)},setExtParam:function(a){this.reportInstance.setExtParam.apply(this.reportInstance,arguments)},reportProductStartUp:function(a,b){this.reportInstance.reportStartUp.apply(this.reportInstance,arguments)},startProductHeartbeat:function(a,b){this.reportInstance.startHeartbeat.apply(this.reportInstance,arguments)},reportProductEndUp:function(a,b){this.reportInstance.reportEndUp.apply(this.reportInstance,arguments)},reportProductEvent:function(a,b){this.reportInstance.reportEvent.apply(this.reportInstance,arguments)},reportOneHeartbeat:function(a,b){this.reportInstance.oneHeartBeat.apply(this.reportInstance,arguments)}},b}(yaconfig),yatimer=function(){var a=function(a){this.initialize(a)};return a.defaultPeriodTime=3e5,a.prototype={constructor:a,intervalCounter:0,initialize:function(a){this.periodTime=3e5,this.startTime=new Date;var b=/^[1-9]+[0-9]*$/;a&&b.test(a)&&(this.periodTime=a)},doInterval:function(a){var b=this;if(!a)throw new Error("pleace pass callback");var c=function(){b.sh=window.setTimeout(function(){a&&a.call(b),c()},b.periodTime)};c()},clearRefresh:function(){clearTimeout(this.sh)}},a}(),yadateFormat=function(){var a={dateFormat:function(a,b,c){var d=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,e=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g,g=function(a,b){for(a=String(a),b=b||2;a.length<b;)a="0"+a;return a};if(1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||/\d/.test(a)||(b=a,a=void 0),a=a?new Date(a):new Date,isNaN(a))throw SyntaxError("invalid date");b=String(this.masks[b]||b||this.masks["default"]),"UTC:"==b.slice(0,4)&&(b=b.slice(4),
c=!0);var h=c?"getUTC":"get",i=a[h+"Date"](),j=a[h+"Day"](),k=a[h+"Month"](),l=a[h+"FullYear"](),m=a[h+"Hours"](),n=a[h+"Minutes"](),o=a[h+"Seconds"](),p=a[h+"Milliseconds"](),q=c?0:a.getTimezoneOffset(),r={d:i,dd:g(i),ddd:this.i18n.dayNames[j],dddd:this.i18n.dayNames[j+7],m:k+1,mm:g(k+1),mmm:this.i18n.monthNames[k],mmmm:this.i18n.monthNames[k+12],yy:String(l).slice(2),yyyy:l,h:m%12||12,hh:g(m%12||12),H:m,HH:g(m),M:n,MM:g(n),s:o,ss:g(o),l:g(p,3),L:g(p>99?Math.round(p/10):p),t:12>m?"a":"p",tt:12>m?"am":"pm",T:12>m?"A":"P",TT:12>m?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(q>0?"-":"+")+g(100*Math.floor(Math.abs(q)/60)+Math.abs(q)%60,4),S:["th","st","nd","rd"][i%10>3?0:(i%100-i%10!=10)*i%10]};return b.replace(d,function(a){return a in r?r[a]:a.slice(1,a.length-1)})},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},i18n:{dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},parse:function(a){return"string"==typeof a&&a.isNotBlank()?new Date(Date.parse(a.replace(/-/g,"/"))):null},format:function(a,b,c){return this.dateFormat(a,b,c)},yaTimestamp:function(a){return this.format(a,"yyyymmddHHMMss")}};return a}(),yareportSender=function(a,b,c,d){var e=function(){this.init()};e.prototype={constructor:e,reportTimerPeriod:1e3,reportSDataTimerPeriod:144e5,init:function(){},startReport:function(){var b=this;this.reportTimer||(this.reportTimer=new a(this.reportTimerPeriod));var d=0;this.reportTimer.doInterval(function(){try{var a=_queue.shift(null,this.sendData);d++,a&&b.sendData(a),c.consoleLog("reporting reportCount="+d+" queryString="+a)}catch(e){c.consoleLog("reporting reportCount="+d+" ,send with exception="+e)}})},sendData:function(a,c,d){return this.doSendData(b.getConfig("_yaDataCollectUrl")+"?",a,c,d)},doSendData:function(a,b,d,e){var f=b.get("act");f&&b.remove("act"),b.get("furl")||b.add("furl",document.referrer),b.get("curl")||b.add("curl",encodeURIComponent(window.location.href));var g="act="+f+"&"+c.encode(b.toString())+"&__yafm=i&ati=",h=a+g;this.newImage(h,d,e||this.errorCallback,g)},newImage:function(a,b,c,d){var e=new Image(1,1);e.onload=function(){e.onload=null,e=null,b&&b(d)},e.onerror=function(){e.onerror=null;"url="+encodeURIComponent(a)+"|lost|web"},e.src=a},callback:function(a){},errorCallback:function(a){},queuePush:function(a,b){this.sendData(a)},queueShift:function(a){},reportSample:function(a){var b=(Math.random(),"http://countmq.sysop.duowan.com/?opt=put&name=u_huya_report&data="+a),c=new Image(1,1);c.onload=function(){c=null},c.onerror=function(){c=null},c.src=b}};var f=new e;return f}(yatimer,yaconfig,yautil,yadateFormat),yaClass=function(){var a=!1,b=function(){};return b.extend=function(c){function d(){a||(e&&(this._superprototype=e.prototype),this.init.apply(this,arguments))}var e=null;this!==b&&(e=this),e&&(a=!0,d.prototype=new e,d.prototype.constructor=d,a=!1),d.extend=arguments.callee;for(var f in c)c.hasOwnProperty(f)&&(e&&"function"==typeof c[f]&&"function"==typeof d.prototype[f]&&/\b_super\b/.test(c[f])?d.prototype[f]=function(a,b){return function(){return this._super=e.prototype[a],b.apply(this,arguments)}}(f,c[f]):d.prototype[f]=c[f]);return d},b}(),yabaseReport=function(a,b,c,d,e,f,g){var h=g.extend({init:function(b,c,d){if(this.param=new a,c&&this.param.add("pro",c),d&&this.param.add("pas",d),!b)throw new Error("please input the dty");this.param.add("dty",b)},getSidKey:function(){return this.param.get("pro")+"-"+this.param.get("pas")},setExtParam:function(a){if(a){var d=b.getYaParamByPrefix(b.getQueryParam(a),c.getConfig("__yaParamPrex"),!0);this.param.addAll(d)}},getPasParam:function(c,d){var e=new a;if(e.addAll(this.param),c)for(var f in c)e.add(f,c[f]);return e.addAll(b.getQueryParam(d)),e},reportSessionData:function(b,e){var g=new a;g.add("act","/session_data");var h=d.getSessionIdAndGenIfNotExist(this.getSidKey(),!0);g.add("session_id",h),g.addAll(c.getBaseClientInfo()),g.addAll(this.getPasParam(b,e)),d.add(h,g.toString(),!0),f.queuePush(g.toString())},reportEvent:function(a,b){return this.reportEventBase(this.getPasParam(a,b))},reportEventBase:function(b){var c=new a;c.add("act","/event"),c.addAll(this.getTransmitParam()),c.addAll(b),f.queuePush(c.toString())},getTransmitParam:function(){var c=d.getSessionIdAndGenIfNotExist(this.getSidKey()),e=d.get(c),f=b.getQueryParam(e),g=new a,h={pro:"",session_id:""};for(var i in f.data)i in h&&g.add(i,f.get(i));return g},reportStartUp:function(a,b){this.reportSessionData(a,b);var c=this.getPasParam(a,b);c.add("eid","startup"),this.reportEventBase(c)},startHeartbeat:function(a,c){var d=this.getPasParam(a,c);d.add("eid","heartbeat");var f=void 0;a&&a.hbPeriodTime&&(f=a.hbPeriodTime);var g=new e(f);this.heartbeatTimer=g;var h=this,i=0;g.doInterval(function(){try{d.add("dur",(i+1)*g.periodTime/1e3),h.reportEventBase(d),i++,g.intervalCouter=i,b.consoleLog("pas heartbeating heartbeatCount="+i+", _param="+d)}catch(a){b.consoleLog("pas heartbeating heartbeatCount="+i+" ,send with exception="+a)}})},reportEndUp:function(a,c){var e=this.getPasParam(a,c);e.add("eid","endup");var g=this.heartbeatTimer;if(g){e.add("dur",parseInt((new Date).getTime()-g.startTime.getTime())),this.reportEventBase(e),b.consoleLog("endup endUp.intervalCouter="+g.intervalCouter+", _param:"+e);var h=d.getSessionIdAndGenIfNotExist(this.getSidKey()),i=d.get(h);f.queuePush(i.toString())}}});return h}(yaparameter,yautil,yaconfig,yasessionData,yatimer,yareportSender,yaClass),yaTimer=function(){var a=function(a){this.initialize(a)};return a.defaultPeriodTime=3e5,a.prototype={constructor:a,intervalCounter:0,initialize:function(a){this.periodTime=3e5,this.startTime=new Date;var b=/^[1-9]+[0-9]*$/;a&&b.test(a)&&(this.periodTime=a)},doInterval:function(a){var b=this;if(!a)throw new Error("pleace pass callback");var c=function(){b.sh=window.setTimeout(function(){a&&a.call(b),c()},b.periodTime)};c()},clearRefresh:function(){clearTimeout(this.sh)}},a}(),yamd5=function(){function a(a,b){function c(a){return d(a)}function d(a){return""==a?a:f(e(g(a)))}function e(a){return i(j(h(a),8*a.length))}function f(a){try{}catch(b){s=0}for(var c,d=s?"0123456789ABCDEF":"0123456789abcdef",e="",f=0;f<a.length;f++)c=a.charCodeAt(f),e+=d.charAt(c>>>4&15)+d.charAt(15&c);return e}function g(a){for(var b,c,d="",e=-1;++e<a.length;)b=a.charCodeAt(e),c=e+1<a.length?a.charCodeAt(e+1):0,b>=55296&&56319>=b&&c>=56320&&57343>=c&&(b=65536+((1023&b)<<10)+(1023&c),e++),127>=b?d+=String.fromCharCode(b):2047>=b?d+=String.fromCharCode(192|b>>>6&31,128|63&b):65535>=b?d+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|63&b):2097151>=b&&(d+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|63&b));return d}function h(a){for(var b=Array(a.length>>2),c=0;c<b.length;c++)b[c]=0;for(var c=0;c<8*a.length;c+=8)b[c>>5]|=(255&a.charCodeAt(c/8))<<c%32;return b}function i(a){for(var b="",c=0;c<32*a.length;c+=8)b+=String.fromCharCode(a[c>>5]>>>c%32&255);return b}function j(a,b){a[b>>5]|=128<<b%32,a[(b+64>>>9<<4)+14]=b;for(var c=1732584193,d=-271733879,e=-1732584194,f=271733878,g=0;g<a.length;g+=16){var h=c,i=d,j=e,k=f;c=l(c,d,e,f,a[g+0],7,-680876936),f=l(f,c,d,e,a[g+1],12,-389564586),e=l(e,f,c,d,a[g+2],17,606105819),d=l(d,e,f,c,a[g+3],22,-1044525330),c=l(c,d,e,f,a[g+4],7,-176418897),f=l(f,c,d,e,a[g+5],12,1200080426),e=l(e,f,c,d,a[g+6],17,-1473231341),d=l(d,e,f,c,a[g+7],22,-45705983),c=l(c,d,e,f,a[g+8],7,1770035416),f=l(f,c,d,e,a[g+9],12,-1958414417),e=l(e,f,c,d,a[g+10],17,-42063),d=l(d,e,f,c,a[g+11],22,-1990404162),c=l(c,d,e,f,a[g+12],7,1804603682),f=l(f,c,d,e,a[g+13],12,-40341101),e=l(e,f,c,d,a[g+14],17,-1502002290),d=l(d,e,f,c,a[g+15],22,1236535329),c=m(c,d,e,f,a[g+1],5,-165796510),f=m(f,c,d,e,a[g+6],9,-1069501632),e=m(e,f,c,d,a[g+11],14,643717713),d=m(d,e,f,c,a[g+0],20,-373897302),c=m(c,d,e,f,a[g+5],5,-701558691),f=m(f,c,d,e,a[g+10],9,38016083),e=m(e,f,c,d,a[g+15],14,-660478335),d=m(d,e,f,c,a[g+4],20,-405537848),c=m(c,d,e,f,a[g+9],5,568446438),f=m(f,c,d,e,a[g+14],9,-1019803690),e=m(e,f,c,d,a[g+3],14,-187363961),d=m(d,e,f,c,a[g+8],20,1163531501),c=m(c,d,e,f,a[g+13],5,-1444681467),f=m(f,c,d,e,a[g+2],9,-51403784),e=m(e,f,c,d,a[g+7],14,1735328473),d=m(d,e,f,c,a[g+12],20,-1926607734),c=n(c,d,e,f,a[g+5],4,-378558),f=n(f,c,d,e,a[g+8],11,-2022574463),e=n(e,f,c,d,a[g+11],16,1839030562),d=n(d,e,f,c,a[g+14],23,-35309556),c=n(c,d,e,f,a[g+1],4,-1530992060),f=n(f,c,d,e,a[g+4],11,1272893353),e=n(e,f,c,d,a[g+7],16,-155497632),d=n(d,e,f,c,a[g+10],23,-1094730640),c=n(c,d,e,f,a[g+13],4,681279174),f=n(f,c,d,e,a[g+0],11,-358537222),e=n(e,f,c,d,a[g+3],16,-722521979),d=n(d,e,f,c,a[g+6],23,76029189),c=n(c,d,e,f,a[g+9],4,-640364487),f=n(f,c,d,e,a[g+12],11,-421815835),e=n(e,f,c,d,a[g+15],16,530742520),d=n(d,e,f,c,a[g+2],23,-995338651),c=o(c,d,e,f,a[g+0],6,-198630844),f=o(f,c,d,e,a[g+7],10,1126891415),e=o(e,f,c,d,a[g+14],15,-1416354905),d=o(d,e,f,c,a[g+5],21,-57434055),c=o(c,d,e,f,a[g+12],6,1700485571),f=o(f,c,d,e,a[g+3],10,-1894986606),e=o(e,f,c,d,a[g+10],15,-1051523),d=o(d,e,f,c,a[g+1],21,-2054922799),c=o(c,d,e,f,a[g+8],6,1873313359),f=o(f,c,d,e,a[g+15],10,-30611744),e=o(e,f,c,d,a[g+6],15,-1560198380),d=o(d,e,f,c,a[g+13],21,1309151649),c=o(c,d,e,f,a[g+4],6,-145523070),f=o(f,c,d,e,a[g+11],10,-1120210379),e=o(e,f,c,d,a[g+2],15,718787259),d=o(d,e,f,c,a[g+9],21,-343485551),c=p(c,h),d=p(d,i),e=p(e,j),f=p(f,k)}return Array(c,d,e,f)}function k(a,b,c,d,e,f){return p(q(p(p(b,a),p(d,f)),e),c)}function l(a,b,c,d,e,f,g){return k(b&c|~b&d,a,b,e,f,g)}function m(a,b,c,d,e,f,g){return k(b&d|c&~d,a,b,e,f,g)}function n(a,b,c,d,e,f,g){return k(b^c^d,a,b,e,f,g)}function o(a,b,c,d,e,f,g){return k(c^(b|~d),a,b,e,f,g)}function p(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function q(a,b){return a<<b|a>>>32-b}var r=(b||{})[a],s=0;return c.noConflict=function(){return b&&(b[a]=r),c},c}return a()}(),yahuyaReport=function(a,b,c,d,e,f,g,h,i,j){var k={ROOT:"ROOT",SUB:"SUB"},l={},m=a.extend({init:function(a,b){this.rootSidKey="__rootSid",this.sdkVer="js-ya.huya-1.0",this.heartbeatPeriodTime=6e4,this.initPageType(),this.dty="live";var c=Array.apply(this,arguments);c.unshift(this.dty),this._super.apply(this,c),this.initSessionData()},initPageType:function(){var a=(c.yaConfigParam.get("pageType")||"").toUpperCase();if(k.ROOT!==a&&k.SUB!==a)throw new Error("please input the pageType (ROOT / SUB)");this.pageType=a},reportStartUp:function(a,b){var c=this.getReportParam(a,b);c.add("eid","startup"),c.add("eid_desc","会话启动"),c.add("ua",encodeURIComponent(navigator.userAgent)),l.startup=c,this.reportBaseEvent(c),this.heartBeatDur=(new Date).getTime()},reportBaseEvent:function(a){a.add("act","/event"),a.add("session_id",this.getSid()),f.queuePush(a)},oneHeartBeat:function(a,b){var c=this.getReportParam(a,b);c.add("eid","heartbeat"),c.add("eid_desc","心跳"),c.add("dur",this.getDur()),this.reportBaseEvent(c)},startHeartbeat:function(a,c){var d=this,e=new b(this.heartbeatPeriodTime);e.doInterval(function(){var b=d.getReportParam(a,c);b.add("eid","heartbeat"),b.add("eid_desc","心跳"),b.add("dur",d.getDur()),d.reportBaseEvent(b)})},reportEndUp:function(a,b){var c=this.getReportParam(a,b);c.add("eid","endup"),c.add("eid_desc","会话结束"),c.add("dur",this.getDur()),this.reportBaseEvent(c)},getDur:function(){return this.heartBeatDur||(this.heartBeatDur=(new Date).getTime()),(new Date).getTime()-this.heartBeatDur},initSessionData:function(){this.clientInfo=c.getBaseClientInfo(),this.sessionData=new d,this.sessionData.addAll(this.clientInfo),this.sessionData.addAll(this.param),this.sessionData.add("yyuid",c.yaConfigParam.get("yyuid")||""),this.sessionData.add("sdk_ver",this.sdkVer);var a=this.validAlwaysNew();this.initSessionId(a)},validAlwaysNew:function(){var a=!1,b=h.getCookie("__yaoldyyuid"),d=h.getCookie("yyuid");if(null==b&&(b=""),null==d&&(d=""),b!==d&&(a=!0,h.setCookie("__yaoldyyuid",d||"")),this.pageType===k.SUB){var e=h.getCookie("__yaoldcid"),f=c.yaConfigParam.get("cid");c.yaConfigParam.get("ayyuid");e&&e!==f&&(f=config.yaConfigParam.get("cid")),h.setCookie("__yaoldcid",f||"")}return a},initSessionId:function(a){this.sidKey=this.pageType===k.ROOT?this.rootSidKey:this.generalSubSidKey();var b="";b=a?e.generateSessionId(this.sidKey,!0):e.getSessionIdAndGenIfNotExist(this.sidKey,!1,!0),this.sessionData.add("session_id",b)},reportEvent:function(a,b){var c=this.getReportParam(a,b);c.add("dur",this.getDur()),this.reportBaseEvent(c)},generalSubSidKey:function(){return"sub_"+g(location.host+location.pathname)},getSid:function(){var a=e.getSessionIdAndGenIfNotExist(this.rootSidKey,!0,!0),b=c.yaConfigParam.get("session_id");if(this.pageType===k.ROOT)return b?b:a;if(b)return a+"/"+b;var d=e.getSessionId(this.sidKey);return a+"/"+d},checkIsRoot:function(){for(var a,b=this.rootProUrlMap,c=location.href,d=0;a=b[d];d++)if(a===c)return void(this.pageType=k.ROOT);this.pageType=k.SUB},getReportParam:function(a,b){var c=this.getPasParam(a,b);return c=this.megerParamWithSessionData(c)},megerParamWithSessionData:function(a){var b=new d;return b.addAll(this.sessionData),b.addAll(a),b}});return m["static"]={},m["static"].pageViewReport=function(){var a=document.getElementById("yaScript"),b="";if(a){var b=a.getAttribute("pro"),g=a.getAttribute("noreport");if("true"==g)return}c.initConfig();var h=c.getBaseClientInfo();h.add("session_id",e.getSessionIdAndGenIfNotExist("__rootSid",!0,!0)),h.add("curl",encodeURIComponent(location.href)),h.add("furl",document.referrer),h.add("pro",b),h.add("act","/event"),h.add("dty","live");var i=new d;i.addAll(h),i.add("eid","pageview"),i.add("eid_desc","页面预览");var k="";if(l.startup&&l.startup.data&&l.startup.data.rso)k=l.startup.data.rso;else{var m=j.getQueryParam(location);m.data.rso?k=m.data.rso:m.data.from&&(k=m.data.from)}k&&i.add("rso",k),f.queuePush(i)},m["static"].getMid=function(){return c.getYamid()},m}(yabaseReport,yaTimer,yaconfig,yaparameter,yasessionData,yareportSender,yamd5,yacookie,yahiidologic,yautil),yacore=function(a,b,c){var d=function(c,e,f){if(!c)throw new Error("please input the product");return e||(e=""),d.yaInstance=new a(b,c,e,f),d.yaInstance};return d.cookie={},d.cookie.get=function(){return c.getCookie.apply(c,arguments)},d.session_id={},d.session_id.get=function(){return d.yaInstance.reportInstance.getSid()},d.mid={},d.mid.get=function(){return b["static"].getMid.apply(b)},d["static"]={},d["static"].pageViewReport=function(){return b["static"].pageViewReport.apply(b,arguments)},d}(yaanalytics,yahuyaReport,yacookie),ya=function(a){return setTimeout(function(){a["static"].pageViewReport()},10),window.YA&&(window._conflictYA=window.YA),window.YA=a}(yacore)}();