import { __commonJS } from "../../_virtual/rolldown_runtime.mjs";
import { require_type } from "../es-errors/type.mjs";
import { require_function_bind } from "../function-bind/index.mjs";
import { require_functionCall } from "./functionCall.mjs";
import { require_actualApply } from "./actualApply.mjs";

//#region ../../node_modules/call-bind-apply-helpers/index.js
var require_call_bind_apply_helpers = /* @__PURE__ */ __commonJS({ "../../node_modules/call-bind-apply-helpers/index.js": ((exports, module) => {
	var bind = require_function_bind();
	var $TypeError = require_type();
	var $call = require_functionCall();
	var $actualApply = require_actualApply();
	/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
	module.exports = function callBindBasic(args) {
		if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
		return $actualApply(bind, $call, args);
	};
}) });

//#endregion
export default require_call_bind_apply_helpers();

export { require_call_bind_apply_helpers };
//# sourceMappingURL=index.mjs.map