
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="26159cf8-c7ed-582f-bb31-652af21b9852")}catch(e){}}();
import open from "open";
export function openInBrowser(url, deps) {
    try {
        // On Linux the `open` package ships a bundled xdg-open and uses it
        // instead of the system one. Force the system xdg-open so PATH-based
        // overrides (e.g. BROWSER wrappers, integration test stubs) work.
        const options = process.platform === "linux" ? { app: { name: "xdg-open" } } : {};
        open(url, options);
    }
    catch (err) {
        const warn = deps?.warn ?? (() => { });
        warn(`Could not open browser automatically. Open this URL manually: ${url}`);
    }
}
//# sourceMappingURL=browser.js.map
//# debugId=26159cf8-c7ed-582f-bb31-652af21b9852
