!function(e){"use strict";var n={};n.VERSION="0.9.13";var o,t={},r=function(e,n){return function(){return n.apply(e,arguments)}},i=function(){var e,n,o=arguments,t=o[0];for(n=1;n<o.length;n++)for(e in o[n])e in t||!o[n].hasOwnProperty(e)||(t[e]=o[n][e]);return t},l=function(e,n){return{value:e,name:n}};n.DEBUG=l(1,"DEBUG"),n.INFO=l(2,"INFO"),n.WARN=l(4,"WARN"),n.ERROR=l(8,"ERROR"),n.OFF=l(99,"OFF");var u=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};u.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},enabledFor:function(e){var n=this.context.filterLevel;return e.value>=n.value},debug:function(){this.invoke(n.DEBUG,arguments)},info:function(){this.invoke(n.INFO,arguments)},warn:function(){this.invoke(n.WARN,arguments)},error:function(){this.invoke(n.ERROR,arguments)},invoke:function(e,n){o&&this.enabledFor(e)&&o(n,i({level:e},this.context))}};var f=new u({filterLevel:n.OFF});!function(){var e=n;e.enabledFor=r(f,f.enabledFor),e.debug=r(f,f.debug),e.info=r(f,f.info),e.warn=r(f,f.warn),e.error=r(f,f.error),e.log=e.info}(),n.setHandler=function(e){o=e},n.setLevel=function(e){f.setLevel(e);for(var n in t)t.hasOwnProperty(n)&&t[n].setLevel(e)},n.get=function(e){return t[e]||(t[e]=new u(i({name:e},f.context)))},n.useDefaults=function(e){"undefined"!=typeof console&&(n.setLevel(e||n.DEBUG),n.setHandler(function(e,o){var t=console.log;o.name&&(e[0]="["+o.name+"] "+e[0]),o.level===n.WARN&&console.warn?t=console.warn:o.level===n.ERROR&&console.error?t=console.error:o.level===n.INFO&&console.info&&(t=console.info),Function.prototype.apply.call(t,console,e)}))},"function"==typeof define&&define.amd?define(n):"undefined"!=typeof module&&module.exports?module.exports=n:(n._prevLogger=e.Logger,n.noConflict=function(){return e.Logger=n._prevLogger,n},e.Logger=n)}(this);