const require_rolldown_runtime = require('../../../../../../../../../_virtual/rolldown_runtime.js');
const require_isFunction$1 = require('../util/isFunction.js');
const require_lift$1 = require('../util/lift.js');
const require_innerFrom$1 = require('../observable/innerFrom.js');
const require_map$1 = require('./map.js');
const require_mergeInternals$1 = require('./mergeInternals.js');

//#region ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js
var require_mergeMap = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	var map_1 = require_map$1.require_map();
	var innerFrom_1 = require_innerFrom$1.require_innerFrom();
	var lift_1 = require_lift$1.require_lift();
	var mergeInternals_1 = require_mergeInternals$1.require_mergeInternals();
	var isFunction_1 = require_isFunction$1.require_isFunction();
	function mergeMap(project, resultSelector, concurrent) {
		if (concurrent === void 0) concurrent = Infinity;
		if (isFunction_1.isFunction(resultSelector)) return mergeMap(function(a, i) {
			return map_1.map(function(b, ii) {
				return resultSelector(a, b, i, ii);
			})(innerFrom_1.innerFrom(project(a, i)));
		}, concurrent);
		else if (typeof resultSelector === "number") concurrent = resultSelector;
		return lift_1.operate(function(source, subscriber) {
			return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent);
		});
	}
	exports.mergeMap = mergeMap;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_mergeMap();
  }
});