1/*! @sentry/tracing & @sentry/browser 7.2.0 (ec0f05b) | https://github.com/getsentry/sentry-javascript */ 2var Sentry=function(t){var n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},n(t,r)};function r(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i=function(){return i=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t},i.apply(this,arguments)};function e(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function u(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(o(arguments[n]));return t}var a={};function c(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function s(t,n,r){var i=r||c(),e=i.__SENTRY__=i.__SENTRY__||{};return e[t]||(e[t]=n())}var f=Object.prototype.toString;function h(t){switch(f.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function v(t,n){return f.call(t)==="[object "+n+"]"}function d(t){return v(t,"ErrorEvent")}function l(t){return v(t,"DOMError")}function p(t){return v(t,"String")}function y(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function m(t){return v(t,"Object")}function b(t){return"undefined"!=typeof Event&&x(t,Event)}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function w(t){return"number"==typeof t&&t!=t}function x(t,n){try{return t instanceof n}catch(t){return!1}}function _(t,n){try{for(var r=t,i=[],e=0,o=0,u=" > ".length,a=void 0;r&&e++<5&&!("html"===(a=E(r,n))||e>1&&o+i.length*u+a.length>=80);)i.push(a),o+=a.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function E(t,n){var r,i,e,o,u,a=t,c=[];if(!a||!a.tagName)return"";c.push(a.tagName.toLowerCase());var s=n&&n.length?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(s&&s.length)s.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&c.push("#"+a.id),(r=a.className)&&p(r))for(i=r.split(/\s+/),u=0;u<i.length;u++)c.push("."+i[u]);var f=["type","name","title","alt"];for(u=0;u<f.length;u++)e=f[u],(o=a.getAttribute(e))&&c.push("["+e+'="'+o+'"]');return c.join("")}var S=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}return r(n,t),n}(Error),j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function k(t,n){void 0===n&&(n=!1);var r=t.host,i=t.path,e=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.publicKey+(n&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u}function T(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function O(t){return"string"==typeof t?function(t){var n=j.exec(t);if(!n)throw new S("Invalid Sentry Dsn: "+t);var r=o(n.slice(1),6),i=r[0],e=r[1],u=r[2],a=void 0===u?"":u,c=r[3],s=r[4],f=void 0===s?"":s,h="",v=r[5],d=v.split("/");if(d.length>1&&(h=d.slice(0,-1).join("/"),v=d.pop()),v){var l=v.match(/^\d+/);l&&(v=l[0])}return T({host:c,pass:a,path:h,projectId:v,port:f,protocol:i,publicKey:e})}(t):T(t)}var R,D=["debug","info","warn","error","log","assert","trace"];function I(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n||t.length<=n?t:t.substr(0,n)+"..."}function C(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i<t.length;i++){var e=t[i];try{r.push(String(e))}catch(t){r.push("[value cannot be serialized]")}}return r.join(n)}function L(t,n){return!!p(t)&&(v(n,"RegExp")?n.test(t):"string"==typeof n&&-1!==t.indexOf(n))}function M(t,n,r){if(n in t){var i=t[n],e=r(i);if("function"==typeof e)try{A(e,i)}catch(t){}t[n]=e}}function N(t,n,r){Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}function A(t,n){var r=n.prototype||{};t.prototype=n.prototype=r,N(t,"__sentry_original__",n)}function q(t){return t.__sentry_original__}function U(t){if(h(t))return i({message:t.message,name:t.name,stack:t.stack},H(t));if(b(t)){var n=i({type:t.type,target:P(t.target),currentTarget:P(t.currentTarget)},H(t));return"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(n.detail=t.detail),n}return t}function P(t){try{return n=t,"undefined"!=typeof Element&&x(n,Element)?_(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var n}function H(t){if("object"==typeof t&&null!==t){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}return{}}function F(t,n){void 0===n&&(n=40);var r=Object.keys(U(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return I(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");
2if(!(e.length>n))return i===r.length?e:I(e,n)}return""}function B(t){return X(t,new Map)}function X(t,n){var r,i;if(m(t)){if(void 0!==(s=n.get(t)))return s;var o={};n.set(t,o);try{for(var u=e(Object.keys(t)),a=u.next();!a.done;a=u.next()){var c=a.value;void 0!==t[c]&&(o[c]=X(t[c],n))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return o}if(Array.isArray(t)){var s;if(void 0!==(s=n.get(t)))return s;var f=[];return n.set(t,f),t.forEach((function(t){f.push(X(t,n))})),f}return t}R={enable:function(){},disable:function(){}},D.forEach((function(t){R[t]=function(){}}));function z(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.sort((function(t,n){return t[0]-n[0]})).map((function(t){return t[1]}));return function(t,n){var i,o,u,a;void 0===n&&(n=0);var c=[];try{for(var s=e(t.split("\n").slice(n)),f=s.next();!f.done;f=s.next()){var h=f.value;try{for(var v=(u=void 0,e(r)),d=v.next();!d.done;d=v.next()){var l=(0,d.value)(h);if(l){c.push(l);break}}}catch(t){u={error:t}}finally{try{d&&!d.done&&(a=v.return)&&a.call(v)}finally{if(u)throw u.error}}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return W(c)}}function W(t){if(!t.length)return[];var n=t,r=n[0].function||"",e=n[n.length-1].function||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==e.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,50).map((function(t){return i(i({},t),{filename:t.filename||n[0].filename,function:t.function||"?"})})).reverse()}var $="<anonymous>";function G(t){try{return t&&"function"==typeof t&&t.name||$}catch(t){return $}}function J(){if(!("fetch"in c()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function K(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var V,Q=c(),Y={},Z={};function tt(t){if(!Z[t])switch(Z[t]=!0,t){case"console":!function(){if(!("console"in Q))return;D.forEach((function(t){t in Q.console&&M(Q.console,t,(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];rt("console",{args:r,level:t}),n&&n.apply(Q.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in Q))return;var t=rt.bind(null,"dom"),n=at(t,!0);Q.document.addEventListener("click",n,!1),Q.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var r=Q[n]&&Q[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(M(r,"addEventListener",(function(n){return function(r,i,e){if("click"===r||"keypress"==r)try{var o=this,u=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},a=u[r]=u[r]||{refCount:0};if(!a.handler){var c=at(t);a.handler=c,n.call(this,r,c,e)}a.refCount+=1}catch(t){}return n.call(this,r,i,e)}})),M(r,"removeEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var e=this,o=e.__sentry_instrumentation_handlers__||{},u=o[n];u&&(u.refCount-=1,u.refCount<=0&&(t.call(this,n,u.handler,i),u.handler=void 0,delete o[n]),0===Object.keys(o).length&&delete e.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,i)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Q))return;var t=XMLHttpRequest.prototype;M(t,"open",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,e=n[1],o=i.__sentry_xhr__={method:p(n[0])?n[0].toUpperCase():n[0],url:n[1]};p(e)&&"POST"===o.method&&e.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var u=function(){if(4===i.readyState){try{o.status_code=i.status}catch(t){}rt("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?M(i,"onreadystatechange",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(),t.apply(i,n)}})):i.addEventListener("readystatechange",u),t.apply(i,n)}})),M(t,"send",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),rt("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!J())return!1;var t=c();if(K(t.fetch))return!0;var n=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(n=K(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){}return n}())return;M(Q,"fetch",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var e={args:n,fetchData:{method:it(n),url:et(n)},startTimestamp:Date.now()};return rt("fetch",i({},e)),t.apply(Q,n).then((function(t){return rt("fetch",i(i({},e),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw rt("fetch",i(i({},e),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){var t=c(),n=t.chrome,r=n&&n.app&&n.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!r&&i}())return;var t=Q.onpopstate;function n(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var e=V,o=String(i);V=o,rt("history",{from:e,to:o})}return t.apply(this,n)}}Q.onpopstate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=Q.location.href,e=V;if(V=i,rt("history",{from:e,to:i}),t)try{return t.apply(this,n)}catch(t){}},M(Q.history,"pushState",n),M(Q.history,"replaceState",n)}();break;case"error":ct=Q.onerror,Q.onerror=function(t,n,r,i,e){return rt("error",{column:i,error:e,line:r,msg:t,url:n}),!!ct&&ct.apply(this,arguments)};break;case"unhandledrejection":ft=Q.onunhandledrejection,Q.onunhandledrejection=function(t){return rt("unhandledrejection",t),!ft||ft.apply(this,arguments)};break;default:return}}function nt(t,n){Y[t]=Y[t]||[],Y[t].push(n),tt(t)}function rt(t,n){var r,i;if(t&&Y[t])try{for(var o=e(Y[t]||[]),u=o.next();!u.done;u=o.next()){var a=u.value;try{a(n)}catch(t){}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}function it(t){return void 0===t&&(t=[]),"Request"in Q&&x(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function et(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in Q&&x(t[0],Request)?t[0].url:String(t[0])}var ot,ut;function at(t,n){return void 0===n&&(n=!1),function(r){if(r&&ut!==r&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;
2if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;(void 0===ot||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(ut,r))&&(t({event:r,name:i,global:n}),ut=r),clearTimeout(ot),ot=Q.setTimeout((function(){ot=void 0}),1e3)}}}var ct=null;var st,ft=null;function ht(){var t=c(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)}))}function vt(t){if(!t)return{};var n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",i=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+i}}function dt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function lt(t){var n=t.message,r=t.event_id;if(n)return n;var i=dt(t);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||r||"<unknown>":r||"<unknown>"}function pt(t,n,r){var i=t.exception=t.exception||{},e=i.values=i.values||[],o=e[0]=e[0]||{};o.value||(o.value=n||""),o.type||(o.type=r||"Error")}function yt(t,n){var r=dt(t);if(r){var e=r.mechanism;if(r.mechanism=i(i(i({},{type:"generic",handled:!0}),e),n),n&&"data"in n){var o=i(i({},e&&e.data),n.data);r.mechanism.data=o}}}function mt(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function bt(t,n,r){void 0===n&&(n=1/0),void 0===r&&(r=1/0);try{return wt("",t,n,r)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}function gt(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i,e=bt(t,n);return i=e,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>r?gt(t,n-1,r):e}function wt(t,n,r,i,e){var u,a;void 0===r&&(r=1/0),void 0===i&&(i=1/0),void 0===e&&(u="function"==typeof WeakSet,a=u?new WeakSet:[],e=[function(t){if(u)return!!a.has(t)||(a.add(t),!1);for(var n=0;n<a.length;n++)if(a[n]===t)return!0;return a.push(t),!1},function(t){if(u)a.delete(t);else for(var n=0;n<a.length;n++)if(a[n]===t){a.splice(n,1);break}}]);var c=o(e,2),s=c[0],f=c[1],h=n;if(h&&"function"==typeof h.toJSON)try{return h.toJSON()}catch(t){}if(null===n||["number","boolean","string"].includes(typeof n)&&!w(n))return n;var v=function(t,n){try{return"domain"===t&&n&&"object"==typeof n&&n.t?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":m(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+G(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":"[object "+Object.getPrototypeOf(n).constructor.name+"]"}catch(t){return"**non-serializable** ("+t+")"}var r}(t,n);if(!v.startsWith("[object "))return v;if(n.__sentry_skip_normalization__)return n;if(0===r)return v.replace("object ","");if(s(n))return"[Circular ~]";var d=Array.isArray(n)?[]:{},l=0,p=U(n);for(var y in p)if(Object.prototype.hasOwnProperty.call(p,y)){if(l>=i){d[y]="[MaxProperties ~]";break}var b=p[y];d[y]=wt(y,b,r-1,i,e),l+=1}return f(n),d}function xt(t){return new Et((function(n){n(t)}))}function _t(t){return new Et((function(n,r){r(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(st||(st={}));var Et=function(){function t(t){var n=this;this.i=st.PENDING,this.o=[],this.u=function(t){n.h(st.RESOLVED,t)},this.v=function(t){n.h(st.REJECTED,t)},this.h=function(t,r){n.i===st.PENDING&&(g(r)?r.then(n.u,n.v):(n.i=t,n.l=r,n.p()))},this.p=function(){if(n.i!==st.PENDING){var t=n.o.slice();n.o=[],t.forEach((function(t){t[0]||(n.i===st.RESOLVED&&t[1](n.l),n.i===st.REJECTED&&t[2](n.l),t[0]=!0)}))}};try{t(this.u,this.v)}catch(t){this.v(t)}}return t.prototype.then=function(n,r){var i=this;return new t((function(t,e){i.o.push([!1,function(r){if(n)try{t(n(r))}catch(t){e(t)}else t(r)},function(n){if(r)try{t(r(n))}catch(t){e(t)}else e(n)}]),i.p()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,i){var e,o;return r.then((function(t){o=!1,e=t,n&&n()}),(function(t){o=!0,e=t,n&&n()})).then((function(){o?i(e):t(e)}))}))},t}();function St(t){var n=[];function r(t){return n.splice(n.indexOf(t),1)[0]}return{$:n,add:function(i){if(!(void 0===t||n.length<t))return _t(new S("Not adding Promise due to buffer limit reached."));var e=i();return-1===n.indexOf(e)&&n.push(e),e.then((function(){return r(e)})).then(null,(function(){return r(e).then(null,(function(){}))})),e},drain:function(t){return new Et((function(r,i){var e=n.length;if(!e)return r(!0);var o=setTimeout((function(){t&&t>0&&r(!1)}),t);
2n.forEach((function(t){xt(t).then((function(){--e||(clearTimeout(o),r(!0))}),i)}))}))}}}var jt=["fatal","error","warning","log","info","debug"];var kt={nowSeconds:function(){return Date.now()/1e3}};var Tt=function(){var t=c().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Ot=void 0===Tt?kt:{nowSeconds:function(){return(Tt.timeOrigin+Tt.now())/1e3}},Rt=kt.nowSeconds.bind(kt),Dt=Ot.nowSeconds.bind(Ot),It=Dt,Ct=function(){var t=c().performance;if(t&&t.now){var n=36e5,r=t.now(),i=Date.now(),e=t.timeOrigin?Math.abs(t.timeOrigin+r-i):n,o=e<n,u=t.timing&&t.timing.navigationStart,a="number"==typeof u?Math.abs(u+r-i):n;return o||a<n?e<=a?t.timeOrigin:u:i}}(),Lt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mt(t,n){return void 0===n&&(n=[]),[t,n]}function Nt(t,n){var r=o(t,2);return[r[0],u(r[1],[n])]}function At(t,n){t[1].forEach((function(t){var r=t[0].type;n(t,r)}))}function qt(t,n){return(n||new TextEncoder).encode(t)}function Ut(t,n){var r,i,u=o(t,2),a=u[0],c=u[1],s=JSON.stringify(a);function f(t){"string"==typeof s?s="string"==typeof t?s+t:[qt(s,n),t]:s.push("string"==typeof t?qt(t,n):t)}try{for(var h=e(c),v=h.next();!v.done;v=h.next()){var d=o(v.value,2),l=d[0],p=d[1];f("\n"+JSON.stringify(l)+"\n"),f("string"==typeof p||p instanceof Uint8Array?p:JSON.stringify(p))}}catch(t){r={error:t}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return"string"==typeof s?s:function(t){var n,r,i=t.reduce((function(t,n){return t+n.length}),0),o=new Uint8Array(i),u=0;try{for(var a=e(t),c=a.next();!c.done;c=a.next()){var s=c.value;o.set(s,u),u+=s.length}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(s)}function Pt(t,n){var r="string"==typeof t.data?qt(t.data,n):t.data;return[B({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}var Ht={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Ft(t){return Ht[t]}function Bt(t,n,r){var u,a,c,s,f=n.statusCode,h=n.headers;void 0===r&&(r=Date.now());var v=i({},t),d=h&&h["x-sentry-rate-limits"],l=h&&h["retry-after"];if(d)try{for(var p=e(d.trim().split(",")),y=p.next();!y.done;y=p.next()){var m=o(y.value.split(":",2),2),b=m[0],g=m[1],w=parseInt(b,10),x=1e3*(isNaN(w)?60:w);if(g)try{for(var _=(c=void 0,e(g.split(";"))),E=_.next();!E.done;E=_.next()){v[E.value]=r+x}}catch(t){c={error:t}}finally{try{E&&!E.done&&(s=_.return)&&s.call(_)}finally{if(c)throw c.error}}else v.all=r+x}}catch(t){u={error:t}}finally{try{y&&!y.done&&(a=p.return)&&a.call(p)}finally{if(u)throw u.error}}else l?v.all=r+function(t,n){void 0===n&&(n=Date.now());var r=parseInt(""+t,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+t);return isNaN(i)?6e4:i-n}(l,r):429===f&&(v.all=r+6e4);return v}var Xt="baggage",zt=/^sentry-/;function Wt(t,n,r){return void 0===n&&(n=""),void 0===r&&(r=!0),[i({},t),n,r]}function $t(t,n,r){Jt(t)&&(t[0][n]=r)}function Gt(t){return 0===Object.keys(t[0]).length}function Jt(t){return t[2]}function Kt(t){t[2]=!1}function Vt(t){return t.split(",").reduce((function(t,n){var r,e=o(t,2),u=e[0],a=e[1],c=o(n.split("="),2),s=c[0],f=c[1];if(zt.test(s)){var h=decodeURIComponent(s.split("-")[1]);return[i(i({},u),(r={},r[h]=decodeURIComponent(f),r)),a,!0]}return[u,""===a?n:a+","+n,!0]}),[{},"",!0])}function Qt(t,n){if(!t&&!n)return"";var r=n&&Vt(n)||void 0,i=r&&r[1];return function(t){return Object.keys(t[0]).reduce((function(n,r){var i=t[0][r],e="sentry-"+encodeURIComponent(r)+"="+encodeURIComponent(i),o=""===n?e:n+","+e;return o.length>8192?n:o}),t[1])}(Wt(t&&t[0]||{},i||t&&t[1]||""))}function Yt(t){var n=Dt(),r={sid:ht(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(t){return B({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,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(r)}};return t&&Zt(r,t),r}function Zt(t,n){if(void 0===n&&(n={}),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||Dt(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:ht()),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{var r=t.timestamp-t.started;t.duration=r>=0?r: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)}var tn=function(){function t(){this.m=!1,this.g=[],this._=[],this.S=[],this.j={},this.k={},this.T={},this.O={},this.R=[],this.D={}}return t.clone=function(n){var r=new t;return n&&(r.S=u(n.S),r.k=i({},n.k),r.T=i({},n.T),r.O=i({},n.O),r.j=n.j,r.I=n.I,r.C=n.C,r.L=n.L,r.M=n.M,r.N=n.N,r._=u(n._),r.A=n.A,r.R=u(n.R)),r},t.prototype.addScopeListener=function(t){this.g.push(t)},t.prototype.addEventProcessor=function(t){return this._.push(t),this},t.prototype.setUser=function(t){return this.j=t||{},this.L&&Zt(this.L,{user:t}),this.q(),this},t.prototype.getUser=function(){return this.j},t.prototype.getRequestSession=function(){return this.A},t.prototype.setRequestSession=function(t){return this.A=t,this},t.prototype.setTags=function(t){return this.k=i(i({},this.k),t),this.q(),this},t.prototype.setTag=function(t,n){var r;return this.k=i(i({},this.k),((r={})[t]=n,r)),this.q(),this},t.prototype.setExtras=function(t){return this.T=i(i({},this.T),t),this.q(),this},t.prototype.setExtra=function(t,n){var r;return this.T=i(i({},this.T),((r={})[t]=n,r)),this.q(),this},t.prototype.setFingerprint=function(t){return this.N=t,this.q(),this},t.prototype.setLevel=function(t){return this.I=t,this.q(),this},t.prototype.setTransactionName=function(t){return this.M=t,this.q(),this},t.prototype.setContext=function(t,n){var r;return null===n?delete this.O[t]:this.O=i(i({},this.O),((r={})[t]=n,r)),this.q(),this},t.prototype.setSpan=function(t){return this.C=t,this.q(),this},t.prototype.getSpan=function(){return this.C},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this.L=t:delete this.L,this.q(),this},t.prototype.getSession=function(){return this.L},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.k=i(i({},this.k),n.k),this.T=i(i({},this.T),n.T),this.O=i(i({},this.O),n.O),n.j&&Object.keys(n.j).length&&(this.j=n.j),n.I&&(this.I=n.I),n.N&&(this.N=n.N),n.A&&(this.A=n.A)):m(n)&&(n=n,this.k=i(i({},this.k),n.tags),this.T=i(i({},this.T),n.extra),this.O=i(i({},this.O),n.contexts),n.user&&(this.j=n.user),n.level&&(this.I=n.level),n.fingerprint&&(this.N=n.fingerprint),n.requestSession&&(this.A=n.requestSession)),this},t.prototype.clear=function(){return this.S=[],this.k={},this.T={},this.j={},this.O={},this.I=void 0,this.M=void 0,this.N=void 0,this.A=void 0,this.C=void 0,this.L=void 0,this.q(),this.R=[],this},t.prototype.addBreadcrumb=function(t,n){var r="number"==typeof n?Math.min(n,100):100;if(r<=0)return this;var e=i({timestamp:Rt()},t);return this.S=u(this.S,[e]).slice(-r),this.q(),this},t.prototype.clearBreadcrumbs=function(){return this.S=[],this.q(),this},t.prototype.addAttachment=function(t){return this.R.push(t),this},t.prototype.getAttachments=function(){return this.R},t.prototype.clearAttachments=function(){return this.R=[],this},t.prototype.applyToEvent=function(t,n){if(void 0===n&&(n={}),this.T&&Object.keys(this.T).length&&(t.extra=i(i({},this.T),t.extra)),this.k&&Object.keys(this.k).length&&(t.tags=i(i({},this.k),t.tags)),this.j&&Object.keys(this.j).length&&(t.user=i(i({},this.j),t.user)),this.O&&Object.keys(this.O).length&&(t.contexts=i(i({},this.O),t.contexts)),this.I&&(t.level=this.I),this.M&&(t.transaction=this.M),this.C){t.contexts=i({trace:this.C.getTraceContext()},t.contexts);var r=this.C.transaction&&this.C.transaction.name;r&&(t.tags=i({transaction:r},t.tags))}return this.U(t),t.breadcrumbs=u(t.breadcrumbs||[],this.S),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.P(u(nn(),this._),t,n)},t.prototype.setSDKProcessingMetadata=function(t){return this.D=i(i({},this.D),t),this},t.prototype.P=function(t,n,r,e){var o=this;return void 0===e&&(e=0),new Et((function(u,a){var c=t[e];if(null===n||"function"!=typeof c)u(n);else{var s=c(i({},n),r);g(s)?s.then((function(n){return o.P(t,n,r,e+1).then(u)})).then(null,a):o.P(t,s,r,e+1).then(u).then(null,a)}}))},t.prototype.q=function(){var t=this;this.m||(this.m=!0,this.g.forEach((function(n){n(t)})),this.m=!1)},t.prototype.U=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.N&&(t.fingerprint=t.fingerprint.concat(this.N)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function nn(){return s("globalEventProcessors",(function(){return[]}))}function rn(t){nn().push(t)}var en=function(){function t(t,n,r){void 0===n&&(n=new tn),void 0===r&&(r=4),this.H=r,this.F=[{}
2],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.H<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=tn.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.F},t.prototype.getStackTop=function(){return this.F[this.F.length-1]},t.prototype.captureException=function(t,n){var r=this.B=n&&n.event_id?n.event_id:ht(),e=new Error("Sentry syntheticException");return this.X((function(o,u){o.captureException(t,i(i({originalException:t,syntheticException:e},n),{event_id:r}),u)})),r},t.prototype.captureMessage=function(t,n,r){var e=this.B=r&&r.event_id?r.event_id:ht(),o=new Error(t);return this.X((function(u,a){u.captureMessage(t,n,i(i({originalException:t,syntheticException:o},r),{event_id:e}),a)})),e},t.prototype.captureEvent=function(t,n){var r=n&&n.event_id?n.event_id:ht();return"transaction"!==t.type&&(this.B=r),this.X((function(e,o){e.captureEvent(t,i(i({},n),{event_id:r}),o)})),r},t.prototype.lastEventId=function(){return this.B},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),e=r.scope,o=r.client;if(e&&o){var u=o.getOptions&&o.getOptions()||{},a=u.beforeBreadcrumb,s=void 0===a?null:a,f=u.maxBreadcrumbs,h=void 0===f?100:f;if(!(h<=0)){var v=Rt(),d=i({timestamp:v},t),l=s?function(t){var n=c();if(!("console"in n))return t();var r=n.console,i={};D.forEach((function(t){var e=r[t]&&r[t].__sentry_original__;t in n.console&&e&&(i[t]=r[t],r[t]=e)}));try{return t()}
2finally{Object.keys(i).forEach((function(t){r[t]=i[t]}))}}((function(){return s(d,n)})):d;null!==l&&e.addBreadcrumb(l,h)}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getScope();r&&r.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getScope();r&&r.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getScope();r&&r.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),r=n.scope,i=n.client;r&&i&&t(r)},t.prototype.run=function(t){var n=un(this);try{t(this)}finally{un(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(t){return null}},t.prototype.startTransaction=function(t,n){return this.W("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.W("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this.G()},t.prototype.endSession=function(){var t=this.getStackTop(),n=t&&t.scope,r=n&&n.getSession();r&&function(t,n){var r={};n?r={status:n}:"ok"===t.status&&(r={status:"exited"}),Zt(t,r)}(r),this.G(),n&&n.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),r=n.scope,e=n.client,o=e&&e.getOptions()||{},u=o.release,a=o.environment,s=(c().navigator||{}).userAgent,f=Yt(i(i(i({release:u,environment:a},r&&{user:r.getUser()}),s&&{userAgent:s}),t));if(r){var h=r.getSession&&r.getSession();h&&"ok"===h.status&&Zt(h,{status:"exited"}),this.endSession(),r.setSession(f)}return f},t.prototype.G=function(){var t=this.getStackTop(),n=t.scope,r=t.client;if(n){var i=n.getSession();i&&r&&r.captureSession&&r.captureSession(i)}},t.prototype.X=function(t){var n=this.getStackTop(),r=n.scope,i=n.client;i&&t(i,r)},t.prototype.W=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=on(),e=i.__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n)},t}();function on(){var t=c();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function un(t){var n=on(),r=cn(n);return sn(n,t),r}function an(){var t,n=on();return(t=n)&&t.__SENTRY__&&t.__SENTRY__.hub&&!cn(n).isOlderThan(4)||sn(n,new en),cn(n)}function cn(t){return s("hub",(function(){return new en}),t)}function sn(t,n){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0)}function captureException(t,n){return an().captureException(t,{captureContext:n})}function fn(t){an().withScope(t)}function hn(t){var n=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return n+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"}function vn(t){return n={sentry_key:t.publicKey,sentry_version:"7"},Object.keys(n).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])})).join("&");var n}function dn(t,n){return n||function(t){return""+hn(t)+t.projectId+"/envelope/"}(t)+"?"+vn(t)}function ln(t){if(t&&t.sdk){var n=t.sdk;return{name:n.name,version:n.version}}}function pn(t,n,r,e){var o=ln(r),a=t.type||"event",c=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=c.method,f=c.rate;!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=u(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=u(t.sdk.packages||[],n.packages||[]))}(t,r&&r.sdk),delete t.sdkProcessingMetadata;var h=function(t,n,r,e){var o=t.contexts&&t.contexts.baggage||{},u=o.environment,a=o.release,c=o.transaction,s=o.userid,f=o.usersegment;return i(i(i({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!r&&{dsn:k(e)}),"transaction"===t.type&&t.contexts&&t.contexts.trace&&{trace:B(i({trace_id:t.contexts.trace.trace_id,public_key:e.publicKey,environment:u,release:a,transaction:c},(s||f)&&{user:{id:s,segment:f}}))})}(t,o,e,n);return Mt(h,[[{type:a,sample_rates:[{id:s,rate:f}]},t]])}var yn=[];function mn(t){return t.reduce((function(t,n){return t.every((function(t){return n.name!==t.name}
2))&&t.push(n),t}),[])}function bn(t){var n=t.defaultIntegrations&&u(t.defaultIntegrations)||[],r=t.integrations,i=u(mn(n));Array.isArray(r)?i=u(i.filter((function(t){return r.every((function(n){return n.name!==t.name}))})),mn(r)):"function"==typeof r&&(i=r(i),i=Array.isArray(i)?i:[i]);var e=i.map((function(t){return t.name})),o="Debug";return-1!==e.indexOf(o)&&i.push.apply(i,u(i.splice(e.indexOf(o),1))),i}var gn=function(){function t(t){if(this.J={},this.K=!1,this.V=0,this.Y={},this.Z=t,t.dsn){this.tt=O(t.dsn);var n=dn(this.tt,t.tunnel);this.nt=t.transport(i(i({recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}))}}return t.prototype.captureException=function(t,n,r){var i=this;if(!mt(t)){var e=n&&n.event_id;return this.rt(this.eventFromException(t,n).then((function(t){return i.it(t,n,r)})).then((function(t){e=t}))),e}},t.prototype.captureMessage=function(t,n,r,i){var e=this,o=r&&r.event_id,u=y(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this.rt(u.then((function(t){return e.it(t,r,i)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,n,r){if(!(n&&n.originalException&&mt(n.originalException))){var i=n&&n.event_id;return this.rt(this.it(t,n,r).then((function(t){i=t}))),i}},t.prototype.captureSession=function(t){this.et()&&("string"!=typeof t.release||(this.sendSession(t),Zt(t,{init:!1})))},t.prototype.getDsn=function(){return this.tt},t.prototype.getOptions=function(){return this.Z},t.prototype.getTransport=function(){return this.nt},t.prototype.flush=function(t){var n=this.nt;return n?this.ot(t).then((function(r){return n.flush(t).then((function(t){return r&&t}))})):xt(!0)},t.prototype.close=function(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){var t,n;this.et()&&!this.K&&(this.J=(t=this.Z.integrations,n={},t.forEach((function(t){n[t.name]=t,-1===yn.indexOf(t.name)&&(t.setupOnce(rn,an),yn.push(t.name))})),n),this.K=!0)},t.prototype.getIntegrationById=function(t){return this.J[t]},t.prototype.getIntegration=function(t){try{return this.J[t.id]||null}catch(t){return null}},t.prototype.sendEvent=function(t,n){var r,i,o;if(void 0===n&&(n={}),this.tt){var u=pn(t,this.tt,this.Z.ut,this.Z.tunnel);try{for(var a=e(n.attachments||[]),c=a.next();!c.done;c=a.next()){u=Nt(u,Pt(c.value,null===(o=this.Z.transportOptions)||void 0===o?void 0:o.textEncoder))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}this.at(u)}},t.prototype.sendSession=function(t){if(this.tt){var n=function(t,n,r,e){var o=ln(r);return Mt(i(i({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!e&&{dsn:k(n)}),["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this.tt,this.Z.ut,this.Z.tunnel);this.at(n)}},t.prototype.recordDroppedEvent=function(t,n){if(this.Z.sendClientReports){var r=t+":"+n;this.Y[r]=this.Y[r]+1||1}},t.prototype.ct=function(t,n){var r,o,u=!1,a=!1,c=n.exception&&n.exception.values;if(c){a=!0;try{for(var s=e(c),f=s.next();!f.done;f=s.next()){var h=f.value.mechanism;if(h&&!1===h.handled){u=!0;break}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}}var v="ok"===t.status;(v&&0===t.errors||v&&u)&&(Zt(t,i(i({},u&&{status:"crashed"}),{errors:t.errors||Number(a||u)})),this.captureSession(t))},t.prototype.ot=function(t){var n=this;return new Et((function(r){var i=0,e=setInterval((function(){0==n.V?(clearInterval(e),r(!0)):(i+=1,t&&i>=t&&(clearInterval(e),r(!1)))}),1)}))},t.prototype.et=function(){return!1!==this.getOptions().enabled&&void 0!==this.tt},t.prototype.st=function(t,n,r){var e=this,o=this.getOptions(),a=o.normalizeDepth,c=void 0===a?3:a,s=o.normalizeMaxBreadth,f=void 0===s?1e3:s,h=i(i({},t),{event_id:t.event_id||n.event_id||ht(),timestamp:t.timestamp||Rt()});this.ft(h),this.ht(h);var v=r;n.captureContext&&(v=tn.clone(v).update(n.captureContext));var d=xt(h);if(v){var l=u(n.attachments||[],v.getAttachments());l.length&&(n.attachments=l),d=v.applyToEvent(h,n)}return d.then((function(t){return"number"==typeof c&&c>0?e.vt(t,c,f):t}))},t.prototype.vt=function(t,n,r){if(!t)return null;var e=i(i(i(i(i({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return i(i({},t),t.data&&{data:bt(t.data,n,r)})}))}),t.user&&{user:bt(t.user,n,r)}),t.contexts&&{contexts:bt(t.contexts,n,r)}),t.extra&&{extra:bt(t.extra,n,r)});return t.contexts&&t.contexts.trace&&e.contexts&&(e.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(e.contexts.trace.data=bt(t.contexts.trace.data,n,r))),t.spans&&(e.spans=t.spans.map((function(t){return t.data&&(t.data=bt(t.data,n,r)),t}))),e},t.prototype.ft=function(t){var n=this.getOptions(),r=n.environment,i=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=I(t.message,u));var a=t.exception&&t.exception.values&&t.exception.values[0];
2a&&a.value&&(a.value=I(a.value,u));var c=t.request;c&&c.url&&(c.url=I(c.url,u))},t.prototype.ht=function(t){var n=Object.keys(this.J);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=u(t.sdk.integrations||[],n))},t.prototype.it=function(t,n,r){return void 0===n&&(n={}),this.dt(t,n,r).then((function(t){return t.event_id}),(function(t){}))},t.prototype.dt=function(t,n,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;if(!this.et())return _t(new S("SDK not enabled, will not capture event."));var a="transaction"===t.type;return!a&&"number"==typeof u&&Math.random()>u?(this.recordDroppedEvent("sample_rate","error"),_t(new S("Discarding event because it's not included in the random sample (sampling rate = "+u+")"))):this.st(t,n,r).then((function(r){if(null===r)throw i.recordDroppedEvent("event_processor",t.type||"error"),new S("An event processor returned null, will not send event.");return n.data&&!0===n.data.__sentry__||a||!o?r:function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(g(t))return t.then((function(t){if(!m(t)&&null!==t)throw new S(n);return t}),(function(t){throw new S("beforeSend rejected with "+t)}));if(!m(t)&&null!==t)throw new S(n);return t}(o(r,n))})).then((function(e){if(null===e)throw i.recordDroppedEvent("before_send",t.type||"error"),new S("`beforeSend` returned `null`, will not send event.");var o=r&&r.getSession();return!a&&o&&i.ct(o,e),i.sendEvent(e,n),e})).then(null,(function(t){if(t instanceof S)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new S("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype.rt=function(t){var n=this;this.V+=1,t.then((function(t){return n.V-=1,t}),(function(t){return n.V-=1,t}))},t.prototype.at=function(t){this.nt&&this.tt&&this.nt.send(t).then(null,(function(t){}))},t.prototype.lt=function(){var t=this.Y;return this.Y={},Object.keys(t).map((function(n){var r=o(n.split(":"),2);return{reason:r[0],category:r[1],quantity:t[n]}}))},t}();function wn(t,n,r){void 0===r&&(r=St(t.bufferSize||30));var i={};return{send:function(e){var o=[];if(At(e,(function(n,r){var e,u,a,c=Ft(r);e=i,u=c,void 0===a&&(a=Date.now()),function(t,n){return t[n]||t.all||0}(e,u)>a?t.recordDroppedEvent("ratelimit_backoff",c):o.push(n)})),0===o.length)return xt();var u=Mt(e[0],o),a=function(n){At(u,(function(r,i){t.recordDroppedEvent(n,Ft(i))}))};return r.add((function(){return n({body:Ut(u,t.textEncoder)}).then((function(t){i=Bt(i,t)}),(function(t){a("network_error")}))})).then((function(t){return t}),(function(t){if(t instanceof S)return a("queue_overflow"),xt();throw t}))},flush:function(t){return r.drain(t)}}}var xn,_n="7.2.0",En=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){xn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=q(this)||this;return xn.apply(r,t)}},t.id="FunctionToString",t}(),Sn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],jn=function(){function t(n){void 0===n&&(n={}),this.Z=n,this.name=t.id}return t.prototype.setupOnce=function(n,r){var i=function(n){var i=r();if(i){var e=i.getIntegration(t);if(e){var o=i.getClient(),a=o?o.getOptions():{},c=function(t,n){void 0===t&&(t={});void 0===n&&(n={});return{allowUrls:u(t.allowUrls||[],n.allowUrls||[]),denyUrls:u(t.denyUrls||[],n.denyUrls||[]),ignoreErrors:u(t.ignoreErrors||[],n.ignoreErrors||[],Sn),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e.Z,a);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(!n||!n.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=void 0===r?"":r,e=n.value,o=void 0===e?"":e;return[""+o,i+": "+o]}catch(t){return[]}return[]}(t).some((function(t){return n.some((function(n){return L(t,n)}))}))}(t,n.ignoreErrors))return!0;
2if(function(t,n){if(!n||!n.length)return!1;var r=kn(t);return!!r&&n.some((function(t){return L(r,t)}))}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;var r=kn(t);return!r||n.some((function(t){return L(r,t)}))}(t,n.allowUrls))return!0;return!1}(n,c)?null:n}}return n};i.id=this.name,n(i)},t.id="InboundFilters",t}();function kn(t){try{var n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t){void 0===t&&(t=[]);for(var n=t.length-1;n>=0;n--){var r=t[n];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(n):null}catch(t){return null}}var Tn=Object.freeze({__proto__:null,FunctionToString:En,InboundFilters:jn});function On(t,n){var r=Dn(t,n),i={type:n&&n.name,value:Cn(n)};return r.length&&(i.stacktrace={frames:r}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Rn(t,n){return{exception:{values:[On(t,n)]}}}function Dn(t,n){var r=n.stacktrace||n.stack||"",i=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(In.test(t.message))return 1}return 0}(n);try{return t(r,i)}catch(t){}return[]}var In=/Minified React error #\d+;/i;function Cn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Ln(t,n,r,e,o){var u;if(d(n)&&n.error)return Rn(t,n.error);if(l(n)||v(n,"DOMException")){var a=n;if("stack"in n)u=Rn(t,n);else{var c=a.name||(l(a)?"DOMError":"DOMException"),s=a.message?c+": "+a.message:c;pt(u=Mn(t,s,r,e),s)}return"code"in a&&(u.tags=i(i({},u.tags),{"DOMException.code":""+a.code})),u}return h(n)?Rn(t,n):m(n)||b(n)?(u=function(t,n,r,i){var e={exception:{values:[{type:b(n)?n.constructor.name:i?"UnhandledRejection":"Error",value:"Non-Error "+(i?"promise rejection":"exception")+" captured with keys: "+F(n)}]},extra:{__serialized__:gt(n)}};if(r){var o=Dn(t,r);o.length&&(e.exception.values[0].stacktrace={frames:o})}return e}(t,n,r,o),yt(u,{synthetic:!0}),u):(pt(u=Mn(t,n,r,e),""+n,void 0),yt(u,{synthetic:!0}),u)}function Mn(t,n,r,i){var e={message:n};if(i&&r){var o=Dn(t,r);o.length&&(e.exception={values:[{value:n,stacktrace:{frames:o}}]})}return e}var Nn="Breadcrumbs",An=function(){function t(n){this.name=t.id,this.options=i({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.setupOnce=function(){this.options.console&&nt("console",qn),this.options.dom&&nt("dom",function(t){function n(n){var r,i="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof i&&(i=[i]);try{r=n.event.target?_(n.event.target,i):_(n.event,i)}catch(t){r="<unknown>"}0!==r.length&&an().addBreadcrumb({category:"ui."+n.name,message:r},{event:n.event,name:n.name,global:n.global})}return n}(this.options.dom)),this.options.xhr&&nt("xhr",Un),this.options.fetch&&nt("fetch",Pn),this.options.history&&nt("history",Hn)},t.id=Nn,t}();function qn(t){var n,r={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":jt.includes(n)?n:"log"),message:C(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: "+(C(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}an().addBreadcrumb(r,{input:t.args,level:t.level})}function Un(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;an().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;}function Pn(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?an().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):an().addBreadcrumb({category:"fetch",data:i(i({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function Hn(t){var n=c(),r=t.from,i=t.to,e=vt(n.location.href),o=vt(r),u=vt(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),an().addBreadcrumb({category:"navigation",data:{from:r,to:i}})}var Fn,Bn=c();function Xn(){if(Fn)return Fn;if(K(Bn.fetch))return Fn=Bn.fetch.bind(Bn);var t=Bn.document,n=Bn.fetch;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);var i=r.contentWindow;i&&i.fetch&&(n=i.fetch),t.head.removeChild(r)}catch(t){}return Fn=n.bind(Bn)}var zn=c(),Wn=function(t){function n(n){var r=this;return n.ut=n.ut||{},n.ut.sdk=n.ut.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:_n}],version:_n},r=t.call(this,n)||this,n.sendClientReports&&zn.document&&zn.document.addEventListener("visibilitychange",(function(){"hidden"===zn.document.visibilityState&&r.yt()})),r}return r(n,t),n.prototype.eventFromException=function(t,n){return function(t,n,r,i){var e=Ln(t,n,r&&r.syntheticException||void 0,i);return yt(e),e.level="error",r&&r.event_id&&(e.event_id=r.event_id),xt(e)}(this.Z.stackParser,t,n,this.Z.attachStacktrace)},n.prototype.eventFromMessage=function(t,n,r){return void 0===n&&(n="info"),function(t,n,r,i,e){void 0===r&&(r="info");var o=Mn(t,n,i&&i.syntheticException||void 0,e);return o.level=r,i&&i.event_id&&(o.event_id=i.event_id),xt(o)}(this.Z.stackParser,t,n,r,this.Z.attachStacktrace)},n.prototype.sendEvent=function(n,r){var i=this.getIntegrationById(Nn);i&&i.options&&i.options.sentry&&an().addBreadcrumb({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:lt(n)},{event:n}),t.prototype.sendEvent.call(this,n,r)},n.prototype.st=function(n,r,i){return n.platform=n.platform||"javascript",t.prototype.st.call(this,n,r,i)},n.prototype.yt=function(){var t=this.lt();if(0!==t.length&&this.tt){var n,r,i,e=dn(this.tt,this.Z.tunnel),o=(n=t,Mt((r=this.Z.tunnel&&k(this.tt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Rt(),discarded_events:n}]]));try{!function(t,n){"[object Navigator]"===Object.prototype.toString.call(Bn&&Bn.navigator)&&"function"==typeof Bn.navigator.sendBeacon?Bn.navigator.sendBeacon.bind(Bn.navigator)(t,n):J()&&Xn()(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){}))}(e,Ut(o))}catch(t){}}},n}(gn);function $n(t,n){return void 0===n&&(n=Xn()),wn(t,(function(r){var e=i({body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers},t.fetchOptions);return n(t.url,e).then((function(t){return{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}))}))}function Gn(t){return wn(t,(function(n){return new Et((function(r,i){var e=new XMLHttpRequest;for(var o in e.onerror=i,e.onreadystatechange=function(){4===e.readyState&&r({statusCode:e.status,headers:{"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")}})},e.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,o)&&e.setRequestHeader(o,t.headers[o]);e.send(n.body)}))}))}var Jn="?";function Kn(t,n,r,i){var e={filename:t,function:n,in_app:!0};return void 0!==r&&(e.lineno=r),void 0!==i&&(e.colno=i),e}var Vn=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Qn=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nr=[[30,function(t){var n=Vn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){var r=Qn.exec(n[2]);r&&(n[2]=r[1],n[3]=r[2],n[4]=r[3])}var i=o(ir(n[1]||Jn,n[2]),2),e=i[0];return Kn(i[1],e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,function(t){var n,r=Yn.exec(t);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var i=Zn.exec(r[3]);i&&(r[1]=r[1]||"eval",r[3]=i[1],r[4]=i[2],r[5]="")}var e=r[3],u=r[1]||Jn;return u=(n=o(ir(u,e),2))[0],Kn(e=n[1],u,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}}],[40,function(t){var n=tr.exec(t);return n?Kn(n[2],n[1]||Jn,+n[3],n[4]?+n[4]:void 0):void 0}]],rr=z.apply(void 0,u(nr)),ir=function(t,n){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:Jn,r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]},er=0;function or(){return er>0}function ur(){er+=1,setTimeout((function(){er-=1}))}function ar(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{var e=t.__sentry_wrapped__;if(e)return e;if(q(t))return t}catch(n){return t}var sentryWrapped=function(){var e=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=e.map((function(t){return ar(t,n)}));return t.apply(this,o)}catch(t){throw ur(),fn((function(r){r.addEventProcessor((function(t){return n.mechanism&&(pt(t,void 0,void 0),yt(t,n.mechanism)),t.extra=i(i({},t.extra),{arguments:e}),t})),captureException(t)})),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(sentryWrapped[o]=t[o
2])}catch(t){}A(sentryWrapped,t),N(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}var cr=function(){function t(n){this.name=t.id,this.bt={onerror:sr,onunhandledrejection:fr},this.Z=i({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this.Z;for(var n in t){var r=this.bt[n];r&&t[n]&&(r(),this.bt[n]=void 0)}},t.id="GlobalHandlers",t}();function sr(){nt("error",(function(t){var n=o(dr(),3),r=n[0],i=n[1],e=n[2];if(r.getIntegration(cr)){var u=t.msg,a=t.url,c=t.line,s=t.column,f=t.error;if(!(or()||f&&f.__sentry_own_request__)){var h=void 0===f&&p(u)?function(t,n,r,i){var e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=d(t)?t.message:t,u="Error",a=o.match(e);a&&(u=a[1],o=a[2]);return hr({exception:{values:[{type:u,value:o}]}},n,r,i)}(u,a,c,s):hr(Ln(i,f||u,void 0,e,!1),a,c,s);h.level="error",vr(r,f,h,"onerror")}}}))}function fr(){nt("unhandledrejection",(function(t){var n=o(dr(),3),r=n[0],i=n[1],e=n[2];if(r.getIntegration(cr)){var u=t;try{"reason"in t?u=t.reason:"detail"in t&&"reason"in t.detail&&(u=t.detail.reason)}catch(t){}if(or()||u&&u.__sentry_own_request__)return!0;var a=y(u)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(u)}]}}:Ln(i,u,void 0,e,!0);a.level="error",vr(r,u,a,"onunhandledrejection")}}))}function hr(t,n,r,i){var e=t.exception=t.exception||{},o=e.values=e.values||[],u=o[0]=o[0]||{},a=u.stacktrace=u.stacktrace||{},s=a.frames=a.frames||[],f=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(r,10))?void 0:r,v=p(n)&&n.length>0?n:function(){var t=c();try{return t.document.location.href}catch(t){return""}}();return 0===s.length&&s.push({colno:f,filename:v,function:"?",in_app:!0,lineno:h}),t}function vr(t,n,r,i){yt(r,{handled:!1,type:i}),t.captureEvent(r,{originalException:n})}function dr(){var t=an(),n=t.getClient(),r=n&&n.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[t,r.stackParser,r.attachStacktrace]}var lr=["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"],pr=function(){function t(n){this.name=t.id,this.Z=i({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=c();this.Z.setTimeout&&M(t,"setTimeout",yr),this.Z.setInterval&&M(t,"setInterval",yr),this.Z.requestAnimationFrame&&M(t,"requestAnimationFrame",mr),this.Z.XMLHttpRequest&&"XMLHttpRequest"in t&&M(XMLHttpRequest.prototype,"send",br);var n=this.Z.eventTarget;n&&(Array.isArray(n)?n:lr).forEach(gr)},t.id="TryCatch",t}();function yr(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[0];return n[0]=ar(i,{mechanism:{data:{function:G(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function mr(t){return function(n){return t.apply(this,[ar(n,{mechanism:{data:{function:"requestAnimationFrame",handler:G(t)},handled:!0,type:"instrument"}})])}}function br(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,e=["onload","onerror","onprogress","onreadystatechange"];return e.forEach((function(t){t in i&&"function"==typeof i[t]&&M(i,t,(function(n){var r={mechanism:{data:{function:t,handler:G(n)},handled:!0,type:"instrument"}},i=q(n);return i&&(r.mechanism.data.handler=G(i)),ar(n,r)}))})),t.apply(this,n)}}function gr(t){var n=c(),r=n[t]&&n[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(M(r,"addEventListener",(function(n){return function(r,i,e){try{"function"==typeof i.handleEvent&&(i.handleEvent=ar(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:G(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}
2return n.apply(this,[r,ar(i,{mechanism:{data:{function:"addEventListener",handler:G(i),target:t},handled:!0,type:"instrument"}}),e])}})),M(r,"removeEventListener",(function(t){return function(n,r,i){var e=r;try{var o=e&&e.__sentry_wrapped__;o&&t.call(this,n,o,i)}catch(t){}return t.call(this,n,e,i)}})))}var wr=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.gt=n.key||"cause",this.wt=n.limit||5}return t.prototype.setupOnce=function(){var n=an().getClient();n&&rn((function(r,i){var e=an().getIntegration(t);return e?function(t,n,r,i,e){if(!(i.exception&&i.exception.values&&e&&x(e.originalException,Error)))return i;var o=xr(t,r,e.originalException,n);return i.exception.values=u(o,i.exception.values),i}(n.getOptions().stackParser,e.gt,e.wt,r,i):r}))},t.id="LinkedErrors",t}();function xr(t,n,r,i,e){if(void 0===e&&(e=[]),!x(r[i],Error)||e.length+1>=n)return e;var o=On(t,r[i]);return xr(t,n,r[i],i,u([o],e))}var _r=c(),Er=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){rn((function(n){if(an().getIntegration(t)){if(!_r.navigator&&!_r.location&&!_r.document)return n;var r=n.request&&n.request.url||_r.location&&_r.location.href,e=(_r.document||{}).referrer,o=(_r.navigator||{}).userAgent,u=i(i(i({},n.request&&n.request.headers),e&&{Referer:e}),o&&{"User-Agent":o}),a=i(i({},r&&{url:r}),{headers:u});return i(i({},n),{request:a})}return n}))},t.id="HttpContext",t}(),Sr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){var i=function(n){var i=r().getIntegration(t);if(i){try{if(function(t,n){if(!n)return!1;if(function(t,n){var r=t.message,i=n.message;if(!r&&!i)return!1;if(r&&!i||!r&&i)return!1;if(r!==i)return!1;if(!kr(t,n))return!1;if(!jr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){var r=Tr(n),i=Tr(t);if(!r||!i)return!1;if(r.type!==i.type||r.value!==i.value)return!1;if(!kr(t,n))return!1;if(!jr(t,n))return!1;return!0}(t,n))return!0;return!1}(n,i.xt))return null}catch(t){return i.xt=n}return i.xt=n}return n};i.id=this.name,n(i)},t.id="Dedupe",t}();function jr(t,n){var r=Or(t),i=Or(n);if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;if(r=r,(i=i).length!==r.length)return!1;for(var e=0;e<i.length;e++){var o=i[e],u=r[e];if(o.filename!==u.filename||o.lineno!==u.lineno||o.colno!==u.colno||o.function!==u.function)return!1}return!0}function kr(t,n){var r=t.fingerprint,i=n.fingerprint;if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;r=r,i=i;try{return!(r.join("")!==i.join(""))}catch(t){return!1}}function Tr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Or(t){var n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}}var Rr=Object.freeze({__proto__:null,GlobalHandlers:cr,TryCatch:pr,Breadcrumbs:An,LinkedErrors:wr,HttpContext:Er,Dedupe:Sr}),Dr=[new jn,new En,new pr,new An,new cr,new wr,new Sr,new Er];function Ir(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var Cr={},Lr=c();Lr.Sentry&&Lr.Sentry.Integrations&&(Cr=Lr.Sentry.Integrations);var Mr=i(i(i({},Cr),Tn),Rr);function Nr(t){var n=an().getClient(),r=t||n&&n.getOptions();return!!r&&("tracesSampleRate"in r||"tracesSampler"in r)}function Ar(t){var n=(t||an()).getScope();return n&&n.getTransaction()}function qr(t){return t/1e3}function Ur(){var t=Ar();if(t){t.setStatus("internal_error")}}var Pr=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._t=t}return t.prototype.add=function(t){this.spans.length>this._t?t.spanRecorder=void 0:this.spans.push(t)},t}(),Hr=function(){function t(t){if(this.traceId=ht(),this.spanId=ht().substring(16),this.startTimestamp=It(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.startChild=function(n){var r=new t(i(i({},n),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,r},t.prototype.setTag=function(t,n){var r;return this.tags=i(i({},this.tags),((r={})[t]=n,r)),this},t.prototype.setData=function(t,n){var r;return this.data=i(i({},this.data),((r={})[t]=n,r)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==n&&this.setStatus(n),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:It()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return B({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var n,r,i,e,o;return this.data=null!==(n=t.data)&&void 0!==n?n:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!==(r=t.spanId)&&void 0!==r?r:this.spanId,this.startTimestamp=null!==(i=t.startTimestamp)&&void 0!==i?i:this.startTimestamp,this.status=t.status,this.tags=null!==(e=t.tags)&&void 0!==e?e:{},this.traceId=null!==(o=t.traceId)&&void 0!==o?o:this.traceId,this},t.prototype.getTraceContext=function(){return B({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.getBaggage=function(){var t=this.transaction&&this.transaction.metadata.baggage;return!t||Jt(t)&&Gt(t)?this.Et(t):t},t.prototype.toJSON=function(){return B({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t.prototype.Et=function(t){void 0===t&&(t=Wt({}));var n=(this.transaction&&this.transaction.St||an()).getClient(),r=n&&n.getOptions()||{},i=r.environment,e=r.release;return i&&$t(t,"environment",i),e&&$t(t,"release",e),Kt(t),t},t}();var Fr=function(t){function n(n,r){var i=t.call(this,n)||this;return i.jt={},i.St=r||an(),i.name=n.name||"",i.metadata=n.metadata||{},i.kt=n.trimEnd,i.transaction=i,i}return r(n,t),n.prototype.setName=function(t){this.name=t},n.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new Pr(t)),this.spanRecorder.add(this)},n.prototype.setMeasurement=function(t,n,r){void 0===r&&(r=""),this.jt[t]={value:n,unit:r}},n.prototype.setMetadata=function(t){this.metadata=i(i({},this.metadata),t)},n.prototype.finish=function(n){var r=this;
2if(void 0===this.endTimestamp){if(this.name||(this.name="<unlabeled transaction>"),t.prototype.finish.call(this,n),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==r&&t.endTimestamp})):[];this.kt&&i.length>0&&(this.endTimestamp=i.reduce((function(t,n){return t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t})).endTimestamp);var e,o={contexts:{trace:this.getTraceContext(),baggage:(e=this.getBaggage(),e[0])},spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this.jt).length>0&&(o.measurements=this.jt),this.St.captureEvent(o)}var u=this.St.getClient();u&&u.recordDroppedEvent("sample_rate","transaction")}},n.prototype.toContext=function(){var n=t.prototype.toContext.call(this);return B(i(i({},n),{name:this.name,trimEnd:this.kt}))},n.prototype.updateWithContext=function(n){var r;return t.prototype.updateWithContext.call(this,n),this.name=null!==(r=n.name)&&void 0!==r?r:"",this.kt=n.trimEnd,this},n}(Hr),Br=function(t){function n(n,r,i,e){var o=t.call(this,e)||this;return o.Tt=n,o.Ot=r,o.transactionSpanId=i,o}return r(n,t),n.prototype.add=function(n){var r=this;n.spanId!==this.transactionSpanId&&(n.finish=function(t){n.endTimestamp="number"==typeof t?t:It(),r.Ot(n.spanId)},void 0===n.endTimestamp&&this.Tt(n.spanId)),t.prototype.add.call(this,n)},n}(Pr),Xr=function(t){function n(n,r,i,e,o){void 0===i&&(i=1e3),void 0===e&&(e=3e4),void 0===o&&(o=!1);var u=t.call(this,n,r)||this;return u.Rt=r,u.Dt=i,u.It=e,u.Ct=o,u.activities={},u.Lt=0,u.Mt=!1,u.Nt=[],o&&(zr(r),r.configureScope((function(t){return t.setSpan(u)}))),u.At(),setTimeout((function(){u.Mt||(u.setStatus("deadline_exceeded"),u.finish())}),u.It),u}return r(n,t),n.prototype.finish=function(n){var r,i,o=this;if(void 0===n&&(n=It()),this.Mt=!0,this.activities={},this.spanRecorder){try{for(var u=e(this.Nt),a=u.next();!a.done;a=u.next()){(0,a.value)(this,n)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){return t.spanId===o.spanId||(t.endTimestamp||(t.endTimestamp=n,t.setStatus("cancelled")),t.startTimestamp<n)}))}return this.Ct&&zr(this.Rt),t.prototype.finish.call(this,n)},n.prototype.registerBeforeFinishCallback=function(t){this.Nt.push(t)},n.prototype.initSpanRecorder=function(t){var n=this;if(!this.spanRecorder){this.spanRecorder=new Br((function(t){n.Mt||n.Tt(t)}),(function(t){n.Mt||n.Ot(t)}),this.spanId,t),this.qt()}this.spanRecorder.add(this)},n.prototype.Ut=function(){this.Pt&&(clearTimeout(this.Pt),this.Pt=void 0)},n.prototype.At=function(t){var n=this;this.Ut(),this.Pt=setTimeout((function(){n.Mt||0!==Object.keys(n.activities).length||n.finish(t)}),this.Dt)},n.prototype.Tt=function(t){this.Ut(),this.activities[t]=!0},n.prototype.Ot=function(t){if(this.activities[t]&&delete this.activities[t],0===Object.keys(this.activities).length){var n=It()+this.Dt/1e3;this.At(n)}},n.prototype.Ht=function(){if(!this.Mt){var t=Object.keys(this.activities).join("");t===this.Ft?this.Lt+=1:this.Lt=1,this.Ft=t,this.Lt>=3?(this.setStatus("deadline_exceeded"),this.finish()):this.qt()}},n.prototype.qt=function(){var t=this;setTimeout((function(){t.Ht()}),5e3)},n}(Fr);function zr(t){var n=t.getScope();n&&(n.getTransaction()&&n.setSpan(void 0))}function Wr(){var t=this.getScope();if(t){var n=t.getSpan();if(n)return{"sentry-trace":n.toTraceparent()}}return{}}function $r(t,n,r){return Nr(n)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"==typeof n.tracesSampler?(i=n.tracesSampler(r),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(i)}})):void 0!==r.parentSampled?(i=r.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(i=n.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(i)}})),function(t){if(w(t)||"number"!=typeof t&&"boolean"!=typeof t)return!1;if(t<0||t>1)return!1;return!0}
2(i)&&i?(t.sampled=Math.random()<i,t.sampled,t):(t.sampled=!1,t)):(t.sampled=!1,t);var i}function Gr(t,n){var r=this.getClient(),e=r&&r.getOptions()||{},o=new Fr(t,this);return(o=$r(o,e,i({parentSampled:t.parentSampled,transactionContext:t},n))).sampled&&o.initSpanRecorder(e._experiments&&e._experiments.maxSpans),o}function Jr(){var t;(t=on()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Gr),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Wr)),nt("error",Ur),nt("unhandledrejection",Ur)}var Kr=c();var Vr=function(t,n,r){var i;return function(e){n.value>=0&&(e||r)&&(n.delta=n.value-(i||0),(n.delta||void 0===i)&&(i=n.value,t(n)))}},Qr=function(t,n){return{name:t,value:null!=n?n:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},Yr=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver((function(t){return t.getEntries().map(n)}));return r.observe({type:t,buffered:!0}),r}}catch(t){}},Zr=function(t,n){var r=function(i){"pagehide"!==i.type&&"hidden"!==c().document.visibilityState||(t(i),n&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},ti=-1,ni=function(){return ti<0&&(ti="hidden"===c().document.visibilityState?0:1/0,Zr((function(t){var n=t.timeStamp;ti=n}),!0)),{get firstHiddenTime(){return ti}}},ri={};function ii(t){return"number"==typeof t&&isFinite(t)}function ei(t,n){var r=n.startTimestamp,e=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e<i.length;e++)n.indexOf(i[e])<0&&Object.prototype.propertyIsEnumerable.call(t,i[e])&&(r[i[e]]=t[i[e]])}return r}(n,["startTimestamp"]);return r&&t.startTimestamp>r&&(t.startTimestamp=r),t.startChild(i({startTimestamp:r},e))}var oi=c();function ui(){return oi&&oi.addEventListener&&oi.performance}var ai,ci,si=0,fi={};function hi(t){void 0===t&&(t=!1);var n=ui();n&&Ct&&(n.mark&&oi.performance.mark("sentry-tracing-init"),function(t,n){var r,i=Qr("CLS",0),e=0,o=[],u=function(t){if(t&&!t.hadRecentInput){var n=o[0],u=o[o.length-1];e&&0!==o.length&&t.startTime-u.startTime<1e3&&t.startTime-n.startTime<5e3?(e+=t.value,o.push(t)):(e=t.value,o=[t]),e>i.value&&(i.value=e,i.entries=o,r&&r())}},a=Yr("layout-shift",u);a&&(r=Vr(t,i,n),Zr((function(){a.takeRecords().map(u),r(!0)})))}((function(t){var n=t.entries.pop();n&&(fi.cls={value:t.value,unit:"millisecond"},ci=n)})),function(t){!function(t,n){var r,i=ni(),e=Qr("LCP"),o=function(t){var n=t.startTime;n<i.firstHiddenTime&&(e.value=n,e.entries.push(t)),r&&r()},u=Yr("largest-contentful-paint",o);if(u){r=Vr(t,e,n);var a=function(){ri[e.id]||(u.takeRecords().map(o),u.disconnect(),ri[e.id]=!0,r(!0))};["keydown","click"].forEach((function(t){addEventListener(t,a,{once:!0,capture:!0})})),Zr(a,!0)}}((function(t){var n=t.entries.pop();if(n){var r=qr(Ct),i=qr(n.startTime);fi.lcp={value:t.value,unit:"millisecond"},fi["mark.lcp"]={value:r+i,unit:"second"},ai=n}}),t)}(t),function(t,n){var r,i=ni(),e=Qr("FID"),o=function(t){r&&t.startTime<i.firstHiddenTime&&(e.value=t.processingStart-t.startTime,e.entries.push(t),r(!0))},u=Yr("first-input",o);u&&(r=Vr(t,e,n),Zr((function(){u.takeRecords().map(o),u.disconnect()}),!0))}((function(t){var n=t.entries.pop();if(n){var r=qr(Ct),i=qr(n.startTime);fi.fid={value:t.value,unit:"millisecond"},fi["mark.fid"]={value:r+i,unit:"second"}}})))}function vi(t){var n=ui();if(n&&oi.performance.getEntries&&Ct){var r,i,e=qr(Ct),o=n.getEntries();o.slice(si).forEach((function(n){var o=qr(n.startTime),u=qr(n.duration);if(!("navigation"===t.op&&e+o<t.startTimestamp))switch(n.entryType){case"navigation":!function(t,n,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(i){di(t,n,i,r)})),di(t,n,"secureConnection",r,"TLS/SSL","connectEnd"),di(t,n,"fetch",r,"cache","domainLookupStart"),di(t,n,"domainLookup",r,"DNS"),function(t,n,r){ei(t,{op:"browser",description:"request",startTimestamp:r+qr(n.requestStart),endTimestamp:r+qr(n.responseEnd)}),ei(t,{op:"browser",description:"response",startTimestamp:r+qr(n.responseStart),endTimestamp:r+qr(n.responseEnd)})}(t,n,r)}(t,n,e),r=e+qr(n.responseStart),i=e+qr(n.requestStart);break;case"mark":case"paint":case"measure":var a=function(t,n,r,i,e){var o=e+r,u=o+i;return ei(t,{description:n.name,endTimestamp:u,op:n.entryType,startTimestamp:o}),o}(t,n,o,u,e),c=ni(),s=n.startTime<c.firstHiddenTime;"first-paint"===n.name&&s&&(fi.fp={value:n.startTime,unit:"millisecond"},fi["mark.fp"]={value:a,unit:"second"}),"first-contentful-paint"===n.name&&s&&(fi.fcp={value:n.startTime,unit:"millisecond"},fi["mark.fcp"]={value:a,unit:"second"});break;case"resource":var f=n.name.replace(oi.location.origin,"");!function(t,n,r,i,e,o){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;var u={};"transferSize"in n&&(u["Transfer Size"]=n.transferSize);"encodedBodySize"in n&&(u["Encoded Body Size"]=n.encodedBodySize);"decodedBodySize"in n&&(u["Decoded Body Size"]=n.decodedBodySize);var a=o+i;ei(t,{description:r,endTimestamp:a+e,op:n.initiatorType?"resource."+n.initiatorType:"resource",startTimestamp:a,data:u})}(t,n,f,o,u,e)}})),si=Math.max(o.length-1,0),function(t){var n=oi.navigator;if(!n)return;var r=n.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),ii(r.rtt)&&(fi["connection.rtt"]={value:r.rtt,unit:"millisecond"}),ii(r.downlink)&&(fi["connection.downlink"]={value:r.downlink,unit:""}));ii(n.deviceMemory)&&t.setTag("deviceMemory",n.deviceMemory+" GB");ii(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}(t),"pageload"===t.op&&("number"==typeof r&&(fi.ttfb={value:1e3*(r-t.startTimestamp),unit:"millisecond"},"number"==typeof i&&i<=r&&(fi["ttfb.requestTime"]={value:1e3*(r-i),unit:"second"})),["fcp","fp","lcp"].forEach((function(n){if(fi[n]&&!(e>=t.startTimestamp)){var r=fi[n].value,i=e+qr(r),o=Math.abs(1e3*(i-t.startTimestamp));fi[n].value=o}})),fi["mark.fid"]&&fi.fid&&ei(t,{description:"first input delay",endTimestamp:fi["mark.fid"].value+qr(fi.fid.value),op:"web.vitals",startTimestamp:fi["mark.fid"].value}
2),"fcp"in fi||delete fi.cls,Object.keys(fi).forEach((function(n){t.setMeasurement(n,fi[n].value,fi[n].unit)})),function(t){ai&&(ai.element&&t.setTag("lcp.element",_(ai.element)),ai.id&&t.setTag("lcp.id",ai.id),ai.url&&t.setTag("lcp.url",ai.url.trim().slice(0,200)),t.setTag("lcp.size",ai.size));ci&&ci.sources&&ci.sources.forEach((function(n,r){return t.setTag("cls.source."+(r+1),_(n.node))}))}(t)),ai=void 0,ci=void 0,fi={}}}function di(t,n,r,i,e,o){var u=o?n[o]:n[r+"End"],a=n[r+"Start"];a&&u&&ei(t,{op:"browser",description:null!=e?e:r,startTimestamp:i+qr(a),endTimestamp:i+qr(u)})}var li={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function pi(t){var n=i(i({},li),t),r=n.traceFetch,e=n.traceXHR,a=n.tracingOrigins,c=n.shouldCreateSpanForRequest,s={},f=function(t){if(s[t])return s[t];var n=a;return s[t]=n.some((function(n){return L(t,n)}))&&!L(t,"sentry_key"),s[t]},h=f;"function"==typeof c&&(h=function(t){return f(t)&&c(t)});var v={};r&&nt("fetch",(function(t){!function(t,n,r){if(!Nr()||!t.fetchData||!n(t.fetchData.url))return;if(t.endTimestamp){var e=t.fetchData.__span;if(!e)return;return void((c=r[e])&&(t.response?c.setHttpStatus(t.response.status):t.error&&c.setStatus("internal_error"),c.finish(),delete r[e]))}var a=Ar();if(a){var c=a.startChild({data:i(i({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=c.spanId,r[c.spanId]=c;var s=t.args[0]=t.args[0],f=t.args[1]=t.args[1]||{};f.headers=function(t,n,r){var e=r.headers;x(t,Request)&&(e=t.headers);var a=n.getBaggage();if(e)if("function"==typeof e.append)e.append("sentry-trace",n.toTraceparent()),e.append(Xt,Qt(a,e.get(Xt)));else if(Array.isArray(e)){var c=o(e.find((function(t){return o(t,2)[0]===Xt})),2)[1];e=u(e,[["sentry-trace",n.toTraceparent()],[Xt,Qt(a,c)]])}else e=i(i({},e),{"sentry-trace":n.toTraceparent(),baggage:Qt(a,e.baggage)});else e={"sentry-trace":n.toTraceparent(),baggage:Qt(a)};return e}(s,c,f)}}(t,h,v)})),e&&nt("xhr",(function(t){!function(t,n,r){if(!Nr()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&n(t.xhr.__sentry_xhr__.url)))return;var e=t.xhr.__sentry_xhr__;if(t.endTimestamp){var o=t.xhr.__sentry_xhr_span_id__;if(!o)return;return void((a=r[o])&&(a.setHttpStatus(e.status_code),a.finish(),delete r[o]))}var u=Ar();if(u){var a=u.startChild({data:i(i({}
2,e.data),{type:"xhr",method:e.method,url:e.url}),description:e.method+" "+e.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=a.spanId,r[t.xhr.__sentry_xhr_span_id__]=a,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",a.toTraceparent());var c=t.xhr.getRequestHeader&&t.xhr.getRequestHeader(Xt);t.xhr.setRequestHeader(Xt,Qt(a.getBaggage(),c))}catch(t){}}}(t,h,v)}))}var yi=c();var mi=i({idleTimeout:1e3,finalTimeout:3e4,markBackgroundTransactions:!0,routingInstrumentation:function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),yi&&yi.location){var i,e=yi.location.href;n&&(i=t({name:yi.location.pathname,op:"pageload"})),r&&nt("history",(function(n){var r=n.to,o=n.from;void 0===o&&e&&-1!==e.indexOf(r)?e=void 0:o!==r&&(e=void 0,i&&i.finish(),i=t({name:yi.location.pathname,op:"navigation"}))}))}},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},li),bi=function(){function t(t){this.name="BrowserTracing";var n=li.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length&&(n=t.tracingOrigins),this.options=i(i(i({},mi),t),{tracingOrigins:n});var r=this.options.Bt;hi(r&&r.Xt)}return t.prototype.setupOnce=function(t,n){var r=this;this.zt=n;var i=this.options,e=i.routingInstrumentation,o=i.startTransactionOnLocationChange,u=i.startTransactionOnPageLoad,a=i.markBackgroundTransactions,c=i.traceFetch,s=i.traceXHR,f=i.tracingOrigins,h=i.shouldCreateSpanForRequest;e((function(t){return r.Wt(t)}),u,o),a&&Kr&&Kr.document&&Kr.document.addEventListener("visibilitychange",(function(){var t=Ar();Kr.document.hidden&&t&&(t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.finish())})),pi({traceFetch:c,traceXHR:s,tracingOrigins:f,shouldCreateSpanForRequest:h})},t.prototype.Wt=function(t){var n=this;if(this.zt){var r=this.options,e=r.beforeNavigate,o=r.idleTimeout,u=r.finalTimeout,a="pageload"===t.op?function(){var t=gi("sentry-trace"),n=gi("baggage"),r=t?function(t){var n=t.match(Lt);if(n){var r=void 0;return"1"===n[3]?r=!0:"0"===n[3]&&(r=!1),{traceId:n[1],parentSampled:r,parentSpanId:n[2]}}}(t):void 0,e=function(t,n){var r=Vt(t||"");return(!Gt(r)||n&&Gt(r))&&Kt(r),r}(n,t);if(r||e)return i(i({},r&&r),e&&{metadata:{baggage:e}});return}():void 0,s=i(i(i({},t),a),{trimEnd:!0}),f="function"==typeof e?e(s):s,h=void 0===f?i(i({},s),{sampled:!1}):f,v=function(t,n,r,e,o,u){var a=t.getClient(),c=a&&a.getOptions()||{},s=new Xr(n,t,r,e,o);return(s=$r(s,c,i({parentSampled:n.parentSampled,transactionContext:n},u))).sampled&&s.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s}(this.zt(),h,o,u,!0,{location:c().location});return v.registerBeforeFinishCallback((function(t){vi(t),t.setTag("sentry_reportAllChanges",Boolean(n.options.Bt&&n.options.Bt.Xt))})),v}},t}();function gi(t){var n=c();if(n.document&&n.document.querySelector){var r=n.document.querySelector("meta[name="+t+"]");return r?r.getAttribute("content"):null}return null}var wi={},xi=c();xi.Sentry&&xi.Sentry.Integrations&&(wi=xi.Sentry.Integrations);var _i=i(i(i({},wi),Mr),{BrowserTracing:bi});return Jr(),t.BrowserClient=Wn,t.BrowserTracing=bi,t.Hub=en,t.Integrations=_i,t.SDK_VERSION=_n,t.Scope=tn,t.Span=Hr,t.addBreadcrumb=function(t){an().addBreadcrumb(t)},t.addExtensionMethods=Jr,t.addGlobalEventProcessor=rn,t.captureEvent=function(t,n){return an().captureEvent(t,n)},t.captureException=captureException,t.captureMessage=function(t,n){var r="string"==typeof n?n:void 0,i="string"!=typeof n?{captureContext:n}:void 0;return an().captureMessage(t,r,i)},t.close=function(t){var n=an().getClient();return n?n.close(t):xt(!1)},t.configureScope=function(t){an().configureScope(t)},t.defaultIntegrations=Dr,t.flush=function(t){var n=an().getClient();return n?n.flush(t):xt(!1)},t.forceLoad=function(){},t.getCurrentHub=an,t.getHubFromCarrier=cn,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Dr),void 0===t.release){var n=c();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var r,e=i(i({},t),{stackParser:(r=t.stackParser||rr,Array.isArray(r)?z.apply(void 0,u(r)):r),integrations:bn(t),transport:t.transport||(J()?$n:Gn)});!function(t,n){!0===n.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");var r=an(),i=r.getScope();i&&i.update(n.initialScope);var e=new t(n);r.bindClient(e)}(Wn,e),t.autoSessionTracking&&function(){if(void 0===c().document)return;var t=an();if(!t.captureSession)return;Ir(t),nt("history",(function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&Ir(an())}))}()},t.lastEventId=function(){return an().lastEventId()},t.makeFetchTransport=$n,t.makeXHRTransport=Gn,t.onLoad=function(t){t()},t.setContext=function(t,n){an().setContext(t,n)},t.setExtra=function(t,n){an().setExtra(t,n)},t.setExtras=function(t){an().setExtras(t)},t.setTag=function(t,n){an().setTag(t,n)},t.setTags=function(t){an().setTags(t)},t.setUser=function(t){an().setUser(t)},t.showReportDialog=function(t,n){void 0===t&&(t={}),void 0===n&&(n=an());var r=c();if(r.document){var e=n.getStackTop(),o=e.client,u=e.scope,a=t.dsn||o&&o.getDsn();if(a){u&&(t.user=i(i({},u.getUser()),t.user)),t.eventId||(t.eventId=n.lastEventId());var s=r.document.createElement("script");s.async=!0,s.src=function(t,n){var r=O(t),i=hn(r)+"embed/error-page/",e="dsn="+k(r);for(var o in n)if("dsn"!==o)if("user"===o){var u=n.user;if(!u)continue;u.name&&(e+="&name="+encodeURIComponent(u.name)),u.email&&(e+="&email="+encodeURIComponent(u.email))}else e+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);return i+"?"+e}(a,t),t.onLoad&&(s.onload=t.onLoad);var f=r.document.head||r.document.body;f&&f.appendChild(s)}}},t.startTransaction=function(t,n){return an().startTransaction(i({},t),n)},t.withScope=fn,t.wrap=function(t){return ar(t)()},t}({}); 3 4;(function () { 5 // Polyfill for IE and older browsers :) 6 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith#Browser_compatibility 7 if (!String.prototype.startsWith) { 8 String.prototype.startsWith = function (searchString, position) { 9 position = position || 0; 10 return this.indexOf(searchString, position) === position; 11 }; 12 } 13 14 if (typeof wp_sentry === 'object') { 15 var regexListUrls = function (listUrls) { 16 for (var url in listUrls) { 17 if (listUrls.hasOwnProperty(url)) { 18 if (listUrls[url].startsWith('regex:')) { 19 listUrls[url] = new RegExp(listUrls[url].slice(6), 'i'); 20 } 21 } 22 } 23 }; 24 25 if (typeof wp_sentry.whitelistUrls === 'object') { 26 regexListUrls(wp_sentry.whitelistUrls); 27 } 28 if (typeof wp_sentry.blacklistUrls === 'object') { 29 regexListUrls(wp_sentry.blacklistUrls); 30 } 31 32 if (wp_sentry.tracesSampleRate) { 33 wp_sentry.tracesSampleRate = parseFloat(wp_sentry.tracesSampleRate); 34 } 35 36 if (typeof wp_sentry_hook === 'function') { 37 var hookResult = wp_sentry_hook(wp_sentry); 38 39 // If the hook returns false we do not continue to initialize Sentry 40 if (hookResult === false) { 41 return; 42 } 43 } 44 45 if (wp_sentry.integrations === undefined) { 46 wp_sentry.integrations = [ 47 new Sentry.Integrations.BrowserTracing() 48 ]; 49 } 50 51 Sentry.init(wp_sentry); 52 53 if (typeof wp_sentry.context === 'object') { 54 Sentry.configureScope(function (scope) { 55 if (typeof wp_sentry.context.user === 'object') { 56 scope.setUser(wp_sentry.context.user); 57 } 58 59 if (typeof wp_sentry.context.tags === 'object') { 60 for (var tag in wp_sentry.context.tags) { 61 if (wp_sentry.context.tags.hasOwnProperty(tag)) { 62 scope.setTag(tag, wp_sentry.context.tags[tag]); 63 } 64 } 65 } 66 67 if (typeof wp_sentry.context.extra === 'object') { 68 for (var extra in wp_sentry.context.extra) { 69 if (wp_sentry.context.extra.hasOwnProperty(extra)) { 70 scope.setExtra(extra, wp_sentry.context.extra[extra]); 71 } 72 } 73 } 74 }); 75 } 76 } 77})();
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.