}},N.readyState=t?h:f,n(),e(t,N)}if(t)returni(t);varo=x.getReadWriteContext();o.guid=r(o),S?o.clear(function(t){returnt?i(t):(_.ensureRootDirectory(o,i),void0)}):_.ensureRootDirectory(o,i)})}vari=t("../../lib/nodash.js"),o=t("../path.js").isNull,a=t("../shared.js").nop,s=t("../constants.js"),u=s.FILE_SYSTEM_NAME,c=s.FS_FORMAT,f=s.FS_READY,l=s.FS_PENDING,h=s.FS_ERROR,d=s.FS_NODUPEIDCHECK,p=t("../providers/index.js"),g=t("../shell/shell.js"),v=t("../../lib/intercom.js"),m=t("../fs-watcher.js"),y=t("../errors.js"),b=t("../shared.js").guid,E=s.STDIN,w=s.STDOUT,O=s.STDERR,I=s.FIRST_DESCRIPTOR,_=t("./implementation.js");r.providers=p,["open","close","mknod","mkdir","rmdir","stat","fstat","link","unlink","read","readFile","write","writeFile","appendFile","exists","lseek","readdir","rename","readlink","symlink","lstat","truncate","ftruncate","utimes","futimes","setxattr","getxattr","fsetxattr","fgetxattr","removexattr","fremovexattr"].forEach(function(t){r.prototype[t]=function(){vare=this,r=Array.prototype.slice.call(arguments,0),i=r.length-1,o="function"!=typeofr[i],a=n(r[i]),s=e.queueOrRun(function(){functionn(){s.close(),a.apply(e,arguments)}vars=e.provider.openReadWriteContext();if(h===e.readyState){varu=newy.EFILESYSTEMERROR("filesystem unavailable, operation canceled");returna.call(e,u)}o?r.push(n):r[i]=n;varc=[e,s].concat(r);_[t].apply(null,c)});s&&a(s)}}),e.exports=r},{"../../lib/intercom.js":3,"../../lib/nodash.js":4,"../constants.js":15,"../errors.js":18,"../fs-watcher.js":21,"../path.js":25,"../providers/index.js":26,"../shared.js":30,"../shell/shell.js":32,"./implementation.js":19}],21:[function(t,e){functionn(){functiont(t){(n===t||s&&0===t.indexOf(e))&&a.trigger("change","change",t)}r.call(this);vare,n,a=this,s=!1;a.start=function(r,a,u){if(!n){if(i.isNull(r))throwError("Path must be a string without null bytes.");n=i.normalize(r),s=u===!0,s&&(e="/"===n?"/":n+"/");varc=o.getInstance();c.on("change",t)}},a.close=function(){vare=o.getInstance();e.off("change",t),a.removeAllListeners("change")}}varr=t("../lib/eventemitter.js"),i=t("./path.js"),o=t("../lib/intercom.js");n.prototype=newr,n.prototype.constructor=n,e.exports=n},{"../lib/eventemitter.js":2,"../lib/intercom.js":3,"./path.js":25}],22:[function(t,e){e.exports={FileSystem:t("./filesystem/interface.js"),Buffer:t("./buffer.js"),Path:t("./path.js"),Errors:t("./errors.js"),Shell:t("./shell/shell.js")}},{"./buffer.js":14,"./errors.js":18,"./filesystem/interface.js":20,"./path.js":25,"./shell/shell.js":32}],23:[function(t,e){functionn(t){vare=Date.now();this.id=t.id,this.mode=t.mode||i,this.size=t.size||0,this.atime=t.atime||e,this.ctime=t.ctime||e,this.mtime=t.mtime||e,this.flags=t.flags||[],this.xattrs=t.xattrs||{},this.nlinks=t.nlinks||0,this.version=t.version||0,this.blksize=void0,this.nblocks=1,this.data=t.data}functionr(t,e,n){t[e]?n(null):t.guid(function(r,i){t[e]=i,n(r)})}vari=t("./constants.js").MODE_FILE;n.create=function(t,e){r(t,"id",function(i){returni?(e(i),void0):(r(t,"data",function(r){returnr?(e(r),void0):(e(null,newn(t)),void0)}),void0)})},e.exports=n},{"./constants.js":15}],24:[function(t,e){functionn(t,e,n,r){this.path=t,this.id=e,this.flags=n,this.position=r}varr=t("./errors.js");n.prototype.getNode=function(t,e){functionn(t,n){returnt?e(t):n?(e(null,n),void0):e(newr.EBADF("file descriptor refers to unknown node",o))}vari=this.id,o=this.path;t.getObject(i,n)},e.exports=n},{"./errors.js":18}],25:[function(t,e,n){functionr(t,e){for(varn=0,r=t.length-1;r>=0;r--){vari=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");returnt}functioni(){for(vart="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){vari=n>=0?arguments[n]:"/";"string"==typeofi&&i&&(t=i+"/"+t,e="/"===i.charAt(0))}returnt=r(t.split("/").filter(function(t){return!!t}),!e).join("/"),(e?"/":"")+t||"."}functiono(t){vare="/"===t.charAt(0);return"/"===t.substr(-1),t=r(t.split("/").filter(function(t){return!!t}),!e).join("/"),t||e||(t="."),(e?"/":"")+t}functiona(){vart=Array.prototype.sli