(function(){function G(){this.url="http://oth.eve.mdt.qq.com:8080/analytics/upload?tp=js";this.opts={};this.requestArray=[]}function H(b){I&&(b=(new Date).getTime(),BeaconComm.exitSet(b),BeaconComm.addEvent({name:encodeURIComponent(window.location.href),start:p,duration:parseInt((b-p)/1E3),refer:encodeURIComponent(document.referrer)},"pages"),I=!1)}if(!(0k.status||304==k.status||0==k.status&&"file:"==n){x=x||e(k.getResponseHeader("content-type"));var b=k.responseText;try{"script"==x?(0,eval)(b):"xml"==x?b=k.responseXML:"json"==x&&(b=D.test(b)?null:JSON.parse(b))}catch(P){a=P}a?h(a,"parsererror",k,d):f(b,k,d)}else h(null,"error",k,d)}};k.open(d.type,d.url,"async"in d?d.async: !0);for(t in d.headers)k.setRequestHeader(t,d.headers[t]);return!1===g(k,d)?(k.abort(),!1):(0>>16)&65535)<<16)&4294967295;e=e<<15|e>>>17;e=461845907*(e&65535)+((461845907*(e>>>16)&65535)<<16)&4294967295;d^=e;d=d<<13|d>>>19;d=5*(d&65535)+((5*(d>>>16)&65535)<<16)&4294967295;d=(d&65535)+27492+(((d>>>16)+58964&65535)<<16)}e=0;switch(f){case 3:e^=(a.charCodeAt(c+2)&255)<<16;case 2:e^=(a.charCodeAt(c+1)&255)<<8;case 1:e^=a.charCodeAt(c)&255,e=3432918353*(e&65535)+((3432918353* (e>>>16)&65535)<<16)&4294967295,e=e<<15|e>>>17,d^=461845907*(e&65535)+((461845907*(e>>>16)&65535)<<16)&4294967295}return d^=a.length,d^=d>>>16,d=2246822507*(d&65535)+((2246822507*(d>>>16)&65535)<<16)&4294967295,d^=d>>>13,d=3266489909*(d&65535)+((3266489909*(d>>>16)&65535)<<16)&4294967295,d^=d>>>16,d>>>0},hasLocalStorage:function(){try{return!!window.localStorage}catch(a){return!0}},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(a){return!0}},isCanvasSupported:function(){var a= document.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName?!0:"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?!0:!1},getPluginsString:function(){return this.isIE()&&this.ie_activex?this.getIEPluginsString():this.getRegularPluginsString()},getRegularPluginsString:function(){return this.map(navigator.plugins,function(a){var b=this.map(a,function(a){return[a.type,a.suffixes].join("~")}).join(","); return[a.name,a.description,b].join("::")},this).join(";")},getIEPluginsString:function(){return window.ActiveXObject?this.map("ShockwaveFlash.ShockwaveFlash;AcroPDF.PDF;PDF.PdfCtrl;QuickTime.QuickTime;rmocx.RealPlayer G2 Control;rmocx.RealPlayer G2 Control.1;RealPlayer.RealPlayer(tm) ActiveX Control (32-bit);RealVideo.RealVideo(tm) ActiveX Control (32-bit);RealPlayer;SWCtl.SWCtl;WMPlayer.OCX;AgControl.AgControl;Skype.Detection".split(";"),function(a){try{return new ActiveXObject(a),a}catch(c){return null}}).join(";"): ""},getScreenResolution:function(){var a;return this.screen_orientation?a=screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:a=[screen.height,screen.width],a},getCanvasFingerprint:function(){var a=document.createElement("canvas"),b=a.getContext("2d");var g="beacon.qq.com "+Math.random();return b.textBaseline="top",b.font="12px 'Arial'",b.textBaseline="alphabetic",b.fillStyle="#ffc",b.fillRect(0,0,180,20),b.fillStyle="#069",b.fillText(g,2,15),b.fillStyle="rgba(102, 204, 0, 0.7)", b.fillText(g,4,17),a.toDataURL()}},b});var y=function(b,a,c){if("undefined"==typeof a){a=null;if(document.cookie&&""!=document.cookie){var g=document.cookie.split(";");for(c=0;c32-b.length&&(b=b.substring(0,32));n.id=this.sessionId=b},setSessionTime:function(){var b=(new Date).getTime();v.get("sessionStart")?b=v.get("sessionStart"):v.add("sessionStart",b);n.start=parseInt(b)},setInitTime:function(){e.get("initTime")?D=parseInt(e.get("initTime")):(D=p,e.add("initTime",p))},setChannelID:function(){var b=BeaconComm.getArgs().channelid;void 0!=b&&(M=b)},setResolution:function(){var b=[window.screen.width,window.screen.height]; window.devicePixelRatio&&b.push(window.devicePixelRatio);N=b.join("*")},addlastSession:function(){var b=e.get("lastSession");void 0===b&&(e.delLocalStorage("sessionMsg"),e.delLocalStorage("lastSession"));b?(b=JSON.parse(b),console.log("AppSession.id:"+n.id),b.id!=n.id&&(b=BeaconComm.getCommonMsg(b.id,b.start,3,parseInt(e.get("exitSession"))),console.log("n:"+JSON.stringify(b)),BeaconComm.addMsg(b),this.timedif=parseInt((n.start-e.get("exittime"))/1E3),e.add("T-%%%-T","{"+(new Date(parseInt(e.get("exittime")))).toLocaleString().replace(/\u5e74|\u6708/g, "-").replace(/\u65e5/g," ")+","+(new Date(parseInt(n.start))).toLocaleString().replace(/\u5e74|\u6708/g,"-").replace(/\u65e5/g," ")+"}"),e.get("appkey")?e.get("appkey")==C&&BeaconComm.addSessionStart(this.timedif,1):BeaconComm.addSessionStart(this.timedif,1))):BeaconComm.addSessionStart(0,1)},getAjax:function(){var b=this,a=new G;localStorage.__BEACON_sessionMsg||BeaconComm.addSessionStart(0,2);var c=JSON.parse(e.get("sessionMsg")),c=BeaconComm.getCommon(c),g=localStorage.__BEACON_hold_event;if(g){var f= c.msgs[c.msgs.length-1];f&&(f.data.events=f.data.events.concat(JSON.parse(g)),console.log("s.data.events:"+JSON.stringify(f.data.events)))}e.delLocalStorage("hold_event");e.get("appkey")?e.get("appkey")!=C?a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0,1);b.getAjax()},function(a){console.log(a)}):a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0,2)},function(a){console.log(a)}):a.set(c,function(a){e.delLocalStorage("sessionMsg");BeaconComm.addSessionStart(0, 2)},function(a){console.log(a)});e.add("appkey",C)}};O.set();var F=0;window.BeaconAction={};window.BeaconAction.onEvent=function(b,a,c){if(0