File "ia-sentry.min.js"
Path: /IB QUESTIONBANKS/5 Fifth Edition - PAPER/HTML/Biology/Topic 4/js/ia-sentryminjs
File size: 147.71 KB
MIME-type: text/plain
Charset: utf-8
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var runtime = (function (exports) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function define(obj, key, value) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
return obj[key];
}
try {
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
define({}, "");
} catch (err) {
define = function(obj, key, value) {
return obj[key] = value;
};
}
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
exports.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
define(IteratorPrototype, iteratorSymbol, function () {
return this;
});
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = GeneratorFunctionPrototype;
define(Gp, "constructor", GeneratorFunctionPrototype);
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
GeneratorFunction.displayName = define(
GeneratorFunctionPrototype,
toStringTagSymbol,
"GeneratorFunction"
);
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
define(prototype, method, function(arg) {
return this._invoke(method, arg);
});
});
}
exports.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
exports.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
define(genFun, toStringTagSymbol, "GeneratorFunction");
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
exports.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return PromiseImpl.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}
return PromiseImpl.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration.
result.value = unwrapped;
resolve(result);
}, function(error) {
// If a rejected Promise was yielded, throw the rejection back
// into the async generator function so it can be handled there.
return invoke("throw", error, resolve, reject);
});
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new PromiseImpl(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : callInvokeWithMethodAndArg();
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
return this;
});
exports.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
if (PromiseImpl === void 0) PromiseImpl = Promise;
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList),
PromiseImpl
);
return exports.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
// Note: ["return"] must be used for ES3 parsing compatibility.
if (delegate.iterator["return"]) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (! info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
define(Gp, toStringTagSymbol, "Generator");
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
define(Gp, iteratorSymbol, function() {
return this;
});
define(Gp, "toString", function() {
return "[object Generator]";
});
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
exports.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
exports.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !! caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
}
};
// Regardless of whether this script is executing as a CommonJS module
// or not, return the runtime object so that we can declare the variable
// regeneratorRuntime in the outer scope, which allows this module to be
// injected easily by `bin/regenerator --include-runtime script.js`.
return exports;
}(
// If this script is executing as a CommonJS module, use module.exports
// as the regeneratorRuntime namespace. Otherwise create a new empty
// object. Either way, the resulting object will be used to initialize
// the regeneratorRuntime variable at the top of this file.
typeof module === "object" ? module.exports : {}
));
try {
regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
// This module should not be running in strict mode, so the above
// assignment should always work unless something is misconfigured. Just
// in case runtime.js accidentally runs in strict mode, in modern engines
// we can explicitly access globalThis. In older engines we can escape
// strict mode using a global Function call. This could conceivably fail
// if a Content Security Policy forbids using Function, but in that case
// the proper solution is to fix the accidental strict mode problem. If
// you've misconfigured your bundler to force strict mode and applied a
// CSP to forbid Function, and you're not willing to fix either of those
// problems, please detail your unique predicament in a GitHub issue.
if (typeof globalThis === "object") {
globalThis.regeneratorRuntime = runtime;
} else {
Function("r", "regeneratorRuntime = r")(runtime);
}
}
"use strict";function _arrayLikeToArray(O,H){(H==null||H>O.length)&&(H=O.length);for(var Y=0,wt=new Array(H);Y<H;Y++)wt[Y]=O[Y];return wt}function _arrayWithoutHoles(O){if(Array.isArray(O))return _arrayLikeToArray(O)}function _instanceof(O,H){return H!=null&&typeof Symbol!="undefined"&&H[Symbol.hasInstance]?!!H[Symbol.hasInstance](O):O instanceof H}function _iterableToArray(O){if(typeof Symbol!="undefined"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(O){return _arrayWithoutHoles(O)||_iterableToArray(O)||_unsupportedIterableToArray(O)||_nonIterableSpread()}var _typeof=function(O){return O&&typeof Symbol!="undefined"&&O.constructor===Symbol?"symbol":typeof O};function _unsupportedIterableToArray(O,H){if(!!O){if(typeof O=="string")return _arrayLikeToArray(O,H);var Y=Object.prototype.toString.call(O).slice(8,-1);if(Y==="Object"&&O.constructor&&(Y=O.constructor.name),Y==="Map"||Y==="Set")return Array.from(Y);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return _arrayLikeToArray(O,H)}}(function(){var O,H,Y,wt,cn,pn,dn,fn,ln,nt=function(t,e){Be(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)},ei=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},rt=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},z=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,o=[],s;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},L=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(z(arguments[e]));return t},ni=function(t){t.then(null,function(e){console.error(e)})},ri=function(){return(typeof __SENTRY_BROWSER_BUNDLE__=="undefined"?"undefined":_typeof(__SENTRY_BROWSER_BUNDLE__))<"u"&&!!__SENTRY_BROWSER_BUNDLE__},Et=function(){return!ri()&&Object.prototype.toString.call((typeof He=="undefined"?"undefined":_typeof(He))<"u"?He:0)==="[object process]"},it=function(t,e){return t.require(e)},Ft=function(t){var e;try{e=it(module,t)}catch(r){}try{var n=it(module,"process").cwd;e=it(module,n()+"/node_modules/"+t)}catch(r){}return e},R=function(){return Et()?ee:(typeof window=="undefined"?"undefined":_typeof(window))<"u"?window:(typeof self=="undefined"?"undefined":_typeof(self))<"u"?self:Bo},ye=function(t,e,n){var r=n||R(),a=r.__SENTRY__=r.__SENTRY__||{},o=a[t]||(a[t]=e());return o},be=function(t){switch(Tr.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Q(t,Error)}},ht=function(t,e){return Tr.call(t)==="[object "+e+"]"},vn=function(t){return ht(t,"ErrorEvent")},hn=function(t){return ht(t,"DOMError")},ii=function(t){return ht(t,"DOMException")},mt=function(t){return ht(t,"String")},Se=function(t){return t===null||typeof t!="object"&&typeof t!="function"},gt=function(t){return ht(t,"Object")},Ht=function(t){return(typeof Event=="undefined"?"undefined":_typeof(Event))<"u"&&Q(t,Event)},ai=function(t){return(typeof Element=="undefined"?"undefined":_typeof(Element))<"u"&&Q(t,Element)},oi=function(t){return ht(t,"RegExp")},xt=function(t){return Boolean(t&&t.then&&typeof t.then=="function")},si=function(t){return gt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t},mn=function(t){return typeof t=="number"&&t!==t},Q=function(t,e){try{return _instanceof(t,e)}catch(n){return!1}},Tt=function(t,e){try{for(var n=t,r=5,a=80,o=[],s=0,u=0,c=" > ",d=c.length,f=void 0;n&&s++<r&&(f=ui(n,e),!(f==="html"||s>1&&u+o.length*d+f.length>=a));)o.push(f),u+=f.length,n=n.parentNode;return o.reverse().join(c)}catch(l){return"<unknown>"}},ui=function(t,e){var n=t,r=[],a,o,s,u,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var d=e&&e.length?e.filter(function(l){return n.getAttribute(l)}).map(function(l){return[l,n.getAttribute(l)]}):null;if(d&&d.length)d.forEach(function(l){r.push("["+l[0]+'="'+l[1]+'"]')});else if(n.id&&r.push("#"+n.id),a=n.className,a&&mt(a))for(o=a.split(/\s+/),c=0;c<o.length;c++)r.push("."+o[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)s=f[c],u=n.getAttribute(s),u&&r.push("["+s+'="'+u+'"]');return r.join("")},ci=function(){var t=R();try{return t.document.location.href}catch(e){return""}},pi=function(t,e){return t.__proto__=e,t},di=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t},fi=function(t){return t==="http"||t==="https"},Ot=function(t,e){e===void 0&&(e=!1);var n=t.host,r=t.path,a=t.pass,o=t.port,s=t.projectId,u=t.protocol,c=t.publicKey;return u+"://"+c+(e&&a?":"+a:"")+("@"+n+(o?":"+o:"")+"/"+(r&&r+"/")+s)},li=function(t){var e=Ho.exec(t);if(!e)throw new U("Invalid Sentry Dsn: "+t);var n=z(e.slice(1),6),r=n[0],a=n[1],o=n[2],s=o===void 0?"":o,u=n[3],c=n[4],d=c===void 0?"":c,f=n[5],l="",g=f,w=g.split("/");if(w.length>1&&(l=w.slice(0,-1).join("/"),g=w.pop()),g){var x=g.match(/^\d+/);x&&(g=x[0])}return gn({host:u,pass:s,path:l,projectId:g,port:d,protocol:r,publicKey:a})},gn=function(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}},vi=function(t){if(bt){var e=t.port,n=t.projectId,r=t.protocol,a=["protocol","publicKey","host","projectId"];if(a.forEach(function(o){if(!t[o])throw new U("Invalid Sentry Dsn: "+o+" missing")}),!n.match(/^\d+$/))throw new U("Invalid Sentry Dsn: Invalid projectId "+n);if(!fi(r))throw new U("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new U("Invalid Sentry Dsn: Invalid port "+e);return!0}},zt=function(t){var e=typeof t=="string"?li(t):gn(t);return vi(e),e},_n=function(t){var e=R();if(!("console"in e))return t();var n=e.console,r={};ne.forEach(function(a){var o=n[a]&&n[a].__sentry_original__;a in e.console&&o&&(r[a]=n[a],n[a]=o)});try{return t()}finally{Object.keys(r).forEach(function(a){n[a]=r[a]})}},yn=function(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return bt?ne.forEach(function(n){e[n]=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];t&&_n(function(){var o;(o=Yo.console)[n].apply(o,L([Wo+"["+n+"]:"],r))})}}):ne.forEach(function(n){e[n]=function(){}}),e},kt=function(t,e){return e===void 0&&(e=0),typeof t!="string"||e===0||t.length<=e?t:t.substr(0,e)+"..."},bn=function(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var a=t[r];try{n.push(String(a))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)},Rt=function(t,e){return mt(t)?oi(e)?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1:!1},q=function(t,e,n){if(e in t){var r=t[e],a=n(r);if(typeof a=="function")try{Sn(a,r)}catch(o){}t[e]=a}},Yt=function(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})},Sn=function(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,Yt(t,"__sentry_original__",e)},we=function(t){return t.__sentry_original__},hi=function(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},wn=function(t){var e=t;if(be(t))e=p({message:t.message,name:t.name,stack:t.stack},xn(t));else if(Ht(t)){var n=t;e=p({type:n.type,target:En(n.target),currentTarget:En(n.currentTarget)},xn(n)),(typeof CustomEvent=="undefined"?"undefined":_typeof(CustomEvent))<"u"&&Q(t,CustomEvent)&&(e.detail=n.detail)}return e},En=function(t){try{return ai(t)?Tt(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}},xn=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},mi=function(t,e){e===void 0&&(e=40);var n=Object.keys(wn(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return kt(n[0],e);for(var r=n.length;r>0;r--){var a=n.slice(0,r).join(", ");if(!(a.length>e))return r===n.length?a:kt(a,e)}return""},gi=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.sort(function(r,a){return r[0]-a[0]}).map(function(r){return r[1]});return function(r,a){var o,s,u,c;a===void 0&&(a=0);var d=[];try{for(var f=rt(r.split("\n").slice(a)),l=f.next();!l.done;l=f.next()){var g=l.value;try{for(var w=(u=void 0,rt(n)),x=w.next();!x.done;x=w.next()){var k=x.value,A=k(g);if(A){d.push(A);break}}}catch(I){u={error:I}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}}}catch(I){o={error:I}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}return _i(d)}},_i=function(t){if(!t.length)return[];var e=t,n=e[0].function||"",r=e[e.length-1].function||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(e=e.slice(1)),r.indexOf("sentryWrapped")!==-1&&(e=e.slice(0,-1)),e.slice(0,Go).map(function(a){return p(p({},a),{filename:a.filename||e[0].filename,function:a.function||"?"})}).reverse()},at=function(t){try{return!t||typeof t!="function"?ze:t.name||ze}catch(e){return ze}},Wt=function(){if(!("fetch"in R()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}},Ee=function(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())},yi=function(){if(!Wt())return!1;var t=R();if(Ee(t.fetch))return!0;var e=!1,n=t.document;if(n&&typeof n.createElement=="function")try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=Ee(r.contentWindow.fetch)),n.head.removeChild(r)}catch(a){bt&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return e},bi=function(){if(!Wt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}},Si=function(){var t=R(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r},wi=function(t){if(!Or[t])switch(Or[t]=!0,t){case"console":Ei();break;case"dom":Li();break;case"xhr":ki();break;case"fetch":xi();break;case"history":Ri();break;case"error":Ni();break;case"unhandledrejection":Di();break;default:bt&&h.warn("unknown instrumentation type:",t);return}},G=function(t,e){jt[t]=jt[t]||[],jt[t].push(e),wi(t)},J=function(t,e){var n,r;if(!(!t||!jt[t]))try{for(var a=rt(jt[t]||[]),o=a.next();!o.done;o=a.next()){var s=o.value;try{s(e)}catch(u){bt&&h.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+at(s)+"\nError:",u)}}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},Ei=function(){"console"in D&&ne.forEach(function(t){t in D.console&&q(D.console,t,function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];J("console",{args:n,level:t}),e&&e.apply(D.console,n)}})})},xi=function(){yi()&&q(D,"fetch",function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:Ti(e),url:Oi(e)},startTimestamp:Date.now()};return J("fetch",p({},r)),t.apply(D,e).then(function(a){return J("fetch",p(p({},r),{endTimestamp:Date.now(),response:a})),a},function(a){throw J("fetch",p(p({},r),{endTimestamp:Date.now(),error:a})),a})}})},Ti=function(t){return t===void 0&&(t=[]),"Request"in D&&Q(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"},Oi=function(t){return t===void 0&&(t=[]),typeof t[0]=="string"?t[0]:"Request"in D&&Q(t[0],Request)?t[0].url:String(t[0])},ki=function(){if("XMLHttpRequest"in D){var t=XMLHttpRequest.prototype;q(t,"open",function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=this,o=n[1],s=a.__sentry_xhr__={method:mt(n[0])?n[0].toUpperCase():n[0],url:n[1]};mt(o)&&s.method==="POST"&&o.match(/sentry_key/)&&(a.__sentry_own_request__=!0);var u=function(){if(a.readyState===4){try{s.status_code=a.status}catch(d){}J("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:a})}};return"onreadystatechange"in a&&typeof a.onreadystatechange=="function"?q(a,"onreadystatechange",function(c){return function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return u(),c.apply(a,d)}}):a.addEventListener("readystatechange",u),e.apply(a,n)}}),q(t,"send",function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),J("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}},Ri=function(){if(!Si())return;var t=D.onpopstate;D.onpopstate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=D.location.href,o=re;if(re=a,J("history",{from:o,to:a}),t)try{return t.apply(this,n)}catch(s){}};function e(n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=r.length>2?r[2]:void 0;if(o){var s=re,u=String(o);re=u,J("history",{from:s,to:u})}return n.apply(this,r)}}q(D.history,"pushState",e),q(D.history,"replaceState",e)},Ii=function(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1},Ci=function(t){if(t.type!=="keypress")return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch(n){}return!0},Tn=function(t,e){return e===void 0&&(e=!1),function(n){if(!(!n||ae===n)&&!Ci(n)){var r=n.type==="keypress"?"input":n.type;ie===void 0?(t({event:n,name:r,global:e}),ae=n):Ii(ae,n)&&(t({event:n,name:r,global:e}),ae=n),clearTimeout(ie),ie=D.setTimeout(function(){ie=void 0},Xo)}}},Li=function(){if("document"in D){var t=J.bind(null,"dom"),e=Tn(t,!0);D.document.addEventListener("click",e,!1),D.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(n){var r=D[n]&&D[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(q(r,"addEventListener",function(a){return function(o,s,u){if(o==="click"||o=="keypress")try{var c=this,d=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=d[o]=d[o]||{refCount:0};if(!f.handler){var l=Tn(t);f.handler=l,a.call(this,o,l,u)}f.refCount+=1}catch(g){}return a.call(this,o,s,u)}}),q(r,"removeEventListener",function(a){return function(o,s,u){if(o==="click"||o=="keypress")try{var c=this,d=c.__sentry_instrumentation_handlers__||{},f=d[o];f&&(f.refCount-=1,f.refCount<=0&&(a.call(this,o,f.handler,u),f.handler=void 0,delete d[o]),Object.keys(d).length===0&&delete c.__sentry_instrumentation_handlers__)}catch(l){}return a.call(this,o,s,u)}}))})}},Ni=function(){Ye=D.onerror,D.onerror=function(t,e,n,r,a){return J("error",{column:r,error:a,line:n,msg:t,url:e}),Ye?Ye.apply(this,arguments):!1}},Di=function(){We=D.onunhandledrejection,D.onunhandledrejection=function(t){return J("unhandledrejection",t),We?We.apply(this,arguments):!0}},Ai=function(){var t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(a){if(t)return e.has(a)?!0:(e.add(a),!1);for(var o=0;o<e.length;o++){var s=e[o];if(s===a)return!0}return e.push(a),!1}function r(a){if(t)e.delete(a);else for(var o=0;o<e.length;o++)if(e[o]===a){e.splice(o,1);break}}return[n,r]},ot=function(){var t=R(),e=t.crypto||t.msCrypto;if(e!==void 0&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=n[3]&4095|16384,n[4]=n[4]&16383|32768;var r=function(o){for(var s=o.toString(16);s.length<4;)s="0"+s;return s};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(a){var o=Math.random()*16|0,s=a==="x"?o:o&3|8;return s.toString(16)})},xe=function(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}},On=function(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0},dt=function(t){var e=t.message,n=t.event_id;if(e)return e;var r=On(t);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"},Te=function(t,e,n){var r=t.exception=t.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")},It=function(t,e){var n=On(t);if(n){var r={type:"generic",handled:!0},a=n.mechanism;if(n.mechanism=p(p(p({},r),a),e),e&&"data"in e){var o=p(p({},a&&a.data),e.data);n.mechanism.data=o}}},kn=function(t){if(t&&t.__sentry_captured__)return!0;try{Yt(t,"__sentry_captured__",!0)}catch(e){}return!1},ft=function(t,e,n){e===void 0&&(e=1/0),n===void 0&&(n=1/0);try{return Rr("",t,e,n)}catch(r){return{ERROR:"**non-serializable** ("+r+")"}}},ji=function(t,e){try{return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":(typeof ee=="undefined"?"undefined":_typeof(ee))<"u"&&e===ee?"[Global]":(typeof window=="undefined"?"undefined":_typeof(window))<"u"&&e===window?"[Window]":(typeof document=="undefined"?"undefined":_typeof(document))<"u"&&e===document?"[Document]":si(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?"[Function: "+at(e)+"]":(typeof e=="undefined"?"undefined":_typeof(e))=="symbol"?"["+String(e)+"]":(typeof e=="undefined"?"undefined":_typeof(e))=="bigint"?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(n){return"**non-serializable** ("+n+")"}},Pi=function(t){return~-encodeURI(t).split(/%..|./).length},Mi=function(t){return Pi(JSON.stringify(t))},tt=function(t){return new ct(function(e){e(t)})},Ct=function(t){return new ct(function(e,n){n(t)})},Rn=function(t){var e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function a(s){if(!n())return Ct(new U("Not adding Promise due to buffer limit reached."));var u=s();return e.indexOf(u)===-1&&e.push(u),u.then(function(){return r(u)}).then(null,function(){return r(u).then(null,function(){})}),u}function o(s){return new ct(function(u,c){var d=e.length;if(!d)return u(!0);var f=setTimeout(function(){s&&s>0&&u(!1)},s);e.forEach(function(l){tt(l).then(function(){--d||(clearTimeout(f),u(!0))},c)})})}return{$:e,add:a,drain:o}},qi=function(t){return zo.indexOf(t)!==-1},Ui=function(t){return t==="warn"?K.Warning:qi(t)?t:K.Log},In=function(t){return t>=200&&t<300?"success":t===429?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"},Bi=function(){var t=R().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}},Fi=function(){try{var t=it(module,"perf_hooks");return t.performance}catch(e){return}},Hi=function(t){var e=t.match(Jo);if(e){var n=void 0;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}},Gt=function(t,e){return e===void 0&&(e=[]),[t,e]},zi=function(t){var e=z(t,2),n=z(e[1],1),r=z(n[0],1),a=r[0];return a.type},Xt=function(t){var e=z(t,2),n=e[0],r=e[1],a=JSON.stringify(n);return r.reduce(function(o,s){var u=z(s,2),c=u[0],d=u[1],f=Se(d)?String(d):JSON.stringify(d);return o+"\n"+JSON.stringify(c)+"\n"+f},a)},Yi=function(t,e,n){var r=[{type:"client_report"},{timestamp:n||oe(),discarded_events:t}];return Gt(e?{dsn:e}:{},[r])},Wi=function(t,e){e===void 0&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return n*1e3;var r=Date.parse(""+t);return isNaN(r)?Ko:r-e},Oe=function(t,e){return t[e]||t.all||0},Cn=function(t,e,n){return n===void 0&&(n=Date.now()),Oe(t,e)>n},Ln=function(t,e,n){var r,a,o,s;n===void 0&&(n=Date.now());var u=p({},t),c=e["x-sentry-rate-limits"],d=e["retry-after"];if(c)try{for(var f=rt(c.trim().split(",")),l=f.next();!l.done;l=f.next()){var g=l.value,w=g.split(":",2),x=parseInt(w[0],10),k=(isNaN(x)?60:x)*1e3;if(!w[1])u.all=n+k;else try{for(var A=(o=void 0,rt(w[1].split(";"))),I=A.next();!I.done;I=A.next()){var F=I.value;u[F]=n+k}}catch(E){o={error:E}}finally{try{I&&!I.done&&(s=A.return)&&s.call(A)}finally{if(o)throw o.error}}}}catch(E){r={error:E}}finally{try{l&&!l.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}else d&&(u.all=n+Wi(d,n));return u},Nn=function(){return ye("globalEventProcessors",function(){return[]})},Jt=function(t){Nn().push(t)},_t=function(){var t=R();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t},ke=function(t){var e=_t(),n=et(e);return Re(e,t),n},N=function(){var t=_t();return(!Dn(t)||et(t).isOlderThan(Ke))&&Re(t,new Ut),Et()?Gi(t):et(t)},Gi=function(t){try{var e=_t().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return et(t);if(!Dn(n)||et(n).isOlderThan(Ke)){var r=et(t).getStackTop();Re(n,new Ut(r.client,qt.clone(r.scope)))}return et(n)}catch(a){return et(t)}},Dn=function(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)},et=function(t){return ye("hub",function(){return new Ut},t)},Re=function(t,e){if(!t)return!1;var n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0},X=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=N();if(r&&r[t])return r[t].apply(r,L(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")},An=function(t,e){var n=new Error("Sentry syntheticException");return X("captureException",t,{captureContext:e,originalException:t,syntheticException:n})},Xi=function(t,e){var n=new Error(t),r=typeof e=="string"?e:void 0,a=typeof e!="string"?{captureContext:e}:void 0;return X("captureMessage",t,r,p({originalException:t,syntheticException:n},a))},Ji=function(t){return X("captureEvent",t)},Ki=function(t){X("configureScope",t)},$i=function(t){X("addBreadcrumb",t)},Vi=function(t,e){X("setContext",t,e)},Qi=function(t){X("setExtras",t)},Zi=function(t){X("setTags",t)},ta=function(t,e){X("setExtra",t,e)},jn=function(t,e){X("setTag",t,e)},ea=function(t){X("setUser",t)},Pn=function(t){X("withScope",t)},na=function(t,e){return X("startTransaction",p({},t),e)},Kt=function(t,e,n){return{initDsn:t,metadata:e||{},dsn:zt(t),tunnel:n}},Ie=function(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},Mn=function(t,e){return""+Ie(t)+t.projectId+"/"+e+"/"},qn=function(t){return hi({sentry_key:t.publicKey,sentry_version:Zo})},Un=function(t){return Mn(t,"store")},Ce=function(t){return Un(t)+"?"+qn(t)},ra=function(t){return Mn(t,"envelope")},Lt=function(t,e){return e||ra(t)+"?"+qn(t)},ia=function(t,e){var n=zt(t),r=Ie(n)+"embed/error-page/",a="dsn="+Ot(n);for(var o in e)if(o!=="dsn")if(o==="user"){if(!e.user)continue;e.user.name&&(a+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(a+="&email="+encodeURIComponent(e.user.email))}else a+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o]);return r+"?"+a},Bn=function(t){return t.reduce(function(e,n){return e.every(function(r){return n.name!==r.name})&&e.push(n),e},[])},aa=function(t){var e=t.defaultIntegrations&&L(t.defaultIntegrations)||[],n=t.integrations,r=L(Bn(e));Array.isArray(n)?r=L(r.filter(function(s){return n.every(function(u){return u.name!==s.name})}),Bn(n)):typeof n=="function"&&(r=n(r),r=Array.isArray(r)?r:[r]);var a=r.map(function(s){return s.name}),o="Debug";return a.indexOf(o)!==-1&&r.push.apply(r,L(r.splice(a.indexOf(o),1))),r},oa=function(t){Nr.indexOf(t.name)===-1&&(t.setupOnce(Jt,N),Nr.push(t.name),P&&h.log("Integration installed: "+t.name))},sa=function(t){var e={};return aa(t).forEach(function(n){e[n.name]=n,oa(n)}),Yt(e,"initialized",!0),e},ua=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(xt(t))return t.then(function(n){if(!(gt(n)||n===null))throw new U(e);return n},function(n){throw new U("beforeSend rejected with "+n)});if(!(gt(t)||t===null))throw new U(e);return t},Le=function(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,n=e.name,r=e.version;return{name:n,version:r}}},Fn=function(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=L(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=L(t.sdk.packages||[],e.packages||[])),t},Hn=function(t,e){var n=Le(e),r=p(p({sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Ot(e.dsn)}),a="aggregates"in t?"sessions":"session",o=[{type:a},t],s=Gt(r,[o]);return[s,a]},ca=function(t,e){var n=z(Hn(t,e),2),r=n[0],a=n[1];return{body:Xt(r),type:a,url:Lt(e.dsn,e.tunnel)}},pa=function(t,e){var n=Le(e),r=t.type||"event",a=(t.sdkProcessingMetadata||{}).transactionSampling,o=a||{},s=o.method,u=o.rate;Fn(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var c=p(p({event_id:t.event_id,sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Ot(e.dsn)}),d=[{type:r,sample_rates:[{id:s,rate:u}]},t];return Gt(c,[d])},da=function(t,e){var n=Le(e),r=t.type||"event",a=r==="transaction"||!!e.tunnel,o=(t.sdkProcessingMetadata||{}).transactionSampling,s=o||{},u=s.method,c=s.rate;Fn(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var d;try{d=JSON.stringify(t)}catch(k){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=k;try{d=JSON.stringify(ft(t))}catch(A){var f=A;d=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:f.message,stack:f.stack}})}}var l={body:d,type:r,url:a?Lt(e.dsn,e.tunnel):Ce(e.dsn)};if(a){var g=p(p({event_id:t.event_id,sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:Ot(e.dsn)}),w=[{type:r,sample_rates:[{id:u,rate:c}]},l.body],x=Gt(g,[w]);l.body=Xt(x)}return l},fa=function(t,e){e.debug===!0&&(P?h.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=N(),r=n.getScope();r&&r.update(e.initialScope);var a=new t(e);n.bindClient(a)},zn=function(t,e,n){n===void 0&&(n=Rn(t.bufferSize||rs));var r={},a=function(u){return n.drain(u)};function o(s){var u=zi(s),c=u==="event"?"error":u,d={category:c,body:Xt(s)};if(Cn(r,c))return Ct({status:"rate_limit",reason:Yn(r,c)});var f=function(){return e(d).then(function(g){var w=g.body,x=g.headers,k=g.reason,A=g.statusCode,I=In(A);return x&&(r=Ln(r,x)),I==="success"?tt({status:I,reason:k}):Ct({status:I,reason:k||w||(I==="rate_limit"?Yn(r,c):"Unknown transport error")})})};return n.add(f)}return{send:o,flush:a}},Yn=function(t,e){return"Too many "+e+" requests, backing off until: "+new Date(Oe(t,e)).toISOString()},la=function(t,e){return t===void 0&&(t={}),e===void 0&&(e={}),{allowUrls:L(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:L(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:L(t.ignoreErrors||[],e.ignoreErrors||[],as),ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}},va=function(t,e){return e.ignoreInternal&&ya(t)?(P&&h.warn("Event dropped due to being internal Sentry Error.\nEvent: "+dt(t)),!0):ha(t,e.ignoreErrors)?(P&&h.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+dt(t)),!0):ma(t,e.denyUrls)?(P&&h.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+dt(t)+".\nUrl: "+$t(t)),!0):ga(t,e.allowUrls)?!1:(P&&h.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+dt(t)+".\nUrl: "+$t(t)),!0)},ha=function(t,e){return!e||!e.length?!1:_a(t).some(function(n){return e.some(function(r){return Rt(n,r)})})},ma=function(t,e){if(!e||!e.length)return!1;var n=$t(t);return n?e.some(function(r){return Rt(n,r)}):!1},ga=function(t,e){if(!e||!e.length)return!0;var n=$t(t);return n?e.some(function(r){return Rt(n,r)}):!0},_a=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=n===void 0?"":n,a=e.value,o=a===void 0?"":a;return[""+o,r+": "+o]}catch(s){return P&&h.error("Cannot extract message for event "+dt(t)),[]}return[]},ya=function(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1},Wn=function(t){t===void 0&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null},$t=function(t){try{if(t.stacktrace)return Wn(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?Wn(e):null}catch(n){return P&&h.error("Cannot extract url for event "+dt(t)),null}},Nt=function(t,e,n,r){var a={filename:t,function:e,in_app:!0};return n!==void 0&&(a.lineno=n),r!==void 0&&(a.colno=r),a},Gn=function(t){var e=De(t),n={type:t&&t.name,value:wa(t)};return e.length&&(n.stacktrace={frames:e}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n},ba=function(t,e,n){var r={exception:{values:[{type:Ht(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+mi(t)}]},extra:{__serialized__:kr(t)}};if(e){var a=De(e);a.length&&(r.stacktrace={frames:a})}return r},Ne=function(t){return{exception:{values:[Gn(t)]}}},De=function(t){var e=t.stacktrace||t.stack||"",n=Sa(t);try{return gi(Ts,Rs,hs,ws,ys)(e,n)}catch(r){}return[]},Sa=function(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Is.test(t.message))return 1}return 0},wa=function(t){var e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"},Xn=function(t,e,n){var r=e&&e.syntheticException||void 0,a=Ae(t,r,n);return It(a),a.level=K.Error,e&&e.event_id&&(a.event_id=e.event_id),tt(a)},Jn=function(t,e,n,r){e===void 0&&(e=K.Info);var a=n&&n.syntheticException||void 0,o=je(t,a,r);return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),tt(o)},Ae=function(t,e,n,r){var a;if(vn(t)&&t.error){var o=t;return Ne(o.error)}if(hn(t)||ii(t)){var s=t;if("stack"in t)a=Ne(t);else{var u=s.name||(hn(s)?"DOMError":"DOMException"),c=s.message?u+": "+s.message:u;a=je(c,e,n),Te(a,c)}return"code"in s&&(a.tags=p(p({},a.tags),{"DOMException.code":""+s.code})),a}if(be(t))return Ne(t);if(gt(t)||Ht(t)){var d=t;return a=ba(d,e,r),It(a,{synthetic:!0}),a}return a=je(t,e,n),Te(a,""+t,void 0),It(a,{synthetic:!0}),a},je=function(t,e,n){var r={message:t};if(n&&e){var a=De(e);a.length&&(r.stacktrace={frames:a})}return r},Pe=function(){if(pe)return pe;if(Ee($.fetch))return pe=$.fetch.bind($);var t=$.document,e=$.fetch;if(t&&typeof t.createElement=="function")try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(a){W&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return pe=e.bind($)},Ea=function(t,e){var n=Object.prototype.toString.call($&&$.navigator)==="[object Navigator]",r=n&&typeof $.navigator.sendBeacon=="function";if(r){var a=$.navigator.sendBeacon.bind($.navigator);return a(t,e)}if(Wt()){var o=Pe();return ni(o(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}},Me=function(t){var e=t;return e==="event"?"error":e},Kn=function(t,e){e===void 0&&(e=Pe());function n(r){var a=p({body:r.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,a).then(function(o){return o.text().then(function(s){return{body:s,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")},reason:o.statusText,statusCode:o.status}})})}return zn({bufferSize:t.bufferSize},n)},$n=function(t){function e(n){return new ct(function(r,a){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===Cs){var u={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};r(u)}},o.open("POST",t.url);for(var s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&o.setRequestHeader(s,t.headers[s]);o.send(n.body)})}return zn({bufferSize:t.bufferSize},e)},Vn=function(){return Ze>0},xa=function(){Ze+=1,setTimeout(function(){Ze-=1})},Qn=function(t){if(t===void 0&&(t={}),!!de.document){if(!t.eventId){W&&h.error("Missing eventId option in showReportDialog call");return}if(!t.dsn){W&&h.error("Missing dsn option in showReportDialog call");return}var e=de.document.createElement("script");e.async=!0,e.src=ia(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=de.document.head||de.document.body;n&&n.appendChild(e)}},Ta=function(){G("error",function(t){var e=z(er(),2),n=e[0],r=e[1];if(n.getIntegration(fe)){var a=t.msg,o=t.url,s=t.line,u=t.column,c=t.error;if(!(Vn()||c&&c.__sentry_own_request__)){var d=c===void 0&&mt(a)?Ra(a,o,s,u):Zn(Ae(c||a,void 0,r,!1),o,s,u);d.level=K.Error,tr(n,c,d,"onerror")}}})},Oa=function(){G("unhandledrejection",function(t){var e=z(er(),2),n=e[0],r=e[1];if(n.getIntegration(fe)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(s){}if(Vn()||a&&a.__sentry_own_request__)return!0;var o=Se(a)?ka(a):Ae(a,void 0,r,!0);o.level=K.Error,tr(n,a,o,"onunhandledrejection")}})},ka=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},Ra=function(t,e,n,r){var a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=vn(t)?t.message:t,s="Error",u=o.match(a);u&&(s=u[1],o=u[2]);var c={exception:{values:[{type:s,value:o}]}};return Zn(c,e,n,r)},Zn=function(t,e,n,r){var a=t.exception=t.exception||{},o=a.values=a.values||[],s=o[0]=o[0]||{},u=s.stacktrace=s.stacktrace||{},c=u.frames=u.frames||[],d=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=mt(e)&&e.length>0?e:ci();return c.length===0&&c.push({colno:d,filename:l,function:"?",in_app:!0,lineno:f}),t},Ia=function(t){W&&h.log("Global Handler attached: "+t)},tr=function(t,e,n,r){It(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})},er=function(){var t=N(),e=t.getClient(),n=e&&e.getOptions().attachStacktrace;return[t,n]},nr=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=lt(r,{mechanism:{data:{function:at(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},Ca=function(t){return function(e){return t.apply(this,[lt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:at(t)},handled:!0,type:"instrument"}})])}},La=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach(function(o){o in r&&typeof r[o]=="function"&&q(r,o,function(s){var u={mechanism:{data:{function:o,handler:at(s)},handled:!0,type:"instrument"}},c=we(s);return c&&(u.mechanism.data.handler=at(c)),lt(s,u)})}),t.apply(this,e)}},Na=function(t){var e=R(),n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(q(n,"addEventListener",function(r){return function(a,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=lt(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:at(o),target:t},handled:!0,type:"instrument"}}))}catch(u){}return r.apply(this,[a,lt(o,{mechanism:{data:{function:"addEventListener",handler:at(o),target:t},handled:!0,type:"instrument"}}),s])}}),q(n,"removeEventListener",function(r){return function(a,o,s){var u=o;try{var c=u&&u.__sentry_wrapped__;c&&r.call(this,a,c,s)}catch(d){}return r.call(this,a,u,s)}}))},Da=function(t){function e(n){var r,a=typeof t=="object"?t.serializeAttribute:void 0;typeof a=="string"&&(a=[a]);try{r=n.event.target?Tt(n.event.target,a):Tt(n.event,a)}catch(o){r="<unknown>"}r.length!==0&&N().addBreadcrumb({category:"ui."+n.name,message:r},{event:n.event,name:n.name,global:n.global})}return e},Aa=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:Ui(t.level),message:bn(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message="Assertion failed: "+(bn(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1);else return;N().addBreadcrumb(e,{input:t.args,level:t.level})},ja=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,a=e.status_code,o=e.body;N().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:a},type:"http"},{xhr:t.xhr,input:o});return}},Pa=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?N().addBreadcrumb({category:"fetch",data:t.fetchData,level:K.Error,type:"http"},{data:t.error,input:t.args}):N().addBreadcrumb({category:"fetch",data:p(p({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},Ma=function(t){var e=R(),n=t.from,r=t.to,a=xe(e.location.href),o=xe(n),s=xe(r);o.path||(o=a),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),a.protocol===o.protocol&&a.host===o.host&&(n=o.relative),N().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},qa=function(t,e,n,r){if(!n.exception||!n.exception.values||!r||!Q(r.originalException,Error))return n;var a=Hr(e,r.originalException,t);return n.exception.values=L(a,n.exception.values),n},Ua=function(t,e){return e?!!(Ba(t,e)||Fa(t,e)):!1},Ba=function(t,e){var n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ir(t,e)||!rr(t,e))},Fa=function(t,e){var n=ar(e),r=ar(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ir(t,e)||!rr(t,e))},rr=function(t,e){var n=or(t),r=or(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(var a=0;a<r.length;a++){var o=r[a],s=n[a];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0},ir=function(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(a){return!1}},ar=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},or=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames},sr=function(t){if(t===void 0&&(t={}),t.defaultIntegrations===void 0&&(t.defaultIntegrations=Gr),t.release===void 0){var e=R();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0),fa(Wr,t),t.autoSessionTracking&&Ka()},Ha=function(t){t===void 0&&(t={});var e=N(),n=e.getScope();n&&(t.user=p(p({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());var r=e.getClient();r&&r.showReportDialog(t)},za=function(){return N().lastEventId()},Ya=function(){},Wa=function(t){t()},Ga=function(t){var e=N().getClient();return e?e.flush(t):(W&&h.warn("Cannot flush events. No client defined."),tt(!1))},Xa=function(t){var e=N().getClient();return e?e.close(t):(W&&h.warn("Cannot flush events and disable SDK. No client defined."),tt(!1))},Ja=function(t){return lt(t)()},ur=function(t){t.startSession({ignoreDuration:!0}),t.captureSession()},Ka=function(){var t=R(),e=t.document;if((typeof e=="undefined"?"undefined":_typeof(e))>"u"){W&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var n=N();n.captureSession&&(ur(n),G("history",function(r){var a=r.from,o=r.to;a===void 0||a===o||ur(N())}))},qe=function(t){var e=N().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)},Vt=function(t){var e=t||N(),n=e.getScope();return n&&n.getTransaction()},B=function(t){return t/1e3},$a=function(t){return t*1e3},Va=function(){G("error",cr),G("unhandledrejection",cr)},cr=function(){var t=Vt();if(t){var e="internal_error";b&&h.log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}},Qa=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"},pr=function(t){if(t){var e=t.getScope();if(e){var n=e.getTransaction();n&&e.setSpan(void 0)}}},Za=function(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}},dr=function(t,e,n){if(!qe(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t;var r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):n.parentSampled!==void 0?(r=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(r=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),to(r)?r?(t.sampled=Math.random()<r,t.sampled?(b&&h.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(b&&h.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):(b&&h.log("[Tracing] Discarding transaction because "+(typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(b&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)},to=function(t){return mn(t)||!(typeof t=="number"||typeof t=="boolean")?(b&&h.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t=="undefined"?"undefined":_typeof(t))+"."),!1):t<0||t>1?(b&&h.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1):!0},eo=function(t,e){var n=this.getClient(),r=n&&n.getOptions()||{},a=new Kr(t,this);return a=dr(a,r,p({parentSampled:t.parentSampled,transactionContext:t},e)),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),a},no=function(t,e,n,r,a){var o=t.getClient(),s=o&&o.getOptions()||{},u=new Bs(e,t,n,r);return u=dr(u,s,p({parentSampled:e.parentSampled,transactionContext:e},a)),u.sampled&&u.initSpanRecorder(s._experiments&&s._experiments.maxSpans),u},ro=function(){var t=_t();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=eo),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Za))},io=function(){var t=_t();if(t.__SENTRY__){var e={mongodb:function(){var a=it(module,"./integrations/node/mongo");return new a.Mongo},mongoose:function(){var a=it(module,"./integrations/node/mongo");return new a.Mongo({mongoose:!0})},mysql:function(){var a=it(module,"./integrations/node/mysql");return new a.Mysql},pg:function(){var a=it(module,"./integrations/node/postgres");return new a.Postgres}},n=Object.keys(e).filter(function(r){return!!Ft(r)}).map(function(r){try{return e[r]()}catch(a){return}}).filter(function(r){return r});n.length>0&&(t.__SENTRY__.integrations=L(t.__SENTRY__.integrations||[],n))}},ao=function(){ro(),Et()&&io(),Va()},fr=function(t,e){var n=t.length;switch(n){case 2:return function(r,a){var o=a.__sentry_transaction;if(o){var s=o.startChild({description:t.name,op:"express.middleware."+e});a.once("finish",function(){s.finish()})}return t.call(this,r,a)};case 3:return function(r,a,o){var s,u=a.__sentry_transaction,c=(s=u)===null||s===void 0?void 0:s.startChild({description:t.name,op:"express.middleware."+e});t.call(this,r,a,function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var l;(l=c)===null||l===void 0||l.finish(),o.call.apply(o,L([this],d))})};case 4:return function(r,a,o,s){var u,c=o.__sentry_transaction,d=(u=c)===null||u===void 0?void 0:u.startChild({description:t.name,op:"express.middleware."+e});t.call(this,r,a,o,function(){for(var f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];var g;(g=d)===null||g===void 0||g.finish(),s.call.apply(s,L([this],f))})};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}},oo=function(t,e){return t.map(function(n){return typeof n=="function"?fr(n,e):Array.isArray(n)?n.map(function(r){return typeof r=="function"?fr(r,e):r}):n})},so=function(t,e){var n=t[e];return t[e]=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return n.call.apply(n,L([this],oo(r,e)))},t},uo=function(t,e){e===void 0&&(e=[]),e.forEach(function(n){return so(t,n)})},co=function(){le&&le.document?le.document.addEventListener("visibilitychange",function(){var t=Vt();if(le.document.hidden&&t){var e="cancelled";b&&h.log("[Tracing] Transaction: "+e+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(nn,rn[2]),t.finish()}}):b&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")},po=function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(r){Qt(t,e,r,n)}),Qt(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Qt(t,e,"fetch",n,"cache","domainLookupStart"),Qt(t,e,"domainLookup",n,"DNS"),vo(t,e,n)},fo=function(t,e,n,r,a){var o=a+n,s=o+r;return yt(t,{description:e.name,endTimestamp:s,op:e.entryType,startTimestamp:o}),o},lo=function(t,e,n,r,a,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var u=o+r,c=u+a;yt(t,{description:n,endTimestamp:c,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:u,data:s})}},Qt=function(t,e,n,r,a,o){var s=o?e[o]:e[n+"End"],u=e[n+"Start"];!u||!s||yt(t,{op:"browser",description:a!=null?a:n,startTimestamp:r+B(u),endTimestamp:r+B(s)})},vo=function(t,e,n){yt(t,{op:"browser",description:"request",startTimestamp:n+B(e.requestStart),endTimestamp:n+B(e.responseEnd)}),yt(t,{op:"browser",description:"response",startTimestamp:n+B(e.responseStart),endTimestamp:n+B(e.responseEnd)})},yt=function(t,e){var n=e.startTimestamp,r=ei(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(p({startTimestamp:n},r))},Zt=function(t){return typeof t=="number"&&isFinite(t)},ho=function(t,e,n){e&&(b&&h.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",Tt(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),n&&n.sources&&(b&&h.log("[Measurements] Adding CLS Data"),n.sources.forEach(function(r,a){return t.setTag("cls.source."+(a+1),Tt(r.node))}))},mo=function(t){var e=p(p({},me),t),n=e.traceFetch,r=e.traceXHR,a=e.tracingOrigins,o=e.shouldCreateSpanForRequest,s={},u=function(l){if(s[l])return s[l];var g=a;return s[l]=g.some(function(w){return Rt(l,w)})&&!Rt(l,"sentry_key"),s[l]},c=u;typeof o=="function"&&(c=function(l){return u(l)&&o(l)});var d={};n&&G("fetch",function(f){go(f,c,d)}),r&&G("xhr",function(f){_o(f,c,d)})},go=function(t,e,n){if(!(!qe()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp){var r=t.fetchData.__span;if(!r)return;var a=n[r];a&&(t.response?a.setHttpStatus(t.response.status):t.error&&a.setStatus("internal_error"),a.finish(),delete n[r]);return}var o=Vt();if(o){var a=o.startChild({data:p(p({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=a.spanId,n[a.spanId]=a;var s=t.args[0]=t.args[0],u=t.args[1]=t.args[1]||{},c=u.headers;Q(s,Request)&&(c=s.headers),c?typeof c.append=="function"?c.append("sentry-trace",a.toTraceparent()):Array.isArray(c)?c=L(c,[["sentry-trace",a.toTraceparent()]]):c=p(p({},c),{"sentry-trace":a.toTraceparent()}):c={"sentry-trace":a.toTraceparent()},u.headers=c}}},_o=function(t,e,n){if(!(!qe()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))){var r=t.xhr.__sentry_xhr__;if(t.endTimestamp){var a=t.xhr.__sentry_xhr_span_id__;if(!a)return;var o=n[a];o&&(o.setHttpStatus(r.status_code),o.finish(),delete n[a]);return}var s=Vt();if(s){var o=s.startChild({data:p(p({},r.data),{type:"xhr",method:r.method,url:r.url}),description:r.method+" "+r.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=o.spanId,n[t.xhr.__sentry_xhr_span_id__]=o,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",o.toTraceparent())}catch(c){}}}},yo=function(t,e,n){if(e===void 0&&(e=!0),n===void 0&&(n=!0),!Bt||!Bt.location){b&&h.warn("Could not initialize routing instrumentation due to invalid location");return}var r=Bt.location.href,a;e&&(a=t({name:Bt.location.pathname,op:"pageload"})),n&&G("history",function(o){var s=o.to,u=o.from;if(u===void 0&&r&&r.indexOf(s)!==-1){r=void 0;return}u!==s&&(r=void 0,a&&(b&&h.log("[Tracing] Finishing current transaction with op: "+a.op),a.finish()),a=t({name:Bt.location.pathname,op:"navigation"}))})},bo=function(){var t=So("sentry-trace");if(t)return Hi(t)},So=function(t){var e=R().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null},wo=function(t,e,n){var r=n-e.startTimestamp,a=n&&(r>t||r<0);a&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))},Eo=function(t){var e=t.split("/").slice(1);if(/^\/(details|download)\/.+/.test(t)){var n=ge.querySelector('meta[property="mediatype"]').getAttribute("content");return"/".concat(e[0],"/<").concat(n,">")}return/^\/post\/\d+/.test(t)?"/".concat(e[0],"/<id>"):t},xo=function(){var t=ge.querySelector('meta[property="mediatype"]');if(!t)return;var e=t.getAttribute("content");if(e!=="texts")return;function n(r){return!!(r.offsetWidth||r.offsetHeight||r.getClientRects().length)}setTimeout(function(){var r=document.getElementsByClassName("BRpagecontainer");if(!r)throw new Error("BookReader failed to load in 8s");for(var a=0;a<r.length;a++)if(n(r[a]))return;throw new Error("BookReader failed to load in 8s")},8e3)},lr=Object.defineProperty,To=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,mr=function(i,t,e){return t in i?lr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e},gr=function(i,t){for(var e in t||(t={}))vr.call(t,e)&&mr(i,e,t[e]);var n=!0,r=!1,a=void 0;if(te)try{for(var o=te(t)[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var e=s.value;hr.call(t,e)&&mr(i,e,t[e])}}catch(u){r=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(r)throw a}}return i},ko=function(i,t){return To(i,Oo(t))},Ro=function(i,t){var e={};for(var n in i)vr.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);var r=!0,a=!1,o=void 0;if(i!=null&&te)try{for(var s=te(i)[Symbol.iterator](),u;!(r=(u=s.next()).done);r=!0){var n=u.value;t.indexOf(n)<0&&hr.call(i,n)&&(e[n]=i[n])}}catch(c){a=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(a)throw o}}return e},Ue=function(i,t){for(var e in t)lr(i,e,{get:t[e],enumerable:!0})},_r={};Ue(_r,{BrowserClient:function(){return Wr},Hub:function(){return Ut},Integrations:function(){return Ps},SDK_NAME:function(){return js},SDK_VERSION:function(){return $e},Scope:function(){return qt},Session:function(){return Lr},Severity:function(){return K},Transports:function(){return Pr},addBreadcrumb:function(){return $i},addGlobalEventProcessor:function(){return Jt},captureEvent:function(){return Ji},captureException:function(){return An},captureMessage:function(){return Xi},close:function(){return Xa},configureScope:function(){return Ki},defaultIntegrations:function(){return Gr},eventFromException:function(){return Xn},eventFromMessage:function(){return Jn},flush:function(){return Ga},forceLoad:function(){return Ya},getCurrentHub:function(){return N},getHubFromCarrier:function(){return et},init:function(){return sr},injectReportDialog:function(){return Qn},lastEventId:function(){return za},makeMain:function(){return ke},onLoad:function(){return Wa},setContext:function(){return Vi},setExtra:function(){return ta},setExtras:function(){return Qi},setTag:function(){return jn},setTags:function(){return Zi},setUser:function(){return ea},showReportDialog:function(){return Ha},startTransaction:function(){return na},withScope:function(){return Pn},wrap:function(){return Ja}});var Be=function(i,t){return Be=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])},Be(i,t)},p=function(){return p=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},p.apply(this,arguments)},K;(function(i){i.Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical"})(K||(K={}));var Io=Object.create,Fe=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,Lo=Object.getOwnPropertyNames,No=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,T=function(i,t){return Fe(i,"name",{value:t,configurable:!0})},Ao=function(i,t){return function(){return t||i((t={exports:{}}).exports,t),t.exports}},jo=function(i,t,e,n){var r=!0,a=!1,o=void 0;if(t&&typeof t=="object"||typeof t=="function")try{for(var s=function(d,f){var l=f.value;!Do.call(i,l)&&l!==e&&Fe(i,l,{get:function(){return t[l]},enumerable:!(n=Co(t,l))||n.enumerable})},u=Lo(t)[Symbol.iterator](),c;!(r=(c=u.next()).done);r=!0)s(u,c)}catch(d){a=!0,o=d}finally{try{!r&&u.return!=null&&u.return()}finally{if(a)throw o}}return i},yr=function(i,t,e){return e=i!=null?Io(No(i)):{},jo(t||!i||!i.__esModule?Fe(e,"default",{value:i,enumerable:!0}):e,i)},br=Ao(function(i,t){"use strict";var e=function(v){console&&console.warn&&console.warn(v)},n=function(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+(typeof v=="undefined"?"undefined":_typeof(v)))},r=function(v){return v._maxListeners===void 0?E.defaultMaxListeners:v._maxListeners},a=function(v,m,y,C){var S,M,j;if(n(y),M=v._events,M===void 0?(M=v._events=Object.create(null),v._eventsCount=0):(M.newListener!==void 0&&(v.emit("newListener",m,y.listener?y.listener:y),M=v._events),j=M[m]),j===void 0)j=M[m]=y,++v._eventsCount;else if(typeof j=="function"?j=M[m]=C?[y,j]:[j,y]:C?j.unshift(y):j.push(y),S=r(v),S>0&&j.length>S&&!j.warned){j.warned=!0;var pt=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");pt.name="MaxListenersExceededWarning",pt.emitter=v,pt.type=m,pt.count=j.length,e(pt)}return v},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)},s=function(v,m,y){var C={fired:!1,wrapFn:void 0,target:v,type:m,listener:y},S=o.bind(C);return S.listener=y,C.wrapFn=S,S},u=function(v,m,y){var C=v._events;if(C===void 0)return[];var S=C[m];return S===void 0?[]:typeof S=="function"?y?[S.listener||S]:[S]:y?l(S):d(S,S.length)},c=function(v){var m=this._events;if(m!==void 0){var y=m[v];if(typeof y=="function")return 1;if(y!==void 0)return y.length}return 0},d=function(v,m){for(var y=new Array(m),C=0;C<m;++C)y[C]=v[C];return y},f=function(v,m){for(;m+1<v.length;m++)v[m]=v[m+1];v.pop()},l=function(v){for(var m=new Array(v.length),y=0;y<m.length;++y)m[y]=v[y].listener||v[y];return m},g=function(v,m){return new Promise(function(y,C){function S(j){v.removeListener(m,M),C(j)}T(S,"errorListener");function M(){typeof v.removeListener=="function"&&v.removeListener("error",S),y([].slice.call(arguments))}T(M,"resolver"),x(v,m,M,{once:!0}),m!=="error"&&w(v,S,{once:!0})})},w=function(v,m,y){typeof v.on=="function"&&x(v,"error",m,y)},x=function(v,m,y,C){if(typeof v.on=="function")C.once?v.once(m,y):v.on(m,y);else if(typeof v.addEventListener=="function")v.addEventListener(m,T(function S(M){C.once&&v.removeEventListener(m,S),y(M)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(typeof v=="undefined"?"undefined":_typeof(v)))},k=typeof Reflect=="object"?Reflect:null,A=k&&typeof k.apply=="function"?k.apply:T(function(_,v,m){return Function.prototype.apply.call(_,v,m)},"ReflectApply"),I;k&&typeof k.ownKeys=="function"?I=k.ownKeys:Object.getOwnPropertySymbols?I=T(function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))},"ReflectOwnKeys"):I=T(function(_){return Object.getOwnPropertyNames(_)},"ReflectOwnKeys"),T(e,"ProcessEmitWarning");var F=Number.isNaN||T(function(_){return _!==_},"NumberIsNaN");function E(){E.init.call(this)}T(E,"EventEmitter"),t.exports=E,t.exports.once=g,E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var ti=10;T(n,"checkListener"),Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return ti},set:function(v){if(typeof v!="number"||v<0||F(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");ti=v}}),E.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=T(function(_){if(typeof _!="number"||_<0||F(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this},"setMaxListeners"),T(r,"_getMaxListeners"),E.prototype.getMaxListeners=T(function(){return r(this)},"getMaxListeners"),E.prototype.emit=T(function(_){for(var v=[],m=1;m<arguments.length;m++)v.push(arguments[m]);var y=_==="error",C=this._events;if(C!==void 0)y=y&&C.error===void 0;else if(!y)return!1;if(y){var S;if(v.length>0&&(S=v[0]),_instanceof(S,Error))throw S;var M=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw M.context=S,M}var j=C[_];if(j===void 0)return!1;if(typeof j=="function")A(j,this,v);else for(var pt=j.length,au=d(j,pt),m=0;m<pt;++m)A(au[m],this,v);return!0},"emit"),T(a,"_addListener"),E.prototype.addListener=T(function(_,v){return a(this,_,v,!1)},"addListener"),E.prototype.on=E.prototype.addListener,E.prototype.prependListener=T(function(_,v){return a(this,_,v,!0)},"prependListener"),T(o,"onceWrapper"),T(s,"_onceWrap"),E.prototype.once=T(function(_,v){return n(v),this.on(_,s(this,_,v)),this},"once"),E.prototype.prependOnceListener=T(function(_,v){return n(v),this.prependListener(_,s(this,_,v)),this},"prependOnceListener"),E.prototype.removeListener=T(function(_,v){var m,y,C,S,M;if(n(v),y=this._events,y===void 0)return this;if(m=y[_],m===void 0)return this;if(m===v||m.listener===v)--this._eventsCount===0?this._events=Object.create(null):(delete y[_],y.removeListener&&this.emit("removeListener",_,m.listener||v));else if(typeof m!="function"){for(C=-1,S=m.length-1;S>=0;S--)if(m[S]===v||m[S].listener===v){M=m[S].listener,C=S;break}if(C<0)return this;C===0?m.shift():f(m,C),m.length===1&&(y[_]=m[0]),y.removeListener!==void 0&&this.emit("removeListener",_,M||v)}return this},"removeListener"),E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=T(function(_){var v,m,y;if(m=this._events,m===void 0)return this;if(m.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):m[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete m[_]),this;if(arguments.length===0){var C=Object.keys(m),S;for(y=0;y<C.length;++y)S=C[y],S!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(v=m[_],typeof v=="function")this.removeListener(_,v);else if(v!==void 0)for(y=v.length-1;y>=0;y--)this.removeListener(_,v[y]);return this},"removeAllListeners"),T(u,"_listeners"),E.prototype.listeners=T(function(_){return u(this,_,!0)},"listeners"),E.prototype.rawListeners=T(function(_){return u(this,_,!1)},"rawListeners"),E.listenerCount=function(_,v){return typeof _.listenerCount=="function"?_.listenerCount(v):c.call(_,v)},E.prototype.listenerCount=c,T(c,"listenerCount"),E.prototype.eventNames=T(function(){return this._eventsCount>0?I(this._events):[]},"eventNames"),T(d,"arrayClone"),T(f,"spliceOne"),T(l,"unwrapListeners"),T(g,"once"),T(w,"addErrorHandlerIfEventEmitter"),T(x,"eventTargetAgnosticAddListener")}),Po=yr(br()),Dt=yr(br()),Mo=Dt.EventEmitter,ou=Dt.init,su=Dt.listenerCount,uu=Dt.once,At=Dt,qo=At.default,Uo=Ro(At,["default"]),At,Sr,cu=(Sr=(At=Po.default)!=null?At:qo)!=null?Sr:Uo,Z=new Mo;Z.setMaxListeners(1<<10);var st=typeof Deno!="undefined",wr,Er,xr,He={title:st?"deno":"browser",browser:!0,env:st?new Proxy({},{get:function(t,e){return Deno.env.get(String(e))},ownKeys:function(){return Reflect.ownKeys(Deno.env.toObject())},getOwnPropertyDescriptor:function(i,t){var e=Deno.env.toObject();if(t in Deno.env.toObject()){var n={enumerable:!0,configurable:!0};return typeof t=="string"&&(n.value=e[t]),n}},set:function(t,e,n){return Deno.env.set(String(e),String(n)),n}}):{},argv:st?(wr=Deno.args)!=null?wr:[]:[],pid:st&&(Er=Deno.pid)!=null?Er:0,version:"v16.18.0",versions:gr({node:"16.18.0",v8:"9.4.146.26-node.22",uv:"1.43.0",zlib:"1.2.11",brotli:"1.0.9",ares:"1.18.1",modules:"93",nghttp2:"1.47.0",napi:"8",llhttp:"6.0.10",openssl:"1.1.1q+quic",cldr:"41.0",icu:"71.1",tz:"2022b",unicode:"14.0",ngtcp2:"0.8.1",nghttp3:"0.7.0"},st?(xr=Deno.version)!=null?xr:{}:{}),on:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(O=Z).on.apply(O,_toConsumableArray(t))},addListener:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(H=Z).addListener.apply(H,_toConsumableArray(t))},once:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(Y=Z).once.apply(Y,_toConsumableArray(t))},off:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(wt=Z).off.apply(wt,_toConsumableArray(t))},removeListener:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(cn=Z).removeListener.apply(cn,_toConsumableArray(t))},removeAllListeners:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(pn=Z).removeAllListeners.apply(pn,_toConsumableArray(t))},emit:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(dn=Z).emit.apply(dn,_toConsumableArray(t))},prependListener:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(fn=Z).prependListener.apply(fn,_toConsumableArray(t))},prependOnceListener:function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return(ln=Z).prependOnceListener.apply(ln,_toConsumableArray(t))},listeners:function(){return[]},emitWarning:function(){throw new Error("process.emitWarning is not supported")},binding:function(){throw new Error("process.binding is not supported")},cwd:function(){var i,t;return st&&(t=(i=Deno.cwd)==null?void 0:i.call(Deno))!=null?t:"/"},chdir:function(i){if(st)Deno.chdir(i);else throw new Error("process.chdir is not supported")},umask:function(){var i;return st&&(i=Deno.umask)!=null?i:0},nextTick:function(i){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];return queueMicrotask(function(){return i.apply(void 0,_toConsumableArray(e))})}},ee=globalThis||(typeof window!="undefined"?window:self),Bo={},Tr=Object.prototype.toString,Fo=Object.setPrototypeOf||(_instanceof({__proto__:[]},Array)?pi:di),U=function(i){var t=function(n){var r=this.constructor,a=i.call(this,n)||this;return a.message=n,a.name=r.prototype.constructor.name,Fo(a,r.prototype),a};return nt(t,i),t}(Error),bt=(typeof __SENTRY_DEBUG__=="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"?!0:__SENTRY_DEBUG__,Ho=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,zo=["fatal","error","warning","log","info","debug","critical"],Yo=R(),Wo="Sentry Logger ",ne=["debug","info","warn","error","log","assert"],h;bt?h=ye("logger",yn):h=yn();function ut(i){var t,e;if(gt(i)){var n={};try{for(var r=rt(Object.keys(i)),a=r.next();!a.done;a=r.next()){var o=a.value;_typeof(i[o])<"u"&&(n[o]=ut(i[o]))}}catch(s){t={error:s}}finally{try{a&&!a.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n}return Array.isArray(i)?i.map(ut):i}var Go=50,ze="<anonymous>",D=R(),jt={},Or={},re,Xo=1e3,ie,ae,Ye=null,We=null;function kr(i,t,e){t===void 0&&(t=3),e===void 0&&(e=100*1024);var n=ft(i,t);return Mi(n)>e?kr(i,t-1,e):n}function Rr(i,t,e,n,r){e===void 0&&(e=1/0),n===void 0&&(n=1/0),r===void 0&&(r=Ai());var a=z(r,2),o=a[0],s=a[1],u=t;if(u&&typeof u.toJSON=="function")try{return u.toJSON()}catch(x){}if(t===null||["number","boolean","string"].includes(typeof t=="undefined"?"undefined":_typeof(t))&&!mn(t))return t;var c=ji(i,t);if(!c.startsWith("[object "))return c;if(e===0)return c.replace("object ","");if(o(t))return"[Circular ~]";var d=Array.isArray(t)?[]:{},f=0,l=be(t)||Ht(t)?wn(t):t;for(var g in l)if(Object.prototype.hasOwnProperty.call(l,g)){if(f>=n){d[g]="[MaxProperties ~]";break}var w=l[g];d[g]=Rr(g,w,e-1,n,r),f+=1}return s(t),d}var ct=function(){var i=function(e){var n=this;this._state=0,this._handlers=[],this._resolve=function(r){n._setResult(1,r)},this._reject=function(r){n._setResult(2,r)},this._setResult=function(r,a){if(n._state===0){if(xt(a)){a.then(n._resolve,n._reject);return}n._state=r,n._value=a,n._executeHandlers()}},this._executeHandlers=function(){if(n._state!==0){var r=n._handlers.slice();n._handlers=[],r.forEach(function(a){a[0]||(n._state===1&&a[1](n._value),n._state===2&&a[2](n._value),a[0]=!0)})}};try{e(this._resolve,this._reject)}catch(r){this._reject(r)}};return i.prototype.then=function(t,e){var n=this;return new i(function(r,a){n._handlers.push([!1,function(o){if(!t)r(o);else try{r(t(o))}catch(s){a(s)}},function(o){if(!e)a(o);else try{r(e(o))}catch(s){a(s)}}]),n._executeHandlers()})},i.prototype.catch=function(t){return this.then(function(e){return e},t)},i.prototype.finally=function(t){var e=this;return new i(function(n,r){var a,o;return e.then(function(s){o=!1,a=s,t&&t()},function(s){o=!0,a=s,t&&t()}).then(function(){if(o){r(a);return}n(a)})})},i}(),Ge={nowSeconds:function(){return Date.now()/1e3}},Xe=Et()?Fi():Bi(),Ir=Xe===void 0?Ge:{nowSeconds:function(){return(Xe.timeOrigin+Xe.now())/1e3}},oe=Ge.nowSeconds.bind(Ge),Je=Ir.nowSeconds.bind(Ir),Pt=Je,se,Mt=function(){var i=R().performance;if(!i||!i.now){se="none";return}var t=3600*1e3,e=i.now(),n=Date.now(),r=i.timeOrigin?Math.abs(i.timeOrigin+e-n):t,a=r<t,o=i.timing&&i.timing.navigationStart,s=typeof o=="number",u=s?Math.abs(o+e-n):t,c=u<t;return a||c?r<=u?(se="timeOrigin",i.timeOrigin):(se="navigationStart",o):(se="dateNow",n)}(),Jo=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"),Ko=60*1e3,Cr=100,qt=function(){var i=function(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}};return i.clone=function(t){var e=new i;return t&&(e._breadcrumbs=L(t._breadcrumbs),e._tags=p({},t._tags),e._extra=p({},t._extra),e._contexts=p({},t._contexts),e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=L(t._eventProcessors),e._requestSession=t._requestSession),e},i.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},i.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},i.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},i.prototype.getUser=function(){return this._user},i.prototype.getRequestSession=function(){return this._requestSession},i.prototype.setRequestSession=function(t){return this._requestSession=t,this},i.prototype.setTags=function(t){return this._tags=p(p({},this._tags),t),this._notifyScopeListeners(),this},i.prototype.setTag=function(t,e){var n;return this._tags=p(p({},this._tags),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},i.prototype.setExtras=function(t){return this._extra=p(p({},this._extra),t),this._notifyScopeListeners(),this},i.prototype.setExtra=function(t,e){var n;return this._extra=p(p({},this._extra),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},i.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},i.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},i.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},i.prototype.setTransaction=function(t){return this.setTransactionName(t)},i.prototype.setContext=function(t,e){var n;return e===null?delete this._contexts[t]:this._contexts=p(p({},this._contexts),(n={},n[t]=e,n)),this._notifyScopeListeners(),this},i.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},i.prototype.getSpan=function(){return this._span},i.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},i.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},i.prototype.getSession=function(){return this._session},i.prototype.update=function(t){if(!t)return this;if(typeof t=="function"){var e=t(this);return _instanceof(e,i)?e:this}return _instanceof(t,i)?(this._tags=p(p({},this._tags),t._tags),this._extra=p(p({},this._extra),t._extra),this._contexts=p(p({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):gt(t)&&(t=t,this._tags=p(p({},this._tags),t.tags),this._extra=p(p({},this._extra),t.extra),this._contexts=p(p({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},i.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},i.prototype.addBreadcrumb=function(t,e){var n=typeof e=="number"?Math.min(e,Cr):Cr;if(n<=0)return this;var r=p({timestamp:oe()},t);return this._breadcrumbs=L(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},i.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},i.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=p(p({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=p(p({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=p(p({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=p(p({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=p({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=p({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=L(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(L(Nn(),this._eventProcessors),t,e)},i.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=p(p({},this._sdkProcessingMetadata),t),this},i.prototype._notifyEventProcessors=function(t,e,n,r){var a=this;return r===void 0&&(r=0),new ct(function(o,s){var u=t[r];if(e===null||typeof u!="function")o(e);else{var c=u(p({},e),n);xt(c)?c.then(function(d){return a._notifyEventProcessors(t,d,n,r+1).then(o)}).then(null,s):a._notifyEventProcessors(t,c,n,r+1).then(o).then(null,s)}})},i.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(t)}),this._notifyingListeners=!1)},i.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},i}(),Lr=function(){var i=function(e){this.errors=0,this.sid=ot(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var n=Je();this.timestamp=n,this.started=n,e&&this.update(e)};return i.prototype.update=function(t){if(t===void 0&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),!this.did&&!t.did&&(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Je(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=t.sid.length===32?t.sid:ot()),t.init!==void 0&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),typeof t.started=="number"&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if(typeof t.duration=="number")this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),typeof t.errors=="number"&&(this.errors=t.errors),t.status&&(this.status=t.status)},i.prototype.close=function(t){t?this.update({status:t}):this.status==="ok"?this.update({status:"exited"}):this.update()},i.prototype.toJSON=function(){return ut({sid:""+this.sid,init:this.init,started:new Date(this.started*1e3).toISOString(),timestamp:new Date(this.timestamp*1e3).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},i}(),ue=(typeof __SENTRY_DEBUG__=="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"?!0:__SENTRY_DEBUG__,Ke=4,$o=100,Ut=function(){var i=function(e,n,r){n===void 0&&(n=new qt),r===void 0&&(r=Ke),this._version=r,this._stack=[{}],this.getStackTop().scope=n,e&&this.bindClient(e)};return i.prototype.isOlderThan=function(t){return this._version<t},i.prototype.bindClient=function(t){var e=this.getStackTop();e.client=t,t&&t.setupIntegrations&&t.setupIntegrations()},i.prototype.pushScope=function(){var t=qt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},i.prototype.popScope=function(){return this.getStack().length<=1?!1:!!this.getStack().pop()},i.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},i.prototype.getClient=function(){return this.getStackTop().client},i.prototype.getScope=function(){return this.getStackTop().scope},i.prototype.getStack=function(){return this._stack},i.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},i.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:ot(),r=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(o){a=o}r={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,p(p({},r),{event_id:n})),n},i.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ot(),a=n;if(!n){var o=void 0;try{throw new Error(t)}catch(s){o=s}a={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,e,p(p({},a),{event_id:r})),r},i.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:ot();return t.type!=="transaction"&&(this._lastEventId=n),this._invokeClient("captureEvent",t,p(p({},e),{event_id:n})),n},i.prototype.lastEventId=function(){return this._lastEventId},i.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,a=n.client;if(!(!r||!a)){var o=a.getOptions&&a.getOptions()||{},s=o.beforeBreadcrumb,u=s===void 0?null:s,c=o.maxBreadcrumbs,d=c===void 0?$o:c;if(!(d<=0)){var f=oe(),l=p({timestamp:f},t),g=u?_n(function(){return u(l,e)}):l;g!==null&&r.addBreadcrumb(g,d)}}},i.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},i.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},i.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},i.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},i.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},i.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},i.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},i.prototype.run=function(t){var e=ke(this);try{t(this)}finally{ke(e)}},i.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return ue&&h.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},i.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},i.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},i.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},i.prototype.captureSession=function(t){if(t===void 0&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},i.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},i.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,a=r&&r.getOptions()||{},o=a.release,s=a.environment,u=R(),c=(u.navigator||{}).userAgent,d=new Lr(p(p(p({release:o,environment:s},n&&{user:n.getUser()}),c&&{userAgent:c}),t));if(n){var f=n.getSession&&n.getSession();f&&f.status==="ok"&&f.update({status:"exited"}),this.endSession(),n.setSession(d)}return d},i.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},i.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.getStackTop(),o=a.scope,s=a.client;s&&s[t]&&(e=s)[t].apply(e,L(n,[o]))},i.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=_t(),a=r.__SENTRY__;if(a&&a.extensions&&typeof a.extensions[t]=="function")return a.extensions[t].apply(this,e);ue&&h.warn("Extension method "+t+" couldn't be found, doing nothing.")},i}(),pu=function(){var i=function(e,n){var r=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval(function(){return r.flush()},this.flushTimeout*1e3),this._sessionAttrs=n};return i.prototype.sendSessionAggregates=function(t){if(!this._transport.sendSession){ue&&h.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(t).then(null,function(e){ue&&h.error("Error while sending session:",e)})},i.prototype.flush=function(){var t=this.getSessionAggregates();t.aggregates.length!==0&&(this._pendingAggregates={},this.sendSessionAggregates(t))},i.prototype.getSessionAggregates=function(){var t=this,e=Object.keys(this._pendingAggregates).map(function(r){return t._pendingAggregates[parseInt(r)]}),n={attrs:this._sessionAttrs,aggregates:e};return ut(n)},i.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},i.prototype.incrementSessionStatusCount=function(){if(this._isEnabled){var t=N().getScope(),e=t&&t.getRequestSession();e&&e.status&&(this._incrementSessionStatusCount(e.status,new Date),t&&t.setRequestSession(void 0))}},i.prototype._incrementSessionStatusCount=function(t,e){var n=new Date(e).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),t){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}},i}(),Vo=Object.defineProperty,Qo=function(i,t){for(var e in t)Vo(i,e,{get:t[e],enumerable:!0})},Zo="7",du=function(){var i=function(e,n,r){n===void 0&&(n={}),this.dsn=e,this._dsnObject=zt(e),this.metadata=n,this._tunnel=r};return i.prototype.getDsn=function(){return this._dsnObject},i.prototype.forceEnvelope=function(){return!!this._tunnel},i.prototype.getBaseApiEndpoint=function(){return Ie(this._dsnObject)},i.prototype.getStoreEndpoint=function(){return Un(this._dsnObject)},i.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Ce(this._dsnObject)},i.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Lt(this._dsnObject,this._tunnel)},i}(),P=(typeof __SENTRY_DEBUG__=="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"?!0:__SENTRY_DEBUG__,Nr=[],Dr="Not capturing exception because it's already been captured.",ts=function(){var i=function(e,n){this._integrations={},this._numProcessing=0,this._backend=new e(n),this._options=n,n.dsn&&(this._dsn=zt(n.dsn))};return i.prototype.captureException=function(t,e,n){var r=this;if(kn(t)){P&&h.log(Dr);return}var a=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(o){return r._captureEvent(o,e,n)}).then(function(o){a=o})),a},i.prototype.captureMessage=function(t,e,n,r){var a=this,o=n&&n.event_id,s=Se(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then(function(u){return a._captureEvent(u,n,r)}).then(function(u){o=u})),o},i.prototype.captureEvent=function(t,e,n){if(e&&e.originalException&&kn(e.originalException)){P&&h.log(Dr);return}var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(function(a){r=a})),r},i.prototype.captureSession=function(t){if(!this._isEnabled()){P&&h.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?P&&h.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1}))},i.prototype.getDsn=function(){return this._dsn},i.prototype.getOptions=function(){return this._options},i.prototype.getTransport=function(){return this._getBackend().getTransport()},i.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then(function(n){return e.getTransport().close(t).then(function(r){return n&&r})})},i.prototype.close=function(t){var e=this;return this.flush(t).then(function(n){return e.getOptions().enabled=!1,n})},i.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=sa(this._options))},i.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return P&&h.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},i.prototype._updateSessionFromEvent=function(t,e){var n,r,a=!1,o=!1,s=e.exception&&e.exception.values;if(s){o=!0;try{for(var u=rt(s),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.mechanism;if(f&&f.handled===!1){a=!0;break}}}catch(w){n={error:w}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var l=t.status==="ok",g=l&&t.errors===0||l&&a;g&&(t.update(p(p({},a&&{status:"crashed"}),{errors:t.errors||Number(o||a)})),this.captureSession(t))},i.prototype._sendSession=function(t){this._getBackend().sendSession(t)},i.prototype._isClientDoneProcessing=function(t){var e=this;return new ct(function(n){var r=0,a=1,o=setInterval(function(){e._numProcessing==0?(clearInterval(o),n(!0)):(r+=a,t&&r>=t&&(clearInterval(o),n(!1)))},a)})},i.prototype._getBackend=function(){return this._backend},i.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},i.prototype._prepareEvent=function(t,e,n){var r=this,a=this.getOptions(),o=a.normalizeDepth,s=o===void 0?3:o,u=a.normalizeMaxBreadth,c=u===void 0?1e3:u,d=p(p({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:ot()),timestamp:t.timestamp||oe()});this._applyClientOptions(d),this._applyIntegrationsMetadata(d);var f=e;n&&n.captureContext&&(f=qt.clone(f).update(n.captureContext));var l=tt(d);return f&&(l=f.applyToEvent(d,n)),l.then(function(g){return g&&(g.sdkProcessingMetadata=p(p({},g.sdkProcessingMetadata),{normalizeDepth:ft(s)+" ("+(typeof s=="undefined"?"undefined":_typeof(s))+")"})),typeof s=="number"&&s>0?r._normalizeEvent(g,s,c):g})},i.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=p(p(p(p(p({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(a){return p(p({},a),a.data&&{data:ft(a.data,e,n)})})}),t.user&&{user:ft(t.user,e,n)}),t.contexts&&{contexts:ft(t.contexts,e,n)}),t.extra&&{extra:ft(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=p(p({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},i.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,a=e.dist,o=e.maxValueLength,s=o===void 0?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&a!==void 0&&(t.dist=a),t.message&&(t.message=kt(t.message,s));var u=t.exception&&t.exception.values&&t.exception.values[0];u&&u.value&&(u.value=kt(u.value,s));var c=t.request;c&&c.url&&(c.url=kt(c.url,s))},i.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=L(t.sdk.integrations||[],e))},i.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},i.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(r){return r.event_id},function(r){P&&h.error(r)})},i.prototype._processEvent=function(t,e,n){var r=function(l,g){c.recordLostEvent&&c.recordLostEvent(l,g)},a=this,o=this.getOptions(),s=o.beforeSend,u=o.sampleRate,c=this.getTransport();if(!this._isEnabled())return Ct(new U("SDK not enabled, will not capture event."));var d=t.type==="transaction";return!d&&typeof u=="number"&&Math.random()>u?(r("sample_rate","event"),Ct(new U("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this._prepareEvent(t,n,e).then(function(f){if(f===null)throw r("event_processor",t.type||"event"),new U("An event processor returned null, will not send event.");var l=e&&e.data&&e.data.__sentry__===!0;if(l||d||!s)return f;var g=s(f,e);return ua(g)}).then(function(f){if(f===null)throw r("before_send",t.type||"event"),new U("`beforeSend` returned `null`, will not send event.");var l=n&&n.getSession&&n.getSession();return!d&&l&&a._updateSessionFromEvent(l,f),a._sendEvent(f),f}).then(null,function(f){throw _instanceof(f,U)?f:(a.captureException(f,{data:{__sentry__:!0},originalException:f}),new U("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+f))})},i.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then(function(n){return e._numProcessing-=1,n},function(n){return e._numProcessing-=1,n})},i}(),es=function(){var i=function(){};return i.prototype.sendEvent=function(t){return tt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},i.prototype.close=function(t){return tt(!0)},i}(),ns=function(){var i=function(e){this._options=e,this._options.dsn||P&&h.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()};return i.prototype.eventFromException=function(t,e){throw new U("Backend has to implement `eventFromException` method")},i.prototype.eventFromMessage=function(t,e,n){throw new U("Backend has to implement `eventFromMessage` method")},i.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=Kt(this._options.dsn,this._options._metadata,this._options.tunnel),n=pa(t,e);this._newTransport.send(n).then(null,function(r){P&&h.error("Error while sending event:",r)})}else this._transport.sendEvent(t).then(null,function(r){P&&h.error("Error while sending event:",r)})},i.prototype.sendSession=function(t){if(!this._transport.sendSession){P&&h.warn("Dropping session because custom transport doesn't implement sendSession");return}if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=Kt(this._options.dsn,this._options._metadata,this._options.tunnel),n=z(Hn(t,e),1),r=n[0];this._newTransport.send(r).then(null,function(a){P&&h.error("Error while sending session:",a)})}else this._transport.sendSession(t).then(null,function(a){P&&h.error("Error while sending session:",a)})},i.prototype.getTransport=function(){return this._transport},i.prototype._setupTransport=function(){return new es},i}(),rs=30,$e="6.19.7",ce={};Qo(ce,{FunctionToString:function(){return is},InboundFilters:function(){return os}});var Ar,is=function(){function i(){this.name=i.id}return i.prototype.setupOnce=function(){Ar=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=we(this)||this;return Ar.apply(n,t)}},i.id="FunctionToString",i}(),as=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],os=function(){function i(t){t===void 0&&(t={}),this._options=t,this.name=i.id}return i.prototype.setupOnce=function(t,e){t(function(n){var r=e();if(r){var a=r.getIntegration(i);if(a){var o=r.getClient(),s=o?o.getOptions():{},u=la(a._options,s);return va(n,u)?null:n}}return n})},i.id="InboundFilters",i}(),St="?",ss=10,us=20,cs=30,ps=40,ds=50,fs=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ls=/\((\S*)(?::(\d+))(?::(\d+))\)/,vs=function(t){var e=fs.exec(t);if(e){var n=e[2]&&e[2].indexOf("eval")===0;if(n){var r=ls.exec(e[2]);r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3])}var a=z(jr(e[1]||St,e[2]),2),o=a[0],s=a[1];return Nt(s,o,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},hs=[cs,vs],ms=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_s=function(t){var e,n=ms.exec(t);if(n){var r=n[3]&&n[3].indexOf(" > eval")>-1;if(r){var a=gs.exec(n[3]);a&&(n[1]=n[1]||"eval",n[3]=a[1],n[4]=a[2],n[5]="")}var o=n[3],s=n[1]||St;return e=z(jr(s,o),2),s=e[0],o=e[1],Nt(o,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},ys=[ds,_s],bs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ss=function(t){var e=bs.exec(t);return e?Nt(e[2],e[1]||St,+e[3],e[4]?+e[4]:void 0):void 0},ws=[ps,Ss],Es=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,xs=function(t){var e=Es.exec(t);return e?Nt(e[2],e[3]||St,+e[1]):void 0},Ts=[ss,xs],Os=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ks=function(t){var e=Os.exec(t);return e?Nt(e[5],e[3]||e[4]||St,+e[1],+e[2]):void 0},Rs=[us,ks],jr=function(t,e){var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:St,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},Is=/Minified React error #\d+;/i,Pr={};Ue(Pr,{BaseTransport:function(){return Qe},FetchTransport:function(){return Mr},XHRTransport:function(){return qr},makeNewFetchTransport:function(){return Kn},makeNewXHRTransport:function(){return $n}});var W=(typeof __SENTRY_DEBUG__=="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"?!0:__SENTRY_DEBUG__,$=R(),pe,Ve=R(),Qe=function(){var i=function(e){var n=this;this.options=e,this._buffer=Rn(30),this._rateLimits={},this._outcomes={},this._api=Kt(e.dsn,e._metadata,e.tunnel),this.url=Ce(this._api.dsn),this.options.sendClientReports&&Ve.document&&Ve.document.addEventListener("visibilitychange",function(){Ve.document.visibilityState==="hidden"&&n._flushOutcomes()})};return i.prototype.sendEvent=function(t){return this._sendRequest(da(t,this._api),t)},i.prototype.sendSession=function(t){return this._sendRequest(ca(t,this._api),t)},i.prototype.close=function(t){return this._buffer.drain(t)},i.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=Me(e)+":"+t;W&&h.log("Adding outcome: "+r),this._outcomes[r]=(n=this._outcomes[r],(n!=null?n:0)+1)}},i.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},!Object.keys(t).length){W&&h.log("No outcomes to flush");return}W&&h.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=Lt(this._api.dsn,this._api.tunnel),n=Object.keys(t).map(function(a){var o=z(a.split(":"),2),s=o[0],u=o[1];return{reason:u,category:s,quantity:t[a]}}),r=Yi(n,this._api.tunnel&&Ot(this._api.dsn));try{Ea(e,Xt(r))}catch(a){W&&h.error(a)}}},i.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,a=t.resolve,o=t.reject,s=In(n.status);if(this._rateLimits=Ln(this._rateLimits,r),this._isRateLimited(e)&&W&&h.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),s==="success"){a({status:s});return}o(n)},i.prototype._disabledUntil=function(t){var e=Me(t);return new Date(Oe(this._rateLimits,e))},i.prototype._isRateLimited=function(t){var e=Me(t);return Cn(this._rateLimits,e)},i}(),Mr=function(i){var t=function(n,r){r===void 0&&(r=Pe());var a=i.call(this,n)||this;return a._fetch=r,a};return nt(t,i),t.prototype._sendRequest=function(e,n){var r=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:n,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var a={body:e.body,method:"POST",referrerPolicy:bi()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(a,this.options.fetchParameters),this.options.headers!==void 0&&(a.headers=this.options.headers),this._buffer.add(function(){return new ct(function(o,s){r._fetch(e.url,a).then(function(u){var c={"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")};r._handleResponse({requestType:e.type,response:u,headers:c,resolve:o,reject:s})}).catch(s)})}).then(void 0,function(o){throw _instanceof(o,U)?r.recordLostEvent("queue_overflow",e.type):r.recordLostEvent("network_error",e.type),o})},t}(Qe),qr=function(i){var t=function(){return i!==null&&i.apply(this,arguments)||this};return nt(t,i),t.prototype._sendRequest=function(e,n){var r=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:n,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new ct(function(a,o){var s=new XMLHttpRequest;s.onreadystatechange=function(){if(s.readyState===4){var c={"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")};r._handleResponse({requestType:e.type,response:s,headers:c,resolve:a,reject:o})}},s.open("POST",e.url);for(var u in r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,u)&&s.setRequestHeader(u,r.options.headers[u]);s.send(e.body)})}).then(void 0,function(a){throw _instanceof(a,U)?r.recordLostEvent("queue_overflow",e.type):r.recordLostEvent("network_error",e.type),a})},t}(Qe),Cs=4,Ls=function(i){var t=function(){return i!==null&&i.apply(this,arguments)||this};return nt(t,i),t.prototype.eventFromException=function(e,n){return Xn(e,n,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,n,r){return n===void 0&&(n=K.Info),Jn(e,n,r,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return i.prototype._setupTransport.call(this);var e=p(p({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=Kt(e.dsn,e._metadata,e.tunnel),r=Lt(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(e);if(Wt()){var a=p({},e.fetchParameters);return this._newTransport=Kn({requestOptions:a,url:r}),new Mr(e)}return this._newTransport=$n({url:r,headers:e.headers}),new qr(e)},t}(ns),de=R(),Ze=0;function lt(i,t,e){if(t===void 0&&(t={}),typeof i!="function")return i;try{var n=i.__sentry_wrapped__;if(n)return n;if(we(i))return i}catch(s){return i}var r=function(){var u=Array.prototype.slice.call(arguments);try{e&&typeof e=="function"&&e.apply(this,arguments);var c=u.map(function(d){return lt(d,t)});return i.apply(this,c)}catch(d){throw xa(),Pn(function(f){f.addEventProcessor(function(l){return t.mechanism&&(Te(l,void 0,void 0),It(l,t.mechanism)),l.extra=p(p({},l.extra),{arguments:u}),l}),An(d)}),d}};try{for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}catch(s){}Sn(r,i),Yt(i,"__sentry_wrapped__",r);try{var o=Object.getOwnPropertyDescriptor(r,"name");o.configurable&&Object.defineProperty(r,"name",{get:function(){return i.name}})}catch(s){}return r}var Ur={};Ue(Ur,{Breadcrumbs:function(){return tn},Dedupe:function(){return Yr},GlobalHandlers:function(){return fe},LinkedErrors:function(){return Fr},TryCatch:function(){return Br},UserAgent:function(){return zr}});var fe=function(){function i(t){this.name=i.id,this._installFunc={onerror:Ta,onunhandledrejection:Oa},this._options=p({onerror:!0,onunhandledrejection:!0},t)}return i.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this._options;for(var e in t){var n=this._installFunc[e];n&&t[e]&&(Ia(e),n(),this._installFunc[e]=void 0)}},i.id="GlobalHandlers",i}(),Ns=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Br=function(){function i(t){this.name=i.id,this._options=p({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return i.prototype.setupOnce=function(){var t=R();this._options.setTimeout&&q(t,"setTimeout",nr),this._options.setInterval&&q(t,"setInterval",nr),this._options.requestAnimationFrame&&q(t,"requestAnimationFrame",Ca),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&q(XMLHttpRequest.prototype,"send",La);var e=this._options.eventTarget;if(e){var n=Array.isArray(e)?e:Ns;n.forEach(Na)}},i.id="TryCatch",i}(),tn=function(){function i(t){this.name=i.id,this._options=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return i.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&N().addBreadcrumb({category:"sentry."+(t.type==="transaction"?"transaction":"event"),event_id:t.event_id,level:t.level,message:dt(t)},{event:t})},i.prototype.setupOnce=function(){this._options.console&&G("console",Aa),this._options.dom&&G("dom",Da(this._options.dom)),this._options.xhr&&G("xhr",ja),this._options.fetch&&G("fetch",Pa),this._options.history&&G("history",Ma)},i.id="Breadcrumbs",i}(),Ds="cause",As=5,Fr=function(){function i(t){t===void 0&&(t={}),this.name=i.id,this._key=t.key||Ds,this._limit=t.limit||As}return i.prototype.setupOnce=function(){Jt(function(t,e){var n=N().getIntegration(i);return n?qa(n._key,n._limit,t,e):t})},i.id="LinkedErrors",i}();function Hr(i,t,e,n){if(n===void 0&&(n=[]),!Q(t[e],Error)||n.length+1>=i)return n;var r=Gn(t[e]);return Hr(i,t[e],e,L([r],n))}var vt=R(),zr=function(){function i(){this.name=i.id}return i.prototype.setupOnce=function(){Jt(function(t){if(N().getIntegration(i)){if(!vt.navigator&&!vt.location&&!vt.document)return t;var e=t.request&&t.request.url||vt.location&&vt.location.href,n=(vt.document||{}).referrer,r=(vt.navigator||{}).userAgent,a=p(p(p({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=p(p({},e&&{url:e}),{headers:a});return p(p({},t),{request:o})}return t})},i.id="UserAgent",i}(),Yr=function(){function i(){this.name=i.id}return i.prototype.setupOnce=function(t,e){t(function(n){var r=e().getIntegration(i);if(r){try{if(Ua(n,r._previousEvent))return W&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return r._previousEvent=n}return r._previousEvent=n}return n})},i.id="Dedupe",i}(),Wr=function(i){var t=function(n){n===void 0&&(n={});var r=this;return n._metadata=n._metadata||{},n._metadata.sdk=n._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:$e}],version:$e},r=i.call(this,Ls,n)||this,r};return nt(t,i),t.prototype.showReportDialog=function(e){e===void 0&&(e={});var n=R().document;if(n){if(!this._isEnabled()){W&&h.error("Trying to call showReportDialog with Sentry Client disabled");return}Qn(p(p({},e),{dsn:e.dsn||this.getDsn()}))}},t.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",i.prototype._prepareEvent.call(this,e,n,r)},t.prototype._sendEvent=function(e){var n=this.getIntegration(tn);n&&n.addSentryBreadcrumb(e),i.prototype._sendEvent.call(this,e)},t}(ts),Gr=[new ce.InboundFilters,new ce.FunctionToString,new Br,new tn,new fe,new Fr,new Yr,new zr],js="sentry.javascript.browser",Xr={},en=R();en.Sentry&&en.Sentry.Integrations&&(Xr=en.Sentry.Integrations);var Ps=p(p(p({},Xr),ce),Ur),b=(typeof __SENTRY_DEBUG__=="undefined"?"undefined":_typeof(__SENTRY_DEBUG__))>"u"?!0:__SENTRY_DEBUG__,nn="finishReason",rn=["heartbeatFailed","idleTimeout","documentHidden"],Jr=function(){var i=function(e){e===void 0&&(e=1e3),this.spans=[],this._maxlen=e};return i.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},i}(),Ms=function(){var i=function(e){if(this.traceId=ot(),this.spanId=ot().substring(16),this.startTimestamp=Pt(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)};return i.prototype.child=function(t){return this.startChild(t)},i.prototype.startChild=function(t){var e=new i(p(p({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,e},i.prototype.setTag=function(t,e){var n;return this.tags=p(p({},this.tags),(n={},n[t]=e,n)),this},i.prototype.setData=function(t,e){var n;return this.data=p(p({},this.data),(n={},n[t]=e,n)),this},i.prototype.setStatus=function(t){return this.status=t,this},i.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=Qa(t);return e!=="unknown_error"&&this.setStatus(e),this},i.prototype.isSuccess=function(){return this.status==="ok"},i.prototype.finish=function(t){this.endTimestamp=typeof t=="number"?t:Pt()},i.prototype.toTraceparent=function(){var t="";return this.sampled!==void 0&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},i.prototype.toContext=function(){return ut({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},i.prototype.updateWithContext=function(t){var e,n,r,a,o;return this.data=(e=t.data,e!=null?e:{}),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(n=t.spanId,n!=null?n:this.spanId),this.startTimestamp=(r=t.startTimestamp,r!=null?r:this.startTimestamp),this.status=t.status,this.tags=(a=t.tags,a!=null?a:{}),this.traceId=(o=t.traceId,o!=null?o:this.traceId),this},i.prototype.getTraceContext=function(){return ut({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},i.prototype.toJSON=function(){return ut({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},i}(),Kr=function(i){var t=function(n,r){var a=i.call(this,n)||this;return a._measurements={},a._hub=N(),Q(r,Ut)&&(a._hub=r),a.name=n.name||"",a.metadata=n.metadata||{},a._trimEnd=n.trimEnd,a.transaction=a,a};return nt(t,i),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){e===void 0&&(e=1e3),this.spanRecorder||(this.spanRecorder=new Jr(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=p({},e)},t.prototype.setMetadata=function(e){this.metadata=p(p({},this.metadata),e)},t.prototype.finish=function(e){var n=this;if(this.endTimestamp===void 0){if(this.name||(b&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),i.prototype.finish.call(this,e),this.sampled!==!0){b&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var r=this._hub.getClient(),a=r&&r.getTransport&&r.getTransport();a&&a.recordLostEvent&&a.recordLostEvent("sample_rate","transaction");return}var o=this.spanRecorder?this.spanRecorder.spans.filter(function(c){return c!==n&&c.endTimestamp}):[];this._trimEnd&&o.length>0&&(this.endTimestamp=o.reduce(function(c,d){return c.endTimestamp&&d.endTimestamp?c.endTimestamp>d.endTimestamp?c:d:c}).endTimestamp);var s={contexts:{trace:this.getTraceContext()},spans:o,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},u=Object.keys(this._measurements).length>0;return u&&(b&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),b&&h.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(s)}},t.prototype.toContext=function(){var e=i.prototype.toContext.call(this);return ut(p(p({},e),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(e){var n;return i.prototype.updateWithContext.call(this,e),this.name=(n=e.name,n!=null?n:""),this._trimEnd=e.trimEnd,this},t}(Ms),$r=1e3,qs=5e3,Us=function(i){var t=function(n,r,a,o){a===void 0&&(a="");var s=i.call(this,o)||this;return s._pushActivity=n,s._popActivity=r,s.transactionSpanId=a,s};return nt(t,i),t.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(r){e.endTimestamp=typeof r=="number"?r:Pt(),n._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),i.prototype.add.call(this,e)},t}(Jr),Bs=function(i){var t=function(n,r,a,o){a===void 0&&(a=$r),o===void 0&&(o=!1);var s=i.call(this,n,r)||this;return s._idleHub=r,s._idleTimeout=a,s._onScope=o,s.activities={},s._heartbeatCounter=0,s._finished=!1,s._beforeFinishCallbacks=[],r&&o&&(pr(r),b&&h.log("Setting idle transaction on scope. Span ID: "+s.spanId),r.configureScope(function(u){return u.setSpan(s)})),s._initTimeout=setTimeout(function(){s._finished||s.finish()},s._idleTimeout),s};return nt(t,i),t.prototype.finish=function(e){var n,r,a=this;if(e===void 0&&(e=Pt()),this._finished=!0,this.activities={},this.spanRecorder){b&&h.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);try{for(var o=rt(this._beforeFinishCallbacks),s=o.next();!s.done;s=o.next()){var u=s.value;u(this,e)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(c){if(c.spanId===a.spanId)return!0;c.endTimestamp||(c.endTimestamp=e,c.setStatus("cancelled"),b&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(c,void 0,2)));var d=c.startTimestamp<e;return d||b&&h.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(c,void 0,2)),d}),b&&h.log("[Tracing] flushing IdleTransaction")}else b&&h.log("[Tracing] No active IdleTransaction");return this._onScope&&pr(this._idleHub),i.prototype.finish.call(this,e)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var n=this;if(!this.spanRecorder){var r=function(s){n._finished||n._pushActivity(s)},a=function(s){n._finished||n._popActivity(s)};this.spanRecorder=new Us(r,a,this.spanId,e),b&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),b&&h.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,b&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var n=this;if(this.activities[e]&&(b&&h.log("[Tracing] popActivity "+e),delete this.activities[e],b&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){var r=this._idleTimeout,a=Pt()+r/1e3;setTimeout(function(){n._finished||(n.setTag(nn,rn[1]),n.finish(a))},r)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(b&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(nn,rn[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;b&&h.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){e._beat()},qs)},t}(Kr),fu=function(){function i(t){t===void 0&&(t={}),this.name=i.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return i.prototype.setupOnce=function(){if(!this._router){b&&h.error("ExpressIntegration is missing an Express instance");return}uo(this._router,this._methods)},i.id="Express",i}(),lu=function(){function i(t){t===void 0&&(t={}),this.name=i.id,this._usePgNative=!!t.usePgNative}return i.prototype.setupOnce=function(t,e){var n,r=Ft("pg");if(!r){b&&h.error("Postgres Integration was unable to require `pg` package.");return}if(this._usePgNative&&!(!((n=r.native)===null||n===void 0)&&n.Client)){b&&h.error("Postgres Integration was unable to access 'pg-native' bindings.");return}var a=(this._usePgNative?r.native:r).Client;q(a.prototype,"query",function(o){return function(s,u,c){var d,f,l,g=e().getScope(),w=(d=g)===null||d===void 0?void 0:d.getSpan(),x=(f=w)===null||f===void 0?void 0:f.startChild({description:typeof s=="string"?s:s.text,op:"db"});if(typeof c=="function")return o.call(this,s,u,function(A,I){var F;(F=x)===null||F===void 0||F.finish(),c(A,I)});if(typeof u=="function")return o.call(this,s,function(A,I){var F;(F=x)===null||F===void 0||F.finish(),u(A,I)});var k=(typeof u=="undefined"?"undefined":_typeof(u))<"u"?o.call(this,s,u):o.call(this,s);return xt(k)?k.then(function(A){var I;return(I=x)===null||I===void 0||I.finish(),A}):((l=x)===null||l===void 0||l.finish(),k)}})},i.id="Postgres",i}(),vu=function(){function i(){this.name=i.id}return i.prototype.setupOnce=function(t,e){var n=Ft("mysql/lib/Connection.js");if(!n){b&&h.error("Mysql Integration was unable to require `mysql` package.");return}q(n,"createQuery",function(r){return function(a,o,s){var u,c,d=e().getScope(),f=(u=d)===null||u===void 0?void 0:u.getSpan(),l=(c=f)===null||c===void 0?void 0:c.startChild({description:typeof a=="string"?a:a.sql,op:"db"});return typeof s=="function"?r.call(this,a,o,function(g,w,x){var k;(k=l)===null||k===void 0||k.finish(),s(g,w,x)}):typeof o=="function"?r.call(this,a,function(g,w,x){var k;(k=l)===null||k===void 0||k.finish(),o(g,w,x)}):r.call(this,a,o,s)}})},i.id="Mysql",i}(),Fs=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Hs={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},hu=function(){function i(t){t===void 0&&(t={}),this.name=i.id,this._operations=Array.isArray(t.operations)?t.operations:Fs,this._describeOperations="describeOperations"in t?t.describeOperations:!0,this._useMongoose=!!t.useMongoose}return i.prototype.setupOnce=function(t,e){var n=this._useMongoose?"mongoose":"mongodb",r=Ft(n);if(!r){b&&h.error("Mongo Integration was unable to require `"+n+"` package.");return}this._instrumentOperations(r.Collection,this._operations,e)},i.prototype._instrumentOperations=function(t,e,n){var r=this;e.forEach(function(a){return r._patchOperation(t,a,n)})},i.prototype._patchOperation=function(t,e,n){if(e in t.prototype){var r=this._getSpanContextFromOperationArguments.bind(this);q(t.prototype,e,function(a){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u,c,d,f,l=o[o.length-1],g=n().getScope(),w=(u=g)===null||u===void 0?void 0:u.getSpan();if(typeof l!="function"||e==="mapReduce"&&o.length===2){var x=(c=w)===null||c===void 0?void 0:c.startChild(r(this,e,o)),k=a.call.apply(a,L([this],o));return xt(k)?k.then(function(I){var F;return(F=x)===null||F===void 0||F.finish(),I}):((d=x)===null||d===void 0||d.finish(),k)}var A=(f=w)===null||f===void 0?void 0:f.startChild(r(this,e,o.slice(0,-1)));return a.call.apply(a,L([this],o.slice(0,-1),[function(I,F){var E;(E=A)===null||E===void 0||E.finish(),l(I,F)}]))}})}},i.prototype._getSpanContextFromOperationArguments=function(t,e,n){var r={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},a={op:"db",description:e,data:r},o=Hs[e],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!o||!s)return a;try{if(e==="mapReduce"){var u=z(n,2),c=u[0],d=u[1];r[o[0]]=typeof c=="string"?c:c.name||"<anonymous>",r[o[1]]=typeof d=="string"?d:d.name||"<anonymous>"}else for(var f=0;f<o.length;f++)r[o[f]]=JSON.stringify(n[f])}catch(l){}return a},i.id="Mongo",i}(),le=R(),an=function(t,e,n){var r;return function(a){e.value>=0&&(a||n)&&(e.delta=e.value-(r||0),(e.delta||r===void 0)&&(r=e.value,t(e)))}},zs=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*8999999999999)+1e12)},on=function(t,e){return{name:t,value:e!=null?e:-1,delta:0,entries:[],id:zs()}},sn=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(r){return r.getEntries().map(e)});return n.observe({type:t,buffered:!0}),n}}catch(r){}},ve=function(t,e){var n=function(r){(r.type==="pagehide"||R().document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Ys=function(t,e){var n=on("CLS",0),r,a=0,o=[],s=function(d){if(d&&!d.hadRecentInput){var f=o[0],l=o[o.length-1];a&&o.length!==0&&d.startTime-l.startTime<1e3&&d.startTime-f.startTime<5e3?(a+=d.value,o.push(d)):(a=d.value,o=[d]),a>n.value&&(n.value=a,n.entries=o,r&&r())}},u=sn("layout-shift",s);u&&(r=an(t,n,e),ve(function(){u.takeRecords().map(s),r(!0)}))},he=-1,Ws=function(){return R().document.visibilityState==="hidden"?0:1/0},Gs=function(){ve(function(t){var e=t.timeStamp;he=e},!0)},un=function(){return he<0&&(he=Ws(),Gs()),{get firstHiddenTime(){return he}}},Xs=function(t,e){var n=un(),r=on("FID"),a,o=function(c){a&&c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),a(!0))},s=sn("first-input",o);s&&(a=an(t,r,e),ve(function(){s.takeRecords().map(o),s.disconnect()},!0))},Vr={},Js=function(t,e){var n=un(),r=on("LCP"),a,o=function(d){var f=d.startTime;f<n.firstHiddenTime&&(r.value=f,r.entries.push(d)),a&&a()},s=sn("largest-contentful-paint",o);if(s){a=an(t,r,e);var u=function(){Vr[r.id]||(s.takeRecords().map(o),s.disconnect(),Vr[r.id]=!0,a(!0))};["keydown","click"].forEach(function(c){addEventListener(c,u,{once:!0,capture:!0})}),ve(u,!0)}},V=R(),Ks=function(){var i=function(e){e===void 0&&(e=!1),this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!Et()&&V&&V.performance&&V.document&&(V.performance.mark&&V.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())};return i.prototype.addPerformanceEntries=function(t){var e=this;if(!(!V||!V.performance||!V.performance.getEntries||!Mt)){b&&h.log("[Tracing] Adding & adjusting spans using Performance API");var n=B(Mt),r,a;if(V.performance.getEntries().slice(this._performanceCursor).forEach(function(s){var u=B(s.startTime),c=B(s.duration);if(!(t.op==="navigation"&&n+u<t.startTimestamp))switch(s.entryType){case"navigation":{po(t,s,n),r=n+B(s.responseStart),a=n+B(s.requestStart);break}case"mark":case"paint":case"measure":{var d=fo(t,s,u,c,n),f=un(),l=s.startTime<f.firstHiddenTime;s.name==="first-paint"&&l&&(b&&h.log("[Measurements] Adding FP"),e._measurements.fp={value:s.startTime},e._measurements["mark.fp"]={value:d}),s.name==="first-contentful-paint"&&l&&(b&&h.log("[Measurements] Adding FCP"),e._measurements.fcp={value:s.startTime},e._measurements["mark.fcp"]={value:d});break}case"resource":{var g=s.name.replace(V.location.origin,"");lo(t,s,g,u,c,n);break}default:}}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),t.op==="pageload"){var o=B(Mt);typeof r=="number"&&(b&&h.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:(r-t.startTimestamp)*1e3},typeof a=="number"&&a<=r&&(this._measurements["ttfb.requestTime"]={value:(r-a)*1e3})),["fcp","fp","lcp"].forEach(function(s){if(!(!e._measurements[s]||o>=t.startTimestamp)){var u=e._measurements[s].value,c=o+B(u),d=Math.abs((c-t.startTimestamp)*1e3),f=d-u;b&&h.log("[Measurements] Normalized "+s+" from "+u+" to "+d+" ("+f+")"),e._measurements[s].value=d}}),this._measurements["mark.fid"]&&this._measurements.fid&&yt(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+B(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),ho(t,this._lcpEntry,this._clsEntry),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},i.prototype._trackNavigator=function(t){var e=V.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),Zt(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Zt(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Zt(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),Zt(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},i.prototype._trackCLS=function(){var t=this;Ys(function(e){var n=e.entries.pop();n&&(b&&h.log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value},t._clsEntry=n)})},i.prototype._trackLCP=function(){var t=this;Js(function(e){var n=e.entries.pop();if(n){var r=B(Mt),a=B(n.startTime);b&&h.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+a},t._lcpEntry=n}},this._reportAllChanges)},i.prototype._trackFID=function(){var t=this;Xs(function(e){var n=e.entries.pop();if(n){var r=B(Mt),a=B(n.startTime);b&&h.log("[Measurements] Adding FID"),t._measurements.fid={value:e.value},t._measurements["mark.fid"]={value:r+a}}})},i}(),$s=["localhost",/^\//],me={traceFetch:!0,traceXHR:!0,tracingOrigins:$s},Bt=R(),Vs=600,Qs=p({idleTimeout:$r,markBackgroundTransactions:!0,maxTransactionDuration:Vs,routingInstrumentation:yo,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},me),Zs=function(){function i(t){this.name=i.id,this._configuredIdleTimeout=void 0;var e=me.tracingOrigins;t&&(this._configuredIdleTimeout=t.idleTimeout,t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&t.tracingOrigins.length!==0?e=t.tracingOrigins:b&&(this._emitOptionsWarning=!0)),this.options=p(p(p({},Qs),t),{tracingOrigins:e});var n=this.options._metricOptions;this._metrics=new Ks(n&&n._reportAllChanges)}return i.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(b&&h.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),b&&h.warn("[Tracing] We added a reasonable default for you: "+me.tracingOrigins));var r=this.options,a=r.routingInstrumentation,o=r.startTransactionOnLocationChange,s=r.startTransactionOnPageLoad,u=r.markBackgroundTransactions,c=r.traceFetch,d=r.traceXHR,f=r.tracingOrigins,l=r.shouldCreateSpanForRequest;a(function(g){return n._createRouteTransaction(g)},s,o),u&&co(),mo({traceFetch:c,traceXHR:d,tracingOrigins:f,shouldCreateSpanForRequest:l})},i.prototype._createRouteTransaction=function(t){var e=this;if(!this._getCurrentHub){b&&h.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,r=n.beforeNavigate,a=n.idleTimeout,o=n.maxTransactionDuration,s=t.op==="pageload"?bo():void 0,u=p(p(p({},t),s),{trimEnd:!0}),c=typeof r=="function"?r(u):u,d=c===void 0?p(p({},u),{sampled:!1}):c;d.sampled===!1&&b&&h.log("[Tracing] Will not send "+d.op+" transaction because of beforeNavigate."),b&&h.log("[Tracing] Starting "+d.op+" transaction on scope");var f=this._getCurrentHub(),l=R().location,g=no(f,d,a,!0,{location:l});return g.registerBeforeFinishCallback(function(w,x){e._metrics.addPerformanceEntries(w),wo($a(o),w,x)}),g.setTag("idleTimeout",this._configuredIdleTimeout),g},i.id="BrowserTracing",i}(),Qr;(function(i){i.Ok="ok",i.DeadlineExceeded="deadline_exceeded",i.Unauthenticated="unauthenticated",i.PermissionDenied="permission_denied",i.NotFound="not_found",i.ResourceExhausted="resource_exhausted",i.InvalidArgument="invalid_argument",i.Unimplemented="unimplemented",i.Unavailable="unavailable",i.InternalError="internal_error",i.UnknownError="unknown_error",i.Cancelled="cancelled",i.AlreadyExists="already_exists",i.FailedPrecondition="failed_precondition",i.Aborted="aborted",i.OutOfRange="out_of_range",i.DataLoss="data_loss"})(Qr||(Qr={})),ao();var Zr=window.location.origin.includes("//archive.org")?"production":"review",ge=document.querySelector("head"),tu=ge.getAttribute("data-release")||"unset",eu=ge.getAttribute("data-node")||"unknown",nu="https://[email protected]/6",_e=Zr==="production",ru=_e?.01:1,iu=_e?.1:1;sr({dsn:nu,attachStacktrace:!0,autoSessionTracking:!_e,debug:!_e,environment:Zr,release:tu,tracesSampleRate:ru,integrations:[new Zs({beforeNavigate:function(i){return ko(gr({},i),{name:Eo(location.pathname)})}})],sampleRate:iu}),jn("server_name",eu),xo(),window.Sentry=_r})();
// @license-end
//# sourceMappingURL=ia-sentry.min.js.map