!function(e){function t(t){for(var r,s,a=t[0],u=t[1],c=t[2],p=0,d=[];p<a.length;p++)s=a[p],Object.prototype.hasOwnProperty.call(i,s)&&i[s]&&d.push(i[s][0]),i[s]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(l&&l(t);d.length;)d.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==i[u]&&(r=!1)}r&&(o.splice(t--,1),e=s(s.s=n[0]))}return e}var r={},i={"error-handler":0},o=[];function s(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=r,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/js/cm/dist/entrypoints/";var a=window.webpackJsonp=window.webpackJsonp||[],u=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var l=u;o.push([1599,"cm-commons"]),n()}({102:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobalObject=function(){return(0,r.isNodeEnv)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i};var r=n(293),i={}}).call(this,n(50))},103:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatus=void 0,t.SpanStatus=r,function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(t.SpanStatus=r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(t.SpanStatus=r={}))},104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasTracingEnabled=function(e){void 0===e&&(e=null===(t=(0,r.getCurrentHub)().getClient())||void 0===t?void 0:t.getOptions());var t;if(!e)return!1;return"tracesSampleRate"in e||"tracesSampler"in e},t.extractTraceparentData=function(e){var t=e.match(o);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}return},t.getActiveTransaction=function(e){void 0===e&&(e=(0,r.getCurrentHub)());var t,n;return null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()},t.msToSec=function(e){return e/1e3},t.secToMs=function(e){return 1e3*e},Object.defineProperty(t,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return i.stripUrlQueryAndFragment}}),t.TRACEPARENT_REGEXP=void 0;var r=n(85),i=n(16),o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");t.TRACEPARENT_REGEXP=o},131:function(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){try{return e instanceof t}catch(e){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.isError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return i(e,Error)}},t.isErrorEvent=function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},t.isDOMError=function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},t.isDOMException=function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isPrimitive=function(e){return null===e||"object"!=typeof e&&"function"!=typeof e},t.isPlainObject=r,t.isEvent=function(e){return"undefined"!=typeof Event&&i(e,Event)},t.isElement=function(e){return"undefined"!=typeof Element&&i(e,Element)},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isThenable=function(e){return Boolean(e&&e.then&&"function"==typeof e.then)},t.isSyntheticEvent=function(e){return r(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},t.isInstanceOf=i},158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldIgnoreOnError=function(){return a>0},t.ignoreNextOnError=u,t.wrap=function e(t,n,s){void 0===n&&(n={});if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var a=function(){var a=Array.prototype.slice.call(arguments);try{s&&"function"==typeof s&&s.apply(this,arguments);var c=a.map((function(t){return e(t,n)}));return t.handleEvent?t.handleEvent.apply(this,c):t.apply(this,c)}catch(e){throw u(),(0,i.withScope)((function(t){t.addEventProcessor((function(e){var t=(0,r.__assign)({},e);return n.mechanism&&((0,o.addExceptionTypeValue)(t,void 0,void 0),(0,o.addExceptionMechanism)(t,n.mechanism)),t.extra=(0,r.__assign)((0,r.__assign)({},t.extra),{arguments:a}),t})),(0,i.captureException)(e)})),e}};try{for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(a[c]=t[c])}catch(e){}t.prototype=t.prototype||{},a.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:a}),Object.defineProperties(a,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:function(){return t.name}})}catch(e){}return a},t.injectReportDialog=function(e){void 0===e&&(e={});if(!s.document)return;if(!e.eventId)return void o.logger.error("Missing eventId option in showReportDialog call");if(!e.dsn)return void o.logger.error("Missing dsn option in showReportDialog call");var t=s.document.createElement("script");t.async=!0,t.src=new i.API(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad);var n=s.document.head||s.document.body;n&&n.appendChild(t)};var r=n(25),i=n(58),o=n(16),s=(0,o.getGlobalObject)(),a=0;function u(){a+=1,setTimeout((function(){a-=1}))}},1599:function(e,t,n){n(32),e.exports=n(1600)},16:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1610);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var i=n(520);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var o=n(1611);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var s=n(294);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var a=n(102);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var u=n(1613);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var c=n(131);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var l=n(295);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var p=n(522);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var d=n(1614);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var f=n(293);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var h=n(521);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})}));var g=n(1615);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var _=n(1616);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})}));var v=n(296);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var m=n(297);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})}));var y=n(523);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var b=n(524);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})}));var S=n(1617);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}})}))},1600:function(e,t,n){"use strict";(function(e){var t=n(3)(n(1601)),r=n(1640);if(CM&&"SETTINGS"in CM&&"sentry"in CM.SETTINGS&&"dsn"in CM.SETTINGS.sentry){var i=CM.SETTINGS.sentry,o=i.dsn,s=i.environment,a=i.release;t.init({dsn:o,environment:s,release:a,maxBreadcrumbs:50,debug:"development"===s,sampleRate:"development"===s?1:.01,tracesSampleRate:"development"===s?1:.01,initialScope:function(e){if(("CLDRLOCALE"in CM||"LANGUAGECODE"in CM)&&e.setContext("i18n",{locale:CM.CLDRLOCALE||null,languageCode:CM.LANGUAGECODE||null}),"CM_VERSION"in CM&&e.setTag("cm_version",CM.CM_VERSION),"USER"in CM){var t={};"type"in CM.USER&&(t.type=CM.USER.type),"sessionID"in CM.USER&&(t.sessionID=CM.USER.sessionID),"identifier"in CM.USER&&(t.id=CM.USER.identifier),"appName"in CM.USER&&(t.username=CM.USER.appName),e.setUser(t)}return e},integrations:[new r.Integrations.BrowserTracing({tracingOrigins:["localhost",/^\//]})]}),e.CMSentry=t}}).call(this,n(50))},1601:function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0});var i={Integrations:!0,Transports:!0};t.Transports=t.Integrations=void 0;var o=n(25),s=n(1602);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=n(58),u=n(16),c=r(n(301)),l=r(n(530));t.Transports=l;var p={},d=(0,u.getGlobalObject)();d.Sentry&&d.Sentry.Integrations&&(p=d.Sentry.Integrations);var f=(0,o.__assign)((0,o.__assign)((0,o.__assign)({},p),a.Integrations),c);t.Integrations=f},1602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return r.Severity}}),Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return r.Status}}),Object.defineProperty(t,"addGlobalEventProcessor",{enumerable:!0,get:function(){return i.addGlobalEventProcessor}}),Object.defineProperty(t,"addBreadcrumb",{enumerable:!0,get:function(){return i.addBreadcrumb}}),Object.defineProperty(t,"captureException",{enumerable:!0,get:function(){return i.captureException}}),Object.defineProperty(t,"captureEvent",{enumerable:!0,get:function(){return i.captureEvent}}),Object.defineProperty(t,"captureMessage",{enumerable:!0,get:function(){return i.captureMessage}}),Object.defineProperty(t,"configureScope",{enumerable:!0,get:function(){return i.configureScope}}),Object.defineProperty(t,"getHubFromCarrier",{enumerable:!0,get:function(){return i.getHubFromCarrier}}),Object.defineProperty(t,"getCurrentHub",{enumerable:!0,get:function(){return i.getCurrentHub}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return i.Hub}}),Object.defineProperty(t,"makeMain",{enumerable:!0,get:function(){return i.makeMain}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"startTransaction",{enumerable:!0,get:function(){return i.startTransaction}}),Object.defineProperty(t,"SDK_VERSION",{enumerable:!0,get:function(){return i.SDK_VERSION}}),Object.defineProperty(t,"setContext",{enumerable:!0,get:function(){return i.setContext}}),Object.defineProperty(t,"setExtra",{enumerable:!0,get:function(){return i.setExtra}}),Object.defineProperty(t,"setExtras",{enumerable:!0,get:function(){return i.setExtras}}),Object.defineProperty(t,"setTag",{enumerable:!0,get:function(){return i.setTag}}),Object.defineProperty(t,"setTags",{enumerable:!0,get:function(){return i.setTags}}),Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return i.setUser}}),Object.defineProperty(t,"withScope",{enumerable:!0,get:function(){return i.withScope}}),Object.defineProperty(t,"BrowserClient",{enumerable:!0,get:function(){return o.BrowserClient}}),Object.defineProperty(t,"injectReportDialog",{enumerable:!0,get:function(){return s.injectReportDialog}}),Object.defineProperty(t,"eventFromException",{enumerable:!0,get:function(){return a.eventFromException}}),Object.defineProperty(t,"eventFromMessage",{enumerable:!0,get:function(){return a.eventFromMessage}}),Object.defineProperty(t,"defaultIntegrations",{enumerable:!0,get:function(){return u.defaultIntegrations}}),Object.defineProperty(t,"forceLoad",{enumerable:!0,get:function(){return u.forceLoad}}),Object.defineProperty(t,"init",{enumerable:!0,get:function(){return u.init}}),Object.defineProperty(t,"lastEventId",{enumerable:!0,get:function(){return u.lastEventId}}),Object.defineProperty(t,"onLoad",{enumerable:!0,get:function(){return u.onLoad}}),Object.defineProperty(t,"showReportDialog",{enumerable:!0,get:function(){return u.showReportDialog}}),Object.defineProperty(t,"flush",{enumerable:!0,get:function(){return u.flush}}),Object.defineProperty(t,"close",{enumerable:!0,get:function(){return u.close}}),Object.defineProperty(t,"wrap",{enumerable:!0,get:function(){return u.wrap}}),Object.defineProperty(t,"SDK_NAME",{enumerable:!0,get:function(){return c.SDK_NAME}});var r=n(51),i=n(58),o=n(528),s=n(158),a=n(298),u=n(1638),c=n(1639)},1603:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,t.LogLevel=r,function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Debug=2]="Debug",e[e.Verbose=3]="Verbose"}(r||(t.LogLevel=r={}))},1604:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RequestSessionStatus=t.SessionStatus=void 0,t.SessionStatus=r,function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(r||(t.SessionStatus=r={})),t.RequestSessionStatus=i,function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(i||(t.RequestSessionStatus=i={}))},1605:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0,t.Severity=r,function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(t.Severity=r={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(t.Severity=r={}))},1606:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Status=void 0,t.Status=r,function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(r||(t.Status=r={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(r||(t.Status=r={}))},1607:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionSamplingMethod=void 0,t.TransactionSamplingMethod=r,function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(t.TransactionSamplingMethod=r={}))},1608:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Outcome=void 0,t.Outcome=r,function(e){e.BeforeSend="before_send",e.EventProcessor="event_processor",e.NetworkError="network_error",e.QueueOverflow="queue_overflow",e.RateLimitBackoff="ratelimit_backoff",e.SampleRate="sample_rate"}(r||(t.Outcome=r={}))},1609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureException=function(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return o("captureException",e,{captureContext:t,originalException:e,syntheticException:n})},t.captureMessage=function(e,t){var n;try{throw new Error(e)}catch(e){n=e}var i="string"==typeof t?t:void 0,s="string"!=typeof t?{captureContext:t}:void 0;return o("captureMessage",e,i,(0,r.__assign)({originalException:e,syntheticException:n},s))},t.captureEvent=function(e){return o("captureEvent",e)},t.configureScope=function(e){o("configureScope",e)},t.addBreadcrumb=function(e){o("addBreadcrumb",e)},t.setContext=function(e,t){o("setContext",e,t)},t.setExtras=function(e){o("setExtras",e)},t.setTags=function(e){o("setTags",e)},t.setExtra=function(e,t){o("setExtra",e,t)},t.setTag=function(e,t){o("setTag",e,t)},t.setUser=function(e){o("setUser",e)},t.withScope=function(e){o("withScope",e)},t._callOnClient=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];o.apply(void 0,(0,r.__spread)(["_invokeClient",e],t))},t.startTransaction=function(e,t){return o("startTransaction",(0,r.__assign)({},e),t)};var r=n(25),i=n(85);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=(0,i.getCurrentHub)();if(o&&o[e])return o[e].apply(o,(0,r.__spread)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}},1610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forget=function(e){e.then(null,(function(e){console.error(e)}))}},1611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dsn=void 0;var r=n(25),i=n(294),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,s=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+s},e.prototype._fromString=function(e){var t=o.exec(e);if(!t)throw new i.SentryError("Invalid Dsn");var n=(0,r.__read)(t.slice(1),6),s=n[0],a=n[1],u=n[2],c=void 0===u?"":u,l=n[3],p=n[4],d=void 0===p?"":p,f="",h=n[5],g=h.split("/");if(g.length>1&&(f=g.slice(0,-1).join("/"),h=g.pop()),h){var _=h.match(/^\d+/);_&&(h=_[0])}this._fromComponents({host:l,pass:c,path:f,projectId:h,port:d,protocol:s,publicKey:a})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new i.SentryError("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new i.SentryError("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new i.SentryError("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new i.SentryError("Invalid Dsn: Invalid port "+this.port)},e}();t.Dsn=s},1612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPrototypeOf=void 0;var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e});t.setPrototypeOf=r},1613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addInstrumentationHandler=function(e){if(!e||"string"!=typeof e.type||"function"!=typeof e.callback)return;d[e.type]=d[e.type]||[],d[e.type].push(e.callback),function(e){if(f[e])return;switch(f[e]=!0,e){case"console":!function(){if(!("console"in p))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in p.console&&(0,u.fill)(p.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];h("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,p.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in p))return;var e=h.bind(null,"dom"),t=y(e,!0);p.document.addEventListener("click",t,!1),p.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=p[t]&&p[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.fill)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var a=y(e);s.handler=a,t.call(this,n,a,i)}s.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),(0,u.fill)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in p))return;var e=[],t=[],n=XMLHttpRequest.prototype;(0,u.fill)(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,a=r[1];o.__sentry_xhr__={method:(0,s.isString)(r[0])?r[0].toUpperCase():r[0],url:r[1]},(0,s.isString)(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var c=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var i=t.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(e){}h("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?(0,u.fill)(o,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return c(),e.apply(o,t)}})):o.addEventListener("readystatechange",c),n.apply(o,r)}})),(0,u.fill)(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.push(this),t.push(r),h("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!(0,l.supportsNativeFetch)())return;(0,u.fill)(p,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:g(t),url:_(t)},startTimestamp:Date.now()};return h("fetch",(0,i.__assign)({},r)),e.apply(p,t).then((function(e){return h("fetch",(0,i.__assign)((0,i.__assign)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw h("fetch",(0,i.__assign)((0,i.__assign)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!(0,l.supportsHistory)())return;var e=p.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.length>2?t[2]:void 0;if(i){var o=r,s=String(i);r=s,h("history",{from:o,to:s})}return e.apply(this,t)}}p.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=p.location.href,o=r;if(r=i,h("history",{from:o,to:i}),e)try{return e.apply(this,t)}catch(e){}},(0,u.fill)(p.history,"pushState",t),(0,u.fill)(p.history,"replaceState",t)}();break;case"error":b=p.onerror,p.onerror=function(e,t,n,r,i){return h("error",{column:r,error:i,line:n,msg:e,url:t}),!!b&&b.apply(this,arguments)};break;case"unhandledrejection":S=p.onunhandledrejection,p.onunhandledrejection=function(e){return h("unhandledrejection",e),!S||S.apply(this,arguments)};break;default:a.logger.warn("unknown instrumentation type:",e)}}(e.type)};var r,i=n(25),o=n(102),s=n(131),a=n(295),u=n(521),c=n(296),l=n(523),p=(0,o.getGlobalObject)(),d={},f={};function h(e,t){var n,r;if(e&&d[e])try{for(var o=(0,i.__values)(d[e]||[]),s=o.next();!s.done;s=o.next()){var u=s.value;try{u(t)}catch(t){a.logger.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+(0,c.getFunctionName)(u)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function g(e){return void 0===e&&(e=[]),"Request"in p&&(0,s.isInstanceOf)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function _(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in p&&(0,s.isInstanceOf)(e[0],Request)?e[0].url:String(e[0])}var v,m;function y(e,t){return void 0===t&&(t=!1),function(n){if(n&&m!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;void 0===v?(e({event:n,name:r,global:t}),m=n):function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(m,n)&&(e({event:n,name:r,global:t}),m=n),clearTimeout(v),v=p.setTimeout((function(){v=void 0}),1e3)}}}var b=null;var S=null},1614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuid4=function(){var e=(0,i.getGlobalObject)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.parseUrl=function(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],relative:t[5]+n+r}},t.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"},t.addExceptionTypeValue=function(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"},t.addExceptionMechanism=function(e,t){var n;if(!e.exception||!e.exception.values)return;var i=e.exception.values[0],o=i.mechanism;if(i.mechanism=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},{type:"generic",handled:!0}),o),t),t&&"data"in t){var s=(0,r.__assign)((0,r.__assign)({},null===(n=o)||void 0===n?void 0:n.data),t.data);i.mechanism.data=s}},t.parseSemver=function(e){var t=e.match(s)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}},t.parseRetryAfterHeader=function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);if(!isNaN(r))return r-e;return 6e4},t.addContextToFrame=function(e,t,n){void 0===n&&(n=5);var r=t.lineno||0,i=e.length,s=Math.max(Math.min(i,r-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map((function(e){return(0,o.snipLine)(e,0)})),t.context_line=(0,o.snipLine)(e[Math.min(i-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,i),s+1+n).map((function(e){return(0,o.snipLine)(e,0)}))},t.stripUrlQueryAndFragment=function(e){return e.split(/[\?#]/,1)[0]},t.checkOrSetAlreadyCaught=function(e){var t;if(null===(t=e)||void 0===t?void 0:t.__sentry_captured__)return!0;try{Object.defineProperty(e,"__sentry_captured__",{value:!0})}catch(e){}return!1};var r=n(25),i=n(102),o=n(297);var s=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/},1615:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=s,t.relative=function(e,t){e=s(e).substr(1),t=s(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,u=0;u<i;u++)if(n[u]!==r[u]){o=u;break}var c=[];for(u=o;u<n.length;u++)c.push("..");return(c=c.concat(r.slice(o))).join("/")},t.normalizePath=u,t.isAbsolute=c,t.join=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(e.join("/"))},t.dirname=function(e){var t=o(e),n=t[0],r=t[1];if(!n&&!r)return".";r&&(r=r.substr(0,r.length-1));return n+r},t.basename=function(e,t){var n=o(e)[2];t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length));return n};var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function o(e){var t=i.exec(e);return t?t.slice(1):[]}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i=!1,o=e.length-1;o>=-1&&!i;o--){var s=o>=0?e[o]:"/";s&&(n=s+"/"+n,i="/"===s.charAt(0))}return(i?"/":"")+(n=r(n.split("/").filter((function(e){return!!e})),!i).join("/"))||"."}function a(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function u(e){var t=c(e),n="/"===e.substr(-1),i=r(e.split("/").filter((function(e){return!!e})),!t).join("/");return i||t||(i="."),i&&n&&(i+="/"),(t?"/":"")+i}function c(e){return"/"===e.charAt(0)}},1616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromiseBuffer=void 0;var r=n(294),i=n(524),o=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;if(!this.isReady())return i.SyncPromise.reject(new r.SentryError("Not adding Promise due to buffer limit reached."));var n=e();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return t.remove(n)})).then(null,(function(){return t.remove(n).then(null,(function(){}))})),n},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new i.SyncPromise((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);i.SyncPromise.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}();t.PromiseBuffer=o},1617:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.browserPerformanceTimeOrigin=t._browserPerformanceTimeOriginMode=t.usingPerformanceAPI=t.timestampWithMs=t.timestampInSeconds=t.dateTimestampInSeconds=void 0;var r=n(102),i=n(293),o={nowSeconds:function(){return Date.now()/1e3}};var s=(0,i.isNodeEnv)()?function(){try{return(0,i.dynamicRequire)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.getGlobalObject)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=o.nowSeconds.bind(o);t.dateTimestampInSeconds=u;var c=a.nowSeconds.bind(a);t.timestampInSeconds=c;var l=c;t.timestampWithMs=l;var p,d=void 0!==s;t.usingPerformanceAPI=d,t._browserPerformanceTimeOriginMode=p;var f=function(){var e=(0,r.getGlobalObject)().performance;if(e&&e.now){var n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):36e5,s=o<36e5,a=e.timing&&e.timing.navigationStart,u="number"==typeof a?Math.abs(a+n-i):36e5;return s||u<36e5?o<=u?(t._browserPerformanceTimeOriginMode=p="timeOrigin",e.timeOrigin):(t._browserPerformanceTimeOriginMode=p="navigationStart",a):(t._browserPerformanceTimeOriginMode=p="dateNow",i)}t._browserPerformanceTimeOriginMode=p="none"}();t.browserPerformanceTimeOrigin=f}).call(this,n(98)(e))},1618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionFlusher=void 0;var r=n(51),i=n(16),o=n(526),s=function(){function e(e,t){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval((function(){return n.flush()}),1e3*this.flushTimeout),this._sessionAttrs=t}return e.prototype.sendSessionAggregates=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){i.logger.error("Error while sending session: "+e)})):i.logger.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.flush=function(){var e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(e))},e.prototype.getSessionAggregates=function(){var e=this,t=Object.keys(this._pendingAggregates).map((function(t){return e._pendingAggregates[parseInt(t)]})),n={attrs:this._sessionAttrs,aggregates:t};return(0,i.dropUndefinedKeys)(n)},e.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},e.prototype.incrementSessionStatusCount=function(){var e,t;if(this._isEnabled){var n=(0,o.getCurrentHub)().getScope(),r=null===(e=n)||void 0===e?void 0:e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),null===(t=n)||void 0===t||t.setRequestSession(void 0))}},e.prototype._incrementSessionStatusCount=function(e,t){var n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var i=this._pendingAggregates[n];switch(i.started||(i.started=new Date(n).toISOString()),e){case r.RequestSessionStatus.Errored:return i.errored=(i.errored||0)+1,i.errored;case r.RequestSessionStatus.Ok:return i.exited=(i.exited||0)+1,i.exited;case r.RequestSessionStatus.Crashed:return i.crashed=(i.crashed||0)+1,i.crashed}},e}();t.SessionFlusher=s},1619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.API=void 0;var r=n(16),i=function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new r.Dsn(e),this.metadata=t,this._tunnel=n}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return(0,r.urlEncode)(e)},e}();t.API=i},1620:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseClient=void 0;var r=n(25),i=n(85),o=n(51),s=n(16),a=n(1621),u="Not capturing exception because it's already been captured.",c=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new s.Dsn(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!(0,s.checkOrSetAlreadyCaught)(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}s.logger.log(u)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,s.isPrimitive)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r;if(!((null===(r=t)||void 0===r?void 0:r.originalException)&&(0,s.checkOrSetAlreadyCaught)(t.originalException))){var i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){i=e}))),i}s.logger.log(u)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?s.logger.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):s.logger.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(0,a.setupIntegrations)(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return s.logger.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,i,s=!1,a=!1,u=t.exception&&t.exception.values;if(u){a=!0;try{for(var c=(0,r.__values)(u),l=c.next();!l.done;l=c.next()){var p=l.value.mechanism;if(p&&!1===p.handled){s=!0;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}var d=e.status===o.SessionStatus.Ok;(d&&0===e.errors||d&&s)&&(e.update((0,r.__assign)((0,r.__assign)({},s&&{status:o.SessionStatus.Crashed}),{errors:e.errors||Number(a||s)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new s.SyncPromise((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var o=this,a=this.getOptions().normalizeDepth,u=void 0===a?3:a,c=(0,r.__assign)((0,r.__assign)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,s.uuid4)()),timestamp:e.timestamp||(0,s.dateTimestampInSeconds)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var l=t;n&&n.captureContext&&(l=i.Scope.clone(l).update(n.captureContext));var p=s.SyncPromise.resolve(c);return l&&(p=l.applyToEvent(c,n)),p.then((function(e){return"number"==typeof u&&u>0?o._normalizeEvent(e,u):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,r.__assign)((0,r.__assign)({},e),e.data&&{data:(0,s.normalize)(e.data,t)})}))}),e.user&&{user:(0,s.normalize)(e.user,t)}),e.contexts&&{contexts:(0,s.normalize)(e.contexts,t)}),e.extra&&{extra:(0,s.normalize)(e.extra,t)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var i=this.getOptions()._experiments;return(void 0===i?{}:i).ensureNoCircularStructures?(0,s.normalize)(n):n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,s.truncate)(e.message,a));var u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=(0,s.truncate)(u.value,a));var c=e.request;c&&c.url&&(c.url=(0,s.truncate)(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=(0,r.__spread)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){s.logger.error(e)}))},e.prototype._processEvent=function(e,t,n){var r,i,a=this,u=this.getOptions(),c=u.beforeSend,l=u.sampleRate,p=this.getTransport();if(!this._isEnabled())return s.SyncPromise.reject(new s.SentryError("SDK not enabled, will not capture event."));var d="transaction"===e.type;return!d&&"number"==typeof l&&Math.random()>l?(null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,o.Outcome.SampleRate,"event"),s.SyncPromise.reject(new s.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(e,n,t).then((function(n){var r,i;if(null===n)throw null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,o.Outcome.EventProcessor,e.type||"event"),new s.SentryError("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||d||!c)return n;var u=c(n,t);return a._ensureBeforeSendRv(u)})).then((function(t){var r,i;if(null===t)throw null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,o.Outcome.BeforeSend,e.type||"event"),new s.SentryError("`beforeSend` returned `null`, will not send event.");var u=n&&n.getSession&&n.getSession();return!d&&u&&a._updateSessionFromEvent(u,t),a._sendEvent(t),t})).then(null,(function(e){if(e instanceof s.SentryError)throw e;throw a.captureException(e,{data:{__sentry__:!0},originalException:e}),new s.SentryError("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e.prototype._ensureBeforeSendRv=function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,s.isThenable)(e))return e.then((function(e){if(!(0,s.isPlainObject)(e)&&null!==e)throw new s.SentryError(t);return e}),(function(e){throw new s.SentryError("beforeSend rejected with "+e)}));if(!(0,s.isPlainObject)(e)&&null!==e)throw new s.SentryError(t);return e},e}();t.BaseClient=c},1621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntegrationsToSetup=u,t.setupIntegration=c,t.setupIntegrations=function(e){var t={};return u(e).forEach((function(e){t[e.name]=e,c(e)})),Object.defineProperty(t,"initialized",{value:!0}),t},t.installedIntegrations=void 0;var r=n(25),i=n(85),o=n(16),s=[];function a(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function u(e){var t=e.defaultIntegrations&&(0,r.__spread)(e.defaultIntegrations)||[],n=e.integrations,i=(0,r.__spread)(a(t));Array.isArray(n)?i=(0,r.__spread)(i.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),a(n)):"function"==typeof n&&(i=n(i),i=Array.isArray(i)?i:[i]);var o=i.map((function(e){return e.name}));return-1!==o.indexOf("Debug")&&i.push.apply(i,(0,r.__spread)(i.splice(o.indexOf("Debug"),1))),i}function c(e){-1===s.indexOf(e.name)&&(e.setupOnce(i.addGlobalEventProcessor,i.getCurrentHub),s.push(e.name),o.logger.log("Integration installed: "+e.name))}t.installedIntegrations=s},1622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBackend=void 0;var r=n(16),i=n(527),o=function(){function e(e){this._options=e,this._options.dsn||r.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new r.SentryError("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new r.SentryError("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){r.logger.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){r.logger.error("Error while sending session: "+e)})):r.logger.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new i.NoopTransport},e}();t.BaseBackend=o},1623:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sessionToSentryRequest=function(e,t){var n=i(t),o=JSON.stringify((0,r.__assign)((0,r.__assign)({sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()})),s="aggregates"in e?"sessions":"session",a=JSON.stringify({type:s});return{body:o+"\n"+a+"\n"+JSON.stringify(e),type:s,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}},t.eventToSentryRequest=function(e,t){var n=i(t),s=e.type||"event",a="transaction"===s||t.forceEnvelope(),u=e.debug_meta||{},c=u.transactionSampling,l=(0,r.__rest)(u,["transactionSampling"]),p=c||{},d=p.method,f=p.rate;0===Object.keys(l).length?delete e.debug_meta:e.debug_meta=l;var h={body:JSON.stringify(n?o(e,t.metadata.sdk):e),type:s,url:a?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(a){var g=JSON.stringify((0,r.__assign)((0,r.__assign)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),t.forceEnvelope()&&{dsn:t.getDsn().toString()})),_=JSON.stringify({type:s,sample_rates:[{id:d,rate:f}]}),v=g+"\n"+_+"\n"+h.body;h.body=v}return h};var r=n(25);function i(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function o(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=(0,r.__spread)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=(0,r.__spread)(e.sdk.packages||[],t.packages||[]),e):e}},1624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAndBind=function(e,t){var n;!0===t.debug&&i.logger.enable();var o=(0,r.getCurrentHub)();null===(n=o.getScope())||void 0===n||n.update(t.initialScope);var s=new e(t);o.bindClient(s)};var r=n(85),i=n(16)},1625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_VERSION=void 0;t.SDK_VERSION="6.15.0"},1626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FunctionToString",{enumerable:!0,get:function(){return r.FunctionToString}}),Object.defineProperty(t,"InboundFilters",{enumerable:!0,get:function(){return i.InboundFilters}});var r=n(1627),i=n(1628)},1627:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionToString=void 0;var i=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return r.apply(n,e)}},e.id="FunctionToString",e}();t.FunctionToString=i},1628:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InboundFilters=void 0;var r=n(25),i=n(85),o=n(16),s=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],a=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){(0,i.addGlobalEventProcessor)((function(t){var n=(0,i.getCurrentHub)();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),s=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(s):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(o.logger.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,o.getEventDescription)(e)),!0):this._isIgnoredError(e,t)?(o.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,o.getEventDescription)(e)),!0):this._isDeniedUrl(e,t)?(o.logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,o.getEventDescription)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(o.logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,o.getEventDescription)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return(0,o.isMatchingPattern)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return(0,o.isMatchingPattern)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return(0,o.isMatchingPattern)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:(0,r.__spread)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,r.__spread)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,r.__spread)(this._options.ignoreErrors||[],e.ignoreErrors||[],s),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,s=void 0===i?"":i;return[""+s,r+": "+s]}catch(t){return o.logger.error("Cannot extract message for event "+(0,o.getEventDescription)(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){var t,n;void 0===e&&(e=[]);for(var r=e.length-1;r>=0;r--){var i=e[r];if("<anonymous>"!==(null===(t=i)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(n=i)||void 0===n?void 0:n.filename))return i.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return o.logger.error("Cannot extract url for event "+(0,o.getEventDescription)(e)),null}},e.id="InboundFilters",e}();t.InboundFilters=a},1629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserBackend=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=n(298),u=n(530),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.eventFromException=function(e,t){return(0,a.eventFromException)(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=o.Severity.Info),(0,a.eventFromMessage)(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,r.__assign)((0,r.__assign)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):(0,s.supportsFetch)()?new u.FetchTransport(t):new u.XHRTransport(t)},t}(i.BaseBackend);t.BrowserBackend=c},1630:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchTransport=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=n(300),u=n(531),c=function(e){function t(t,n){void 0===n&&(n=(0,u.getNativeFetchImplementation)());var r=e.call(this,t)||this;return r._fetch=n,r}return(0,r.__extends)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest((0,i.eventToSentryRequest)(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest((0,i.sessionToSentryRequest)(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent(o.Outcome.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:(0,s.supportsReferrerPolicy)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new s.SyncPromise((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof s.SentryError?n.recordLostEvent(o.Outcome.QueueOverflow,e.type):n.recordLostEvent(o.Outcome.NetworkError,e.type),t}))},t}(a.BaseTransport);t.FetchTransport=c},1631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHRTransport=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest((0,i.eventToSentryRequest)(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest((0,i.sessionToSentryRequest)(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent(o.Outcome.RateLimitBackoff,e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new s.SyncPromise((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof s.SentryError?n.recordLostEvent(o.Outcome.QueueOverflow,e.type):n.recordLostEvent(o.Outcome.NetworkError,e.type),t}))},t}(n(300).BaseTransport);t.XHRTransport=a},1632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalHandlers=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=n(298),u=n(158),c=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=(0,r.__assign)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(s.logger.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(s.logger.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||((0,s.addInstrumentationHandler)({callback:function(n){var r=n.error,o=(0,i.getCurrentHub)(),c=o.getIntegration(e),l=r&&!0===r.__sentry_own_request__;if(c&&!(0,u.shouldIgnoreOnError)()&&!l){var p=o.getClient(),d=void 0===r&&(0,s.isString)(n.msg)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame((0,a.eventFromUnknownInput)(r||n.msg,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,s.addExceptionMechanism)(d,{handled:!1,type:"onerror"}),o.captureEvent(d,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||((0,s.addInstrumentationHandler)({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var c=(0,i.getCurrentHub)(),l=c.getIntegration(e),p=r&&!0===r.__sentry_own_request__;if(!l||(0,u.shouldIgnoreOnError)()||p)return!0;var d=c.getClient(),f=(0,s.isPrimitive)(r)?t._eventFromRejectionWithPrimitive(r):(0,a.eventFromUnknownInput)(r,void 0,{attachStacktrace:d&&d.getOptions().attachStacktrace,rejection:!0});f.level=o.Severity.Error,(0,s.addExceptionMechanism)(f,{handled:!1,type:"onunhandledrejection"}),c.captureEvent(f,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=(0,s.isErrorEvent)(e)?e.message:e,a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2]);var u={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(u,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=(0,s.isString)(t)&&t.length>0?t:(0,s.getLocationHref)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}();t.GlobalHandlers=c},1633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TryCatch=void 0;var r=n(25),i=n(16),o=n(158),s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=function(){function e(t){this.name=e.id,this._options=(0,r.__assign)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,i.getGlobalObject)();(this._options.setTimeout&&(0,i.fill)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,i.fill)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,i.fill)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,i.fill)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:s).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=(0,o.wrap)(r,{mechanism:{data:{function:(0,i.getFunctionName)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,(0,o.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,i.getFunctionName)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,i.getGlobalObject)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.fill)(n,"addEventListener",(function(t){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,o.wrap)(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:(0,i.getFunctionName)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,(0,o.wrap)(r,{mechanism:{data:{function:"addEventListener",handler:(0,i.getFunctionName)(r),target:e},handled:!0,type:"instrument"}}),s)}})),(0,i.fill)(n,"removeEventListener",(function(e){return function(t,n,r){var i,o=n;try{var s=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,s=["onload","onerror","onprogress","onreadystatechange"];return s.forEach((function(e){e in r&&"function"==typeof r[e]&&(0,i.fill)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,i.getFunctionName)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=(0,i.getFunctionName)(t.__sentry_original__)),(0,o.wrap)(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}();t.TryCatch=a},1634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Breadcrumbs=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=function(){function e(t){this.name=e.id,this._options=(0,r.__assign)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,i.getCurrentHub)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.getEventDescription)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&(0,s.addInstrumentationHandler)({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,(0,r.__spread)(t))},type:"console"}),this._options.dom&&(0,s.addInstrumentationHandler)({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,(0,r.__spread)(t))},type:"dom"}),this._options.xhr&&(0,s.addInstrumentationHandler)({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,(0,r.__spread)(t))},type:"xhr"}),this._options.fetch&&(0,s.addInstrumentationHandler)({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,(0,r.__spread)(t))},type:"fetch"}),this._options.history&&(0,s.addInstrumentationHandler)({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,(0,r.__spread)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:o.Severity.fromString(e.level),message:(0,s.safeJoin)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+((0,s.safeJoin)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,i.getCurrentHub)().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{t=e.event.target?(0,s.htmlTreeAsString)(e.event.target,n):(0,s.htmlTreeAsString)(e.event,n)}catch(e){t="<unknown>"}0!==t.length&&(0,i.getCurrentHub)().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,s=t.body;(0,i.getCurrentHub)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:s})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,i.getCurrentHub)().addBreadcrumb({category:"fetch",data:e.fetchData,level:o.Severity.Error,type:"http"},{data:e.error,input:e.args}):(0,i.getCurrentHub)().addBreadcrumb({category:"fetch",data:(0,r.__assign)((0,r.__assign)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,s.getGlobalObject)(),n=e.from,r=e.to,o=(0,s.parseUrl)(t.location.href),a=(0,s.parseUrl)(n),u=(0,s.parseUrl)(r);a.path||(a=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),(0,i.getCurrentHub)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}();t.Breadcrumbs=a},1635:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedErrors=void 0;var r=n(25),i=n(58),o=n(16),s=n(529),a=n(299),u=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,i.addGlobalEventProcessor)((function(t,n){var r=(0,i.getCurrentHub)().getIntegration(e);if(r){var o=r._handler&&r._handler.bind(r);return"function"==typeof o?o(t,n):t}return t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&(0,o.isInstanceOf)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=(0,r.__spread)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!(0,o.isInstanceOf)(e[t],Error)||n.length+1>=this._limit)return n;var i=(0,a.computeStackTrace)(e[t]),u=(0,s.exceptionFromStacktrace)(i);return this._walkErrorTree(e[t],t,(0,r.__spread)([u],n))},e.id="LinkedErrors",e}();t.LinkedErrors=u},1636:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserAgent=void 0;var r=n(25),i=n(58),o=(0,n(16).getGlobalObject)(),s=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){(0,i.addGlobalEventProcessor)((function(t){var n,s,a;if((0,i.getCurrentHub)().getIntegration(e)){if(!o.navigator&&!o.location&&!o.document)return t;var u=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(s=o.location)||void 0===s?void 0:s.href),c=(o.document||{}).referrer,l=(o.navigator||{}).userAgent,p=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},null===(a=t.request)||void 0===a?void 0:a.headers),c&&{Referer:c}),l&&{"User-Agent":l}),d=(0,r.__assign)((0,r.__assign)({},u&&{url:u}),{headers:p});return(0,r.__assign)((0,r.__assign)({},t),{request:d})}return t}))},e.id="UserAgent",e}();t.UserAgent=s},1637:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dedupe=void 0;var r=n(16),i=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var i=n().getIntegration(e);if(i){try{if(i._shouldDropEvent(t,i._previousEvent))return r.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return i._previousEvent=t}return i._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!!t&&(!!this._isSameMessageEvent(e,t)||!!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t))))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var n=this._getFramesFromEvent(e),r=this._getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var n=this._getExceptionFromEvent(t),r=this._getExceptionFromEvent(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(e,t)&&!!this._isSameStacktrace(e,t)))},e.prototype._isSameFingerprint=function(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}},e.id="Dedupe",e}();t.Dedupe=i},1638:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e){void 0===e&&(e={});void 0===e.defaultIntegrations&&(e.defaultIntegrations=c);if(void 0===e.release){var t=(0,o.getGlobalObject)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0);void 0===e.sendClientReports&&(e.sendClientReports=!0);(0,i.initAndBind)(s.BrowserClient,e),e.autoSessionTracking&&function(){if(void 0===(0,o.getGlobalObject)().document)return void o.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var e=(0,i.getCurrentHub)();if("function"!=typeof e.startSession||"function"!=typeof e.captureSession)return;e.startSession({ignoreDuration:!0}),e.captureSession(),(0,o.addInstrumentationHandler)({callback:function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&(e.startSession({ignoreDuration:!0}),e.captureSession())},type:"history"})}()},t.showReportDialog=function(e){void 0===e&&(e={});var t=(0,i.getCurrentHub)(),n=t.getScope();n&&(e.user=(0,r.__assign)((0,r.__assign)({},n.getUser()),e.user));e.eventId||(e.eventId=t.lastEventId());var o=t.getClient();o&&o.showReportDialog(e)},t.lastEventId=function(){return(0,i.getCurrentHub)().lastEventId()},t.forceLoad=function(){},t.onLoad=function(e){e()},t.flush=function(e){var t=(0,i.getCurrentHub)().getClient();if(t)return t.flush(e);return o.logger.warn("Cannot flush events. No client defined."),o.SyncPromise.resolve(!1)},t.close=function(e){var t=(0,i.getCurrentHub)().getClient();if(t)return t.close(e);return o.logger.warn("Cannot flush events and disable SDK. No client defined."),o.SyncPromise.resolve(!1)},t.wrap=function(e){return(0,a.wrap)(e)()},t.defaultIntegrations=void 0;var r=n(25),i=n(58),o=n(16),s=n(528),a=n(158),u=n(301),c=[new i.Integrations.InboundFilters,new i.Integrations.FunctionToString,new u.TryCatch,new u.Breadcrumbs,new u.GlobalHandlers,new u.LinkedErrors,new u.Dedupe,new u.UserAgent];t.defaultIntegrations=c},1639:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_NAME=void 0;t.SDK_NAME="sentry.javascript.browser"},1640:function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerRequestInstrumentation",{enumerable:!0,get:function(){return o.instrumentOutgoingRequests}}),Object.defineProperty(t,"defaultRequestInstrumentationOptions",{enumerable:!0,get:function(){return o.defaultRequestInstrumentationOptions}}),Object.defineProperty(t,"addExtensionMethods",{enumerable:!0,get:function(){return s.addExtensionMethods}}),Object.defineProperty(t,"startIdleTransaction",{enumerable:!0,get:function(){return s.startIdleTransaction}}),Object.defineProperty(t,"Span",{enumerable:!0,get:function(){return u.Span}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return c.Transaction}}),Object.defineProperty(t,"SpanStatus",{enumerable:!0,get:function(){return l.SpanStatus}}),Object.defineProperty(t,"IdleTransaction",{enumerable:!0,get:function(){return p.IdleTransaction}}),Object.defineProperty(t,"extractTraceparentData",{enumerable:!0,get:function(){return d.extractTraceparentData}}),Object.defineProperty(t,"getActiveTransaction",{enumerable:!0,get:function(){return d.getActiveTransaction}}),Object.defineProperty(t,"hasTracingEnabled",{enumerable:!0,get:function(){return d.hasTracingEnabled}}),Object.defineProperty(t,"stripUrlQueryAndFragment",{enumerable:!0,get:function(){return d.stripUrlQueryAndFragment}}),Object.defineProperty(t,"TRACEPARENT_REGEXP",{enumerable:!0,get:function(){return d.TRACEPARENT_REGEXP}}),t.Integrations=void 0;var i=n(25),o=n(1641),s=n(532),a=r(n(1651)),u=n(303),c=n(304),l=n(103),p=n(302),d=n(104),f=(0,i.__assign)((0,i.__assign)({},a),{BrowserTracing:o.BrowserTracing});t.Integrations=f,(0,s.addExtensionMethods)()},1641:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrowserTracing",{enumerable:!0,get:function(){return r.BrowserTracing}}),Object.defineProperty(t,"instrumentOutgoingRequests",{enumerable:!0,get:function(){return i.instrumentOutgoingRequests}}),Object.defineProperty(t,"defaultRequestInstrumentationOptions",{enumerable:!0,get:function(){return i.defaultRequestInstrumentationOptions}});var r=n(1642),i=n(533)},1642:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHeaderContext=g,t.getMetaContent=_,t.BrowserTracing=t.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS=void 0;var r=n(25),i=n(16),o=n(532),s=n(302),a=n(103),u=n(104),c=n(1644),l=n(1645),p=n(533),d=n(1650);t.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS=600;var f=(0,r.__assign)({idleTimeout:s.DEFAULT_IDLE_TIMEOUT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:d.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},p.defaultRequestInstrumentationOptions),h=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1;var n=p.defaultRequestInstrumentationOptions.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},f),t),{tracingOrigins:n}),this._metrics=new l.MetricsInstrumentation((0,r.__assign)((0,r.__assign)({},l.DEFAULT_METRICS_INSTR_OPTIONS),this.options._metricOptions))}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(i.logger.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),i.logger.warn("[Tracing] We added a reasonable default for you: "+p.defaultRequestInstrumentationOptions.tracingOrigins));var r=this.options,o=r.routingInstrumentation,s=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,u=r.markBackgroundTransactions,l=r.traceFetch,d=r.traceXHR,f=r.tracingOrigins,h=r.shouldCreateSpanForRequest;o((function(e){return n._createRouteTransaction(e)}),a,s),u&&(0,c.registerBackgroundTabDetection)(),(0,p.instrumentOutgoingRequests)({traceFetch:l,traceXHR:d,tracingOrigins:f,shouldCreateSpanForRequest:h})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,s=n.beforeNavigate,c=n.idleTimeout,l=n.maxTransactionDuration,p="pageload"===e.op?g():void 0,d=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),p),{trimEnd:!0}),f="function"==typeof s?s(d):d,h=void 0===f?(0,r.__assign)((0,r.__assign)({},d),{sampled:!1}):f;!1===h.sampled&&i.logger.log("[Tracing] Will not send "+h.op+" transaction because of beforeNavigate."),i.logger.log("[Tracing] Starting "+h.op+" transaction on scope");var _=this._getCurrentHub(),v=(0,i.getGlobalObject)().location,m=(0,o.startIdleTransaction)(_,h,c,!0,{location:v});return m.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(a.SpanStatus.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}((0,u.secToMs)(l),e,n)})),m}i.logger.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();function g(){var e=_("sentry-trace");if(e)return(0,u.extractTraceparentData)(e)}function _(e){var t=(0,i.getGlobalObject)().document.querySelector("meta[name="+e+"]");return t?t.getAttribute("content"):null}t.BrowserTracing=h},1643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerErrorInstrumentation=function(){(0,r.addInstrumentationHandler)({callback:s,type:"error"}),(0,r.addInstrumentationHandler)({callback:s,type:"unhandledrejection"})};var r=n(16),i=n(103),o=n(104);function s(){var e=(0,o.getActiveTransaction)();e&&(r.logger.log("[Tracing] Transaction: "+i.SpanStatus.InternalError+" -> Global error occured"),e.setStatus(i.SpanStatus.InternalError))}},1644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerBackgroundTabDetection=function(){s&&s.document?s.document.addEventListener("visibilitychange",(function(){var e=(0,o.getActiveTransaction)();s.document.hidden&&e&&(r.logger.log("[Tracing] Transaction: "+i.SpanStatus.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(i.SpanStatus.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):r.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")};var r=n(16),i=n(103),o=n(104),s=(0,r.getGlobalObject)()},1645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addResourceSpans=d,t._startChild=h,t.MetricsInstrumentation=t.DEFAULT_METRICS_INSTR_OPTIONS=void 0;var r=n(25),i=n(16),o=n(104),s=n(1646),a=n(1648),u=n(1649),c=n(308),l=(0,i.getGlobalObject)();t.DEFAULT_METRICS_INSTR_OPTIONS={_reportAllChanges:!1};var p=function(){function e(e){var t,n;this._measurements={},this._performanceCursor=0,!(0,i.isNodeEnv)()&&(null===(t=l)||void 0===t?void 0:t.performance)&&(null===(n=l)||void 0===n?void 0:n.document)&&(l.performance.mark&&l.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(e._reportAllChanges),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(l&&l.performance&&l.performance.getEntries&&i.browserPerformanceTimeOrigin){i.logger.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,s,a,u,p=(0,o.msToSec)(i.browserPerformanceTimeOrigin);if(l.document&&l.document.scripts)for(var g=0;g<l.document.scripts.length;g++)if("true"===l.document.scripts[g].dataset.entry){n=l.document.scripts[g].src;break}if(l.performance.getEntries().slice(this._performanceCursor).forEach((function(g){var _=(0,o.msToSec)(g.startTime),v=(0,o.msToSec)(g.duration);if(!("navigation"===e.op&&p+_<e.startTimestamp))switch(g.entryType){case"navigation":!function(e,t,n){f({transaction:e,entry:t,event:"unloadEvent",timeOrigin:n}),f({transaction:e,entry:t,event:"redirect",timeOrigin:n}),f({transaction:e,entry:t,event:"domContentLoadedEvent",timeOrigin:n}),f({transaction:e,entry:t,event:"loadEvent",timeOrigin:n}),f({transaction:e,entry:t,event:"connect",timeOrigin:n}),f({transaction:e,entry:t,event:"secureConnection",timeOrigin:n,eventEnd:"connectEnd",description:"TLS/SSL"}),f({transaction:e,entry:t,event:"fetch",timeOrigin:n,eventEnd:"domainLookupStart",description:"cache"}),f({transaction:e,entry:t,event:"domainLookup",timeOrigin:n,description:"DNS"}),function(e,t,n){h(e,{op:"browser",description:"request",startTimestamp:n+(0,o.msToSec)(t.requestStart),endTimestamp:n+(0,o.msToSec)(t.responseEnd)}),h(e,{op:"browser",description:"response",startTimestamp:n+(0,o.msToSec)(t.responseStart),endTimestamp:n+(0,o.msToSec)(t.responseEnd)})}(e,t,n)}(e,g,p),a=p+(0,o.msToSec)(g.responseStart),u=p+(0,o.msToSec)(g.requestStart);break;case"mark":case"paint":case"measure":var m=function(e,t,n,r,i){var o=i+n,s=o+r;return h(e,{description:t.name,endTimestamp:s,op:t.entryType,startTimestamp:o}),o}(e,g,_,v,p);void 0===s&&"sentry-tracing-init"===g.name&&(s=m);var y=(0,c.getVisibilityWatcher)(),b=g.startTime<y.firstHiddenTime;"first-paint"===g.name&&b&&(i.logger.log("[Measurements] Adding FP"),t._measurements.fp={value:g.startTime},t._measurements["mark.fp"]={value:m}),"first-contentful-paint"===g.name&&b&&(i.logger.log("[Measurements] Adding FCP"),t._measurements.fcp={value:g.startTime},t._measurements["mark.fcp"]={value:m});break;case"resource":var S=g.name.replace(l.location.origin,""),E=d(e,g,S,_,v,p);void 0===r&&(n||"").indexOf(S)>-1&&(r=E)}})),void 0!==r&&void 0!==s&&h(e,{description:"evaluation",endTimestamp:s,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var _=(0,o.msToSec)(i.browserPerformanceTimeOrigin);"number"==typeof a&&(i.logger.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(a-e.startTimestamp)},"number"==typeof u&&u<=a&&(this._measurements["ttfb.requestTime"]={value:1e3*(a-u)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(_>=e.startTimestamp)){var r=t._measurements[n].value,s=_+(0,o.msToSec)(r),a=Math.abs(1e3*(s-e.startTimestamp)),u=a-r;i.logger.log("[Measurements] Normalized "+n+" from "+r+" to "+a+" ("+u+")"),t._measurements[n].value=a}})),this._measurements["mark.fid"]&&this._measurements.fid&&h(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,o.msToSec)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e)}}},e.prototype._tagMetricInfo=function(e){this._lcpEntry&&(i.logger.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",(0,i.htmlTreeAsString)(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(i.logger.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),(0,i.htmlTreeAsString)(t.node))})))},e.prototype._trackCLS=function(){var e=this;(0,s.getCLS)((function(t){var n=t.entries.pop();n&&(i.logger.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value},e._clsEntry=n)}))},e.prototype._trackNavigator=function(e){var t=l.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),g(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),g(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),g(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),g(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(e){var t=this;(0,u.getLCP)((function(e){var n=e.entries.pop();if(n){var r=(0,o.msToSec)(i.browserPerformanceTimeOrigin),s=(0,o.msToSec)(n.startTime);i.logger.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+s},t._lcpEntry=n}}),e)},e.prototype._trackFID=function(){var e=this;(0,a.getFID)((function(t){var n=t.entries.pop();if(n){var r=(0,o.msToSec)(i.browserPerformanceTimeOrigin),s=(0,o.msToSec)(n.startTime);i.logger.log("[Measurements] Adding FID"),e._measurements.fid={value:t.value},e._measurements["mark.fid"]={value:r+s}}}))},e}();function d(e,t,n,r,i,o){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize);var a=o+r,u=a+i;return h(e,{description:n,endTimestamp:u,op:t.initiatorType?"resource."+t.initiatorType:"resource",startTimestamp:a,data:s}),u}}function f(e){var t=e.transaction,n=e.entry,r=e.event,i=e.timeOrigin,s=e.eventEnd,a=e.description,u=s?n[s]:n[r+"End"],c=n[r+"Start"];c&&u&&h(t,{op:"browser",description:null!=a?a:r,startTimestamp:i+(0,o.msToSec)(c),endTimestamp:i+(0,o.msToSec)(u)})}function h(e,t){var n=t.startTimestamp,i=(0,r.__rest)(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild((0,r.__assign)({startTimestamp:n},i))}function g(e){return"number"==typeof e&&isFinite(e)}t.MetricsInstrumentation=p},1646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCLS=void 0;var r=n(305),i=n(306),o=n(307),s=n(216);t.getCLS=function(e,t){var n,a=(0,i.initMetric)("CLS",0),u=0,c=[],l=function(e){if(e&&!e.hadRecentInput){var t=c[0],r=c[c.length-1];u&&0!==c.length&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(u+=e.value,c.push(e)):(u=e.value,c=[e]),u>a.value&&(a.value=u,a.entries=c,n&&n())}},p=(0,o.observe)("layout-shift",l);p&&(n=(0,r.bindReporter)(e,a,t),(0,s.onHidden)((function(){p.takeRecords().map(l),n(!0)})))}},1647:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUniqueID=void 0;t.generateUniqueID=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)}},1648:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFID=void 0;var r=n(305),i=n(308),o=n(306),s=n(307),a=n(216);t.getFID=function(e,t){var n,u=(0,i.getVisibilityWatcher)(),c=(0,o.initMetric)("FID"),l=function(e){n&&e.startTime<u.firstHiddenTime&&(c.value=e.processingStart-e.startTime,c.entries.push(e),n(!0))},p=(0,s.observe)("first-input",l);p&&(n=(0,r.bindReporter)(e,c,t),(0,a.onHidden)((function(){p.takeRecords().map(l),p.disconnect()}),!0))}},1649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLCP=void 0;var r=n(305),i=n(308),o=n(306),s=n(307),a=n(216),u={};t.getLCP=function(e,t){var n,c=(0,i.getVisibilityWatcher)(),l=(0,o.initMetric)("LCP"),p=function(e){var t=e.startTime;t<c.firstHiddenTime&&(l.value=t,l.entries.push(e)),n&&n()},d=(0,s.observe)("largest-contentful-paint",p);if(d){n=(0,r.bindReporter)(e,l,t);var f=function(){u[l.id]||(d.takeRecords().map(p),d.disconnect(),u[l.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,f,{once:!0,capture:!0})})),(0,a.onHidden)(f,!0)}}},1650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instrumentRoutingWithDefaults=function(e,t,n){void 0===t&&(t=!0);void 0===n&&(n=!0);if(!i||!i.location)return void r.logger.warn("Could not initialize routing instrumentation due to invalid location");var o,s=i.location.href;t&&(o=e({name:i.location.pathname,op:"pageload"}));n&&(0,r.addInstrumentationHandler)({callback:function(t){var n=t.to,a=t.from;void 0===a&&s&&-1!==s.indexOf(n)?s=void 0:a!==n&&(s=void 0,o&&(r.logger.log("[Tracing] Finishing current transaction with op: "+o.op),o.finish()),o=e({name:i.location.pathname,op:"navigation"}))},type:"history"})};var r=n(16),i=(0,r.getGlobalObject)()},1651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Express",{enumerable:!0,get:function(){return r.Express}}),Object.defineProperty(t,"Postgres",{enumerable:!0,get:function(){return i.Postgres}}),Object.defineProperty(t,"Mysql",{enumerable:!0,get:function(){return o.Mysql}}),Object.defineProperty(t,"Mongo",{enumerable:!0,get:function(){return s.Mongo}});var r=n(1652),i=n(1653),o=n(1654),s=n(1655)},1652:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Express=void 0;var r=n(25),i=n(16),o=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return n.call.apply(n,(0,r.__spread)([this],a(e,t)))},e}(e,t)}))}(this._router,this._methods):i.logger.error("ExpressIntegration is missing an Express instance")},e.id="Express",e}();function s(e,t){var n=e.length;switch(n){case 2:return function(n,r){var i=r.__sentry_transaction;if(i){var o=i.startChild({description:e.name,op:"middleware."+t});r.once("finish",(function(){o.finish()}))}return e.call(this,n,r)};case 3:return function(n,i,o){var s,a=null===(s=i.__sentry_transaction)||void 0===s?void 0:s.startChild({description:e.name,op:"middleware."+t});e.call(this,n,i,(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null===(e=a)||void 0===e||e.finish(),o.call.apply(o,(0,r.__spread)([this],t))}))};case 4:return function(n,i,o,s){var a,u=null===(a=o.__sentry_transaction)||void 0===a?void 0:a.startChild({description:e.name,op:"middleware."+t});e.call(this,n,i,o,(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null===(e=u)||void 0===e||e.finish(),s.call.apply(s,(0,r.__spread)([this],t))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}function a(e,t){return e.map((function(e){return"function"==typeof e?s(e,t):Array.isArray(e)?e.map((function(e){return"function"==typeof e?s(e,t):e})):e}))}t.Express=o},1653:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Postgres=void 0;var r=n(16),i=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._usePgNative=!!t.usePgNative}return e.prototype.setupOnce=function(e,t){var n,i=(0,r.loadModule)("pg");if(i)if(!this._usePgNative||(null===(n=i.native)||void 0===n?void 0:n.Client)){var o=(this._usePgNative?i.native:i).Client;(0,r.fill)(o.prototype,"query",(function(e){return function(n,i,o){var s,a,u,c=null===(a=null===(s=t().getScope())||void 0===s?void 0:s.getSpan())||void 0===a?void 0:a.startChild({description:"string"==typeof n?n:n.text,op:"db"});if("function"==typeof o)return e.call(this,n,i,(function(e,t){var n;null===(n=c)||void 0===n||n.finish(),o(e,t)}));if("function"==typeof i)return e.call(this,n,(function(e,t){var n;null===(n=c)||void 0===n||n.finish(),i(e,t)}));var l=void 0!==i?e.call(this,n,i):e.call(this,n);return(0,r.isThenable)(l)?l.then((function(e){var t;return null===(t=c)||void 0===t||t.finish(),e})):(null===(u=c)||void 0===u||u.finish(),l)}}))}else r.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");else r.logger.error("Postgres Integration was unable to require `pg` package.")},e.id="Postgres",e}();t.Postgres=i},1654:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mysql=void 0;var r=n(16),i=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e,t){var n=(0,r.loadModule)("mysql/lib/Connection.js");n?(0,r.fill)(n,"createQuery",(function(e){return function(n,r,i){var o,s,a=null===(s=null===(o=t().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof n?n:n.sql,op:"db"});return"function"==typeof i?e.call(this,n,r,(function(e,t,n){var r;null===(r=a)||void 0===r||r.finish(),i(e,t,n)})):"function"==typeof r?e.call(this,n,(function(e,t,n){var i;null===(i=a)||void 0===i||i.finish(),r(e,t,n)})):e.call(this,n,r,i)}})):r.logger.error("Mysql Integration was unable to require `mysql` package.")},e.id="Mysql",e}();t.Mysql=i},1655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mongo=void 0;var r=n(25),i=n(16),o=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],s={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._operations=Array.isArray(t.operations)?t.operations:o,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}return e.prototype.setupOnce=function(e,t){var n=this._useMongoose?"mongoose":"mongodb",r=(0,i.loadModule)(n);r?this._instrumentOperations(r.Collection,this._operations,t):i.logger.error("Mongo Integration was unable to require `"+n+"` package.")},e.prototype._instrumentOperations=function(e,t,n){var r=this;t.forEach((function(t){return r._patchOperation(e,t,n)}))},e.prototype._patchOperation=function(e,t,n){if(t in e.prototype){var o=this._getSpanContextFromOperationArguments.bind(this);(0,i.fill)(e.prototype,t,(function(e){return function(){for(var s,a,u,c,l=[],p=0;p<arguments.length;p++)l[p]=arguments[p];var d=l[l.length-1],f=n().getScope(),h=null===(s=f)||void 0===s?void 0:s.getSpan();if("function"!=typeof d||"mapReduce"===t&&2===l.length){var g=null===(a=h)||void 0===a?void 0:a.startChild(o(this,t,l)),_=e.call.apply(e,(0,r.__spread)([this],l));return(0,i.isThenable)(_)?_.then((function(e){var t;return null===(t=g)||void 0===t||t.finish(),e})):(null===(u=g)||void 0===u||u.finish(),_)}var v=null===(c=h)||void 0===c?void 0:c.startChild(o(this,t,l.slice(0,-1)));return e.call.apply(e,(0,r.__spread)([this],l.slice(0,-1),[function(e,t){var n;null===(n=v)||void 0===n||n.finish(),d(e,t)}]))}}))}},e.prototype._getSpanContextFromOperationArguments=function(e,t,n){var i={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace},o={op:"db",description:t,data:i},a=s[t],u=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!a||!u)return o;try{if("mapReduce"===t){var c=(0,r.__read)(n,2),l=c[0],p=c[1];i[a[0]]="string"==typeof l?l:l.name||"<anonymous>",i[a[1]]="string"==typeof p?p:p.name||"<anonymous>"}else for(var d=0;d<a.length;d++)i[a[d]]=JSON.stringify(n[d])}catch(e){}return o},e.id="Mongo",e}();t.Mongo=a},216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onHidden=void 0;var r=n(16);t.onHidden=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==(0,r.getGlobalObject)().document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}},25:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t.__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},t.__decorate=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},t.__param=function(e,t){return function(n,r){t(n,r,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},t.__generator=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},t.__exportStar=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},t.__values=s,t.__read=a,t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e},t.__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},t.__spreadArray=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},t.__await=u,t.__asyncGenerator=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof u?Promise.resolve(n.value.v).then(c,l):p(o[0][2],n)}catch(e){p(o[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function p(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:u(e[r](t)),done:"return"===r}:i?i(t):t}:i}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}},t.__makeTemplateObject=function(e,t){Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t;return e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return c(t,e),t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}},t.__classPrivateFieldGet=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},t.__classPrivateFieldSet=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},t.__createBinding=t.__assign=void 0;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var i=function(){return t.__assign=i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};t.__assign=i;var o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(e){return this instanceof u?(this.v=e,this):new u(e)}t.__createBinding=o;var c=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}},29:function(e,t){e.exports=cm_react_dll_production_fc30c802c3cd479fb01b},293:function(e,t,n){"use strict";(function(e,n){function r(e,t){return e.require(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeEnv=function(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)},t.dynamicRequire=r,t.loadModule=function(e){var t;try{t=r(n,e)}catch(e){}try{var i=r(n,"process").cwd;t=r(n,i()+"/node_modules/"+e)}catch(e){}return t}}).call(this,n(71),n(98)(e))},294:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SentryError=void 0;var r=n(25),i=n(1612),o=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,(0,i.setPrototypeOf)(r,n.prototype),r}return(0,r.__extends)(t,e),t}(Error);t.SentryError=o},295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.consoleSandbox=s,t.logger=void 0;var r=n(102),i=(0,r.getGlobalObject)(),o="Sentry Logger ";function s(e){var t=(0,r.getGlobalObject)();if(!("console"in t))return e();var n=t.console,i={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(i[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(i).forEach((function(e){n[e]=i[e]})),o}var a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&s((function(){i.console.log(o+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&s((function(){i.console.warn(o+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&s((function(){i.console.error(o+"[Error]: "+e.join(" "))}))},e}();i.__SENTRY__=i.__SENTRY__||{};var u=i.__SENTRY__.logger||(i.__SENTRY__.logger=new a);t.logger=u},296:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncate=function(e,t){void 0===t&&(t=0);if("string"!=typeof e||0===t)return e;return e.length<=t?e:e.substr(0,t)+"..."},t.snipLine=function(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);o>r-5&&(o=r);o===r&&(i=Math.max(o-140,0));n=n.slice(i,o),i>0&&(n="'{snip} "+n);o<r&&(n+=" {snip}");return n},t.safeJoin=function(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},t.isMatchingPattern=function(e,t){if(!(0,r.isString)(e))return!1;if((0,r.isRegExp)(t))return t.test(e);if("string"==typeof t)return-1!==e.indexOf(t);return!1},t.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var r=n(131)},298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventFromException=function(e,t,n){var r=n&&n.syntheticException||void 0,s=u(t,r,{attachStacktrace:e.attachStacktrace});(0,o.addExceptionMechanism)(s),s.level=i.Severity.Error,n&&n.event_id&&(s.event_id=n.event_id);return o.SyncPromise.resolve(s)},t.eventFromMessage=function(e,t,n,r){void 0===n&&(n=i.Severity.Info);var s=r&&r.syntheticException||void 0,a=c(t,s,{attachStacktrace:e.attachStacktrace});a.level=n,r&&r.event_id&&(a.event_id=r.event_id);return o.SyncPromise.resolve(a)},t.eventFromUnknownInput=u,t.eventFromString=c;var r=n(25),i=n(51),o=n(16),s=n(529),a=n(299);function u(e,t,n){var i;if(void 0===n&&(n={}),(0,o.isErrorEvent)(e)&&e.error)return e=e.error,i=(0,s.eventFromStacktrace)((0,a.computeStackTrace)(e));if((0,o.isDOMError)(e)||(0,o.isDOMException)(e)){var u=e;if("stack"in e)i=(0,s.eventFromStacktrace)((0,a.computeStackTrace)(e));else{var l=u.name||((0,o.isDOMError)(u)?"DOMError":"DOMException"),p=u.message?l+": "+u.message:l;i=c(p,t,n),(0,o.addExceptionTypeValue)(i,p)}return"code"in u&&(i.tags=(0,r.__assign)((0,r.__assign)({},i.tags),{"DOMException.code":""+u.code})),i}if((0,o.isError)(e))return i=(0,s.eventFromStacktrace)((0,a.computeStackTrace)(e));if((0,o.isPlainObject)(e)||(0,o.isEvent)(e)){var d=e;return i=(0,s.eventFromPlainObject)(d,t,n.rejection),(0,o.addExceptionMechanism)(i,{synthetic:!0}),i}return i=c(e,t,n),(0,o.addExceptionTypeValue)(i,""+e,void 0),(0,o.addExceptionMechanism)(i,{synthetic:!0}),i}function c(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=(0,a.computeStackTrace)(t),o=(0,s.prepareFramesForEvent)(i.stack);r.stacktrace={frames:o}}return r}},299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeStackTrace=function(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:c.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),s=[],a=0;a<o.length;a+=2){var u=null;(t=r.exec(o[a]))?u={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(o[a]))&&(u={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),u&&(!u.func&&u.line&&(u.func="?"),s.push(u))}if(!s.length)return null;return{message:d(e),name:e.name,stack:s}}(e))return p(t,n)}catch(e){}try{if(t=function(e){var t,n;if(!e||!e.stack)return null;for(var c,p,f,h=[],g=e.stack.split("\n"),_=0;_<g.length;++_){if(p=i.exec(g[_])){var v=p[2]&&0===p[2].indexOf("native");p[2]&&0===p[2].indexOf("eval")&&(c=u.exec(p[2]))&&(p[2]=c[1],p[3]=c[2],p[4]=c[3]);var m=p[2]&&0===p[2].indexOf("address at ")?p[2].substr("address at ".length):p[2],y=p[1]||"?";t=(0,r.__read)(l(y,m),2),y=t[0],m=t[1],f={url:m,func:y,args:v?[p[2]]:[],line:p[3]?+p[3]:null,column:p[4]?+p[4]:null}}else if(p=s.exec(g[_]))f={url:p[2],func:p[1]||"?",args:[],line:+p[3],column:p[4]?+p[4]:null};else{if(!(p=o.exec(g[_])))continue;p[3]&&p[3].indexOf(" > eval")>-1&&(c=a.exec(p[3]))?(p[1]=p[1]||"eval",p[3]=c[1],p[4]=c[2],p[5]=""):0!==_||p[5]||void 0===e.columnNumber||(h[0].column=e.columnNumber+1);m=p[3],y=p[1]||"?";n=(0,r.__read)(l(y,m),2),y=n[0],m=n[1],f={url:m,func:y,args:p[2]?p[2].split(","):[],line:p[4]?+p[4]:null,column:p[5]?+p[5]:null}}!f.func&&f.line&&(f.func="?"),h.push(f)}if(!h.length)return null;return{message:d(e),name:e.name,stack:h}}(e))return p(t,n)}catch(e){}return{message:d(e),name:e&&e.name,stack:[],failed:!0}};var r=n(25),i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=/Minified React error #\d+;/i;var l=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:"+t:"safari-web-extension:"+t]:[e,t]};function p(e,t){try{return(0,r.__assign)((0,r.__assign)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function d(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}},300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransport=void 0;var r=n(25),i=n(58),o=n(51),s=n(16),a=n(531),u={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},c=(0,s.getGlobalObject)(),l=function(){function e(e){var t=this;this.options=e,this._buffer=new s.PromiseBuffer(30),this._rateLimits={},this._outcomes={},this._api=new i.API(e.dsn,e._metadata,e.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&c.document&&c.document.addEventListener("visibilitychange",(function(){"hidden"===c.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){throw new s.SentryError("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=u[t]+":"+e;s.logger.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){s.logger.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify((0,r.__assign)({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,s.dateTimestampInSeconds)(),discarded_events:Object.keys(e).map((function(t){var n=(0,r.__read)(t.split(":"),2),i=n[0];return{reason:n[1],category:i,quantity:e[t]}}))});try{(0,a.sendReport)(t,n)}catch(e){s.logger.error(e)}}else s.logger.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,a=e.reject,u=o.Status.fromHttpCode(n.status);this._handleRateLimit(r)&&s.logger.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),u!==o.Status.Success?a(n):i({status:u})},e.prototype._disabledUntil=function(e){var t=u[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,i,o,a=Date.now(),u=e["x-sentry-rate-limits"],c=e["retry-after"];if(u){try{for(var l=(0,r.__values)(u.trim().split(",")),p=l.next();!p.done;p=l.next()){var d=p.value.split(":",2),f=parseInt(d[0],10),h=1e3*(isNaN(f)?60:f);try{for(var g=(i=void 0,(0,r.__values)(d[1].split(";"))),_=g.next();!_.done;_=g.next()){var v=_.value;this._rateLimits[v||"all"]=new Date(a+h)}}catch(e){i={error:e}}finally{try{_&&!_.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!c&&(this._rateLimits.all=new Date(a+(0,s.parseRetryAfterHeader)(a,c)),!0)},e}();t.BaseTransport=l},301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GlobalHandlers",{enumerable:!0,get:function(){return r.GlobalHandlers}}),Object.defineProperty(t,"TryCatch",{enumerable:!0,get:function(){return i.TryCatch}}),Object.defineProperty(t,"Breadcrumbs",{enumerable:!0,get:function(){return o.Breadcrumbs}}),Object.defineProperty(t,"LinkedErrors",{enumerable:!0,get:function(){return s.LinkedErrors}}),Object.defineProperty(t,"UserAgent",{enumerable:!0,get:function(){return a.UserAgent}}),Object.defineProperty(t,"Dedupe",{enumerable:!0,get:function(){return u.Dedupe}});var r=n(1632),i=n(1633),o=n(1634),s=n(1635),a=n(1636),u=n(1637)},302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdleTransaction=t.IdleTransactionSpanRecorder=t.HEARTBEAT_INTERVAL=t.DEFAULT_IDLE_TIMEOUT=void 0;var r=n(25),i=n(16),o=n(303),s=n(103),a=n(304);t.DEFAULT_IDLE_TIMEOUT=1e3;t.HEARTBEAT_INTERVAL=5e3;var u=function(e){function t(t,n,r,i){void 0===r&&(r="");var o=e.call(this,i)||this;return o._pushActivity=t,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.__extends)(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:(0,i.timestampWithMs)(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(o.SpanRecorder);t.IdleTransactionSpanRecorder=u;var c=function(e){function t(t,n,r,o){void 0===r&&(r=1e3),void 0===o&&(o=!1);var s=e.call(this,t,n)||this;return s._idleHub=n,s._idleTimeout=r,s._onScope=o,s.activities={},s._heartbeatCounter=0,s._finished=!1,s._beforeFinishCallbacks=[],n&&o&&(l(n),i.logger.log("Setting idle transaction on scope. Span ID: "+s.spanId),n.configureScope((function(e){return e.setSpan(s)}))),s._initTimeout=setTimeout((function(){s._finished||s.finish()}),s._idleTimeout),s}return(0,r.__extends)(t,e),t.prototype.finish=function(t){var n,o,a=this;if(void 0===t&&(t=(0,i.timestampWithMs)()),this._finished=!0,this.activities={},this.spanRecorder){i.logger.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var u=(0,r.__values)(this._beforeFinishCallbacks),c=u.next();!c.done;c=u.next()){(0,c.value)(this,t)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===a.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus(s.SpanStatus.Cancelled),i.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||i.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),i.logger.log("[Tracing] flushing IdleTransaction")}else i.logger.log("[Tracing] No active IdleTransaction");return this._onScope&&l(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;if(!this.spanRecorder){this.spanRecorder=new u((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),i.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),i.logger.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,i.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(i.logger.log("[Tracing] popActivity "+e),delete this.activities[e],i.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,i.timestampWithMs)()+n/1e3;setTimeout((function(){t._finished||t.finish(r)}),n)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(i.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(s.SpanStatus.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;i.logger.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(a.Transaction);function l(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}t.IdleTransaction=c},303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Span=t.SpanRecorder=void 0;var r=n(25),i=n(16),o=n(103),s=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}();t.SpanRecorder=s;var a=function(){function e(e){if(this.traceId=(0,i.uuid4)(),this.spanId=(0,i.uuid4)().substring(16),this.startTimestamp=(0,i.timestampWithMs)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e((0,r.__assign)((0,r.__assign)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=(0,r.__assign)((0,r.__assign)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=(0,r.__assign)((0,r.__assign)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=o.SpanStatus.fromHttpCode(e);return t!==o.SpanStatus.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===o.SpanStatus.Ok},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:(0,i.timestampWithMs)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return(0,i.dropUndefinedKeys)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,i,o;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(i=e.tags)?i:{},this.traceId=null!=(o=e.traceId)?o:this.traceId,this},e.prototype.getTraceContext=function(){return(0,i.dropUndefinedKeys)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return(0,i.dropUndefinedKeys)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}();t.Span=a},304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;var r=n(25),i=n(85),o=n(51),s=n(16),a=n(303),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=(0,i.getCurrentHub)(),(0,s.isInstanceOf)(n,i.Hub)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return(0,r.__extends)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new a.SpanRecorder(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=(0,r.__assign)({},e)},t.prototype.setMetadata=function(e){this.metadata=(0,r.__assign)((0,r.__assign)({},this.metadata),e)},t.prototype.finish=function(t){var n,r,i,a,u,c=this;if(void 0===this.endTimestamp){if(this.name||(s.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0!==this.sampled)return s.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(null===(u=null===(i=null===(n=this._hub.getClient())||void 0===n?void 0:(r=n).getTransport)||void 0===i?void 0:(a=i.call(r)).recordLostEvent)||void 0===u||u.call(a,o.Outcome.SampleRate,"transaction"));var l=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==c&&e.endTimestamp})):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var p={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(s.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),p.measurements=this._measurements),s.logger.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(p)}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return(0,s.dropUndefinedKeys)((0,r.__assign)((0,r.__assign)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(a.Span);t.Transaction=u},305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindReporter=void 0;t.bindReporter=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}}},306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initMetric=void 0;var r=n(1647);t.initMetric=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:(0,r.generateUniqueID)()}}},307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=void 0;t.observe=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}}},308:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVisibilityWatcher=void 0;var r=n(16),i=n(216),o=-1;t.getVisibilityWatcher=function(){return o<0&&(o="hidden"===(0,r.getGlobalObject)().document.visibilityState?0:1/0,(0,i.onHidden)((function(e){var t=e.timeStamp;o=t}),!0)),{get firstHiddenTime(){return o}}}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}}),Object.defineProperty(t,"SessionStatus",{enumerable:!0,get:function(){return i.SessionStatus}}),Object.defineProperty(t,"RequestSessionStatus",{enumerable:!0,get:function(){return i.RequestSessionStatus}}),Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return o.Severity}}),Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return s.Status}}),Object.defineProperty(t,"TransactionSamplingMethod",{enumerable:!0,get:function(){return a.TransactionSamplingMethod}}),Object.defineProperty(t,"Outcome",{enumerable:!0,get:function(){return u.Outcome}});var r=n(1603),i=n(1604),o=n(1605),s=n(1606),a=n(1607),u=n(1608)},519:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addGlobalEventProcessor=function(e){s().push(e)},t.Scope=void 0;var r=n(25),i=n(16),o=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.__spread)(t._breadcrumbs),n._tags=(0,r.__assign)({},t._tags),n._extra=(0,r.__assign)({},t._extra),n._contexts=(0,r.__assign)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.__spread)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),t._tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),t._extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,i.isPlainObject)(t)&&(t=t,this._tags=(0,r.__assign)((0,r.__assign)({},this._tags),t.tags),this._extra=(0,r.__assign)((0,r.__assign)({},this._extra),t.extra),this._contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var o=(0,r.__assign)({timestamp:(0,i.dateTimestampInSeconds)()},e);return this._breadcrumbs=(0,r.__spread)(this._breadcrumbs,[o]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.__assign)((0,r.__assign)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.__assign)((0,r.__assign)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.__assign)((0,r.__assign)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.__assign)((0,r.__assign)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.__assign)({trace:this._span.getTraceContext()},e.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(e.tags=(0,r.__assign)({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.__spread)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors((0,r.__spread)(s(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new i.SyncPromise((function(a,u){var c=e[o];if(null===t||"function"!=typeof c)a(t);else{var l=c((0,r.__assign)({},t),n);(0,i.isThenable)(l)?l.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(e,l,n,o+1).then(a).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function s(){var e=(0,i.getGlobalObject)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}t.Scope=o},520:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlTreeAsString=function(e,t){try{for(var n=e,r=[],i=0,s=0,a=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=o(n,t))||i>1&&s+r.length*a+u.length>=80);)r.push(u),s+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}},t.getLocationHref=function(){var e=(0,r.getGlobalObject)();try{return e.document.location.href}catch(e){return""}};var r=n(102),i=n(131);function o(e,t){var n,r,o,s,a,u,c,l=e,p=[];if(!l||!l.tagName)return"";p.push(l.tagName.toLowerCase());var d=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(null===(r=d)||void 0===r?void 0:r.length)d.forEach((function(e){p.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&p.push("#"+l.id),(o=l.className)&&(0,i.isString)(o))for(s=o.split(/\s+/),c=0;c<s.length;c++)p.push("."+s[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)a=f[c],(u=l.getAttribute(a))&&p.push("["+a+'="'+u+'"]');return p.join("")}},521:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fill=function(e,t,n){if(!(t in e))return;var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i},t.urlEncode=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},t.normalizeToSize=function e(t,n,r){void 0===n&&(n=3);void 0===r&&(r=102400);var i=d(t,n);if(o=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r)return e(t,n-1,r);var o;return i},t.walk=p,t.normalize=d,t.extractExceptionKeysForMessage=function(e,t){void 0===t&&(t=40);var n=Object.keys(c(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,u.truncate)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,u.truncate)(i,t)}return""},t.dropUndefinedKeys=function e(t){var n,i;if((0,o.isPlainObject)(t)){var s=t,a={};try{for(var u=(0,r.__values)(Object.keys(s)),c=u.next();!c.done;c=u.next()){var l=c.value;void 0!==s[l]&&(a[l]=e(s[l]))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return a}if(Array.isArray(t))return t.map(e);return t},t.objectify=function(e){var t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,o.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t};var r=n(25),i=n(520),o=n(131),s=n(522),a=n(296),u=n(297);function c(e){if((0,o.isError)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if((0,o.isEvent)(e)){var s=e,a={};a.type=s.type;try{a.target=(0,o.isElement)(s.target)?(0,i.htmlTreeAsString)(s.target):Object.prototype.toString.call(s.target)}catch(e){a.target="<unknown>"}try{a.currentTarget=(0,o.isElement)(s.currentTarget)?(0,i.htmlTreeAsString)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){a.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&(0,o.isInstanceOf)(e,CustomEvent)&&(a.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);return a}return e}function l(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,o.isSyntheticEvent)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(0,a.getFunctionName)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function p(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new s.Memo),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=l(e);return(0,o.isPrimitive)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=l(t,e);if((0,o.isPrimitive)(i))return i;var a=c(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(u[d]=p(d,a[d],n-1,r));return r.unmemoize(t),u}function d(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return p(e,n,t)})))}catch(e){return"**non-serializable**"}}}).call(this,n(50))},522:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Memo=void 0;var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();t.Memo=r},523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},t.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},t.supportsFetch=o,t.isNativeFetch=s,t.supportsNativeFetch=function(){if(!o())return!1;var e=(0,r.getGlobalObject)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),a.contentWindow&&a.contentWindow.fetch&&(t=s(a.contentWindow.fetch)),n.head.removeChild(a)}catch(e){i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t},t.supportsReportingObserver=function(){return"ReportingObserver"in(0,r.getGlobalObject)()},t.supportsReferrerPolicy=function(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},t.supportsHistory=function(){var e=(0,r.getGlobalObject)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i};var r=n(102),i=n(295);function o(){if(!("fetch"in(0,r.getGlobalObject)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}},524:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncPromise=void 0;var r,i=n(131);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&((0,i.isThenable)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==r.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===r.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===r.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,s){e.resolve(t).then((function(e){o[s]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}();t.SyncPromise=o},525:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var r=n(51),i=n(16),o=function(){function e(e){this.errors=0,this.sid=(0,i.uuid4)(),this.duration=0,this.status=r.SessionStatus.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,i.timestampInSeconds)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,i.timestampInSeconds)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,i.uuid4)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===r.SessionStatus.Ok?this.update({status:r.SessionStatus.Exited}):this.update()},e.prototype.toJSON=function(){return(0,i.dropUndefinedKeys)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:(0,i.dropUndefinedKeys)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}();t.Session=o},526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMainCarrier=c,t.makeMain=l,t.getCurrentHub=function(){var e=c();p(e)&&!d(e).isOlderThan(4)||f(e,new u);if((0,o.isNodeEnv)())return function(e){var t,n,r;try{var i=null===(r=null===(n=null===(t=c().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return d(e);if(!p(i)||d(i).isOlderThan(4)){var o=d(e).getStackTop();f(i,new u(o.client,s.Scope.clone(o.scope)))}return d(i)}catch(t){return d(e)}}(e);return d(e)},t.getActiveDomain=function(){o.logger.warn("Function `getActiveDomain` is deprecated and will be removed in a future version.");var e=c().__SENTRY__;return e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active},t.getHubFromCarrier=d,t.setHubOnCarrier=f,t.Hub=t.API_VERSION=void 0;var r=n(25),i=n(51),o=n(16),s=n(519),a=n(525);t.API_VERSION=4;var u=function(){function e(e,t,n){void 0===t&&(t=new s.Scope),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=s.Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,o.uuid4)(),i=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}i={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,(0,r.__assign)((0,r.__assign)({},i),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var i=this._lastEventId=(0,o.uuid4)(),s=n;if(!n){var a=void 0;try{throw new Error(e)}catch(e){a=e}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,(0,r.__assign)((0,r.__assign)({},s),{event_id:i})),i},e.prototype.captureEvent=function(e,t){var n=(0,o.uuid4)();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,(0,r.__assign)((0,r.__assign)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),i=n.scope,s=n.client;if(i&&s){var a=s.getOptions&&s.getOptions()||{},u=a.beforeBreadcrumb,c=void 0===u?null:u,l=a.maxBreadcrumbs,p=void 0===l?100:l;if(!(p<=0)){var d=(0,o.dateTimestampInSeconds)(),f=(0,r.__assign)({timestamp:d},e),h=c?(0,o.consoleSandbox)((function(){return c(f,t)})):f;null!==h&&i.addBreadcrumb(h,p)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=l(this);try{e(this)}finally{l(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return o.logger.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,i;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,s=t.client,u=s&&s.getOptions()||{},c=u.release,l=u.environment,p=((0,o.getGlobalObject)().navigator||{}).userAgent,d=new a.Session((0,r.__assign)((0,r.__assign)((0,r.__assign)({release:c,environment:l},n&&{user:n.getUser()}),p&&{userAgent:p}),e));if(n){var f=n.getSession&&n.getSession();f&&f.status===i.SessionStatus.Ok&&f.update({status:i.SessionStatus.Exited}),this.endSession(),n.setSession(d)}return d},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,(0,r.__spread)(n,[s]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=c(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);o.logger.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function c(){var e=(0,o.getGlobalObject)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function l(e){var t=c(),n=d(t);return f(t,e),n}function p(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function d(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub?e.__SENTRY__.hub:(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new u,e.__SENTRY__.hub)}function f(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}t.Hub=u},527:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTransport=void 0;var r=n(51),i=n(16),o=function(){function e(){}return e.prototype.sendEvent=function(e){return i.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:r.Status.Skipped})},e.prototype.close=function(e){return i.SyncPromise.resolve(!0)},e}();t.NoopTransport=o},528:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserClient=void 0;var r=n(25),i=n(58),o=n(16),s=n(1629),a=n(158),u=n(301),c=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:i.SDK_VERSION}],version:i.SDK_VERSION},e.call(this,s.BrowserBackend,t)||this}return(0,r.__extends)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,o.getGlobalObject)().document&&(this._isEnabled()?(0,a.injectReportDialog)((0,r.__assign)((0,r.__assign)({},e),{dsn:e.dsn||this.getDsn()})):o.logger.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(u.Breadcrumbs);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(i.BaseClient);t.BrowserClient=c},529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exceptionFromStacktrace=o,t.eventFromPlainObject=function(e,t,n){var o={exception:{values:[{type:(0,r.isEvent)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,r.extractExceptionKeysForMessage)(e)}]},extra:{__serialized__:(0,r.normalizeToSize)(e)}};if(t){var a=s((0,i.computeStackTrace)(t).stack);o.stacktrace={frames:a}}return o},t.eventFromStacktrace=function(e){return{exception:{values:[o(e)]}}},t.prepareFramesForEvent=s;var r=n(16),i=n(299);function o(e){var t=s(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function s(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}},530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BaseTransport",{enumerable:!0,get:function(){return r.BaseTransport}}),Object.defineProperty(t,"FetchTransport",{enumerable:!0,get:function(){return i.FetchTransport}}),Object.defineProperty(t,"XHRTransport",{enumerable:!0,get:function(){return o.XHRTransport}});var r=n(300),i=n(1630),o=n(1631)},531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNativeFetchImplementation=s,t.sendReport=function(e,t){if("[object Navigator]"===Object.prototype.toString.call(o&&o.navigator)&&"function"==typeof o.navigator.sendBeacon){return o.navigator.sendBeacon.bind(o.navigator)(e,t)}if((0,i.supportsFetch)()){var n=s();return(0,i.forget)(n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}))}};var r,i=n(16),o=(0,i.getGlobalObject)();function s(){var e,t;if(r)return r;if((0,i.isNativeFetch)(o.fetch))return r=o.fetch.bind(o);var n=o.document,s=o.fetch;if("function"==typeof(null===(e=n)||void 0===e?void 0:e.createElement))try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),(null===(t=a.contentWindow)||void 0===t?void 0:t.fetch)&&(s=a.contentWindow.fetch),n.head.removeChild(a)}catch(e){i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return r=s.bind(o)}},532:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.startIdleTransaction=function(e,t,n,i,o){var s,a,c=(null===(s=e.getClient())||void 0===s?void 0:s.getOptions())||{},l=new u.IdleTransaction(t,e,n,i);(l=d(l,c,(0,r.__assign)({parentSampled:t.parentSampled,transactionContext:t},o))).sampled&&l.initSpanRecorder(null===(a=c._experiments)||void 0===a?void 0:a.maxSpans);return l},t._addTracingExtensions=h,t.addExtensionMethods=function(){h(),(0,s.isNodeEnv)()&&function(){var t=(0,i.getMainCarrier)();if(!t.__SENTRY__)return;var n={mongodb:function(){return new((0,s.dynamicRequire)(e,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,s.dynamicRequire)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,s.dynamicRequire)(e,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,s.dynamicRequire)(e,"./integrations/node/postgres").Postgres)}},o=Object.keys(n).filter((function(e){return!!(0,s.loadModule)(e)})).map((function(e){try{return n[e]()}catch(e){return}})).filter((function(e){return e}));o.length>0&&(t.__SENTRY__.integrations=(0,r.__spread)(t.__SENTRY__.integrations||[],o))}();(0,a.registerErrorInstrumentation)()};var r=n(25),i=n(85),o=n(51),s=n(16),a=n(1643),u=n(302),c=n(304),l=n(104);function p(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function d(e,t,n){return(0,l.hasTracingEnabled)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:o.TransactionSamplingMethod.Explicit}}),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:o.TransactionSamplingMethod.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:o.TransactionSamplingMethod.Inheritance}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:o.TransactionSamplingMethod.Rate,rate:Number(r)}})),function(e){if(isNaN(e)||"number"!=typeof e&&"boolean"!=typeof e)return s.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return s.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(s.logger.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(s.logger.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),e)):(s.logger.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(s.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r}function f(e,t){var n,i,o=(null===(n=this.getClient())||void 0===n?void 0:n.getOptions())||{},s=new c.Transaction(e,this);return(s=d(s,o,(0,r.__assign)({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&s.initSpanRecorder(null===(i=o._experiments)||void 0===i?void 0:i.maxSpans),s}function h(){var e=(0,i.getMainCarrier)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=f),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=p))}}).call(this,n(98)(e))},533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instrumentOutgoingRequests=function(e){var t=(0,r.__assign)((0,r.__assign)({},u),e),n=t.traceFetch,o=t.traceXHR,s=t.tracingOrigins,a=t.shouldCreateSpanForRequest,p={},d=function(e){if(p[e])return p[e];var t=s;return p[e]=t.some((function(t){return(0,i.isMatchingPattern)(e,t)}))&&!(0,i.isMatchingPattern)(e,"sentry_key"),p[e]},f=d;"function"==typeof a&&(f=function(e){return d(e)&&a(e)});var h={};n&&(0,i.addInstrumentationHandler)({callback:function(e){c(e,f,h)},type:"fetch"});o&&(0,i.addInstrumentationHandler)({callback:function(e){l(e,f,h)},type:"xhr"})},t.fetchCallback=c,t.xhrCallback=l,t.defaultRequestInstrumentationOptions=t.DEFAULT_TRACING_ORIGINS=void 0;var r=n(25),i=n(16),o=n(103),s=n(104),a=["localhost",/^\//];t.DEFAULT_TRACING_ORIGINS=a;var u={traceFetch:!0,traceXHR:!0,tracingOrigins:a};function c(e,t,n){if((0,s.hasTracingEnabled)()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp&&e.fetchData.__span){(u=n[e.fetchData.__span])&&(e.response?u.setHttpStatus(e.response.status):e.error&&u.setStatus(o.SpanStatus.InternalError),u.finish(),delete n[e.fetchData.__span])}else{var a=(0,s.getActiveTransaction)();if(a){var u=a.startChild({data:(0,r.__assign)((0,r.__assign)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=u.spanId,n[u.spanId]=u;var c=e.args[0]=e.args[0],l=e.args[1]=e.args[1]||{},p=l.headers;(0,i.isInstanceOf)(c,Request)&&(p=c.headers),p?"function"==typeof p.append?p.append("sentry-trace",u.toTraceparent()):p=Array.isArray(p)?(0,r.__spread)(p,[["sentry-trace",u.toTraceparent()]]):(0,r.__assign)((0,r.__assign)({},p),{"sentry-trace":u.toTraceparent()}):p={"sentry-trace":u.toTraceparent()},l.headers=p}}}function l(e,t,n){var i,o;if((0,s.hasTracingEnabled)()&&(null===(i=e.xhr)||void 0===i||!i.__sentry_own_request__)&&(null===(o=e.xhr)||void 0===o?void 0:o.__sentry_xhr__)&&t(e.xhr.__sentry_xhr__.url)){var a=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){(c=n[e.xhr.__sentry_xhr_span_id__])&&(c.setHttpStatus(a.status_code),c.finish(),delete n[e.xhr.__sentry_xhr_span_id__])}else{var u=(0,s.getActiveTransaction)();if(u){var c=u.startChild({data:(0,r.__assign)((0,r.__assign)({},a.data),{type:"xhr",method:a.method,url:a.url}),description:a.method+" "+a.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=c.spanId,n[e.xhr.__sentry_xhr_span_id__]=c,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",c.toTraceparent())}catch(e){}}}}}t.defaultRequestInstrumentationOptions=u},58:function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBreadcrumb",{enumerable:!0,get:function(){return i.addBreadcrumb}}),Object.defineProperty(t,"captureException",{enumerable:!0,get:function(){return i.captureException}}),Object.defineProperty(t,"captureEvent",{enumerable:!0,get:function(){return i.captureEvent}}),Object.defineProperty(t,"captureMessage",{enumerable:!0,get:function(){return i.captureMessage}}),Object.defineProperty(t,"configureScope",{enumerable:!0,get:function(){return i.configureScope}}),Object.defineProperty(t,"startTransaction",{enumerable:!0,get:function(){return i.startTransaction}}),Object.defineProperty(t,"setContext",{enumerable:!0,get:function(){return i.setContext}}),Object.defineProperty(t,"setExtra",{enumerable:!0,get:function(){return i.setExtra}}),Object.defineProperty(t,"setExtras",{enumerable:!0,get:function(){return i.setExtras}}),Object.defineProperty(t,"setTag",{enumerable:!0,get:function(){return i.setTag}}),Object.defineProperty(t,"setTags",{enumerable:!0,get:function(){return i.setTags}}),Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return i.setUser}}),Object.defineProperty(t,"withScope",{enumerable:!0,get:function(){return i.withScope}}),Object.defineProperty(t,"addGlobalEventProcessor",{enumerable:!0,get:function(){return o.addGlobalEventProcessor}}),Object.defineProperty(t,"getCurrentHub",{enumerable:!0,get:function(){return o.getCurrentHub}}),Object.defineProperty(t,"getHubFromCarrier",{enumerable:!0,get:function(){return o.getHubFromCarrier}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return o.Hub}}),Object.defineProperty(t,"makeMain",{enumerable:!0,get:function(){return o.makeMain}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return s.API}}),Object.defineProperty(t,"BaseClient",{enumerable:!0,get:function(){return a.BaseClient}}),Object.defineProperty(t,"BaseBackend",{enumerable:!0,get:function(){return u.BaseBackend}}),Object.defineProperty(t,"eventToSentryRequest",{enumerable:!0,get:function(){return c.eventToSentryRequest}}),Object.defineProperty(t,"sessionToSentryRequest",{enumerable:!0,get:function(){return c.sessionToSentryRequest}}),Object.defineProperty(t,"initAndBind",{enumerable:!0,get:function(){return l.initAndBind}}),Object.defineProperty(t,"NoopTransport",{enumerable:!0,get:function(){return p.NoopTransport}}),Object.defineProperty(t,"SDK_VERSION",{enumerable:!0,get:function(){return d.SDK_VERSION}}),t.Integrations=void 0;var i=n(1609),o=n(85),s=n(1619),a=n(1620),u=n(1622),c=n(1623),l=n(1624),p=n(527),d=n(1625),f=r(n(1626));t.Integrations=f},85:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addGlobalEventProcessor",{enumerable:!0,get:function(){return r.addGlobalEventProcessor}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"Session",{enumerable:!0,get:function(){return i.Session}}),Object.defineProperty(t,"SessionFlusher",{enumerable:!0,get:function(){return o.SessionFlusher}}),Object.defineProperty(t,"getActiveDomain",{enumerable:!0,get:function(){return s.getActiveDomain}}),Object.defineProperty(t,"getCurrentHub",{enumerable:!0,get:function(){return s.getCurrentHub}}),Object.defineProperty(t,"getHubFromCarrier",{enumerable:!0,get:function(){return s.getHubFromCarrier}}),Object.defineProperty(t,"getMainCarrier",{enumerable:!0,get:function(){return s.getMainCarrier}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return s.Hub}}),Object.defineProperty(t,"makeMain",{enumerable:!0,get:function(){return s.makeMain}}),Object.defineProperty(t,"setHubOnCarrier",{enumerable:!0,get:function(){return s.setHubOnCarrier}});var r=n(519),i=n(525),o=n(1618),s=n(526)}});