;
! function() {
    try {
        var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : {},
            n = (new e.Error).stack;
        n && ((e._debugIds || (e._debugIds = {}))[n] = "ec88d82d-d255-e7fc-e04f-08dbe5ccff53")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 249785, 379343, 248593, 244491, 7198, 132746, 724635, 928798, 139134, 346577, 198402, 979264, 402682, 144399, 214866, 10628, 156372, 792610, 852737, 467371, 574262, 345896, 310683, 820576, 880554, 260265, 978975, 205214, 139800, 779140, 876011, 939434, 899095, 540098, 749196, 298119, 470257, 550460, 972632, 252683, 73166, 959454, 672611, 254274, 519190, t => {
    "use strict";
    let e, n, r, i, s, a, o, c, u = "10.52.0";
    t.s(["SDK_VERSION", 0, u], 379343);
    let l = globalThis;

    function p() {
        return d(l), l
    }

    function d(t) {
        let e = t.__SENTRY__ = t.__SENTRY__ || {};
        return e.version = e.version || u, e[u] = e[u] || {}
    }

    function f(t, e, n = l) {
        let r = n.__SENTRY__ = n.__SENTRY__ || {},
            i = r[u] = r[u] || {};
        return i[t] || (i[t] = e())
    }
    t.s(["GLOBAL_OBJ", 0, l], 248593), t.s(["getGlobalSingleton", 0, f, "getMainCarrier", 0, p, "getSentryCarrier", 0, d], 244491);
    let _ = "u" < typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__;
    t.s(["DEBUG_BUILD", 0, _], 7198);
    let h = Object.prototype.toString;

    function m(t) {
        switch (h.call(t)) {
            case "[object Error]":
            case "[object Exception]":
            case "[object DOMException]":
            case "[object WebAssembly.Exception]":
                return !0;
            default:
                return A(t, Error)
        }
    }

    function g(t, e) {
        return h.call(t) === `[object ${e}]`
    }

    function S(t) {
        return g(t, "String")
    }

    function y(t) {
        return "object" == typeof t && null !== t && "__sentry_template_string__" in t && "__sentry_template_values__" in t
    }

    function b(t) {
        return g(t, "Object")
    }

    function E(t) {
        return "u" > typeof Event && A(t, Event)
    }

    function v(t) {
        return "u" > typeof Element && A(t, Element)
    }

    function T(t) {
        return g(t, "RegExp")
    }

    function I(t) {
        return !!(t ? .then && "function" == typeof t.then)
    }

    function x(t) {
        return b(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t
    }

    function A(t, e) {
        try {
            return t instanceof e
        } catch {
            return !1
        }
    }

    function N(t) {
        return !!("object" == typeof t && null !== t && (t.__isVue || t._isVue || t.__v_isVNode))
    }

    function C(t, e = {}) {
        if (!t) return "<unknown>";
        try {
            let n, r = t,
                i = [],
                s = 0,
                a = 0,
                o = Array.isArray(e) ? e : e.keyAttrs,
                c = !Array.isArray(e) && e.maxStringLength || 80;
            for (; r && s++ < 5 && (n = function(t, e) {
                    let n = [];
                    if (!t ? .tagName) return "";
                    if (l.HTMLElement && t instanceof HTMLElement && t.dataset) {
                        if (t.dataset.sentryComponent) return t.dataset.sentryComponent;
                        if (t.dataset.sentryElement) return t.dataset.sentryElement
                    }
                    n.push(t.tagName.toLowerCase());
                    let r = e ? .length ? e.filter(e => t.getAttribute(e)).map(e => [e, t.getAttribute(e)]) : null;
                    if (r ? .length) r.forEach(t => {
                        n.push(`[${t[0]}="${t[1]}"]`)
                    });
                    else {
                        t.id && n.push(`#${t.id}`);
                        let e = t.className;
                        if (e && S(e))
                            for (let t of e.split(/\s+/)) n.push(`.${t}`)
                    }
                    for (let e of ["aria-label", "type", "name", "title", "alt"]) {
                        let r = t.getAttribute(e);
                        r && n.push(`[${e}="${r}"]`)
                    }
                    return n.join("")
                }(r, o), "html" !== n && (!(s > 1) || !(a + 3 * i.length + n.length >= c)));) i.push(n), a += n.length, r = r.parentNode;
            return i.reverse().join(" > ")
        } catch {
            return "<unknown>"
        }
    }
    t.s(["isDOMError", 0, function(t) {
        return g(t, "DOMError")
    }, "isDOMException", 0, function(t) {
        return g(t, "DOMException")
    }, "isElement", 0, v, "isError", 0, m, "isErrorEvent", 0, function(t) {
        return g(t, "ErrorEvent")
    }, "isEvent", 0, E, "isInstanceOf", 0, A, "isParameterizedString", 0, y, "isPlainObject", 0, b, "isPrimitive", 0, function(t) {
        return null === t || y(t) || "object" != typeof t && "function" != typeof t
    }, "isRegExp", 0, T, "isRequest", 0, function(t) {
        return "u" > typeof Request && A(t, Request)
    }, "isString", 0, S, "isSyntheticEvent", 0, x, "isThenable", 0, I, "isVueViewModel", 0, N], 132746), t.s(["getComponentName", 0, function(t, e = 5) {
        if (!l.HTMLElement) return null;
        let n = t;
        for (let t = 0; t < e && n; t++) {
            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
    }, "getLocationHref", 0, function() {
        try {
            return l.document.location.href
        } catch {
            return ""
        }
    }, "htmlTreeAsString", 0, C], 724635);
    let R = {};

    function k(t) {
        if (!("console" in l)) return t();
        let e = l.console,
            n = {},
            r = Object.keys(R);
        r.forEach(t => {
            let r = R[t];
            n[t] = e[t], e[t] = r
        });
        try {
            return t()
        } finally {
            r.forEach(t => {
                e[t] = n[t]
            })
        }
    }

    function O() {
        return M().enabled
    }

    function w(t, ...e) {
        _ && O() && k(() => {
            l.console[t](`Sentry Logger [${t}]:`, ...e)
        })
    }

    function M() {
        return _ ? f("loggerSettings", () => ({
            enabled: !1
        })) : {
            enabled: !1
        }
    }
    let D = {
        enable: function() {
            M().enabled = !0
        },
        disable: function() {
            M().enabled = !1
        },
        isEnabled: O,
        log: function(...t) {
            w("log", ...t)
        },
        warn: function(...t) {
            w("warn", ...t)
        },
        error: function(...t) {
            w("error", ...t)
        }
    };

    function P(t, e, n) {
        try {
            Object.defineProperty(t, e, {
                value: n,
                writable: !0,
                configurable: !0
            })
        } catch {
            _ && D.log(`Failed to add non-enumerable property "${String(e)}" to object`, t)
        }
    }

    function $(t, e) {
        try {
            let n = e.prototype || {};
            t.prototype = e.prototype = n, P(t, "__sentry_original__", e)
        } catch {}
    }

    function L(t) {
        if (m(t)) return {
            message: t.message,
            name: t.name,
            stack: t.stack,
            ...U(t)
        };
        if (!E(t)) return t; {
            let e = {
                type: t.type,
                target: j(t.target),
                currentTarget: j(t.currentTarget),
                ...U(t)
            };
            return "u" > typeof CustomEvent && A(t, CustomEvent) && (e.detail = t.detail), e
        }
    }

    function j(t) {
        try {
            return v(t) ? C(t) : Object.prototype.toString.call(t)
        } catch {
            return "<unknown>"
        }
    }

    function U(t) {
        return "object" == typeof t && null !== t ? Object.fromEntries(Object.entries(t)) : {}
    }

    function B(t) {
        if (void 0 !== e) return e ? e(t) : t();
        let n = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");
        return n in l && "function" == typeof l[n] ? (e = l[n])(t) : (e = null, t())
    }

    function F() {
        return B(() => Math.random())
    }

    function Y() {
        return B(() => Date.now())
    }
    t.s(["CONSOLE_LEVELS", 0, ["debug", "info", "warn", "error", "log", "assert", "trace"], "consoleSandbox", 0, k, "debug", 0, D, "originalConsoleMethods", 0, R], 928798), t.s(["addNonEnumerableProperty", 0, P, "convertToPlainObject", 0, L, "extractExceptionKeysForMessage", 0, function(t) {
        let e = Object.keys(L(t));
        return e.sort(), e[0] ? e.join(", ") : "[object has no keys]"
    }, "fill", 0, function(t, e, n) {
        if (!(e in t)) return;
        let r = t[e];
        if ("function" != typeof r) return;
        let i = n(r);
        "function" == typeof i && $(i, r);
        try {
            t[e] = i
        } catch {
            _ && D.log(`Failed to replace method "${e}" in object`, t)
        }
    }, "getOriginalFunction", 0, function(t) {
        return t.__sentry_original__
    }, "markFunctionWrapped", 0, $], 139134), t.s(["safeDateNow", 0, Y, "safeMathRandom", 0, F, "withRandomSafeContext", 0, B], 346577);
    let H = /\(error: (.*)\)/,
        J = /captureMessage|captureException/;

    function V(...t) {
        let e = t.sort((t, e) => t[0] - e[0]).map(t => t[1]);
        return (t, n = 0, r = 0) => {
            let i = [],
                s = t.split("\n");
            for (let t = n; t < s.length; t++) {
                let n = s[t];
                n.length > 1024 && (n = n.slice(0, 1024));
                let a = H.test(n) ? n.replace(H, "$1") : n;
                if (!a.includes("Error: ")) {
                    for (let t of e) {
                        let e = t(a);
                        if (e) {
                            i.push(e);
                            break
                        }
                    }
                    if (i.length >= 50 + r) break
                }
            }
            var a = i.slice(r);
            if (!a.length) return [];
            let o = Array.from(a);
            return /sentryWrapped/.test(G(o).function || "") && o.pop(), o.reverse(), J.test(G(o).function || "") && (o.pop(), J.test(G(o).function || "") && o.pop()), o.slice(0, 50).map(t => ({ ...t,
                filename: t.filename || G(o).filename,
                function: t.function || "?"
            }))
        }
    }

    function G(t) {
        return t[t.length - 1] || {}
    }
    let z = "<anonymous>";

    function K(t) {
        try {
            if (!t || "function" != typeof t) return z;
            return t.name || z
        } catch {
            return z
        }
    }

    function W(t) {
        return "__v_isVNode" in t && t.__v_isVNode ? "[VueVNode]" : "[VueViewModel]"
    }

    function q(t, e = 0) {
        return "string" != typeof t || 0 === e || t.length <= e ? t : `${t.slice(0,e)}...`
    }

    function X(t, e, n = !1) {
        return !!S(t) && (T(e) ? e.test(t) : S(e) ? n ? t === e : t.includes(e) : "function" == typeof e && e(t))
    }

    function Q(t = l.crypto || l.msCrypto) {
        try {
            if (t ? .randomUUID) return B(() => t.randomUUID()).replace(/-/g, "")
        } catch {}
        return n || (n = "10000000100040008000100000000000"), n.replace(/[018]/g, t => (t ^ (15 & 16 * F()) >> t / 4).toString(16))
    }

    function Z(t) {
        return t.exception ? .values ? .[0]
    }

    function tt(t, e) {
        let n = Z(t);
        if (!n) return;
        let r = n.mechanism;
        if (n.mechanism = {
                type: "generic",
                handled: !0,
                ...r,
                ...e
            }, e && "data" in e) {
            let t = { ...r ? .data,
                ...e.data
            };
            n.mechanism.data = t
        }
    }

    function te(t) {
        try {
            return t.__sentry_captured__
        } catch {}
    }

    function tn() {
        return Y() / 1e3
    }

    function tr() {
        return (r ? ? (r = function() {
            let {
                performance: t
            } = l;
            if (!t ? .now || !t.timeOrigin) return tn;
            let e = t.timeOrigin;
            return () => (e + B(() => t.now())) / 1e3
        }()))()
    }
    t.s(["UNKNOWN_FUNCTION", 0, "?", "createStackParser", 0, V, "getFramesFromEvent", 0, function(t) {
        let e = t.exception;
        if (e) {
            let t = [];
            try {
                return e.values.forEach(e => {
                    e.stacktrace.frames && t.push(...e.stacktrace.frames)
                }), t
            } catch {}
        }
    }, "getFunctionName", 0, K, "getVueInternalName", 0, W, "normalizeStackTracePath", 0, function(t) {
        let e = t ? .startsWith("file://") ? t.slice(7) : t;
        return e ? .match(/\/[A-Z]:/) && (e = e.slice(1)), e
    }, "stackParserFromStackParserOptions", 0, function(t) {
        return Array.isArray(t) ? V(...t) : t
    }], 198402), t.s(["isMatchingPattern", 0, X, "safeJoin", 0, function(t, e) {
        if (!Array.isArray(t)) return "";
        let n = [];
        for (let e = 0; e < t.length; e++) {
            let r = t[e];
            try {
                N(r) ? n.push(W(r)) : n.push(String(r))
            } catch {
                n.push("[value cannot be serialized]")
            }
        }
        return n.join(e)
    }, "snipLine", 0, function(t, e) {
        let n = t,
            r = n.length;
        if (r <= 150) return n;
        e > r && (e = r);
        let i = Math.max(e - 60, 0);
        i < 5 && (i = 0);
        let s = Math.min(i + 140, r);
        return s > r - 5 && (s = r), s === r && (i = Math.max(s - 140, 0)), n = n.slice(i, s), i > 0 && (n = `'{snip} ${n}`), s < r && (n += " {snip}"), n
    }, "stringMatchesSomePattern", 0, function(t, e = [], n = !1) {
        return e.some(e => X(t, e, n))
    }, "truncate", 0, q], 979264), t.s(["addExceptionMechanism", 0, tt, "addExceptionTypeValue", 0, function(t, e, n) {
        let r = t.exception = t.exception || {},
            i = r.values = r.values || [],
            s = i[0] = i[0] || {};
        s.value || (s.value = e || ""), s.type || (s.type = n || "Error")
    }, "checkOrSetAlreadyCaught", 0, function(t) {
        if (te(t)) return !0;
        try {
            P(t, "__sentry_captured__", !0)
        } catch {}
        return !1
    }, "getEventDescription", 0, function(t) {
        let {
            message: e,
            event_id: n
        } = t;
        if (e) return e;
        let r = Z(t);
        return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"
    }, "isAlreadyCaptured", 0, te, "uuid4", 0, Q], 402682);
    let ti = null;

    function ts(t) {
        let e = tr(),
            n = {
                sid: Q(),
                init: !0,
                timestamp: e,
                started: e,
                duration: 0,
                status: "ok",
                errors: 0,
                ignoreDuration: !1,
                toJSON: () => {
                    var t;
                    return t = n, {
                        sid: `${t.sid}`,
                        init: t.init,
                        started: new Date(1e3 * t.started).toISOString(),
                        timestamp: new Date(1e3 * t.timestamp).toISOString(),
                        status: t.status,
                        errors: t.errors,
                        did: "number" == typeof t.did || "string" == typeof t.did ? `${t.did}` : void 0,
                        duration: t.duration,
                        abnormal_mechanism: t.abnormal_mechanism,
                        attrs: {
                            release: t.release,
                            environment: t.environment,
                            ip_address: t.ipAddress,
                            user_agent: t.userAgent
                        }
                    }
                }
            };
        return t && ta(n, t), n
    }

    function ta(t, e = {}) {
        if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), t.did || e.did || (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || tr(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = 32 === e.sid.length ? e.sid : Q()), void 0 !== e.init && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), "number" == typeof e.started && (t.started = e.started), t.ignoreDuration) t.duration = void 0;
        else if ("number" == typeof e.duration) t.duration = e.duration;
        else {
            let e = t.timestamp - t.started;
            t.duration = e >= 0 ? e : 0
        }
        e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), "number" == typeof e.errors && (t.errors = e.errors), e.status && (t.status = e.status)
    }

    function to(t, e) {
        let n = {};
        e ? n = {
            status: e
        } : "ok" === t.status && (n = {
            status: "exited"
        }), ta(t, n)
    }

    function tc(t, e, n = 2) {
        if (!e || "object" != typeof e || n <= 0) return e;
        if (t && 0 === Object.keys(e).length) return t;
        let r = { ...t
        };
        for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = tc(r[t], e[t], n - 1));
        return r
    }

    function tu() {
        return Q()
    }

    function tl() {
        return Q().substring(16)
    }
    t.s(["browserPerformanceTimeOrigin", 0, function() {
        return null === ti && (ti = function() {
            let {
                performance: t
            } = l;
            if (!t ? .now) return;
            let e = B(() => t.now()),
                n = Y(),
                r = t.timeOrigin;
            if ("number" == typeof r && 3e5 > Math.abs(r + e - n)) return r;
            let i = t.timing ? .navigationStart;
            return "number" == typeof i && 3e5 > Math.abs(i + e - n) ? i : n - e
        }()), ti
    }, "dateTimestampInSeconds", 0, tn, "timestampInSeconds", 0, tr], 144399), t.s(["closeSession", 0, to, "makeSession", 0, ts, "updateSession", 0, ta], 214866), t.s(["merge", 0, tc], 10628), t.s(["generateSpanId", 0, tl, "generateTraceId", 0, tu], 156372);
    let tp = "_sentrySpan";

    function td(t, e) {
        e ? P(t, tp, e) : delete t[tp]
    }

    function tf(t) {
        return t[tp]
    }
    t.s(["_getSpanForScope", 0, tf, "_setSpanForScope", 0, td], 792610);
    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: tu(),
                sampleRand: F()
            }
        }
        clone() {
            let t = new t_;
            return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags
            }, t._attributes = { ...this._attributes
            }, t._extra = { ...this._extra
            }, t._contexts = { ...this._contexts
            }, this._contexts.flags && (t._contexts.flags = {
                values: [...this._contexts.flags.values]
            }), t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata
            }, t._propagationContext = { ...this._propagationContext
            }, t._client = this._client, t._lastEventId = this._lastEventId, t._conversationId = this._conversationId, td(t, tf(this)), t
        }
        setClient(t) {
            this._client = t
        }
        setLastEventId(t) {
            this._lastEventId = t
        }
        getClient() {
            return this._client
        }
        lastEventId() {
            return this._lastEventId
        }
        addScopeListener(t) {
            this._scopeListeners.push(t)
        }
        addEventProcessor(t) {
            return this._eventProcessors.push(t), this
        }
        setUser(t) {
            return this._user = t || {
                email: void 0,
                id: void 0,
                ip_address: void 0,
                username: void 0
            }, this._session && ta(this._session, {
                user: t
            }), this._notifyScopeListeners(), this
        }
        getUser() {
            return this._user
        }
        setConversationId(t) {
            return this._conversationId = t || void 0, this._notifyScopeListeners(), this
        }
        setTags(t) {
            return this._tags = { ...this._tags,
                ...t
            }, this._notifyScopeListeners(), this
        }
        setTag(t, e) {
            return this.setTags({
                [t]: e
            })
        }
        setAttributes(t) {
            return this._attributes = { ...this._attributes,
                ...t
            }, this._notifyScopeListeners(), this
        }
        setAttribute(t, e) {
            return this.setAttributes({
                [t]: e
            })
        }
        removeAttribute(t) {
            return t in this._attributes && (delete this._attributes[t], this._notifyScopeListeners()), this
        }
        setExtras(t) {
            return this._extra = { ...this._extra,
                ...t
            }, this._notifyScopeListeners(), this
        }
        setExtra(t, e) {
            return this._extra = { ...this._extra,
                [t]: e
            }, this._notifyScopeListeners(), this
        }
        setFingerprint(t) {
            return this._fingerprint = t, this._notifyScopeListeners(), this
        }
        setLevel(t) {
            return this._level = t, this._notifyScopeListeners(), this
        }
        setTransactionName(t) {
            return this._transactionName = t, this._notifyScopeListeners(), this
        }
        setContext(t, e) {
            return null === e ? delete this._contexts[t] : this._contexts[t] = e, this._notifyScopeListeners(), this
        }
        setSession(t) {
            return t ? this._session = t : delete this._session, this._notifyScopeListeners(), this
        }
        getSession() {
            return this._session
        }
        update(t) {
            if (!t) return this;
            let e = "function" == typeof t ? t(this) : t,
                {
                    tags: n,
                    attributes: r,
                    extra: i,
                    user: s,
                    contexts: a,
                    level: o,
                    fingerprint: c = [],
                    propagationContext: u,
                    conversationId: l
                } = (e instanceof t_ ? e.getScopeData() : b(e) ? t : void 0) || {};
            return this._tags = { ...this._tags,
                ...n
            }, this._attributes = { ...this._attributes,
                ...r
            }, this._extra = { ...this._extra,
                ...i
            }, this._contexts = { ...this._contexts,
                ...a
            }, s && Object.keys(s).length && (this._user = s), o && (this._level = o), c.length && (this._fingerprint = c), u && (this._propagationContext = u), l && (this._conversationId = l), 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, td(this, void 0), this._attachments = [], this.setPropagationContext({
                traceId: tu(),
                sampleRand: F()
            }), this._notifyScopeListeners(), this
        }
        addBreadcrumb(t, e) {
            let n = "number" == typeof e ? e : 100;
            if (n <= 0) return this;
            let r = {
                timestamp: tn(),
                ...t,
                message: t.message ? q(t.message, 2048) : t.message
            };
            return this._breadcrumbs.push(r), this._breadcrumbs.length > n && (this._breadcrumbs = this._breadcrumbs.slice(-n), this._client ? .recordDroppedEvent("buffer_overflow", "log_item")), this._notifyScopeListeners(), this
        }
        getLastBreadcrumb() {
            return this._breadcrumbs[this._breadcrumbs.length - 1]
        }
        clearBreadcrumbs() {
            return this._breadcrumbs = [], this._notifyScopeListeners(), this
        }
        addAttachment(t) {
            return this._attachments.push(t), 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: tf(this),
                conversationId: this._conversationId
            }
        }
        setSDKProcessingMetadata(t) {
            return this._sdkProcessingMetadata = tc(this._sdkProcessingMetadata, t, 2), this
        }
        setPropagationContext(t) {
            return this._propagationContext = t, this
        }
        getPropagationContext() {
            return this._propagationContext
        }
        captureException(t, e) {
            let n = e ? .event_id || Q();
            if (!this._client) return _ && D.warn("No client configured on scope - will not capture exception!"), n;
            let r = Error("Sentry syntheticException");
            return this._client.captureException(t, {
                originalException: t,
                syntheticException: r,
                ...e,
                event_id: n
            }, this), n
        }
        captureMessage(t, e, n) {
            let r = n ? .event_id || Q();
            if (!this._client) return _ && D.warn("No client configured on scope - will not capture message!"), r;
            let i = n ? .syntheticException ? ? Error(t);
            return this._client.captureMessage(t, e, {
                originalException: t,
                syntheticException: i,
                ...n,
                event_id: r
            }, this), r
        }
        captureEvent(t, e) {
            let n = t.event_id || e ? .event_id || Q();
            return this._client ? this._client.captureEvent(t, { ...e,
                event_id: n
            }, this) : _ && D.warn("No client configured on scope - will not capture event!"), n
        }
        _notifyScopeListeners() {
            this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach(t => {
                t(this)
            }), this._notifyingListeners = !1)
        }
    }
    let th = t => t instanceof Promise && !t[tm],
        tm = Symbol("chained PromiseLike");
    class tg {
        constructor(t, e) {
            let n, r;
            n = t || new t_, r = e || new t_, this._stack = [{
                scope: n
            }], this._isolationScope = r
        }
        withScope(t) {
            let e, n = this._pushScope();
            try {
                e = t(n)
            } catch (t) {
                throw this._popScope(), t
            }
            if (I(e)) {
                var r, i, s;
                let t;
                return r = e, i = () => this._popScope(), s = () => this._popScope(), th(t = r.then(t => (i(t), t), t => {
                    throw s(t), t
                })) && th(r) ? t : ((t, e) => {
                    if (!e) return t;
                    let n = !1;
                    for (let r in t) {
                        if (r in e) continue;
                        n = !0;
                        let i = t[r];
                        "function" == typeof i ? Object.defineProperty(e, r, {
                            value: (...e) => i.apply(t, e),
                            enumerable: !0,
                            configurable: !0,
                            writable: !0
                        }) : e[r] = i
                    }
                    return n && Object.assign(e, {
                        [tm]: !0
                    }), e
                })(r, t)
            }
            return this._popScope(), e
        }
        getClient() {
            return this.getStackTop().client
        }
        getScope() {
            return this.getStackTop().scope
        }
        getIsolationScope() {
            return this._isolationScope
        }
        getStackTop() {
            return this._stack[this._stack.length - 1]
        }
        _pushScope() {
            let t = this.getScope().clone();
            return this._stack.push({
                client: this.getClient(),
                scope: t
            }), t
        }
        _popScope() {
            return !(this._stack.length <= 1) && !!this._stack.pop()
        }
    }

    function tS() {
        let t = d(p());
        return t.stack = t.stack || new tg(f("defaultCurrentScope", () => new t_), f("defaultIsolationScope", () => new t_))
    }

    function ty(t) {
        return tS().withScope(t)
    }

    function tb(t, e) {
        let n = tS();
        return n.withScope(() => (n.getStackTop().scope = t, e(t)))
    }

    function tE(t) {
        return tS().withScope(() => t(tS().getIsolationScope()))
    }

    function tv(t) {
        let e = d(t);
        return e.acs ? e.acs : {
            withIsolationScope: tE,
            withScope: ty,
            withSetScope: tb,
            withSetIsolationScope: (t, e) => tE(e),
            getCurrentScope: () => tS().getScope(),
            getIsolationScope: () => tS().getIsolationScope()
        }
    }

    function tT() {
        return tv(p()).getCurrentScope()
    }

    function tI() {
        return tv(p()).getIsolationScope()
    }

    function tx() {
        return f("globalScope", () => new t_)
    }

    function tA(...t) {
        let e = tv(p());
        if (2 === t.length) {
            let [n, r] = t;
            return n ? e.withSetScope(n, r) : e.withScope(r)
        }
        return e.withScope(t[0])
    }

    function tN() {
        return tT().getClient()
    }
    t.s(["getAsyncContextStrategy", 0, tv], 852737), t.s(["getClient", 0, tN, "getCurrentScope", 0, tT, "getGlobalScope", 0, tx, "getIsolationScope", 0, tI, "getTraceContextFromScope", 0, function(t) {
        let e = i ? .();
        if (e) return {
            trace_id: e.traceId,
            span_id: e.spanId
        };
        let {
            traceId: n,
            parentSpanId: r,
            propagationSpanId: s
        } = t.getPropagationContext(), a = {
            trace_id: n,
            span_id: s || tl()
        };
        return r && (a.parent_span_id = r), a
    }, "hasExternalPropagationContext", 0, function() {
        return void 0 !== i
    }, "withIsolationScope", 0, function(...t) {
        let e = tv(p());
        if (2 === t.length) {
            let [n, r] = t;
            return n ? e.withSetIsolationScope(n, r) : e.withIsolationScope(r)
        }
        return e.withIsolationScope(t[0])
    }, "withScope", 0, tA], 467371);
    let tC = "sentry.source",
        tR = "sentry.sample_rate",
        tk = "sentry.previous_trace_sample_rate",
        tO = "sentry.op",
        tw = "sentry.origin",
        tM = "sentry.measurement_unit",
        tD = "sentry.measurement_value",
        tP = "sentry.custom_span_name",
        t$ = "sentry.profile_id",
        tL = "sentry.exclusive_time";
    t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE", 0, "gen_ai.conversation.id", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", 0, tL, "SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD", 0, "http.request.method", "SEMANTIC_ATTRIBUTE_PROFILE_ID", 0, t$, "SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME", 0, tP, "SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT", 0, "sentry.environment", "SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON", 0, "sentry.idle_span_finish_reason", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", 0, tM, "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", 0, tD, "SEMANTIC_ATTRIBUTE_SENTRY_OP", 0, tO, "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", 0, tw, "SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE", 0, tk, "SEMANTIC_ATTRIBUTE_SENTRY_RELEASE", 0, "sentry.release", "SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE", 0, tR, "SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME", 0, "sentry.sdk.name", "SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION", 0, "sentry.sdk.version", "SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID", 0, "sentry.segment.id", "SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME", 0, "sentry.segment.name", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", 0, tC, "SEMANTIC_ATTRIBUTE_URL_FULL", 0, "url.full", "SEMANTIC_ATTRIBUTE_USER_EMAIL", 0, "user.email", "SEMANTIC_ATTRIBUTE_USER_ID", 0, "user.id", "SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS", 0, "user.ip_address", "SEMANTIC_ATTRIBUTE_USER_USERNAME", 0, "user.name", "SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE", 0, "sentry.link.type"], 574262);
    let tj = "sentry-";

    function tU(t) {
        let e = tB(t);
        if (!e) return;
        let n = Object.entries(e).reduce((t, [e, n]) => (e.startsWith(tj) && (t[e.slice(tj.length)] = n), t), {});
        return Object.keys(n).length > 0 ? n : void 0
    }

    function tB(t) {
        if (t && (S(t) || Array.isArray(t))) return Array.isArray(t) ? t.reduce((t, e) => (Object.entries(tF(e)).forEach(([e, n]) => {
            t[e] = n
        }), t), {}) : tF(t)
    }

    function tF(t) {
        return t.split(",").map(t => {
            let e = t.indexOf("=");
            return -1 === e ? [] : [t.slice(0, e), t.slice(e + 1)].map(t => {
                try {
                    return decodeURIComponent(t.trim())
                } catch {
                    return
                }
            })
        }).reduce((t, [e, n]) => (e && n && (t[e] = n), t), {})
    }

    function tY(t) {
        if ("boolean" == typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1;
        let e = t || tN() ? .getOptions();
        return !!e && (null != e.tracesSampleRate || !!e.tracesSampler)
    }

    function tH(t) {
        D.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)
    }

    function tJ(t, e) {
        if (!e ? .length) return !1;
        for (let r of e) {
            var n;
            if ("string" == typeof(n = r) || n instanceof RegExp) {
                if (t.description && X(t.description, r)) return _ && tH(t), !0;
                continue
            }
            let e = !!r.attributes && Object.keys(r.attributes).length > 0;
            if (!r.name && !r.op && !e) continue;
            let i = !r.name || t.description && X(t.description, r.name),
                s = !r.op || t.op && X(t.op, r.op),
                a = !r.attributes || Object.entries(r.attributes).every(([e, n]) => (function(t, e) {
                    return "string" == typeof t && ("string" == typeof e || e instanceof RegExp) ? X(t, e) : Array.isArray(t) && Array.isArray(e) ? t.length === e.length && t.every((t, n) => t === e[n]) : t === e
                })(t.attributes ? .[e], n));
            if (i && s && a) return _ && tH(t), !0
        }
        return !1
    }

    function tV(t) {
        return "stream" === t.getOptions().traceLifecycle
    }

    function tG(t) {
        if ("boolean" == typeof t) return Number(t);
        let e = "string" == typeof t ? parseFloat(t) : t;
        if (!("number" != typeof e || isNaN(e)) && !(e < 0) && !(e > 1)) return e
    }

    function tz(t, e = !1) {
        let n = {};
        for (let [r, i] of Object.entries(t ? ? {})) {
            let t = function(t, e) {
                let {
                    value: n,
                    unit: r
                } = "object" == typeof t && null != t && !Array.isArray(t) && Object.keys(t).includes("value") ? t : {
                    value: t,
                    unit: void 0
                }, i = function(t) {
                    let e = "string" == typeof t ? "string" : "boolean" == typeof t ? "boolean" : "number" != typeof t || Number.isNaN(t) ? null : Number.isInteger(t) ? "integer" : "double";
                    if (e) return {
                        value: t,
                        type: e
                    }
                }(n), s = r && "string" == typeof r ? {
                    unit: r
                } : {};
                if (i) return { ...i,
                    ...s
                };
                if (!e || "skip-undefined" === e && void 0 === n) return;
                let a = "";
                try {
                    a = JSON.stringify(n) ? ? ""
                } catch {}
                return {
                    value: a,
                    type: "string",
                    ...s
                }
            }(i, e);
            t && (n[r] = t)
        }
        return n
    }
    t.s(["SENTRY_BAGGAGE_KEY_PREFIX", 0, tj, "baggageHeaderToDynamicSamplingContext", 0, tU, "dynamicSamplingContextToSentryBaggageHeader", 0, function(t) {
        if (t) {
            var e = Object.entries(t).reduce((t, [e, n]) => (n && (t[`${tj}${e}`] = n), t), {});
            return 0 !== Object.keys(e).length ? Object.entries(e).reduce((t, [e, n], r) => {
                let i = `${encodeURIComponent(e)}=${encodeURIComponent(n)}`,
                    s = 0 === r ? i : `${t},${i}`;
                return s.length > 8192 ? (_ && D.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`), t) : s
            }, "") : void 0
        }
    }, "parseBaggageHeader", 0, tB], 345896), t.s(["hasSpansEnabled", 0, tY], 310683), t.s(["reparentChildSpans", 0, function(t, e) {
        let n = e.parent_span_id,
            r = e.span_id;
        if (n)
            for (let e of t) e.parent_span_id === r && (e.parent_span_id = n)
    }, "shouldIgnoreSpan", 0, tJ], 820576), t.s(["hasSpanStreamingEnabled", 0, tV], 880554), t.s(["parseSampleRate", 0, tG], 260265), t.s(["serializeAttributes", 0, tz], 978975), t.s(["SPAN_STATUS_ERROR", 0, 2, "SPAN_STATUS_OK", 0, 1, "SPAN_STATUS_UNSET", 0, 0, "setHttpStatus", 0, function(t, e) {
        t.setAttribute("http.response.status_code", e);
        let n = function(t) {
            if (t < 400 && t >= 100) return {
                code: 1
            };
            if (t >= 400 && t < 500) switch (t) {
                case 401:
                    return {
                        code: 2,
                        message: "unauthenticated"
                    };
                case 403:
                    return {
                        code: 2,
                        message: "permission_denied"
                    };
                case 404:
                    return {
                        code: 2,
                        message: "not_found"
                    };
                case 409:
                    return {
                        code: 2,
                        message: "already_exists"
                    };
                case 413:
                    return {
                        code: 2,
                        message: "failed_precondition"
                    };
                case 429:
                    return {
                        code: 2,
                        message: "resource_exhausted"
                    };
                case 499:
                    return {
                        code: 2,
                        message: "cancelled"
                    };
                default:
                    return {
                        code: 2,
                        message: "invalid_argument"
                    }
            }
            if (t >= 500 && t < 600) switch (t) {
                case 501:
                    return {
                        code: 2,
                        message: "unimplemented"
                    };
                case 503:
                    return {
                        code: 2,
                        message: "unavailable"
                    };
                case 504:
                    return {
                        code: 2,
                        message: "deadline_exceeded"
                    }
            }
            return {
                code: 2,
                message: "internal_error"
            }
        }(e);
        "unknown_error" !== n.message && t.setStatus(n)
    }], 205214);
    let tK = "_sentryScope",
        tW = "_sentryIsolationScope";

    function tq(t, e, n) {
        t && (P(t, tW, function(t) {
            try {
                let e = l.WeakRef;
                if ("function" == typeof e) return new e(t)
            } catch {}
            return t
        }(n)), P(t, tK, e))
    }

    function tX(t) {
        return {
            scope: t[tK],
            isolationScope: function(t) {
                if (t) {
                    if ("object" == typeof t && "deref" in t && "function" == typeof t.deref) try {
                        return t.deref()
                    } catch {
                        return
                    }
                    return t
                }
            }(t[tW])
        }
    }
    t.s(["getCapturedScopesOnSpan", 0, tX, "setCapturedScopesOnSpan", 0, tq], 139800);
    let tQ = /^o(\d+)\./,
        tZ = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;

    function t0(t, e = !1) {
        let {
            host: n,
            path: r,
            pass: i,
            port: s,
            projectId: a,
            protocol: o,
            publicKey: c
        } = t;
        return `${o}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`
    }

    function t1(t) {
        let e = tZ.exec(t);
        if (!e) return void k(() => {
            console.error(`Invalid Sentry Dsn: ${t}`)
        });
        let [n, r, i = "", s = "", a = "", o = ""] = e.slice(1), c = "", u = o, l = u.split("/");
        if (l.length > 1 && (c = l.slice(0, -1).join("/"), u = l.pop()), u) {
            let t = u.match(/^\d+/);
            t && (u = t[0])
        }
        return t2({
            host: s,
            pass: i,
            path: c,
            projectId: u,
            port: a,
            protocol: n,
            publicKey: r
        })
    }

    function t2(t) {
        return {
            protocol: t.protocol,
            publicKey: t.publicKey || "",
            pass: t.pass || "",
            host: t.host,
            port: t.port || "",
            path: t.path || "",
            projectId: t.projectId
        }
    }

    function t4(t) {
        let e, n = t.getOptions(),
            {
                host: r
            } = t.getDsn() || {};
        if (n.orgId) e = String(n.orgId);
        else {
            let t;
            r && (t = r.match(tQ), e = t ? .[1])
        }
        return e
    }
    t.s(["dsnFromString", 0, t1, "dsnToString", 0, t0, "extractOrgIdFromClient", 0, t4, "makeDsn", 0, function(t) {
        let e = "string" == typeof t ? t1(t) : t2(t);
        if (e && function(t) {
                if (!_) return !0;
                let {
                    port: e,
                    projectId: n,
                    protocol: r
                } = t;
                return !["protocol", "publicKey", "host", "projectId"].find(e => !t[e] && (D.error(`Invalid Sentry Dsn: ${e} missing`), !0)) && (n.match(/^\d+$/) ? "http" !== r && "https" !== r ? (D.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : !(e && isNaN(parseInt(e, 10))) || (D.error(`Invalid Sentry Dsn: Invalid port ${e}`), !1) : (D.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1))
            }(e)) return e
    }], 779140);
    let t9 = RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");

    function t3(t = tu(), e = tl(), n) {
        let r = "";
        return void 0 !== n && (r = n ? "-1" : "-0"), `${t}-${e}${r}`
    }

    function t5(t = tu(), e = tl(), n) {
        return `00-${t}-${e}-${n?"01":"00"}`
    }
    t.s(["TRACEPARENT_REGEXP", 0, t9, "generateSentryTraceHeader", 0, t3, "generateTraceparentHeader", 0, t5, "propagationContextFromHeaders", 0, function(t, e) {
        let n = function(t) {
                let e;
                if (!t) return;
                let n = t.match(t9);
                if (n) return "1" === n[3] ? e = !0 : "0" === n[3] && (e = !1), {
                    traceId: n[1],
                    parentSampled: e,
                    parentSpanId: n[2]
                }
            }(t),
            r = tU(e);
        if (!n ? .traceId) return {
            traceId: tu(),
            sampleRand: F()
        };
        let i = function(t, e) {
            let n = tG(e ? .sample_rand);
            if (void 0 !== n) return n;
            let r = tG(e ? .sample_rate);
            return r && t ? .parentSampled !== void 0 ? t.parentSampled ? F() * r : r + F() * (1 - r) : F()
        }(n, r);
        r && (r.sample_rand = i.toString());
        let {
            traceId: s,
            parentSpanId: a,
            parentSampled: o
        } = n;
        return {
            traceId: s,
            parentSpanId: a,
            sampled: o,
            dsc: r || {},
            sampleRand: i
        }
    }, "shouldContinueTrace", 0, function(t, e) {
        let n = t4(t);
        return e && n && e !== n ? (D.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`), !1) : !t.getOptions().strictTraceContinuation || (!e || !!n) && (!!e || !n) || (D.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`), !1)
    }], 876011);
    let t7 = !1;

    function t6(t) {
        let {
            spanId: e,
            traceId: n
        } = t.spanContext(), {
            data: r,
            op: i,
            parent_span_id: s,
            status: a,
            origin: o,
            links: c
        } = ei(t);
        return {
            parent_span_id: s,
            span_id: e,
            trace_id: n,
            data: r,
            op: i,
            status: a,
            origin: o,
            links: c
        }
    }

    function t8(t) {
        let {
            spanId: e,
            traceId: n,
            isRemote: r
        } = t.spanContext(), i = r ? e : ei(t).parent_span_id, s = tX(t).scope;
        return {
            parent_span_id: i,
            span_id: r ? s ? .getPropagationContext().propagationSpanId || tl() : e,
            trace_id: n
        }
    }

    function et(t) {
        return t && t.length > 0 ? t.map(({
            context: {
                spanId: t,
                traceId: e,
                traceFlags: n,
                ...r
            },
            attributes: i
        }) => ({
            span_id: t,
            trace_id: e,
            sampled: 1 === n,
            attributes: i,
            ...r
        })) : void 0
    }

    function ee(t) {
        return t ? .length ? t.map(({
            context: {
                spanId: t,
                traceId: e,
                traceFlags: n
            },
            attributes: r
        }) => ({
            span_id: t,
            trace_id: e,
            sampled: 1 === n,
            attributes: r
        })) : void 0
    }

    function en(t) {
        return "number" == typeof t ? er(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? er(t.getTime()) : tr()
    }

    function er(t) {
        return t > 0x2540be3ff ? t / 1e3 : t
    }

    function ei(t) {
        if (eo(t)) return t.getSpanJSON();
        let {
            spanId: e,
            traceId: n
        } = t.spanContext();
        if (ea(t)) {
            let {
                attributes: r,
                startTime: i,
                name: s,
                endTime: a,
                status: o,
                links: c
            } = t;
            return {
                span_id: e,
                trace_id: n,
                data: r,
                description: s,
                parent_span_id: es(t),
                start_timestamp: en(i),
                timestamp: en(a) || void 0,
                status: eu(o),
                op: r[tO],
                origin: r[tw],
                links: et(c)
            }
        }
        return {
            span_id: e,
            trace_id: n,
            start_timestamp: 0,
            data: {}
        }
    }

    function es(t) {
        return "parentSpanId" in t ? t.parentSpanId : "parentSpanContext" in t ? t.parentSpanContext ? .spanId : void 0
    }

    function ea(t) {
        return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status
    }

    function eo(t) {
        return "function" == typeof t.getSpanJSON
    }

    function ec(t) {
        let {
            traceFlags: e
        } = t.spanContext();
        return 1 === e
    }

    function eu(t) {
        if (t && 0 !== t.code) return 1 === t.code ? "ok" : t.message || "internal_error"
    }

    function el(t) {
        return t && 1 !== t.code && 0 !== t.code && "cancelled" !== t.message ? "error" : "ok"
    }
    let ep = "_sentryChildSpans",
        ed = "_sentryRootSpan";

    function ef(t, e) {
        let n = t[ed] || t;
        P(e, ed, n), t[ep] ? t[ep].add(e) : P(t, ep, new Set([e]))
    }

    function e_(t) {
        let e = new Set;
        return ! function t(n) {
            if (!e.has(n) && ec(n))
                for (let r of (e.add(n), n[ep] ? Array.from(n[ep]) : [])) t(r)
        }(t), Array.from(e)
    }
    let eh = em;

    function em(t) {
        return t[ed] || t
    }

    function eg() {
        let t = tv(p());
        return t.getActiveSpan ? t.getActiveSpan() : tf(tT())
    }

    function eS() {
        t7 || (k(() => {
            console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")
        }), t7 = !0)
    }
    t.s(["INTERNAL_getSegmentSpan", 0, em, "TRACE_FLAG_NONE", 0, 0, "TRACE_FLAG_SAMPLED", 0, 1, "addChildSpanToSpan", 0, ef, "convertSpanLinksForEnvelope", 0, et, "getActiveSpan", 0, eg, "getRootSpan", 0, eh, "getSimpleStatusMessage", 0, el, "getSpanDescendants", 0, e_, "getStatusMessage", 0, eu, "getStreamedSpanLinks", 0, ee, "removeChildSpanFromSpan", 0, function(t, e) {
        t[ep] && t[ep].delete(e)
    }, "showSpanDropWarning", 0, eS, "spanIsSampled", 0, ec, "spanTimeInputToSeconds", 0, en, "spanToJSON", 0, ei, "spanToStreamedSpanJSON", 0, function(t) {
        if (eo(t)) return t.getStreamedSpanJSON();
        let {
            spanId: e,
            traceId: n
        } = t.spanContext();
        if (ea(t)) {
            let {
                attributes: r,
                startTime: i,
                name: s,
                endTime: a,
                status: o,
                links: c
            } = t;
            return {
                name: s,
                span_id: e,
                trace_id: n,
                parent_span_id: es(t),
                start_timestamp: en(i),
                end_timestamp: en(a),
                is_segment: t === em(t),
                status: el(o),
                attributes: r,
                links: ee(c)
            }
        }
        return {
            span_id: e,
            trace_id: n,
            start_timestamp: 0,
            name: "",
            end_timestamp: 0,
            status: "ok",
            is_segment: t === em(t)
        }
    }, "spanToTraceContext", 0, t8, "spanToTraceHeader", 0, function(t) {
        let {
            traceId: e,
            spanId: n
        } = t.spanContext();
        return t3(e, n, ec(t))
    }, "spanToTraceparentHeader", 0, function(t) {
        let {
            traceId: e,
            spanId: n
        } = t.spanContext();
        return t5(e, n, ec(t))
    }, "spanToTransactionTraceContext", 0, t6, "streamedSpanJsonToSerializedSpan", 0, function(t) {
        return { ...t,
            attributes: tz(t.attributes),
            links: t.links ? .map(t => ({ ...t,
                attributes: tz(t.attributes)
            }))
        }
    }], 939434);
    let ey = "production";
    t.s(["DEFAULT_ENVIRONMENT", 0, ey], 899095);
    let eb = "_frozenDsc";

    function eE(t, e) {
        P(t, eb, e)
    }

    function ev(t, e) {
        let n = e.getOptions(),
            {
                publicKey: r
            } = e.getDsn() || {},
            i = {
                environment: n.environment || ey,
                release: n.release,
                public_key: r,
                trace_id: t,
                org_id: t4(e)
            };
        return e.emit("createDsc", i), i
    }

    function eT(t) {
        let e = tN();
        if (!e) return {};
        let n = eh(t),
            r = ei(n),
            i = r.data,
            s = n.spanContext().traceState,
            a = s ? .get("sentry.sample_rate") ? ? i[tR] ? ? i[tk];

        function o(t) {
            return ("number" == typeof a || "string" == typeof a) && (t.sample_rate = `${a}`), t
        }
        let c = n[eb];
        if (c) return o(c);
        let u = s ? .get("sentry.dsc"),
            l = u && tU(u);
        if (l) return o(l);
        let p = ev(t.spanContext().traceId, e),
            d = i[tC] ? ? i["sentry.span.source"],
            f = r.description;
        return "url" !== d && f && (p.transaction = f), tY() && (p.sampled = String(ec(n)), p.sample_rand = s ? .get("sentry.sample_rand") ? ? tX(n).scope ? .getPropagationContext().sampleRand.toString()), o(p), e.emit("createDsc", p, n), p
    }
    t.s(["freezeDscOnSpan", 0, eE, "getDynamicSamplingContextFromScope", 0, function(t, e) {
        let n = e.getPropagationContext();
        return n.dsc || ev(n.traceId, t)
    }, "getDynamicSamplingContextFromSpan", 0, eT], 540098);
    class eI {
        constructor(t = {}) {
            this._traceId = t.traceId || tu(), this._spanId = t.spanId || tl(), this.dropReason = t.dropReason
        }
        spanContext() {
            return {
                spanId: this._spanId,
                traceId: this._traceId,
                traceFlags: 0
            }
        }
        end(t) {}
        setAttribute(t, e) {
            return this
        }
        setAttributes(t) {
            return this
        }
        setStatus(t) {
            return this
        }
        updateName(t) {
            return this
        }
        isRecording() {
            return !1
        }
        addEvent(t, e, n) {
            return this
        }
        addLink(t) {
            return this
        }
        addLinks(t) {
            return this
        }
        recordException(t, e) {}
    }

    function ex(t) {
        return !!t && "function" == typeof t && "_streamed" in t && !!t._streamed
    }
    t.s(["SentryNonRecordingSpan", 0, eI], 749196), t.s(["isStreamedBeforeSendSpanCallback", 0, ex], 298119);
    let eA = Symbol.for("sentry.skipNormalization"),
        eN = Symbol.for("sentry.overrideNormalizationDepth");

    function eC(e, n = 100, r = Infinity) {
        try {
            return function e(n, r, i = Infinity, s = Infinity, a = function() {
                let t = new WeakSet;
                return [function(e) {
                    return !!t.has(e) || (t.add(e), !1)
                }, function(e) {
                    t.delete(e)
                }]
            }()) {
                let o, [c, u] = a;
                if (null == r || ["boolean", "string"].includes(typeof r) || "number" == typeof r && Number.isFinite(r)) return r;
                let l = function(e, n) {
                    try {
                        var r;
                        let i;
                        if ("domain" === e && n && "object" == typeof n && n._events) return "[Domain]";
                        if ("domainEmitter" === e) return "[DomainEmitter]";
                        if (n === t.g) return "[Global]";
                        if ("u" > typeof window && n === window) return "[Window]";
                        if ("u" > typeof document && n === document) return "[Document]";
                        if (N(n)) return W(n);
                        if (x(n)) return "[SyntheticEvent]";
                        if ("number" == typeof n && !Number.isFinite(n)) return `[${n}]`;
                        if ("function" == typeof n) return `[Function: ${K(n)}]`;
                        if ("symbol" == typeof n) return `[${String(n)}]`;
                        if ("bigint" == typeof n) return `[BigInt: ${String(n)}]`;
                        let s = (r = n, i = Object.getPrototypeOf(r), i ? .constructor ? i.constructor.name : "null prototype");
                        if (/^HTML(\w*)Element$/.test(s)) return `[HTMLElement: ${s}]`;
                        return `[object ${s}]`
                    } catch (t) {
                        return `**non-serializable** (${t})`
                    }
                }(n, r);
                if (!l.startsWith("[object ")) return l;
                if (r[eA]) return r;
                let p = (o = r[eN], "number" == typeof o ? o : void 0),
                    d = void 0 !== p ? p : i;
                if (0 === d) return l.replace("object ", "");
                if (c(r)) return "[Circular ~]";
                if (r && "function" == typeof r.toJSON) try {
                    let t = r.toJSON();
                    return e("", t, d - 1, s, a)
                } catch {}
                let f = Array.isArray(r) ? [] : {},
                    _ = 0,
                    h = L(r);
                for (let t in h) {
                    if (!Object.prototype.hasOwnProperty.call(h, t)) continue;
                    if (_ >= s) {
                        f[t] = "[MaxProperties ~]";
                        break
                    }
                    let n = h[t];
                    f[t] = e(t, n, d - 1, s, a), _++
                }
                return u(r), f
            }("", e, n, r)
        } catch (t) {
            return {
                ERROR: `**non-serializable** (${t})`
            }
        }
    }

    function eR(t, e = []) {
        return [t, e]
    }

    function ek(t, e) {
        for (let n of t[1]) {
            let t = n[0].type;
            if (e(n, t)) return !0
        }
        return !1
    }

    function eO(t) {
        let e = d(l);
        return e.encodePolyfill ? e.encodePolyfill(t) : new TextEncoder().encode(t)
    }

    function ew(t) {
        return [{
            type: "span"
        }, t]
    }
    t.s(["normalize", 0, eC, "normalizeToSize", 0, function t(e, n = 3, r = 102400) {
        let i = eC(e, n);
        return ~-encodeURI(JSON.stringify(i)).split(/%..|./).length > r ? t(e, n - 1, r) : i
    }], 470257);
    let eM = {
        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 eD(t) {
        if (!t ? .sdk) return;
        let {
            name: e,
            version: n
        } = t.sdk;
        return {
            name: e,
            version: n
        }
    }

    function eP(t, e, n, r) {
        let i = t.sdkProcessingMetadata ? .dynamicSamplingContext;
        return {
            event_id: t.event_id,
            sent_at: new Date().toISOString(),
            ...e && {
                sdk: e
            },
            ...!!n && r && {
                dsn: t0(r)
            },
            ...i && {
                trace: i
            }
        }
    }

    function e$(t, e) {
        let n = eT(t[0]),
            r = e ? .getDsn(),
            i = e ? .getOptions().tunnel,
            s = {
                sent_at: new Date().toISOString(),
                ...!!n.trace_id && !!n.public_key && {
                    trace: n
                },
                ...!!i && r && {
                    dsn: t0(r)
                }
            },
            {
                beforeSendSpan: a,
                ignoreSpans: o
            } = e ? .getOptions() || {},
            c = o ? .length ? t.filter(t => {
                let e = ei(t);
                return !tJ({
                    description: e.description,
                    op: e.op,
                    attributes: e.data
                }, o)
            }) : t,
            u = t.length - c.length;
        u && e ? .recordDroppedEvent("before_send", "span", u);
        let l = a ? t => {
                let e = ei(t),
                    n = ex(a) ? e : a(e);
                return n || (eS(), e)
            } : ei,
            p = [];
        for (let t of c) {
            let e = l(t);
            e && p.push(ew(e))
        }
        return eR(s, p)
    }

    function eL(t) {
        if (!t || 0 === t.length) return;
        let e = {};
        return t.forEach(t => {
            let n = t.attributes || {},
                r = n[tM],
                i = n[tD];
            "string" == typeof r && "number" == typeof i && (e[t.name] = {
                value: i,
                unit: r
            })
        }), e
    }
    t.s(["addItemToEnvelope", 0, function(t, e) {
        let [n, r] = t;
        return [n, [...r, e]]
    }, "createAttachmentEnvelopeItem", 0, function(t) {
        let e = "string" == typeof t.data ? eO(t.data) : t.data;
        return [{
            type: "attachment",
            length: e.length,
            filename: t.filename,
            content_type: t.contentType,
            attachment_type: t.attachmentType
        }, e]
    }, "createEnvelope", 0, eR, "createEventEnvelopeHeaders", 0, eP, "createSpanEnvelopeItem", 0, ew, "envelopeContainsItemType", 0, function(t, e) {
        return ek(t, (t, n) => e.includes(n))
    }, "envelopeItemTypeToDataCategory", 0, function(t) {
        return t in eM ? eM[t] : t
    }, "forEachEnvelopeItem", 0, ek, "getSdkMetadataForEnvelopeHeader", 0, eD, "serializeEnvelope", 0, function(t) {
        let [e, n] = t, r = JSON.stringify(e);

        function i(t) {
            "string" == typeof r ? r = "string" == typeof t ? r + t : [eO(r), t] : r.push("string" == typeof t ? eO(t) : t)
        }
        for (let t of n) {
            let [e, n] = t;
            if (i(`
${JSON.stringify(e)}
`), "string" == typeof n || n instanceof Uint8Array) i(n);
            else {
                let t;
                try {
                    t = JSON.stringify(n)
                } catch {
                    t = JSON.stringify(eC(n))
                }
                i(t)
            }
        }
        return "string" == typeof r ? r : function(t) {
            let e = new Uint8Array(t.reduce((t, e) => t + e.length, 0)),
                n = 0;
            for (let r of t) e.set(r, n), n += r.length;
            return e
        }(r)
    }], 550460), t.s(["createEventEnvelope", 0, function(t, e, n, r) {
        let i = eD(n),
            s = t.type && "replay_event" !== t.type ? t.type : "event";
        ! function(t, e) {
            if (!e) return;
            let n = t.sdk || {};
            t.sdk = { ...n,
                name: n.name || e.name,
                version: n.version || e.version,
                integrations: [...t.sdk ? .integrations || [], ...e.integrations || []],
                packages: [...t.sdk ? .packages || [], ...e.packages || []],
                settings: t.sdk ? .settings || e.settings ? { ...t.sdk ? .settings,
                    ...e.settings
                } : void 0
            }
        }(t, n ? .sdk);
        let a = eP(t, i, r, e);
        return delete t.sdkProcessingMetadata, eR(a, [
            [{
                type: s
            }, t]
        ])
    }, "createSessionEnvelope", 0, function(t, e, n, r) {
        let i = eD(n);
        return eR({
            sent_at: new Date().toISOString(),
            ...i && {
                sdk: i
            },
            ...!!r && e && {
                dsn: t0(e)
            }
        }, ["aggregates" in t ? [{
            type: "sessions"
        }, t] : [{
            type: "session"
        }, t.toJSON()]])
    }, "createSpanEnvelope", 0, e$], 972632), t.s(["setMeasurement", 0, function(t, e, n, r = eg()) {
        let i = r && eh(r);
        i && (_ && D.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`), i.addEvent(t, {
            [tD]: e,
            [tM]: n
        }))
    }, "timedEventsToMeasurements", 0, eL], 252683);
    class ej {
        constructor(t = {}) {
            this._traceId = t.traceId || tu(), this._spanId = t.spanId || tl(), this._startTime = t.startTimestamp || tr(), this._links = t.links, this._attributes = {}, this.setAttributes({
                [tw]: "manual",
                [tO]: t.op,
                ...t.attributes
            }), this._name = t.name, t.parentSpanId && (this._parentSpanId = t.parentSpanId), "sampled" in t && (this._sampled = t.sampled), t.endTimestamp && (this._endTime = t.endTimestamp), this._events = [], this._isStandaloneSpan = t.isStandalone, this._endTime && this._onSpanEnded()
        }
        addLink(t) {
            return this._links ? this._links.push(t) : this._links = [t], this
        }
        addLinks(t) {
            return this._links ? this._links.push(...t) : this._links = t, this
        }
        recordException(t, e) {}
        spanContext() {
            let {
                _spanId: t,
                _traceId: e,
                _sampled: n
            } = this;
            return {
                spanId: t,
                traceId: e,
                traceFlags: +!!n
            }
        }
        setAttribute(t, e) {
            return void 0 === e ? delete this._attributes[t] : this._attributes[t] = e, this
        }
        setAttributes(t) {
            return Object.keys(t).forEach(e => this.setAttribute(e, t[e])), this
        }
        updateStartTime(t) {
            this._startTime = en(t)
        }
        setStatus(t) {
            return this._status = t, this
        }
        updateName(t) {
            return this._name = t, this.setAttribute(tC, "custom"), this
        }
        end(t) {
            this._endTime || (this._endTime = en(t), function(t) {
                if (!_) return;
                let {
                    description: e = "< unknown name >",
                    op: n = "< unknown op >"
                } = ei(t), {
                    spanId: r
                } = t.spanContext(), i = eh(t) === t, s = `[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;
                D.log(s)
            }(this), this._onSpanEnded())
        }
        getSpanJSON() {
            return {
                data: this._attributes,
                description: this._name,
                op: this._attributes[tO],
                parent_span_id: this._parentSpanId,
                span_id: this._spanId,
                start_timestamp: this._startTime,
                status: eu(this._status),
                timestamp: this._endTime,
                trace_id: this._traceId,
                origin: this._attributes[tw],
                profile_id: this._attributes[t$],
                exclusive_time: this._attributes[tL],
                measurements: eL(this._events),
                is_segment: this._isStandaloneSpan && eh(this) === this || void 0,
                segment_id: this._isStandaloneSpan ? eh(this).spanContext().spanId : void 0,
                links: et(this._links)
            }
        }
        getStreamedSpanJSON() {
            return {
                name: this._name ? ? "",
                span_id: this._spanId,
                trace_id: this._traceId,
                parent_span_id: this._parentSpanId,
                start_timestamp: this._startTime,
                end_timestamp: this._endTime ? ? this._startTime,
                is_segment: this._isStandaloneSpan || this === eh(this),
                status: el(this._status),
                attributes: this._attributes,
                links: ee(this._links)
            }
        }
        isRecording() {
            return !this._endTime && !!this._sampled
        }
        addEvent(t, e, n) {
            _ && D.log("[Tracing] Adding an event to span:", t);
            let r = eU(e) ? e : n || tr(),
                i = eU(e) ? {} : e || {},
                s = {
                    name: t,
                    time: en(r),
                    attributes: i
                };
            return this._events.push(s), this
        }
        isStandaloneSpan() {
            return !!this._isStandaloneSpan
        }
        _onSpanEnded() {
            let t = tN();
            if (t && (t.emit("spanEnd", this), this._isStandaloneSpan || t.emit("afterSpanEnd", this)), !(this._isStandaloneSpan || this === eh(this))) return;
            if (this._isStandaloneSpan) return void(this._sampled ? function(t) {
                let e = tN();
                if (!e) return;
                let n = t[1];
                n && 0 !== n.length ? e.sendEnvelope(t) : e.recordDroppedEvent("before_send", "span")
            }(e$([this], t)) : (_ && D.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), t && t.recordDroppedEvent("sample_rate", "span")));
            if (t && tV(t)) return void t.emit("afterSegmentSpanEnd", this);
            let e = this._convertSpanToTransaction();
            e && (tX(this).scope || tT()).captureEvent(e)
        }
        _convertSpanToTransaction() {
            if (!eB(ei(this))) return;
            this._name || (_ && D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), this._name = "<unlabeled transaction>");
            let {
                scope: t,
                isolationScope: e
            } = tX(this), n = t ? .getScopeData().sdkProcessingMetadata ? .normalizedRequest;
            if (!0 !== this._sampled) return;
            let r = e_(this).filter(t => {
                    var e;
                    return t !== this && !((e = t) instanceof ej && e.isStandaloneSpan())
                }).map(t => ei(t)).filter(eB),
                i = this._attributes[tC];
            delete this._attributes[tP], r.forEach(t => {
                delete t.data[tP]
            });
            let s = {
                    contexts: {
                        trace: t6(this)
                    },
                    spans: r.length > 1e3 ? r.sort((t, e) => t.start_timestamp - e.start_timestamp).slice(0, 1e3) : r,
                    start_timestamp: this._startTime,
                    timestamp: this._endTime,
                    transaction: this._name,
                    type: "transaction",
                    sdkProcessingMetadata: {
                        capturedSpanScope: t,
                        capturedSpanIsolationScope: e,
                        dynamicSamplingContext: eT(this)
                    },
                    request: n,
                    ...i && {
                        transaction_info: {
                            source: i
                        }
                    }
                },
                a = eL(this._events);
            return a && Object.keys(a).length && (_ && D.log("[Measurements] Adding measurements to transaction event", JSON.stringify(a, void 0, 2)), s.measurements = a), s
        }
    }

    function eU(t) {
        return t && "number" == typeof t || t instanceof Date || Array.isArray(t)
    }

    function eB(t) {
        return !!t.start_timestamp && !!t.timestamp && !!t.span_id && !!t.trace_id
    }

    function eF(t, e) {
        let n = tv(p());
        return n.withActiveSpan ? n.withActiveSpan(t, e) : tA(n => (td(n, t || void 0), e(n)))
    }
    t.s(["SentrySpan", 0, ej], 73166);

    function eY(t, e, n) {
        let r = tN(),
            i = r ? .getOptions() || {},
            {
                name: s = ""
            } = t,
            a = {
                spanAttributes: { ...t.attributes
                },
                spanName: s,
                parentSampled: n
            };
        r ? .emit("beforeSampling", a, {
            decision: !1
        });
        let o = a.parentSampled ? ? n,
            c = a.spanAttributes,
            u = e.getPropagationContext(),
            l = eH(e),
            [p, d, f] = l ? [!1] : function(t, e, n) {
                let r, i;
                if (!tY(t)) return [!1];
                "function" == typeof t.tracesSampler ? (r = t.tracesSampler({ ...e,
                    inheritOrSampleWith: t => "number" == typeof e.parentSampleRate ? e.parentSampleRate : "boolean" == typeof e.parentSampled ? Number(e.parentSampled) : t
                }), i = !0) : void 0 !== e.parentSampled ? r = e.parentSampled : void 0 !== t.tracesSampleRate && (r = t.tracesSampleRate, i = !0);
                let s = tG(r);
                if (void 0 === s) return _ && D.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`), [!1];
                if (!s) return _ && D.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`), [!1, s, i];
                let a = n < s;
                return !a && _ && D.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`), [a, s, i]
            }(i, {
                name: s,
                parentSampled: o,
                attributes: c,
                parentSampleRate: tG(u.dsc ? .sample_rate)
            }, u.sampleRand),
            h = new ej({ ...t,
                attributes: {
                    [tC]: "custom",
                    [tR]: void 0 !== d && f ? d : void 0,
                    ...c
                },
                sampled: p
            });
        return p || !r || l || (_ && D.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."), r.recordDroppedEvent("sample_rate", tV(r) ? "span" : "transaction")), r && r.emit("spanStart", h), h
    }

    function eH(t) {
        return !0 === t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__
    }

    function eJ(t) {
        return new eG(e => {
            e(t)
        })
    }

    function eV(t) {
        return new eG((e, n) => {
            n(t)
        })
    }
    t.s(["startInactiveSpan", 0, function(t) {
        let e = tv(p());
        if (e.startInactiveSpan) return e.startInactiveSpan(t);
        let n = function(t) {
                let e = {
                    isStandalone: (t.experimental || {}).standalone,
                    ...t
                };
                if (t.startTime) {
                    let n = { ...e
                    };
                    return n.startTimestamp = en(t.startTime), delete n.startTime, n
                }
                return e
            }(t),
            {
                forceTransaction: r,
                parentSpan: i
            } = t;
        return (t.scope ? e => tA(t.scope, e) : void 0 !== i ? t => eF(i, t) : t => t())(() => {
            let e = tT(),
                s = function(t, e) {
                    if (e) return e;
                    if (null === e) return;
                    let n = tf(t);
                    if (!n) return;
                    let r = tN();
                    return (r ? r.getOptions() : {}).parentSpanIsAlwaysRootSpan ? eh(n) : n
                }(e, i),
                a = tN();
            return t.onlyIfParent && !s ? (a ? .recordDroppedEvent("no_parent_span", "span"), new eI) : function({
                parentSpan: t,
                spanArguments: e,
                forceTransaction: n,
                scope: r
            }) {
                var i, s;
                let a, o;
                if (!tY()) {
                    let r = new eI;
                    if (n || !t) {
                        let t = {
                            sampled: "false",
                            sample_rate: "0",
                            transaction: e.name,
                            ...eT(r)
                        };
                        eE(r, t)
                    }
                    return r
                }
                let c = tN();
                if (i = c, s = e, o = i ? .getOptions().ignoreSpans, i && tV(i) && o ? .length && tJ({
                        description: s.name || "",
                        op: s.attributes ? .[tO] || s.op,
                        attributes: s.attributes
                    }, o)) return eH(r) || c ? .recordDroppedEvent("ignored", "span"), new eI({
                    dropReason: "ignored",
                    traceId: t ? .spanContext().traceId ? ? r.getPropagationContext().traceId
                });
                let u = tI();
                if (t && !n) a = function(t, e, n) {
                    let {
                        spanId: r,
                        traceId: i
                    } = t.spanContext(), s = eH(e), a = !s && ec(t), o = a ? new ej({ ...n,
                        parentSpanId: r,
                        traceId: i,
                        sampled: a
                    }) : new eI({
                        traceId: i
                    });
                    ef(t, o);
                    let c = tN();
                    return c && (tV(c) && o instanceof eI && (t instanceof eI && t.dropReason ? (o.dropReason = t.dropReason, c.recordDroppedEvent(t.dropReason, "span")) : s || (o.dropReason = "sample_rate", c.recordDroppedEvent("sample_rate", "span"))), c.emit("spanStart", o), n.endTimestamp && (c.emit("spanEnd", o), c.emit("afterSpanEnd", o))), o
                }(t, r, e), ef(t, a);
                else if (t) {
                    let n = eT(t),
                        {
                            traceId: i,
                            spanId: s
                        } = t.spanContext(),
                        o = ec(t);
                    eE(a = eY({
                        traceId: i,
                        parentSpanId: s,
                        ...e
                    }, r, o), n)
                } else {
                    let {
                        traceId: t,
                        dsc: n,
                        parentSpanId: i,
                        sampled: s
                    } = { ...u.getPropagationContext(),
                        ...r.getPropagationContext()
                    };
                    a = eY({
                        traceId: t,
                        parentSpanId: i,
                        ...e
                    }, r, s), n && eE(a, n)
                }
                return ! function(t) {
                    if (!_) return;
                    let {
                        description: e = "< unknown name >",
                        op: n = "< unknown op >",
                        parent_span_id: r
                    } = ei(t), {
                        spanId: i
                    } = t.spanContext(), s = ec(t), a = eh(t), o = a === t, c = `[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`, u = [`op: ${n}`, `name: ${e}`, `ID: ${i}`];
                    if (r && u.push(`parent ID: ${r}`), !o) {
                        let {
                            op: t,
                            description: e
                        } = ei(a);
                        u.push(`root ID: ${a.spanContext().spanId}`), t && u.push(`root op: ${t}`), e && u.push(`root description: ${e}`)
                    }
                    D.log(`${c}
  ${u.join("\n  ")}`)
                }(a), tq(a, r, u), a
            }({
                parentSpan: s,
                spanArguments: n,
                forceTransaction: r,
                scope: e
            })
        })
    }, "startNewTrace", 0, function(t) {
        let e = tv(p());
        return e.startNewTrace ? e.startNewTrace(t) : tA(e => (e.setPropagationContext({
            traceId: tu(),
            sampleRand: F()
        }), _ && D.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`), eF(null, t)))
    }, "withActiveSpan", 0, eF], 959454);
    class eG {
        constructor(t) {
            this._state = 0, this._handlers = [], this._runExecutor(t)
        }
        then(t, e) {
            return new eG((n, r) => {
                this._handlers.push([!1, e => {
                    if (t) try {
                        n(t(e))
                    } catch (t) {
                        r(t)
                    } else n(e)
                }, t => {
                    if (e) try {
                        n(e(t))
                    } catch (t) {
                        r(t)
                    } else r(t)
                }]), this._executeHandlers()
            })
        } catch (t) {
            return this.then(t => t, t)
        } finally(t) {
            return new eG((e, n) => {
                let r, i;
                return this.then(e => {
                    i = !1, r = e, t && t()
                }, e => {
                    i = !0, r = e, t && t()
                }).then(() => {
                    i ? n(r) : e(r)
                })
            })
        }
        _executeHandlers() {
            if (0 === this._state) return;
            let t = this._handlers.slice();
            this._handlers = [], t.forEach(t => {
                t[0] || (1 === this._state && t[1](this._value), 2 === this._state && t[2](this._value), t[0] = !0)
            })
        }
        _runExecutor(t) {
            let e = (t, e) => {
                    if (0 === this._state) {
                        if (I(e)) return void e.then(n, r);
                        this._state = t, this._value = e, this._executeHandlers()
                    }
                },
                n = t => {
                    e(1, t)
                },
                r = t => {
                    e(2, t)
                };
            try {
                t(n, r)
            } catch (t) {
                r(t)
            }
        }
    }

    function ez(t, e) {
        var n, r, i, s, a, o, c, u;
        let l, p, {
            fingerprint: d,
            span: f,
            breadcrumbs: _,
            sdkProcessingMetadata: h
        } = e;
        (function(t, e) {
            let {
                extra: n,
                tags: r,
                user: i,
                contexts: s,
                level: a,
                transactionName: o
            } = e;
            Object.keys(n).length && (t.extra = { ...n,
                ...t.extra
            }), Object.keys(r).length && (t.tags = { ...r,
                ...t.tags
            }), Object.keys(i).length && (t.user = { ...i,
                ...t.user
            }), Object.keys(s).length && (t.contexts = { ...s,
                ...t.contexts
            }), a && (t.level = a), o && "transaction" !== t.type && (t.transaction = o)
        })(t, e), f && ((n = t).contexts = {
            trace: t8(r = f),
            ...n.contexts
        }, n.sdkProcessingMetadata = {
            dynamicSamplingContext: eT(r),
            ...n.sdkProcessingMetadata
        }, (l = ei(eh(r)).description) && !n.transaction && "transaction" === n.type && (n.transaction = l)), i = t, s = d, i.fingerprint = i.fingerprint ? Array.isArray(i.fingerprint) ? i.fingerprint : [i.fingerprint] : [], s && (i.fingerprint = i.fingerprint.concat(s)), i.fingerprint.length || delete i.fingerprint, a = t, o = _, p = [...a.breadcrumbs || [], ...o], a.breadcrumbs = p.length ? p : void 0, c = t, u = h, c.sdkProcessingMetadata = { ...c.sdkProcessingMetadata,
            ...u
        }
    }

    function eK(t, e) {
        let {
            extra: n,
            tags: r,
            attributes: i,
            user: s,
            contexts: a,
            level: o,
            sdkProcessingMetadata: c,
            breadcrumbs: u,
            fingerprint: l,
            eventProcessors: p,
            attachments: d,
            propagationContext: f,
            transactionName: _,
            span: h
        } = e;
        eW(t, "extra", n), eW(t, "tags", r), eW(t, "attributes", i), eW(t, "user", s), eW(t, "contexts", a), t.sdkProcessingMetadata = tc(t.sdkProcessingMetadata, c, 2), o && (t.level = o), _ && (t.transactionName = _), h && (t.span = h), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), l.length && (t.fingerprint = [...t.fingerprint, ...l]), p.length && (t.eventProcessors = [...t.eventProcessors, ...p]), d.length && (t.attachments = [...t.attachments, ...d]), t.propagationContext = { ...t.propagationContext,
            ...f
        }
    }

    function eW(t, e, n) {
        t[e] = tc(t[e], n, 1)
    }

    function eq(t, e) {
        let n = tx().getScopeData();
        return t && eK(n, t.getScopeData()), e && eK(n, e.getScopeData()), n
    }

    function eX(t) {
        if (t) {
            var e;
            return (e = t) instanceof t_ || "function" == typeof e || Object.keys(t).some(t => eQ.includes(t)) ? {
                captureContext: t
            } : t
        }
    }
    t.s(["rejectedSyncPromise", 0, eV, "resolvedSyncPromise", 0, eJ], 672611), t.s(["applyScopeDataToEvent", 0, ez, "getCombinedScopeData", 0, eq], 254274);
    let eQ = ["user", "level", "extra", "contexts", "tags", "fingerprint", "propagationContext"];
    async function eZ(t) {
        let e = tN();
        return e ? e.flush(t) : (_ && D.warn("Cannot flush events. No client defined."), Promise.resolve(!1))
    }

    function e0() {
        let t = tI(),
            e = tT().getSession() || t.getSession();
        e && to(e), e1(), t.setSession()
    }

    function e1() {
        let t = tI(),
            e = tN(),
            n = t.getSession();
        n && e && e.captureSession(n)
    }
    t.s(["parseEventHintOrCaptureContext", 0, eX, "prepareEvent", 0, function(t, e, n, r, i, u) {
        var p, d, f;
        let h, {
                normalizeDepth: m = 3,
                normalizeMaxBreadth: g = 1e3
            } = t,
            S = { ...e,
                event_id: e.event_id || n.event_id || Q(),
                timestamp: e.timestamp || tn()
            },
            y = n.integrations || t.integrations.map(t => t.name);
        (function(t, e) {
            let {
                environment: n,
                release: r,
                dist: i,
                maxValueLength: s
            } = e;
            t.environment = t.environment || n || ey, !t.release && r && (t.release = r), !t.dist && i && (t.dist = i);
            let a = t.request;
            a ? .url && s && (a.url = q(a.url, s)), s && t.exception ? .values ? .forEach(t => {
                t.value && (t.value = q(t.value, s))
            })
        })(S, t), p = S, (d = y).length > 0 && (p.sdk = p.sdk || {}, p.sdk.integrations = [...p.sdk.integrations || [], ...d]), i && i.emit("applyFrameMetadata", e), void 0 === e.type && (f = S, h = function(t) {
            let e = l._sentryDebugIds,
                n = l._debugIds;
            if (!e && !n) return {};
            let r = e ? Object.keys(e) : [],
                i = n ? Object.keys(n) : [];
            if (c && r.length === a && i.length === o) return c;
            a = r.length, o = i.length, c = {}, s || (s = {});
            let u = (e, n) => {
                for (let r of e) {
                    let e = n[r],
                        i = s ? .[r];
                    if (i && c && e) c[i[0]] = e, s && (s[r] = [i[0], e]);
                    else if (e) {
                        let n = t(r);
                        for (let t = n.length - 1; t >= 0; t--) {
                            let i = n[t],
                                a = i ? .filename;
                            if (a && c && s) {
                                c[a] = e, s[r] = [a, e];
                                break
                            }
                        }
                    }
                }
            };
            return e && u(r, e), n && u(i, n), c
        }(t.stackParser), f.exception ? .values ? .forEach(t => {
            t.stacktrace ? .frames ? .forEach(t => {
                t.filename && (t.debug_id = h[t.filename])
            })
        }));
        let b = function(t, e) {
            if (!e) return t;
            let n = t ? t.clone() : new t_;
            return n.update(e), n
        }(r, n.captureContext);
        n.mechanism && tt(S, n.mechanism);
        let E = i ? i.getEventProcessors() : [],
            v = eq(u, b),
            T = [...n.attachments || [], ...v.attachments];
        T.length && (n.attachments = T), ez(S, v);
        let x = [...E, ...v.eventProcessors];
        return (n.data && !0 === n.data.__sentry__ ? eJ(S) : function(t, e, n, r = 0) {
            try {
                let i = function t(e, n, r, i) {
                    let s = r[i];
                    if (!e || !s) return e;
                    let a = s({ ...e
                    }, n);
                    return (_ && null === a && D.log(`Event processor "${s.id||"?"}" dropped event`), I(a)) ? a.then(e => t(e, n, r, i + 1)) : t(a, n, r, i + 1)
                }(e, n, t, r);
                return I(i) ? i : eJ(i)
            } catch (t) {
                return eV(t)
            }
        }(x, S, n)).then(t => (t && function(t) {
            let e = {};
            if (t.exception ? .values ? .forEach(t => {
                    t.stacktrace ? .frames ? .forEach(t => {
                        t.debug_id && (t.abs_path ? e[t.abs_path] = t.debug_id : t.filename && (e[t.filename] = t.debug_id), delete t.debug_id)
                    })
                }), 0 === Object.keys(e).length) return;
            t.debug_meta = t.debug_meta || {}, t.debug_meta.images = t.debug_meta.images || [];
            let n = t.debug_meta.images;
            Object.entries(e).forEach(([t, e]) => {
                n.push({
                    type: "sourcemap",
                    code_file: t,
                    debug_id: e
                })
            })
        }(t), "number" == typeof m && m > 0) ? function(t, e, n) {
            if (!t) return null;
            let r = { ...t,
                ...t.breadcrumbs && {
                    breadcrumbs: t.breadcrumbs.map(t => ({ ...t,
                        ...t.data && {
                            data: eC(t.data, e, n)
                        }
                    }))
                },
                ...t.user && {
                    user: eC(t.user, e, n)
                },
                ...t.contexts && {
                    contexts: eC(t.contexts, e, n)
                },
                ...t.extra && {
                    extra: eC(t.extra, e, n)
                }
            };
            return t.contexts ? .trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data = eC(t.contexts.trace.data, e, n))), t.spans && (r.spans = t.spans.map(t => ({ ...t,
                ...t.data && {
                    data: eC(t.data, e, n)
                }
            }))), t.contexts ? .flags && r.contexts && (r.contexts.flags = eC(t.contexts.flags, 3, n)), r
        }(t, m, g) : t)
    }], 519190), t.s(["addEventProcessor", 0, function(t) {
        tI().addEventProcessor(t)
    }, "captureEvent", 0, function(t, e) {
        return tT().captureEvent(t, e)
    }, "captureException", 0, function(t, e) {
        return tT().captureException(t, eX(e))
    }, "captureMessage", 0, function(t, e) {
        let n = "string" == typeof e ? e : void 0,
            r = "string" != typeof e ? {
                captureContext: e
            } : void 0;
        return tT().captureMessage(t, n, r)
    }, "captureSession", 0, function(t = !1) {
        t ? e0() : e1()
    }, "flush", 0, eZ, "isEnabled", 0, function() {
        let t = tN();
        return t ? .getOptions().enabled !== !1 && !!t ? .getTransport()
    }, "setContext", 0, function(t, e) {
        tI().setContext(t, e)
    }, "setUser", 0, function(t) {
        tI().setUser(t)
    }, "startSession", 0, function(t) {
        let e = tI(),
            {
                user: n
            } = eq(e, tT()),
            {
                userAgent: r
            } = l.navigator || {},
            i = ts({
                user: n,
                ...r && {
                    userAgent: r
                },
                ...t
            }),
            s = e.getSession();
        return s ? .status === "ok" && ta(s, {
            status: "exited"
        }), e0(), e.setSession(i), i
    }], 249785)
}]);

//# debugId=ec88d82d-d255-e7fc-e04f-08dbe5ccff53