Version Description
Download this release
Release Info
Developer | fullofcaffeine |
Plugin | Full Site Editing |
Version | 3.30687 |
Comparing to | |
See all releases |
Code changes from version 3.30682 to 3.30687
build_meta.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
commit_hash=
|
2 |
-
commit_url=https://github.com/Automattic/wp-calypso/commit/
|
3 |
-
build_number=3.
|
1 |
+
commit_hash=a702520a5beaed9cafd48173f21ac2dc5df86daa
|
2 |
+
commit_url=https://github.com/Automattic/wp-calypso/commit/a702520a5beaed9cafd48173f21ac2dc5df86daa
|
3 |
+
build_number=3.30687
|
error-reporting/dist/error-reporting.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '3da32f4df54ad9a878762a572a978137');
|
error-reporting/dist/error-reporting.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(){"use strict";var t={487:function(t,e,n){n.d(e,{u:function(){return p}});var r=n(334),i=n(9504),o=n(2226),a=n(9798),s=n(1988),u=n(6149),c=n(6144),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.eventFromException=function(t,e){return(0,s.dr)(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=o.z.Info),(0,s.aB)(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=(0,r.pi)((0,r.pi)({},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(e):(0,a.Ak)()?new u.V(e):new c.w(e)},e}(i.N)},2314:function(t,e,n){n.d(e,{R:function(){return l}});var r=n(334),i=n(1476),o=n(9849),a=n(5907),s=n(8536),u=n(487),c=n(2634),p=n(8356),l=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:i.J}],version:i.J},t.call(this,u.u,e)||this}return(0,r.ZT)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,a.R)().document&&(this._isEnabled()?(0,c.BS)((0,r.pi)((0,r.pi)({},t),{dsn:t.dsn||this.getDsn()})):s.k.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(p.O);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(o.W)},1988:function(t,e,n){n.d(e,{dr:function(){return p},aB:function(){return l},ME:function(){return d}});var r=n(334),i=n(2226),o=n(3699),a=n(7946),s=n(1757),u=n(5311),c=n(3320);function p(t,e,n){var r=d(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return(0,o.EG)(r),r.level=i.z.Error,n&&n.event_id&&(r.event_id=n.event_id),a.c.resolve(r)}function l(t,e,n,r){void 0===n&&(n=i.z.Info);var o=f(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),a.c.resolve(o)}function d(t,e,n){var i;if(void 0===n&&(n={}),(0,s.VW)(t)&&t.error)return t=t.error,i=(0,u.Vf)((0,c._)(t));if((0,s.TX)(t)||(0,s.fm)(t)){var a=t;if("stack"in t)i=(0,u.Vf)((0,c._)(t));else{var p=a.name||((0,s.TX)(a)?"DOMError":"DOMException"),l=a.message?p+": "+a.message:p;i=f(l,e,n),(0,o.Db)(i,l)}return"code"in a&&(i.tags=(0,r.pi)((0,r.pi)({},i.tags),{"DOMException.code":""+a.code})),i}if((0,s.VZ)(t))return i=(0,u.Vf)((0,c._)(t));if((0,s.PO)(t)||(0,s.cO)(t)){var d=t;return i=(0,u.QI)(d,e,n.rejection),(0,o.EG)(i,{synthetic:!0}),i}return i=f(t,e,n),(0,o.Db)(i,""+t,void 0),(0,o.EG)(i,{synthetic:!0}),i}function f(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var i=(0,c._)(e),o=(0,u.LU)(i.stack);r.stacktrace={frames:o}}return r}},2634:function(t,e,n){n.d(e,{Wz:function(){return l},re:function(){return f},BS:function(){return h}});var r=n(334),i=n(4678),o=n(4911),a=n(5907),s=n(3699),u=n(8536),c=(0,a.R)(),p=0;function l(){return p>0}function d(){p+=1,setTimeout((function(){p-=1}))}function f(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(u){return t}var o=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var a=o.map((function(t){return f(t,e)}));return t.handleEvent?t.handleEvent.apply(this,a):t.apply(this,a)}catch(u){throw d(),(0,i.$e)((function(t){t.addEventProcessor((function(t){var n=(0,r.pi)({},t);return e.mechanism&&((0,s.Db)(n,void 0,void 0),(0,s.EG)(n,e.mechanism)),n.extra=(0,r.pi)((0,r.pi)({},n.extra),{arguments:o}),n})),(0,i.Tb)(u)})),u}};try{for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=t[a])}catch(c){}t.prototype=t.prototype||{},o.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:o}),Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(c){}return o}function h(t){if(void 0===t&&(t={}),c.document)if(t.eventId)if(t.dsn){var e=c.document.createElement("script");e.async=!0,e.src=new o.b(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad);var n=c.document.head||c.document.body;n&&n.appendChild(e)}else u.k.error("Missing dsn option in showReportDialog call");else u.k.error("Missing eventId option in showReportDialog call")}},8356:function(t,e,n){n.d(e,{O:function(){return l}});var r=n(334),i=n(8585),o=n(2226),a=n(3699),s=n(4005),u=n(9660),c=n(4194),p=n(5907),l=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.jH)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._consoleBreadcrumb.apply(t,(0,r.fl)(e))},type:"console"}),this._options.dom&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._domBreadcrumb.apply(t,(0,r.fl)(e))},type:"dom"}),this._options.xhr&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._xhrBreadcrumb.apply(t,(0,r.fl)(e))},type:"xhr"}),this._options.fetch&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._fetchBreadcrumb.apply(t,(0,r.fl)(e))},type:"fetch"}),this._options.history&&(0,s.o)({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._historyBreadcrumb.apply(t,(0,r.fl)(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:o.z.fromString(t.level),message:(0,u.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,u.nK)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,i.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e,n="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{e=t.event.target?(0,c.R)(t.event.target,n):(0,c.R)(t.event,n)}catch(r){e="<unknown>"}0!==e.length&&(0,i.Gd)().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,a=e.body;(0,i.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:a})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,i.Gd)().addBreadcrumb({category:"fetch",data:t.fetchData,level:o.z.Error,type:"http"},{data:t.error,input:t.args}):(0,i.Gd)().addBreadcrumb({category:"fetch",data:(0,r.pi)((0,r.pi)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=(0,p.R)(),n=t.from,r=t.to,o=(0,a.en)(e.location.href),s=(0,a.en)(n),u=(0,a.en)(r);s.path||(s=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),(0,i.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}()},184:function(t,e,n){n.d(e,{I:function(){return i}});var r=n(8536),i=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var i=n().getIntegration(t);if(i){try{if(i._shouldDropEvent(e,i._previousEvent))return r.k.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(o){return i._previousEvent=e}return i._previousEvent=e}return e}))},t.prototype._shouldDropEvent=function(t,e){return!!e&&(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},t.prototype._isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e))))},t.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,e){var n=this._getFramesFromEvent(t),r=this._getFramesFromEvent(e);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],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype._isSameExceptionEvent=function(t,e){var n=this._getExceptionFromEvent(e),r=this._getExceptionFromEvent(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e)))},t.prototype._isSameFingerprint=function(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(i){return!1}},t.id="Dedupe",t}()},1228:function(t,e,n){n.d(e,{d:function(){return f}});var r=n(334),i=n(8585),o=n(2226),a=n(8536),s=n(4005),u=n(1757),c=n(3699),p=n(4194),l=n(1988),d=n(2634),f=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=(0,r.pi)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(a.k.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(a.k.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||((0,s.o)({callback:function(n){var r=n.error,o=(0,i.Gd)(),a=o.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(a&&!(0,d.Wz)()&&!s){var p=o.getClient(),f=void 0===r&&(0,u.HD)(n.msg)?e._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):e._enhanceEventWithInitialFrame((0,l.ME)(r||n.msg,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,c.EG)(f,{handled:!1,type:"onerror"}),o.captureEvent(f,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||((0,s.o)({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(v){}var a=(0,i.Gd)(),s=a.getIntegration(t),p=r&&!0===r.__sentry_own_request__;if(!s||(0,d.Wz)()||p)return!0;var f=a.getClient(),h=(0,u.pt)(r)?e._eventFromRejectionWithPrimitive(r):(0,l.ME)(r,void 0,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!0});h.level=o.z.Error,(0,c.EG)(h,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(h,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,n,r){var i,o=(0,u.VW)(t)?t.message:t,a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2]);var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,e,n,r)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=(0,u.HD)(e)&&e.length>0?e:(0,p.l)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}()},3440:function(t,e,n){n.d(e,{i:function(){return c}});var r=n(334),i=n(1684),o=n(8585),a=n(1757),s=n(5311),u=n(3320),c=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){(0,i.c)((function(e,n){var r=(0,o.Gd)().getIntegration(t);if(r){var i=r._handler&&r._handler.bind(r);return"function"==typeof i?i(e,n):e}return e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&(0,a.V9)(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=(0,r.fl)(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(0,a.V9)(t[e],Error)||n.length+1>=this._limit)return n;var i=(0,u._)(t[e]),o=(0,s.__)(i);return this._walkErrorTree(t[e],e,(0,r.fl)([o],n))},t.id="LinkedErrors",t}()},3399:function(t,e,n){n.d(e,{p:function(){return c}});var r=n(334),i=n(5907),o=n(1995),a=n(9038),s=n(2634),u=["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"],c=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,i.R)();(this._options.setTimeout&&(0,o.hl)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&(0,o.hl)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&(0,o.hl)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,o.hl)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:u).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=(0,s.re)(r,{mechanism:{data:{function:(0,a.$)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,(0,s.re)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,a.$)(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=(0,i.R)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,s.re)(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:(0,a.$)(r),target:t},handled:!0,type:"instrument"}}))}catch(o){}return e.call(this,n,(0,s.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,a.$)(r),target:t},handled:!0,type:"instrument"}}),i)}})),(0,o.hl)(n,"removeEventListener",(function(t){return function(e,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&t.call(this,e,a,r)}catch(s){}return t.call(this,e,o,r)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(t){t in r&&"function"==typeof r[t]&&(0,o.hl)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,a.$)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=(0,a.$)(e.__sentry_original__)),(0,s.re)(e,n)}))})),t.apply(this,e)}},t.id="TryCatch",t}()},9992:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(334),i=n(1684),o=n(8585),a=(0,n(5907).R)(),s=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){(0,i.c)((function(e){var n,i,s;if((0,o.Gd)().getIntegration(t)){if(!a.navigator&&!a.location&&!a.document)return e;var u=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(i=a.location)||void 0===i?void 0:i.href),c=(a.document||{}).referrer,p=(a.navigator||{}).userAgent,l=(0,r.pi)((0,r.pi)((0,r.pi)({},null===(s=e.request)||void 0===s?void 0:s.headers),c&&{Referer:c}),p&&{"User-Agent":p}),d=(0,r.pi)((0,r.pi)({},u&&{url:u}),{headers:l});return(0,r.pi)((0,r.pi)({},e),{request:d})}return e}))},t.id="UserAgent",t}()},5311:function(t,e,n){n.d(e,{__:function(){return a},QI:function(){return s},Vf:function(){return u},LU:function(){return c}});var r=n(1757),i=n(1995),o=n(3320);function a(t){var e=c(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function s(t,e,n){var a={exception:{values:[{type:(0,r.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,i.zf)(t)}]},extra:{__serialized__:(0,i.Qy)(t)}};if(e){var s=c((0,o._)(e).stack);a.stacktrace={frames:s}}return a}function u(t){return{exception:{values:[a(t)]}}}function c(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}},2456:function(t,e,n){n.d(e,{S1:function(){return g},yl:function(){return b}});var r=n(1061),i=n(6286),o=n(6853),a=n(8585),s=n(5907),u=n(8536),c=n(7946),p=n(4005),l=n(2314),d=n(3399),f=n(8356),h=n(1228),v=n(3440),_=n(184),m=n(9992),y=[new r.Q,new i.c,new d.p,new f.O,new h.d,new v.i,new _.I,new m.Z];function g(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=y),void 0===t.release){var e=(0,s.R)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),(0,o.M)(l.R,t),t.autoSessionTracking&&function(){if(void 0===(0,s.R)().document)return void u.k.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var t=(0,a.Gd)();if("function"!=typeof t.startSession||"function"!=typeof t.captureSession)return;t.startSession({ignoreDuration:!0}),t.captureSession(),(0,p.o)({callback:function(e){var n=e.from,r=e.to;void 0!==n&&n!==r&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"})}()}function b(t){var e=(0,a.Gd)().getClient();return e?e.flush(t):(u.k.warn("Cannot flush events. No client defined."),c.c.resolve(!1))}},3320:function(t,e,n){n.d(e,{_:function(){return l}});var r=n(334),i="?",o=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\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,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,p=/Minified React error #\d+;/i;function l(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:p.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,a=n.split("\n"),s=[],u=0;u<a.length;u+=2){var c=null;(e=r.exec(a[u]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(a[u]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func=i),s.push(c))}if(!s.length)return null;return{message:h(t),name:t.name,stack:s}}(t),e)return f(e,n)}catch(l){}try{if(e=function(t){var e,n;if(!t||!t.stack)return null;for(var p,l,f,v=[],_=t.stack.split("\n"),m=0;m<_.length;++m){if(l=o.exec(_[m])){var y=l[2]&&0===l[2].indexOf("native");l[2]&&0===l[2].indexOf("eval")&&(p=c.exec(l[2]))&&(l[2]=p[1],l[3]=p[2],l[4]=p[3]);var g=l[2]&&0===l[2].indexOf("address at ")?l[2].substr("address at ".length):l[2],b=l[1]||i;b=(e=(0,r.CR)(d(b,g),2))[0],f={url:g=e[1],func:b,args:y?[l[2]]:[],line:l[3]?+l[3]:null,column:l[4]?+l[4]:null}}else if(l=s.exec(_[m]))f={url:l[2],func:l[1]||i,args:[],line:+l[3],column:l[4]?+l[4]:null};else{if(!(l=a.exec(_[m])))continue;l[3]&&l[3].indexOf(" > eval")>-1&&(p=u.exec(l[3]))?(l[1]=l[1]||"eval",l[3]=p[1],l[4]=p[2],l[5]=""):0!==m||l[5]||void 0===t.columnNumber||(v[0].column=t.columnNumber+1);g=l[3],b=l[1]||i;b=(n=(0,r.CR)(d(b,g),2))[0],f={url:g=n[1],func:b,args:l[2]?l[2].split(","):[],line:l[4]?+l[4]:null,column:l[5]?+l[5]:null}}!f.func&&f.line&&(f.func=i),v.push(f)}if(!v.length)return null;return{message:h(t),name:t.name,stack:v}}(t),e)return f(e,n)}catch(l){}return{message:h(t),name:t&&t.name,stack:[],failed:!0}}var d=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:i,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function f(t,e){try{return(0,r.pi)((0,r.pi)({},t),{stack:t.stack.slice(e)})}catch(n){return t}}function h(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}},6526:function(t,e,n){n.d(e,{d:function(){return v}});var r=n(334),i=n(4911),o=n(4434),a=n(5907),s=n(8963),u=n(4388),c=n(8536),p=n(7790),l=n(3699),d=n(5854),f={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},h=(0,a.R)(),v=function(){function t(t){var e=this;this.options=t,this._buffer=new s.D(30),this._rateLimits={},this._outcomes={},this._api=new i.b(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&h.document&&h.document.addEventListener("visibilitychange",(function(){"hidden"===h.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){throw new u.b("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=f[e]+":"+t;c.k.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){c.k.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),n=JSON.stringify((0,r.pi)({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,p.yW)(),discarded_events:Object.keys(t).map((function(e){var n=(0,r.CR)(e.split(":"),2),i=n[0];return{reason:n[1],category:i,quantity:t[e]}}))});try{(0,d.z)(e,n)}catch(i){c.k.error(i)}}else c.k.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,a=t.reject,s=o.q.fromHttpCode(n.status);this._handleRateLimit(r)&&c.k.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),s!==o.q.Success?a(n):i({status:s})},t.prototype._disabledUntil=function(t){var e=f[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,i,o,a=Date.now(),s=t["x-sentry-rate-limits"],u=t["retry-after"];if(s){try{for(var c=(0,r.XA)(s.trim().split(",")),p=c.next();!p.done;p=c.next()){var d=p.value.split(":",2),f=parseInt(d[0],10),h=1e3*(isNaN(f)?60:f);try{for(var v=(i=void 0,(0,r.XA)(d[1].split(";"))),_=v.next();!_.done;_=v.next()){var m=_.value;this._rateLimits[m||"all"]=new Date(a+h)}}catch(y){i={error:y}}finally{try{_&&!_.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(g){e={error:g}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return!0}return!!u&&(this._rateLimits.all=new Date(a+(0,l.JY)(a,u)),!0)},t}()},6149:function(t,e,n){n.d(e,{V:function(){return l}});var r=n(334),i=n(6508),o=n(7010),a=n(9798),s=n(7946),u=n(4388),c=n(6526),p=n(5854),l=function(t){function e(e,n){void 0===n&&(n=(0,p.x)());var r=t.call(this,e)||this;return r._fetch=n,r}return(0,r.ZT)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest((0,i.n)(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest((0,i.Q)(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent(o.k.RateLimitBackoff,t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:(0,a.hv)()?"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.c((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})})).catch(i)}))})).then(void 0,(function(e){throw e instanceof u.b?n.recordLostEvent(o.k.QueueOverflow,t.type):n.recordLostEvent(o.k.NetworkError,t.type),e}))},e}(c.d)},5854:function(t,e,n){n.d(e,{x:function(){return c},z:function(){return p}});var r,i=n(5907),o=n(9798),a=n(8536),s=n(3518),u=(0,i.R)();function c(){var t,e;if(r)return r;if((0,o.Du)(u.fetch))return r=u.fetch.bind(u);var n=u.document,i=u.fetch;if("function"==typeof(null===(t=n)||void 0===t?void 0:t.createElement))try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),(null===(e=s.contentWindow)||void 0===e?void 0:e.fetch)&&(i=s.contentWindow.fetch),n.head.removeChild(s)}catch(c){a.k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return r=i.bind(u)}function p(t,e){if("[object Navigator]"===Object.prototype.toString.call(u&&u.navigator)&&"function"==typeof u.navigator.sendBeacon)return u.navigator.sendBeacon.bind(u.navigator)(t,e);if((0,o.Ak)()){var n=c();return(0,s.I)(n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}},6144:function(t,e,n){n.d(e,{w:function(){return u}});var r=n(334),i=n(6508),o=n(7010),a=n(7946),s=n(4388),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest((0,i.n)(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest((0,i.Q)(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent(o.k.RateLimitBackoff,t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new a.c((function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)}))})).then(void 0,(function(e){throw e instanceof s.b?n.recordLostEvent(o.k.QueueOverflow,t.type):n.recordLostEvent(o.k.NetworkError,t.type),e}))},e}(n(6526).d)},334:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},XA:function(){return a},CR:function(){return s},fl:function(){return u}});
|
2 |
/*! *****************************************************************************
|
3 |
Copyright (c) Microsoft Corporation.
|
4 |
|
@@ -13,7 +13,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14 |
PERFORMANCE OF THIS SOFTWARE.
|
15 |
***************************************************************************** */
|
16 |
-
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}},4911:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(3135),i=n(1995),o=function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new r.l(t),this.metadata=e,this._tunnel=n}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+e.toString()),t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return(0,i._j)(t)},t}()},9504:function(t,e,n){n.d(e,{N:function(){return a}});var r=n(8536),i=n(4388),o=n(3926),a=function(){function t(t){this._options=t,this._options.dsn||r.k.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new i.b("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new i.b("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){r.k.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){r.k.error("Error while sending session: "+t)})):r.k.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new o.V},t}()},9849:function(t,e,n){n.d(e,{W:function(){return y}});var r=n(5733),i=n(1684),o=n(5971),a=n(7010),s=n(3135),u=n(3699),c=n(8536),p=n(1757),l=n(7946),d=n(7790),f=n(1995),h=n(9660),v=n(4388),_=n(8889),m="Not capturing exception because it's already been captured.",y=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new s.l(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if(!(0,u.YO)(t)){var i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i}c.k.log(m)},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,a=(0,p.pt)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(a.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){var r;if(!(null===(r=e)||void 0===r?void 0:r.originalException)||!(0,u.YO)(e.originalException)){var i=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){i=t}))),i}c.k.log(m)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?c.k.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):c.k.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(0,_.q4)(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return c.k.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,i,a=!1,s=!1,u=e.exception&&e.exception.values;if(u){s=!0;try{for(var c=(0,r.XA)(u),p=c.next();!p.done;p=c.next()){var l=p.value.mechanism;if(l&&!1===l.handled){a=!0;break}}}catch(f){n={error:f}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}var d=t.status===o.$.Ok;(d&&0===t.errors||d&&a)&&(t.update((0,r.pi)((0,r.pi)({},a&&{status:o.$.Crashed}),{errors:t.errors||Number(s||a)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new l.c((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var o=this,a=this.getOptions().normalizeDepth,s=void 0===a?3:a,c=(0,r.pi)((0,r.pi)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,u.DM)()),timestamp:t.timestamp||(0,d.yW)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var p=e;n&&n.captureContext&&(p=i.s.clone(p).update(n.captureContext));var f=l.c.resolve(c);return p&&(f=p.applyToEvent(c,n)),f.then((function(t){return"number"==typeof s&&s>0?o._normalizeEvent(t,s):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return(0,r.pi)((0,r.pi)({},t),t.data&&{data:(0,f.Fv)(t.data,e)})}))}),t.user&&{user:(0,f.Fv)(t.user,e)}),t.contexts&&{contexts:(0,f.Fv)(t.contexts,e)}),t.extra&&{extra:(0,f.Fv)(t.extra,e)});t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace);var i=this.getOptions()._experiments;return(void 0===i?{}:i).ensureNoCircularStructures?(0,f.Fv)(n):n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,h.$G)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=(0,h.$G)(s.value,a));var u=t.request;u&&u.url&&(u.url=(0,h.$G)(u.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){c.k.error(t)}))},t.prototype._processEvent=function(t,e,n){var r,i,o=this,s=this.getOptions(),u=s.beforeSend,c=s.sampleRate,p=this.getTransport();if(!this._isEnabled())return l.c.reject(new v.b("SDK not enabled, will not capture event."));var d="transaction"===t.type;return!d&&"number"==typeof c&&Math.random()>c?(null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,a.k.SampleRate,"event"),l.c.reject(new v.b("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(t,n,e).then((function(n){var r,i;if(null===n)throw null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,a.k.EventProcessor,t.type||"event"),new v.b("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||d||!u)return n;var s=u(n,e);return o._ensureBeforeSendRv(s)})).then((function(e){var r,i;if(null===e)throw null===(i=(r=p).recordLostEvent)||void 0===i||i.call(r,a.k.BeforeSend,t.type||"event"),new v.b("`beforeSend` returned `null`, will not send event.");var s=n&&n.getSession&&n.getSession();return!d&&s&&o._updateSessionFromEvent(s,e),o._sendEvent(e),e})).then(null,(function(t){if(t instanceof v.b)throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new v.b("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,p.J8)(t))return t.then((function(t){if(!(0,p.PO)(t)&&null!==t)throw new v.b(e);return t}),(function(t){throw new v.b("beforeSend rejected with "+t)}));if(!(0,p.PO)(t)&&null!==t)throw new v.b(e);return t},t}()},8889:function(t,e,n){n.d(e,{q4:function(){return c}});var r=n(5733),i=n(1684),o=n(8585),a=n(8536),s=[];function u(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function c(t){var e={};return function(t){var e=t.defaultIntegrations&&(0,r.fl)(t.defaultIntegrations)||[],n=t.integrations,i=(0,r.fl)(u(e));Array.isArray(n)?i=(0,r.fl)(i.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),u(n)):"function"==typeof n&&(i=n(i),i=Array.isArray(i)?i:[i]);var o=i.map((function(t){return t.name})),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,(0,r.fl)(i.splice(o.indexOf(a),1))),i}(t).forEach((function(t){e[t.name]=t,function(t){-1===s.indexOf(t.name)&&(t.setupOnce(i.c,o.Gd),s.push(t.name),a.k.log("Integration installed: "+t.name))}(t)})),Object.defineProperty(e,"initialized",{value:!0}),e}},6286:function(t,e,n){var r;n.d(e,{c:function(){return i}});var i=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return r.apply(n,t)}},t.id="FunctionToString",t}()},1061:function(t,e,n){n.d(e,{Q:function(){return p}});var r=n(5733),i=n(1684),o=n(8585),a=n(8536),s=n(3699),u=n(9660),c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],p=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){(0,i.c)((function(e){var n=(0,o.Gd)();if(!n)return e;var r=n.getIntegration(t);if(r){var i=n.getClient(),a=i?i.getOptions():{},s="function"==typeof r._mergeOptions?r._mergeOptions(a):{};return"function"!=typeof r._shouldDropEvent?e:r._shouldDropEvent(e,s)?null:e}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(a.k.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,s.jH)(t)),!0):this._isIgnoredError(t,e)?(a.k.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,s.jH)(t)),!0):this._isDeniedUrl(t,e)?(a.k.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,s.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(a.k.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,s.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(n){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return(0,u.zC)(t,e)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return(0,u.zC)(n,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return(0,u.zC)(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:(0,r.fl)(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:(0,r.fl)(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:(0,r.fl)(this._options.ignoreErrors||[],t.ignoreErrors||[],c),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(u){return a.k.error("Cannot extract message for event "+(0,s.jH)(t)),[]}return[]},t.prototype._getLastValidUrl=function(t){var e,n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--){var i=t[r];if("<anonymous>"!==(null===(e=i)||void 0===e?void 0:e.filename)&&"[native code]"!==(null===(n=i)||void 0===n?void 0:n.filename))return i.filename||null}return null},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return this._getLastValidUrl(e)}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(r){return a.k.error("Cannot extract url for event "+(0,s.jH)(t)),null}},t.id="InboundFilters",t}()},6508:function(t,e,n){n.d(e,{Q:function(){return a},n:function(){return s}});var r=n(5733);function i(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function o(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,r.fl)(t.sdk.packages||[],e.packages||[]),t):t}function a(t,e){var n=i(e),o="aggregates"in t?"sessions":"session";return{body:JSON.stringify((0,r.pi)((0,r.pi)({sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:o})+"\n"+JSON.stringify(t),type:o,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function s(t,e){var n=i(e),a=t.type||"event",s="transaction"===a||e.forceEnvelope(),u=t.debug_meta||{},c=u.transactionSampling,p=(0,r._T)(u,["transactionSampling"]),l=c||{},d=l.method,f=l.rate;0===Object.keys(p).length?delete t.debug_meta:t.debug_meta=p;var h={body:JSON.stringify(n?o(t,e.metadata.sdk):t),type:a,url:s?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(s){var v=JSON.stringify((0,r.pi)((0,r.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:a,sample_rates:[{id:d,rate:f}]})+"\n"+h.body;h.body=v}return h}},6853:function(t,e,n){n.d(e,{M:function(){return o}});var r=n(8585),i=n(8536);function o(t,e){var n;!0===e.debug&&i.k.enable();var o=(0,r.Gd)();null===(n=o.getScope())||void 0===n||n.update(e.initialScope);var a=new t(e);o.bindClient(a)}},3926:function(t,e,n){n.d(e,{V:function(){return o}});var r=n(4434),i=n(7946),o=function(){function t(){}return t.prototype.sendEvent=function(t){return i.c.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:r.q.Skipped})},t.prototype.close=function(t){return i.c.resolve(!0)},t}()},1476:function(t,e,n){n.d(e,{J:function(){return r}});var r="6.16.1"},5733:function(t,e,n){n.d(e,{pi:function(){return r},_T:function(){return i},XA:function(){return o},fl:function(){return s}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}},8585:function(t,e,n){n.d(e,{Xb:function(){return d},cu:function(){return f},Gd:function(){return v}});var r=n(8773),i=n(5971),o=n(3699),a=n(7790),s=n(8536),u=n(5907),c=n(7392),p=n(1684),l=n(2430),d=function(){function t(t,e,n){void 0===e&&(e=new p.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=p.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=(0,o.DM)(),i=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(t){a=t}i={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,(0,r.pi)((0,r.pi)({},i),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var i=this._lastEventId=(0,o.DM)(),a=n;if(!n){var s=void 0;try{throw new Error(t)}catch(u){s=u}a={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,(0,r.pi)((0,r.pi)({},a),{event_id:i})),i},t.prototype.captureEvent=function(t,e){var n=(0,o.DM)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,(0,r.pi)((0,r.pi)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),i=n.scope,o=n.client;if(i&&o){var u=o.getOptions&&o.getOptions()||{},c=u.beforeBreadcrumb,p=void 0===c?null:c,l=u.maxBreadcrumbs,d=void 0===l?100:l;if(!(d<=0)){var f=(0,a.yW)(),h=(0,r.pi)({timestamp:f},t),v=p?(0,s.C)((function(){return p(h,e)})):h;null!==v&&i.addBreadcrumb(v,d)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=h(this);try{t(this)}finally{h(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return s.k.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,e,n,r,i;null===(n=null===(e=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===e?void 0:e.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()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,c=a.environment,p=((0,u.R)().navigator||{}).userAgent,d=new l.z((0,r.pi)((0,r.pi)((0,r.pi)({release:s,environment:c},n&&{user:n.getUser()}),p&&{userAgent:p}),t));if(n){var f=n.getSession&&n.getSession();f&&f.status===i.$.Ok&&f.update({status:i.$.Exited}),this.endSession(),n.setSession(d)}return d},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),a=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,(0,r.fl)(n,[a]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=f(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);s.k.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function f(){var t=(0,u.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function h(t){var e=f(),n=m(e);return y(e,t),n}function v(){var t=f();return _(t)&&!m(t).isOlderThan(4)||y(t,new d),(0,c.KV)()?function(t){var e,n,r;try{var i=null===(r=null===(n=null===(e=f().__SENTRY__)||void 0===e?void 0:e.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return m(t);if(!_(i)||m(i).isOlderThan(4)){var o=m(t).getStackTop();y(i,new d(o.client,p.s.clone(o.scope)))}return m(i)}catch(a){return m(t)}}(t):m(t)}function _(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function m(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new d),t.__SENTRY__.hub}function y(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}},1684:function(t,e,n){n.d(e,{s:function(){return u},c:function(){return p}});var r=n(8773),i=n(1757),o=n(7790),a=n(7946),s=n(5907),u=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,r.fl)(e._breadcrumbs),n._tags=(0,r.pi)({},e._tags),n._extra=(0,r.pi)({},e._extra),n._contexts=(0,r.pi)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,r.fl)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,r.pi)((0,r.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,r.pi)((0,r.pi)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,r.pi)((0,r.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,r.pi)((0,r.pi)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,i=this.getSpan();return(null===(t=i)||void 0===t?void 0:t.transaction)?null===(e=i)||void 0===e?void 0:e.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},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,r.pi)((0,r.pi)({},this._tags),e._tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e._extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,i.PO)(e)&&(e=e,this._tags=(0,r.pi)((0,r.pi)({},this._tags),e.tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e.extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var i=(0,r.pi)({timestamp:(0,o.yW)()},t);return this._breadcrumbs=(0,r.fl)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,r.pi)((0,r.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,r.pi)((0,r.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,r.pi)((0,r.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,r.pi)((0,r.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,r.pi)({trace:this._span.getTraceContext()},t.contexts);var i=null===(n=this._span.transaction)||void 0===n?void 0:n.name;i&&(t.tags=(0,r.pi)({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,r.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,o){var s=this;return void 0===o&&(o=0),new a.c((function(a,u){var c=t[o];if(null===e||"function"!=typeof c)a(e);else{var p=c((0,r.pi)({},e),n);(0,i.J8)(p)?p.then((function(e){return s._notifyEventProcessors(t,e,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(t,p,n,o+1).then(a).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function c(){var t=(0,s.R)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function p(t){c().push(t)}},2430:function(t,e,n){n.d(e,{z:function(){return s}});var r=n(5971),i=n(3699),o=n(7790),a=n(1995),s=function(){function t(t){this.errors=0,this.sid=(0,i.DM)(),this.duration=0,this.status=r.$.Ok,this.init=!0,this.ignoreDuration=!1;var e=(0,o.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===r.$.Ok?this.update({status:r.$.Exited}):this.update()},t.prototype.toJSON=function(){return(0,a.Jr)({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,a.Jr)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}()},8773:function(t,e,n){n.d(e,{pi:function(){return r},fl:function(){return o}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}},4678:function(t,e,n){n.d(e,{Tb:function(){return a},$e:function(){return s}});var r=n(5559),i=n(8585);function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=(0,i.Gd)();if(o&&o[t])return o[t].apply(o,(0,r.fl)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function a(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return o("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function s(t){o("withScope",t)}},5559:function(t,e,n){n.d(e,{fl:function(){return i}});function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}},40:function(t,e,n){n.d(e,{j:function(){return c}});var r=n(5907),i=n(8536),o=n(50),a=n(2881),s=n(2517),u=(0,r.R)();function c(){u&&u.document?u.document.addEventListener("visibilitychange",(function(){var t=(0,s.x1)();u.document.hidden&&t&&(i.k.log("[Tracing] Transaction: "+a.p.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(a.p.Cancelled),t.setTag("visibilitychange","document.hidden"),t.setTag(o.d,o.x[2]),t.finish())})):i.k.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},4476:function(t,e,n){n.d(e,{gE:function(){return v}});var r=n(2481),i=n(8536),o=n(5907),a=n(1626),s=n(564),u=n(2881),c=n(2517),p=n(40),l=n(3800),d=n(6958),f=n(9866),h=(0,r.pi)({idleTimeout:s.nT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:f.R,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},d.k3),v=function(){function t(e){this.name=t.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var n=d.k3.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:this._emitOptionsWarning=!0),this.options=(0,r.pi)((0,r.pi)((0,r.pi)({},h),e),{tracingOrigins:n});var i=this.options._metricOptions;this._metrics=new l.zE(i&&i._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(i.k.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),i.k.warn("[Tracing] We added a reasonable default for you: "+d.k3.tracingOrigins));var r=this.options,o=r.routingInstrumentation,a=r.startTransactionOnLocationChange,s=r.startTransactionOnPageLoad,u=r.markBackgroundTransactions,c=r.traceFetch,l=r.traceXHR,f=r.tracingOrigins,h=r.shouldCreateSpanForRequest;o((function(t){return n._createRouteTransaction(t)}),s,a),u&&(0,p.j)(),(0,d.L7)({traceFetch:c,traceXHR:l,tracingOrigins:f,shouldCreateSpanForRequest:h})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,s=n.beforeNavigate,p=n.idleTimeout,l=n.maxTransactionDuration,d="pageload"===t.op?function(){var t=(e="sentry-trace",n=(0,o.R)().document.querySelector("meta[name="+e+"]"),n?n.getAttribute("content"):null);var e,n;if(t)return(0,c.qG)(t);return}():void 0,f=(0,r.pi)((0,r.pi)((0,r.pi)({},t),d),{trimEnd:!0}),h="function"==typeof s?s(f):f,v=void 0===h?(0,r.pi)((0,r.pi)({},f),{sampled:!1}):h;!1===v.sampled&&i.k.log("[Tracing] Will not send "+v.op+" transaction because of beforeNavigate."),i.k.log("[Tracing] Starting "+v.op+" transaction on scope");var _=this._getCurrentHub(),m=(0,o.R)().location,y=(0,a.lb)(_,v,p,!0,{location:m});return y.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),function(t,e,n){var r=n-e.startTimestamp;n&&(r>t||r<0)&&(e.setStatus(u.p.DeadlineExceeded),e.setTag("maxTransactionDurationExceeded","true"))}((0,c.WB)(l),t,n)})),y.setTag("idleTimeout",this._configuredIdleTimeout),y}i.k.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}()},3800:function(t,e,n){n.d(e,{zE:function(){return v}});var r=n(2481),i=n(5907),o=n(7392),a=n(7790),s=n(8536),u=n(4194),c=n(2517),p=n(1604),l=n(63),d=n(165),f=n(6576),h=(0,i.R)(),v=function(){function t(t){var e,n;void 0===t&&(t=!1),this._reportAllChanges=t,this._measurements={},this._performanceCursor=0,!(0,o.KV)()&&(null===(e=h)||void 0===e?void 0:e.performance)&&(null===(n=h)||void 0===n?void 0:n.document)&&(h.performance.mark&&h.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(h&&h.performance&&h.performance.getEntries&&a.Z1){s.k.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i,o,u,p=(0,c.XL)(a.Z1);if(h.document&&h.document.scripts)for(var l=0;l<h.document.scripts.length;l++)if("true"===h.document.scripts[l].dataset.entry){n=h.document.scripts[l].src;break}if(h.performance.getEntries().slice(this._performanceCursor).forEach((function(a){var l=(0,c.XL)(a.startTime),d=(0,c.XL)(a.duration);if(!("navigation"===t.op&&p+l<t.startTimestamp))switch(a.entryType){case"navigation":!function(t,e,n){_({transaction:t,entry:e,event:"unloadEvent",timeOrigin:n}),_({transaction:t,entry:e,event:"redirect",timeOrigin:n}),_({transaction:t,entry:e,event:"domContentLoadedEvent",timeOrigin:n}),_({transaction:t,entry:e,event:"loadEvent",timeOrigin:n}),_({transaction:t,entry:e,event:"connect",timeOrigin:n}),_({transaction:t,entry:e,event:"secureConnection",timeOrigin:n,eventEnd:"connectEnd",description:"TLS/SSL"}),_({transaction:t,entry:e,event:"fetch",timeOrigin:n,eventEnd:"domainLookupStart",description:"cache"}),_({transaction:t,entry:e,event:"domainLookup",timeOrigin:n,description:"DNS"}),function(t,e,n){m(t,{op:"browser",description:"request",startTimestamp:n+(0,c.XL)(e.requestStart),endTimestamp:n+(0,c.XL)(e.responseEnd)}),m(t,{op:"browser",description:"response",startTimestamp:n+(0,c.XL)(e.responseStart),endTimestamp:n+(0,c.XL)(e.responseEnd)})}(t,e,n)}(t,a,p),o=p+(0,c.XL)(a.responseStart),u=p+(0,c.XL)(a.requestStart);break;case"mark":case"paint":case"measure":var v=function(t,e,n,r,i){var o=i+n,a=o+r;return m(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:o}),o}(t,a,l,d,p);void 0===i&&"sentry-tracing-init"===a.name&&(i=v);var y=(0,f.Y)(),g=a.startTime<y.firstHiddenTime;"first-paint"===a.name&&g&&(s.k.log("[Measurements] Adding FP"),e._measurements.fp={value:a.startTime},e._measurements["mark.fp"]={value:v}),"first-contentful-paint"===a.name&&g&&(s.k.log("[Measurements] Adding FCP"),e._measurements.fcp={value:a.startTime},e._measurements["mark.fcp"]={value:v});break;case"resource":var b=a.name.replace(h.location.origin,""),E=function(t,e,n,r,i,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var a={};"transferSize"in e&&(a["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(a["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(a["Decoded Body Size"]=e.decodedBodySize);var s=o+r,u=s+i;return m(t,{description:n,endTimestamp:u,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:a}),u}(t,a,b,l,d,p);void 0===r&&(n||"").indexOf(b)>-1&&(r=E)}})),void 0!==r&&void 0!==i&&m(t,{description:"evaluation",endTimestamp:i,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var d=(0,c.XL)(a.Z1);"number"==typeof o&&(s.k.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(o-t.startTimestamp)},"number"==typeof u&&u<=o&&(this._measurements["ttfb.requestTime"]={value:1e3*(o-u)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(d>=t.startTimestamp)){var r=e._measurements[n].value,i=d+(0,c.XL)(r),o=Math.abs(1e3*(i-t.startTimestamp)),a=o-r;s.k.log("[Measurements] Normalized "+n+" from "+r+" to "+o+" ("+a+")"),e._measurements[n].value=o}})),this._measurements["mark.fid"]&&this._measurements.fid&&m(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,c.XL)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),this._tagMetricInfo(t),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._tagMetricInfo=function(t){this._lcpEntry&&(s.k.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&t.setTag("lcp.element",(0,u.R)(this._lcpEntry.element)),this._lcpEntry.id&&t.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&t.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),t.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(s.k.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(e,n){return t.setTag("cls.source."+(n+1),(0,u.R)(e.node))})))},t.prototype._trackCLS=function(){var t=this;(0,p.k)((function(e){var n=e.entries.pop();n&&(s.k.log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value},t._clsEntry=n)}))},t.prototype._trackNavigator=function(t){var e=h.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),y(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),y(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),y(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),y(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackLCP=function(){var t=this;(0,d.T)((function(e){var n=e.entries.pop();if(n){var r=(0,c.XL)(a.Z1),i=(0,c.XL)(n.startTime);s.k.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i},t._lcpEntry=n}}),this._reportAllChanges)},t.prototype._trackFID=function(){var t=this;(0,l.T)((function(e){var n=e.entries.pop();if(n){var r=(0,c.XL)(a.Z1),i=(0,c.XL)(n.startTime);s.k.log("[Measurements] Adding FID"),t._measurements.fid={value:e.value},t._measurements["mark.fid"]={value:r+i}}}))},t}();function _(t){var e=t.transaction,n=t.entry,r=t.event,i=t.timeOrigin,o=t.eventEnd,a=t.description,s=o?n[o]:n[r+"End"],u=n[r+"Start"];u&&s&&m(e,{op:"browser",description:null!=a?a:r,startTimestamp:i+(0,c.XL)(u),endTimestamp:i+(0,c.XL)(s)})}function m(t,e){var n=e.startTimestamp,i=(0,r._T)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,r.pi)({startTimestamp:n},i))}function y(t){return"number"==typeof t&&isFinite(t)}},6958:function(t,e,n){n.d(e,{k3:function(){return c},L7:function(){return p}});var r=n(2481),i=n(9660),o=n(4005),a=n(1757),s=n(2881),u=n(2517),c={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function p(t){var e=(0,r.pi)((0,r.pi)({},c),t),n=e.traceFetch,p=e.traceXHR,l=e.tracingOrigins,d=e.shouldCreateSpanForRequest,f={},h=function(t){if(f[t])return f[t];var e=l;return f[t]=e.some((function(e){return(0,i.zC)(t,e)}))&&!(0,i.zC)(t,"sentry_key"),f[t]},v=h;"function"==typeof d&&(v=function(t){return h(t)&&d(t)});var _={};n&&(0,o.o)({callback:function(t){!function(t,e,n){if(!(0,u.zu)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp&&t.fetchData.__span){return void((o=n[t.fetchData.__span])&&(t.response?o.setHttpStatus(t.response.status):t.error&&o.setStatus(s.p.InternalError),o.finish(),delete n[t.fetchData.__span]))}var i=(0,u.x1)();if(i){var o=i.startChild({data:(0,r.pi)((0,r.pi)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=o.spanId,n[o.spanId]=o;var c=t.args[0]=t.args[0],p=t.args[1]=t.args[1]||{},l=p.headers;(0,a.V9)(c,Request)&&(l=c.headers),l?"function"==typeof l.append?l.append("sentry-trace",o.toTraceparent()):l=Array.isArray(l)?(0,r.fl)(l,[["sentry-trace",o.toTraceparent()]]):(0,r.pi)((0,r.pi)({},l),{"sentry-trace":o.toTraceparent()}):l={"sentry-trace":o.toTraceparent()},p.headers=l}}(t,v,_)},type:"fetch"}),p&&(0,o.o)({callback:function(t){!function(t,e,n){var i,o;if(!(0,u.zu)()||(null===(i=t.xhr)||void 0===i?void 0:i.__sentry_own_request__)||!(null===(o=t.xhr)||void 0===o?void 0:o.__sentry_xhr__)||!e(t.xhr.__sentry_xhr__.url))return;var a=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){return void((c=n[t.xhr.__sentry_xhr_span_id__])&&(c.setHttpStatus(a.status_code),c.finish(),delete n[t.xhr.__sentry_xhr_span_id__]))}var s=(0,u.x1)();if(s){var c=s.startChild({data:(0,r.pi)((0,r.pi)({},a.data),{type:"xhr",method:a.method,url:a.url}),description:a.method+" "+a.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=c.spanId,n[t.xhr.__sentry_xhr_span_id__]=c,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",c.toTraceparent())}catch(p){}}}(t,v,_)},type:"xhr"})}},9866:function(t,e,n){n.d(e,{R:function(){return s}});var r=n(5907),i=n(8536),o=n(4005),a=(0,r.R)();function s(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),a&&a.location){var r,s=a.location.href;e&&(r=t({name:a.location.pathname,op:"pageload"})),n&&(0,o.o)({callback:function(e){var n=e.to,o=e.from;void 0===o&&s&&-1!==s.indexOf(n)?s=void 0:o!==n&&(s=void 0,r&&(i.k.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:a.location.pathname,op:"navigation"}))},type:"history"})}else i.k.warn("Could not initialize routing instrumentation due to invalid location")}},1604:function(t,e,n){n.d(e,{k:function(){return s}});var r=n(7498),i=n(4402),o=n(7483),a=n(391),s=function(t,e){var n,s=(0,i.I)("CLS",0),u=0,c=[],p=function(t){if(t&&!t.hadRecentInput){var e=c[0],r=c[c.length-1];u&&0!==c.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(u+=t.value,c.push(t)):(u=t.value,c=[t]),u>s.value&&(s.value=u,s.entries=c,n&&n())}},l=(0,o.N)("layout-shift",p);l&&(n=(0,r._)(t,s,e),(0,a.u)((function(){l.takeRecords().map(p),n(!0)})))}},63:function(t,e,n){n.d(e,{T:function(){return u}});var r=n(7498),i=n(6576),o=n(4402),a=n(7483),s=n(391),u=function(t,e){var n,u=(0,i.Y)(),c=(0,o.I)("FID"),p=function(t){n&&t.startTime<u.firstHiddenTime&&(c.value=t.processingStart-t.startTime,c.entries.push(t),n(!0))},l=(0,a.N)("first-input",p);l&&(n=(0,r._)(t,c,e),(0,s.u)((function(){l.takeRecords().map(p),l.disconnect()}),!0))}},165:function(t,e,n){n.d(e,{T:function(){return c}});var r=n(7498),i=n(6576),o=n(4402),a=n(7483),s=n(391),u={},c=function(t,e){var n,c=(0,i.Y)(),p=(0,o.I)("LCP"),l=function(t){var e=t.startTime;e<c.firstHiddenTime&&(p.value=e,p.entries.push(t)),n&&n()},d=(0,a.N)("largest-contentful-paint",l);if(d){n=(0,r._)(t,p,e);var f=function(){u[p.id]||(d.takeRecords().map(l),d.disconnect(),u[p.id]=!0,n(!0))};["keydown","click"].forEach((function(t){addEventListener(t,f,{once:!0,capture:!0})})),(0,s.u)(f,!0)}}},7498:function(t,e,n){n.d(e,{_:function(){return r}});var r=function(t,e,n){var r;return function(i){e.value>=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}}},6864:function(t,e,n){n.d(e,{f:function(){return r}});var r=function(){return"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},6576:function(t,e,n){n.d(e,{Y:function(){return a}});var r=n(5907),i=n(391),o=-1,a=function(){return o<0&&(o="hidden"===(0,r.R)().document.visibilityState?0:1/0,(0,i.u)((function(t){var e=t.timeStamp;o=e}),!0)),{get firstHiddenTime(){return o}}}},4402:function(t,e,n){n.d(e,{I:function(){return i}});var r=n(6864),i=function(t,e){return{name:t,value:null!=e?e:-1,delta:0,entries:[],id:(0,r.f)()}}},7483:function(t,e,n){n.d(e,{N:function(){return r}});var r=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(r){}}},391:function(t,e,n){n.d(e,{u:function(){return i}});var r=n(5907),i=function(t,e){var n=function(i){"pagehide"!==i.type&&"hidden"!==(0,r.R)().document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}},50:function(t,e,n){n.d(e,{d:function(){return r},x:function(){return i}});var r="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]},9233:function(t,e,n){n.d(e,{e:function(){return s}});var r=n(4005),i=n(8536),o=n(2881),a=n(2517);function s(){(0,r.o)({callback:u,type:"error"}),(0,r.o)({callback:u,type:"unhandledrejection"})}function u(){var t=(0,a.x1)();t&&(i.k.log("[Tracing] Transaction: "+o.p.InternalError+" -> Global error occured"),t.setStatus(o.p.InternalError))}},1626:function(t,e,n){n.d(e,{lb:function(){return v},ro:function(){return _}});var r=n(2481),i=n(8585),o=n(6910),a=n(8536),s=n(7392),u=n(9233),c=n(564),p=n(8235),l=n(2517);function d(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function f(t,e,n){return(0,l.zu)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:o.K.Explicit}}),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:o.K.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,t.setMetadata({transactionSampling:{method:o.K.Inheritance}})):(r=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:o.K.Rate,rate:Number(r)}})),function(t){if(isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1;if(t<0||t>1)return a.k.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(a.k.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(a.k.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):(a.k.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(a.k.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function h(t,e){var n,i,o=(null===(n=this.getClient())||void 0===n?void 0:n.getOptions())||{},a=new p.Y(t,this);return(a=f(a,o,(0,r.pi)({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&a.initSpanRecorder(null===(i=o._experiments)||void 0===i?void 0:i.maxSpans),a}function v(t,e,n,i,o){var a,s,u=(null===(a=t.getClient())||void 0===a?void 0:a.getOptions())||{},p=new c.io(e,t,n,i);return(p=f(p,u,(0,r.pi)({parentSampled:e.parentSampled,transactionContext:e},o))).sampled&&p.initSpanRecorder(null===(s=u._experiments)||void 0===s?void 0:s.maxSpans),p}function _(){var e;(e=(0,i.cu)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=h),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=d)),(0,s.KV)()&&function(){var e=(0,i.cu)();if(e.__SENTRY__){var n={mongodb:function(){return new((0,s.l$)(t,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,s.l$)(t,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,s.l$)(t,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,s.l$)(t,"./integrations/node/postgres").Postgres)}},o=Object.keys(n).filter((function(t){return!!(0,s.$y)(t)})).map((function(t){try{return n[t]()}catch(e){return}})).filter((function(t){return t}));o.length>0&&(e.__SENTRY__.integrations=(0,r.fl)(e.__SENTRY__.integrations||[],o))}}(),(0,u.e)()}t=n.hmd(t)},564:function(t,e,n){n.d(e,{nT:function(){return p},io:function(){return d}});var r=n(2481),i=n(7790),o=n(8536),a=n(50),s=n(8207),u=n(2881),c=n(8235),p=1e3,l=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ZT)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:(0,i._I)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(s.g),d=function(t){function e(e,n,r,i){void 0===r&&(r=p),void 0===i&&(i=!1);var a=t.call(this,e,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(f(n),o.k.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(t){return t.setSpan(a)}))),a._initTimeout=setTimeout((function(){a._finished||a.finish()}),a._idleTimeout),a}return(0,r.ZT)(e,t),e.prototype.finish=function(e){var n,a,s=this;if(void 0===e&&(e=(0,i._I)()),this._finished=!0,this.activities={},this.spanRecorder){o.k.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var c=(0,r.XA)(this._beforeFinishCallbacks),p=c.next();!p.done;p=c.next()){(0,p.value)(this,e)}}catch(l){n={error:l}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===s.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus(u.p.Cancelled),o.k.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||o.k.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),o.k.log("[Tracing] flushing IdleTransaction")}else o.k.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;if(!this.spanRecorder){this.spanRecorder=new l((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),o.k.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),o.k.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,o.k.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(o.k.log("[Tracing] popActivity "+t),delete this.activities[t],o.k.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,i._I)()+n/1e3;setTimeout((function(){e._finished||(e.setTag(a.d,a.x[1]),e.finish(r))}),n)}},e.prototype._beat=function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(o.k.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(u.p.DeadlineExceeded),this.setTag(a.d,a.x[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;o.k.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),5e3)},e}(c.Y);function f(t){if(t){var e=t.getScope();if(e)e.getTransaction()&&e.setSpan(void 0)}}},9886:function(t,e,n){n.d(e,{jK:function(){return i}});var r=n(1626),i=n(1861);(0,r.ro)()},1861:function(t,e,n){n.d(e,{gE:function(){return r.gE}});var r=n(4476)},8207:function(t,e,n){n.d(e,{g:function(){return u},D:function(){return c}});var r=n(2481),i=n(3699),o=n(7790),a=n(1995),s=n(2881),u=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=(0,i.DM)(),this.spanId=(0,i.DM)().substring(16),this.startTimestamp=(0,o._I)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,r.pi)((0,r.pi)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,r.pi)((0,r.pi)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,r.pi)((0,r.pi)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=s.p.fromHttpCode(t);return e!==s.p.UnknownError&&this.setStatus(e),this},t.prototype.isSuccess=function(){return this.status===s.p.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:(0,o._I)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}()},2881:function(t,e,n){var r;n.d(e,{p:function(){return r}}),function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(r||(r={})),function(t){t.fromHttpCode=function(e){if(e<400&&e>=100)return t.Ok;if(e>=400&&e<500)switch(e){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(e>=500&&e<600)switch(e){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}(r||(r={}))},8235:function(t,e,n){n.d(e,{Y:function(){return p}});var r=n(2481),i=n(8585),o=n(7010),a=n(1757),s=n(8536),u=n(1995),c=n(8207),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r._measurements={},r._hub=(0,i.Gd)(),(0,a.V9)(n,i.Xb)&&(r._hub=n),r.name=e.name||"",r.metadata=e.metadata||{},r._trimEnd=e.trimEnd,r.transaction=r,r}return(0,r.ZT)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new c.g(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,r.pi)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,r.pi)((0,r.pi)({},this.metadata),t)},e.prototype.finish=function(e){var n,r,i,a,u,c=this;if(void 0===this.endTimestamp){if(this.name||(s.k.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0!==this.sampled)return s.k.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.k.SampleRate,"transaction"));var p=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==c&&t.endTimestamp})):[];this._trimEnd&&p.length>0&&(this.endTimestamp=p.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var l={contexts:{trace:this.getTraceContext()},spans:p,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.k.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),s.k.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(l)}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,u.Jr)((0,r.pi)((0,r.pi)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(c.D)},2517:function(t,e,n){n.d(e,{zu:function(){return o},qG:function(){return a},x1:function(){return s},XL:function(){return u},WB:function(){return c}});var r=n(8585),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){var e;return void 0===t&&(t=null===(e=(0,r.Gd)().getClient())||void 0===e?void 0:e.getOptions()),!!t&&("tracesSampleRate"in t||"tracesSampler"in t)}function a(t){var e=t.match(i);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}function s(t){var e,n;return void 0===t&&(t=(0,r.Gd)()),null===(n=null===(e=t)||void 0===e?void 0:e.getScope())||void 0===n?void 0:n.getTransaction()}function u(t){return t/1e3}function c(t){return 1e3*t}},2481:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},_T:function(){return a},XA:function(){return s},fl:function(){return c}});
|
17 |
/*! *****************************************************************************
|
18 |
Copyright (c) Microsoft Corporation.
|
19 |
|
@@ -28,7 +28,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
29 |
PERFORMANCE OF THIS SOFTWARE.
|
30 |
***************************************************************************** */
|
31 |
-
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}},5971:function(t,e,n){var r,i;n.d(e,{$:function(){return r}}),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(r||(r={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(i||(i={}))},2226:function(t,e,n){var r;n.d(e,{z:function(){return r}}),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(r||(r={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;default:return t.Log}}}(r||(r={}))},4434:function(t,e,n){var r;n.d(e,{q:function(){return r}}),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(r||(r={}))},6910:function(t,e,n){var r;n.d(e,{K:function(){return r}}),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(r||(r={}))},7010:function(t,e,n){var r;n.d(e,{k:function(){return r}}),function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(r||(r={}))},3518:function(t,e,n){function r(t){t.then(null,(function(t){console.error(t)}))}n.d(e,{I:function(){return r}})},4194:function(t,e,n){n.d(e,{R:function(){return o},l:function(){return s}});var r=n(5907),i=n(1757);function o(t,e){try{for(var n=t,r=[],i=0,o=0,s=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=a(n,e))||i>1&&o+r.length*s+u.length>=80);)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(c){return"<unknown>"}}function a(t,e){var n,r,o,a,s,u,c,p=t,l=[];if(!p||!p.tagName)return"";l.push(p.tagName.toLowerCase());var d=(null===(n=e)||void 0===n?void 0:n.length)?e.filter((function(t){return p.getAttribute(t)})).map((function(t){return[t,p.getAttribute(t)]})):null;if(null===(r=d)||void 0===r?void 0:r.length)d.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(p.id&&l.push("#"+p.id),(o=p.className)&&(0,i.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)l.push("."+a[c]);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)s=f[c],(u=p.getAttribute(s))&&l.push("["+s+'="'+u+'"]');return l.join("")}function s(){var t=(0,r.R)();try{return t.document.location.href}catch(e){return""}}},3135:function(t,e,n){n.d(e,{l:function(){return s}});var r=n(4715),i=n(4388),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,a="Invalid Dsn",s=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},t.prototype._fromString=function(t){var e=o.exec(t);if(!e)throw new i.b(a);var n=(0,r.CR)(e.slice(1),6),s=n[0],u=n[1],c=n[2],p=void 0===c?"":c,l=n[3],d=n[4],f=void 0===d?"":d,h="",v=n[5],_=v.split("/");if(_.length>1&&(h=_.slice(0,-1).join("/"),v=_.pop()),v){var m=v.match(/^\d+/);m&&(v=m[0])}this._fromComponents({host:l,pass:p,path:h,projectId:v,port:f,protocol:s,publicKey:u})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new i.b("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new i.b("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new i.b("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new i.b("Invalid Dsn: Invalid port "+this.port)},t}()},4388:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(4715),i=n(467),o=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,(0,i.f)(r,n.prototype),r}return(0,r.ZT)(e,t),e}(Error)},5907:function(t,e,n){n.d(e,{R:function(){return o}});var r=n(7392),i={};function o(){return(0,r.KV)()||"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}},4005:function(t,e,n){n.d(e,{o:function(){return v}});var r,i=n(4715),o=n(5907),a=n(1757),s=n(8536),u=n(1995),c=n(9038),p=n(9798),l=(0,o.R)(),d={},f={};function h(t){if(!f[t])switch(f[t]=!0,t){case"console":!function(){if(!("console"in l))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in l.console&&(0,u.hl)(l.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];_("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,l.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in l))return;var t=_.bind(null,"dom"),e=E(t,!0);l.document.addEventListener("click",e,!1),l.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=l[e]&&l[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=E(t);s.handler=u,e.call(this,n,u,i)}s.refCount+=1}catch(c){}return e.call(this,n,r,i)}})),(0,u.hl)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[e];a&&(a.refCount-=1,a.refCount<=0&&(t.call(this,e,a.handler,r),a.handler=void 0,delete o[e]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in l))return;var t=[],e=[],n=XMLHttpRequest.prototype;(0,u.hl)(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,s=r[1];o.__sentry_xhr__={method:(0,a.HD)(r[0])?r[0].toUpperCase():r[0],url:r[1]},(0,a.HD)(s)&&"POST"===o.__sentry_xhr__.method&&s.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(a){}try{var n=t.indexOf(o);if(-1!==n){t.splice(n);var i=e.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(a){}_("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?(0,u.hl)(o,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return c(),t.apply(o,e)}})):o.addEventListener("readystatechange",c),n.apply(o,r)}})),(0,u.hl)(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.push(this),e.push(r),_("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!(0,p.t$)())return;(0,u.hl)(l,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:m(e),url:y(e)},startTimestamp:Date.now()};return _("fetch",(0,i.pi)({},r)),t.apply(l,e).then((function(t){return _("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw _("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!(0,p.Bf)())return;var t=l.onpopstate;function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length>2?e[2]:void 0;if(i){var o=r,a=String(i);r=a,_("history",{from:o,to:a})}return t.apply(this,e)}}l.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=l.location.href,o=r;if(r=i,_("history",{from:o,to:i}),t)try{return t.apply(this,e)}catch(a){}},(0,u.hl)(l.history,"pushState",e),(0,u.hl)(l.history,"replaceState",e)}();break;case"error":S=l.onerror,l.onerror=function(t,e,n,r,i){return _("error",{column:r,error:i,line:n,msg:t,url:e}),!!S&&S.apply(this,arguments)};break;case"unhandledrejection":k=l.onunhandledrejection,l.onunhandledrejection=function(t){return _("unhandledrejection",t),!k||k.apply(this,arguments)};break;default:s.k.warn("unknown instrumentation type:",t)}}function v(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(d[t.type]=d[t.type]||[],d[t.type].push(t.callback),h(t.type))}function _(t,e){var n,r;if(t&&d[t])try{for(var o=(0,i.XA)(d[t]||[]),a=o.next();!a.done;a=o.next()){var u=a.value;try{u(e)}catch(p){s.k.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,c.$)(u)+"\nError: "+p)}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function m(t){return void 0===t&&(t=[]),"Request"in l&&(0,a.V9)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function y(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in l&&(0,a.V9)(t[0],Request)?t[0].url:String(t[0])}var g,b;function E(t,e){return void 0===e&&(e=!1),function(n){if(n&&b!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===g||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(b,n))&&(t({event:n,name:r,global:e}),b=n),clearTimeout(g),g=l.setTimeout((function(){g=void 0}),1e3)}}}var S=null;var k=null},1757:function(t,e,n){function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(t){return"undefined"!=typeof Event&&v(t,Event)}function l(t){return"undefined"!=typeof Element&&v(t,Element)}function d(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t){return c(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t,e){try{return t instanceof e}catch(n){return!1}}n.d(e,{VZ:function(){return r},VW:function(){return i},TX:function(){return o},fm:function(){return a},HD:function(){return s},pt:function(){return u},PO:function(){return c},cO:function(){return p},kK:function(){return l},Kj:function(){return d},J8:function(){return f},Cy:function(){return h},V9:function(){return v}})},8536:function(t,e,n){n.d(e,{C:function(){return a},k:function(){return u}});var r=n(5907),i=(0,r.R)(),o="Sentry Logger ";function a(t){var e=(0,r.R)();if(!("console"in e))return t();var n=e.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(i[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(i).forEach((function(t){n[t]=i[t]})),o}var s=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.log(o+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.warn(o+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.error(o+"[Error]: "+t.join(" "))}))},t}();i.__SENTRY__=i.__SENTRY__||{};var u=i.__SENTRY__.logger||(i.__SENTRY__.logger=new s)},4048:function(t,e,n){n.d(e,{_:function(){return r}});var r=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}()},3699:function(t,e,n){n.d(e,{DM:function(){return o},en:function(){return a},jH:function(){return s},Db:function(){return u},EG:function(){return c},JY:function(){return p},YO:function(){return l}});var r=n(4715),i=n(5907);function o(){var t=(0,i.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};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(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function a(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function s(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function u(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function c(t,e){var n;if(t.exception&&t.exception.values){var i=t.exception.values[0],o=i.mechanism;if(i.mechanism=(0,r.pi)((0,r.pi)((0,r.pi)({},{type:"generic",handled:!0}),o),e),e&&"data"in e){var a=(0,r.pi)((0,r.pi)({},null===(n=o)||void 0===n?void 0:n.data),e.data);i.mechanism.data=a}}}function p(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}function l(t){var e;if(null===(e=t)||void 0===e?void 0:e.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch(n){}return!1}},7392:function(t,e,n){function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(t,e){return t.require(e)}function o(e){var n;try{n=i(t,e)}catch(o){}try{var r=i(t,"process").cwd;n=i(t,r()+"/node_modules/"+e)}catch(o){}return n}n.d(e,{KV:function(){return r},l$:function(){return i},$y:function(){return o}}),t=n.hmd(t)},1995:function(t,e,n){n.d(e,{hl:function(){return c},_j:function(){return p},Qy:function(){return f},Fv:function(){return _},zf:function(){return m},Jr:function(){return y}});var r=n(4715),i=n(4194),o=n(1757),a=n(4048),s=n(9038),u=n(9660);function c(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(o){}t[e]=i}}function p(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function l(t){if((0,o.VZ)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if((0,o.cO)(t)){var a=t,s={};s.type=a.type;try{s.target=(0,o.kK)(a.target)?(0,i.R)(a.target):Object.prototype.toString.call(a.target)}catch(c){s.target="<unknown>"}try{s.currentTarget=(0,o.kK)(a.currentTarget)?(0,i.R)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(c){s.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);return s}return t}function d(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function f(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=_(t,e);return d(r)>n?f(t,e-1,n):r}function h(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof window&&t===window?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,o.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(0,s.$)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function v(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a._),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=h(t);return(0,o.pt)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var i=h(e,t);if((0,o.pt)(i))return i;var s=l(e),u=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=v(c,s[c],n-1,r));return r.unmemoize(e),u}function _(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return v(t,n,e)})))}catch(n){return"**non-serializable**"}}function m(t,e){void 0===e&&(e=40);var n=Object.keys(l(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,u.$G)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:(0,u.$G)(i,e)}return""}function y(t){var e,n;if((0,o.PO)(t)){var i=t,a={};try{for(var s=(0,r.XA)(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;void 0!==i[c]&&(a[c]=y(i[c]))}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(y):t}},467:function(t,e,n){n.d(e,{f:function(){return r}});var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t})},8963:function(t,e,n){n.d(e,{D:function(){return o}});var r=n(4388),i=n(7946),o=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;if(!this.isReady())return i.c.reject(new r.b("Not adding Promise due to buffer limit reached."));var n=t();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then((function(){return e.remove(n)})).then(null,(function(){return e.remove(n).then(null,(function(){}))})),n},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new i.c((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);i.c.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}()},9038:function(t,e,n){n.d(e,{$:function(){return i}});var r="<anonymous>";function i(t){try{return t&&"function"==typeof t&&t.name||r}catch(e){return r}}},9660:function(t,e,n){n.d(e,{$G:function(){return i},nK:function(){return o},zC:function(){return a}});var r=n(1757);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},9798:function(t,e,n){n.d(e,{Ak:function(){return o},Du:function(){return a},t$:function(){return s},hv:function(){return u},Bf:function(){return c}});var r=n(5907),i=n(8536);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function s(){if(!o())return!1;var t=(0,r.R)();if(a(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(e=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(u){i.k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return e}function u(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function c(){var t=(0,r.R)(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}},7946:function(t,e,n){n.d(e,{c:function(){return i}});var r=n(1757),i=function(){function t(t){var e=this;this._state="PENDING",this._handlers=[],this._resolve=function(t){e._setResult("RESOLVED",t)},this._reject=function(t){e._setResult("REJECTED",t)},this._setResult=function(t,n){"PENDING"===e._state&&((0,r.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if("PENDING"!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||("RESOLVED"===e._state&&t.onfulfilled&&t.onfulfilled(e._value),"REJECTED"===e._state&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var i=e.length,o=[];e.forEach((function(e,a){t.resolve(e).then((function(t){o[a]=t,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(r){return void i(r)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(r){return void i(r)}else i(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}()},7790:function(t,e,n){n.d(e,{yW:function(){return u},ph:function(){return c},_I:function(){return p},Z1:function(){return l}});var r=n(5907),i=n(7392);t=n.hmd(t);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(t,"perf_hooks").performance}catch(e){return}}():function(){var t=(0,r.R)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),p=c,l=function(){var t=(0,r.R)().performance;if(t&&t.now){var e=36e5,n=t.now(),i=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,a=o<e,s=t.timing&&t.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):e;return a||u<e?o<=u?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",i)}"none"}()},4715:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},XA:function(){return a},CR:function(){return s}});
|
32 |
/*! *****************************************************************************
|
33 |
Copyright (c) Microsoft Corporation.
|
34 |
|
@@ -43,4 +43,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
43 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
44 |
PERFORMANCE OF THIS SOFTWARE.
|
45 |
***************************************************************************** */
|
46 |
-
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}},6989:function(t){t.exports=window.wp.apiFetch}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r);var t,e=n(2456),i=n(4678),o=n(
|
1 |
+
!function(){"use strict";var t={487:function(t,e,n){n.d(e,{u:function(){return h}});var r=n(334),i=n(4911),o=n(9504),a=n(2226),s=n(9798),u=n(1988),c=n(1449),p=n(6149),f=n(4827),d=n(6144),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.eventFromException=function(t,e){return(0,u.dr)(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=a.z.Info),(0,u.aB)(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=(0,r.pi)((0,r.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=(0,i.hd)(e.dsn,e._metadata,e.tunnel),o=(0,i.Ut)(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(e);if((0,s.Ak)()){var a=(0,r.pi)({},e.fetchParameters);return this._newTransport=(0,c.k)({requestOptions:a,url:o}),new p.V(e)}return this._newTransport=(0,f.H)({url:o,headers:e.headers}),new d.w(e)},e}(o.N)},2314:function(t,e,n){n.d(e,{R:function(){return d}});var r=n(334),i=n(1476),o=n(9849),a=n(5907),s=n(8536),u=n(487),c=n(7904),p=n(2634),f=n(8356),d=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:i.J}],version:i.J},t.call(this,u.u,e)||this}return(0,r.ZT)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,a.R)().document&&(this._isEnabled()?(0,p.BS)((0,r.pi)((0,r.pi)({},t),{dsn:t.dsn||this.getDsn()})):c.h&&s.kg.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(f.O);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(o.W)},1988:function(t,e,n){n.d(e,{GJ:function(){return d},dr:function(){return g},aB:function(){return y},ME:function(){return _}});var r=n(334),i=n(2226),o=n(1757),a=n(1995),s=n(8035),u=n(9038),c=n(3699),p=n(7946),f=n(2224);function d(t){var e=l(t),n={type:t&&t.name,value:m(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function h(t){return{exception:{values:[d(t)]}}}function l(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(v.test(t.message))return 1}return 0}(t);try{return(0,u.pE)(f.CS,f.ay,f.s$,f.aL,f.Pi)(e,n)}catch(r){}return[]}var v=/Minified React error #\d+;/i;function m(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function g(t,e,n){var r=_(t,e&&e.syntheticException||void 0,n);return(0,c.EG)(r),r.level=i.z.Error,e&&e.event_id&&(r.event_id=e.event_id),(0,p.WD)(r)}function y(t,e,n,r){void 0===e&&(e=i.z.Info);var o=b(t,n&&n.syntheticException||void 0,r);return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),(0,p.WD)(o)}function _(t,e,n,i){var u;if((0,o.VW)(t)&&t.error)return h(t.error);if((0,o.TX)(t)||(0,o.fm)(t)){var p=t;if("stack"in t)u=h(t);else{var f=p.name||((0,o.TX)(p)?"DOMError":"DOMException"),d=p.message?f+": "+p.message:f;u=b(d,e,n),(0,c.Db)(u,d)}return"code"in p&&(u.tags=(0,r.pi)((0,r.pi)({},u.tags),{"DOMException.code":""+p.code})),u}return(0,o.VZ)(t)?h(t):(0,o.PO)(t)||(0,o.cO)(t)?(u=function(t,e,n){var r={exception:{values:[{type:(0,o.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,a.zf)(t)}]},extra:{__serialized__:(0,s.Qy)(t)}};if(e){var i=l(e);i.length&&(r.stacktrace={frames:i})}return r}(t,e,i),(0,c.EG)(u,{synthetic:!0}),u):(u=b(t,e,n),(0,c.Db)(u,""+t,void 0),(0,c.EG)(u,{synthetic:!0}),u)}function b(t,e,n){var r={message:t};if(n&&e){var i=l(e);i.length&&(r.stacktrace={frames:i})}return r}},7904:function(t,e,n){n.d(e,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2634:function(t,e,n){n.d(e,{Wz:function(){return h},re:function(){return v},BS:function(){return m}});var r=n(334),i=n(4678),o=n(4911),a=n(5907),s=n(1995),u=n(3699),c=n(8536),p=n(7904),f=(0,a.R)(),d=0;function h(){return d>0}function l(){d+=1,setTimeout((function(){d-=1}))}function v(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{var o=t.__sentry_wrapped__;if(o)return o;if((0,s.HK)(t))return t}catch(p){return t}var a=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var a=o.map((function(t){return v(t,e)}));return t.apply(this,a)}catch(s){throw l(),(0,i.$e)((function(t){t.addEventProcessor((function(t){return e.mechanism&&((0,u.Db)(t,void 0,void 0),(0,u.EG)(t,e.mechanism)),t.extra=(0,r.pi)((0,r.pi)({},t.extra),{arguments:o}),t})),(0,i.Tb)(s)})),s}};try{for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(a[c]=t[c])}catch(f){}(0,s.$Q)(a,t),(0,s.xp)(t,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:function(){return t.name}})}catch(f){}return a}function m(t){if(void 0===t&&(t={}),f.document)if(t.eventId)if(t.dsn){var e=f.document.createElement("script");e.async=!0,e.src=(0,o.hR)(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=f.document.head||f.document.body;n&&n.appendChild(e)}else p.h&&c.kg.error("Missing dsn option in showReportDialog call");else p.h&&c.kg.error("Missing eventId option in showReportDialog call")}},8356:function(t,e,n){n.d(e,{O:function(){return d}});var r=n(334),i=n(8585),o=n(2226),a=n(3699),s=n(4005),u=n(4194),c=n(8653),p=n(9660),f=n(5907),d=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.jH)(t)},{event:t})},t.prototype.setupOnce=function(){this._options.console&&(0,s.o)("console",h),this._options.dom&&(0,s.o)("dom",function(t){function e(e){var n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?(0,u.R)(e.event.target,r):(0,u.R)(e.event,r)}catch(o){n="<unknown>"}0!==n.length&&(0,i.Gd)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})}return e}(this._options.dom)),this._options.xhr&&(0,s.o)("xhr",l),this._options.fetch&&(0,s.o)("fetch",v),this._options.history&&(0,s.o)("history",m)},t.id="Breadcrumbs",t}();function h(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:(0,c.E)(t.level),message:(0,p.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+((0,p.nK)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}(0,i.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function l(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,a=e.body;(0,i.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:a})}else;}function v(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?(0,i.Gd)().addBreadcrumb({category:"fetch",data:t.fetchData,level:o.z.Error,type:"http"},{data:t.error,input:t.args}):(0,i.Gd)().addBreadcrumb({category:"fetch",data:(0,r.pi)((0,r.pi)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function m(t){var e=(0,f.R)(),n=t.from,r=t.to,o=(0,a.en)(e.location.href),s=(0,a.en)(n),u=(0,a.en)(r);s.path||(s=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),(0,i.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}},184:function(t,e,n){n.d(e,{I:function(){return o}});var r=n(8536),i=n(7904),o=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var o=n().getIntegration(t);if(o){try{if(function(t,e){if(!e)return!1;if(function(t,e){var n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!s(t,e))return!1;if(!a(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){var n=u(e),r=u(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!s(t,e))return!1;if(!a(t,e))return!1;return!0}(t,e))return!0;return!1}(e,o._previousEvent))return i.h&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(c){return o._previousEvent=e}return o._previousEvent=e}return e}))},t.id="Dedupe",t}();function a(t,e){var n=c(t),r=c(e);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],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function s(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function u(t){return t.exception&&t.exception.values&&t.exception.values[0]}function c(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames}},1228:function(t,e,n){n.d(e,{d:function(){return l}});var r=n(334),i=n(8585),o=n(2226),a=n(4005),s=n(1757),u=n(4194),c=n(8536),p=n(3699),f=n(1988),d=n(7904),h=n(2634),l=function(){function t(e){this.name=t.id,this._installFunc={onerror:v,onunhandledrejection:m},this._options=(0,r.pi)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t,e=this._options;for(var n in e){var r=this._installFunc[n];r&&e[n]&&(t=n,d.h&&c.kg.log("Global Handler attached: "+t),r(),this._installFunc[n]=void 0)}},t.id="GlobalHandlers",t}();function v(){(0,a.o)("error",(function(t){var e=(0,r.CR)(_(),2),n=e[0],i=e[1];if(n.getIntegration(l)){var a=t.msg,u=t.url,c=t.line,p=t.column,d=t.error;if(!((0,h.Wz)()||d&&d.__sentry_own_request__)){var v=void 0===d&&(0,s.HD)(a)?function(t,e,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=(0,s.VW)(t)?t.message:t,a="Error",u=o.match(i);u&&(a=u[1],o=u[2]);return g({exception:{values:[{type:a,value:o}]}},e,n,r)}(a,u,c,p):g((0,f.ME)(d||a,void 0,i,!1),u,c,p);v.level=o.z.Error,y(n,d,v,"onerror")}}}))}function m(){(0,a.o)("unhandledrejection",(function(t){var e=(0,r.CR)(_(),2),n=e[0],i=e[1];if(n.getIntegration(l)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(c){}if((0,h.Wz)()||a&&a.__sentry_own_request__)return!0;var u=(0,s.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(a)}]}}:(0,f.ME)(a,void 0,i,!0);u.level=o.z.Error,y(n,a,u,"onunhandledrejection")}}))}function g(t,e,n,r){var i=t.exception=t.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},c=a.stacktrace=a.stacktrace||{},p=c.frames=c.frames||[],f=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=(0,s.HD)(e)&&e.length>0?e:(0,u.l)();return 0===p.length&&p.push({colno:f,filename:h,function:"?",in_app:!0,lineno:d}),t}function y(t,e,n,r){(0,p.EG)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function _(){var t=(0,i.Gd)(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}},3440:function(t,e,n){n.d(e,{iP:function(){return u}});var r=n(334),i=n(1684),o=n(8585),a=n(1757),s=n(1988),u=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){(0,i.c)((function(e,n){var i=(0,o.Gd)().getIntegration(t);return i?function(t,e,n,i){if(!(n.exception&&n.exception.values&&i&&(0,a.V9)(i.originalException,Error)))return n;var o=c(e,i.originalException,t);return n.exception.values=(0,r.fl)(o,n.exception.values),n}(i._key,i._limit,e,n):e}))},t.id="LinkedErrors",t}();function c(t,e,n,i){if(void 0===i&&(i=[]),!(0,a.V9)(e[n],Error)||i.length+1>=t)return i;var o=(0,s.GJ)(e[n]);return c(t,e[n],n,(0,r.fl)([o],i))}},3399:function(t,e,n){n.d(e,{p:function(){return c}});var r=n(334),i=n(5907),o=n(1995),a=n(9038),s=n(2634),u=["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"],c=function(){function t(e){this.name=t.id,this._options=(0,r.pi)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,i.R)();this._options.setTimeout&&(0,o.hl)(t,"setTimeout",p),this._options.setInterval&&(0,o.hl)(t,"setInterval",p),this._options.requestAnimationFrame&&(0,o.hl)(t,"requestAnimationFrame",f),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&(0,o.hl)(XMLHttpRequest.prototype,"send",d);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:u).forEach(h)},t.id="TryCatch",t}();function p(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=(0,s.re)(r,{mechanism:{data:{function:(0,a.$P)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function f(t){return function(e){return t.apply(this,[(0,s.re)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,a.$P)(t)},handled:!0,type:"instrument"}})])}}function d(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(t){t in r&&"function"==typeof r[t]&&(0,o.hl)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:(0,a.$P)(e)},handled:!0,type:"instrument"}},r=(0,o.HK)(e);return r&&(n.mechanism.data.handler=(0,a.$P)(r)),(0,s.re)(e,n)}))})),t.apply(this,e)}}function h(t){var e=(0,i.R)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,s.re)(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:(0,a.$P)(r),target:t},handled:!0,type:"instrument"}}))}catch(o){}return e.apply(this,[n,(0,s.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,a.$P)(r),target:t},handled:!0,type:"instrument"}}),i])}})),(0,o.hl)(n,"removeEventListener",(function(t){return function(e,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(a){}return t.call(this,e,i,r)}})))}},9992:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(334),i=n(1684),o=n(8585),a=(0,n(5907).R)(),s=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){(0,i.c)((function(e){if((0,o.Gd)().getIntegration(t)){if(!a.navigator&&!a.location&&!a.document)return e;var n=e.request&&e.request.url||a.location&&a.location.href,i=(a.document||{}).referrer,s=(a.navigator||{}).userAgent,u=(0,r.pi)((0,r.pi)((0,r.pi)({},e.request&&e.request.headers),i&&{Referer:i}),s&&{"User-Agent":s}),c=(0,r.pi)((0,r.pi)({},n&&{url:n}),{headers:u});return(0,r.pi)((0,r.pi)({},e),{request:c})}return e}))},t.id="UserAgent",t}()},2456:function(t,e,n){n.d(e,{S1:function(){return b},yl:function(){return S}});var r=n(1061),i=n(6286),o=n(6853),a=n(8585),s=n(5907),u=n(8536),c=n(7946),p=n(4005),f=n(2314),d=n(7904),h=n(3399),l=n(8356),v=n(1228),m=n(3440),g=n(184),y=n(9992),_=[new r.QD,new i.c,new h.p,new l.O,new v.d,new m.iP,new g.I,new y.Z];function b(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=_),void 0===t.release){var e=(0,s.R)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),(0,o.M)(f.R,t),t.autoSessionTracking&&function(){if(void 0===(0,s.R)().document)return void(d.h&&u.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var t=(0,a.Gd)();if(!t.captureSession)return;x(t),(0,p.o)("history",(function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&x((0,a.Gd)())}))}()}function S(t){var e=(0,a.Gd)().getClient();return e?e.flush(t):(d.h&&u.kg.warn("Cannot flush events. No client defined."),(0,c.WD)(!1))}function x(t){t.startSession({ignoreDuration:!0}),t.captureSession()}},2224:function(t,e,n){n.d(e,{s$:function(){return u},Pi:function(){return f},aL:function(){return h},CS:function(){return v},ay:function(){return g}});var r=n(334),i="?";function o(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var a=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=[30,function(t){var e=a.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=s.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var u=(0,r.CR)(y(e[1]||i,e[2]),2),c=u[0];return o(u[1],c,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f=[50,function(t){var e,n=c.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var a=p.exec(n[3]);a&&(n[1]=n[1]||"eval",n[3]=a[1],n[4]=a[2],n[5]="")}var s=n[3],u=n[1]||i;return u=(e=(0,r.CR)(y(u,s),2))[0],o(s=e[1],u,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,function(t){var e=d.exec(t);return e?o(e[2],e[1]||i,+e[3],e[4]?+e[4]:void 0):void 0}],l=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,v=[10,function(t){var e=l.exec(t);return e?o(e[2],e[3]||i,+e[1]):void 0}],m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,function(t){var e=m.exec(t);return e?o(e[5],e[3]||e[4]||i,+e[1],+e[2]):void 0}],y=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:i,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]}},6526:function(t,e,n){n.d(e,{d:function(){return y}});var r=n(334),i=n(4911),o=n(6508),a=n(5907),s=n(8963),u=n(8536),c=n(250),p=n(3135),f=n(6894),d=n(8886),h=n(1630),l=n(7904),v=n(5854);function m(t){return"event"===t?"error":t}var g=(0,a.R)(),y=function(){function t(t){var e=this;this.options=t,this._buffer=(0,s.x)(30),this._rateLimits={},this._outcomes={},this._api=(0,i.hd)(t.dsn,t._metadata,t.tunnel),this.url=(0,i.qi)(this._api.dsn),this.options.sendClientReports&&g.document&&g.document.addEventListener("visibilitychange",(function(){"hidden"===g.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest((0,o.nA)(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest((0,o.Qz)(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=m(e)+":"+t;l.h&&u.kg.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){l.h&&u.kg.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=(0,i.Ut)(this._api.dsn,this._api.tunnel),n=Object.keys(t).map((function(e){var n=(0,r.CR)(e.split(":"),2),i=n[0];return{reason:n[1],category:i,quantity:t[e]}})),o=(0,c.y)(n,this._api.tunnel&&(0,p.R)(this._api.dsn));try{(0,v.z)(e,(0,f.V$)(o))}catch(a){l.h&&u.kg.error(a)}}else l.h&&u.kg.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,o=t.reject,a=(0,d.F)(n.status);this._rateLimits=(0,h.WG)(this._rateLimits,r),this._isRateLimited(e)&&l.h&&u.kg.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==a?o(n):i({status:a})},t.prototype._disabledUntil=function(t){var e=m(t);return new Date((0,h.ns)(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=m(t);return(0,h.Q)(this._rateLimits,e)},t}()},6149:function(t,e,n){n.d(e,{V:function(){return c}});var r=n(334),i=n(9798),o=n(7946),a=n(4388),s=n(6526),u=n(5854),c=function(t){function e(e,n){void 0===n&&(n=(0,u.x)());var r=t.call(this,e)||this;return r._fetch=n,r}return(0,r.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:(0,i.hv)()?"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 o.cW((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})})).catch(i)}))})).then(void 0,(function(e){throw e instanceof a.b?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(s.d)},1449:function(t,e,n){n.d(e,{k:function(){return a}});var r=n(334),i=n(1518),o=n(5854);function a(t,e){return void 0===e&&(e=(0,o.x)()),(0,i.qv)({bufferSize:t.bufferSize},(function(n){var i=(0,r.pi)({body:n.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return e(t.url,i).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}))}},4827:function(t,e,n){n.d(e,{H:function(){return o}});var r=n(1518),i=n(7946);function o(t){return(0,r.qv)({bufferSize:t.bufferSize},(function(e){return new i.cW((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var t={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(t)}},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,o)&&i.setRequestHeader(o,t.headers[o]);i.send(e.body)}))}))}},5854:function(t,e,n){n.d(e,{x:function(){return p},z:function(){return f}});var r,i=n(5907),o=n(9798),a=n(8536),s=n(3518),u=n(7904),c=(0,i.R)();function p(){if(r)return r;if((0,o.Du)(c.fetch))return r=c.fetch.bind(c);var t=c.document,e=c.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var i=n.contentWindow;i&&i.fetch&&(e=i.fetch),t.head.removeChild(n)}catch(s){u.h&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return r=e.bind(c)}function f(t,e){if("[object Navigator]"===Object.prototype.toString.call(c&&c.navigator)&&"function"==typeof c.navigator.sendBeacon)return c.navigator.sendBeacon.bind(c.navigator)(t,e);if((0,o.Ak)()){var n=p();return(0,s.I)(n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}))}}},6144:function(t,e,n){n.d(e,{w:function(){return a}});var r=n(334),i=n(7946),o=n(4388),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new i.cW((function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)}))})).then(void 0,(function(e){throw e instanceof o.b?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}(n(6526).d)},334:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},CR:function(){return a},fl:function(){return s}});
|
2 |
/*! *****************************************************************************
|
3 |
Copyright (c) Microsoft Corporation.
|
4 |
|
13 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14 |
PERFORMANCE OF THIS SOFTWARE.
|
15 |
***************************************************************************** */
|
16 |
+
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t}},4911:function(t,e,n){n.d(e,{hd:function(){return o},qi:function(){return p},Ut:function(){return f},hR:function(){return d}});var r=n(3135),i=n(1995);!function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=(0,r.v)(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return a(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return c(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return p(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return f(this._dsnObject,this._tunnel)}}();function o(t,e,n){return{initDsn:t,metadata:e||{},dsn:(0,r.v)(t),tunnel:n}}function a(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function s(t,e){return""+a(t)+t.projectId+"/"+e+"/"}function u(t){return(0,i._j)({sentry_key:t.publicKey,sentry_version:"7"})}function c(t){return s(t,"store")}function p(t){return c(t)+"?"+u(t)}function f(t,e){return e||function(t){return s(t,"envelope")}(t)+"?"+u(t)}function d(t,e){var n=(0,r.v)(t),i=a(n)+"embed/error-page/",o="dsn="+(0,r.R)(n);for(var s in e)if("dsn"!==s)if("user"===s){if(!e.user)continue;e.user.name&&(o+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(o+="&email="+encodeURIComponent(e.user.email))}else o+="&"+encodeURIComponent(s)+"="+encodeURIComponent(e[s]);return i+"?"+o}},9504:function(t,e,n){n.d(e,{N:function(){return p}});var r=n(5733),i=n(8536),o=n(4388),a=n(4911),s=n(428),u=n(6508),c=n(3926),p=function(){function t(t){this._options=t,this._options.dsn||s.h&&i.kg.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new o.b("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new o.b("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=(0,a.hd)(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,u.Mq)(t,e);this._newTransport.send(n).then(null,(function(t){s.h&&i.kg.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){s.h&&i.kg.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=(0,a.hd)(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,r.CR)((0,u.Q3)(t,e),1)[0];this._newTransport.send(n).then(null,(function(t){s.h&&i.kg.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){s.h&&i.kg.error("Error while sending session:",t)}));else s.h&&i.kg.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new c.V},t}()},9849:function(t,e,n){n.d(e,{W:function(){return g}});var r=n(5733),i=n(1684),o=n(3135),a=n(3699),s=n(8536),u=n(1757),c=n(7946),p=n(7790),f=n(8035),d=n(9660),h=n(4388),l=n(428),v=n(8889),m="Not capturing exception because it's already been captured.",g=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=(0,o.v)(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if(!(0,a.YO)(t)){var i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i}l.h&&s.kg.log(m)},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,a=(0,u.pt)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(a.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&(0,a.YO)(e.originalException))){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r}l.h&&s.kg.log(m)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?l.h&&s.kg.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):l.h&&s.kg.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(0,v.q4)(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return l.h&&s.kg.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,i,o=!1,a=!1,s=e.exception&&e.exception.values;if(s){a=!0;try{for(var u=(0,r.XA)(s),c=u.next();!c.done;c=u.next()){var p=c.value.mechanism;if(p&&!1===p.handled){o=!0;break}}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}var f="ok"===t.status;(f&&0===t.errors||f&&o)&&(t.update((0,r.pi)((0,r.pi)({},o&&{status:"crashed"}),{errors:t.errors||Number(a||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new c.cW((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var o=this,s=this.getOptions(),u=s.normalizeDepth,d=void 0===u?3:u,h=s.normalizeMaxBreadth,l=void 0===h?1e3:h,v=(0,r.pi)((0,r.pi)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,a.DM)()),timestamp:t.timestamp||(0,p.yW)()});this._applyClientOptions(v),this._applyIntegrationsMetadata(v);var m=e;n&&n.captureContext&&(m=i.s.clone(m).update(n.captureContext));var g=(0,c.WD)(v);return m&&(g=m.applyToEvent(v,n)),g.then((function(t){return t&&(t.sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},t.sdkProcessingMetadata),{normalizeDepth:(0,f.Fv)(d)+" ("+typeof d+")"})),"number"==typeof d&&d>0?o._normalizeEvent(t,d,l):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var i=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return(0,r.pi)((0,r.pi)({},t),t.data&&{data:(0,f.Fv)(t.data,e,n)})}))}),t.user&&{user:(0,f.Fv)(t.user,e,n)}),t.contexts&&{contexts:(0,f.Fv)(t.contexts,e,n)}),t.extra&&{extra:(0,f.Fv)(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(i.contexts.trace=t.contexts.trace),i.sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},i.sdkProcessingMetadata),{baseClientNormalized:!0}),i},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,d.$G)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=(0,d.$G)(s.value,a));var u=t.request;u&&u.url&&(u.url=(0,d.$G)(u.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){l.h&&s.kg.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function p(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this._isEnabled())return(0,c.$2)(new h.b("SDK not enabled, will not capture event."));var f="transaction"===t.type;return!f&&"number"==typeof a&&Math.random()>a?(p("sample_rate","event"),(0,c.$2)(new h.b("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw p("event_processor",t.type||"event"),new h.b("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||f||!o?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if((0,u.J8)(t))return t.then((function(t){if(!(0,u.PO)(t)&&null!==t)throw new h.b(e);return t}),(function(t){throw new h.b("beforeSend rejected with "+t)}));if(!(0,u.PO)(t)&&null!==t)throw new h.b(e);return t}(o(n,e))})).then((function(e){if(null===e)throw p("before_send",t.type||"event"),new h.b("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!f&&i&&r._updateSessionFromEvent(i,e),r._sendEvent(e),e})).then(null,(function(t){if(t instanceof h.b)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new h.b("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}()},428:function(t,e,n){n.d(e,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},8889:function(t,e,n){n.d(e,{q4:function(){return f}});var r=n(5733),i=n(1684),o=n(8585),a=n(8536),s=n(1995),u=n(428),c=[];function p(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function f(t){var e={};return function(t){var e=t.defaultIntegrations&&(0,r.fl)(t.defaultIntegrations)||[],n=t.integrations,i=(0,r.fl)(p(e));Array.isArray(n)?i=(0,r.fl)(i.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),p(n)):"function"==typeof n&&(i=n(i),i=Array.isArray(i)?i:[i]);var o=i.map((function(t){return t.name})),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,(0,r.fl)(i.splice(o.indexOf(a),1))),i}(t).forEach((function(t){e[t.name]=t,function(t){-1===c.indexOf(t.name)&&(t.setupOnce(i.c,o.Gd),c.push(t.name),u.h&&a.kg.log("Integration installed: "+t.name))}(t)})),(0,s.xp)(e,"initialized",!0),e}},6286:function(t,e,n){n.d(e,{c:function(){return o}});var r,i=n(1995),o=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,i.HK)(this)||this;return r.apply(n,t)}},t.id="FunctionToString",t}()},1061:function(t,e,n){n.d(e,{QD:function(){return c}});var r=n(5733),i=n(8536),o=n(3699),a=n(9660),s=n(428),u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],c=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var c=n();if(c){var p=c.getIntegration(t);if(p){var d=c.getClient(),h=d?d.getOptions():{},l=function(t,e){void 0===t&&(t={});void 0===e&&(e={});return{allowUrls:(0,r.fl)(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:(0,r.fl)(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:(0,r.fl)(t.ignoreErrors||[],e.ignoreErrors||[],u),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(p._options,h);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return s.h&&i.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,o.jH)(t)),!0;if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,a=e.value,u=void 0===a?"":a;return[""+u,r+": "+u]}catch(c){return s.h&&i.kg.error("Cannot extract message for event "+(0,o.jH)(t)),[]}return[]}(t).some((function(t){return e.some((function(e){return(0,a.zC)(t,e)}))}))}(t,e.ignoreErrors))return s.h&&i.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,o.jH)(t)),!0;if(function(t,e){if(!e||!e.length)return!1;var n=f(t);return!!n&&e.some((function(t){return(0,a.zC)(n,t)}))}(t,e.denyUrls))return s.h&&i.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+f(t)),!0;if(!function(t,e){if(!e||!e.length)return!0;var n=f(t);return!n||e.some((function(t){return(0,a.zC)(n,t)}))}(t,e.allowUrls))return s.h&&i.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,o.jH)(t)+".\nUrl: "+f(t)),!0;return!1}(e,l)?null:e}}return e}))},t.id="InboundFilters",t}();function p(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function f(t){try{if(t.stacktrace)return p(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?p(e):null}catch(r){return s.h&&i.kg.error("Cannot extract url for event "+(0,o.jH)(t)),null}}},6508:function(t,e,n){n.d(e,{Q3:function(){return p},Qz:function(){return f},Mq:function(){return d},nA:function(){return h}});var r=n(5733),i=n(3135),o=n(6894),a=n(8035),s=n(4911);function u(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function c(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=(0,r.fl)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=(0,r.fl)(t.sdk.packages||[],e.packages||[]),t):t}function p(t,e){var n=u(e),a=(0,r.pi)((0,r.pi)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:(0,i.R)(e.dsn)}),s="aggregates"in t?"sessions":"session",c=[{type:s},t];return[(0,o.Jd)(a,[c]),s]}function f(t,e){var n=(0,r.CR)(p(t,e),2),i=n[0],a=n[1];return{body:(0,o.V$)(i),type:a,url:(0,s.Ut)(e.dsn,e.tunnel)}}function d(t,e){var n=u(e),a=t.type||"event",s=(t.sdkProcessingMetadata||{}).transactionSampling||{},p=s.method,f=s.rate;c(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;var d=(0,r.pi)((0,r.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:(0,i.R)(e.dsn)}),h=[{type:a,sample_rates:[{id:p,rate:f}]},t];return(0,o.Jd)(d,[h])}function h(t,e){var n,p=u(e),f=t.type||"event",d="transaction"===f||!!e.tunnel,h=(t.sdkProcessingMetadata||{}).transactionSampling||{},l=h.method,v=h.rate;c(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(S){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=S;try{n=JSON.stringify((0,a.Fv)(t))}catch(x){var m=x;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:m.message,stack:m.stack}})}}var g={body:n,type:f,url:d?(0,s.Ut)(e.dsn,e.tunnel):(0,s.qi)(e.dsn)};if(d){var y=(0,r.pi)((0,r.pi)({event_id:t.event_id,sent_at:(new Date).toISOString()},p&&{sdk:p}),!!e.tunnel&&{dsn:(0,i.R)(e.dsn)}),_=[{type:f,sample_rates:[{id:l,rate:v}]},g.body],b=(0,o.Jd)(y,[_]);g.body=(0,o.V$)(b)}return g}},6853:function(t,e,n){n.d(e,{M:function(){return a}});var r=n(8585),i=n(8536),o=n(428);function a(t,e){!0===e.debug&&(o.h?i.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,r.Gd)(),a=n.getScope();a&&a.update(e.initialScope);var s=new t(e);n.bindClient(s)}},1518:function(t,e,n){n.d(e,{qv:function(){return u}});var r=n(8963),i=n(6894),o=n(1630),a=n(7946),s=n(8886);function u(t,e,n){void 0===n&&(n=(0,r.x)(t.bufferSize||30));var u={};return{send:function(t){var r=(0,i.y7)(t),p="event"===r?"error":r,f={category:p,body:(0,i.V$)(t)};return(0,o.Q)(u,p)?(0,a.$2)({status:"rate_limit",reason:c(u,p)}):n.add((function(){return e(f).then((function(t){var e=t.body,n=t.headers,r=t.reason,i=t.statusCode,f=(0,s.F)(i);return n&&(u=(0,o.WG)(u,n)),"success"===f?(0,a.WD)({status:f,reason:r}):(0,a.$2)({status:f,reason:r||e||("rate_limit"===f?c(u,p):"Unknown transport error")})}))}))},flush:function(t){return n.drain(t)}}}function c(t,e){return"Too many "+e+" requests, backing off until: "+new Date((0,o.ns)(t,e)).toISOString()}},3926:function(t,e,n){n.d(e,{V:function(){return i}});var r=n(7946),i=function(){function t(){}return t.prototype.sendEvent=function(t){return(0,r.WD)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return(0,r.WD)(!0)},t}()},1476:function(t,e,n){n.d(e,{J:function(){return r}});var r="6.19.6"},5733:function(t,e,n){n.d(e,{pi:function(){return r},XA:function(){return i},CR:function(){return o},fl:function(){return a}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}},1299:function(t,e,n){n.d(e,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},8585:function(t,e,n){n.d(e,{Xb:function(){return d},Gd:function(){return v}});var r=n(8773),i=n(3699),o=n(7790),a=n(8536),s=n(5907),u=n(7392),c=n(1299),p=n(1684),f=n(2430),d=function(){function t(t,e,n){void 0===e&&(e=new p.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=p.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:(0,i.DM)(),o=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(t){a=t}o={originalException:t,syntheticException:a}}return this._invokeClient("captureException",t,(0,r.pi)((0,r.pi)({},o),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var o=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),a=n;if(!n){var s=void 0;try{throw new Error(t)}catch(u){s=u}a={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,e,(0,r.pi)((0,r.pi)({},a),{event_id:o})),o},t.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:(0,i.DM)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,(0,r.pi)((0,r.pi)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),i=n.scope,s=n.client;if(i&&s){var u=s.getOptions&&s.getOptions()||{},c=u.beforeBreadcrumb,p=void 0===c?null:c,f=u.maxBreadcrumbs,d=void 0===f?100:f;if(!(d<=0)){var h=(0,o.yW)(),l=(0,r.pi)({timestamp:h},t),v=p?(0,a.Cf)((function(){return p(l,e)})):l;null!==v&&i.addBreadcrumb(v,d)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=l(this);try{t(this)}finally{l(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return c.h&&a.kg.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,i=e.client,o=i&&i.getOptions()||{},a=o.release,u=o.environment,c=((0,s.R)().navigator||{}).userAgent,p=new f.z((0,r.pi)((0,r.pi)((0,r.pi)({release:a,environment:u},n&&{user:n.getUser()}),c&&{userAgent:c}),t));if(n){var d=n.getSession&&n.getSession();d&&"ok"===d.status&&d.update({status:"exited"}),this.endSession(),n.setSession(p)}return p},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),a=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,(0,r.fl)(n,[a]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=h(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);c.h&&a.kg.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function h(){var t=(0,s.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function l(t){var e=h(),n=g(e);return y(e,t),n}function v(){var t=h();return m(t)&&!g(t).isOlderThan(4)||y(t,new d),(0,u.KV)()?function(t){try{var e=h().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return g(t);if(!m(n)||g(n).isOlderThan(4)){var r=g(t).getStackTop();y(n,new d(r.client,p.s.clone(r.scope)))}return g(n)}catch(i){return g(t)}}(t):g(t)}function m(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function g(t){return(0,s.Y)("hub",(function(){return new d}),t)}function y(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},1684:function(t,e,n){n.d(e,{s:function(){return u},c:function(){return p}});var r=n(8773),i=n(1757),o=n(7790),a=n(7946),s=n(5907),u=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=(0,r.fl)(e._breadcrumbs),n._tags=(0,r.pi)({},e._tags),n._extra=(0,r.pi)({},e._extra),n._contexts=(0,r.pi)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=(0,r.fl)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,r.pi)((0,r.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=(0,r.pi)((0,r.pi)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,r.pi)((0,r.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=(0,r.pi)((0,r.pi)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=(0,r.pi)((0,r.pi)({},this._tags),e._tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e._extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,i.PO)(e)&&(e=e,this._tags=(0,r.pi)((0,r.pi)({},this._tags),e.tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),e.extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var i=(0,r.pi)({timestamp:(0,o.yW)()},t);return this._breadcrumbs=(0,r.fl)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,r.pi)((0,r.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,r.pi)((0,r.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,r.pi)((0,r.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,r.pi)((0,r.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,r.pi)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=(0,r.pi)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,r.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,o){var s=this;return void 0===o&&(o=0),new a.cW((function(a,u){var c=t[o];if(null===e||"function"!=typeof c)a(e);else{var p=c((0,r.pi)({},e),n);(0,i.J8)(p)?p.then((function(e){return s._notifyEventProcessors(t,e,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(t,p,n,o+1).then(a).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function c(){return(0,s.Y)("globalEventProcessors",(function(){return[]}))}function p(t){c().push(t)}},2430:function(t,e,n){n.d(e,{z:function(){return a}});var r=n(3699),i=n(7790),o=n(1995),a=function(){function t(t){this.errors=0,this.sid=(0,r.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,i.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,i.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return(0,o.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}()},8773:function(t,e,n){n.d(e,{pi:function(){return r},fl:function(){return o}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}},4678:function(t,e,n){n.d(e,{Tb:function(){return a},$e:function(){return s}});var r=n(5559),i=n(8585);function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=(0,i.Gd)();if(o&&o[t])return o[t].apply(o,(0,r.fl)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function a(t,e){return o("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function s(t){o("withScope",t)}},5559:function(t,e,n){n.d(e,{fl:function(){return i}});function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}},40:function(t,e,n){n.d(e,{j:function(){return c}});var r=n(5907),i=n(8536),o=n(50),a=n(853),s=n(2517),u=(0,r.R)();function c(){u&&u.document?u.document.addEventListener("visibilitychange",(function(){var t=(0,s.x1)();if(u.document.hidden&&t){var e="cancelled";a.h&&i.kg.log("[Tracing] Transaction: cancelled -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.setTag(o.d,o.x[2]),t.finish()}})):a.h&&i.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},4476:function(t,e,n){n.d(e,{gE:function(){return m}});var r=n(2481),i=n(8536),o=n(5907),a=n(853),s=n(1626),u=n(564),c=n(2517),p=n(9691),f=n(40),d=n(3800),h=n(6958),l=n(9866),v=(0,r.pi)({idleTimeout:u.nT,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:l.R,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},h.k3),m=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=h.k3.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:a.h&&(this._emitOptionsWarning=!0)),this.options=(0,r.pi)((0,r.pi)((0,r.pi)({},v),e),{tracingOrigins:n});var i=this.options._metricOptions;this._metrics=new d.zE(i&&i._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(a.h&&i.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),a.h&&i.kg.warn("[Tracing] We added a reasonable default for you: "+h.k3.tracingOrigins));var r=this.options,o=r.routingInstrumentation,s=r.startTransactionOnLocationChange,u=r.startTransactionOnPageLoad,c=r.markBackgroundTransactions,p=r.traceFetch,d=r.traceXHR,l=r.tracingOrigins,v=r.shouldCreateSpanForRequest;o((function(t){return n._createRouteTransaction(t)}),u,s),c&&(0,f.j)(),(0,h.L7)({traceFetch:p,traceXHR:d,tracingOrigins:l,shouldCreateSpanForRequest:v})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,u=n.beforeNavigate,f=n.idleTimeout,d=n.maxTransactionDuration,h="pageload"===t.op?function(){var t=(e="sentry-trace",n=(0,o.R)().document.querySelector("meta[name="+e+"]"),n?n.getAttribute("content"):null);var e,n;if(t)return(0,p.q)(t);return}():void 0,l=(0,r.pi)((0,r.pi)((0,r.pi)({},t),h),{trimEnd:!0}),v="function"==typeof u?u(l):l,m=void 0===v?(0,r.pi)((0,r.pi)({},l),{sampled:!1}):v;!1===m.sampled&&a.h&&i.kg.log("[Tracing] Will not send "+m.op+" transaction because of beforeNavigate."),a.h&&i.kg.log("[Tracing] Starting "+m.op+" transaction on scope");var g=this._getCurrentHub(),y=(0,o.R)().location,_=(0,s.lb)(g,m,f,!0,{location:y});return _.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),function(t,e,n){var r=n-e.startTimestamp;n&&(r>t||r<0)&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}((0,c.WB)(d),t,n)})),_.setTag("idleTimeout",this._configuredIdleTimeout),_}a.h&&i.kg.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}()},3800:function(t,e,n){n.d(e,{zE:function(){return m}});var r=n(2481),i=n(5907),o=n(7392),a=n(7790),s=n(8536),u=n(4194),c=n(853),p=n(2517),f=n(1604),d=n(63),h=n(165),l=n(6576),v=(0,i.R)(),m=function(){function t(t){void 0===t&&(t=!1),this._reportAllChanges=t,this._measurements={},this._performanceCursor=0,!(0,o.KV)()&&v&&v.performance&&v.document&&(v.performance.mark&&v.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(v&&v.performance&&v.performance.getEntries&&a.Z1){c.h&&s.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i=(0,p.XL)(a.Z1);if(v.performance.getEntries().slice(this._performanceCursor).forEach((function(o){var a=(0,p.XL)(o.startTime),u=(0,p.XL)(o.duration);if(!("navigation"===t.op&&i+a<t.startTimestamp))switch(o.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){g(t,e,r,n)})),g(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),g(t,e,"fetch",n,"cache","domainLookupStart"),g(t,e,"domainLookup",n,"DNS"),function(t,e,n){y(t,{op:"browser",description:"request",startTimestamp:n+(0,p.XL)(e.requestStart),endTimestamp:n+(0,p.XL)(e.responseEnd)}),y(t,{op:"browser",description:"response",startTimestamp:n+(0,p.XL)(e.responseStart),endTimestamp:n+(0,p.XL)(e.responseEnd)})}(t,e,n)}(t,o,i),n=i+(0,p.XL)(o.responseStart),r=i+(0,p.XL)(o.requestStart);break;case"mark":case"paint":case"measure":var f=function(t,e,n,r,i){var o=i+n,a=o+r;return y(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:o}),o}(t,o,a,u,i),d=(0,l.Y)(),h=o.startTime<d.firstHiddenTime;"first-paint"===o.name&&h&&(c.h&&s.kg.log("[Measurements] Adding FP"),e._measurements.fp={value:o.startTime},e._measurements["mark.fp"]={value:f}),"first-contentful-paint"===o.name&&h&&(c.h&&s.kg.log("[Measurements] Adding FCP"),e._measurements.fcp={value:o.startTime},e._measurements["mark.fcp"]={value:f});break;case"resource":var m=o.name.replace(v.location.origin,"");!function(t,e,n,r,i,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var a={};"transferSize"in e&&(a["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(a["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(a["Decoded Body Size"]=e.decodedBodySize);var s=o+r;y(t,{description:n,endTimestamp:s+i,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:a})}(t,o,m,a,u,i)}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var o=(0,p.XL)(a.Z1);"number"==typeof n&&(c.h&&s.kg.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-t.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(o>=t.startTimestamp)){var r=e._measurements[n].value,i=o+(0,p.XL)(r),a=Math.abs(1e3*(i-t.startTimestamp)),u=a-r;c.h&&s.kg.log("[Measurements] Normalized "+n+" from "+r+" to "+a+" ("+u+")"),e._measurements[n].value=a}})),this._measurements["mark.fid"]&&this._measurements.fid&&y(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+(0,p.XL)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),function(t,e,n){e&&(c.h&&s.kg.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",(0,u.R)(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size));n&&n.sources&&(c.h&&s.kg.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(e,n){return t.setTag("cls.source."+(n+1),(0,u.R)(e.node))})))}(t,this._lcpEntry,this._clsEntry),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(t){var e=v.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),_(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),_(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),_(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),_(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackCLS=function(){var t=this;(0,f.k)((function(e){var n=e.entries.pop();n&&(c.h&&s.kg.log("[Measurements] Adding CLS"),t._measurements.cls={value:e.value},t._clsEntry=n)}))},t.prototype._trackLCP=function(){var t=this;(0,h.T)((function(e){var n=e.entries.pop();if(n){var r=(0,p.XL)(a.Z1),i=(0,p.XL)(n.startTime);c.h&&s.kg.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i},t._lcpEntry=n}}),this._reportAllChanges)},t.prototype._trackFID=function(){var t=this;(0,d.T)((function(e){var n=e.entries.pop();if(n){var r=(0,p.XL)(a.Z1),i=(0,p.XL)(n.startTime);c.h&&s.kg.log("[Measurements] Adding FID"),t._measurements.fid={value:e.value},t._measurements["mark.fid"]={value:r+i}}}))},t}();function g(t,e,n,r,i,o){var a=o?e[o]:e[n+"End"],s=e[n+"Start"];s&&a&&y(t,{op:"browser",description:null!=i?i:n,startTimestamp:r+(0,p.XL)(s),endTimestamp:r+(0,p.XL)(a)})}function y(t,e){var n=e.startTimestamp,i=(0,r._T)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild((0,r.pi)({startTimestamp:n},i))}function _(t){return"number"==typeof t&&isFinite(t)}},6958:function(t,e,n){n.d(e,{k3:function(){return u},L7:function(){return c}});var r=n(2481),i=n(9660),o=n(4005),a=n(1757),s=n(2517),u={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function c(t){var e=(0,r.pi)((0,r.pi)({},u),t),n=e.traceFetch,c=e.traceXHR,p=e.tracingOrigins,f=e.shouldCreateSpanForRequest,d={},h=function(t){if(d[t])return d[t];var e=p;return d[t]=e.some((function(e){return(0,i.zC)(t,e)}))&&!(0,i.zC)(t,"sentry_key"),d[t]},l=h;"function"==typeof f&&(l=function(t){return h(t)&&f(t)});var v={};n&&(0,o.o)("fetch",(function(t){!function(t,e,n){if(!(0,s.zu)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){var i=t.fetchData.__span;if(!i)return;return void((u=n[i])&&(t.response?u.setHttpStatus(t.response.status):t.error&&u.setStatus("internal_error"),u.finish(),delete n[i]))}var o=(0,s.x1)();if(o){var u=o.startChild({data:(0,r.pi)((0,r.pi)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=u.spanId,n[u.spanId]=u;var c=t.args[0]=t.args[0],p=t.args[1]=t.args[1]||{},f=p.headers;(0,a.V9)(c,Request)&&(f=c.headers),f?"function"==typeof f.append?f.append("sentry-trace",u.toTraceparent()):f=Array.isArray(f)?(0,r.fl)(f,[["sentry-trace",u.toTraceparent()]]):(0,r.pi)((0,r.pi)({},f),{"sentry-trace":u.toTraceparent()}):f={"sentry-trace":u.toTraceparent()},p.headers=f}}(t,l,v)})),c&&(0,o.o)("xhr",(function(t){!function(t,e,n){if(!(0,s.zu)()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return;var i=t.xhr.__sentry_xhr__;if(t.endTimestamp){var o=t.xhr.__sentry_xhr_span_id__;if(!o)return;return void((u=n[o])&&(u.setHttpStatus(i.status_code),u.finish(),delete n[o]))}var a=(0,s.x1)();if(a){var u=a.startChild({data:(0,r.pi)((0,r.pi)({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=u.spanId,n[t.xhr.__sentry_xhr_span_id__]=u,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",u.toTraceparent())}catch(c){}}}(t,l,v)}))}},9866:function(t,e,n){n.d(e,{R:function(){return u}});var r=n(5907),i=n(8536),o=n(4005),a=n(853),s=(0,r.R)();function u(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),s&&s.location){var r,u=s.location.href;e&&(r=t({name:s.location.pathname,op:"pageload"})),n&&(0,o.o)("history",(function(e){var n=e.to,o=e.from;void 0===o&&u&&-1!==u.indexOf(n)?u=void 0:o!==n&&(u=void 0,r&&(a.h&&i.kg.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:s.location.pathname,op:"navigation"}))}))}else a.h&&i.kg.warn("Could not initialize routing instrumentation due to invalid location")}},1604:function(t,e,n){n.d(e,{k:function(){return s}});var r=n(7498),i=n(4402),o=n(7483),a=n(391),s=function(t,e){var n,s=(0,i.I)("CLS",0),u=0,c=[],p=function(t){if(t&&!t.hadRecentInput){var e=c[0],r=c[c.length-1];u&&0!==c.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(u+=t.value,c.push(t)):(u=t.value,c=[t]),u>s.value&&(s.value=u,s.entries=c,n&&n())}},f=(0,o.N)("layout-shift",p);f&&(n=(0,r._)(t,s,e),(0,a.u)((function(){f.takeRecords().map(p),n(!0)})))}},63:function(t,e,n){n.d(e,{T:function(){return u}});var r=n(7498),i=n(6576),o=n(4402),a=n(7483),s=n(391),u=function(t,e){var n,u=(0,i.Y)(),c=(0,o.I)("FID"),p=function(t){n&&t.startTime<u.firstHiddenTime&&(c.value=t.processingStart-t.startTime,c.entries.push(t),n(!0))},f=(0,a.N)("first-input",p);f&&(n=(0,r._)(t,c,e),(0,s.u)((function(){f.takeRecords().map(p),f.disconnect()}),!0))}},165:function(t,e,n){n.d(e,{T:function(){return c}});var r=n(7498),i=n(6576),o=n(4402),a=n(7483),s=n(391),u={},c=function(t,e){var n,c=(0,i.Y)(),p=(0,o.I)("LCP"),f=function(t){var e=t.startTime;e<c.firstHiddenTime&&(p.value=e,p.entries.push(t)),n&&n()},d=(0,a.N)("largest-contentful-paint",f);if(d){n=(0,r._)(t,p,e);var h=function(){u[p.id]||(d.takeRecords().map(f),d.disconnect(),u[p.id]=!0,n(!0))};["keydown","click"].forEach((function(t){addEventListener(t,h,{once:!0,capture:!0})})),(0,s.u)(h,!0)}}},7498:function(t,e,n){n.d(e,{_:function(){return r}});var r=function(t,e,n){var r;return function(i){e.value>=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}}},6864:function(t,e,n){n.d(e,{f:function(){return r}});var r=function(){return"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},6576:function(t,e,n){n.d(e,{Y:function(){return a}});var r=n(5907),i=n(391),o=-1,a=function(){return o<0&&(o="hidden"===(0,r.R)().document.visibilityState?0:1/0,(0,i.u)((function(t){var e=t.timeStamp;o=e}),!0)),{get firstHiddenTime(){return o}}}},4402:function(t,e,n){n.d(e,{I:function(){return i}});var r=n(6864),i=function(t,e){return{name:t,value:null!=e?e:-1,delta:0,entries:[],id:(0,r.f)()}}},7483:function(t,e,n){n.d(e,{N:function(){return r}});var r=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(r){}}},391:function(t,e,n){n.d(e,{u:function(){return i}});var r=n(5907),i=function(t,e){var n=function(i){"pagehide"!==i.type&&"hidden"!==(0,r.R)().document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}},50:function(t,e,n){n.d(e,{d:function(){return r},x:function(){return i}});var r="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]},853:function(t,e,n){n.d(e,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1626:function(t,e,n){n.d(e,{lb:function(){return p}});var r=n(2481),i=n(8536),o=n(1757),a=n(853),s=n(564),u=n(2517);function c(t,e,n){return(0,u.zu)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(r=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(t){if((0,o.i2)(t)||"number"!=typeof t&&"boolean"!=typeof t)return a.h&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1;if(t<0||t>1)return a.h&&i.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(a.h&&i.kg.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(a.h&&i.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):(a.h&&i.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(a.h&&i.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function p(t,e,n,i,o){var a=t.getClient(),u=a&&a.getOptions()||{},p=new s.io(e,t,n,i);return(p=c(p,u,(0,r.pi)({parentSampled:e.parentSampled,transactionContext:e},o))).sampled&&p.initSpanRecorder(u._experiments&&u._experiments.maxSpans),p}t=n.hmd(t)},564:function(t,e,n){n.d(e,{nT:function(){return p},io:function(){return d}});var r=n(2481),i=n(7790),o=n(8536),a=n(50),s=n(853),u=n(8207),c=n(8235),p=1e3,f=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return(0,r.ZT)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:(0,i._I)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(u.gB),d=function(t){function e(e,n,r,i){void 0===r&&(r=p),void 0===i&&(i=!1);var a=t.call(this,e,n)||this;return a._idleHub=n,a._idleTimeout=r,a._onScope=i,a.activities={},a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&i&&(h(n),s.h&&o.kg.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope((function(t){return t.setSpan(a)}))),a._initTimeout=setTimeout((function(){a._finished||a.finish()}),a._idleTimeout),a}return(0,r.ZT)(e,t),e.prototype.finish=function(e){var n,a,u=this;if(void 0===e&&(e=(0,i._I)()),this._finished=!0,this.activities={},this.spanRecorder){s.h&&o.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var c=(0,r.XA)(this._beforeFinishCallbacks),p=c.next();!p.done;p=c.next()){(0,p.value)(this,e)}}catch(f){n={error:f}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===u.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),s.h&&o.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||s.h&&o.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),s.h&&o.kg.log("[Tracing] flushing IdleTransaction")}else s.h&&o.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&h(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;if(!this.spanRecorder){this.spanRecorder=new f((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),s.h&&o.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),s.h&&o.kg.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,s.h&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(s.h&&o.kg.log("[Tracing] popActivity "+t),delete this.activities[t],s.h&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=(0,i._I)()+n/1e3;setTimeout((function(){e._finished||(e.setTag(a.d,a.x[1]),e.finish(r))}),n)}},e.prototype._beat=function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(s.h&&o.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(a.d,a.x[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;s.h&&o.kg.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),5e3)},e}(c.Y);function h(t){if(t){var e=t.getScope();if(e)e.getTransaction()&&e.setSpan(void 0)}}},8207:function(t,e,n){n.d(e,{gB:function(){return s},Dr:function(){return u}});var r=n(2481),i=n(3699),o=n(7790),a=n(1995),s=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),u=function(){function t(t){if(this.traceId=(0,i.DM)(),this.spanId=(0,i.DM)().substring(16),this.startTimestamp=(0,o._I)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t((0,r.pi)((0,r.pi)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=(0,r.pi)((0,r.pi)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=(0,r.pi)((0,r.pi)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:(0,o._I)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}()},8235:function(t,e,n){n.d(e,{Y:function(){return p}});var r=n(2481),i=n(8585),o=n(1757),a=n(8536),s=n(1995),u=n(853),c=n(8207),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r._measurements={},r._hub=(0,i.Gd)(),(0,o.V9)(n,i.Xb)&&(r._hub=n),r.name=e.name||"",r.metadata=e.metadata||{},r._trimEnd=e.trimEnd,r.transaction=r,r}return(0,r.ZT)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new c.gB(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=(0,r.pi)({},t)},e.prototype.setMetadata=function(t){this.metadata=(0,r.pi)((0,r.pi)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(u.h&&a.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(u.h&&a.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),u.h&&a.kg.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(i)}u.h&&a.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var o=this._hub.getClient(),s=o&&o.getTransport&&o.getTransport();s&&s.recordLostEvent&&s.recordLostEvent("sample_rate","transaction")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return(0,s.Jr)((0,r.pi)((0,r.pi)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(c.Dr)},2517:function(t,e,n){n.d(e,{zu:function(){return i},x1:function(){return o},XL:function(){return a},WB:function(){return s}});var r=n(8585);function i(t){var e=(0,r.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(t){var e=(t||(0,r.Gd)()).getScope();return e&&e.getTransaction()}function a(t){return t/1e3}function s(t){return 1e3*t}},2481:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},_T:function(){return a},XA:function(){return s},fl:function(){return c}});
|
17 |
/*! *****************************************************************************
|
18 |
Copyright (c) Microsoft Corporation.
|
19 |
|
28 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
29 |
PERFORMANCE OF THIS SOFTWARE.
|
30 |
***************************************************************************** */
|
31 |
+
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}},2226:function(t,e,n){var r;n.d(e,{z:function(){return r}}),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(r||(r={}))},3518:function(t,e,n){function r(t){t.then(null,(function(t){console.error(t)}))}n.d(e,{I:function(){return r}})},4194:function(t,e,n){n.d(e,{R:function(){return o},l:function(){return s}});var r=n(5907),i=n(1757);function o(t,e){try{for(var n=t,r=[],i=0,o=0,s=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=a(n,e))||i>1&&o+r.length*s+u.length>=80);)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(c){return"<unknown>"}}function a(t,e){var n,r,o,a,s,u=t,c=[];if(!u||!u.tagName)return"";c.push(u.tagName.toLowerCase());var p=e&&e.length?e.filter((function(t){return u.getAttribute(t)})).map((function(t){return[t,u.getAttribute(t)]})):null;if(p&&p.length)p.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(u.id&&c.push("#"+u.id),(n=u.className)&&(0,i.HD)(n))for(r=n.split(/\s+/),s=0;s<r.length;s++)c.push("."+r[s]);var f=["type","name","title","alt"];for(s=0;s<f.length;s++)o=f[s],(a=u.getAttribute(o))&&c.push("["+o+'="'+a+'"]');return c.join("")}function s(){var t=(0,r.R)();try{return t.document.location.href}catch(e){return""}}},250:function(t,e,n){n.d(e,{y:function(){return o}});var r=n(6894),i=n(7790);function o(t,e,n){var o=[{type:"client_report"},{timestamp:n||(0,i.yW)(),discarded_events:t}];return(0,r.Jd)(e?{dsn:e}:{},[o])}},3135:function(t,e,n){n.d(e,{R:function(){return s},v:function(){return c}});var r=n(4715),i=n(4388),o=n(1923),a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(t,e){void 0===e&&(e=!1);var n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a}function u(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function c(t){var e="string"==typeof t?function(t){var e=a.exec(t);if(!e)throw new i.b("Invalid Sentry Dsn: "+t);var n=(0,r.CR)(e.slice(1),6),o=n[0],s=n[1],c=n[2],p=void 0===c?"":c,f=n[3],d=n[4],h=void 0===d?"":d,l="",v=n[5],m=v.split("/");if(m.length>1&&(l=m.slice(0,-1).join("/"),v=m.pop()),v){var g=v.match(/^\d+/);g&&(v=g[0])}return u({host:f,pass:p,path:l,projectId:v,port:h,protocol:o,publicKey:s})}(t):u(t);return function(t){if(o.h){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new i.b("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new i.b("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(t){return"http"===t||"https"===t}(r))throw new i.b("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new i.b("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}},6872:function(t,e,n){n.d(e,{a:function(){return r}});var r=["fatal","error","warning","log","info","debug","critical"]},4285:function(t,e,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(e,{n:function(){return r}})},6894:function(t,e,n){n.d(e,{Jd:function(){return o},y7:function(){return a},V$:function(){return s}});var r=n(4715),i=n(1757);function o(t,e){return void 0===e&&(e=[]),[t,e]}function a(t){var e=(0,r.CR)(t,2),n=(0,r.CR)(e[1],1);return(0,r.CR)(n[0],1)[0].type}function s(t){var e=(0,r.CR)(t,2),n=e[0],o=e[1],a=JSON.stringify(n);return o.reduce((function(t,e){var n=(0,r.CR)(e,2),o=n[0],a=n[1],s=(0,i.pt)(a)?String(a):JSON.stringify(a);return t+"\n"+JSON.stringify(o)+"\n"+s}),a)}},4388:function(t,e,n){n.d(e,{b:function(){return o}});var r=n(4715),i=n(467),o=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,(0,i.f)(r,n.prototype),r}return(0,r.ZT)(e,t),e}(Error)},1923:function(t,e,n){n.d(e,{h:function(){return r}});var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},5907:function(t,e,n){n.d(e,{R:function(){return o},Y:function(){return a}});var r=n(7392),i={};function o(){return(0,r.KV)()||"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(t,e,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}},4005:function(t,e,n){n.d(e,{o:function(){return m}});var r,i=n(4715),o=n(1923),a=n(5907),s=n(1757),u=n(8536),c=n(1995),p=n(9038),f=n(9798),d=(0,a.R)(),h={},l={};function v(t){if(!l[t])switch(l[t]=!0,t){case"console":!function(){if(!("console"in d))return;u.RU.forEach((function(t){t in d.console&&(0,c.hl)(d.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];g("console",{args:n,level:t}),e&&e.apply(d.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in d))return;var t=g.bind(null,"dom"),e=x(t,!0);d.document.addEventListener("click",e,!1),d.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=d[e]&&d[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=x(t);s.handler=u,e.call(this,n,u,i)}s.refCount+=1}catch(c){}return e.call(this,n,r,i)}})),(0,c.hl)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[e];a&&(a.refCount-=1,a.refCount<=0&&(t.call(this,e,a.handler,r),a.handler=void 0,delete o[e]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in d))return;var t=XMLHttpRequest.prototype;(0,c.hl)(t,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=e[1],o=r.__sentry_xhr__={method:(0,s.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1]};(0,s.HD)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{o.status_code=r.status}catch(t){}g("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?(0,c.hl)(r,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a(),t.apply(r,e)}})):r.addEventListener("readystatechange",a),t.apply(r,e)}})),(0,c.hl)(t,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),g("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!(0,f.t$)())return;(0,c.hl)(d,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:y(e),url:_(e)},startTimestamp:Date.now()};return g("fetch",(0,i.pi)({},r)),t.apply(d,e).then((function(t){return g("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw g("fetch",(0,i.pi)((0,i.pi)({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!(0,f.Bf)())return;var t=d.onpopstate;function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length>2?e[2]:void 0;if(i){var o=r,a=String(i);r=a,g("history",{from:o,to:a})}return t.apply(this,e)}}d.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=d.location.href,o=r;if(r=i,g("history",{from:o,to:i}),t)try{return t.apply(this,e)}catch(a){}},(0,c.hl)(d.history,"pushState",e),(0,c.hl)(d.history,"replaceState",e)}();break;case"error":T=d.onerror,d.onerror=function(t,e,n,r,i){return g("error",{column:r,error:i,line:n,msg:t,url:e}),!!T&&T.apply(this,arguments)};break;case"unhandledrejection":w=d.onunhandledrejection,d.onunhandledrejection=function(t){return g("unhandledrejection",t),!w||w.apply(this,arguments)};break;default:return void(o.h&&u.kg.warn("unknown instrumentation type:",t))}}function m(t,e){h[t]=h[t]||[],h[t].push(e),v(t)}function g(t,e){var n,r;if(t&&h[t])try{for(var a=(0,i.XA)(h[t]||[]),s=a.next();!s.done;s=a.next()){var c=s.value;try{c(e)}catch(f){o.h&&u.kg.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+(0,p.$P)(c)+"\nError:",f)}}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function y(t){return void 0===t&&(t=[]),"Request"in d&&(0,s.V9)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function _(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in d&&(0,s.V9)(t[0],Request)?t[0].url:String(t[0])}var b,S;function x(t,e){return void 0===e&&(e=!1),function(n){if(n&&S!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===b||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(S,n))&&(t({event:n,name:r,global:e}),S=n),clearTimeout(b),b=d.setTimeout((function(){b=void 0}),1e3)}}}var T=null;var w=null},1757:function(t,e,n){n.d(e,{VZ:function(){return i},VW:function(){return a},TX:function(){return s},fm:function(){return u},HD:function(){return c},pt:function(){return p},PO:function(){return f},cO:function(){return d},kK:function(){return h},Kj:function(){return l},J8:function(){return v},Cy:function(){return m},i2:function(){return g},V9:function(){return y}});var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function o(t,e){return r.call(t)==="[object "+e+"]"}function a(t){return o(t,"ErrorEvent")}function s(t){return o(t,"DOMError")}function u(t){return o(t,"DOMException")}function c(t){return o(t,"String")}function p(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function d(t){return"undefined"!=typeof Event&&y(t,Event)}function h(t){return"undefined"!=typeof Element&&y(t,Element)}function l(t){return o(t,"RegExp")}function v(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function m(t){return f(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(n){return!1}}},8536:function(t,e,n){n.d(e,{RU:function(){return c},Cf:function(){return p},kg:function(){return r}});var r,i=n(4715),o=n(1923),a=n(5907),s=(0,a.R)(),u="Sentry Logger ",c=["debug","info","warn","error","log","assert"];function p(t){var e=(0,a.R)();if(!("console"in e))return t();var n=e.console,r={};c.forEach((function(t){var i=n[t]&&n[t].__sentry_original__;t in e.console&&i&&(r[t]=n[t],n[t]=i)}));try{return t()}finally{Object.keys(r).forEach((function(t){n[t]=r[t]}))}}function f(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o.h?c.forEach((function(n){e[n]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t&&p((function(){var t;(t=s.console)[n].apply(t,(0,i.fl)([u+"["+n+"]:"],e))}))}})):c.forEach((function(t){e[t]=function(){}})),e}r=o.h?(0,a.Y)("logger",f):f()},4048:function(t,e,n){function r(){var t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var r=0;r<e.length;r++){if(e[r]===n)return!0}return e.push(n),!1},function(n){if(t)e.delete(n);else for(var r=0;r<e.length;r++)if(e[r]===n){e.splice(r,1);break}}]}n.d(e,{i:function(){return r}})},3699:function(t,e,n){n.d(e,{DM:function(){return a},en:function(){return s},jH:function(){return c},Db:function(){return p},EG:function(){return f},YO:function(){return d}});var r=n(4715),i=n(5907),o=n(1995);function a(){var t=(0,i.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};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(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function s(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function u(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function c(t){var e=t.message,n=t.event_id;if(e)return e;var r=u(t);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function p(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function f(t,e){var n=u(t);if(n){var i=n.mechanism;if(n.mechanism=(0,r.pi)((0,r.pi)((0,r.pi)({},{type:"generic",handled:!0}),i),e),e&&"data"in e){var o=(0,r.pi)((0,r.pi)({},i&&i.data),e.data);n.mechanism.data=o}}}function d(t){if(t&&t.__sentry_captured__)return!0;try{(0,o.xp)(t,"__sentry_captured__",!0)}catch(e){}return!1}},7392:function(t,e,n){n.d(e,{KV:function(){return i},l$:function(){return o}});var r=n(4285);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}t=n.hmd(t)},8035:function(t,e,n){n.d(e,{Fv:function(){return u},Qy:function(){return c}});var r=n(4715),i=n(1757),o=n(4048),a=n(1995),s=n(9038);function u(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return p("",t,e,n)}catch(r){return{ERROR:"**non-serializable** ("+r+")"}}}function c(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r,i=u(t,e);return r=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?c(t,e-1,n):i}function p(t,e,n,u,c){void 0===n&&(n=1/0),void 0===u&&(u=1/0),void 0===c&&(c=(0,o.i)());var f=(0,r.CR)(c,2),d=f[0],h=f[1],l=e;if(l&&"function"==typeof l.toJSON)try{return l.toJSON()}catch(S){}if(null===e||["number","boolean","string"].includes(typeof e)&&!(0,i.i2)(e))return e;var v=function(t,e){try{return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof window&&e===window?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":(0,i.Cy)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+(0,s.$P)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(S){return"**non-serializable** ("+S+")"}}(t,e);if(!v.startsWith("[object "))return v;if(0===n)return v.replace("object ","");if(d(e))return"[Circular ~]";var m=Array.isArray(e)?[]:{},g=0,y=(0,i.VZ)(e)||(0,i.cO)(e)?(0,a.Sh)(e):e;for(var _ in y)if(Object.prototype.hasOwnProperty.call(y,_)){if(g>=u){m[_]="[MaxProperties ~]";break}var b=y[_];m[_]=p(_,b,n-1,u,c),g+=1}return h(e),m}},1995:function(t,e,n){n.d(e,{hl:function(){return s},xp:function(){return u},$Q:function(){return c},HK:function(){return p},_j:function(){return f},Sh:function(){return d},zf:function(){return v},Jr:function(){return m}});var r=n(4715),i=n(4194),o=n(1757),a=n(9660);function s(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{c(i,r)}catch(o){}t[e]=i}}function u(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}function p(t){return t.__sentry_original__}function f(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function d(t){var e=t;if((0,o.VZ)(t))e=(0,r.pi)({message:t.message,name:t.name,stack:t.stack},l(t));else if((0,o.cO)(t)){var n=t;e=(0,r.pi)({type:n.type,target:h(n.target),currentTarget:h(n.currentTarget)},l(n)),"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(e.detail=n.detail)}return e}function h(t){try{return(0,o.kK)(t)?(0,i.R)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function l(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function v(t,e){void 0===e&&(e=40);var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.$G)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:(0,a.$G)(i,e)}return""}function m(t){var e,n;if((0,o.PO)(t)){var i={};try{for(var a=(0,r.XA)(Object.keys(t)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==t[u]&&(i[u]=m(t[u]))}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(m):t}},467:function(t,e,n){n.d(e,{f:function(){return r}});var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t})},8963:function(t,e,n){n.d(e,{x:function(){return o}});var r=n(4388),i=n(7946);function o(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(o){if(!(void 0===t||e.length<t))return(0,i.$2)(new r.b("Not adding Promise due to buffer limit reached."));var a=o();return-1===e.indexOf(a)&&e.push(a),a.then((function(){return n(a)})).then(null,(function(){return n(a).then(null,(function(){}))})),a},drain:function(t){return new i.cW((function(n,r){var o=e.length;if(!o)return n(!0);var a=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){(0,i.WD)(t).then((function(){--o||(clearTimeout(a),n(!0))}),r)}))}))}}}},1630:function(t,e,n){n.d(e,{ns:function(){return i},Q:function(){return o},WG:function(){return a}});var r=n(4715);function i(t,e){return t[e]||t.all||0}function o(t,e,n){return void 0===n&&(n=Date.now()),i(t,e)>n}function a(t,e,n){var i,o,a,s;void 0===n&&(n=Date.now());var u=(0,r.pi)({},t),c=e["x-sentry-rate-limits"],p=e["retry-after"];if(c)try{for(var f=(0,r.XA)(c.trim().split(",")),d=f.next();!d.done;d=f.next()){var h=d.value.split(":",2),l=parseInt(h[0],10),v=1e3*(isNaN(l)?60:l);if(h[1])try{for(var m=(a=void 0,(0,r.XA)(h[1].split(";"))),g=m.next();!g.done;g=m.next()){u[g.value]=n+v}}catch(y){a={error:y}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}else u.all=n+v}}catch(_){i={error:_}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}else p&&(u.all=n+function(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(p,n));return u}},8653:function(t,e,n){n.d(e,{E:function(){return o}});var r=n(2226),i=n(6872);function o(t){return"warn"===t?r.z.Warning:function(t){return-1!==i.a.indexOf(t)}(t)?t:r.z.Log}},9038:function(t,e,n){n.d(e,{pE:function(){return i},$P:function(){return s}});var r=n(4715);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t,e){var i,a,s,u;void 0===e&&(e=0);var c=[];try{for(var p=(0,r.XA)(t.split("\n").slice(e)),f=p.next();!f.done;f=p.next()){var d=f.value;try{for(var h=(s=void 0,(0,r.XA)(n)),l=h.next();!l.done;l=h.next()){var v=(0,l.value)(d);if(v){c.push(v);break}}}catch(m){s={error:m}}finally{try{l&&!l.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}return o(c)}}function o(t){if(!t.length)return[];var e=t,n=e[0].function||"",i=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==i.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return(0,r.pi)((0,r.pi)({},t),{filename:t.filename||e[0].filename,function:t.function||"?"})})).reverse()}var a="<anonymous>";function s(t){try{return t&&"function"==typeof t&&t.name||a}catch(e){return a}}},8886:function(t,e,n){function r(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}n.d(e,{F:function(){return r}})},9660:function(t,e,n){n.d(e,{$G:function(){return i},nK:function(){return o},zC:function(){return a}});var r=n(1757);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},9798:function(t,e,n){n.d(e,{Ak:function(){return a},Du:function(){return s},t$:function(){return u},hv:function(){return c},Bf:function(){return p}});var r=n(1923),i=n(5907),o=n(8536);function a(){if(!("fetch"in(0,i.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function u(){if(!a())return!1;var t=(0,i.R)();if(s(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var u=n.createElement("iframe");u.hidden=!0,n.head.appendChild(u),u.contentWindow&&u.contentWindow.fetch&&(e=s(u.contentWindow.fetch)),n.head.removeChild(u)}catch(c){r.h&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return e}function c(){if(!a())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function p(){var t=(0,i.R)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}},7946:function(t,e,n){n.d(e,{WD:function(){return i},$2:function(){return o},cW:function(){return a}});var r=n(1757);function i(t){return new a((function(e){e(t)}))}function o(t){return new a((function(e,n){n(t)}))}var a=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&((0,r.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(r){i(r)}else t(n)},function(e){if(n)try{t(n(e))}catch(r){i(r)}else i(e)}]),r._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t}()},7790:function(t,e,n){n.d(e,{yW:function(){return u},ph:function(){return c},_I:function(){return p},Z1:function(){return f}});var r=n(5907),i=n(7392);t=n.hmd(t);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(t,"perf_hooks").performance}catch(e){return}}():function(){var t=(0,r.R)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),p=c,f=function(){var t=(0,r.R)().performance;if(t&&t.now){var e=36e5,n=t.now(),i=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,a=o<e,s=t.timing&&t.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):e;return a||u<e?o<=u?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",i)}"none"}()},9691:function(t,e,n){n.d(e,{q:function(){return i}});var r=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t){var e=t.match(r);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}},4715:function(t,e,n){n.d(e,{ZT:function(){return i},pi:function(){return o},XA:function(){return a},CR:function(){return s},fl:function(){return u}});
|
32 |
/*! *****************************************************************************
|
33 |
Copyright (c) Microsoft Corporation.
|
34 |
|
43 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
44 |
PERFORMANCE OF THIS SOFTWARE.
|
45 |
***************************************************************************** */
|
46 |
+
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}},6989:function(t){t.exports=window.wp.apiFetch}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r);var t,e=n(2456),i=n(4678),o=n(4476),a=n(6989),s=n.n(a);const u="true"===(null===(t=window.A8C_ETK_ErrorReporting_Config)||void 0===t?void 0:t.shouldActivateSentry),c=window._jsErr||[],p=window._headJsErrorHandler;u?(e.S1({dsn:"https://658ae291b00242148af6b76494d4a49a@o248881.ingest.sentry.io/5876245",integrations:[new o.gE],release:"wpcom-test-01",tracesSampleRate:1}),c.forEach((t=>i.Tb(t))),e.yl().then((()=>delete window._jsErr))):function(){const t=t=>{let{error:e}=t;if(!e)return;const n={message:e.message,trace:e.stack,url:document.location.href,feature:"wp-admin"};return s()({global:!0,path:"/rest/v1.1/js-error",method:"POST",data:{error:JSON.stringify(n)}}).catch((()=>console.error("Error: Unable to record the error in Logstash.")))};window.addEventListener("error",t),Promise.allSettled(c.map(t)).then((()=>delete window._jsErr))}(),window.removeEventListener("error",p),delete window._headJsErrorHandler}(),window.EditingToolkit=r}();
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 3.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -42,7 +42,7 @@ namespace A8C\FSE;
|
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
-
define( 'A8C_ETK_PLUGIN_VERSION', '3.
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 3.30687
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
+
define( 'A8C_ETK_PLUGIN_VERSION', '3.30687' );
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
-
Stable tag: 3.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 3.30687
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|