/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/slice-stream@1.0.0/slicestream.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";module.exports=SliceStream;var Transform=require("readable-stream/transform"),inherits=require("util").inherits;function SliceStream(t,e){if(!(this instanceof SliceStream))return new SliceStream(t,e);this._opts=t,this._accumulatedLength=0,this.sliceFn=e,Transform.call(this)}inherits(SliceStream,Transform),SliceStream.prototype._transform=function(t,e,i){if(this._accumulatedLength+=t.length,this._accumulatedLength>=this._opts.length){var s=t.length-(this._accumulatedLength-this._opts.length);this.sliceFn(t.slice(0,s),!0,t.slice(s)),i()}else this.sliceFn(t),i()};
//# sourceMappingURL=/sm/744716a4330f3cc71c7a576a0607eff9eae9c4f5539db0781cf47dce87d1b82a.map