(function(a,c){if(a){return}a=window.BizQQWPA={};var n={};var k={};var m={};var e={global:a,moduleCache:k,moduleLoading:m,version:"3.3.20140328",srcRoot:"http://combo.b.qq.com",srcPath:"/crm/wpa/src/",srcMap:{"util.getJSONP":"util.getScript,util.serialize","util.onLoad":"util.events","util.extend":"lang.each,lang.typeEnhance","util.blockStorage":"util.sessionStorage","util.localStorage":"util.cookie,lang.trim","util.sessionStorage":"util.localStorage,util.cookie","util.taskMgr":"util.proxy","util.Bits":"util.proxy,util.pad","util.css":"util.contains","util.titleFlash":"util.taskMgr","wpa.wpaMgr":"globalSettings,lang.each,util.proxy,util.titleFlash,util.report,util.serialize,util.domain,util.cookie,wpa.WPA","wpa.WPA":"globalSettings,lang.browser,lang.typeEnhance,util.proxy,util.pad,util.Bits,util.getScript,util.getJSONP,util.domain,util.cookie,util.events,util.onLoad,util.offset,util.report,util.log,util.speedReport,util.Panel,util.onIframeLoaded,util.GUID,wpa.getQQVersion,wpa.ViewHelper,wpa.views,wpa.ta,wpa.kfuin,wpa.sid","wpa.ta":"util.getScript,util.serialize,util.cookie","wpa.invite":"util.log,util.getJSONP,util.proxy,util.domain,util.blockStorage,util.taskMgr,wpa.wpaMgr","wpa.filter":"util.domain","wpa.getQQVersion":"globalSettings,lang.browser,util.events","wpa.ViewHelper":"util.getJSONP,util.report,util.proxy,util.onLoad,util.className,util.events,util.Style,util.titleFlash","wpa.kfuin":"util.getJSONP","wpa.sid":"util.getJSONP,util.domain","wpa.visitor":"util.log,util.speedReport,util.getJSONP,util.domain,util.pubSub,wpa.filter,wpa.ta,wpa.invite,wpa.wpaMgr,wpa.ta,wpa.kfuin","wpa.SelectPanel":"lang.browser,util.Style,util.className,util.events,util.offset,util.css,util.proxy,lang.extend","wpa.APIs.add":"globalSettings,lang.each,lang.typeEnhance,lang.extend,util.domain,wpa.WPA,wpa.wpaMgr","wpa.APIs.addCustom":"globalSettings,lang.each,lang.typeEnhance,lang.extend,util.domain,wpa.WPA,wpa.wpaMgr","wpa.APIs.visitor":"globalSettings,wpa.visitor","wpa.APIs.gdtChat":"globalSettings,lang.extend,lang.browser,wpa.WPA","wpa.APIs.link":"globalSettings,lang.extend,lang.browser,wpa.WPA"},useCombo:true,comboTag:"/c/=",comboDelimiter:",",debug:false,grey:false,logURL:"http://promreport.crm2.qq.com/wpa/r.gif"};var d=function(){var p=/(^[\s ]+)|([\s ]+$)/g;return String.prototype.trim?function(q){return q==null?"":String.prototype.trim.call(q)}:function(q){return q==null?"":q.toString().replace(p,"")}}();var l=function(s,v,r){var q,t=0,u=s.length,p=u===c||Object.prototype.toString(s)==="[object Function]";if(r){if(p){for(q in s){if(v.apply(s[q],r)===false){break}}}else{for(;t-1?"&":"?")+s;q.src=t}}();var f=function(){var s=0,q=1,t=2;var p=e.LOG_URL;var r=i;return function(v){var u=v.url||p,x=v.level||t,w=(r.isString(v)?v:v.info)||"Empty info!";if(e.debug){console&&console.log(w);return}if(x>q){return}if(i.isPlainObject(w)){w=o(w)}u+=(u.indexOf("?")>-1?"?":"&")+"level"+x+":"+w;g(u)}}();var j=function(){var p={};return{pub:function(){var t=Array.prototype.slice.call(arguments,0);var s=t.shift();var v=[],w=s.split(".");for(var u=0,q=w.length;u0){q=q.split(",");var r={},p={};l(q,function(u,t){var v=d(t),s=v.split(".").pop();r[v]=p[s]=k[v]});return function(s){return p[s]||r[s]}}return function(){return null}};var h=function(v,r,p){if(!p){p=r;r=""}v=d(v);var u=v.split("."),q=u.pop(),t=n,w,s;while(u.length>0){w=u.shift();t[w]=t[w]||{};if(i.isNumeric(t[w])||typeof t[w]==="boolean"){throw new TypeError("define: cannot attach stuffs to number or boolean!")}t=t[w]}r=b(r);if(!i.isFunction(p)){throw new TypeError("define: factory should be function!")}s=p(r);k[v]=t[q]=s};h("globalSettings",function(){return e});h("lang.each",function(){return l});h("lang.trim",function(){return d});h("lang.typeEnhance","lang.each",function(){return i});h("util.serialize","lang.each,lang.typeEnhance",function(){return o});h("util.report",function(){return g});h("util.log","globalSettings,lang.each,lang.typeEnhance,util.report",function(){return f});h("util.pubSub","lang.each",function(){return j});h("util.speedReport","util.report",function(r){var p=r("report");var q=function(t,s,v,u){this.url="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1="+t+"&flag2="+s+"&flag3="+v+"&";this.p0=+new Date();this.points=[this.p0];this.rate=u||1};q.prototype={addPoint:function(s,v){var u=this.points;if(s>=u.length){for(var t=u.length;t(w||this.rate)){return}var t=this.url,v=this.points;for(var u=1,s=v.length;u0){v(w.srcRoot,A)}}return a}});h("api.define","lang.typeEnhance,api.require,util.pubSub",function(q){var s=q("typeEnhance"),r=q("api.require"),p=q("util.pubSub");return a.define=function(v,u,t){if(!s.isString(v)){throw new TypeError("api.define: path should be string!")}if(!t){t=u;u=""}r(u,function(){h(v,u,t);p.pub("api.define."+v,v)});return a}});h("api.remove",function(){return function(p){k[p]=null;return a}});h("api.set","lang.each,globalSettings",function(p){var q=p("each");return a.set=function(r,t){var s=r;if(typeof r==="string"){s={};s[r]=t}q(s,function(u,v){e[u]=v})}});h("api.setVersion","globalSettings",function(p){var r=p("globalSettings");var q=r.global;return q.setVersion=function(s){r.version=s;return q}});h("api.setResourceMap","globalSettings",function(p){var r=p("globalSettings");var q=r.global;return q.setResourceMap=function(s){l(s,function(t,u){r.RESOURCE_MAP[t]=u});return q}});h("api.load","api.require,globalSettings,util.speedReport",function(s){var B=s("require"),t=s("globalSettings"),r=s("speedReport");var z="0",v="1",y="2",A="4",x="20",u="0",w="1",q="2";var p=t.global;return p.load=function(C){if(!C){return}C.insert=function(){var E=document.getElementsByTagName("script"),F=E[E.length-1];return function(G){F.parentNode.insertBefore(G,F)}}();var D=r("7818","21","1");B("util.speedReport,util.domain,wpa.wpaMgr,wpa.visitor,wpa.kfuin",function(E){D.addPoint(2).send();var J=E("wpaMgr"),I=E("visitor"),H=E("domain"),K=E("speedReport"),F=E("kfuin");var G=C.nameAccount;if(!G){return}C.dm=H.topDomain;C.sv=A;if(C.wty===v||!C.wty){J.newWPA(C)}I(C);C.kfuin&&F.set(G,C.kfuin)});return p}});h("wpa.APIs","globalSettings,lang.each,api.require,util.pubSub,util.speedReport",function(s){var t=s("globalSettings"),w=s("each"),x=s("require"),v=s("pubSub"),r=s("speedReport");var u="wpa.APIs.";var q=t.global;var p=["add","addCustom","on","visitor","gdtChat","link"];w(p,function(){q[this]=function(y){return function(){var z=arguments,A=u+y;var B=r("7818","21","1");v.one("api.define."+A,function(){B.addPoint("3").send();q[y].apply(q,z)});x(A)}}(this)})})})(window.BizQQWPA); BizQQWPA.set("srcPath", "/crm/wpa/release/3.3.7/"); BizQQWPA.setVersion("3.3.7.20150324");