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