function De(a,b){u.assert(window.console&&window.console.log,"Safari console logger not installed");De.vG||(De.vG=u.We,u.We=De.XT);this.Init(a,b)}m("AdfSafariLogWriter",De);r.v(De,qa);De.prototype.Init=function(a,b){De.h.Init.call(this,a,b);this.sn=b};r.a("AdfSafariLogWriter.prototype.Init",{Init:De.prototype.Init});
De.prototype.md=function(a){this.ug();u.assert(a,"null logRecord");try{var b=a[Mc.Qv],d=window.console,e=a[Mc.lt],f=e>=v.SEVERE?d.error:e>=v.WARNING?d.warn:e>=v.INFO?d.info:d.debug,g=a[Mc.rw],h=this.Uv(a[Mc.dn]);b?f.call(d,"Message:"+g+"\nError:"+b+"\nWhen: "+h):f.call(d,"Message:"+g+"\nWhen:"+h)}catch(l){this.qB(l,"Error publishing AdfLogRecord")}};r.a("AdfSafariLogWriter.prototype.PublishImpl",{md:De.prototype.md});De.prototype.qB=function(a,b){u.s(a,Error);this.sn.ah(new Mc(v.WARNING,b,a))};
De.prototype.flush=function(){De.h.flush.call(this)};r.a("AdfSafariLogWriter.prototype.flush",{flush:De.prototype.flush});De.prototype.close=function(){De.h.close.call(this)};r.a("AdfSafariLogWriter.prototype.close",{close:De.prototype.close});
De.XT=function(a,b,d){try{var e=window.console;if(e&&e.group&&e.groupEnd&&e.trace){var f=a,f=null==f?"":f+" ",g="Assertion %sfailed ",f=[null,f];null!=d&&(g+=" because %s ",f[2]=d);f[0]=g+"at:";e.group.apply(e,f);e.trace();e.groupEnd()}}catch(h){}return De.vG(a,b+1,d)};