PageSourceSearch

https://nhmteemill.com/assets/sentry.09480738.js

js nhmteemill.com collected 2026-09-27 09:44:49 UTC 68,899 bytes, 23 lines download raw bytes

1const Se=Object.prototype.toString;function be(e){switch(Se.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return H(e,Error)}}function C(e,t){return Se.call(e)===`[object ${t}]`}function Te(e){return C(e,"ErrorEvent")}function Kt(e){return C(e,"DOMError")}function tn(e){return C(e,"DOMException")}function U(e){return C(e,"String")}function Re(e){return e===null||typeof e!="object"&&typeof e!="function"}function M(e){return C(e,"Object")}function At(e){return typeof Event<"u"&&H(e,Event)}function en(e){return typeof Element<"u"&&H(e,Element)}function nn(e){return C(e,"RegExp")}function Bt(e){return Boolean(e&&e.then&&typeof e.then=="function")}function rn(e){return M(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function sn(e){return typeof e=="number"&&e!==e}function H(e,t){try{return e instanceof t}catch{return!1}}function et(e){return e&&e.Math==Math?e:void 0}const b=typeof globalThis=="object"&&et(globalThis)||typeof window=="object"&&et(window)||typeof self=="object"&&et(self)||typeof global=="object"&&et(global)||function(){return this}()||{};function Q(){return b}function Yt(e,t,n){const r=n||b,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const on=Q(),an=80;function Rt(e,t={}){try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||an;for(;n&&s++<r&&(u=cn(n,d),!(u==="html"||s>1&&o+i.length*c+u.length>=f));)i.push(u),o+=u.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function cn(e,t){const n=e,r=[];let i,s,o,a,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const u=t&&t.length?t.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}`),i=n.className,i&&U(i))for(s=i.split(/\s+/),c=0;c<s.length;c++)r.push(`.${s[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)o=d[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function un(){try{return on.document.location.href}catch{return""}}class y extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const fn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dn(e){return e==="http"||e==="https"}function _t(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function ln(e){const t=fn.exec(e);if(!t)throw new y(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",s,o="",a]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return Ne({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Ne(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function _n(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(s=>{if(!e[s])throw new y(`Invalid Sentry Dsn: ${s} missing`)}),!n.match(/^\d+$/))throw new y(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!dn(r))throw new y(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new y(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function pn(e){const t=typeof e=="string"?ln(e):Ne(e);return _n(t),t}const hn="Sentry Logger ",ut=["debug","info","warn","error","log","assert","trace"];function we(e){if(!("console"in b))return e();const t=b.console,n={};ut.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Xt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?ut.forEach(n=>{t[n]=(...r)=>{e&&we(()=>{b.console[n](`${hn}[${n}]:`,...r)})}}):ut.forEach(n=>{t[n]=()=>{}}),t}let l;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?l=Yt("logger",Xt):l=Xt();function W(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Jt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function gn(e,t,n=!1){return U(e)?nn(t)?t.test(e):U(t)?n?e===t:e.includes(t):!1:!1}function pt(e,t=[],n=!1){return t.some(r=>gn(e,r,n))}function E(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{De(i,r)}catch{}e[t]=i}function Pt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function De(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,Pt(e,"__sentry_original__",t)}function Gt(e){return e.__sentry_original__}function mn(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function ke(e){if(be(e))return{message:e.message,name:e.name,stack:e.stack,...Qt(e)};if(At(e)){const t={type:e.type,target:Zt(e.target),currentTarget:Zt(e.currentTarget),...Qt(e)};return typeof CustomEvent<"u"&&H(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zt(e){try{return en(e)?Rt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Qt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function En(e,t=40){const n=Object.keys(ke(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return W(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");
1if(!(i.length>t))return r===n.length?i:W(i,t)}return""}function Lt(e){return Nt(e,new Map)}function Nt(e,t){if(M(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Nt(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Nt(i,t))}),r}return e}const Oe=50,te=/\(error: (.*)\)/;function ve(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],s=n.split(`
2`);for(let o=r;o<s.length;o++){const a=s[o];if(a.length>1024)continue;const c=te.test(a)?a.replace(te,"$1"):a;for(const u of t){const d=u(c);if(d){i.push(d);break}}if(i.length>=Oe)break}return Sn(i)}}function yn(e){return Array.isArray(e)?ve(...e):e}function Sn(e){if(!e.length)return[];const t=e.slice(0,Oe),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const Et="<anonymous>";function I(e){try{return!e||typeof e!="function"?Et:e.name||Et}catch{return Et}}const wt=Q();function Ie(){if(!("fetch"in wt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Dt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bn(){if(!Ie())return!1;if(Dt(wt.fetch))return!0;let e=!1;const t=wt.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");
2n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Dt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const nt=Q();function Tn(){const e=nt.chrome,t=e&&e.app&&e.app.runtime,n="history"in nt&&!!nt.history.pushState&&!!nt.history.replaceState;return!t&&n}const h=Q(),z={},ee={};function Rn(e){if(!ee[e])switch(ee[e]=!0,e){case"console":Nn();break;case"dom":$n();break;case"xhr":kn();break;case"fetch":wn();break;case"history":On();break;case"error":Un();break;case"unhandledrejection":An();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("unknown instrumentation type:",e);return}}function w(e,t){z[e]=z[e]||[],z[e].push(t),Rn(e)}function T(e,t){if(!(!e||!z[e]))for(const n of z[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${I(n)}
5Error:`,r)}}function Nn(){"console"in h&&ut.forEach(function(e){e in h.console&&E(h.console,e,function(t){return function(...n){T("console",{args:n,level:e}),t&&t.apply(h.console,n)}})})}function wn(){!bn()||E(h,"fetch",function(e){return function(...t){const{method:n,url:r}=Dn(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return T("fetch",{...i}),e.apply(h,t).then(s=>(T("fetch",{...i,endTimestamp:Date.now(),response:s}),s),s=>{throw T("fetch",{...i,endTimestamp:Date.now(),error:s}),s})}})}function kt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function ne(e){return typeof e=="string"?e:e?kt(e,"url")?e.url:e.toString?e.toString():"":""}function Dn(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:ne(n),method:kt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:ne(t),method:kt(t,"method")?String(t.method).toUpperCase():"GET"}}function kn(){if(!("XMLHttpRequest"in h))return;const e=XMLHttpRequest.prototype;E(e,"open",function(t){return function(...n){const r=n[1],i=this.__sentry_xhr__={method:U(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};U(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this.__sentry_xhr__;if(!!o&&this.readyState===4){try{o.status_code=this.status}catch{}T("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?E(this,"onreadystatechange",function(o){return function(...a){return s(),o.apply(this,a)}}):this.addEventListener("readystatechange",s),E(this,"setRequestHeader",function(o){return function(...a){const[c,u]=a,d=this.__sentry_xhr__;return d&&(d.request_headers[c]=u),o.apply(this,a)}}),t.apply(this,n)}}),E(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),T("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let rt;function On(){if(!Tn())return;const e=h.onpopstate;h.onpopstate=function(...n){const r=h.location.href,i=rt;if(rt=r,T("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const s=rt,o=String(i);rt=o,T("history",{from:s,to:o})}return n.apply(this,r)}}E(h.history,"pushState",t),E(h.history,"replaceState",t)}const vn=1e3;let it,st;function In(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function xn(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function re(e,t=!1){return n=>{if(!n||st===n||xn(n))return;const r=n.type==="keypress"?"input":n.type;it===void 0?(e({event:n,name:r,global:t}),st=n):In(st,n)&&(e({event:n,name:r,global:t}),st=n),clearTimeout(it),it=h.setTimeout(()=>{it=void 0},vn)}}function $n(){if(!("document"in h))return;const e=T.bind(null,"dom"),t=re(e,!0);h.document.addEventListener("click",t,!1),h.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=h[n]&&h[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(E(r,"addEventListener",function(i){return function(s,o,a){if(s==="click"||s=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){const f=re(e);d.handler=f,i.call(this,s,f,a)}d.refCount++}catch{}return i.call(this,s,o,a)}}),E(r,"removeEventListener",function(i){return function(s,o,a){if(s==="click"||s=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,a),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,o,a)}}))})}let ot=null;function Un(){ot=h.onerror,h.onerror=function(e,t,n,r,i){return T("error",{column:r,error:i,line:n,msg:e,url:t}),ot&&!ot.__SENTRY_LOADER__?ot.apply(this,arguments):!1},h.onerror.__SENTRY_INSTRUMENTED__=!0}let at=null;function An(){at=h.onunhandledrejection,h.onunhandledrejection=function(e){return T("unhandledrejection",e),at&&!at.__SENTRY_LOADER__?at.apply(this,arguments):!0},h.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Bn(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let s=0;s<t.length;s++)if(t[s]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}}return[n,r]}function B(){const e=b,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.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 xe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function D(e){const{message:t,event_id:n}=e;if(t)return t;const r=xe(e);return r?r.type&&r.value?`${r.type}: ${r.value}
5`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ot(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function K(e,t){const n=xe(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i&&i.data,...t.data};n.mechanism.data=s}}function ie(e){if(e&&e.__sentry_captured__)return!0;try{Pt(e,"__sentry_captured__",!0)}catch{}return!1}function Mt(e){return Array.isArray(e)?e:[e]}function Yn(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Pn(){return"npm"}function $e(){return!Yn()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Gn(e,t){return e.require(t)}function N(e,t=1/0,n=1/0){try{return vt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ue(e,t=3,n=100*1024){const r=N(e,t);return jn(r)>n?Ue(e,t-1,n):r}function vt(e,t,n=1/0,r=1/0,i=Bn()){const[s,o]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!sn(t))return t;const a=Ln(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=n;if(typeof t.__sentry_override_normalization_depth__=="number"&&(c=t.__sentry_override_normalization_depth__),c===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return vt("",g,c-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const m=ke(t);for(const g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const x=m[g];d[g]=vt(g,x,c-1,r,i),f++}return o(t),d}function Ln(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":rn(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${I(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Mn(t)}]`}catch(n){return`**non-serializable** (${n})`}}function Mn(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Fn(e){return~-encodeURI(e).split(/%..|./).length}function jn(e){return Fn(JSON.stringify(e))}var R;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(R||(R={}));function A(e){return new S(t=>{t(e)})}function ft(e){return new S((t,n)=>{n(e)})}class S{__init(){this._state=R.PENDING}__init2(){this._handlers=[]}constructor(t){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),S.prototype.__init5.call(this),S.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new S((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new S((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(R.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(R.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===R.PENDING){if(Bt(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===R.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===R.RESOLVED&&n[1](this._value),this._state===R.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Cn(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function i(o){if(!n())return ft(new y("Not adding Promise because buffer limit was reached."));const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function s(o){return new S((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(f=>{A(f).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:i,drain:s}}function yt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Hn=["fatal","error","warning","log","info","debug"];function qn(e){return e==="warn"?"warning":Hn.includes(e)?e:"log"}const Ae=Q(),It={nowSeconds:()=>Date.now()/1e3};function Wn(){const{performance:e}=Ae;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function zn(){try{return Gn(module,"perf_hooks").performance}catch{return}}const St=$e()?zn():Wn(),se=St===void 0?It:{nowSeconds:()=>(St.timeOrigin+St.now())/1e3},ht=It.nowSeconds.bind(It),Ft=se.nowSeconds.bind(se);(()=>{const{performance:e}=Ae;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return s||u?i<=c?e.timeOrigin:o:r})();function tt(e,t=[]){return[e,t]}function Vn(e,t){const[n,r]=e;return[n,[...r,t]]}function oe(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function xt(e,t){return(t||new TextEncoder).encode(e)}function Kn(e,t){const[n,r]=e;let i=JSON.stringify(n);
5function s(o){typeof i=="string"?i=typeof o=="string"?i+o:[xt(i,t),o]:i.push(typeof o=="string"?xt(o,t):o)}for(const o of r){const[a,c]=o;if(s(`
6${JSON.stringify(a)}
7`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(N(c))}s(u)}}return typeof i=="string"?i:Xn(i)}function Xn(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Jn(e,t){const n=typeof e.data=="string"?xt(e.data,t):e.data;return[Lt({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Zn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function ae(e){return Zn[e]}function Be(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qn(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:_t(r)},...e.type==="transaction"&&i&&{trace:Lt({...i})}}}function tr(e,t,n){const r=[{type:"client_report"},{timestamp:n||ht(),discarded_events:e}];return tt(t?{dsn:t}:{},[r])}const er=60*1e3;function nr(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?er:r-t}function rr(e,t){return e[t]||e.all||0}function ir(e,t,n=Date.now()){return rr(e,t)>n}function sr(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const a of s.trim().split(",")){const[c,u]=a.split(":",2),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+f;else for(const m of u.split(";"))i[m]=r+f}else o?i.all=r+nr(o,r):t===429&&(i.all=r+60*1e3);return i}const Ye="production";function or(e){const t=Ft(),n={sid:B(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>cr(n)};return e&&F(n,e),n}function F(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ft(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:B()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ar(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),F(e,n)}function cr(e){return Lt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const ur=100;class O{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new O;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&F(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof O?n:this}
7return t instanceof O?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):M(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}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(t,n){const r=typeof n=="number"?n:ur;if(r<=0)return this;const i={timestamp:ht(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Pe(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new S((s,o)=>{const a=t[i];if(n===null||typeof a!="function")s(n);else{const c=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&c===null&&l.log(`Event processor "${a.id}" dropped event`),Bt(c)?c.then(u=>this._notifyEventProcessors(t,u,r,i+1).then(s)).then(null,o):this._notifyEventProcessors(t,c,r,i+1).then(s).then(null,o)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Mt(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Pe(){return Yt("globalEventProcessors",()=>[])}function jt(e){Pe().push(e)}const Ct=4,fr=100;class Ht{constructor(t,n=new O,r=Ct){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=O.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(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(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:B(),i=new Error("Sentry syntheticException");return this._withClient((s,o)=>{s.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},o)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:B(),s=new Error(t);return this._withClient((o,a)=>{o.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},a)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:B();return t.type||(this._lastEventId=r),this._withClient((i,s)=>{i.captureEvent(t,{...n,event_id:r},s)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=fr}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const c={timestamp:ht(),...t},u=s?we(()=>s(c,n)):c;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}
7setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=ce(this);try{t(this)}finally{ce(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&ar(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:s=Ye}=r&&r.getOptions()||{},{userAgent:o}=b.navigator||{},a=or({release:i,environment:s,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&F(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=gt().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function gt(){return b.__SENTRY__=b.__SENTRY__||{extensions:{},hub:void 0},b}function ce(e){const t=gt(),n=k(t);return qt(t,e),n}function p(){const e=gt();return(!Ge(e)||k(e).isOlderThan(Ct))&&qt(e,new Ht),$e()?dr(e):k(e)}function dr(e){try{const t=gt().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return k(e);if(!Ge(n)||k(n).isOlderThan(Ct)){const r=k(e).getStackTop();qt(n,new Ht(r.client,O.clone(r.scope)))}return k(n)}catch{return k(e)}}function Ge(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function k(e){return Yt("hub",()=>new Ht,e)}function qt(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function lr(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=p().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function _r(e,t){return p().captureException(e,{captureContext:t})}function is(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return p().captureMessage(e,n,r)}function ss(e){p().configureScope(e)}function os(e){p().addBreadcrumb(e)}function as(e,t){p().setTag(e,t)}function pr(e){p().withScope(e)}const hr="7";function gr(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function mr(e){return`${gr(e)}${e.projectId}/envelope/`}function Er(e,t){return mn({sentry_key:e.publicKey,sentry_version:hr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function yr(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${mr(e)}?${Er(e,r)}`}function Sr(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function br(e,t,n,r){const i=Be(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:_t(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return tt(s,[o])}function Tr(e,t,n,r){const i=Be(n),s=e.type&&e.type!=="replay_event"?e.type:"event";Sr(e,n&&n.sdk);const o=Qn(e,i,r,t);return delete e.sdkProcessingMetadata,tt(o,[[{type:s},e]])}const ue=[];function Rr(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
7i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Nr(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Mt(n(t)):r=t;const i=Rr(r),s=Dr(i,o=>o.name==="Debug");if(s!==-1){const[o]=i.splice(s,1);i.push(o)}return i}function wr(e){const t={};return e.forEach(n=>{n&&Le(n,t)}),t}function Le(e,t){t[e.name]=e,ue.indexOf(e.name)===-1&&(e.setupOnce(jt,p),ue.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log(`Integration installed: ${e.name}`))}function Dr(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function kr(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,o={...t,event_id:t.event_id||n.event_id||B(),timestamp:t.timestamp||ht()},a=n.integrations||e.integrations.map(d=>d.name);Or(o,e),Ir(o,a),vr(o,e.stackParser);let c=r;n.captureContext&&(c=O.clone(c).update(n.captureContext));let u=A(o);if(c){if(c.getAttachments){const d=[...n.attachments||[],...c.getAttachments()];d.length&&(n.attachments=d)}u=c.applyToEvent(o,n)}return u.then(d=>typeof i=="number"&&i>0?xr(d,i,s):d)}function Or(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ye),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=W(e.message,s));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=W(o.value,s));const a=e.request;a&&a.url&&(a.url=W(a.url,s))}function vr(e,t){const n=b._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce((o,a)=>{const c=t(a);for(let u=c.length-1;u>=0;u--){const d=c[u];if(d.filename){o[d.filename]=n[a];break}}return o},{}),i=new Set;try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&i.add(a.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const s=e.debug_meta.images;i.forEach(o=>{r[o]&&s.push({type:"sourcemap",code_file:o,debug_id:r[o]})})}function Ir(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function xr(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:N(i.data,t,n)}}))},...e.user&&{user:N(e.user,t,n)},...e.contexts&&{contexts:N(e.contexts,t,n)},...e.extra&&{extra:N(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=N(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=N(i.data,t,n)),i))),r}const fe="Not capturing exception because it's already been captured.";class ${__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if($.prototype.__init.call(this),$.prototype.__init2.call(this),$.prototype.__init3.call(this),$.prototype.__init4.call(this),$.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=pn(t.dsn);const n=yr(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(ie(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log(fe);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(s=>this._captureEvent(s,n,r)).then(s=>{i=s})),i}captureMessage(t,n,r,i){let s=r&&r.event_id;const o=Re(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(o.then(a=>this._captureEvent(a,r,i)).then(a=>{s=a})),s}captureEvent(t,n,r){if(n&&n.originalException&&ie(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log(fe);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(s=>{i=s})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),F(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
7return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):A(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=wr(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){Le(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=Tr(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Vn(r,Jn(s,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}}sendSession(t){if(this._dsn){const n=br(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,i=!1;const s=n.exception&&n.exception.values;if(s){i=!0;for(const c of s){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(F(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new S(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),kr(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const s=i;s.logLevel==="log"?l.log(s.message):l.warn(s)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:s}=i;if(!this._isEnabled())return ft(new y("SDK not enabled, will not capture event.","log"));const o=Fe(t),a=Me(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof s=="number"&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),ft(new y(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d=c==="replay_event"?"replay":c;return this._prepareEvent(t,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",d,t),new y("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const g=Ur(i,f,n);return $r(g,u)}
7).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",d,t),new y(`${u} returned \`null\`, will not send event.`,"log");const m=r&&r.getSession();!o&&m&&this._updateSessionFromEvent(m,f);const g=f.transaction_info;if(o&&g&&f.transaction!==t.transaction){const x="custom";f.transaction_info={...g,source:x}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof y?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new y(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8Reason: ${f}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function $r(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Bt(e))return e.then(r=>{if(!M(r)&&r!==null)throw new y(n);return r},r=>{throw new y(`${t} rejected with ${r}`)});if(!M(e)&&e!==null)throw new y(n);return e}function Ur(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return Me(t)&&r?r(t,n):Fe(t)&&i?i(t,n):t}function Me(e){return e.type===void 0}function Fe(e){return e.type==="transaction"}function Ar(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?l.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=p();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}const Br=30;function je(e,t,n=Cn(e.bufferSize||Br)){let r={};const i=o=>n.drain(o);function s(o){const a=[];if(oe(o,(f,m)=>{const g=ae(m);if(ir(r,g)){const x=de(f,m);e.recordDroppedEvent("ratelimit_backoff",g,x)}else a.push(f)}),a.length===0)return A();const c=tt(o[0],a),u=f=>{oe(c,(m,g)=>{const x=de(m,g);e.recordDroppedEvent(f,ae(g),x)})},d=()=>t({body:Kn(c,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=sr(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof y)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error("Skipped sending event because buffer is full."),u("queue_overflow"),A();throw f})}return s.__sentry__baseTransport__=!0,{send:s,flush:i}}function de(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const dt="7.47.0";let le;class X{constructor(){X.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=X.id}setupOnce(){le=Function.prototype.toString,Function.prototype.toString=function(...t){const n=Gt(this)||this;return le.apply(n,t)}}}X.__initStatic();const Yr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Y{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Y.id}constructor(t={}){this._options=t,Y.prototype.__init.call(this)}setupOnce(t,n){const r=i=>{const s=n();if(s){const o=s.getIntegration(Y);if(o){const a=s.getClient(),c=a?a.getOptions():{},u=Pr(o._options,c);return Gr(i,u)?null:i}}return i};r.id=this.name,t(r)}}Y.__initStatic();function Pr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Yr],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Gr(e,t){return t.ignoreInternal&&Hr(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being internal Sentry Error.
9Event: ${D(e)}`),!0):Lr(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
10Event: ${D(e)}`),!0):Mr(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11Event: ${D(e)}`),!0):Fr(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`denyUrls\` option.
12Event: ${D(e)}.
13Url: ${lt(e)}`),!0):jr(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to not being matched by \`allowUrls\` option.
14Event: ${D(e)}.
15Url: ${lt(e)}`),!0)}function Lr(e,t){return e.type||!t||!t.length?!1:Cr(e).some(n=>pt(n,t))}function Mr(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?pt(n,t):!1}function Fr(e,t){if(!t||!t.length)return!1;const n=lt(e);return n?pt(n,t):!1}function jr(e,t){if(!t||!t.length)return!0;const n=lt(e);return n?pt(n,t):!0}function Cr(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error(`Cannot extract message for event ${D(e)}`),[]}return[]}function Hr(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function qr(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function lt(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?qr(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.error(`Cannot extract url for event ${D(e)}`),null}}const _=b;let $t=0;function Ce(){return $t>0}function Wr(){$t++,setTimeout(()=>{$t--})}function j(e,t={}
15,n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(Gt(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const s=i.map(o=>j(o,t));return e.apply(this,s)}catch(s){throw Wr(),pr(o=>{o.addEventProcessor(a=>(t.mechanism&&(Ot(a,void 0,void 0),K(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),_r(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}De(r,e),Pt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function He(e,t){const n=Wt(e,t),r={type:t&&t.name,value:Xr(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function zr(e,t,n,r){const s=p().getClient(),o=s&&s.getOptions().normalizeDepth,a={exception:{values:[{type:At(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${En(t)}`}]},extra:{__serialized__:Ue(t,o)}};if(n){const c=Wt(e,n);c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}function bt(e,t){return{exception:{values:[He(e,t)]}}}function Wt(e,t){const n=t.stacktrace||t.stack||"",r=Kr(t);try{return e(n,r)}catch{}return[]}const Vr=/Minified React error #\d+;/i;function Kr(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Vr.test(e.message))return 1}return 0}function Xr(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Jr(e,t,n,r){const i=n&&n.syntheticException||void 0,s=zt(e,t,i,r);return K(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),A(s)}function Zr(e,t,n="info",r,i){const s=r&&r.syntheticException||void 0,o=Ut(e,t,s,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),A(o)}function zt(e,t,n,r,i){let s;if(Te(t)&&t.error)return bt(e,t.error);if(Kt(t)||tn(t)){const o=t;if("stack"in t)s=bt(e,t);else{const a=o.name||(Kt(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;s=Ut(e,c,n,r),Ot(s,c)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return be(t)?bt(e,t):M(t)||At(t)?(s=zr(e,t,n,i),K(s,{synthetic:!0}),s):(s=Ut(e,t,n,r),Ot(s,`${t}`,void 0),K(s,{synthetic:!0}),s)}function Ut(e,t,n,r){const i={message:t};if(r&&n){const s=Wt(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]})}return i}const ct=1024,qe="Breadcrumbs";class J{static __initStatic(){this.id=qe}__init(){this.name=J.id}constructor(t){J.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&w("console",ti),this.options.dom&&w("dom",Qr(this.options.dom)),this.options.xhr&&w("xhr",ei),this.options.fetch&&w("fetch",ni),this.options.history&&w("history",ri)}addSentryBreadcrumb(t){this.options.sentry&&p().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:D(t)},{event:t})}}J.__initStatic();function Qr(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>ct&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`\`dom.maxStringLength\` cannot exceed ${ct}, but a value of ${s} was configured. Sentry will use ${ct} instead.`),s=ct),typeof i=="string"&&(i=[i]);try{const o=n.event;r=ii(o)?Rt(o.target,{keyAttrs:i,maxStringLength:s}):Rt(o,{keyAttrs:i,maxStringLength:s})}catch{r="<unknown>"}r.length!==0&&p().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function ti(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:qn(e.level),message:Jt(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Jt(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;p().addBreadcrumb(t,{input:e.args,level:e.level})}function ei(e){const{startTimestamp:t,endTimestamp:n}=e;if(!t||!n||!e.xhr.__sentry_xhr__)return;const{method:r,url:i,status_code:s,body:o}=e.xhr.__sentry_xhr__,a={method:r,url:i,status_code:s},c={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};p().addBreadcrumb({category:"xhr",data:a,type:"http"},c)}function ni(e){const{startTimestamp:t,endTimestamp:n}=e;
15if(!!n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};p().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};p().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function ri(e){let t=e.from,n=e.to;const r=yt(_.location.href);let i=yt(t);const s=yt(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),p().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function ii(e){return e&&!!e.target}function si(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:_t(r)}},s=oi(e);return tt(i,[s])}function oi(e){return[{type:"user_report"},e]}class ai extends ${constructor(t){const n=_.SENTRY_SDK_SOURCE||Pn();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:dt}],version:dt},super(t),t.sendClientReports&&_.document&&_.document.addEventListener("visibilitychange",()=>{_.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Jr(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Zr(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(qe);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("SDK not enabled, will not capture user feedback.");return}const n=si(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log("Sending outcomes:",t);const n=tr(t,this._options.tunnel&&_t(this._dsn));this._sendEnvelope(n)}}let q;function ci(){if(q)return q;if(Dt(_.fetch))return q=_.fetch.bind(_);const e=_.document;let t=_.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return q=t.bind(_)}function ui(){q=void 0}function fi(e,t=ci()){let n=0,r=0;function i(s){const o=s.body.length;n+=o,r++;const a={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=o,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 ui(),n-=o,r--,ft(c)}}return je(e,i)}const di=4;function li(e){function t(n){return new S((r,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===di&&r({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&s.setRequestHeader(o,e.headers[o]);s.send(n.body)})}return je(e,t)}const mt="?",_i=30,pi=40,hi=50;function Vt(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const gi=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ei=e=>{const t=gi.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const s=mi.exec(t[2]);s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3])}const[r,i]=We(t[1]||mt,t[2]);return Vt(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},yi=[_i,Ei],Si=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ti=e=>{const t=Si.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=bi.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||mt;return[i,r]=We(i,r),Vt(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Ri=[hi,Ti],Ni=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wi=e=>{const t=Ni.exec(e);return t?Vt(t[2],t[1]||mt,+t[3],t[4]?+t[4]:void 0):void 0},Di=[pi,wi],ki=[yi,Ri,Di],Oi=ve(...ki),We=(e,t)=>
15{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:mt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class v{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=v.id}__init2(){this._installFunc={onerror:vi,onunhandledrejection:Ii}}constructor(t){v.prototype.__init.call(this),v.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(Ui(n),r(),this._installFunc[n]=void 0)}}}v.__initStatic();function vi(){w("error",e=>{const[t,n,r]=Ke();if(!t.getIntegration(v))return;const{msg:i,url:s,line:o,column:a,error:c}=e;if(Ce()||c&&c.__sentry_own_request__)return;const u=c===void 0&&U(i)?$i(i,s,o,a):ze(zt(n,c||i,void 0,r,!1),s,o,a);u.level="error",Ve(t,c,u,"onerror")})}function Ii(){w("unhandledrejection",e=>{const[t,n,r]=Ke();if(!t.getIntegration(v))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Ce()||i&&i.__sentry_own_request__)return!0;const s=Re(i)?xi(i):zt(n,i,void 0,r,!0);s.level="error",Ve(t,i,s,"onunhandledrejection")})}function xi(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $i(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=Te(e)?e.message:e,o="Error";const a=s.match(i);return a&&(o=a[1],s=a[2]),ze({exception:{values:[{type:o,value:s}]}},t,n,r)}function ze(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=U(t)&&t.length>0?t:un();return c.length===0&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function Ui(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.log(`Global Handler attached: ${e}`)}function Ve(e,t,n,r){K(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ke(){const e=p(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const Ai=["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"];class Z{static __initStatic(){this.id="TryCatch"}__init(){this.name=Z.id}constructor(t){Z.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&E(_,"setTimeout",_e),this._options.setInterval&&E(_,"setInterval",_e),this._options.requestAnimationFrame&&E(_,"requestAnimationFrame",Bi),this._options.XMLHttpRequest&&"XMLHttpRequest"in _&&E(XMLHttpRequest.prototype,"send",Yi);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Ai).forEach(Pi)}}Z.__initStatic();function _e(e){return function(...t){const n=t[0];return t[0]=j(n,{mechanism:{data:{function:I(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Bi(e){return function(t){return e.apply(this,[j(t,{mechanism:{data:{function:"requestAnimationFrame",handler:I(e)},handled:!0,type:"instrument"}})])}}function Yi(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&E(n,i,function(s){const o={mechanism:{data:{function:i,handler:I(s)},handled:!0,type:"instrument"}},a=Gt(s);return a&&(o.mechanism.data.handler=I(a)),j(s,o)})}),e.apply(this,t)}}function Pi(e){const t=_,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(E(n,"addEventListener",function(r){return function(i,s,o){try{typeof s.handleEvent=="function"&&(s.handleEvent=j(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:I(s),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,j(s,{mechanism:{data:{function:"addEventListener",handler:I(s),target:e},handled:!0,type:"instrument"}}),o])}}),E(n,"removeEventListener",function(r){return function(i,s,o){const a=s;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,i,c,o)}catch{}return r.call(this,i,a,o)}}))}const Gi="cause",Li=5;class P{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=P.id}constructor(t={}){P.prototype.__init.call(this),this._key=t.key||Gi,this._limit=t.limit||Li}setupOnce(){const t=p().getClient();!t||jt((n,r)=>{const i=p().getIntegration(P);return i?Mi(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}P.__initStatic();function Mi(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!H(i.originalException,Error))return r;const s=Xe(e,n,i.originalException,t);return r.exception.values=[...s,...r.exception.values],r}function Xe(e,t,n,r,i=[]){if(!H(n[r],Error)||i.length+1>=t)return i;const s=He(e,n[r]);return Xe(e,t,n[r],r,[s,...i])}class G{constructor(){G.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=G.id}setupOnce(){jt(t=>{if(p().getIntegration(G)){if(!_.navigator&&!_.location&&!_.document)return t;const n=t.request&&t.request.url||_.location&&_.location.href,{referrer:r}=_.document||{},{userAgent:i}=_.navigator||{},s={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},o={...t.request,...n&&{url:n},headers:s};return{...t,request:o}}return t})}}G.__initStatic();class L{constructor(){L.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=L.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const s=n().getIntegration(L);if(s){try{if(Fi(i,s._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return s._previousEvent=i}return s._previousEvent=i}return i};r.id=this.name,t(r)}}L.__initStatic();function Fi(e,t){return t?!!(ji(e,t)||Ci(e,t)):!1}function ji(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ze(e,t)||!Je(e,t))}function Ci(e,t){const n=pe(t),r=pe(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ze(e,t)||!Je(e,t))}function Je(e,t){let n=he(e),r=he(t);if(!n&&!r)return!0;
15if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function Ze(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function pe(e){return e.exception&&e.exception.values&&e.exception.values[0]}function he(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Hi=[new Y,new X,new Z,new J,new v,new P,new L,new G];function qi(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Hi),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),_.SENTRY_RELEASE&&_.SENTRY_RELEASE.id&&(e.release=_.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:yn(e.stackParser||Oi),integrations:Nr(e),transport:e.transport||(Ie()?fi:li)};Ar(ai,t),e.autoSessionTracking&&Wi()}function ge(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Wi(){if(typeof _.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=p();!e.captureSession||(ge(e),w("history",({from:t,to:n})=>{t===void 0||t===n||ge(p())}))}const Qe=["activate","mount","update"],zi=/(?:^|[-_])(\w)/g,Vi=e=>e.replace(zi,t=>t.toUpperCase()).replace(/[-_]/g,""),Ki="<Root>",Tt="<Anonymous>",Xi=(e,t)=>e.repeat?e.repeat(t):e,V=(e,t)=>{if(!e)return Tt;if(e.$root===e)return Ki;if(!e.$options)return Tt;const n=e.$options;let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const s=i.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${Vi(r)}>`:Tt)+(i&&t!==!1?` at ${i}`:"")},Ji=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return`
16
17found in
18
19${t.map((i,s)=>`${(s===0?"---> ":Xi(" ",5+s*2))+(Array.isArray(i)?`${V(i[0])}... (${i[1]} recursive calls)`:V(i))}`).join(`
20`)}`}return`
21
22(found in ${V(e)})`},Zi=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(s,o,a)=>{const c=V(o,!1),u=o?Ji(o):"",d={componentName:c,lifecycleHook:a,trace:u};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?d.propsData=o.$options.propsData:o.$props&&(d.propsData=o.$props)),setTimeout(()=>{p().withScope(f=>{f.setContext("vue",d),p().captureException(s)})}),typeof n=="function"&&n.call(e,s,o,a),t.logErrors){const f=typeof console<"u",m=`Error in ${a}: "${s&&s.toString()}"`;r?r.call(null,m,o,u):f&&!i&&console.error(`[Vue warn]: ${m}${u}`)}}},me="ui.vue",Qi={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Ee(){const e=p().getScope();return e&&e.getTransaction()}function ts(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const es=e=>{const t=(e.hooks||[]).concat(Qe).filter((r,i,s)=>s.indexOf(r)===i),n={};for(const r of t){const i=Qi[r];if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.warn(`Unknown hook: ${r}`);continue}for(const s of i)n[s]=function(){const o=this.$root===this;if(o){const u=Ee();u&&(this.$_sentryRootSpan=this.$_sentryRootSpan||u.startChild({description:"Application Render",op:`${me}.render`}))}const a=V(this,!1),c=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!o&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},s==i[0]){const u=this.$root&&this.$root.$_sentryRootSpan||Ee();if(u){const d=this.$_sentrySpans[r];d&&!d.endTimestamp&&d.finish(),this.$_sentrySpans[r]=u.startChild({description:`Vue <${a}>`,op:`${me}.${r}`})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.finish(),ts(this,Ft(),e.timeout)}}}return n},ns=b,rs={Vue:ns.Vue,attachProps:!0,logErrors:!0,hooks:Qe,timeout:2e3,trackComponents:!1,_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:dt}],version:dt}}};function cs(e={}){const t={...rs,...e};if(qi(t),!t.Vue&&!t.app){console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");return}
22t.app?Mt(t.app).forEach(r=>ye(r,t)):t.Vue&&ye(t.Vue,t)}const ye=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`."),Zi(e,t),lr(t)&&e.mixin(es({...t,...t.tracingOptions}))};export{_r as a,is as b,ss as c,os as d,cs as i,as as s,pr as w};
23//# sourceMappingURL=sentry.09480738.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.