Created
July 4, 2023 19:42
-
-
Save armenzg/45dbcb3c10df21a4251daac98e097f36 to your computer and use it in GitHub Desktop.
Taken JS file and appended a new line for every semi-colon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import{c as Kt,d as Vt,f as Xt}from"/build/_shared/chunk-3EGTKHIP.js";var Jt=Object.prototype.toString;function ye(t){switch(Jt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return H(t,Error)}}function ce(t,e){return Jt.call(t)===`[object ${e}]`}function ue(t){return ce(t,"ErrorEvent")}function ke(t){return ce(t,"DOMError")}function it(t){return ce(t,"DOMException")}function v(t){return ce(t,"String")}function fe(t){return t===null||typeof t!="object"&&typeof t!="function"}function O(t){return ce(t,"Object")}function ne(t){return typeof Event<"u"&&H(t,Event)}function st(t){return typeof Element<"u"&&H(t,Element)}function at(t){return ce(t,"RegExp")}function re(t){return Boolean(t&&t.then&&typeof t.then=="function")}function ct(t){return O(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function ut(t){return typeof t=="number"&&t!==t}function H(t,e){try{return t instanceof e}catch{return!1}}function Oe(t){return t&&t.Math==Math?t:void 0}var y=typeof globalThis=="object"&&Oe(globalThis)||typeof window=="object"&&Oe(window)||typeof self=="object"&&Oe(self)||typeof globalThis=="object"&&Oe(globalThis)||function(){return this}()||{};function I(){return y}function oe(t,e,n){let r=n||y,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}var sr=I(),ar=80;function de(t,e={}){try{let n=t,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||ar;for(;n&&i++<r&&(u=cr(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function cr(t,e){let n=t,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());let u=e&&e.length?e.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&v(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)s=l[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function ft(){try{return sr.document.location.href}catch{return""}}var ur="Sentry Logger ",le=["debug","info","warn","error","log","assert","trace"];function Ie(t){if(!("console"in y))return t();let e=y.console,n={};le.forEach(r=>{let o=e[r]&&e[r].__sentry_original__;r in e&&o&&(n[r]=e[r],e[r]=o)});try{return t()}finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function Zt(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?le.forEach(n=>{e[n]=(...r)=>{t&&Ie(()=>{y.console[n](`${ur}[${n}]:`,...r)})}}):le.forEach(n=>{e[n]=()=>{}}),e}var d;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?d=oe("logger",Zt):d=Zt();var fr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dr(t){return t==="http"||t==="https"}function G(t,e=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Qt(t){let e=fr.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}let[n,r,o="",i,s="",a]=e.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let f=u.match(/^\d+/);f&&(u=f[0])}return en({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function en(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function lr(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(d.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?dr(r)?e&&isNaN(parseInt(e,10))?(d.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(d.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(d.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function we(t){let e=typeof t=="string"?Qt(t):en(t);if(!(!e||!lr(e)))return e}var S=class extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};function X(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Ue(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let o=t[r];try{n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function tn(t,e,n=!1){return v(t)?at(e)?e.test(t):v(e)?n?t===e:t.includes(e):!1:!1}function pe(t,e=[],n=!1){return e.some(r=>tn(t,r,n))}function g(t,e,n){if(!(e in t))return;let r=t[e],o=n(r);if(typeof o=="function")try{Ae(o,r)}catch{}t[e]=o}function _e(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function Ae(t,e){let n=e.prototype||{};t.prototype=e.prototype=n,_e(t,"__sentry_original__",e)}function ie(t){return t.__sentry_original__}function lt(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Pe(t){if(ye(t))return{message:t.message,name:t.name,stack:t.stack,...rn(t)};if(ne(t)){let e={type:t.type,target:nn(t.target),currentTarget:nn(t.currentTarget),...rn(t)};return typeof CustomEvent<"u"&&H(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function nn(t){try{return st(t)?de(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function rn(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function pt(t,e=40){let n=Object.keys(Pe(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return X(n[0],e);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:X(o,e)}return""}function me(t){return dt(t,new Map)}function dt(t,e){if(O(t)){let n=e.get(t);if(n!==void 0)return n;let r={};e.set(t,r);for(let o of Object.keys(t))typeof t[o]<"u"&&(r[o]=dt(t[o],e));return r}if(Array.isArray(t)){let n=e.get(t);if(n!==void 0)return n;let r=[];return e.set(t,r),t.forEach(o=>{r.push(dt(o,e))}),r}return t}var sn=50,on=/\(error: (.*)\)/;function Be(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[],i=n.split(` | |
`);for(let s=r;s<i.length;s++){let a=i[s];if(a.length>1024)continue;let c=on.test(a)?a.replace(on,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of e){let l=u(c);if(l){o.push(l);break}}if(o.length>=sn)break}}return an(o)}}function mt(t){return Array.isArray(t)?Be(...t):t}function an(t){if(!t.length)return[];let e=t.slice(0,sn),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse();let r=e[e.length-1].function;return r&&/captureMessage|captureException/.test(r)&&e.pop(),e.map(o=>({...o,filename:o.filename||e[e.length-1].filename,function:o.function||"?"}))}var _t="<anonymous>";function N(t){try{return!t||typeof t!="function"?_t:t.name||_t}catch{return _t}}var ht=I();function Le(){if(!("fetch"in ht))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Se(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function gt(){if(!Le())return!1;if(Se(ht.fetch))return!0;let t=!1,e=ht.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Se(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}var Fe=I();function cn(){let t=Fe.chrome,e=t&&t.app&&t.app.runtime,n="history"in Fe&&!!Fe.history.pushState&&!!Fe.history.replaceState;return!e&&n}var m=I(),se="__sentry_xhr_v2__",be={},un={};function pr(t){if(!un[t])switch(un[t]=!0,t){case"console":_r();break;case"dom":br();break;case"xhr":hr();break;case"fetch":mr();break;case"history":gr();break;case"error":Tr();break;case"unhandledrejection":xr();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("unknown instrumentation type:",t);return}}function D(t,e){be[t]=be[t]||[],be[t].push(e),pr(t)}function w(t,e){if(!(!t||!be[t]))for(let n of be[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Error while triggering instrumentation handler. | |
Type: ${t} | |
Name: ${N(n)} | |
Error:`,r)}}function _r(){"console"in m&&le.forEach(function(t){t in m.console&&g(m.console,t,function(e){return function(...n){w("console",{args:n,level:t}),e&&e.apply(m.console,n)}})})}function mr(){gt()&&g(m,"fetch",function(t){return function(...e){let{method:n,url:r}=ln(e),o={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return w("fetch",{...o}),t.apply(m,e).then(i=>(w("fetch",{...o,endTimestamp:Date.now(),response:i}),i),i=>{throw w("fetch",{...o,endTimestamp:Date.now(),error:i}),i})}})}function Et(t,e){return!!t&&typeof t=="object"&&!!t[e]}function fn(t){return typeof t=="string"?t:t?Et(t,"url")?t.url:t.toString?t.toString():"":""}function ln(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:fn(n),method:Et(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:fn(e),method:Et(e,"method")?String(e.method).toUpperCase():"GET"}}function hr(){if(!("XMLHttpRequest"in m))return;let t=XMLHttpRequest.prototype;g(t,"open",function(e){return function(...n){let r=n[1],o=this[se]={method:v(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};v(r)&&o.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let s=this[se];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}w("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?g(this,"onreadystatechange",function(s){return function(...a){return i(),s.apply(this,a)}}):this.addEventListener("readystatechange",i),g(this,"setRequestHeader",function(s){return function(...a){let[c,u]=a,l=this[se];return l&&(l.request_headers[c.toLowerCase()]=u),s.apply(this,a)}}),e.apply(this,n)}}),g(t,"send",function(e){return function(...n){let r=this[se];return r&&n[0]!==void 0&&(r.body=n[0]),w("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}var Ge;function gr(){if(!cn())return;let t=m.onpopstate;m.onpopstate=function(...n){let r=m.location.href,o=Ge;if(Ge=r,w("history",{from:o,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=Ge,s=String(o);Ge=s,w("history",{from:i,to:s})}return n.apply(this,r)}}g(m.history,"pushState",e),g(m.history,"replaceState",e)}var Er=1e3,Me,Ce;function yr(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Sr(t){if(t.type!=="keypress")return!1;try{let e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function dn(t,e=!1){return n=>{if(!n||Ce===n||Sr(n))return;let r=n.type==="keypress"?"input":n.type;Me===void 0?(t({event:n,name:r,global:e}),Ce=n):yr(Ce,n)&&(t({event:n,name:r,global:e}),Ce=n),clearTimeout(Me),Me=m.setTimeout(()=>{Me=void 0},Er)}}function br(){if(!("document"in m))return;let t=w.bind(null,"dom"),e=dn(t,!0);m.document.addEventListener("click",e,!1),m.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=m[n]&&m[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(g(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){let f=dn(t);l.handler=f,o.call(this,i,f,a)}l.refCount++}catch{}return o.call(this,i,s,a)}}),g(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}var Ye=null;function Tr(){Ye=m.onerror,m.onerror=function(t,e,n,r,o){return w("error",{column:r,error:o,line:n,msg:t,url:e}),Ye&&!Ye.__SENTRY_LOADER__?Ye.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}var $e=null;function xr(){$e=m.onunhandledrejection,m.onunhandledrejection=function(t){return w("unhandledrejection",t),$e&&!$e.__SENTRY_LOADER__?$e.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function pn(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function r(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[n,r]}function M(){let t=y,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");let n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function _n(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function U(t){let{message:e,event_id:n}=t;if(e)return e;let r=_n(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function he(t,e,n){let r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function W(t,e){let n=_n(t);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};n.mechanism.data=i}}function je(t){if(t&&t.__sentry_captured__)return!0;try{_e(t,"__sentry_captured__",!0)}catch{}return!1}function Te(t){return Array.isArray(t)?t:[t]}function yt(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function St(){return"npm"}function mn(){return!yt()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function hn(t,e){return t.require(e)}function A(t,e=100,n=1/0){try{return He("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function We(t,e=3,n=100*1024){let r=A(t,e);return Dr(r)>n?We(t,e-1,n):r}function He(t,e,n=1/0,r=1/0,o=pn()){let[i,s]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!ut(e))return e;let a=Rr(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";let u=e;if(u&&typeof u.toJSON=="function")try{let E=u.toJSON();return He("",E,c-1,r,o)}catch{}let l=Array.isArray(e)?[]:{},f=0,b=Pe(e);for(let E in b){if(!Object.prototype.hasOwnProperty.call(b,E))continue;if(f>=r){l[E]="[MaxProperties ~]";break}let te=b[E];l[E]=He(E,te,c-1,r,o),f++}return s(e),l}function Rr(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&e===globalThis)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(ct(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${N(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=vr(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function vr(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Nr(t){return~-encodeURI(t).split(/%..|./).length}function Dr(t){return Nr(JSON.stringify(t))}var q;(function(t){t[t.PENDING=0]="PENDING";let n=1;t[t.RESOLVED=n]="RESOLVED";let r=2;t[t.REJECTED=r]="REJECTED"})(q||(q={}));function T(t){return new h(e=>{e(t)})}function J(t){return new h((e,n)=>{n(t)})}var h=class{__init(){this._state=q.PENDING}__init2(){this._handlers=[]}constructor(e){h.prototype.__init.call(this),h.prototype.__init2.call(this),h.prototype.__init3.call(this),h.prototype.__init4.call(this),h.prototype.__init5.call(this),h.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new h((r,o)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new h((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){r(o);return}n(o)})})}__init3(){this._resolve=e=>{this._setResult(q.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(q.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===q.PENDING){if(re(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===q.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===q.RESOLVED&&n[1](this._value),this._state===q.REJECTED&&n[2](this._value),n[0]=!0)})}}};function bt(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function o(s){if(!n())return J(new S("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new h((a,c)=>{let u=e.length;if(!u)return a(!0);let l=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(f=>{T(f).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:e,add:o,drain:i}}function xe(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}var gn=["fatal","error","warning","log","info","debug"];function Tt(t){return t==="warn"?"warning":gn.includes(t)?t:"log"}var yn=I(),Rt={nowSeconds:()=>Date.now()/1e3};function kr(){let{performance:t}=yn;if(!t||!t.now)return;let e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function Or(){try{return hn(module,"perf_hooks").performance}catch{return}}var xt=mn()?Or():kr(),En=xt===void 0?Rt:{nowSeconds:()=>(xt.timeOrigin+xt.now())/1e3},z=Rt.nowSeconds.bind(Rt),qe=En.nowSeconds.bind(En);var Re,Ir=(()=>{let{performance:t}=yn;if(!t||!t.now){Re="none";return}let e=3600*1e3,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,u=c<e;return i||u?o<=c?(Re="timeOrigin",t.timeOrigin):(Re="navigationStart",s):(Re="dateNow",r)})();function C(t,e=[]){return[t,e]}function Nt(t,e){let[n,r]=t;return[n,[...r,e]]}function ze(t,e){let n=t[1];for(let r of n){let o=r[0].type;if(e(r,o))return!0}return!1}function vt(t,e){return(e||new TextEncoder).encode(t)}function Dt(t,e){let[n,r]=t,o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[vt(o,e),s]:o.push(typeof s=="string"?vt(s,e):s)}for(let s of r){let[a,c]=s;if(i(` | |
${JSON.stringify(a)} | |
`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(A(c))}i(u)}}return typeof o=="string"?o:wr(o)}function wr(t){let e=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(e),r=0;for(let o of t)n.set(o,r),r+=o.length;return n}function kt(t,e){let n=typeof t.data=="string"?vt(t.data,e):t.data;return[me({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var Ur={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Ke(t){return Ur[t]}function Ve(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ot(t,e,n,r){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:G(r)},...o&&{trace:me({...o})}}}function It(t,e,n){let r=[{type:"client_report"},{timestamp:n||z(),discarded_events:t}];return C(e?{dsn:e}:{},[r])}function Sn(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function bn(t,e){return t[e]||t.all||0}function wt(t,e,n=Date.now()){return bn(t,e)>n}function Ut(t,{statusCode:e,headers:n},r=Date.now()){let o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u]=a.split(":",2),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+f;else for(let b of u.split(";"))o[b]=r+f}else s?o.all=r+Sn(s,r):e===429&&(o.all=r+60*1e3);return o}var Xe="production";function Tn(t){let e=qe(),n={sid:M(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ar(n)};return t&&K(n,t),n}function K(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||qe(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:M()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function xn(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),K(t,n)}function Ar(t){return me({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var Pr=100,x=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){let n=new x;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...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=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&K(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){let n=e(this);return n instanceof x?n:this}return e instanceof x?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...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)):O(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Pr;if(r<=0)return this;let o={timestamp:z(),...e};return this._breadcrumbs=[...this._breadcrumbs,o].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let r=this._span.transaction;if(r){e.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let o=r.name;o&&(e.tags={transaction:o,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Rn(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,n,r,o=0){return new h((i,s)=>{let a=e[o];if(n===null||typeof a!="function")i(n);else{let c=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&c===null&&d.log(`Event processor "${a.id}" dropped event`),re(c)?c.then(u=>this._notifyEventProcessors(e,u,r,o+1).then(i)).then(null,s):this._notifyEventProcessors(e,c,r,o+1).then(i).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Te(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Rn(){return oe("globalEventProcessors",()=>[])}function Z(t){Rn().push(t)}var vn=4,Br=100,ge=class{constructor(e,n=new x,r=vn){this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let n=this.getStackTop();n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=x.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let n=this.pushScope();try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:M(),o=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(e,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:M(),i=new Error(e);return this._withClient((s,a)=>{s.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:o},a)}),o}captureEvent(e,n){let r=n&&n.event_id?n.event_id:M();return e.type||(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(e,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){let{scope:r,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Br}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:z(),...e},u=i?Ie(()=>i(c,n)):c;u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n)}configureScope(e){let{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){let n=Je(this);try{e(this)}finally{Je(n)}}getIntegration(e){let n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){let r=this._callExtensionMethod("startTransaction",e,n);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': | |
Sentry.addTracingExtensions(); | |
Sentry.init({...}); | |
`),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let n=this.getStackTop().scope,r=n.getSession();r&&xn(r),this._sendSessionUpdate(),n.setSession()}startSession(e){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Xe}=r&&r.getOptions()||{},{userAgent:s}=y.navigator||{},a=Tn({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&K(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),n=e&&e.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){let{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){let o=Ne().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Ne(){return y.__SENTRY__=y.__SENTRY__||{extensions:{},hub:void 0},y}function Je(t){let e=Ne(),n=ve(e);return At(e,t),n}function _(){let t=Ne();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Lr(t)}function Lr(t=Ne()){return(!Fr(t)||ve(t).isOlderThan(vn))&&At(t,new ge),ve(t)}function Fr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ve(t){return oe("hub",()=>new ge,t)}function At(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function Ze(t,e){return _().captureException(t,{captureContext:e})}function Qe(t){_().withScope(t)}var Gr="7";function Mr(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Cr(t){return`${Mr(t)}${t.projectId}/envelope/`}function Yr(t,e){return lt({sentry_key:t.publicKey,sentry_version:Gr,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Nn(t,e={}){let n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${Cr(t)}?${Yr(t,r)}`}function $r(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=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Dn(t,e,n,r){let o=Ve(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&{dsn:G(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return C(i,[s])}function kn(t,e,n,r){let o=Ve(n),i=t.type&&t.type!=="replay_event"?t.type:"event";$r(t,n&&n.sdk);let s=Ot(t,o,r,e);return delete t.sdkProcessingMetadata,C(s,[[{type:i},t]])}var On=[];function jr(t){let e={};return t.forEach(n=>{let{name:r}=n,o=e[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function Pt(t){let e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Te(n(e)):r=e;let o=jr(r),i=Hr(o,s=>s.name==="Debug");if(i!==-1){let[s]=o.splice(i,1);o.push(s)}return o}function In(t){let e={};return t.forEach(n=>{n&&Bt(n,e)}),e}function Bt(t,e){e[t.name]=t,On.indexOf(t.name)===-1&&(t.setupOnce(Z,_),On.push(t.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Integration installed: ${t.name}`))}function Hr(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function Un(t,e,n,r){let{normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=t,s={...e,event_id:e.event_id||n.event_id||M(),timestamp:e.timestamp||z()},a=n.integrations||t.integrations.map(l=>l.name);Wr(s,t),Kr(s,a),e.type===void 0&&qr(s,t.stackParser);let c=r;n.captureContext&&(c=x.clone(c).update(n.captureContext));let u=T(s);if(c){if(c.getAttachments){let l=[...n.attachments||[],...c.getAttachments()];l.length&&(n.attachments=l)}u=c.applyToEvent(s,n)}return u.then(l=>(l&&zr(l),typeof o=="number"&&o>0?Vr(l,o,i):l))}function Wr(t,e){let{environment:n,release:r,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:Xe),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=X(t.message,i));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=X(s.value,i));let a=t.request;a&&a.url&&(a.url=X(a.url,i))}var wn=new WeakMap;function qr(t,e){let n=y._sentryDebugIds;if(!n)return;let r,o=wn.get(e);o?r=o:(r=new Map,wn.set(e,r));let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a);u?c=u:(c=e(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){let f=c[l];if(f.filename){s[f.filename]=n[a];break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function zr(t){let e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function Kr(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Vr(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:A(o.data,e,n)}}))},...t.user&&{user:A(t.user,e,n)},...t.contexts&&{contexts:A(t.contexts,e,n)},...t.extra&&{extra:A(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=A(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>(o.data&&(o.data=A(o.data,e,n)),o))),r}var An="Not capturing exception because it's already been captured.",P=class{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(P.prototype.__init.call(this),P.prototype.__init2.call(this),P.prototype.__init3.call(this),P.prototype.__init4.call(this),P.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=we(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("No DSN provided, client will not do anything."),this._dsn){let n=Nn(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(je(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(An);return}let o=n&&n.event_id;return this._process(this.eventFromException(e,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(e,n,r,o){let i=r&&r.event_id,s=fe(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(s.then(a=>this._captureEvent(a,r,o)).then(a=>{i=a})),i}captureEvent(e,n,r){if(n&&n.originalException&&je(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(An);return}let o=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(i=>{o=i})),o}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),K(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let n=this._transport;return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(o=>r&&o)):T(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=In(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){Bt(e,this._integrations)}sendEvent(e,n={}){if(this._dsn){let r=kn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=Nt(r,kt(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}}sendSession(e){if(this._dsn){let n=Dn(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){let o=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_updateSessionFromEvent(e,n){let r=!1,o=!1,i=n.exception&&n.exception.values;if(i){o=!0;for(let c of i){let u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(K(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new h(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,e&&r>=e&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){let o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),Un(o,e,n,r)}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(o=>o.event_id,o=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=o;i.logLevel==="log"?d.log(i.message):d.warn(i)}})}_processEvent(e,n,r){let o=this.getOptions(),{sampleRate:i}=o;if(!this._isEnabled())return J(new S("SDK not enabled, will not capture event.","log"));let s=Bn(e),a=Pn(e),c=e.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),J(new S(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l=c==="replay_event"?"replay":c;return this._prepareEvent(e,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",l,e),new S("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;let E=Jr(o,f,n);return Xr(E,u)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",l,e),new S(`${u} returned \`null\`, will not send event.`,"log");let b=r&&r.getSession();!s&&b&&this._updateSessionFromEvent(b,f);let E=f.transaction_info;if(s&&E&&f.transaction!==e.transaction){let te="custom";f.transaction_info={...E,source:te}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof S?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new S(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. | |
Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{let[r,o]=n.split(":");return{reason:r,category:o,quantity:e[n]}})}};function Xr(t,e){let n=`${e} must return \`null\` or a valid event.`;if(re(t))return t.then(r=>{if(!O(r)&&r!==null)throw new S(n);return r},r=>{throw new S(`${e} rejected with ${r}`)});if(!O(t)&&t!==null)throw new S(n);return t}function Jr(t,e,n){let{beforeSend:r,beforeSendTransaction:o}=t;return Pn(e)&&r?r(e,n):Bn(e)&&o?o(e,n):e}function Pn(t){return t.type===void 0}function Bn(t){return t.type==="transaction"}function Lt(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?d.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let n=_();n.getScope().update(e.initialScope);let o=new t(e);n.bindClient(o)}var Zr=30;function Ee(t,e,n=bt(t.bufferSize||Zr)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(ze(s,(f,b)=>{let E=Ke(b);if(wt(r,E)){let te=Ln(f,b);t.recordDroppedEvent("ratelimit_backoff",E,te)}else a.push(f)}),a.length===0)return T();let c=C(s[0],a),u=f=>{ze(c,(b,E)=>{let te=Ln(b,E);t.recordDroppedEvent(f,Ke(E),te)})},l=()=>e({body:Dt(c,t.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Ut(r,f),f),f=>{throw u("network_error"),f});return n.add(l).then(f=>f,f=>{if(f instanceof S)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Skipped sending event because buffer is full."),u("queue_overflow"),T();throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Ln(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}var Q="7.57.0";var ae={};Kt(ae,{FunctionToString:()=>V,InboundFilters:()=>Y});var Fn,V=class{constructor(){V.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=V.id}setupOnce(){Fn=Function.prototype.toString;try{Function.prototype.toString=function(...e){let n=ie(this)||this;return Fn.apply(n,e)}}catch{}}};V.__initStatic();var Qr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],eo=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],Y=class{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Y.id}constructor(e={}){this._options=e,Y.prototype.__init.call(this)}setupOnce(e,n){let r=o=>{let i=n();if(i){let s=i.getIntegration(Y);if(s){let a=i.getClient(),c=a?a.getOptions():{},u=to(s._options,c);return no(o,u)?null:o}}return o};r.id=this.name,e(r)}};Y.__initStatic();function to(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Qr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:eo],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function no(t,e){return e.ignoreInternal&&co(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being internal Sentry Error. | |
Event: ${U(t)}`),!0):ro(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`ignoreErrors\` option. | |
Event: ${U(t)}`),!0):oo(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. | |
Event: ${U(t)}`),!0):io(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`denyUrls\` option. | |
Event: ${U(t)}. | |
Url: ${et(t)}`),!0):so(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to not being matched by \`allowUrls\` option. | |
Event: ${U(t)}. | |
Url: ${et(t)}`),!0)}function ro(t,e){return t.type||!e||!e.length?!1:ao(t).some(n=>pe(n,e))}function oo(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let n=t.transaction;return n?pe(n,e):!1}function io(t,e){if(!e||!e.length)return!1;let n=et(t);return n?pe(n,e):!1}function so(t,e){if(!e||!e.length)return!0;let n=et(t);return n?pe(n,e):!0}function ao(t){if(t.message)return[t.message];if(t.exception){let{values:e}=t.exception;try{let{type:n="",value:r=""}=e&&e[e.length-1]||{};return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Cannot extract message for event ${U(t)}`),[]}}return[]}function co(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function uo(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function et(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?uo(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Cannot extract url for event ${U(t)}`),null}}var p=y,Ft=0;function Gt(){return Ft>0}function To(){Ft++,setTimeout(()=>{Ft--})}function ee(t,e={},n){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return o;if(ie(t))return t}catch{return t}let r=function(){let o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let i=o.map(s=>ee(s,e));return t.apply(this,i)}catch(i){throw To(),Qe(s=>{s.addEventProcessor(a=>(e.mechanism&&(he(a,void 0,void 0),W(a,e.mechanism)),a.extra={...a.extra,arguments:o},a)),Ze(i)}),i}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}Ae(r,t),_e(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Yt(t,e){let n=$t(t,e),r={type:e&&e.name,value:No(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function xo(t,e,n,r){let i=_().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:ne(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Do(e,{isUnhandledRejection:r})}]},extra:{__serialized__:We(e,s)}};if(n){let c=$t(t,n);c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}function Mt(t,e){return{exception:{values:[Yt(t,e)]}}}function $t(t,e){let n=e.stacktrace||e.stack||"",r=vo(e);try{return t(n,r)}catch{}return[]}var Ro=/Minified React error #\d+;/i;function vo(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Ro.test(t.message))return 1}return 0}function No(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Gn(t,e,n,r){let o=n&&n.syntheticException||void 0,i=tt(t,e,o,r);return W(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),T(i)}function Mn(t,e,n="info",r,o){let i=r&&r.syntheticException||void 0,s=Ct(t,e,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),T(s)}function tt(t,e,n,r,o){let i;if(ue(e)&&e.error)return Mt(t,e.error);if(ke(e)||it(e)){let s=e;if("stack"in e)i=Mt(t,e);else{let a=s.name||(ke(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Ct(t,c,n,r),he(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return ye(e)?Mt(t,e):O(e)||ne(e)?(i=xo(t,e,n,o),W(i,{synthetic:!0}),i):(i=Ct(t,e,n,r),he(i,`${e}`,void 0),W(i,{synthetic:!0}),i)}function Ct(t,e,n,r){let o={message:e};if(r&&n){let i=$t(t,n);i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}return o}function Do(t,{isUnhandledRejection:e}){let n=pt(t),r=e?"promise rejection":"exception";return ue(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:ne(t)?`Event \`${ko(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ko(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}var nt=1024,jt="Breadcrumbs",$=class{static __initStatic(){this.id=jt}__init(){this.name=$.id}constructor(e){$.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&D("console",Io),this.options.dom&&D("dom",Oo(this.options.dom)),this.options.xhr&&D("xhr",wo),this.options.fetch&&D("fetch",Uo),this.options.history&&D("history",Ao)}addSentryBreadcrumb(e){this.options.sentry&&_().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:U(e)},{event:e})}};$.__initStatic();function Oo(t){function e(n){let r,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>nt&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`\`dom.maxStringLength\` cannot exceed ${nt}, but a value of ${i} was configured. Sentry will use ${nt} instead.`),i=nt),typeof o=="string"&&(o=[o]);try{let s=n.event;r=Po(s)?de(s.target,{keyAttrs:o,maxStringLength:i}):de(s,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&_().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function Io(t){for(let n=0;n<t.args.length;n++)if(t.args[n]==="ref=Ref<"){t.args[n+1]="viewRef";break}let e={category:"console",data:{arguments:t.args,logger:"console"},level:Tt(t.level),message:Ue(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${Ue(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;_().addBreadcrumb(e,{input:t.args,level:t.level})}function wo(t){let{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[se];if(!e||!n||!r)return;let{method:o,url:i,status_code:s,body:a}=r,c={method:o,url:i,status_code:s},u={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n};_().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Uo(t){let{startTimestamp:e,endTimestamp:n}=t;if(n&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let r=t.fetchData,o={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};_().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},o)}else{let r={...t.fetchData,status_code:t.response&&t.response.status},o={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};_().addBreadcrumb({category:"fetch",data:r,type:"http"},o)}}function Ao(t){let e=t.from,n=t.to,r=xe(p.location.href),o=xe(e),i=xe(n);o.path||(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(e=o.relative),_().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Po(t){return!!t&&!!t.target}function Cn(t,{metadata:e,tunnel:n,dsn:r}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:G(r)}},i=Bo(t);return C(o,[i])}function Bo(t){return[{type:"user_report"},t]}var rt=class extends P{constructor(e){let n=p.SENTRY_SDK_SOURCE||St();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:Q}],version:Q},super(e),e.sendClientReports&&p.document&&p.document.addEventListener("visibilitychange",()=>{p.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Gn(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Mn(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){let r=this.getIntegrationById(jt);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(e),super.sendEvent(e,n)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("SDK not enabled, will not capture user feedback.");return}let n=Cn(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("Sending outcomes:",e);let n=It(e,this._options.tunnel&&G(this._dsn));this._sendEnvelope(n)}};var De;function Yn(){if(De)return De;if(Se(p.fetch))return De=p.fetch.bind(p);let t=p.document,e=p.fetch;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return De=e.bind(p)}function $n(){De=void 0}function jn(t,e=Yn()){let n=0,r=0;function o(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return $n(),n-=s,r--,J(c)}}return Ee(t,o)}var Lo=4;function Hn(t){function e(n){return new h((r,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Lo&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(let s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&i.setRequestHeader(s,t.headers[s]);i.send(n.body)})}return Ee(t,e)}var ot="?";var Fo=30,Go=40,Mo=50;function Ht(t,e,n,r){let o={filename:t,function:e,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var Co=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Yo=/\((\S*)(?::(\d+))(?::(\d+))\)/,$o=t=>{let e=Co.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let i=Yo.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}let[r,o]=qn(e[1]||ot,e[2]);return Ht(o,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},jo=[Fo,$o],Ho=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qo=t=>{let e=Ho.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=Wo.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],o=e[1]||ot;return[o,r]=qn(o,r),Ht(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},zo=[Mo,qo],Ko=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vo=t=>{let e=Ko.exec(t);return e?Ht(e[2],e[1]||ot,+e[3],e[4]?+e[4]:void 0):void 0},Xo=[Go,Vo];var Jo=[jo,zo,Xo],Wn=Be(...Jo),qn=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:ot,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var R=class{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=R.id}__init2(){this._installFunc={onerror:Zo,onunhandledrejection:Qo}}constructor(e){R.prototype.__init.call(this),R.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let n in e){let r=this._installFunc[n];r&&e[n]&&(ni(n),r(),this._installFunc[n]=void 0)}}};R.__initStatic();function Zo(){D("error",t=>{let[e,n,r]=Vn();if(!e.getIntegration(R))return;let{msg:o,url:i,line:s,column:a,error:c}=t;if(Gt()||c&&c.__sentry_own_request__)return;let u=c===void 0&&v(o)?ti(o,i,s,a):zn(tt(n,c||o,void 0,r,!1),i,s,a);u.level="error",Kn(e,c,u,"onerror")})}function Qo(){D("unhandledrejection",t=>{let[e,n,r]=Vn();if(!e.getIntegration(R))return;let o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch{}if(Gt()||o&&o.__sentry_own_request__)return!0;let i=fe(o)?ei(o):tt(n,o,void 0,r,!0);i.level="error",Kn(e,o,i,"onunhandledrejection")})}function ei(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function ti(t,e,n,r){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=ue(t)?t.message:t,s="Error",a=i.match(o);return a&&(s=a[1],i=a[2]),zn({exception:{values:[{type:s,value:i}]}},e,n,r)}function zn(t,e,n,r){let o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=v(e)&&e.length>0?e:ft();return c.length===0&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:l}),t}function ni(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Global Handler attached: ${t}`)}function Kn(t,e,n,r){W(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Vn(){let t=_(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}var ri=["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"],j=class{static __initStatic(){this.id="TryCatch"}__init(){this.name=j.id}constructor(e){j.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&g(p,"setTimeout",Xn),this._options.setInterval&&g(p,"setInterval",Xn),this._options.requestAnimationFrame&&g(p,"requestAnimationFrame",oi),this._options.XMLHttpRequest&&"XMLHttpRequest"in p&&g(XMLHttpRequest.prototype,"send",ii);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:ri).forEach(si)}};j.__initStatic();function Xn(t){return function(...e){let n=e[0];return e[0]=ee(n,{mechanism:{data:{function:N(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function oi(t){return function(e){return t.apply(this,[ee(e,{mechanism:{data:{function:"requestAnimationFrame",handler:N(t)},handled:!0,type:"instrument"}})])}}function ii(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&g(n,o,function(i){let s={mechanism:{data:{function:o,handler:N(i)},handled:!0,type:"instrument"}},a=ie(i);return a&&(s.mechanism.data.handler=N(a)),ee(i,s)})}),t.apply(this,e)}}function si(t){let e=p,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(g(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=ee(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:N(i),target:t},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[o,ee(i,{mechanism:{data:{function:"addEventListener",handler:N(i),target:t},handled:!0,type:"instrument"}}),s])}}),g(n,"removeEventListener",function(r){return function(o,i,s){let a=i;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var ai="cause",ci=5,B=class{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=B.id}constructor(e={}){B.prototype.__init.call(this),this._key=e.key||ai,this._limit=e.limit||ci}setupOnce(){let e=_().getClient();e&&Z((n,r)=>{let o=_().getIntegration(B);return o?ui(e.getOptions().stackParser,o._key,o._limit,n,r):n})}};B.__initStatic();function ui(t,e,n,r,o){if(!r.exception||!r.exception.values||!o||!H(o.originalException,Error))return r;let i=Jn(t,n,o.originalException,e);return r.exception.values=[...i,...r.exception.values],r}function Jn(t,e,n,r,o=[]){if(!H(n[r],Error)||o.length+1>=e)return o;let i=Yt(t,n[r]);return Jn(t,e,n[r],r,[i,...o])}var L=class{constructor(){L.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=L.id}setupOnce(){Z(e=>{if(_().getIntegration(L)){if(!p.navigator&&!p.location&&!p.document)return e;let n=e.request&&e.request.url||p.location&&p.location.href,{referrer:r}=p.document||{},{userAgent:o}=p.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...e.request,...n&&{url:n},headers:i};return{...e,request:s}}return e})}};L.__initStatic();var F=class{constructor(){F.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=F.id}setupOnce(e,n){let r=o=>{if(o.type)return o;let i=n().getIntegration(F);if(i){try{if(fi(o,i._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return i._previousEvent=o}return i._previousEvent=o}return o};r.id=this.name,e(r)}};F.__initStatic();function fi(t,e){return e?!!(di(t,e)||li(t,e)):!1}function di(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!tr(t,e)||!er(t,e))}function li(t,e){let n=Zn(e),r=Zn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!tr(t,e)||!er(t,e))}function er(t,e){let n=Qn(t),r=Qn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function tr(t,e){let 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{return!1}}function Zn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Qn(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}var rr=[new ae.InboundFilters,new ae.FunctionToString,new j,new $,new R,new B,new F,new L];function Wt(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=rr),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),p.SENTRY_RELEASE&&p.SENTRY_RELEASE.id&&(t.release=p.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:mt(t.stackParser||Wn),integrations:Pt(t),transport:t.transport||(Le()?jn:Hn)};Lt(rt,e),t.autoSessionTracking&&pi()}function nr(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function pi(){if(typeof p.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let t=_();t.captureSession&&(nr(t),D("history",({from:e,to:n})=>{e===void 0||e===n||nr(_())}))}var qt={};Kt(qt,{Breadcrumbs:()=>$,Dedupe:()=>F,GlobalHandlers:()=>R,HttpContext:()=>L,LinkedErrors:()=>B,TryCatch:()=>j});var or={};p.Sentry&&p.Sentry.Integrations&&(or=p.Sentry.Integrations);var Wu={...or,...ae,...qt};function zt(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Q}],version:Q},Wt(t)}var k=Vt(Xt()),mi=()=>[{title:"New Remix App"},{name:"description",content:"Welcome to Remix!"}];zt({dsn:"https://49f2fcf8e6844e8380e259f3765a0515@o510822.ingest.sentry.io/4505472698810368"});function ir(){return(0,k.jsxs)("div",{style:{fontFamily:"system-ui, sans-serif",lineHeight:"1.8"},children:[(0,k.jsx)("h1",{children:"Welcome to Remix"}),(0,k.jsxs)("ul",{children:[(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/tutorials/blog",rel:"noreferrer",children:"15m Quickstart Blog Tutorial"})}),(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/tutorials/jokes",rel:"noreferrer",children:"Deep Dive Jokes App Tutorial"})}),(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/docs",rel:"noreferrer",children:"Remix Docs"})}),(0,k.jsx)("button",{onClick:()=>methodDoesNotExist(),children:"Break the world"})]})]})}export{ir as default,mi as meta}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import{c as Kt,d as Vt,f as Xt}from"/build/_shared/chunk-3EGTKHIP.js"; | |
var Jt=Object.prototype.toString; | |
function ye(t){switch(Jt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0; | |
default:return H(t,Error)}}function ce(t,e){return Jt.call(t)===`[object ${e}]`}function ue(t){return ce(t,"ErrorEvent")}function ke(t){return ce(t,"DOMError")}function it(t){return ce(t,"DOMException")}function v(t){return ce(t,"String")}function fe(t){return t===null||typeof t!="object"&&typeof t!="function"}function O(t){return ce(t,"Object")}function ne(t){return typeof Event<"u"&&H(t,Event)}function st(t){return typeof Element<"u"&&H(t,Element)}function at(t){return ce(t,"RegExp")}function re(t){return Boolean(t&&t.then&&typeof t.then=="function")}function ct(t){return O(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function ut(t){return typeof t=="number"&&t!==t}function H(t,e){try{return t instanceof e}catch{return!1}}function Oe(t){return t&&t.Math==Math?t:void 0}var y=typeof globalThis=="object"&&Oe(globalThis)||typeof window=="object"&&Oe(window)||typeof self=="object"&&Oe(self)||typeof globalThis=="object"&&Oe(globalThis)||function(){return this}()||{}; | |
function I(){return y}function oe(t,e,n){let r=n||y,o=r.__SENTRY__=r.__SENTRY__||{}; | |
return o[t]||(o[t]=e())}var sr=I(),ar=80; | |
function de(t,e={}){try{let n=t,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||ar; | |
for(; | |
n&&i++<r&&(u=cr(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=f)); | |
)o.push(u),s+=u.length,n=n.parentNode; | |
return o.reverse().join(a)}catch{return"<unknown>"}}function cr(t,e){let n=t,r=[],o,i,s,a,c; | |
if(!n||!n.tagName)return""; | |
r.push(n.tagName.toLowerCase()); | |
let u=e&&e.length?e.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null; | |
if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)}); | |
else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&v(o))for(i=o.split(/\s+/),c=0; | |
c<i.length; | |
c++)r.push(`.${i[c]}`); | |
let l=["aria-label","type","name","title","alt"]; | |
for(c=0; | |
c<l.length; | |
c++)s=l[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`); | |
return r.join("")}function ft(){try{return sr.document.location.href}catch{return""}}var ur="Sentry Logger ",le=["debug","info","warn","error","log","assert","trace"]; | |
function Ie(t){if(!("console"in y))return t(); | |
let e=y.console,n={}; | |
le.forEach(r=>{let o=e[r]&&e[r].__sentry_original__; | |
r in e&&o&&(n[r]=e[r],e[r]=o)}); | |
try{return t()}finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function Zt(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1}}; | |
return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?le.forEach(n=>{e[n]=(...r)=>{t&&Ie(()=>{y.console[n](`${ur}[${n}]:`,...r)})}}):le.forEach(n=>{e[n]=()=>{}}),e}var d; | |
typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?d=oe("logger",Zt):d=Zt(); | |
var fr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; | |
function dr(t){return t==="http"||t==="https"}function G(t,e=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=t; | |
return`${a}://${c}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Qt(t){let e=fr.exec(t); | |
if(!e){console.error(`Invalid Sentry Dsn: ${t}`); | |
return}let[n,r,o="",i,s="",a]=e.slice(1),c="",u=a,l=u.split("/"); | |
if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let f=u.match(/^\d+/); | |
f&&(u=f[0])}return en({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function en(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function lr(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0; | |
let{port:e,projectId:n,protocol:r}=t; | |
return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(d.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?dr(r)?e&&isNaN(parseInt(e,10))?(d.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(d.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(d.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function we(t){let e=typeof t=="string"?Qt(t):en(t); | |
if(!(!e||!lr(e)))return e}var S=class extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}; | |
function X(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Ue(t,e){if(!Array.isArray(t))return""; | |
let n=[]; | |
for(let r=0; | |
r<t.length; | |
r++){let o=t[r]; | |
try{n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function tn(t,e,n=!1){return v(t)?at(e)?e.test(t):v(e)?n?t===e:t.includes(e):!1:!1}function pe(t,e=[],n=!1){return e.some(r=>tn(t,r,n))}function g(t,e,n){if(!(e in t))return; | |
let r=t[e],o=n(r); | |
if(typeof o=="function")try{Ae(o,r)}catch{}t[e]=o}function _e(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function Ae(t,e){let n=e.prototype||{}; | |
t.prototype=e.prototype=n,_e(t,"__sentry_original__",e)}function ie(t){return t.__sentry_original__}function lt(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Pe(t){if(ye(t))return{message:t.message,name:t.name,stack:t.stack,...rn(t)}; | |
if(ne(t)){let e={type:t.type,target:nn(t.target),currentTarget:nn(t.currentTarget),...rn(t)}; | |
return typeof CustomEvent<"u"&&H(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function nn(t){try{return st(t)?de(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function rn(t){if(typeof t=="object"&&t!==null){let e={}; | |
for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]); | |
return e}else return{}}function pt(t,e=40){let n=Object.keys(Pe(t)); | |
if(n.sort(),!n.length)return"[object has no keys]"; | |
if(n[0].length>=e)return X(n[0],e); | |
for(let r=n.length; | |
r>0; | |
r--){let o=n.slice(0,r).join(", "); | |
if(!(o.length>e))return r===n.length?o:X(o,e)}return""}function me(t){return dt(t,new Map)}function dt(t,e){if(O(t)){let n=e.get(t); | |
if(n!==void 0)return n; | |
let r={}; | |
e.set(t,r); | |
for(let o of Object.keys(t))typeof t[o]<"u"&&(r[o]=dt(t[o],e)); | |
return r}if(Array.isArray(t)){let n=e.get(t); | |
if(n!==void 0)return n; | |
let r=[]; | |
return e.set(t,r),t.forEach(o=>{r.push(dt(o,e))}),r}return t}var sn=50,on=/\(error: (.*)\)/; | |
function Be(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]); | |
return(n,r=0)=>{let o=[],i=n.split(` | |
`); | |
for(let s=r; | |
s<i.length; | |
s++){let a=i[s]; | |
if(a.length>1024)continue; | |
let c=on.test(a)?a.replace(on,"$1"):a; | |
if(!c.match(/\S*Error: /)){for(let u of e){let l=u(c); | |
if(l){o.push(l); | |
break}}if(o.length>=sn)break}}return an(o)}}function mt(t){return Array.isArray(t)?Be(...t):t}function an(t){if(!t.length)return[]; | |
let e=t.slice(0,sn),n=e[e.length-1].function; | |
n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse(); | |
let r=e[e.length-1].function; | |
return r&&/captureMessage|captureException/.test(r)&&e.pop(),e.map(o=>({...o,filename:o.filename||e[e.length-1].filename,function:o.function||"?"}))}var _t="<anonymous>"; | |
function N(t){try{return!t||typeof t!="function"?_t:t.name||_t}catch{return _t}}var ht=I(); | |
function Le(){if(!("fetch"in ht))return!1; | |
try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Se(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function gt(){if(!Le())return!1; | |
if(Se(ht.fetch))return!0; | |
let t=!1,e=ht.document; | |
if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe"); | |
n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Se(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}var Fe=I(); | |
function cn(){let t=Fe.chrome,e=t&&t.app&&t.app.runtime,n="history"in Fe&&!!Fe.history.pushState&&!!Fe.history.replaceState; | |
return!e&&n}var m=I(),se="__sentry_xhr_v2__",be={},un={}; | |
function pr(t){if(!un[t])switch(un[t]=!0,t){case"console":_r(); | |
break; | |
case"dom":br(); | |
break; | |
case"xhr":hr(); | |
break; | |
case"fetch":mr(); | |
break; | |
case"history":gr(); | |
break; | |
case"error":Tr(); | |
break; | |
case"unhandledrejection":xr(); | |
break; | |
default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("unknown instrumentation type:",t); | |
return}}function D(t,e){be[t]=be[t]||[],be[t].push(e),pr(t)}function w(t,e){if(!(!t||!be[t]))for(let n of be[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Error while triggering instrumentation handler. | |
Type: ${t} | |
Name: ${N(n)} | |
Error:`,r)}}function _r(){"console"in m&&le.forEach(function(t){t in m.console&&g(m.console,t,function(e){return function(...n){w("console",{args:n,level:t}),e&&e.apply(m.console,n)}})})}function mr(){gt()&&g(m,"fetch",function(t){return function(...e){let{method:n,url:r}=ln(e),o={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()}; | |
return w("fetch",{...o}),t.apply(m,e).then(i=>(w("fetch",{...o,endTimestamp:Date.now(),response:i}),i),i=>{throw w("fetch",{...o,endTimestamp:Date.now(),error:i}),i})}})}function Et(t,e){return!!t&&typeof t=="object"&&!!t[e]}function fn(t){return typeof t=="string"?t:t?Et(t,"url")?t.url:t.toString?t.toString():"":""}function ln(t){if(t.length===0)return{method:"GET",url:""}; | |
if(t.length===2){let[n,r]=t; | |
return{url:fn(n),method:Et(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0]; | |
return{url:fn(e),method:Et(e,"method")?String(e.method).toUpperCase():"GET"}}function hr(){if(!("XMLHttpRequest"in m))return; | |
let t=XMLHttpRequest.prototype; | |
g(t,"open",function(e){return function(...n){let r=n[1],o=this[se]={method:v(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}}; | |
v(r)&&o.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0); | |
let i=()=>{let s=this[se]; | |
if(s&&this.readyState===4){try{s.status_code=this.status}catch{}w("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}}; | |
return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?g(this,"onreadystatechange",function(s){return function(...a){return i(),s.apply(this,a)}}):this.addEventListener("readystatechange",i),g(this,"setRequestHeader",function(s){return function(...a){let[c,u]=a,l=this[se]; | |
return l&&(l.request_headers[c.toLowerCase()]=u),s.apply(this,a)}}),e.apply(this,n)}}),g(t,"send",function(e){return function(...n){let r=this[se]; | |
return r&&n[0]!==void 0&&(r.body=n[0]),w("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}var Ge; | |
function gr(){if(!cn())return; | |
let t=m.onpopstate; | |
m.onpopstate=function(...n){let r=m.location.href,o=Ge; | |
if(Ge=r,w("history",{from:o,to:r}),t)try{return t.apply(this,n)}catch{}}; | |
function e(n){return function(...r){let o=r.length>2?r[2]:void 0; | |
if(o){let i=Ge,s=String(o); | |
Ge=s,w("history",{from:i,to:s})}return n.apply(this,r)}}g(m.history,"pushState",e),g(m.history,"replaceState",e)}var Er=1e3,Me,Ce; | |
function yr(t,e){if(!t||t.type!==e.type)return!0; | |
try{if(t.target!==e.target)return!0}catch{}return!1}function Sr(t){if(t.type!=="keypress")return!1; | |
try{let e=t.target; | |
if(!e||!e.tagName)return!0; | |
if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function dn(t,e=!1){return n=>{if(!n||Ce===n||Sr(n))return; | |
let r=n.type==="keypress"?"input":n.type; | |
Me===void 0?(t({event:n,name:r,global:e}),Ce=n):yr(Ce,n)&&(t({event:n,name:r,global:e}),Ce=n),clearTimeout(Me),Me=m.setTimeout(()=>{Me=void 0},Er)}}function br(){if(!("document"in m))return; | |
let t=w.bind(null,"dom"),e=dn(t,!0); | |
m.document.addEventListener("click",e,!1),m.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let r=m[n]&&m[n].prototype; | |
!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(g(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0}; | |
if(!l.handler){let f=dn(t); | |
l.handler=f,o.call(this,i,f,a)}l.refCount++}catch{}return o.call(this,i,s,a)}}),g(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i]; | |
l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}var Ye=null; | |
function Tr(){Ye=m.onerror,m.onerror=function(t,e,n,r,o){return w("error",{column:r,error:o,line:n,msg:t,url:e}),Ye&&!Ye.__SENTRY_LOADER__?Ye.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}var $e=null; | |
function xr(){$e=m.onunhandledrejection,m.onunhandledrejection=function(t){return w("unhandledrejection",t),$e&&!$e.__SENTRY_LOADER__?$e.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function pn(){let t=typeof WeakSet=="function",e=t?new WeakSet:[]; | |
function n(o){if(t)return e.has(o)?!0:(e.add(o),!1); | |
for(let i=0; | |
i<e.length; | |
i++)if(e[i]===o)return!0; | |
return e.push(o),!1}function r(o){if(t)e.delete(o); | |
else for(let i=0; | |
i<e.length; | |
i++)if(e[i]===o){e.splice(i,1); | |
break}}return[n,r]}function M(){let t=y,e=t.crypto||t.msCrypto; | |
if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,""); | |
let n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16; | |
return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function _n(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function U(t){let{message:e,event_id:n}=t; | |
if(e)return e; | |
let r=_n(t); | |
return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function he(t,e,n){let r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{}; | |
i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function W(t,e){let n=_n(t); | |
if(!n)return; | |
let r={type:"generic",handled:!0},o=n.mechanism; | |
if(n.mechanism={...r,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data}; | |
n.mechanism.data=i}}function je(t){if(t&&t.__sentry_captured__)return!0; | |
try{_e(t,"__sentry_captured__",!0)}catch{}return!1}function Te(t){return Array.isArray(t)?t:[t]}function yt(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function St(){return"npm"}function mn(){return!yt()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function hn(t,e){return t.require(e)}function A(t,e=100,n=1/0){try{return He("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function We(t,e=3,n=100*1024){let r=A(t,e); | |
return Dr(r)>n?We(t,e-1,n):r}function He(t,e,n=1/0,r=1/0,o=pn()){let[i,s]=o; | |
if(e==null||["number","boolean","string"].includes(typeof e)&&!ut(e))return e; | |
let a=Rr(t,e); | |
if(!a.startsWith("[object "))return a; | |
if(e.__sentry_skip_normalization__)return e; | |
let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n; | |
if(c===0)return a.replace("object ",""); | |
if(i(e))return"[Circular ~]"; | |
let u=e; | |
if(u&&typeof u.toJSON=="function")try{let E=u.toJSON(); | |
return He("",E,c-1,r,o)}catch{}let l=Array.isArray(e)?[]:{},f=0,b=Pe(e); | |
for(let E in b){if(!Object.prototype.hasOwnProperty.call(b,E))continue; | |
if(f>=r){l[E]="[MaxProperties ~]"; | |
break}let te=b[E]; | |
l[E]=He(E,te,c-1,r,o),f++}return s(e),l}function Rr(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]"; | |
if(t==="domainEmitter")return"[DomainEmitter]"; | |
if(typeof globalThis<"u"&&e===globalThis)return"[Global]"; | |
if(typeof window<"u"&&e===window)return"[Window]"; | |
if(typeof document<"u"&&e===document)return"[Document]"; | |
if(ct(e))return"[SyntheticEvent]"; | |
if(typeof e=="number"&&e!==e)return"[NaN]"; | |
if(typeof e=="function")return`[Function: ${N(e)}]`; | |
if(typeof e=="symbol")return`[${String(e)}]`; | |
if(typeof e=="bigint")return`[BigInt: ${String(e)}]`; | |
let n=vr(e); | |
return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function vr(t){let e=Object.getPrototypeOf(t); | |
return e?e.constructor.name:"null prototype"}function Nr(t){return~-encodeURI(t).split(/%..|./).length}function Dr(t){return Nr(JSON.stringify(t))}var q; | |
(function(t){t[t.PENDING=0]="PENDING"; | |
let n=1; | |
t[t.RESOLVED=n]="RESOLVED"; | |
let r=2; | |
t[t.REJECTED=r]="REJECTED"})(q||(q={})); | |
function T(t){return new h(e=>{e(t)})}function J(t){return new h((e,n)=>{n(t)})}var h=class{__init(){this._state=q.PENDING}__init2(){this._handlers=[]}constructor(e){h.prototype.__init.call(this),h.prototype.__init2.call(this),h.prototype.__init3.call(this),h.prototype.__init4.call(this),h.prototype.__init5.call(this),h.prototype.__init6.call(this); | |
try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new h((r,o)=>{this._handlers.push([!1,i=>{if(!e)r(i); | |
else try{r(e(i))}catch(s){o(s)}},i=>{if(!n)o(i); | |
else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new h((n,r)=>{let o,i; | |
return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){r(o); | |
return}n(o)})})}__init3(){this._resolve=e=>{this._setResult(q.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(q.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===q.PENDING){if(re(n)){n.then(this._resolve,this._reject); | |
return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===q.PENDING)return; | |
let e=this._handlers.slice(); | |
this._handlers=[],e.forEach(n=>{n[0]||(this._state===q.RESOLVED&&n[1](this._value),this._state===q.REJECTED&&n[2](this._value),n[0]=!0)})}}}; | |
function bt(t){let e=[]; | |
function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function o(s){if(!n())return J(new S("Not adding Promise because buffer limit was reached.")); | |
let a=s(); | |
return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new h((a,c)=>{let u=e.length; | |
if(!u)return a(!0); | |
let l=setTimeout(()=>{s&&s>0&&a(!1)},s); | |
e.forEach(f=>{T(f).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:e,add:o,drain:i}}function xe(t){if(!t)return{}; | |
let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); | |
if(!e)return{}; | |
let n=e[6]||"",r=e[8]||""; | |
return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}var gn=["fatal","error","warning","log","info","debug"]; | |
function Tt(t){return t==="warn"?"warning":gn.includes(t)?t:"log"}var yn=I(),Rt={nowSeconds:()=>Date.now()/1e3}; | |
function kr(){let{performance:t}=yn; | |
if(!t||!t.now)return; | |
let e=Date.now()-t.now(); | |
return{now:()=>t.now(),timeOrigin:e}}function Or(){try{return hn(module,"perf_hooks").performance}catch{return}}var xt=mn()?Or():kr(),En=xt===void 0?Rt:{nowSeconds:()=>(xt.timeOrigin+xt.now())/1e3},z=Rt.nowSeconds.bind(Rt),qe=En.nowSeconds.bind(En); | |
var Re,Ir=(()=>{let{performance:t}=yn; | |
if(!t||!t.now){Re="none"; | |
return}let e=3600*1e3,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):e,u=c<e; | |
return i||u?o<=c?(Re="timeOrigin",t.timeOrigin):(Re="navigationStart",s):(Re="dateNow",r)})(); | |
function C(t,e=[]){return[t,e]}function Nt(t,e){let[n,r]=t; | |
return[n,[...r,e]]}function ze(t,e){let n=t[1]; | |
for(let r of n){let o=r[0].type; | |
if(e(r,o))return!0}return!1}function vt(t,e){return(e||new TextEncoder).encode(t)}function Dt(t,e){let[n,r]=t,o=JSON.stringify(n); | |
function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[vt(o,e),s]:o.push(typeof s=="string"?vt(s,e):s)}for(let s of r){let[a,c]=s; | |
if(i(` | |
${JSON.stringify(a)} | |
`),typeof c=="string"||c instanceof Uint8Array)i(c); | |
else{let u; | |
try{u=JSON.stringify(c)}catch{u=JSON.stringify(A(c))}i(u)}}return typeof o=="string"?o:wr(o)}function wr(t){let e=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(e),r=0; | |
for(let o of t)n.set(o,r),r+=o.length; | |
return n}function kt(t,e){let n=typeof t.data=="string"?vt(t.data,e):t.data; | |
return[me({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var Ur={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"}; | |
function Ke(t){return Ur[t]}function Ve(t){if(!t||!t.sdk)return; | |
let{name:e,version:n}=t.sdk; | |
return{name:e,version:n}}function Ot(t,e,n,r){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext; | |
return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:G(r)},...o&&{trace:me({...o})}}}function It(t,e,n){let r=[{type:"client_report"},{timestamp:n||z(),discarded_events:t}]; | |
return C(e?{dsn:e}:{},[r])}function Sn(t,e=Date.now()){let n=parseInt(`${t}`,10); | |
if(!isNaN(n))return n*1e3; | |
let r=Date.parse(`${t}`); | |
return isNaN(r)?6e4:r-e}function bn(t,e){return t[e]||t.all||0}function wt(t,e,n=Date.now()){return bn(t,e)>n}function Ut(t,{statusCode:e,headers:n},r=Date.now()){let o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"]; | |
if(i)for(let a of i.trim().split(",")){let[c,u]=a.split(":",2),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3; | |
if(!u)o.all=r+f; | |
else for(let b of u.split("; | |
"))o[b]=r+f}else s?o.all=r+Sn(s,r):e===429&&(o.all=r+60*1e3); | |
return o}var Xe="production"; | |
function Tn(t){let e=qe(),n={sid:M(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ar(n)}; | |
return t&&K(n,t),n}function K(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||qe(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:M()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0; | |
else if(typeof e.duration=="number")t.duration=e.duration; | |
else{let n=t.timestamp-t.started; | |
t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function xn(t,e){let n={}; | |
e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),K(t,n)}function Ar(t){return me({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}var Pr=100,x=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){let n=new x; | |
return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...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=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&K(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan(); | |
return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this; | |
if(typeof e=="function"){let n=e(this); | |
return n instanceof x?n:this}return e instanceof x?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...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)):O(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Pr; | |
if(r<=0)return this; | |
let o={timestamp:z(),...e}; | |
return this._breadcrumbs=[...this._breadcrumbs,o].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts}; | |
let r=this._span.transaction; | |
if(r){e.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...e.sdkProcessingMetadata}; | |
let o=r.name; | |
o&&(e.tags={transaction:o,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Rn(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,n,r,o=0){return new h((i,s)=>{let a=e[o]; | |
if(n===null||typeof a!="function")i(n); | |
else{let c=a({...n},r); | |
(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&c===null&&d.log(`Event processor "${a.id}" dropped event`),re(c)?c.then(u=>this._notifyEventProcessors(e,u,r,o+1).then(i)).then(null,s):this._notifyEventProcessors(e,c,r,o+1).then(i).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Te(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}; | |
function Rn(){return oe("globalEventProcessors",()=>[])}function Z(t){Rn().push(t)}var vn=4,Br=100,ge=class{constructor(e,n=new x,r=vn){this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let n=this.getStackTop(); | |
n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=x.clone(this.getScope()); | |
return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let n=this.pushScope(); | |
try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:M(),o=new Error("Sentry syntheticException"); | |
return this._withClient((i,s)=>{i.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(e,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:M(),i=new Error(e); | |
return this._withClient((s,a)=>{s.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:o},a)}),o}captureEvent(e,n){let r=n&&n.event_id?n.event_id:M(); | |
return e.type||(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(e,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){let{scope:r,client:o}=this.getStackTop(); | |
if(!o)return; | |
let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Br}=o.getOptions&&o.getOptions()||{}; | |
if(s<=0)return; | |
let c={timestamp:z(),...e},u=i?Ie(()=>i(c,n)):c; | |
u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n)}configureScope(e){let{scope:n,client:r}=this.getStackTop(); | |
r&&e(n)}run(e){let n=Je(this); | |
try{e(this)}finally{Je(n)}}getIntegration(e){let n=this.getClient(); | |
if(!n)return null; | |
try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){let r=this._callExtensionMethod("startTransaction",e,n); | |
return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': | |
Sentry.addTracingExtensions(); | |
Sentry.init({...}); | |
`),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession(); | |
this._sendSessionUpdate()}endSession(){let n=this.getStackTop().scope,r=n.getSession(); | |
r&&xn(r),this._sendSessionUpdate(),n.setSession()}startSession(e){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Xe}=r&&r.getOptions()||{},{userAgent:s}=y.navigator||{},a=Tn({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession&&n.getSession(); | |
return c&&c.status==="ok"&&K(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),n=e&&e.getOptions(); | |
return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:n}=this.getStackTop(),r=e.getSession(); | |
r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){let{scope:n,client:r}=this.getStackTop(); | |
r&&e(r,n)}_callExtensionMethod(e,...n){let o=Ne().__SENTRY__; | |
if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,n); | |
(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}; | |
function Ne(){return y.__SENTRY__=y.__SENTRY__||{extensions:{},hub:void 0},y}function Je(t){let e=Ne(),n=ve(e); | |
return At(e,t),n}function _(){let t=Ne(); | |
if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub(); | |
if(e)return e}return Lr(t)}function Lr(t=Ne()){return(!Fr(t)||ve(t).isOlderThan(vn))&&At(t,new ge),ve(t)}function Fr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ve(t){return oe("hub",()=>new ge,t)}function At(t,e){if(!t)return!1; | |
let n=t.__SENTRY__=t.__SENTRY__||{}; | |
return n.hub=e,!0}function Ze(t,e){return _().captureException(t,{captureContext:e})}function Qe(t){_().withScope(t)}var Gr="7"; | |
function Mr(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:""; | |
return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Cr(t){return`${Mr(t)}${t.projectId}/envelope/`}function Yr(t,e){return lt({sentry_key:t.publicKey,sentry_version:Gr,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Nn(t,e={}){let n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk; | |
return n||`${Cr(t)}?${Yr(t,r)}`}function $r(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=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Dn(t,e,n,r){let o=Ve(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&{dsn:G(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]; | |
return C(i,[s])}function kn(t,e,n,r){let o=Ve(n),i=t.type&&t.type!=="replay_event"?t.type:"event"; | |
$r(t,n&&n.sdk); | |
let s=Ot(t,o,r,e); | |
return delete t.sdkProcessingMetadata,C(s,[[{type:i},t]])}var On=[]; | |
function jr(t){let e={}; | |
return t.forEach(n=>{let{name:r}=n,o=e[r]; | |
o&&!o.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function Pt(t){let e=t.defaultIntegrations||[],n=t.integrations; | |
e.forEach(s=>{s.isDefaultInstance=!0}); | |
let r; | |
Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Te(n(e)):r=e; | |
let o=jr(r),i=Hr(o,s=>s.name==="Debug"); | |
if(i!==-1){let[s]=o.splice(i,1); | |
o.push(s)}return o}function In(t){let e={}; | |
return t.forEach(n=>{n&&Bt(n,e)}),e}function Bt(t,e){e[t.name]=t,On.indexOf(t.name)===-1&&(t.setupOnce(Z,_),On.push(t.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Integration installed: ${t.name}`))}function Hr(t,e){for(let n=0; | |
n<t.length; | |
n++)if(e(t[n])===!0)return n; | |
return-1}function Un(t,e,n,r){let{normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=t,s={...e,event_id:e.event_id||n.event_id||M(),timestamp:e.timestamp||z()},a=n.integrations||t.integrations.map(l=>l.name); | |
Wr(s,t),Kr(s,a),e.type===void 0&&qr(s,t.stackParser); | |
let c=r; | |
n.captureContext&&(c=x.clone(c).update(n.captureContext)); | |
let u=T(s); | |
if(c){if(c.getAttachments){let l=[...n.attachments||[],...c.getAttachments()]; | |
l.length&&(n.attachments=l)}u=c.applyToEvent(s,n)}return u.then(l=>(l&&zr(l),typeof o=="number"&&o>0?Vr(l,o,i):l))}function Wr(t,e){let{environment:n,release:r,dist:o,maxValueLength:i=250}=e; | |
"environment"in t||(t.environment="environment"in e?n:Xe),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=X(t.message,i)); | |
let s=t.exception&&t.exception.values&&t.exception.values[0]; | |
s&&s.value&&(s.value=X(s.value,i)); | |
let a=t.request; | |
a&&a.url&&(a.url=X(a.url,i))}var wn=new WeakMap; | |
function qr(t,e){let n=y._sentryDebugIds; | |
if(!n)return; | |
let r,o=wn.get(e); | |
o?r=o:(r=new Map,wn.set(e,r)); | |
let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a); | |
u?c=u:(c=e(a),r.set(a,c)); | |
for(let l=c.length-1; | |
l>=0; | |
l--){let f=c[l]; | |
if(f.filename){s[f.filename]=n[a]; | |
break}}return s},{}); | |
try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function zr(t){let e={}; | |
try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return; | |
t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[]; | |
let n=t.debug_meta.images; | |
Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function Kr(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Vr(t,e,n){if(!t)return null; | |
let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:A(o.data,e,n)}}))},...t.user&&{user:A(t.user,e,n)},...t.contexts&&{contexts:A(t.contexts,e,n)},...t.extra&&{extra:A(t.extra,e,n)}}; | |
return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=A(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>(o.data&&(o.data=A(o.data,e,n)),o))),r}var An="Not capturing exception because it's already been captured.",P=class{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(P.prototype.__init.call(this),P.prototype.__init2.call(this),P.prototype.__init3.call(this),P.prototype.__init4.call(this),P.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=we(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("No DSN provided, client will not do anything."),this._dsn){let n=Nn(this._dsn,e); | |
this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(je(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(An); | |
return}let o=n&&n.event_id; | |
return this._process(this.eventFromException(e,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(e,n,r,o){let i=r&&r.event_id,s=fe(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r); | |
return this._process(s.then(a=>this._captureEvent(a,r,o)).then(a=>{i=a})),i}captureEvent(e,n,r){if(n&&n.originalException&&je(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(An); | |
return}let o=n&&n.event_id; | |
return this._process(this._captureEvent(e,n,r).then(i=>{o=i})),o}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("SDK not enabled, will not capture session."); | |
return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),K(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let n=this._transport; | |
return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(o=>r&&o)):T(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=In(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){Bt(e,this._integrations)}sendEvent(e,n={}){if(this._dsn){let r=kn(e,this._dsn,this._options._metadata,this._options.tunnel); | |
for(let i of n.attachments||[])r=Nt(r,kt(i,this._options.transportOptions&&this._options.transportOptions.textEncoder)); | |
let o=this._sendEnvelope(r); | |
o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}}sendSession(e){if(this._dsn){let n=Dn(e,this._dsn,this._options._metadata,this._options.tunnel); | |
this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){let o=`${e}:${n}`; | |
(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_updateSessionFromEvent(e,n){let r=!1,o=!1,i=n.exception&&n.exception.values; | |
if(i){o=!0; | |
for(let c of i){let u=c.mechanism; | |
if(u&&u.handled===!1){r=!0; | |
break}}}let s=e.status==="ok"; | |
(s&&e.errors===0||s&&r)&&(K(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new h(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,e&&r>=e&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){let o=this.getOptions(),i=Object.keys(this._integrations); | |
return!n.integrations&&i.length>0&&(n.integrations=i),Un(o,e,n,r)}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(o=>o.event_id,o=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){let i=o; | |
i.logLevel==="log"?d.log(i.message):d.warn(i)}})}_processEvent(e,n,r){let o=this.getOptions(),{sampleRate:i}=o; | |
if(!this._isEnabled())return J(new S("SDK not enabled, will not capture event.","log")); | |
let s=Bn(e),a=Pn(e),c=e.type||"error",u=`before send for type \`${c}\``; | |
if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),J(new S(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log")); | |
let l=c==="replay_event"?"replay":c; | |
return this._prepareEvent(e,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",l,e),new S("An event processor returned `null`, will not send event.","log"); | |
if(n.data&&n.data.__sentry__===!0)return f; | |
let E=Jr(o,f,n); | |
return Xr(E,u)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",l,e),new S(`${u} returned \`null\`, will not send event.`,"log"); | |
let b=r&&r.getSession(); | |
!s&&b&&this._updateSessionFromEvent(b,f); | |
let E=f.transaction_info; | |
if(s&&E&&f.transaction!==e.transaction){let te="custom"; | |
f.transaction_info={...E,source:te}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof S?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new S(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. | |
Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Error while sending event:",n)}); | |
(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes; | |
return this._outcomes={},Object.keys(e).map(n=>{let[r,o]=n.split(":"); | |
return{reason:r,category:o,quantity:e[n]}})}}; | |
function Xr(t,e){let n=`${e} must return \`null\` or a valid event.`; | |
if(re(t))return t.then(r=>{if(!O(r)&&r!==null)throw new S(n); | |
return r},r=>{throw new S(`${e} rejected with ${r}`)}); | |
if(!O(t)&&t!==null)throw new S(n); | |
return t}function Jr(t,e,n){let{beforeSend:r,beforeSendTransaction:o}=t; | |
return Pn(e)&&r?r(e,n):Bn(e)&&o?o(e,n):e}function Pn(t){return t.type===void 0}function Bn(t){return t.type==="transaction"}function Lt(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?d.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")); | |
let n=_(); | |
n.getScope().update(e.initialScope); | |
let o=new t(e); | |
n.bindClient(o)}var Zr=30; | |
function Ee(t,e,n=bt(t.bufferSize||Zr)){let r={},o=s=>n.drain(s); | |
function i(s){let a=[]; | |
if(ze(s,(f,b)=>{let E=Ke(b); | |
if(wt(r,E)){let te=Ln(f,b); | |
t.recordDroppedEvent("ratelimit_backoff",E,te)}else a.push(f)}),a.length===0)return T(); | |
let c=C(s[0],a),u=f=>{ze(c,(b,E)=>{let te=Ln(b,E); | |
t.recordDroppedEvent(f,Ke(E),te)})},l=()=>e({body:Dt(c,t.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Ut(r,f),f),f=>{throw u("network_error"),f}); | |
return n.add(l).then(f=>f,f=>{if(f instanceof S)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error("Skipped sending event because buffer is full."),u("queue_overflow"),T(); | |
throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Ln(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}var Q="7.57.0"; | |
var ae={}; | |
Kt(ae,{FunctionToString:()=>V,InboundFilters:()=>Y}); | |
var Fn,V=class{constructor(){V.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=V.id}setupOnce(){Fn=Function.prototype.toString; | |
try{Function.prototype.toString=function(...e){let n=ie(this)||this; | |
return Fn.apply(n,e)}}catch{}}}; | |
V.__initStatic(); | |
var Qr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],eo=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],Y=class{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Y.id}constructor(e={}){this._options=e,Y.prototype.__init.call(this)}setupOnce(e,n){let r=o=>{let i=n(); | |
if(i){let s=i.getIntegration(Y); | |
if(s){let a=i.getClient(),c=a?a.getOptions():{},u=to(s._options,c); | |
return no(o,u)?null:o}}return o}; | |
r.id=this.name,e(r)}}; | |
Y.__initStatic(); | |
function to(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Qr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:eo],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function no(t,e){return e.ignoreInternal&&co(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being internal Sentry Error. | |
Event: ${U(t)}`),!0):ro(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`ignoreErrors\` option. | |
Event: ${U(t)}`),!0):oo(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. | |
Event: ${U(t)}`),!0):io(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to being matched by \`denyUrls\` option. | |
Event: ${U(t)}. | |
Url: ${et(t)}`),!0):so(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`Event dropped due to not being matched by \`allowUrls\` option. | |
Event: ${U(t)}. | |
Url: ${et(t)}`),!0)}function ro(t,e){return t.type||!e||!e.length?!1:ao(t).some(n=>pe(n,e))}function oo(t,e){if(t.type!=="transaction"||!e||!e.length)return!1; | |
let n=t.transaction; | |
return n?pe(n,e):!1}function io(t,e){if(!e||!e.length)return!1; | |
let n=et(t); | |
return n?pe(n,e):!1}function so(t,e){if(!e||!e.length)return!0; | |
let n=et(t); | |
return n?pe(n,e):!0}function ao(t){if(t.message)return[t.message]; | |
if(t.exception){let{values:e}=t.exception; | |
try{let{type:n="",value:r=""}=e&&e[e.length-1]||{}; | |
return[`${r}`,`${n}: ${r}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Cannot extract message for event ${U(t)}`),[]}}return[]}function co(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function uo(t=[]){for(let e=t.length-1; | |
e>=0; | |
e--){let n=t[e]; | |
if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function et(t){try{let e; | |
try{e=t.exception.values[0].stacktrace.frames}catch{}return e?uo(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.error(`Cannot extract url for event ${U(t)}`),null}}var p=y,Ft=0; | |
function Gt(){return Ft>0}function To(){Ft++,setTimeout(()=>{Ft--})}function ee(t,e={},n){if(typeof t!="function")return t; | |
try{let o=t.__sentry_wrapped__; | |
if(o)return o; | |
if(ie(t))return t}catch{return t}let r=function(){let o=Array.prototype.slice.call(arguments); | |
try{n&&typeof n=="function"&&n.apply(this,arguments); | |
let i=o.map(s=>ee(s,e)); | |
return t.apply(this,i)}catch(i){throw To(),Qe(s=>{s.addEventProcessor(a=>(e.mechanism&&(he(a,void 0,void 0),W(a,e.mechanism)),a.extra={...a.extra,arguments:o},a)),Ze(i)}),i}}; | |
try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}Ae(r,t),_e(t,"__sentry_wrapped__",r); | |
try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Yt(t,e){let n=$t(t,e),r={type:e&&e.name,value:No(e)}; | |
return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function xo(t,e,n,r){let i=_().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:ne(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Do(e,{isUnhandledRejection:r})}]},extra:{__serialized__:We(e,s)}}; | |
if(n){let c=$t(t,n); | |
c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}function Mt(t,e){return{exception:{values:[Yt(t,e)]}}}function $t(t,e){let n=e.stacktrace||e.stack||"",r=vo(e); | |
try{return t(n,r)}catch{}return[]}var Ro=/Minified React error #\d+; | |
/i; | |
function vo(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop; | |
if(Ro.test(t.message))return 1}return 0}function No(t){let e=t&&t.message; | |
return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Gn(t,e,n,r){let o=n&&n.syntheticException||void 0,i=tt(t,e,o,r); | |
return W(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),T(i)}function Mn(t,e,n="info",r,o){let i=r&&r.syntheticException||void 0,s=Ct(t,e,i,o); | |
return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),T(s)}function tt(t,e,n,r,o){let i; | |
if(ue(e)&&e.error)return Mt(t,e.error); | |
if(ke(e)||it(e)){let s=e; | |
if("stack"in e)i=Mt(t,e); | |
else{let a=s.name||(ke(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a; | |
i=Ct(t,c,n,r),he(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return ye(e)?Mt(t,e):O(e)||ne(e)?(i=xo(t,e,n,o),W(i,{synthetic:!0}),i):(i=Ct(t,e,n,r),he(i,`${e}`,void 0),W(i,{synthetic:!0}),i)}function Ct(t,e,n,r){let o={message:e}; | |
if(r&&n){let i=$t(t,n); | |
i.length&&(o.exception={values:[{value:e,stacktrace:{frames:i}}]})}return o}function Do(t,{isUnhandledRejection:e}){let n=pt(t),r=e?"promise rejection":"exception"; | |
return ue(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:ne(t)?`Event \`${ko(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ko(t){try{let e=Object.getPrototypeOf(t); | |
return e?e.constructor.name:void 0}catch{}}var nt=1024,jt="Breadcrumbs",$=class{static __initStatic(){this.id=jt}__init(){this.name=$.id}constructor(e){$.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&D("console",Io),this.options.dom&&D("dom",Oo(this.options.dom)),this.options.xhr&&D("xhr",wo),this.options.fetch&&D("fetch",Uo),this.options.history&&D("history",Ao)}addSentryBreadcrumb(e){this.options.sentry&&_().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:U(e)},{event:e})}}; | |
$.__initStatic(); | |
function Oo(t){function e(n){let r,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0; | |
i&&i>nt&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn(`\`dom.maxStringLength\` cannot exceed ${nt}, but a value of ${i} was configured. Sentry will use ${nt} instead.`),i=nt),typeof o=="string"&&(o=[o]); | |
try{let s=n.event; | |
r=Po(s)?de(s.target,{keyAttrs:o,maxStringLength:i}):de(s,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&_().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function Io(t){for(let n=0; | |
n<t.args.length; | |
n++)if(t.args[n]==="ref=Ref<"){t.args[n+1]="viewRef"; | |
break}let e={category:"console",data:{arguments:t.args,logger:"console"},level:Tt(t.level),message:Ue(t.args," ")}; | |
if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${Ue(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1); | |
else return; | |
_().addBreadcrumb(e,{input:t.args,level:t.level})}function wo(t){let{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[se]; | |
if(!e||!n||!r)return; | |
let{method:o,url:i,status_code:s,body:a}=r,c={method:o,url:i,status_code:s},u={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n}; | |
_().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Uo(t){let{startTimestamp:e,endTimestamp:n}=t; | |
if(n&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let r=t.fetchData,o={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n}; | |
_().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},o)}else{let r={...t.fetchData,status_code:t.response&&t.response.status},o={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n}; | |
_().addBreadcrumb({category:"fetch",data:r,type:"http"},o)}}function Ao(t){let e=t.from,n=t.to,r=xe(p.location.href),o=xe(e),i=xe(n); | |
o.path||(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(e=o.relative),_().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Po(t){return!!t&&!!t.target}function Cn(t,{metadata:e,tunnel:n,dsn:r}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:G(r)}},i=Bo(t); | |
return C(o,[i])}function Bo(t){return[{type:"user_report"},t]}var rt=class extends P{constructor(e){let n=p.SENTRY_SDK_SOURCE||St(); | |
e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:Q}],version:Q},super(e),e.sendClientReports&&p.document&&p.document.addEventListener("visibilitychange",()=>{p.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Gn(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Mn(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){let r=this.getIntegrationById(jt); | |
r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(e),super.sendEvent(e,n)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("SDK not enabled, will not capture user feedback."); | |
return}let n=Cn(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel}); | |
this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){let e=this._clearOutcomes(); | |
if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("No outcomes to send"); | |
return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("No dsn provided, will not send outcomes"); | |
return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log("Sending outcomes:",e); | |
let n=It(e,this._options.tunnel&&G(this._dsn)); | |
this._sendEnvelope(n)}}; | |
var De; | |
function Yn(){if(De)return De; | |
if(Se(p.fetch))return De=p.fetch.bind(p); | |
let t=p.document,e=p.fetch; | |
if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe"); | |
n.hidden=!0,t.head.appendChild(n); | |
let r=n.contentWindow; | |
r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return De=e.bind(p)}function $n(){De=void 0}function jn(t,e=Yn()){let n=0,r=0; | |
function o(i){let s=i.body.length; | |
n+=s,r++; | |
let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions}; | |
try{return e(t.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return $n(),n-=s,r--,J(c)}}return Ee(t,o)}var Lo=4; | |
function Hn(t){function e(n){return new h((r,o)=>{let i=new XMLHttpRequest; | |
i.onerror=o,i.onreadystatechange=()=>{i.readyState===Lo&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url); | |
for(let s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&i.setRequestHeader(s,t.headers[s]); | |
i.send(n.body)})}return Ee(t,e)}var ot="?"; | |
var Fo=30,Go=40,Mo=50; | |
function Ht(t,e,n,r){let o={filename:t,function:e,in_app:!0}; | |
return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var Co=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Yo=/\((\S*)(?::(\d+))(?::(\d+))\)/,$o=t=>{let e=Co.exec(t); | |
if(e){if(e[2]&&e[2].indexOf("eval")===0){let i=Yo.exec(e[2]); | |
i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}let[r,o]=qn(e[1]||ot,e[2]); | |
return Ht(o,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},jo=[Fo,$o],Ho=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qo=t=>{let e=Ho.exec(t); | |
if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let i=Wo.exec(e[3]); | |
i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],o=e[1]||ot; | |
return[o,r]=qn(o,r),Ht(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},zo=[Mo,qo],Ko=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vo=t=>{let e=Ko.exec(t); | |
return e?Ht(e[2],e[1]||ot,+e[3],e[4]?+e[4]:void 0):void 0},Xo=[Go,Vo]; | |
var Jo=[jo,zo,Xo],Wn=Be(...Jo),qn=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1; | |
return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:ot,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]}; | |
var R=class{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=R.id}__init2(){this._installFunc={onerror:Zo,onunhandledrejection:Qo}}constructor(e){R.prototype.__init.call(this),R.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50; | |
let e=this._options; | |
for(let n in e){let r=this._installFunc[n]; | |
r&&e[n]&&(ni(n),r(),this._installFunc[n]=void 0)}}}; | |
R.__initStatic(); | |
function Zo(){D("error",t=>{let[e,n,r]=Vn(); | |
if(!e.getIntegration(R))return; | |
let{msg:o,url:i,line:s,column:a,error:c}=t; | |
if(Gt()||c&&c.__sentry_own_request__)return; | |
let u=c===void 0&&v(o)?ti(o,i,s,a):zn(tt(n,c||o,void 0,r,!1),i,s,a); | |
u.level="error",Kn(e,c,u,"onerror")})}function Qo(){D("unhandledrejection",t=>{let[e,n,r]=Vn(); | |
if(!e.getIntegration(R))return; | |
let o=t; | |
try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch{}if(Gt()||o&&o.__sentry_own_request__)return!0; | |
let i=fe(o)?ei(o):tt(n,o,void 0,r,!0); | |
i.level="error",Kn(e,o,i,"onunhandledrejection")})}function ei(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function ti(t,e,n,r){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=ue(t)?t.message:t,s="Error",a=i.match(o); | |
return a&&(s=a[1],i=a[2]),zn({exception:{values:[{type:s,value:i}]}},e,n,r)}function zn(t,e,n,r){let o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=v(e)&&e.length>0?e:ft(); | |
return c.length===0&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:l}),t}function ni(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.log(`Global Handler attached: ${t}`)}function Kn(t,e,n,r){W(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Vn(){let t=_(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}; | |
return[t,n.stackParser,n.attachStacktrace]}var ri=["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"],j=class{static __initStatic(){this.id="TryCatch"}__init(){this.name=j.id}constructor(e){j.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&g(p,"setTimeout",Xn),this._options.setInterval&&g(p,"setInterval",Xn),this._options.requestAnimationFrame&&g(p,"requestAnimationFrame",oi),this._options.XMLHttpRequest&&"XMLHttpRequest"in p&&g(XMLHttpRequest.prototype,"send",ii); | |
let e=this._options.eventTarget; | |
e&&(Array.isArray(e)?e:ri).forEach(si)}}; | |
j.__initStatic(); | |
function Xn(t){return function(...e){let n=e[0]; | |
return e[0]=ee(n,{mechanism:{data:{function:N(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function oi(t){return function(e){return t.apply(this,[ee(e,{mechanism:{data:{function:"requestAnimationFrame",handler:N(t)},handled:!0,type:"instrument"}})])}}function ii(t){return function(...e){let n=this; | |
return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&g(n,o,function(i){let s={mechanism:{data:{function:o,handler:N(i)},handled:!0,type:"instrument"}},a=ie(i); | |
return a&&(s.mechanism.data.handler=N(a)),ee(i,s)})}),t.apply(this,e)}}function si(t){let e=p,n=e[t]&&e[t].prototype; | |
!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(g(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=ee(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:N(i),target:t},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[o,ee(i,{mechanism:{data:{function:"addEventListener",handler:N(i),target:t},handled:!0,type:"instrument"}}),s])}}),g(n,"removeEventListener",function(r){return function(o,i,s){let a=i; | |
try{let c=a&&a.__sentry_wrapped__; | |
c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var ai="cause",ci=5,B=class{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=B.id}constructor(e={}){B.prototype.__init.call(this),this._key=e.key||ai,this._limit=e.limit||ci}setupOnce(){let e=_().getClient(); | |
e&&Z((n,r)=>{let o=_().getIntegration(B); | |
return o?ui(e.getOptions().stackParser,o._key,o._limit,n,r):n})}}; | |
B.__initStatic(); | |
function ui(t,e,n,r,o){if(!r.exception||!r.exception.values||!o||!H(o.originalException,Error))return r; | |
let i=Jn(t,n,o.originalException,e); | |
return r.exception.values=[...i,...r.exception.values],r}function Jn(t,e,n,r,o=[]){if(!H(n[r],Error)||o.length+1>=e)return o; | |
let i=Yt(t,n[r]); | |
return Jn(t,e,n[r],r,[i,...o])}var L=class{constructor(){L.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=L.id}setupOnce(){Z(e=>{if(_().getIntegration(L)){if(!p.navigator&&!p.location&&!p.document)return e; | |
let n=e.request&&e.request.url||p.location&&p.location.href,{referrer:r}=p.document||{},{userAgent:o}=p.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...e.request,...n&&{url:n},headers:i}; | |
return{...e,request:s}}return e})}}; | |
L.__initStatic(); | |
var F=class{constructor(){F.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=F.id}setupOnce(e,n){let r=o=>{if(o.type)return o; | |
let i=n().getIntegration(F); | |
if(i){try{if(fi(o,i._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return i._previousEvent=o}return i._previousEvent=o}return o}; | |
r.id=this.name,e(r)}}; | |
F.__initStatic(); | |
function fi(t,e){return e?!!(di(t,e)||li(t,e)):!1}function di(t,e){let n=t.message,r=e.message; | |
return!(!n&&!r||n&&!r||!n&&r||n!==r||!tr(t,e)||!er(t,e))}function li(t,e){let n=Zn(e),r=Zn(t); | |
return!(!n||!r||n.type!==r.type||n.value!==r.value||!tr(t,e)||!er(t,e))}function er(t,e){let n=Qn(t),r=Qn(e); | |
if(!n&&!r)return!0; | |
if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1; | |
for(let o=0; | |
o<r.length; | |
o++){let i=r[o],s=n[o]; | |
if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function tr(t,e){let 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{return!1}}function Zn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Qn(t){let e=t.exception; | |
if(e)try{return e.values[0].stacktrace.frames}catch{return}}var rr=[new ae.InboundFilters,new ae.FunctionToString,new j,new $,new R,new B,new F,new L]; | |
function Wt(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=rr),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),p.SENTRY_RELEASE&&p.SENTRY_RELEASE.id&&(t.release=p.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0); | |
let e={...t,stackParser:mt(t.stackParser||Wn),integrations:Pt(t),transport:t.transport||(Le()?jn:Hn)}; | |
Lt(rt,e),t.autoSessionTracking&&pi()}function nr(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function pi(){if(typeof p.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.warn("Session tracking in non-browser environment with @sentry/browser is not supported."); | |
return}let t=_(); | |
t.captureSession&&(nr(t),D("history",({from:e,to:n})=>{e===void 0||e===n||nr(_())}))}var qt={}; | |
Kt(qt,{Breadcrumbs:()=>$,Dedupe:()=>F,GlobalHandlers:()=>R,HttpContext:()=>L,LinkedErrors:()=>B,TryCatch:()=>j}); | |
var or={}; | |
p.Sentry&&p.Sentry.Integrations&&(or=p.Sentry.Integrations); | |
var Wu={...or,...ae,...qt}; | |
function zt(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Q}],version:Q},Wt(t)}var k=Vt(Xt()),mi=()=>[{title:"New Remix App"},{name:"description",content:"Welcome to Remix!"}]; | |
zt({dsn:"https://49f2fcf8e6844e8380e259f3765a0515@o510822.ingest.sentry.io/4505472698810368"}); | |
function ir(){return(0,k.jsxs)("div",{style:{fontFamily:"system-ui, sans-serif",lineHeight:"1.8"},children:[(0,k.jsx)("h1",{children:"Welcome to Remix"}),(0,k.jsxs)("ul",{children:[(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/tutorials/blog",rel:"noreferrer",children:"15m Quickstart Blog Tutorial"})}),(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/tutorials/jokes",rel:"noreferrer",children:"Deep Dive Jokes App Tutorial"})}),(0,k.jsx)("li",{children:(0,k.jsx)("a",{target:"_blank",href:"https://remix.run/docs",rel:"noreferrer",children:"Remix Docs 2"})}),(0,k.jsx)("button",{onClick:()=>methodDoesNotExist(),children:"Break the world"})]})]})}export{ir as default,mi as meta}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment