Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/@sentry/tracing/build/bundle.tracing.min.js
Назад
/*! @sentry/tracing & @sentry/browser 6.2.3 (dbb243c) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,i){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,i)};function i(t,i){function r(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var r,e,o,a,u,s=function(){return(s=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function c(t,n){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)n.indexOf(r[e])<0&&(i[r[e]]=t[r[e]])}return i}function f(t){var n="function"==typeof Symbol&&t[Symbol.iterator],i=0;return n?n.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}function h(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,o=i.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return a}function v(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(h(arguments[n]));return t}function d(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(t,Error)}}function l(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function p(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function m(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return"undefined"!=typeof Event&&E(t,Event)}function w(t){return"undefined"!=typeof Element&&E(t,Element)}function T(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function E(t,n){try{return t instanceof n}catch(t){return!1}}function S(t){try{for(var n=t,i=[],r=0,e=0,o=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=x(n))||r>1&&e+i.length*o+a.length>=80);)i.push(a),e+=a.length,n=n.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function x(t){var n,i,r,e,o,a=t,u=[];if(!a||!a.tagName)return"";if(u.push(a.tagName.toLowerCase()),a.id&&u.push("#"+a.id),(n=a.className)&&m(n))for(i=n.split(/\s+/),o=0;o<i.length;o++)u.push("."+i[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)r=s[o],(e=a.getAttribute(r))&&u.push("["+r+'="'+e+'"]');return u.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(r||(r={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(e||(e={})),(o=t.Severity||(t.Severity={})).Fatal="fatal",o.Error="error",o.Warning="warning",o.Log="log",o.Info="info",o.Debug="debug",o.Critical="critical",function(t){t.fromString=function(n){switch(n){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;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(a=t.Status||(t.Status={})).Unknown="unknown",a.Skipped="skipped",a.Success="success",a.RateLimit="rate_limit",a.Invalid="invalid",a.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(u||(u={}));var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i]);return t});var k=function(t){function n(n){var i=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=i.prototype.constructor.name,_(r,i.prototype),r}return i(n,t),n}(Error),j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,O=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,i=n.host,r=n.path,e=n.pass,o=n.port,a=n.projectId;return n.protocol+"://"+n.publicKey+(t&&e?":"+e:"")+"@"+i+(o?":"+o:"")+"/"+(r?r+"/":r)+a},t.prototype.t=function(t){var n=j.exec(t);if(!n)throw new k("Invalid Dsn");var i=h(n.slice(1),6),r=i[0],e=i[1],o=i[2],a=void 0===o?"":o,u=i[3],s=i[4],c=void 0===s?"":s,f="",v=i[5],d=v.split("/");if(d.length>1&&(f=d.slice(0,-1).join("/"),v=d.pop()),v){var l=v.match(/^\d+/);l&&(v=l[0])}this.i({host:u,pass:a,path:f,projectId:v,port:c,protocol:r,publicKey:e})},t.prototype.i=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.o=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach(function(n){if(!t[n])throw new k("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new k("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new k("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new k("Invalid Dsn: Invalid port "+this.port)},t}();function D(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function I(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function N(t,n){if(!Array.isArray(t))return"";for(var i=[],r=0;r<t.length;r++){var e=t[r];try{i.push(String(e))}catch(t){i.push("[value cannot be serialized]")}}return i.join(n)}function R(t,n){return!!m(t)&&(i=n,"[object RegExp]"===Object.prototype.toString.call(i)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n));var i}var C={};function M(){return D()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:C}function A(){var t=M(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var i=new Uint16Array(8);n.getRandomValues(i),i[3]=4095&i[3]|16384,i[4]=16383&i[4]|32768;var r=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return r(i[0])+r(i[1])+r(i[2])+r(i[3])+r(i[4])+r(i[5])+r(i[6])+r(i[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function L(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var i=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+i+r}}function q(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function F(t){var n=M();if(!("console"in n))return t();var i=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&i[t].__sentry_original__&&(r[t]=i[t],i[t]=i[t].__sentry_original__)});var e=t();return Object.keys(r).forEach(function(t){i[t]=r[t]}),e}function U(t,n,i){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||n||"",t.exception.values[0].type=t.exception.values[0].type||i||"Error"}function P(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(i){t.exception.values[0].mechanism[i]=n[i]})}catch(t){}}var H=6e4;var B=M(),J="Sentry Logger ",X=function(){function t(){this.u=!1}return t.prototype.disable=function(){this.u=!1},t.prototype.enable=function(){this.u=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&F(function(){B.console.log(J+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&F(function(){B.console.warn(J+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&F(function(){B.console.error(J+"[Error]: "+t.join(" "))})},t}();B.__SENTRY__=B.__SENTRY__||{};var G=B.__SENTRY__.logger||(B.__SENTRY__.logger=new X),W=function(){function t(){this.s="function"==typeof WeakSet,this.h=this.s?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.s)return!!this.h.has(t)||(this.h.add(t),!1);for(var n=0;n<this.h.length;n++){if(this.h[n]===t)return!0}return this.h.push(t),!1},t.prototype.unmemoize=function(t){if(this.s)this.h.delete(t);else for(var n=0;n<this.h.length;n++)if(this.h[n]===t){this.h.splice(n,1);break}},t}(),$="<anonymous>";function z(t){try{return t&&"function"==typeof t&&t.name||$}catch(t){return $}}function K(t,n,i){if(n in t){var r=t[n],e=i(r);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[n]=e}}function V(t){if(d(t)){var n=t,i={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);return i}if(b(t)){var e=t,o={};o.type=e.type;try{o.target=w(e.target)?S(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=w(e.currentTarget)?S(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e);return o}return t}function Y(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function Q(t,n,i){void 0===n&&(n=3),void 0===i&&(i=102400);var r=nt(t,n);return Y(r)>i?Q(t,n-1,i):r}function Z(t,n){return"domain"===n&&t&&"object"==typeof t&&t.v?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":g(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+z(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var i}function tt(t,n,i,r){if(void 0===i&&(i=1/0),void 0===r&&(r=new W),0===i)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var i=Z(t);return y(i)?i:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=Z(n,t);if(y(e))return e;var o=V(n),a=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=tt(u,o[u],i-1,r));return r.unmemoize(n),a}function nt(t,n){try{return JSON.parse(JSON.stringify(t,function(t,i){return tt(t,i,n)}))}catch(t){return"**non-serializable**"}}function it(t,n){void 0===n&&(n=40);var i=Object.keys(V(t));if(i.sort(),!i.length)return"[object has no keys]";if(i[0].length>=n)return I(i[0],n);for(var r=i.length;r>0;r--){var e=i.slice(0,r).join(", ");if(!(e.length>n))return r===i.length?e:I(e,n)}return""}function rt(t){var n,i;if(g(t)){var r=t,e={};try{for(var o=f(Object.keys(r)),a=o.next();!a.done;a=o.next()){var u=a.value;void 0!==r[u]&&(e[u]=rt(r[u]))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(rt):t}function et(){if(!("fetch"in M()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function ot(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function at(){if(!et())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ut,st=M(),ct={},ft={};function ht(t){if(!ft[t])switch(ft[t]=!0,t){case"console":!function(){if(!("console"in st))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in st.console&&K(st.console,t,function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];dt("console",{args:i,level:t}),n&&Function.prototype.apply.call(n,st.console,i)}})})}();break;case"dom":!function(){if(!("document"in st))return;var t=dt.bind(null,"dom"),n=bt(t,!0);st.document.addEventListener("click",n,!1),st.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(function(n){var i=st[n]&&st[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(K(i,"addEventListener",function(n){return function(i,r,e){if("click"===i||"keypress"==i)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[i]=o[i]||{refCount:0};if(!a.handler){var u=bt(t);a.handler=u,n.call(this,i,u,e)}a.refCount+=1}catch(t){}return n.call(this,i,r,e)}}),K(i,"removeEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,i,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in st))return;var t=[],n=[],i=XMLHttpRequest.prototype;K(i,"open",function(i){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o=this,a=r[1];o.__sentry_xhr__={method:m(r[0])?r[0].toUpperCase():r[0],url:r[1]},m(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var u=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var i=t.indexOf(o);if(-1!==i){t.splice(i);var e=n.splice(i)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}dt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?K(o,"onreadystatechange",function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return u(),t.apply(o,n)}}):o.addEventListener("readystatechange",u),i.apply(o,r)}}),K(i,"send",function(i){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return t.push(this),n.push(r),dt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),i.apply(this,r)}})}();break;case"fetch":!function(){if(!function(){if(!et())return!1;var t=M();if(ot(t.fetch))return!0;var n=!1,i=t.document;if(i&&"function"==typeof i.createElement)try{var r=i.createElement("iframe");r.hidden=!0,i.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(n=ot(r.contentWindow.fetch)),i.head.removeChild(r)}catch(t){G.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n}())return;K(st,"fetch",function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={args:n,fetchData:{method:lt(n),url:pt(n)},startTimestamp:Date.now()};return dt("fetch",s({},r)),t.apply(st,n).then(function(t){return dt("fetch",s(s({},r),{endTimestamp:Date.now(),response:t})),t},function(t){throw dt("fetch",s(s({},r),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(t=M(),n=t.chrome,i=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState,i||!r)return;var t,n,i,r;var e=st.onpopstate;function o(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=n.length>2?n[2]:void 0;if(r){var e=ut,o=String(r);ut=o,dt("history",{from:e,to:o})}return t.apply(this,n)}}st.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=st.location.href,r=ut;if(ut=i,dt("history",{from:r,to:i}),e)return e.apply(this,t)},K(st.history,"pushState",o),K(st.history,"replaceState",o)}();break;case"error":wt=st.onerror,st.onerror=function(t,n,i,r,e){return dt("error",{column:r,error:e,line:i,msg:t,url:n}),!!wt&&wt.apply(this,arguments)};break;case"unhandledrejection":Et=st.onunhandledrejection,st.onunhandledrejection=function(t){return dt("unhandledrejection",t),!Et||Et.apply(this,arguments)};break;default:G.warn("unknown instrumentation type:",t)}}function vt(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(ct[t.type]=ct[t.type]||[],ct[t.type].push(t.callback),ht(t.type))}function dt(t,n){var i,r;if(t&&ct[t])try{for(var e=f(ct[t]||[]),o=e.next();!o.done;o=e.next()){var a=o.value;try{a(n)}catch(n){G.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+z(a)+"\nError: "+n)}}}catch(t){i={error:t}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}}function lt(t){return void 0===t&&(t=[]),"Request"in st&&E(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function pt(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in st&&E(t[0],Request)?t[0].url:String(t[0])}var mt,yt,gt=1e3;function bt(t,n){return void 0===n&&(n=!1),function(i){if(i&&yt!==i&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(i)){var r="keypress"===i.type?"input":i.type;void 0===mt?(t({event:i,name:r,global:n}),yt=i):function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(yt,i)&&(t({event:i,name:r,global:n}),yt=i),clearTimeout(mt),mt=st.setTimeout(function(){mt=void 0},gt)}}}var wt=null;var Tt,Et=null;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(Tt||(Tt={}));var St=function(){function t(t){var n=this;this.l=Tt.PENDING,this.p=[],this.m=function(t){n.g(Tt.RESOLVED,t)},this.T=function(t){n.g(Tt.REJECTED,t)},this.g=function(t,i){n.l===Tt.PENDING&&(T(i)?i.then(n.m,n.T):(n.l=t,n.S=i,n._()))},this.k=function(t){n.p=n.p.concat(t),n._()},this._=function(){if(n.l!==Tt.PENDING){var t=n.p.slice();n.p=[],t.forEach(function(t){t.done||(n.l===Tt.RESOLVED&&t.onfulfilled&&t.onfulfilled(n.S),n.l===Tt.REJECTED&&t.onrejected&&t.onrejected(n.S),t.done=!0)})}};try{t(this.m,this.T)}catch(t){this.T(t)}}return t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,i){i(n)})},t.all=function(n){return new t(function(i,r){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach(function(n,a){t.resolve(n).then(function(t){o[a]=t,0===(e-=1)&&i(o)}).then(null,r)})}else i([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,i){var r=this;return new t(function(t,e){r.k({done:!1,onfulfilled:function(i){if(n)try{return void t(n(i))}catch(t){return void e(t)}else t(i)},onrejected:function(n){if(i)try{return void t(i(n))}catch(t){return void e(t)}else e(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var i=this;return new t(function(t,r){var e,o;return i.then(function(t){o=!1,e=t,n&&n()},function(t){o=!0,e=t,n&&n()}).then(function(){o?r(e):t(e)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),xt=function(){function t(t){this.j=t,this.O=[]}return t.prototype.isReady=function(){return void 0===this.j||this.length()<this.j},t.prototype.add=function(t){var n=this;return this.isReady()?(-1===this.O.indexOf(t)&&this.O.push(t),t.then(function(){return n.remove(t)}).then(null,function(){return n.remove(t).then(null,function(){})}),t):St.reject(new k("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this.O.splice(this.O.indexOf(t),1)[0]},t.prototype.length=function(){return this.O.length},t.prototype.drain=function(t){var n=this;return new St(function(i){var r=setTimeout(function(){t&&t>0&&i(!1)},t);St.all(n.O).then(function(){clearTimeout(r),i(!0)}).then(null,function(){i(!0)})})},t}(),_t={nowSeconds:function(){return Date.now()/1e3}};var kt=D()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=M().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),jt=void 0===kt?_t:{nowSeconds:function(){return(kt.timeOrigin+kt.now())/1e3}},Ot=_t.nowSeconds.bind(_t),Dt=jt.nowSeconds.bind(jt),It=function(){var t=M().performance;if(t)return t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),Nt=function(){function t(){this.D=!1,this.I=[],this.N=[],this.R=[],this.C={},this.M={},this.A={},this.L={}}return t.clone=function(n){var i=new t;return n&&(i.R=v(n.R),i.M=s({},n.M),i.A=s({},n.A),i.L=s({},n.L),i.C=n.C,i.q=n.q,i.F=n.F,i.U=n.U,i.P=n.P,i.H=n.H,i.N=v(n.N)),i},t.prototype.addScopeListener=function(t){this.I.push(t)},t.prototype.addEventProcessor=function(t){return this.N.push(t),this},t.prototype.setUser=function(t){return this.C=t||{},this.U&&this.U.update({user:t}),this.B(),this},t.prototype.getUser=function(){return this.C},t.prototype.setTags=function(t){return this.M=s(s({},this.M),t),this.B(),this},t.prototype.setTag=function(t,n){var i;return this.M=s(s({},this.M),((i={})[t]=n,i)),this.B(),this},t.prototype.setExtras=function(t){return this.A=s(s({},this.A),t),this.B(),this},t.prototype.setExtra=function(t,n){var i;return this.A=s(s({},this.A),((i={})[t]=n,i)),this.B(),this},t.prototype.setFingerprint=function(t){return this.H=t,this.B(),this},t.prototype.setLevel=function(t){return this.q=t,this.B(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.B(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var i;return null===n?delete this.L[t]:this.L=s(s({},this.L),((i={})[t]=n,i)),this.B(),this},t.prototype.setSpan=function(t){return this.F=t,this.B(),this},t.prototype.getSpan=function(){return this.F},t.prototype.getTransaction=function(){var t,n,i,r,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(r=null===(i=e)||void 0===i?void 0:i.spanRecorder)||void 0===r?void 0:r.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.U=t:delete this.U,this.B(),this},t.prototype.getSession=function(){return this.U},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var i=n(this);return i instanceof t?i:this}return n instanceof t?(this.M=s(s({},this.M),n.M),this.A=s(s({},this.A),n.A),this.L=s(s({},this.L),n.L),n.C&&Object.keys(n.C).length&&(this.C=n.C),n.q&&(this.q=n.q),n.H&&(this.H=n.H)):g(n)&&(n=n,this.M=s(s({},this.M),n.tags),this.A=s(s({},this.A),n.extra),this.L=s(s({},this.L),n.contexts),n.user&&(this.C=n.user),n.level&&(this.q=n.level),n.fingerprint&&(this.H=n.fingerprint)),this},t.prototype.clear=function(){return this.R=[],this.M={},this.A={},this.C={},this.L={},this.q=void 0,this.P=void 0,this.H=void 0,this.F=void 0,this.U=void 0,this.B(),this},t.prototype.addBreadcrumb=function(t,n){var i=s({timestamp:Ot()},t);return this.R=void 0!==n&&n>=0?v(this.R,[i]).slice(-n):v(this.R,[i]),this.B(),this},t.prototype.clearBreadcrumbs=function(){return this.R=[],this.B(),this},t.prototype.applyToEvent=function(t,n){var i;if(this.A&&Object.keys(this.A).length&&(t.extra=s(s({},this.A),t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=s(s({},this.M),t.tags)),this.C&&Object.keys(this.C).length&&(t.user=s(s({},this.C),t.user)),this.L&&Object.keys(this.L).length&&(t.contexts=s(s({},this.L),t.contexts)),this.q&&(t.level=this.q),this.P&&(t.transaction=this.P),this.F){t.contexts=s({trace:this.F.getTraceContext()},t.contexts);var r=null===(i=this.F.transaction)||void 0===i?void 0:i.name;r&&(t.tags=s({transaction:r},t.tags))}return this.J(t),t.breadcrumbs=v(t.breadcrumbs||[],this.R),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.X(v(Rt(),this.N),t,n)},t.prototype.X=function(t,n,i,r){var e=this;return void 0===r&&(r=0),new St(function(o,a){var u=t[r];if(null===n||"function"!=typeof u)o(n);else{var c=u(s({},n),i);T(c)?c.then(function(n){return e.X(t,n,i,r+1).then(o)}).then(null,a):e.X(t,c,i,r+1).then(o).then(null,a)}})},t.prototype.B=function(){var t=this;this.D||(this.D=!0,this.I.forEach(function(n){n(t)}),this.D=!1)},t.prototype.J=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.H&&(t.fingerprint=t.fingerprint.concat(this.H)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function Rt(){var t=M();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Ct(t){Rt().push(t)}var Mt=function(){function t(t){this.errors=0,this.sid=A(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=e.Ok,this.init=!0,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:A()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),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===e.Ok?this.update({status:e.Exited}):this.update()},t.prototype.toJSON=function(){return rt({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(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:rt({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),At=3,Lt=function(){function t(t,n,i){void 0===n&&(n=new Nt),void 0===i&&(i=At),this.G=i,this.W=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.G<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=Nt.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 n=this.pushScope();try{t(n)}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.W},t.prototype.getStackTop=function(){return this.W[this.W.length-1]},t.prototype.captureException=function(t,n){var i=this.$=A(),r=n;if(!n){var e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.K("captureException",t,s(s({},r),{event_id:i})),i},t.prototype.captureMessage=function(t,n,i){var r=this.$=A(),e=i;if(!i){var o=void 0;try{throw new Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this.K("captureMessage",t,n,s(s({},e),{event_id:r})),r},t.prototype.captureEvent=function(t,n){var i=this.$=A();return this.K("captureEvent",t,s(s({},n),{event_id:i})),i},t.prototype.lastEventId=function(){return this.$},t.prototype.addBreadcrumb=function(t,n){var i=this.getStackTop(),r=i.scope,e=i.client;if(r&&e){var o=e.getOptions&&e.getOptions()||{},a=o.beforeBreadcrumb,u=void 0===a?null:a,c=o.maxBreadcrumbs,f=void 0===c?100:c;if(!(f<=0)){var h=Ot(),v=s({timestamp:h},t),d=u?F(function(){return u(v,n)}):v;null!==d&&r.addBreadcrumb(d,Math.min(f,100))}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var i=this.getScope();i&&i.setTag(t,n)},t.prototype.setExtra=function(t,n){var i=this.getScope();i&&i.setExtra(t,n)},t.prototype.setContext=function(t,n){var i=this.getScope();i&&i.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),i=n.scope,r=n.client;i&&r&&t(i)},t.prototype.run=function(t){var n=Ft(this);try{t(this)}finally{Ft(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return G.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.V("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.V("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.V("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this.Y()},t.prototype.endSession=function(){var t,n,i,r,e;null===(i=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===i||i.close(),this.Y(),null===(e=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),i=n.scope,r=n.client,o=r&&r.getOptions()||{},a=o.release,u=o.environment,c=new Mt(s(s({release:a,environment:u},i&&{user:i.getUser()}),t));if(i){var f=i.getSession&&i.getSession();f&&f.status===e.Ok&&f.update({status:e.Exited}),this.endSession(),i.setSession(c)}return c},t.prototype.Y=function(){var t=this.getStackTop(),n=t.scope,i=t.client;if(n){var r=n.getSession&&n.getSession();r&&i&&i.captureSession&&i.captureSession(r)}},t.prototype.K=function(t){for(var n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var e=this.getStackTop(),o=e.scope,a=e.client;a&&a[t]&&(n=a)[t].apply(n,v(i,[o]))},t.prototype.V=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=qt().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,n);G.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function qt(){var t=M();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Ft(t){var n=qt(),i=Ht(n);return Bt(n,t),i}function Ut(){var t=qt();return Pt(t)&&!Ht(t).isOlderThan(At)||Bt(t,new Lt),D()?function(t){var n,i,r;try{var e=null===(r=null===(i=null===(n=qt().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===i?void 0:i.domain)||void 0===r?void 0:r.active;if(!e)return Ht(t);if(!Pt(e)||Ht(e).isOlderThan(At)){var o=Ht(t).getStackTop();Bt(e,new Lt(o.client,Nt.clone(o.scope)))}return Ht(e)}catch(n){return Ht(t)}}(t):Ht(t)}function Pt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Ht(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Lt,t.__SENTRY__.hub)}function Bt(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Jt(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=Ut();if(r&&r[t])return r[t].apply(r,v(n));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t,n){var i;try{throw new Error("Sentry syntheticException")}catch(t){i=t}return Jt("captureException",t,{captureContext:n,originalException:t,syntheticException:i})}function Xt(t){Jt("withScope",t)}var Gt=function(){function t(t,n){void 0===n&&(n={}),this.dsn=t,this.Z=new O(t),this.metadata=n}return t.prototype.getDsn=function(){return this.Z},t.prototype.getBaseApiEndpoint=function(){var t=this.Z,n=t.protocol?t.protocol+":":"",i=t.port?":"+t.port:"";return n+"//"+t.host+i+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this.tt("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this.nt()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.it()+"?"+this.nt()},t.prototype.getStoreEndpointPath=function(){var t=this.Z;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var i=this.Z,r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+n),r.push("sentry_key="+i.publicKey),i.pass&&r.push("sentry_secret="+i.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.Z,i=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var e in r.push("dsn="+n.toString()),t)if("dsn"!==e)if("user"===e){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(e)+"="+encodeURIComponent(t[e]));return r.length?i+"?"+r.join("&"):i},t.prototype.it=function(){return this.tt("envelope")},t.prototype.tt=function(t){return""+this.getBaseApiEndpoint()+this.Z.projectId+"/"+t+"/"},t.prototype.nt=function(){var t,n={sentry_key:this.Z.publicKey,sentry_version:"7"};return t=n,Object.keys(t).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])}).join("&")},t}(),Wt=[];function $t(t){var n={};return function(t){var n=t.defaultIntegrations&&v(t.defaultIntegrations)||[],i=t.integrations,r=[];if(Array.isArray(i)){var e=i.map(function(t){return t.name}),o=[];n.forEach(function(t){-1===e.indexOf(t.name)&&-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))}),i.forEach(function(t){-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))})}else"function"==typeof i?(r=i(n),r=Array.isArray(r)?r:[r]):r=v(n);var a=r.map(function(t){return t.name});return-1!==a.indexOf("Debug")&&r.push.apply(r,v(r.splice(a.indexOf("Debug"),1))),r}(t).forEach(function(t){n[t.name]=t,function(t){-1===Wt.indexOf(t.name)&&(t.setupOnce(Ct,Ut),Wt.push(t.name),G.log("Integration installed: "+t.name))}(t)}),n}var zt=function(){function t(t,n){this.rt={},this.et=0,this.ot=new t(n),this.at=n,n.dsn&&(this.ut=new O(n.dsn))}return t.prototype.captureException=function(t,n,i){var r=this,e=n&&n.event_id;return this.st(this.ct().eventFromException(t,n).then(function(t){return r.ft(t,n,i)}).then(function(t){e=t})),e},t.prototype.captureMessage=function(t,n,i,r){var e=this,o=i&&i.event_id,a=y(t)?this.ct().eventFromMessage(String(t),n,i):this.ct().eventFromException(t,i);return this.st(a.then(function(t){return e.ft(t,i,r)}).then(function(t){o=t})),o},t.prototype.captureEvent=function(t,n,i){var r=n&&n.event_id;return this.st(this.ft(t,n,i).then(function(t){r=t})),r},t.prototype.captureSession=function(t){t.release?(this.ht(t),t.update({init:!1})):G.warn("Discarded session because of missing release")},t.prototype.getDsn=function(){return this.ut},t.prototype.getOptions=function(){return this.at},t.prototype.flush=function(t){var n=this;return this.vt(t).then(function(i){return n.ct().getTransport().close(t).then(function(t){return i&&t})})},t.prototype.close=function(t){var n=this;return this.flush(t).then(function(t){return n.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){this.dt()&&(this.rt=$t(this.at))},t.prototype.getIntegration=function(t){try{return this.rt[t.id]||null}catch(n){return G.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.lt=function(t,n){var i,r,o,a=!1,u=!1,c=n.exception&&n.exception.values;if(c){u=!0;try{for(var h=f(c),v=h.next();!v.done;v=h.next()){var d=v.value.mechanism;if(d&&!1===d.handled){a=!0;break}}}catch(t){i={error:t}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}var l=n.user;if(!t.userAgent){var p=n.request?n.request.headers:{};for(var m in p)if("user-agent"===m.toLowerCase()){o=p[m];break}}t.update(s(s({},a&&{status:e.Crashed}),{user:l,userAgent:o,errors:t.errors+Number(u||a)})),this.captureSession(t)},t.prototype.ht=function(t){this.ct().sendSession(t)},t.prototype.vt=function(t){var n=this;return new St(function(i){var r=0,e=setInterval(function(){0==n.et?(clearInterval(e),i(!0)):(r+=1,t&&r>=t&&(clearInterval(e),i(!1)))},1)})},t.prototype.ct=function(){return this.ot},t.prototype.dt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ut},t.prototype.pt=function(t,n,i){var r=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,a=s(s({},t),{event_id:t.event_id||(i&&i.event_id?i.event_id:A()),timestamp:t.timestamp||Ot()});this.yt(a),this.gt(a);var u=n;i&&i.captureContext&&(u=Nt.clone(u).update(i.captureContext));var c=St.resolve(a);return u&&(c=u.applyToEvent(a,i)),c.then(function(t){return"number"==typeof o&&o>0?r.bt(t,o):t})},t.prototype.bt=function(t,n){if(!t)return null;var i=s(s(s(s(s({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return s(s({},t),t.data&&{data:nt(t.data,n)})})}),t.user&&{user:nt(t.user,n)}),t.contexts&&{contexts:nt(t.contexts,n)}),t.extra&&{extra:nt(t.extra,n)});return t.contexts&&t.contexts.trace&&(i.contexts.trace=t.contexts.trace),i},t.prototype.yt=function(t){var n=this.getOptions(),i=n.environment,r=n.release,e=n.dist,o=n.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?i:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=I(t.message,a));var u=t.exception&&t.exception.values&&t.exception.values[0];u&&u.value&&(u.value=I(u.value,a));var s=t.request;s&&s.url&&(s.url=I(s.url,a))},t.prototype.gt=function(t){var n=t.sdk,i=Object.keys(this.rt);n&&i.length>0&&(n.integrations=i)},t.prototype.wt=function(t){this.ct().sendEvent(t)},t.prototype.ft=function(t,n,i){return this.Tt(t,n,i).then(function(t){return t.event_id},function(t){G.error(t)})},t.prototype.Tt=function(t,n,i){var r=this,e=this.getOptions(),o=e.beforeSend,a=e.sampleRate;if(!this.dt())return St.reject(new k("SDK not enabled, will not send event."));var u="transaction"===t.type;return!u&&"number"==typeof a&&Math.random()>a?St.reject(new k("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this.pt(t,i,n).then(function(t){if(null===t)throw new k("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||u||!o)return t;var i=o(t,n);if(void 0===i)throw new k("`beforeSend` method has to return `null` or a valid event.");return T(i)?i.then(function(t){return t},function(t){throw new k("beforeSend rejected with "+t)}):i}).then(function(t){if(null===t)throw new k("`beforeSend` returned `null`, will not send event.");var n=i&&i.getSession&&i.getSession();return!u&&n&&r.lt(n,t),r.wt(t),t}).then(null,function(t){if(t instanceof k)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.st=function(t){var n=this;this.et+=1,t.then(function(t){return n.et-=1,t},function(t){return n.et-=1,t})},t}(),Kt=function(){function n(){}return n.prototype.sendEvent=function(n){return St.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return St.resolve(!0)},n}(),Vt=function(){function t(t){this.at=t,this.at.dsn||G.warn("No DSN provided, backend will not do anything."),this.Et=this.St()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,i){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.Et.sendEvent(t).then(null,function(t){G.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.Et.sendSession?this.Et.sendSession(t).then(null,function(t){G.error("Error while sending session: "+t)}):G.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.Et},t.prototype.St=function(){return new Kt},t}();function Yt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Qt(t,n){return n?(t.sdk=t.sdk||{name:n.name,version:n.version},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=v(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=v(t.sdk.packages||[],n.packages||[]),t):t}function Zt(t,n){var i=Yt(n);return{body:JSON.stringify(s({sent_at:(new Date).toISOString()},i&&{sdk:i}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function tn(t,n){var i=Yt(n),r=t.type||"event",e="transaction"===r,o=t.debug_meta||{},a=o.transactionSampling,u=c(o,["transactionSampling"]),f=a||{},h=f.method,v=f.rate;0===Object.keys(u).length?delete t.debug_meta:t.debug_meta=u;var d={body:JSON.stringify(i?Qt(t,n.metadata.sdk):t),type:r,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(s({event_id:t.event_id,sent_at:(new Date).toISOString()},i&&{sdk:i}))+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:h,rate:v}]})+"\n"+d.body;d.body=l}return d}var nn,rn="6.2.3",en=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){nn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this.__sentry_original__||this;return nn.apply(i,t)}},t.id="FunctionToString",t}(),on=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],an=function(){function t(n){void 0===n&&(n={}),this.at=n,this.name=t.id}return t.prototype.setupOnce=function(){Ct(function(n){var i=Ut();if(!i)return n;var r=i.getIntegration(t);if(r){var e=i.getClient(),o=e?e.getOptions():{},a=r.xt(o);if(r._t(n,a))return null}return n})},t.prototype._t=function(t,n){return this.kt(t,n)?(G.warn("Event dropped due to being internal Sentry Error.\nEvent: "+q(t)),!0):this.jt(t,n)?(G.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+q(t)),!0):this.Ot(t,n)?(G.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+q(t)+".\nUrl: "+this.Dt(t)),!0):!this.It(t,n)&&(G.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+q(t)+".\nUrl: "+this.Dt(t)),!0)},t.prototype.kt=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype.jt=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.Nt(t).some(function(t){return n.ignoreErrors.some(function(n){return R(t,n)})})},t.prototype.Ot=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var i=this.Dt(t);return!!i&&n.denyUrls.some(function(t){return R(i,t)})},t.prototype.It=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var i=this.Dt(t);return!i||n.allowUrls.some(function(t){return R(i,t)})},t.prototype.xt=function(t){return void 0===t&&(t={}),{allowUrls:v(this.at.whitelistUrls||[],this.at.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:v(this.at.blacklistUrls||[],this.at.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:v(this.at.ignoreErrors||[],t.ignoreErrors||[],on),ignoreInternal:void 0===this.at.ignoreInternal||this.at.ignoreInternal}},t.prototype.Nt=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},i=n.type,r=void 0===i?"":i,e=n.value,o=void 0===e?"":e;return[""+o,r+": "+o]}catch(n){return G.error("Cannot extract message for event "+q(t)),[]}return[]},t.prototype.Dt=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return n&&n[n.length-1].filename||null}if(t.exception){var i=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(n){return G.error("Cannot extract url for event "+q(t)),null}},t.id="InboundFilters",t}(),un=Object.freeze({__proto__:null,FunctionToString:en,InboundFilters:an}),sn="?",cn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dn=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=/Minified React error #\d+;/i;function pn(t){var n=null,i=0;t&&("number"==typeof t.framesToPop?i=t.framesToPop:ln.test(t.message)&&(i=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,i=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=i.split("\n"),a=[],u=0;u<o.length;u+=2){var s=null;(n=r.exec(o[u]))?s={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=e.exec(o[u]))&&(s={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),s&&(!s.func&&s.line&&(s.func=sn),a.push(s))}if(!a.length)return null;return{message:yn(t),name:t.name,stack:a}}(t))return mn(n,i)}catch(t){}try{if(n=function(t){if(!t||!t.stack)return null;for(var n,i,r,e=[],o=t.stack.split("\n"),a=0;a<o.length;++a){if(i=cn.exec(o[a])){var u=i[2]&&0===i[2].indexOf("native");i[2]&&0===i[2].indexOf("eval")&&(n=dn.exec(i[2]))&&(i[2]=n[1],i[3]=n[2],i[4]=n[3]),r={url:i[2]&&0===i[2].indexOf("address at ")?i[2].substr("address at ".length):i[2],func:i[1]||sn,args:u?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=hn.exec(o[a]))r={url:i[2],func:i[1]||sn,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=fn.exec(o[a])))continue;i[3]&&i[3].indexOf(" > eval")>-1&&(n=vn.exec(i[3]))?(i[1]=i[1]||"eval",i[3]=n[1],i[4]=n[2],i[5]=""):0!==a||i[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),r={url:i[3],func:i[1]||sn,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!r.func&&r.line&&(r.func=sn),e.push(r)}if(!e.length)return null;return{message:yn(t),name:t.name,stack:e}}(t))return mn(n,i)}catch(t){}return{message:yn(t),name:t&&t.name,stack:[],failed:!0}}function mn(t,n){try{return s(s({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function yn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var gn=50;function bn(t){var n=Tn(t.stack),i={type:t.name,value:t.message};return n&&n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function wn(t){return{exception:{values:[bn(t)]}}}function Tn(t){if(!t||!t.length)return[];var n=t,i=n[0].func||"",r=n[n.length-1].func||"";return-1===i.indexOf("captureMessage")&&-1===i.indexOf("captureException")||(n=n.slice(1)),-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,gn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function En(t,n,i){var r,e;if(void 0===i&&(i={}),l(t)&&t.error)return r=wn(pn(t=t.error));if(p(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t,a=o.name||(p(o)?"DOMError":"DOMException"),u=o.message?a+": "+o.message:a;return U(r=Sn(u,n,i),u),"code"in o&&(r.tags=s(s({},r.tags),{"DOMException.code":""+o.code})),r}return d(t)?r=wn(pn(t)):g(t)||b(t)?(P(r=function(t,n,i){var r={exception:{values:[{type:b(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:"Non-Error "+(i?"promise rejection":"exception")+" captured with keys: "+it(t)}]},extra:{__serialized__:Q(t)}};if(n){var e=Tn(pn(n).stack);r.stacktrace={frames:e}}return r}(t,n,i.rejection),{synthetic:!0}),r):(U(r=Sn(t,n,i),""+t,void 0),P(r,{synthetic:!0}),r)}function Sn(t,n,i){void 0===i&&(i={});var r={message:t};if(i.attachStacktrace&&n){var e=Tn(pn(n).stack);r.stacktrace={frames:e}}return r}var xn=function(){function n(t){this.options=t,this.O=new xt(30),this.Rt={},this.Ct=new Gt(t.dsn,t.Mt),this.url=this.Ct.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new k("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.O.drain(t)},n.prototype.At=function(n){var i=n.requestType,r=n.response,e=n.headers,o=n.resolve,a=n.reject,u=t.Status.fromHttpCode(r.status);this.Lt(e)&&G.warn("Too many requests, backing off until: "+this.qt(i)),u!==t.Status.Success?a(r):o({status:u})},n.prototype.qt=function(t){return this.Rt[t]||this.Rt.all},n.prototype.Ft=function(t){return this.qt(t)>new Date(Date.now())},n.prototype.Lt=function(t){var n,i,r,e,o=Date.now(),a=t["x-sentry-rate-limits"],u=t["retry-after"];if(a){try{for(var s=f(a.trim().split(",")),c=s.next();!c.done;c=s.next()){var h=c.value.split(":",2),v=parseInt(h[0],10),d=1e3*(isNaN(v)?60:v);try{for(var l=(r=void 0,f(h[1].split(";"))),p=l.next();!p.done;p=l.next()){var m=p.value;this.Rt[m||"all"]=new Date(o+d)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(e=l.return)&&e.call(l)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return!0}return!!u&&(this.Rt.all=new Date(o+function(t,n){if(!n)return H;var i=parseInt(""+n,10);if(!isNaN(i))return 1e3*i;var r=Date.parse(""+n);return isNaN(r)?H:r-t}(o,u)),!0)},n}();var _n=function(t){function n(n,i){void 0===i&&(i=function(){var t,n,i=M(),r=i.document;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var e=r.createElement("iframe");if(e.hidden=!0,r.head.appendChild(e),null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)return e.contentWindow.fetch.bind(i);r.head.removeChild(e)}catch(t){G.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i.fetch.bind(i)}());var r=t.call(this,n)||this;return r.Ut=i,r}return i(n,t),n.prototype.sendEvent=function(t){return this.Pt(tn(t,this.Ct),t)},n.prototype.sendSession=function(t){return this.Pt(Zt(t,this.Ct),t)},n.prototype.Pt=function(t,n){var i=this;if(this.Ft(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:at()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this.O.add(new St(function(n,e){i.Ut(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")};i.At({requestType:t.type,response:r,headers:o,resolve:n,reject:e})}).catch(e)}))},n}(xn),kn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.sendEvent=function(t){return this.Pt(tn(t,this.Ct),t)},n.prototype.sendSession=function(t){return this.Pt(Zt(t,this.Ct),t)},n.prototype.Pt=function(t,n){var i=this;return this.Ft(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429}):this.O.add(new St(function(n,r){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};i.At({requestType:t.type,response:e,headers:o,resolve:n,reject:r})}},e.open("POST",t.url),i.options.headers)i.options.headers.hasOwnProperty(o)&&e.setRequestHeader(o,i.options.headers[o]);e.send(t.body)}))},n}(xn),jn=Object.freeze({__proto__:null,BaseTransport:xn,FetchTransport:_n,XHRTransport:kn}),On=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.eventFromException=function(n,i){return function(n,i,r){var e=En(i,r&&r.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return P(e,{handled:!0,type:"generic"}),e.level=t.Severity.Error,r&&r.event_id&&(e.event_id=r.event_id),St.resolve(e)}(this.at,n,i)},r.prototype.eventFromMessage=function(n,i,r){return void 0===i&&(i=t.Severity.Info),function(n,i,r,e){void 0===r&&(r=t.Severity.Info);var o=Sn(i,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=r,e&&e.event_id&&(o.event_id=e.event_id),St.resolve(o)}(this.at,n,i,r)},r.prototype.St=function(){if(!this.at.dsn)return n.prototype.St.call(this);var t=s(s({},this.at.transportOptions),{dsn:this.at.dsn,Mt:this.at.Mt});return this.at.transport?new this.at.transport(t):et()?new _n(t):new kn(t)},r}(Vt),Dn=0;function In(){return Dn>0}function Nn(t,n,i){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var r=Array.prototype.slice.call(arguments);try{i&&"function"==typeof i&&i.apply(this,arguments);var e=r.map(function(t){return Nn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Dn+=1,setTimeout(function(){Dn-=1}),Xt(function(i){i.addEventProcessor(function(t){var i=s({},t);return n.mechanism&&(U(i,void 0,void 0),P(i,n.mechanism)),i.extra=s(s({},i.extra),{arguments:r}),i}),captureException(t)}),t}};try{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(sentryWrapped[r]=t[r])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function Rn(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new Gt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else G.error("Missing dsn option in showReportDialog call");else G.error("Missing eventId option in showReportDialog call")}var Cn=function(){function n(t){this.name=n.id,this.Ht=!1,this.Bt=!1,this.at=s({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.at.onerror&&(G.log("Global Handler attached: onerror"),this.Jt()),this.at.onunhandledrejection&&(G.log("Global Handler attached: onunhandledrejection"),this.Xt())},n.prototype.Jt=function(){var t=this;this.Ht||(vt({callback:function(i){var r=i.error,e=Ut(),o=e.getIntegration(n),a=r&&!0===r.__sentry_own_request__;if(o&&!In()&&!a){var u=e.getClient(),s=y(r)?t.Gt(i.msg,i.url,i.line,i.column):t.Wt(En(r,void 0,{attachStacktrace:u&&u.getOptions().attachStacktrace,rejection:!1}),i.url,i.line,i.column);P(s,{handled:!1,type:"onerror"}),e.captureEvent(s,{originalException:r})}},type:"error"}),this.Ht=!0)},n.prototype.Xt=function(){var i=this;this.Bt||(vt({callback:function(r){var e=r;try{"reason"in r?e=r.reason:"detail"in r&&"reason"in r.detail&&(e=r.detail.reason)}catch(t){}var o=Ut(),a=o.getIntegration(n),u=e&&!0===e.__sentry_own_request__;if(!a||In()||u)return!0;var s=o.getClient(),c=y(e)?i.$t(e):En(e,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,P(c,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(c,{originalException:e})},type:"unhandledrejection"}),this.Bt=!0)},n.prototype.Gt=function(t,n,i,r){var e,o=l(t)?t.message:t;if(m(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(e=a[1],o=a[2])}var u={exception:{values:[{type:e||"Error",value:o}]}};return this.Wt(u,n,i,r)},n.prototype.$t=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.Wt=function(t,n,i,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 e=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(i,10))?void 0:i,a=m(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:a,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),Mn=["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"],An=function(){function t(n){this.name=t.id,this.at=s({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=M();(this.at.setTimeout&&K(t,"setTimeout",this.zt.bind(this)),this.at.setInterval&&K(t,"setInterval",this.zt.bind(this)),this.at.requestAnimationFrame&&K(t,"requestAnimationFrame",this.Kt.bind(this)),this.at.XMLHttpRequest&&"XMLHttpRequest"in t&&K(XMLHttpRequest.prototype,"send",this.Vt.bind(this)),this.at.eventTarget)&&(Array.isArray(this.at.eventTarget)?this.at.eventTarget:Mn).forEach(this.Yt.bind(this))},t.prototype.zt=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=n[0];return n[0]=Nn(r,{mechanism:{data:{function:z(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype.Kt=function(t){return function(n){return t.call(this,Nn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:z(t)},handled:!0,type:"instrument"}}))}},t.prototype.Yt=function(t){var n=M(),i=n[t]&&n[t].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(K(i,"addEventListener",function(n){return function(i,r,e){try{"function"==typeof r.handleEvent&&(r.handleEvent=Nn(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:z(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,i,Nn(r,{mechanism:{data:{function:"addEventListener",handler:z(r),target:t},handled:!0,type:"instrument"}}),e)}}),K(i,"removeEventListener",function(t){return function(n,i,r){var e,o=i;try{var a=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;a&&t.call(this,n,a,r)}catch(t){}return t.call(this,n,o,r)}}))},t.prototype.Vt=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(t){t in r&&"function"==typeof r[t]&&K(r,t,function(n){var i={mechanism:{data:{function:t,handler:z(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(i.mechanism.data.handler=z(n.__sentry_original__)),Nn(n,i)})}),t.apply(this,n)}},t.id="TryCatch",t}(),Ln=function(){function n(t){this.name=n.id,this.at=s({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return n.prototype.addSentryBreadcrumb=function(t){this.at.sentry&&Ut().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:q(t)},{event:t})},n.prototype.setupOnce=function(){var t=this;this.at.console&&vt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.Qt.apply(t,v(n))},type:"console"}),this.at.dom&&vt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.Zt.apply(t,v(n))},type:"dom"}),this.at.xhr&&vt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.tn.apply(t,v(n))},type:"xhr"}),this.at.fetch&&vt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.nn.apply(t,v(n))},type:"fetch"}),this.at.history&&vt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.in.apply(t,v(n))},type:"history"})},n.prototype.Qt=function(n){var i={category:"console",data:{arguments:n.args,logger:"console"},level:t.Severity.fromString(n.level),message:N(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;i.message="Assertion failed: "+(N(n.args.slice(1)," ")||"console.assert"),i.data.arguments=n.args.slice(1)}Ut().addBreadcrumb(i,{input:n.args,level:n.level})},n.prototype.Zt=function(t){var n;try{n=t.event.target?S(t.event.target):S(t.event)}catch(t){n="<unknown>"}0!==n.length&&Ut().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},n.prototype.tn=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},i=n.method,r=n.url,e=n.status_code,o=n.body;Ut().addBreadcrumb({category:"xhr",data:{method:i,url:r,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.nn=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Ut().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Ut().addBreadcrumb({category:"fetch",data:s(s({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.in=function(t){var n=M(),i=t.from,r=t.to,e=L(n.location.href),o=L(i),a=L(r);o.path||(o=e),e.protocol===a.protocol&&e.host===a.host&&(r=a.relative),e.protocol===o.protocol&&e.host===o.host&&(i=o.relative),Ut().addBreadcrumb({category:"navigation",data:{from:i,to:r}})},n.id="Breadcrumbs",n}(),qn="cause",Fn=5,Un=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.rn=n.key||qn,this.j=n.limit||Fn}return t.prototype.setupOnce=function(){Ct(function(n,i){var r=Ut().getIntegration(t);return r?r.en(n,i):n})},t.prototype.en=function(t,n){if(!(t.exception&&t.exception.values&&n&&E(n.originalException,Error)))return t;var i=this.on(n.originalException,this.rn);return t.exception.values=v(i,t.exception.values),t},t.prototype.on=function(t,n,i){if(void 0===i&&(i=[]),!E(t[n],Error)||i.length+1>=this.j)return i;var r=bn(pn(t[n]));return this.on(t[n],n,v([r],i))},t.id="LinkedErrors",t}(),Pn=M(),Hn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Ct(function(n){var i,r,e;if(Ut().getIntegration(t)){if(!Pn.navigator&&!Pn.location&&!Pn.document)return n;var o=(null===(i=n.request)||void 0===i?void 0:i.url)||(null===(r=Pn.location)||void 0===r?void 0:r.href),a=(Pn.document||{}).referrer,u=(Pn.navigator||{}).userAgent,c=s(s(s({},null===(e=n.request)||void 0===e?void 0:e.headers),a&&{Referer:a}),u&&{"User-Agent":u}),f=s(s({},o&&{url:o}),{headers:c});return s(s({},n),{request:f})}return n})},t.id="UserAgent",t}(),Bn=Object.freeze({__proto__:null,GlobalHandlers:Cn,TryCatch:An,Breadcrumbs:Ln,LinkedErrors:Un,UserAgent:Hn}),Jn=function(t){function n(n){void 0===n&&(n={});return n.Mt=n.Mt||{},n.Mt.sdk=n.Mt.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:rn}],version:rn},t.call(this,On,n)||this}return i(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),M().document&&(this.dt()?Rn(s(s({},t),{dsn:t.dsn||this.getDsn()})):G.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.pt=function(n,i,r){return n.platform=n.platform||"javascript",t.prototype.pt.call(this,n,i,r)},n.prototype.wt=function(n){var i=this.getIntegration(Ln);i&&i.addSentryBreadcrumb(n),t.prototype.wt.call(this,n)},n}(zt),Xn=[new an,new en,new An,new Ln,new Cn,new Un,new Hn];var Gn={},Wn=M();Wn.Sentry&&Wn.Sentry.Integrations&&(Gn=Wn.Sentry.Integrations);var $n,zn=s(s(s({},Gn),un),Bn);!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"}($n||($n={})),function(t){t.fromHttpCode=function(n){if(n<400)return t.Ok;if(n>=400&&n<500)switch(n){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(n>=500&&n<600)switch(n){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}($n||($n={}));var Kn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Vn(t){return"tracesSampleRate"in t||"tracesSampler"in t}function Yn(t){var n,i;return void 0===t&&(t=Ut()),null===(i=null===(n=t)||void 0===n?void 0:n.getScope())||void 0===i?void 0:i.getTransaction()}function Qn(t){return t/1e3}function Zn(){var t=Yn();t&&(G.log("[Tracing] Transaction: "+$n.InternalError+" -> Global error occured"),t.setStatus($n.InternalError))}var ti=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this.an=t}return t.prototype.add=function(t){this.spans.length>this.an?t.spanRecorder=void 0:this.spans.push(t)},t}(),ni=function(){function t(t){if(this.traceId=A(),this.spanId=A().substring(16),this.startTimestamp=Dt(),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(n){var i=new t(s(s({},n),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return i.spanRecorder=this.spanRecorder,i.spanRecorder&&i.spanRecorder.add(i),i.transaction=this.transaction,i},t.prototype.setTag=function(t,n){var i;return this.tags=s(s({},this.tags),((i={})[t]=n,i)),this},t.prototype.setData=function(t,n){var i;return this.data=s(s({},this.data),((i={})[t]=n,i)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var n=$n.fromHttpCode(t);return n!==$n.UnknownError&&this.setStatus(n),this},t.prototype.isSuccess=function(){return this.status===$n.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Dt()},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 rt({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 n,i,r,e,o;return this.data=null!=(n=t.data)?n:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(i=t.spanId)?i:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(e=t.tags)?e:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return rt({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 rt({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}(),ii=function(t){function n(n,i){var r=t.call(this,n)||this;return r.Mt={},r.un={},r.sn=Ut(),E(i,Lt)&&(r.sn=i),r.name=n.name||"",r.cn=n.trimEnd,r.transaction=r,r}return i(n,t),n.prototype.setName=function(t){this.name=t},n.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new ti(t)),this.spanRecorder.add(this)},n.prototype.setMeasurements=function(t){this.un=s({},t)},n.prototype.setMetadata=function(t){this.Mt=s(s({},this.Mt),t)},n.prototype.finish=function(n){var i=this;if(void 0===this.endTimestamp){if(this.name||(G.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,n),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter(function(t){return t!==i&&t.endTimestamp}):[];this.cn&&r.length>0&&(this.endTimestamp=r.reduce(function(t,n){return t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t}).endTimestamp);var e={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.Mt};return Object.keys(this.un).length>0&&(G.log("[Measurements] Adding measurements to transaction",JSON.stringify(this.un,void 0,2)),e.measurements=this.un),this.sn.captureEvent(e)}G.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},n.prototype.toContext=function(){var n=t.prototype.toContext.call(this);return rt(s(s({},n),{name:this.name,trimEnd:this.cn}))},n.prototype.updateWithContext=function(n){var i;return t.prototype.updateWithContext.call(this,n),this.name=null!=(i=n.name)?i:"",this.cn=n.trimEnd,this},n}(ni),ri=1e3,ei=function(t){function n(n,i,r,e){void 0===r&&(r="");var o=t.call(this,e)||this;return o.fn=n,o.hn=i,o.transactionSpanId=r,o}return i(n,t),n.prototype.add=function(n){var i=this;n.spanId!==this.transactionSpanId&&(n.finish=function(t){n.endTimestamp="number"==typeof t?t:Dt(),i.hn(n.spanId)},void 0===n.endTimestamp&&this.fn(n.spanId)),t.prototype.add.call(this,n)},n}(ti),oi=function(t){function n(n,i,r,e){void 0===r&&(r=ri),void 0===e&&(e=!1);var o=t.call(this,n,i)||this;return o.vn=i,o.dn=r,o.ln=e,o.activities={},o.pn=0,o.mn=0,o.yn=!1,o.gn=[],i&&e&&(ai(i),G.log("Setting idle transaction on scope. Span ID: "+o.spanId),i.configureScope(function(t){return t.setSpan(o)})),o.bn=setTimeout(function(){o.yn||o.finish()},o.dn),o}return i(n,t),n.prototype.finish=function(n){var i,r,e=this;if(void 0===n&&(n=Dt()),this.yn=!0,this.activities={},this.spanRecorder){G.log("[Tracing] finishing IdleTransaction",new Date(1e3*n).toISOString(),this.op);try{for(var o=f(this.gn),a=o.next();!a.done;a=o.next()){(0,a.value)(this,n)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(t){if(t.spanId===e.spanId)return!0;t.endTimestamp||(t.endTimestamp=n,t.setStatus($n.Cancelled),G.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var i=t.startTimestamp<n;return i||G.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),i}),G.log("[Tracing] flushing IdleTransaction")}else G.log("[Tracing] No active IdleTransaction");return this.ln&&ai(this.vn),t.prototype.finish.call(this,n)},n.prototype.registerBeforeFinishCallback=function(t){this.gn.push(t)},n.prototype.initSpanRecorder=function(t){var n=this;if(!this.spanRecorder){this.spanRecorder=new ei(function(t){n.yn||n.fn(t)},function(t){n.yn||n.hn(t)},this.spanId,t),G.log("Starting heartbeat"),this.wn()}this.spanRecorder.add(this)},n.prototype.fn=function(t){this.bn&&(clearTimeout(this.bn),this.bn=void 0),G.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,G.log("[Tracing] new activities count",Object.keys(this.activities).length)},n.prototype.hn=function(t){var n=this;if(this.activities[t]&&(G.log("[Tracing] popActivity "+t),delete this.activities[t],G.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var i=this.dn,r=Dt()+i/1e3;setTimeout(function(){n.yn||n.finish(r)},i)}},n.prototype.Tn=function(){if(clearTimeout(this.pn),!this.yn){var t=Object.keys(this.activities),n=t.length?t.reduce(function(t,n){return t+n}):"";n===this.En?this.mn+=1:this.mn=1,this.En=n,this.mn>=3?(G.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus($n.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this.wn()}},n.prototype.wn=function(){var t=this;G.log("pinging Heartbeat -> current counter: "+this.mn),this.pn=setTimeout(function(){t.Tn()},5e3)},n}(ii);function ai(t){if(t){var n=t.getScope();if(n)n.getTransaction()&&n.setSpan(void 0)}}function ui(){var t=this.getScope();if(t){var n=t.getSpan();if(n)return{"sentry-trace":n.toTraceparent()}}return{}}function si(t,n,i){return Vn(n)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:u.Explicit}}),t):("function"==typeof n.tracesSampler?(r=n.tracesSampler(i),t.setMetadata({transactionSampling:{method:u.Sampler,rate:Number(r)}})):void 0!==i.parentSampled?(r=i.parentSampled,t.setMetadata({transactionSampling:{method:u.Inheritance}})):(r=n.tracesSampleRate,t.setMetadata({transactionSampling:{method:u.Rate,rate:Number(r)}})),function(t){if(isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t)return G.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 G.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?(G.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(G.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):(G.log("[Tracing] Discarding transaction because "+("function"==typeof n.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(G.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function ci(t,n){var i,r,e=(null===(i=this.getClient())||void 0===i?void 0:i.getOptions())||{},o=new ii(t,this);return(o=si(o,e,s({parentSampled:t.parentSampled,transactionContext:t},n))).sampled&&o.initSpanRecorder(null===(r=e.Sn)||void 0===r?void 0:r.maxSpans),o}function fi(){var t;(t=qt()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=ci),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=ui)),vt({callback:Zn,type:"error"}),vt({callback:Zn,type:"unhandledrejection"})}var hi=M();var vi,di,li=function(t,n,i,r){var e;return function(){i&&n.isFinal&&i.disconnect(),n.value>=0&&(r||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(e||0),(n.delta||n.isFinal||void 0===e)&&(t(n),e=n.value))}},pi=function(t,n){return void 0===n&&(n=-1),{name:t,value:n,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12),isFinal:!1}},mi=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver(function(t){return t.getEntries().map(n)});return i.observe({type:t,buffered:!0}),i}}catch(t){}},yi=!1,gi=!1,bi=function(t){yi=!t.persisted},wi=function(t,n){void 0===n&&(n=!1),gi||(addEventListener("pagehide",bi),addEventListener("beforeunload",function(){}),gi=!0),addEventListener("visibilitychange",function(n){var i=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:i,isUnloading:yi})},{capture:!0,once:n})},Ti=function(){return void 0===vi&&(vi="hidden"===document.visibilityState?0:1/0,wi(function(t){var n=t.timeStamp;return vi=n},!0)),{get timeStamp(){return vi}}},Ei=function(t,n){void 0===n&&(n=!1);var i,r=pi("LCP"),e=Ti(),o=function(t){var n=t.startTime;n<e.timeStamp?(r.value=n,r.entries.push(t)):r.isFinal=!0,i()},a=mi("largest-contentful-paint",o);if(a){i=li(t,r,a,n);var u=function(){r.isFinal||(a.takeRecords().map(o),r.isFinal=!0,i())};(di||(di=new Promise(function(t){return["scroll","keydown","pointerdown"].map(function(n){addEventListener(n,t,{once:!0,passive:!0,capture:!0})})})),di).then(u),wi(u,!0)}},Si=M(),xi=function(t){var n,i=pi("TTFB");n=function(){try{var n=Si.performance.getEntriesByType("navigation")[0]||function(){var t=Si.performance.timing,n={entryType:"navigation",startTime:0};for(var i in t)"navigationStart"!==i&&"toJSON"!==i&&(n[i]=Math.max(t[i]-t.navigationStart,0));return n}();i.value=i.delta=n.responseStart,i.entries=[n],t(i)}catch(t){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("pageshow",n)},_i=M(),ki=function(){function t(){this.un={},this.xn=0,_i&&_i.performance&&(_i.performance.mark&&_i.performance.mark("sentry-tracing-init"),this._n(),this.kn(),this.jn(),this.On())}return t.prototype.addPerformanceEntries=function(t){var n=this;if(_i&&_i.performance&&_i.performance.getEntries&&It){G.log("[Tracing] Adding & adjusting spans using Performance API");var i,r,e,o=Qn(It);if(_i.document)for(var a=0;a<document.scripts.length;a++)if("true"===document.scripts[a].dataset.entry){i=document.scripts[a].src;break}if(_i.performance.getEntries().slice(this.xn).forEach(function(a){var u=Qn(a.startTime),s=Qn(a.duration);if(!("navigation"===t.op&&o+u<t.startTimestamp))switch(a.entryType){case"navigation":!function(t,n,i){ji(t,n,"unloadEvent",i),ji(t,n,"redirect",i),ji(t,n,"domContentLoadedEvent",i),ji(t,n,"loadEvent",i),ji(t,n,"connect",i),ji(t,n,"secureConnection",i,"connectEnd"),ji(t,n,"fetch",i,"domainLookupStart"),ji(t,n,"domainLookup",i),function(t,n,i){Oi(t,{op:"browser",description:"request",startTimestamp:i+Qn(n.requestStart),endTimestamp:i+Qn(n.responseEnd)}),Oi(t,{op:"browser",description:"response",startTimestamp:i+Qn(n.responseStart),endTimestamp:i+Qn(n.responseEnd)})}(t,n,i)}(t,a,o);break;case"mark":case"paint":case"measure":var c=function(t,n,i,r,e){var o=e+i,a=o+r;return Oi(t,{description:n.name,endTimestamp:a,op:n.entryType,startTimestamp:o}),o}(t,a,u,s,o);void 0===e&&"sentry-tracing-init"===a.name&&(e=c);var f=Ti(),h=a.startTime<f.timeStamp;"first-paint"===a.name&&h&&(G.log("[Measurements] Adding FP"),n.un.fp={value:a.startTime},n.un["mark.fp"]={value:c}),"first-contentful-paint"===a.name&&h&&(G.log("[Measurements] Adding FCP"),n.un.fcp={value:a.startTime},n.un["mark.fcp"]={value:c});break;case"resource":var v=a.name.replace(window.location.origin,""),d=function(t,n,i,r,e,o){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;var a={};"transferSize"in n&&(a["Transfer Size"]=n.transferSize);"encodedBodySize"in n&&(a["Encoded Body Size"]=n.encodedBodySize);"decodedBodySize"in n&&(a["Decoded Body Size"]=n.decodedBodySize);var u=o+r,s=u+e;return Oi(t,{description:i,endTimestamp:s,op:n.initiatorType?"resource."+n.initiatorType:"resource",startTimestamp:u,data:a}),s}(t,a,v,u,s,o);void 0===r&&(i||"").indexOf(v)>-1&&(r=d)}}),void 0!==r&&void 0!==e&&Oi(t,{description:"evaluation",endTimestamp:e,op:"script",startTimestamp:r}),this.xn=Math.max(performance.getEntries().length-1,0),this.Dn(t),"pageload"===t.op){var u=Qn(It);["fcp","fp","lcp","ttfb"].forEach(function(i){if(n.un[i]&&!(u>=t.startTimestamp)){var r=n.un[i].value,e=u+Qn(r),o=Math.abs(1e3*(e-t.startTimestamp)),a=o-r;G.log("[Measurements] Normalized "+i+" from "+r+" to "+o+" ("+a+")"),n.un[i].value=o}}),this.un["mark.fid"]&&this.un.fid&&Oi(t,{description:"first input delay",endTimestamp:this.un["mark.fid"].value+Qn(this.un.fid.value),op:"web.vitals",startTimestamp:this.un["mark.fid"].value}),t.setMeasurements(this.un)}}},t.prototype._n=function(){var t=this;!function(t,n){void 0===n&&(n=!1);var i,r=pi("CLS",0),e=function(t){t.hadRecentInput||(r.value+=t.value,r.entries.push(t),i())},o=mi("layout-shift",e);o&&(i=li(t,r,o,n),wi(function(t){var n=t.isUnloading;o.takeRecords().map(e),n&&(r.isFinal=!0),i()}))}(function(n){n.entries.pop()&&(G.log("[Measurements] Adding CLS"),t.un.cls={value:n.value})})},t.prototype.Dn=function(t){var n=_i.navigator;if(n){var i=n.connection;i&&(i.effectiveType&&t.setTag("effectiveConnectionType",i.effectiveType),i.type&&t.setTag("connectionType",i.type),Di(i.rtt)&&(this.un["connection.rtt"]={value:i.rtt}),Di(i.downlink)&&(this.un["connection.downlink"]={value:i.downlink})),Di(n.deviceMemory)&&t.setTag("deviceMemory",String(n.deviceMemory)),Di(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},t.prototype.kn=function(){var t=this;Ei(function(n){var i=n.entries.pop();if(i){var r=Qn(performance.timeOrigin),e=Qn(i.startTime);G.log("[Measurements] Adding LCP"),t.un.lcp={value:n.value},t.un["mark.lcp"]={value:r+e}}})},t.prototype.jn=function(){var t,n,i,r,e,o,a=this;t=function(t){var n=t.entries.pop();if(n){var i=Qn(performance.timeOrigin),r=Qn(n.startTime);G.log("[Measurements] Adding FID"),a.un.fid={value:t.value},a.un["mark.fid"]={value:i+r}}},n=pi("FID"),i=Ti(),e=mi("first-input",r=function(t){t.startTime<i.timeStamp&&(n.value=t.processingStart-t.startTime,n.entries.push(t),n.isFinal=!0,o())}),o=li(t,n,e),e?wi(function(){e.takeRecords().map(r),e.disconnect()},!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay(function(t,r){r.timeStamp<i.timeStamp&&(n.value=t,n.isFinal=!0,n.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+t}],o())})},t.prototype.On=function(){var t=this;xi(function(n){var i,r=n.entries.pop();if(r){G.log("[Measurements] Adding TTFB"),t.un.ttfb={value:n.value};var e=n.value-(i=n.entries[0],null!=i?i:r).requestStart;t.un["ttfb.requestTime"]={value:e}}})},t}();function ji(t,n,i,r,e){var o=e?n[e]:n[i+"End"],a=n[i+"Start"];a&&o&&Oi(t,{op:"browser",description:i,startTimestamp:r+Qn(a),endTimestamp:r+Qn(o)})}function Oi(t,n){var i=n.startTimestamp,r=c(n,["startTimestamp"]);return i&&t.startTimestamp>i&&(t.startTimestamp=i),t.startChild(s({startTimestamp:i},r))}function Di(t){return"number"==typeof t&&isFinite(t)}var Ii={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Ni(t){var n=s(s({},Ii),t),i=n.traceFetch,r=n.traceXHR,e=n.tracingOrigins,o=n.shouldCreateSpanForRequest,a={},u=function(t){if(a[t])return a[t];var n=e;return a[t]=n.some(function(n){return R(t,n)})&&!R(t,"sentry_key"),a[t]},c=u;"function"==typeof o&&(c=function(t){return u(t)&&o(t)});var f={};i&&vt({callback:function(t){!function(t,n,i){var r,e=null===(r=Ut().getClient())||void 0===r?void 0:r.getOptions();if(!(e&&Vn(e)&&t.fetchData&&n(t.fetchData.url)))return;if(t.endTimestamp&&t.fetchData.__span){var o=i[t.fetchData.__span];if(o){var a=t.response;a&&o.setHttpStatus(a.status),o.finish(),delete i[t.fetchData.__span]}return}var u=Yn();if(u){var o=u.startChild({data:s(s({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http"});t.fetchData.__span=o.spanId,i[o.spanId]=o;var c=t.args[0]=t.args[0],f=t.args[1]=t.args[1]||{},h=f.headers;E(c,Request)&&(h=c.headers),h?"function"==typeof h.append?h.append("sentry-trace",o.toTraceparent()):h=Array.isArray(h)?v(h,[["sentry-trace",o.toTraceparent()]]):s(s({},h),{"sentry-trace":o.toTraceparent()}):h={"sentry-trace":o.toTraceparent()},f.headers=h}}(t,c,f)},type:"fetch"}),r&&vt({callback:function(t){!function(t,n,i){var r,e=null===(r=Ut().getClient())||void 0===r?void 0:r.getOptions();if(!e||!Vn(e)||!(t.xhr&&t.xhr.__sentry_xhr__&&n(t.xhr.__sentry_xhr__.url))||t.xhr.__sentry_own_request__)return;var o=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){var a=i[t.xhr.__sentry_xhr_span_id__];return void(a&&(a.setHttpStatus(o.status_code),a.finish(),delete i[t.xhr.__sentry_xhr_span_id__]))}var u=Yn();if(u){var a=u.startChild({data:s(s({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http"});if(t.xhr.__sentry_xhr_span_id__=a.spanId,i[t.xhr.__sentry_xhr_span_id__]=a,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(t){}}}(t,c,f)},type:"xhr"})}var Ri=M();var Ci=s({idleTimeout:ri,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),Ri&&Ri.location){var r,e=Ri.location.href;n&&(r=t({name:Ri.location.pathname,op:"pageload"})),i&&vt({callback:function(n){var i=n.to,o=n.from;void 0===o&&e&&-1!==e.indexOf(i)?e=void 0:o!==i&&(e=void 0,r&&(G.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:Ri.location.pathname,op:"navigation"}))},type:"history"})}else G.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Ii),Mi=function(){function t(n){this.name=t.id,this.In=new ki,this.Nn=!1;var i=Ii.tracingOrigins;n&&n.tracingOrigins&&Array.isArray(n.tracingOrigins)&&0!==n.tracingOrigins.length?i=n.tracingOrigins:this.Nn=!0,this.options=s(s(s({},Ci),n),{tracingOrigins:i})}return t.prototype.setupOnce=function(t,n){var i=this;this.Rn=n,this.Nn&&(G.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),G.warn("[Tracing] We added a reasonable default for you: "+Ii.tracingOrigins));var r=this.options,e=r.routingInstrumentation,o=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,u=r.markBackgroundTransactions,s=r.traceFetch,c=r.traceXHR,f=r.tracingOrigins,h=r.shouldCreateSpanForRequest;e(function(t){return i.Cn(t)},a,o),u&&(hi&&hi.document?hi.document.addEventListener("visibilitychange",function(){var t=Yn();hi.document.hidden&&t&&(G.log("[Tracing] Transaction: "+$n.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus($n.Cancelled),t.setTag("visibilitychange","document.hidden"),t.finish())}):G.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Ni({traceFetch:s,traceXHR:c,tracingOrigins:f,shouldCreateSpanForRequest:h})},t.prototype.Cn=function(t){var n=this;if(this.Rn){var i=this.options,r=i.beforeNavigate,e=i.idleTimeout,o=i.maxTransactionDuration,a="pageload"===t.op?function(){var t=(n="sentry-trace",i=document.querySelector("meta[name="+n+"]"),i?i.getAttribute("content"):null);var n,i;if(t)return function(t){var n=t.match(Kn);if(n){var i=void 0;return"1"===n[3]?i=!0:"0"===n[3]&&(i=!1),{traceId:n[1],parentSampled:i,parentSpanId:n[2]}}}(t);return}():void 0,u=s(s(s({},t),a),{trimEnd:!0}),c="function"==typeof r?r(u):u,f=void 0===c?s(s({},u),{sampled:!1}):c;!1===f.sampled&&G.log("[Tracing] Will not send "+f.op+" transaction because of beforeNavigate."),G.log("[Tracing] Starting "+f.op+" transaction on scope");var h=function(t,n,i,r,e){var o,a,u=(null===(o=t.getClient())||void 0===o?void 0:o.getOptions())||{},c=new oi(n,t,i,r);return(c=si(c,u,s({parentSampled:n.parentSampled,transactionContext:n},e))).sampled&&c.initSpanRecorder(null===(a=u.Sn)||void 0===a?void 0:a.maxSpans),c}(this.Rn(),f,e,!0,{location:M().location});return h.registerBeforeFinishCallback(function(t,i){n.In.addPerformanceEntries(t),function(t,n,i){var r=i-n.startTimestamp;i&&(r>t||r<0)&&(n.setStatus($n.DeadlineExceeded),n.setTag("maxTransactionDurationExceeded","true"))}(1e3*o,t,i)}),h}G.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();var Ai={},Li=M();Li.Sentry&&Li.Sentry.Integrations&&(Ai=Li.Sentry.Integrations);var qi=s(s(s({},Ai),zn),{BrowserTracing:Mi});return fi(),t.BrowserClient=Jn,t.Hub=Lt,t.Integrations=qi,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=rn,t.Scope=Nt,t.Span=ni,t.Transports=jn,t.addBreadcrumb=function(t){Jt("addBreadcrumb",t)},t.addExtensionMethods=fi,t.addGlobalEventProcessor=Ct,t.captureEvent=function(t){return Jt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var i;try{throw new Error(t)}catch(t){i=t}return Jt("captureMessage",t,"string"==typeof n?n:void 0,s({originalException:t,syntheticException:i},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=Ut().getClient();return n?n.close(t):St.reject(!1)},t.configureScope=function(t){Jt("configureScope",t)},t.defaultIntegrations=Xn,t.flush=function(t){var n=Ut().getClient();return n?n.flush(t):St.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Ut,t.getHubFromCarrier=Ht,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Xn),void 0===t.release){var n=M();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,n){!0===n.debug&&G.enable();var i=Ut(),r=new t(n);i.bindClient(r)}(Jn,t),t.autoSessionTracking&&function(){if(void 0!==M().document){var t=Ut();"startSession"in t&&(t.startSession(),t.captureSession(),vt({callback:function(){t.startSession(),t.captureSession()},type:"history"}))}else G.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()},t.lastEventId=function(){return Ut().lastEventId()},t.onLoad=function(t){t()},t.setContext=function(t,n){Jt("setContext",t,n)},t.setExtra=function(t,n){Jt("setExtra",t,n)},t.setExtras=function(t){Jt("setExtras",t)},t.setTag=function(t,n){Jt("setTag",t,n)},t.setTags=function(t){Jt("setTags",t)},t.setUser=function(t){Jt("setUser",t)},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=Ut().lastEventId());var n=Ut().getClient();n&&n.showReportDialog(t)},t.startTransaction=function(t,n){return Jt("startTransaction",s({},t),n)},t.withScope=Xt,t.wrap=function(t){return Nn(t)()},t}({}); //# sourceMappingURL=bundle.tracing.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка