const require_rolldown_runtime = require('../../../../../../../../../_virtual/rolldown_runtime.js');
const require_innerFrom$1 = require('../observable/innerFrom.js');
const require_mergeMap$1 = require('./mergeMap.js');
const require_concat$1 = require('../observable/concat.js');
const require_take$1 = require('./take.js');
const require_ignoreElements$1 = require('./ignoreElements.js');
const require_mapTo$1 = require('./mapTo.js');

//#region ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js
var require_delayWhen = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	var concat_1 = require_concat$1.require_concat();
	var take_1 = require_take$1.require_take();
	var ignoreElements_1 = require_ignoreElements$1.require_ignoreElements();
	var mapTo_1 = require_mapTo$1.require_mapTo();
	var mergeMap_1 = require_mergeMap$1.require_mergeMap();
	var innerFrom_1 = require_innerFrom$1.require_innerFrom();
	function delayWhen(delayDurationSelector, subscriptionDelay) {
		if (subscriptionDelay) return function(source) {
			return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
		};
		return mergeMap_1.mergeMap(function(value, index) {
			return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value));
		});
	}
	exports.delayWhen = delayWhen;
}) });

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