UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

1,509 lines (1,508 loc) 43.4 kB
//#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/debug-build.js (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.7.8" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8557d391-917a-4d91-915f-8daa5722e9b7", e._sentryDebugIdIdentifier = "sentry-dbid-8557d391-917a-4d91-915f-8daa5722e9b7"); } catch {} })(); var e = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, t = globalThis, n = "10.58.0"; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/carrier.js function r() { return i(t), t; } function i(e) { let t = e.__SENTRY__ = e.__SENTRY__ || {}; return t.version = t.version || "10.58.0", t[n] = t["10.58.0"] || {}; } function a(e, r, i = t) { let a = i.__SENTRY__ = i.__SENTRY__ || {}, o = a[n] = a["10.58.0"] || {}; return o[e] || (o[e] = r()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js var o = [ "debug", "info", "warn", "error", "log", "assert", "trace" ], s = "Sentry Logger ", c = {}; function l(e) { if (!("console" in t)) return e(); let n = t.console, r = {}, i = Object.keys(c); i.forEach((e) => { let t = c[e]; r[e] = n[e], n[e] = t; }); try { return e(); } finally { i.forEach((e) => { n[e] = r[e]; }); } } function u() { _().enabled = !0; } function d() { _().enabled = !1; } function f() { return _().enabled; } function p(...e) { g("log", ...e); } function m(...e) { g("warn", ...e); } function h(...e) { g("error", ...e); } function g(n, ...r) { e && f() && l(() => { t.console[n](`${s}[${n}]:`, ...r); }); } function _() { return e ? a("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 }; } var v = { enable: u, disable: d, isEnabled: f, log: p, warn: m, error: h }, ee = 50, te = /\(error: (.*)\)/, ne = /captureMessage|captureException/; function re(...e) { let t = e.sort((e, t) => e[0] - t[0]).map((e) => e[1]); return (e, n = 0, r = 0) => { let i = [], a = e.split("\n"); for (let e = n; e < a.length; e++) { let n = a[e]; n.length > 1024 && (n = n.slice(0, 1024)); let o = te.test(n) ? n.replace(te, "$1") : n; if (!o.includes("Error: ")) { for (let e of t) { let t = e(o); if (t) { i.push(t); break; } } if (i.length >= ee + r) break; } } return ae(i.slice(r)); }; } function ie(e) { return Array.isArray(e) ? re(...e) : e; } function ae(e) { if (!e.length) return []; let t = Array.from(e); return /sentryWrapped/.test(y(t).function || "") && t.pop(), t.reverse(), ne.test(y(t).function || "") && (t.pop(), ne.test(y(t).function || "") && t.pop()), t.slice(0, ee).map((e) => ({ ...e, filename: e.filename || y(t).filename, function: e.function || "?" })); } function y(e) { return e[e.length - 1] || {}; } var b = "<anonymous>"; function oe(e) { try { return !e || typeof e != "function" ? b : e.name || b; } catch { return b; } } function se(e) { let t = e.exception; if (t) { let e = []; try { return t.values.forEach((t) => { t.stacktrace.frames && e.push(...t.stacktrace.frames); }), e; } catch { return; } } } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/is.js var ce = Object.prototype.toString; function le(e) { switch (ce.call(e)) { case "[object Error]": case "[object Exception]": case "[object DOMException]": case "[object WebAssembly.Exception]": return !0; default: return w(e, Error); } } function x(e, t) { return ce.call(e) === `[object ${t}]`; } function ue(e) { return x(e, "ErrorEvent"); } function de(e) { return x(e, "DOMError"); } function fe(e) { return x(e, "DOMException"); } function S(e) { return x(e, "String"); } function pe(e) { return typeof e == "object" && !!e && "__sentry_template_string__" in e && "__sentry_template_values__" in e; } function me(e) { return e === null || pe(e) || typeof e != "object" && typeof e != "function"; } function he(e) { return x(e, "Object"); } function ge(e) { return typeof Event < "u" && w(e, Event); } function _e(e) { return x(e, "RegExp"); } function C(e) { return !!(e != null && e.then && typeof e.then == "function"); } function w(e, t) { try { return e instanceof t; } catch { return !1; } } function ve(e) { return typeof Request < "u" && w(e, Request); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/object.js function ye(t, n, r) { if (!(n in t)) return; let i = t[n]; if (typeof i != "function") return; let a = r(i); typeof a == "function" && be(a, i); try { t[n] = a; } catch { e && v.log(`Failed to replace method "${n}" in object`, t); } } function T(t, n, r) { try { Object.defineProperty(t, n, { value: r, writable: !0, configurable: !0 }); } catch { e && v.log(`Failed to add non-enumerable property "${String(n)}" to object`, t); } } function be(e, t) { try { e.prototype = t.prototype = t.prototype || {}, T(e, "__sentry_original__", t); } catch {} } function xe(e) { return e.__sentry_original__; } function Se(e) { if (le(e)) return { message: e.message, name: e.name, stack: e.stack, ...Ce(e) }; if (ge(e)) { let { type: t, target: n, currentTarget: r, detail: i } = e; return { type: t, target: n, currentTarget: r, ...i ? { detail: i } : {}, ...Ce(e) }; } return e; } function Ce(e) { return typeof e == "object" && e ? Object.fromEntries(Object.entries(e)) : {}; } function we(e) { let t = Object.keys(Se(e)); return t.sort(), t[0] ? t.join(", ") : "[object has no keys]"; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js var E; function D(e) { if (E !== void 0) return E ? E(e) : e(); let n = /* @__PURE__ */ Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), r = t; return n in r && typeof r[n] == "function" ? (E = r[n], E(e)) : (E = null, e()); } function O() { return D(() => Math.random()); } function Te() { return D(() => Date.now()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/normalizationHints.js var Ee = /* @__PURE__ */ Symbol.for("sentry.skipNormalization"), De = /* @__PURE__ */ Symbol.for("sentry.overrideNormalizationDepth"); function Oe(e) { return !!e[Ee]; } function ke(e) { let t = e[De]; return typeof t == "number" ? t : void 0; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/normalize.js var k; function Ae(e) { k = e; } function A(e, t = 100, n = Infinity) { try { return j("", e, t, n); } catch (e) { return { ERROR: `**non-serializable** (${e})` }; } } function je(e, t = 3, n = 100 * 1024) { let r = A(e, t); return Fe(r) > n ? je(e, t - 1, n) : r; } function j(e, t, n = Infinity, r = Infinity, i = Ie()) { let [a, o] = i; if (t == null || ["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t)) return t; let s = Me(e, t); if (!s.startsWith("[object ")) return s; if (Oe(t)) return t; let c = ke(t), l = c === void 0 ? n : c; if (l === 0) return s.replace("object ", ""); if (a(t)) return "[Circular ~]"; let u = t; if (u && typeof u.toJSON == "function") try { return j("", u.toJSON(), l - 1, r, i); } catch {} let d = Array.isArray(t) ? [] : {}, f = 0, p = Se(t); for (let e in p) { if (!Object.prototype.hasOwnProperty.call(p, e)) continue; if (f >= r) { d[e] = "[MaxProperties ~]"; break; } let t = p[e]; d[e] = j(e, t, l - 1, r, i), f++; } return o(t), d; } function Me(e, t) { try { if (k) { let e = k(t); if (e) return e; } return typeof global < "u" && t === global ? "[Global]" : typeof t == "number" && !Number.isFinite(t) ? `[${t}]` : typeof t == "function" ? `[Function: ${oe(t)}]` : typeof t == "symbol" ? `[${String(t)}]` : typeof t == "bigint" ? `[BigInt: ${String(t)}]` : `[object ${Ne(t)}]`; } catch (e) { return `**non-serializable** (${e})`; } } function Ne(e) { let t = Object.getPrototypeOf(e); return t != null && t.constructor ? t.constructor.name : "null prototype"; } function Pe(e) { return ~-encodeURI(e).split(/%..|./).length; } function Fe(e) { return Pe(JSON.stringify(e)); } function Ie() { let e = /* @__PURE__ */ new WeakSet(); function t(t) { return e.has(t) ? !0 : (e.add(t), !1); } function n(t) { e.delete(t); } return [t, n]; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/string.js function M(e, t = 0) { return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`; } function Le(e, t) { if (!Array.isArray(e)) return ""; let n = []; for (let t = 0; t < e.length; t++) { let r = e[t]; me(r) ? n.push(String(r)) : r instanceof Error ? n.push(r.message ? `${r.name}: ${r.message}` : r.name) : n.push(Me(void 0, r)); } return n.join(t); } function Re(e, t, n = !1) { return S(e) ? _e(t) ? t.test(e) : S(t) ? n ? e === t : e.includes(t) : typeof t == "function" ? t(e) : !1 : !1; } function ze(e, t = [], n = !1) { for (let r of t) if (Re(e, r, n)) return !0; return !1; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/misc.js function Be() { let e = t; return e.crypto || e.msCrypto; } var N; function Ve() { return O() * 16; } function P(e = Be()) { try { if (e != null && e.randomUUID) return D(() => e.randomUUID()).replace(/-/g, ""); } catch {} return N || (N = "10000000100040008000100000000000"), N.replace(/[018]/g, (e) => (e ^ (Ve() & 15) >> e / 4).toString(16)); } function He(e) { var t; return (t = e.exception) == null || (t = t.values) == null ? void 0 : t[0]; } function Ue(e) { let { message: t, event_id: n } = e; if (t) return t; let r = He(e); return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"; } function We(e, t, n) { let r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {}; a.value || (a.value = t || ""), a.type || (a.type = n || "Error"); } function Ge(e, t) { let n = He(e); if (!n) return; let r = { type: "generic", handled: !0 }, i = n.mechanism; if (n.mechanism = { ...r, ...i, ...t }, t && "data" in t) { let e = { ...i == null ? void 0 : i.data, ...t.data }; n.mechanism.data = e; } } function Ke(e) { if (qe(e)) return !0; try { T(e, "__sentry_captured__", !0); } catch {} return !1; } function qe(e) { try { return e.__sentry_captured__; } catch {} } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/time.js var Je = 1e3; function F() { return Te() / Je; } function Ye() { let { performance: e } = t; if (!(e != null && e.now) || !e.timeOrigin) return F; let n = e.timeOrigin; return () => (n + D(() => e.now())) / Je; } var Xe; function I() { var e; return ((e = Xe) == null ? Xe = Ye() : e)(); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/session.js function Ze(e) { let t = I(), n = { sid: P(), init: !0, timestamp: t, started: t, duration: 0, status: "ok", errors: 0, ignoreDuration: !1, toJSON: () => $e(n) }; return e && L(n, e), n; } function L(e, t = {}) { if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || I(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : P()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration) e.duration = void 0; else if (typeof t.duration == "number") e.duration = t.duration; else { let t = e.timestamp - e.started; e.duration = t >= 0 ? t : 0; } t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status); } function Qe(e, t) { let n = {}; t ? n = { status: t } : e.status === "ok" && (n = { status: "exited" }), L(e, n); } function $e(e) { return { sid: `${e.sid}`, init: e.init, started: (/* @__PURE__ */ new Date(e.started * 1e3)).toISOString(), timestamp: (/* @__PURE__ */ new Date(e.timestamp * 1e3)).toISOString(), status: e.status, errors: e.errors, did: typeof e.did == "number" || typeof e.did == "string" ? `${e.did}` : void 0, duration: e.duration, abnormal_mechanism: e.abnormal_mechanism, attrs: { release: e.release, environment: e.environment, ip_address: e.ipAddress, user_agent: e.userAgent } }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/merge.js function R(e, t, n = 2) { if (!t || typeof t != "object" || n <= 0) return t; if (e && Object.keys(t).length === 0) return e; let r = { ...e }; for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = R(r[e], t[e], n - 1)); return r; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js function et() { return P(); } function tt() { return P().substring(16); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/weakRef.js function nt(e) { try { let n = t.WeakRef; if (typeof n == "function") return new n(e); } catch {} return e; } function rt(e) { if (e) { if (typeof e == "object" && "deref" in e && typeof e.deref == "function") try { return e.deref(); } catch { return; } return e; } } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js var z = "_sentrySpan"; function it(e, t) { t ? T(e, z, nt(t)) : delete e[z]; } function at(e) { return rt(e[z]); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/scope.js var ot = 100, B = class t { constructor() { this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = { traceId: et(), sampleRand: O() }; } clone() { let e = new t(); return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._attributes = { ...this._attributes }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, this._contexts.flags && (e._contexts.flags = { values: [...this._contexts.flags.values] }), e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, e._conversationId = this._conversationId, it(e, at(this)), e; } setClient(e) { this._client = e; } setLastEventId(e) { this._lastEventId = e; } getClient() { return this._client; } lastEventId() { return this._lastEventId; } addScopeListener(e) { this._scopeListeners.push(e); } addEventProcessor(e) { return this._eventProcessors.push(e), this; } setUser(e) { return this._user = e || { email: void 0, id: void 0, ip_address: void 0, username: void 0 }, this._session && L(this._session, { user: e }), this._notifyScopeListeners(), this; } getUser() { return this._user; } setConversationId(e) { return this._conversationId = e || void 0, this._notifyScopeListeners(), this; } setTags(e) { return this._tags = { ...this._tags, ...e }, this._notifyScopeListeners(), this; } setTag(e, t) { return this.setTags({ [e]: t }); } setAttributes(e) { return this._attributes = { ...this._attributes, ...e }, this._notifyScopeListeners(), this; } setAttribute(e, t) { return this.setAttributes({ [e]: t }); } removeAttribute(e) { return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this; } setExtras(e) { return this._extra = { ...this._extra, ...e }, this._notifyScopeListeners(), this; } setExtra(e, t) { return this._extra = { ...this._extra, [e]: t }, this._notifyScopeListeners(), this; } setFingerprint(e) { return this._fingerprint = e, this._notifyScopeListeners(), this; } setLevel(e) { return this._level = e, this._notifyScopeListeners(), this; } setTransactionName(e) { return this._transactionName = e, this._notifyScopeListeners(), this; } setContext(e, t) { return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this; } setSession(e) { return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this; } getSession() { return this._session; } update(e) { if (!e) return this; let n = typeof e == "function" ? e(this) : e, { tags: r, attributes: i, extra: a, user: o, contexts: s, level: c, fingerprint: l = [], propagationContext: u, conversationId: d } = (n instanceof t ? n.getScopeData() : he(n) ? e : void 0) || {}; return this._tags = { ...this._tags, ...r }, this._attributes = { ...this._attributes, ...i }, this._extra = { ...this._extra, ...a }, this._contexts = { ...this._contexts, ...s }, o && Object.keys(o).length && (this._user = o), c && (this._level = c), l.length && (this._fingerprint = l), u && (this._propagationContext = u), d && (this._conversationId = d), this; } clear() { return this._breadcrumbs = [], this._tags = {}, this._attributes = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._session = void 0, this._conversationId = void 0, it(this, void 0), this._attachments = [], this.setPropagationContext({ traceId: et(), sampleRand: O() }), this._notifyScopeListeners(), this; } addBreadcrumb(e, t) { let n = typeof t == "number" ? t : ot; if (n <= 0) return this; let r = { timestamp: F(), ...e, message: e.message ? M(e.message, 2048) : e.message }; if (this._breadcrumbs.push(r), this._breadcrumbs.length > n) { var i; this._breadcrumbs = this._breadcrumbs.slice(-n), (i = this._client) == null || i.recordDroppedEvent("buffer_overflow", "log_item"); } return this._notifyScopeListeners(), this; } getLastBreadcrumb() { return this._breadcrumbs[this._breadcrumbs.length - 1]; } clearBreadcrumbs() { return this._breadcrumbs = [], this._notifyScopeListeners(), this; } addAttachment(e) { return this._attachments.push(e), this; } clearAttachments() { return this._attachments = [], this; } getScopeData() { return { breadcrumbs: this._breadcrumbs, attachments: this._attachments, contexts: this._contexts, tags: this._tags, attributes: this._attributes, extra: this._extra, user: this._user, level: this._level, fingerprint: this._fingerprint || [], eventProcessors: this._eventProcessors, propagationContext: this._propagationContext, sdkProcessingMetadata: this._sdkProcessingMetadata, transactionName: this._transactionName, span: at(this), conversationId: this._conversationId }; } setSDKProcessingMetadata(e) { return this._sdkProcessingMetadata = R(this._sdkProcessingMetadata, e, 2), this; } setPropagationContext(e) { return this._propagationContext = e, this; } getPropagationContext() { return this._propagationContext; } captureException(t, n) { let r = (n == null ? void 0 : n.event_id) || P(); if (!this._client) return e && v.warn("No client configured on scope - will not capture exception!"), r; let i = /* @__PURE__ */ Error("Sentry syntheticException"); return this._client.captureException(t, { originalException: t, syntheticException: i, ...n, event_id: r }, this), r; } captureMessage(t, n, r) { var i; let a = (r == null ? void 0 : r.event_id) || P(); if (!this._client) return e && v.warn("No client configured on scope - will not capture message!"), a; let o = (i = r == null ? void 0 : r.syntheticException) == null ? Error(t) : i; return this._client.captureMessage(t, n, { originalException: t, syntheticException: o, ...r, event_id: a }, this), a; } captureEvent(t, n) { let r = t.event_id || (n == null ? void 0 : n.event_id) || P(); return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (e && v.warn("No client configured on scope - will not capture event!"), r); } _notifyScopeListeners() { this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => { e(this); }), this._notifyingListeners = !1); } }; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/defaultScopes.js function st() { return a("defaultCurrentScope", () => new B()); } function ct() { return a("defaultIsolationScope", () => new B()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js var V = (e) => e instanceof Promise && !e[lt], lt = /* @__PURE__ */ Symbol("chained PromiseLike"), ut = (e, t, n) => { let r = e.then((e) => (t(e), e), (e) => { throw n(e), e; }); return V(r) && V(e) ? r : dt(e, r); }, dt = (e, t) => { if (!t) return e; let n = !1; for (let r in e) { if (r in t) continue; n = !0; let i = e[r]; typeof i == "function" ? Object.defineProperty(t, r, { value: (...t) => i.apply(e, t), enumerable: !0, configurable: !0, writable: !0 }) : t[r] = i; } return n && Object.assign(t, { [lt]: !0 }), t; }, ft = class { constructor(e, t) { let n; n = e || new B(); let r; r = t || new B(), this._stack = [{ scope: n }], this._isolationScope = r; } withScope(e) { let t = this._pushScope(), n; try { n = e(t); } catch (e) { throw this._popScope(), e; } return C(n) ? ut(n, () => this._popScope(), () => this._popScope()) : (this._popScope(), n); } getClient() { return this.getStackTop().client; } getScope() { return this.getStackTop().scope; } getIsolationScope() { return this._isolationScope; } getStackTop() { return this._stack[this._stack.length - 1]; } _pushScope() { let e = this.getScope().clone(); return this._stack.push({ client: this.getClient(), scope: e }), e; } _popScope() { return this._stack.length <= 1 ? !1 : !!this._stack.pop(); } }; function H() { let e = i(r()); return e.stack = e.stack || new ft(st(), ct()); } function pt(e) { return H().withScope(e); } function mt(e, t) { let n = H(); return n.withScope(() => (n.getStackTop().scope = e, t(e))); } function ht(e) { return H().withScope(() => e(H().getIsolationScope())); } function gt() { return { withIsolationScope: ht, withScope: pt, withSetScope: mt, withSetIsolationScope: (e, t) => ht(t), getCurrentScope: () => H().getScope(), getIsolationScope: () => H().getIsolationScope() }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/asyncContext/index.js function U(e) { let t = i(e); return t.acs ? t.acs : gt(); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/attributes.js function _t(e) { return typeof e == "object" && !!e && !Array.isArray(e) && Object.keys(e).includes("value"); } function vt(e, t) { let { value: n, unit: r } = _t(e) ? e : { value: e, unit: void 0 }, i = bt(n), a = r && typeof r == "string" ? { unit: r } : {}; if (i) return { ...i, ...a }; if (!t || t === "skip-undefined" && n === void 0) return; let o = ""; try { var s; o = (s = JSON.stringify(n)) == null ? "" : s; } catch {} return { value: o, type: "string", ...a }; } function yt(e, t = !1) { let n = {}; for (let [r, i] of Object.entries(e == null ? {} : e)) { let e = vt(i, t); e && (n[r] = e); } return n; } function bt(e) { if (Array.isArray(e)) return { value: e, type: "array" }; let t = typeof e == "string" ? "string" : typeof e == "boolean" ? "boolean" : typeof e == "number" && !Number.isNaN(e) ? Number.isInteger(e) ? "integer" : "double" : null; if (t) return { value: e, type: t }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/currentScopes.js var xt; function St() { return xt == null ? void 0 : xt(); } function W() { return U(r()).getCurrentScope(); } function G() { return U(r()).getIsolationScope(); } function Ct() { return a("globalScope", () => new B()); } function wt(...e) { let t = U(r()); if (e.length === 2) { let [n, r] = e; return n ? t.withSetScope(n, r) : t.withScope(r); } return t.withScope(e[0]); } function K() { return W().getClient(); } function Tt(e) { let t = St(); if (t) return { trace_id: t.traceId, span_id: t.spanId }; let { traceId: n, parentSpanId: r, propagationSpanId: i } = e.getPropagationContext(), a = { trace_id: n, span_id: i || tt() }; return r && (a.parent_span_id = r), a; } var Et = "sentry.previous_trace_sample_rate", Dt = "sentry.op", Ot = "sentry.origin", kt = "sentry.profile_id", At = "sentry.exclusive_time", jt = "gen_ai.conversation.id", Mt = "_sentryScope", Nt = "_sentryIsolationScope"; function Pt(e) { let t = e; return { scope: t[Mt], isolationScope: rt(t[Nt]) }; } function Ft(e) { let t = It(e); if (!t) return; let n = Object.entries(t).reduce((e, [t, n]) => { if (t.startsWith("sentry-")) { let r = t.slice(7); e[r] = n; } return e; }, {}); if (Object.keys(n).length > 0) return n; } function It(e) { if (!(!e || !S(e) && !Array.isArray(e))) return Array.isArray(e) ? e.reduce((e, t) => { let n = Lt(t); return Object.entries(n).forEach(([t, n]) => { e[t] = n; }), e; }, {}) : Lt(e); } function Lt(e) { return e.split(",").map((e) => { let t = e.indexOf("="); return t === -1 ? [] : [e.slice(0, t), e.slice(t + 1)].map((e) => { try { return decodeURIComponent(e.trim()); } catch { return; } }); }).reduce((e, [t, n]) => (t && n && (e[t] = n), e), {}); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/dsn.js var Rt = /^o(\d+)\./, zt = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/; function Bt(e) { return e === "http" || e === "https"; } function Vt(e, t = !1) { let { host: n, path: r, pass: i, port: a, projectId: o, protocol: s, publicKey: c } = e; return `${s}://${c}${t && i ? `:${i}` : ""}@${n}${a ? `:${a}` : ""}/${r && `${r}/`}${o}`; } function Ht(e) { let t = zt.exec(e); if (!t) { l(() => { console.error(`Invalid Sentry Dsn: ${e}`); }); return; } let [n, r, i = "", a = "", o = "", s = ""] = t.slice(1), c = "", u = s, d = u.split("/"); if (d.length > 1 && (c = d.slice(0, -1).join("/"), u = d.pop()), u) { let e = u.match(/^\d+/); e && (u = e[0]); } return Ut({ host: a, pass: i, path: c, projectId: u, port: o, protocol: n, publicKey: r }); } function Ut(e) { return { protocol: e.protocol, publicKey: e.publicKey || "", pass: e.pass || "", host: e.host, port: e.port || "", path: e.path || "", projectId: e.projectId }; } function Wt(t) { if (!e) return !0; let { port: n, projectId: r, protocol: i } = t; return [ "protocol", "publicKey", "host", "projectId" ].find((e) => t[e] ? !1 : (v.error(`Invalid Sentry Dsn: ${e} missing`), !0)) ? !1 : r.match(/^\d+$/) ? Bt(i) ? n && isNaN(parseInt(n, 10)) ? (v.error(`Invalid Sentry Dsn: Invalid port ${n}`), !1) : !0 : (v.error(`Invalid Sentry Dsn: Invalid protocol ${i}`), !1) : (v.error(`Invalid Sentry Dsn: Invalid projectId ${r}`), !1); } function Gt(e) { let t = e.match(Rt); return t == null ? void 0 : t[1]; } function Kt(e) { let t = e.getOptions(), { host: n } = e.getDsn() || {}, r; return t.orgId ? r = String(t.orgId) : n && (r = Gt(n)), r; } function qt(e) { let t = typeof e == "string" ? Ht(e) : Ut(e); if (!(!t || !Wt(t))) return t; } var Jt = !1; function Yt(e) { let { spanId: t, traceId: n, isRemote: r } = e.spanContext(), i = r ? t : q(e).parent_span_id, a = Pt(e).scope; return { parent_span_id: i, span_id: r ? (a == null ? void 0 : a.getPropagationContext().propagationSpanId) || tt() : t, trace_id: n }; } function Xt(e) { if (e && e.length > 0) return e.map(({ context: { spanId: e, traceId: t, traceFlags: n, ...r }, attributes: i }) => ({ span_id: e, trace_id: t, sampled: n === 1, attributes: i, ...r })); } function Zt(e) { return typeof e == "number" ? Qt(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Qt(e.getTime()) : I(); } function Qt(e) { return e > 9999999999 ? e / 1e3 : e; } function q(e) { if (nn(e)) return e.getSpanJSON(); let { spanId: t, traceId: n } = e.spanContext(); if (tn(e)) { let { attributes: r, startTime: i, name: a, endTime: o, status: s, links: c } = e; return { span_id: t, trace_id: n, data: r, description: a, parent_span_id: $t(e), start_timestamp: Zt(i), timestamp: Zt(o) || void 0, status: an(s), op: r[Dt], origin: r[Ot], links: Xt(c) }; } return { span_id: t, trace_id: n, start_timestamp: 0, data: {} }; } function $t(e) { var t; return "parentSpanId" in e ? e.parentSpanId : "parentSpanContext" in e ? (t = e.parentSpanContext) == null ? void 0 : t.spanId : void 0; } function en(e) { var t; return { ...e, attributes: yt(e.attributes), links: (t = e.links) == null ? void 0 : t.map((e) => ({ ...e, attributes: yt(e.attributes) })) }; } function tn(e) { let t = e; return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status; } function nn(e) { return typeof e.getSpanJSON == "function"; } function rn(e) { let { traceFlags: t } = e.spanContext(); return t === 1; } function an(e) { if (!(!e || e.code === 0)) return e.code === 1 ? "ok" : e.message || "internal_error"; } var on = "_sentryRootSpan", sn = cn; function cn(e) { return e[on] || e; } function ln() { Jt || (l(() => { console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`."); }), Jt = !0); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js function un(e) { var t; if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__) return !1; let n = e || ((t = K()) == null ? void 0 : t.getOptions()); return !!n && (n.tracesSampleRate != null || !!n.tracesSampler); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/constants.js var dn = "production", fn = "_frozenDsc"; function pn(e, t) { let n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, i = { environment: n.environment || "production", release: n.release, public_key: r, trace_id: e, org_id: Kt(t) }; return t.emit("createDsc", i), i; } function mn(e, t) { let n = t.getPropagationContext(); return n.dsc || pn(n.traceId, e); } function hn(e) { var t, n, r; let i = K(); if (!i) return {}; let a = sn(e), o = q(a), s = o.data, c = a.spanContext().traceState, l = (t = (n = c == null ? void 0 : c.get("sentry.sample_rate")) == null ? s["sentry.sample_rate"] : n) == null ? s[Et] : t; function u(e) { return (typeof l == "number" || typeof l == "string") && (e.sample_rate = `${l}`), e; } let d = a[fn]; if (d) return u(d); let f = c == null ? void 0 : c.get("sentry.dsc"), p = f && Ft(f); if (p) return u(p); let m = pn(e.spanContext().traceId, i), h = (r = s["sentry.source"]) == null ? s["sentry.span.source"] : r, g = o.description; if (h !== "url" && g && (m.transaction = g), un()) { var _, v; m.sampled = String(rn(a)), m.sample_rand = (_ = c == null ? void 0 : c.get("sentry.sample_rand")) == null ? (v = Pt(a).scope) == null ? void 0 : v.getPropagationContext().sampleRand.toString() : _; } return u(m), i.emit("createDsc", m, a), m; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/scopeData.js function gn(e, t) { let { fingerprint: n, span: r, breadcrumbs: i, sdkProcessingMetadata: a } = t; yn(e, t), r && Sn(e, r), Cn(e, n), bn(e, i), xn(e, a); } function _n(e, t) { let { extra: n, tags: r, attributes: i, user: a, contexts: o, level: s, sdkProcessingMetadata: c, breadcrumbs: l, fingerprint: u, eventProcessors: d, attachments: f, propagationContext: p, transactionName: m, span: h } = t; J(e, "extra", n), J(e, "tags", r), J(e, "attributes", i), J(e, "user", a), J(e, "contexts", o), e.sdkProcessingMetadata = R(e.sdkProcessingMetadata, c, 2), s && (e.level = s), m && (e.transactionName = m), h && (e.span = h), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), u.length && (e.fingerprint = [...e.fingerprint, ...u]), d.length && (e.eventProcessors = [...e.eventProcessors, ...d]), f.length && (e.attachments = [...e.attachments, ...f]), e.propagationContext = { ...e.propagationContext, ...p }; } function J(e, t, n) { e[t] = R(e[t], n, 1); } function vn(e, t) { let n = Ct().getScopeData(); return e && _n(n, e.getScopeData()), t && _n(n, t.getScopeData()), n; } function yn(e, t) { let { extra: n, tags: r, user: i, contexts: a, level: o, transactionName: s } = t; Object.keys(n).length && (e.extra = { ...n, ...e.extra }), Object.keys(r).length && (e.tags = { ...r, ...e.tags }), Object.keys(i).length && (e.user = { ...i, ...e.user }), Object.keys(a).length && (e.contexts = { ...a, ...e.contexts }), o && (e.level = o), s && e.type !== "transaction" && (e.transaction = s); } function bn(e, t) { let n = [...e.breadcrumbs || [], ...t]; e.breadcrumbs = n.length ? n : void 0; } function xn(e, t) { e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...t }; } function Sn(e, t) { e.contexts = { trace: Yt(t), ...e.contexts }, e.sdkProcessingMetadata = { dynamicSamplingContext: hn(t), ...e.sdkProcessingMetadata }; let n = q(sn(t)).description; n && !e.transaction && e.type === "transaction" && (e.transaction = n); } function Cn(e, t) { e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint] : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint.length || delete e.fingerprint; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js var Y = 0, wn = 1, Tn = 2; function X(e) { return new Dn((t) => { t(e); }); } function En(e) { return new Dn((t, n) => { n(e); }); } var Dn = class e { constructor(e) { this._state = Y, this._handlers = [], this._runExecutor(e); } then(t, n) { return new e((e, r) => { this._handlers.push([ !1, (n) => { if (!t) e(n); else try { e(t(n)); } catch (e) { r(e); } }, (t) => { if (!n) r(t); else try { e(n(t)); } catch (e) { r(e); } } ]), this._executeHandlers(); }); } catch(e) { return this.then((e) => e, e); } finally(t) { return new e((e, n) => { let r, i; return this.then((e) => { i = !1, r = e, t && t(); }, (e) => { i = !0, r = e, t && t(); }).then(() => { if (i) { n(r); return; } e(r); }); }); } _executeHandlers() { if (this._state === Y) return; let e = this._handlers.slice(); this._handlers = [], e.forEach((e) => { e[0] || (this._state === wn && e[1](this._value), this._state === Tn && e[2](this._value), e[0] = !0); }); } _runExecutor(e) { let t = (e, t) => { if (this._state === Y) { if (C(t)) { t.then(n, r); return; } this._state = e, this._value = t, this._executeHandlers(); } }, n = (e) => { t(wn, e); }, r = (e) => { t(Tn, e); }; try { e(n, r); } catch (e) { r(e); } } }; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/eventProcessors.js function On(e, t, n, r = 0) { try { let i = Z(t, n, e, r); return C(i) ? i : X(i); } catch (e) { return En(e); } } function Z(t, n, r, i) { let a = r[i]; if (!t || !a) return t; let o = a({ ...t }, n); return e && o === null && v.log(`Event processor "${a.id || "?"}" dropped event`), C(o) ? o.then((e) => Z(e, n, r, i + 1)) : Z(o, n, r, i + 1); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js var Q, kn, An, $; function jn(e) { let n = t._sentryDebugIds, r = t._debugIds; if (!n && !r) return {}; let i = n ? Object.keys(n) : [], a = r ? Object.keys(r) : []; if ($ && i.length === kn && a.length === An) return $; kn = i.length, An = a.length, $ = {}, Q || (Q = {}); let o = (t, n) => { for (let r of t) { let t = n[r], i = Q == null ? void 0 : Q[r]; if (i && $ && t) $[i[0]] = t, Q && (Q[r] = [i[0], t]); else if (t) { let n = e(r); for (let e = n.length - 1; e >= 0; e--) { let i = n[e], a = i == null ? void 0 : i.filename; if (a && $ && Q) { $[a] = t, Q[r] = [a, t]; break; } } } } }; return n && o(i, n), r && o(a, r), $; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js function Mn(e, t, n, r, i, a) { let { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, c = { ...t, event_id: t.event_id || n.event_id || P(), timestamp: t.timestamp || F() }, l = n.integrations || e.integrations.map((e) => e.name); Nn(c, e), In(c, l), i && i.emit("applyFrameMetadata", t), t.type === void 0 && Pn(c, e.stackParser); let u = Rn(r, n.captureContext); n.mechanism && Ge(c, n.mechanism); let d = i ? i.getEventProcessors() : [], f = vn(a, u), p = [...n.attachments || [], ...f.attachments]; p.length && (n.attachments = p), gn(c, f); let m = [...d, ...f.eventProcessors]; return (n.data && n.data.__sentry__ === !0 ? X(c) : On(m, c, n)).then((e) => (e && Fn(e), typeof o == "number" && o > 0 ? Ln(e, o, s) : e)); } function Nn(e, t) { let { environment: n, release: r, dist: i, maxValueLength: a } = t; e.environment = e.environment || n || "production", !e.release && r && (e.release = r), !e.dist && i && (e.dist = i); let o = e.request; if (o != null && o.url && a && (o.url = M(o.url, a)), a) { var s; (s = e.exception) == null || (s = s.values) == null || s.forEach((e) => { e.value && (e.value = M(e.value, a)); }); } } function Pn(e, t) { var n; let r = jn(t); (n = e.exception) == null || (n = n.values) == null || n.forEach((e) => { var t; (t = e.stacktrace) == null || (t = t.frames) == null || t.forEach((e) => { e.filename && (e.debug_id = r[e.filename]); }); }); } function Fn(e) { var t; let n = {}; if ((t = e.exception) == null || (t = t.values) == null || t.forEach((e) => { var t; (t = e.stacktrace) == null || (t = t.frames) == null || t.forEach((e) => { e.debug_id && (e.abs_path ? n[e.abs_path] = e.debug_id : e.filename && (n[e.filename] = e.debug_id), delete e.debug_id); }); }), Object.keys(n).length === 0) return; e.debug_meta = e.debug_meta || {}, e.debug_meta.images = e.debug_meta.images || []; let r = e.debug_meta.images; Object.entries(n).forEach(([e, t]) => { r.push({ type: "sourcemap", code_file: e, debug_id: t }); }); } function In(e, t) { t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]); } function Ln(e, t, n) { var r, i; if (!e) return null; let a = { ...e, ...e.breadcrumbs && { breadcrumbs: e.breadcrumbs.map((e) => ({ ...e, ...e.data && { data: A(e.data, t, n) } })) }, ...e.user && { user: A(e.user, t, n) }, ...e.contexts && { contexts: A(e.contexts, t, n) }, ...e.extra && { extra: A(e.extra, t, n) } }; return (r = e.contexts) != null && r.trace && a.contexts && (a.contexts.trace = e.contexts.trace, e.contexts.trace.data && (a.contexts.trace.data = A(e.contexts.trace.data, t, n))), e.spans && (a.spans = e.spans.map((e) => ({ ...e, ...e.data && { data: A(e.data, t, n) } }))), (i = e.contexts) != null && i.flags && a.contexts && (a.contexts.flags = A(e.contexts.flags, 3, n)), a; } function Rn(e, t) { if (!t) return e; let n = e ? e.clone() : new B(); return n.update(t), n; } function zn(e) { if (e) return Bn(e) || Hn(e) ? { captureContext: e } : e; } function Bn(e) { return e instanceof B || typeof e == "function"; } var Vn = [ "user", "level", "extra", "contexts", "tags", "fingerprint", "propagationContext" ]; function Hn(e) { return Object.keys(e).some((e) => Vn.includes(e)); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.58.0/node_modules/@sentry/core/build/esm/exports.js function Un(e, t) { return W().captureException(e, zn(t)); } function Wn(e, t) { return W().captureEvent(e, t); } function Gn(e, t) { G().setContext(e, t); } function Kn(e, t) { G().setTag(e, t); } function qn(e) { G().setUser(e); } function Jn() { return G().lastEventId(); } function Yn(e) { let n = G(), { user: r } = vn(n, W()), { userAgent: i } = t.navigator || {}, a = Ze({ user: r, ...i && { userAgent: i }, ...e }), o = n.getSession(); return (o == null ? void 0 : o.status) === "ok" && L(o, { status: "exited" }), Xn(), n.setSession(a), a; } function Xn() { let e = G(), t = W().getSession() || e.getSession(); t && Qe(t), Zn(), e.setSession(); } function Zn() { let e = G(), t = K(), n = e.getSession(); n && t && t.captureSession(n); } function Qn(e = !1) { if (e) { Xn(); return; } Zn(); } //#endregion export { ge as $, I as A, je as B, W as C, R as D, wt as E, P as F, we as G, Te as H, Re as I, be as J, ye as K, Le as L, We as M, Ke as N, L as O, Ue as P, ue as Q, ze as R, K as S, Tt as T, O as U, Ae as V, T as W, fe as X, de as Y, le as Z, Vt as _, n as _t, Gn as a, S as at, At as b, Yn as c, se as ct, X as d, o as dt, w as et, mn as f, l as ft, en as g, i as gt, q as h, a as ht, Jn as i, ve as it, Ge as j, F as k, Mn as l, oe as lt, ln as m, c as mt, Un as n, he as nt, Kn as o, C as ot, dn as p, v as pt, xe as q, Qn as r, me as rt, qn as s, re as st, Wn as t, pe as tt, En as u, ie as ut, qt as v, t as vt, G as w, kt as x, jt as y, e as yt, A as z };