!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2317e73b-3bd4-4ee1-b745-bb65d29f4b68",t._sentryDebugIdIdentifier="sentry-dbid-2317e73b-3bd4-4ee1-b745-bb65d29f4b68")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"359b6151876f00f3937cdd164c33d0406e52b98e"},(()=>{"use strict";const t="8.42.0",e=globalThis;function n(n,r,o){const s=o||e,i=s.__SENTRY__=s.__SENTRY__||{},a=i[t]=i[t]||{};return a[n]||(a[n]=r())}function r(){return o(e),e}function o(e){const n=e.__SENTRY__=e.__SENTRY__||{};return n.version=n.version||t,n[t]=n[t]||{}}const s=1e3;function i(){return Date.now()/s}const a=function(){const{performance:t}=e;if(!t||!t.now)return i;const n=Date.now()-t.now(),r=null==t.timeOrigin?n:t.timeOrigin;return()=>(r+t.now())/s}();let c;(()=>{const{performance:t}=e;if(!t||!t.now)return void(c="none");const n=36e5,r=t.now(),o=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+r-o):n,i=s<n,a=t.timing&&t.timing.navigationStart,u="number"==typeof a?Math.abs(a+r-o):n;i||u<n?s<=u?(c="timeOrigin",t.timeOrigin):c="navigationStart":c="dateNow"})();const u=Object.prototype.toString;function p(t){switch(u.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(t,Error)}}function l(t,e){return u.call(t)===`[object ${e}]`}function d(t){return l(t,"ErrorEvent")}function f(t){return l(t,"DOMError")}function h(t){return l(t,"String")}function m(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function g(t){return l(t,"Object")}function _(t){return"undefined"!=typeof Event&&v(t,Event)}function y(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function v(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const E=e,w=80;function S(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||w;for(;n&&s++<r&&(u=x(n,p),!("html"===u||s>1&&i+o.length*c+u.length>=l));)o.push(u),i+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(t){return"<unknown>"}}function x(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(E.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(o&&o.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&h(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const s=["aria-label","type","name","title","alt"];for(const t of s){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}const k="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,I=["debug","info","warn","error","log","assert","trace"],O={};function $(t){if(!("console"in e))return t();const n=e.console,r={},o=Object.keys(O);o.forEach((t=>{const e=O[t];r[t]=n[t],n[t]=e}));try{return t()}finally{o.forEach((t=>{n[t]=r[t]}))}}const T=n("logger",(function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return k?I.forEach((r=>{n[r]=(...n)=>{t&&$((()=>{e.console[r](`Sentry Logger [${r}]:`,...n)}))}})):I.forEach((t=>{n[t]=()=>{}})),n}));function P(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function C(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{b(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function D(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!h(t)&&(l(e,"RegExp")?e.test(t):!!h(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}function R(t,e,n){if(!(e in t))return;const r=t[e],o=n(r);"function"==typeof o&&A(o,r);try{t[e]=o}catch(n){k&&T.log(`Failed to replace method "${e}" in object`,t)}}function N(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){k&&T.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function A(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,N(t,"__sentry_original__",e)}catch(t){}}function j(t){return t.__sentry_original__}function L(t){if(p(t))return{message:t.message,name:t.name,stack:t.stack,...U(t)};if(_(t)){const e={type:t.type,target:M(t.target),currentTarget:M(t.currentTarget),...U(t)};return"undefined"!=typeof CustomEvent&&v(t,CustomEvent)&&(e.detail=t.detail),e}return t}function M(t){try{return"undefined"!=typeof Element&&v(t,Element)?S(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function U(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function q(t){return B(t,new Map)}function B(t,e){if(function(t){if(!g(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))void 0!==t[n]&&(r[n]=B(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(B(t,e))})),r}return t}function W(){const t=e,n=t.crypto||t.msCrypto;let r=()=>16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(r=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&r())>>t/4).toString(16)))}function F(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function H(t){const{message:e,event_id:n}=t;if(e)return e;const r=F(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function z(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function G(t,e){const n=F(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function Y(t){if(function(t){try{return t.__sentry_captured__}catch(t){}}(t))return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function J(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||a(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:W()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function V(){return W()}function K(){return W().substring(16)}function X(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=X(r[t],e[t],n-1));return r}const Q="_sentrySpan";function Z(t,e){e?N(t,Q,e):delete t[Q]}function tt(t){return t[Q]}class et{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:V(),spanId:K()}}clone(){const t=new et;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Z(t,tt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&J(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof nt?[e.getScopeData(),e.getRequestSession()]:g(e)?[t,t.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Z(this,void 0),this._attachments=[],this.setPropagationContext({traceId:V()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:i(),...t},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=X(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:K(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:W();if(!this._client)return T.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:W();if(!this._client)return T.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:W();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(T.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const nt=et;class rt{constructor(t,e){let n,r;n=t||new nt,r=e||new nt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return y(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function ot(){const t=o(r());return t.stack=t.stack||new rt(n("defaultCurrentScope",(()=>new nt)),n("defaultIsolationScope",(()=>new nt)))}function st(t){return ot().withScope(t)}function it(t,e){const n=ot();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function at(t){return ot().withScope((()=>t(ot().getIsolationScope())))}function ct(t){const e=o(t);return e.acs?e.acs:{withIsolationScope:at,withScope:st,withSetScope:it,withSetIsolationScope:(t,e)=>at(e),getCurrentScope:()=>ot().getScope(),getIsolationScope:()=>ot().getIsolationScope()}}function ut(){return ct(r()).getCurrentScope()}function pt(){return ct(r()).getIsolationScope()}function lt(){return ut().getClient()}function dt(t){const e=t.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=e;return q({trace_id:n,span_id:r,parent_span_id:o})}const ft="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ht=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function mt(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function gt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}const _t="?",yt=/\(error: (.*)\)/,vt=/captureMessage|captureException/;function bt(t){return t[t.length-1]||{}}const Et="<anonymous>";function wt(t){try{return t&&"function"==typeof t&&t.name||Et}catch(t){return Et}}function St(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}function xt(t,e=100,n=1/0){try{return It("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function kt(t,e=3,n=102400){const r=xt(t,e);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>n?kt(t,e-1,n):r;var o}function It(t,e,n=1/0,r=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,i]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(b(e))return"[VueViewModel]";if(g(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${wt(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return It("",u.toJSON(),c-1,r,o)}catch(t){}const p=Array.isArray(e)?[]:{};let l=0;const d=L(e);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(l>=r){p[t]="[MaxProperties ~]";break}const e=d[t];p[t]=It(t,e,c-1,r,o),l++}return i(e),p}function Ot(t,e=[]){return[t,e]}function $t(t,e){const[n,r]=t;return[n,[...r,e]]}function Tt(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function Pt(t){return e.__SENTRY__&&e.__SENTRY__.encodePolyfill?e.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function Ct(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Pt(r),t]:r.push("string"==typeof t?Pt(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(xt(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function Dt(t){const e="string"==typeof t.data?Pt(t.data):t.data;return[q({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Rt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Nt(t){return Rt[t]}function At(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}const jt=[];function Lt(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Mt(t,e,n){if(n[e.name])ft&&T.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===jt.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),jt.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}ft&&T.log(`Integration installed: ${e.name}`)}}const Ut="production",qt="sentry.source",Bt="sentry.sample_rate",Wt="sentry.op",Ft="sentry.origin",Ht="sentry-",zt=/^sentry-/;function Gt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const Yt="_sentryMetrics";function Jt(t){const e=t[Yt];if(!e)return;const n={};for(const[,[t,r]]of e)(n[t]||(n[t]=[])).push(q(r));return n}const Vt=0,Kt=1,Xt=1;let Qt=!1;function Zt(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=ne(t);return q({parent_span_id:r,span_id:e,trace_id:n})}function te(t){return"number"==typeof t?ee(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ee(t.getTime()):a()}function ee(t){return t>9999999999?t/1e3:t}function ne(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:c}=t;return q({span_id:e,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:te(o),timestamp:te(i)||void 0,status:re(c),op:r[Wt],origin:r[Ft],_metrics_summary:Jt(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function re(t){if(t&&t.code!==Vt)return t.code===Kt?"ok":t.message||"unknown_error"}const oe="_sentryRootSpan";function se(t){return t[oe]||t}const ie="_frozenDsc";function ae(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=q({environment:n.environment||Ut,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function ce(t){const e=lt();if(!e)return{};const n=se(t),r=n[ie];if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),i=s&&function(t){const e=function(t){if(t&&(h(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=Gt(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):Gt(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(zt)&&(t[e.slice(Ht.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(s);if(i)return i;const a=ae(t.spanContext().traceId,e),c=ne(n),u=c.data||{},p=u[Bt];null!=p&&(a.sample_rate=`${p}`);const l=u[qt],d=c.description;return"url"!==l&&d&&(a.transaction=d),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=lt(),e=t&&t.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}()&&(a.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return e===Xt}(n))),e.emit("createDsc",a,n),a}class ue extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var pe;function le(t){return new fe((e=>{e(t)}))}function de(t){return new fe(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(pe||(pe={}));class fe{constructor(t){fe.prototype.__init.call(this),fe.prototype.__init2.call(this),fe.prototype.__init3.call(this),fe.prototype.__init4.call(this),this._state=pe.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new fe(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new fe(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(pe.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(pe.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===pe.PENDING&&(y(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===pe.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===pe.RESOLVED&&t[1](this._value),this._state===pe.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function he(t,e,n,r=0){return new fe(((o,s)=>{const i=t[r];if(null===e||"function"!=typeof i)o(e);else{const a=i({...e},n);ft&&i.id&&null===a&&T.log(`Event processor "${i.id}" dropped event`),y(a)?a.then((e=>he(t,e,n,r+1).then(o))).then(null,s):he(t,a,n,r+1).then(o).then(null,s)}}))}let me,ge,_e;function ye(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:l,propagationContext:d,transactionName:f,span:h}=e;ve(t,"extra",n),ve(t,"tags",r),ve(t,"user",o),ve(t,"contexts",s),t.sdkProcessingMetadata=X(t.sdkProcessingMetadata,a,2),i&&(t.level=i),f&&(t.transactionName=f),h&&(t.span=h),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function ve(t,e,n){t[e]=X(t[e],n,1)}function be(t,r,o,s,a,c){const{normalizeDepth:u=3,normalizeMaxBreadth:p=1e3}=t,l={...r,event_id:r.event_id||o.event_id||W(),timestamp:r.timestamp||i()},d=o.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:o,maxValueLength:s=250}=e;t.environment=t.environment||n||Ut,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o),t.message&&(t.message=P(t.message,s));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=P(i.value,s));const a=t.request;a&&a.url&&(a.url=P(a.url,s))}(l,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(l,d),a&&a.emit("applyFrameMetadata",r),void 0===r.type&&function(t,n){const r=function(t){const n=e._sentryDebugIds;if(!n)return{};const r=Object.keys(n);return _e&&r.length===ge||(ge=r.length,_e=r.reduce(((e,r)=>{me||(me={});const o=me[r];if(o)e[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const s=o[t],i=s&&s.filename,a=n[r];if(i&&a){e[i]=a,me[r]=[i,a];break}}}return e}),{})),_e}(n);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{r&&t.filename&&(t.debug_id=r[t.filename])}))}))}catch(t){}}(l,t.stackParser);const f=function(t,e){if(!e)return t;const n=t?t.clone():new nt;return n.update(e),n}(s,o.captureContext);o.mechanism&&G(l,o.mechanism);const h=a?a.getEventProcessors():[],m=n("globalScope",(()=>new nt)).getScopeData();c&&ye(m,c.getScopeData()),f&&ye(m,f.getScopeData());const g=[...o.attachments||[],...m.attachments];return g.length&&(o.attachments=g),function(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=e,c=q(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=q(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const p=q(o);p&&Object.keys(p).length&&(t.user={...p,...t.user});const l=q(s);l&&Object.keys(l).length&&(t.contexts={...l,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Zt(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ce(e),...t.sdkProcessingMetadata};const n=ne(se(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,s)}(l,m),he([...h,...m.eventProcessors],l,o).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof u&&u>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:xt(t.data,e,n)}})))},...t.user&&{user:xt(t.user,e,n)},...t.contexts&&{contexts:xt(t.contexts,e,n)},...t.extra&&{extra:xt(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=xt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:xt(t.data,e,n)}})))),r}(t,u,p):t)))}const Ee=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"],we="Not capturing exception because it's already been captured.";class Se{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){const e="string"==typeof t?function(t){const e=ht.exec(t);if(!e)return void $((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,o="",s="",i="",a=""]=e.slice(1);let c="",u=a;const p=u.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),u=p.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return gt({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):gt(t);if(e&&function(t){if(!k)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(T.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(T.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(T.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(T.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}(t.dsn):ft&&T.warn("No DSN provided, client will not send events."),this._dsn){const o=(e=this._dsn,n=t.tunnel,r=t._metadata?t._metadata.sdk:void 0,n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(e)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(e,r)}`);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}var e,n,r;const o=["enableTracing","tracesSampleRate","tracesSampler"].find((e=>e in t&&null==t[e]));o&&$((()=>{console.warn(`[Sentry] Deprecation warning: \`${o}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(t,e,n){const r=W();if(Y(t))return ft&&T.log(we),r;const o={event_id:r,...e};return this._process(this.eventFromException(t,o).then((t=>this._captureEvent(t,o,n)))),o.event_id}captureMessage(t,e,n,r){const o={event_id:W(),...n},s=m(t)?t:String(t),i=null===(a=t)||m(a)||"object"!=typeof a&&"function"!=typeof a?this.eventFromMessage(s,e,o):this.eventFromException(t,o);var a;return this._process(i.then((t=>this._captureEvent(t,o,r)))),o.event_id}captureEvent(t,e,n){const r=W();if(e&&e.originalException&&Y(e.originalException))return ft&&T.log(we),r;const o={event_id:r,...e},s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,s||n)),o.event_id}captureSession(t){"string"!=typeof t.release?ft&&T.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),J(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):le(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Mt(this,t,this._integrations),e||Lt(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const o=At(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=function(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:mt(r)},...o&&{trace:q({...o})}}}(t,o,r,e);return delete t.sdkProcessingMetadata,Ot(i,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=$t(n,Dt(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const o=At(n);return Ot({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:mt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${t}:${e}`;ft&&T.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(ft&&T.error("Error while sending envelope:",t),t))):(ft&&T.error("Transport disabled"),le({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&Mt(t,e,n)})),n}(this,t),Lt(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1;const o=e.exception&&e.exception.values;if(o){r=!0;for(const t of o){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(J(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fe((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n=ut(),r=pt()){const o=this.getOptions(),s=Object.keys(this._integrations);return!e.integrations&&s.length>0&&(e.integrations=s),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),be(o,t,e,n,this,r).then((t=>{if(null===t)return t;t.contexts={trace:dt(n),...t.contexts};const e=function(t,e){const n=e.getPropagationContext();return n.dsc||ae(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:e,...t.sdkProcessingMetadata},t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(ft){const e=t;"log"===e.logLevel?T.log(e.message):T.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:o}=r,s=ke(t),i=xe(t),a=t.type||"error",c=`before send for type \`${a}\``,u=void 0===o?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;ft&&T.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}(o);if(i&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),de(new ue(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,t),new ue("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const o=function(t,e,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=e;if(xe(n)&&o)return o(n,r);if(ke(n)){if(n.spans&&i){const e=[];for(const r of n.spans){const n=i(r);n?e.push(n):(Qt||($((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),Qt=!0),t.recordDroppedEvent("before_send","span"))}n.spans=e}if(s){if(n.spans){const t=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return s(n,r)}}return n}(this,r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(y(t))return t.then((t=>{if(!g(t)&&null!==t)throw new ue(n);return t}),(t=>{throw new ue(`${e} rejected with ${t}`)}));if(!g(t)&&null!==t)throw new ue(n);return t}(o,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",p,t),s){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new ue(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const i=r.transaction_info;if(s&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...i,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof ue)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ue(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}_flushOutcomes(){ft&&T.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(ft&&T.log("No outcomes to send"));if(!this._dsn)return void(ft&&T.log("No dsn provided, will not send outcomes"));ft&&T.log("Sending outcomes:",t);const e=(n=t,Ot((r=this._options.tunnel&&mt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i(),discarded_events:n}]]));var n,r;this.sendEnvelope(e)}}function xe(t){return void 0===t.type}function ke(t){return"transaction"===t.type}const Ie="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Oe(t,e){const n=Te(t,e),r={type:De(e),value:Re(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function $e(t,e){return{exception:{values:[Oe(t,e)]}}}function Te(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&Pe.test(t.message)?1:0}(e),o=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,o)}catch(t){}return[]}const Pe=/Minified React error #\d+;/i;function Ce(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function De(t){const e=t&&t.name;return!e&&Ce(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function Re(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:Ce(t)&&Array.isArray(t.message)&&2==t.message.length?t.message[1]:e:"No error message"}function Ne(t,e,n,r){const o=function(t,e,n,r){let o;if(d(e)&&e.error)return $e(t,e.error);if(f(e)||l(e,"DOMException")){const s=e;if("stack"in e)o=$e(t,e);else{const e=s.name||(f(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=Ae(t,i,n,r),z(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return p(e)?$e(t,e):g(e)||_(e)?(o=function(t,e,n,r){const o=lt(),s=o&&o.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),a={__serialized__:kt(e,s)};if(i)return{exception:{values:[Oe(t,i)]},extra:a};const c={exception:{values:[{type:_(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:je(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=Te(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,void 0),G(o,{synthetic:!0}),o):(o=Ae(t,e,n,r),z(o,`${e}`,void 0),G(o,{synthetic:!0}),o)}(t,e,n&&n.syntheticException||void 0,r);return G(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),le(o)}function Ae(t,e,n,r){const o={};if(r&&n){const r=Te(t,n);r.length&&(o.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(m(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return o.logentry={message:t,params:n},o}return o.message=e,o}function je(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(L(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return P(r,e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:P(r,e)}return""}(t),r=e?"promise rejection":"exception";return d(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:_(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Le=e;function Me(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(j(t))return t}catch(e){return t}const n=function(...n){try{const r=n.map((t=>Me(t,e)));return t.apply(this,r)}catch(t){throw setTimeout((()=>{})),function(...t){const e=ct(r());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}((r=>{var o;r.addEventProcessor((t=>(e.mechanism&&(z(t,void 0,void 0),G(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),o=t,ut().captureException(o,function(t){if(t)return function(t){return t instanceof nt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Ee.includes(t)))}(t)?{captureContext:t}:t}(undefined))})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch(t){}A(n,t),N(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch(t){}return n}const Ue=e;function qe(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Be="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,We=e,Fe={};function He(t){Fe[t]=void 0}const ze=6e4;function Ge(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return de(new ue("Not adding Promise because buffer limit was reached."));const o=r();return-1===e.indexOf(o)&&e.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(t){return new fe(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{le(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(t.bufferSize||64)){let r={};return{send:function(o){const s=[];if(Tt(o,((e,n)=>{const o=Nt(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,o)){const r=Ye(e,n);t.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(e)})),0===s.length)return le({});const i=Ot(o[0],s),a=e=>{Tt(i,((n,r)=>{const o=Ye(n,r);t.recordDroppedEvent(e,Nt(r),o)}))};return n.add((()=>e({body:Ct(i)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&ft&&T.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+a);else o.all=r+a}else i?o.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?ze:r-e}(i,r):429===e&&(o.all=r+6e4);return o}(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof ue)return ft&&T.error("Skipped sending event because buffer is full."),a("queue_overflow"),le({});throw t}))},flush:t=>n.drain(t)}}function Ye(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Je(t,e,n,r){const o={filename:t,function:"<anonymous>"===e?_t:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Ve=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ke=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xe=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ze=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tn=function(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,r=0)=>{const o=[],s=t.split("\n");for(let t=n;t<s.length;t++){const n=s[t];if(n.length>1024)continue;const i=yt.test(n)?n.replace(yt,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){o.push(e);break}}if(o.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(bt(e).function||"")&&e.pop(),e.reverse(),vt.test(bt(e).function||"")&&(e.pop(),vt.test(bt(e).function||"")&&e.pop()),e.slice(0,50).map((t=>({...t,filename:t.filename||bt(e).filename,function:t.function||_t})))}(o.slice(r))}}([30,t=>{const e=Ve.exec(t);if(e){const[,t,n,r]=e;return Je(t,_t,+n,+r)}const n=Ke.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=Xe.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=en(n[1]||_t,n[2]);return Je(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,t=>{const e=Qe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Ze.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||_t;return[n,t]=en(n,t),Je(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),en=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:_t,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},nn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"];function rn(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return ft&&T.error(`Cannot extract url for event ${H(t)}`),null}}let on;const sn=new WeakMap,an=["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"];function cn(t){return function(...e){const n=e[0];return e[0]=Me(n,{mechanism:{data:{function:wt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function un(t){return function(e){return t.apply(this,[Me(e,{mechanism:{data:{function:"requestAnimationFrame",handler:wt(t)},handled:!1,type:"instrument"}})])}}function pn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&R(n,t,(function(e){const n={mechanism:{data:{function:t,handler:wt(e)},handled:!1,type:"instrument"}},r=j(e);return r&&(n.mechanism.data.handler=wt(r)),Me(e,n)}))})),t.apply(this,e)}}function ln(t){const e=Le[t],n=e&&e.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(R(n,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Me(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:wt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Me(r,{mechanism:{data:{function:"addEventListener",handler:wt(r),target:t},handled:!1,type:"instrument"}}),o])}})),R(n,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(t){}return t.call(this,e,n,r)}})))}const dn={},fn={};function hn(t,e){dn[t]=dn[t]||[],dn[t].push(e)}function mn(t,e){if(!fn[t]){fn[t]=!0;try{e()}catch(e){k&&T.error(`Error while instrumenting ${t}`,e)}}}function gn(t,e){const n=t&&dn[t];if(n)for(const r of n)try{r(e)}catch(e){k&&T.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${wt(r)}\nError:`,e)}}const _n=1e3;let yn,vn,bn;function En(){if(!We.document)return;const t=gn.bind(null,"dom"),e=wn(t,!0);We.document.addEventListener("click",e,!1),We.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=We[e],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(R(r,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=wn(t);s.handler=r,e.call(this,n,r,o)}s.refCount++}catch(t){}return e.call(this,n,r,o)}})),R(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function wn(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;N(n,"_sentryCaptured",!0),r&&!r._sentryId&&N(r,"_sentryId",W());const o="keypress"===n.type?"input":n.type;(function(t){if(t.type!==vn)return!1;try{if(!t.target||t.target._sentryId!==bn)return!1}catch(t){}return!0})(n)||(t({event:n,name:o,global:e}),vn=n.type,bn=r?r._sentryId:void 0),clearTimeout(yn),yn=We.setTimeout((()=>{bn=void 0,vn=void 0}),_n)}}const Sn="__sentry_xhr_v3__";function xn(){if(!We.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=1e3*a(),o=h(n[0])?n[0].toUpperCase():void 0,s=function(t){if(h(t))return t;try{return t.toString()}catch(t){}}(n[1]);if(!o||!s)return t.apply(e,n);e[Sn]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const i=()=>{const t=e[Sn];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}gn("xhr",{endTimestamp:1e3*a(),startTimestamp:r,xhr:e})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(i(),t.apply(e,n))}):e.addEventListener("readystatechange",i),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,o]=n,s=e[Sn];return s&&h(r)&&h(o)&&(s.request_headers[r.toLowerCase()]=o),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Sn];return r?(void 0!==n[0]&&(r.body=n[0]),gn("xhr",{startTimestamp:1e3*a(),xhr:e}),t.apply(e,n)):t.apply(e,n)}})}const kn=e;let In;function On(){if(!function(){const t=kn.chrome,e=t&&t.app&&t.app.runtime,n="history"in kn&&!!kn.history.pushState&&!!kn.history.replaceState;return!e&&n}())return;const t=We.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=In,e=String(n);In=e,gn("history",{from:t,to:e})}return t.apply(this,e)}}We.onpopstate=function(...e){const n=We.location.href,r=In;if(In=n,gn("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},R(We.history,"pushState",e),R(We.history,"replaceState",e)}function $n(){"console"in e&&I.forEach((function(t){t in e.console&&R(e.console,t,(function(n){return O[t]=n,function(...n){gn("console",{args:n,level:t});const r=O[t];r&&r.apply(e.console,n)}}))}))}function Tn(t,n=!1){n&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Ue))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(qe(Ue.fetch))return!0;let t=!1;const e=Ue.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=qe(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){k&&T.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||R(e,"fetch",(function(n){return function(...r){const{method:o,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Cn(e),method:Pn(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Cn(e),method:Pn(e,"method")?String(e.method).toUpperCase():"GET"}}(r),i={args:r,fetchData:{method:o,url:s},startTimestamp:1e3*a()};t||gn("fetch",{...i});const c=(new Error).stack;return n.apply(e,r).then((async e=>(t?t(e):gn("fetch",{...i,endTimestamp:1e3*a(),response:e}),e)),(t=>{throw gn("fetch",{...i,endTimestamp:1e3*a(),error:t}),p(t)&&void 0===t.stack&&(t.stack=c,N(t,"framesToPop",1)),t}))}}))}function Pn(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Cn(t){return"string"==typeof t?t:t?Pn(t,"url")?t.url:t.toString?t.toString():"":""}const Dn=100;function Rn(t,e){const n=lt(),r=pt();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Dn}=n.getOptions();if(s<=0)return;const a={timestamp:i(),...t},c=o?$((()=>o(a,e))):a;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,s))}function Nn(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function An(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function jn(t,e,n=250,r,o,s,i){if(!(s.exception&&s.exception.values&&i&&v(i.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;a&&(s.exception.values=(c=Ln(t,e,o,i.originalException,r,s.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=P(t.value,u)),t)))))}function Ln(t,e,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(v(r[o],Error)){Mn(i,a);const s=t(e,r[o]),u=c.length;Un(s,o,u,a),c=Ln(t,e,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(v(r,Error)){Mn(i,a);const u=t(e,r),p=c.length;Un(u,`errors[${s}]`,p,a),c=Ln(t,e,n,r,o,[u,...c],u,p)}})),c}function Mn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function Un(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function qn(t,e){let n=St(t),r=St(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],o=n[t];if(e.filename!==o.filename||e.lineno!==o.lineno||e.colno!==o.colno||e.function!==o.function)return!1}return!0}function Bn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Wn(t){return t.exception&&t.exception.values&&t.exception.values[0]}var Fn=new class extends Se{constructor(e){const n={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,n,r=[n],o="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${n}`,packages:r.map((e=>({name:`${o}:@sentry/${e}`,version:t}))),version:t}),e._metadata=s}(n,"browser",["browser"],Le.SENTRY_SDK_SOURCE||"npm"),super(n),n.sendClientReports&&Le.document&&Le.document.addEventListener("visibilitychange",(()=>{"hidden"===Le.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return Ne(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,o){const s=Ae(t,e,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),le(s)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(Ie&&T.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:mt(r)}},s=function(t){return[{type:"user_report"},t]}(t);return Ot(o,[s])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}}({dsn:"https://79fac059a3224bfcb16b633236858db0@o1228435.ingest.sentry.io/4505237767127040",transport:function(t,e=function(t){const e=Fe[t];if(e)return e;let n=We[t];if(qe(n))return Fe[t]=n.bind(We);const r=We.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(e)}catch(e){Be&&T.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n?Fe[t]=n.bind(We):n}("fetch")){let n=0,r=0;return Ge(t,(function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return He("fetch"),de("No fetch implementation available");try{return e(t.url,i).then((t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return He("fetch"),n-=s,r--,de(t)}}))},stackParser:tn,integrations:[((t={})=>({name:"InboundFilters",processEvent(e,n,r){const o=r.getOptions(),s=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:nn],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(ft&&T.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${H(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}(t).some((t=>D(t,e)))}(t,e.ignoreErrors)?(ft&&T.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${H(t)}`),!0):function(t){return!t.type&&(!(!t.exception||!t.exception.values||0===t.exception.values.length)&&(!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))))}(t)?(ft&&T.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${H(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&D(n,e)}(t,e.ignoreTransactions)?(ft&&T.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${H(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=rn(t);return!!n&&D(n,e)}(t,e.denyUrls)?(ft&&T.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${H(t)}.\nUrl: ${rn(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=rn(t);return!n||D(n,e)}(t,e.allowUrls)&&(ft&&T.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${H(t)}.\nUrl: ${rn(t)}`),!0)}(e,s)?null:e}}))(),{name:"FunctionToString",setupOnce(){on=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=j(this),n=sn.has(lt())&&void 0!==e?e:this;return on.apply(n,t)}}catch(t){}},setup(t){sn.set(t,!0)}},((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&R(Le,"setTimeout",cn),e.setInterval&&R(Le,"setInterval",cn),e.requestAnimationFrame&&R(Le,"requestAnimationFrame",un),e.XMLHttpRequest&&"XMLHttpRequest"in Le&&R(XMLHttpRequest.prototype,"send",pn);const t=e.eventTarget;t&&(Array.isArray(t)?t:an).forEach(ln)}}})(),((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console";hn(e,t),mn(e,$n)}(function(t){return function(e){if(lt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(r=e.level,"warn"===r?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log"),message:C(e.args," ")};var r;if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${C(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Rn(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(lt()!==t)return;let r,o,s="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(Ie&&T.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=S(e,{keyAttrs:s,maxStringLength:i}),o=function(t){if(!E.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}(e)}catch(t){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Rn(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),hn("dom",n),mn("dom",En)),e.xhr&&function(t){hn("xhr",t),mn("xhr",xn)}(function(t){return function(e){if(lt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[Sn];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o,u={method:s,url:i,status_code:a},p={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};Rn({category:"xhr",data:u,type:"http",level:Nn(a)},p)}}(t)),e.fetch&&function(t){const e="fetch";hn(e,t),mn(e,(()=>Tn(void 0,undefined)))}(function(t){return function(e){if(lt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error)Rn({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r});else{const t=e.response,o={...e.fetchData,status_code:t&&t.status},s={input:e.args,response:t,startTimestamp:n,endTimestamp:r};Rn({category:"fetch",data:o,type:"http",level:Nn(o.status_code)},s)}}}(t)),e.history&&function(t){const e="history";hn(e,t),mn(e,On)}(function(t){return function(e){if(lt()!==t)return;let n=e.from,r=e.to;const o=An(Le.location.href);let s=n?An(n):void 0;const i=An(r);s&&s.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),Rn({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){lt()===t&&Rn({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:H(e)},{event:e})}}(t))}}})(),((t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const s=o.getOptions();jn(Oe,s.stackParser,s.maxValueLength,n,e,t,r)}}})(),(()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Bn(t,e)&&!!qn(t,e))))}(t,e)||!!function(t,e){const n=Wn(e),r=Wn(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Bn(t,e)&&!!qn(t,e)))}(t,e))}(e,t))return ft&&T.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}})(),{name:"HttpContext",preprocessEvent(t){if(!Le.navigator&&!Le.location&&!Le.document)return;const e=t.request&&t.request.url||Le.location&&Le.location.href,{referrer:n}=Le.document||{},{userAgent:r}=Le.navigator||{},o={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:o};t.request=s}}],environment:"production"});try{!function(){if(!new URLSearchParams(location.search).get("commchatDisabled")){var t="https://comm-chat-payment-chat2.web.app",e=document.getElementById("comm-chat");if(e){var n=e.dataset.token?"&token=".concat(e.dataset.token):"",r=e.dataset.design?"&design=".concat(e.dataset.design):"",o=e.dataset.chatbot?e.dataset.chatbot.split(","):[],s=function(){return e.dataset.design?"position: absolute!important; top: 33px!important; left: 26px!important;":"position: fixed!important; bottom: 0!important; right: 0!important;"},i=function(t){return e.dataset.design?"0":"close"===t?"2147483646":"2147483648"},a="".concat(s()," width: 100%!important; max-width: ").concat(e.dataset.token&&!e.classList.contains("comm-chat-preview")?"428px":"431px","!important; max-height: 100%!important; border: none!important; transition: height 0.3s ease-in-out!important;"),c="".concat(a," display: block!important; height: ").concat(e.dataset.token&&!e.classList.contains("comm-chat-preview")?"calc(100% - 80px)":"calc(100% - 0px)","!important; z-index: ").concat(i(),"!important;"),u="".concat(a," display: block!important; height: 96px!important; z-index: ").concat(i("close"),"!important;"),p="".concat(a," display: none!important;"),l="".concat(s()," display: block!important; width: 100%!important; height: 100%!important; border: none!important; z-index: ").concat(i(),"!important;");o.forEach((function(o){var s=document.createElement("iframe"),i="".concat(t,"/").concat(o,"?origin=").concat(encodeURIComponent(window.location.origin),"&href=").concat(encodeURIComponent(window.location.href)).concat(n).concat(r);if(s.setAttribute("src",i),s.id=o,s.classList.add("comm-chat-iframe"),s.setAttribute("style",p),e.dataset.design){var a=document.getElementById("mainContent");a&&a.appendChild(s)}else document.body.appendChild(s)})),window.addEventListener("message",(function(e){var n=e.data,r=n.chatbotId,o=n.action;if(e.origin===t&&o&&r)try{!function(e){var n=e.action,r=e.chatbotId,o=e.triggerClass,s=e.purchaseCompletionUrl,i=e.shopId,a=e.executeRedirect,d=void 0!==a&&a,f=e.sessionId,h=e.redirectTo,m=e.isAbTest,g=void 0!==m&&m,_=Array.from(document.getElementsByClassName("comm-chat-iframe")),y=_.find((function(t){return t.id===r}));if(y){var v=function(){var t=sessionStorage.getItem("utm_source")||"",e=sessionStorage.getItem("utm_medium")||"",n=sessionStorage.getItem("utm_campaign")||"",r=sessionStorage.getItem("utm_term")||"",o=sessionStorage.getItem("utm_content")||"",s=[];return t&&s.push("utm_source=".concat(encodeURIComponent(t))),e&&s.push("utm_medium=".concat(encodeURIComponent(e))),n&&s.push("utm_campaign=".concat(encodeURIComponent(n))),r&&s.push("utm_term=".concat(encodeURIComponent(r))),o&&s.push("utm_content=".concat(encodeURIComponent(o))),s.length>0?"".concat(s.join("&")):void 0};switch(n){case"open":y.setAttribute("style",c);break;case"close":y.setAttribute("style",u);break;case"hidden":y.setAttribute("style",p);break;case"info":var b=v();y.contentWindow.postMessage({action:"info",cookie:document.cookie,userAgent:navigator.userAgent,utmParams:b},t);break;case"fullScreen":y.setAttribute("style",l);break;case"complete":if(!s)break;if("store-nissin.myshopify.com"===i){window.location.assign(s);break}var E=new URL("".concat(s).concat(window.location.search.replace("?","&")));window.location.assign(E.href);break;case"eventDefinition":if(!o)break;o.split(",").forEach((function(e){Array.from(document.getElementsByClassName(e)).forEach((function(e){e.removeAttribute("data-action"),e.removeAttribute("data-product-id"),d&&g&&f||!e.getAttribute("href")||e.setAttribute("href","javascript:void(0);"),e.addEventListener("click",(function(n){var o,s;try{if(d&&g&&f){if(new URL(window.location.href).toString()===new URL(h).toString()||["zenb.jp"].includes(window.location.host))return sessionStorage.setItem("commchat_sessionId",f),void y.contentWindow.postMessage({action:"logging"},t);if("shop.orionbeer.co.jp"===window.location.host&&(null===(s=null===(o=e.children[0])||void 0===o?void 0:o.getAttribute("href"))||void 0===s?void 0:s.startsWith("https://shop.orionbeer.co.jp/apps/subscription/buy?")))return sessionStorage.setItem("commchat_sessionId",f),void y.contentWindow.postMessage({action:"logging"},t);"issin.cc"===window.location.host&&sessionStorage.setItem("commchat_sessionId",f)}n.preventDefault();var i=v();y.contentWindow.postMessage({action:d?"redirect":"open",utmParams:i},t),_.filter((function(t){return t.id!==r})).forEach((function(e){return e.contentWindow.postMessage({action:"close"},t)}))}catch(t){Fn.captureException(t)}}))}))}));break;case"redirect":if(!h)break;if(["frozen.nissinkanzenmeshi.com","www.hyalmoist.jp"].includes(window.location.hostname)){var w=new URL(h,window.location.origin),S=new URLSearchParams(w.search);new URLSearchParams(window.location.search).forEach((function(t,e){S.append(e,t)})),w.search=S.toString(),window.location.assign(w.href);break}window.location.assign(h);break;default:Fn.captureException("unknown action: ".concat(n))}}}(e.data)}catch(t){Fn.captureException(t)}})),window.addEventListener("pageshow",(function(t){console.log("start pageshow event",{event:t}),t.persisted&&Array.from(document.getElementsByClassName("comm-chat-iframe")).forEach((function(t){t.src=t.src}))}))}else console.log("comm-chat script tag is not found")}}()}catch(t){Fn.captureException(t)}})();