UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

3,311 lines • 101 kB
(function() {
	try {
		var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
		e.SENTRY_RELEASE = { id: "3.39.1" };
		var t = new e.Error().stack;
		t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e7edbf7c-6228-47b1-87a7-20139eee8da0", e._sentryDebugIdIdentifier = "sentry-dbid-e7edbf7c-6228-47b1-87a7-20139eee8da0");
	} catch {}
})();
import { r as e } from "./rolldown-runtime-BOCG9HEF.js";
import { Bt as t, D as n, O as r, i, j as a, k as o, l as s } from "./i18n-BVE2kS7w.js";
import { t as c } from "./react-CM7l092i.js";
import { n as l, r as u, t as d } from "./loadImage-B-6VhOfG.js";
import { $ as f, A as p, B as m, C as h, D as g, E as ee, F as _, G as v, H as y, I as b, J as x, K as S, L as te, M as C, N as ne, O as re, P as ie, Q as ae, R as oe, S as se, T as w, U as T, V as ce, W as le, X as ue, Y as de, Z as fe, _ as E, _t as pe, a as me, at as he, b as ge, bt as D, c as _e, ct as ve, d as ye, dt as O, et as be, f as xe, ft as Se, g as Ce, gt as we, h as Te, ht as k, it as Ee, j as A, k as De, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as j, r as Re, rt as ze, s as Be, st as M, t as Ve, tt as He, u as Ue, ut as We, v as Ge, vt as Ke, w as N, x as qe, xt as P, y as Je, yt as Ye, z as F } from "./exports-gWa75nmY.js";
import { t as Xe } from "./is-webview-BoQ3VPRe.js";
//#region ../config/src/lib/apply-intents.ts
function Ze(e, t) {
	let n = JSON.parse(JSON.stringify(t.args));
	e[t.name](...n);
}
function Qe(e, t) {
	for (let n of t) try {
		Ze(e, n);
	} catch (e) {
		console.error(`Intent ${n.name} failed:`, e);
	}
}
//#endregion
//#region src/tools/report-error.ts
var $e;
function et(e) {
	$e || e.filename.indexOf("expofp.com") === -1 || [
		/loading chunk \d{1,2}\b/i,
		/zaloJS/i,
		/e.target.name/i,
		/ResizeObserver loop/i,
		/ChunkLoadError/i,
		/FloorPlan not ready/i
	].some((t) => t.test(e.message)) || ($e = window.setTimeout(async function() {
		var t;
		let n = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language, r = {
			host: document.location.host,
			message: e.message,
			filename: e.filename,
			lineno: e.lineno,
			colno: e.colno,
			stack: (t = e.error) == null ? void 0 : t.stack,
			log: u.messages.join("\n"),
			userAgent: navigator.userAgent,
			language: n,
			group: "FP",
			url: document.location,
			subject: "FP JS error: " + document.location.host
		};
		u.info("Sending error report", r), await Promise.all([tt(r), nt(r)]);
	}, 2e3));
}
async function tt(e) {
	let t = await fetch("https://app.expofp.com/api/report-error", {
		method: "POST",
		headers: { "Content-Type": "application/json" },
		body: JSON.stringify(e)
	});
	u.log("Reporter response: ", await t.text());
}
async function nt(e) {
	let t = rt(e), n = await fetch("https://msg.expofp.com/v1/post-message/" + window.location.hostname, {
		method: "POST",
		headers: { "Content-Type": "application/json" },
		body: JSON.stringify(t)
	});
	u.log("Slack reporter response: ", await n.text());
}
function rt(e) {
	let t = JSON.parse(JSON.stringify(e));
	delete t.subject, delete t.message, delete t.stack, delete t.log;
	let n = [];
	return n.push({
		type: "section",
		text: {
			type: "mrkdwn",
			text: `:warning:* ${e.subject}*`
		}
	}), n.push({
		type: "section",
		text: {
			type: "plain_text",
			text: e.message + " → " + (e.stack || "").split("\n")[0]
		}
	}), {
		channel: "#fp-errors",
		username: "error-reporter-bot",
		type: "mrkdwn",
		text: e.subject,
		blocks: n
	};
}
//#endregion
//#region src/utils/event-title.ts
function it(e, t) {
	let n = [e.title, e.subtitle].filter(Boolean);
	if (n.length) return [...n, `Expo Floor Plan by ${t}`].join(" – ");
}
function at(e, t) {
	let [n] = e.split(".");
	return `${n || e} – Expo Floor Plan by ${t}`;
}
//#endregion
//#region src/internal-settings.ts
var ot = /* @__PURE__ */ e(c());
function st(e) {
	var t;
	let n = (t = e.mobileLocationProvider) == null ? void 0 : t.trim();
	return Object.freeze({ mobileLocationProvider: n || null });
}
//#endregion
//#region src/tools/reset.ts
function ct() {
	I("floorplan"), I("__searchi"), I("__mobxGlobals"), I("__store"), I("__mobxInstanceCount");
	for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && I(e);
}
function I(e) {
	lt(e) ? delete window[e] : window[e] = void 0;
}
function lt(e) {
	let t = Object.getOwnPropertyDescriptor(window, e);
	return t && t.configurable;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
var L = {}, ut = {};
function R(e, t) {
	return L[e] = L[e] || [], L[e].push(t), () => {
		let n = L[e];
		if (n) {
			let e = n.indexOf(t);
			e !== -1 && n.splice(e, 1);
		}
	};
}
function z(e, t) {
	if (!ut[e]) {
		ut[e] = !0;
		try {
			t();
		} catch (t) {
			P && k.error(`Error while instrumenting ${e}`, t);
		}
	}
}
function B(e, t) {
	let n = e && L[e];
	if (n) for (let r of n) try {
		r(t);
	} catch (t) {
		P && k.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${O(r)}
Error:`, t);
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
var dt = null;
function ft(e) {
	let t = "error";
	R(t, e), z(t, pt);
}
function pt() {
	dt = D.onerror, D.onerror = function(e, t, n, r, i) {
		return B("error", {
			column: r,
			error: i,
			line: n,
			msg: e,
			url: t
		}), dt ? dt.apply(this, arguments) : !1;
	}, D.onerror.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
var mt = null;
function ht(e) {
	let t = "unhandledrejection";
	R(t, e), z(t, gt);
}
function gt() {
	mt = D.onunhandledrejection, D.onunhandledrejection = function(e) {
		return B("unhandledrejection", e), !mt || mt.apply(this, arguments);
	}, D.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
function _t(e) {
	if (typeof e == "boolean") return Number(e);
	let t = typeof e == "string" ? parseFloat(e) : e;
	if (!(typeof t != "number" || isNaN(t) || t < 0 || t > 1)) return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
function vt(e) {
	k.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
}
function yt(e, t) {
	if (!(t != null && t.length)) return !1;
	for (let n of t) {
		if (St(n)) {
			if (e.description && te(e.description, n)) return P && vt(e), !0;
			continue;
		}
		let t = !!n.attributes && Object.keys(n.attributes).length > 0;
		if (!n.name && !n.op && !t) continue;
		let r = !n.name || e.description && te(e.description, n.name), i = !n.op || e.op && te(e.op, n.op), a = !n.attributes || Object.entries(n.attributes).every(([t, n]) => {
			var r;
			return bt((r = e.attributes) == null ? void 0 : r[t], n);
		});
		if (r && i && a) return P && vt(e), !0;
	}
	return !1;
}
function bt(e, t) {
	return typeof e == "string" && (typeof t == "string" || t instanceof RegExp) ? te(e, t) : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
}
function xt(e, t) {
	let n = t.parent_span_id, r = t.span_id;
	if (n) for (let t of e) t.parent_span_id === r && (t.parent_span_id = n);
}
function St(e) {
	return typeof e == "string" || e instanceof RegExp;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
function Ct(e) {
	return !!e && typeof e == "function" && "_streamed" in e && !!e._streamed;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/envelope.js
function V(e, t = []) {
	return [e, t];
}
function wt(e, t) {
	let [n, r] = e;
	return [n, [...r, t]];
}
function Tt(e, t) {
	let n = e[1];
	for (let e of n) {
		let n = e[0].type;
		if (t(e, n)) return !0;
	}
	return !1;
}
function Et(e, t) {
	return Tt(e, (e, n) => t.includes(n));
}
function Dt(e) {
	let t = Ke(D);
	return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
}
function Ot(e) {
	let [t, n] = e, r = JSON.stringify(t);
	function i(e) {
		typeof r == "string" ? r = typeof e == "string" ? r + e : [Dt(r), e] : r.push(typeof e == "string" ? Dt(e) : e);
	}
	for (let e of n) {
		let [t, n] = e;
		if (i(`
${JSON.stringify(t)}
`), typeof n == "string" || n instanceof Uint8Array) i(n);
		else {
			let e;
			try {
				e = JSON.stringify(n);
			} catch {
				e = JSON.stringify(m(n));
			}
			i(e);
		}
	}
	return typeof r == "string" ? r : kt(r);
}
function kt(e) {
	let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
	for (let t of e) n.set(t, r), r += t.length;
	return n;
}
function At(e) {
	let t = typeof e.data == "string" ? Dt(e.data) : e.data;
	return [{
		type: "attachment",
		length: t.length,
		filename: e.filename,
		content_type: e.contentType,
		attachment_type: e.attachmentType
	}, t];
}
var jt = {
	sessions: "session",
	event: "error",
	client_report: "internal",
	user_report: "default",
	profile_chunk: "profile",
	replay_event: "replay",
	replay_recording: "replay",
	check_in: "monitor",
	raw_security: "security",
	log: "log_item",
	trace_metric: "metric"
};
function Mt(e) {
	return e in jt;
}
function Nt(e) {
	return Mt(e) ? jt[e] : e;
}
function Pt(e) {
	if (!(e != null && e.sdk)) return;
	let { name: t, version: n } = e.sdk;
	return {
		name: t,
		version: n
	};
}
function Ft(e, t, n, r) {
	var i;
	let a = (i = e.sdkProcessingMetadata) == null ? void 0 : i.dynamicSamplingContext;
	return {
		event_id: e.event_id,
		sent_at: new Date(T()).toISOString(),
		...t && { sdk: t },
		...!!n && r && { dsn: E(r) },
		...a && { trace: a }
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/envelope.js
function It(e, t) {
	var n, r, i, a;
	if (!t) return e;
	let o = e.sdk || {};
	return e.sdk = {
		...o,
		name: o.name || t.name,
		version: o.version || t.version,
		integrations: [...((n = e.sdk) == null ? void 0 : n.integrations) || [], ...t.integrations || []],
		packages: [...((r = e.sdk) == null ? void 0 : r.packages) || [], ...t.packages || []],
		settings: (i = e.sdk) != null && i.settings || t.settings ? {
			...(a = e.sdk) == null ? void 0 : a.settings,
			...t.settings
		} : void 0
	}, e;
}
function Lt(e, t, n, r) {
	let i = Pt(n);
	return V({
		sent_at: new Date(T()).toISOString(),
		...i && { sdk: i },
		...!!r && t && { dsn: E(t) }
	}, ["aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()]]);
}
function Rt(e, t, n, r) {
	let i = Pt(n), a = e.type && e.type !== "replay_event" ? e.type : "event";
	It(e, n == null ? void 0 : n.sdk);
	let o = Ft(e, i, r, t);
	return delete e.sdkProcessingMetadata, V(o, [[{ type: a }, e]]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
function zt(e) {
	return e.getOptions().traceLifecycle === "stream";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+conventions@0.16.0/node_modules/@sentry/conventions/dist/attributes.mjs
var Bt = "url.full";
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
function Vt(e, t) {
	var n;
	let r = (n = e.attributes) == null ? e.attributes = {} : n;
	Object.entries(t).forEach(([e, t]) => {
		t != null && !(e in r) && (r[e] = t);
	});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/timer.js
function Ht(e) {
	return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
}
function Ut(e) {
	let t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
	return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function Wt(e) {
	return `${Ut(e)}${e.projectId}/envelope/`;
}
function Gt(e, t) {
	let n = { sentry_version: "7" };
	return e.publicKey && (n.sentry_key = e.publicKey), t && (n.sentry_client = `${t.name}/${t.version}`), new URLSearchParams(n).toString();
}
function Kt(e, t, n) {
	return t || `${Wt(e)}?${Gt(e, n)}`;
}
function qt(e, t) {
	let n = Ge(e);
	if (!n) return "";
	let r = `${Ut(n)}embed/error-page/`, i = `dsn=${E(n)}`;
	for (let e in t) if (e !== "dsn" && e !== "onClose") if (e === "user") {
		let e = t.user;
		if (!e) continue;
		e.name && (i += `&name=${encodeURIComponent(e.name)}`), e.email && (i += `&email=${encodeURIComponent(e.email)}`);
	} else i += `&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;
	return `${r}?${i}`;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integration.js
var Jt = [];
function Yt(e) {
	let t = {};
	return e.forEach((e) => {
		let { name: n } = e, r = t[n];
		r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e);
	}), Object.values(t);
}
function Xt(e) {
	let t = e.defaultIntegrations || [], n = e.integrations;
	t.forEach((e) => {
		e.isDefaultInstance = !0;
	});
	let r;
	if (Array.isArray(n)) r = [...t, ...n];
	else if (typeof n == "function") {
		let e = n(t);
		r = Array.isArray(e) ? e : [e];
	} else r = t;
	return Yt(r);
}
function Zt(e, t) {
	let n = {};
	return t.forEach((t) => {
		t != null && t.beforeSetup && t.beforeSetup(e);
	}), t.forEach((t) => {
		t && $t(e, t, n);
	}), n;
}
function Qt(e, t) {
	for (let n of t) n != null && n.afterAllSetup && n.afterAllSetup(e);
}
function $t(e, t, n) {
	if (n[t.name]) {
		P && k.log(`Integration skipped because it was already installed: ${t.name}`);
		return;
	}
	if (n[t.name] = t, !Jt.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), Jt.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
		let n = t.preprocessEvent.bind(t);
		e.on("preprocessEvent", (t, r) => n(t, r, e));
	}
	if (typeof t.processEvent == "function") {
		let n = t.processEvent.bind(t), r = Object.assign((t, r) => n(t, r, e), { id: t.name });
		e.addEventProcessor(r);
	}
	["processSpan", "processSegmentSpan"].forEach((n) => {
		let r = t[n];
		typeof r == "function" && e.on(n, (n) => r.call(t, n, e));
	}), P && k.log(`Integration installed: ${t.name}`);
}
function H(e) {
	return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/env.js
function en() {
	return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
}
function tn() {
	return "npm";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/node.js
function nn() {
	return !en() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
function rn() {
	return typeof window < "u" && (!nn() || an());
}
function an() {
	let e = D.process;
	return (e == null ? void 0 : e.type) === "renderer";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/envelope.js
function on(e, t) {
	let n = t ? "auto" : "never";
	return [{
		type: "log",
		item_count: e.length,
		content_type: "application/vnd.sentry.items.log+json"
	}, {
		version: 2,
		...rn() && { ingest_settings: {
			infer_ip: n,
			infer_user_agent: n
		} },
		items: e
	}];
}
function sn(e, t, n, r, i) {
	let a = {};
	return t != null && t.sdk && (a.sdk = {
		name: t.sdk.name,
		version: t.sdk.version
	}), n && r && (a.dsn = E(r)), V(a, [on(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/internal.js
function cn(e, t) {
	var n;
	let r = (n = t == null ? ln(e) : t) == null ? [] : n;
	if (r.length === 0) return;
	let i = e.getOptions(), a = sn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
	un().set(e, []), e.emit("flushLogs"), e.sendEnvelope(a);
}
function ln(e) {
	return un().get(e);
}
function un() {
	return pe("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
function dn(e, t) {
	let n = t ? "auto" : "never";
	return [{
		type: "trace_metric",
		item_count: e.length,
		content_type: "application/vnd.sentry.items.trace-metric+json"
	}, {
		version: 2,
		...rn() && { ingest_settings: {
			infer_ip: n,
			infer_user_agent: n
		} },
		items: e
	}];
}
function fn(e, t, n, r, i) {
	let a = {};
	return t != null && t.sdk && (a.sdk = {
		name: t.sdk.name,
		version: t.sdk.version
	}), n && r && (a.dsn = E(r)), V(a, [dn(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/internal.js
function pn(e, t) {
	var n;
	let r = (n = t == null ? mn(e) : t) == null ? [] : n;
	if (r.length === 0) return;
	let i = e.getOptions(), a = fn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
	hn().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(a);
}
function mn(e) {
	return hn().get(e);
}
function hn() {
	return pe("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
function gn(e) {
	return Ce({
		trace_id: e.trace_id,
		span_id: e.span_id,
		parent_span_id: e.parent_span_id,
		name: e.description || "",
		start_timestamp: e.start_timestamp,
		end_timestamp: e.timestamp || e.start_timestamp,
		status: !e.status || e.status === "ok" || e.status === "cancelled" ? "ok" : "error",
		is_segment: !1,
		attributes: { ...e.data },
		links: e.links
	});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
function _n(e, t) {
	var n, r;
	if (e.type !== "transaction" || !((n = e.spans) != null && n.length) || !((r = e.sdkProcessingMetadata) != null && r.hasGenAiSpans) || t.getOptions().streamGenAiSpans === !1 || zt(t)) return;
	let i = [], a = [];
	for (let t of e.spans) {
		var o;
		(o = t.op) != null && o.startsWith("gen_ai.") ? i.push(gn(t)) : a.push(t);
	}
	if (i.length === 0) return;
	e.spans = a;
	let s = t.getDataCollectionOptions().userInfo ? "auto" : "never";
	return [{
		type: "span",
		item_count: i.length,
		content_type: "application/vnd.sentry.items.span.v2+json"
	}, {
		version: 2,
		...rn() && { ingest_settings: {
			infer_ip: s,
			infer_user_agent: s
		} },
		items: i
	}];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
var vn = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
function yn(e = 100) {
	let t = /* @__PURE__ */ new Set();
	function n() {
		return t.size < e;
	}
	function r(e) {
		t.delete(e);
	}
	function i(e) {
		if (!n()) return Ue(vn);
		let i = e();
		return t.add(i), i.then(() => r(i), () => r(i)), i;
	}
	function a(e) {
		if (!t.size) return ye(!0);
		let n = Promise.allSettled(Array.from(t)).then(() => !0);
		if (!e) return n;
		let r = [n, new Promise((t) => Ht(setTimeout(() => t(!1), e)))];
		return Promise.race(r);
	}
	return {
		get $() {
			return Array.from(t);
		},
		add: i,
		drain: a
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
var bn = 60 * 1e3;
function xn(e, t = T()) {
	let n = parseInt(`${e}`, 10);
	if (!isNaN(n)) return n * 1e3;
	let r = Date.parse(`${e}`);
	return isNaN(r) ? bn : r - t;
}
function Sn(e, t) {
	return e[t] || e.all || 0;
}
function Cn(e, t, n = T()) {
	return Sn(e, t) > n;
}
function wn(e, { statusCode: t, headers: n }, r = T()) {
	let i = { ...e }, a = n == null ? void 0 : n["x-sentry-rate-limits"], o = n == null ? void 0 : n["retry-after"];
	if (a) for (let e of a.trim().split(",")) {
		let [t, n, , , a] = e.split(":", 5), o = parseInt(t, 10), s = (isNaN(o) ? 60 : o) * 1e3;
		if (!n) i.all = r + s;
		else for (let e of n.split(";")) e === "metric_bucket" ? (!a || a.split(";").includes("custom")) && (i[e] = r + s) : i[e] = r + s;
	}
	else o ? i.all = r + xn(o, r) : t === 429 && (i.all = r + 60 * 1e3);
	return i;
}
function Tn(e, t, n = yn(e.bufferSize || 64)) {
	let r = {}, i = (e) => n.drain(e);
	function a(i) {
		let a = [];
		if (Tt(i, (t, n) => {
			let i = Nt(n);
			Cn(r, i) ? e.recordDroppedEvent("ratelimit_backoff", i) : a.push(t);
		}), a.length === 0) return Promise.resolve({});
		let o = V(i[0], a), s = (t) => {
			if (Et(o, ["client_report"])) {
				P && k.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);
				return;
			}
			Tt(o, (n, r) => {
				e.recordDroppedEvent(t, Nt(r));
			});
		};
		return n.add(() => t({ body: Ot(o) }).then((e) => e.statusCode === 413 ? (P && k.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."), s("send_error"), e) : (P && e.statusCode !== void 0 && (e.statusCode < 200 || e.statusCode >= 300) && k.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = wn(r, e), e), (e) => {
			throw s("network_error"), P && k.error("Encountered error running transport request:", e), e;
		})).then((e) => e, (e) => {
			if (e === vn) return P && k.error("Skipped sending event because buffer is full."), s("queue_overflow"), Promise.resolve({});
			throw e;
		});
	}
	return {
		send: a,
		flush: i
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
function En(e, t, n) {
	let r = [{ type: "client_report" }, {
		timestamp: n || p(),
		discarded_events: e
	}];
	return V(t ? { dsn: t } : {}, [r]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
function Dn(e) {
	let t = [];
	e.message && t.push(e.message);
	try {
		let n = e.exception.values[e.exception.values.length - 1];
		n != null && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`));
	} catch {}
	return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
function On(e) {
	var t, n, r;
	let { trace_id: i, parent_span_id: a, span_id: o, status: s, origin: c, data: l, op: u } = (t = (n = e.contexts) == null ? void 0 : n.trace) == null ? {} : t;
	return {
		data: l == null ? {} : l,
		description: e.transaction,
		op: u,
		parent_span_id: a,
		span_id: o == null ? "" : o,
		start_timestamp: (r = e.start_timestamp) == null ? 0 : r,
		status: s,
		timestamp: e.timestamp,
		trace_id: i == null ? "" : i,
		origin: c,
		profile_id: l == null ? void 0 : l[qe],
		exclusive_time: l == null ? void 0 : l[ge],
		measurements: e.measurements,
		is_segment: !0
	};
}
function kn(e) {
	return {
		type: "transaction",
		timestamp: e.timestamp,
		start_timestamp: e.start_timestamp,
		transaction: e.description,
		contexts: { trace: {
			trace_id: e.trace_id,
			span_id: e.span_id,
			parent_span_id: e.parent_span_id,
			op: e.op,
			status: e.status,
			origin: e.origin,
			data: {
				...e.data,
				...e.profile_id && { "sentry.profile_id": e.profile_id },
				...e.exclusive_time && { "sentry.exclusive_time": e.exclusive_time }
			}
		} },
		measurements: e.measurements
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/filtering-snippets.js
var An = [
	"forwarded",
	"-ip",
	"remote-",
	"via",
	"-user"
];
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/defaultPiiToCollectionOptions.js
function jn(e) {
	return e === !0 ? {
		userInfo: !0,
		cookies: !0,
		httpHeaders: {
			request: !0,
			response: !0
		},
		httpBodies: [
			"incomingRequest",
			"outgoingRequest",
			"incomingResponse",
			"outgoingResponse"
		],
		urlQueryParams: !0,
		graphQL: {
			document: !0,
			variables: !0
		},
		genAI: {
			inputs: !0,
			outputs: !0
		},
		databaseQueryData: !0,
		stackFrameVariables: !0,
		frameContextLines: 7
	} : {
		userInfo: !1,
		cookies: { deny: An },
		httpHeaders: {
			request: { deny: An },
			response: { deny: An }
		},
		httpBodies: [],
		urlQueryParams: { deny: An },
		graphQL: {
			document: !0,
			variables: !0
		},
		genAI: {
			inputs: !1,
			outputs: !1
		},
		databaseQueryData: !1,
		stackFrameVariables: !0,
		frameContextLines: 7
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
var Mn = {
	userInfo: !0,
	cookies: !0,
	httpHeaders: {
		request: !0,
		response: !0
	},
	httpBodies: [
		"incomingRequest",
		"outgoingRequest",
		"incomingResponse",
		"outgoingResponse"
	],
	urlQueryParams: !0,
	graphQL: {
		document: !0,
		variables: !0
	},
	genAI: {
		inputs: !0,
		outputs: !0
	},
	databaseQueryData: !0,
	stackFrameVariables: !0,
	frameContextLines: 5
};
function Nn(e) {
	var t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, ee, _, v, y, b;
	let x = e.dataCollection == null ? jn(e.sendDefaultPii) : Mn, S = (t = e.dataCollection) == null ? {} : t;
	return {
		userInfo: (n = S.userInfo) == null ? x.userInfo : n,
		cookies: (r = S.cookies) == null ? x.cookies : r,
		httpHeaders: {
			request: (i = (a = S.httpHeaders) == null ? void 0 : a.request) == null ? x.httpHeaders.request : i,
			response: (o = (s = S.httpHeaders) == null ? void 0 : s.response) == null ? x.httpHeaders.response : o
		},
		httpBodies: (c = S.httpBodies) == null ? x.httpBodies : c,
		urlQueryParams: (l = (u = S.urlQueryParams) == null ? S.queryParams : u) == null ? x.urlQueryParams : l,
		graphQL: {
			document: (d = (f = S.graphQL) == null ? void 0 : f.document) == null ? x.graphQL.document : d,
			variables: (p = (m = S.graphQL) == null ? void 0 : m.variables) == null ? x.graphQL.variables : p
		},
		genAI: {
			inputs: (h = (g = S.genAI) == null ? void 0 : g.inputs) == null ? x.genAI.inputs : h,
			outputs: (ee = (_ = S.genAI) == null ? void 0 : _.outputs) == null ? x.genAI.outputs : ee
		},
		databaseQueryData: (v = S.databaseQueryData) == null ? x.databaseQueryData : v,
		stackFrameVariables: (y = S.stackFrameVariables) == null ? x.stackFrameVariables : y,
		frameContextLines: (b = S.frameContextLines) == null ? x.frameContextLines : b
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/client.js
var Pn = "Not capturing exception because it's already been captured.", Fn = "Discarded session because of missing or non-string release", In = /* @__PURE__ */ Symbol.for("SentryInternalError"), Ln = /* @__PURE__ */ Symbol.for("SentryDoNotSendEventError"), Rn = 5e3;
function zn(e) {
	return {
		message: e,
		[In]: !0
	};
}
function Bn(e) {
	return {
		message: e,
		[Ln]: !0
	};
}
function Vn(e) {
	return Ne(e) && In in e;
}
function Hn(e) {
	return Ne(e) && Ln in e;
}
function Un(e, t, n, r, i) {
	let a = 0, o, s = !1;
	e.on(n, () => {
		a = 0, clearTimeout(o), s = !1;
	}), e.on(t, (t) => {
		if (a += r(t), a >= 8e5) i(e);
		else if (!s) {
			var n;
			let t = (n = e.getOptions()._flushInterval) == null ? Rn : n;
			t > 0 && (s = !0, o = Ht(setTimeout(() => {
				i(e);
			}, t)));
		}
	}), e.on("flush", () => {
		i(e);
	});
}
var Wn = class {
	constructor(e) {
		var t, n, r, i, a, o, s;
		if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = yn((t = (n = e.transportOptions) == null ? void 0 : n.bufferSize) == null ? 64 : t), this._dataCollection = Nn(e), e.dsn ? this._dsn = Ge(e.dsn) : P && k.warn("No DSN provided, client will not send events."), this._dsn) {
			let t = Kt(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0);
			this._transport = e.transport({
				tunnel: this._options.tunnel,
				recordDroppedEvent: this.recordDroppedEvent.bind(this),
				...e.transportOptions,
				url: t
			});
		}
		this._options.enableLogs = (r = this._options.enableLogs) == null ? (i = this._options._experiments) == null ? void 0 : i.enableLogs : r, this._options.enableLogs && Un(this, "afterCaptureLog", "flushLogs", Zn, cn), ((a = (o = this._options.enableMetrics) == null ? (s = this._options._experiments) == null ? void 0 : s.enableMetrics : o) == null || a) && Un(this, "afterCaptureMetric", "flushMetrics", Xn, pn);
	}
	captureException(e, t, n) {
		let r = b();
		if (ie(e)) return P && k.log(Pn), r;
		let i = {
			event_id: r,
			...t
		};
		return this._process(() => this.eventFromException(e, i).then((e) => this._captureEvent(e, i, n)).then((e) => e), "error"), i.event_id;
	}
	captureMessage(e, t, n, r) {
		let i = {
			event_id: b(),
			...n
		}, a = ze(e) ? e : String(e), o = he(e), s = o ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i);
		return this._process(() => s.then((e) => this._captureEvent(e, i, r)), o ? "unknown" : "error"), i.event_id;
	}
	captureEvent(e, t, n) {
		let r = b();
		if (t != null && t.originalException && ie(t.originalException)) return P && k.log(Pn), r;
		let i = {
			event_id: r,
			...t
		}, a = e.sdkProcessingMetadata || {}, o = a.capturedSpanScope, s = a.capturedSpanIsolationScope, c = Gn(e.type);
		return this._process(() => this._captureEvent(e, i, o || n, s), c), i.event_id;
	}
	captureSession(e) {
		this.sendSession(e), De(e, { init: !1 });
	}
	getDsn() {
		return this._dsn;
	}
	getOptions() {
		return this._options;
	}
	getDataCollectionOptions() {
		return this._dataCollection;
	}
	getSdkMetadata() {
		return this._options._metadata;
	}
	getTransport() {
		return this._transport;
	}
	async flush(e) {
		let t = this._transport;
		if (this.emit("flush"), !t) return !0;
		let n = await this._isClientDoneProcessing(e), r = await t.flush(e);
		return n && r;
	}
	async close(e) {
		let t = await this.flush(e);
		return this.getOptions().enabled = !1, this.emit("close"), t;
	}
	getEventProcessors() {
		return this._eventProcessors;
	}
	addEventProcessor(e) {
		this._eventProcessors.push(e);
	}
	init() {
		(this._isEnabled() || this._options.integrations.some(({ name: e }) => e.startsWith("Spotlight"))) && this._setupIntegrations();
	}
	getIntegrationByName(e) {
		return this._integrations[e];
	}
	getIntegrationNames() {
		return Object.keys(this._integrations);
	}
	addIntegration(e) {
		let t = this._integrations[e.name];
		!t && e.beforeSetup && e.beforeSetup(this), $t(this, e, this._integrations), t || Qt(this, [e]);
	}
	sendEvent(e, t = {}) {
		this.emit("beforeSendEvent", e, t);
		let n = _n(e, this), r = Rt(e, this._dsn, this._options._metadata, this._options.tunnel);
		for (let e of t.attachments || []) r = wt(r, At(e));
		n && (r = wt(r, n)), this.sendEnvelope(r).then((t) => this.emit("afterSendEvent", e, t));
	}
	sendSession(e) {
		let { release: t, environment: n = Ie } = this._options;
		if ("aggregates" in e) {
			let r = e.attrs || {};
			if (!r.release && !t) {
				P && k.warn(Fn);
				return;
			}
			r.release = r.release || t, r.environment = r.environment || n, e.attrs = r;
		} else {
			if (!e.release && !t) {
				P && k.warn(Fn);
				return;
			}
			e.release = e.release || t, e.environment = e.environment || n;
		}
		this.emit("beforeSendSession", e);
		let r = Lt(e, this._dsn, this._options._metadata, this._options.tunnel);
		this.sendEnvelope(r);
	}
	recordDroppedEvent(e, t, n = 1) {
		if (this._options.sendClientReports) {
			let r = `${e}:${t}`;
			P && k.log(`Recording outcome: "${r}"${n > 1 ? ` (${n} times)` : ""}`), this._outcomes[r] = (this._outcomes[r] || 0) + n;
		}
	}
	on(e, t) {
		let n = this._hooks[e] = this._hooks[e] || /* @__PURE__ */ new Set(), r = (...e) => t(...e);
		return n.add(r), () => {
			n.delete(r);
		};
	}
	emit(e, ...t) {
		let n = this._hooks[e];
		n && n.forEach((e) => e(...t));
	}
	async sendEnvelope(e) {
		if (this.emit("beforeEnvelope", e), this._isEnabled() && this._transport) try {
			return await this._transport.send(e);
		} catch (e) {
			return P && k.error("Error while sending envelope:", e), {};
		}
		return P && k.error("Transport disabled"), {};
	}
	registerCleanup(e) {}
	dispose() {}
	_setupIntegrations() {
		let { integrations: e } = this._options;
		this._integrations = Zt(this, e), Qt(this, e);
	}
	_updateSessionFromEvent(e, t) {
		var n;
		let r = t.level === "fatal", i = !1, a = (n = t.exception) == null ? void 0 : n.values;
		if (a) {
			i = !0, r = !1;
			for (let e of a) {
				var o;
				if (((o = e.mechanism) == null ? void 0 : o.handled) === !1) {
					r = !0;
					break;
				}
			}
		}
		let s = e.status === "ok";
		(s && e.errors === 0 || s && r) && (De(e, {
			...r && { status: "crashed" },
			errors: e.errors || Number(i || r)
		}), this.captureSession(e));
	}
	async _isClientDoneProcessing(e) {
		let t = 0;
		for (; !e || t < e;) {
			if (await new Promise((e) => setTimeout(e, 1)), !this._numProcessing) return !0;
			t++;
		}
		return !1;
	}
	_isEnabled() {
		return this.getOptions().enabled !== !1 && this._transport !== void 0;
	}
	_prepareEvent(e, t, n, r) {
		let i = this.getOptions(), a = this.getIntegrationNames();
		return !t.integrations && a.length && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Oe(i, e, t, n, this, r).then((e) => {
			var r;
			return e === null ? e : (this.emit("postprocessEvent", e, t), e.contexts = {
				trace: {
					...(r = e.contexts) == null ? void 0 : r.trace,
					...ee(n)
				},
				...e.contexts
			}, e.sdkProcessingMetadata = {
				dynamicSamplingContext: xe(this, n),
				...e.sdkProcessingMetadata
			}, e);
		});
	}
	_captureEvent(e, t = {}, n = N(), r = w()) {
		return P && Jn(e) && k.log(`Captured error event \`${Dn(e)[0] || "<unknown>"}\``), this._processEvent(e, t, n, r).then((e) => e.event_id, (e) => {
			P && (Hn(e) ? k.log(e.message) : Vn(e) ? k.warn(e.message) : k.warn(e));
		});
	}
	_processEvent(e, t, n, r) {
		let i = this.getOptions(), { sampleRate: a } = i, o = Yn(e), s = Jn(e), c = `before send for type \`${e.type || "error"}\``, l = a === void 0 ? void 0 : _t(a);
		if (s && typeof l == "number" && le() > l) return this.recordDroppedEvent("sample_rate", "error"), Ue(Bn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
		let u = Gn(e.type);
		return this._prepareEvent(e, t, n, r).then((e) => {
			var n;
			if (e === null) throw this.recordDroppedEvent("event_processor", u), Bn("An event processor returned `null`, will not send event.");
			return ((n = t.data) == null ? void 0 : n.__sentry__) === !0 ? e : Kn(qn(this, i, e, t), c);
		}).then((i) => {
			if (i === null) {
				if (this.recordDroppedEvent("before_send", u), o) {
					let t = 1 + (e.spans || []).length;
					this.recordDroppedEvent("before_send", "span", t);
				}
				throw Bn(`${c} returned \`null\`, will not send event.`);
			}
			let a = n.getSession() || r.getSession();
			if (s && a && this._updateSessionFromEvent(a, i), o) {
				var l;
				let e = (((l = i.sdkProcessingMetadata) == null ? void 0 : l.spanCountBeforeProcessing) || 0) - (i.spans ? i.spans.length : 0);
				e > 0 && this.recordDroppedEvent("before_send", "span", e);
			}
			let d = i.transaction_info;
			return o && d && i.transaction !== e.transaction && (i.transaction_info = {
				...d,
				source: "custom"
			}), this.sendEvent(i, t), i;
		}).then(null, (e) => {
			throw Hn(e) || Vn(e) ? e : (this.captureException(e, {
				mechanism: {
					handled: !1,
					type: "internal"
				},
				data: { __sentry__: !0 },
				originalException: e
			}), zn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`));
		});
	}
	_process(e, t) {
		this._numProcessing++, this._promiseBuffer.add(e).then((e) => (this._numProcessing--, e), (e) => (this._numProcessing--, e === vn && this.recordDroppedEvent("queue_overflow", t), e));
	}
	_clearOutcomes() {
		let e = this._outcomes;
		return this._outcomes = {}, Object.entries(e).map(([e, t]) => {
			let [n, r] = e.split(":");
			return {
				reason: n,
				category: r,
				quantity: t
			};
		});
	}
	_flushOutcomes() {
		P && k.log("Flushing outcomes...");
		let e = this._clearOutcomes();
		if (e.length === 0) {
			P && k.log("No outcomes to send");
			return;
		}
		if (!this._dsn) {
			P && k.log("No dsn provided, will not send outcomes");
			return;
		}
		P && k.log("Sending outcomes:", e);
		let t = En(e, this._options.tunnel && E(this._dsn));
		this.sendEnvelope(t);
	}
};
function Gn(e) {
	return e === "replay_event" ? "replay" : e || "error";
}
function Kn(e, t) {
	let n = `${t} must return \`null\` or a valid event.`;
	if (ve(e)) return e.then((e) => {
		if (!Ee(e) && e !== null) throw zn(n);
		return e;
	}, (e) => {
		throw zn(`${t} rejected with ${e}`);
	});
	if (!Ee(e) && e !== null) throw zn(n);
	return e;
}
function qn(e, t, n, r) {
	let { beforeSend: i, beforeSendTransaction: a, ignoreSpans: o } = t, s = !Ct(t.beforeSendSpan) && t.beforeSendSpan, c = n;
	if (Jn(c) && i) return i(c, r);
	if (Yn(c)) {
		if (s || o) {
			let t = On(c);
			if (o != null && o.length && yt({
				description: t.description,
				op: t.op,
				attributes: t.data
			}, o)) return null;
			if (s) {
				let e = s(t);
				e ? c = re(n, kn(e)) : Ae();
			}
			if (c.spans) {
				let t = [], n = c.spans;
				for (let e of n) {
					if (o != null && o.length && yt({
						description: e.description,
						op: e.op,
						attributes: e.data
					}, o)) {
						xt(n, e);
						continue;
					}
					if (s) {
						let n = s(e);
						n ? t.push(n) : (Ae(), t.push(e));
					} else t.push(e);
				}
				let r = c.spans.length - t.length;
				r && e.recordDroppedEvent("before_send", "span", r), c.spans = t;
			}
		}
		if (a) {
			if (c.spans) {
				let e = c.spans.length;
				c.sdkProcessingMetadata = {
					...n.sdkProcessingMetadata,
					spanCountBeforeProcessing: e
				};
			}
			return a(c, r);
		}
	}
	return c;
}
function Jn(e) {
	return e.type === void 0;
}
function Yn(e) {
	return e.type === "transaction";
}
function Xn(e) {
	let t = 0;
	return e.name && (t += e.name.length * 2), t += 8, t + Qn(e.attributes);
}
function Zn(e) {
	let t = 0;
	return e.message && (t += e.message.length * 2), t + Qn(e.attributes);
}
function Qn(e) {
	if (!e) return 0;
	let t = 0;
	return Object.values(e).forEach((e) => {
		Array.isArray(e) ? t += e.length * $n(e[0]) : he(e) ? t += $n(e) : t += 100;
	}), t;
}
function $n(e) {
	return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/sdk.js
function er(e, t) {
	t.debug === !0 && (P ? k.enable() : je(() => {
		console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
	})), N().update(t.initialScope);
	let n = new e(t);
	return tr(n), n.init(), n;
}
function tr(e) {
	N().setClient(e);
}
var nr = 5e3, rr = 36e5;
function ir(e) {
	function t(...e) {
		P && k.log("[Offline]:", ...e);
	}
	return (n) => {
		let r = e(n);
		if (!n.createStore) throw Error("No `createStore` function was provided");
		let i = n.createStore(n), a = nr, o;
		function s(e, t, r) {
			return Et(e, ["client_report"]) ? !1 : !n.shouldStore || n.shouldStore(e, t, r);
		}
		function c(e) {
			o && clearTimeout(o), o = Ht(setTimeout(async () => {
				o = void 0;
				let e = await i.shift();
				e && (t("Attempting to send previously queued event"), e[0].sent_at = new Date(T()).toISOString(), u(e, !0).catch((e) => {
					t("Failed to retry sending", e);
				}));
			}, e));
		}
		function l() {
			o || (c(a), a = Math.min(a * 2, rr));
		}
		async function u(e, o = !1) {
			if (!o && Et(e, ["replay_event", "replay_recording"])) return await i.push(e), c(100), {};
			try {
				if (n.shouldSend && await n.shouldSend(e) === !1) throw Error("Envelope not sent because `shouldSend` callback returned false");
				let t = await r.send(e), i = 100;
				if (t) {
					var u, d;
					if ((u = t.headers) != null && u["retry-after"]) i = xn(t.headers["retry-after"]);
					else if ((d = t.headers) != null && d["x-sentry-rate-limits"]) i = 6e4;
					else if ((t.statusCode || 0) >= 400) return t;
				}
				return c(i), a = nr, t;
			} catch (n) {
				if (await s(e, n, a)) return o ? await i.unshift(e) : await i.push(e), l(), t("Error sending. Event queued.", n), {};
				throw n;
			}
		}
		return n.flushAtStartup && l(), {
			send: u,
			flush: (e) => (e === void 0 && (a = nr, c(100)), r.flush(e))
		};
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/url.js
function ar(e) {
	if (!e) return {};
	let t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
	if (!t) return {};
	let n = t[6] || "", r = t[8] || "";
	return {
		host: t[4],
		path: t[5],
		protocol: t[2],
		search: n,
		hash: r,
		relative: t[5] + n + r
	};
}
function or(e, t = !0) {
	if (e.startsWith("data:")) {
		let n = e.match(/^data:([^;,]+)/), r = n ? n[1] : "text/plain", i = e.includes(";base64,"), a = e.indexOf(","), o = "";
		if (t && a !== -1) {
			let t = e.slice(a + 1);
			o = t.length > 10 ? `${t.slice(0, 10)}... [truncated]` : t;
		}
		return `data:${r}${i ? ",base64" : ""}${o ? `,${o}` : ""}`;
	}
	return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
function sr(e) {
	if ("aggregates" in e) {
		var t;
		((t = e.attrs) == null ? void 0 : t.ip_address) === void 0 && (e.attrs = {
			...e.attrs,
			ip_address: "{{auto}}"
		});
	} else e.ipAddress === void 0 && (e.ipAddress = "{{auto}}");
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
function cr(e, t, n = [t], r = "npm") {
	let i = (e._metadata = e._metadata || {}).sdk = e._metadata.sdk || {};
	i.name || (i.name = `sentry.javascript.${t}`, i.packages = n.map((e) => ({
		name: `${r}:@sentry/${e}`,
		version: Ye
	})), i.version = Ye);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
var lr = 100;
function U(e, t) {
	let n = h(), r = w();
	if (!n) return;
	let { beforeBreadcrumb: i = null, maxBreadcrumbs: a = lr } = n.getOptions();
	if (a <= 0) return;
	let o = {
		timestamp: p(),
		...e
	}, s = i ? je(() => i(o, t)) : o;
	s !== null && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
var ur = "FunctionToString", dr = /* @__PURE__ */ new WeakMap(), fr = H((() => ({
	name: ur,
	setupOnce() {
		let e = Function.prototype.toString;
		try {
			Function.prototype.toString = function(...t) {
				var n;
				let r = x(this), i;
				try {
					dr.has(h()) && r !== void 0 && (i = r);
				} catch {}
				return e.apply((n = i) == null ? this : n, t);
			};
		} catch {}
	},
	setup(e) {
		dr.set(e, !0);
	}
}))), pr = [
	/^Script error\.?$/,
	/^Javascript error: Script error\.? on line 0$/,
	/^ResizeObserver loop completed with undelivered notifications.$/,
	/^Cannot redefine property: googletag$/,
	/^Can't find variable: gmo$/,
	/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
	/can't redefine non-configurable property "solana"/,
	/vv\(\)\.getRestrictions is not a function/,
	/Can't find variable: _AutofillCallbackHandler/,
	/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
	/^Java exception was raised during method invocation$/
], mr = "EventFilters", hr = H((e = {}) => {
	let t;
	return {
		name: mr,
		setup(n) {
			t = _r(e, n.getOptions());
		},
		processEvent(n, r, i) {
			return t || (t = _r(e, i.getOptions())), vr(n, t) ? null : n;
		}
	};
}), gr = H(((e = {}) => ({
	...hr(e),
	name: "InboundFilters"
})));
function _r(e = {}, t = {}) {
	return {
		allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
		denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
		ignoreErrors: [
			...e.ignoreErrors || [],
			...t.ignoreErrors || [],
			...e.disableErrorDefaults ? [] : pr
		],
		ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []]
	};
}
function vr(e, t) {
	if (!e.type) {
		if (yr(e, t.ignoreErrors)) return P && k.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${_(e)}`), !0;
		if (Tr(e)) return P && k.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${_(e)}`), !0;
		if (xr(e, t.denyUrls)) return P && k.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${_(e)}.
Url: ${wr(e)}`), !0;
		if (!Sr(e, t.allowUrls)) return P && k.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${_(e)}.
Url: ${wr(e)}`), !0;
	} else if (e.type === "transaction" && br(e, t.ignoreTransactions)) return P && k.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${_(e)}`), !0;
	return !1;
}
function yr(e, t) {
	return t != null && t.length ? Dn(e).some((e) => F(e, t)) : !1;
}
function br(e, t) {
	if (!(t != null && t.length)) return !1;
	let n = e.transaction;
	return n ? F(n, t) : !1;
}
function xr(e, t) {
	if (!(t != null && t.length)) return !1;
	let n = wr(e);
	return n ? F(n, t) : !1;
}
function Sr(e, t) {
	if (!(t != null && t.length)) return !0;
	let n = wr(e);
	return !n || F(n, t);
}
function Cr(e = []) {
	for (let t = e.length - 1; t >= 0; t--) {
		let n = e[t];
		if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]") return n.filename || null;
	}
	return null;
}
function wr(e) {
	try {
		var t, n, r;
		let i = [...(t = (n = e.exception) == null ? void 0 : n.values) == null ? [] : t].reverse().find((e) => {
			var t, n;
			return ((t = e.mechanism) == null ? void 0 : t.parent_id) === void 0 && ((n = e.stacktrace) == null || (n = n.frames) == null ? void 0 : n.length);
		}), a = i == null || (r = i.stacktrace) == null ? void 0 : r.frames;
		return a ? Cr(a) : null;
	} catch {
		return P && k.error(`Cannot extract url for event ${_(e)}`), null;
	}
}
function Tr(e) {
	var t;
	return !((t = e.exception) == null || (t = t.values) == null) && t.length ? !e.message && !e.exception.values.some((e) => e.stacktrace || e.type && e.type !== "Error" || e.value) : !1;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
function Er(e, t, n, r, i, a) {
	var o;
	if (!((o = i.exception) != null && o.values) || !a || !He(a.originalException, Error)) return;
	let s = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
	s && (i.exception.values = Dr(e, t, r, a.originalException, n, i.exception.values, s, 0));
}
function Dr(e, t, n, r, i, a, o, s) {
	if (a.length >= n + 1) return a;
	let c = [...a];
	if (He(r[i], Error)) {
		kr(o, s, r);
		let a = e(t, r[i]), l = c.length;
		Ar(a, i, l, s), c = Dr(e, t, n, r[i], i, [a, ...c], a, l);
	}
	return Or(r) && r.errors.forEach((a, l) => {
		if (He(a, Error)) {
			kr(o, s, r);
			let u = e(t, a), d = c.length;
			Ar(u, `errors[${l}]`, d, s), c = Dr(e, t, n, a, i, [u, ...c], u, d);
		}
	}), c;
}
function Or(e) {
	return Array.isArray(e.errors);
}
function kr(e, t, n) {
	e.mechanism = {
		handled: !0,
		type: "auto.core.linked_errors",
		...Or(n) && { is_exception_group: !0 },
		...e.mechanism,
		exception_id: t
	};
}
function Ar(e, t, n, r) {
	e.mechanism = {
		handled: !0,
		...e.mechanism,
		type: "chained",
		source: t,
		exception_id: n,
		parent_id: r
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
function jr(e) {
	return ae(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
}
function Mr(e) {
	return jr(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/console.js
var Nr = /* @__PURE__ */ new Set([]);
function Pr(e) {
	let t = "console", n = R(t, e);
	return z(t, Ir), n;
}
var Fr = /* @__PURE__ */ new Set();
function Ir() {
	"console" in D && Le.forEach(function(e) {
		Fr.has(e) || !(e in D.console) || (Fr.add(e), j(D.console, e, function(t) {
			return we[e] = t, function(...t) {
				let n = t[0], r = we[e], i = Nr.size && typeof n == "string" && F(n, Nr);
				i || B("console", {
					args: t,
					level: e
				}), (!i || P && k.isEnabled()) && (r == null || r.apply(D.console, t));
			};
		}));
	});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/severity.js
function Lr(e) {
	return e === "warn" ? "warning" : [
		"fatal",
		"error",
		"warning",
		"log",
		"info",
		"debug"
	].includes(e) ? e : "log";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
var Rr = "Dedupe", zr = H((() => {
	let e;
	return {
		name: Rr,
		processEvent(t) {
			if (t.type) return t;
			try {
				if (Br(t, e)) return P && k.warn("Event dropped due to being a duplicate of previously captured event."), null;
			} catch {}
			return e = t;
		}
	};
}));
function Br(e, t) {
	return t ? !!(Vr(e, t) || Hr(e, t)) : !1;
}
function Vr(e, t) {
	let n = e.message, r = t.message;
	return !(!n && !r || n && !r || !n && r || n !== r || !Wr(e, t) || !Ur(e, t));
}
function Hr(e, t) {
	let n = Gr(t), r = Gr(e);
	return !(!n || !r || n.type !== r.type || n.value !== r.value || !Wr(e, t) || !Ur(e, t));
}
function Ur(e, t) {
	let n = We(e), r = We(t);
	if (!n && !r) return !0;
	if (n && !r || !n && r || (n = n, r = r, r.length !== n.length)) return !1;
	for (let e = 0; e < r.length; e++) {
		let t = r[e], i = n[e];
		if (t.filename !== i.filename || t.lineno !== i.lineno || t.colno !== i.colno || t.function !== i.function) return !1;
	}
	return !0;
}
function Wr(e, t) {
	let n = e.fingerprint, r = t.fingerprint;
	if (!n && !r) return !0;
	if (n && !r || !n && r) return !1;
	n = n, r = r;
	try {
		return n.join("") === r.join("");
	} catch {
		return !1;
	}
}
function Gr(e) {
	var t;
	return (t = e.exception) == null || (t = t.values) == null ? void 0 : t[0];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
var Kr = "ConversationId", qr = H((() => ({
	name: Kr,
	setup(e) {
		e.on("spanStart", (e) => {
			let t = N().getScopeData(), n = w().getScopeData(), r = t.conversationId || n.conversationId;
			if (r) {
				let { op: t, data: n, description: i } = Te(e);
				if (!(t != null && t.startsWith("gen_ai.")) && !n["ai.operationId"] && !(i != null && i.startsWith("ai."))) return;
				e.setAttribute(Je, r);
			}
		});
	}
})));
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
function Jr(e) {
	if (e !== void 0) {
		if (e >= 400 && e < 500) return "warning";
		if (e >= 500) return "error";
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/supports.js
var W = D;
function Yr() {
	return "history" in W && !!W.history;
}
function Xr() {
	if (!("fetch" in W)) return !1;
	try {
		return new Headers(), new Request("data:,"), new Response(), !0;
	} catch {
		return !1;
	}
}
function Zr(e) {
	return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
}
function Qr() {
	if (typeof EdgeRuntime == "string") return !0;
	if (!Xr()) return !1;
	if (Zr(W.fetch)) return !0;
	let e = !1, t = W.document;
	if (t && typeof t.createElement == "function") try {
		var n;
		let r = t.createElement("iframe");
		r.hidden = !0, t.head.appendChild(r), (n = r.contentWindow) != null && n.fetch && (e = Zr(r.contentWindow.fetch)), t.head.removeChild(r);
	} catch (e) {
		P && k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e);
	}
	return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/fetch.js
function $r(e, t) {
	let n = "fetch", r = R(n, e);
	return z(n, () => ei(void 0, t)), r;
}
function ei(e, t = !1) {
	t && !Qr() || j(D, "fetch", function(t) {
		return function(...n) {
			let r = /* @__PURE__ */ Error(), { method: i, url: a } = ri(n), o = {
				args: n,
				fetchData: {
					method: i,
					url: a
				},
				startTimestamp: A() * 1e3,
				virtualError: r,
				headers: ii(n)
			};
			return e || B("fetch", { ...o }), t.apply(D, n).then(async (t) => (e ? e(t) : B("fetch", {
				...o,
				endTimestamp: A() * 1e3,
				response: t
			}), t), (e) => {
				var t;
				B("fetch", {
					...o,
					endTimestamp: A() * 1e3,
					error: e
				}), ae(e) && e.stack === void 0 && (e.stack = r.stack, v(e, "framesToPop", 1));
				let n = h(), i = (t = n == null ? void 0 : n.getOptions().enhanceFetchErrorMessages) == null ? "always" : t;
				if (i !== !1 && e instanceof TypeError && (e.message === "Failed to fetch" || e.message === "Load failed" || e.message === "NetworkError when attempting to fetch resource.")) try {
					let t = new URL(o.fetchData.url).host;
					i === "always" ? e.message = `${e.message} (${t})` : v(e, "__sentry_fetch_url_host__", t);
				} catch {}
				throw e;
			});
		};
	});
}
function ti(e, t) {
	return Ne(e) && !!e[t];
}
function ni(e) {
	return typeof e == "string" ? e : e ? ti(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
}
function ri(e) {
	if (e.length === 0) return {
		method: "GET",
		url: ""
	};
	if (e.length === 2) {
		let [t, n] = e;
		return {
			url: ni(t),
			method: ti(n, "method") ? String(n.method).toUpperCase() : Fe(t) && ti(t, "method") ? String(t.method).toUpperCase() : "GET"
		};
	}
	let t = e[0];
	return {
		url: ni(t),
		method: ti(t, "method") ? String(t.method).toUpperCase() : "GET"
	};
}
function ii(e) {
	let [t, n] = e;
	try {
		if (typeof n == "object" && n && "headers" in n && n.headers) return new Headers(n.headers);
		if (Fe(t)) return new Headers(t.headers);
	} catch {}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/browser.js
var ai = D;
function oi() {
	try {
		return ai.document.location.href;
	} catch {
		return "";
	}
}
function si(e, t = 5) {
	if (!ai.HTMLElement) return null;
	let n = e;
	for (let e = 0; e < t; e++) {
		if (!n) return null;
		if (n instanceof HTMLElement) {
			if (n.dataset.sentryComponent) return n.dataset.sentryComponent;
			if (n.dataset.sentryElement) return n.dataset.sentryElement;
		}
		n = n.parentNode;
	}
	return null;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/helpers.js
var G = D, ci = 0;
function li() {
	return ci > 0;
}
function ui() {
	ci++, setTimeout(() => {
		ci--;
	});
}
function K(e, t = {}) {
	function n(e) {
		return typeof e == "function";
	}
	if (!n(e)) return e;
	try {
		if (Object.prototype.hasOwnProperty.call(e, "__sentry_wrapped__")) {
			let t = e.__sentry_wrapped__;
			return typeof t == "function" ? t : e;
		}
		if (x(e)) return e;
	} catch {
		return e;
	}
	let r = function(...n) {
		D._sentryWrappedDepth = (D._sentryWrappedDepth || 0) + 1;
		try {
			let r = n.map((e) => K(e, t));
			return e.apply(this, r);
		} catch (e) {
			throw ui(), g((r) => {
				r.addEventProcessor((e) => (t.mechanism && (ne(e, void 0, void 0), C(e, t.mechanism)), e.extra = {
					...e.extra,
					arguments: n
				}, e)), Me(e);
			}), e;
		} finally {
			D._sentryWrappedDepth = (D._sentryWrappedDepth || 0) - 1;
		}
	};
	try {
		for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
	} catch {}
	de(r, e), v(e, "__sentry_wrapped__", r);
	try {
		Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { get() {
			return e.name;
		} });
	} catch {}
	return r;
}
function di() {
	let e = oi(), { referrer: t } = G.document || {}, { userAgent: n } = G.navigator || {};
	return {
		url: e,
		headers: {
			...t && { Referer: t },
			...n && { "User-Agent": n }
		}
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js
function fi(e, t) {
	let n = hi(e, t), r = {
		type: bi(t),
		value: xi(t)
	};
	return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
}
function pi(e, t, n, r) {
	let i = h(), a = i == null ? void 0 : i.getOptions().normalizeDepth, o = Oi(t), s = { __serialized__: ce(t, a) };
	if (o) return {
		exception: { values: [fi(e, o)] },
		extra: s
	};
	let c = {
		exception: { values: [{
			type: be(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
			value: Ei(t, { isUnhandledRejection: r })
		}] },
		extra: s
	};
	if (n) {
		let t = hi(e, n);
		t.length && (c.exception.values[0].stacktrace = { frames: t });
	}
	return c;
}
function mi(e, t) {
	return { exception: { values: [fi(e, t)] } };
}
function hi(e, t) {
	let n = t.stacktrace || t.stack || "", r = _i(t), i = vi(t);
	try {
		return e(n, r, i);
	} catch {}
	return [];
}
var gi = /Minified React error #\d+;/i;
function _i(e) {
	return e && gi.test(e.message) ? 1 : 0;
}
function vi(e) {
	return typeof e.framesToPop == "number" ? e.framesToPop : 0;
}
function yi(e) {
	return typeof WebAssembly < "u" && WebAssembly.Exception !== void 0 && e instanceof WebAssembly.Exception;
}
function bi(e) {
	let t = e == null ? void 0 : e.name;
	return !t && yi(e) ? e.message && Array.isArray(e.message) && e.message.length == 2 ? e.message[0] : "WebAssembly.Exception" : t;
}
function xi(e) {
	let t = e == null ? void 0 : e.message;
	return yi(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? Mr(t.error) : Mr(e) : "No error message";
}
function Si(e, t, n, r) {
	let i = wi(e, t, (n == null ? void 0 : n.syntheticException) || void 0, r);
	return C(i), i.level = "error", n != null && n.event_id && (i.event_id = n.event_id), ye(i);
}
function Ci(e, t, n = "info", r, i) {
	let a = Ti(e, t, (r == null ? void 0 : r.syntheticException) || void 0, i);
	return a.level = n, r != null && r.event_id && (a.event_id = r.event_id), ye(a);
}
function wi(e, t, n, r, i) {
	let a;
	if (f(t) && t.error) return mi(e, t.error);
	if (ue(t) || fe(t)) {
		let i = t;
		if ("stack" in t) {
			var o;
			a = mi(e, t);
			let i = (o = a.exception) == null || (o = o.values) == null ? void 0 : o[0];
			if (r && n && i && !i.stacktrace) {
				let t = hi(e, n);
				t.length && (i.stacktrace = { frames: t }, C(a, { synthetic: !0 }));
			}
		} else {
			let t = i.name || (ue(i) ? "DOMError" : "DOMException"), o = i.message ? `${t}: ${i.message}` : t;
			a = Ti(e, o, n, r), ne(a, o);
		}
		return "code" in i && (a.tags = {
			...a.tags,
			"DOMException.code": `${i.code}`
		}), a;
	}
	return ae(t) ? mi(e, t) : Ee(t) || be(t) ? (a = pi(e, t, n, i), C(a, { synthetic: !0 }), a) : (a = Ti(e, t, n, r), ne(a, `${t}`, void 0), C(a, { synthetic: !0 }), a);
}
function Ti(e, t, n, r) {
	let i = {};
	if (r && n) {
		let r = hi(e, n);
		r.length && (i.exception = { values: [{
			value: t,
			stacktrace: { frames: r }
		}] }), C(i, { synthetic: !0 });
	}
	if (ze(t)) {
		let { __sentry_template_string__: e, __sentry_template_values__: n } = t;
		return i.logentry = {
			message: e,
			params: n
		}, i;
	}
	return i.message = t, i;
}
function Ei(e, { isUnhandledRejection: t }) {
	let n = S(e), r = t ? "promise rejection" : "exception";
	return f(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : be(e) ? `Event \`${Di(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
}
function Di(e) {
	try {
		let t = Object.getPrototypeOf(e);
		return t ? t.constructor.name : void 0;
	} catch {}
}
function Oi(e) {
	return Object.values(e).find((e) => e instanceof Error);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/client.js
var ki = class extends Wn {
	constructor(e) {
		var t;
		let n = Ai(e);
		cr(n, "browser", ["browser"], G.SENTRY_SDK_SOURCE || tn()), super(n);
		let { userInfo: r } = this.getDataCollectionOptions();
		(t = n._metadata) != null && t.sdk && (n._metadata.sdk.settings = {
			infer_ip: r ? "auto" : "never",
			...n._metadata.sdk.settings
		});
		let { sendClientReports: i } = this._options;
		G.document && G.document.addEventListener("visibilitychange", () => {
			G.document.visibilityState === "hidden" && (i && this._flushOutcomes(), queueMicrotask(() => {
				this.flush();
			}));
		}), r && this.on("beforeSendSession", sr);
	}
	eventFromException(e, t) {
		return Si(this._options.stackParser, e, t, this._options.attachStacktrace);
	}
	eventFromMessage(e, t = "info", n) {
		return Ci(this._options.stackParser, e, t, n, this._options.attachStacktrace);
	}
	_prepareEvent(e, t, n, r) {
		return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n, r);
	}
};
function Ai(e) {
	var t;
	return {
		release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : (t = G.SENTRY_RELEASE) == null ? void 0 : t.id,
		sendClientReports: !0,
		parentSpanIsAlwaysRootSpan: !0,
		...e
	};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/debug-build.js
var ji = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = D;
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/metrics/web-vitals/lib/globalListeners.js
function Mi(e, t, n) {
	q.document && q.addEventListener(e, t, n);
}
function Ni(e, t, n) {
	q.document && q.removeEventListener(e, t, n);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/metrics/web-vitals/lib/runOnce.js
var Pi = (e) => {
	let t = !1;
	return () => {
		t || (e(), t = !0);
	};
}, Fi = (e) => {
	var t;
	let n = q.requestIdleCallback || q.setTimeout;
	((t = q.document) == null ? void 0 : t.visibilityState) === "hidden" ? e() : (e = Pi(e), Mi("visibilitychange", e, {
		once: !0,
		capture: !0
	}), Mi("pagehide", e, {
		once: !0,
		capture: !0
	}), n(() => {
		e(), Ni("visibilitychange", e, { capture: !0 }), Ni("pagehide", e, { capture: !0 });
	}));
}, Ii = 80, J = {};
try {
	typeof Node < "u" && (J.parentNode = Object.getOwnPropertyDescriptor(Node.prototype, "parentNode").get), typeof Element < "u" && (J.tagName = Object.getOwnPropertyDescriptor(Element.prototype, "tagName").get, J.id = Object.getOwnPropertyDescriptor(Element.prototype, "id").get, J.className = Object.getOwnPropertyDescriptor(Element.prototype, "className").get, J.getAttribute = Element.prototype.getAttribute), typeof HTMLElement < "u" && (J.dataset = Object.getOwnPropertyDescriptor(HTMLElement.prototype, "dataset").get);
} catch {}
function Y(e, t, n) {
	let r = J[t];
	if (r) try {
		return r.call(e, n);
	} catch {}
	let i = e[t];
	return typeof i == "function" ? i.call(e, n) : i;
}
function Li(e, t = {}) {
	if (!e) return "<unknown>";
	try {
		let n = e, r = [], i = 0, a = 0, o, s = Array.isArray(t) ? t : t.keyAttrs, c = !Array.isArray(t) && t.maxStringLength || Ii;
		for (; n && i++ < 5 && (o = Ri(n, s), !(o === "html" || i > 1 && a + r.length * 3 + o.length >= c));) r.push(o), a += o.length, n = Y(n, "parentNode");
		return r.reverse().join(" > ");
	} catch {
		return "<unknown>";
	}
}
function Ri(e, t) {
	let n = [], r = Y(e, "tagName");
	if (!r) return "";
	if (typeof HTMLElement < "u" && e instanceof HTMLElement) {
		let t = Y(e, "dataset");
		if (t) {
			if (t.sentryComponent) return t.sentryComponent;
			if (t.sentryElement) return t.sentryElement;
		}
	}
	n.push(r.toLowerCase());
	let i = t != null && t.length ? t.filter((t) => Y(e, "getAttribute", t)).map((t) => [t, Y(e, "getAttribute", t)]) : null;
	if (i != null && i.length) i.forEach((e) => {
		n.push(`[${e[0]}="${e[1]}"]`);
	});
	else {
		let t = Y(e, "id");
		t && n.push(`#${t}`);
		let r = Y(e, "className");
		if (r && M(r)) {
			let e = r.split(/\s+/);
			for (let t of e) n.push(`.${t}`);
		}
	}
	for (let t of [
		"aria-label",
		"type",
		"name",
		"title",
		"alt"
	]) {
		let r = Y(e, "getAttribute", t);
		r && n.push(`[${t}="${r}"]`);
	}
	return n.join("");
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/dom.js
var zi = 1e3, Bi, Vi, Hi;
function Ui(e) {
	R("dom", e), z("dom", Wi);
}
function Wi() {
	if (!q.document) return;
	let e = B.bind(null, "dom"), t = qi(e, !0);
	q.document.addEventListener("click", t, !1), q.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t) => {
		var n, r;
		let i = (n = q[t]) == null ? void 0 : n.prototype;
		!(i == null || (r = i.hasOwnProperty) == null) && r.call(i, "addEventListener") && (j(i, "addEventListener", function(t) {
			return function(n, r, i) {
				if (n === "click" || n == "keypress") try {
					let r = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, a = r[n] = r[n] || { refCount: 0 };
					if (!a.handler) {
						let r = qi(e);
						a.handler = r, t.call(this, n, r, i);
					}
					a.refCount++;
				} catch {}
				return t.call(this, n, r, i);
			};
		}), j(i, "removeEventListener", function(e) {
			return function(t, n, r) {
				if (t === "click" || t == "keypress") try {
					let n = this.__sentry_instrumentation_handlers__ || {}, i = n[t];
					i && (i.refCount--, i.refCount <= 0 && (e.call(this, t, i.handler, r), i.handler = void 0, delete n[t]), Object.keys(n).length === 0 && delete this.__sentry_instrumentation_handlers__);
				} catch {}
				return e.call(this, t, n, r);
			};
		}));
	});
}
function Gi(e) {
	if (e.type !== Vi) return !1;
	try {
		if (!e.target || e.target._sentryId !== Hi) return !1;
	} catch {}
	return !0;
}
function Ki(e, t) {
	return e === "keypress" ? t != null && t.tagName ? !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) : !0 : !1;
}
function qi(e, t = !1) {
	return (n) => {
		if (!n || n._sentryCaptured) return;
		let r = Ji(n);
		if (Ki(n.type, r)) return;
		v(n, "_sentryCaptured", !0), r && !r._sentryId && v(r, "_sentryId", b());
		let i = n.type === "keypress" ? "input" : n.type;
		Gi(n) || (e({
			event: n,
			name: i,
			global: t
		}), Vi = n.type, Hi = r ? r._sentryId : void 0), clearTimeout(Bi), Bi = q.setTimeout(() => {
			Hi = void 0, Vi = void 0;
		}, zi);
	};
}
function Ji(e) {
	try {
		return e.target;
	} catch {
		return null;
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/history.js
var Yi;
function Xi(e) {
	let t = "history";
	R(t, e), z(t, Zi);
}
function Zi() {
	if (q.addEventListener("popstate", () => {
		let e = q.location.href, t = Yi;
		Yi = e, t !== e && B("history", {
			from: t,
			to: e
		});
	}), !Yr()) return;
	function e(e) {
		return function(...t) {
			let n = t.length > 2 ? t[2] : void 0;
			if (n) {
				let r = Yi, i = Qi(String(n));
				if (Yi = i, r === i) return e.apply(this, t);
				B("history", {
					from: r,
					to: i
				});
			}
			return e.apply(this, t);
		};
	}
	j(q.history, "pushState", e), j(q.history, "replaceState", e);
}
function Qi(e) {
	try {
		return new URL(e, q.location.origin).toString();
	} catch {
		return e;
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/getNativeImplementation.js
var $i = {};
function ea(e) {
	let t = $i[e];
	if (t) return t;
	let n = q[e];
	if (Zr(n)) return $i[e] = n.bind(q);
	let r = q.document;
	if (r && typeof r.createElement == "function") try {
		let t = r.createElement("iframe");
		t.hidden = !0, r.head.appendChild(t);
		let i = t.contentWindow;
		i != null && i[e] && (n = i[e]), r.head.removeChild(t);
	} catch (t) {
		ji && k.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, t);
	}
	return n && ($i[e] = n.bind(q));
}
function ta(e) {
	$i[e] = void 0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/xhr.js
var X = "__sentry_xhr_v3__";
function na(e) {
	R("xhr", e), z("xhr", ra);
}
function ra() {
	if (!q.XMLHttpRequest) return;
	let e = XMLHttpRequest.prototype;
	e.open = new Proxy(e.open, { apply(e, t, n) {
		let r = /* @__PURE__ */ Error(), i = A() * 1e3, a = M(n[0]) ? n[0].toUpperCase() : void 0, o = ia(n[1]);
		if (!a || !o) return e.apply(t, n);
		t[X] = {
			method: a,
			url: o,
			request_headers: {}
		}, a === "POST" && o.match(/sentry_key/) && (t.__sentry_own_request__ = !0);
		let s = () => {
			let e = t[X];
			if (e && t.readyState === 4) {
				try {
					e.status_code = t.status;
				} catch {}
				B("xhr", {
					endTimestamp: A() * 1e3,
					startTimestamp: i,
					xhr: t,
					virtualError: r
				}), t.removeEventListener("readystatechange", s);
			}
		};
		return "onreadystatechange" in t && typeof t.onreadystatechange == "function" ? t.onreadystatechange = new Proxy(t.onreadystatechange, { apply(e, t, n) {
			return s(), e.apply(t, n);
		} }) : t.addEventListener("readystatechange", s), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(e, t, n) {
			let [r, i] = n, a = t[X];
			return a && M(r) && M(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n);
		} }), e.apply(t, n);
	} }), e.send = new Proxy(e.send, { apply(e, t, n) {
		let r = t[X];
		return r ? (n[0] !== void 0 && (r.body = n[0]), B("xhr", {
			startTimestamp: A() * 1e3,
			xhr: t
		}), e.apply(t, n)) : e.apply(t, n);
	} });
}
function ia(e) {
	if (M(e)) return e;
	try {
		return e.toString();
	} catch {}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/is.js
function aa(e) {
	if (typeof Element > "u") return !1;
	try {
		return e instanceof Element;
	} catch {
		return !1;
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js
var oa = 40;
function sa(e, t = ea("fetch")) {
	let n = 0, r = 0;
	async function i(i) {
		let a = i.body.length;
		n += a, r++;
		let o = {
			body: i.body,
			method: "POST",
			referrerPolicy: "strict-origin",
			headers: e.headers,
			keepalive: n <= 6e4 && r < 15,
			...e.fetchOptions
		};
		try {
			let n = await t(e.url, o);
			return {
				statusCode: n.status,
				headers: {
					"x-sentry-rate-limits": n.headers.get("X-Sentry-Rate-Limits"),
					"retry-after": n.headers.get("Retry-After")
				}
			};
		} catch (e) {
			throw ta("fetch"), e;
		} finally {
			n -= a, r--;
		}
	}
	return Tn(e, i, yn(e.bufferSize || oa));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/debug-build.js
var Z = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ca = 30, la = 50;
function ua(e, t, n, r) {
	let i = {
		filename: e,
		function: t === "<anonymous>" ? "?" : t,
		in_app: !0
	};
	return n !== void 0 && (i.lineno = n), r !== void 0 && (i.colno = r), i;
}
var da = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, fa = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, pa = /\((\S*)(?::(\d+))(?::(\d+))\)/, ma = /at (.+?) ?\(data:(.+?),/, ha = [ca, (e) => {
	let t = e.match(ma);
	if (t) return {
		filename: `<data:${t[2]}>`,
		function: t[1]
	};
	let n = da.exec(e);
	if (n) {
		let [, e, t, r] = n;
		return ua(e, "?", +t, +r);
	}
	let r = fa.exec(e);
	if (r) {
		var i;
		if (((i = r[2]) == null ? void 0 : i.indexOf("eval")) === 0) {
			let e = pa.exec(r[2]);
			e && (r[2] = e[1], r[3] = e[2], r[4] = e[3]);
		}
		let [e, t] = ya(r[1] || "?", r[2]);
		return ua(t, e, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
	}
}], ga = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, _a = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, va = ke(ha, [la, (e) => {
	let t = ga.exec(e);
	if (t) {
		if (t[3] && t[3].indexOf(" > eval") > -1) {
			let e = _a.exec(t[3]);
			e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "");
		}
		let e = t[3], n = t[1] || "?";
		return [n, e] = ya(n, e), ua(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
	}
}]), ya = (e, t) => {
	let n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
	return n || r ? [e.indexOf("@") === -1 ? "?" : e.split("@")[0], n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t];
}, ba = 1024, xa = "Breadcrumbs", Sa = H(((e = {}) => {
	let t = {
		console: !0,
		dom: !0,
		fetch: !0,
		history: !0,
		sentry: !0,
		xhr: !0,
		...e
	};
	return {
		name: xa,
		setup(e) {
			t.console && Pr(Ta(e)), t.dom && Ui(wa(e, t.dom)), t.xhr && na(Ea(e)), t.fetch && $r(Da(e)), t.history && Xi(Oa(e)), t.sentry && e.on("beforeSendEvent", Ca(e));
		}
	};
}));
function Ca(e) {
	return function(t) {
		h() === e && U({
			category: `sentry.${t.type === "transaction" ? "transaction" : "event"}`,
			event_id: t.event_id,
			level: t.level,
			message: _(t)
		}, { event: t });
	};
}
function wa(e, t) {
	return function(n) {
		if (h() !== e) return;
		let r, i, a = typeof t == "object" ? t.serializeAttribute : void 0, o = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
		o && o > ba && (Z && k.warn(`\`dom.maxStringLength\` cannot exceed ${ba}, but a value of ${o} was configured. Sentry will use ${ba} instead.`), o = ba), typeof a == "string" && (a = [a]);
		try {
			let e = n.event, t = ka(e) ? e.target : e;
			r = Li(t, {
				keyAttrs: a,
				maxStringLength: o
			}), i = si(t);
		} catch {
			r = "<unknown>";
		}
		if (r.length === 0) return;
		let s = {
			category: `ui.${n.name}`,
			message: r
		};
		i && (s.data = { "ui.component_name": i }), U(s, {
			event: n.event,
			name: n.name,
			global: n.global
		});
	};
}
function Ta(e) {
	return function(t) {
		if (h() !== e) return;
		let n = {
			category: "console",
			data: {
				arguments: t.args,
				logger: "console"
			},
			level: Lr(t.level),
			message: oe(t.args, " ")
		};
		if (t.level === "assert") if (t.args[0] === !1) n.message = `Assertion failed: ${oe(t.args.slice(1), " ") || "console.assert"}`, n.data.arguments = t.args.slice(1);
		else return;
		U(n, {
			input: t.args,
			level: t.level
		});
	};
}
function Ea(e) {
	return function(t) {
		if (h() !== e) return;
		let { startTimestamp: n, endTimestamp: r } = t, i = t.xhr[X];
		if (!n || !r || !i) return;
		let { method: a, url: o, status_code: s, body: c } = i, l = {
			method: a,
			url: o,
			status_code: s
		}, u = {
			xhr: t.xhr,
			input: c,
			startTimestamp: n,
			endTimestamp: r
		}, d = {
			category: "xhr",
			data: l,
			type: "http",
			level: Jr(s)
		};
		e.emit("beforeOutgoingRequestBreadcrumb", d, u), U(d, u);
	};
}
function Da(e) {
	return function(t) {
		if (h() !== e) return;
		let { startTimestamp: n, endTimestamp: r } = t;
		if (r && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST")) if (t.error) {
			let i = {
				data: t.error,
				input: t.args,
				startTimestamp: n,
				endTimestamp: r
			}, a = {
				category: "fetch",
				data: t.fetchData,
				level: "error",
				type: "http"
			};
			e.emit("beforeOutgoingRequestBreadcrumb", a, i), U(a, i);
		} else {
			let i = t.response, a = {
				...t.fetchData,
				status_code: i == null ? void 0 : i.status
			}, o = {
				input: t.args,
				response: i,
				startTimestamp: n,
				endTimestamp: r
			}, s = {
				category: "fetch",
				data: a,
				type: "http",
				level: Jr(a.status_code)
			};
			e.emit("beforeOutgoingRequestBreadcrumb", s, o), U(s, o);
		}
	};
}
function Oa(e) {
	return function(t) {
		if (h() !== e) return;
		let n = t.from, r = t.to, i = ar(G.location.href), a = n ? ar(n) : void 0, o = ar(r);
		a != null && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), U({
			category: "navigation",
			data: {
				from: n,
				to: r
			}
		});
	};
}
function ka(e) {
	return !!e && !!e.target;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js
var Aa = "EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","), ja = "BrowserApiErrors", Ma = H(((e = {}) => {
	let t = {
		XMLHttpRequest: !0,
		eventTarget: !0,
		requestAnimationFrame: !0,
		setInterval: !0,
		setTimeout: !0,
		unregisterOriginalCallbacks: !1,
		...e
	};
	return {
		name: ja,
		setupOnce() {
			t.setTimeout && j(G, "setTimeout", Na), t.setInterval && j(G, "setInterval", Na), t.requestAnimationFrame && j(G, "requestAnimationFrame", Pa), t.XMLHttpRequest && "XMLHttpRequest" in G && j(XMLHttpRequest.prototype, "send", Fa);
			let e = t.eventTarget;
			e && (Array.isArray(e) ? e : Aa).forEach((e) => Ia(e, t));
		}
	};
}));
function Na(e) {
	return function(...t) {
		let n = t[0];
		return t[0] = K(n, { mechanism: {
			handled: !1,
			type: `auto.browser.browserapierrors.${O(e)}`
		} }), e.apply(this, t);
	};
}
function Pa(e) {
	return function(t) {
		return e.apply(this, [K(t, { mechanism: {
			data: { handler: O(e) },
			handled: !1,
			type: "auto.browser.browserapierrors.requestAnimationFrame"
		} })]);
	};
}
function Fa(e) {
	return function(...t) {
		let n = this;
		return [
			"onload",
			"onerror",
			"onprogress",
			"onreadystatechange"
		].forEach((e) => {
			e in n && typeof n[e] == "function" && j(n, e, function(t) {
				let n = { mechanism: {
					data: { handler: O(t) },
					handled: !1,
					type: `auto.browser.browserapierrors.xhr.${e}`
				} }, r = x(t);
				return r && (n.mechanism.data.handler = O(r)), K(t, n);
			});
		}), e.apply(this, t);
	};
}
function Ia(e, t) {
	var n, r;
	let i = (n = G[e]) == null ? void 0 : n.prototype;
	!(i == null || (r = i.hasOwnProperty) == null) && r.call(i, "addEventListener") && (j(i, "addEventListener", function(n) {
		return function(r, i, a) {
			try {
				La(i) && (i.handleEvent = K(i.handleEvent, { mechanism: {
					data: {
						handler: O(i),
						target: e
					},
					handled: !1,
					type: "auto.browser.browserapierrors.handleEvent"
				} }));
			} catch {}
			return t.unregisterOriginalCallbacks && Ra(this, r, i), n.apply(this, [
				r,
				K(i, { mechanism: {
					data: {
						handler: O(i),
						target: e
					},
					handled: !1,
					type: "auto.browser.browserapierrors.addEventListener"
				} }),
				a
			]);
		};
	}), j(i, "removeEventListener", function(e) {
		return function(t, n, r) {
			try {
				if (Object.prototype.hasOwnProperty.call(n, "__sentry_wrapped__")) {
					let i = n.__sentry_wrapped__;
					i && e.call(this, t, i, r);
				}
			} catch {}
			return e.call(this, t, n, r);
		};
	}));
}
function La(e) {
	return typeof e.handleEvent == "function";
}
function Ra(e, t, n) {
	e && typeof e == "object" && "removeEventListener" in e && typeof e.removeEventListener == "function" && e.removeEventListener(t, n);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js
var za = H((e = {}) => {
	var t;
	let n = (t = e.lifecycle) == null ? "route" : t;
	return {
		name: "BrowserSession",
		setupOnce() {
			if (G.document === void 0) {
				Z && k.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
				return;
			}
			_e({ ignoreDuration: !0 });
			let e = !1;
			Fi(() => {
				e || (Re(), e = !0);
			});
			let t = w(), r = t.getUser();
			t.addScopeListener((t) => {
				let n = t.getUser();
				((r == null ? void 0 : r.id) !== (n == null ? void 0 : n.id) || (r == null ? void 0 : r.ip_address) !== (n == null ? void 0 : n.ip_address)) && (r = n, e && Re());
			}), n === "route" && Xi(({ from: t, to: n }) => {
				t !== n && (_e({ ignoreDuration: !0 }), Re(), e = !0);
			});
		}
	};
}), Ba = "CultureContext", Va = H((() => ({
	name: Ba,
	preprocessEvent(e) {
		let t = Ha();
		if (t) {
			var n;
			e.contexts = {
				...e.contexts,
				culture: {
					...t,
					...(n = e.contexts) == null ? void 0 : n.culture
				}
			};
		}
	},
	processSegmentSpan(e) {
		let t = Ha();
		t && Vt(e, {
			"culture.locale": t.locale,
			"culture.timezone": t.timezone,
			"culture.calendar": t.calendar
		});
	}
})));
function Ha() {
	try {
		let e = G.Intl;
		if (!e) return;
		let t = e.DateTimeFormat().resolvedOptions();
		return {
			locale: t.locale,
			timezone: t.timeZone,
			calendar: t.calendar
		};
	} catch {
		return;
	}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js
var Ua = "GlobalHandlers", Wa = H(((e = {}) => {
	let t = {
		onerror: !0,
		onunhandledrejection: !0,
		...e
	};
	return {
		name: Ua,
		setupOnce() {
			Error.stackTraceLimit = 50;
		},
		setup(e) {
			t.onerror && (Ga(e), Xa("onerror")), t.onunhandledrejection && (Ka(e), Xa("onunhandledrejection"));
		}
	};
}));
function Ga(e) {
	ft((t) => {
		let { stackParser: n, attachStacktrace: r } = Za();
		if (h() !== e || li()) return;
		let { msg: i, url: a, line: o, column: s, error: c } = t, l = Ya(wi(n, c || i, void 0, r, !1), a, o, s);
		l.level = "error", Ve(l, {
			originalException: c,
			mechanism: {
				handled: !1,
				type: "auto.browser.global_handlers.onerror"
			}
		});
	});
}
function Ka(e) {
	ht((t) => {
		let { stackParser: n, attachStacktrace: r } = Za();
		if (h() !== e || li()) return;
		let i = qa(t), a = he(i) ? Ja(i) : wi(n, i, void 0, r, !0);
		a.level = "error", Ve(a, {
			originalException: i,
			mechanism: {
				handled: !1,
				type: "auto.browser.global_handlers.onunhandledrejection"
			}
		});
	});
}
function qa(e) {
	if (he(e)) return e;
	try {
		if ("reason" in e) return e.reason;
		if ("detail" in e && "reason" in e.detail) return e.detail.reason;
	} catch {}
	return e;
}
function Ja(e) {
	return { exception: { values: [{
		type: "UnhandledRejection",
		value: `Non-Error promise rejection captured with value: ${String(e)}`
	}] } };
}
function Ya(e, t, n, r) {
	let i = e.exception = e.exception || {}, a = i.values = i.values || [], o = a[0] = a[0] || {}, s = o.stacktrace = o.stacktrace || {}, c = s.frames = s.frames || [];
	if (c.length === 0) {
		var l;
		c.push({
			colno: r,
			lineno: n,
			filename: (l = Qa(t)) == null ? oi() : l,
			function: "?",
			in_app: !0
		});
	}
	return e;
}
function Xa(e) {
	Z && k.log(`Global Handler attached: ${e}`);
}
function Za() {
	let e = h();
	return (e == null ? void 0 : e.getOptions()) || {
		stackParser: () => [],
		attachStacktrace: !1
	};
}
function Qa(e) {
	if (!(!M(e) || e.length === 0)) return e.startsWith("data:") ? `<${or(e, !1)}>` : e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js
var $a = H(() => ({
	name: "HttpContext",
	preprocessEvent(e) {
		var t;
		if (!G.navigator && !G.location && !G.document) return;
		let n = di(), r = {
			...n.headers,
			...(t = e.request) == null ? void 0 : t.headers
		};
		e.request = {
			...n,
			...e.request,
			headers: r
		};
	},
	processSegmentSpan(e) {
		var t;
		let n = (t = e.attributes) == null ? void 0 : t[se];
		if (!G.navigator && !G.location && !G.document) return;
		let r = di();
		Vt(e, {
			[Bt]: n === "http.client" ? void 0 : r.url,
			"http.request.header.user_agent": r.headers["User-Agent"],
			"http.request.header.referer": r.headers.Referer
		});
	}
})), eo = "cause", to = 5, no = "LinkedErrors", ro = H(((e = {}) => {
	let t = e.limit || to, n = e.key || eo;
	return {
		name: no,
		preprocessEvent(e, r, i) {
			Er(fi, i.getOptions().stackParser, n, t, e, r);
		}
	};
})), io = /^HTML(\w*)Element$/;
function ao(e) {
	if (typeof window < "u" && e === window) return "[Window]";
	if (typeof document < "u" && e === document) return "[Document]";
	if (aa(e)) {
		let t = oo(e);
		if (io.test(t)) return `[HTMLElement: ${Li(e)}]`;
	}
}
function oo(e) {
	let t = Object.getPrototypeOf(e);
	return t != null && t.constructor ? t.constructor.name : "null prototype";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js
function so() {
	return co() ? (Z && je(() => {
		console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");
	}), !0) : !1;
}
function co() {
	var e;
	if (G.window === void 0) return !1;
	let t = G;
	if (t.nw) return !1;
	let n = t.chrome || t.browser;
	if (!(!(n == null || (e = n.runtime) == null) && e.id)) return !1;
	let r = oi();
	return !(G === G.top && /^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/sdk.js
function lo(e) {
	return [
		gr(),
		fr(),
		qr(),
		Ma(),
		Sa(),
		Wa(),
		ro(),
		zr(),
		$a(),
		Va(),
		za()
	];
}
function uo(e = {}) {
	let t = !e.skipBrowserExtensionCheck && so(), n = e.defaultIntegrations == null ? lo() : e.defaultIntegrations, r = {
		...e,
		enabled: !t && e.enabled,
		stackParser: Se(e.stackParser || va),
		integrations: Xt({
			integrations: e.integrations,
			defaultIntegrations: n
		}),
		transport: e.transport || sa
	};
	return y(ao), er(ki, r);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/isSyntheticEvent.js
function fo(e) {
	return Ee(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/sdk.js
function po(e) {
	let t = { ...e };
	cr(t, "react"), me("react", { version: ot.version });
	let n = uo(t);
	return y(mo), n;
}
function mo(e) {
	return fo(e) ? "[SyntheticEvent]" : ao(e);
}
//#endregion
//#region src/tools/sentry.ts
var ho = "production", go = "3.39.1";
function _o() {
	let e = "sentry_offline_queue";
	return {
		async push(t) {
			try {
				var n, r;
				let i = JSON.parse(((n = localStorage) == null ? void 0 : n.getItem(e)) || "[]");
				i.push({
					envelope: t,
					timestamp: Date.now()
				}), i.length > 50 && i.shift(), (r = localStorage) == null || r.setItem(e, JSON.stringify(i));
			} catch {}
		},
		async unshift(t) {
			try {
				var n, r;
				let i = JSON.parse(((n = localStorage) == null ? void 0 : n.getItem(e)) || "[]");
				i.unshift({
					envelope: t,
					timestamp: Date.now()
				}), i.length > 50 && i.pop(), (r = localStorage) == null || r.setItem(e, JSON.stringify(i));
			} catch {}
		},
		async shift() {
			try {
				var t;
				let a = JSON.parse(((t = localStorage) == null ? void 0 : t.getItem(e)) || "[]");
				if (a.length === 0) {
					var n;
					(n = localStorage) == null || n.removeItem(e);
					return;
				}
				let o = a.shift();
				if (a.length === 0) {
					var r;
					(r = localStorage) == null || r.removeItem(e);
				} else {
					var i;
					(i = localStorage) == null || i.setItem(e, JSON.stringify(a));
				}
				return o == null ? void 0 : o.envelope;
			} catch {
				return;
			}
		}
	};
}
function vo(e) {
	let t = ir(sa);
	po({
		dsn: "https://b2eafc5a038fa2c535099e431de219f2@o4510697102114816.ingest.us.sentry.io/4510697103097856",
		release: go,
		environment: ho,
		sendDefaultPii: !0,
		transport: (e) => t({
			...e,
			createStore: () => _o(),
			flushAtStartup: !0,
			shouldStore: async (e, t) => {
				var n, r, i;
				return !!(!navigator.onLine || t && ((n = t.message) != null && n.includes("Failed to fetch") || (r = t.message) != null && r.includes("NetworkError") || (i = t.message) != null && i.includes("Network request failed")));
			}
		}),
		tracesSampleRate: .1,
		ignoreErrors: [
			/loading chunk \d{1,2}\b/i,
			/zaloJS/i,
			/e\.target\.name/i,
			/ResizeObserver loop/i,
			/ChunkLoadError/i,
			/FloorPlan not ready/i,
			/NetworkError/i,
			/network error occurred/i,
			/network request failed/i,
			/failed to fetch/i,
			/abort/i
		],
		beforeSend(e) {
			return e;
		}
	}), e.eventId && Pe("eventId", e.eventId), Pe("isWebview", e.isWebview), Pe("source", "main"), Be({ ip_address: "{{auto}}" }), yo();
}
function yo() {
	window.addEventListener("unhandledrejection", (e) => {
		Me(e.reason, { contexts: { unhandledRejection: { promise: e.promise } } });
	});
	let e = window.onerror;
	window.onerror = (t, n, r, i, a) => (a && Me(a, { contexts: { windowError: {
		message: t,
		source: n,
		lineno: r,
		colno: i
	} } }), e && e.call(window, t, n, r, i, a), !1), window.addEventListener("online", () => {
		var e;
		let t = (e = window.__SENTRY__) == null || (e = e.hub) == null ? void 0 : e.getClient();
		t && t.flush().catch(() => void 0);
	});
}
//#endregion
//#region src/utils/heatmap-enabled.ts
function bo(e) {
	return Object.keys(e).length > 0 && e.enabled !== !1;
}
//#endregion
//#region src/utils/is-localhost.ts
var { hostname: Q, protocol: xo } = window.location, So = Q === "localhost" || Q === "127.0.0.1" || Q === "::1" || Q.startsWith("192.168.") || Q.startsWith("10.") || /^172\.(1[6-9]|2[0-9]|3[0-1])\./.test(Q) || Q.endsWith(".local") || xo === "file:" || Q === "";
//#endregion
//#region src/utils/loadCustomCss.ts
async function Co(e, t) {
	if (e != null && e.customCss) {
		let n = document.createElement("style");
		if (n.textContent = e.customCss, document.head.append(n), typeof ShadowRoot < "u" && t instanceof ShadowRoot) {
			let n = document.createElement("style");
			n.textContent = e.customCss, t.append(n);
		}
		await r(e.customCss);
	}
}
//#endregion
//#region src/utils/loadIcons.ts
async function wo(e) {
	try {
		(await Promise.allSettled(Object.entries({
			departure: "icons/departure.svg",
			departure_inactive: "icons/departure_inactive.svg",
			destination: "icons/destination.svg",
			direction: "icons/direction.svg",
			transition: "icons/transition.svg",
			transition_up: "icons/transition_up.svg",
			transition_down: "icons/transition_down.svg",
			kiosk: "icons/kiosk.svg",
			yah: "icons/yah.svg"
		}).map(([e, t]) => d(a + t).then((t) => [e, t])))).filter((e) => e.status === "fulfilled").map((e) => e.value).forEach(([t, n]) => e.set(t, n));
	} catch (e) {
		console.warn(e);
	}
}
//#endregion
//#region src/utils/use-shadow.ts
var To, Eo = typeof document < "u" && !!((To = document.body) != null && To.attachShadow) && s && localStorage.getItem("noShadowDom") !== "1" && window.FontFace !== void 0;
//#endregion
//#region src/floorplan.loader.ts
function $() {
	throw Error("FloorPlan not ready");
}
var Do = "FloorPlan destroyed before it finished loading", Oo = class {
	get ready() {
		return this._ready;
	}
	get previewMode() {
		return t().previewMode || this.element.hasAttribute("data-preview-mode");
	}
	get allowConsent() {
		return this.consent === "ask" ? void 0 : this.consent === "granted";
	}
	getInternalSettings() {
		return st(t());
	}
	selectBooth(e) {
		$();
	}
	selectExhibitor(e) {
		$();
	}
	selectRoute(e, t) {
		$();
	}
	getOptimizedRoutes(e) {
		$();
	}
	selectCurrentPosition(e, t, n) {
		$();
	}
	setBookmarks(e) {
		$();
	}
	setEntitiesBookmarks(e) {
		$();
	}
	setEntitiesVisited(e) {
		$();
	}
	setMarkers(e) {
		$();
	}
	updateLayerVisibility(e, t) {
		$();
	}
	getCenterCoordinates() {
		$();
	}
	applyParameters(e) {
		$();
	}
	exhibitorsList() {
		$();
	}
	boothsList() {
		$();
	}
	categoriesList() {
		$();
	}
	selectCategory(e) {
		$();
	}
	select(e) {
		$();
	}
	showList(e) {
		$();
	}
	selectTour(e) {
		$();
	}
	openPlanner(e) {
		$();
	}
	startBuildRoute() {
		$();
	}
	getVisibility() {
		$();
	}
	setVisibility(e) {
		$();
	}
	findLocation() {
		$();
	}
	zoomIn() {
		$();
	}
	zoomOut() {
		$();
	}
	zoomTo(e, t) {
		$();
	}
	switchView() {
		$();
	}
	setCamera(e) {
		$();
	}
	getCamera() {
		$();
	}
	fitBounds() {
		$();
	}
	getBounds(e) {
		$();
	}
	getBoothRect(e) {
		$();
	}
	convertToGeo(e, t) {
		$();
	}
	getGeoConfig() {
		$();
	}
	destroy() {
		this.destroyed || (this.destroyed = !0, this.rejectReady(/* @__PURE__ */ Error(Do)), this.releaseResources());
	}
	unstable_destroy() {
		this.destroy();
	}
	releaseResources() {
		for (window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler); this.element.firstChild;) this.element.removeChild(this.element.firstChild);
		delete this.element.__expofp, ct();
	}
	highlightExhibitors(e) {
		$();
	}
	highlightBooths(e) {
		$();
	}
	onCurrentPositionChanged(e) {
		$();
	}
	search(e) {
		$();
	}
	getFloors() {
		$();
	}
	onFloorActivated(e) {
		$();
	}
	activateFloor(e) {
		$();
	}
	showPathway(e, t) {
		$();
	}
	showPathwayOnly(e, t) {
		$();
	}
	hidePathways() {
		$();
	}
	showSearch() {
		$();
	}
	changeLanguage(e) {
		$();
	}
	isGpsTrackingEnabled() {
		$();
	}
	setGpsTrackingEnabled(e) {
		$();
	}
	deselectCurrentPosition() {
		$();
	}
	deselectRoute() {
		$();
	}
	reset() {
		$();
	}
	selectAccessibleRoute(e) {
		$();
	}
	constructor(e, r) {
		this.renderTarget = void 0, this._ready = void 0, this.element = void 0, this.eventId = void 0, this.noOverlay = void 0, this.offHistory = void 0, this.ignoreQuery = void 0, this.consent = void 0, this.onInit = void 0, this.disableRuntimeAlerts = void 0, this.viewerMode = void 0, this.maplibre = void 0, this.efpStyleLoadHandler = void 0, this.resolveReady = () => void 0, this.rejectReady = () => void 0, this.icons = /* @__PURE__ */ new Map(), this.enableRotation = !0, this.alwaysShowSidebar = !1, this.destroyed = !1, this.onBoothClick = void 0, this.onBookmarkClick = void 0, this.onVisitedClick = void 0, this.onCategoryClick = void 0, this.onFpConfigured = void 0, this.onDirection = void 0, this.onDetails = void 0, this.onExhibitorCustomButtonClick = void 0, this.onGetCoordsClick = void 0, this.onMarkerClick = void 0, this.onLeaveEvent = void 0;
		let s = t();
		this.noOverlay = !!s.noOverlay, this.offHistory = !!s.offHistory, this.ignoreQuery = s.ignoreQuery, this.consent = s.consent, this.consent === "ask" && (Xe ? this.consent = "granted" : So && !l && (this.consent = "denied")), this.onBoothClick = e.onBoothClick, this.onBookmarkClick = e.onBookmarkClick, this.onVisitedClick = e.onVisitedClick, this.onCategoryClick = e.onCategoryClick, this.onDetails = e.onDetails, this.onExhibitorCustomButtonClick = e.onExhibitorCustomButtonClick, this.onGetCoordsClick = e.onGetCoordsClick, this.onMarkerClick = e.onMarkerClick, this.onFpConfigured = e.onFpConfigured, this.onDirection = e.onDirection, this.onInit = e.onInit, this.onCurrentPositionChanged = e.onCurrentPositionChanged, this.onFloorActivated = e.onFloorActivated, this.onLeaveEvent = e.onLeaveEvent, this.viewerMode = !!s.viewerMode, this.disableRuntimeAlerts = s.disableRuntimeAlerts, this.maplibre = s.maplibre, window.__efpMaplibre = s.maplibre, this._ready = new Promise((e, t) => {
			this.resolveReady = e, this.rejectReady = t;
		}), this._ready.catch(() => void 0), this.element = r;
		let c = r;
		if (c.__expofp) throw Error("Element already in use");
		c.__expofp = this;
		let d = s.expo;
		vo({
			eventId: d || "",
			isWebview: Xe
		}), this.eventId = d, window.__efpEvent = d, window.__efpElement = r;
		let f = document.createElement("div");
		f.style.height = "100%", f.style.width = "100%", r.appendChild(f);
		let p;
		if (Eo) {
			p = f.attachShadow({ mode: "open" });
			let e = p, t = document;
			e.createElement = (...e) => t.createElement(...e), e.createElementNS = (...e) => t.createElementNS(...e), e.createTextNode = (...e) => t.createTextNode(...e);
		} else p = f;
		let m = document.createElement("div");
		m.style.height = "100%", m.style.width = "100%", p.appendChild(m), Eo && Object.defineProperty(m, "ownerDocument", { value: p }), window.__efpShadowDOMStyleParent = Eo ? p : void 0, this.renderTarget = m, u.log("Instantiating ExpoFP floorplan", r, d);
		let h = 0;
		this.efpStyleLoadHandler = function(e) {
			var t;
			let n = (t = window.__efpStyleElements) == null ? [] : t;
			for (; h < n.length;) {
				let e = n[h];
				p.appendChild(e), h++;
			}
		}, window.addEventListener("__efpStyleLoad", this.efpStyleLoadHandler), this.efpStyleLoadHandler();
		let g = this;
		(async function() {
			var e, r, s;
			let c = t();
			if (await i(), g.destroyed) return;
			let l = new URLSearchParams(window.location.search), d, f;
			if (c != null && c.trackerUrl) try {
				d = new URL(c.trackerUrl), f = d.searchParams.get("expoId");
			} catch (e) {
				console.error(e);
			}
			let m = async (e) => {
				var t;
				if (!d || !f) return Promise.reject(/* @__PURE__ */ Error("trackerUrl or expoId is missing"));
				let n = new URL(e.dataUrl, d.origin), r = await fetch(n.toString(), {
					method: "POST",
					headers: { "Content-Type": "application/json" },
					body: JSON.stringify({
						expoId: f,
						token: decodeURIComponent((t = l.get("t")) == null ? "" : t)
					})
				}), i = [];
				r.ok && (i = (await r.json()).map(e.dataMapper)), window.__heatmapDataYah = { yah: i };
			}, h = (e = c == null ? void 0 : c.heatmap) == null ? {} : e, ee = bo(h) || l.get("heatmap") === "true", _ = h.variant === "yah" || l.get("type") === "yah", v = h.kiosk === !0 || l.get("subtype") === "kiosk";
			if (ee) try {
				if (_) v ? await m({
					dataUrl: "/api/kiosks/list/viewer",
					dataMapper: (e) => ({
						...e,
						id: e.key,
						name: `Kiosk ${e.key}`
					})
				}) : await m({
					dataUrl: "/api/v1/you-are-here/qr-code/list/viewer",
					dataMapper: (e, t) => ({
						...e,
						name: `QR Code #${t + 1}`
					})
				});
				else {
					var y, b;
					if (!d || !f) throw Error("trackerUrl or expoId is missing");
					let e = new URL("/api/fp-stats/get", d.origin);
					e.searchParams.set("expoId", f), e.searchParams.set("type", "booview"), e.searchParams.set("t", decodeURIComponent((y = l.get("t")) == null ? "" : y));
					let t = new URL("api/fp-stats/get", d.origin);
					t.searchParams.set("expoId", f), t.searchParams.set("type", "exview"), t.searchParams.set("t", decodeURIComponent((b = l.get("t")) == null ? "" : b));
					let [n, r] = await Promise.all([fetch(e.toString()), fetch(t.toString())]), [i, a] = await Promise.all([n.json(), r.json()]);
					window.__heatmapData = {
						booths: i,
						exhibitors: a
					};
				}
			} catch (e) {
				console.error("Heatmap: Initialization error", e);
			}
			let x = [
				n(a + "vendor/sanitize-css/sanitize.css", p),
				n(a + "vendor/perfect-scrollbar/css/perfect-scrollbar.css", p),
				o("Oswald", a + "fonts/oswald-v17-cyrillic_latin-300.woff", { weight: 300 }),
				o("Oswald", a + "fonts/oswald-v17-cyrillic_latin-500.woff", { weight: 500 }),
				o("Inter", a + "fonts/inter-400.woff2", { weight: 400 }),
				o("Inter", a + "fonts/inter-500.woff2", { weight: 500 }),
				o("Inter", a + "fonts/inter-600.woff2", { weight: 600 }),
				o("efp-symbols", a + "fonts/efp-symbols.woff", { weight: 400 }),
				Co(c, p),
				wo(g.icons)
			];
			if (await Promise.all(x), g.destroyed) return;
			g.enableRotation = (r = c == null ? void 0 : c.enableRotation) != null && r, g.alwaysShowSidebar = (s = c == null ? void 0 : c.alwaysShowSidebar) != null && s, u.log("Data loaded"), window.__storeInitAllowed = !0;
			let { default: S } = await import(
				/* webpackChunkName: "floorplan" */
				"./floorplan.ready-C_lm766s.js"
);
			g.destroyed || Object.setPrototypeOf(g, S.prototype).init();
		})();
	}
};
//#endregion
export { qt as a, et as c, G as i, Qe as l, bo as n, it as o, Z as r, at as s, Oo as t };