import { V as e } from "./vidstack-D9mvYVIz-DesuYgKV.js";
//#region node_modules/vidstack/prod/chunks/vidstack-DATGlkSz2.js
function t() {
	return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
}
function n() {
	return !!window.cast?.framework;
}
function r() {
	return !!window.chrome?.cast?.isAvailable;
}
function i() {
	return a().getCastState() === cast.framework.CastState.CONNECTED;
}
function a() {
	return window.cast.framework.CastContext.getInstance();
}
function o() {
	return a().getCurrentSession();
}
function s() {
	return o()?.getSessionObj().media[0];
}
function c(e) {
	return s()?.media.contentId === e?.src;
}
function l() {
	return {
		language: "en-US",
		autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
		receiverApplicationId: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,
		resumeSavedSession: !0,
		androidReceiverCompatible: !0
	};
}
function u(e) {
	return `Google Cast Error Code: ${e}`;
}
function d(t, n) {
	return e(a(), t, n);
}
//#endregion
export { s as a, n as c, d, o as i, r as l, u as n, l as o, t as r, c as s, a as t, i as u };
