define(["underscore","jquery","backbone","utils/debug/ParseMsgHelper"],function(a,b,c,d){return c.View.extend({tagName:"textarea",initialize:function(){a.bindAll(this,"render","show","hide","log","error"),this.nativeConsole=window.console,this.timers={},this.render(),this.$el.css({background:"rgba(100%, 90%, 90%, 0.7)",position:"fixed",bottom:"100px",width:"100%",height:"40%","overflow-y":"scroll","min-height":"90px","z-index":"9"})},render:function(){b("body").append(this.el)},show:function(){this.$el.show()},hide:function(){this.$el.hide()},log:function(a,b){var c=this._parseMsg(a);b?(this.nativeConsole.log(a,b),c+=" "+this._parseMsg(b)):this.nativeConsole.log(a),this.$el.prepend(c+"&#13;&#10;")},error:function(a){this.nativeConsole.error(a),a=this._parseMsg(a),this.$el.prepend(a+"&#13;&#10;")},time:function(a){this.nativeConsole.time(a),this.timers[a]=(new Date).getTime()},timeEnd:function(b){if(this.nativeConsole.timeEnd(b),a.has(this.timers,b)&&null!==this.timers[b]){var c=(new Date).getTime();c-=this.timers[b],this.timers[b]=null,this.log(b+": "+c+"ms")}},_parseMsg:function(b){return b=d.parseMsg(b),a.escape(b)}})});