/*! @sentry/browser 7.120.3 (5a833b4) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(n){n=window.Sentry||{};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;r0&&i[i.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=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;i0?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"";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""}}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;u1&&(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})}P((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;t1024)){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="";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""}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>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||"":r||""}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;r2?t[2]:void 0;if(e){var i=Pn,o=String(e);Pn=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;er?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=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.length0&&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=i0?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,P((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,P((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,P((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 Pt(n,t){cr().addBreadcrumb(n,t)}function Ht(){for(var n=[],t=0;tr?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.P||[],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 H.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 H.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):(H.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.120.3",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.F0?"|#".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="number"==typeof r?r:1,i="".concat(n,":").concat(t);this.tn[i]=(this.tn[i]||0)+e}},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=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 u=function(n,t,r){var i=n.beforeSend,o=n.beforeSendTransaction;if(Nr(t)&&i)return i(t,r);if(Lr(t)&&o){if(t.spans){var u=t.spans.length;t.sdkProcessingMetadata=e(e({},t.sdkProcessingMetadata),{spanCountBeforeProcessing:u})}return o(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}(u,s)})).then((function(o){if(null===o){if(i.recordDroppedEvent("before_send",v,n),a){var u=1+(n.spans||[]).length;i.recordDroppedEvent("before_send","span",u)}throw new G("".concat(s," returned `null`, will not send event."),"log")}var c=r&&r.getSession();if(!a&&c&&i.dn(c,o),a){var f=(o.sdkProcessingMetadata&&o.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);f>0&&i.recordDroppedEvent("before_send","span",f)}var h=o.transaction_info;if(a&&h&&o.transaction!==n.transaction){o.transaction_info=e(e({},h),{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}(),Pr=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,nthis.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}(),Hr=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>>0}(n):n})).join(":")},n}(),Wr=((Ur={}).c=$r,Ur.g=Pr,Ur.d=Hr,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&&""!==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;t0}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"function"==typeof i?i:n;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(),Ht((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 )?((?:|[-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,Pe=[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)}}],He=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qe=[40,function(n){var t=He.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 (?:]+)>|([^)]+))\(.*\))? 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,Pe,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)}Pt(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=""}if(0!==e.length){var s={category:"ui.".concat(r.name),message:e};i&&(s.data={"ui.component_name":i}),Pt(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;Pt({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){Pt({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:i})}else{var o=t.response;Pt({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),Pt({category:"navigation",data:{from:r,to:e}})}}}(n)),t.sentry&&n.on&&n.on("beforeSendEvent",function(n){return function(t){qt()===n&&Pt({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;i0?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-1}),"find"in Array.prototype||(Array.prototype.find=function(n){for(var t=0;t-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}({}); //# sourceMappingURL=bundle.es5.min.js.map