1var t=Object.prototype.toString;function isError(e){switch(t.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return isInstanceOf(e,Error)}}function isBuiltin(e,n){return t.call(e)===`[object ${n}]`}function isErrorEvent(t){return isBuiltin(t,"ErrorEvent")}function isDOMError(t){return isBuiltin(t,"DOMError")}function isDOMException(t){return isBuiltin(t,"DOMException")}function isString(t){return isBuiltin(t,"String")}function isParameterizedString(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function isPrimitive(t){return null===t||isParameterizedString(t)||"object"!=typeof t&&"function"!=typeof t}function isPlainObject(t){return isBuiltin(t,"Object")}function isEvent(t){return"undefined"!=typeof Event&&isInstanceOf(t,Event)}function isThenable(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function isInstanceOf(t,e){try{return t instanceof e}catch(n){return!1}}function isVueViewModel(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}function truncate(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function safeJoin(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const e=t[r];try{isVueViewModel(e)?n.push("[VueViewModel]"):n.push(String(e))}catch(s){n.push("[value cannot be serialized]")}}return n.join(e)}function isMatchingPattern(t,e,n=!1){return!!isString(t)&&(function isRegExp(t){return isBuiltin(t,"RegExp")}(e)?e.test(t):!!isString(e)&&(n?t===e:t.includes(e)))}function stringMatchesSomePattern(t,e=[],n=!1){return e.some(e=>isMatchingPattern(t,e,n))}function isGlobalObj(t){return t&&t.Math==Math?t:void 0}var e="object"==typeof globalThis&&isGlobalObj(globalThis)||"object"==typeof window&&isGlobalObj(window)||"object"==typeof self&&isGlobalObj(self)||"object"==typeof global&&isGlobalObj(global)||function(){return this}()||{};function getGlobalObject(){return e}function getGlobalSingleton(t,n,s){const r=s||e,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}var n=getGlobalObject();function htmlTreeAsString(t,e={}){if(!t)return"<unknown>";try{let n=t;const s=5,r=[];let i=0,o=0;const a=" > ",c=3;let u;const p=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<s&&(u=_htmlElementAsString(n,p),!("html"===u||i>1&&o+r.length*c+u.length>=l));)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(a)}catch(n){return"<unknown>"}}function _htmlElementAsString(t,e){const s=t,r=[];let i,o,a,c,u;if(!s||!s.tagName)return"";if(n.HTMLElement&&s instanceof HTMLElement&&s.dataset&&s.dataset.sentryComponent)return s.dataset.sentryComponent;r.push(s.tagName.toLowerCase());const p=e&&e.length?e.filter(t=>s.getAttribute(t)).map(t=>[t,s.getAttribute(t)]):null;if(p&&p.length)p.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else if(s.id&&r.push(`#${s.id}`),i=s.className,i&&isString(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);const l=["aria-label","type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],c=s.getAttribute(a),c&&r.push(`[${a}="${c}"]`);return r.join("")}function getLocationHref(){try{return n.document.location.href}catch(t){return""}}function getComponentName(t){if(!n.HTMLElement)return null;let e=t;for(let n=0;n<5;n++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}var s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,r=["debug","info","warn","error","log","assert","trace"],i={};function consoleSandbox(t){if(!("console"in e))return t();const n=e.console,s={},r=Object.keys(i);r.forEach(t=>{const e=i[t];s[t]=n[t],n[t]=e});try{return t()}finally{r.forEach(t=>{n[t]=s[t]})}}var o=function makeLogger(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return s?r.forEach(s=>{n[s]=(...n)=>{t&&consoleSandbox(()=>{e.console[s](`Sentry Logger [${s}]:`,...n)})}}):r.forEach(t=>{n[t]=()=>{}}),n}();function fill(t,e,n){if(!(e in t))return;const s=t[e],r=n(s);"function"==typeof r&&markFunctionWrapped(r,s),t[e]=r}function addNonEnumerableProperty(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){s&&o.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function markFunctionWrapped(t,e){try{t.prototype=e.prototype=e.prototype||{},addNonEnumerableProperty(t,"__sentry_original__",e)}catch(n){}}function getOriginalFunction(t){return t.__sentry_original__}function urlEncode(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function convertToPlainObject(t){if(isError(t))return{message:t.message,name:t.name,stack:t.stack,...getOwnProperties(t)};if(isEvent(t)){const e={type:t.type,target:serializeEventTarget(t.target),currentTarget:serializeEventTarget(t.currentTarget),...getOwnProperties(t)};return"undefined"!=typeof CustomEvent&&isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}return t}function serializeEventTarget(t){try{return function isElement(t){return"undefined"!=typeof Element&&isInstanceOf(t,Element)}(t)?htmlTreeAsString(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function getOwnProperties(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function extractExceptionKeysForMessage(t,e=40){const n=Object.keys(convertToPlainObject(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return truncate(n[0],e);for(let s=n.length;s>0;s--){const t=n.slice(0,s).join(", ");
1if(!(t.length>e))return s===n.length?t:truncate(t,e)}return""}function dropUndefinedKeys(t){return _dropUndefinedKeys(t,new Map)}function _dropUndefinedKeys(t,e){if(function isPojo(t){if(!isPlainObject(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(e){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const s={};e.set(t,s);for(const r of Object.keys(t))void 0!==t[r]&&(s[r]=_dropUndefinedKeys(t[r],e));return s}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const s=[];return e.set(t,s),t.forEach(t=>{s.push(_dropUndefinedKeys(t,e))}),s}return t}var a=/\(error: (.*)\)/,c=/captureMessage|captureException/;function createStackParser(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{const s=[],r=t.split("\n");for(let i=n;i<r.length;i++){const t=r[i];if(t.length>1024)continue;const n=a.test(t)?t.replace(a,"$1"):t;if(!n.match(/\S*Error: /)){for(const t of e){const e=t(n);if(e){s.push(e);break}}if(s.length>=50)break}}return function stripSentryFramesAndReverse(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),c.test(e[e.length-1].function||"")&&(e.pop(),c.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(s)}}function stackParserFromStackParserOptions(t){return Array.isArray(t)?createStackParser(...t):t}var u,p="<anonymous>";function getFunctionName(t){try{return t&&"function"==typeof t&&t.name||p}catch(e){return p}}function uuid4(){const t=e,n=t.crypto||t.msCrypto;let getRandomByte=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(getRandomByte=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(s){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&getRandomByte())>>t/4).toString(16))}function getFirstException(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function getEventDescription(t){const{message:e,event_id:n}=t;if(e)return e;const s=getFirstException(t);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function addExceptionTypeValue(t,e,n){const s=t.exception=t.exception||{},r=s.values=s.values||[],i=r[0]=r[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function addExceptionMechanism(t,e){const n=getFirstException(t);if(!n)return;const s=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...s,...e},e&&"data"in e){const t={...s&&s.data,...e.data};n.mechanism.data=t}}function checkOrSetAlreadyCaught(t){if(t&&t.__sentry_captured__)return!0;try{addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch(e){}return!1}function arrayify(t){return Array.isArray(t)?t:[t]}function normalize(t,e=100,n=1/0){try{return visit("",t,e,n)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function normalizeToSize(t,e=3,n=102400){const s=normalize(t,e);return function jsonSize(t){return function utf8Length(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(s)>n?normalizeToSize(t,e-1,n):s}function visit(t,e,n=1/0,s=1/0,r=function memoBuilder(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function memoize(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function unmemoize(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[i,o]=r;if(null==e||["number","boolean","string"].includes(typeof e)&&!function isNaN$1(t){return"number"==typeof t&&t!=t}(e))return e;const a=function stringifyValue(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(isVueViewModel(e))return"[VueViewModel]";if(function isSyntheticEvent(t){return isPlainObject(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${getFunctionName(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function getConstructorName(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}(t,e);if(!a.startsWith("[object "))return a;
1if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return visit("",u.toJSON(),c-1,s,r)}catch(g){}const p=Array.isArray(e)?[]:{};let l=0;const d=convertToPlainObject(e);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(l>=s){p[h]="[MaxProperties ~]";break}const t=d[h];p[h]=visit(h,t,c-1,s,r),l++}return o(e),p}function resolvedSyncPromise(t){return new l(e=>{e(t)})}function rejectedSyncPromise(t){return new l((e,n)=>{n(t)})}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(u||(u={}));var l=class SyncPromise{constructor(t){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=u.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new SyncPromise((n,s)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(r){s(r)}else n(e)},t=>{if(e)try{n(e(t))}catch(r){s(r)}else s(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}
1finally(t){return new SyncPromise((e,n)=>{let s,r;return this.then(e=>{r=!1,s=e,t&&t()},e=>{r=!0,s=e,t&&t()}).then(()=>{r?n(s):e(s)})})}__init(){this._resolve=t=>{this._setResult(u.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(u.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===u.PENDING&&(isThenable(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===u.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===u.RESOLVED&&t[1](this._value),this._state===u.REJECTED&&t[2](this._value),t[0]=!0)})}}};function dateTimestampInSeconds(){return Date.now()/1e3}var d=function createUnixTimestampInSecondsFunc(){const{performance:t}=e;if(!t||!t.now)return dateTimestampInSeconds;const n=Date.now()-t.now(),s=null==t.timeOrigin?n:t.timeOrigin;return()=>(s+t.now())/1e3}(),g=((()=>{const{performance:t}=e;if(!t||!t.now)return void 0;const n=36e5,s=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+s-r):n,o=i<n,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+s-r):n;(o||c<n)&&(i<=c&&t.timeOrigin)})(),"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__),h="production";function getGlobalEventProcessors(){return getGlobalSingleton("globalEventProcessors",()=>[])}function addGlobalEventProcessor(t){getGlobalEventProcessors().push(t)}function notifyEventProcessors(t,e,n,s=0){return new l((r,i)=>{const a=t[s];if(null===e||"function"!=typeof a)r(e);else{const c=a({...e},n);g&&a.id&&null===c&&o.log(`Event processor "${a.id}" dropped event`),isThenable(c)?c.then(e=>notifyEventProcessors(t,e,n,s+1).then(r)).then(null,i):notifyEventProcessors(t,c,n,s+1).then(r).then(null,i)}})}function makeSession(t){const e=d(),n={sid:uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function sessionToJSON(t){return dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&updateSession(n,t),n}function updateSession(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||d(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:uuid4()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function closeSession(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),updateSession(t,n)}function spanToTraceContext(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:r,parent_span_id:i,status:o,tags:a,origin:c}=spanToJSON(t);return dropUndefinedKeys({data:s,op:r,parent_span_id:i,span_id:e,status:o,tags:a,trace_id:n,origin:c})}function spanToJSON(t){return function spanIsSpanClass(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function prepareEvent(t,n,s,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...n,event_id:n.event_id||s.event_id||uuid4(),timestamp:n.timestamp||dateTimestampInSeconds()},p=s.integrations||t.integrations.map(t=>t.name);!function applyClientOptions(t,e){const{environment:n,release:s,dist:r,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:h);void 0===t.release&&void 0!==s&&(t.release=s);void 0===t.dist&&void 0!==r&&(t.dist=r);t.message&&(t.message=truncate(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=truncate(o.value,i));const a=t.request;
1a&&a.url&&(a.url=truncate(a.url,i))}(u,t),function applyIntegrationsMetadata(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,p),void 0===n.type&&function applyDebugIds(t,n){const s=e._sentryDebugIds;if(!s)return;let r;const i=f.get(n);i?r=i:(r=new Map,f.set(n,r));const o=Object.keys(s).reduce((t,e)=>{let i;const o=r.get(e);o?i=o:(i=n(e),r.set(e,i));for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.filename){t[r.filename]=s[e];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}catch(a){}}(u,t.stackParser);const l=function getFinalScope(t,e){if(!e)return t;const n=t?t.clone():new S;return n.update(e),n}(r,s.captureContext);s.mechanism&&addExceptionMechanism(u,s.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],g=function getGlobalScope(){m||(m=new S);return m}().getScopeData();o&&mergeScopeData(g,o.getScopeData()),l&&mergeScopeData(g,l.getScopeData());const _=[...s.attachments||[],...g.attachments];return _.length&&(s.attachments=_),applyScopeDataToEvent(u,g),notifyEventProcessors([...d,...getGlobalEventProcessors(),...g.eventProcessors],u,s).then(t=>(t&&function applyDebugMeta(t){const e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(s){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}(t),"number"==typeof a&&a>0?function normalizeEvent(t,e,n){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:normalize(t.data,e,n)}}))},...t.user&&{user:normalize(t.user,e,n)},...t.contexts&&{contexts:normalize(t.contexts,e,n)},...t.extra&&{extra:normalize(t.extra,e,n)}};t.contexts&&t.contexts.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=normalize(t.contexts.trace.data,e,n)));t.spans&&(s.spans=t.spans.map(t=>{const s=spanToJSON(t).data;return s&&(t.data=normalize(s,e,n)),t}));return s}(t,a,c):t))}var f=new WeakMap;function parseEventHintOrCaptureContext(t){if(t)return function hintIsScopeOrFunction(t){return t instanceof S||"function"==typeof t}(t)||function hintIsScopeContext(t){return Object.keys(t).some(t=>_.includes(t))}(t)?{captureContext:t}:t}var _=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,e){return getCurrentHub().captureException(t,parseEventHintOrCaptureContext(e))}function captureMessage(t,e){const n="string"==typeof e?e:void 0,s="string"!=typeof e?{captureContext:e}:void 0;return getCurrentHub().captureMessage(t,n,s)}function captureEvent(t,e){return getCurrentHub().captureEvent(t,e)}function configureScope(t){getCurrentHub().configureScope(t)}function addBreadcrumb(t,e){getCurrentHub().addBreadcrumb(t,e)}function setContext(t,e){getCurrentHub().setContext(t,e)}function setTag(t,e){getCurrentHub().setTag(t,e)}function withScope(...t){const e=getCurrentHub();if(2===t.length){const[n,s]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,s(n))):e.withScope(s)}return e.withScope(t[0])}function getClient(){return getCurrentHub().getClient()}function getCurrentScope(){return getCurrentHub().getScope()}function startSession(t){const n=getClient(),s=getIsolationScope(),r=getCurrentScope(),{release:i,environment:o=h}=n&&n.getOptions()||{},{userAgent:a}=e.navigator||{},c=makeSession({release:i,environment:o,user:r.getUser()||s.getUser(),...a&&{userAgent:a},...t}),u=s.getSession();return u&&"ok"===u.status&&updateSession(u,{status:"exited"}),endSession(),s.setSession(c),r.setSession(c),c}function endSession(){const t=getIsolationScope(),e=getCurrentScope(),n=e.getSession()||t.getSession();n&&closeSession(n),_sendSessionUpdate(),t.setSession(),e.setSession()}function _sendSessionUpdate(){const t=getIsolationScope(),e=getCurrentScope(),n=getClient(),s=e.getSession()||t.getSession();s&&n&&n.captureSession&&n.captureSession(s)}function captureSession(t=!1){t?endSession():_sendSessionUpdate()}function getRootSpan(t){return t.transaction}function getDynamicSamplingContextFromClient(t,e,n){const s=e.getOptions(),{publicKey:r}=e.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=dropUndefinedKeys({environment:s.environment||"production",release:s.release,user_segment:i,public_key:r,trace_id:t});return e.emit&&e.emit("createDsc",o),o}function getDynamicSamplingContextFromSpan(t){const e=getClient();if(!e)return{};const n=getDynamicSamplingContextFromClient(spanToJSON(t).trace_id||"",e,getCurrentScope()),s=getRootSpan(t);
1if(!s)return n;const r=s&&s._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:i,source:o}=s.metadata;null!=i&&(n.sample_rate=`${i}`);const a=spanToJSON(s);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(function spanIsSampled(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}(s)),e.emit&&e.emit("createDsc",n),n}function applyScopeDataToEvent(t,e){const{fingerprint:n,span:s,breadcrumbs:r,sdkProcessingMetadata:i}=e;!function applyDataToEvent(t,e){const{extra:n,tags:s,user:r,contexts:i,level:o,transactionName:a}=e,c=dropUndefinedKeys(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=dropUndefinedKeys(s);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const p=dropUndefinedKeys(r);p&&Object.keys(p).length&&(t.user={...p,...t.user});const l=dropUndefinedKeys(i);l&&Object.keys(l).length&&(t.contexts={...l,...t.contexts});o&&(t.level=o);a&&(t.transaction=a)}(t,e),s&&function applySpanToEvent(t,e){t.contexts={trace:spanToTraceContext(e),...t.contexts};const n=getRootSpan(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};const s=spanToJSON(n).description;s&&(t.tags={transaction:s,...t.tags})}}(t,s),function applyFingerprintToEvent(t,e){t.fingerprint=t.fingerprint?arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function applyBreadcrumbsToEvent(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,r),function applySdkMetadataToEvent(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function mergeScopeData(t,e){const{extra:n,tags:s,user:r,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:l,propagationContext:d,transactionName:g,span:h}=e;mergeAndOverwriteScopeData(t,"extra",n),mergeAndOverwriteScopeData(t,"tags",s),mergeAndOverwriteScopeData(t,"user",r),mergeAndOverwriteScopeData(t,"contexts",i),mergeAndOverwriteScopeData(t,"sdkProcessingMetadata",a),o&&(t.level=o),g&&(t.transactionName=g),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function mergeAndOverwriteScopeData(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[e][s]=n[s])}}var m,S=class Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}static clone(t){return t?t.clone():new Scope}clone(){const t=new Scope;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&updateSession(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof Scope){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(isPlainObject(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...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),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){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._attachments=[],this._propagationContext=generatePropagationContext(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const s={timestamp:dateTimestampInSeconds(),...t},r=this._breadcrumbs;return r.push(s),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}
1getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:s,_extra:r,_user:i,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:p,_transactionName:l,_span:d}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:s,extra:r,user:i,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:p,transactionName:l,span:d}}applyToEvent(t,e={},n=[]){return applyScopeDataToEvent(t,this.getScopeData()),notifyEventProcessors([...n,...getGlobalEventProcessors(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:uuid4();if(!this._client)return o.warn("No client configured on scope - will not capture exception!"),n;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...e,event_id:n},this),n}captureMessage(t,e,n){const s=n&&n.event_id?n.event_id:uuid4();if(!this._client)return o.warn("No client configured on scope - will not capture message!"),s;const r=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:s},this),s}captureEvent(t,e){const n=e&&e.event_id?e.event_id:uuid4();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(o.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function generatePropagationContext(){return{traceId:uuid4(),spanId:uuid4().substring(16)}}var y="7.120.3",b=parseFloat(y),v=100,E=class{constructor(t,e,n,s=b){let r,i;this._version=s,e?r=e:(r=new S,r.setClient(t)),n?i=n:(i=new S,i.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=i}isOlderThan(t){return this._version<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(s){throw this.popScope(),s}return isThenable(n)?n.then(t=>(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:uuid4(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...e,event_id:n}),n}captureMessage(t,e,n){const s=this._lastEventId=n&&n.event_id?n.event_id:uuid4(),r=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:s}),s}captureEvent(t,e){const n=e&&e.event_id?e.event_id:uuid4();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=v}=s.getOptions&&s.getOptions()||{};if(i<=0)return;const o={timestamp:dateTimestampInSeconds(),...t},a=r?consoleSandbox(()=>r(o,e)):o;null!==a&&(s.emit&&s.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,i))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}
1setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=makeMain(this);try{t(this)}finally{makeMain(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return g&&o.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return g&&!n&&(this.getClient()?o.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):o.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&closeSession(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:n,client:s}=this.getStackTop(),{release:r,environment:i=h}=s&&s.getOptions()||{},{userAgent:o}=e.navigator||{},a=makeSession({release:r,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&updateSession(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=getMainCarrier().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);g&&o.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function getMainCarrier(){return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function makeMain(t){const e=getMainCarrier(),n=getHubFromCarrier(e);return setHubOnCarrier(e,t),n}function getCurrentHub(){const t=getMainCarrier();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function getGlobalHub(t=getMainCarrier()){(function hasHubOnCarrier(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)})(t)&&!getHubFromCarrier(t).isOlderThan(b)||setHubOnCarrier(t,new E);return getHubFromCarrier(t)}(t)}function getIsolationScope(){return getCurrentHub().getIsolationScope()}function getHubFromCarrier(t){return getGlobalSingleton("hub",()=>new E,t)}function setHubOnCarrier(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}export{safeJoin as $,checkOrSetAlreadyCaught as A,getOriginalFunction as B,rejectedSyncPromise as C,addExceptionMechanism as D,normalizeToSize as E,stackParserFromStackParserOptions as F,o as G,urlEncode as H,addNonEnumerableProperty as I,getComponentName as J,i as K,dropUndefinedKeys as L,uuid4 as M,createStackParser as N,addExceptionTypeValue as O,getFunctionName as P,getGlobalObject as Q,extractExceptionKeysForMessage as R,l as S,normalize as T,r as U,markFunctionWrapped as V,consoleSandbox as W,htmlTreeAsString as X,getLocationHref as Y,e as Z,prepareEvent as _,addBreadcrumb as a,isErrorEvent as at,g as b,captureMessage as c,isParameterizedString as ct,getClient as d,isString as dt,stringMatchesSomePattern as et,getCurrentScope as f,isThenable as ft,withScope as g,startSession as h,getDynamicSamplingContextFromClient as i,isError as it,getEventDescription as j,arrayify as k,captureSession as l,isPlainObject as lt,setTag as m,getIsolationScope as n,isDOMError as nt,captureEvent as o,isEvent as ot,setContext as p,s as q,y as r,isDOMException as rt,captureException as s,isInstanceOf as st,getCurrentHub as t,truncate as tt,configureScope as u,isPrimitive as ut,updateSession as v,resolvedSyncPromise as w,dateTimestampInSeconds as x,addGlobalEventProcessor as y,fill as z}; 2//# sourceMappingURL=chunk-103669-1-81-19.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.