function clone$8(instance) {
	let p1, p2;
	let body = instance.body;

	// don't allow cloning a used body
	if (instance.bodyUsed) {
		throw new Error('cannot clone body after it is used');
	}

	// check that body is a stream and not form-data object
	// note: we can't clone the form-data object without having it as a dependency
	if (body instanceof Stream$2 && typeof body.getBoundary !== 'function') {
		// tee instance body
		p1 = new PassThrough$6();
		p2 = new PassThrough$6();
		body.pipe(p1);
		body.pipe(p2);
		// set instance body to teed body and return the other teed body
		instance[INTERNALS$8].body = p1;
		body = p2;
	}

	return body;
}
Clone body given Res/Req instance

@param   Mixed  instance  Response or Request instance
@return  Mixed