import{__exports as r}from"../../../../../_virtual/stream4.mjs";import e from"../../../../../_virtual/_node_stream.mjs";import{__require as t}from"../readers/async.mjs";var s;function a(){if(s)return r;s=1,Object.defineProperty(r,"__esModule",{value:!0});const a=e,i=t();return r.default=class{constructor(r,e){this._root=r,this._settings=e,this._reader=new i.default(this._root,this._settings),this._stream=new a.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}},r}export{a as __require};