function Kd(a,b){u.assert(window.console&&window.console.firebug,"Firebug not installed");Kd.vG=u.We;u.We=Kd.XT;this.Init(a,b)}m("AdfFireBugLogWriter",Kd);r.v(Kd,qa);Kd.prototype.Init=function(a,b){Kd.h.Init.call(this,a,b);this.BF=Kd.Fza?new ra(a,b):null};r.a("AdfFireBugLogWriter.prototype.Init",{Init:Kd.prototype.Init});
Kd.prototype.md=function(a){this.ug();u.assert(a,"null logRecord");var b=this.BF,d=a[Mc.Qv];if(d&&b)b.ah(a);else{var b=window.console,e=a[Mc.lt],e=e>=v.SEVERE?b.error:e>=v.WARNING?b.warn:e>=v.INFO?b.info:b.debug,f;f=a[Mc.rw];if(null==f)f=null;else if(u.J(f),!(100>=f.length)){f=f.split("\n");for(var g=[],h=f.length,l=0;l<h;l++){var n=0,t=f[l],y=t.length;if(100>y)g.push(t);else for(;n<y;){var z=n+100,B=t.lastIndexOf(" ",z),F=t.lastIndexOf("\t",z);F>B&&(B=F);B<n?(B=z,z=0):z=1;g.push("\t"+t.substring(n,
B));n=B+z}}f=g.join("\n")}a=a[Mc.dn];d?e.call(b,"Message:%s\nError:%o\nWhen:%o",f,d,a):e.call(b,"Message:%s\nWhen:%o",f,a)}};r.a("AdfFireBugLogWriter.prototype.PublishImpl",{md:Kd.prototype.md});Kd.prototype.flush=function(){Kd.h.flush.call(this);var a=this.BF;a&&a.flush()};r.a("AdfFireBugLogWriter.prototype.flush",{flush:Kd.prototype.flush});Kd.prototype.close=function(){Kd.h.close.call(this);var a=this.BF;a&&a.close()};r.a("AdfFireBugLogWriter.prototype.close",{close:Kd.prototype.close});
Kd.XT=function(a,b,d){var e=window.console;if(e){var f="Assertion %sfailed ",g=[null,null==a?"":a+" "];null!=d&&(f+=" because %s ",g[2]=d);g[0]=f+"at:";e.group.apply(e,g);e.trace();e.groupEnd()}Kd.vG(a,b+1,d)};Kd.Fza=!0;m("AdfFireBugLogWriter.WRITE_ERRORS_TO_CONSOLE",Kd.Fza);