import { t as createBrowserRouteDispatcher } from "./dispatcher-CjBA15z2.js";
import { n as createBrowserControlContext } from "./plugin-enabled-D7Tbfr9j.js";
import { t as startBrowserControlServiceFromConfig } from "./control-service-DdrlGaEZ.js";
//#region extensions/browser/src/browser/local-dispatch.runtime.ts
async function dispatchBrowserControlRequest(req) {
	if (!await startBrowserControlServiceFromConfig()) throw new Error("browser control disabled");
	return await createBrowserRouteDispatcher(createBrowserControlContext()).dispatch(req);
}
//#endregion
export { dispatchBrowserControlRequest };
