import "./_sentry-release-injection-file-0366034b.js";
try {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {},
    n = new e.Error().stack;
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1e062502-1f9c-4812-90d8-2db9fc0e48ec", e._sentryDebugIdIdentifier = "sentry-dbid-1e062502-1f9c-4812-90d8-2db9fc0e48ec")
} catch {} {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
  e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = Object.assign({}, e._sentryModuleMetadata[new e.Error().stack], {
    "_sentryBundlerPluginAppKey:sentry-wealthfront-sfe": !0
  })
}

function r() {
  const {
    host: e
  } = window.location, n = "/event";
  return e === "wealthfront.com" ? "https://www.wealthfront.com" + n : n
}
window.addEventListener("error", e => {
  var o, a;
  if (!(typeof window.navigator.sendBeacon == "function")) return;
  const d = `${e.filename}:${e.lineno}`,
    t = new FormData;
  return t.append("payload", JSON.stringify({
    message: e == null ? void 0 : e.message,
    location: window.location.href,
    error_location: d
  })), t.append("cat", "WEBOPS"), t.append("name", "ERROR_LISTENER"), t.append("pvid", JSON.stringify((a = (o = window.w) == null ? void 0 : o._varsForJs) == null ? void 0 : a.requestId)), window.navigator.sendBeacon(r(), t)
});