PageSourceSearch

https://au.lightforce.com/cdn/shop/t/2/assets/error-tracking-entry.js?v=47072745526602867771786067005

js lightforce.com collected 2026-10-04 05:36:00 UTC 151,178 bytes, 1 lines download raw bytes

1!function(){var e,t,n,r,a,i,o,s,c,u,l,d,p,f,v,h,m,g,y,_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){b(e,t,n[t])})}return e}function k(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}}function T(e){return function(e){if(Array.isArray(e))return E(e)}(e)||w(e)||x(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function O(e){if(Array.isArray(e))return e}function P(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e,t){return O(e)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return i}}(e,t)||x(e,t)||P()}var C="9.34.0",R=globalThis;function D(){return L(R),R}function L(e){var t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||C,t[C]=t[C]||{}}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,r=n.__SENTRY__=n.__SENTRY__||{},a=r[C]=r[C]||{};return a[e]||(a[e]=t())}function j(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function F(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var q=Object.prototype.toString;function B(e){switch(q.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function H(e,t){return q.call(e)==="[object ".concat(t,"]")}function z(e){return H(e,"ErrorEvent")}function W(e){return H(e,"DOMError")}function J(e){return H(e,"String")}function G(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function V(e){return null===e||G(e)||"object"!=typeof e&&"function"!=typeof e}function $(e){return H(e,"Object")}function Y(e){return"undefined"!=typeof Event&&K(e,Event)}function X(e){return!!((null==e?void 0:e.then)&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch(e){return!1}}function Z(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function Q(e){return"undefined"!=typeof Request&&K(e,Request)}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{for(var n,r=e,a=[],i=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;r&&i++<5&&(n=function(e,t){var n=[];if(!(null==e?void 0:e.tagName))return"";if(R.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());var r=(null==t?void 0:t.length)?t.filter(function(t){return e.getAttribute(t)}).map(function(t){return[t,e.getAttribute(t)]}):null;if(null==r?void 0:r.length)r.forEach(function(e){n.push("[".concat(e[0],'="').concat(e[1],'"]'))});else{e.id&&n.push("#".concat(e.id));var a=e.className;if(a&&J(a)){var i=a.split(/\s+/),o=!0,s=!1,c=void 0;try{for(var u,l=i[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=u.value;n.push(".".concat(d))}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}}}var p=!0,f=!1,v=void 0;try{for(var h,m=["aria-label","type","name","title","alt"][Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var g=h.value,y=e.getAttribute(g);y&&n.push("[".concat(g,'="').concat(y,'"]'))}}catch(e){f=!0,v=e}finally{try{p||null==m.return||m.return()}finally{if(f)throw v}}return n.join("")}(r,s),"html"!==n&&(!(i>1)||!(o+3*a.length+n.length>=c)));)a.push(n),o+=n.length,r=r.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function et(){try{return R.document.location.href}catch(e){return""}}function en(e){if(!R.HTMLElement)return null;for(var t=e,n=0;n<5&&t;n++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var er=["debug","info","warn","error","log","assert","trace"],ea={};function ei(e){if(!("console"in R))return e();var t=R.console,n={},r=Object.keys(ea);r.forEach(function(e){var r=ea[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(function(e){t[e]=n[e]})}}var eo=N("logger",function(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1},isEnabled:function(){return e}};return I?er.forEach(function(n){t[n]=function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];e&&ei(function(){var e;(e=R.console)[n].apply(e,["".concat("Sentry Logger ","[").concat(n,"]:")].concat(T(r)))})}}):er.forEach(function(e){t[e]=function(){}}),t});function es(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t?e:e.length<=t?e:"".concat(e.slice(0,t),"...")}function ec(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var a=e[r];try{Z(a)?n.push("[VueViewModel]"):n.push(String(a))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some(function(t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!J(e)&&(H(t,"RegExp")?t.test(e):!!J(t)&&(n?e===t:e.includes(t)))}
1(e,t,n)})}function el(e,t,n){if(t in e){var r=e[t];if("function"==typeof r){var a=n(r);"function"==typeof a&&ep(a,r);try{e[t]=a}catch(n){I&&eo.log('Failed to replace method "'.concat(t,'" in object'),e)}}}}function ed(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&eo.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function ep(e,t){try{var n=t.prototype||{};e.prototype=t.prototype=n,ed(e,"__sentry_original__",t)}catch(e){}}function ef(e){return e.__sentry_original__}function ev(e){if(B(e))return S({message:e.message,name:e.name,stack:e.stack},em(e));if(!Y(e))return e;var t=S({type:e.type,target:eh(e.target),currentTarget:eh(e.currentTarget)},em(e));return"undefined"!=typeof CustomEvent&&K(e,CustomEvent)&&(t.detail=e.detail),t}function eh(e){try{return"undefined"!=typeof Element&&K(e,Element)?ee(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function em(e){if("object"!=typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function eg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R.crypto||R.msCrypto,t=function(){return 16*Math.random()};try{if(null==e?void 0:e.randomUUID)return e.randomUUID().replace(/-/g,"");(null==e?void 0:e.getRandomValues)&&(t=function(){var t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,function(e){return(e^(15&t())>>e/4).toString(16)})}function ey(e){var t,n;return null===(n=e.exception)||void 0===n?void 0:null===(t=n.values)||void 0===t?void 0:t[0]}function e_(e){var t=e.message,n=e.event_id;if(t)return t;var r=ey(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function eb(e,t,n){var r=e.exception=e.exception||{},a=r.values=r.values||[],i=a[0]=a[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function eS(e,t){var n=ey(e);if(n){var r=n.mechanism;if(n.mechanism=S({},{type:"generic",handled:!0},r,t),t&&"data"in t){var a=S({},null==r?void 0:r.data,t.data);n.mechanism.data=a}}}function ek(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{ed(e,"__sentry_captured__",!0)}catch(e){}return!1}function eE(){return Date.now()/1e3}var ew=function(){var e=R.performance;if(!(null==e?void 0:e.now))return eE;var t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return function(){return(n+e.now())/1e3}}();function ex(){return t||(t=function(){var e,t=R.performance;if(!(null==t?void 0:t.now))return[void 0,"none"];var n=t.now(),r=Date.now(),a=t.timeOrigin?Math.abs(t.timeOrigin+n-r):36e5,i=null===(e=t.timing)||void 0===e?void 0:e.navigationStart,o="number"==typeof i?Math.abs(i+n-r):36e5;return a<36e5||o<36e5?a<=o?[t.timeOrigin,"timeOrigin"]:[i,"navigationStart"]:[r,"dateNow"]}()),t[0]}function eT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ew(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eg()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;var r=S({},e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=eI(r[a],t[a],n-1));return r}function eO(){return eg().substring(16)}var eP="_sentrySpan";function eA(e,t){t?ed(e,eP,t):delete e[eP]}var eC=function(){function e(){j(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:eg(),sampleRand:Math.random()}}return U(e,[{key:"clone",value:function(){var t=new e;return t._breadcrumbs=T(this._breadcrumbs),t._tags=S({},this._tags),t._extra=S({},this._extra),t._contexts=S({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:T(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=T(this._eventProcessors),t._attachments=T(this._attachments),t._sdkProcessingMetadata=S({},this._sdkProcessingMetadata),t._propagationContext=S({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,eA(t,this[eP]),t}},{key:"setClient",value:function(e){this._client=e}},{key:"setLastEventId",value:function(e){this._lastEventId=e}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eT(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"setTags",value:function(e){return this._tags=S({},this._tags,e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,t){return this._tags=k(S({},this._tags),b({},e,t)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=S({},this._extra,e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,t){return this._extra=k(S({},this._extra),b({},e,t)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(t){if(!t)return this;var n="function"==typeof t?t(this):t,r=(n instanceof e?n.getScopeData():$(n)?t:void 0)||{},a=r.tags,i=r.extra,o=r.user,s=r.contexts,c=r.level,u=r.fingerprint,l=void 0===u?[]:u,d=r.propagationContext;return this._tags=S({},this._tags,a),this._extra=S({},this._extra,i),this._contexts=S({},this._contexts,s),o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),this}},{key:"clear",value: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._session=void 0,eA(this,void 0),this._attachments=[],this.setPropagationContext({traceId:eg(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(e,t){var n,r="number"==typeof t?t:100;if(r<=0)return this;var a=k(S({timestamp:eE()},e),{message:e.message?es(e.message,2048):e.message});return this._breadcrumbs.push(a),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),null===(n=this._client)||void 0===n||n.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[eP]}}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=eI(this._sdkProcessingMetadata,e,2),this}},{key:"setPropagationContext",value:function(e){return this._propagationContext=e,this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(e,t){var n=(null==t?void 0:t.event_id)||eg();if(!this._client)return eo.warn("No client configured on scope - will not capture exception!"),n;var r=Error("Sentry syntheticException");return this._client.captureException(e,k(S({originalException:e,syntheticException:r},t),{event_id:n}),this),n}},{key:"captureMessage",value:function(e,t,n){var r=(null==n?void 0:n.event_id)||eg();if(!this._client)return eo.warn("No client configured on scope - will not capture message!"),r;var a=Error(e);return this._client.captureMessage(e,t,k(S({originalException:e,syntheticException:a},n),{event_id:r}),this),r}},{key:"captureEvent",value:function(e,t){var n=(null==t?void 0:t.event_id)||eg();return this._client?this._client.captureEvent(e,k(S({},t),{event_id:n}),this):eo.warn("No client configured on scope - will not capture event!"),n}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(function(t){t(e)}),this._notifyingListeners=!1)}}]),e}(),eR=function(){function e(t,n){var r,a;j(this,e),r=t||new eC,a=n||new eC,this._stack=[{scope:r}],this._isolationScope=a}return U(e,[{key:"withScope",value:function(e){var t,n=this,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return X(t)?t.then(function(e){return n._popScope(),e},function(e){throw n._popScope(),e}):(this._popScope(),t)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}},{key:"_popScope",value:function(){return!(this._stack.length<=1)&&!!this._stack.pop()}}]),e}();function eD(){var e=L(D());return e.stack=e.stack||new eR(N("defaultCurrentScope",function(){return new eC}),N("defaultIsolationScope",function(){return new eC}))}function eL(e){return eD().withScope(e)}function eN(e,t){var n=eD();return n.withScope(function(){return n.getStackTop().scope=e,t(e)})}function ej(e){return eD().withScope(function(){return e(eD().getIsolationScope())})}function eM(e){var t=L(e);return t.acs?t.acs:{withIsolationScope:ej,withScope:eL,withSetScope:eN,withSetIsolationScope:function(e,t){return ej(t)},getCurrentScope:function(){return eD().getScope()},getIsolationScope:function(){return eD().getIsolationScope()}}}function eU(){return eM(D()).getCurrentScope()}function eF(){return eM(D()).getIsolationScope()}function eq(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=eM(D());if(2===t.length){var a=A(t,2),i=a[0],o=a[1];return i?r.withSetScope(i,o):r.withScope(o)}return r.withScope(t[0])}function eB(){return eU().getClient()}var eH=[];function ez(e,t){var n=!0,r=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;(null==s?void 0:s.afterAllSetup)&&s.afterAllSetup(e)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}function eW(e,t,n){if(n[t.name]){I&&eo.log("Integration skipped because it was already installed: ".concat(t.name));return}if(n[t.name]=t,-1===eH.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),eH.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){var r=t.preprocessEvent.bind(t);e.on("preprocessEvent",function(t,n){return r(t,n,e)})}if("function"==typeof t.processEvent){var a=t.processEvent.bind(t),i=Object.assign(function(t,n){return a(t,n,e)},{id:t.name});e.addEventProcessor(i)}I&&eo.log("Integration installed: ".concat(t.name))}function eJ(e){var t=[];e.message&&t.push(e.message);try{var n=e.exception.values[e.exception.values.length-1];(null==n?void 0:n.value)&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value)))}catch(e){}return t}var eG=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],eV=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"EventFilters",setup:function(n){e=eY(t,n.getOptions())},processEvent:function(n,r,a){return e||(e=eY(t,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!(null==t?void 0:t.length))return!1;var n=e.transaction;return!!n&&eu(n,t)}(e,t.ignoreTransactions))return I&&eo.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(e_(e))),!0}else{var n,r,a;if(null!=(n=t.ignoreErrors)&&n.length&&eJ(e).some(function(e){return eu(e,n)}))return I&&eo.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(e_(e))),!0;if(null!==(a=e.exception)&&void 0!==a&&null!==(r=a.values)&&void 0!==r&&r.length&&!e.message&&!e.exception.values.some(function(e){return e.stacktrace||e.type&&"Error"!==e.type||e.value}))return I&&eo.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(e_(e))),!0;if(function(e,t){if(!(null==t?void 0:t.length))return!1;var n=eX(e);return!!n&&eu(n,t)}(e,t.denyUrls))return I&&eo.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(e_(e),".\nUrl: ").concat(eX(e))),!0;if(!function(e,t){if(!(null==t?void 0:t.length))return!0;var n=eX(e);return!n||eu(n,t)}(e,t.allowUrls))return I&&eo.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(e_(e),".\nUrl: ").concat(eX(e))),!0}return!1}(n,e)?n:null}}},e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return k(S({},eV(e)),{name:"InboundFilters"})};function eY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:T(e.allowUrls||[]).concat(T(t.allowUrls||[])),denyUrls:T(e.denyUrls||[]).concat(T(t.denyUrls||[])),ignoreErrors:T(e.ignoreErrors||[]).concat(T(t.ignoreErrors||[]),T(e.disableErrorDefaults?[]:eG)),ignoreTransactions:T(e.ignoreTransactions||[]).concat(T(t.ignoreTransactions||[]))}}function eX(e){try{var t,n,r,a=T(null!==(r=null===(t=e.exception)||void 0===t?void 0:t.values)&&void 0!==r?r:[]).reverse().find(function(e){var t,n,r;return(null===(t=e.mechanism)||void 0===t?void 0:t.parent_id)===void 0&&(null===(r=e.stacktrace)||void 0===r?void 0:null===(n=r.frames)||void 0===n?void 0:n.length)}),i=null==a?void 0:null===(n=a.stacktrace)||void 0===n?void 0:n.frames;return i?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(i):null}catch(t){return I&&eo.error("Cannot extract url for event ".concat(e_(e))),null}}var eK=new WeakMap,eZ=/\(error: (.*)\)/,eQ=/captureMessage|captureException/;function e0(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.sort(function(e,t){return e[0]-t[0]}).map(function(e){return e[1]});return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[],i=e.split("\n"),o=t;o<i.length;o++){var s=i[o];if(!(s.length>1024)){var c=eZ.test(s)?s.replace(eZ,"$1"):s;if(!c.match(/\S*Error: /)){var u=!0,l=!1,d=void 0;try{for(var p,f=r[Symbol.iterator]();!(u=(p=f.next()).done);u=!0){var v=(0,p.value)(c);if(v){a.push(v);break}}}catch(e){l=!0,d=e}finally{try{u||null==f.return||f.return()}finally{if(l)throw d}}if(a.length>=50+n)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return/sentryWrapped/.test(e1(t).function||"")&&t.pop(),t.reverse(),eQ.test(e1(t).function||"")&&(t.pop(),eQ.test(e1(t).function||"")&&t.pop()),t.slice(0,50).map(function(e){return k(S({},e),{filename:e.filename||e1(t).filename,function:e.function||"?"})})}(a.slice(n))}}function e1(e){return e[e.length-1]||{}}var e2="<anonymous>";function e3(e){try{if(!e||"function"!=typeof e)return e2;return e.name||e2}catch(e){return e2}}function e4(e){var t=e.exception;if(t){var n=[];
1try{return t.values.forEach(function(e){e.stacktrace.frames&&n.push.apply(n,T(e.stacktrace.frames))}),n}catch(e){}}}var e5=function(){var e;return{name:"Dedupe",processEvent:function(t){if(t.type)return t;try{var n,r,a,i,o;if((n=e)&&(r=t.message,a=n.message,(r||a)&&(!r||a)&&(r||!a)&&r===a&&e6(t,n)&&e9(t,n)||(i=e8(n),o=e8(t),i&&o&&i.type===o.type&&i.value===o.value&&e6(t,n)&&e9(t,n))))return I&&eo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function e9(e,t){var n=e4(e),r=e4(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(var a=0;a<r.length;a++){var i=r[a],o=n[a];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function e6(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function e8(e){var t;return(null===(t=e.exception)||void 0===t?void 0:t.values)&&e.exception.values[0]}function e7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tt(e,t,n){return(tt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=te(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n||e):a.value}})(e,t,n||e)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tr=/^o(\d+)\./,ta=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ti(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.host,r=e.path,a=e.pass,i=e.port,o=e.projectId,s=e.protocol,c=e.publicKey;return"".concat(s,"://").concat(c).concat(t&&a?":".concat(a):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(r?"".concat(r,"/"):r).concat(o)}function to(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var ts="production",tc="sentry.source",tu="sentry.sample_rate",tl="sentry.previous_trace_sample_rate",td="sentry.op",tp="sentry.origin",tf="sentry.idle_span_finish_reason",tv="sentry.measurement_unit",th="sentry.measurement_value",tm="sentry.custom_span_name",tg="sentry.profile_id",ty="sentry.exclusive_time",t_="sentry-",tb=/^sentry-/;function tS(e){var t=function(e){if(e&&(J(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(function(e,t){return Object.entries(tk(t)).forEach(function(t){var n=A(t,2),r=n[0],a=n[1];e[r]=a}),e},{}):tk(e)}(e);if(t){var n=Object.entries(t).reduce(function(e,t){var n=A(t,2),r=n[0],a=n[1];return r.match(tb)&&(e[r.slice(t_.length)]=a),e},{});return Object.keys(n).length>0?n:void 0}}function tk(e){return e.split(",").map(function(e){return e.split("=").map(function(e){try{return decodeURIComponent(e.trim())}catch(e){return}})}).reduce(function(e,t){var n=A(t,2),r=n[0],a=n[1];return r&&a&&(e[r]=a),e},{})}function tE(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t,n=e||(null===(t=eB())||void 0===t?void 0:t.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function tw(e,t){e.setAttribute("http.response.status_code",t);var n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}var tx="_sentryScope",tT="_sentryIsolationScope";function tI(e){return{scope:e[tx],isolationScope:e[tT]}}function tO(e){if("boolean"==typeof e)return Number(e);var t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}var tP=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eg(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eO(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}var tC=!1;function tR(e){return e&&e.length>0?e.map(function(e){var t=e.context;return S({span_id:t.spanId,trace_id:t.traceId,sampled:1===t.traceFlags,attributes:e.attributes},function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e.context,["spanId","traceId","traceFlags"]))}):void 0}function tD(e){return"number"==typeof e?tL(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tL(e.getTime()):ew()}function tL(e){return e>9999999999?e/1e3:e}function tN(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();var t=e.spanContext(),n=t.spanId,r=t.traceId;if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){var a,i=e.attributes,o=e.startTime,s=e.name,c=e.endTime,u=e.status,l=e.links;return{span_id:n,trace_id:r,data:i,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?null===(a=e.parentSpanContext)||void 0===a?void 0:a.spanId:void 0,start_timestamp:tD(o),timestamp:tD(c)||void 0,status:tM(u),op:i[td],origin:i[tp],links:tR(l)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function tj(e){return 1===e.spanContext().traceFlags}function tM(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}var tU="_sentryChildSpans",tF="_sentryRootSpan";function tq(e,t){var n=e[tF]||e;ed(t,tF,n),e[tU]?e[tU].add(t):ed(e,tU,new Set([t]))}function tB(e){var t=new Set;return!function e(n){if(!t.has(n)&&tj(n)){t.add(n);var r=n[tU]?Array.from(n[tU]):[],a=!0,i=!1,o=void 0;try{for(var s,c=r[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var u=s.value;e(u)}}catch(e){i=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw o}}}}(e),Array.from(t)}function tH(e){return e[tF]||e}function tz(){var e=eM(D());return e.getActiveSpan?e.getActiveSpan():eU()[eP]}function tW(){tC||(ei(function(){console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),tC=!0)}var tJ="_frozenDsc";function tG(e,t){var n,r,a=t.getOptions(),i=t.getDsn()||{},o=i.publicKey,s=i.host;a.orgId?r=String(a.orgId):s&&(r=null==(n=s.match(tr))?void 0:n[1]);var c={environment:a.environment||ts,release:a.release,public_key:o,trace_id:e,org_id:r};return t.emit("createDsc",c),c}function tV(e,t){var n=t.getPropagationContext();return n.dsc||tG(n.traceId,e)}function t$(e){var t,n,r,a,i=eB();if(!i)return{};var o=tH(e),s=tN(o),c=s.data,u=o.spanContext().traceState,l=null!==(n=null!==(t=null==u?void 0:u.get("sentry.sample_rate"))&&void 0!==t?t:c[tu])&&void 0!==n?n:c[tl];function d(e){return("number"==typeof l||"string"==typeof l)&&(e.sample_rate="".concat(l)),e}var p=o[tJ];
1if(p)return d(p);var f=null==u?void 0:u.get("sentry.dsc"),v=f&&tS(f);if(v)return d(v);var h=tG(e.spanContext().traceId,i),m=c[tc],g=s.description;return"url"!==m&&g&&(h.transaction=g),tE()&&(h.sampled=String(tj(o)),h.sample_rand=null!==(a=null==u?void 0:u.get("sentry.sample_rand"))&&void 0!==a?a:null===(r=tI(o).scope)||void 0===r?void 0:r.getPropagationContext().sampleRand.toString()),d(h),i.emit("createDsc",h,o),h}function tY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return function e(t,n){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(r=new WeakSet,[function(e){return!!r.has(e)||(r.add(e),!1)},function(e){r.delete(e)}]),s=A(o,2),c=s[0],u=s[1];if(null==n||["boolean","string"].includes(void 0===n?"undefined":F(n))||"number"==typeof n&&Number.isFinite(n))return n;var l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==_&&t===_)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Z(t))return"[VueViewModel]";if($(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return"[".concat(t,"]");if("function"==typeof t)return"[Function: ".concat(e3(t),"]");if((void 0===t?"undefined":F(t))==="symbol")return"[".concat(String(t),"]");if((void 0===t?"undefined":F(t))==="bigint")return"[BigInt: ".concat(String(t),"]");var n,r=(n=Object.getPrototypeOf(t),(null==n?void 0:n.constructor)?n.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(r))return"[HTMLElement: ".concat(r,"]");return"[object ".concat(r,"]")}catch(e){return"**non-serializable** (".concat(e,")")}}(t,n);if(!l.startsWith("[object "))return l;if(n.__sentry_skip_normalization__)return n;var d="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===d)return l.replace("object ","");if(c(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{var p=n.toJSON();return e("",p,d-1,i,o)}catch(e){}var f=Array.isArray(n)?[]:{},v=0,h=ev(n);for(var m in h)if(Object.prototype.hasOwnProperty.call(h,m)){if(v>=i){f[m]="[MaxProperties ~]";break}var g=h[m];f[m]=e(m,g,d-1,i,o),v++}return u(n),f}("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function tX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function tK(e,t){var n=e[1],r=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value,u=c[0].type;if(t(c,u))return!0}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return!1}function tZ(e){var t=L(R);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}var tQ={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function t0(e){if(null==e?void 0:e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}function t1(e){return new t3(function(t){t(e)})}function t2(e){return new t3(function(t,n){n(e)})}(e=r||(r={}))[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED";var t3=function(){function e(t){j(this,e),this._state=r.PENDING,this._handlers=[],this._runExecutor(t)}return U(e,[{key:"then",value:function(t,n){var r=this;return new e(function(e,a){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){a(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){a(e)}else a(t)}]),r._executeHandlers()})}},{key:"catch",value:function(e){return this.then(function(e){return e},e)}},{key:"finally",value:function(t){var n=this;return new e(function(e,r){var a,i;return n.then(function(e){i=!1,a=e,t&&t()},function(e){i=!0,a=e,t&&t()}).then(function(){if(i){r(a);return}e(a)})})}},{key:"_executeHandlers",value:function(){var e=this;if(this._state!==r.PENDING){var t=this._handlers.slice();this._handlers=[],t.forEach(function(t){t[0]||(e._state===r.RESOLVED&&t[1](e._value),e._state===r.REJECTED&&t[2](e._value),t[0]=!0)})}}},{key:"_runExecutor",value:function(e){var t=this,n=function(e,n){if(t._state===r.PENDING){if(X(n)){n.then(a,i);return}t._state=e,t._value=n,t._executeHandlers()}},a=function(e){n(r.RESOLVED,e)},i=function(e){n(r.REJECTED,e)};try{e(a,i)}catch(e){i(e)}}}]),e}();function t4(e,t){var n=t.extra,r=t.tags,a=t.user,i=t.contexts,o=t.level,s=t.sdkProcessingMetadata,c=t.breadcrumbs,u=t.fingerprint,l=t.eventProcessors,d=t.attachments,p=t.propagationContext,f
1=t.transactionName,v=t.span;t5(e,"extra",n),t5(e,"tags",r),t5(e,"user",a),t5(e,"contexts",i),e.sdkProcessingMetadata=eI(e.sdkProcessingMetadata,s,2),o&&(e.level=o),f&&(e.transactionName=f),v&&(e.span=v),c.length&&(e.breadcrumbs=T(e.breadcrumbs).concat(T(c))),u.length&&(e.fingerprint=T(e.fingerprint).concat(T(u))),l.length&&(e.eventProcessors=T(e.eventProcessors).concat(T(l))),d.length&&(e.attachments=T(e.attachments).concat(T(d))),e.propagationContext=S({},e.propagationContext,p)}function t5(e,t,n){e[t]=eI(e[t],n,1)}var t9=["user","level","extra","contexts","tags","fingerprint","propagationContext"],t6="Not capturing exception because it's already been captured.",t8="Discarded session because of missing or non-string release",t7=Symbol.for("SentryInternalError"),ne=Symbol.for("SentryDoNotSendEventError");function nt(e){return b({message:e},t7,!0)}function nn(e){return b({message:e},ne,!0)}function nr(e){return!!e&&"object"==typeof e&&t7 in e}function na(e){return!!e&&"object"==typeof e&&ne in e}var ni=function(){function e(t){if(j(this,e),this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(e){var t="string"==typeof e?function(e){var t=ta.exec(e);if(!t){ei(function(){console.error("Invalid Sentry Dsn: ".concat(e))});return}var n=A(t.slice(1),6),r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],c=n[5],u="",l=void 0===c?"":c,d=l.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),l=d.pop()),l){var p=l.match(/^\d+/);p&&(l=p[0])}return to({host:void 0===o?"":o,pass:void 0===i?"":i,path:u,projectId:l,port:void 0===s?"":s,protocol:r,publicKey:a})}(e):to(e);if(t&&function(e){if(!I)return!0;var t=e.port,n=e.projectId,r=e.protocol;return!["protocol","publicKey","host","projectId"].find(function(t){return!e[t]&&(eo.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)})&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(eo.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(eo.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(eo.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(t))return t}(t.dsn):I&&eo.warn("No DSN provided, client will not send events."),this._dsn){var n,r,a,i,o,s,c=(n=this._dsn,r=t.tunnel,a=t._metadata?t._metadata.sdk:void 0,r||"".concat("".concat((i=n.protocol?"".concat(n.protocol,":"):"",o=n.port?":".concat(n.port):"","".concat(i,"//").concat(n.host).concat(o).concat(n.path?"/".concat(n.path):"","/api/"))).concat(n.projectId,"/envelope/"),"?").concat((s={sentry_version:"7"},n.publicKey&&(s.sentry_key=n.publicKey),a&&(s.sentry_client="".concat(a.name,"/").concat(a.version)),new URLSearchParams(s).toString())));this._transport=t.transport(k(S({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:c}))}}return U(e,[{key:"captureException",value:function(e,t,n){var r=this,a=eg();if(ek(e))return I&&eo.log(t6),a;var i=S({event_id:a},t);return this._process(this.eventFromException(e,i).then(function(e){return r._captureEvent(e,i,n)})),i.event_id}},{key:"captureMessage",value:function(e,t,n,r){var a=this,i=S({event_id:eg()},n),o=G(e)?e:String(e),s=V(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(function(e){return a._captureEvent(e,i,r)})),i.event_id}},{key:"captureEvent",value:function(e,t,n){var r=eg();if((null==t?void 0:t.originalException)&&ek(t.originalException))return I&&eo.log(t6),r;var a=S({event_id:r},t),i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,s=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,a,o||n,s)),a.event_id}},{key:"captureSession",value:function(e){this.sendSession(e),eT(e,{init:!1})}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var t=this._transport;
1return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(function(n){return t.flush(e).then(function(e){return n&&e})})):t1(!0)}},{key:"close",value:function(e){var t=this;return this.flush(e).then(function(e){return t.getOptions().enabled=!1,t.emit("close"),e})}},{key:"getEventProcessors",value:function(){return this._eventProcessors}},{key:"addEventProcessor",value:function(e){this._eventProcessors.push(e)}},{key:"init",value:function(){(this._isEnabled()||this._options.integrations.some(function(e){return e.name.startsWith("Spotlight")}))&&this._setupIntegrations()}},{key:"getIntegrationByName",value:function(e){return this._integrations[e]}},{key:"addIntegration",value:function(e){var t=this._integrations[e.name];eW(this,e,this._integrations),t||ez(this,[e])}},{key:"sendEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,n);var r=(s=this._dsn,c=this._options._metadata,u=this._options.tunnel,l=t0(c),d=e.type&&"replay_event"!==e.type?e.type:"event",(p=null==c?void 0:c.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||p.name,e.sdk.version=e.sdk.version||p.version,e.sdk.integrations=T(e.sdk.integrations||[]).concat(T(p.integrations||[])),e.sdk.packages=T(e.sdk.packages||[]).concat(T(p.packages||[]))),v=null===(f=e.sdkProcessingMetadata)||void 0===f?void 0:f.dynamicSamplingContext,h=S({event_id:e.event_id,sent_at:new Date().toISOString()},l&&{sdk:l},!!u&&s&&{dsn:ti(s)},v&&{trace:v}),delete e.sdkProcessingMetadata,tX(h,[[{type:d},e]])),a=!0,i=!1,o=void 0;try{for(var s,c,u,l,d,p,f,v,h,m,g=(n.attachments||[])[Symbol.iterator]();!(a=(m=g.next()).done);a=!0){var y=m.value;r=function(e,t){var n=A(e,2);return[n[0],T(n[1]).concat([t])]}(r,function(e){var t="string"==typeof e.data?tZ(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(y))}}catch(e){i=!0,o=e}finally{try{a||null==g.return||g.return()}finally{if(i)throw o}}var _=this.sendEnvelope(r);_&&_.then(function(n){return t.emit("afterSendEvent",e,n)},null)}},{key:"sendSession",value:function(e){var t,n,r,a,i=this._options,o=i.release,s=i.environment,c=void 0===s?ts:s;if("aggregates"in e){var u=e.attrs||{};if(!u.release&&!o){I&&eo.warn(t8);return}u.release=u.release||o,u.environment=u.environment||c,e.attrs=u}else{if(!e.release&&!o){I&&eo.warn(t8);return}e.release=e.release||o,e.environment=e.environment||c}this.emit("beforeSendSession",e);var l=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,a=t0(n),tX(S({sent_at:new Date().toISOString()},a&&{sdk:a},!!r&&t&&{dsn:ti(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(l)}},{key:"recordDroppedEvent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){var r="".concat(e,":").concat(t);I&&eo.log('Recording outcome: "'.concat(r,'"').concat(n>1?" (".concat(n," times)"):"")),this._outcomes[r]=(this._outcomes[r]||0)+n}}},{key:"on",value:function(e,t){var n=this._hooks[e]=this._hooks[e]||[];return n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=this._hooks[e];a&&a.forEach(function(e){return e.apply(void 0,T(n))})}},{key:"sendEnvelope",value:function(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,function(e){return I&&eo.error("Error while sending envelope:",e),e}):(I&&eo.error("Transport disabled"),t1({}))}},{key:"_setupIntegrations",value:function(){var e,t,n=this._options.integrations;this._integrations=(e=this,t={},n.forEach(function(n){n&&eW(e,n,t)}),t),ez(this,n)}},{key:"_updateSessionFromEvent",value:function(e,t){var n="fatal"===t.level,r=!1,a=null===(c=t.exception)||void 0===c?void 0:c.values;if(a){r=!0;var i=!0,o=!1,s=void 0;try{for(var c,u,l=a[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var d=u.value.mechanism;if((null==d?void 0:d.handled)===!1){n=!0;break}}}catch(e){o=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw s}}}var p="ok"===e.status;(p&&0===e.errors||p&&n)&&(eT(e,k(S({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var t=this;return new t3(function(n){var r=0,a=setInterval(function(){0==t._numProcessing?(clearInterval(a),n(!0)):(r+=1,e&&r>=e&&(clearInterval(a),n(!1)))},1)})}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._transport}},{key:"_prepareEvent",value:function(e,t,n,r){var s,c,u,l,d,p,f,v,h,m,g,y,_,b,E,w,x,O,P,C,D,L,j,M,U,F,q,B,H,z,W,J,G,V,$,Y,K,Z,Q=this,ee=this.getOptions(),et=Object.keys(this._integrations);return!t.integrations&&(null==et?void 0:et.length)&&(t.integrations=et),this.emit
1("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(F=void 0===(U=ee.normalizeDepth)?3:U,B=void 0===(q=ee.normalizeMaxBreadth)?1e3:q,H=k(S({},e),{event_id:e.event_id||t.event_id||eg(),timestamp:e.timestamp||eE()}),z=t.integrations||ee.integrations.map(function(e){return e.name}),m=ee.environment,g=ee.release,y=ee.dist,_=ee.maxValueLength,H.environment=H.environment||m||ts,!H.release&&g&&(H.release=g),!H.dist&&y&&(H.dist=y),(null==(b=H.request)?void 0:b.url)&&(b.url=es(b.url,void 0===_?250:_)),z.length>0&&(H.sdk=H.sdk||{},H.sdk.integrations=T(H.sdk.integrations||[]).concat(T(z))),this&&this.emit("applyFrameMetadata",e),void 0===e.type&&(x=function(e){var t=R._sentryDebugIds;if(!t)return{};var n=Object.keys(t);return o&&n.length===i?o:(i=n.length,o=n.reduce(function(n,r){a||(a={});var i=a[r];if(i)n[i[0]]=i[1];else for(var o=e(r),s=o.length-1;s>=0;s--){var c=o[s],u=null==c?void 0:c.filename,l=t[r];if(u&&l){n[u]=l,a[r]=[u,l];break}}return n},{}))}(ee.stackParser),null===(w=H.exception)||void 0===w||null===(E=w.values)||void 0===E||E.forEach(function(e){var t,n;null===(n=e.stacktrace)||void 0===n||null===(t=n.frames)||void 0===t||t.forEach(function(e){e.filename&&(e.debug_id=x[e.filename])})})),W=function(e,t){if(!t)return e;var n=e?e.clone():new eC;return n.update(t),n}(n,t.captureContext),t.mechanism&&eS(H,t.mechanism),J=this?this.getEventProcessors():[],G=N("globalScope",function(){return new eC}).getScopeData(),r&&t4(G,r.getScopeData()),W&&t4(G,W.getScopeData()),(V=T(t.attachments||[]).concat(T(G.attachments))).length&&(t.attachments=V),$=G.fingerprint,Y=G.span,K=G.breadcrumbs,Z=G.sdkProcessingMetadata,O=G.extra,P=G.tags,C=G.user,D=G.contexts,L=G.level,j=G.transactionName,Object.keys(O).length&&(H.extra=S({},O,H.extra)),Object.keys(P).length&&(H.tags=S({},P,H.tags)),Object.keys(C).length&&(H.user=S({},C,H.user)),Object.keys(D).length&&(H.contexts=S({},D,H.contexts)),L&&(H.level=L),j&&"transaction"!==H.type&&(H.transaction=j),Y&&(s=H,c=Y,s.contexts=S({trace:(l=(u=c.spanContext()).spanId,d=u.traceId,f=(p=u.isRemote)?l:tN(c).parent_span_id,v=tI(c).scope,{parent_span_id:f,span_id:p?(null==v?void 0:v.getPropagationContext().propagationSpanId)||eO():l,trace_id:d})},s.contexts),s.sdkProcessingMetadata=S({dynamicSamplingContext:t$(c)},s.sdkProcessingMetadata),(h=tN(tH(c)).description)&&!s.transaction&&"transaction"===s.type&&(s.transaction=h)),H.fingerprint=H.fingerprint?Array.isArray(H.fingerprint)?H.fingerprint:[H.fingerprint]:[],$&&(H.fingerprint=H.fingerprint.concat($)),H.fingerprint.length||delete H.fingerprint,M=T(H.breadcrumbs||[]).concat(T(K)),H.breadcrumbs=M.length?M:void 0,H.sdkProcessingMetadata=S({},H.sdkProcessingMetadata,Z),(function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new t3(function(i,o){var s=t[a];if(null===n||"function"!=typeof s)i(n);else{var c=s(S({},n),r);I&&s.id&&null===c&&eo.log('Event processor "'.concat(s.id,'" dropped event')),X(c)?c.then(function(n){return e(t,n,r,a+1).then(i)}).then(null,o):e(t,c,r,a+1).then(i).then(null,o)}})})(T(J).concat(T(G.eventProcessors)),H,t).then(function(e){return(e&&function(e){var t,n,r={};if(null===(n=e.exception)||void 0===n||null===(t=n.values)||void 0===t||t.forEach(function(e){var t,n;null===(n=e.stacktrace)||void 0===n||null===(t=n.frames)||void 0===t||t.forEach(function(e){e.debug_id&&(e.abs_path?r[e.abs_path]=e.debug_id:e.filename&&(r[e.filename]=e.debug_id),delete e.debug_id)})}),0!==Object.keys(r).length){e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var a=e.debug_meta.images;Object.entries(r).forEach(function(e){var t=A(e,2),n=t[0],r=t[1];a.push({type:"sourcemap",code_file:n,debug_id:r})})}}(e),"number"==typeof F&&F>0)?function(e,t,n){if(!e)return null;var r,a,i=S({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return S({},e,e.data&&{data:tY(e.data,t,n)})})},e.user&&{user:tY(e.user,t,n)},e.contexts&&{contexts:tY(e.contexts,t,n)},e.extra&&{extra:tY(e.extra,t,n)});return(null===(r=e.contexts)||void 0===r?void 0:r.trace)&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=tY(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(function(e){return S({},e,e.data&&{data:tY(e.data,t,n)})}
1)),(null===(a=e.contexts)||void 0===a?void 0:a.flags)&&i.contexts&&(i.contexts.flags=tY(e.contexts.flags,3,n)),i}(e,F,B):e})).then(function(e){if(null===e)return e;Q.emit("postprocessEvent",e,t),e.contexts=S({trace:(a=(r=n.getPropagationContext()).traceId,i=r.parentSpanId,o={trace_id:a,span_id:r.propagationSpanId||eO()},i&&(o.parent_span_id=i),o)},e.contexts);var r,a,i,o,s=tV(Q,n);return e.sdkProcessingMetadata=S({dynamicSamplingContext:s},e.sdkProcessingMetadata),e})}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eU(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eF();return I&&no(e)&&eo.log("Captured error event `".concat(eJ(e)[0]||"<unknown>","`")),this._processEvent(e,t,n,r).then(function(e){return e.event_id},function(e){I&&(na(e)?eo.log(e.message):nr(e)?eo.warn(e.message):eo.warn(e))})}},{key:"_processEvent",value:function(e,t,n,r){var a=this,i=this.getOptions(),o=i.sampleRate,s=ns(e),c=no(e),u=e.type||"error",l="before send for type `".concat(u,"`"),d=void 0===o?void 0:tO(o);if(c&&"number"==typeof d&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),t2(nn("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")")));var p="replay_event"===u?"replay":u;return this._prepareEvent(e,t,n,r).then(function(e){if(null===e)throw a.recordDroppedEvent("event_processor",p),nn("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){var n="".concat(t," must return `null` or a valid event.");if(X(e))return e.then(function(e){if(!$(e)&&null!==e)throw nt(n);return e},function(e){throw nt("".concat(t," rejected with ").concat(e))});if(!$(e)&&null!==e)throw nt(n);return e}(function(e,t,n,r){var a=t.beforeSend,i=t.beforeSendTransaction,o=t.beforeSendSpan,s=n;if(no(s)&&a)return a(s,r);if(ns(s)){if(o){var c=o((y=(g=null!==(h=null===(v=(f=s).contexts)||void 0===v?void 0:v.trace)&&void 0!==h?h:{}).trace_id,_=g.parent_span_id,E=g.span_id,w=g.status,x=g.origin,T=g.data,I=g.op,{data:null!=T?T:{},description:f.transaction,op:I,parent_span_id:_,span_id:null!=E?E:"",start_timestamp:null!==(m=f.start_timestamp)&&void 0!==m?m:0,status:w,timestamp:f.timestamp,trace_id:null!=y?y:"",origin:x,profile_id:null==T?void 0:T[tg],exclusive_time:null==T?void 0:T[ty],measurements:f.measurements,is_segment:!0}));if(c?s=eI(n,{type:"transaction",timestamp:c.timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:S({},c.data,c.profile_id&&b({},tg,c.profile_id),c.exclusive_time&&b({},ty,c.exclusive_time))}},measurements:c.measurements}):tW(),s.spans){var u=[],l=!0,d=!1,p=void 0;try{for(var f,v,h,m,g,y,_,E,w,x,T,I,O,P=s.spans[Symbol.iterator]();!(l=(O=P.next()).done);l=!0){var A=O.value,C=o(A);C?u.push(C):(tW(),u.push(A))}}catch(e){d=!0,p=e}finally{try{l||null==P.return||P.return()}finally{if(d)throw p}}s.spans=u}}if(i){if(s.spans){var R=s.spans.length;s.sdkProcessingMetadata=k(S({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:R})}return i(s,r)}}return s}(0,i,e,t),l)}).then(function(i){if(null===i){if(a.recordDroppedEvent("before_send",p),s){var o=1+(e.spans||[]).length;a.recordDroppedEvent("before_send","span",o)}throw nn("".concat(l," returned `null`, will not send event."))}var u=n.getSession()||r.getSession();if(c&&u&&a._updateSessionFromEvent(u,i),s){var d,f=((null===(d=i.sdkProcessingMetadata)||void 0===d?void 0:d.spanCountBeforeProcessing)||0)-(i.spans?i.spans.length:0);f>0&&a.recordDroppedEvent("before_send","span",f)}var v=i.transaction_info;return s&&v&&i.transaction!==e.transaction&&(i.transaction_info=k(S({},v),{source:"custom"})),a.sendEvent(i,t),i}).then(null,function(e){if(na(e)||nr(e))throw e;throw a.captureException(e,{data:{__sentry__:!0},originalException:e}),nt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))})}},{key:"_process",value:function(e){var t=this;this._numProcessing++,e.then(function(e){return t._numProcessing--,e},function(e){return t._numProcessing--,e})}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map(function(e){var t=A(e,2),n=t[0],r=t[1],a=A(n.split(":"),2);return{reason:a[0],category:a[1],quantity:r}})}},{key:"_flushOutcomes",value:function(){I&&eo.log("Flushing outcomes...");var e,t=this._clearOutcomes();if(0===t.length){I&&eo.log("No outcomes to send");return}if(!this._dsn){I&&eo.log("No dsn provided, will not send outcomes");return}I&&eo.log("Sending outcomes:",t);var n=tX((e=this._options.tunnel&&ti(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eE(),discarded_events:t}]]);this.sendEnvelope(n)}}]),e}();function no(e){return void 0===e.type}function ns(e){return"transaction"===e.type}function nc(e,t){var n,r,a,i=null!==(a=null!=t?t:null===(n=R._sentryClientToLogBufferMap)||void 0===n?void 0:n.get(e))&&void 0!==a?a:[];if(0!==i.length){var o,s,c,u,l=e.getOptions(),d=(o=l._metadata,s=l.tunnel,c=e.getDsn(),u={},(null==o?void 0:o.sdk)&&(u.sdk={name:o.sdk.name,version:o.sdk.version}),s&&c&&(u.dsn=ti(c)),tX(u,[[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}
1]]));null===(r=R._sentryClientToLogBufferMap)||void 0===r||r.set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}}function nu(e){var t;(null===(t=e.user)||void 0===t?void 0:t.ip_address)===void 0&&(e.user=k(S({},e.user),{ip_address:"{{auto}}"}))}function nl(e){var t;"aggregates"in e?(null===(t=e.attrs)||void 0===t?void 0:t.ip_address)===void 0&&(e.attrs=k(S({},e.attrs),{ip_address:"{{auto}}"})):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function nd(e,t){var n,r,a=nf(e,t),i={type:!(n=null==t?void 0:t.name)&&nh(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":n,value:(r=null==t?void 0:t.message,nh(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message")};return a.length&&(i.stacktrace={frames:a}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function np(e,t){return{exception:{values:[nd(e,t)]}}}function nf(e,t){var n=t.stacktrace||t.stack||"",r=t&&nv.test(t.message)?1:0,a="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,a)}catch(e){}return[]}R._sentryClientToLogBufferMap=new WeakMap;var nv=/Minified React error #\d+;/i;function nh(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function nm(e,t,n,r,a){var i;if(z(t)&&t.error)return np(e,t.error);if(W(t)||H(t,"DOMException")){if("stack"in t)i=np(e,t);else{var o=t.name||(W(t)?"DOMError":"DOMException"),s=t.message?"".concat(o,": ").concat(t.message):o;eb(i=ng(e,s,n,r),s)}return"code"in t&&(i.tags=k(S({},i.tags),{"DOMException.code":"".concat(t.code)})),i}return B(t)?np(e,t):($(t)||Y(t)?eS(i=function(e,t,n,r){var a=eB(),i=null==a?void 0:a.getOptions().normalizeDepth,o=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,a=tY(t,n);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>r?e(t,n-1,r):a}(t,i)};if(o)return{exception:{values:[nd(e,o)]},extra:s};var c={exception:{values:[{type:Y(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){var n=t.isUnhandledRejection,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(ev(e));n.sort();var r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return es(r,t);for(var a=n.length;a>0;a--){var i=n.slice(0,a).join(", ");if(!(i.length>t)){if(a===n.length)return i;return es(i,t)}}return""}(e),a=n?"promise rejection":"exception";if(z(e))return"Event `ErrorEvent` captured as ".concat(a," with message `").concat(e.message,"`");if(Y(e)){var i=function(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return"Event `".concat(i,"` (type=").concat(e.type,") captured as ").concat(a)}return"Object captured as ".concat(a," with keys: ").concat(r)}(t,{isUnhandledRejection:r})}]},extra:s};if(n){var u=nf(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}(e,t,n,a),{synthetic:!0}):(eb(i=ng(e,t,n,r),"".concat(t),void 0),eS(i,{synthetic:!0})),i)}function ng(e,t,n,r){var a={};if(r&&n){var i=nf(e,n);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]}),eS(a,{synthetic:!0})}if(G(t)){var o=t.__sentry_template_string__,s=t.__sentry_template_values__;return a.logentry={message:o,params:s},a}return a.message=t,a}function ny(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,a)}function n_(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(e){ny(i,r,a,o,s,"next",e)}function s(e){ny(i,r,a,o,s,"throw",e)}o(void 0)})}}function nb(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}
1if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function nS(e,t){return eU().captureException(e,function(e){if(e)return e instanceof eC||"function"==typeof e||Object.keys(e).some(function(e){return t9.includes(e)})?{captureContext:e}:e}(t))}function nk(e,t){return eU().captureEvent(e,t)}function nE(e,t){eF().setContext(e,t)}function nw(e){var t,n,r,a=eF(),i=eU(),o=(R.navigator||{}).userAgent,s=(t=S({user:i.getUser()||a.getUser()},o&&{userAgent:o},e),n=ew(),r={sid:eg(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){var e;return e=r,{sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&eT(r,t),r),c=a.getSession();return(null==c?void 0:c.status)==="ok"&&eT(c,{status:"exited"}),nx(),a.setSession(s),s}function nx(){var e,t=eF(),n=eU().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),eT(n,e)),nT(),t.setSession()}function nT(){var e=eF(),t=eB(),n=e.getSession();n&&t&&t.captureSession(n)}function nI(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){nx();return}nT()}"function"==typeof SuppressedError&&SuppressedError;var nO=0;function nP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)return e;try{var n=e.__sentry_wrapped__;if(n){if("function"==typeof n)return n;return e}if(ef(e))return e}catch(t){return e}var r=function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];try{var i=r.map(function(e){return nP(e,t)});return e.apply(this,i)}catch(e){throw nO++,setTimeout(function(){nO--}),eq(function(n){n.addEventProcessor(function(e){return t.mechanism&&(eb(e,void 0,void 0),eS(e,t.mechanism)),e.extra=k(S({},e.extra),{arguments:r}),e}),nS(e)}),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}catch(e){}ep(r,e),ed(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function nA(){var e=et(),t=(R.document||{}).referrer,n=(R.navigator||{}).userAgent;return{url:e,headers:S({},t&&{Referer:t},n&&{"User-Agent":n})}}var nC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=te(r);return e=t?Reflect.construct(n,arguments,te(this).constructor):n.apply(this,arguments),e&&("object"===F(e)||"function"==typeof e)?e:e7(this)});function r(e){j(this,r);var t,a,i=S({release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null===(t=R.SENTRY_RELEASE)||void 0===t?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},e);!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",a=e._metadata||{};a.sdk||(a.sdk={name:"sentry.javascript.".concat(t),packages:n.map(function(e){return{name:"".concat(r,":@sentry/").concat(e),version:C}}),version:C}),e._metadata=a}(i,"browser",["browser"],R.SENTRY_SDK_SOURCE||"npm");var o=(a=n.call(this,i))._options,s=o.sendDefaultPii,c=o.sendClientReports,u=o._experiments,l=null==u?void 0:u.enableLogs;return R.document&&(c||l)&&R.document.addEventListener("visibilitychange",function(){"hidden"===R.document.visibilityState&&(c&&a._flushOutcomes(),l&&nc(e7(a)))}),l&&(a.on("flush",function(){nc(e7(a))}),a.on("afterCaptureLog",function(){a._logFlushIdleTimeout&&clearTimeout(a._logFlushIdleTimeout),a._logFlushIdleTimeout=setTimeout(function(){nc(e7(a))},5e3)})),s&&(a.on("postprocessEvent",nu),a.on("beforeSendSession",nl)),a}return U(r,[{key:"eventFromException",value:function(e,t){var n,r,a;return n=this._options.stackParser,r=this._options.attachStacktrace,eS(a=nm(n,e,(null==t?void 0:t.syntheticException)||void 0,r)),a.level="error",(null==t?void 0:t.event_id)&&(a.event_id=t.event_id),t1(a)}},{key:"eventFromMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=ng(e,t,(null==r?void 0:r.syntheticException)||void 0,a);return i.level=n,(null==r?void 0:r.event_id)&&(i.event_id=r.event_id),t1(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}},{key:"_prepareEvent",value:function(e,t,n,a){return e.platform=e.platform||"javascript",tt(te(r.prototype),"_prepareEvent",this).call(this,e,t,n,a)}}]),r}(ni),nR={},nD={};function nL(e,t){nR[e]=nR[e]||[],nR[e].push(t)}function nN(e,t){if(!nD[e]){nD[e]=!0;try{t()}catch(t){I&&eo.error("Error while instrumenting ".concat(e),t)}}}function nj(e,t){var n=e&&nR[e];if(n){var r=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;try{c(t)}catch(t){I&&eo.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(e3(c),"\nError:"),t)}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}}}function nM(){"console"in R&&er.forEach(function(e){e in R.console&&el(R.console,e,function(t){return ea[e]=t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];nj("console",{args:n,level:e});var a=ea[e];null==a||a.apply(R.console,n)}})})}function nU(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nF(e,t){var n="fetch";nL(n,e),nN(n,function(){return nq(void 0,t)})}function nq(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t||function(){if("string"==typeof EdgeRuntime)return!0;
1if(!function(){if(!("fetch"in R))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(nU(R.fetch))return!0;var e=!1,t=R.document;if(t&&"function"==typeof t.createElement)try{var n,r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(null===(n=r.contentWindow)||void 0===n?void 0:n.fetch)&&(e=nU(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){I&&eo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&el(R,"fetch",function(t){return function(){for(var n,r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=Error(),s=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){var t=A(e,2),n=t[0],r=t[1];return{url:nW(n),method:nz(r,"method")?String(r.method).toUpperCase():"GET"}}var a=e[0];return{url:nW(a),method:nz(a,"method")?String(a.method).toUpperCase():"GET"}}(a),c={args:a,fetchData:{method:s.method,url:s.url},startTimestamp:1e3*ew(),virtualError:o,headers:function(e){var t=A(e,2),n=t[0],r=t[1];try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if(Q(n))return new Headers(n.headers)}catch(e){}}(a)};return e||nj("fetch",S({},c)),t.apply(R,a).then((n=n_(function(t){return nb(this,function(n){return e?e(t):nj("fetch",k(S({},c),{endTimestamp:1e3*ew(),response:t})),[2,t]})}),function(e){return n.apply(this,arguments)}),function(e){if(nj("fetch",k(S({},c),{endTimestamp:1e3*ew(),error:e})),B(e)&&void 0===e.stack&&(e.stack=o.stack,ed(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{var t=new URL(c.fetchData.url);e.message="".concat(e.message," (").concat(t.host,")")}catch(e){}throw e})}})}function nB(){return(nB=n_(function(e,t){var n,r,a,i,o,s;return nb(this,function(c){switch(c.label){case 0:if(!(null==e?void 0:e.body))return[3,8];r=(n=e.body).getReader(),a=setTimeout(function(){n.cancel().then(null,function(){})},9e4),i=!0,c.label=1;case 1:if(!i)return[3,7];o=void 0,c.label=2;case 2:return c.trys.push([2,4,5,6]),o=setTimeout(function(){n.cancel().then(null,function(){})},5e3),[4,r.read()];case 3:return s=c.sent().done,clearTimeout(o),s&&(t(),i=!1),[3,6];case 4:return c.sent(),i=!1,[3,6];case 5:return clearTimeout(o),[7];case 6:return[3,1];case 7:clearTimeout(a),r.releaseLock(),n.cancel().then(null,function(){}),c.label=8;case 8:return[2]}})})).apply(this,arguments)}function nH(e){var t;try{t=e.clone()}catch(e){return}!function(e,t){nB.apply(this,arguments)}(t,function(){nj("fetch-body-resolved",{endTimestamp:1e3*ew(),response:e})})}function nz(e,t){return!!e&&"object"==typeof e&&!!e[t]}function nW(e){return"string"==typeof e?e:e?nz(e,"url")?e.url:e.toString?e.toString():"":""}function nJ(e,t){var n=eB(),r=eF();if(n){var a=n.getOptions(),i=a.beforeBreadcrumb,o=void 0===i?null:i,s=a.maxBreadcrumbs,c=void 0===s?100:s;if(!(c<=0)){var u=S({timestamp:eE()},e),l=o?ei(function(){return o(u,t)}):u;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,c))}}}function nG(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function nV(e){return"isRelative"in e}function n$(e,t){var n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=null!=t?t:n?"thismessage:/":void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;var a=new URL(e,r);if(n)return{isRelative:n,pathname:a.pathname,search:a.search,hash:a.hash};return a}catch(e){}}function nY(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function nX(){if(R.document){var e=nj.bind(null,"dom"),t=nK(e,!0);R.document.addEventListener("click",t,!1),R.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var n,r,a=null===(n=R[t])||void 0===n?void 0:n.prototype;(null==a?void 0:null===(r=a.hasOwnProperty)||void 0===r?void 0:r.call(a,"addEventListener"))&&(el(a,"addEventListener",function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){var s=nK(e);o.handler=s,t.call(this,n,s,a)}o.refCount++}catch(e){}return t.call(this,n,r,a)}}),el(a,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var a=this.__sentry_instrumentation_handlers__||{},i=a[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}}function nK(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&!n._sentryCaptured){var r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"!==n.type||null!=r&&r.tagName&&("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)){ed(n,"_sentryCaptured",!0),r&&!r._sentryId&&ed(r,"_sentryId",eg());var a="keypress"===n.type?"input":n.type;!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch(e){}return!0}(n)&&(e({event:n,name:a,global:t}),c=n.type,u=r?r._sentryId:void 0),clearTimeout(s),s=R.setTimeout(function(){u=void 0,c=void 0},1e3)}}}}var nZ="__sentry_xhr_v3__";function nQ(e){nL("xhr",e),nN("xhr",n0)}function n0(){if(R.XMLHttpRequest){var e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply:function(e,t,n){var r=Error(),a=1e3*ew(),i=J(n[0])?n[0].toUpperCase():void 0,o=function(e){if(J(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!i||!o)return e.apply(t,n);t[nZ]={method:i,url:o,request_headers:{}}
1,"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);var s=function(){var e=t[nZ];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}nj("xhr",{endTimestamp:1e3*ew(),startTimestamp:a,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:function(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply:function(e,t,n){var r=A(n,2),a=r[0],i=r[1],o=t[nZ];return o&&J(a)&&J(i)&&(o.request_headers[a.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply:function(e,t,n){var r=t[nZ];return r&&(void 0!==n[0]&&(r.body=n[0]),nj("xhr",{startTimestamp:1e3*ew(),xhr:t})),e.apply(t,n)}})}}function n1(e){var t="history";nL(t,e),nN(t,n2)}function n2(){function e(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.length>2?n[2]:void 0;if(a){var i=l,o=function(e){try{return new URL(e,R.location.origin).toString()}catch(t){return e}}(String(a));if(l=o,i===o)return e.apply(this,n);nj("history",{from:i,to:o})}return e.apply(this,n)}}R.addEventListener("popstate",function(){var e=R.location.href,t=l;l=e,t!==e&&nj("history",{from:t,to:e})}),"history"in R&&R.history&&(el(R.history,"pushState",e),el(R.history,"replaceState",e))}var n3="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,n4=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:"Breadcrumbs",setup:function(e){var n,r;t.console&&(nL(n="console",function(t){if(eB()===e){var n,r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log",message:ec(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: ".concat(ec(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}nJ(r,{input:t.args,level:t.level})}}),nN(n,nM)),t.dom&&(nL("dom",(r=t.dom,function(t){if(eB()===e){var n,a,i="object"==typeof r?r.serializeAttribute:void 0,o="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;o&&o>1024&&(n3&&eo.warn("`dom.maxStringLength` cannot exceed ".concat(1024,", but a value of ").concat(o," was configured. Sentry will use ").concat(1024," instead.")),o=1024),"string"==typeof i&&(i=[i]);try{var s=t.event,c=s&&s.target?s.target:s;n=ee(c,{keyAttrs:i,maxStringLength:o}),a=en(c)}catch(e){n="<unknown>"}if(0!==n.length){var u={category:"ui.".concat(t.name),message:n};a&&(u.data={"ui.component_name":a}),nJ(u,{event:t.event,name:t.name,global:t.global})}}})),nN("dom",nX)),t.xhr&&nQ(function(t){if(eB()===e){var n=t.startTimestamp,r=t.endTimestamp,a=t.xhr[nZ];if(n&&r&&a){var i=a.method,o=a.url,s=a.status_code,c=a.body,u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},l={category:"xhr",data:{method:i,url:o,status_code:s},type:"http",level:nG(s)};e.emit("beforeOutgoingRequestBreadcrumb",l,u),nJ(l,u)}}}),t.fetch&&nF(function(t){if(eB()===e){var n=t.startTimestamp,r=t.endTimestamp;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method)){if(t.fetchData.method,t.fetchData.url,t.error){var a=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,i),nJ(o,i)}else{var s=t.response,c=k(S({},t.fetchData),{status_code:null==s?void 0:s.status});t.fetchData.request_body_size,t.fetchData.response_body_size,null==s||s.status;var u={input:t.args,response:s,startTimestamp:n,endTimestamp:r},l={category:"fetch",data:c,type:"http",level:nG(c.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,u),nJ(l,u)}}}}),t.history&&n1(function(t){if(eB()===e){var n=t.from,r=t.to,a=nY(R.location.href),i=n?nY(n):void 0,o=nY(r);(null==i?void 0:i.path)||(i=a),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),nJ({category:"navigation",data:{from:n,to:r}})}}),t.sentry&&e.on("beforeSendEvent",function(t){eB()===e&&nJ({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:e_(t)},{event:t})})}}},n5=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],n9=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:"BrowserApiErrors",setupOnce:function(){t.setTimeout&&el(R,"setTimeout",n6),t.setInterval&&el(R,"setInterval",n6),t.requestAnimationFrame&&el(R,"requestAnimationFrame",n8),t.XMLHttpRequest&&"XMLHttpRequest"in R&&el(XMLHttpRequest.prototype,"send",n7);var e=t.eventTarget;
1e&&(Array.isArray(e)?e:n5).forEach(function(e){var n,r,a;(null==(a=null===(n=R[e])||void 0===n?void 0:n.prototype)?void 0:null===(r=a.hasOwnProperty)||void 0===r?void 0:r.call(a,"addEventListener"))&&(el(a,"addEventListener",function(n){return function(r,a,i){try{"function"==typeof a.handleEvent&&(a.handleEvent=nP(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:e3(a),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.unregisterOriginalCallbacks&&this&&"object"==typeof this&&"removeEventListener"in this&&"function"==typeof this.removeEventListener&&this.removeEventListener(r,a),n.apply(this,[r,nP(a,{mechanism:{data:{function:"addEventListener",handler:e3(a),target:e},handled:!1,type:"instrument"}}),i])}}),el(a,"removeEventListener",function(e){return function(t,n,r){try{var a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,n,r)}}))})}}};function n6(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];return n[0]=nP(a,{mechanism:{data:{function:e3(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function n8(e){return function(t){return e.apply(this,[nP(t,{mechanism:{data:{function:"requestAnimationFrame",handler:e3(e)},handled:!1,type:"instrument"}})])}}function n7(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(e){e in a&&"function"==typeof a[e]&&el(a,e,function(t){var n={mechanism:{data:{function:e,handler:e3(t)},handled:!1,type:"instrument"}},r=ef(t);return r&&(n.mechanism.data.handler=e3(r)),nP(t,n)})}),e.apply(this,n)}}var re=null;function rt(e){var t="error";nL(t,e),nN(t,rn)}function rn(){re=R.onerror,R.onerror=function(e,t,n,r,a){return nj("error",{column:r,error:a,line:n,msg:e,url:t}),!!re&&re.apply(this,arguments)},R.onerror.__SENTRY_INSTRUMENTED__=!0}var rr=null;function ra(e){var t="unhandledrejection";nL(t,e),nN(t,ri)}function ri(){rr=R.onunhandledrejection,R.onunhandledrejection=function(e){return nj("unhandledrejection",e),!rr||rr.apply(this,arguments)},R.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S({onerror:!0,onunhandledrejection:!0},e);return{name:"GlobalHandlers",setupOnce:function(){Error.stackTraceLimit=50},setup:function(e){t.onerror&&(rt(function(t){var n=rc(),r=n.stackParser,a=n.attachStacktrace;if(!(eB()!==e||nO>0)){var i,o,s,c,u,l,d,p=t.msg,f=t.url,v=t.line,h=t.column,m=t.error,g=(l=(u=(c=(s=(o=(i=nm(r,m||p,void 0,a,!1)).exception=i.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=c.stacktrace||{}).frames=u.frames||[],d=J(f)&&f.length>0?f:et(),0===l.length&&l.push({colno:h,filename:d,function:"?",in_app:!0,lineno:v}),i);g.level="error",nk(g,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}}),rs("onerror")),t.onunhandledrejection&&(ra(function(t){var n=rc(),r=n.stackParser,a=n.attachStacktrace;if(!(eB()!==e||nO>0)){var i=function(e){if(V(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=V(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:nm(r,i,void 0,a,!0);o.level="error",nk(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}}),rs("onunhandledrejection"))}}};function rs(e){n3&&eo.log("Global Handler attached: ".concat(e))}function rc(){var e=eB();return(null==e?void 0:e.getOptions())||{stackParser:function(){return[]},attachStacktrace:!1}}function ru(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=k(S({},e.mechanism,"AggregateError"===e.type&&{is_exception_group:!0}),{exception_id:t})}function rl(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=k(S({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}var rd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent:function(e,r,a){!function(e,t,n,r,a,i){if
1((null===(o=a.exception)||void 0===o?void 0:o.values)&&i&&K(i.originalException,Error)){var o,s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=function e(t,n,r,a,i,o,s,c){if(o.length>=r+1)return o;var u=T(o);if(K(a[i],Error)){ru(s,c);var l=t(n,a[i]),d=u.length;rl(l,i,d,c),u=e(t,n,r,a[i],i,[l].concat(T(u)),l,d)}return Array.isArray(a.errors)&&a.errors.forEach(function(a,o){if(K(a,Error)){ru(s,c);var l=t(n,a),d=u.length;rl(l,"errors[".concat(o,"]"),d,c),u=e(t,n,r,a,i,[l].concat(T(u)),l,d)}}),u}(e,t,r,i.originalException,n,a.exception.values,s,0))}}(nd,a.getOptions().stackParser,n,t,e,r)}}};function rp(e,t,n,r){var a={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==r&&(a.colno=r),a}var rf=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rh=/\((\S*)(?::(\d+))(?::(\d+))\)/,rm=[30,function(e){var t=rf.exec(e);if(t){var n=A(t,4);return rp(n[1],"?",+n[2],+n[3])}var r=rv.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){var a=rh.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}var i=A(rS(r[1]||"?",r[2]),2),o=i[0];return rp(i[1],o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],rg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ry=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,r_=[50,function(e){var t=rg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n,r=ry.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var a=t[3],i=t[1]||"?";return i=(n=A(rS(i,a),2))[0],rp(a=n[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rb=e0.apply(void 0,T([rm,r_])),rS=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},rk=Symbol.for("SentryBufferFullError"),rE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rw={};function rx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=rw[e];if(t)return t;var n=R[e];if(nU(n))return rw[e]=n.bind(R);var r=R.document;if(r&&"function"==typeof r.createElement)try{var a=r.createElement("iframe");a.hidden=!0,r.head.appendChild(a);var i=a.contentWindow;(null==i?void 0:i[e])&&(n=i[e]),r.head.removeChild(a)}catch(t){rE&&eo.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t)}return n?rw[e]=n.bind(R):n}("fetch"),n=0,r=0;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return t2(rk);var a=r();return -1===t.indexOf(a)&&t.push(a),a.then(function(){return n(a)}).then(null,function(){return n(a).then(null,function(){})}),a},drain:function(e){return new t3(function(n,r){var a=t.length;if(!a)return n(!0);var i=setTimeout(function(){e&&e>0&&n(!1)},e);t.forEach(function(e){t1(e).then(function(){--a||(clearTimeout(i),n(!0))},r)})})}}}(e.bufferSize||64),r={};return{send:function(a){var i=[];if(tK(a,function(t,n){var a=tQ[n];(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return(e[t]||e.all||0)>n})(r,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return t1({});var o=tX(a[0],i),s=function(t){tK(o,function(n,r){e.recordDroppedEvent(t,tQ[r])})};return n.add(function(){return t({body:function(e){var t=A(e,2),n=t[0],r=t[1],a=JSON.stringify(n);function i(e){"string"==typeof a?a="string"==typeof e?a+e:[tZ(a),e]:a.push("string"==typeof e?tZ(e):e)}var o=!0,s=!1,c=void 0;try{for(var u,l=r[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=u.value,p=A(d,2),f=p[0],v=p[1];if(i("\n".concat(JSON.stringify(f),"\n")),"string"==typeof v||v instanceof Uint8Array)i(v);else{var h=void 0;try{h=JSON.stringify(v)}catch(e){h=JSON.stringify(tY(v))}i(h)}}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}return"string"==typeof a?a:function(e){var t=new Uint8Array(e.reduce(function(e,t){return e+t.length},0)),n=0,r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;t.set(c,n),n+=c.length}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return t}(a)}(o)}).then(function(e){return void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&I&&eo.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=function(e,t){var n=t.statusCode,r=t.headers,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),i=S({},e),o=null==r?void 0:r["x-sentry-rate-limits"],s=null==r?void 0:r["retry-after"],c=!0,u=!1,l=void 0;if(o)try{for(var d,p=o.trim().split(",")[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var f=d.value,v=A(f.split(":",5),5),h=v[0],m=v[1],g=v[4],y=parseInt(h,10),_=(isNaN(y)?60:y)*1e3,b=!0,k=!1,E=void 0;if(m)try{for(var w,x=m.split(";")[Symbol.iterator]();!(b=(w=x.next()).done);b=!0){var T=w.value;"metric_bucket"===T?(!g||g.split(";").includes("custom"))&&(i[T]=a+_):i[T]=a+_}}catch(e){k=!0,E=e}finally{try{b||null==x.return||x.return()}finally{if(k)throw E}}else i.all=a+_}}catch(e){u=!0,l=e}finally{try{c||null==p.return||p.return()}finally{if(u)throw l}}else s?i.all=a+function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}(s,a):429===n&&(i.all=a+6e4);return i}(r,e),e},function(e){throw s("network_error"),I&&eo.error("Encountered error running transport request:",e),e})}).then(function(e){return e},function(e){if(e===rk)return I&&eo.error("Skipped sending event because buffer is full."),s("queue_overflow"),t1({});throw e})},flush:function(e){return n.drain(e)}}}(e,function(a){var i=a.body.length;n+=i,r++;
1var o=S({body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return rw.fetch=void 0,t2("No fetch implementation available");try{return t(e.url,o).then(function(e){return n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}})}catch(e){return rw.fetch=void 0,n-=i,r--,t2(e)}})}var rT=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,e),this._traceId=t.traceId||eg(),this._spanId=t.spanId||eO()}return U(e,[{key:"spanContext",value:function(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}},{key:"end",value:function(e){}},{key:"setAttribute",value:function(e,t){return this}},{key:"setAttributes",value:function(e){return this}},{key:"setStatus",value:function(e){return this}},{key:"updateName",value:function(e){return this}},{key:"isRecording",value:function(){return!1}},{key:"addEvent",value:function(e,t,n){return this}},{key:"addLink",value:function(e){return this}},{key:"addLinks",value:function(e){return this}},{key:"recordException",value:function(e,t){}}]),e}();function rI(e){if(e&&0!==e.length){var t={};return e.forEach(function(e){var n=e.attributes||{},r=n[tv],a=n[th];"string"==typeof r&&"number"==typeof a&&(t[e.name]={value:a,unit:r})}),t}}var rO=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,e),this._traceId=n.traceId||eg(),this._spanId=n.spanId||eO(),this._startTime=n.startTimestamp||ew(),this._links=n.links,this._attributes={},this.setAttributes(S((b(t={},tp,"manual"),b(t,td,n.op),t),n.attributes)),this._name=n.name,n.parentSpanId&&(this._parentSpanId=n.parentSpanId),"sampled"in n&&(this._sampled=n.sampled),n.endTimestamp&&(this._endTime=n.endTimestamp),this._events=[],this._isStandaloneSpan=n.isStandalone,this._endTime&&this._onSpanEnded()}return U(e,[{key:"addLink",value:function(e){return this._links?this._links.push(e):this._links=[e],this}},{key:"addLinks",value:function(e){var t;return this._links?(t=this._links).push.apply(t,T(e)):this._links=e,this}},{key:"recordException",value:function(e,t){}},{key:"spanContext",value:function(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:this._sampled?1:0}}},{key:"setAttribute",value:function(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}},{key:"setAttributes",value:function(e){var t=this;return Object.keys(e).forEach(function(n){return t.setAttribute(n,e[n])}),this}},{key:"updateStartTime",value:function(e){this._startTime=tD(e)}},{key:"setStatus",value:function(e){return this._status=e,this}},{key:"updateName",value:function(e){return this._name=e,this.setAttribute(tc,"custom"),this}},{key:"end",value:function(e){this._endTime||(this._endTime=tD(e),function(e){if(I){var t=tN(e),n=t.description,r=t.op,a=e.spanContext().spanId,i=tH(e)===e,o='[Tracing] Finishing "'.concat(void 0===r?"< unknown op >":r,'" ').concat(i?"root ":"",'span "').concat(void 0===n?"< unknown name >":n,'" with ID ').concat(a);eo.log(o)}}(this),this._onSpanEnded())}},{key:"getSpanJSON",value:function(){return{data:this._attributes,description:this._name,op:this._attributes[td],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tM(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tp],profile_id:this._attributes[tg],exclusive_time:this._attributes[ty],measurements:rI(this._events),is_segment:this._isStandaloneSpan&&tH(this)===this||void 0,segment_id:this._isStandaloneSpan?tH(this).spanContext().spanId:void 0,links:tR(this._links)}}},{key:"isRecording",value:function(){return!this._endTime&&!!this._sampled}},{key:"addEvent",value:function(e,t,n){I&&eo.log("[Tracing] Adding an event to span:",e);var r=rP(t)?t:n||ew(),a=rP(t)?{}:t||{},i={name:e,time:tD(r),attributes:a};return this._events.push(i),this}},{key:"isStandaloneSpan",value:function(){return!!this._isStandaloneSpan}},{key:"_onSpanEnded",value:function(){var e=eB();if(e&&e.emit("spanEnd",this),this._isStandaloneSpan||this===tH(this)){if(this._isStandaloneSpan){this._sampled?function(e){var t=eB();if(t){var n=e[1];
1if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}}(function(e,t){var n=t$(e[0]),r=null==t?void 0:t.getDsn(),a=null==t?void 0:t.getOptions().tunnel,i=S({sent_at:new Date().toISOString()},!!n.trace_id&&!!n.public_key&&{trace:n},!!a&&r&&{dsn:ti(r)}),o=null==t?void 0:t.getOptions().beforeSendSpan,s=o?function(e){var t=tN(e);return o(t)||(tW(),t)}:tN,c=[],u=!0,l=!1,d=void 0;try{for(var p,f=e[Symbol.iterator]();!(u=(p=f.next()).done);u=!0){var v=p.value,h=s(v);h&&c.push([{type:"span"},h])}}catch(e){l=!0,d=e}finally{try{u||null==f.return||f.return()}finally{if(l)throw d}}return tX(i,c)}([this],e)):(I&&eo.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}var t=this._convertSpanToTransaction();t&&(tI(this).scope||eU()).captureEvent(t)}}},{key:"_convertSpanToTransaction",value:function(){var e,t=this;if(rA(tN(this))){this._name||(I&&eo.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");var n=tI(this),r=n.scope,a=n.isolationScope,i=null==r?void 0:null===(e=r.getScopeData().sdkProcessingMetadata)||void 0===e?void 0:e.normalizedRequest;if(!0===this._sampled){var o,s,c,u,l,d,p=tB(this).filter(function(e){return e!==t&&!(e instanceof rO&&e.isStandaloneSpan())}).map(function(e){return tN(e)}).filter(rA),f=this._attributes[tc];delete this._attributes[tm],p.forEach(function(e){delete e.data[tm]});var v=S({contexts:{trace:(s=(o=this.spanContext()).spanId,c=o.traceId,l=(u=tN(this)).data,d=u.op,{parent_span_id:u.parent_span_id,span_id:s,trace_id:c,data:l,op:d,status:u.status,origin:u.origin,links:u.links})},spans:p.length>1e3?p.sort(function(e,t){return e.start_timestamp-t.start_timestamp}).slice(0,1e3):p,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:r,capturedSpanIsolationScope:a,dynamicSamplingContext:t$(this)},request:i},f&&{transaction_info:{source:f}}),h=rI(this._events);return h&&Object.keys(h).length&&(I&&eo.log("[Measurements] Adding measurements to transaction event",JSON.stringify(h,void 0,2)),v.measurements=h),v}}}}]),e}();function rP(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function rA(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var rC="__SENTRY_SUPPRESS_TRACING__";function rR(e){var t=eM(D());if(t.startInactiveSpan)return t.startInactiveSpan(e);var n=function(e){var t=S({isStandalone:(e.experimental||{}).standalone},e);if(e.startTime){var n=S({},t);return n.startTimestamp=tD(e.startTime),delete n.startTime,n}return t}(e),r=e.forceTransaction,a=e.parentSpan;return(e.scope?function(t){return eq(e.scope,t)}:void 0!==a?function(e){return rD(a,e)}:function(e){return e()})(function(){var t=eU(),a=function(e){var t=e[eP];if(t){var n=eB();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?tH(t):t}}(t);return e.onlyIfParent&&!a?new rT:function(e){var t,n,r=e.parentSpan,a=e.spanArguments,i=e.forceTransaction,o=e.scope;if(!tE()){var s=new rT;if(i||!r){var c=S({sampled:"false",sample_rate:"0",transaction:a.name},t$(s));ed(s,tJ,c)}return s}var u=eF();if(r&&!i)d=(l=r.spanContext()).spanId,p=l.traceId,v=(f=!o.getScopeData().sdkProcessingMetadata[rC]&&tj(r))?new rO(k(S({},a),{parentSpanId:d,traceId:p,sampled:f})):new rT({traceId:p}),tq(r,v),(h=eB())&&(h.emit("spanStart",v),a.endTimestamp&&h.emit("spanEnd",v)),tq(r,n=v);else if(r){var l,d,p,f,v,h,m=t$(r),g=r.spanContext(),y=g.traceId,_=g.spanId,b=tj(r);ed(n=rL(S({traceId:y,parentSpanId:_},a),o,b),tJ,m)}else{var E=S({},u.getPropagationContext(),o.getPropagationContext()),w=E.traceId,x=E.dsc,T=E.parentSpanId,O=E.sampled;n=rL(S({traceId:w,parentSpanId:T},a),o,O),x&&ed(n,tJ,x)}return!function(e){if(I){var t=tN(e),n=t.description,r=t.op,a=t.parent_span_id,i=e.spanContext().spanId,o=tj(e),s=tH(e),c=s===e,u="[Tracing] Starting ".concat(o?"sampled":"unsampled"," ").concat(c?"root ":"","span"),l=["op: ".concat(void 0===r?"< unknown op >":r),"name: ".concat(void 0===n?"< unknown name >":n),"ID: ".concat(i)];if(a&&l.push("parent ID: ".concat(a)),!c){var d=tN(s),p=d.op,f=d.description;l.push("root ID: ".concat(s.spanContext().spanId)),p&&l.push("root op: ".concat(p)),f&&l.push("root description: ".concat(f))}eo.log("".concat(u,"\n  ").concat(l.join("\n  ")))}}(n),(t=n)&&(ed(t,tT,u),ed(t,tx,o)),n}({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function rD(e,t){var n=eM(D());return n.withActiveSpan?n.withActiveSpan(e,t):eq(function(n){return eA(n,e||void 0),t(n)})}function rL(e,t,n){var r,a,i,o=eB(),s=(null==o?void 0:o.getOptions())||{},c=e.name,u=void 0===c?"":c,l={spanAttributes:S({},e.attributes),spanName:u,parentSampled:n};null==o||o.emit("beforeSampling",l,{decision:!1});var d=null!==(a=l.parentSampled)&&void 0!==a?a:n,p=l.spanAttributes,f=t.getPropagationContext(),v=A(t.getScopeData().sdkProcessingMetadata[rC]?[!1]:function(e,t,n){if(!tE(e))return[!1];var r,a=void 0;"function"==typeof e.tracesSampler?(r=e.tracesSampler(k(S({},t),{inheritOrSampleWith:function(e){return"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}})),a=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,a=!0);var i=tO(r);if(void 0===i)return I&&eo.warn("[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(r)," of type ").concat(JSON.stringify(void 0===r?"undefined":F(r)),".")),[!1];if(!i)return I&&eo.log("[Tracing] Discarding transaction because ".concat("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,i,a];var o=n<i;return!o&&I&&eo.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),[o,i,a]}(s,{name:u,parentSampled:d,attributes:p,parentSampleRate:tO(null===(r=f.dsc)||void 0===r?void 0:r.sample_rate)},f.sampleRand),3),h=v[0],m=v[1],g=v[2],y=new rO(k(S({},e),{attributes:S((b(i={},tc,"custom"),b(i,tu,void 0!==m&&g?m:void 0),i),p),sampled:h}));return!h&&o&&(I&&eo.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate","transaction")),o&&o.emit("spanStart",y),y}var rN={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rj(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new Map,i=!1,o="externalFinish",s=!r.disableAutoFinish,c=[],u=r.idleTimeout,l=void 0===u?rN.idleTimeout:u,d=r.finalTimeout,p=void 0===d?rN.finalTimeout:d,f=r.childSpanTimeout,v=void 0===f?rN.childSpanTimeout:f,h=r.beforeSpanEnd,m=eB();
1if(!m||!tE()){var g=new rT,y=S({sample_rate:"0",sampled:"false"},t$(g));return ed(g,tJ,y),g}var _=eU(),b=tz(),k=(t=rR(e),eA(eU(),t),I&&eo.log("[Tracing] Started span is an idle span"),t);function E(){n&&(clearTimeout(n),n=void 0)}function A(e){E(),n=setTimeout(function(){!i&&0===a.size&&s&&(o="idleTimeout",k.end(e))},l)}function C(e){n=setTimeout(function(){!i&&s&&(o="heartbeatFailed",k.end(e))},v)}function R(e){i=!0,a.clear(),c.forEach(function(e){return e()}),eA(_,b);var t=tN(k);if(t.start_timestamp){t.data[tf]||k.setAttribute(tf,o),eo.log('[Tracing] Idle span "'.concat(t.op,'" finished'));var n=tB(k).filter(function(e){return e!==k}),r=0;n.forEach(function(t){t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),I&&eo.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));var n=tN(t),a=n.timestamp,i=n.start_timestamp,o=void 0===i?0:i,s=o<=e,c=(void 0===a?0:a)-o<=(p+l)/1e3;if(I){var u=JSON.stringify(t,void 0,2);s?c||eo.log("[Tracing] Discarding span since it finished after idle span final timeout",u):eo.log("[Tracing] Discarding span since it happened after idle span was finished",u)}(!c||!s)&&(k[tU]&&k[tU].delete(t),r++)}),r>0&&k.setAttribute("sentry.idle_span_discarded_spans",r)}}return k.end=new Proxy(k.end,{apply:function(e,t,n){if(h&&h(k),!(t instanceof rT)){var r,a=O(n)||w(n)||x(n)||P(),i=a[0],o=a.slice(1),s=tD(i||ew()),c=tB(k).filter(function(e){return e!==k});if(!c.length)return R(s),Reflect.apply(e,t,[s].concat(T(o)));var u=c.map(function(e){return tN(e).timestamp}).filter(function(e){return!!e}),l=u.length?(r=Math).max.apply(r,T(u)):void 0,d=tN(k).start_timestamp,f=Math.min(d?d+p/1e3:1/0,Math.max(d||-1/0,Math.min(s,l||1/0)));return R(f),Reflect.apply(e,t,[f].concat(T(o)))}}}),c.push(m.on("spanStart",function(e){if(!i&&e!==k&&!tN(e).timestamp&&tB(k).includes(e)){var t;t=e.spanContext().spanId,E(),a.set(t,!0),C(ew()+v/1e3)}})),c.push(m.on("spanEnd",function(e){if(!i){var t;t=e.spanContext().spanId,a.has(t)&&a.delete(t),0===a.size&&A(ew()+l/1e3)}})),c.push(m.on("idleSpanEnableAutoFinish",function(e){e===k&&(s=!0,A(),a.size&&C())})),r.disableAutoFinish||A(),setTimeout(function(){i||(k.setStatus({code:2,message:"deadline_exceeded"}),o="finalTimeout",k.end())},p),k}var rM=!1;function rU(){var e=tz(),t=e&&tH(e);if(t){var n="internal_error";I&&eo.log("[Tracing] Root span: ".concat(n," -> Global error occurred")),t.setStatus({code:2,message:n})}}rU.tag="sentry_tracingErrorCallback";var rF=function(e,t,n,r){var a,i;return function(o){if(t.value>=0&&(o||r)&&((i=t.value-(null!=a?a:0))||void 0===a)){var s;a=t.value,t.delta=i,t.rating=(s=t.value)>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},rq=function(){var e,t,n=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=null===(t=R.performance)||void 0===t?void 0:null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation")[0];if(!n||r&&r.responseStart>0&&r.responseStart<performance.now())return r},rB=function(){var e,t=rq();return null!==(e=null==t?void 0:t.activationStart)&&void 0!==e?e:0},rH=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=rq(),i="navigate";return a&&((null===(t=R.document)||void 0===t?void 0:t.prerendering)||rB()>0?i="prerender":(null===(n=R.document)||void 0===n?void 0:n.wasDiscarded)?i="restore":a.type&&(i=a.type.replace(/_/g,"-"))),{name:e,value:r,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),navigationType:i}},rz=new WeakMap;function rW(e,t){return rz.get(e)||rz.set(e,new t),rz.get(e)}var rJ=function(){function e(){j(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this)}return U(e,[{key:"__init",value:function(){this._sessionValue=0}},{key:"__init2",value:function(){this._sessionEntries=[]}},{key:"_processEntry",value:function(e){if(!e.hadRecentInput){var t,n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),null===(t=this._onAfterProcessingUnexpectedShift)||void 0===t||t.call(this,e)}}}]),e}(),rG=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(S({type:e,buffered:!0},n)),r}}catch(e){}},rV=function(e){var t=!1;return function(){t||(e(),t=!0)}},r$=-1,rY=function(){var e,t;return(null===(e=R.document)||void 0===e?void 0:e.visibilityState)!=="hidden"||(null===(t=R.document)||void 0===t?void 0:t.prerendering)?1/0:0},rX=function(e){"hidden"===R.document.visibilityState&&r$>-1&&(r$="visibilitychange"===e.type?e.timeStamp:0,rZ())},rK=function(){addEventListener("visibilitychange",rX,!0),addEventListener("prerenderingchange",rX,!0)},rZ=function(){removeEventListener("visibilitychange",rX,!0),removeEventListener("prerenderingchange",rX,!0)},rQ=function(){if(R.document&&r$<0){var e,t=rB(),n=R.document.prerendering?void 0:null===(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(e){return"hidden"===e.name&&e.startTime>t})[0])||void 0===e?void 0:e.startTime;r$=null!=n?n:rY(),rK()}return{get firstHiddenTime(){return r$}}},r0=function(e){var t;(null===(t=R.document)||void 0===t?void 0:t.prerendering)?addEventListener("prerenderingchange",function(){return e()},!0):e()},r1=[1800,3e3],r2=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r0(function(){var n,r=rQ(),a=rH("FCP"),i=rG("paint",function(e){var t=!0,o=!1,s=void 0;try{for(var c,u=e[Symbol.iterator]();!(t=(c=u.next()).done);t=!0){var l=c.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<r.firstHiddenTime&&(a.value=Math.max(l.startTime-rB(),0),a.entries.push(l),n(!0)))}}catch(e){o=!0,s=e}finally{try{t||null==u.return||u.return()}finally{if(o)throw s}}});i&&(n=rF(e,a,r1,t.reportAllChanges))})},r3=[.1,.25],r4=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r2(rV(function(){var n,r,a,i=rH("CLS",0),o=rW(t,rJ),s=function(e){var t=!0,r=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(t=(s=c.next()).done);t=!0){var u=s.value;o._processEntry(u)}}catch(e){r=!0,a=e}finally{try{t||null==c.return||c.return()}finally{if(r)throw a}}o._sessionValue>
1i.value&&(i.value=o._sessionValue,i.entries=o._sessionEntries,n())},c=rG("layout-shift",s);c&&(n=rF(e,i,r3,t.reportAllChanges),null===(r=R.document)||void 0===r||r.addEventListener("visibilitychange",function(){var e;(null===(e=R.document)||void 0===e?void 0:e.visibilityState)==="hidden"&&(s(c.takeRecords()),n(!0))}),null==R||null===(a=R.setTimeout)||void 0===a||a.call(R,n))}))},r5=function(e){var t=function(t){var n;("pagehide"===t.type||(null===(n=R.document)||void 0===n?void 0:n.visibilityState)==="hidden")&&e(t)};R.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},r9=[100,300],r6=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r0(function(){var n,r=rQ(),a=rH("FID"),i=function(e){e.startTime<r.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},o=function(e){e.forEach(i)},s=rG("first-input",o);n=rF(e,a,r9,t.reportAllChanges),s&&r5(rV(function(){o(s.takeRecords()),s.disconnect()}))})},r8=0,r7=1/0,ae=0,at=function(e){e.forEach(function(e){e.interactionId&&(r7=Math.min(r7,e.interactionId),r8=(ae=Math.max(ae,e.interactionId))?(ae-r7)/7+1:0)})},an=function(){return d?r8:performance.interactionCount||0},ar=function(){"interactionCount"in performance||d||(d=rG("event",at,{type:"event",buffered:!0,durationThreshold:0}))},aa=0,ai=function(){function e(){j(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this)}return U(e,[{key:"__init",value:function(){this._longestInteractionList=[]}},{key:"__init2",value:function(){this._longestInteractionMap=new Map}},{key:"_resetInteractions",value:function(){aa=an(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}},{key:"_estimateP98LongestInteraction",value:function(){var e=Math.min(this._longestInteractionList.length-1,Math.floor((an()-aa)/50));return this._longestInteractionList[e]}},{key:"_processEntry",value:function(e){if(null===(s=this._onBeforeProcessingEntry)||void 0===s||s.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort(function(e,t){return t._latency-e._latency}),this._longestInteractionList.length>10){var r=this._longestInteractionList.splice(10),a=!0,i=!1,o=void 0;try{for(var s,c,u,l=r[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;this._longestInteractionMap.delete(d.id)}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}null===(c=this._onAfterProcessingINPCandidate)||void 0===c||c.call(this,n)}}}}]),e}(),ao=function(e){var t,n=R.requestIdleCallback||R.setTimeout;(null===(t=R.document)||void 0===t?void 0:t.visibilityState)==="hidden"?e():(n(e=rV(e)),r5(e))},as=[200,500],ac=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&r0(function(){ar();var n,r,a=rH("INP"),i=rW(t,ai),o=function(e){ao(function(){var t=!0,r=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(t=(s=c.next()).done);t=!0){var u=s.value;i._processEntry(u)}}catch(e){r=!0,o=e}finally{try{t||null==c.return||c.return()}finally{if(r)throw o}}var l=i._estimateP98LongestInteraction();l&&l._latency!==a.value&&(a.value=l._latency,a.entries=l.entries,n())})},s=rG("event",o,{durationThreshold:null!==(r=t.durationThreshold)&&void 0!==r?r:40});n=rF(e,a,as,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r5(function(){o(s.takeRecords()),n(!0)}))})},au=function(){function e(){j(this,e)}return U(e,[{key:"_processEntry",value:function(e){var t;null===(t=this._onBeforeProcessingEntry)||void 0===t||t.call(this,e)}}]),e}(),al=[2500,4e3],ad=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r0(function(){var n,r=rQ(),a=rH("LCP"),i=rW(t,au),o=function(e){t.reportAllChanges||(e=e.slice(-1));var o=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=u.value;i._processEntry(d),d.startTime<r.firstHiddenTime&&(a.value=Math.max(d.startTime-rB(),0),a.entries=[d],n())}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}},s=rG("largest-contentful-paint",o);if(s){n=rF(e,a,al,t.reportAllChanges);for(var c=rV(function(){o(s.takeRecords()),s.disconnect(),n(!0)}),u=0,l=["keydown","click","visibilitychange"];u<l.length;u++){var d=l[u];R.document&&addEventListener(d,function(){return ao(c)},{capture:!0,once:!0})}}})},ap=[800,1800],af=function(e){var t,n;(null===(t=R.document)||void 0===t?void 0:t.prerendering)?r0(function(){return af(e)}
1):(null===(n=R.document)||void 0===n?void 0:n.readyState)!=="complete"?addEventListener("load",function(){return af(e)},!0):setTimeout(e)},av=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rH("TTFB"),r=rF(e,n,ap,t.reportAllChanges);af(function(){var e=rq();e&&(n.value=Math.max(e.responseStart-rB(),0),n.entries=[e],r(!0))})},ah={},am={};function ag(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return aT("cls",e,aS,p,t)}function ay(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return aT("lcp",e,aE,v,t)}function a_(e,t){var n;return aI(e,t),am[e]||(n={},"event"===e&&(n.durationThreshold=0),rG(e,function(t){ab(e,{entries:t})},n),am[e]=!0),aO(e,t)}function ab(e,t){var n=ah[e];if(null==n?void 0:n.length){var r=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;try{c(t)}catch(t){rE&&eo.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(e3(c),"\nError:"),t)}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}}}function aS(){return r4(function(e){ab("cls",{metric:e}),p=e},{reportAllChanges:!0})}function ak(){return r6(function(e){ab("fid",{metric:e}),f=e})}function aE(){return ad(function(e){ab("lcp",{metric:e}),v=e},{reportAllChanges:!0})}function aw(){return av(function(e){ab("ttfb",{metric:e}),h=e})}function ax(){return ac(function(e){ab("inp",{metric:e}),m=e})}function aT(e,t,n,r){var a,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return aI(e,t),am[e]||(a=n(),am[e]=!0),r&&t({metric:r}),aO(e,t,i?a:void 0)}function aI(e,t){ah[e]=ah[e]||[],ah[e].push(t)}function aO(e,t,n){return function(){n&&n();var r=ah[e];if(r){var a=r.indexOf(t);-1!==a&&r.splice(a,1)}}}function aP(){return(aP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function aA(e){return"number"==typeof e&&isFinite(e)}function aC(e,t,n,r){var a=aP({},function(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}(r)),i=tN(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),rD(e,function(){var e=rR(S({startTime:t},a));return e&&e.end(n),e})}function aR(e){var t,n,r=eB();if(r){var a=e.name,i=e.transaction,o=e.attributes,s=e.startTime,c=r.getOptions(),u=c.release,l=c.environment,d=c.sendDefaultPii,p=r.getIntegrationByName("Replay"),f=null==p?void 0:p.getReplayId(),v=eU(),h=v.getUser(),m=void 0!==h?h.email||h.id||h.ip_address:void 0;try{n=v.getScopeData().contexts.profile.profile_id}catch(e){}return rR({name:a,attributes:S({release:u,environment:l,user:m||void 0,profile_id:n||void 0,replay_id:f||void 0,transaction:i,"user_agent.original":null===(t=R.navigator)||void 0===t?void 0:t.userAgent,"client.address":d?"{{auto}}":void 0},o),startTime:s,experimental:{standalone:!0}})}}function aD(){return R.addEventListener&&R.performance}function aL(e){return e/1e3}function aN(e){var t="unknown",n="unknown",r="",a=!0,i=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var u,l=s.value;if("/"===l){t=(u=A(e.split("/"),2))[0],n=u[1];break}if(!isNaN(Number(l))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=l}}catch(e){i=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw o}}return r===e&&(t=r),{name:t,version:n}}var aj=0,aM={};function aU(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,i=t["secureConnection"===n?"connectEnd":"fetch"===n?"domainLookupStart":"".concat(n,"End")],o=t["".concat(n,"Start")];o&&i&&aC(e,r+aL(o),r+aL(i),{op:"browser.".concat(a),name:t.name,attributes:S(b({},tp,"auto.ui.browser.metrics"),"redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{})})}function aF(e,t,n,r){var a=t[n];null!=a&&a<2147483647&&(e[r]=a)}var aq=[],aB=new Map,aH={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},az=function(e){var t,n,r=e.metric;if(void 0!=r.value){var a=aL(r.value);if(!(a>60)){var i=r.entries.find(function(e){return e.duration===r.value&&aH[e.name]});if(i){var o=i.interactionId,s=aH[i.name],c=aL(ex()+i.startTime),u=tz(),l=u?tH(u):void 0,d=(null!=o?aB.get(o):void 0)||l,p=d?tN(d).description:eU().getScopeData().transactionName,f=aR({name:ee(i.target),transaction:p,attributes:(b(t={},tp,"auto.http.browser.inp"),b(t,td,"ui.interaction.".concat(s)),b(t,ty,i.duration),t),startTime:c});f&&(f.addEvent("inp",(b(n={},tv,"millisecond"),b(n,th,r.value),n)),f.end(c+a))}}}},aW="sentry_previous_trace";function aJ(e){return 1===e.traceFlags}function aG(){var e,t,n,r,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.client||eB();if(!((null==(r=eB())?void 0:r.getOptions().enabled)!==!1&&(null==r?void 0:r.getTransport()))||!o)return{};var s=eM(D());if(s.getTraceData)return s.getTraceData(i);var c=i.scope||eU(),u=i.span||tz(),l=u?tA((a=u.spanContext()).traceId,a.spanId,tj(u)):(t=(e=c.getPropagationContext()).traceId,n=e.sampled,tA(t,e.propagationSpanId,n)),d=function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(function(e,t,n){var r=A(t,2),a=r[0],i=r[1],o="".concat(encodeURIComponent(a),"=").concat(encodeURIComponent(i)),s=0===n?o:"".concat(e,",").concat(o);return s.length>8192?(I&&eo.warn("Not adding key: ".concat(a," with val: ").concat(i," to baggage header due to exceeding baggage size limits.")),e):s},"")}(Object.entries(e).reduce(function(e,t){var n=A(t,2),r=n[0],a=n[1];return a&&(e["".concat(t_).concat(r)]=a),e},{}))}(u?t$(u):tV(o,c));return tP.test(l)?{"sentry-trace":l,baggage:d}:(eo.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function aV(e){return e.split(",").some(function(e){return e.trim().startsWith(t_)})}var a$=new WeakMap,aY=new Map,aX={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function aK(e){var t=tN(e).data.url;if(t&&"string"==typeof t)var n=a_("resource",function(r){r.entries.forEac
1h(function(r){if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){var a,i,o,s;(i=(a=aN(r.nextHopProtocol)).name,o=a.version,((s=[]).push(["network.protocol.version",o],["network.protocol.name",i]),ex())?T(s).concat([["http.request.redirect_start",aZ(r.redirectStart)],["http.request.fetch_start",aZ(r.fetchStart)],["http.request.domain_lookup_start",aZ(r.domainLookupStart)],["http.request.domain_lookup_end",aZ(r.domainLookupEnd)],["http.request.connect_start",aZ(r.connectStart)],["http.request.secure_connection_start",aZ(r.secureConnectionStart)],["http.request.connection_end",aZ(r.connectEnd)],["http.request.request_start",aZ(r.requestStart)],["http.request.response_start",aZ(r.responseStart)],["http.request.response_end",aZ(r.responseEnd)]]):s).forEach(function(t){return e.setAttribute.apply(e,T(t))}),setTimeout(n)}})})}function aZ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((ex()||performance.timeOrigin)+e)/1e3}function aQ(e){try{return new URL(e,R.location.origin).href}catch(e){return}}var a0=S(k(S({},rN),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{}}),aX),a1=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(t,n){var i="pageload"===n.op,o=v?v(n):n,s=o.attributes||{};n.name!==o.name&&(s[tc]="custom",o.attributes=s),r.name=o.name,r.source=s[tc];var c=rj(o,{idleTimeout:_,finalTimeout:E,childSpanTimeout:w,disableAutoFinish:i,beforeSpanEnd:function(n){null==e||e(),function(e,t){var n=aD(),r=ex();if((null==n?void 0:n.getEntries)&&r){var a=aL(r),i=n.getEntries(),o=tN(e),s=o.op,c=o.start_timestamp;if(i.slice(aj).forEach(function(n){var r,i,o,u=aL(n.startTime),l=aL(Math.max(0,n.duration));if("navigation"!==s||!c||!(a+u<c))switch(n.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(t){aU(e,n,t,a)}),aU(e,n,"secureConnection",a,"TLS/SSL"),aU(e,n,"fetch",a,"cache"),aU(e,n,"domainLookup",a,"DNS"),r=a+aL(n.requestStart),i=a+aL(n.responseEnd),o=a+aL(n.responseStart),n.responseEnd&&(aC(e,r,i,{op:"browser.request",name:n.name,attributes:b({},tp,"auto.ui.browser.metrics")}),aC(e,o,i,{op:"browser.response",name:n.name,attributes:b({},tp,"auto.ui.browser.metrics")}));break;case"mark":case"paint":case"measure":(function(e,t,n,r,a,i){if(!(["mark","measure"].includes(t.entryType)&&eu(t.name,i))){var o=rq(!1),s=a+Math.max(n,aL(o?o.requestStart:0)),c=a+n,u=c+r,l=b({},tp,"auto.resource.browser.metrics");s!==c&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=s),function(e,t){try{var n=t.detail;if(!n)return;if("object"==typeof n){var r=!0,a=!1,i=void 0;try{for(var o,s=Object.entries(n)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=A(o.value,2),u=c[0],l=c[1];if(l&&V(l))e["sentry.browser.measure.detail.".concat(u)]=l;else if(void 0!==l)try{e["sentry.browser.measure.detail.".concat(u)]=JSON.stringify(l)}catch(e){}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return}if(V(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch(e){}}catch(e){}}(l,t),s<=u&&aC(e,s,u,{name:t.name,op:t.entryType,attributes:l})}})(e,n,u,l,a,t.ignorePerformanceApiSpans);var d=rQ(),p=n.startTime<d.firstHiddenTime;"first-paint"===n.name&&p&&(aM.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&p&&(aM.fcp={value:n.startTime,unit:"millisecond"});break;case"resource":(function(e,t,n,r,a,i,o){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var s=t.initiatorType?"resource.".concat(t.initiatorType):"resource.other";if(null==o||!o.includes(s)){var c=nY(n),u=b({},tp,"auto.resource.browser.metrics");aF(u,t,"transferSize","http.response_transfer_size"),aF(u,t,"encodedBodySize","http.response_content_length"),aF(u,t,"decodedBodySize","http.decoded_response_content_length");var l=t.deliveryType;null!=l&&(u["http.response_delivery_type"]=l);var d=t.renderBlockingStatus;d&&(u["resource.render_blocking_status"]=d),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(R.location.origin);var p=aN(t.nextHopProtocol),f=p.name,v=p.version;u["network.protocol.name"]=f,u["network.protocol.version"]=v;var h=i+r;aC(e,h,h+a,{name:n.replace(R.location.origin,""),op:s,attributes:u})}}})(e,n,n.name,u,l,a,t.ignoreResourceSpans)}}),aj=Math.max(i.length-1,0),function(e){var t=R.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),aA(n.rtt)&&(aM["connection.rtt"]={value:n.rtt,unit:"millisecond"})),aA(t.deviceMemory)&&e.setAttribute("deviceMemory","".concat(t.deviceMemory," GB")),aA(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}}(e),"pageload"===s){(function(e){var t=rq(!1);if(t){var n=t.responseStart,r=t.requestStart;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}})(aM);var u=aM["mark.fid"];
1u&&aM.fid&&(aC(e,u.value,u.value+aL(aM.fid.value),{name:"first input delay",op:"ui.action",attributes:b({},tp,"auto.ui.browser.metrics")}),delete aM["mark.fid"]),"fcp"in aM&&t.recordClsOnPageloadSpan||delete aM.cls,t.recordLcpOnPageloadSpan||delete aM.lcp,Object.entries(aM).forEach(function(e){var t=A(e,2),n=t[0],r=t[1];!function(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tz(),i=a&&tH(a);i&&(I&&eo.log("[Measurement] Setting measurement on root span: ".concat(e," = ").concat(t," ").concat(n)),i.addEvent(e,(b(r={},th,t),b(r,tv,n),r)))}(n,r.value,r.unit)}),e.setAttribute("performance.timeOrigin",a),e.setAttribute("performance.activationStart",rB()),g&&t.recordLcpOnPageloadSpan&&(g.element&&e.setAttribute("lcp.element",ee(g.element)),g.id&&e.setAttribute("lcp.id",g.id),g.url&&e.setAttribute("lcp.url",g.url.trim().slice(0,200)),null!=g.loadTime&&e.setAttribute("lcp.loadTime",g.loadTime),null!=g.renderTime&&e.setAttribute("lcp.renderTime",g.renderTime),e.setAttribute("lcp.size",g.size)),(null==y?void 0:y.sources)&&t.recordClsOnPageloadSpan&&y.sources.forEach(function(t,n){return e.setAttribute("cls.source.".concat(n+1),ee(t.node))})}g=void 0,y=void 0,aM={}}}(n,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!p,ignoreResourceSpans:N,ignorePerformanceApiSpans:j}),ed(t,a3,void 0);var r=eU(),a=r.getPropagationContext();r.setPropagationContext(k(S({},a),{traceId:c.spanContext().traceId,sampled:tj(c),dsc:t$(n)}))}});function u(){a&&["interactive","complete"].includes(a.readyState)&&t.emit("idleSpanEnableAutoFinish",c)}ed(t,a3,c),i&&a&&(a.addEventListener("readystatechange",function(){u()}),u())},r={name:void 0,source:void 0},a=R.document,i=S({},a0,t),o=i.enableInp,s=i.enableLongTask,c=i.enableLongAnimationFrame,u=i._experiments,l=u.enableInteractions,d=u.enableStandaloneClsSpans,p=u.enableStandaloneLcpSpans,v=i.beforeStartSpan,_=i.idleTimeout,E=i.finalTimeout,w=i.childSpanTimeout,x=i.markBackgroundSpan,O=i.traceFetch,P=i.traceXHR,C=i.trackFetchStreamPerformance,D=i.shouldCreateSpanForRequest,L=i.enableHTTPTimings,N=i.ignoreResourceSpans,j=i.ignorePerformanceApiSpans,M=i.instrumentPageLoad,U=i.instrumentNavigation,F=i.linkPreviousTrace,q=i.consistentTraceSampling,B=i.onRequestSpanStart;return{name:"BrowserTracing",setup:function(t){function r(){var e=t[a3];e&&!tN(e).timestamp&&(n3&&eo.log("[Tracing] Finishing current active span with op: ".concat(tN(e).op)),e.setAttribute(tf,"cancelled"),e.end())}rM||(rM=!0,rt(rU),ra(rU)),e=function(e){var t=e.recordClsStandaloneSpans,n=e.recordLcpStandaloneSpans,r=aD();if(r&&ex()){r.mark&&R.performance.mark("sentry-tracing-init");var a=aT("fid",function(e){var t=e.metric,n=t.entries[t.entries.length-1];if(n){var r=aL(ex()),a=aL(n.startTime);aM.fid={value:t.value,unit:"millisecond"},aM["mark.fid"]={value:r+a,unit:"second"}}},ak,f),i=n?function(){var e,t,n=0;if(function(){try{return PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")}catch(e){return!1}}()){var r=!1,a=ay(function(t){var r=t.metric,a=r.entries[r.entries.length-1];a&&(n=r.value,e=a)},!0);r5(function(){i()}),setTimeout(function(){var e=eB();if(e){var n=e.on("startNavigationSpan",function(){i(),null==n||n()}),r=tz();if(r){var a=tH(r);"pageload"===tN(a).op&&(t=a.spanContext().spanId)}}},0)}function i(){var i,o,s,c,u,l,d,p,f,v;r||(r=!0,t&&(i=n,o=e,s=t,rE&&eo.log("Sending LCP span (".concat(i,")")),l=aL((ex()||0)+((null==o?void 0:o.startTime)||0)),d=eU().getScopeData().transactionName,p=o?ee(o.element):"Largest contentful paint",b(c={},tp,"auto.http.browser.lcp"),b(c,td,"ui.webvital.lcp"),b(c,ty,0),b(c,"sentry.pageload.span_id",s),f=c,o&&(f["lcp.element"]=ee(o.element),f["lcp.id"]=o.id,f["lcp.url"]=o.url,f["lcp.loadTime"]=o.loadTime,f["lcp.renderTime"]=o.renderTime,f["lcp.size"]=o.size),(v=aR({name:p,transaction:d,attributes:f,startTime:l}))&&(v.addEvent("lcp",(b(u={},tv,"millisecond"),b(u,th,i),u)),v.end(l))),a())}}():ay(function(e){var t=e.metric,n=t.entries[t.entries.length-1];n&&(aM.lcp={value:t.value,unit:"millisecond"},g=n)},!0),o=aT("ttfb",function(e){var t=e.metric;t.entries[t.entries.length-1]&&(aM.ttfb={value:t.value,unit:"millisecond"})},aw,h),s=t?function(){var e,t,n=0;if(function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){return!1}}()){var r=!1,a=ag(function(t){var r=t.metric,a=r.entries[r.entries.length-1];a&&(n=r.value,e=a)},!0);r5(function(){i()}),setTimeout(function(){var e=eB();if(e){var n=e.on("startNavigationSpan",function(){i(),null==n||n()}),r=tz();if(r){var a=tH(r);"pageload"===tN(a).op&&(t=a.spanContext().spanId)}}},0)}function i(){var i,o,s,c,u,l,d,p,f,v,h;r||(r=!0,t&&(i=n,o=e,s=t,rE&&eo.log("Sending CLS span (".concat(i,")")),d=aL((ex()||0)+((null==o?void 0:o.startTime)||0)),p=eU().getScopeData().transactionName,f=o?ee(null===(c=o.sources[0])||void 0===c?void 0:c.node):"Layout shift",b(u={},tp,"auto.http.browser.cls"),b(u,td,"ui.webvital.cls"),b(u,ty,(null==o?void 0:o.duration)||0),b(u,"sentry.pageload.span_id",s),v=u,(null==o?void 0:o.sources)&&o.sources.forEac
1h(function(e,t){v["cls.source.".concat(t+1)]=ee(e.node)}),(h=aR({name:f,transaction:p,attributes:v,startTime:d}))&&(h.addEvent("cls",(b(l={},tv,""),b(l,th,i),l)),h.end(d))),a())}}():ag(function(e){var t=e.metric,n=t.entries[t.entries.length-1];n&&(aM.cls={value:t.value,unit:""},y=n)},!0);return function(){a(),null==i||i(),o(),null==s||s()}}return function(){}}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:p||!1}),o&&aD()&&ex()&&aT("inp",az,ax,m),c&&R.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(function(e){var t=tz();if(t){var n=!0,r=!1,a=void 0;try{for(var i,o=e.getEntries()[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;if(s.scripts[0]){var c=aL(ex()+s.startTime),u=tN(t),l=u.start_timestamp,d=u.op;if("navigation"!==d||!l||!(c<l)){var p=aL(s.duration),f=b({},tp,"auto.ui.browser.metrics"),v=s.scripts[0],h=v.invoker,m=v.invokerType,g=v.sourceURL,y=v.sourceFunctionName,_=v.sourceCharPosition;f["browser.script.invoker"]=h,f["browser.script.invoker_type"]=m,g&&(f["code.filepath"]=g),y&&(f["code.function"]=y),-1!==_&&(f["browser.script.source_char_position"]=_),aC(t,c,c+p,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}}).observe({type:"long-animation-frame",buffered:!0}):s&&a_("longtask",function(e){var t=e.entries,n=tz();if(n){var r=tN(n),a=r.op,i=r.start_timestamp,o=!0,s=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=u.value,p=aL(ex()+d.startTime),f=aL(d.duration);"navigation"===a&&i&&p<i||aC(n,p,p+f,{name:"Main UI thread blocked",op:"ui.long-task",attributes:b({},tp,"auto.ui.browser.metrics")})}}catch(e){s=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw c}}}}),l&&a_("event",function(e){var t=e.entries,n=tz();if(n){var r=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value;if("click"===c.name){var u=aL(ex()+c.startTime),l=aL(c.duration),d={name:ee(c.target),op:"ui.interaction.".concat(c.name),startTime:u,attributes:b({},tp,"auto.ui.browser.metrics")},p=en(c.target);p&&(d.attributes["ui.component_name"]=p),aC(n,u,u+l,d)}}}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}}}),t.on("startNavigationSpan",function(e){if(eB()===t){r(),eF().setPropagationContext({traceId:eg(),sampleRand:Math.random()});var a=eU();a.setPropagationContext({traceId:eg(),sampleRand:Math.random()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),n(t,S({op:"navigation"},e))}}),t.on("startPageLoadSpan",function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eB()===t){r();var i=function(e,t){var n=function(e){if(e){var t,n=e.match(tP);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}}(e),r=tS(t);if(!(null==n?void 0:n.traceId))return{traceId:eg(),sampleRand:Math.random()};var a=function(e,t){var n=tO(null==t?void 0:t.sample_rand);if(void 0!==n)return n;var r=tO(null==t?void 0:t.sample_rate);return r&&(null==e?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,r);return r&&(r.sample_rand=a.toString()),{traceId:n.traceId,parentSpanId:n.parentSpanId,sampled:n.parentSampled,dsc:r||{},sampleRand:a}}(a.sentryTrace||a2("sentry-trace"),a.baggage||a2("baggage")),o=eU();o.setPropagationContext(i),o.setSDKProcessingMetadata({normalizedRequest:nA()}),n(t,S({op:"pageload"},e))}})},afterAllSetup:function(e){var t,n,a,i,s,c,u,d,p,f,v,h,m,g,y=et();if("off"!==F&&function(e,t){var n=t.linkPreviousTrace,r=t.consistentTraceSampling,a="session-storage"===n,i=a?function(){try{var e,t=null===(e=R.sessionStorage)||void 0===e?void 0:e.getItem(aW);return JSON.parse(t)}catch(e){return}}():void 0;e.on("spanStart",function(e){if(tH(e)===e){var t=eU().getPropagationContext();i=function(e,t,n){var r=tN(t),a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{var e,t,a;return null!==(a=Number(null===(e=n.dsc)||void 0===e?void 0:e.sample_rate))&&void 0!==a?a:Number(null===(t=r.data)||void 0===t?void 0:t[tu])}catch(e){return 0}}(),sampleRand:n.sampleRand};if(!e)return a;var i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(n3&&eo.info("Adding previous_trace ".concat(i," link to span ").concat(S({op:r.op},t.spanContext()))),t.addLink({context:i,attributes:b({},"sentry.link.type","previous_trace")}),t.setAttribute("sentry.previous_trace","".concat(i.traceId,"-").concat(i.spanId,"-").concat(aJ(i)?1:0))),a)}(i,e,t),a&&function(e){try{R.sessionStorage.setItem(aW,JSON.stringify(e))}catch(e){n3&&eo.warn("Could not store previous trace in sessionStorage",e)}}(i)}});var o=!0;r&&e.on("beforeSampling",function(e){if(i){var t=eU(),n=t.getPropagationContext();if(o&&n.parentSpanId){o=!1;return}t.setPropagationContext(k(S({},n),{dsc:k(S({},n.dsc),{sample_rate:String(i.sampleRate),sampled:String(aJ(i.spanContext))}),sampleRand:i.sampleRand})),e.parentSampled=aJ(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes=k(S({},e.spanAttributes),b({},tl,i.sampleRate))}})}(e,{linkPreviousTrace:F,consistentTraceSampling:q}),R.location){if(M){var I,A,N=ex();I={name:R.location.pathname,startTime:N?N/1e3:void 0,attributes:(b(A={},tc,"url"),b(A,tp,"auto.pageload.browser"),A)},e.emit("startPageLoadSpan",I,void 0),eU().setTransactionName(I.name),e[a3]}U&&n1(function(t){var n,r,a=t.to;if(void 0===t.from&&(null==y?void 0:y.indexOf(a))!==-1){y=void 0;return}y=void 0;var i=n$(a);n={name:(null==i?void 0:i.pathname)||R.location.pathname,attributes:(b(r={},tc,"url"),b(r,tp,"auto.navigation.browser"),r)},e.emit("startNavigationSpan",n),eU().setTransactionName(n.name),e[a3],eU().setSDKProcessingMetadata({normalizedRequest:k(S({},nA()),{url:a})})})}x&&(R.document?R.document.addEventListener("visibilitychange",function(){var e=tz();if(e){var t=tH(e);if(R.document.hidden&&t){var n="cancelled",r=tN(t),a=r.op,i=r.status;n3&&eo.log("[Tracing] Transaction: ".concat(n," -> since tab moved to the background, op: ").concat(a)),i||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}}):n3&&eo.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&R.document&&addEventListener("click",function(){var n="ui.action.click",a=e[a3];if(a&&["navigation","pageload"].includes(tN(a).op)){n3&&eo.warn("[Tracing] Did not create ".concat(n," span because a pageload or navigation span is in progress."));return}
1if(t&&(t.setAttribute(tf,"interactionInterrupted"),t.end(),t=void 0),!r.name){n3&&eo.warn("[Tracing] Did not create ".concat(n," transaction because _latestRouteName is missing."));return}t=rj({name:r.name,op:n,attributes:b({},tc,r.source||"url")},{idleTimeout:_,finalTimeout:E,childSpanTimeout:w})},{once:!1,capture:!0}),o&&(a_("event",g=function(e){var t=e.entries,n=tz(),r=n&&tH(n);t.forEach(function(e){if("duration"in e&&r){var t=e.interactionId;if(null!=t&&!aB.has(t)){if(aq.length>10){var n=aq.shift();aB.delete(n)}aq.push(t),aB.set(t,r)}}})}),a_("first-input",g)),i=(a=S({},aX,{traceFetch:O,traceXHR:P,trackFetchStreamPerformance:C,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:D,enableHTTPTimings:L,onRequestSpanStart:B})).traceFetch,s=a.traceXHR,c=a.trackFetchStreamPerformance,u=a.shouldCreateSpanForRequest,d=a.enableHTTPTimings,p=a.tracePropagationTargets,f=a.onRequestSpanStart,v="function"==typeof u?u:function(e){return!0},h=function(e){return function(e,t){var n=et();if(n){try{r=new URL(e,n),a=new URL(n).origin}catch(e){return!1}var r,a,i=r.origin===a;return t?eu(r.toString(),t)||i&&eu(r.pathname,t):i}var o=!!e.match(/^\/(?!\/)/);return t?eu(e,t):o}(e,p)},m={},i&&(e.addEventProcessor(function(e){return"transaction"===e.type&&e.spans&&e.spans.forEach(function(e){if("http.client"===e.op){var t=aY.get(e.span_id);t&&(e.timestamp=t/1e3,aY.delete(e.span_id))}}),e}),c&&(nL(n="fetch-body-resolved",function(e){if(e.response){var t=a$.get(e.response);t&&e.endTimestamp&&aY.set(t,e.endTimestamp)}}),nN(n,function(){return nq(nH)})),nF(function(e){var t=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(e.fetchData){var i,o,s,c=e.fetchData,u=c.method,l=c.url,d=tE()&&t(l);if(e.endTimestamp&&d){var p=e.fetchData.__span;if(!p)return;var f=r[p];f&&(function(e,t){if(t.response){tw(e,t.response.status);var n,r=(null===(n=t.response)||void 0===n?void 0:n.headers)&&t.response.headers.get("content-length");if(r){var a=parseInt(r);a>0&&e.setAttribute("http.response_content_length",a)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(f,e),delete r[p]);return}var v=!!tz(),h=d&&v?rR({name:(i=n$(l))?"".concat(u," ").concat(function(e){if(nV(e))return e.pathname;var t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(i)):u,attributes:(b(o={url:l,type:"fetch","http.method":u},tp,a),b(o,td,"http.client"),s=o,i&&(nV(i)||(s["http.url"]=i.href,s["server.address"]=i.host),i.search&&(s["http.query"]=i.search),i.hash&&(s["http.fragment"]=i.hash)),s)}):new rT;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)){var m=e.args[0],g=e.args[1]||{},y=function(e,t,n){var r=aG({span:n}),a=r["sentry-trace"],i=r.baggage;if(a){var o=t.headers||(Q(e)?e.headers:void 0);if(!o)return S({},r);if("undefined"!=typeof Headers&&K(o,Headers)){var s=new Headers(o);if(s.get("sentry-trace")||s.set("sentry-trace",a),i){var c=s.get("baggage");c?aV(c)||s.set("baggage","".concat(c,",").concat(i)):s.set("baggage",i)}return s}if(Array.isArray(o)){var u=T(o);o.find(function(e){return"sentry-trace"===e[0]})||u.push(["sentry-trace",a]);var l=o.find(function(e){return"baggage"===e[0]&&aV(e[1])});return i&&!l&&u.push(["baggage",i]),u}var d="sentry-trace"in o?o["sentry-trace"]:void 0,p="baggage"in o?o.baggage:void 0,f=p?Array.isArray(p)?T(p):[p]:[],v=p&&(Array.isArray(p)?p.find(function(e){return aV(e)}):aV(p));return i&&!v&&f.push(i),k(S({},o),{"sentry-trace":null!=d?d:a,baggage:f.length>0?f.join(","):void 0})}}(m,g,tE()&&v?h:void 0);y&&(e.args[1]=g,g.headers=y)}var _=eB();if(_){var E={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};_.emit("beforeOutgoingRequestSpan",h,E)}return h}}(e,v,h,m);if(e.response&&e.fetchData.__span&&a$.set(e.response,e.fetchData.__span),t){var n=aQ(e.fetchData.url),r=n?nY(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),d&&aK(t),null==f||f(t,{headers:e.headers})}})),s&&nQ(function(e){var t,n,r=function(e,t,n,r){var a,i=e.xhr,o=null==i?void 0:i[nZ];if(i&&!i.__sentry_own_request__&&o){var s,c,u,l=o.url,d=o.method,p=tE()&&t(l);if(e.endTimestamp&&p){var f=i.__sentry_xhr_span_id__;if(!f)return;var v=r[f];v&&void 0!==o.status_code&&(tw(v,o.status_code),v.end(),delete r[f]);return}var h=aQ(l),m=h?nY(h):nY(l),g=l.split(/[?#]/,1)[0],y=!!tz(),_=p&&y?rR({name:"".concat(d," ").concat(g),attributes:S((b(a={url:l,type:"xhr","http.method":d,"http.url":h,"server.address":null==m?void 0:m.host},tp,"auto.http.browser"),b(a,td,"http.client"),a),(null==m?void 0:m.search)&&{"http.query":null==m?void 0:m.search},(null==m?void 0:m.hash)&&{"http.fragment":null==m?void 0:m.hash})}):new rT;i.__sentry_xhr_span_id__=_.spanContext().spanId,r[i.__sentry_xhr_span_id__]=_,n(l)&&(c=(s=aG({span:tE()&&y?_:void 0}))["sentry-trace"],u=s.baggage,c&&function(e,t,n){var r,a=null===(r=e.__sentry_xhr_v3__)||void 0===r?void 0:r.request_headers;if(null==a||!a["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){var i=null==a?void 0:a.baggage;i&&i.split(",").some(function(e){return e.trim().startsWith("sentry-")})||e.setRequestHeader("baggage",n)}}catch(e){}}(i,c,u));var k=eB();return k&&k.emit("beforeOutgoingRequestSpan",_,e),_}}(e,v,h,m);
1if(r){d&&aK(r);try{t=new Headers(null===(n=e.xhr.__sentry_xhr_v3__)||void 0===n?void 0:n.request_headers)}catch(e){}null==f||f(r,{headers:t})}})}}};function a2(e){var t=R.document,n=null==t?void 0:t.querySelector("meta[name=".concat(e,"]"));return(null==n?void 0:n.getAttribute("content"))||void 0}var a3="_sentry_idleSpan";function a4(){var e,t,r,a,i,o,s,c,u;!function(){var e,t,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!a.skipBrowserExtensionCheck&&!!function(){if(void 0===R.window||R.nw)return!1;var e,t=R.chrome||R.browser;if(!(null==t?void 0:null===(e=t.runtime)||void 0===e?void 0:e.id))return!1;var n=et();return!(R===R.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(function(e){return n.startsWith("".concat(e,"://"))}))}()&&(n3&&ei(function(){console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),o=k(S({},a),{enabled:!i&&a.enabled,stackParser:Array.isArray(t=a.stackParser||rb)?e0.apply(void 0,T(t)):t,integrations:function(e){var t,n,r=e.defaultIntegrations||[],a=e.integrations;if(r.forEach(function(e){e.isDefaultInstance=!0}),Array.isArray(a))n=T(r).concat(T(a));else if("function"==typeof a){var i=a(r);n=Array.isArray(i)?i:[i]}else n=r;return t={},n.forEach(function(e){var n=e.name,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}({integrations:a.integrations,defaultIntegrations:null==a.defaultIntegrations?[e$(),{name:"FunctionToString",setupOnce:function(){n=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=ef(this),i=eK.has(eB())&&void 0!==a?a:this;return n.apply(i,t)}}catch(e){}},setup:function(e){eK.set(e,!0)}},n9(),n4(),ro(),rd(),e5(),{name:"HttpContext",preprocessEvent:function(e){if(R.navigator||R.location||R.document){var t,n=nA(),r=S({},n.headers,null===(t=e.request)||void 0===t?void 0:t.headers);e.request=k(S({},n,e.request),{headers:r})}}},{name:"BrowserSession",setupOnce:function(){if(void 0===R.document){n3&&eo.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}nw({ignoreDuration:!0}),nI(),n1(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&(nw({ignoreDuration:!0}),nI())})}}]:a.defaultIntegrations}),transport:a.transport||rx});!0===o.debug&&(I?eo.enable():ei(function(){console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eU().update(o.initialScope),e=r=new nC(o),eU().setClient(e),r.init()}({dsn:"https://[email protected]/2",release:"[email protected]",integrations:[a1({tracesSampleRate:.1})],tracesSampleRate:0,environment:(null===(e=window.Shopify)||void 0===e?void 0:e.designMode)?"development":"production",allowUrls:[/https?:\/\/au\.lightforce\.com/,/https?:\/\/lightforce-au\.myshopify\.com/,/https?:\/\/cdn\.shopify\.com\/s\/files\//,/fancyproductdesigner/],denyUrls:[/facebook\.com|connect\.facebook\.net/,/doubleclick\.net|googleads/,/google-analytics\.com|googletagmanager\.com/,/hotjar\.com/,/api-cdn\.yotpo\.com|staticw2\.yotpo\.com/,/monorail-edge\.shopifysvc\.com/,/otlp-http-production\.shopifysvc\.com/,/^chrome(-extension)?:\/\//,/^moz-extension:\/\//,/^safari-extension:\/\//,/ba_tracking\.js/,/web-pixels.*\/sandbox\//,/conversionbear\.com/,/merchant-center-analytics\.goog/,/googleadservices\.com/,/shop\.app/,/bpi\.zip\.co/],ignoreErrors:[/TypeError: Failed to fetch/,"TypeError: NetworkError when attempting to fetch resource","TypeError: cancelled",/TypeError: Load failed/,/Error loading Shopify features/,/load error:.*\/cdn\/shopi/,/The play\(\) request was interrupted/,/The operation was aborted/,"AbortError",/\(0 ?,? ?[a-z]\._\) is not a function/,/\(0 ?,? ?[a-z]\.[a-z]\) is not a function/,/is not a function\. \(In '\(0,[a-z]\._\)/,/[a-z]\.\_ is not a function/,/this\[r\(.*?\)\] is not a function/,/Failed to fetch recommendations/,/Failed to fetch '\/collections\//,/Syntax error, unrecognized expression: \.sb_variant_id_/,/window\.webkit\.messageHandlers/,/Failed to execute 'transaction' on 'IDBDatabase'/,/Failed to execute 'index' on 'IDBObjectStore'/,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","Script error.","Non-Error promise rejection captured",/^0$/,"Error: 0",/Unexpected token/,/Unexpected reserved word/,/await is a reserved identifier/,/Unexpected end of input/,"InvalidAccessError",/is not val
1id JSON$/,/Failed to execute 'sendBeacon'/,/SecurityError.*(?:localStorage|sessionStorage)/,/Java object is gone/,/Could not establish connection\. Receiving end does not exist/,"NotAllowedError",/Attempting to change the setter of an unconfigurable property/,/e\.target\.closest is not a function/,/\.at is not a function/,/DROPDOWN: Option.*provided type/,/getVisitorToken/,/\[object ProgressEvent\]/,/Identifier '.*' has already/,/Failed to execute 'createObjectStore' on 'IDBDatabase'/],beforeSend:function(e){var t,n;return(null===(n=e.exception)||void 0===n?void 0:null===(t=n.values)||void 0===t?void 0:t.length)?e.exception.values.every(function(e){return(!e.type||"?"===e.type)&&!e.value})||!e.exception.values.some(function(e){var t,n;return null===(n=e.stacktrace)||void 0===n?void 0:null===(t=n.frames)||void 0===t?void 0:t.some(function(e){return e.filename&&"<anonymous>"!==e.filename&&"<unknown>"!==e.filename})})?null:(window.Shopify&&(e.tags=k(S({},e.tags),{shopify_shop:window.Shopify.shop,shopify_currency:window.Shopify.currency,shopify_country:window.Shopify.country})),"undefined"!=typeof customerId&&customerId&&""!==customerId&&(e.user={id:customerId}),e):null}}),nE("shopify",{theme:window.Shopify.theme.name,page_type:(null===(t=document.body.className.match(/page-(\w+)/))||void 0===t?void 0:t[1])||"unknown",shop_domain:(null===(r=window.Shopify)||void 0===r?void 0:r.shop)||"unknown"}),i=function(){var e=navigator.userAgent,t="Unknown",n="Unknown";if(e.includes("Chrome")&&!e.includes("Edg")){t="Chrome";var r=e.match(/Chrome\/([0-9.]+)/);n=r?r[1]:"Unknown"}else if(e.includes("Edg")){t="Edge";var a=e.match(/Edg\/([0-9.]+)/);n=a?a[1]:"Unknown"}else if(e.includes("Firefox")){t="Firefox";var i=e.match(/Firefox\/([0-9.]+)/);n=i?i[1]:"Unknown"}else if(e.includes("Safari")&&!e.includes("Chrome")){t="Safari";var o=e.match(/Version\/([0-9.]+)/);n=o?o[1]:"Unknown"}return{name:t,version:n}}(),o=function(){var e=navigator.userAgent,t="Other",n="Unknown",r="Unknown",a="desktop";if(/iPhone/i.test(e)){t="iPhone",r="Apple",a="mobile";var i=e.match(/iPhone OS ([0-9_]+)/);n=i?"iPhone (iOS ".concat(i[1].replace(/_/g,"."),")"):"iPhone"}else if(/iPad/i.test(e))t="iPad",r="Apple",a="tablet",n="iPad";else if(/Android/i.test(e)){t="Android",a=/Mobile/i.test(e)?"mobile":"tablet";var o=e.match(/Android[^;]*;\s*([^;)]+)/);if(o){var s=o[1].trim();s.includes("Samsung")?r="Samsung":s.includes("Google")?r="Google":s.includes("OnePlus")&&(r="OnePlus"),n=s}}else/Windows Phone/i.test(e)&&(t="Windows Phone",r="Microsoft",a="mobile");return"ontouchstart"in window&&"desktop"===a&&(a="touch-desktop"),{family:t,model:n,brand:r,type:a}}(),s=function(){var e=navigator.userAgent,t="Unknown",n="Unknown";if(/Windows NT/i.test(e)){t="Windows";var r=e.match(/Windows NT ([0-9.]+)/);if(r){var a=r[1];n=({"10.0":"10","6.3":"8.1","6.2":"8","6.1":"7","6.0":"Vista"})[a]||a}}else if(/Mac OS X/i.test(e)){t="macOS";var i=e.match(/Mac OS X ([0-9_]+)/);n=i?i[1].replace(/_/g,"."):"Unknown"}else if(/Linux/i.test(e))t="Linux";else if(/Android/i.test(e)){t="Android";var o=e.match(/Android ([0-9.]+)/);n=o?o[1]:"Unknown"}else if(/iOS|iPhone OS/i.test(e)){t="iOS";var s=e.match(/iPhone OS ([0-9_]+)/);n=s?s[1].replace(/_/g,"."):"Unknown"}return{name:t,version:n}}(),c={width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio||1,colorDepth:screen.colorDepth,orientation:(null===(a=screen.orientation)||void 0===a?void 0:a.type)||"unknown"},u=function(){var e={connection:"unknown",memory:"unknown",timing:{}};if("connection"in navigator){var t=navigator.connection;e.connection={effective_type:t.effectiveType,downlink:t.downlink,rtt:t.rtt,save_data:t.saveData}}try{var n=performance.getEntriesByType("navigation"),r=performance.getEntriesByType("paint"),a=function(e){return e&&!(e<0)&&isFinite(e)?e<1e3?"".concat(Math.round(e),"ms"):e<6e4?"".concat((e/1e3).toFixed(2),"s"):"".concat((e/6e4).toFixed(2),"min"):"N/A"};if(n.length>0){var i=n[0],o=i.domainLookupEnd-i.domainLookupStart,s=i.connectEnd-i.connectStart,c=i.loadEventEnd>0?i.loadEventEnd-i.fetchStart:-1,u=i.domContentLoadedEventEnd-i.fetchStart,l=i.responseStart-i.requestStart,d=i.domComplete-i.domLoading,p=r.find(function(e){return"first-paint"===e.name}),f=r.find(function(e){return"first-contentful-paint"===e.name});e.timing={dns_lookup:a(o),tcp_connect:a(s),page_load:a(c),dom_ready:a(u),first_byte:a(l),dom_processing:a(d),first_paint:p?a(p.startTime):"N/A",first_contentful_paint:f?a(f.startTime):"N/A",raw:{dns_lookup:Math.round(o),tcp_connect:Math.round(s),page_load:c>0?Math.round(c):-1,dom_ready:Math.round(u),first_byte:Math.round(l),dom_processing:Math.round(d),navigation_type:i.type}}}else e.timing={error:"Navigation timing not available"}}catch(t){e.timing={error:"Failed to get performance timing"},console.warn("Performance timing error:",t)}return e}(),nE("browser",{name:i.name,version:i.version,user_agent:navigator.userAgent,language:navigator.language,languages:navigator.languages,cookies_enabled:navigator.cookieEnabled,do_not_track:navigator.doNotTrack,online:navigator.onLine}),nE("device",{family:o.family,model:o.model,brand:o.brand,type:o.type,memory:navigator.deviceMemory||"unknown",cores:navigator.hardwareConcurrency||"unknown",touch_support:"ontouchstart"in window}),nE("os",{name:s.name,version:s.version,platform:navigator.platform}),nE("screen",{width:c.width,height:c.height,availWidth:c.availWi
1dth,availHeight:c.availHeight,pixelRatio:c.pixelRatio,colorDepth:c.colorDepth,orientation:c.orientation}),nE("performance",{connection:u.connection,memory:u.memory,timing:u.timing}),window.location.search.includes("test-sentry")&&(nS(Error("Bugsink test - Error thrown on purpose")),console.log("[Sentry] Test error sent to Bugsink"))}!function(){try{a4(),window.LightforceErrorTracking={init:a4}}catch(e){console.error("Failed to initialize error tracking:",e)}}()}();

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.