-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathengine_template.html
38 lines (37 loc) · 77.6 KB
/
engine_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
{{#sentinel.sentry_dsn_html5}}
<script type="text/javascript">
/*! @sentry/browser 7.112.2 (b6fd7e8) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){const n=Object.prototype.toString;function e(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(t,Error)}}function r(t,e){return n.call(t)===`[object ${e}]`}function i(t){return r(t,"ErrorEvent")}function o(t){return r(t,"DOMError")}function s(t){return r(t,"String")}function c(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function u(t){return null===t||c(t)||"object"!=typeof t&&"function"!=typeof t}function a(t){return r(t,"Object")}function f(t){return"undefined"!=typeof Event&&l(t,Event)}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function l(t,n){try{return t instanceof n}catch(t){return!1}}function d(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function p(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function m(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{d(r)?e.push("[VueViewModel]"):e.push(String(r))}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function y(t,n,e=!1){return!!s(t)&&(r(n,"RegExp")?n.test(t):!!s(n)&&(e?t===n:t.includes(n)))}function g(t,n=[],e=!1){return n.some((n=>y(t,n,e)))}function v(t,n,e=250,r,i,o,s){if(!(o.exception&&o.exception.values&&s&&l(s.originalException,Error)))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,a;c&&(o.exception.values=(u=_(t,n,i,s.originalException,r,o.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=p(t.value,a)),t)))))}function _(t,n,e,r,i,o,s,c){if(o.length>=e+1)return o;let u=[...o];if(l(r[i],Error)){b(s,c);const o=t(n,r[i]),a=u.length;w(o,i,a,c),u=_(t,n,e,r[i],i,[o,...u],o,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(l(r,Error)){b(s,c);const a=t(n,r),f=u.length;w(a,`errors[${o}]`,f,c),u=_(t,n,e,r,i,[a,...u],a,f)}})),u}function b(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function w(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function E(t){return t&&t.Math==Math?t:void 0}const $="object"==typeof globalThis&&E(globalThis)||"object"==typeof window&&E(window)||"object"==typeof self&&E(self)||"object"==typeof global&&E(global)||function(){return this}()||{};function S(){return $}function x(t,n,e){const r=e||$,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=n())}const T=S();function k(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,i=[];let o=0,s=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,h=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&o++<r&&(a=j(e,f),!("html"===a||o>1&&s+i.length*u+a.length>=h));)i.push(a),s+=a.length,e=e.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function j(t,n){const e=t,r=[];let i,o,c,u,a;if(!e||!e.tagName)return"";if(T.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;r.push(e.tagName.toLowerCase());const f=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(f&&f.length)f.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(e.id&&r.push(`#${e.id}`),i=e.className,i&&s(i))for(o=i.split(/\s+/),a=0;a<o.length;a++)r.push(`.${o[a]}`);const h=["aria-label","type","name","title","alt"];for(a=0;a<h.length;a++)c=h[a],u=e.getAttribute(c),u&&r.push(`[${c}="${u}"]`);return r.join("")}const O=["debug","info","warn","error","log","assert","trace"],I={};function D(t){if(!("console"in $))return t();const n=$.console,e={},r=Object.keys(I);r.forEach((t=>{const r=I[t];e[t]=n[t],n[t]=r}));try{return t()}finally{r.forEach((t=>{n[t]=e[t]}))}}const C=function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return O.forEach((t=>{n[t]=()=>{}})),n}(),R=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function M(t,n=!1){const{host:e,path:r,pass:i,port:o,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}@${e}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function A(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function N(t){const n="string"==typeof t?function(t){const n=R.exec(t);if(!n)return void D((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,i="",o,s="",c]=n.slice(1);let u="",a=c;const f=a.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),a=f.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return A({host:o,pass:i,path:u,projectId:a,port:s,protocol:e,publicKey:r})}(t):A(t);if(n)return n}class L 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}}function P(t,n,e){if(!(n in t))return;const r=t[n],i=e(r);"function"==typeof i&&B(i,r),t[n]=i}function U(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function B(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,U(t,"__sentry_original__",n)}catch(t){}}function F(t){return t.__sentry_original__}function H(t){if(e(t))return{message:t.message,name:t.name,stack:t.stack,...W(t)};if(f(t)){const n={type:t.type,target:q(t.target),currentTarget:q(t.currentTarget),...W(t)};return"undefined"!=typeof CustomEvent&&l(t,CustomEvent)&&(n.detail=t.detail),n}return t}function q(t){try{return n=t,"undefined"!=typeof Element&&l(n,Element)?k(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function W(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function z(t){return X(t,new Map)}function X(t,n){if(function(t){if(!a(t))return!1;try{const n=Object.getPrototypeOf(t).constructor.name;return!n||"Object"===n}catch(t){return!0}}(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.keys(t))void 0!==t[e]&&(r[e]=X(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(X(t,n))})),r}return t}const G=/\(error: (.*)\)/,J=/captureMessage|captureException/;function K(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0)=>{const r=[],i=t.split("\n");for(let t=e;t<i.length;t++){const e=i[t];if(e.length>1024)continue;const o=G.test(e)?e.replace(G,"$1"):e;if(!o.match(/\S*Error: /)){for(const t of n){const n=t(o);if(n){r.push(n);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop();n.reverse(),J.test(n[n.length-1].function||"")&&(n.pop(),J.test(n[n.length-1].function||"")&&n.pop());return n.slice(0,50).map((t=>({...t,filename:t.filename||n[n.length-1].filename,function:t.function||"?"})))}(r)}}const V="<anonymous>";function Y(t){try{return t&&"function"==typeof t&&t.name||V}catch(t){return V}}const Q={},Z={};function tt(t,n){Q[t]=Q[t]||[],Q[t].push(n)}function nt(t,n){Z[t]||(n(),Z[t]=!0)}function et(t,n){const e=t&&Q[t];if(e)for(const t of e)try{t(n)}catch(t){}}function rt(){"console"in $&&O.forEach((function(t){t in $.console&&P($.console,t,(function(n){return I[t]=n,function(...n){et("console",{args:n,level:t});const e=I[t];e&&e.apply($.console,n)}}))}))}function it(){const t=$,n=t.crypto||t.msCrypto;let e=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(e=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function ot(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function st(t){const{message:n,event_id:e}=t;if(n)return n;const r=ot(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function ct(t,n,e){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=n||""),o.type||(o.type=e||"Error")}function ut(t,n){const e=ot(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function at(t){if(t&&t.__sentry_captured__)return!0;try{U(t,"__sentry_captured__",!0)}catch(t){}return!1}function ft(t){return Array.isArray(t)?t:[t]}const ht=$;let lt,dt,pt;function mt(){if(!ht.document)return;const t=et.bind(null,"dom"),n=yt(t,!0);ht.document.addEventListener("click",n,!1),ht.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=ht[n]&&ht[n].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(P(e,"addEventListener",(function(n){return function(e,r,i){if("click"===e||"keypress"==e)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=o[e]=o[e]||{refCount:0};if(!s.handler){const r=yt(t);s.handler=r,n.call(this,e,r,i)}s.refCount++}catch(t){}return n.call(this,e,r,i)}})),P(e,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this,i=e.__sentry_instrumentation_handlers__||{},o=i[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete i[n]),0===Object.keys(i).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}function yt(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;U(e,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",it());const i="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==dt)return!1;try{if(!t.target||t.target._sentryId!==pt)return!1}catch(t){}return!0}(e)){t({event:e,name:i,global:n}),dt=e.type,pt=r?r._sentryId:void 0}clearTimeout(lt),lt=ht.setTimeout((()=>{pt=void 0,dt=void 0}),1e3)}}const gt=S();function vt(){if(!("fetch"in gt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function _t(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function bt(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!vt())return!1;if(_t(gt.fetch))return!0;let t=!1;const n=gt.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=_t(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t})()&&P($,"fetch",(function(t){return function(...n){const{method:e,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:Et(n),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:Et(n),method:wt(n,"method")?String(n.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:e,url:r},startTimestamp:Date.now()};return et("fetch",{...i}),t.apply($,n).then((t=>(et("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw et("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}function wt(t,n){return!!t&&"object"==typeof t&&!!t[n]}function Et(t){return"string"==typeof t?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}let $t=null;function St(){$t=$.onerror,$.onerror=function(t,n,e,r,i){const o={column:r,error:i,line:e,msg:t,url:n};return et("error",o),!(!$t||$t.__SENTRY_LOADER__)&&$t.apply(this,arguments)},$.onerror.__SENTRY_INSTRUMENTED__=!0}let xt=null;function Tt(){xt=$.onunhandledrejection,$.onunhandledrejection=function(t){const n=t;return et("unhandledrejection",n),!(xt&&!xt.__SENTRY_LOADER__)||xt.apply(this,arguments)},$.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const kt=S();const jt=$;let Ot;function It(t){const n="history";tt(n,t),nt(n,Dt)}function Dt(){if(!function(){const t=kt.chrome,n=t&&t.app&&t.app.runtime,e="history"in kt&&!!kt.history.pushState&&!!kt.history.replaceState;return!n&&e}())return;const t=jt.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=Ot,n=String(e);Ot=n;et("history",{from:t,to:n})}return t.apply(this,n)}}jt.onpopstate=function(...n){const e=jt.location.href,r=Ot;Ot=e;if(et("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},P(jt.history,"pushState",n),P(jt.history,"replaceState",n)}const Ct=$;function Rt(){if(!Ct.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;P(t,"open",(function(t){return function(...n){const e=Date.now(),r=s(n[0])?n[0].toUpperCase():void 0,i=function(t){if(s(t))return t;try{return t.toString()}catch(t){}return}(n[1]);if(!r||!i)return t.apply(this,n);this.__sentry_xhr_v3__={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}et("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:e,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?P(this,"onreadystatechange",(function(t){return function(...n){return o(),t.apply(this,n)}})):this.addEventListener("readystatechange",o),P(this,"setRequestHeader",(function(t){return function(...n){const[e,r]=n,i=this.__sentry_xhr_v3__;return i&&s(e)&&s(r)&&(i.request_headers[e.toLowerCase()]=r),t.apply(this,n)}})),t.apply(this,n)}})),P(t,"send",(function(t){return function(...n){const e=this.__sentry_xhr_v3__;if(!e)return t.apply(this,n);void 0!==n[0]&&(e.body=n[0]);return et("xhr",{args:[e.method,e.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}function Mt(t,n=100,e=1/0){try{return Nt("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function At(t,n=3,e=102400){const r=Mt(t,n);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>e?At(t,n-1,e):r;var i}function Nt(t,n,e=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t<n.length;t++)if(n[t]===e)return!0;return n.push(e),!1},function(e){if(t)n.delete(e);else for(let t=0;t<n.length;t++)if(n[t]===e){n.splice(t,1);break}}]}()){const[o,s]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&("number"!=typeof(c=n)||c==c))return n;var c;const u=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.i)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(d(n))return"[VueViewModel]";if(function(t){return a(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Y(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const e=function(t){const n=Object.getPrototypeOf(t);return n?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(e)?`[HTMLElement: ${e}]`:`[object ${e}]`}catch(t){return`**non-serializable** (${t})`}}(t,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;const f="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===f)return u.replace("object ","");if(o(n))return"[Circular ~]";const h=n;if(h&&"function"==typeof h.toJSON)try{return Nt("",h.toJSON(),f-1,r,i)}catch(t){}const l=Array.isArray(n)?[]:{};let p=0;const m=H(n);for(const t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(p>=r){l[t]="[MaxProperties ~]";break}const n=m[t];l[t]=Nt(t,n,f-1,r,i),p++}return s(n),l}var Lt;function Pt(t){return new Bt((n=>{n(t)}))}function Ut(t){return new Bt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Lt||(Lt={}));class Bt{constructor(t){Bt.prototype.__init.call(this),Bt.prototype.__init2.call(this),Bt.prototype.__init3.call(this),Bt.prototype.__init4.call(this),this.o=Lt.PENDING,this.u=[];try{t(this.h,this.l)}catch(t){this.l(t)}}then(t,n){return new Bt(((e,r)=>{this.u.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Bt(((n,e)=>{let r,i;return this.then((n=>{i=!1,r=n,t&&t()}),(n=>{i=!0,r=n,t&&t()})).then((()=>{i?e(r):n(r)}))}))}__init(){this.h=t=>{this.m(Lt.RESOLVED,t)}}__init2(){this.l=t=>{this.m(Lt.REJECTED,t)}}__init3(){this.m=(t,n)=>{this.o===Lt.PENDING&&(h(n)?n.then(this.h,this.l):(this.o=t,this.v=n,this.p()))}}__init4(){this.p=()=>{if(this.o===Lt.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.o===Lt.RESOLVED&&t[1](this.v),this.o===Lt.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function Ft(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(r){if(!(void 0===t||n.length<t))return Ut(new L("Not adding Promise because buffer limit was reached."));const i=r();return-1===n.indexOf(i)&&n.push(i),i.then((()=>e(i))).then(null,(()=>e(i).then(null,(()=>{})))),i},drain:function(t){return new Bt(((e,r)=>{let i=n.length;if(!i)return e(!0);const o=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{Pt(t).then((()=>{--i||(clearTimeout(o),e(!0))}),r)}))}))}}}function Ht(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}const qt=["fatal","error","warning","log","info","debug"];function Wt(t){return"warn"===t?"warning":qt.includes(t)?t:"log"}function zt(){return Date.now()/1e3}const Xt=function(){const{performance:t}=$;if(!t||!t.now)return zt;const n=Date.now()-t.now(),e=null==t.timeOrigin?n:t.timeOrigin;return()=>(e+t.now())/1e3}();(()=>{const{performance:t}=$;if(!t||!t.now)return;const n=36e5,e=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-r):n,o=i<n,s=t.timing&&t.timing.navigationStart,c="number"==typeof s?Math.abs(s+e-r):n;(o||c<n)&&(i<=c&&t.timeOrigin)})();const Gt=/^sentry-/;function Jt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(t[n]=e,t)),{})}const Kt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Vt(t,n){const e=function(t){if(!t)return;const n=t.match(Kt);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=function(t){if(!s(t)&&!Array.isArray(t))return;let n={};if(Array.isArray(t))n=t.reduce(((t,n)=>{const e=Jt(n);for(const n of Object.keys(e))t[n]=e[n];return t}),{});else{if(!t)return;n=Jt(t)}const e=Object.entries(n).reduce(((t,[n,e])=>(n.match(Gt)&&(t[n.slice("sentry-".length)]=e),t)),{});return Object.keys(e).length>0?e:void 0}(n),{traceId:i,parentSpanId:o,parentSampled:c}=e||{};return e?{traceparentData:e,dynamicSamplingContext:r||{},propagationContext:{traceId:i||it(),parentSpanId:o||it().substring(16),spanId:it().substring(16),sampled:c,dsc:r||{}}}:{traceparentData:e,dynamicSamplingContext:void 0,propagationContext:{traceId:i||it(),spanId:it().substring(16)}}}function Yt(t,n=[]){return[t,n]}function Qt(t,n){const[e,r]=t;return[e,[...r,n]]}function Zt(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function tn(t,n){return(n||new TextEncoder).encode(t)}function nn(t,n){const[e,r]=t;let i=JSON.stringify(e);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[tn(i,n),t]:i.push("string"==typeof t?tn(t,n):t)}for(const t of r){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(Mt(e))}o(t)}}return"string"==typeof i?i:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(i)}function en(t,n){const e="string"==typeof t.data?tn(t.data,n):t.data;return[z({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const rn={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",feedback:"feedback",span:"span",statsd:"metric_bucket"};function on(t){return rn[t]}function sn(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function cn(t,{statusCode:n,headers:e},r=Date.now()){const i={...t},o=e&&e["x-sentry-rate-limits"],s=e&&e["retry-after"];if(o)for(const t of o.trim().split(",")){const[n,e,,,o]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(i[t]=r+c);else i.all=r+c}else s?i.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(s,r):429===n&&(i.all=r+6e4);return i}function un(t,n){const e={type:n.name||n.constructor.name,value:n.message},r=function(t,n){return t(n.stack||"",1)}(t,n);return r.length&&(e.stacktrace={frames:r}),e}class an{static __initStatic(){this.id="Feedback"}constructor(t){this.name=an.id,D((()=>{console.warn("You are using new Feedback() even though this bundle does not include Feedback.")}))}setupOnce(){}openDialog(){}closeDialog(){}attachTo(){}createWidget(){}removeWidget(){}getWidget(){}remove(){}}an.__initStatic();class fn{static __initStatic(){this.id="Replay"}constructor(t){this.name=fn.id,D((()=>{console.warn("You are using new Replay() even though this bundle does not include replay.")}))}setupOnce(){}start(){}stop(){}flush(){}}fn.__initStatic();class hn{static __initStatic(){this.id="BrowserTracing"}constructor(t){this.name=hn.id,D((()=>{console.warn("You are using new BrowserTracing() even though this bundle does not include tracing.")}))}setupOnce(){}}hn.__initStatic();const ln="production";function dn(){return x("globalEventProcessors",(()=>[]))}function pn(t){dn().push(t)}function mn(t,n,e,r=0){return new Bt(((i,o)=>{const s=t[r];if(null===n||"function"!=typeof s)i(n);else{const c=s({...n},e);h(c)?c.then((n=>mn(t,n,e,r+1).then(i))).then(null,o):mn(t,c,e,r+1).then(i).then(null,o)}}))}function yn(t){const n=Xt(),e={sid:it(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return z({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&gn(e,t),e}function gn(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Xt(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:it()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function vn(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),gn(t,e)}function _n(t){const{spanId:n,traceId:e}=t.spanContext(),{data:r,op:i,parent_span_id:o,status:s,tags:c,origin:u}=wn(t);return z({data:r,op:i,parent_span_id:o,span_id:n,status:s,tags:c,trace_id:e,origin:u})}function bn(t){return t>9999999999?t/1e3:t}function wn(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function En(t){const{traceFlags:n}=t.spanContext();return Boolean(1&n)}function $n(t,n,e,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=t,u={...n,event_id:n.event_id||e.event_id||it(),timestamp:n.timestamp||zt()},a=e.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:i,maxValueLength:o=250}=n;"environment"in t||(t.environment="environment"in n?e:ln);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=p(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=p(s.value,o));const c=t.request;c&&c.url&&(c.url=p(c.url,o))}(u,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(u,a),void 0===n.type&&function(t,n){const e=$._sentryDebugIds;if(!e)return;let r;const i=Sn.get(n);i?r=i:(r=new Map,Sn.set(n,r));const o=Object.keys(e).reduce(((t,i)=>{let o;const s=r.get(i);s?o=s:(o=n(i),r.set(i,o));for(let n=o.length-1;n>=0;n--){const r=o[n];if(r.filename){t[r.filename]=e[i];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(u,t.stackParser);const f=function(t,n){if(!n)return t;const e=t?t.clone():new qn;return e.update(n),e}(r,e.captureContext);e.mechanism&&ut(u,e.mechanism);const h=i&&i.getEventProcessors?i.getEventProcessors():[],l=function(){Hn||(Hn=new qn);return Hn}().getScopeData();if(o){Bn(l,o.getScopeData())}if(f){Bn(l,f.getScopeData())}const d=[...e.attachments||[],...l.attachments];d.length&&(e.attachments=d),Un(u,l);return mn([...h,...dn(),...l.eventProcessors],u,e).then((t=>(t&&function(t){const n={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.keys(n).forEach((t=>{e.push({type:"sourcemap",code_file:t,debug_id:n[t]})}))}(t),"number"==typeof s&&s>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Mt(t.data,n,e)}})))},...t.user&&{user:Mt(t.user,n,e)},...t.contexts&&{contexts:Mt(t.contexts,n,e)},...t.extra&&{extra:Mt(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Mt(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>{const r=wn(t).data;return r&&(t.data=Mt(r,n,e)),t})));return r}(t,s,c):t)))}const Sn=new WeakMap;function xn(t){if(t)return function(t){return t instanceof qn||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Tn.includes(t)))}(t)?{captureContext:t}:t}const Tn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,n){return Yn().captureException(t,xn(n))}function kn(t,n){return Yn().captureEvent(t,n)}function jn(t,n){Yn().addBreadcrumb(t,n)}function On(...t){const n=Yn();if(2===t.length){const[e,r]=t;return e?n.withScope((()=>(n.getStackTop().scope=e,r(e)))):n.withScope(r)}return n.withScope(t[0])}function In(){return Yn().getClient()}function Dn(){return Yn().getScope()}function Cn(t){const n=In(),e=Qn(),r=Dn(),{release:i,environment:o=ln}=n&&n.getOptions()||{},{userAgent:s}=$.navigator||{},c=yn({release:i,environment:o,user:r.getUser()||e.getUser(),...s&&{userAgent:s},...t}),u=e.getSession();return u&&"ok"===u.status&&gn(u,{status:"exited"}),Rn(),e.setSession(c),r.setSession(c),c}function Rn(){const t=Qn(),n=Dn(),e=n.getSession()||t.getSession();e&&vn(e),Mn(),t.setSession(),n.setSession()}function Mn(){const t=Qn(),n=Dn(),e=In(),r=n.getSession()||t.getSession();r&&e&&e.captureSession&&e.captureSession(r)}function An(t=!1){t?Rn():Mn()}function Nn(t){return t.transaction}function Ln(t,n,e){const r=n.getOptions(),{publicKey:i}=n.getDsn()||{},{segment:o}=e&&e.getUser()||{},s=z({environment:r.environment||ln,release:r.release,user_segment:o,public_key:i,trace_id:t});return n.emit&&n.emit("createDsc",s),s}function Pn(t){const n=In();if(!n)return{};const e=Ln(wn(t).trace_id||"",n,Dn()),r=Nn(t);if(!r)return e;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:s}=r.metadata;null!=o&&(e.sample_rate=`${o}`);const c=wn(r);return s&&"url"!==s&&(e.transaction=c.description),e.sampled=String(En(r)),n.emit&&n.emit("createDsc",e),e}function Un(t,n){const{fingerprint:e,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=n;!function(t,n){const{extra:e,tags:r,user:i,contexts:o,level:s,transactionName:c}=n,u=z(e);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const a=z(r);a&&Object.keys(a).length&&(t.tags={...a,...t.tags});const f=z(i);f&&Object.keys(f).length&&(t.user={...f,...t.user});const h=z(o);h&&Object.keys(h).length&&(t.contexts={...h,...t.contexts});s&&(t.level=s);c&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:_n(n),...t.contexts};const e=Nn(n);if(e){t.sdkProcessingMetadata={dynamicSamplingContext:Pn(n),...t.sdkProcessingMetadata};const r=wn(e).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,n){t.fingerprint=t.fingerprint?ft(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,i),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,o)}function Bn(t,n){const{extra:e,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:h,propagationContext:l,transactionName:d,span:p}=n;Fn(t,"extra",e),Fn(t,"tags",r),Fn(t,"user",i),Fn(t,"contexts",o),Fn(t,"sdkProcessingMetadata",c),s&&(t.level=s),d&&(t.transactionName=d),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...l}}function Fn(t,n,e){if(e&&Object.keys(e).length){t[n]={...t[n]};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[n][r]=e[r])}}let Hn;class qn{constructor(){this._=!1,this.S=[],this.T=[],this.k=[],this.j=[],this.O={},this.I={},this.D={},this.C={},this.R={},this.M=Wn()}static clone(t){return t?t.clone():new qn}clone(){const t=new qn;return t.k=[...this.k],t.I={...this.I},t.D={...this.D},t.C={...this.C},t.O=this.O,t.A=this.A,t.N=this.N,t.L=this.L,t.P=this.P,t.U=this.U,t.T=[...this.T],t.B=this.B,t.j=[...this.j],t.R={...this.R},t.M={...this.M},t.F=this.F,t}setClient(t){this.F=t}getClient(){return this.F}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this.T.push(t),this}setUser(t){return this.O=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this.L&&gn(this.L,{user:t}),this.H(),this}getUser(){return this.O}getRequestSession(){return this.B}setRequestSession(t){return this.B=t,this}setTags(t){return this.I={...this.I,...t},this.H(),this}setTag(t,n){return this.I={...this.I,[t]:n},this.H(),this}setExtras(t){return this.D={...this.D,...t},this.H(),this}setExtra(t,n){return this.D={...this.D,[t]:n},this.H(),this}setFingerprint(t){return this.U=t,this.H(),this}setLevel(t){return this.A=t,this.H(),this}setTransactionName(t){return this.P=t,this.H(),this}setContext(t,n){return null===n?delete this.C[t]:this.C[t]=n,this.H(),this}setSpan(t){return this.N=t,this.H(),this}getSpan(){return this.N}getTransaction(){const t=this.N;return t&&t.transaction}setSession(t){return t?this.L=t:delete this.L,this.H(),this}getSession(){return this.L}update(t){if(!t)return this;const n="function"==typeof t?t(this):t;if(n instanceof qn){const t=n.getScopeData();this.I={...this.I,...t.tags},this.D={...this.D,...t.extra},this.C={...this.C,...t.contexts},t.user&&Object.keys(t.user).length&&(this.O=t.user),t.level&&(this.A=t.level),t.fingerprint.length&&(this.U=t.fingerprint),n.getRequestSession()&&(this.B=n.getRequestSession()),t.propagationContext&&(this.M=t.propagationContext)}else if(a(n)){const n=t;this.I={...this.I,...n.tags},this.D={...this.D,...n.extra},this.C={...this.C,...n.contexts},n.user&&(this.O=n.user),n.level&&(this.A=n.level),n.fingerprint&&(this.U=n.fingerprint),n.requestSession&&(this.B=n.requestSession),n.propagationContext&&(this.M=n.propagationContext)}return this}clear(){return this.k=[],this.I={},this.D={},this.O={},this.C={},this.A=void 0,this.P=void 0,this.U=void 0,this.B=void 0,this.N=void 0,this.L=void 0,this.H(),this.j=[],this.M=Wn(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:zt(),...t},i=this.k;return i.push(r),this.k=i.length>e?i.slice(-e):i,this.H(),this}getLastBreadcrumb(){return this.k[this.k.length-1]}clearBreadcrumbs(){return this.k=[],this.H(),this}addAttachment(t){return this.j.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this.j=[],this}getScopeData(){const{k:t,j:n,C:e,I:r,D:i,O:o,A:s,U:c,T:u,M:a,R:f,P:h,N:l}=this;return{breadcrumbs:t,attachments:n,contexts:e,tags:r,extra:i,user:o,level:s,fingerprint:c||[],eventProcessors:u,propagationContext:a,sdkProcessingMetadata:f,transactionName:h,span:l}}applyToEvent(t,n={},e=[]){Un(t,this.getScopeData());return mn([...e,...dn(),...this.T],t,n)}setSDKProcessingMetadata(t){return this.R={...this.R,...t},this}setPropagationContext(t){return this.M=t,this}getPropagationContext(){return this.M}captureException(t,n){const e=n&&n.event_id?n.event_id:it();if(!this.F)return C.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.F.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e&&e.event_id?e.event_id:it();if(!this.F)return C.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this.F.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},this),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:it();return this.F?(this.F.captureEvent(t,{...n,event_id:e},this),e):(C.warn("No client configured on scope - will not capture event!"),e)}H(){this._||(this._=!0,this.S.forEach((t=>{t(this)})),this._=!1)}}function Wn(){return{traceId:it(),spanId:it().substring(16)}}const zn="7.112.2",Xn=parseFloat(zn),Gn=100;class Jn{constructor(t,n,e,r=Xn){let i,o;this.q=r,n?i=n:(i=new qn,i.setClient(t)),e?o=e:(o=new qn,o.setClient(t)),this.W=[{scope:i}],t&&this.bindClient(t),this.X=o}isOlderThan(t){return this.q<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const n=this.pushScope();let e;try{e=t(n)}catch(t){throw this.popScope(),t}return h(e)?e.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.X}getStack(){return this.W}getStackTop(){return this.W[this.W.length-1]}captureException(t,n){const e=this.G=n&&n.event_id?n.event_id:it(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...n,event_id:e}),e}captureMessage(t,n,e){const r=this.G=e&&e.event_id?e.event_id:it(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r}),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:it();return t.type||(this.G=e),this.getScope().captureEvent(t,{...n,event_id:e}),e}lastEventId(){return this.G}addBreadcrumb(t,n){const{scope:e,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Gn}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const s={timestamp:zt(),...t},c=i?D((()=>i(s,n))):s;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,n),e.addBreadcrumb(c,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:e}=this.getStackTop();e&&t(n)}run(t){const n=Vn(this);try{t(this)}finally{Vn(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}}startTransaction(t,n){const e=this.J("startTransaction",t,n);return e}traceHeaders(){return this.J("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.K()}endSession(){const t=this.getStackTop().scope,n=t.getSession();n&&vn(n),this.K(),t.setSession()}startSession(t){const{scope:n,client:e}=this.getStackTop(),{release:r,environment:i=ln}=e&&e.getOptions()||{},{userAgent:o}=$.navigator||{},s=yn({release:r,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&"ok"===c.status&&gn(c,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}K(){const{scope:t,client:n}=this.getStackTop(),e=t.getSession();e&&n&&n.captureSession&&n.captureSession(e)}J(t,...n){const e=Kn().__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)}}function Kn(){return $.__SENTRY__=$.__SENTRY__||{extensions:{},hub:void 0},$}function Vn(t){const n=Kn(),e=te(n);return ne(n,t),e}function Yn(){const t=Kn();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function(t=Kn()){n=t,n&&n.__SENTRY__&&n.__SENTRY__.hub&&!te(t).isOlderThan(Xn)||ne(t,new Jn);var n;return te(t)}(t)}function Qn(){return Yn().getIsolationScope()}function Zn(t,n={}){const e=Kn();return e.__SENTRY__&&e.__SENTRY__.acs?e.__SENTRY__.acs.runWithAsyncContext(t,n):t()}function te(t){return x("hub",(()=>new Jn),t)}function ne(t,n){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0}function ee(t,n,e=(()=>{})){let r;try{r=t()}catch(t){throw n(t),e(),t}return function(t,n,e){if(h(t))return t.then((t=>(e(),t)),(t=>{throw n(t),e(),t}));return e(),t}(r,n,e)}function re(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=In(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}function ie(){return Dn().getSpan()}function oe(t,{parentSpan:n,spanContext:e,forceTransaction:r,scope:i}){if(!re())return;const o=Qn();let s;if(n&&!r)s=n.startChild(e);else if(n){const r=Pn(n),{traceId:i,spanId:o}=n.spanContext(),c=En(n);s=t.startTransaction({traceId:i,parentSpanId:o,parentSampled:c,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}else{const{traceId:n,dsc:r,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...i.getPropagationContext()};s=t.startTransaction({traceId:n,parentSpanId:c,parentSampled:u,...e,metadata:{dynamicSamplingContext:r,...e.metadata}})}return i.setSpan(s),function(t,n,e){t&&(U(t,ue,e),U(t,ce,n))}(s,i,o),s}function se(t){if(t.startTime){const e={...t};return e.startTimestamp="number"==typeof(n=t.startTime)?bn(n):Array.isArray(n)?n[0]+n[1]/1e9:n instanceof Date?bn(n.getTime()):Xt(),delete e.startTime,e}var n;return t}const ce="_sentryScope",ue="_sentryIsolationScope";let ae;function fe(t,n,e,r,i,o){const s=ie();if(s){const c=function(t){return ae?ae.get(t):void 0}(s)||new Map,u=`${t}:${n}@${r}`,a=c.get(o);if(a){const[,t]=a;c.set(o,[u,{min:Math.min(t.min,e),max:Math.max(t.max,e),count:t.count+=1,sum:t.sum+=e,tags:t.tags}])}else c.set(o,[u,{min:e,max:e,count:1,sum:e,tags:i}]);ae||(ae=new WeakMap),ae.set(s,c)}}function he(t,n,e,r){const i=sn(e),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const s=function(t,n,e,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:M(r)},...i&&{trace:z({...i})}}}(t,i,r,n);delete t.sdkProcessingMetadata;return Yt(s,[[{type:o},t]])}function le(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function de(t,n){return e={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function pe(t,n={}){const e="string"==typeof n?n:n.tunnel,r="string"!=typeof n&&n.V?n.V.sdk:void 0;return e||`${function(t){return`${le(t)}${t.projectId}/envelope/`}(t)}?${de(t,r)}`}const me=[];function ye(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;n.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(e)?[...n,...e]:"function"==typeof e?ft(e(n)):n;const i=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.keys(n).map((t=>n[t]))}(r),o=function(t,n){for(let e=0;e<t.length;e++)if(!0===n(t[e]))return e;return-1}(i,(t=>"Debug"===t.name));if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function ge(t,n){for(const e of n)e&&e.afterAllSetup&&e.afterAllSetup(t)}function ve(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===me.indexOf(n.name)&&(n.setupOnce(pn,Yn),me.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),t.on&&"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if(t.addEventProcessor&&"function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}}}function _e(t,n){return Object.assign((function(...t){return n(...t)}),{id:t})}function be(t){return t.replace(/[^\w\-./]+/gi,"")}const we=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Ee(t){return[...t].reduce(((t,n)=>t+function(t){for(const[n,e]of we)if(t===n)return e;return t}(n)),"")}function $e(t,n,e,r){const i={sent_at:(new Date).toISOString()};e&&e.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),r&&n&&(i.dsn=M(n));const o=function(t){const n=function(t){let n="";for(const e of t){const t=Object.entries(e.tags),r=t.length>0?`|#${t.map((([t,n])=>`${t}:${n}`)).join(",")}`:"";n+=`${e.name}@${e.unit}:${e.metric}|${e.metricType}${r}|T${e.timestamp}\n`}return n}(t);return[{type:"statsd",length:n.length},n]}(t);return Yt(i,[o])}function Se(t){return void 0===t.type}function xe(t){return"transaction"===t.type}const Te={c:class{constructor(t){this.v=t}get weight(){return 1}add(t){this.v+=t}toString(){return`${this.v}`}},g:class{constructor(t){this.Y=t,this.Z=t,this.tt=t,this.nt=t,this.et=1}get weight(){return 5}add(t){this.Y=t,t<this.Z&&(this.Z=t),t>this.tt&&(this.tt=t),this.nt+=t,this.et++}toString(){return`${this.Y}:${this.Z}:${this.tt}:${this.nt}:${this.et}`}},d:class{constructor(t){this.v=[t]}get weight(){return this.v.length}add(t){this.v.push(t)}toString(){return this.v.join(":")}},s:class{constructor(t){this.first=t,this.v=new Set([t])}get weight(){return this.v.size}add(t){this.v.add(t)}toString(){return Array.from(this.v).map((t=>"string"==typeof t?function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n&=n;return n>>>0}(t):t)).join(":")}}};function ke(t){const n=Yn().getStackTop();n.client=t,n.scope.setClient(t)}function je(t,n,e=Ft(t.bufferSize||30)){let r={};function i(i){const o=[];if(Zt(i,((n,e)=>{const i=on(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,i)){const r=Oe(n,e);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(n)})),0===o.length)return Pt();const s=Yt(i[0],o),c=n=>{Zt(s,((e,r)=>{const i=Oe(e,r);t.recordDroppedEvent(n,on(r),i)}))};return e.add((()=>n({body:nn(s,t.textEncoder)}).then((t=>(r=cn(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof L)return c("queue_overflow"),Pt();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>e.drain(t)}}function Oe(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}const Ie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],De=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ce="InboundFilters",Re=(t={})=>({name:Ce,setupOnce(){},processEvent(n,e,r){const i=r.getOptions(),o=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Ie],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:De],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,i);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);let e;try{e=t.exception.values[t.exception.values.length-1]}catch(t){}e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`));return n}(t).some((t=>g(t,n)))}(t,n.ignoreErrors))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&g(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=Ae(t);return!!e&&g(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=Ae(t);return!e||g(e,n)}(t,n.allowUrls))return!0;return!1}(n,o)?null:n}}),Me=_e(Ce,Re);function Ae(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}let Ne;const Le="FunctionToString",Pe=new WeakMap,Ue=()=>({name:Le,setupOnce(){Ne=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=F(this),e=Pe.has(In())&&void 0!==n?n:this;return Ne.apply(e,t)}}catch(t){}},setup(t){Pe.set(t,!0)}}),Be=_e(Le,Ue),Fe="LinkedErrors",He=_e(Fe,((t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:Fe,setupOnce(){},preprocessEvent(t,r,i){const o=i.getOptions();v(un,o.stackParser,o.maxValueLength,e,n,t,r)}}}));var qe=Object.freeze({__proto__:null,FunctionToString:Be,InboundFilters:Me,LinkedErrors:He});class We{constructor(t){this.F=t,this.rt=new Map,this.it=setInterval((()=>this.flush()),5e3)}add(t,n,e,r="none",i={},o=Xt()){const s=Math.floor(o),c=n.replace(/[^\w\-.]+/gi,"_");const u=function(t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[be(e)]=Ee(String(t[e])));return n}(i),a=function(t){return t.replace(/[^\w]+/gi,"_")}(r),f=function(t,n,e,r){return`${t}${n}${e}${Object.entries(z(r)).sort(((t,n)=>t[0].localeCompare(n[0])))}`}(t,c,a,u);let h=this.rt.get(f);const l=h&&"s"===t?h.metric.weight:0;h?(h.metric.add(e),h.timestamp<s&&(h.timestamp=s)):(h={metric:new Te[t](e),timestamp:s,metricType:t,name:c,unit:a,tags:u},this.rt.set(f,h));fe(t,c,"string"==typeof e?h.metric.weight-l:e,a,i,f)}flush(){if(0!==this.rt.size){if(this.F.captureAggregateMetrics){const t=Array.from(this.rt).map((([,t])=>t));this.F.captureAggregateMetrics(t)}this.rt.clear()}}close(){clearInterval(this.it),this.flush()}}const ze="MetricsAggregator",Xe=()=>({name:ze,setupOnce(){},setup(t){t.metricsAggregator=new We(t)}});function Ge(t,n,e,r={}){const i=In(),o=Dn();if(i){if(!i.metricsAggregator)return;const{unit:s,tags:c,timestamp:u}=r,{release:a,environment:f}=i.getOptions(),h=o.getTransaction(),l={};a&&(l.release=a),f&&(l.environment=f),h&&(l.transaction=wn(h).description||""),i.metricsAggregator.add(t,n,e,s,{...l,...c},u)}}const Je={increment:function(t,n=1,e){Ge("c",t,n,e)},distribution:function(t,n,e){Ge("d",t,n,e)},set:function(t,n,e){Ge("s",t,n,e)},gauge:function(t,n,e){Ge("g",t,n,e)},MetricsAggregator:_e(ze,Xe),metricsAggregatorIntegration:Xe},Ke=qe,Ve=$;let Ye=0;function Qe(){return Ye>0}function Ze(){Ye++,setTimeout((()=>{Ye--}))}function tr(t,n={},e){if("function"!=typeof t)return t;try{const n=t.__sentry_wrapped__;if(n)return n;if(F(t))return t}catch(n){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const i=r.map((t=>tr(t,n)));return t.apply(this,i)}catch(t){throw Ze(),On((e=>{e.addEventProcessor((t=>(n.mechanism&&(ct(t,void 0,void 0),ut(t,n.mechanism)),t.extra={...t.extra,arguments:r},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}B(sentryWrapped,t),U(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function nr(t,n){const e=rr(t,n),r={type:n&&n.name,value:or(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function er(t,n){return{exception:{values:[nr(t,n)]}}}function rr(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ir.test(t.message))return 1}return 0}(n);try{return t(e,r)}catch(t){}return[]}const ir=/Minified React error #\d+;/i;function or(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function sr(t,n,e,r){const i=ur(t,n,e&&e.syntheticException||void 0,r);return ut(i),i.level="error",e&&e.event_id&&(i.event_id=e.event_id),Pt(i)}function cr(t,n,e="info",r,i){const o=ar(t,n,r&&r.syntheticException||void 0,i);return o.level=e,r&&r.event_id&&(o.event_id=r.event_id),Pt(o)}function ur(t,n,s,c,u){let h;if(i(n)&&n.error){return er(t,n.error)}if(o(n)||r(n,"DOMException")){const e=n;if("stack"in n)h=er(t,n);else{const n=e.name||(o(e)?"DOMError":"DOMException"),r=e.message?`${n}: ${e.message}`:n;h=ar(t,r,s,c),ct(h,r)}return"code"in e&&(h.tags={...h.tags,"DOMException.code":`${e.code}`}),h}if(e(n))return er(t,n);if(a(n)||f(n)){return h=function(t,n,e,r){const i=In(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:f(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:fr(n,{isUnhandledRejection:r})}]},extra:{__serialized__:At(n,o)}};if(e){const n=rr(t,e);n.length&&(s.exception.values[0].stacktrace={frames:n})}return s}(t,n,s,u),ut(h,{synthetic:!0}),h}return h=ar(t,n,s,c),ct(h,`${n}`,void 0),ut(h,{synthetic:!0}),h}function ar(t,n,e,r){const i={};if(r&&e){const r=rr(t,e);r.length&&(i.exception={values:[{value:n,stacktrace:{frames:r}}]})}if(c(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return i.logentry={message:t,params:e},i}return i.message=n,i}function fr(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(H(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return p(e[0],n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:p(r,n)}return""}(t),r=n?"promise rejection":"exception";if(i(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(f(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function hr(t,{metadata:n,tunnel:e,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:M(r)}},o=function(t){return[{type:"user_report"},t]}(t);return Yt(i,[o])}class lr extends class{constructor(t){if(this.ot=t,this._integrations={},this.st=!1,this.ct=0,this.ut={},this.ft={},this.T=[],t.dsn&&(this.ht=N(t.dsn)),this.ht){const n=pe(this.ht,t);this.lt=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){if(at(t))return;let r=n&&n.event_id;return this.dt(this.eventFromException(t,n).then((t=>this.yt(t,n,e))).then((t=>{r=t}))),r}captureMessage(t,n,e,r){let i=e&&e.event_id;const o=c(t)?t:String(t),s=u(t)?this.eventFromMessage(o,n,e):this.eventFromException(t,e);return this.dt(s.then((t=>this.yt(t,e,r))).then((t=>{i=t}))),i}captureEvent(t,n,e){if(n&&n.originalException&&at(n.originalException))return;let r=n&&n.event_id;const i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this.dt(this.yt(t,n,i||e).then((t=>{r=t}))),r}captureSession(t){"string"!=typeof t.release||(this.sendSession(t),gn(t,{init:!1}))}getDsn(){return this.ht}getOptions(){return this.ot}getSdkMetadata(){return this.ot.V}getTransport(){return this.lt}flush(t){const n=this.lt;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this.gt(t).then((e=>n.flush(t).then((t=>e&&t))))):Pt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this.T}addEventProcessor(t){this.T.push(t)}setupIntegrations(t){(t&&!this.st||this.vt()&&!this.st)&&this._t()}init(){this.vt()&&this._t()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(t){return null}}addIntegration(t){const n=this._integrations[t.name];ve(this,t,this._integrations),n||ge(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=he(t,this.ht,this.ot.V,this.ot.tunnel);for(const t of n.attachments||[])e=Qt(e,en(t,this.ot.transportOptions&&this.ot.transportOptions.textEncoder));const r=this.bt(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}sendSession(t){const n=function(t,n,e,r){const i=sn(e);return Yt({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&n&&{dsn:M(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.ht,this.ot.V,this.ot.tunnel);this.bt(n)}recordDroppedEvent(t,n,e){if(this.ot.sendClientReports){const e=`${t}:${n}`;this.ut[e]=this.ut[e]+1||1}}captureAggregateMetrics(t){const n=$e(t,this.ht,this.ot.V,this.ot.tunnel);this.bt(n)}on(t,n){this.ft[t]||(this.ft[t]=[]),this.ft[t].push(n)}emit(t,...n){this.ft[t]&&this.ft[t].forEach((t=>t(...n)))}_t(){const{integrations:t}=this.ot;this._integrations=function(t,n){const e={};return n.forEach((n=>{n&&ve(t,n,e)})),e}(this,t),ge(this,t),this.st=!0}wt(t,n){let e=!1,r=!1;const i=n.exception&&n.exception.values;if(i){r=!0;for(const t of i){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&e)&&(gn(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}gt(t){return new Bt((n=>{let e=0;const r=setInterval((()=>{0==this.ct?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}vt(){return!1!==this.getOptions().enabled&&void 0!==this.lt}Et(t,n,e,r=Qn()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),$n(i,t,n,e,this,r).then((t=>{if(null===t)return t;const n={...r.getPropagationContext(),...e?e.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&n){const{traceId:r,spanId:i,parentSpanId:o,dsc:s}=n;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...t.contexts};const c=s||Ln(r,this,e);t.sdkProcessingMetadata={dynamicSamplingContext:c,...t.sdkProcessingMetadata}}return t}))}yt(t,n={},e){return this.$t(t,n,e).then((t=>t.event_id),(t=>{}))}$t(t,n,e){const r=this.getOptions(),{sampleRate:i}=r,o=xe(t),s=Se(t),c=t.type||"error",u=`before send for type \`${c}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Ut(new L(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f="replay_event"===c?"replay":c,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this.Et(t,n,e,l).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",f,t),new L("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const i=function(t,n,e){const{beforeSend:r,beforeSendTransaction:i}=t;if(Se(n)&&r)return r(n,e);if(xe(n)&&i)return i(n,e);return n}(r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(h(t))return t.then((t=>{if(!a(t)&&null!==t)throw new L(e);return t}),(t=>{throw new L(`${n} rejected with ${t}`)}));if(!a(t)&&null!==t)throw new L(e);return t}(i,u)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",f,t),new L(`${u} returned \`null\`, will not send event.`,"log");const i=e&&e.getSession();!o&&i&&this.wt(i,r);const s=r.transaction_info;if(o&&s&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...s,source:t}}return this.sendEvent(r,n),r})).then(null,(t=>{if(t instanceof L)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new L(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}dt(t){this.ct++,t.then((t=>(this.ct--,t)),(t=>(this.ct--,t)))}bt(t){if(this.emit("beforeEnvelope",t),this.vt()&&this.lt)return this.lt.send(t).then(null,(t=>{}))}St(){const t=this.ut;return this.ut={},Object.keys(t).map((n=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t[n]}}))}}{constructor(t){!function(t,n,e=[n],r="npm"){const i=t.V||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:e.map((t=>({name:`${r}:@sentry/${t}`,version:zn}))),version:zn}),t.V=i}(t,"browser",["browser"],Ve.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Ve.document&&Ve.document.addEventListener("visibilitychange",(()=>{"hidden"===Ve.document.visibilityState&&this.xt()}))}eventFromException(t,n){return sr(this.ot.stackParser,t,n,this.ot.attachStacktrace)}eventFromMessage(t,n="info",e){return cr(this.ot.stackParser,t,n,e,this.ot.attachStacktrace)}captureUserFeedback(t){if(!this.vt())return;const n=hr(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.bt(n)}Et(t,n,e){return t.platform=t.platform||"javascript",super.Et(t,n,e)}xt(){const t=this.St();if(0===t.length)return;if(!this.ht)return;const n=(e=t,Yt((r=this.ot.tunnel&&M(this.ht))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||zt(),discarded_events:e}]]));var e,r,i;this.bt(n)}}let dr;function pr(t,n=function(){if(dr)return dr;if(_t(Ve.fetch))return dr=Ve.fetch.bind(Ve);const t=Ve.document;let n=Ve.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(t){}return dr=n.bind(Ve)}()){let e=0,r=0;return je(t,(function(i){const o=i.body.length;e+=o,r++;const s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{return n(t.url,s).then((t=>(e-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return dr=void 0,e-=o,r--,Ut(t)}}))}function mr(t){return je(t,(function(n){return new Bt(((e,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&e({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(const n in t.headers)Object.prototype.hasOwnProperty.call(t.headers,n)&&i.setRequestHeader(n,t.headers[n]);i.send(n.body)}))}))}const yr="?";function gr(t,n,e,r){const i={filename:t,function:n,in_app:!0};return void 0!==e&&(i.lineno=e),void 0!==r&&(i.colno=r),i}const vr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_r=/\((\S*)(?::(\d+))(?::(\d+))\)/,br=[30,t=>{const n=vr.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=_r.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Cr(n[1]||yr,n[2]);return gr(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],wr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Er=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$r=[50,t=>{const n=wr.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Er.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||yr;return[e,t]=Cr(e,t),gr(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Sr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xr=[40,t=>{const n=Sr.exec(t);return n?gr(n[2],n[1]||yr,+n[3],n[4]?+n[4]:void 0):void 0}],Tr=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,kr=[10,t=>{const n=Tr.exec(t);return n?gr(n[2],n[3]||yr,+n[1]):void 0}],jr=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Or=[20,t=>{const n=jr.exec(t);return n?gr(n[5],n[3]||n[4]||yr,+n[1],+n[2]):void 0}],Ir=[br,$r,xr],Dr=K(...Ir),Cr=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:yr,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]},Rr=1024,Mr="Breadcrumbs",Ar=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Mr,setupOnce(){},setup(t){var e;n.console&&function(t){const n="console";tt(n,t),nt(n,rt)}(function(t){return function(n){if(In()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Wt(n.level),message:m(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${m(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}jn(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(In()!==t)return;let r,i,o="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>Rr&&(s=Rr),"string"==typeof o&&(o=[o]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=k(n,{keyAttrs:o,maxStringLength:s}),i=function(t){if(!T.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement&&n.dataset.sentryComponent)return n.dataset.sentryComponent;n=n.parentNode}return null}(n)}catch(t){r="<unknown>"}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};i&&(c.data={"ui.component_name":i}),jn(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),tt("dom",e),nt("dom",mt)),n.xhr&&function(t){tt("xhr",t),nt("xhr",Rt)}(function(t){return function(n){if(In()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,i=n.xhr.__sentry_xhr_v3__;if(!e||!r||!i)return;const{method:o,url:s,status_code:c,body:u}=i;jn({category:"xhr",data:{method:o,url:s,status_code:c},type:"http"},{xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r})}}(t)),n.fetch&&function(t){const n="fetch";tt(n,t),nt(n,bt)}(function(t){return function(n){if(In()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){jn({category:"fetch",data:n.fetchData,level:"error",type:"http"},{data:n.error,input:n.args,startTimestamp:e,endTimestamp:r})}else{const t=n.response;jn({category:"fetch",data:{...n.fetchData,status_code:t&&t.status},type:"http"},{input:n.args,response:t,startTimestamp:e,endTimestamp:r})}}}(t)),n.history&&It(function(t){return function(n){if(In()!==t)return;let e=n.from,r=n.to;const i=Ht(Ve.location.href);let o=e?Ht(e):void 0;const s=Ht(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(e=o.relative),jn({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(n){In()===t&&jn({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:st(n)},{event:n})}}(t))}}},Nr=_e(Mr,Ar);const Lr="Dedupe",Pr=()=>{let t;return{name:Lr,setupOnce(){},processEvent(n){if(n.type)return n;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!Fr(t,n))return!1;if(!Br(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Hr(n),r=Hr(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Fr(t,n))return!1;if(!Br(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch(t){}return t=n}}},Ur=_e(Lr,Pr);function Br(t,n){let e=qr(t),r=qr(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(e=e,r=r,r.length!==e.length)return!1;for(let t=0;t<r.length;t++){const n=r[t],i=e[t];if(n.filename!==i.filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1}return!0}function Fr(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;e=e,r=r;try{return!(e.join("")!==r.join(""))}catch(t){return!1}}function Hr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function qr(t){const n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}const Wr="GlobalHandlers",zr=(t={})=>{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:Wr,setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){!function(t){const n="error";tt(n,t),nt(n,St)}((n=>{const{stackParser:e,attachStacktrace:r}=Jr();if(In()!==t||Qe())return;const{msg:o,url:c,line:u,column:a,error:f}=n,h=void 0===f&&s(o)?function(t,n,e,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=i(t)?t.message:t,c="Error";const u=s.match(o);u&&(c=u[1],s=u[2]);return Gr({exception:{values:[{type:c,value:s}]}},n,e,r)}(o,c,u,a):Gr(ur(e,f||o,void 0,r,!1),c,u,a);h.level="error",kn(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})}))}(t),n.onunhandledrejection&&function(t){!function(t){const n="unhandledrejection";tt(n,t),nt(n,Tt)}((n=>{const{stackParser:e,attachStacktrace:r}=Jr();if(In()!==t||Qe())return;const i=function(t){if(u(t))return t;const n=t;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch(t){}return t}(n),o=u(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ur(e,i,void 0,r,!0);o.level="error",kn(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}},Xr=_e(Wr,zr);function Gr(t,n,e,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],c=o[0]=o[0]||{},u=c.stacktrace=c.stacktrace||{},a=u.frames=u.frames||[],f=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(e,10))?void 0:e,l=s(n)&&n.length>0?n:function(){try{return T.document.location.href}catch(t){return""}}();return 0===a.length&&a.push({colno:f,filename:l,function:"?",in_app:!0,lineno:h}),t}function Jr(){const t=In();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Kr="HttpContext",Vr=()=>({name:Kr,setupOnce(){},preprocessEvent(t){if(!Ve.navigator&&!Ve.location&&!Ve.document)return;const n=t.request&&t.request.url||Ve.location&&Ve.location.href,{referrer:e}=Ve.document||{},{userAgent:r}=Ve.navigator||{},i={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},o={...t.request,...n&&{url:n},headers:i};t.request=o}}),Yr=_e(Kr,Vr),Qr="LinkedErrors",Zr=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:Qr,setupOnce(){},preprocessEvent(t,r,i){const o=i.getOptions();v(nr,o.stackParser,o.maxValueLength,e,n,t,r)}}},ti=_e(Qr,Zr),ni=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ei="TryCatch",ri=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:ei,setupOnce(){n.setTimeout&&P(Ve,"setTimeout",oi),n.setInterval&&P(Ve,"setInterval",oi),n.requestAnimationFrame&&P(Ve,"requestAnimationFrame",si),n.XMLHttpRequest&&"XMLHttpRequest"in Ve&&P(XMLHttpRequest.prototype,"send",ci);const t=n.eventTarget;if(t){(Array.isArray(t)?t:ni).forEach(ui)}}}},ii=_e(ei,ri);function oi(t){return function(...n){const e=n[0];return n[0]=tr(e,{mechanism:{data:{function:Y(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function si(t){return function(n){return t.apply(this,[tr(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Y(t)},handled:!1,type:"instrument"}})])}}function ci(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&P(e,t,(function(n){const e={mechanism:{data:{function:t,handler:Y(n)},handled:!1,type:"instrument"}},r=F(n);return r&&(e.mechanism.data.handler=Y(r)),tr(n,e)}))})),t.apply(this,n)}}function ui(t){const n=Ve,e=n[t]&&n[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(P(e,"addEventListener",(function(n){return function(e,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Y(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return n.apply(this,[e,tr(r,{mechanism:{data:{function:"addEventListener",handler:Y(r),target:t},handled:!1,type:"instrument"}}),i])}})),P(e,"removeEventListener",(function(t){return function(n,e,r){const i=e;try{const e=i&&i.__sentry_wrapped__;e&&t.call(this,n,e,r)}catch(t){}return t.call(this,n,i,r)}})))}const ai=[Re(),Ue(),ri(),Ar(),zr(),Zr(),Pr(),Vr()];function fi(t){return[...ai]}var hi=Object.freeze({__proto__:null,GlobalHandlers:Xr,TryCatch:ii,Breadcrumbs:Nr,LinkedErrors:ti,HttpContext:Yr,Dedupe:Ur});let li={};Ve.Sentry&&Ve.Sentry.Integrations&&(li=Ve.Sentry.Integrations);const di={...li,...Ke,...hi};return di.Replay=fn,di.BrowserTracing=hn,t.Breadcrumbs=Nr,t.BrowserClient=lr,t.BrowserTracing=hn,t.Dedupe=Ur,t.Feedback=an,t.FunctionToString=Be,t.GlobalHandlers=Xr,t.HttpContext=Yr,t.Hub=Jn,t.InboundFilters=Me,t.Integrations=di,t.LinkedErrors=ti,t.Replay=fn,t.SDK_VERSION=zn,t.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",t.Scope=qn,t.TryCatch=ii,t.WINDOW=Ve,t.addBreadcrumb=jn,t.addEventProcessor=function(t){const n=In();n&&n.addEventProcessor&&n.addEventProcessor(t)},t.addGlobalEventProcessor=pn,t.addIntegration=function(t){const n=In();n&&n.addIntegration&&n.addIntegration(t)},t.addTracingExtensions=function(){},t.breadcrumbsIntegration=Ar,t.browserApiErrorsIntegration=ri,t.browserTracingIntegration=function(t){return new hn({})},t.captureEvent=kn,t.captureException=captureException,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return Yn().captureMessage(t,e,r)},t.captureSession=An,t.captureUserFeedback=function(t){const n=In();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=br,t.close=async function(t){const n=In();return n?n.close(t):Promise.resolve(!1)},t.configureScope=function(t){Yn().configureScope(t)},t.continueTrace=({sentryTrace:t,baggage:n},e)=>{const r=Dn(),{traceparentData:i,dynamicSamplingContext:o,propagationContext:s}=Vt(t,n);r.setPropagationContext(s);const c={...i,metadata:z({dynamicSamplingContext:o})};return e?Zn((()=>e(c))):c},t.createTransport=je,t.createUserFeedbackEnvelope=hr,t.dedupeIntegration=Pr,t.defaultIntegrations=ai,t.defaultStackLineParsers=Ir,t.defaultStackParser=Dr,t.endSession=Rn,t.eventFromException=sr,t.eventFromMessage=cr,t.exceptionFromError=nr,t.feedbackIntegration=function(t){return new an({})},t.flush=async function(t){const n=In();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=Ue,t.geckoStackLineParser=$r,t.getActiveSpan=ie,t.getClient=In,t.getCurrentHub=Yn,t.getCurrentScope=Dn,t.getDefaultIntegrations=fi,t.getHubFromCarrier=te,t.globalHandlersIntegration=zr,t.httpContextIntegration=Vr,t.inboundFiltersIntegration=Re,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=fi()),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Ve.SENTRY_RELEASE&&Ve.SENTRY_RELEASE.id&&(t.release=Ve.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const n={...t,stackParser:(e=t.stackParser||Dr,Array.isArray(e)?K(...e):e),integrations:ye(t),transport:t.transport||(vt()?pr:mr)};var e;!function(t,n){!0===n.debug&&D((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Dn().update(n.initialScope);const e=new t(n);ke(e),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(e)}(lr,n),t.autoSessionTracking&&function(){if(void 0===Ve.document)return;Cn({ignoreDuration:!0}),An(),It((({from:t,to:n})=>{void 0!==t&&t!==n&&(Cn({ignoreDuration:!0}),An())}))}()},t.isInitialized=function(){return!!In()},t.lastEventId=function(){return Yn().lastEventId()},t.linkedErrorsIntegration=Zr,t.makeFetchTransport=pr,t.makeMain=Vn,t.makeXHRTransport=mr,t.metrics=Je,t.onLoad=function(t){t()},t.opera10StackLineParser=kr,t.opera11StackLineParser=Or,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return new fn({})},t.setContext=function(t,n){Yn().setContext(t,n)},t.setCurrentClient=ke,t.setExtra=function(t,n){Yn().setExtra(t,n)},t.setExtras=function(t){Yn().setExtras(t)},t.setTag=function(t,n){Yn().setTag(t,n)},t.setTags=function(t){Yn().setTags(t)},t.setUser=function(t){Yn().setUser(t)},t.showReportDialog=(t={},n=Yn())=>{if(!Ve.document)return;const{client:e,scope:r}=n.getStackTop(),i=t.dsn||e&&e.getDsn();if(!i)return;r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=n.lastEventId());const o=Ve.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,n){const e=N(t);if(!e)return"";const r=`${le(e)}embed/error-page/`;let i=`dsn=${M(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:s}=t;if(s){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{s()}finally{Ve.removeEventListener("message",t)}};Ve.addEventListener("message",t)}const c=Ve.document.head||Ve.document.body;c&&c.appendChild(o)},t.startInactiveSpan=function(t){if(!re())return;const n=se(t),e=Yn(),r=t.scope?t.scope.getSpan():ie();if(t.onlyIfParent&&!r)return;const i=(t.scope||Dn()).clone();return oe(e,{parentSpan:r,spanContext:n,forceTransaction:t.forceTransaction,scope:i})},t.startSession=Cn,t.startSpan=function(t,n){const e=se(t);return Zn((()=>On(t.scope,(r=>{const i=Yn(),o=r.getSpan(),s=t.onlyIfParent&&!o?void 0:oe(i,{parentSpan:o,spanContext:e,forceTransaction:t.forceTransaction,scope:r});return ee((()=>n(s)),(()=>{if(s){const{status:t}=wn(s);t&&"ok"!==t||s.setStatus("internal_error")}}),(()=>s&&s.end()))}))))},t.startSpanManual=function(t,n){const e=se(t);return Zn((()=>On(t.scope,(r=>{const i=Yn(),o=r.getSpan(),s=t.onlyIfParent&&!o?void 0:oe(i,{parentSpan:o,spanContext:e,forceTransaction:t.forceTransaction,scope:r});function c(){s&&s.end()}return ee((()=>n(s,c)),(()=>{if(s&&s.isRecording()){const{status:t}=wn(s);t&&"ok"!==t||s.setStatus("internal_error")}}))}))))},t.startTransaction=function(t,n){return Yn().startTransaction({...t},n)},t.winjsStackLineParser=xr,t.withActiveSpan=function(t,n){return On((e=>(e.setSpan(t),n(e))))},t.withIsolationScope=function(t){return Zn((()=>t(Qn())))},t.withScope=On,t.wrap=function(t){return tr(t)()},t}({});
//# sourceMappingURL=https://browser.sentry-cdn.com/7.112.2/bundle.min.js.map
</script>
<script type="text/javascript">
Sentry.init({
dsn: "{{sentinel.sentry_dsn_html5}}"
{{#sentinel.sentry_release}}
,release: "{{sentinel.sentry_release}}"
{{/sentinel.sentry_release}}
});
window.Sentry_onerror = window.onerror;
</script>
{{/sentinel.sentry_dsn_html5}}
</head>
<body>
{{#sentinel.sentry_dsn_html5}}
<script id="engine-setup" type="text/javascript">
// The dmloader.js overrides window.onerror, so we need to create our own wrapper:
(function (w) {
var s_onerr = w.Sentry_onerror;
if (s_onerr && s_onerr != w.onerror) {
var d_onerr = w.onerror;
w.onerror = function() {
s_onerr.apply(this, arguments);
d_onerr.apply(this, arguments);
};
}
})(window);
</script>
{{/sentinel.sentry_dsn_html5}}
</body>
</html>