!function(){function t(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}var e,n,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function i(t,e){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t}var o={},s={},a=r.parcelRequire5d1f;null==a&&((a=function(t){if(t in o)return o[t].exports;if(t in s){var e=s[t];delete s[t];var n={id:t,exports:{}};return o[t]=n,e.call(n.exports,n,n.exports),n.exports}var r=Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(t,e){s[t]=e},r.parcelRequire5d1f=a),a.register("9MdOw",function(e,n){t(e.exports,"isNodeEnv",function(){return o},function(t){return o=t}),t(e.exports,"dynamicRequire",function(){return s},function(t){return s=t}),t(e.exports,"loadModule",function(){return u},function(t){return u=t});var r=a("fKoIP"),i=a("fW3Z9");function o(){return!(0,r.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(t,e){return t.require(e)}function u(t){var n;try{n=s(e,t)}catch(t){}try{var r=s(e,"process").cwd;n=s(e,r()+"/node_modules/"+t)}catch(t){}return n}}),a.register("fKoIP",function(e,n){function r(){return!0}function i(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}t(e.exports,"isDebugBuild",function(){return r}),t(e.exports,"isBrowserBundle",function(){return i})}),a.register("fW3Z9",function(t,e){var n,r,i,o=t.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c=[],p=!1,d=-1;function l(){p&&i&&(p=!1,i.length?c=i.concat(c):d=-1,c.length&&f())}function f(){if(!p){var t=u(l);p=!0;for(var e=c.length;e;){for(i=c,c=[];++d1)for(var n=1;n1)&&((0,s.isDebugBuild)()&&(0,u.logger).warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+o+"."),1))?((0,s.isDebugBuild)()&&(0,u.logger).warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1):i?(t.sampled=Math.random()0&&(t.__SENTRY__.integrations=(0,i.__spread)(t.__SENTRY__.integrations||[],r))}}(),(0,d.registerErrorInstrumentation)()}}),a.register("7iEOQ",function(e,n){t(e.exports,"_",function(){return r});function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}}),a.register("40FTx",function(e,n){t(e.exports,"__extends",function(){return i}),t(e.exports,"__assign",function(){return o}),t(e.exports,"__rest",function(){return s}),t(e.exports,"__values",function(){return a}),t(e.exports,"__read",function(){return u}),t(e.exports,"__spread",function(){return c});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(){for(var t=[],e=0;e1)||!(s+3*r.length+a.length>=80)));)r.push(a),s+=a.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function s(){var t=(0,r.getGlobalObject)();try{return t.document.location.href}catch(t){return""}}}),a.register("7hzeE",function(e,n){t(e.exports,"isError",function(){return i}),t(e.exports,"isInstanceOf",function(){return m}),t(e.exports,"isErrorEvent",function(){return s}),t(e.exports,"isDOMError",function(){return a}),t(e.exports,"isDOMException",function(){return u}),t(e.exports,"isString",function(){return c}),t(e.exports,"isPrimitive",function(){return p}),t(e.exports,"isPlainObject",function(){return d}),t(e.exports,"isEvent",function(){return l}),t(e.exports,"isElement",function(){return f}),t(e.exports,"isRegExp",function(){return h}),t(e.exports,"isThenable",function(){return g}),t(e.exports,"isSyntheticEvent",function(){return _}),t(e.exports,"isNaN",function(){return v});var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function o(t,e){return r.call(t)==="[object "+e+"]"}function s(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function u(t){return o(t,"DOMException")}function c(t){return o(t,"String")}function p(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function d(t){return o(t,"Object")}function l(t){return"undefined"!=typeof Event&&m(t,Event)}function f(t){return"undefined"!=typeof Element&&m(t,Element)}function h(t){return o(t,"RegExp")}function g(t){return!!(t&&t.then&&"function"==typeof t.then)}function _(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t){return"number"==typeof t&&t!=t}function m(t,e){try{return t instanceof e}catch(t){return!1}}}),a.register("f1zlR",function(e,n){t(e.exports,"dsnToString",function(){return u}),t(e.exports,"makeDsn",function(){return p});var r=a("40FTx"),i=a("fKoIP"),o=a("4zJ07"),s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function u(t,e){void 0===e&&(e=!1);var n=t.host,r=t.path,i=t.pass,o=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(e&&i?":"+i:"")+("@"+n+(o?":"+o:""))+"/"+(r?r+"/":r)+s}function c(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}}function p(t){var e="string"==typeof t?function(t){var e=s.exec(t);if(!e)throw new o.SentryError("Invalid Sentry Dsn: "+t);var n=(0,r.__read)(e.slice(1),6),i=n[0],a=n[1],u=n[2],p=n[3],d=n[4],l=n[5],f="",h=l,g=h.split("/");if(g.length>1&&(f=g.slice(0,-1).join("/"),h=g.pop()),h){var _=h.match(/^\d+/);_&&(h=_[0])}return c({host:p,pass:void 0===u?"":u,path:f,projectId:h,port:void 0===d?"":d,protocol:i,publicKey:a})}(t):c(t);return function(t){if((0,i.isDebugBuild)()){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(e){if(!t[e])throw new o.SentryError("Invalid Sentry Dsn: "+e+" missing")}),!n.match(/^\d+$/))throw new o.SentryError("Invalid Sentry Dsn: Invalid projectId "+n);if(!("http"===r||"https"===r))throw new o.SentryError("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new o.SentryError("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}}),a.register("4zJ07",function(e,n){t(e.exports,"SentryError",function(){return o});var r=a("40FTx"),i=a("cgMFB"),o=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,(0,i.setPrototypeOf)(r,n.prototype),r}return(0,r.__extends)(e,t),e}(Error)}),a.register("cgMFB",function(e,n){t(e.exports,"setPrototypeOf",function(){return r});var r=Object.setPrototypeOf||(({__proto__:[]})instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t})}),a.register("cfKCP",function(e,n){t(e.exports,"addInstrumentationHandler",function(){return m});var r,i,o,s=a("40FTx"),u=a("fKoIP"),c=a("2Rr7s"),p=a("7hzeE"),d=a("cMG0z"),l=a("6YYlL"),f=a("6lmzj"),h=a("cku3P"),g=(0,c.getGlobalObject)(),_={},v={};function m(t,e){_[t]=_[t]||[],_[t].push(e),function(t){if(!v[t])switch(v[t]=!0,t){case"console":"console"in g&&(0,d.CONSOLE_LEVELS).forEach(function(t){t in g.console&&(0,l.fill)(g.console,t,function(e){return function(){for(var n=[],r=0;r2?e[2]:void 0;if(i){var o=r,s=String(i);r=s,y("history",{from:o,to:s})}return t.apply(this,e)}}})();break;case"error":x=g.onerror,g.onerror=function(t,e,n,r,i){return y("error",{column:r,error:i,line:n,msg:t,url:e}),!!x&&x.apply(this,arguments)};break;case"unhandledrejection":S=g.onunhandledrejection,g.onunhandledrejection=function(t){return y("unhandledrejection",t),!S||S.apply(this,arguments)};break;default:(0,u.isDebugBuild)()&&(0,d.logger).warn("unknown instrumentation type:",t);return}}(t)}function y(t,e){var n,r;if(t&&_[t])try{for(var i=(0,s.__values)(_[t]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(e)}catch(e){(0,u.isDebugBuild)()&&(0,d.logger).error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,f.getFunctionName)(a)+"\nError:",e)}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function b(t,e){return void 0===e&&(e=!1),function(n){if(n&&o!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n)){var r="keypress"===n.type?"input":n.type;void 0===i?(t({event:n,name:r,global:e}),o=n):function(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(o,n)&&(t({event:n,name:r,global:e}),o=n),clearTimeout(i),i=g.setTimeout(function(){i=void 0},1e3)}}}var x=null,S=null}),a.register("cMG0z",function(e,n){t(e.exports,"CONSOLE_LEVELS",function(){return c}),t(e.exports,"consoleSandbox",function(){return p}),t(e.exports,"logger",function(){return f});var r=a("40FTx"),i=a("fKoIP"),o=a("2Rr7s"),s=(0,o.getGlobalObject)(),u="Sentry Logger ",c=["debug","info","warn","error","log","assert"];function p(t){var e=(0,o.getGlobalObject)();if(!("console"in e))return t();var n=e.console,r={};c.forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),i}var d=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e"}}function g(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function _(t,e){void 0===e&&(e=40);var n=Object.keys(f(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,s.truncate)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e)){if(r===n.length)return i;return(0,s.truncate)(i,e)}}return""}}),a.register("eVv3E",function(e,n){t(e.exports,"truncate",function(){return i}),t(e.exports,"snipLine",function(){return o}),t(e.exports,"safeJoin",function(){return s}),t(e.exports,"isMatchingPattern",function(){return u});var r=a("7hzeE");function i(t,e){return(void 0===e&&(e=0),"string"!=typeof t||0===e)?t:t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o":n||""}function d(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function l(t,e){var n=c(t);if(n){var i=n.mechanism;if(n.mechanism=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},{type:"generic",handled:!0}),i),e),e&&"data"in e){var o=(0,r.__assign)((0,r.__assign)({},i&&i.data),e.data);n.mechanism.data=o}}}function f(t){if(t&&t.__sentry_captured__)return!0;try{(0,o.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch(t){}return!1}a("eVv3E")}),a.register("icLPN",function(e,n){t(e.exports,"normalize",function(){return d}),t(e.exports,"normalizeToSize",function(){return function t(e,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=d(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}});var i=a("7iEOQ"),o=a("40FTx"),s=a("7hzeE"),u=a("fSaan"),c=a("6YYlL"),p=a("6lmzj");function d(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return function t(e,n,a,d,l){void 0===a&&(a=1/0),void 0===d&&(d=1/0),void 0===l&&(l=(0,u.memoBuilder)());var f=(0,o.__read)(l,2),h=f[0],g=f[1];if(n&&"function"==typeof n.toJSON)try{return n.toJSON()}catch(t){}if(null===n||["number","boolean","string"].includes(void 0===n?"undefined":(0,i._)(n))&&!(0,s.isNaN)(n))return n;var _=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==r&&e===r)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,s.isSyntheticEvent)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if(void 0===e)return"[undefined]";if("function"==typeof e)return"[Function: "+(0,p.getFunctionName)(e)+"]";if((void 0===e?"undefined":(0,i._)(e))==="symbol")return"["+String(e)+"]";if((void 0===e?"undefined":(0,i._)(e))==="bigint")return"[BigInt: "+String(e)+"]";return"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(t){return"**non-serializable** ("+t+")"}}(e,n);if(!_.startsWith("[object "))return _;if(0===a)return _.replace("object ","");if(h(n))return"[Circular ~]";var v=Array.isArray(n)?[]:{},m=0,y=(0,s.isError)(n)||(0,s.isEvent)(n)?(0,c.convertToPlainObject)(n):n;for(var b in y)if(Object.prototype.hasOwnProperty.call(y,b)){if(m>=d){v[b]="[MaxProperties ~]";break}var x=y[b];v[b]=t(b,x,a-1,d,l),m+=1}return g(n),v}("",t,e,n)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}}),a.register("fSaan",function(e,n){t(e.exports,"memoBuilder",function(){return r});function r(){var t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var r=0;r0&&n(!1)},t);e.forEach(function(t){(0,i.resolvedSyncPromise)(t).then(function(){--o||(clearTimeout(s),n(!0))},r)})})}}}}),a.register("9zNfk",function(e,n){t(e.exports,"resolvedSyncPromise",function(){return i}),t(e.exports,"SyncPromise",function(){return s}),t(e.exports,"rejectedSyncPromise",function(){return o});var r=a("7hzeE");function i(t){return new s(function(e){e(t)})}function o(t){return new s(function(e,n){n(t)})}var s=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){if(0===e._state){if((0,r.isThenable)(n)){n.then(e._resolve,e._reject);return}e._state=t,e._value=n,e._executeHandlers()}},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach(function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,n){var r=this;return new t(function(t,i){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(t){i(t)}else t(n)},function(e){if(n)try{t(n(e))}catch(t){i(t)}else i(e)}]),r._executeHandlers()})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(e){var n=this;return new t(function(t,r){var i,o;return n.then(function(t){o=!1,i=t,e&&e()},function(t){o=!0,i=t,e&&e()}).then(function(){if(o){r(i);return}t(i)})})},t}()}),a.register("JERse",function(e,n){t(e.exports,"severityFromString",function(){return o});var r=a("i9b1h"),i=a("3dka0");function o(t){return"warn"===t?r.Severity.Warning:-1!==(0,i.SeverityLevels).indexOf(t)?t:r.Severity.Log}}),a.register("i9b1h",function(e,n){var r,i;t(e.exports,"Severity",function(){return r}),(i=r||(r={})).Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical"}),a.register("3dka0",function(e,n){t(e.exports,"SeverityLevels",function(){return r});var r=["fatal","error","warning","log","info","debug","critical"]}),a.register("6fu3W",function(e,n){t(e.exports,"eventStatusFromHttpCode",function(){return r});function r(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}}),a.register("3lu6T",function(e,n){t(e.exports,"extractTraceparentData",function(){return i});var r=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t){var e=t.match(r);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}}),a.register("5WZdS",function(e,n){t(e.exports,"createEnvelope",function(){return o}),t(e.exports,"getEnvelopeType",function(){return s}),t(e.exports,"serializeEnvelope",function(){return u});var r=a("40FTx"),i=a("7hzeE");function o(t,e){return void 0===e&&(e=[]),[t,e]}function s(t){var e=(0,r.__read)(t,2);return(0,r.__read)((0,r.__read)(e[1],1)[0],1)[0].type}function u(t){var e=(0,r.__read)(t,2),n=e[0],o=e[1],s=JSON.stringify(n);return o.reduce(function(t,e){var n=(0,r.__read)(e,2),o=n[0],s=n[1],a=(0,i.isPrimitive)(s)?String(s):JSON.stringify(s);return t+"\n"+JSON.stringify(o)+"\n"+a},s)}}),a.register("elJzu",function(e,n){t(e.exports,"createClientReportEnvelope",function(){return o});var r=a("5WZdS"),i=a("a9pVH");function o(t,e,n){var o=[{type:"client_report"},{timestamp:n||(0,i.dateTimestampInSeconds)(),discarded_events:t}];return(0,r.createEnvelope)(e?{dsn:e}:{},[o])}}),a.register("7Orq4",function(e,n){t(e.exports,"disabledUntil",function(){return i}),t(e.exports,"isRateLimited",function(){return o}),t(e.exports,"updateRateLimits",function(){return s});var r=a("40FTx");function i(t,e){return t[e]||t.all||0}function o(t,e,n){return void 0===n&&(n=Date.now()),i(t,e)>n}function s(t,e,n){void 0===n&&(n=Date.now());var i,o,s,a,u=(0,r.__assign)({},t),c=e["x-sentry-rate-limits"],p=e["retry-after"];if(c)try{for(var d=(0,r.__values)(c.trim().split(",")),l=d.next();!l.done;l=d.next()){var f=l.value.split(":",2),h=parseInt(f[0],10),g=(isNaN(h)?60:h)*1e3;if(f[1])try{for(var _=(s=void 0,(0,r.__values)(f[1].split(";"))),v=_.next();!v.done;v=_.next())u[v.value]=n+g}catch(t){s={error:t}}finally{try{v&&!v.done&&(a=_.return)&&a.call(_)}finally{if(s)throw s.error}}else u.all=n+g}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}else p&&(u.all=n+function(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(p,n));return u}}),a.register("2xi4h",function(e,n){t(e.exports,"Scope",function(){return c}),t(e.exports,"addGlobalEventProcessor",function(){return d});var r=a("40FTx");a("hAGPp");var i=a("7hzeE"),o=a("a9pVH"),s=a("9zNfk"),u=a("2Rr7s"),c=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,r.__spread)(e._breadcrumbs),n._tags=(0,r.__assign)({},e._tags),n._extra=(0,r.__assign)({},e._extra),n._contexts=(0,r.__assign)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,r.__spread)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),e._tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),e._extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,i.isPlainObject)(e)&&(this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),e.tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),e.extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.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},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var i=(0,r.__assign)({timestamp:(0,o.dateTimestampInSeconds)()},t);return this._breadcrumbs=(0,r.__spread)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,r.__assign)((0,r.__assign)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,r.__assign)((0,r.__assign)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,r.__assign)((0,r.__assign)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,r.__assign)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=(0,r.__assign)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,r.__spread)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.__spread)(p(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=(0,r.__assign)((0,r.__assign)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,o){var a=this;return void 0===o&&(o=0),new s.SyncPromise(function(s,u){var c=t[o];if(null===e||"function"!=typeof c)s(e);else{var p=c((0,r.__assign)({},e),n);(0,i.isThenable)(p)?p.then(function(e){return a._notifyEventProcessors(t,e,n,o+1).then(s)}).then(null,u):a._notifyEventProcessors(t,p,n,o+1).then(s).then(null,u)}})},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(t)}),this._notifyingListeners=!1)},t.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},t}();function p(){var t=(0,u.getGlobalObject)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function d(t){p().push(t)}}),a.register("7kEkE",function(e,n){t(e.exports,"Session",function(){return s}),a("hAGPp");var r=a("ayWdB"),i=a("a9pVH"),o=a("6YYlL"),s=function(){function t(t){this.errors=0,this.sid=(0,r.uuid4)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,i.timestampInSeconds)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(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||(0,i.timestampInSeconds)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,r.uuid4)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return(0,o.dropUndefinedKeys)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}()}),a.register("hoNaF",function(e,n){t(e.exports,"registerErrorInstrumentation",function(){return u}),a("hAGPp");var r=a("cfKCP"),i=a("fKoIP"),o=a("cMG0z"),s=a("llVx8");function u(){(0,r.addInstrumentationHandler)("error",c),(0,r.addInstrumentationHandler)("unhandledrejection",c)}function c(){var t=(0,s.getActiveTransaction)();if(t){var e="internal_error";(0,i.isDebugBuild)()&&(0,o.logger).log("[Tracing] Transaction: "+e+" -> Global error occured"),t.setStatus(e)}}}),a.register("llVx8",function(e,n){t(e.exports,"hasTracingEnabled",function(){return i}),t(e.exports,"getActiveTransaction",function(){return o}),t(e.exports,"msToSec",function(){return s}),t(e.exports,"secToMs",function(){return u});var r=a("8QFgb");function i(t){var e=(0,r.getCurrentHub)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(t){var e=(t||(0,r.getCurrentHub)()).getScope();return e&&e.getTransaction()}function s(t){return t/1e3}function u(t){return 1e3*t}a("hAGPp"),a("3lu6T")}),a.register("gQgeB",function(e,n){t(e.exports,"DEFAULT_IDLE_TIMEOUT",function(){return d}),t(e.exports,"IdleTransaction",function(){return f});var r=a("40FTx");a("hAGPp");var i=a("a9pVH"),o=a("fKoIP"),s=a("cMG0z"),u=a("lTslf"),c=a("iBNTS"),p=a("91JL7"),d=1e3,l=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.__extends)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:(0,i.timestampWithMs)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(c.SpanRecorder),f=function(t){function e(e,n,r,i){void 0===r&&(r=d),void 0===i&&(i=!1);var a=t.call(this,e,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(h(n),(0,o.isDebugBuild)()&&(0,s.logger).log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope(function(t){return t.setSpan(a)})),a._initTimeout=setTimeout(function(){a._finished||a.finish()},a._idleTimeout),a}return(0,r.__extends)(e,t),e.prototype.finish=function(e){var n,a,u=this;if(void 0===e&&(e=(0,i.timestampWithMs)()),this._finished=!0,this.activities={},this.spanRecorder){(0,o.isDebugBuild)()&&(0,s.logger).log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var c=(0,r.__values)(this._beforeFinishCallbacks),p=c.next();!p.done;p=c.next())(0,p.value)(this,e)}catch(t){n={error:t}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(t){if(t.spanId===u.spanId)return!0;!t.endTimestamp&&(t.endTimestamp=e,t.setStatus("cancelled"),(0,o.isDebugBuild)()&&(0,s.logger).log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp=3?((0,o.isDebugBuild)()&&(0,s.logger).log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(u.FINISH_REASON_TAG,u.IDLE_TRANSACTION_FINISH_REASONS[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;(0,o.isDebugBuild)()&&(0,s.logger).log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){t._beat()},5e3)},e}(p.Transaction);function h(t){if(t){var e=t.getScope();e&&e.getTransaction()&&e.setSpan(void 0)}}}),a.register("lTslf",function(e,n){t(e.exports,"FINISH_REASON_TAG",function(){return r}),t(e.exports,"IDLE_TRANSACTION_FINISH_REASONS",function(){return i});var r="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]}),a.register("iBNTS",function(e,n){t(e.exports,"SpanRecorder",function(){return u}),t(e.exports,"Span",function(){return c});var r=a("40FTx");a("hAGPp");var i=a("ayWdB"),o=a("a9pVH"),s=a("6YYlL"),u=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=(0,i.uuid4)(),this.spanId=(0,i.uuid4)().substring(16),this.startTimestamp=(0,o.timestampWithMs)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,r.__assign)((0,r.__assign)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,r.__assign)((0,r.__assign)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,r.__assign)((0,r.__assign)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=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"}(t);return"unknown_error"!==e&&this.setStatus(e),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:(0,o.timestampWithMs)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,s.dropUndefinedKeys)({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})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return(0,s.dropUndefinedKeys)({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})},t.prototype.toJSON=function(){return(0,s.dropUndefinedKeys)({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})},t}()}),a.register("91JL7",function(e,n){t(e.exports,"Transaction",function(){return d});var r=a("40FTx"),i=a("8QFgb");a("hAGPp");var o=a("7hzeE"),s=a("fKoIP"),u=a("cMG0z"),c=a("6YYlL"),p=a("iBNTS"),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r._measurements={},r._hub=(0,i.getCurrentHub)(),(0,o.isInstanceOf)(n,i.Hub)&&(r._hub=n),r.name=e.name||"",r.metadata=e.metadata||{},r._trimEnd=e.trimEnd,r.transaction=r,r}return(0,r.__extends)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new p.SpanRecorder(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,r.__assign)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,r.__assign)((0,r.__assign)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||((0,s.isDebugBuild)()&&(0,u.logger).warn("Transaction has no name, falling back to ``."),this.name=""),t.prototype.finish.call(this,e),!0!==this.sampled){(0,s.isDebugBuild)()&&(0,u.logger).log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var r=this._hub.getClient(),i=r&&r.getTransport&&r.getTransport();i&&i.recordLostEvent&&i.recordLostEvent("sample_rate","transaction");return}var o=this.spanRecorder?this.spanRecorder.spans.filter(function(t){return t!==n&&t.endTimestamp}):[];this._trimEnd&&o.length>0&&(this.endTimestamp=o.reduce(function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t}).endTimestamp);var a={contexts:{trace:this.getTraceContext()},spans:o,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&((0,s.isDebugBuild)()&&(0,u.logger).log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),(0,s.isDebugBuild)()&&(0,u.logger).log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(a)}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,c.dropUndefinedKeys)((0,r.__assign)((0,r.__assign)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(p.Span)});var u=a("40FTx"),c=(a("8QFgb"),a("8QFgb"));a("hAGPp");var p=a("fKoIP"),d=a("cMG0z"),l={};t(l,"FunctionToString",function(){return h}),t(l,"InboundFilters",function(){return m}),a("hAGPp");var f=a("6YYlL"),h=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){e=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n=0;e--){var n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(t){try{var e;if(t.stacktrace)return y(t.stacktrace.frames);try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?y(e):null}catch(e){return(0,p.isDebugBuild)()&&(0,d.logger).error("Cannot extract url for event "+(0,g.getEventDescription)(t)),null}}a("hAGPp");var x=a("2Rr7s"),p=a("fKoIP"),d=a("cMG0z"),S=a("9zNfk"),E=a("cfKCP"),u=(a("40FTx"),a("40FTx")),T=a("2xi4h");a("hAGPp");var w=a("f1zlR"),g=a("ayWdB"),p=a("fKoIP"),d=a("cMG0z"),O=a("7hzeE"),S=a("9zNfk"),k=a("a9pVH"),P=a("icLPN"),_=a("eVv3E"),R=a("4zJ07"),u=a("40FTx"),T=a("2xi4h"),c=a("8QFgb");a("hAGPp");var p=a("fKoIP"),d=a("cMG0z"),f=a("6YYlL"),I=[];function D(t){return t.reduce(function(t,e){return t.every(function(t){return e.name!==t.name})&&t.push(e),t},[])}var N="Not capturing exception because it's already been captured.",C=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=(0,w.makeDsn)(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if((0,g.checkOrSetAlreadyCaught)(t)){(0,p.isDebugBuild)()&&(0,d.logger).log(N);return}var i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(t){return r._captureEvent(t,e,n)}).then(function(t){i=t})),i},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,s=(0,O.isPrimitive)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then(function(t){return i._captureEvent(t,n,r)}).then(function(t){o=t})),o},t.prototype.captureEvent=function(t,e,n){if(e&&e.originalException&&(0,g.checkOrSetAlreadyCaught)(e.originalException)){(0,p.isDebugBuild)()&&(0,d.logger).log(N);return}var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(function(t){r=t})),r},t.prototype.captureSession=function(t){if(!this._isEnabled()){(0,p.isDebugBuild)()&&(0,d.logger).warn("SDK not enabled, will not capture session.");return}"string"!=typeof t.release?(0,p.isDebugBuild)()&&(0,d.logger).warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then(function(n){return e.getTransport().close(t).then(function(t){return n&&t})})},t.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){var t,e,n,r,i,o,s;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(t=this._options,s={},(e=t.defaultIntegrations&&(0,u.__spread)(t.defaultIntegrations)||[],n=t.integrations,r=(0,u.__spread)(D(e)),Array.isArray(n)?r=(0,u.__spread)(r.filter(function(t){return n.every(function(e){return e.name!==t.name})}),D(n)):"function"==typeof n&&(r=Array.isArray(r=n(r))?r:[r]),i=r.map(function(t){return t.name}),o="Debug",-1!==i.indexOf(o)&&r.push.apply(r,(0,u.__spread)(r.splice(i.indexOf(o),1))),r).forEach(function(t){s[t.name]=t,-1===I.indexOf(t.name)&&(t.setupOnce(T.addGlobalEventProcessor,c.getCurrentHub),I.push(t.name),(0,p.isDebugBuild)()&&(0,d.logger).log("Integration installed: "+t.name))}),(0,f.addNonEnumerableProperty)(s,"initialized",!0),s))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return(0,p.isDebugBuild)()&&(0,d.logger).warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,i=!1,o=!1,s=e.exception&&e.exception.values;if(s){o=!0;try{for(var a=(0,u.__values)(s),c=a.next();!c.done;c=a.next()){var p=c.value.mechanism;if(p&&!1===p.handled){i=!0;break}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var d="ok"===t.status;(d&&0===t.errors||d&&i)&&(t.update((0,u.__assign)((0,u.__assign)({},i&&{status:"crashed"}),{errors:t.errors||Number(o||i)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new S.SyncPromise(function(n){var r=0,i=setInterval(function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))},1)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,s=void 0===o?3:o,a=i.normalizeMaxBreadth,c=void 0===a?1e3:a,p=(0,u.__assign)((0,u.__assign)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,g.uuid4)()),timestamp:t.timestamp||(0,k.dateTimestampInSeconds)()});this._applyClientOptions(p),this._applyIntegrationsMetadata(p);var d=e;n&&n.captureContext&&(d=(0,T.Scope).clone(d).update(n.captureContext));var l=(0,S.resolvedSyncPromise)(p);return d&&(l=d.applyToEvent(p,n)),l.then(function(t){return(t&&(t.sdkProcessingMetadata=(0,u.__assign)((0,u.__assign)({},t.sdkProcessingMetadata),{normalizeDepth:(0,P.normalize)(s)})),"number"==typeof s&&s>0)?r._normalizeEvent(t,s,c):t})},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=(0,u.__assign)((0,u.__assign)((0,u.__assign)((0,u.__assign)((0,u.__assign)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return(0,u.__assign)((0,u.__assign)({},t),t.data&&{data:(0,P.normalize)(t.data,e,n)})})}),t.user&&{user:(0,P.normalize)(t.user,e,n)}),t.contexts&&{contexts:(0,P.normalize)(t.contexts,e,n)}),t.extra&&{extra:(0,P.normalize)(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=(0,u.__assign)((0,u.__assign)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,o=e.maxValueLength,s=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,_.truncate)(t.message,s));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,_.truncate)(a.value,s));var u=t.request;u&&u.url&&(u.url=(0,_.truncate)(u.url,s))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,u.__spread)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(t){return t.event_id},function(t){(0,p.isDebugBuild)()&&(0,d.logger).error(t)})},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,s=i.sampleRate,a=this.getTransport();function u(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return(0,S.rejectedSyncPromise)(new R.SentryError("SDK not enabled, will not capture event."));var c="transaction"===t.type;return!c&&"number"==typeof s&&Math.random()>s?(u("sample_rate","event"),(0,S.rejectedSyncPromise)(new R.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(t,n,e).then(function(n){if(null===n)throw u("event_processor",t.type||"event"),new R.SentryError("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||c||!o?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,O.isThenable)(t))return t.then(function(t){if(!((0,O.isPlainObject)(t)||null===t))throw new R.SentryError(e);return t},function(t){throw new R.SentryError("beforeSend rejected with "+t)});if(!((0,O.isPlainObject)(t)||null===t))throw new R.SentryError(e);return t}(o(n,e))}).then(function(e){if(null===e)throw u("before_send",t.type||"event"),new R.SentryError("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,e),r._sendEvent(e),e}).then(null,function(t){if(t instanceof R.SentryError)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new R.SentryError("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then(function(t){return e._numProcessing-=1,t},function(t){return e._numProcessing-=1,t})},t}(),L="6.19.4";a("hAGPp");var x=a("2Rr7s"),p=a("fKoIP"),d=a("cMG0z"),u=(a("40FTx"),a("40FTx"));a("hAGPp");var p=a("fKoIP"),d=a("cMG0z"),R=a("4zJ07");a("hAGPp");var w=a("f1zlR"),f=a("6YYlL");function A(t,e,n){return{initDsn:t,metadata:e||{},dsn:(0,w.makeDsn)(t),tunnel:n}}function M(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function j(t,e){return""+M(t)+t.projectId+"/"+e+"/"}function B(t){return(0,f.urlEncode)({sentry_key:t.publicKey,sentry_version:"7"})}function F(t){return j(t,"store")}function z(t){return F(t)+"?"+B(t)}function G(t,e){return e||j(t,"envelope")+"?"+B(t)}!function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=(0,w.makeDsn)(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return M(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return F(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return z(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return G(this._dsnObject,this._tunnel)}}();var u=a("40FTx");a("hAGPp");var w=a("f1zlR"),H=a("5WZdS"),P=a("icLPN");function q(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function Y(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=(0,u.__spread)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,u.__spread)(t.sdk.packages||[],e.packages||[])),t}function U(t,e){var n=q(e),r=(0,u.__assign)((0,u.__assign)({sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:(0,w.dsnToString)(e.dsn)}),i="aggregates"in t?"sessions":"session",o=[{type:i},t];return[(0,H.createEnvelope)(r,[o]),i]}a("hAGPp");var S=a("9zNfk"),K=function(){function t(){}return t.prototype.sendEvent=function(t){return(0,S.resolvedSyncPromise)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return(0,S.resolvedSyncPromise)(!0)},t}(),W=function(){function t(t){this._options=t,!this._options.dsn&&(0,p.isDebugBuild)()&&(0,d.logger).warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new R.SentryError("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new R.SentryError("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e,n,r,i,o,s,a,c,l=(n=q(e=A(this._options.dsn,this._options._metadata,this._options.tunnel)),r=t.type||"event",o=(i=(t.sdkProcessingMetadata||{}).transactionSampling||{}).method,s=i.rate,Y(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,a=(0,u.__assign)((0,u.__assign)({event_id:t.event_id,sent_at:new Date().toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:(0,w.dsnToString)(e.dsn)}),c=[{type:r,sample_rates:[{id:o,rate:s}]},t],(0,H.createEnvelope)(a,[c]));this._newTransport.send(l).then(null,function(t){(0,p.isDebugBuild)()&&(0,d.logger).error("Error while sending event:",t)})}else this._transport.sendEvent(t).then(null,function(t){(0,p.isDebugBuild)()&&(0,d.logger).error("Error while sending event:",t)})},t.prototype.sendSession=function(t){if(!this._transport.sendSession){(0,p.isDebugBuild)()&&(0,d.logger).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=A(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,u.__read)(U(t,e),1)[0];this._newTransport.send(n).then(null,function(t){(0,p.isDebugBuild)()&&(0,d.logger).error("Error while sending session:",t)})}else this._transport.sendSession(t).then(null,function(t){(0,p.isDebugBuild)()&&(0,d.logger).error("Error while sending session:",t)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new K},t}(),J=a("i9b1h");a("hAGPp");var V=a("cku3P"),u=a("40FTx"),J=a("i9b1h");a("hAGPp");var O=a("7hzeE"),f=a("6YYlL"),P=a("icLPN"),X=a("6lmzj"),g=a("ayWdB"),S=a("9zNfk"),u=a("40FTx");function Q(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Z=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tt=/\((\S*)(?::(\d+))(?::(\d+))\)/,te=[30,function(t){var e=Z.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=tt.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=(0,u.__read)(td(e[1]||"?",e[2]),2),i=r[0];return Q(r[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],tn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ti=[50,function(t){var e,n=tn.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=tr.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return o=(e=(0,u.__read)(td(o,i),2))[0],Q(i=e[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],to=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ts=[40,function(t){var e=to.exec(t);return e?Q(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],ta=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,tu=[10,function(t){var e=ta.exec(t);return e?Q(e[2],e[3]||"?",+e[1]):void 0}],tc=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,tp=[20,function(t){var e=tc.exec(t);return e?Q(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],td=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function tl(t){var e,n=th(t),r={type:t&&t.name,value:(e=t&&t.message)?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tf(t){return{exception:{values:[tl(t)]}}}function th(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tg.test(t.message))return 1}return 0}(t);try{return(0,X.createStackParser)(tu,tp,te,ts,ti)(e,n)}catch(t){}return[]}var tg=/Minified React error #\d+;/i;function t_(t,e,n,r){var i;if((0,O.isErrorEvent)(t)&&t.error)return tf(t.error);if((0,O.isDOMError)(t)||(0,O.isDOMException)(t)){if("stack"in t)i=tf(t);else{var o=t.name||((0,O.isDOMError)(t)?"DOMError":"DOMException"),s=t.message?o+": "+t.message:o;i=tv(s,e,n),(0,g.addExceptionTypeValue)(i,s)}return"code"in t&&(i.tags=(0,u.__assign)((0,u.__assign)({},i.tags),{"DOMException.code":""+t.code})),i}return(0,O.isError)(t)?tf(t):((0,O.isPlainObject)(t)||(0,O.isEvent)(t)?i=function(t,e,n){var r={exception:{values:[{type:(0,O.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,f.extractExceptionKeysForMessage)(t)}]},extra:{__serialized__:(0,P.normalizeToSize)(t)}};if(e){var i=th(e);i.length&&(r.stacktrace={frames:i})}return r}(t,e,r):(i=tv(t,e,n),(0,g.addExceptionTypeValue)(i,""+t,void 0)),(0,g.addExceptionMechanism)(i,{synthetic:!0}),i)}function tv(t,e,n){var r={message:t};if(n&&e){var i=th(e);i.length&&(r.stacktrace={frames:i})}return r}var u=a("40FTx");a("hAGPp");var V=a("cku3P"),S=a("9zNfk"),R=a("4zJ07"),u=a("40FTx");a("hAGPp");var x=a("2Rr7s"),tm=a("75Kax"),p=a("fKoIP"),d=a("cMG0z"),ty=a("elJzu"),w=a("f1zlR"),H=a("5WZdS"),tb=a("6fu3W"),tx=a("7Orq4");a("hAGPp");var x=a("2Rr7s"),V=a("cku3P"),p=a("fKoIP"),d=a("cMG0z"),tS=a("4POis"),tE=(0,x.getGlobalObject)();function tT(){if(n)return n;if((0,V.isNativeFetch)(tE.fetch))return n=tE.fetch.bind(tE);var t=tE.document,e=tE.fetch;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);var i=r.contentWindow;i&&i.fetch&&(e=i.fetch),t.head.removeChild(r)}catch(t){(0,p.isDebugBuild)()&&(0,d.logger).warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n=e.bind(tE)}function tw(t){return"event"===t?"error":t}var tO=(0,x.getGlobalObject)(),tk=function(){function t(t){var e=this;this.options=t,this._buffer=(0,tm.makePromiseBuffer)(30),this._rateLimits={},this._outcomes={},this._api=A(t.dsn,t._metadata,t.tunnel),this.url=z(this._api.dsn),this.options.sendClientReports&&tO.document&&tO.document.addEventListener("visibilitychange",function(){"hidden"===tO.document.visibilityState&&e._flushOutcomes()})}return t.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var n,r=q(e),i=t.type||"event",o="transaction"===i||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,c=s.rate;Y(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;try{n=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{n=JSON.stringify((0,P.normalize)(t))}catch(t){n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:t.message,stack:t.stack}})}}var p={body:n,type:i,url:o?G(e.dsn,e.tunnel):z(e.dsn)};if(o){var d=(0,u.__assign)((0,u.__assign)({event_id:t.event_id,sent_at:new Date().toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:(0,w.dsnToString)(e.dsn)}),l=[{type:i,sample_rates:[{id:a,rate:c}]},p.body],f=(0,H.createEnvelope)(d,[l]);p.body=(0,H.serializeEnvelope)(f)}return p}(t,this._api),t)},t.prototype.sendSession=function(t){var e,n,r,i;return this._sendRequest((e=this._api,r=(n=(0,u.__read)(U(t,e),2))[0],i=n[1],{body:(0,H.serializeEnvelope)(r),type:i,url:G(e.dsn,e.tunnel)}),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){if(this.options.sendClientReports){var n,r=tw(e)+":"+t;(0,p.isDebugBuild)()&&(0,d.logger).log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},!Object.keys(t).length){(0,p.isDebugBuild)()&&(0,d.logger).log("No outcomes to flush");return}(0,p.isDebugBuild)()&&(0,d.logger).log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=G(this._api.dsn,this._api.tunnel),n=Object.keys(t).map(function(e){var n=(0,u.__read)(e.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:t[e]}}),r=(0,ty.createClientReportEnvelope)(n,this._api.tunnel&&(0,w.dsnToString)(this._api.dsn));try{(function(t,e){if("[object Navigator]"===Object.prototype.toString.call(tE&&tE.navigator)&&"function"==typeof tE.navigator.sendBeacon)return tE.navigator.sendBeacon.bind(tE.navigator)(t,e);if((0,V.supportsFetch)()){var n=tT();(0,tS.forget)(n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}})(e,(0,H.serializeEnvelope)(r))}catch(t){(0,p.isDebugBuild)()&&(0,d.logger).error(t)}}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,o=t.reject,s=(0,tb.eventStatusFromHttpCode)(n.status);if(this._rateLimits=(0,tx.updateRateLimits)(this._rateLimits,r),this._isRateLimited(e)&&(0,p.isDebugBuild)()&&(0,d.logger).warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"===s){i({status:s});return}o(n)},t.prototype._disabledUntil=function(t){var e=tw(t);return new Date((0,tx.disabledUntil)(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=tw(t);return(0,tx.isRateLimited)(this._rateLimits,e)},t}(),tP=function(t){function e(e,n){void 0===n&&(n=tT());var r=t.call(this,e)||this;return r._fetch=n,r}return(0,u.__extends)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:(0,V.supportsReferrerPolicy)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(function(){return new S.SyncPromise(function(e,i){n._fetch(t.url,r).then(function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})}).catch(i)})}).then(void 0,function(e){throw e instanceof R.SentryError?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e})},e}(tk),u=a("40FTx");a("hAGPp");var tm=a("75Kax"),H=a("5WZdS"),tx=a("7Orq4"),S=a("9zNfk"),tb=a("6fu3W");function tR(t,e,n){void 0===n&&(n=(0,tm.makePromiseBuffer)(t.bufferSize||30));var r={};return{send:function(t){var i=(0,H.getEnvelopeType)(t),o="event"===i?"error":i,s={category:o,body:(0,H.serializeEnvelope)(t)};return(0,tx.isRateLimited)(r,o)?(0,S.rejectedSyncPromise)({status:"rate_limit",reason:tI(r,o)}):n.add(function(){return e(s).then(function(t){var e=t.body,n=t.headers,i=t.reason,s=t.statusCode,a=(0,tb.eventStatusFromHttpCode)(s);return(n&&(r=(0,tx.updateRateLimits)(r,n)),"success"===a)?(0,S.resolvedSyncPromise)({status:a,reason:i}):(0,S.rejectedSyncPromise)({status:a,reason:i||e||("rate_limit"===a?tI(r,o):"Unknown transport error")})})})},flush:function(t){return n.drain(t)}}}function tI(t,e){return"Too many "+e+" requests, backing off until: "+new Date((0,tx.disabledUntil)(t,e)).toISOString()}a("hAGPp");var S=a("9zNfk"),u=a("40FTx");a("hAGPp");var S=a("9zNfk"),R=a("4zJ07"),tD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,u.__extends)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new S.SyncPromise(function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)})}).then(void 0,function(e){throw e instanceof R.SentryError?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e})},e}(tk),tN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,u.__extends)(e,t),e.prototype.eventFromException=function(t,e){var n,r;return n=this._options.attachStacktrace,r=t_(t,e&&e.syntheticException||void 0,n),(0,g.addExceptionMechanism)(r),r.level=J.Severity.Error,e&&e.event_id&&(r.event_id=e.event_id),(0,S.resolvedSyncPromise)(r)},e.prototype.eventFromMessage=function(t,e,n){var r,i,o;return void 0===e&&(e=J.Severity.Info),r=e,i=this._options.attachStacktrace,void 0===r&&(r=J.Severity.Info),(o=tv(t,n&&n.syntheticException||void 0,i)).level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,S.resolvedSyncPromise)(o)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e,n=(0,u.__assign)((0,u.__assign)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),r=A(n.dsn,n._metadata,n.tunnel),i=G(r.dsn,r.tunnel);if(this._options.transport)return new this._options.transport(n);if((0,V.supportsFetch)()){var o,s,a=(0,u.__assign)({},n.fetchParameters);return this._newTransport=(o={requestOptions:a,url:i},void 0===s&&(s=tT()),tR({bufferSize:o.bufferSize},function(t){var e=(0,u.__assign)({body:t.body,method:"POST",referrerPolicy:"origin"},o.requestOptions);return s(o.url,e).then(function(t){return t.text().then(function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}})})})),new tP(n)}return this._newTransport=tR({bufferSize:(e={url:i,headers:n.headers}).bufferSize},function(t){return new S.SyncPromise(function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var t={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(t)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)})}),new tD(n)},e}(W),u=(a("40FTx"),a("40FTx")),c=a("8QFgb");function tC(t){for(var e=[],n=1;n"}0!==n.length&&(0,c.getCurrentHub)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&(0,E.addInstrumentationHandler)("xhr",tG),this._options.fetch&&(0,E.addInstrumentationHandler)("fetch",tH),this._options.history&&(0,E.addInstrumentationHandler)("history",tq)},t.id="Breadcrumbs",t}();function tz(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:(0,tB.severityFromString)(t.level),message:(0,_.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,_.safeJoin)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,c.getCurrentHub)().addBreadcrumb(e,{input:t.args,level:t.level})}function tG(t){if(t.endTimestamp&&!t.xhr.__sentry_own_request__){var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,i=e.status_code,o=e.body;(0,c.getCurrentHub)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:t.xhr,input:o});return}}function tH(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,c.getCurrentHub)().addBreadcrumb({category:"fetch",data:t.fetchData,level:J.Severity.Error,type:"http"},{data:t.error,input:t.args}):(0,c.getCurrentHub)().addBreadcrumb({category:"fetch",data:(0,u.__assign)((0,u.__assign)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function tq(t){var e=(0,x.getGlobalObject)(),n=t.from,r=t.to,i=(0,g.parseUrl)(e.location.href),o=(0,g.parseUrl)(n),s=(0,g.parseUrl)(r);o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,c.getCurrentHub)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var tY=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:L}],version:L},t.call(this,tN,e)||this}return(0,u.__extends)(e,t),e.prototype.showReportDialog=function(t){if(void 0===t&&(t={}),(0,x.getGlobalObject)().document){if(!this._isEnabled()){(0,p.isDebugBuild)()&&(0,d.logger).error("Trying to call showReportDialog with Sentry Client disabled");return}(function(t){if(void 0===t&&(t={}),tL.document){if(!t.eventId){(0,p.isDebugBuild)()&&(0,d.logger).error("Missing eventId option in showReportDialog call");return}if(!t.dsn){(0,p.isDebugBuild)()&&(0,d.logger).error("Missing dsn option in showReportDialog call");return}var e=tL.document.createElement("script");e.async=!0,e.src=function(t,e){var n=(0,w.makeDsn)(t),r=M(n)+"embed/error-page/",i="dsn="+(0,w.dsnToString)(n);for(var o in e)if("dsn"!==o){if("user"===o){if(!e.user)continue;e.user.name&&(i+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(i+="&email="+encodeURIComponent(e.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o])}return r+"?"+i}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=tL.document.head||tL.document.body;n&&n.appendChild(e)}})((0,u.__assign)((0,u.__assign)({},t),{dsn:t.dsn||this.getDsn()}))}},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(tF);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(C);a("hAGPp");var p=a("fKoIP"),d=a("cMG0z"),tU=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e(function(e){var r,i,o,s,a,u=n().getIntegration(t);if(u){try{if((r=u._previousEvent)&&(i=e.message,o=r.message,(i||o)&&(!i||o)&&(i||!o)&&i===o&&tW(e,r)&&tK(e,r)||(s=tJ(r),a=tJ(e),s&&a&&s.type===a.type&&s.value===a.value&&tW(e,r)&&tK(e,r))))return(0,p.isDebugBuild)()&&(0,d.logger).warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return u._previousEvent=e}return e})},t.id="Dedupe",t}();function tK(t,e){var n=tV(t),r=tV(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(var i=0;i0)&&(!c||!c.__sentry_own_request__)){var p,d,l,f=void 0===c&&(0,O.isString)(i)?(p=(0,O.isErrorEvent)(i)?i.message:i,d="Error",(l=p.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(d=l[1],p=l[2]),tZ({exception:{values:[{type:d,value:p}]}},o,s,a)):tZ(t_(c||i,void 0,r,!1),o,s,a);f.level=J.Severity.Error,t0(n,c,f,"onerror")}}})}function t$(){(0,E.addInstrumentationHandler)("unhandledrejection",function(t){var e=(0,u.__read)(t1(),2),n=e[0],r=e[1];if(n.getIntegration(tX)){var i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(tA>0||i&&i.__sentry_own_request__)return!0;var o=(0,O.isPrimitive)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:t_(i,void 0,r,!0);o.level=J.Severity.Error,t0(n,i,o,"onunhandledrejection")}})}function tZ(t,e,n,r){var i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,d=(0,O.isString)(e)&&e.length>0?e:(0,tj.getLocationHref)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:p}),t}function t0(t,e,n,r){(0,g.addExceptionMechanism)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function t1(){var t=(0,c.getCurrentHub)(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}var u=a("40FTx"),T=a("2xi4h"),c=a("8QFgb");a("hAGPp");var O=a("7hzeE"),t4=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){(0,T.addGlobalEventProcessor)(function(e,n){var r=(0,c.getCurrentHub)().getIntegration(t);return r?function(t,e,n,r){if(!n.exception||!n.exception.values||!r||!(0,O.isInstanceOf)(r.originalException,Error))return n;var i=function t(e,n,r,i){if(void 0===i&&(i=[]),!(0,O.isInstanceOf)(n[r],Error)||i.length+1>=e)return i;var o=tl(n[r]);return t(e,n[r],r,(0,u.__spread)([o],i))}(e,r.originalException,t);return n.exception.values=(0,u.__spread)(i,n.exception.values),n}(r._key,r._limit,e,n):e})},t.id="LinkedErrors",t}(),u=a("40FTx");a("hAGPp");var x=a("2Rr7s"),f=a("6YYlL"),X=a("6lmzj"),t3=["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"],t7=function(){function t(e){this.name=t.id,this._options=(0,u.__assign)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,x.getGlobalObject)();this._options.setTimeout&&(0,f.fill)(t,"setTimeout",t2),this._options.setInterval&&(0,f.fill)(t,"setInterval",t2),this._options.requestAnimationFrame&&(0,f.fill)(t,"requestAnimationFrame",t6),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,f.fill)(XMLHttpRequest.prototype,"send",t9);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:t3).forEach(t5)},t.id="TryCatch",t}();function t2(t){return function(){for(var e=[],n=0;n=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}},ed=function(t,e){return{name:t,value:null!=e?e:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)}},el=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(t){return t.getEntries().map(e)});return n.observe({type:t,buffered:!0}),n}}catch(t){}};a("hAGPp");var x=a("2Rr7s"),ef=function(t,e){var n=function(r){("pagehide"===r.type||"hidden"===(0,x.getGlobalObject)().document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},eh=function(t,e){var n,r=ed("CLS",0),i=0,o=[],s=function(t){if(t&&!t.hadRecentInput){var e=o[0],s=o[o.length-1];i&&0!==o.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},a=el("layout-shift",s);a&&(n=ep(t,r,e),ef(function(){a.takeRecords().map(s),n(!0)}))};a("hAGPp");var x=a("2Rr7s"),eg=-1,e_=function(){ef(function(t){eg=t.timeStamp},!0)},ev=function(){return eg<0&&(eg="hidden"===(0,x.getGlobalObject)().document.visibilityState?0:1/0,e_()),{get firstHiddenTime(){return eg}}},em=function(t,e){var n,r=ev(),i=ed("FID"),o=function(t){n&&t.startTime=t.startTimestamp)){var n=r._measurements[e].value,i=Math.abs((a+(0,es.msToSec)(n)-t.startTimestamp)*1e3),o=i-n;(0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Normalized "+e+" from "+n+" to "+i+" ("+o+")"),r._measurements[e].value=i}}),this._measurements["mark.fid"]&&this._measurements.fid&&eT(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,es.msToSec)(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),o=this._lcpEntry,s=this._clsEntry,o&&((0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Adding LCP Data"),o.element&&t.setTag("lcp.element",(0,tj.htmlTreeAsString)(o.element)),o.id&&t.setTag("lcp.id",o.id),o.url&&t.setTag("lcp.url",o.url.trim().slice(0,200)),t.setTag("lcp.size",o.size)),s&&s.sources&&((0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Adding CLS Data"),s.sources.forEach(function(e,n){return t.setTag("cls.source."+(n+1),(0,tj.htmlTreeAsString)(e.node))})),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(t){var e=ex.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),ew(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),ew(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),ew(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),ew(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackCLS=function(){var t=this;eh(function(e){var n=e.entries.pop();n&&((0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value},t._clsEntry=n)})},t.prototype._trackLCP=function(){var t=this;eb(function(e){var n=e.entries.pop();if(n){var r=(0,es.msToSec)(k.browserPerformanceTimeOrigin),i=(0,es.msToSec)(n.startTime);(0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i},t._lcpEntry=n}},this._reportAllChanges)},t.prototype._trackFID=function(){var t=this;em(function(e){var n=e.entries.pop();if(n){var r=(0,es.msToSec)(k.browserPerformanceTimeOrigin),i=(0,es.msToSec)(n.startTime);(0,p.isDebugBuild)()&&(0,d.logger).log("[Measurements] Adding FID"),t._measurements.fid={value:e.value},t._measurements["mark.fid"]={value:r+i}}})},t}();function eE(t,e,n,r,i,o){var s=o?e[o]:e[n+"End"],a=e[n+"Start"];a&&s&&eT(t,{op:"browser",description:null!=i?i:n,startTimestamp:r+(0,es.msToSec)(a),endTimestamp:r+(0,es.msToSec)(s)})}function eT(t,e){var n=e.startTimestamp,r=(0,u.__rest)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,u.__assign)({startTimestamp:n},r))}function ew(t){return"number"==typeof t&&isFinite(t)}var u=a("40FTx");a("hAGPp");var _=a("eVv3E"),E=a("cfKCP"),O=a("7hzeE"),es=a("llVx8"),eO={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};a("hAGPp");var x=a("2Rr7s"),p=a("fKoIP"),d=a("cMG0z"),E=a("cfKCP"),ek=(0,x.getGlobalObject)(),eP=(0,u.__assign)({idleTimeout:ei.DEFAULT_IDLE_TIMEOUT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),!ek||!ek.location){(0,p.isDebugBuild)()&&(0,d.logger).warn("Could not initialize routing instrumentation due to invalid location");return}var r,i=ek.location.href;e&&(r=t({name:ek.location.pathname,op:"pageload"})),n&&(0,E.addInstrumentationHandler)("history",function(e){var n=e.to,o=e.from;if(void 0===o&&i&&-1!==i.indexOf(n)){i=void 0;return}o!==n&&(i=void 0,r&&((0,p.isDebugBuild)()&&(0,d.logger).log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:ek.location.pathname,op:"navigation"}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},eO),eR=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=eO.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:(0,p.isDebugBuild)()&&(this._emitOptionsWarning=!0)),this.options=(0,u.__assign)((0,u.__assign)((0,u.__assign)({},eP),e),{tracingOrigins:n});var r=this.options._metricOptions;this._metrics=new eS(r&&r._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n,r,i,o,s,a,c,l,f,h=this;this._getCurrentHub=e,this._emitOptionsWarning&&((0,p.isDebugBuild)()&&(0,d.logger).warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),(0,p.isDebugBuild)()&&(0,d.logger).warn("[Tracing] We added a reasonable default for you: "+eO.tracingOrigins));var g=this.options,v=g.routingInstrumentation,m=g.startTransactionOnLocationChange,y=g.startTransactionOnPageLoad,b=g.markBackgroundTransactions,x=g.traceFetch,S=g.traceXHR,T=g.tracingOrigins,w=g.shouldCreateSpanForRequest;v(function(t){return h._createRouteTransaction(t)},y,m),b&&(eu&&eu.document?eu.document.addEventListener("visibilitychange",function(){var t=(0,es.getActiveTransaction)();if(eu.document.hidden&&t){var e="cancelled";(0,p.isDebugBuild)()&&(0,d.logger).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(ea.FINISH_REASON_TAG,ea.IDLE_TRANSACTION_FINISH_REASONS[2]),t.finish()}}):(0,p.isDebugBuild)()&&(0,d.logger).warn("[Tracing] Could not set up background tab detection due to lack of global document")),r=(n=(0,u.__assign)((0,u.__assign)({},eO),{traceFetch:x,traceXHR:S,tracingOrigins:T,shouldCreateSpanForRequest:w})).traceFetch,i=n.traceXHR,o=n.tracingOrigins,s=n.shouldCreateSpanForRequest,a={},l=c=function(t){return a[t]||(a[t]=o.some(function(e){return(0,_.isMatchingPattern)(t,e)})&&!(0,_.isMatchingPattern)(t,"sentry_key")),a[t]},"function"==typeof s&&(l=function(t){return c(t)&&s(t)}),f={},r&&(0,E.addInstrumentationHandler)("fetch",function(t){(function(t,e,n){if((0,es.hasTracingEnabled)()&&t.fetchData&&e(t.fetchData.url)){if(t.endTimestamp){var r=t.fetchData.__span;if(!r)return;var i=n[r];i&&(t.response?i.setHttpStatus(t.response.status):t.error&&i.setStatus("internal_error"),i.finish(),delete n[r]);return}var o=(0,es.getActiveTransaction)();if(o){var i=o.startChild({data:(0,u.__assign)((0,u.__assign)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=i.spanId,n[i.spanId]=i;var s=t.args[0]=t.args[0],a=t.args[1]=t.args[1]||{},c=a.headers;(0,O.isInstanceOf)(s,Request)&&(c=s.headers),c?"function"==typeof c.append?c.append("sentry-trace",i.toTraceparent()):c=Array.isArray(c)?(0,u.__spread)(c,[["sentry-trace",i.toTraceparent()]]):(0,u.__assign)((0,u.__assign)({},c),{"sentry-trace":i.toTraceparent()}):c={"sentry-trace":i.toTraceparent()},a.headers=c}}})(t,l,f)}),i&&(0,E.addInstrumentationHandler)("xhr",function(t){(function(t,e,n){if((0,es.hasTracingEnabled)()&&(!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 i=t.xhr.__sentry_xhr_span_id__;if(!i)return;var o=n[i];o&&(o.setHttpStatus(r.status_code),o.finish(),delete n[i]);return}var s=(0,es.getActiveTransaction)();if(s){var o=s.startChild({data:(0,u.__assign)((0,u.__assign)({},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(t){}}}})(t,l,f)})},t.prototype._createRouteTransaction=function(t){var e=this;if(!this._getCurrentHub){(0,p.isDebugBuild)()&&(0,d.logger).warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===t.op?function(){var t,e=(t=(0,x.getGlobalObject)().document.querySelector("meta[name=sentry-trace]"))?t.getAttribute("content"):null;if(e)return(0,eo.extractTraceparentData)(e)}():void 0,a=(0,u.__assign)((0,u.__assign)((0,u.__assign)({},t),s),{trimEnd:!0}),c="function"==typeof r?r(a):a,l=void 0===c?(0,u.__assign)((0,u.__assign)({},a),{sampled:!1}):c;!1===l.sampled&&(0,p.isDebugBuild)()&&(0,d.logger).log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),(0,p.isDebugBuild)()&&(0,d.logger).log("[Tracing] Starting "+l.op+" transaction on scope");var f=this._getCurrentHub(),h=(0,x.getGlobalObject)().location,g=(0,er.startIdleTransaction)(f,l,i,!0,{location:h});return g.registerBeforeFinishCallback(function(t,n){var r,i;e._metrics.addPerformanceEntries(t),r=(0,es.secToMs)(o),i=n-t.startTimestamp,n&&(i>r||i<0)&&(t.setStatus("deadline_exceeded"),t.setTag("maxTransactionDurationExceeded","true"))}),g.setTag("idleTimeout",this._configuredIdleTimeout),g},t.id="BrowserTracing",t}();function eI(){[].slice.call(document.querySelectorAll(".toast")).map(function(t){toastObj=new bootstrap.Toast(t),t.addEventListener("hidden.bs.toast",function(){t.remove()}),toastObj.show()})}function eD(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n='');$(".toast-container").append(n),eI()}(0,er.addExtensionMethods)(),$(document).ready(function(){eI(),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(t){return new bootstrap.Tooltip(t)})}),function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=ee),void 0===t.release){var e,n,r,i,o=(0,x.getGlobalObject)();o.SENTRY_RELEASE&&o.SENTRY_RELEASE.id&&(t.release=o.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),!0===(e=t).debug&&((0,p.isDebugBuild)()?(0,d.logger).enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")),(r=(n=(0,c.getCurrentHub)()).getScope())&&r.update(e.initialScope),i=new tY(e),n.bindClient(i),t.autoSessionTracking&&function(){if(void 0===(0,x.getGlobalObject)().document){(0,p.isDebugBuild)()&&(0,d.logger).warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}var t=(0,c.getCurrentHub)();t.captureSession&&(en(t),(0,E.addInstrumentationHandler)("history",function(t){var e=t.from,n=t.to;void 0===e||e===n||en((0,c.getCurrentHub)())}))}()}({dsn:"https://d7444431e1e74dba84fd297e4bb7a4d0@o441797.ingest.sentry.io/6312315",release:void 0,integrations:[new eR],tracesSampleRate:1});var eN=document.querySelector(".pageclip-form");Pageclip.form(eN,{onResponse:function(t,e){return null!=e&&"ok"==e.data?(eD("Your message has been sent.","text-light bg-success"),setTimeout(function(){eD("Redirecting home...")},3e3),setTimeout(function(){window.location.replace("/")},4e3)):null!=t?eD("Your message failed to send. "+t.toString(),"bg-warning"):eD("Your message failed to send. An unknown error occurred.","bg-warning"),!1}})}();