!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.bearcat=a()}}(function(){var define,module,exports;return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=c.length)return d(a);var e=c[f++],h=e.getAdvice(),i=e.getBean(),j=function(a){g(a)};e.isRuntime()?(b.push(j),i[h].apply(i,b)):i[h](j)};g()},f.prototype.doInvokeAdvisorsAround=function(a,b,c,d,e){var f=d[0],g=f.getAdvice(),h=f.getBean();return f.isRuntime()?(c.unshift(b),c.unshift(a),c.push(e),h[g].apply(h,c)):h[g](a,b,e)},f.prototype.doInvokeAdvisorsAfter=function(a,b,c,d){var f=0;if(!c||!e.checkArray(c)||!c.length)return d();e.checkArray(b)||(b=[b]);var g=function(a){if(a||f>=c.length)return d(a);var e=c[f++],h=e.getAdvice(),i=e.getBean(),j=function(a){g(a)};b.push(j),i[h].apply(i,b)};g()};var g=["dyInit","dyInvoke","doInvokeAdvisorsBefore","doInvokeAdvisorsAround","doInvokeAdvisorsAfter"],h=function(a){for(var b=0;b=b.length)return a(f);var g=b[d++],h=g.getBeanName();if(g.isAsyncInit())if(c.singletonBeanFactory.containsSingleton(h))c.getBean(h),e();else{var i=function(){e()};c.setInitCb(h,i),c.getBean(h)}else{var i=function(){};c.setInitCb(h,i),c.getBean(h),e()}};e()},q.prototype.addBeanPostProcessor=function(a){this.beanPostProcessors.push(a)},q.prototype.getBeanPostProcessors=function(){return this.beanPostProcessors},q.prototype.applyBeanPostProcessorsBeforeInitialization=function(a,b){for(var c=a,d=this.getBeanPostProcessors(),e=0;ef;f++)c[f]=d.resolve(b[f],a.uri);return c},i.prototype.pass=function(){for(var a=this,b=a.dependencies.length,c=0;cf;f++){var g=a.deps[a.dependencies[f]];g.status0&&(d.remain+=e-1,a.entries.shift(),c--)}},i.prototype.load=function(){var a=this;if(!(this.status>=h.LOADING)){var b=this.getLoader();a.status=h.LOADING;for(var c=a.resolve(),d=0,e=c.length;e>d;d++)a.deps[a.dependencies[d]]=b.get(c[d]);if(a.pass(),a.entries.length)return void a.onload();var f,g={};for(d=0;e>d;d++)f=b.get(c[d]),f.statusc;c++){var d=a.entries[c];0===--d.remain&&d.callback()}delete a.entries},i.prototype.error=function(){var a=this;a.onload(),a.status=h.ERROR},i.prototype.fetch=function(a){function b(){d.request(m.requestUri,m.onRequest,m.charset,m.crossorigin)}function i(a){delete e[n],f[n]=!0,c&&(l.save(k,c),c=null);var b,d=g[n];for(delete g[n];b=d.shift();)a===!0?b.error():b.load()}var j=this,k=j.uri;console.log("do fetch "+k);var l=this.getLoader();j.status=h.FETCHING;var m={uri:k},n=m.requestUri||k;return!n||f.hasOwnProperty(n)?void j.load():e.hasOwnProperty(n)?void g[n].push(j):(e[n]=!0,g[n]=[j],m={uri:k,requestUri:n,onRequest:i,charset:"utf-8",crossorigin:!1},void(m.requested||(a?a[m.requestUri]=b:b())))},i.prototype.addEntry=function(a){this.entries.push(a)},i.prototype.setRemain=function(a){this.remain=a},i.prototype.setLoader=function(a){this.loader=a},i.prototype.getLoader=function(){return this.loader},i.STATUS=h,i.anonymousMeta=c,b.exports=i},{"../../util/requestUtil":41,"../../util/utils":44}],17:[function(a,b){var c=(a("pomelo-logger").getLogger("bearcat","BeanWrapper"),a("../../util/constant")),d=a("../../util/utils"),e=function(){this.name=null,this.type=null,this.value=null,this.ref=null,this.role=null,this.bean=null};e.prototype.getDependType=function(){return this.role},e.prototype.getName=function(){return this.name},e.prototype.setName=function(a){this.name=a},e.prototype.getType=function(){return this.type},e.prototype.setType=function(a){this.type=a},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(a){this.value=a},e.prototype.getValueOnce=function(){var a=this.value;return this.value=null,a},e.prototype.getRef=function(){return this.ref},e.prototype.setRef=function(a){this.ref=a},e.prototype.getRole=function(){return this.role},e.prototype.setRole=function(){var a=c.DEPEND_TYPE_ERROR;this.name||(a=c.DEPEND_TYPE_ERROR),this.ref&&(a=c.DEPEND_TYPE_BEAN),this.value&&(a=c.DEPEND_TYPE_VALUE),this.type&&d.checkType(this.type)&&(a=c.DEPEND_TYPE_VAR),this.role=a},e.prototype.getBean=function(){return this.bean},e.prototype.setBean=function(a){this.bean=a},b.exports=e},{"../../util/constant":37,"../../util/utils":44,"pomelo-logger":57}],18:[function(a,b){(function(c){var d,e=a("../../resource/propertiesLoader"),f=a("./beanDefinitionVisitor"),g=a("./placeHolderResolver"),h=a("../../util/constant"),i=a("../../util/utils"),j=c.cwd()+"/config";!function(){d=this}();var k=function(){this.beanName=null,this.env=h.DEFAULT_ENV,this.cpath=j,this.properties={}};k.prototype.postProcessBeanFactory=function(a){this.loadProperties(),this.processProperties(a) },k.prototype.loadProperties=function(){var a=null;a=d.__bearcatData__&&d.__bearcatData__.configData?d.__bearcatData__.configData:this.getPropertiesLoader().loadProperties(this.getConfigPath(),this.getEnv()),this.mergeProperties(a)},k.prototype.mergeProperties=function(a){for(var b in a)i.isNotNull(a[b])&&(this.properties[b]=a[b])},k.prototype.processProperties=function(a){var b=this.getProperties();if(!i.checkObjectEmpty(b)){var c=new g(b);this.doProcessProperties(a,c)}},k.prototype.doProcessProperties=function(a,b){var c=new f(b),d=a.getBeanDefinitions();for(var e in d){var g=d[e];c.visitBeanDefinition(g)}},k.prototype.getPropertiesLoader=function(){return new e},k.prototype.setBeanName=function(a){this.beanName=a},k.prototype.getBeanName=function(){return this.beanName},k.prototype.setEnv=function(a){this.env=a},k.prototype.getEnv=function(){return this.env},k.prototype.setConfigPath=function(a){this.cpath=a},k.prototype.getConfigPath=function(){return this.cpath},k.prototype.setProperties=function(a){this.properties=a},k.prototype.getProperties=function(){return this.properties},b.exports=k}).call(this,a("_process"))},{"../../resource/propertiesLoader":33,"../../util/constant":37,"../../util/utils":44,"./beanDefinitionVisitor":15,"./placeHolderResolver":19,_process:51}],19:[function(a,b){var c=a("../../util/utils"),d="${",e="}",f=":",g=function(a){this.placeholderPrefix=d,this.placeholderSuffix=e,this.valueSeparator=f,this.properties=a};g.prototype.resolveStringValue=function(a){if(!c.checkString(a))return null;var b=this.doReplace(a);return c.isNotNull(b)||(b=a),b},g.prototype.setProperties=function(a){this.properties=a},g.prototype.getProperties=function(){return this.properties},g.prototype.doReplace=function(a){var b=this.getProperties();if(!a||!b)return null;for(var c,d,e,f=/\$\{(.*?)\}/g,g="",h=0,i=!0,j=0;c=f.exec(a);)d=c[1],e=a.substring(h,c.index),e.length&&(g+=e),h=f.lastIndex,0!=j||e.length?g+=b[d]:g=b[d],i=!1;return h=j&&m.stop(),!h.checkArray(a)&&h.checkObject(a)&&(b=a,a=[]),this.opts=b||{},this.configLocations=a||[],this.opts.BEARCAT_GLOBAL&&(c.bearcat=m),h.checkObject(this.opts)||d.warn("Bearcat createApp opts must be object..."),this.applicationContext=new e(this.configLocations,this.opts),this.state=j,m},m.start=function(a){if(h.checkFunction(a)||(a=function(){}),this.state>j)return d.warn("Bearcat has already start, run bearcat.stop to start again."),a();if(this.stateb;b++)this.beanFactory.registerBeans(this.getResource(this.configLocations[b]));a||this.beanFactory.registerBeans(this.getResource())},A.prototype.tryAsyncLoading=function(a){if(!u.checkBrowser()||u.checkCocos2dJsb())return a();var b=this.loadBeans;return b&&b.length?this.doAsyncLoading(a):a()},A.prototype.doAsyncLoading=function(a){var b=this.loadBeans,c=this.getAsyncScriptLoader();return c.load(b,a)},A.prototype.tryBootStrapLoading=function(){if(u.checkCocos2dJsb()&&d.__bearcatData__&&d.__bearcatData__.idPaths){idPaths=d.__bearcatData__.idPaths;var a=this.getBootStrapLoader();return a.load(idPaths)}},A.prototype.prepareBeanFactory=function(){var a=new f;u.isNotNull(this.env)&&a.setEnv(this.env),u.isNotNull(this.cpath)&&a.setConfigPath(this.cpath);var b=new h;this.addBeanFactoryPostProcessor(a),this.addBeanFactoryPostProcessor(b)},A.prototype.registerBeanMeta=function(a){var b=a.id;if(!b)return void e.error("ApplicationContext registerBean error meta no id.");var c={};c[b]=a,this.beanFactory.registerBeans(c)},A.prototype.loadDefaultConstraints=function(){for(var a in m)this.getBeanByFunc(m[a])},A.prototype.hotReloadFileWatch=function(b){var d=this,f=a("chokidar").watch(b,{ignored:/[\/\\]\./,ignoreInitial:!0});f&&(e.info("bearcat hot reload watch %j",b),f.on("all",function(a,b){if("change"==a||"add"==a){var f=b;if(u.checkString(f)){var g=u.getFileName(f,".js".length);if(u.checkFileType(f,".js")&&u.isFile(f)){var h=c.pid,i=Math.floor(5*Math.random(0,1)),j=Math.floor(10*Math.random(0,1)),k=Math.floor(100*Math.random(0,1)),l=1e3*i+k*(h%100)+k+i*j,m=function(){e.info("%s changed, bearcat start hot reloading %d ...",f,l);var b=u.myRequireHot(f);if(b){if(u.checkFunction(b)&&(b=t.resolveFuncAnnotation(b,null,!0)),u.checkObject(b)){g=b.id;var c=b.func;if("add"==a)e.info("bearcat reload add bean %s",g),d.registerBeanMeta(b);else if(g&&u.checkFunction(c)){var h=d.getBeanFactory(),i=h.getBeanFunction(g);if(d.doHotAddAttributes(b,g),i){var j=c.prototype;e.info("bearcat reload update bean %s",g);for(var k in j)i.prototype[k]=j[k]}}}d.emit("reload"),e.info("bearcat hot reloading done ...")}};setTimeout(m,l)}}}}))},A.prototype.doHotAddAttributes=function(a,b){var c=this.getBeanFactory(),d=c.getBeanFunction(b),f=c.getBeanDefinition(b);if(f){var g=d.prototype,h=f.getPropsOn(),i=a.props;if(u.checkArray(i))for(var k=0;k=2){if(i=m[1],this.checkProps(h)){"type"===h&&(i=d.normalizeType(i)),this[h]=i;continue}k.push({name:h,value:i})}}if(j=l.indexOf("("),-1!=j){if(h=l.substr(0,j),!h)continue;var n=l.substr(j),o=n.length,p=n[o-1];if(")"!==p)continue;n=n.substr(1,o-2);for(var q=n.split(","),r=0;rt||s[0]&&s[1]&&k.push({name:s[0],value:s[1]})}}h||(h=l);var u=b.getConstraint(h);if(u){var v=b.getConstraintDefinition(h),w=v.getConstraint();w&&this.parse(w,b);var x=k.length;if(x)for(var y=0;x>y;y++){var z=k[y],A=z.name,B=z.value;u[A]=B}this.addConstraints(u)}}else this[l]=!0;else this[l]=!0}}}},f.prototype.setExpression=function(a){this.expression=a},f.prototype.getExpression=function(){return this.expression},f.prototype.setRef=function(a){this.ref=a},f.prototype.getRef=function(){return this.ref},f.prototype.setName=function(a){this.name=a},f.prototype.getName=function(){return this.name},f.prototype.setType=function(a){this.type=a},f.prototype.getType=function(){return this.type},f.prototype.setPrimary=function(a){this.primary=a},f.prototype.getPrimary=function(){return this.primary},f.prototype.setDefault=function(a){this["default"]=a},f.prototype.getDefault=function(){return this["default"]},f.prototype.setPrefix=function(a){this.prefix=a},f.prototype.getPrefix=function(){return this.prefix},f.prototype.isPrimary=function(){return this.primary},f.prototype.isBalance=function(){return this.balance},f.prototype.addConstraints=function(a){this.constraints.push(a)},f.prototype.checkProps=function(a){for(var b=c.MODEL_ATTRIBUTES,d=0;dk;k++)if(i=c[k],d=b+i,h.isDir(d)&&this.loadPath(a,d),h.isFile(d)&&h.checkFileType(i,".js")&&(j=this.loadFile(d))){var m=h.getFileName(i,".js".length);if(j.id)m=j.id;else if(j.mid)m=j.mid+g.BEAN_SPECIAL_MODEL;else{if(!j.cid)continue;m=j.cid+g.BEAN_SPECIAL_CONSTRAINT}var n=a[m];a[m]=f.mergeMeta(j,n)}return a}}).call(this,a("_process"))},{"../util/constant":37,"../util/fileUtil":38,"../util/metaUtil":39,"../util/utils":44,_process:51,path:50,"pomelo-logger":57}],33:[function(a,b){var c=(a("pomelo-logger").getLogger("bearcat","PropertiesLoader"),a("../util/fileUtil")),d=a("../util/utils"),e=function(){};b.exports=e,e.prototype.loadProperties=function(a,b){var c={};return this.loadDir(c,a,!0),this.loadDir(c,a+"/"+b),c},e.prototype.loadDir=function(a,b,e){if(c.existsSync(b)&&d.isDir(b)){var f=c.readdirSync(b);"/"!==b.charAt(b.length-1)&&(b+="/");for(var g,h,i,j=0,k=f.length;k>j;j++)if(h=f[j],g=b+h,!e&&d.isDir(g)&&this.loadDir(a,g),d.isFile(g)&&d.checkFileType(g,"json")&&(i=d.myRequire(g),d.isNotNull(i)&&d.checkObject(i)))for(var l in i)d.isNotNull(i[l])&&(a[l]=i[l])}}},{"../util/fileUtil":38,"../util/utils":44,"pomelo-logger":57}],34:[function(a,b){var c=a("./configLoader"),d=function(){this.loadPathMap={},this.loadPaths=[]};b.exports=d,d.prototype.getConfigLoader=function(){var a=new c;return a},d.prototype.addLoadPath=function(a){this.loadPaths.push(a)},d.prototype.load=function(a){if(this.loadPathMap[a])return this.loadPathMap[a];var b=this.getConfigLoader().getResources(a);return this.loadPathMap[a]=b,this.addLoadPath(a),b}},{"./configLoader":31}],35:[function(a,b){var c=a("../aop/advisor"),d=a("../aop/aspect"),e=a("./utils"),f={};f.buildAspect=function(a,b){var e=new d,f=b.getBeanName();e.setBeanDefinition(b),e.setBeanName(f);for(var g=0;g0;){var o=i.shift();if(l=m.exec(o),null!=l)break}var p;if(null!=l)var p=n.exec(l[1])[1];e=p,c=a(p||h),""===h&&(h=c)}else{var q=document,r=q.scripts,s=q.getElementById("seajsnode")||r[r.length-1];e=b(s),c=a(e||h)}return c},b.exports=c},{}],44:[function(a,b){var c=a("pomelo-logger").getLogger("bearcat","Utils"),d=a("./requireUtil"),e=a("./constant"),f=a("./fileUtil"),g=d.requirePath(),h={};h.normalizeType=function(a){if(h.checkString(a)){a=a.toLowerCase();var b=a[0].toUpperCase()+a.substr(1);return b}},h.checkTypeArray=function(a){var a=this.normalizeType(a);return a===e.MODEL_ATTRIBUTE_TYPE_ARRAY},h.checkTypeObject=function(a){var a=this.normalizeType(a);return a===e.MODEL_ATTRIBUTE_TYPE_OBJECT},h.isType=function(a){return function(b){return{}.toString.call(b)=="[object "+a+"]"}},h.checkArray=Array.isArray||h.isType("Array"),h.checkNumber=h.isType("Number"),h.checkFunction=h.isType("Function"),h.checkObject=h.isType("Object"),h.checkString=h.isType("String"),h.checkBoolean=h.isType("Boolean"),h.checkObjectEmpty=function(a){var b=!0;for(var c in a)b=!1;return b},h.checkType=function(a){return"Object"===a?!0:"Number"===a?!0:"Array"===a?!0:"Boolean"===a?!0:"Function"===a?!0:"String"===a?!0:!1},h.isNotNull=function(a){return"undefined"!=typeof a&&null!==a?!0:!1},h.myRequire=function(b){if(h.checkString(b)){var d=null;try{return d=a(b)}catch(e){return c.error("myRequire path %s error %s",b,e.stack),d}}},h.myRequireHot=function(a){var b=null;try{return b=h.requireUncached(a)}catch(d){return c.error("myRequireHot error %s",d.stack),b}},h.getLoadPath=function(b,c){if(!h.checkString(b))return null;b=b.replace(/\./g,"/"),c=a.resolve(c);var d=g.dirname(c);return d+"/"+b},h.getLoadPath2=function(b,c){if(!h.checkString(b))return null;c=a.resolve(c);var d=g.dirname(c),e=g.resolve(d,b);return e},h.requireUncached=function(b){if(h.checkString(b)){var c=a.resolve(b);return a.cache[c]&&delete a.cache[c],a(c)}},h.checkFileType=function(a,b){if("."!==b.charAt(0)&&(b="."+b),a.length<=b.length)return!1;var c=a.substring(a.length-b.length).toLowerCase();return b=b.toLowerCase(),c===b},h.isFile=function(a){return f.existsSync(a)?f.statSync(a).isFile():void 0},h.isDir=function(a){return f.existsSync(a)?f.statSync(a).isDirectory():void 0},h.getFileName=function(a,b){var c=g.basename(a);return c.length>b?c.substring(0,c.length-b):c},h.compareByOrder=function(a,b){return a.getOrder()?b.getOrder()?a.getOrder()-b.getOrder():-1:1},h.compareBeans=function(a,b){return a.isAspect()?-1:b.isAspect()?1:a.getOrder()?b.getOrder()?a.getOrder()-b.getOrder():-1:1},h.parseArgs=function(a){var b={},c=1;b.main=a[c];for(var d=c+1;da||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},c.prototype.emit=function(a){var b,c,e,h,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],g(c))return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(e=arguments.length,h=new Array(e-1),i=1;e>i;i++)h[i-1]=arguments[i];c.apply(this,h)}else if(f(c)){for(e=arguments.length,h=new Array(e-1),i=1;e>i;i++)h[i-1]=arguments[i];for(j=c.slice(),e=j.length,i=0;e>i;i++)j[i].apply(this,h)}return!0},c.prototype.addListener=function(a,b){var e;if(!d(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,d(b.listener)?b.listener:b),this._events[a]?f(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,f(this._events[a])&&!this._events[a].warned){var e;e=g(this._maxListeners)?c.defaultMaxListeners:this._maxListeners,e&&e>0&&this._events[a].length>e&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},c.prototype.on=c.prototype.addListener,c.prototype.once=function(a,b){function c(){this.removeListener(a,c),e||(e=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function");var e=!1;return c.listener=b,this.on(a,c),this},c.prototype.removeListener=function(a,b){var c,e,g,h;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],g=c.length,e=-1,c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(f(c)){for(h=g;h-->0;)if(c[h]===b||c[h].listener&&c[h].listener===b){e=h;break}if(0>e)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(e,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},c.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],d(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},c.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?d(this._events[a])?[this._events[a]]:this._events[a].slice():[]},c.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?d(a._events[b])?1:a._events[b].length:0}},{}],48:[function(a,b){b.exports="function"==typeof Object.create?function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],49:[function(a,b,c){c.endianness=function(){return"LE"},c.hostname=function(){return"undefined"!=typeof location?location.hostname:""},c.loadavg=function(){return[]},c.uptime=function(){return 0},c.freemem=function(){return Number.MAX_VALUE},c.totalmem=function(){return Number.MAX_VALUE},c.cpus=function(){return[]},c.type=function(){return"Browser"},c.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},c.networkInterfaces=c.getNetworkInterfaces=function(){return{}},c.arch=function(){return"javascript"},c.platform=function(){return"browser"},c.tmpdir=c.tmpDir=function(){return"/tmp"},c.EOL="\n"},{}],50:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:51}],51:[function(a,b){function c(){}var d=b.exports={};d.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.MutationObserver,c="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};var d=[];if(b){var e=document.createElement("div"),f=new MutationObserver(function(){var a=d.slice();d.length=0,a.forEach(function(a){a()})});return f.observe(e,{attributes:!0}),function(a){d.length||e.setAttribute("yes","no"),d.push(a)}}return c?(window.addEventListener("message",function(a){var b=a.source;if((b===window||null===b)&&"process-tick"===a.data&&(a.stopPropagation(),d.length>0)){var c=d.shift();c()}},!0),function(a){d.push(a),window.postMessage("process-tick","*")}):function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")}},{}],52:[function(a,b){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],53:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a){return a}function h(a){var b={};return a.forEach(function(a){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)f.push(F(b,String(g))?m(a,b,c,d,String(g),!0):"");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":52,_process:51,inherits:48}],54:[function(a,b){b.exports={name:"bearcat",version:"0.4.28",description:"Magic, self-described javaScript objects build up elastic, maintainable front-backend javaScript applications",main:"index.js",bin:"./bin/bearcat-bin.js",scripts:{test:"grunt"},repository:{type:"git",url:"https://github.com/bearcatjs/bearcat.git"},keywords:["di","IoC","AOP","dependency","injection","consistent","configuration","hot reload","front-backend","sharable codes","dependency injection","asynchronous script loading","magic, self-described javaScript objects"],dependencies:{"pomelo-logger":"0.1.x",commander:"2.x",chokidar:"~1.0.1"},browser:{"pomelo-logger":"./shim/logger.js",chokidar:"./shim/chokidar.js"},author:"fantasyni",license:"MIT",devDependencies:{"expect.js":"~0.3.1",mocha:">=0.0.1",grunt:"~0.4.2",blanket:"1.1.x","grunt-browserify":"3.x","grunt-mocha-test":"0.8.x","grunt-contrib-clean":"0.5.x","grunt-contrib-uglify":"~0.3.2"}}},{}],55:[function(a,b,c){c.process=a("./modules/process"),c.path=a("./modules/path"),c.util=a("./modules/util"),c.os=a("./modules/os"),a("./object")},{"./modules/os":58,"./modules/path":59,"./modules/process":60,"./modules/util":63,"./object":64}],56:[function(a,b){var c={};c.watch=function(){},b.exports=c},{}],57:[function(a,b){(function(a){function c(b){if("function"!=typeof console.log)return console;for(var c=arguments,e="",f=1;f1&&(d="["+e+"] "),c.length&&a.env.LOGGER_LINE&&(d=getLine()+": "+d)),c.length&&(arguments[0]=d+arguments[0]),h[b].apply(h,arguments)}}(g[f]);return j}function d(){return"undefined"!=typeof cc&&cc&&cc.sys&&cc.sys.isNative?!0:!1}b.exports={getLogger:c}}).call(this,a("_process"))},{_process:51}],58:[function(a,b,c){c.endianness=function(){return"LE"},c.hostname=function(){return"undefined"!=typeof location?location.hostname:""},c.loadavg=function(){return[]},c.uptime=function(){return 0},c.freemem=function(){return Number.MAX_VALUE},c.totalmem=function(){return Number.MAX_VALUE},c.cpus=function(){return[]},c.type=function(){return"Browser"},c.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},c.networkInterfaces=c.getNetworkInterfaces=function(){return{}},c.arch=function(){return"javascript"},c.platform=function(){return"browser"},c.tmpdir=c.tmpDir=function(){return"/tmp"},c.EOL="\n"},{}],59:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:51}],60:[function(a,b){function c(){}var d=b.exports={};d.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.MutationObserver,c="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};var d=[];if(b){var e=document.createElement("div"),f=new MutationObserver(function(){var a=d.slice();d.length=0,a.forEach(function(a){a()})});return f.observe(e,{attributes:!0}),function(a){d.length||e.setAttribute("yes","no"),d.push(a)}}return c?(window.addEventListener("message",function(a){var b=a.source;if((b===window||null===b)&&"process-tick"===a.data&&(a.stopPropagation(),d.length>0)){var c=d.shift();c()}},!0),function(a){d.push(a),window.postMessage("process-tick","*")}):function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")}},{}],61:[function(a,b){b.exports="function"==typeof Object.create?function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],62:[function(a,b){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],63:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a){return a}function h(a){var b={};return a.forEach(function(a){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)f.push(F(b,String(g))?m(a,b,c,d,String(g),!0):"");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("./support/inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/inherits":61,"./support/isBuffer":62,_process:51}],64:[function(){"function"!=typeof Object.create&&(Object.create=function(){var a=function(){};return function(b){if(arguments.length>1,"object"!=typeof b)throw TypeError("Argument must be an object");a.prototype=b;var c=new a;return a.prototype=null,c}}()),"function"!=typeof String.prototype.trim&&(String.prototype.trim||!function(){var a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(a,"")}}())},{}]},{},[1])(1)});