﻿(function(b,a){"object"===typeof module&&"object"===typeof module.exports?module.exports=a(b):a(b)})("undefined"!==typeof window?window:this,function(b){var a={};a.window=b;a.document=b.document;a.location=b.location;a.navigator=b.navigator;a.screen=b.screen;a.console=b.console=b.console||{log:function(a){}};a.log=a.log=a.log||function(a){};a.data={};a.data.tt=a.document.title;a.data.re=a.document.referrer;a.data.dm=a.document.domain;a.data.hr=a.location.href;a.data.pr=a.location.protocol;a.data.ho=
a.location.hostname;a.data.po=a.location.port;a.data.pa=a.location.pathname;a.data.se=a.location.search;a.data.ha=a.location.hash;a.data.ac=a.navigator.appCodeName;a.data.an=a.navigator.appName;a.data.av=a.navigator.appVersion;a.data.ce=a.navigator.cookieEnabled;a.data.pl=a.navigator.platform;a.data.ua=a.navigator.userAgent;a.data.sl=a.navigator.systemLanguage;a.data.sc=[a.screen.availWidth,a.screen.availHeight].join("x");a.api="//monitor.vbegin.cn/analytics";a.img=null;a.submit=function(){try{a.img||
(a.img=document.createElement("img"));var c=[],b;for(b in a.data){var d=a.data[b];d&&c.push(b+"="+encodeURIComponent(d))}c.push("_="+encodeURIComponent(Math.random()));var e=[a.api,c.join("&")].join("?");a.img.setAttribute("src",e)}catch(f){a.log(f)}};a.href={};a.href.api="//monitor.vbegin.cn/analytics/href";a.href.img=null;a.href.click=function(c){try{var b=this.getAttribute("href"),d=this.innerHTML;if(b){a.href.img||(a.href.img=document.createElement("img"));c=[];c.push("hr="+encodeURIComponent(b));
c.push("va="+encodeURIComponent(d));c.push("_="+encodeURIComponent(Math.random()));var e=[a.href.api,c.join("&")].join("?");a.href.img.setAttribute("src",e)}}catch(f){a.log(f)}};a.href.bind=function(){try{for(var b=a.document.getElementsByTagName("a"),g=b.length,d=0;d<g;d++){var e=b[d];e.attachEvent?e.attachEvent("onclick",a.href.click):e.addEventListener&&e.addEventListener("click",a.href.click)}}catch(f){a.log(f)}};a.readied=!1;a.ready=function(){try{a.readied||(a.readied=!0,a.submit(),a.href.bind())}catch(c){a.log(c)}};
a.listen=function(){try{"complete"===a.document.readyState||"loading"!==a.document.readyState&&!a.document.documentElement.doScroll?a.window.setTimeout(a.ready):a.document.addEventListener?(a.document.addEventListener("DOMContentLoaded",a.ready),a.window.addEventListener("load",a.ready)):a.document.attachEvent&&(a.document.attachEvent("onreadystatechange",a.ready),a.window.attachEvent("onload",a.ready))}catch(c){a.log(c)}};a.listen()});