ta.O_APPEND),Ga=ta.O_FLAGS,Ha=ta.XATTR_CREATE,Ia=ta.XATTR_REPLACE,Ja=ta.FS_NOMTIME,Ka=ta.FS_NOCTIME,La=a("../encoding.js"),Ma=a("../errors.js"),Na=a("../directory-entry.js"),Oa=a("../open-file-description.js"),Pa=a("../super-node.js"),Qa=a("../node.js"),Ra=a("../stats.js"),Sa=a("../buffer.js");b.exports={ensureRootDirectory:h,open:J,close:K,mknod:L,mkdir:M,rmdir:N,unlink:R,stat:O,fstat:P,link:Q,read:S,readFile:T,write:U,writeFile:V,appendFile:W,exists:X,getxattr:Y,fgetxattr:Z,setxattr:$,fsetxattr:_,removexattr:aa,fremovexattr:ba,lseek:ca,readdir:da,utimes:ea,futimes:fa,rename:ga,symlink:ha,readlink:ia,lstat:ja,truncate:ka,ftruncate:la}},{"../../lib/nodash.js":4,"../buffer.js":14,"../constants.js":15,"../directory-entry.js":16,"../encoding.js":17,"../errors.js":18,"../node.js":23,"../open-file-description.js":24,"../path.js":25,"../stats.js":33,"../super-node.js":34}],20:[function(a,b,c){functiond(a){return"function"==typeofa?a:function(a){if(a)throwa}}functione(a){a&&console.error("Filer error: ",a)}functionf(a,b){functionc(){I.forEach(function(a){a.call(this)}.bind(F)),I=null}functiond(a){returnfunction(b){functionc(b){vard=B();a.getObject(d,function(a,e){returna?voidb(a):void(e?c(b):b(null,d))})}returng(j).contains(p)?voidb(null,B()):voidc(b)}}functionf(a){if(a.length){varb=s.getInstance();a.forEach(function(a){b.emit(a.event,a.path)})}}a=a||{},b=b||e;varj=a.flags,B=a.guid?a.guid:v,C=a.provider||newq.Default(a.name||k),D=a.name||C.name,E=g(j).contains(l),F=this;F.readyState=n,F.name=D,F.error=null,F.stdin=w,F.stdout=x,F.stderr=y,this.Shell=r.bind(void0,this);varG={},H=z;Object.defineProperty(this,"openFiles",{get:function(){returnG}}),this.allocDescriptor=function(a){varb=H++;returnG[b]=a,b},this.releaseDescriptor=function(a){deleteG[a]};varI=[];this.queueOrRun=function(a){varb;returnm==F.readyState?a.call(F):o==F.readyState?b=newu.EFILESYSTEMERROR("unknown error"):I.push(a),b},this.watch=function(a,b,c){if(h(a))thrownewError("Path must be a string without null bytes.");"function"==typeofb&&(c=b,b={}),b=b||{},c=c||i;vard=newt;returnd.start(a,!1,b.recursive),d.on("change",c),d},C.open(function(a){functione(a){functione(a){varb=C[a]();returnb.flags=j,b.changes=[],b.guid=d(b),b.close=function(){vara=b.changes;f(a),a.length=0},b}F.provider={openReadWriteContext:function(){returne("getReadWriteContext")},openReadOnlyContext:function(){returne("getReadOnlyContext")}},a?F.readyState=o:F.readyState=m,c(),b(a,F)}if(a)returne(a);varg=C.getReadWriteContext();g.guid=d(g),E?g.clear(function(a){returna?e(a):voidA.ensureRootDirectory(g,e)}):A.ensureRootDirectory(g,e)})}varg=a("../../lib/nodash.js"),h=a("../path.js").isNull,i=a("../shared.js").nop,j=a("../constants.js"),k=j.FILE_SYSTEM_NAME,l=j.FS_FORMAT,m=j.FS_READY,n=j.FS_PENDING,o=j.FS_ERROR,p=j.FS_NODUPEIDCHECK,q=a("../providers/index.js"),r=a("../shell/shell.js"),s=a("../../lib/intercom.js"),t=a("../fs-watcher.js"),u=a("../errors.js"),v=a("../shared.js").guid,w=j.STDIN,x=j.STDOUT,y=j.STDERR,z=j.FIRST_DESCRIPTOR,A=a("./implementation.js");f.providers=q,["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(a){f.prototype[a]=function(){varb=this,c=Array.prototype.slice.call(arguments,0),e=c.length-1,f="function"!=typeofc[e],g=d(c[e]),h=b.queueOrRun(function(){functiond(){h.close(),g.apply(b,arguments)}varh=b.provider.openReadWriteContext();if(o===b.readyState){vari=newu.EFILESYSTEMERROR("filesystem unavailable, operation canceled");returng.call(b,i)}f?c.push(d):c[e]=d;varj=[b,h].concat(c);A[a].apply(null,j)});h&&g(h)}}),b.exports=f},{"../../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(