1import{r as e}from"./rolldown-runtime-DAXXjFlN.js";function t(e){var n=[];if(this instanceof t)e=this;else if(arguments.length==0)return new t;return e.listen=e.subscribe=function(t,r){return n.push({callback:t,scope:r||e}),e},e.ignore=e.unsubscribe=function(t){return n=n.filter(function(e){return e.callback!==t}),e},e.emit=e.publish=function(){for(var t=0;t<n.length;t++)n[t].callback.apply(n[t].scope,arguments);return e},e}var n=t(t),r=Object.prototype.toString;function i(e){switch(r.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:return!0;default:return y(e,Error)}}function a(e,t){return r.call(e)===`[object ${t}]`}function o(e){return a(e,`ErrorEvent`)}function s(e){return a(e,`DOMError`)}function c(e){return a(e,`DOMException`)}function l(e){return a(e,`String`)}function u(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function d(e){return e===null||u(e)||typeof e!=`object`&&typeof e!=`function`}function f(e){return a(e,`Object`)}function p(e){return typeof Event<`u`&&y(e,Event)}function m(e){return typeof Element<`u`&&y(e,Element)}function h(e){return a(e,`RegExp`)}function g(e){return!!(e&&e.then&&typeof e.then==`function`)}function _(e){return f(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function v(e){return typeof e==`number`&&e!==e}function y(e,t){try{return e instanceof t}catch{return!1}}function b(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function x(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function S(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function C(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{b(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function w(e,t,n=!1){return l(e)?h(t)?t.test(e):l(t)?n?e===t:e.includes(t):!1:!1}function T(e,t=[],n=!1){return t.some(t=>w(e,t,n))}function ee(e,t,n=250,r,i,a,o){if(!a.exception||!a.exception.values||!o||!y(o.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=ie(te(e,t,i,o.originalException,r,a.exception.values,s,0),n))}function te(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(y(r[i],Error)){ne(o,s);let a=e(t,r[i]),l=c.length;re(a,i,l,s),c=te(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(y(r,Error)){ne(o,s);let l=e(t,r),u=c.length;re(l,`errors[${a}]`,u,s),c=te(e,t,n,r,i,[l,...c],l,u)}}),c}function ne(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,...e.type===`AggregateError`&&{is_exception_group:!0},exception_id:t}}function re(e,t,n,r){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function ie(e,t){return e.map(e=>(e.value&&=x(e.value,t),e))}function ae(e){return e&&e.Math==Math?e:void 0}var E=typeof globalThis==`object`&&ae(globalThis)||typeof window==`object`&&ae(window)||typeof self==`object`&&ae(self)||typeof globalThis==`object`&&ae(globalThis)||(function(){return this})()||{};function oe(){return E}function se(e,t,n){let r=n||E,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var ce=oe(),le=80;function ue(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||le;for(;n&&i++<5&&(o=de(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function de(e,t){let n=e,r=[],i,a,o,s,c;if(!n||!n.tagName)return``;if(ce.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let u=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
vendor: 11,409 bytes, lines 1-2
1if(u&&u.length)u.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&l(i))for(a=i.split(/\s+/),c=0;c<a.length;c++)r.push(`.${a[c]}`);let d=[`aria-label`,`type`,`name`,`title`,`alt`];for(c=0;c<d.length;c++)o=d[c],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join(``)}function fe(){try{return ce.document.location.href}catch{return``}}function pe(e){return ce.document&&ce.document.querySelector?ce.document.querySelector(e):null}function me(e){if(!ce.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}var he=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ge=`Sentry Logger `,_e=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],ve={};function ye(e){if(!(`console`in E))return e();let t=E.console,n={},r=Object.keys(ve);r.forEach(e=>{let r=ve[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function be(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return he?_e.forEach(n=>{t[n]=(...t)=>{e&&ye(()=>{E.console[n](`${ge}[${n}]:`,...t)})}}):_e.forEach(e=>{t[e]=()=>void 0}),t}var D=be(),xe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Se(e){return e===`http`||e===`https`}function Ce(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function we(e){let t=xe.exec(e);if(!t){ye(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a,o=``,s]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Te({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Te(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Ee(e){if(!he)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(D.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Se(r)?t&&isNaN(parseInt(t,10))?(D.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(D.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(D.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function De(e){let t=typeof e==`string`?we(e):Te(e);if(!(!t||!Ee(t)))return t}var Oe=class extends Error{constructor(e,t=`warn`){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function O(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&Ae(i,r),e[t]=i}function ke(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{he&&D.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ae(e,t){try{e.prototype=t.prototype=t.prototype||{},ke(e,`__sentry_original__`,t)}catch{}}function je(e){return e.__sentry_original__}function Me(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join(`&`)}function Ne(e){if(i(e))return{message:e.message,name:e.name,stack:e.stack,...Fe(e)};if(p(e)){let t={type:e.type,target:Pe(e.target),currentTarget:Pe(e.currentTarget),...Fe(e)};return typeof CustomEvent<`u`&&y(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Pe(e){try{return m(e)?ue(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Fe(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ie(e,t=40){let n=Object.keys(Ne(e));if(n.sort(),!n.length)return`[object has no keys]`;if(n[0].length>=t)return x(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:x(r,t)}return``}function k(e){return Le(e,new Map)}function Le(e,t){if(Re(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.keys(e))e[n]!==void 0&&(r[n]=Le(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(Le(e,t))}),r}return e}function Re(e){if(!f(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}var ze=50,Be=/\(error: (.*)\)/,Ve=/captureMessage|captureException/;function He(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split(` 2`);for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=Be.test(n)?n.replace(Be,`$1`):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=ze)break}}return We(r)}}function Ue(e){return Array.isArray(e)?He(...e):e}function We(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||``)&&t.pop(),t.reverse(),Ve.test(t[t.length-1].function||``)&&(t.pop(),Ve.test(t[t.length-1].function||``)&&t.pop()),t.slice(0,ze).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||`?`}))}var Ge=`<anonymous>`;function Ke(e){try{return!e||typeof e!=`function`?Ge:e.name||Ge}catch{return Ge}}var qe={},Je={};function Ye(e,t){qe[e]=qe[e]||[],qe[e].push(t)}function Xe(e,t){Je[e]||(t(),Je[e]=!0)}function Ze(e,t){let n=e&&qe[e];if(n)for(let r of n)try{r(t)}catch(t){he&&D.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ke(r)}\nError:`,t)}}function Qe(e){let t=`console`;Ye(t,e),Xe(t,$e)}function $e(){`console`in E&&_e.forEach(function(e){e in E.console&&O(E.console,e,function(t){return ve[e]=t,function(...t){Ze(`console`,{args:t,level:e});let n=ve[e];n&&n.apply(E.console,t)}})})}function A(){let e=E,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,``);t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(n()&15)>>e/4).toString(16))}function et(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function tt(e){let{message:t,event_id:n}=e;if(t)return t;let r=et(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function nt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function rt(e,t){let n=et(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}function it(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>S(e,0)),t.context_line=S(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>S(e,0))}function at(e){if(e&&e.__sentry_captured__)return!0;try{ke(e,`__sentry_captured__`,!0)}catch{}return!1}function ot(e){return Array.isArray(e)?e:[e]}var st=E,ct=1e3,lt,ut,dt;function ft(e){Ye(`dom`,e),Xe(`dom`,pt)}function pt(){if(!st.document)return;let e=Ze.bind(null,`dom`),t=gt(e,!0);st.document.addEventListener(`click`,t,!1),st.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=st[t]&&st[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty(`addEventListener`)||(O(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){let r=gt(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),O(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this,i=n.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),Object.keys(i).length===0&&delete n.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function mt(e){if(e.type!==ut)return!1;try{if(!e.target||e.target._sentryId!==dt)return!1}catch{}return!0}function ht(e,t){return e===`keypress`?!t||!t.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function gt(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=_t(n);if(ht(n.type,r))return;ke(n,`_sentryCaptured`,!0),r&&!r._sentryId&&ke(r,`_sentryId`,A());let i=n.type===`keypress`?`input`:n.type;mt(n)||(e({event:n,name:i,global:t}),ut=n.type,dt=r?r._sentryId:void 0),clearTimeout(lt),lt=st.setTimeout(()=>{dt=void 0,ut=void 0},ct)}}function _t(e){try{return e.target}catch{return null}}var vt=oe();function yt(){if(!(`fetch`in vt))return!1;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return!1}}function bt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function xt(){if(typeof EdgeRuntime==`string`)return!0;if(!yt())return!1;if(bt(vt.fetch))return!0;let e=!1,t=vt.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=bt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){he&&D.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function St(){return`ReportingObserver`in vt}function Ct(e){let t=`fetch`;Ye(t,e),Xe(t,wt)}function wt(){xt()&&O(E,`fetch`,function(e){return function(...t){let{method:n,url:r}=Dt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ze(`fetch`,{...i}),e.apply(E,t).then(e=>(Ze(`fetch`,{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw Ze(`fetch`,{...i,endTimestamp:Date.now(),error:e}),e})}})}function Tt(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Et(e){return typeof e==`string`?e:e?Tt(e,`url`)?e.url:e.toString?e.toString():``:``}function Dt(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Et(t),method:Tt(n,`method`)?String(n.method).toUpperCase():`GET`}}let t=e[0];return{url:Et(t),method:Tt(t,`method`)?String(t.method).toUpperCase():`GET`}}var Ot=null;function kt(e){let t=`error`;Ye(t,e),Xe(t,At)}function At(){Ot=E.onerror,E.onerror=function(e,t,n,r,i){return Ze(`error`,{column:r,error:i,line:n,msg:e,url:t}),Ot&&!Ot.__SENTRY_LOADER__?Ot.apply(this,arguments):!1},E.onerror.__SENTRY_INSTRUMENTED__=!0}var jt=null;function Mt(e){let t=`unhandledrejection`;Ye(t,e),Xe(t,Nt)}function Nt(){jt=E.onunhandledrejection,E.onunhandledrejection=function(e){return Ze(`unhandledrejection`,e),jt&&!jt.__SENTRY_LOADER__?jt.apply(this,arguments):!0},E.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Pt=oe();function Ft(){let e=Pt.chrome,t=e&&e.app&&e.app.runtime,n=`history`in Pt&&!!Pt.history.pushState&&!!Pt.history.replaceState;return!t&&n}var It=E,Lt;function Rt(e){let t=`history`;Ye(t,e),Xe(t,zt)}function zt(){if(!Ft())return;let e=It.onpopstate;It.onpopstate=function(...t){let n=It.location.href,r=Lt;if(Lt=n,Ze(`history`,{from:r,to:n}),e)try{return e.apply(this,t)}catch{}};function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=Lt,t=String(n);Lt=t,Ze(`history`,{from:e,to:t})}return e.apply(this,t)}}O(It.history,`pushState`,t),O(It.history,`replaceState`,t)}var Bt=E,Vt=`__sentry_xhr_v3__`;function Ht(e){Ye(`xhr`,e),Xe(`xhr`,Ut)}
2function Ut(){if(!Bt.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;O(e,`open`,function(e){return function(...t){let n=Date.now(),r=l(t[0])?t[0].toUpperCase():void 0,i=Wt(t[1]);if(!r||!i)return e.apply(this,t);this[Vt]={method:r,url:i,request_headers:{}},r===`POST`&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let e=this[Vt];if(e&&this.readyState===4){try{e.status_code=this.status}catch{}Ze(`xhr`,{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return`onreadystatechange`in this&&typeof this.onreadystatechange==`function`?O(this,`onreadystatechange`,function(e){return function(...t){return a(),e.apply(this,t)}}):this.addEventListener(`readystatechange`,a),O(this,`setRequestHeader`,function(e){return function(...t){let[n,r]=t,i=this[Vt];return i&&l(n)&&l(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),O(e,`send`,function(e){return function(...t){let n=this[Vt];return n?(t[0]!==void 0&&(n.body=t[0]),Ze(`xhr`,{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}function Wt(e){if(l(e))return e;try{return e.toString()}catch{}}function Gt(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Kt(){return`npm`}function qt(){return!Gt()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Jt(){return typeof window<`u`&&(!qt()||Yt())}function Yt(){return E.process!==void 0&&E.process.type===`renderer`}function Xt(){let e=typeof WeakSet==`function`,t=e?new WeakSet:[];
2function n(n){if(e)return t.has(n)?!0:(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1}function r(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}return[n,r]}function Zt(e,t=100,n=1/0){try{return $t(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Qt(e,t=3,n=100*1024){let r=Zt(e,t);return rn(r)>n?Qt(e,t-1,n):r}function $t(e,t,n=1/0,r=1/0,i=Xt()){let[a,o]=i;if(t==null||[`number`,`boolean`,`string`].includes(typeof t)&&!v(t))return t;let s=en(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return $t(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Ne(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=$t(e,t,c-1,r,i),d++}return o(t),u}function en(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof globalThis<`u`&&t===globalThis)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(b(t))return`[VueViewModel]`;if(_(t))return`[SyntheticEvent]`;if(typeof t==`number`&&t!==t)return`[NaN]`;if(typeof t==`function`)return`[Function: ${Ke(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=tn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function tn(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:`null prototype`}function nn(e){return~-encodeURI(e).split(/%..|./).length}function rn(e){return nn(JSON.stringify(e))}function an(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var on=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sn(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=on.exec(t);return n?n.slice(1):[]}function cn(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=an(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function ln(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function un(e,t){e=cn(e).slice(1),t=cn(t).slice(1);let n=ln(e.split(`/`)),r=ln(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function dn(e,t){let n=sn(e)[2];return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var fn;(function(e){e[e.PENDING=0]=`PENDING`,e[e.RESOLVED=1]=`RESOLVED`,e[e.REJECTED=2]=`REJECTED`})(fn||={});function pn(e){return new hn(t=>{t(e)})}function mn(e){return new hn((t,n)=>{n(e)})}var hn=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=fn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=e=>{this._setResult(fn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(fn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===fn.PENDING){if(g(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>
2{if(this._state===fn.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===fn.RESOLVED&&e[1](this._value),this._state===fn.REJECTED&&e[2](this._value),!0)})}}};function gn(e){let t=[];function n(){return e===void 0||t.length<e}function r(e){return t.splice(t.indexOf(e),1)[0]}function i(e){if(!n())return mn(new Oe(`Not adding Promise because buffer limit was reached.`));let i=e();return t.indexOf(i)===-1&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i}function a(e){return new hn((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{pn(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}return{$:t,add:i,drain:a}}function _n(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vn(e){return e.split(/[\?#]/,1)[0]}var yn=[`fatal`,`error`,`warning`,`log`,`info`,`debug`];function bn(e){return e===`warn`?`warning`:yn.includes(e)?e:`log`}var xn=1e3;function Sn(){return Date.now()/xn}function Cn(){let{performance:e}=E;if(!e||!e.now)return Sn;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/xn}var wn=Cn(),j=(()=>{let{performance:e}=E;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o==`number`?Math.abs(o+n-r):t;return a||s<t?i<=s?e.timeOrigin:o:r})(),Tn=`baggage`,En=`sentry-`,Dn=/^sentry-/;function On(e){if(!l(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=An(t);for(let t of Object.keys(n))e[t]=n[t];return e},{});else{if(!e)return;t=An(e)}let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Dn)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function kn(e){if(e)return jn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${En}${t}`]=n),e),{}))}function An(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}function jn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(he&&D.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var Mn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Nn(e){if(!e)return;let t=e.match(Mn);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Pn(e,t){let n=Nn(e),r=On(t),{traceId:i,parentSpanId:a,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||A(),parentSpanId:a||A().substring(16),spanId:A().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||A(),spanId:A().substring(16)}}}function Fn(e,t){let n=Nn(e),r=On(t),{traceId:i,parentSpanId:a,parentSampled:o}=n||{};return n?{traceId:i||A(),parentSpanId:a||A().substring(16),spanId:A().substring(16),sampled:o,dsc:r||{}}:{traceId:i||A(),spanId:A().substring(16)}}function In(e=A(),t=A().substring(16),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Ln(e,t=[]){return[e,t]}function Rn(e,t){let[n,r]=e;return[n,[...r,t]]}function zn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Bn(e,t){return zn(e,(e,n)=>t.includes(n))}function Vn(e,t){return(t||new TextEncoder).encode(e)}function Hn(e,t){let[n,r]=e,i=JSON.stringify(n);function a(e){typeof i==`string`?i=typeof e==`string`?i+e:[Vn(i,t),e]:i.push(typeof e==`string`?Vn(e,t):e)}for(let e of r){let[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Zt(n))}a(e)}}return typeof i==`string`?i:Un(i)}function Un(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Wn(e,t,n){let r=typeof e==`string`?t.encode(e):e;function i(e){let t=r.subarray(0,e);return r=r.subarray(e+1),t}function a(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(i(e)))}let o=a(),s=[];for(;r.length;){let e=a(),t=typeof e.length==`number`?e.length:void 0;s.push([e,t?i(t):a()])}return[o,s]}function Gn(e,t){let n=typeof e.data==`string`?Vn(e.data,t):e.data;return[k({type:`attachment`,length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Kn={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 qn(e){return Kn[e]}function Jn(e){if(!e||!e.sdk)return;
2let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Yn(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ce(r)},...i&&{trace:k({...i})}}}function Xn(e,t,n){let r=[{type:`client_report`},{timestamp:n||Sn(),discarded_events:e}];return Ln(t?{dsn:t}:{},[r])}var Zn=60*1e3;function Qn(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Zn:r-t}function $n(e,t){return e[t]||e.all||0}function er(e,t,n=Date.now()){return $n(e,t)>n}function tr(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n[`x-sentry-rate-limits`],o=n&&n[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Qn(o,r):t===429&&(i.all=r+60*1e3);return i}function nr(e,t){return e(t.stack||``,1)}function rr(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=nr(e,t);return r.length&&(n.stacktrace={frames:r}),n}function ir(e,t){return e??t()}function ar(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var M=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,or=`production`;function sr(){return se(`globalEventProcessors`,()=>[])}function cr(e){sr().push(e)}function lr(e,t,n,r=0){return new hn((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let s=o({...t},n);M&&o.id&&s===null&&D.log(`Event processor "${o.id}" dropped event`),g(s)?s.then(t=>lr(e,t,n,r+1).then(i)).then(null,a):lr(e,s,n,r+1).then(i).then(null,a)}})}function ur(e){let t=wn(),n={sid:A(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>pr(n)};return e&&dr(n,e),n}function dr(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||wn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:A()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function fr(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),dr(e,n)}function pr(e){return k({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function mr(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,tags:s,origin:c}=N(e);return k({data:r,op:i,parent_span_id:a,span_id:t,status:o,tags:s,trace_id:n,origin:c})}function hr(e){let{traceId:t,spanId:n}=e.spanContext();return In(t,n,yr(e))}function gr(e){return typeof e==`number`?_r(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?_r(e.getTime()):wn()}function _r(e){return e>9999999999?e/1e3:e}function N(e){return vr(e)?e.getSpanJSON():typeof e.toJSON==`function`?e.toJSON():{}}function vr(e){return typeof e.getSpanJSON==`function`}function yr(e){let{traceFlags:t}=e.spanContext();return!!(t&1)}function br(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||A(),timestamp:t.timestamp||Sn()},l=n.integrations||e.integrations.map(e=>e.name);xr(c,e),Tr(c,l),t.type===void 0&&Cr(c,e.stackParser);let u=Dr(r,n.captureContext);n.mechanism&&rt(c,n.mechanism);let d=i&&i.getEventProcessors?i.getEventProcessors():[],f=hi().getScopeData();
vendor: 17,623 bytes, lines 2-5
2a&&ai(f,a.getScopeData()),u&&ai(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),ii(c,f),lr([...d,...sr(),...f.eventProcessors],c,n).then(e=>(e&&wr(e),typeof o==`number`&&o>0?Er(e,o,s):e))}function xr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;`environment`in e||(e.environment=`environment`in t?n:or),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&=x(e.message,a);let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=x(o.value,a));let s=e.request;s&&s.url&&(s.url=x(s.url,a))}var Sr=new WeakMap;function Cr(e,t){let n=E._sentryDebugIds;if(!n)return;let r,i=Sr.get(t);i?r=i:(r=new Map,Sr.set(t,r));let a=Object.keys(n).reduce((e,i)=>{let a,o=r.get(i);o?a=o:(a=t(i),r.set(i,a));for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch{}}function wr(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:`sourcemap`,code_file:e,debug_id:t[e]})})}function Tr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Er(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Zt(e.data,t,n)}}))},...e.user&&{user:Zt(e.user,t,n)},...e.contexts&&{contexts:Zt(e.contexts,t,n)},...e.extra&&{extra:Zt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Zt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=N(e).data;return r&&(e.data=Zt(r,t,n)),e})),r}function Dr(e,t){if(!t)return e;let n=e?e.clone():new mi;return n.update(t),n}function Or(e){if(e)return kr(e)||jr(e)?{captureContext:e}:e}function kr(e){return e instanceof mi||typeof e==`function`}var Ar=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`requestSession`,`propagationContext`];function jr(e){return Object.keys(e).some(e=>Ar.includes(e))}function Mr(e,t){return I().captureException(e,Or(t))}function Nr(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return I().captureMessage(e,n,r)}function Pr(e,t){return I().captureEvent(e,t)}function Fr(e){I().configureScope(e)}function Ir(e,t){I().addBreadcrumb(e,t)}function Lr(e,t){I().setContext(e,t)}function Rr(e){I().setExtras(e)}function zr(e,t){I().setExtra(e,t)}function Br(e){I().setTags(e)}function Vr(e,t){I().setTag(e,t)}function Hr(e){I().setUser(e)}function Ur(...e){let t=I();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Wr(e){return Ti(()=>e(Ci()))}function Gr(e,t){return Ur(n=>(n.setSpan(e),t(n)))}function Kr(e,t){return I().startTransaction({...e},t)}async function qr(e){let t=P();return t?t.flush(e):(M&&D.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}async function Jr(e){let t=P();return t?t.close(e):(M&&D.warn(`Cannot flush events and disable SDK. No client defined.`),Promise.resolve(!1))}function Yr(){return I().lastEventId()}function P(){return I().getClient()}function Xr(){return!!P()}function F(){return I().getScope()}function Zr(e){let t=P(),n=Ci(),r=F(),{release:i,environment:a=or}=t&&t.getOptions()||{},{userAgent:o}=E.navigator||{},s=ur({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status===`ok`&&dr(c,{status:`exited`}),Qr(),n.setSession(s),r.setSession(s),s}function Qr(){let e=Ci(),t=F(),n=t.getSession()||e.getSession();n&&fr(n),$r(),e.setSession(),t.setSession()}function $r(){let e=Ci(),t=F(),n=P(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function ei(e=!1){if(e){Qr();return}$r()}function ti(e){return e.transaction}function ni(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},o=k({environment:r.environment||`production`,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit(`createDsc`,o),o}function ri(e){let t=P();if(!t)return{};let n=ni(N(e).trace_id||``,t,F()),r=ti(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:a,source:o}=r.metadata;a!=null&&(n.sample_rate=`${a}`);let s=N(r);return o&&o!==`url`&&(n.transaction=s.description),n.sampled=String(yr(r)),t.emit&&t.emit(`createDsc`,n),n}function ii(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;si(e,t),r&&ui(e,r),di(e,n),ci(e,i),li(e,a)}function ai(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;oi(e,`extra`,n),oi(e,`tags`,r),oi(e,`user`,i),oi(e,`contexts`,a),oi(e,`sdkProcessingMetadata`,s),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function oi(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function si(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=k(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=k(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let u=k(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=k(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&(e.transaction=s)}function ci(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function li(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ui(e,t){e.contexts={trace:mr(t),...e.contexts};let n=ti(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:ri(t),...e.sdkProcessingMetadata};let r=N(n).description;r&&(e.tags={transaction:r,...e.tags})}}function di(e,t){e.fingerprint=e.fingerprint?ot(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var fi=100,pi,mi=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=gi()}static clone(t){return t?t.clone():new e}clone(){let t=new e;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._span=this._span,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}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&dr(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t;if(n instanceof e){let e=n.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(f(n)){let e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=gi(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:fi;if(n<=0)return this;let r={timestamp:Sn(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:a,_level:o,_fingerprint:s,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:a,level:o,fingerprint:s||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return ii(e,this.getScopeData()),lr([...n,...sr(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:A();if(!this._client)return D.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:A();if(!this._client)return D.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:A();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(D.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function hi(){return pi||=new mi,pi}function gi(){return{traceId:A(),spanId:A().substring(16)}}var _i=`7.119.0`,vi=parseFloat(_i),yi=100,bi=class{constructor(e,t,n,r=vi){this._version=r;let i;t?i=t:(i=new mi,i.setClient(e));let a;n?a=n:(a=new mi,a.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let t=this.pushScope(),n;try{n=e(t)}catch(e){throw this.popScope(),e}return g(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:A(),r=Error(`Sentry syntheticException`);return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:A(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:A();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=yi}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let o={timestamp:Sn(),...e},s=i?ye(()=>i(o,t)):o;s!==null&&(r.emit&&r.emit(`beforeAddBreadcrumb`,s,t),n.addBreadcrumb(s,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=Si(this);try{e(this)}finally{Si(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch{return M&&D.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod(`startTransaction`,e,t);return M&&!n&&(this.getClient()?D.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 3Sentry.addTracingExtensions(); 4Sentry.init({...}); 5`):D.warn(`Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'`)),n}traceHeaders(){return this._callExtensionMethod(`traceHeaders`)}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&fr(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=or}=n&&n.getOptions()||{},{userAgent:a}=E.navigator||{},o=ur({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),s=t.getSession&&t.getSession();return s&&s.status===`ok`&&dr(s,{status:`exited`}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=xi().__SENTRY__;if(n&&n.extensions&&typeof n.extensions[e]==`function`)return n.extensions[e].apply(this,t);M&&D.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function xi(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function Si(e){let t=xi(),n=Di(t);return Oi(t,e),n}function I(){let e=xi();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return wi(e)}function Ci(){return I().getIsolationScope()}function wi(e=xi()){return(!Ei(e)||Di(e).isOlderThan(vi))&&Oi(e,new bi),Di(e)}function Ti(e,t={}){let n=xi();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function Ei(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Di(e){return se(`hub`,()=>new bi,e)}function Oi(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function ki(e){return(e||I()).getScope().getTransaction()}var Ai=Nn,ji=!1;function Mi(){ji||(ji=!0,kt(Ni),Mt(Ni))}function Ni(){let e=ki();if(e){let t=`internal_error`;M&&D.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ni.tag=`sentry_tracingErrorCallback`;var Pi;(function(e){e.Ok=`ok`,e.DeadlineExceeded=`deadline_exceeded`,e.Unauthenticated=`unauthenticated`,e.PermissionDenied=`permission_denied`,e.NotFound=`not_found`,e.Re
5sourceExhausted=`resource_exhausted`,e.InvalidArgument=`invalid_argument`,e.Unimplemented=`unimplemented`,e.Unavailable=`unavailable`,e.InternalError=`internal_error`,e.UnknownError=`unknown_error`,e.Cancelled=`cancelled`,e.AlreadyExists=`already_exists`,e.FailedPrecondition=`failed_precondition`,e.Aborted=`aborted`,e.OutOfRange=`out_of_range`,e.DataLoss=`data_loss`})(Pi||={});function Fi(e){if(e<400&&e>=100)return`ok`;if(e>=400&&e<500)switch(e){case 401:return`unauthenticated`;case 403:return`permission_denied`;case 404:return`not_found`;case 409:return`already_exists`;case 413:return`failed_precondition`;case 429:return`resource_exhausted`;default:return`invalid_argument`}if(e>=500&&e<600)switch(e){case 501:return`unimplemented`;case 503:return`unavailable`;case 504:return`deadline_exceeded`;default:return`internal_error`}return`unknown_error`}var Ii=Fi;function Li(e,t){e.setTag(`http.status_code`,String(t)),e.setData(`http.response.status_code`,t);let n=Fi(t);n!==`unknown_error`&&e.setStatus(n)}function Ri(e,t,n=()=>{}){let r;try{r=e()}catch(e){throw t(e),n(),e}return zi(r,t,n)}function zi(e,t,n){return g(e)?e.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),e)}function Bi(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=P(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||`tracesSampleRate`in n||`tracesSampler`in n)}function Vi(e,t,n=()=>{},r=()=>{}){let i=I(),a=F(),o=a.getSpan(),s=qi(i,{parentSpan:o,spanContext:Ji(e),forceTransaction:!1,scope:a});return a.setSpan(s),Ri(()=>t(s),e=>{s&&s.setStatus(`internal_error`),n(e,s)},()=>{s&&s.end(),a.setSpan(o),r()})}function Hi(e,t){let n=Ji(e);return Ti(()=>Ur(e.scope,r=>{let i=I(),a=r.getSpan(),o=e.onlyIfParent&&!a?void 0:qi(i,{parentSpan:a,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return Ri(()=>t(o),()=>{if(o){let{status:e}=N(o);(!e||e===`ok`)&&o.setStatus(`internal_error`)}},()=>o&&o.end())}))}function Ui(e,t){let n=Ji(e);return Ti(()=>Ur(e.scope,r=>{let i=I(),a=r.getSpan(),o=e.onlyIfParent&&!a?void 0:qi(i,{parentSpan:a,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function s(){o&&o.end()}return Ri(()=>t(o,s),()=>{if(o&&o.isRecording()){let{status:e}=N(o);(!e||e===`ok`)&&o.setStatus(`internal_error`)}})}))}function Wi(e){if(!Bi())return;let t=Ji(e),n=I(),r=e.scope?e.scope.getSpan():Gi();if(e.onlyIfParent&&!r)return;let i=(e.scope||F()).clone();return qi(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function Gi(){return F().getSpan()}var Ki=({sentryTrace:e,baggage:t},n)=>{let r=F(),{traceparentData:i,dynamicSamplingContext:a,propagationContext:o}=Pn(e,t);r.setPropagationContext(o),M&&i&&D.log(`[Tracing] Continuing trace ${i.traceId}.`);let s={...i,metadata:k({dynamicSamplingContext:a})};return n?Ti(()=>n(s)):s};function qi(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!Bi())return;let a=Ci(),o;if(t&&!r)o=t.startChild(n);else if(t){let r=ri(t),{traceId:i,spanId:a}=t.spanContext(),s=yr(t);o=e.startTransaction({traceId:i,parentSpanId:a,parentSampled:s,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:t,dsc:r,parentSpanId:s,sampled:c}={...a.getPropagationContext(),...i.getPropagationContext()};o=e.startTransaction({traceId:t,parentSpanId:s,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(o),Zi(o,i,a),o}function Ji(e){if(e.startTime){let t={...e};return t.startTimestamp=gr(e.startTime),delete t.startTime,t}return e}var Yi=`_sentryScope`,Xi=`_sentryIsolationScope`;function Zi(e,t,n){e&&(ke(e,Xi,n),ke(e,Yi,t))}function Qi(e){return{scope:e[Yi],isolationScope:e[Xi]}}var $i;function ea(e){return $i?$i.get(e):void 0}function ta(e){let t=ea(e);if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(k(r));return n}function na(e,t,n,r,i,a){let o=Gi();if(o){let s=ea(o)||new Map,c=`${e}:${t}@${r}`,l=s.get(a);if(l){let[,e]=l;s.set(a,[c,{min:Math.min(e.min,n),max:Math.max(e.max,n),count:e.count+=1,sum:e.sum+=n,tags:e.tags}])}else s.set(a,[c,{min:n,max:n,count:1,sum:n,tags:i}]);$i||=new WeakMap,$i.set(o,s)}}var ra=`sentry.source`,ia=`sentry.sample_rate`,aa=`sentry.op`,oa=`sentry.origin`,sa=`profile_id`,ca=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},la=class e{constructor(e={}){this._traceId=e.traceId||A(),this._spanId=e.spanId||A().substring(16),this._startTime=e.startTimestamp||wn(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||`sentry`,this._attributes={},this.setAttributes({[oa]:e.origin||`manual`,[aa]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||``}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[aa]}set op(e){this.setAttribute(aa,e)}get origin(){return this._attributes[oa]}set origin(e){this.setAttribute(oa,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}startChild(t){let n=new e({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);let r=ti(this);if(n.transaction=r,M&&r){let e=`[Tracing] Starting '${t&&t.op||`< unknown op >`}' span on transaction '${N(n).description||`< unknown name >`}' (${r.spanContext().spanId}).`;D.log(e),this._logMessage=e}return n}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){t===void 0?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Li(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status===`ok`}finish(e){return this.end(e)}end(e){if(this._endTime)return;let t=ti(this);if(M&&t&&t.spanContext().spanId!==this._spanId){let e=this._logMessage;e&&D.log(e.replace(`Starting`,`Finishing`))}this._endTime=gr(e)}toTraceparent(){return hr(this)}toContext(){return k({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return mr(this)}getSpanJSON(){return k({data:this._getData(),description:this._name,op:this._attributes[aa],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[oa],_metrics_summary:ta(this),profile_id:this._attributes[sa],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
5toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(!(!n&&!r))return n&&r?{...e,...t}:n?e:t}},ua=class extends la{constructor(e,t){super(e),this._contexts={},this._hub=t||I(),this._name=e.name||``,this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:`custom`,spanMetadata:{},...this._metadata,...this._attributes[`sentry.source`]&&{source:this._attributes[`sentry.source`]},...this._attributes[`sentry.sample_rate`]&&{sampleRate:this._attributes[`sentry.sample_rate`]}}}set metadata(e){this._metadata=e}setName(e,t=`custom`){this._name=e,this.setAttribute(ra,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||=new ca(e),this.spanRecorder.add(this)}setContext(e,t){t===null?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=``){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let t=gr(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return k({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||``,this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return ri(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||=(M&&D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit(`finishTransaction`,this),this._sampled!==!0){M&&D.log(`[Tracing] Discarding transaction because its trace was not chosen to be sampled.`),t&&t.recordDroppedEvent(`sample_rate`,`transaction`);return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&N(e).timestamp):[];if(this._trimEnd&&n.length>0){let e=n.map(e=>N(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}let{scope:r,isolationScope:i}=Qi(this),{metadata:a}=this,{source:o}=a,s={contexts:{...this._contexts,trace:mr(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{...a,capturedSpanScope:r,capturedSpanIsolationScope:i,...k({dynamicSamplingContext:ri(this)})},_metrics_summary:ta(this),...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(M&&D.log(`[Measurements] Adding measurements to transaction`,JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),M&&D.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}},da={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},fa=`finishReason`,pa=[`heartbeatFailed`,`idleTimeout`,`documentHidden`,`finalTimeout`,`externalFinish`,`cancelled`],ma=class extends ca{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),N(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}},ha=class extends ua{constructor(e,t,n=da.idleTimeout,r=da.finalTimeout,i=da.heartbeatInterval,a=!1,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=pa[4],this._autoFinishAllowed=!o,a&&(M&&D.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus(`deadline_exceeded`),this._finishReason=pa[3],this.end())},this._finalTimeout)}end(e){let t=gr(e);if(this._finished=!0,this.activities={},this.op===`ui.action.click`&&this.setAttribute(fa,this._finishReason),this.spanRecorder){M&&D.log(`[Tracing] finishing IdleTransaction`,new Date(t*1e3).toISOString(),this.op);for(let e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;N(e).timestamp||(e.setStatus(`cancelled`),e.end(t),M&&D.log(`[Tracing] cancelling span since transaction ended early`,JSON.stringify(e,void 0,2)));let{start_timestamp:n,timestamp:r}=N(e),i=n&&n<t,a=(this._finalTimeout+this._idleTimeout)/1e3,o=r&&n&&r-n<a;if(M){let t=JSON.stringify(e,void 0,2);i?o||D.log(`[Tracing] discarding Span since it finished after Transaction final timeout`,t):D.log(`[Tracing] discarding Span since it happened after Transaction was finished`,t)}return i&&o}),M&&D.log(`[Tracing] flushing IdleTransaction`)}else M&&D.log(`[Tracing] No active IdleTransaction`);if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new ma(t,n,this.spanContext().spanId,e),M&&D.log(`Starting heartbeat`),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=t===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=pa[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||=(M&&D.log(`[Tracing] Received finish signal for idle transaction.`),this._restartIdleTimeout(),!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=pa[1],this.end(e))},this._idleTimeout)}
5_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),M&&D.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,M&&D.log(`[Tracing] new activities count`,Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(M&&D.log(`[Tracing] popActivity ${e}`),delete this.activities[e],M&&D.log(`[Tracing] new activities count`,Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let e=wn();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=pa[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join(``);e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(M&&D.log(`[Tracing] Transaction finished because of no change for 3 heart beats`),this.setStatus(`deadline_exceeded`),this._finishReason=pa[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){M&&D.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function ga(e,t,n){if(!Bi(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(ia,Number(e.sampled)),e;let r;return typeof t.tracesSampler==`function`?(r=t.tracesSampler(n),e.setAttribute(ia,Number(r))):n.parentSampled===void 0?t.tracesSampleRate===void 0?(r=1,e.setAttribute(ia,r)):(r=t.tracesSampleRate,e.setAttribute(ia,Number(r))):r=n.parentSampled,_a(r)?r?(e.sampled=Math.random()<r,e.sampled?(M&&D.log(`[Tracing] starting ${e.op} transaction - ${N(e).description}`),e):(M&&D.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(M&&D.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),e.sampled=!1,e):(M&&D.warn(`[Tracing] Discarding transaction because of invalid sample rate.`),e.sampled=!1,e)}function _a(e){return v(e)||!(typeof e==`number`||typeof e==`boolean`)?(M&&D.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(M&&D.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function va(){let e=this.getScope().getSpan();return e?{"sentry-trace":hr(e)}:{}}function ya(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||`sentry`,a=e.instrumenter||`sentry`;i!==a&&(M&&D.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. 6The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let o=new ua(e,this);return o=ga(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit(`startTransaction`,o),o}function ba(e,t,n,r,i,a,o,s=!1){let c=e.getClient(),l=c&&c.getOptions()||{},u=new ha(t,e,n,r,o,i,s);return u=ga(u,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),u.isRecording()&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c&&c.emit&&c.emit(`startTransaction`,u),u}function xa(){let e=xi();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=ya),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=va),Mi())}function Sa(e,t,n){let r=ki();r&&r.setMeasurement(e,t,n)}function Ca(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]],e):e}function wa(e,t,n,r){let i=Jn(n);return Ln({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Ce(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Ta(e,t,n,r){let i=Jn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Ca(e,n&&n.sdk);let o=Yn(e,i,r,t);return delete e.sdkProcessingMetadata,Ln(o,[[{type:a},e]])}var Ea=`7`;function Da(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Oa(e){return`${Da(e)}${e.projectId}/envelope/`}function ka(e,t){return Me({sentry_key:e.publicKey,sentry_version:Ea,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Aa(e,t={}){let n=typeof t==`string`?t:t.tunnel,r=typeof t==`string`||!t._metadata?void 0:t._metadata.sdk;return n||`${Oa(e)}?${ka(e,r)}`}function ja(e,t){let n=De(e);if(!n)return``;let r=`${Da(n)}embed/error-page/`,i=`dsn=${Ce(n)}`;for(let e in t)if(e!==`dsn`&&e!==`onClose`)if(e===`user`){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}
6`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}var Ma=[];function Na(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}function Pa(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;r=Array.isArray(n)?[...t,...n]:typeof n==`function`?ot(n(t)):t;let i=Na(r),a=za(i,e=>e.name===`Debug`);if(a!==-1){let[e]=i.splice(a,1);i.push(e)}return i}function Fa(e,t){let n={};return t.forEach(t=>{t&&La(e,t,n)}),n}function Ia(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function La(e,t,n){if(n[t.name]){M&&D.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Ma.indexOf(t.name)===-1&&(t.setupOnce(cr,I),Ma.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),e.on&&typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(e.addEventProcessor&&typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}M&&D.log(`Integration installed: ${t.name}`)}function Ra(e){let t=P();if(!t||!t.addIntegration){M&&D.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function za(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function L(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}function R(e){return e}function Ba(e,t,n,r){return`${e}${t}${n}${Object.entries(k(r)).sort((e,t)=>e[0].localeCompare(t[0]))}`}function Va(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t>>>0}function Ha(e){let t=``;for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(`,`)}`:``;t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}function Ua(e){return e.replace(/[^\w]+/gi,`_`)}function Wa(e){return e.replace(/[^\w\-.]+/gi,`_`)}function Ga(e){return e.replace(/[^\w\-./]+/gi,``)}var Ka=[[` 7`,`\\n`],[`\r`,`\\r`],[` `,`\\t`],[`\\`,`\\\\`],[`|`,`\\u{7c}`],[`,`,`\\u{2c}`]];function qa(e){for(let[t,n]of Ka)if(e===t)return n;return e}function Ja(e){return[...e].reduce((e,t)=>e+qa(t),``)}function Ya(e){let t={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=Ga(n);t[r]=Ja(String(e[n]))}return t}function Xa(e,t,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Ce(t)),Ln(i,[Za(e)])}function Za(e){let t=Ha(e);return[{type:`statsd`,length:t.length},t]}var Qa=`Not capturing exception because it's already been captured.`,$a=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=De(e.dsn):M&&D.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Aa(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(at(e)){M&&D.log(Qa);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=u(e)?e:String(e),o=d(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&at(t.originalException)){M&&D.log(Qa);return}let r=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){typeof e.release==`string`?(this.sendSession(e),dr(e,{init:!1})):M&&D.warn(`Discarded session because of missing or non-string release`)}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
vendor: 3,094 bytes, line 7
7ientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):pn(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return M&&D.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];La(this,e,this._integrations),t||Ia(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Ta(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Rn(n,Gn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let t=wa(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=typeof n==`number`?n:1,i=`${e}:${t}`;M&&D.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){M&&D.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=Xa(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Fa(this,e),Ia(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&t.handled===!1){n=!0;break}}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(dr(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new hn(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=Ci()){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),br(i,e,t,n,this,r).then(e=>{if(e===null)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:o}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||ni(r,this,n),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>
7{if(M){let t=e;t.logLevel===`log`?D.log(t.message):D.warn(t)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=ro(e),o=no(e),s=e.type||`error`,c=`before send for type \`${s}\``;if(o&&typeof i==`number`&&Math.random()>i)return this.recordDroppedEvent(`sample_rate`,`error`,e),mn(new Oe(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,`log`));let l=s===`replay_event`?`replay`:s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then(n=>{if(n===null)throw this.recordDroppedEvent(`event_processor`,l,e),new Oe("An event processor returned `null`, will not send event.",`log`);return t.data&&t.data.__sentry__===!0?n:eo(to(r,n,t),c)}).then(r=>{if(r===null){if(this.recordDroppedEvent(`before_send`,l,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw new Oe(`${c} returned \`null\`, will not send event.`,`log`)}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let o=r.transaction_info;return a&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:`custom`}),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof Oe?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Oe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{M&&D.error(`Error while sending event:`,e)});M&&D.error(`Transport disabled`)}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(`:`);return{reason:n,category:r,quantity:e[t]}})}};function eo(e,t){let n=`${t} must return \`null\` or a valid event.`;if(g(e))return e.then(e=>{if(!f(e)&&e!==null)throw new Oe(n);return e},e=>{throw new Oe(`${t} rejected with ${e}`)});if(!f(e)&&e!==null)throw new Oe(n);return e}function to(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;if(no(t)&&r)return r(t,n);if(ro(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}function no(e){return e.type===void 0}function ro(e){return e.type===`transaction`}function io(e){let t=P();!t||!t.addEventProcessor||t.addEventProcessor(e)}var ao=5e3,oo={c:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},g:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},d:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(`:`)}},s:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e==`string`?Va(e):e).join(`:`)}}};function so(e,t){t.debug===!0&&(M?D.enable():ye(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),F().update(t.initialScope);let n=new e(t);co(n),lo(n)}function co(e){let t=I().getStackTop();t.client=e,t.scope.setClient(e)}function lo(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}function uo(e,t,n=gn(e.bufferSize||30)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(zn(i,(t,n)=>{let i=qn(n);if(er(r,i)){let r=fo(t,n);e.recordDroppedEvent(`ratelimit_backoff`,i,r)}else a.push(t)}),a.length===0)return pn();let o=Ln(i[0],a),s=t=>{zn(o,(n,r)=>{let i=fo(n,r);e.recordDroppedEvent(t,qn(r),i)})};return n.add(()=>t({body:Hn(o,e.textEncoder)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&M&&D.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tr(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>
7{if(e instanceof Oe)return M&&D.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),pn();throw e})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function fo(e,t){if(!(t!==`event`&&t!==`transaction`))return Array.isArray(e)?e[1]:void 0}var po=5e3,mo=36e5;function ho(e,t){M&&D.info(`[Offline]: ${e}`,t)}function go(e){return t=>{let n=e(t),r=t.createStore?t.createStore(t):void 0,i=po,a;function o(e,n,r){return Bn(e,[`replay_event`,`replay_recording`,`client_report`])?!1:!t.shouldStore||t.shouldStore(e,n,r)}function s(e){r&&(a&&clearTimeout(a),a=setTimeout(async()=>{a=void 0;let e=await r.pop();e&&(ho(`Attempting to send previously queued event`),l(e).catch(e=>{ho(`Failed to retry sending`,e)}))},e),typeof a!=`number`&&a.unref&&a.unref())}function c(){a||(s(i),i=Math.min(i*2,mo))}async function l(e){try{let t=await n.send(e),r=100;if(t){if(t.headers&&t.headers[`retry-after`])r=Qn(t.headers[`retry-after`]);else if((t.statusCode||0)>=400)return t}return s(r),i=po,t}catch(t){if(r&&await o(e,t,i))return await r.insert(e),c(),ho(`Error sending. Event queued`,t),{};throw t}}return t.flushAtStartup&&c(),{send:l,flush:e=>n.flush(e)}}}function _o(e,t){let n;return zn(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function vo(e,t){return n=>{let r=e(n);return{...r,send:async e=>{let n=_o(e,[`event`,`transaction`,`profile`,`replay_event`]);return n&&(n.release=t),r.send(e)}}}}function yo(e,t){return Ln(t?{...e[0],dsn:t}:e[0],e[1])}function bo(e,t){return n=>{let r=e(n),i=new Map;function a(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=we(t);if(!s)return;let c=Aa(s,n.tunnel);o=r?vo(e,r)({...n,url:c}):e({...n,url:c}),i.set(a,o)}return[t,o]}async function o(e){function n(t){return _o(e,t&&t.length?t:[`event`])}let i=t({envelope:e,getEvent:n}).map(e=>typeof e==`string`?a(e,void 0):a(e.dsn,e.release)).filter(e=>!!e);return i.length===0&&i.push([``,r]),(await Promise.all(i.map(([t,n])=>n.send(yo(e,t)))))[0]}async function s(e){let t=[await r.flush(e)];for(let[,n]of i)t.push(await n.flush(e));return t.every(e=>e)}return{send:o,flush:s}}}function xo(e,t){let n={sent_at:new Date().toISOString()};return t&&(n.dsn=Ce(t)),Ln(n,e.map(So))}function So(e){return[{type:`span`},e]}function Co(e,t){let n=t&&Do(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return To(e,r)||wo(e,i)}function wo(e,t){return t?Eo(e)===Eo(t):!1}function To(e,t){return t?e.includes(t.host):!1}function Eo(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Do(e){return e.getClient!==void 0}function Oo(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join(`\0`).replace(/%/g,`%%`).replace(/\0/g,`%s`),n.__sentry_template_values__=t,n}function ko(e,t,n=[t],r=`npm`){let i=e._metadata||{};i.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:_i})),version:_i},e._metadata=i}var Ao=new Map,jo=new Set;function Mo(e){if(E._sentryModuleMetadata)for(let t of Object.keys(E._sentryModuleMetadata)){let n=E._sentryModuleMetadata[t];if(jo.has(t))continue;jo.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){Ao.set(e.filename,n);break}}}function No(e,t){return Mo(e),Ao.get(t)}function Po(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[]){if(!n.filename)continue;let t=No(e,n.filename);t&&(n.module_metadata=t)}})}catch{}}function Fo(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch{}}var Io=`ModuleMetadata`,Lo=R((()=>({name:Io,setupOnce(){},setup(e){typeof e.on==`function`&&e.on(`beforeEnvelope`,e=>{zn(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Fo(t),e[1]=t)}})})},processEvent(e,t,n){let r=n.getOptions().stackParser;return Po(r,e),e}}))),Ro=L(Io,Lo),zo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Bo=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Vo=`InboundFilters`,Ho=R(((e={})=>({name:Vo,setupOnce(){},processEvent(t,n,r){return Go(t,Wo(e,r.getOptions()))?null:t}}))),Uo=L(Vo,Ho);function Wo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:zo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Bo],ignoreInternal:e.ignoreInternal===void 0||e.ignoreInternal}}function Go(e,t){return t.ignoreInternal&&Zo(e)?(M&&D.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${tt(e)}`),!0):Ko(e,t.ignoreErrors)?(M&&D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${tt(e)}`),!0):qo(e,t.ignoreTransactions)?(M&&D.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${tt(e)}`),!0):Jo(e,t.denyUrls)?(M&&D.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${tt(e)}.\nUrl: ${$o(e)}`),!0):Yo(e,t.allowUrls)?!1:(M&&D.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${tt(e)}.\nUrl: ${$o(e)}`),!0)}function Ko(e,t){return e.type||!t||!t.length?!1:Xo(e).some(e=>T(e,t))}function qo(e,t){if(e.type!==`transaction`||!t||!t.length)return!1;let n=e.transaction;return n?T(n,t):!1}function Jo(e,t){if(!t||!t.length)return!1;let n=$o(e);return n?T(n,t):!1}function Yo(e,t){if(!t||!t.length)return!0;let n=$o(e);return!n||T(n,t)}function Xo(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),M&&t.length===0&&D.error(`Could not extract message for event ${tt(e)}`),t}function Zo(e){try{return e.exception.values[0].type===`SentryError`}catch{}return!1}function Qo(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function $o(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Qo(t):null}catch{return M&&D.error(`Cannot extract url for event ${tt(e)}`),null}}var es,ts=`FunctionToString`,ns=new WeakMap,rs=R((()=>({name:ts,setupOnce(){es=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=je(this),n=ns.has(P())&&t!==void 0?t:this;return es.apply(n,e)}}catch{}},setup(e){ns.set(e,!0)}}))),is=L(ts,rs),as=`cause`,os=5,ss=`LinkedErrors`,cs=L(ss,R(((e={})=>{let t=e.limit||os,n=e.key||as;return{name:ss,setupOnce(){},preprocessEvent(e,r,i){let a=i.getOptions();ee(rr,a.stackParser,a.maxValueLength,n,t,e,r)}}}))),ls=e({FunctionToString:()=>is,InboundFilters:()=>Uo,LinkedErrors:()=>cs}),us=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),ao)}add(e,t,n,r=`none`,i={},a=wn()){let o=Math.floor(a),s=Wa(t),c=Ya(i),l=Ua(r),u=Ba(e,s,l,c),d=this._buckets.get(u),f=d&&e===`s`?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<o&&(d.timestamp=o)):(d={metric:new oo[e](n),timestamp:o,metricType:e,name:s,unit:l,tags:c}
7,this._buckets.set(u,d)),na(e,s,typeof n==`string`?d.metric.weight-f:n,l,i,u)}flush(){if(this._buckets.size!==0){if(this._client.captureAggregateMetrics){let e=Array.from(this._buckets).map(([,e])=>e);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}},ds=`MetricsAggregator`,fs=R((()=>({name:ds,setupOnce(){},setup(e){e.metricsAggregator=new us(e)}}))),ps=L(ds,fs);function ms(e,t,n,r={}){let i=P(),a=F();if(i){if(!i.metricsAggregator){M&&D.warn(`No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs`);return}let{unit:o,tags:s,timestamp:c}=r,{release:l,environment:u}=i.getOptions(),d=a.getTransaction(),f={};l&&(f.release=l),u&&(f.environment=u),d&&(f.transaction=N(d).description||``),M&&D.log(`Adding value of ${n} to ${e} metric ${t}`),i.metricsAggregator.add(e,t,n,o,{...f,...s},c)}}function hs(e,t=1,n){ms(`c`,e,t,n)}function gs(e,t,n){ms(`d`,e,t,n)}function _s(e,t,n){ms(`s`,e,t,n)}function vs(e,t,n){ms(`g`,e,t,n)}var ys={increment:hs,distribution:gs,set:_s,gauge:vs,MetricsAggregator:ps,metricsAggregatorIntegration:fs},bs=ls,z=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,B=E;function xs(){B.document?B.document.addEventListener(`visibilitychange`,()=>{let e=ki();if(B.document.hidden&&e){let t=`cancelled`,{op:n,status:r}=N(e);z&&D.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag(`visibilitychange`,`document.hidden`),e.end()}}):z&&D.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Ss=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Cs=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,ws=()=>{let e=B.performance.timing,t=B.performance.navigation.type,n={entryType:`navigation`,startTime:0,type:t==2?`back_forward`:t===1?`reload`:`navigate`};for(let t in e)t!==`navigationStart`&&t!==`toJSON`&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},Ts=()=>B.__WEB_VITALS_POLYFILL__?B.performance&&(performance.getEntriesByType&&performance.getEntriesByType(`navigation`)[0]||ws()):B.performance&&performance.getEntriesByType&&performance.getEntriesByType(`navigation`)[0],Es=()=>{let e=Ts();return e&&e.activationStart||0},Ds=(e,t)=>{let n=Ts(),r=`navigate`;return n&&(r=B.document&&B.document.prerendering||Es()>0?`prerender`:n.type.replace(/_/g,`-`)),{name:e,value:t===void 0?-1:t,rating:`good`,delta:0,entries:[],id:Cs(),navigationType:r}},Os=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},ks=(e,t)=>{let n=r=>{(r.type===`pagehide`||B.document.visibilityState===`hidden`)&&(e(r),t&&(removeEventListener(`visibilitychange`,n,!0),removeEventListener(`pagehide`,n,!0)))};B.document&&(addEventListener(`visibilitychange`,n,!0),addEventListener(`pagehide`,n,!0))},As=(e,t={})=>{let n=Ds(`CLS`,0),r,i=0,a=[],o=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=a[0],o=a[a.length-1];i&&a.length!==0&&e.startTime-o.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},s=Os(`layout-shift`,o);if(s){r=Ss(e,n,t.reportAllChanges);let i=()=>{o(s.takeRecords()),r(!0)};return ks(i),i}},js=-1,Ms=()=>{B.document&&B.document.visibilityState&&(js=B.document.visibilityState===`hidden`&&!B.document.prerendering?0:1/0)},Ns=()=>{ks(({timeStamp:e})=>{js=e},!0)},Ps=()=>(js<0&&(Ms(),Ns()),{get firstHiddenTime(){return js}}),Fs=e=>{let t=Ps(),n=Ds(`FID`),r,i=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},a=e=>{e.forEach(i)},o=Os(`first-input`,a);r=Ss(e,n),o&&ks(()=>{a(o.takeRecords()),o.disconnect()},!0)},Is=0,Ls=1/0,Rs=0,zs=e=>{e.forEach(e=>{e.interactionId&&(Ls=Math.min(Ls,e.interactionId),Rs=Math.max(Rs,e.interactionId),Is=Rs?(Rs-Ls)/7+1:0)})},Bs,Vs=()=>Bs?Is:performance.interactionCount||0,Hs=()=>{`interactionCount`in performance||Bs||(Bs=Os(`event`,zs,{type:`event`,buffered:!0,durationThreshold:0}))},Us=()=>Vs(),Ws=10,Gs=[],Ks={},qs=e=>{let t=Gs[Gs.length-1],n=Ks[e.interactionId];if(n||Gs.length<Ws||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};Ks[t.id]=t,Gs.push(t)}Gs.sort((e,t)=>
7t.latency-e.latency),Gs.splice(Ws).forEach(e=>{delete Ks[e.id]})}},Js=()=>Gs[Math.min(Gs.length-1,Math.floor(Us()/50))],Ys=(e,t)=>{t||={},Hs();let n=Ds(`INP`),r,i=e=>{e.forEach(e=>{e.interactionId&&qs(e),e.entryType===`first-input`&&(Gs.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||qs(e))});let t=Js();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},a=Os(`event`,i,{durationThreshold:t.durationThreshold||40});r=Ss(e,n,t.reportAllChanges),a&&(a.observe({type:`first-input`,buffered:!0}),ks(()=>{i(a.takeRecords()),n.value<0&&Us()>0&&(n.value=0,n.entries=[]),r(!0)}))},Xs={},Zs=e=>{let t=Ps(),n=Ds(`LCP`),r,i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-Es(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[i],r())}},a=Os(`largest-contentful-paint`,i);if(a){r=Ss(e,n);let t=()=>{Xs[n.id]||(i(a.takeRecords()),a.disconnect(),Xs[n.id]=!0,r(!0))};return[`keydown`,`click`].forEach(e=>{B.document&&addEventListener(e,t,{once:!0,capture:!0})}),ks(t,!0),t}},Qs=e=>{B.document&&(B.document.prerendering?addEventListener(`prerenderingchange`,()=>Qs(e),!0):B.document.readyState===`complete`?setTimeout(e,0):addEventListener(`load`,()=>Qs(e),!0))},$s=(e,t)=>{t||={};let n=Ds(`TTFB`),r=Ss(e,n,t.reportAllChanges);Qs(()=>{let e=Ts();if(e){if(n.value=Math.max(e.responseStart-Es(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}})},ec={},tc={},nc,rc,ic,ac,oc;function sc(e,t=!1){return yc(`cls`,e,mc,nc,t)}function cc(e,t=!1){return yc(`lcp`,e,gc,ic,t)}function lc(e){return yc(`ttfb`,e,_c,ac)}function uc(e){return yc(`fid`,e,hc,rc)}function dc(e){return yc(`inp`,e,vc,oc)}function fc(e,t){return xc(e,t),tc[e]||(bc(e),tc[e]=!0),Sc(e,t)}function pc(e,t){let n=ec[e];if(!(!n||!n.length))for(let r of n)try{r(t)}catch(t){z&&D.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ke(r)}\nError:`,t)}}function mc(){return As(e=>{pc(`cls`,{metric:e}),nc=e},{reportAllChanges:!0})}function hc(){return Fs(e=>{pc(`fid`,{metric:e}),rc=e})}function gc(){return Zs(e=>{pc(`lcp`,{metric:e}),ic=e})}function _c(){return $s(e=>{pc(`ttfb`,{metric:e}),ac=e})}function vc(){return Ys(e=>{pc(`inp`,{metric:e}),oc=e})}function yc(e,t,n,r,i=!1){xc(e,t);let a;return tc[e]||(a=n(),tc[e]=!0),r&&t({metric:r}),Sc(e,t,i?a:void 0)}function bc(e){let t={};e===`event`&&(t.durationThreshold=0),Os(e,t=>{pc(e,{entries:t})},t)}function xc(e,t){ec[e]=ec[e]||[],ec[e].push(t)}function Sc(e,t,n){return()=>{n&&n();let r=ec[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Cc(e){return typeof e==`number`&&isFinite(e)}function wc(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var Tc=2147483647;function V(e){return e/1e3}function Ec(){return B&&B.addEventListener&&B.performance}var Dc=0,H={},Oc,kc;function Ac(){let e=Ec();if(e&&j){e.mark&&B.performance.mark(`sentry-tracing-init`);let t=Ic(),n=Pc(),r=Fc(),i=Lc();return()=>{t(),n(),r(),i()}}return()=>void 0}function jc(){fc(`longtask`,({entries:e})=>{for(let t of e){let e=ki();if(!e)return;let n=V(j+t.startTime),r=V(t.duration);e.startChild({description:`Main UI thread blocked`,op:`ui.long-task`,origin:`auto.ui.browser.metrics`,startTimestamp:n,endTimestamp:n+r})}})}function Mc(){fc(`event`,({entries:e})=>{for(let t of e){let e=ki();if(!e)return;if(t.name===`click`){let n=V(j+t.startTime),r=V(t.duration),i={description:ue(t.target),op:`ui.interaction.${t.name}`,origin:`auto.ui.browser.metrics`,startTimestamp:n,endTimestamp:n+r},a=me(t.target);a&&(i.attributes={"ui.component_name":a}),e.startChild(i)}}})}function Nc(e,t){if(Ec()&&j){let n=zc(e,t);return()=>{n()}}return()=>void 0}function Pc(){return sc(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(z&&D.log(`[Measurements] Adding CLS`),H.cls={value:e.value,unit:``},kc=t)},!0)}function Fc(){return cc(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(z&&D.log(`[Measurements] Adding LCP`),H.lcp={value:e.value,unit:`millisecond`},Oc=t)},!0)}function Ic(){return uc(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=V(j),r=V(t.startTime);z&&D.log(`[Measurements] Adding FID`),H.fid={value:e.value,unit:`millisecond`},H[`mark.fid`]={value:n+r,unit:`second`}})}function Lc(){return lc(({metric:e})=>{e.entries[e.entries.length-1]&&(z&&D.log(`[Measurements] Adding TTFB`),H.ttfb={value:e.value,unit:`millisecond`})})}var Rc={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function zc(e,t){return dc(({metric:n})=>{if(n.value===void 0)return;let r=n.entries.find(e=>e.duration===n.value&&Rc[e.name]!==void 0),i=P();if(!r||!i)return;let a=Rc[r.name],o=i.getOptions(),s=V(j+r.startTime),c=V(n.value),l=r.
7interactionId===void 0?void 0:e[r.interactionId];if(l===void 0)return;let{routeName:u,parentContext:d,activeTransaction:f,user:p,replayId:m}=l,h=p===void 0?void 0:p.email||p.id||p.ip_address,g=f===void 0?void 0:f.getProfileId(),_=new la({startTimestamp:s,endTimestamp:s+c,op:`ui.interaction.${a}`,name:ue(r.target),attributes:{release:o.release,environment:o.environment,transaction:u,...h!==void 0&&h!==``?{user:h}:{},...g===void 0?{}:{profile_id:g},...m===void 0?{}:{replay_id:m}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:`millisecond`}}}),v=Xc(d,o,t);if(v&&Math.random()<v){let e=_?xo([_],i.getDsn()):void 0,t=i&&i.getTransport();t&&e&&t.send(e).then(null,e=>{z&&D.error(`Error while sending interaction:`,e)});return}})}function Bc(e){let t=Ec();if(!t||!B.performance.getEntries||!j)return;z&&D.log(`[Tracing] Adding & adjusting spans using Performance API`);let n=V(j),r=t.getEntries(),{op:i,start_timestamp:a}=N(e);if(r.slice(Dc).forEach(t=>{let r=V(t.startTime),i=V(t.duration);if(!(e.op===`navigation`&&a&&n+r<a))switch(t.entryType){case`navigation`:Hc(e,t,n);break;case`mark`:case`paint`:case`measure`:{Vc(e,t,r,i,n);let a=Ps(),o=t.startTime<a.firstHiddenTime;t.name===`first-paint`&&o&&(z&&D.log(`[Measurements] Adding FP`),H.fp={value:t.startTime,unit:`millisecond`}),t.name===`first-contentful-paint`&&o&&(z&&D.log(`[Measurements] Adding FCP`),H.fcp={value:t.startTime,unit:`millisecond`});break}case`resource`:Gc(e,t,t.name,r,i,n);break}}),Dc=Math.max(r.length-1,0),Kc(e),i===`pageload`){Yc(H),[`fcp`,`fp`,`lcp`].forEach(e=>{if(!H[e]||!a||n>=a)return;let t=H[e].value,r=n+V(t),i=Math.abs((r-a)*1e3),o=i-t;z&&D.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${o})`),H[e].value=i});let t=H[`mark.fid`];t&&H.fid&&(wc(e,{description:`first input delay`,endTimestamp:t.value+V(H.fid.value),op:`ui.action`,origin:`auto.ui.browser.metrics`,startTimestamp:t.value}),delete H[`mark.fid`]),`fcp`in H||delete H.cls,Object.keys(H).forEach(e=>{Sa(e,H[e].value,H[e].unit)}),qc(e)}Oc=void 0,kc=void 0,H={}}function Vc(e,t,n,r,i){let a=i+n,o=a+r;return wc(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:`auto.resource.browser.metrics`,startTimestamp:a}),a}function Hc(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Uc(e,t,r,n)}),Uc(e,t,`secureConnection`,n,`TLS/SSL`,`connectEnd`),Uc(e,t,`fetch`,n,`cache`,`domainLookupStart`),Uc(e,t,`domainLookup`,n,`DNS`),Wc(e,t,n)}function Uc(e,t,n,r,i,a){let o=a?t[a]:t[`${n}End`],s=t[`${n}Start`];!s||!o||wc(e,{op:`browser`,origin:`auto.browser.browser.metrics`,description:i||n,startTimestamp:r+V(s),endTimestamp:r+V(o)})}function Wc(e,t,n){t.responseEnd&&(wc(e,{op:`browser`,origin:`auto.browser.browser.metrics`,description:`request`,startTimestamp:n+V(t.requestStart),endTimestamp:n+V(t.responseEnd)}),wc(e,{op:`browser`,origin:`auto.browser.browser.metrics`,description:`response`,startTimestamp:n+V(t.responseStart),endTimestamp:n+V(t.responseEnd)}))}function Gc(e,t,n,r,i,a){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let o=_n(n),s={};Jc(s,t,`transferSize`,`http.response_transfer_size`),Jc(s,t,`encodedBodySize`,`http.response_content_length`),Jc(s,t,`decodedBodySize`,`http.decoded_response_content_length`),`renderBlockingStatus`in t&&(s[`resource.render_blocking_status`]=t.renderBlockingStatus),o.protocol&&(s[`url.scheme`]=o.protocol.split(`:`).pop()),o.host&&(s[`server.address`]=o.host),s[`url.same_origin`]=n.includes(B.location.origin);let c=a+r,l=c+i;wc(e,{description:n.replace(B.location.origin,``),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:`resource.other`,origin:`auto.resource.browser.metrics`,startTimestamp:c,data:s})}function Kc(e){let t=B.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag(`effectiveConnectionType`,n.effectiveType),n.type&&e.setTag(`connectionType`,n.type),Cc(n.rtt)&&(H[`connection.rtt`]={value:n.rtt,unit:`millisecond`})),Cc(t.deviceMemory)&&e.setTag(`deviceMemory`,`${t.deviceMemory} GB`),Cc(t.hardwareConcurrency)&&e.setTag(`hardwareConcurrency`,String(t.hardwareConcurrency))}function qc(e){Oc&&(z&&D.log(`[Measurements] Adding LCP Data`),Oc.element&&e.setTag(`lcp.element`,ue(Oc.element)),Oc.id&&e.setTag(`lcp.id`,Oc.id),Oc.url&&e.setTag(`lcp.url`,Oc.url.trim().slice(0,200)),e.setTag(`lcp.size`,Oc.size)),kc&&kc.sources&&(z&&D.log(`[Measurements] Adding CLS Data`),kc.sources.forEac
7h((t,n)=>e.setTag(`cls.source.${n+1}`,ue(t.node))))}function Jc(e,t,n,r){let i=t[n];i!=null&&i<Tc&&(e[r]=i)}function Yc(e){let t=Ts();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(z&&D.log(`[Measurements] Adding TTFB Request Time`),e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}function Xc(e,t,n){if(!Bi(t))return!1;let r;return r=e!==void 0&&typeof t.tracesSampler==`function`?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:B.location}):e!==void 0&&e.sampled!==void 0?e.sampled:t.tracesSampleRate===void 0?1:t.tracesSampleRate,_a(r)?r===!0?n:r===!1?0:r*n:(z&&D.warn(`[Tracing] Discarding interaction span because of invalid sample rate.`),!1)}function Zc(e,t,n,r,i=`auto.http.browser`){if(!Bi()||!e.fetchData)return;let a=t(e.fetchData.url);if(e.endTimestamp&&a){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(el(n,e),delete r[t]);return}let o=F(),s=P(),{method:c,url:l}=e.fetchData,u=$c(l),d=u?_n(u).host:void 0,f=a?Wi({name:`${c} ${l}`,onlyIfParent:!0,attributes:{url:l,type:`fetch`,"http.method":c,"http.url":u,"server.address":d,[oa]:i},op:`http.client`}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=Qc(t,s,o,n,f)}return f}function Qc(e,t,n,r,i){let a=i||n.getSpan(),{traceId:o,spanId:s,sampled:c,dsc:l}={...Ci().getPropagationContext(),...n.getPropagationContext()},u=a?hr(a):In(o,s,c),d=kn(l||(a?ri(a):ni(o,t,n))),f=r.headers||(typeof Request<`u`&&y(e,Request)?e.headers:void 0);if(!f)return{"sentry-trace":u,baggage:d};if(typeof Headers<`u`&&y(f,Headers)){let e=new Headers(f);return e.append(`sentry-trace`,u),d&&e.append(Tn,d),e}else if(Array.isArray(f)){let e=[...f,[`sentry-trace`,u]];return d&&e.push([Tn,d]),e}else{let e=`baggage`in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...f,"sentry-trace":u,baggage:t.length>0?t.join(`,`):void 0}}}function $c(e){try{return new URL(e).href}catch{return}}function el(e,t){if(t.response){Li(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus(`internal_error`);e.end()}var tl=[`localhost`,/^\/(?!\/)/],nl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:tl,tracePropagationTargets:tl};function rl(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o}={traceFetch:nl.traceFetch,traceXHR:nl.traceXHR,...e},s=typeof a==`function`?a:e=>!0,c=e=>ll(e,r||i),l={};t&&Ct(e=>{let t=Zc(e,s,c,l);if(t){let n=fl(e.fetchData.url),r=n?_n(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}o&&t&&al(t)}),n&&Ht(e=>{let t=ul(e,s,c,l);o&&t&&al(t)})}function il(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function al(e){let{url:t}=N(e).data||{};if(!t||typeof t!=`string`)return;let n=fc(`resource`,({entries:r})=>{r.forEach(r=>{il(r)&&r.name.endsWith(t)&&(cl(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function ol(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function sl(e=0){return((j||performance.timeOrigin)+e)/1e3}function cl(e){let{name:t,version:n}=ol(e.nextHopProtocol),r=[];return r.push([`network.protocol.version`,n],[`network.protocol.name`,t]),j?[...r,[`http.request.redirect_start`,sl(e.redirectStart)],[`http.request.fetch_start`,sl(e.fetchStart)],[`http.request.domain_lookup_start`,sl(e.domainLookupStart)],[`http.request.domain_lookup_end`,sl(e.domainLookupEnd)],[`http.request.connect_start`,sl(e.connectStart)],[`http.request.secure_connection_start`,sl(e.secureConnectionStart)],[`http.request.connection_end`,sl(e.connectEnd)],[`http.request.request_start`,sl(e.requestStart)],[`http.request.response_start`,sl(e.responseStart)],[`http.request.response_end`,sl(e.responseEnd)]]:r}function ll(e,t){return T(e,t||tl)}function ul(e,t,n,r){let i=e.xhr,a=i&&i.__sentry_xhr_v3__;if(!Bi()||!i||i.__sentry_own_request__||!a)return;let o=t(a.url);if(e.endTimestamp&&o){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&a.status_code!==void 0&&(Li(t,a.status_code),t.end(),delete r[e]);return}let s=F(),c=Ci(),l=fl(a.url),u=l?_n(l).host:void 0,d=o?Wi({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:`xhr`,"http.method":a.method,"http.url":l,url:a.url,"server.address":u,[oa]:`auto.http.browser`},op:`http.client`}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);let f=P();if(i.setRequestHeader&&n(a.url)&&f){let{traceId:e,spanId:t,sampled:n,dsc:r}={...c.getPropagationContext(),...s.getPropagationContext()};dl(i,d?hr(d):In(e,t,n),kn(r||(d?ri(d):ni(e,f,s))))}return d}function dl(e,t,n){try{e.setRequestHeader(`sentry-trace`,t),n&&e.setRequestHeader(Tn,n)}catch{}}function fl(e){try{return new URL(e,B.location.origin).href}catch{return}}function pl(e,t=!0,n=!0){if(!B||!B.location){z&&D.warn(`Could not initialize routing instrumentation due to invali
7d location`);return}let r=B.location.href,i;t&&(i=e({name:B.location.pathname,startTimestamp:j?j/1e3:void 0,op:`pageload`,origin:`auto.pageload.browser`,metadata:{source:`url`}})),n&&Rt(({to:t,from:n})=>{if(n===void 0&&r&&r.indexOf(t)!==-1){r=void 0;return}n!==t&&(r=void 0,i&&(z&&D.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:B.location.pathname,op:`navigation`,origin:`auto.navigation.browser`,metadata:{source:`url`}}))})}var ml=`BrowserTracing`,hl={...da,markBackgroundTransactions:!0,routingInstrumentation:pl,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...nl},gl=10,_l=class{constructor(e){this.name=ml,this._hasSetTracePropagationTargets=!1,xa(),z&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...hl,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Ac(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Nc(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&jc(),this.options._experiments.enableInteractions&&Mc(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:a,startTransactionOnPageLoad:o,markBackgroundTransactions:s,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:f}=this.options,p=r&&r.tracePropagationTargets,m=p||this.options.tracePropagationTargets;z&&this._hasSetTracePropagationTargets&&p&&D.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},o,a),s&&xs(),f.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),rl({traceFetch:c,traceXHR:l,tracePropagationTargets:m,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub){z&&D.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,o=e.op===`pageload`,s;if(o){let{traceId:t,dsc:n,parentSpanId:r,sampled:i}=Fn(o?vl(`sentry-trace`):``,o?vl(`baggage`):void 0);s={traceId:t,parentSpanId:r,parentSampled:i,...e,metadata:{...e.metadata,dynamicSamplingContext:n},trimEnd:!0}}else s={trimEnd:!0,...e};let c=typeof n==`function`?n(s):s,l=c===void 0?{...s,sampled:!1}:c;l.metadata=l.name===s.name?l.metadata:{...l.metadata,source:`custom`},this._latestRoute.name=l.name,this._latestRoute.context=l,l.sampled===!1&&z&&D.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),z&&D.log(`[Tracing] Starting ${l.op} transaction on scope`);let{location:u}=B,d=ba(t,l,r,i,!0,{location:u},a,o);return o&&B.document&&(B.document.addEventListener(`readystatechange`,()=>{[`interactive`,`complete`].includes(B.document.readyState)&&d.sendAutoFinishSignal()}),[`interactive`,`complete`].includes(B.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(e=>{this._collectWebVitals(),Bc(e)}),d}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i=`ui.action.click`,a=ki();if(a&&a.op&&[`navigation`,`pageload`].includes(a.op)){z&&D.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&=(e.setFinishReason(`interactionInterrupted`),e.end(),void 0),!this._getCurrentHub){z&&D.warn(`[Tracing] Did not create ${i}
7 transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){z&&D.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let o=this._getCurrentHub(),{location:s}=B;e=ba(o,{name:this._latestRoute.name,op:i,trimEnd:!0,data:{[ra]:this._latestRoute.context?yl(this._latestRoute.context):`url`}},t,n,!0,{location:s},r)};[`click`].forEach(e=>{B.document&&addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:e})=>{let t=P(),n=t!==void 0&&t.getIntegrationByName!==void 0?t.getIntegrationByName(`Replay`):void 0,r=n===void 0?void 0:n.getReplayId(),i=ki(),a=F(),o=a===void 0?void 0:a.getUser();e.forEach(e=>{if(bl(e)){let t=e.interactionId;if(t===void 0)return;let n=this._interactionIdToRouteNameMapping[t],a=e.duration,s=e.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),l=c.length>0?c.reduce((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t):void 0;if(e.entryType===`first-input`&&c.map(e=>this._interactionIdToRouteNameMapping[e]).some(e=>e.duration===a&&e.startTime===s)||!t)return;if(n)n.duration=Math.max(n.duration,a);else if(c.length<gl||l===void 0||a>this._interactionIdToRouteNameMapping[l].duration){let e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(l&&Object.keys(this._interactionIdToRouteNameMapping).length>=gl&&delete this._interactionIdToRouteNameMapping[l],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:a,parentContext:n,user:o,activeTransaction:i,replayId:r,startTime:s})}}})};fc(`event`,e),fc(`first-input`,e)}};function vl(e){let t=pe(`meta[name=${e}]`);return t?t.getAttribute(`content`):void 0}function yl(e){let t=e.attributes&&e.attributes[`sentry.source`],n=e.data&&e.data[`sentry.source`],r=e.metadata&&e.metadata.source;return t||n||r}function bl(e){return`duration`in e}var xl=`BrowserTracing`,Sl={...da,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...nl},Cl=((e={})=>{let t=z?!!(e.tracePropagationTargets||e.tracingOrigins):!1;xa(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let n={...Sl,...e},r=Ac(),i={};n.enableInp&&Nc(i,n.interactionsSampleRate),n.enableLongTask&&jc(),n._experiments.enableInteractions&&Mc();let a={name:void 0,context:void 0};function o(e){let t=I(),{beforeStartSpan:i,idleTimeout:o,finalTimeout:s,heartbeatInterval:c}=n,l=e.op===`pageload`,u;if(l){let{traceId:t,dsc:n,parentSpanId:r,sampled:i}=Fn(l?El(`sentry-trace`):``,l?El(`baggage`):void 0);u={traceId:t,parentSpanId:r,parentSampled:i,...e,metadata:{...e.metadata,dynamicSamplingContext:n},trimEnd:!0}}else u={trimEnd:!0,...e};let d=i?i(u):u;d.metadata=d.name===u.name?d.metadata:{...d.metadata,source:`custom`},a.name=d.name,a.context=d,d.sampled===!1&&z&&D.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),z&&D.log(`[Tracing] Starting ${d.op} transaction on scope`);let{location:f}=B,p=ba(t,d,o,s,!0,{location:f},c,l);return l&&B.document&&(B.document.addEventListener(`readystatechange`,()=>{[`interactive`,`complete`].includes(B.document.readyState)&&p.sendAutoFinishSignal()}),[`interactive`,`complete`].includes(B.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(e=>{r(),Bc(e)}),p}return{name:xl,setupOnce:()=>{},afterAllSetup(e){let r=e.getOptions(),{markBackgroundSpan:s,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:f}=n,p=r&&r.tracePropagationTargets,m=p||n.tracePropagationTargets;z&&t&&p&&D.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let h,g=B.location&&B.location.href;e.on&&(e.on(`startNavigationSpan`,e=>{h&&(z&&D.log(`[Tracing] Finishing current transaction with op: ${N(h).op}`),h.end()),h=o({op:`navigation`,...e})}),e.on(`startPageLoadSpan`,e=>{h&&(z&&D.log(`[Tracing] Finishing current transaction with op: ${N(h).op}`),h.end()),h=o({op:`pageload`,...e})})),n.instrumentPageLoad&&e.emit&&B.location&&wl(e,{name:B.location.pathname,startTimestamp:j?
7j/1e3:void 0,origin:`auto.pageload.browser`,attributes:{[ra]:`url`}}),n.instrumentNavigation&&e.emit&&B.location&&Rt(({to:t,from:n})=>{if(n===void 0&&g&&g.indexOf(t)!==-1){g=void 0;return}n!==t&&(g=void 0,Tl(e,{name:B.location.pathname,origin:`auto.navigation.browser`,attributes:{[ra]:`url`}}))}),s&&xs(),f.enableInteractions&&Dl(n,a),n.enableInp&&Al(i,a),rl({traceFetch:c,traceXHR:l,tracePropagationTargets:m,shouldCreateSpanForRequest:u,enableHTTPTimings:d})},options:n}});function wl(e,t){if(!e.emit)return;e.emit(`startPageLoadSpan`,t);let n=Gi();return(n&&N(n).op)===`pageload`?n:void 0}function Tl(e,t){if(!e.emit)return;e.emit(`startNavigationSpan`,t);let n=Gi();return(n&&N(n).op)===`navigation`?n:void 0}function El(e){let t=pe(`meta[name=${e}]`);return t?t.getAttribute(`content`):void 0}function Dl(e,t){let n,r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=e,o=`ui.action.click`,s=ki();if(s&&s.op&&[`navigation`,`pageload`].includes(s.op)){z&&D.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&=(n.setFinishReason(`interactionInterrupted`),n.end(),void 0),!t.name){z&&D.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}let{location:c}=B,l={name:t.name,op:o,trimEnd:!0,data:{[ra]:t.context?jl(t.context):`url`}};n=ba(I(),l,r,i,!0,{location:c},a)};[`click`].forEach(e=>{B.document&&addEventListener(e,r,{once:!1,capture:!0})})}function Ol(e){return`duration`in e}var kl=10;function Al(e,t){let n=({entries:n})=>{let r=P(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName(`Replay`):void 0,a=i===void 0?void 0:i.getReplayId(),o=ki(),s=F(),c=s===void 0?void 0:s.getUser();n.forEach(n=>{if(Ol(n)){let r=n.interactionId;if(r===void 0)return;let i=e[r],s=n.duration,l=n.startTime,u=Object.keys(e),d=u.length>0?u.reduce((t,n)=>e[t].duration<e[n].duration?t:n):void 0;if(n.entryType===`first-input`&&u.map(t=>e[t]).some(e=>e.duration===s&&e.startTime===l)||!r)return;if(i)i.duration=Math.max(i.duration,s);else if(u.length<kl||d===void 0||s>e[d].duration){let n=t.name,i=t.context;n&&i&&(d&&Object.keys(e).length>=kl&&delete e[d],e[r]={routeName:n,duration:s,parentContext:i,user:c,activeTransaction:o,replayId:a,startTime:l})}}})};fc(`event`,n),fc(`first-input`,n)}function jl(e){let t=e.attributes&&e.attributes[`sentry.source`],n=e.data&&e.data[`sentry.source`],r=e.metadata&&e.metadata.source;return t||n||r}var U=E,Ml=0;function Nl(){return Ml>0}function Pl(){Ml++,setTimeout(()=>{Ml--})}function Fl(e,t={},n){if(typeof e!=`function`)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(je(e))return e}catch{return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&typeof n==`function`&&n.apply(this,arguments);let i=r.map(e=>Fl(e,t));return e.apply(this,i)}catch(e){throw Pl(),Ur(n=>{n.addEventProcessor(e=>(t.mechanism&&(nt(e,void 0,void 0),rt(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),Mr(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Ae(r,e),ke(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var W=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Il(e,t){let n=zl(e,t),r={type:t&&t.name,value:Hl(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ll(e,t,n,r){let i=P(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:p(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:ql(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Qt(t,a)}};if(n){let t=zl(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}function Rl(e,t){return{exception:{values:[Il(e,t)]}}}function zl(e,t){let n=t.stacktrace||t.stack||``,r=Vl(t);try{return e(n,r)}catch{}return[]}var Bl=/Minified React error #\d+;/i;function Vl(e){if(e){if(typeof e.framesToPop==`number`)return e.framesToPop;if(Bl.test(e.message))return 1}return 0}function Hl(e){let t=e&&e.message;return t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function Ul(e,t,n,r){let i=Gl(e,t,n&&n.syntheticException||void 0,r);
vendor: 15,261 bytes, line 7
7return rt(i),i.level=`error`,n&&n.event_id&&(i.event_id=n.event_id),pn(i)}function Wl(e,t,n=`info`,r,i){let a=Kl(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),pn(a)}function Gl(e,t,n,r,a){let l;if(o(t)&&t.error)return Rl(e,t.error);if(s(t)||c(t)){let i=t;if(`stack`in t)l=Rl(e,t);else{let t=i.name||(s(i)?`DOMError`:`DOMException`),a=i.message?`${t}: ${i.message}`:t;l=Kl(e,a,n,r),nt(l,a)}return`code`in i&&(l.tags={...l.tags,"DOMException.code":`${i.code}`}),l}return i(t)?Rl(e,t):f(t)||p(t)?(l=Ll(e,t,n,a),rt(l,{synthetic:!0}),l):(l=Kl(e,t,n,r),nt(l,`${t}`,void 0),rt(l,{synthetic:!0}),l)}function Kl(e,t,n,r){let i={};if(r&&n){let r=zl(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(u(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function ql(e,{isUnhandledRejection:t}){let n=Ie(e),r=t?`promise rejection`:`exception`;return o(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:p(e)?`Event \`${Jl(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Jl(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Yl(e,{metadata:t,tunnel:n,dsn:r}){return Ln({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ce(r)}},[Xl(e)])}function Xl(e){return[{type:`user_report`},e]}var Zl=class extends $a{constructor(e){ko(e,`browser`,[`browser`],U.SENTRY_SDK_SOURCE||Kt()),super(e),e.sendClientReports&&U.document&&U.document.addEventListener(`visibilitychange`,()=>{U.document.visibilityState===`hidden`&&this._flushOutcomes()})}eventFromException(e,t){return Ul(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Wl(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){W&&D.warn(`SDK not enabled, will not capture user feedback.`);return}let t=Yl(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){W&&D.log(`No outcomes to send`);return}if(!this._dsn){W&&D.log(`No dsn provided, will not send outcomes`);return}W&&D.log(`Sending outcomes:`,e);let t=Xn(e,this._options.tunnel&&Ce(this._dsn));this._sendEnvelope(t)}},Ql=void 0;function $l(){if(Ql)return Ql;if(bt(U.fetch))return Ql=U.fetch.bind(U);let e=U.document,t=U.fetch;if(e&&typeof e.createElement==`function`)try{let n=e.createElement(`iframe`);n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){W&&D.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return Ql=t.bind(U)}function eu(){Ql=void 0}function tu(e,t=$l()){let n=0,r=0;function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return eu(),n-=a,r--,mn(e)}}return uo(e,i)}var nu=4;function ru(e){function t(t){return new hn((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===nu&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader(`X-Sentry-Rate-Limits`),"retry-after":i.getResponseHeader(`Retry-After`)}})},i.open(`POST`,e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})}return uo(e,t)}var iu=`?`,au=10,ou=20,su=30,cu=40,lu=50;function uu(e,t,n,r){let i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var du=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fu=/\((\S*)(?::(\d+))(?::(\d+))\)/,pu=[su,e=>{let t=du.exec(e);if(t){if(t[2]&&t[2].indexOf(`eval`)===0){let e=fu.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=Tu(t[1]||iu,t[2]);return uu(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],mu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gu=[lu,e=>{let t=mu.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=hu.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||iu;return[n,e]=Tu(n,e),uu(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],_u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vu=[cu,e=>{let t=_u.exec(e);return t?uu(t[2],t[1]||iu,+t[3],t[4]?+t[4]:void 0):void 0}],yu=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,bu=[au,e=>{let t=yu.exec(e);return t?uu(t[2],t[3]||iu,+t[1]):void 0}],xu=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Su=[ou,e=>{let t=xu.exec(e);return t?uu(t[5],t[3]||t[4]||iu,+t[1],+t[2]):void 0}],Cu=[pu,gu,vu],wu=He(...Cu),Tu=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?iu:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Eu=1024,Du=`Breadcrumbs`,Ou=R(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Du,setupOnce(){},setup(e){t.console&&Qe(Mu(e)),t.dom&&ft(ju(e,t.dom)),t.xhr&&Ht(Nu(e)),t.fetch&&Ct(Pu(e)),t.history&&Rt(Fu(e)),t.sentry&&e.on&&e.on(`beforeSendEvent`,Au(e))}}})),ku=L(Du,Ou);function Au(e){return function(t){P()===e&&Ir({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:tt(t)},{event:t})}}function ju(e,t){return function(n){if(P()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Eu&&(W&&D.warn(`\`dom.maxStringLength\` cannot exceed ${Eu}, but a value of ${o} was configured. Sentry will use ${Eu} instead.`),o=Eu),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Iu(e)?e.target:e;r=ue(t,{keyAttrs:a,maxStringLength:o}),i=me(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Ir(s,{event:n.event,name:n.name,global:n.global})}}function Mu(e){return function(t){if(P()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:bn(t.level),message:C(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${C(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Ir(n,{input:t.args,level:t.level})}}function Nu(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Vt];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};Ir({category:`xhr`,data:l,type:`http`},u)}}function Pu(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};Ir({category:`fetch`,data:e,level:`error`,type:`http`},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r};Ir({category:`fetch`,data:i,type:`http`},a)}}}function Fu(e){return function(t){if(P()!==e)return;let n=t.from,r=t.to,i=_n(U.location.href),a=n?_n(n):void 0,o=_n(r);(!a||!a.path)&&(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Ir({category:`navigation`,data:{from:n,to:r}})}}function Iu(e){return!!e&&!!e.target}var Lu=`Dedupe`,Ru=R((()=>{let e;return{name:Lu,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Bu(t,e))return W&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}})),zu=L(Lu,Ru);function Bu(e,t){return t?!!(Vu(e,t)||Hu(e,t)):!1}function Vu(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Wu(e,t)||!Uu(e,t))}function Hu(e,t){let n=Gu(t),r=Gu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Wu(e,t)||!Uu(e,t))}function Uu(e,t){let n=Ku(e),r=Ku(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Wu(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Gu(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ku(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var qu=`GlobalHandlers`,Ju=R(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:qu,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Xu(e),nd(`onerror`)),t.onunhandledrejection&&(Zu(e),nd(`onunhandledrejection`))}}})),Yu=L(qu,Ju);function Xu(e){kt(t=>{let{stackParser:n,attachStacktrace:r}=rd();if(P()!==e||Nl())return;let{msg:i,url:a,line:o,column:s,error:c}=t,u=c===void 0&&l(i)?ed(i,a,o,s):td(Gl(n,c||i,void 0,r,!1),a,o,s);u.level=`error`,Pr(u,{originalException:c,mechanism:{handled:!1,type:`onerror`}})})}function Zu(e){Mt(t=>{let{stackParser:n,attachStacktrace:r}=rd();if(P()!==e||Nl())return;let i=Qu(t),a=d(i)?$u(i):Gl(n,i,void 0,r,!0);a.level=`error`,Pr(a,{originalException:i,mechanism:{handled:!1,type:`onunhandledrejection`}})})}function Qu(e){if(d(e))return e;let t=e;try{if(`reason`in t)return t.reason;if(`detail`in t&&`reason`in t.detail)return t.detail.reason}catch{}return e}function $u(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ed(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=o(e)?e.message:e,s=`Error`,c=a.match(i);return c&&(s=c[1],a=c[2]),td({exception:{values:[{type:s,value:a}]}},t,n,r)}function td(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=l(t)&&t.length>0?t:fe();return c.length===0&&c.push({colno:u,filename:f,function:`?`,in_app:!0,lineno:d}),e}function nd(e){W&&D.log(`Global Handler attached: ${e}`)}function rd(){let e=P();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var id=`HttpContext`,ad=R((()=>({name:id,setupOnce(){},preprocessEvent(e){if(!U.navigator&&!U.location&&!U.document)return;let t=e.request&&e.request.url||U.location&&U.location.href,{referrer:n}=U.document||{},{userAgent:r}=U.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:i}}}))),od=L(id,ad),sd=`cause`,cd=5,ld=`LinkedErrors`,ud=R(((e={})=>{let t=e.limit||cd,n=e.key||sd;return{name:ld,setupOnce(){},preprocessEvent(e,r,i){let a=i.getOptions();ee(Il,a.stackParser,a.maxValueLength,n,t,e,r)}}})),dd=L(ld,ud),fd=`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`.split(`.`),pd=`TryCatch`,md=R(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:pd,setupOnce(){t.setTimeout&&O(U,`setTimeout`,gd),t.setInterval&&O(U,`setInterval`,gd),t.requestAnimationFrame&&O(U,`requestAnimationFrame`,_d),t.XMLHttpRequest&&`XMLHttpRequest`in U&&O(XMLHttpRequest.prototype,`send`,vd);let e=t.eventTarget;e&&(Array.isArray(e)?e:fd).forEach(yd)}}})),hd=L(pd,md);function gd(e){return function(...t){let n=t[0];return t[0]=Fl(n,{mechanism:{data:{function:Ke(e)},handled:!1,type:`instrument`}}),e.apply(this,t)}}function _d(e){return function(t){return e.apply(this,[Fl(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:Ke(e)},handled:!1,type:`instrument`}})])}}function vd(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&O(n,e,function(t){let n={mechanism:{data:{function:e,handler:Ke(t)},handled:!1,type:`instrument`}},r=je(t);return r&&(n.mechanism.data.handler=Ke(r)),Fl(t,n)})}),e.apply(this,t)}}function yd(e){let t=U,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty(`addEventListener`)||(O(n,`addEventListener`,function(t){return function(n,r,i){try{typeof r.handleEvent==`function`&&(r.handleEvent=Fl(r.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:Ke(r),target:e},handled:!1,type:`instrument`}}))}catch{}return t.apply(this,[n,Fl(r,{mechanism:{data:{function:`addEventListener`,handler:Ke(r),target:e},handled:!1,type:`instrument`}}),i])}}),O(n,`removeEventListener`,function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch{}return e.call(this,t,i,r)}}))}var bd=[Ho(),rs(),md(),Ou(),Ju(),ud(),Ru(),ad()];function xd(e){return[...bd]}function Sd(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=xd()),e.release===void 0&&(typeof __SENTRY_RELEASE__==`string`&&(e.release=__SENTRY_RELEASE__),U.SENTRY_RELEASE&&U.SENTRY_RELEASE.id&&(e.release=U.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0),so(Zl,{...e,stackParser:Ue(e.stackParser||wu),integrations:Pa(e),transport:e.transport||(yt()?tu:ru)}),e.autoSessionTracking&&Dd()}var Cd=(e={},t=I())=>{if(!U.document){W&&D.error(`Global document not defined in showReportDialog call`);return}let{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){W&&D.error(`DSN not configured for showReportDialog call`);return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||=t.lastEventId();let a=U.document.createElement(`script`);a.async=!0,a.crossOrigin=`anonymous`,a.src=ja(i,e),e.onLoad&&(a.onload=e.onLoad);let{onClose:o}=e;if(o){let e=t=>{if(t.data===`__sentry_reportdialog_closed__`)try{o()}finally{U.removeEventListener(`message`,e)}};U.addEventListener(`message`,e)}let s=U.document.head||U.document.body;s?s.appendChild(a):W&&D.error(`Not injecting report dialog. No injection point found in HTML`)};function wd(){}function Td(e){e()}function Ed(e){return Fl(e)()}function Dd(){if(U.document===void 0){W&&D.warn(`Session tracking in non-browser environment with @
7sentry/browser is not supported.`);return}Zr({ignoreDuration:!0}),ei(),Rt(({from:e,to:t})=>{e!==void 0&&e!==t&&(Zr({ignoreDuration:!0}),ei())})}function Od(e){let t=P();t&&t.captureUserFeedback(e)}var kd=e({Breadcrumbs:()=>ku,Dedupe:()=>zu,GlobalHandlers:()=>Yu,HttpContext:()=>od,LinkedErrors:()=>dd,TryCatch:()=>hd}),G=E,Ad=`sentryReplaySession`,jd=`replay_event`,Md=`Unable to send Replay`,Nd=3e5,Pd=9e5,Fd=5e3,Id=5500,Ld=6e4,Rd=5e3,zd=3,Bd=15e4,Vd=5e3,Hd=3e3,Ud=300,Wd=2e7,Gd=4999,Kd=15e3,qd=36e5;function Jd(e,t){return e??t()}function Yd(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var K;(function(e){e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`})(K||={});function Xd(e){return e.nodeType===e.ELEMENT_NODE}function Zd(e){return Yd([Yd([e,`optionalAccess`,e=>e.host]),`optionalAccess`,e=>e.shadowRoot])===e}function Qd(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function $d(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(` background-clip: text;`,` -webkit-background-clip: text; background-clip: text;`)),e}function ef(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function tf(e){try{let t=e.rules||e.cssRules;return t?$d(Array.from(t,nf).join(``)):null}catch{return null}}function nf(e){let t;if(af(e))try{t=tf(e.styleSheet)||ef(e)}catch{}else if(of(e)&&e.selectorText.includes(`:`))return rf(e.cssText);return t||e.cssText}function rf(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function af(e){return`styleSheet`in e}function of(e){return`selectorText`in e}var sf=class{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?Jd(Yd([this,`access`,e=>e.getMeta,`call`,t=>t(e),`optionalAccess`,e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function cf(){return new sf}function lf({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function uf({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function df(e){return e.toLowerCase()}function ff(e){return e.toUpperCase()}var pf=`__rrweb_original__`;function mf(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=pf in i?i[pf]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function hf(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?df(t):null}function gf(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}var _f=1,vf=RegExp(`[^a-z0-9-_:]`),yf=-2;function bf(){return _f++}function xf(e){if(e instanceof HTMLFormElement)return`form`;let t=df(e.tagName);return vf.test(t)?`div`:t}function Sf(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Cf,wf,Tf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ef=/^(?:[a-z+]+:)?\/\//i,Df=/^www\..*/i,Of=/^(data:)([^,]*),(.*)/i;function kf(e,t){return(e||``).replace(Tf,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(Ef.test(s)||Df.test(s)||Of.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${Sf(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var Af=/^[^ \t\n\r\u000c]+/,jf=/^[, \t\n\r\u000c]+/;function Mf(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(jf),!(n>=t.length);){let a=r(Af);if(a.slice(-1)===`,`)a=Nf(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=Nf(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}function Nf(e,t){if(!t||t.trim()===``)return t;let n=e.createElement(`a`);return n.href=t,n.href}function Pf(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function Ff(){let e=document.createElement(`a`);return e.href=``,e.href}function If(e,t,n,r,i,a){return r&&(n===`src`||n===`href`&&!(t===`use`&&r[0]===`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`)?Nf(e,r):n===`srcset`?Mf(e,r):n===`style`?kf(r,Ff()):t===`object`&&n===`data`?Nf(e,r):typeof a==`function`?a(n,r,i):r)}
7function Lf(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function Rf(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function zf(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Bf(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Bf(e.parentNode,t,n,r+1)}function Vf(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(zf(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Hf(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=Bf(o,Vf(r,i)),c<0)return!0;s=Bf(o,Vf(t,n),c>=0?c:1/0)}else{if(s=Bf(o,Vf(t,n)),s<0)return!1;c=Bf(o,Vf(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function Uf(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=setTimeout(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return setTimeout(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function Wf(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=setTimeout(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(a),r=!0,t()})}function Gf(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1}=t,S=Kf(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:K.Document,childNodes:[]}:{type:K.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:K.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Jf(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:S,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return qf(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:K.CDATA,textContent:``,rootId:S};case e.COMMENT_NODE:return{type:K.Comment,textContent:e.textContent||``,rootId:S};default:return!1}}function Kf(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function qf(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||Yd([e,`access`,e=>e.parentNode,`access`,e=>e.sheet,`optionalAccess`,e=>e.cssRules])&&(f=tf(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=kf(f,Ff())}m&&(f=`SCRIPT_PLACEHOLDER`);let g=Hf(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=uf({isMasked:Hf(e,r,a,i,o,lf({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:K.Text,textContent:f||``,isStyle:p,rootId:u}}function Jf(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskAllText:g,maskTextClass:_,unmaskTextClass:v,maskTextSelector:y,unmaskTextSelector:b}=t,x=Rf(e,r,i,a),S=xf(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!Lf(S,r.name,r.value)&&(C[r.name]=If(n,S,df(r.name),r.value,e,c))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=tf(t)),r&&(delete C.rel,delete C.href,C._cssText=kf(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=tf(e.sheet);t&&(C._cssText=kf(t,Ff()))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=hf(t),r=gf(t,ff(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=Hf(t,_,y,v,b,lf({type:n,tagName:ff(S),maskInputOptions:s}));C.value=uf({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)mf(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),n=document.createElement(`canvas`);n.width=e.width,n.height=e.height,t!==n.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){Cf||(Cf=n.createElement(`canvas`),wf=Cf.getContext(`2d`));let t=e,r=t.crossOrigin;t.crossOrigin=`anonymous`;let i=()=>{t.removeEventListener(`load`,i);
7try{Cf.width=t.naturalWidth,Cf.height=t.naturalHeight,wf.drawImage(t,0,0),C.rr_dataURL=Cf.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?C.crossOrigin=r:t.removeAttribute(`crossorigin`)};t.complete&&t.naturalWidth!==0?i():t.addEventListener(`load`,i)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(e.contentDocument||(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:K.Element,tagName:S,attributes:C,childNodes:[],isSVG:Pf(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function q(e){return e==null?``:e.toLowerCase()}function Yf(e,t){return!!(t.comment&&e.type===K.Comment||e.type===K.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)&&e.attributes.as===`script`||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&e.attributes.href.endsWith(`.js`))||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)===`application-name`||q(e.attributes.rel)===`icon`||q(e.attributes.rel)===`apple-touch-icon`||q(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(q(e.attributes.name)===`robots`||q(e.attributes.name)===`googlebot`||q(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(q(e.attributes.name)===`author`||q(e.attributes.name)===`generator`||q(e.attributes.name)===`framework`||q(e.attributes.name)===`publisher`||q(e.attributes.name)===`progid`||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(q(e.attributes.name)===`google-site-verification`||q(e.attributes.name)===`yandex-verification`||q(e.attributes.name)===`csrf-token`||q(e.attributes.name)===`p:domain_verify`||q(e.attributes.name)===`verify-v1`||q(e.attributes.name)===`verification`||q(e.attributes.name)===`shopify-checkout-api-token`))))}function Xf(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:ee=5e3,keepIframeSrcFn:te=()=>!1,newlyAddedElement:ne=!1}=t,{preserveWhiteSpace:re=!0}=t,ie=Gf(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:te,newlyAddedElement:ne});if(!ie)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):Yf(ie,v)||!re&&ie.type===K.Text&&!ie.isStyle&&!ie.textContent.replace(/^\s+|\s+$/gm,``).length?yf:bf();let E=Object.assign(ie,{id:ae});if(r.add(e,E),ae===yf)return null;S&&S(e);let oe=!f;if(E.type===K.Element){oe&&=!E.needBlock,delete E.needBlock;let t=e.shadowRoot;t&&Qd(t)&&(E.isShadowHost=!0)}if((E.type===K.Document||E.type===K.Element)&&oe){v.headWhitespace&&E.type===K.Element&&E.tagName===`head`&&(re=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:ee,keepIframeSrcFn:te};for(let n of Array.from(e.childNodes)){let e=Xf(n,t);e&&E.childNodes.push(e)}if(Xd(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=Xf(n,t);r&&(Qd(e.shadowRoot)&&(r.isShadow=!0),E.childNodes.push(r))}}return e.parentNode&&Zd(e.parentNode)&&Qd(e.parentNode)&&(E.isShadow=!0),E.type===K.Element&&E.tagName===`iframe`&&Uf(e,()=>{let t=e.contentDocument;if(t&&C){let n=Xf(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});n&&C(e,n)}},w),E.type===K.Element&&E.tagName===`link`&&E.attributes.rel===`stylesheet`&&Wf(e,()=>{if(T){let t=Xf(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});t&&T(e,t)}},ee),E}function Zf(e,t){let{mirror:n=new sf,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inl
7ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:T,keepIframeSrcFn:ee=()=>!1}=t||{};return Xf(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:T,keepIframeSrcFn:ee,newlyAddedElement:!1})}function Qf(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}function $f(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var ep=`Please stop import mirror directly. Instead of that,\r 8now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 9or you can use record.mirror to access the mirror instance during recording.`,tp={map:{},getId(){return console.error(ep),-1},getNode(){return console.error(ep),null},removeNodeFromMap(){console.error(ep)},has(){return console.error(ep),!1},reset(){console.error(ep)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(tp=new Proxy(tp,{get(e,t,n){return t===`map`&&console.error(ep),Reflect.get(e,t,n)}}));function np(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(Op(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=Dp(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function rp(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Dp(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>rp(e,t,a||{},!0)}function ip(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var ap=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ap=()=>new Date().getTime());function op(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?Qf([t,`optionalAccess`,e=>e.documentElement,`access`,e=>e.scrollLeft])||Qf([t,`optionalAccess`,e=>e.body,`optionalAccess`,e=>e.parentElement,`optionalAccess`,e=>e.scrollLeft])||Qf([t,`optionalAccess`,e=>e.body,`optionalAccess`,e=>e.scrollLeft])||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?Qf([t,`optionalAccess`,e=>e.documentElement,`access`,e=>e.scrollTop])||Qf([t,`optionalAccess`,e=>e.body,`optionalAccess`,e=>e.parentElement,`optionalAccess`,e=>e.scrollTop])||Qf([t,`optionalAccess`,e=>e.body,`optionalAccess`,e=>e.scrollTop])||0:e.pageYOffset}}function sp(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cp(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function lp(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function up(e,t,n,r,i){if(!e)return!1;let a=lp(e);if(!a)return!1;let o=Vf(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=Bf(a,o),c=-1;return s<0?!1:(r&&(c=Bf(a,Vf(null,r))),s>-1&&c<0||s<c)}function dp(e,t){return t.getId(e)!==-1}function fp(e,t){return t.getId(e)===yf}function pp(e,t){if(Zd(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||pp(e.parentNode,t):!0}function mp(e){return!!e.changedTouches}function hp(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function gp(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function _p(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function vp(e){return!!Qf([e,`optionalAccess`,e=>e.shadowRoot])}var yp=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return ir(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function bp(e){let t=null;return Qf([e,`access`,e=>e.getRootNode,`optionalCall`,e=>e(),`optionalAccess`,e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function xp(e){let t=e,n;for(;n=bp(t);)t=n;return t}function Sp(e){let t=e.ownerDocument;if(!t)return!1;let n=xp(e);return t.contains(n)}function Cp(e){let t=e.ownerDocument;return t?t.contains(e)||Sp(e):!1}var wp={};function Tp(e){let t=wp[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return wp[e]=r.bind(window)}function Ep(...e){return Tp(`requestAnimationFrame`)(...e)}function Dp(...e){return Tp(`setTimeout`)(...e)}function Op(...e){return Tp(`clearTimeout`)(...e)}var J=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(J||{}),Y=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(Y||{}),kp=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(kp||{}),Ap=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(Ap||{});function jp(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}function Mp(e){return`__ln`in e}var Np=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=jp([t,`optionalAccess`,e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Mp(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
9(n.previous=t)}else if(e.nextSibling&&Mp(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},Pp=(e,t)=>`${e}@${t}`,Fp=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new Np,r=e=>{let t=e,n=yf;for(;n===yf;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Cp(i))return;let a=Zd(i.parentNode)?this.mirror.getId(bp(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=Xf(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{gp(e,this.mirror)&&this.iframeManager.addIframe(e),_p(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),vp(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)Lp(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!zp(this.droppedSet,e)&&!Lp(this.removes,e,this.mirror)||zp(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}else{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!fp(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!up(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Hf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,lp(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=hf(t),i=t.tagName;r=gf(t,i,n);let a=lf({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=uf({isMasked:Hf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(up(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r))if(!t.contentDocument)n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
9,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!Lf(t.tagName,n)&&(i.attributes[n]=If(this.doc,df(t.tagName),df(n),r,t,this.maskAttributeFn),n===`style`)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||a!==n.style.getPropertyPriority(e)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(up(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=Zd(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);up(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||fp(t,this.mirror)||!dp(t,this.mirror)||(this.addedSet.has(t)?(Ip(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||pp(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Pp(n,r)]?Ip(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:Zd(e.target)&&Qd(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(fp(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[Pp(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);up(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),vp(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager`.split(`.`).forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Ip(e,t){e.delete(t),t.childNodes.forEach(t=>Ip(e,t))}
9function Lp(e,t,n){return e.length!==0&&Rp(e,t,n)}function Rp(e,t,n){let{parentNode:r}=t;if(!r)return!1;let i=n.getId(r);return e.some(e=>e.id===i)?!0:Rp(e,r,n)}function zp(e,t){return e.size!==0&&Bp(e,t)}function Bp(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Bp(e,n):!1}var Vp;function Hp(e){Vp=e}function Up(){Vp=void 0}var X=e=>Vp?((...t)=>{try{return e(...t)}catch(e){if(Vp&&Vp(e)===!0)return()=>{};throw e}}):e;function Wp(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var Gp=[];function Kp(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function qp(e,t){let n=new Fp;Gp.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=Wp([window,`optionalAccess`,e=>e.Zone,`optionalAccess`,e=>e.__symbol__,`optionalCall`,e=>e(`MutationObserver`)]);i&&window[i]&&(r=window[i]);let a=new r(X(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Jp({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=np(X(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=X(np(X(e=>{let t=Kp(e),{clientX:n,clientY:i}=mp(e)?e.changedTouches[0]:e;s||=ap(),o.push({x:n,y:i,id:r.getId(t),timeOffset:ap()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?Y.Drag:e instanceof MouseEvent?Y.MouseMove:Y.TouchMove)}),i,{trailing:!1})),u=[$f(`mousemove`,l,n),$f(`touchmove`,l,n),$f(`drag`,l,n)];return X(()=>{u.forEach(e=>e())})}function Yp({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=Kp(o);if(up(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=Ap.Mouse;break;case`touch`:c=Ap.Touch;break;case`pen`:c=Ap.Pen;break}c===Ap.Touch?kp[t]===kp.MouseDown?u=`TouchStart`:kp[t]===kp.MouseUp&&(u=`TouchEnd`):Ap.Pen}else mp(o)&&(c=Ap.Touch);c===null?kp[t]===kp.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===Ap.Touch||u.startsWith(`Mouse`)&&c===Ap.Mouse)&&(c=null));let d=mp(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;X(e)({type:kp[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(kp).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=df(e),r=u(e);if(window.PointerEvent)switch(kp[e]){case kp.MouseDown:case kp.MouseUp:n=n.replace(`mouse`,`pointer`);break;case kp.TouchStart:case kp.TouchEnd:return}c.push($f(n,r,t))}),X(()=>{c.forEach(e=>e())})}function Xp({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return $f(`scroll`,X(np(X(o=>{let s=Kp(o);if(!s||up(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=op(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function Zp({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return $f(`resize`,X(np(X(()=>{let t=sp(),i=cp();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Qp=[`INPUT`,`TEXTAREA`,`SELECT`],$p=new WeakMap;function em({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=Kp(e),u=e.isTrusted,g=n&&ff(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Qp.indexOf(g)<0||up(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=hf(n),b=gf(v,g,y),x=!1,S=lf({maskInputOptions:c,tagName:g,type:y}),C=Hf(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=uf({isMasked:C,element:n,value:b,maskInputFn:l}
9),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=uf({isMasked:C,element:e,value:gf(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=$p.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){$p.set(t,r);let i=n.getId(t);X(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>$f(e,X(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>rp(e[0],e[1],{set(){X(g)({target:this,isTrusted:!1})}},!1,y))),X(()=>{v.forEach(e=>e())})}function tm(e){let t=[];function n(e,t){if(dm(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||dm(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||dm(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||dm(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function nm(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function rm({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=nm(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=nm(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=nm(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=nm(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};fm(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(fm(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),fm(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),fm(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=nm(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...tm(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=nm(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...tm(i),o]}]}),r.apply(i,a)})})}),X(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function im({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?Wp([n,`access`,e=>e.defaultView,`optionalAccess`,e=>e.Document]):Wp([n,`access`,e=>e.ownerDocument,`optionalAccess`,e=>e.defaultView,`optionalAccess`,e=>e.ShadowRoot]),a=Wp([i,`optionalAccess`,e=>e.prototype])?Object.getOwnPropertyDescriptor(Wp([i,`optionalAccess`,e=>e.prototype]),`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Wp([a,`access`,e=>e.get,`optionalAccess`,e=>e.call,`call`,e=>e(this)])},set(e){let n=Wp([a,`access`,e=>e.set,`optionalAccess`,e=>e.call,`call`,t=>t(this,e)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),X(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function am({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:X((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=nm(Wp([o,`access`,e=>e.parentRule,`optionalAccess`,e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:tm(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:X((i,a,s)=>{let[c]=s;
9if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=nm(Wp([a,`access`,e=>e.parentRule,`optionalAccess`,e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:tm(a.parentRule)}),i.apply(a,s)})}),X(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function om({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=X(o=>np(X(a=>{let s=Kp(a);if(!s||up(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[$f(`play`,s(0),o),$f(`pause`,s(1),o),$f(`seeked`,s(2),o),$f(`volumechange`,s(3),o),$f(`ratechange`,s(4),o)];return X(()=>{c.forEach(e=>e())})}function sm({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=ip(t.fonts,`add`,function(t){return function(n){return Dp(X(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),X(()=>{r.forEach(e=>e())})}function cm(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=X(()=>{let e=t.getSelection();if(!e||s&&Wp([e,`optionalAccess`,e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);up(o,r,i,a,!0)||up(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),$f(`selectionchange`,c)}function lm({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:ip(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function um(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r=qp(e,e.doc),i=Jp(e),a=Yp(e),o=Xp(e),s=Zp(e,{win:n}),c=em(e),l=om(e),u=rm(e,{win:n}),d=im(e,e.doc),f=am(e,{win:n}),p=e.collectFonts?sm(e):()=>{},m=cm(e),h=lm(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return X(()=>{Gp.forEach(e=>e.reset()),r.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function dm(e){return window[e]!==void 0}function fm(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var pm=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
9getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}};function mm(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var hm=class{constructor(){this.crossOriginIframeMirror=new pm(bf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},gm=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new pm(bf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pm(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),mm([this,`access`,e=>e.loadListener,`optionalCall`,t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:J.IncrementalSnapshot,data:{source:Y.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return t;case J.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case J.IncrementalSnapshot:switch(t.data.source){case Y.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case Y.Drag:case Y.TouchMove:case Y.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case Y.ViewportResize:return!1;case Y.MediaInteraction:case Y.MouseInteraction:case Y.Scroll:case Y.CanvasMutation:case Y.Input:return this.replaceIds(t.data,e,[`id`]),t;case Y.StyleSheetRule:case Y.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case Y.Font:return t;case Y.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case Y.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),mm([t,`access`,e=>e.data,`access`,e=>e.styles,`optionalAccess`,e=>e.forEach,`call`,t=>t(t=>{this.replaceStyleIds(t,e,[`styleId`])})]),t}}return!1}replace(e,t,n,r){for(let i of r)!Array.isArray(t[i])&&typeof t[i]!=`number`||(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
9h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==K.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},_m=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},vm=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Qd(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=qp({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Xp({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Dp(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(im({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(ip(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&Cp(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},ym=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}},bm=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new yp,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:nf(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},xm=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Ep(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}},Z,Sm,Cm=cf();function wm(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordCanvas:ee=!1,recordCrossOriginIframes:te=!1,recordAfter:ne=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:re=!1,collectFonts:ie=!1,inlineImages:ae=!1,plugins:E,keepIframeSrcFn:oe=()=>!1,ignoreCSSAttributes:se=new Set([]),errorHandler:ce,onMutation:le,getCanvasManager:ue}=e;Hp(ce);let de=!te||window.parent===window,fe=!1;if(!de)try{window.parent.document&&(fe=!1)}catch{fe=!0}if(de&&!t)throw Error(`emit function is required`);T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),Cm.reset();let pe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,me=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};hp();let he,ge=0,_e=e=>{for(let t of E||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!fe&&(e=S(e)),e};Z=(e,i)=>{let a=e;if(a.timestamp=ap(),ar([Gp,`access`,e=>e[0],`optionalAccess`,e=>e.isFrozen,`call`,e=>e()])&&a.type!==J.FullSnapshot&&!(a.type===J.IncrementalSnapshot&&a.data.source===Y.Mutation)&&Gp.forEach(e
9=>e.unfreeze()),de)ar([t,`optionalCall`,e=>e(_e(a),i)]);else if(fe){let e={type:`rrweb`,event:_e(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===J.FullSnapshot)he=a,ge=0;else if(a.type===J.IncrementalSnapshot){if(a.data.source===Y.Mutation&&a.data.isAttachIframe)return;ge++;let e=r&&ge>=r,t=n&&he&&a.timestamp-he.timestamp>n;(e||t)&&Te(!0)}};let ve=e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Mutation,...e}})},ye=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Scroll,...e}}),be=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),D=new bm({mutationCb:ve,adoptedStyleSheetCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.AdoptedStyleSheet,...e}})}),xe=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new hm:new gm({mirror:Cm,mutationCb:ve,stylesheetManager:D,recordCrossOriginIframes:te,wrappedEmit:Z});for(let e of E||[])e.getMirror&&e.getMirror({nodeMirror:Cm,crossOriginIframeMirror:xe.crossOriginIframeMirror,crossOriginIframeStyleMirror:xe.crossOriginIframeStyleMirror});let Se=new xm,Ce=Em(ue,{mirror:Cm,win:window,mutationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),recordCanvas:ee,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:ce}),we=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new _m:new vm({mutationCb:ve,scrollCb:ye,bypassOptions:{onMutation:le,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:pe,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:ee,inlineImages:ae,sampling:C,slimDOMOptions:me,iframeManager:xe,stylesheetManager:D,canvasManager:Ce,keepIframeSrcFn:oe,processedNodeManager:Se},mirror:Cm}),Te=(e=!1)=>{Z({type:J.Meta,data:{href:window.location.href,width:cp(),height:sp()}},e),D.reset(),we.init(),Gp.forEach(e=>e.lock());let t=Zf(document,{mirror:Cm,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:pe,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:me,dataURLOptions:w,recordCanvas:ee,inlineImages:ae,onSerialize:e=>{gp(e,Cm)&&xe.addIframe(e),_p(e,Cm)&&D.trackLinkElement(e),vp(e)&&we.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{xe.attachIframe(e,t),we.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{D.attachLinkElement(e,t)},keepIframeSrcFn:oe});if(!t)return console.warn(`Failed to snapshot the document`);Z({type:J.FullSnapshot,data:{node:t,initialOffset:op(window)}}),Gp.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&D.adoptStyleSheets(document.adoptedStyleSheets,Cm.getId(document))};Sm=Te;try{let e=[],t=e=>X(um)({onMutation:le,mutationCb:ve,mousemoveCb:(e,t)=>Z({type:J.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MouseInteraction,...e}}),scrollCb:ye,viewportResizeCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.ViewportResize,...e}}),inputCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Input,...e}}),mediaInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MediaInteraction,...e}}),styleSheetRuleCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleSheetRule,...e}}),styleDeclarationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleDeclaration,...e}}),canvasMutationCb:be,fontCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Font,...e}}),selectionCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Selection,...e}})},customElementCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:pe,inlineStylesheet:m,sampling:C,recordCanvas:ee,inlineImages:ae,userTriggeredOnInput:re,collectFonts:ie,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:oe,blockSelector:a,unblockSelector:o,slimDOMOptions:me,dataURLOptions:w,mirror:Cm,iframeManager:xe,stylesheetManager:D,shadowDomManager:we,processedNodeManager:Se,canvasManager:Ce,ignoreCSSAttributes:se,plugins:ar([E,`optionalAccess`,e=>e.filter,`call`,e=>e(e=>e.observer),`optionalAccess`,e=>e.map,`call`,e=>e(e=>({observer:e.observer,options:e.options,callback:t=>Z({type:J.Plugin,data:{plugin:e.name,payload:t}}
9)}))])||[]},{});xe.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Te(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push($f(`DOMContentLoaded`,()=>{Z({type:J.DomContentLoaded,data:{}}),ne===`DOMContentLoaded`&&n()})),e.push($f(`load`,()=>{Z({type:J.Load,data:{}}),ne===`load`&&n()},window))),()=>{e.forEach(e=>e()),Se.destroy(),Sm=void 0,Up()}}catch(e){console.warn(e)}}function Tm(e){if(!Sm)throw Error(`please take full snapshot after start recording`);Sm(e)}wm.mirror=Cm,wm.takeFullSnapshot=Tm;function Em(e,t){try{return e?e(t):new ym}catch{return console.warn(`Unable to initialize CanvasManager`),new ym}}var Dm=3,Om=5;function km(e){return e>9999999999?e:e*1e3}function Am(e){return e>9999999999?e/1e3:e}function jm(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:J.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Zt(t,10,1e3)}}),t.category===`console`)))}var Mm=`button,a`;function Nm(e){return e.closest(Mm)||e}function Pm(e){let t=Fm(e);return!t||!(t instanceof Element)?t:Nm(t)}function Fm(e){return Im(e)?e.target:e}function Im(e){return typeof e==`object`&&!!e&&`target`in e}var Lm;function Rm(e){return Lm||(Lm=[],zm()),Lm.push(e),()=>{let t=Lm?Lm.indexOf(e):-1;t>-1&&Lm.splice(t,1)}}function zm(){O(G,`open`,function(e){return function(...t){if(Lm)try{Lm.forEach(e=>e())}catch{}return e.apply(G,t)}})}function Bm(e,t,n){e.handleClick(t,n)}var Vm=class{constructor(e,t,n=jm){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=Rm(()=>{this._lastMutation=Gm()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(Um(t,this._ignoreSelector)||!Wm(e))return;let n={timestamp:Am(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Am(e)}registerScroll(e=Date.now()){this._lastScroll=Am(e)}registerClick(e){let t=Nm(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=Gm();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:G.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:G.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}},Hm=[`A`,`BUTTON`,`INPUT`];function Um(e,t){return!!(!Hm.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
9function Wm(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Gm(){return Date.now()/1e3}function Km(e,t){try{if(!qm(t))return;let{source:n}=t.data;if(n===Y.Mutation&&e.registerMutation(t.timestamp),n===Y.Scroll&&e.registerScroll(t.timestamp),Jm(t)){let{type:n,id:r}=t.data,i=wm.mirror.getNode(r);i instanceof HTMLElement&&n===kp.Click&&e.registerClick(i)}}catch{}}function qm(e){return e.type===Dm}function Jm(e){return e.data.source===Y.MouseInteraction}function Ym(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var Xm;(function(e){e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`})(Xm||={});var Zm=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function Qm(e){let t={};for(let n in e)if(Zm.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var $m=e=>t=>{if(!e.isEnabled())return;let n=th(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Bm(e.clickDetector,n,Pm(t.event)),jm(e,n)};function eh(e,t){let n=wm.mirror.getId(e),r=n&&wm.mirror.getNode(n),i=r&&wm.mirror.getMeta(r),a=i&&rh(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===Xm.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:Qm(a.attributes)}}:{}}}function th(e){let{target:t,message:n}=nh(e);return Ym({category:`ui.${e.name}`,...eh(t,n)})}function nh(e){let t=e.name===`click`,n,r=null;try{r=t?Pm(e.event):Fm(e.event),n=ue(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function rh(e){return e.type===Xm.Element}function ih(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=ah(t);n&&jm(e,n)}function ah(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||oh(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=ue(o,{maxStringLength:200})||`<unknown>`;return Ym({category:`ui.keyDown`,message:l,data:{...eh(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function oh(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var sh={resource:ph,paint:dh,navigation:fh};function ch(e){return e.map(lh).filter(Boolean)}function lh(e){return sh[e.entryType]?sh[e.entryType](e):null}function uh(e){return((j||G.performance.timeOrigin)+e)/1e3}function dh(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=uh(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function fh(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:uh(p),end:uh(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function ph(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:uh(a),end:uh(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function mh(e){let t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,a=uh(i);return{type:`largest-contentful-paint`,name:`largest-contentful-paint`,start:a,end:a,data:{value:i,size:i,nodeId:r?wm.mirror.getId(r):void 0}}}function hh(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(fc(e,n))}),r.push(cc(({metric:t})=>{e.replayPerformanceEntries.push(mh(t))})),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,gh=`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,353 bytes, line 9
9},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
9++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function _h(){let e=new Blob([gh]);return URL.createObjectURL(e)}function vh(e,t){Q&&(D.info(e),t&&bh(e))}function yh(e,t){Q&&(D.info(e),t&&setTimeout(()=>{bh(e)},0))}function bh(e){Ir({category:`console`,data:{logger:`replay`},level:`info`,message:e},{level:`info`})}
9var xh=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Wd}.`)}},Sh=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Wd)throw new xh;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?km(e):null}},Ch=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener(`error`,e=>{t(e)},{once:!0})}),this._ensureReadyPromise}destroy(){vh(`[Replay] Destroying compression worker`),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{let o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener(`message`,a),!o.success){Q&&D.error(`[Replay]`,o.response),i(Error(`Error in compression worker`));return}r(o.response)}};this._worker.addEventListener(`message`,a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},wh=class{constructor(e){this._worker=new Ch(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=km(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Wd?Promise.reject(new xh):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{Q&&D.warn(`[Replay] Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},Th=class{constructor(e){this._fallback=new Sh,this._compression=new wh(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{vh(`[Replay] Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Q&&D.warn(`[Replay] Failed to add events when switching buffers.`,e)}}};function Eh({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=Dh(t);if(e)return e}return vh(`[Replay] Using simple buffer`),new Sh}function Dh(e){try{let t=e||Oh();return t?(vh(`[Replay] Using compression worker${e?` from ${e}`:``}`),new Th(new Worker(t))):void 0}catch{vh(`[Replay] Failed to create compression worker`)}}function Oh(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?_h():``}function kh(){try{return`sessionStorage`in G&&!!G.sessionStorage}catch{return!1}}function Ah(e){jh(),e.session=void 0}function jh(){if(kh())try{G.sessionStorage.removeItem(Ad)}catch{}}function Mh(e){return e!==void 0&&Math.random()<e}function Nh(e){let t=Date.now();return{id:e.id||A(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Ph(e){if(kh())try{G.sessionStorage.setItem(Ad,JSON.stringify(e))}catch{}}function Fh(e,t){return Mh(e)?`session`:t?`buffer`:!1}function Ih({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=Nh({sampled:Fh(e,t),previousSessionId:r});return n&&Ph(i),i}function Lh(e){if(!kh())return null;try{let t=G.sessionStorage.getItem(Ad);if(!t)return null;let n=JSON.parse(t);return yh(`[Replay] Loading existing session`,e),Nh(n)}catch{return null}}function Rh(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function zh(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Rh(e.started,t,r)||Rh(e.lastActivity,n,r)}function Bh(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!zh(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function Vh({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let a=i.stickySession&&Lh(e);return a?Bh(a,{sessionIdleExpire:t,maxReplayDuration:n})?(yh(`[Replay] Session in sessionStorage is expired, creating new one...`),Ih(i,{previousSessionId:a.id})):a:(yh(`[Replay] Creating new session`,e),Ih(i,{previousSessionId:r}))}function Hh(e){return e.type===J.Custom}
9function Uh(e,t,n){return Kh(e,t)?(Gh(e,t,n),!0):!1}function Wh(e,t,n){return Kh(e,t)?Gh(e,t,n):Promise.resolve(null)}async function Gh(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode===`buffer`&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=qh(t,e.getOptions().beforeAddRecordingEvent);return r?await e.eventBuffer.addEvent(r):void 0}catch(t){let n=t&&t instanceof xh?`addEventSizeExceeded`:`addEvent`;Q&&D.error(t),await e.stop({reason:n});let r=P();r&&r.recordDroppedEvent(`internal_sdk_error`,`replay`)}}function Kh(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=km(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(vh(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function qh(e,t){try{if(typeof t==`function`&&Hh(e))return t(e)}catch(e){return Q&&D.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}function Jh(e){return!e.type}function Yh(e){return e.type===`transaction`}function Xh(e){return e.type===`replay_event`}function Zh(e){return e.type===`feedback`}function Qh(e){let t=tg();return(n,r)=>{if(!e.isEnabled()||!Jh(n)&&!Yh(n))return;let i=r&&r.statusCode;if(!(t&&(!i||i<200||i>=300))){if(Yh(n)){$h(e,n);return}eg(e,n)}}}function $h(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function eg(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function tg(){let e=P();if(!e)return!1;let t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function ng(e){return t=>{!e.isEnabled()||!Jh(t)||rg(e,t)}}function rg(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0].value;typeof n==`string`&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&jm(e,Ym({category:`replay.hydrate-error`}))}function ig(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function ag(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:J.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1):!0)}function og(e,t){return e.recordingMode!==`buffer`||t.message===Md||!t.exception||t.type?!1:Mh(e.getOptions().errorSampleRate)}function sg(e,t=!1){let n=t?Qh(e):void 0;return Object.assign((t,r)=>e.isEnabled()?Xh(t)?(delete t.breadcrumbs,t):!Jh(t)&&!Yh(t)&&!Zh(t)||!e.checkAndHandleExpiredSession()?t:Zh(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),ag(e,t),t):ig(t,r)&&!e.getOptions()._experiments.captureExceptions?(Q&&D.log(`[Replay] Ignoring error from rrweb internals`,t),null):((og(e,t)||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t):t,{id:`Replay`})}function cg(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:J.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function lg(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function ug(e){return t=>{if(!e.isEnabled())return;let n=lg(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(cg(e,[n]),!1)))}}function dg(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:Co(t,P())}function fg(e,t){e.isEnabled()&&t!==null&&(dg(e,t.name)||e.addUpdate(()=>(cg(e,[t]),!0)))}function pg(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;let{method:a,url:o}=r;return{type:`resource.fetch`,start:t/1e3,end:n/1e3,name:o,data:{method:a,statusCode:i?i.status:void 0}}}function mg(e){return t=>{e.isEnabled()&&fg(e,pg(t))}}function hg(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[Vt];
9if(!t||!n||!i)return null;let{method:a,url:o,status_code:s}=i;return o===void 0?null:{type:`resource.xhr`,name:o,start:t/1e3,end:n/1e3,data:{method:a,statusCode:s}}}function gg(e){return t=>{e.isEnabled()&&fg(e,hg(t))}}function _g(e,t){if(e)try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Tg(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function vg(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function yg(e){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Tg(e)];if(!e)return[void 0]}catch{return Q&&D.warn(`[Replay] Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&D.info(`[Replay] Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function bg(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function xg(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:k({method:a,statusCode:o,request:s,response:c})}}function Sg(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function Cg(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=Eg(n);return r.body=i,a&&a.length>0&&(r._meta={warnings:a}),r}function wg(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function Tg(e){return new URLSearchParams(e).toString()}function Eg(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>Bd,n=Dg(e);if(t){let t=e.slice(0,Bd);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}…`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Dg(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function Og(e,t){return T(kg(e),t)}function kg(e,t=G.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(G.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function Ag(e,t,n){try{let r=xg(`resource.fetch`,await Mg(e,t,n));fg(n.replay,r)}catch(e){Q&&D.error(`[Replay] Failed to capture fetch breadcrumb`,e)}}function jg(e,t,n){let{input:r,response:i}=t,a=_g(r?Lg(r):void 0,n.textEncoder),o=i?vg(i.headers.get(`content-length`)):void 0;a!==void 0&&(e.data.request_body_size=a),o!==void 0&&(e.data.response_body_size=o)}async function Mg(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=Og(o,n.networkDetailAllowUrls)&&!Og(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?Ng(n,t.input,l):Sg(l),response:await Pg(d,n,t.response,u)}}function Ng({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?zg(n,t):{};if(!e)return Cg(i,r,void 0);let[a,o]=yg(Lg(n)),s=Cg(i,r,a);return o?bg(s,o):s}async function Pg(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&a!==void 0)return Sg(a);let o=i?Rg(i.headers,r):{};if(!i||!t&&a!==void 0)return Cg(o,a,void 0);let[s,c]=await Ig(i),l=Fg(s,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:o});return c?bg(l,c):l}function Fg(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:a}){try{let o=e&&e.length&&r===void 0?_g(e,n):r;return i?t?Cg(a,o,e):Cg(a,o,void 0):Sg(o)}catch(e){return Q&&D.warn(`[Replay] Failed to serialize response body`,e),Cg(a,r,void 0)}}async function Ig(e){let t=Vg(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Hg(t)]}catch(e){return Q&&D.warn(`[Replay] Failed to get text body from response`,e),[void 0,`BODY_PARSE_ERROR`]}}function Lg(e=[]){if(!(e.length!==2||typeof e[1]!=`object`))return e[1].body}function Rg(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function zg(e,t){return e.length===1&&typeof e[0]!=`string`?Bg(e[0],t):e.length===2?Bg(e[1],t):{}}function Bg(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Rg(n,t):Array.isArray(n)?{}:wg(n,t):{}}function Vg(e){try{return e.clone()}catch(e){Q&&D.warn(`[Replay] Failed to clone response body`,e)}}function Hg(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(Error(`Timeout while trying to read response body`)),500);Ug(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Ug(e){return await e.text()}async function Wg(e,t,n){try{let r=xg(`resource.xhr`,Kg(e,t,n));fg(n.replay,r)}catch(e){Q&&D.error(`[Replay] Failed to capture xhr breadcrumb`,e)}}function Gg(e,t,n){let{xhr:r,input:i}=t;if(!r)return;let a=_g(i,n.textEncoder),o=r.getResponseHeader(`content-length`)?vg(r.getResponseHeader(`content-length`)):Xg(r.response,r.responseType,n.textEncoder);
9a!==void 0&&(e.data.request_body_size=a),o!==void 0&&(e.data.response_body_size=o)}function Kg(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!Og(c,n.networkDetailAllowUrls)||Og(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:Sg(d),response:Sg(f)};let p=s[Vt],m=p?wg(p.request_headers,n.networkRequestHeaders):{},h=wg(qg(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?yg(o):[void 0],[v,y]=n.networkCaptureBodies?Jg(s):[void 0],b=Cg(m,d,g),x=Cg(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?bg(b,_):b,response:y?bg(x,y):x}}function qg(e){let t=e.getAllResponseHeaders();return t?t.split(`\r 10`).reduce((e,t)=>{let[n,r]=t.split(`: `);return e[n.toLowerCase()]=r,e},{}):{}}function Jg(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Yg(e.response,e.responseType)}catch(e){t.push(e)}return Q&&D.warn(`[Replay] Failed to get xhr response body`,...t),[void 0]}function Yg(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&e&&typeof e==`object`)return[JSON.stringify(e)];if(!e)return[void 0]}catch{return Q&&D.warn(`[Replay] Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&D.info(`[Replay] Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Xg(e,t,n){try{return _g(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e,n)}catch{return}}function Zg(e){let t=P();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on?t.on(`beforeAddBreadcrumb`,(e,t)=>Qg(c,e,t)):(Ct(mg(e)),Ht(gg(e)))}catch{}}function Qg(e,t,n){if(t.data)try{$g(t)&&t_(n)&&(Gg(t,n,e),Wg(t,n,e)),e_(t)&&n_(n)&&(jg(t,n,e),Ag(t,n,e))}catch{Q&&D.warn(`Error when enriching network breadcrumb`)}}function $g(e){return e.category===`xhr`}function e_(e){return e.category===`fetch`}function t_(e){return e&&e.xhr}function n_(e){return e&&e.response}var r_=null;function i_(e){return!!e.category}var a_=e=>t=>{if(!e.isEnabled())return;let n=o_(t);n&&jm(e,n)};function o_(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return r_===t||!t||(r_=t,!i_(t)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(t.category)||t.category.startsWith(`ui.`))?null:t.category===`console`?s_(t):Ym(t)}function s_(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Ym(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>Vd?(n=!0,`${e.slice(0,Vd)}…`):e;if(typeof e==`object`)try{let t=Zt(e,7);return JSON.stringify(t).length>Vd?(n=!0,`${JSON.stringify(t,null,2).slice(0,Vd)}…`):t}catch{}return e});return Ym({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function c_(e){let t=F(),n=P();t.addScopeListener(a_(e)),ft($m(e)),Rt(ug(e)),Zg(e);let r=sg(e,!l_(n));n&&n.addEventProcessor?n.addEventProcessor(r):io(r),l_(n)&&(n.on(`beforeSendEvent`,ng(e)),n.on(`afterSendEvent`,Qh(e)),n.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on(`startTransaction`,t=>{e.lastTransaction=t}),n.on(`finishTransaction`,t=>{e.lastTransaction=t}),n.on(`beforeSendFeedback`,(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}function l_(e){return!!(e&&e.on)}async function u_(e){try{return Promise.all(cg(e,[d_(G.performance.memory)]))}catch{return[]}}function d_(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function f_(e,t,n){let r,i,a,o=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function l(){return i!==void 0||a!==void 0?s():r}function u(){return i&&clearTimeout(i),i=setTimeout(s,t),o&&a===void 0&&(a=setTimeout(s,o)),r}return u.cancel=c,u.flush=l,u}function p_(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Q&&D.warn(`[Replay] Received replay event after session expired.`);return}let i=r||!t;t=!0,e.clickDetector&&Km(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!Uh(e,n,i))return!0;
10if(!i)return!1;if(h_(e,i),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode===`buffer`&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(vh(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Ph(e.session))}return e.recordingMode===`session`&&e.flush(),!0})}}function m_(e){let t=e.getOptions();return{type:J.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function h_(e,t){!t||!e.session||e.session.segmentId!==0||Uh(e,m_(e),!1)}function g_(e,t,n,r){return Ln(Yn(e,Jn(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function __({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 11`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function v_({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit&&e.emit(`preprocessEvent`,r,i);let a=await br(e.getOptions(),r,i,t,e,Ci());if(!a)return null;a.platform=a.platform||`javascript`;let o=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:c}=o&&o.sdk||{};return a.sdk={...a.sdk,name:s||`sentry.javascript.unknown`,version:c||`0.0.0`},a}async function y_({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=__({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=P(),f=F(),p=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!p||!m||!a.sampled)return;let h={type:jd,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled},g=await v_({scope:f,client:d,replayId:t,event:h});if(!g){d.recordDroppedEvent(`event_processor`,`replay`,h),vh("An event processor returned `null`, will not send event.");return}delete g.sdkProcessingMetadata;let _=g_(g,o,m,d.getOptions().tunnel),v;try{v=await p.send(_)}catch(e){let t=Error(Md);try{t.cause=e}catch{}throw t}if(!v)return v;if(typeof v.statusCode==`number`&&(v.statusCode<200||v.statusCode>=300))throw new b_(v.statusCode);let y=tr({},v);if(er(y,`replay`))throw new x_(y);return v}var b_=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},x_=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}};async function S_(e,t={count:0,interval:Rd}){let{recordingData:n,options:r}=e;if(n.length)try{return await y_(e),!0}catch(n){if(n instanceof b_||n instanceof x_)throw n;if(Lr(`Replays`,{_retryCount:t.count}),Q&&r._experiments&&r._experiments.captureExceptions&&Mr(n),t.count>=zd){let e=Error(`${Md} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{setTimeout(async()=>{try{await S_(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var C_=`__THROTTLED`,w_=`__SKIPPED`;function T_(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?w_:C_}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var E_=class e{constructor({options:t,recordingOptions:n}){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:Nd,sessionIdleExpire:Pd},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=n,this._options=t,this._debouncedFlush=f_(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=T_((e,t)=>Wh(this,e,t),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(Hd,r),timeout:r,scrollTimeout:Ud,ignoreSelector:i?i.join(`,`):``}:void 0;a&&(this.clickDetector=new Vm(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0&&n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,yh(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}
11start(){if(this._isEnabled&&this.recordingMode===`session`)throw Error(`Replay recording is already in progress`);if(this._isEnabled&&this.recordingMode===`buffer`)throw Error("Replay buffering is in progress, call `flush()` to save the replay");yh(`[Replay] Starting replay in session mode`,this._options._experiments.traceInternals),this._updateUserActivity();let e=Vh({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error(`Replay recording is already in progress`);yh(`[Replay] Starting replay in buffer mode`,this._options._experiments.traceInternals);let e=Vh({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=wm({...this._recordingOptions,...this.recordingMode===`buffer`&&{checkoutEveryNms:Ld},emit:p_(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{vh(`[Replay] Stopping Replay${t?` triggered by ${t}`:``}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ah(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),vh(`[Replay] Pausing replay`,this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),vh(`[Replay] Resuming replay`,this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();vh(`[Replay] Converting buffer to session`,this._options._experiments.traceInternals),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Rh(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${G.location.pathname}${G.location.hash}${G.location.search}`,t=`${G.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===C_){let e=Ym({category:`replay.throttled`});this.addUpdate(()=>!Uh(this,{type:Om,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||F().getTransaction(),t=(e&&N(e).data||{})[ra];if(!(!e||!t||![`route`,`custom`].includes(t)))return N(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Eh({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Q&&D.error(`[Replay]`,e),Q&&this._options._experiments&&this._options._experiments.captureExceptions&&Mr(e)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=Vh({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return Bh(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`refresh session`}),this.initializeSampling(e.id))}_addListeners(){try{G.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),G.addEventListener(`blur`,this._handleWindowBlur),G.addEventListener(`focus`,this._handleWindowFocus),G.addEventListener(`ke
11ydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(c_(this),!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=hh(this)}_removeListeners(){try{G.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),G.removeEventListener(`blur`,this._handleWindowBlur),G.removeEventListener(`focus`,this._handleWindowFocus),G.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{G.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=Ym({category:`ui.blur`});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=Ym({category:`ui.focus`});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{ih(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(zh(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){vh(`[Replay] Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:J.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=ch(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(cg(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
11_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Q&&D.error(`[Replay] No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await u_(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error(`Session is too long, not sending replay`);let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await S_({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:`sendReplay`});let t=P();t&&t.recordDroppedEvent(`send_error`,`replay`)}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Q&&D.error(`[Replay] Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){vh(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`,this._options._experiments.traceInternals),r&&this._debouncedFlush();return}let a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&vh(`[Replay] Flushing initial segment without checkout.`,this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){Q&&D.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ph(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=Ym({category:`replay.mutations`,data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return i?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}}};function D_(e,t,n,r){let i=typeof r==`string`?r.split(`,`):[],a=[...e,...i,...t];return n!==void 0&&(typeof n==`string`&&a.push(`.${n}`),ye(()=>{console.warn(`[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.`)})),a.join(`,`)}function O_({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:c,ignoreClass:l}){let u={maskTextSelector:D_(e,[`.sentry-mask`,`[data-sentry-mask]`],s,c),unmaskTextSelector:D_(t,[`.sentry-unmask`,`[data-sentry-unmask]`]),blockSelector:D_(n,[`.sentry-block`,`[data-sentry-block]`,`base[href="/"]`],a,o),unblockSelector:D_(r,[`.sentry-unblock`,`[data-sentry-unblock]`]),ignoreSelector:D_(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`],l)};return a instanceof RegExp&&(u.blockClass=a),s instanceof RegExp&&(u.maskTextClass=s),u}function k_({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``)?a.replace(/[\S]/g,`*`):a}var A_=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,j_=[`content-length`,`content-type`,`accept`],M_=!1,N_=(e=>new P_(e)),P_=class e{static __initStatic(){this.id=`Replay`}constructor({flushMinDelay:t=Fd,flushMaxDelay:n=Id,minReplayDuration:r=Gd,maxReplayDuration:i=qd,stickySession:a=!0,useCompression:o=!0,workerUrl:s,_experiments:c={},sessionSampleRate:l,errorSampleRate:u,maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:h=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:_=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:x=[],networkResponseHeaders:S=[],mask:C=[],maskAttributes:w=[`title`,`placeholder`],unmask:T=[],block:ee=[],unblock:te=[],ignore:ne=[],maskFn:re,beforeAddRecordingEvent:ie,beforeErrorSampling:ae,blockClass:E,blockSelector:oe,maskInputOptions:se,maskTextClass:ce,maskTextSelector:le,ignoreClass:ue}={}){this.name=e.id;let de=O_({mask:C,unmask:T,block:ee,unblock:te,ignore:ne,blockClass:E,blockSelector:oe,maskTextClass:ce,maskTextSelector:le,ignoreClass:ue});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...se||{},password:!0},maskTextFn:re,maskInputFn:re,maskAttributeFn:(e,t,n)=>k_({maskAttributes:w,maskAllText:d,privacyOptions:de,key:e,value:t,el:n}),...de,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Kd),maxReplayDuration:Math.min(i,qd),stickySession:a,sessionSampleRate:l,errorSampleRate:u,useCompression:o,workerUrl:s,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:m,mutationLimit:h,slowClickTimeout:g,slowClickIgnoreSelectors:_,networkDetailAllowUrls:v,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:I_(x),networkResponseHeaders:I_(S),beforeAddRecordingEvent:ie,beforeErrorSampling:ae,_experiments:c},typeof l==`number`&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. 12This option is deprecated and will be removed soon. 13Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: 14Sentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),typeof u==`number`&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. 15This option is deprecated and will be removed soon. 16Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: 17Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${A_}`:A_),this._isInitialized&&Jt())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return M_}
17set _isInitialized(e){M_=e}setupOnce(){Jt()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode===`session`}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let e=F_(this._initialOptions);this._replay=new E_({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let e=P().getIntegrationByName(`ReplayCanvas`);if(!e)return;this._replay._canvas=e.getOptions()}catch{}}};P_.__initStatic();function F_(e){let t=P(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...k(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&ye(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate==`number`&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate==`number`&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(ye(()=>{console.warn(`SDK client is not available.`)}),r)}function I_(e){return[...j_,...e.map(e=>e.toLowerCase())]}function L_(){let e=P();return e&&e.getIntegrationByName&&e.getIntegrationByName(`Replay`)}var R_;(function(e){e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`})(R_||={});function z_(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function B_(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:B_(e.parentNode,t,n,r+1)}function V_(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(z_(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var H_=`Please stop import mirror directly. Instead of that,\r 18now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 19or you can use record.mirror to access the mirror instance during recording.`,U_={map:{},getId(){return console.error(H_),-1},getNode(){return console.error(H_),null},removeNodeFromMap(){console.error(H_)},has(){return console.error(H_),!1},reset(){console.error(H_)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(U_=new Proxy(U_,{get(e,t,n){return t===`map`&&console.error(H_),Reflect.get(e,t,n)}}));function W_(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Z_(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>W_(e,t,a||{},!0)}function G_(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function K_(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function q_(e,t,n,r,i){if(!e)return!1;let a=K_(e);if(!a)return!1;let o=V_(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=B_(a,o),c=-1;return s<0?!1:(r&&(c=B_(a,V_(null,r))),s>-1&&c<0||s<c)}var J_={};function Y_(e){let t=J_[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return J_[e]=r.bind(window)}function X_(...e){return Y_(`requestAnimationFrame`)(...e)}function Z_(...e){return Y_(`setTimeout`)(...e)}var Q_=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(Q_||{}),$_;function ev(e){$_=e}for(var tv=e=>$_?((...t)=>{try{return e(...t)}catch(e){if($_&&$_(e)===!0)return()=>{};throw e}}):e,nv=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
19+/`,rv=typeof Uint8Array>`u`?[]:new Uint8Array(256),iv=0;iv<nv.length;iv++)rv[nv.charCodeAt(iv)]=iv;var av=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=nv[t[n]>>2],i+=nv[(t[n]&3)<<4|t[n+1]>>4],i+=nv[(t[n+1]&15)<<2|t[n+2]>>6],i+=nv[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},ov=new Map;function sv(e,t){let n=ov.get(e);return n||(n=new Map,ov.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var cv=(e,t,n)=>{if(!e||!(dv(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=sv(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function lv(e,t,n){if(e instanceof Array)return e.map(e=>lv(e,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:av(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[lv(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}else if(e instanceof HTMLCanvasElement)return{rr_type:`HTMLImageElement`,src:e.toDataURL()};else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[lv(e.data,t,n),e.width,e.height]};else if(dv(e,t)||typeof e==`object`)return{rr_type:e.constructor.name,index:cv(e,t,n)};return e}var uv=(e,t,n)=>e.map(e=>lv(e,t,n)),dv=(e,t)=>!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(e=>typeof t[e]==`function`).find(n=>e instanceof t[n]);function fv(e,t,n,r,i){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!=`function`)continue;let o=G_(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...o){return q_(this.canvas,n,r,i,!0)||Z_(()=>{let n=uv(o,t,this);e(this.canvas,{type:Q_[`2D`],property:s,args:n})},0),a.apply(this,o)}});a.push(o)}catch{let n=W_(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:Q_[`2D`],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}function pv(e){return e===`experimental-webgl`?`webgl`:e}function mv(e,t,n,r,i){let a=[];try{let o=G_(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(a,...o){if(!q_(this,t,n,r,!0)){let e=pv(a);if(`__context`in this||(this.__context=e),i&&[`webgl`,`webgl2`].includes(e))if(o[0]&&typeof o[0]==`object`){let e=o[0];e.preserveDrawingBuffer||=!0}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return()=>{a.forEach(e=>e())}}function hv(e,t,n,r,i,a,o,s){let c=[],l=Object.getOwnPropertyNames(e);for(let o of l)if(![`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))try{if(typeof e[o]!=`function`)continue;let l=G_(e,o,function(e){return function(...c){let l=e.apply(this,c);if(cv(l,s,this),`tagName`in this.canvas&&!q_(this.canvas,r,i,a,!0)){let e=uv(c,s,this),r={type:t,property:o,args:e};n(this.canvas,r)}return l}});c.push(l)}catch{let r=W_(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(r)}return c}function gv(e,t,n,r,i,a){let o=[];return o.push(...hv(t.WebGLRenderingContext.prototype,Q_.WebGL,e,n,r,i,a,t)),t.WebGL2RenderingContext!==void 0&&o.push(...hv(t.WebGL2RenderingContext.prototype,Q_.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}var _v=`for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;
19if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};`;function vv(){let e=new Blob([_v]);return URL.createObjectURL(e)}var yv=class{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t=`all`,win:n,blockClass:r,blockSelector:i,unblockSelector:a,maxCanvasSize:o,recordCanvas:s,dataURLOptions:c,errorHandler:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,l&&ev(l),!e.enableManualSnapshot&&tv(()=>{s&&t===`all`&&this.initCanvasMutationObserver(n,r,i,a),s&&typeof t==`number`&&this.initCanvasFPSObserver(t,n,r,i,a,o,{dataURLOptions:c})})()}initCanvasFPSObserver(e,t,n,r,i,a,o){let s=mv(t,n,r,i,!0),c=this.takeSnapshot(!1,e,t,n,r,i,a,o.dataURLOptions);this.resetObservers=()=>{s(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=mv(e,t,n,r,!1),a=fv(this.processMutation.bind(this),e,t,n,r),o=gv(this.processMutation.bind(this),e,t,n,r,this.mirror);this.resetObservers=()=>{i(),a(),o()}}snapshot(e){let{options:t}=this,n=this.takeSnapshot(!0,t.sampling===`all`?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,r,i,a,o,s,c){let l=new Map,u=new Worker(vv());u.onmessage=e=>{let t=e.data,{id:n}=t;if(l.set(n,!1),!(`base64`in t))return;let{base64:r,type:i,width:a,height:o}=t;this.mutationCb({id:n,type:Q_[`2D`],commands:[{property:`clearRect`,args:[0,0,a,o]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0,a,o]}]})};let d=1e3/t,f=0,p,m=e=>{if(e)return[e];let t=[];return n.document.querySelectorAll(`canvas`).forEach(e=>{q_(e,r,i,a,!0)||t.push(e)}),t},h=t=>{if(f&&t-f<d){p=X_(h);return}f=t,m(c).forEach(t=>{let n=this.mirror.getId(t);if(!l.get(n)&&!(!t.width||!t.height)){if(l.set(n,!0),!e&&[`webgl`,`webgl2`].includes(t.__context)){let e=t.getContext(t.__context);ar([e,`optionalAccess`,e=>e.getContextAttributes,`call`,e=>e(),`optionalAccess`,e=>e.preserveDrawingBuffer])===!1&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{u.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:s,maxCanvasSize:o},[e])}).catch(e=>{tv(()=>{throw e})()})}}),p=X_(h)};return p=X_(h),p}startPendingCanvasMutationFlusher(){X_(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,X_(e)};X_(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),X_(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}},bv={low:{sampling:{canvas:1},dataURLOptions:{type:`image/webp`,quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:`image/webp`,quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:`image/webp`,quality:.5}}},xv=`ReplayCanvas`,Sv=1280,Cv=R(((e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||`medium`,enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Sv):Sv,n?Math.min(n,Sv):Sv]},i,a=new Promise(e=>i=e);return{name:xv,setupOnce(){},getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let r=new yv({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{typeof e==`object`&&(e.__rrweb__=!0)}catch{}}});return i(r),r},...bv[e||`medium`]||bv.medium}},async snapshot(e){(await a).snapshot(e)}}})),wv=L(xv,Cv),Tv=E,Ev=`#ffffff`,Dv=`inherit`,Ov=`rgba(108, 95, 199, 1)`,kv={fontFamily:`system-ui, 'Helvetica Neue', Arial, sans-serif`,fontSize:`14px`,background:Ev,backgroundHover:`#f6f6f7`,foreground:`#2b2233`,border:`1.5px solid rgba(41, 35, 47, 0.13)`,borderRadius:`25px`,boxShadow:`0px 4px 24px 0px rgba(43, 34, 51, 0.12)`,success:`#268d75`,error:`#df3338`,submitBackgroun
19d:`rgba(88, 74, 192, 1)`,submitBackgroundHover:Ov,submitBorder:Ov,submitOutlineFocus:`#29232f`,submitForeground:Ev,submitForegroundHover:Ev,cancelBackground:`transparent`,cancelBackgroundHover:`var(--background-hover)`,cancelBorder:`var(--border)`,cancelOutlineFocus:`var(--input-outline-focus)`,cancelForeground:`var(--foreground)`,cancelForegroundHover:`var(--foreground)`,inputBackground:Dv,inputForeground:Dv,inputBorder:`var(--border)`,inputOutlineFocus:Ov,formBorderRadius:`20px`,formContentBorderRadius:`6px`},Av={light:kv,dark:{...kv,background:`#29232f`,backgroundHover:`#352f3b`,foreground:`#ebe6ef`,border:`1.5px solid rgba(235, 230, 239, 0.15)`,success:`#2da98c`,error:`#f55459`}},jv=`Report a Bug`,Mv=`Cancel`,Nv=`Send Bug Report`,Pv=`Report a Bug`,Fv=`[email protected]`,Iv=`Email`,Lv=`What's the bug? What did you expect?`,Rv=`Description`,zv=`Your Name`,Bv=`Name`,Vv=`(required)`,Hv=`Thank you for your report!`,Uv=`widget`,Wv=`api`;async function Gv({client:e,scope:t,event:n}){let r={};e.emit&&e.emit(`preprocessEvent`,n,r);let i=await br(e.getOptions(),n,r,t,e,Ci());return i===null?(e.recordDroppedEvent(`event_processor`,`feedback`,n),null):(i.platform=i.platform||`javascript`,i)}async function Kv({feedback:{message:e,email:t,name:n,source:r,url:i}},{includeReplay:a=!0}={}){let o=P(),s=o&&o.getTransport(),c=o&&o.getDsn();if(!o||!s||!c)return;let l={contexts:{feedback:{contact_email:t,name:n,message:e,url:i,source:r}},type:`feedback`};return Ur(async e=>{e.clearBreadcrumbs(),[Wv,Uv].includes(String(r))&&e.setLevel(`info`);let t=await Gv({scope:e,client:o,event:l});if(!t)return;o.emit&&o.emit(`beforeSendFeedback`,t,{includeReplay:!!a});let n=Ta(t,c,o.getOptions()._metadata,o.getOptions().tunnel),i;try{i=await s.send(n)}catch(e){let t=Error(`Unable to send Feedback`);try{t.cause=e}catch{}throw t}if(i){if(typeof i.statusCode==`number`&&(i.statusCode<200||i.statusCode>=300))throw Error(`Unable to send Feedback`);return i}})}function qv({name:e,email:t,message:n,source:r=Wv,url:i=fe()},a={}){if(!n)throw Error(`Unable to submit feedback with empty message`);return Kv({feedback:{name:e,email:t,message:n,url:i,source:r}},a)}var Jv=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Yv(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Xv(e){let t=e.createElement(`style`);return t.textContent=` 20.widget__actor { 21 position: fixed; 22 left: var(--left); 23 right: var(--right); 24 bottom: var(--bottom); 25 top: var(--top); 26 z-index: var(--z-index); 27 28 line-height: 16px; 29 30 display: flex; 31 align-items: center; 32 gap: 8px; 33 34 border-radius: var(--border-radius); 35 cursor: pointer; 36 font-family: inherit; 37 font-size: var(--font-size); 38 font-weight: 600; 39 padding: 16px; 40 text-decoration: none; 41 z-index: 9000; 42 43 color: var(--foreground); 44 background-color: var(--background); 45 border: var(--border);
46 box-shadow: var(--box-shadow); 47 opacity: 1; 48 transition: opacity 0.1s ease-in-out; 49} 50 51.widget__actor:hover { 52 background-color: var(--background-hover); 53} 54 55.widget__actor svg { 56 width: 16px; 57 height: 16px; 58} 59 60.widget__actor--hidden { 61 opacity: 0; 62 pointer-events: none; 63 visibility: hidden; 64} 65 66.widget__actor__text { 67} 68 69@media (max-width: 600px) { 70 .widget__actor__text { 71 display: none; 72 } 73} 74 75.feedback-icon path { 76 fill: var(--foreground); 77} 78`,t}function Zv(e){let t=e.createElement(`style`);return t.textContent=` 79.dialog { 80 line-height: 25px; 81 background-color: rgba(0, 0, 0, 0.05); 82 border: none; 83 position: fixed; 84 inset: 0; 85 z-index: 10000; 86 width: 100vw; 87 height: 100vh; 88 display: flex; 89 align-items: center; 90 justify-content: center; 91 opacity: 1; 92 transition: opacity 0.2s ease-in-out; 93} 94 95.dialog:not([open]) { 96 opacity: 0; 97 pointer-events: none; 98 visibility: hidden; 99} 100.dialog:not([open]) .dialog__content { 101 transform: translate(0, -16px) scale(0.98); 102} 103 104.dialog__content { 105 position: fixed; 106 left: var(--left); 107 right: var(--right); 108 bottom: var(--bottom); 109 top: var(--top); 110 111 border: var(--border); 112 border-radius: var(--form-border-radius); 113 background-color: var(--background); 114 color: var(--foreground); 115 116 width: 320px; 117 max-width: 100%; 118 max-height: calc(100% - 2rem); 119 display: flex; 120 flex-direction: column;
121 box-shadow: var(--box-shadow); 122 transition: transform 0.2s ease-in-out; 123 transform: translate(0, 0) scale(1); 124} 125 126.dialog__header { 127 display: flex; 128 align-items: center; 129 justify-content: space-between; 130 font-size: 20px; 131 font-weight: 600; 132 padding: 24px 24px 0 24px; 133 margin: 0; 134 margin-bottom: 16px; 135} 136 137.brand-link { 138 display: inline-flex; 139} 140 141.error { 142 color: var(--error); 143 margin-bottom: 16px; 144} 145 146.form { 147 display: grid; 148 overflow: auto; 149 flex-direction: column; 150 gap: 16px; 151 padding: 0 24px 24px; 152} 153 154.form__error-container { 155 color: var(--error); 156} 157 158.form__error-container--hidden { 159 display: none; 160} 161 162.form__label { 163 display: flex; 164 flex-direction: column; 165 gap: 4px; 166 margin: 0px; 167} 168 169.form__label__text { 170 display: grid; 171 gap: 4px; 172 align-items: center; 173 grid-auto-flow: column; 174 grid-auto-columns: max-content; 175} 176 177.form__label__text--required { 178 font-size: 0.85em; 179} 180 181.form__input { 182 line-height: inherit; 183 background-color: var(--input-background); 184 box-sizing: border-box; 185 border: var(--input-border); 186 border-radius: var(--form-content-border-radius); 187 color: var(--input-foreground); 188 font-family: inherit; 189 font-size: var(--font-size); 190 font-weight: 500; 191 padding: 6px 12px; 192} 193 194.form__input::placeholder { 195 color: var(--input-foreground); 196 opacity: 0.65; 197} 198 199.form__input:focus-visible { 200 outline: 1px auto var(--input-outline-focus); 201} 202 203.form__input--textarea { 204 font-family: inherit; 205 resize: vertical; 206} 207 208.btn-group { 209 display: grid; 210 gap: 8px; 211 margin-top: 8px; 212} 213 214.btn { 215 line-height: inherit; 216 border: var(--cancel-border); 217 border-radius: var(--form-content-border-radius); 218 cursor: pointer; 219 font-family: inherit; 220 font-size: var(--font-size); 221 font-weight: 600; 222 padding: 6px 16px; 223} 224.btn[disabled] { 225 opacity: 0.6; 226 pointer-events: none; 227} 228 229.btn--primary { 230 background-color: var(--submit-background); 231 border-color: var(--submit-border); 232 color: var(--submit-foreground); 233} 234.btn--primary:hover { 235 background-color: var(--submit-background-hover); 236 color: var(--submit-foreground-hover); 237} 238.btn--primary:focus-visible { 239 outline: 1px auto var(--submit-outline-focus); 240} 241 242.btn--default { 243 background-color: var(--cancel-background); 244 color: var(--cancel-foreground); 245 font-weight: 500; 246} 247.btn--default:hover { 248 background-color: var(--cancel-background-hover); 249 color: var(--cancel-foreground-hover); 250} 251.btn--default:focus-visible { 252 outline: 1px auto var(--cancel-outline-focus); 253} 254 255.success-message { 256 background-color: var(--background); 257 border: var(--border); 258 border-radius: var(--border-radius);
259 box-shadow: var(--box-shadow); 260 font-weight: 600; 261 color: var(--success); 262 padding: 12px 24px; 263 line-height: 25px; 264 display: grid; 265 align-items: center; 266 grid-auto-flow: column; 267 gap: 6px; 268 cursor: default; 269} 270 271.success-icon path { 272 fill: var(--success); 273} 274`,t}function Qv(e){return` 275 --background: ${e.background}; 276 --background-hover: ${e.backgroundHover}; 277 --foreground: ${e.foreground}; 278 --error: ${e.error}; 279 --success: ${e.success}; 280 --border: ${e.border}; 281 --border-radius: ${e.borderRadius}; 282 --box-shadow: ${e.boxShadow}; 283 284 --submit-background: ${e.submitBackground}; 285 --submit-background-hover: ${e.submitBackgroundHover}; 286 --submit-border: ${e.submitBorder}; 287 --submit-outline-focus: ${e.submitOutlineFocus}; 288 --submit-foreground: ${e.submitForeground}; 289 --submit-foreground-hover: ${e.submitForegroundHover}; 290 291 --cancel-background: ${e.cancelBackground}; 292 --cancel-background-hover: ${e.cancelBackgroundHover}; 293 --cancel-border: ${e.cancelBorder}; 294 --cancel-outline-focus: ${e.cancelOutlineFocus}; 295 --cancel-foreground: ${e.cancelForeground}; 296 --cancel-foreground-hover: ${e.cancelForegroundHover}; 297 298 --input-background: ${e.inputBackground}; 299 --input-foreground: ${e.inputForeground}; 300 --input-border: ${e.inputBorder}; 301 --input-outline-focus: ${e.inputOutlineFocus}; 302 303 --form-border-radius: ${e.formBorderRadius}; 304 --form-content-border-radius: ${e.formContentBorderRadius}; 305 `}function $v(e,t,n){let r=e.createElement(`style`);return r.textContent=` 306:host { 307 --bottom: 1rem; 308 --right: 1rem; 309 --top: auto; 310 --left: auto; 311 --z-index: 100000; 312 --font-family: ${n.light.fontFamily}; 313 --font-size: ${n.light.fontSize}; 314 315 position: fixed; 316 left: var(--left); 317 right: var(--right); 318 bottom: var(--bottom); 319 top: var(--top); 320 z-index: var(--z-index); 321 322 font-family: var(--font-family); 323 font-size: var(--font-size); 324 325 ${Qv(t===`dark`?n.dark:n.light)} 326} 327 328${t===`system`?` 329@media (prefers-color-scheme: dark) { 330 :host { 331 ${Qv(n.dark)} 332 } 333}`:``} 334}`,r}function ey({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{let i=Tv.document,a=i.createElement(`div`);a.id=e;let o=a.attachShadow({mode:`open`});return o.appendChild($v(i,t,{dark:n,light:r})),o.appendChild(Zv(i)),{shadow:o,host:a}}catch{throw D.warn(`[Feedback] Browser does not support shadow DOM API`),Error(`Browser does not support shadow DOM API.`)}}async function ty(e,t,n){if(!e)return;let r=()=>{e&&e.showError(`There was a problem submitting feedback, please wait and try again.`)};e.hideError();try{return await qv({...t,source:Uv},n)}catch(e){Jv&&D.error(e),r()}}function ny(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var ry=20,iy=`http://www.w3.org/2000/svg`;function ay(){let e=e=>Tv.document.createElementNS(iy,e),t=ny(e(`svg`),{class:`feedback-icon`,width:`${ry}`,height:`${ry}`,viewBox:`0 0 ${ry} ${ry}`,fill:`none`}),n=ny(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=ny(e(`path`),{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
33456 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z`});t.appendChild(n).appendChild(r);let i=e(`defs`),a=ny(e(`clipPath`),{id:`clip0_57_80`}),o=ny(e(`rect`),{width:`${ry}`,height:`${ry}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),{get el(){return t}}}function $(e,t,...n){let r=Tv.document.createElement(e);t&&Object.entries(t).forEach(([e,t])=>{e===`className`&&typeof t==`string`?r.setAttribute(`class`,t):typeof t==`boolean`&&t?r.setAttribute(e,``):typeof t==`string`?r.setAttribute(e,t):e.startsWith(`on`)&&typeof t==`function`&&r.addEventListener(e.substring(2).toLowerCase(),t)});for(let e of n)oy(r,e);return r}function oy(e,t){let n=Tv.document;if(t!=null)if(Array.isArray(t))for(let n of t)oy(e,n);else t===!1||(typeof t==`string`?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function sy({buttonLabel:e,onClick:t}){function n(e){t&&t(e)}let r=$(`button`,{type:`button`,className:`widget__actor`,"aria-label":e,"aria-hidden":`false`},ay().el,e?$(`span`,{className:`widget__actor__text`},e):null);return r.addEventListener(`click`,n),{get el(){return r},show:()=>{r.classList.remove(`widget__actor--hidden`),r.setAttribute(`aria-hidden`,`false`)},hide:()=>{r.classList.add(`widget__actor--hidden`),r.setAttribute(`aria-hidden`,`true`)}}}function cy({label:e}){return{el:$(`button`,{type:`submit`,className:`btn btn--primary`,"aria-label":e},e)}}function ly(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function uy({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:i,messagePlaceholder:a,isRequiredLabel:o,cancelButtonLabel:s,submitButtonLabel:c,showName:l,showEmail:u,isNameRequired:d,isEmailRequired:f,defaultName:p,defaultEmail:m,onCancel:h,onSubmit:g}){let{el:_}=cy({label:c});function v(e){if(e.preventDefault(),e.target instanceof HTMLFormElement)try{if(g){let t=new FormData(e.target);g({name:ly(t,`name`),email:ly(t,`email`),message:ly(t,`message`)})}}catch{}}let y=$(`div`,{className:`form__error-container form__error-container--hidden`,"aria-hidden":`true`});function b(e){y.textContent=e,y.classList.remove(`form__error-container--hidden`),y.setAttribute(`aria-hidden`,`false`)}function x(){y.textContent=``,y.classList.add(`form__error-container--hidden`),y.setAttribute(`aria-hidden`,`true`)}let S=$(`input`,{id:`name`,type:l?`text`:`hidden`,"aria-hidden":l?`false`:`true`,name:`name`,required:d,className:`form__input`,placeholder:t,value:p}),C=$(`input`,{id:`email`,type:u?`text`:`hidden`,"aria-hidden":u?`false`:`true`,name:`email`,required:f,className:`form__input`,placeholder:r,value:m}),w=$(`textarea`,{id:`message`,autoFocus:`true`,rows:`5`,name:`message`,required:!0,className:`form__input form__input--textarea`,placeholder:a}),T=$(`button`,{type:`button`,className:`btn btn--default`,"aria-label":s,onClick:e=>{h&&h(e)}},s),ee=$(`form`,{className:`form`,onSubmit:v},[y,l&&$(`label`,{htmlFor:`name`,className:`form__label`},[$(`span`,{className:`form__label__text`},e,d&&$(`span`,{className:`form__label__text--required`},` ${o}`)),S]),!l&&S,u&&$(`label`,{htmlFor:`email`,className:`form__label`},[$(`span`,{className:`form__label__text`},n,f&&$(`span`,{className:`form__label__text--required`},` ${o}`)),C]),!u&&C,$(`label`,{htmlFor:`message`,className:`form__label`},[$(`span`,{className:`form__label__text`},i,$(`span`,{className:`form__label__text--required`},` ${o}`)),w]),$(`div`,{className:`btn-group`},[_,T])]);return{get el(){return ee},showError:b,hideError:x}}var dy=`http://www.w3.org/2000/svg`;function fy({colorScheme:e}){let t=e=>Tv.document.createElementNS(dy,e),n=ny(t(`svg`),{class:`sentry-logo`,width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`none`}),r=ny(t(`path`),{transform:`translate(11, 11)`,d:`M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z`});n.append(r);let i=t(`defs`),a=t(`style`);return a.textContent=` 335 path { 336 fill: ${e===`dark`?`#fff`:`#362d59`}; 337 }`,e===`system`&&(a.textContent+=` 338 @media (prefers-color-scheme: dark) { 339 path: { 340 fill: '#fff'; 341 } 342 } 343 `),i.append(a),n.append(i),{get el(){return n}}}
343function py({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:i,isEmailRequired:a,colorScheme:o,defaultName:s,defaultEmail:c,onClosed:l,onCancel:u,onSubmit:d,...f}){let p=null;function m(){h(),l&&l()}function h(){p&&(p.open=!1)}function g(){p&&(p.open=!0)}function _(){return p&&p.open===!0||!1}let{el:v,showError:y,hideError:b}=uy({showEmail:r,showName:n,isEmailRequired:a,isNameRequired:i,defaultName:s,defaultEmail:c,onSubmit:d,onCancel:u,...f});return p=$(`dialog`,{className:`dialog`,open:!0,onClick:m},$(`div`,{className:`dialog__content`,onClick:e=>{e.stopPropagation()}},$(`h2`,{className:`dialog__header`},e,t&&$(`a`,{className:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`},fy({colorScheme:o}).el)),v)),{get el(){return p},showError:y,hideError:b,open:g,close:h,checkIsOpen:_}}var my=16,hy=17,gy=`http://www.w3.org/2000/svg`;function _y(){let e=e=>Tv.document.createElementNS(gy,e),t=ny(e(`svg`),{class:`success-icon`,width:`${my}`,height:`${hy}`,viewBox:`0 0 ${my} ${hy}`,fill:`none`}),n=ny(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=ny(e(`path`),{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z`}),i=ny(e(`path`),{d:`M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z`});t.appendChild(n).append(i,r);let a=e(`defs`),o=ny(e(`clipPath`),{id:`clip0_57_156`}),s=ny(e(`rect`),{width:`${my}`,height:`${my}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),{get el(){return t}}}function vy({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}let r=$(`div`,{className:`success-message`,onClick:n},_y().el,e);return{el:r,remove:n}}function yy({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let i,a,o=!1;function s(){if(e)try{let t=vy({message:n.successMessageText,onRemove:()=>{r&&clearTimeout(r),u()}});if(!t.el)throw Error(`Unable to show success message`);e.appendChild(t.el);let r=setTimeout(()=>{t&&t.remove()},5e3)}catch(e){D.error(e)}}async function c(e){if(!a)return;let t=[];if(n.isNameRequired&&!e.name&&t.push(n.nameLabel),n.isEmailRequired&&!e.email&&t.push(n.emailLabel),e.message||t.push(n.messageLabel),t.length>0){a.showError(`Please enter in the following required fields: ${t.join(`, `)}`);return}if(!await ty(a,e)){n.onSubmitError&&n.onSubmitError();return}h(),s(),n.onSubmitSuccess&&n.onSubmitSuccess()}function l(){let e=P(),t=e&&e.getIntegrationByName&&e.getIntegrationByName(`Replay`);t&&t.flush().catch(e=>{Jv&&D.error(e)})}function u(){i&&i.show()}function d(){i&&i.hide()}function f(){i&&i.el&&i.el.remove()}function p(){try{if(a){a.open(),o=!0,n.onFormOpen&&n.onFormOpen(),l();return}let t=n.useSentryUser,r=F(),i=r&&r.getUser();if(a=py({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail
343:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:t&&i&&i[t.name]||``,defaultEmail:t&&i&&i[t.email]||``,onClosed:()=>{u(),o=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{m(),u()},onSubmit:c}),!a.el)throw Error(`Unable to open Feedback dialog`);e.appendChild(a.el),d(),n.onFormOpen&&n.onFormOpen(),l()}catch(e){D.error(e)}}function m(){a&&(a.close(),o=!1,n.onFormClose&&n.onFormClose())}function h(){if(a){m();let e=a.el;e&&e.remove(),a=void 0}}function g(){o||p(),d()}return r?r.addEventListener(`click`,g):t&&(i=sy({buttonLabel:n.buttonLabel,onClick:g}),i.el&&e.appendChild(i.el)),{get actor(){return i},get dialog(){return a},showActor:u,hideActor:d,removeActor:f,openDialog:p,closeDialog:m,removeDialog:h}}var by=Tv.document,xy=(e=>new Sy(e)),Sy=class e{static __initStatic(){this.id=`Feedback`}constructor({autoInject:t=!0,id:n=`sentry-feedback`,isEmailRequired:r=!1,isNameRequired:i=!1,showBranding:a=!0,showEmail:o=!0,showName:s=!0,useSentryUser:c={email:`email`,name:`username`},themeDark:l,themeLight:u,colorScheme:d=`system`,buttonLabel:f=jv,cancelButtonLabel:p=Mv,submitButtonLabel:m=Nv,formTitle:h=Pv,emailPlaceholder:g=Fv,emailLabel:_=Iv,messagePlaceholder:v=Lv,messageLabel:y=Rv,namePlaceholder:b=zv,nameLabel:x=Bv,isRequiredLabel:S=Vv,successMessageText:C=Hv,onFormClose:w,onFormOpen:T,onSubmitError:ee,onSubmitSuccess:te}={}){this.name=e.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:t,showBranding:a,id:n,isEmailRequired:r,isNameRequired:i,showEmail:o,showName:s,useSentryUser:c,colorScheme:d,themeDark:{...Av.dark,...l},themeLight:{...Av.light,...u},buttonLabel:f,cancelButtonLabel:p,submitButtonLabel:m,formTitle:h,emailLabel:_,emailPlaceholder:g,messageLabel:y,messagePlaceholder:v,nameLabel:x,namePlaceholder:b,isRequiredLabel:S,successMessageText:C,onFormClose:w,onFormOpen:T,onSubmitError:ee,onSubmitSuccess:te}}setupOnce(){if(Jt())try{this._cleanupWidgetIfExists();let{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Jv&&D.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{let n=Yv(this.options,t||{});return this._ensureShadowHost(n,({shadow:t})=>{let r=typeof e==`string`?by.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)return Jv&&D.error(`[Feedback] Unable to attach to target element`),null;let i=yy({shadow:t,options:n,attachTo:r});return this._widgets.add(i),this._widget||=i,i})}catch(e){return Jv&&D.error(e),null}}createWidget(e){try{return this._createWidget(Yv(this.options,e||{}))}catch(e){return Jv&&D.error(e),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(e){Jv&&D.error(e)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();let e=by.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:t})=>{let n=yy({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(Xv(by)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||=n,n})}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){let{id:t,colorScheme:r,themeLight:i,themeDark:a}=e,{shadow:o,host:s}=ey({id:t,colorScheme:r,themeLight:i,themeDark:a});this._shadow=o,this._host=s,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;let r=t({shadow:this._shadow,host:this._host});return n&&by.body.appendChild(this._host),r}};Sy.__initStatic();var Cy=`CaptureConsole`,wy=R(((e={})=>{let t=e.levels||_e;return{name:Cy,setupOnce(){},setup(e){`console`in E&&Qe(({args:n,level:r})=>{P()!==e||!t.includes(r)||Ty(n,r)})}}}));L(Cy,wy);function Ty(e,t){let n={level:bn(t),extra:{arguments:e}};Ur(r=>{if(r.addEventProcessor(e=>(e.logger=`console`,rt(e,{handled:!1,type:`console`}),e)),t===`assert`&&e[0]===!1){let t=`Assertion failed: ${C(e.slice(1),` `)||`console.assert`}`;r.setExtra(`arguments`,e.slice(1)),Nr(t,n);return}let i=e.find(e=>e instanceof Error);if(t===`error`&&i){Mr(i,n);return}Nr(C(e,` `),n)})}var Ey=`Debug`,Dy=R(((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:Ey,setupOnce(){},setup(e){e.on&&e.on(`beforeSendEvent`,(e,n)=>{if(t.debugger)debugger;ye(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))})})}}}));L(Ey,Dy);var Oy=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ky=`Dedupe`,Ay=R((()=>{let e;return{name:ky,setupOnce(){},processEvent(t){if(t.type)return t;try{if(jy(t,e))return Oy&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));L(ky,Ay);function jy(e,t){return t?!!(My(e,t)||Ny(e,t)):!1}function My(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fy(e,t)||!Py(e,t))}function Ny(e,t){let n=Iy(t),r=Iy(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fy(e,t)||!Py(e,t))}function Py(e,t){let n=Ly(e),r=Ly(t);if(!n&&!r)return!0;
343if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Fy(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Iy(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ly(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var Ry=`ExtraErrorData`,zy=R(((e={})=>{let t=e.depth||3,n=e.captureErrorCause||!1;return{name:Ry,setupOnce(){},processEvent(e,r){return By(e,r,t,n)}}}));L(Ry,zy);function By(e,t={},n,r){if(!t.originalException||!i(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=Vy(t.originalException,r);if(o){let t={...e.contexts},r=Zt(o,n);return f(r)&&(ke(r,`__sentry_skip_normalization__`,!0),t[a]=r),{...e,contexts:t}}return e}function Vy(e,t){try{let n=[`name`,`message`,`stack`,`line`,`column`,`fileName`,`lineNumber`,`columnNumber`,`toJSON`],r={};for(let t of Object.keys(e)){if(n.indexOf(t)!==-1)continue;let a=e[t];r[t]=i(a)?a.toString():a}if(t&&e.cause!==void 0&&(r.cause=i(e.cause)?e.cause.toString():e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];r[e]=i(n)?n.toString():n}}return r}catch(e){Oy&&D.error(`Unable to extract extra data from the Error object:`,e)}return null}var Hy=E,Uy=`ReportingObserver`,Wy=new WeakMap,Gy=R(((e={})=>{let t=e.types||[`crash`,`deprecation`,`intervention`];function n(e){if(Wy.has(P()))for(let t of e)Ur(e=>{e.setExtra(`url`,t.url);let n=`ReportingObserver [${t.type}]`,r=`No details available`;if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra(`body`,n),t.type===`crash`){let e=t.body;r=[e.crashId||``,e.reason||``].join(` `).trim()||r}else r=t.body.message||r}Nr(`${n}: ${r}`)})}return{name:Uy,setupOnce(){St()&&new Hy.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Wy.set(e,!0)}}}));L(Uy,Gy);var Ky=`RewriteFrames`,qy=R(((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=e.iteratee||(e=>{if(!e.filename)return e;let r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes(`\\`)&&!e.filename.includes(`/`),i=/^\//.test(e.filename);if(r||i){let i=r?e.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):e.filename,a=t?un(t,i):dn(i);e.filename=`${n}${a}`}return e});function i(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:a(e.stacktrace)}}))}}}catch{return e}}function a(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>r(e))}}return{name:Ky,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=i(t)),t}}}));L(Ky,qy);var Jy=`SessionTiming`,Yy=R((()=>{let e=Date.now();return{name:Jy,setupOnce(){},processEvent(t){let n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}));L(Jy,Yy);var Xy=`HttpClient`,Zy=R(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Xy,setupOnce(){},setup(e){ob(e,t),sb(e,t)}}}));L(Xy,Zy);function Qy(e,t,n,r){if(cb(e,n.status,n.url)){let e=ub(t,r),i,a,o,s;db()&&([{headers:i,cookies:o},{headers:a,cookies:s}]=[{cookieHeader:`Cookie`,obj:e},{cookieHeader:`Set-Cookie`,obj:n}].map(({cookieHeader:e,obj:t})=>{let n=nb(t.headers),r;try{let t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=tb(t))}catch{Oy&&D.log(`Could not extract cookies from header ${e}`)}return{headers:n,cookies:r}})),Pr(lb({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:o,responseCookies:s}))}}function $y(e,t,n,r){if(cb(e,t.status,t.responseURL)){let e,i,a;if(db()){try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(i=tb(e))}catch{Oy&&D.log(`Could not extract cookies from response headers`)}try{a=rb(t)}catch{Oy&&D.log(`Could not extract headers from response`)}e=r}Pr(lb({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:i}
343))}}function eb(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function tb(e){return e.split(`; `).reduce((e,t)=>{let[n,r]=t.split(`=`);return e[n]=r,e},{})}function nb(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function rb(e){let t=e.getAllResponseHeaders();return t?t.split(`\r 344`).reduce((e,t)=>{let[n,r]=t.split(`: `);return e[n]=r,e},{}):{}}function ib(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function ab(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function ob(e,t){xt()&&Ct(n=>{if(P()!==e)return;let{response:r,args:i}=n,[a,o]=i;r&&Qy(t,a,r,o)})}function sb(e,t){`XMLHttpRequest`in E&&Ht(n=>{if(P()!==e)return;let r=n.xhr,i=r[Vt];if(!i)return;let{method:a,request_headers:o}=i;try{$y(t,r,a,o)}catch(e){Oy&&D.warn(`Error while extracting response event form XHR response`,e)}})}function cb(e,t,n){return ab(e.failedRequestStatusCodes,t)&&ib(e.failedRequestTargets,n)&&!Co(n,P())}function lb(e){let t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:`Error`,value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:eb(e.responseHeaders)}}};return rt(n,{type:`http.client`,handled:!1}),n}function ub(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function db(){let e=P();return e?!!e.getOptions().sendDefaultPii:!1}var fb=E,pb=7,mb=`ContextLines`,hb=R(((e={})=>{let t=e.frameContextLines==null?pb:e.frameContextLines;return{name:mb,setupOnce(){},processEvent(e){return gb(e,t)}}}));L(mb,hb);function gb(e,t){let n=fb.document,r=fb.location&&vn(fb.location.href);if(!n||!r)return e;let i=e.exception&&e.exception.values;if(!i||!i.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let o=[`<!DOCTYPE html>`,`<html>`,...a.split(` 345`),`</html>`];return i.forEach(e=>{let n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map(e=>_b(e,o,r,t)))}),e}function _b(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||it(t,e,r),e}function vb(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function yb(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=vb(n);return e=>r.then(n=>e(n.transaction(t,`readwrite`).objectStore(t)))}function bb(e){return vb(e.getAllKeys())}function xb(e,t,n){return e(e=>bb(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),vb(e.transaction)}))}function Sb(e){return e(e=>bb(e).then(t=>{if(t.length!==0)return vb(e.get(t[0])).then(n=>(e.delete(t[0]),vb(e.transaction).then(()=>n)))}))}function Cb(e){let t;function n(){return t??=yb(e.dbName||`sentry-offline`,e.storeName||`queue`),t}return{insert:async t=>{try{let r=await Hn(t,e.textEncoder);await xb(n(),r,e.maxQueueSize||30)}catch{}},pop:async()=>{try{let t=await Sb(n());if(t)return Wn(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function wb(e){return t=>e({...t,createStore:Cb})}function Tb(e){return wb(go(e))}var Eb=1e6,Db=`0`,Ob=`main`,kb=``,Ab=``,jb=``,Mb=U.navigator&&U.navigator.userAgent||``,Nb=``,Pb=U.navigator&&U.navigator.language||U.navigator&&U.navigator.languages&&U.navigator.languages[0]||``;function Fb(e){return typeof e==`object`&&!!e&&`getHighEntropyValues`in e}var Ib=U.navigator&&U.navigator.userAgentData;Fb(Ib)&&Ib.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(kb=e.platform||``,jb=e.architecture||``,Nb=e.model||``,Ab=e.platformVersion||``,e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];Mb=`${t.brand} ${t.version}`}}).catch(e=>void 0);
345function Lb(e){return!(`thread_metadata`in e)}function Rb(e){return Lb(e)?Hb(e):e}function zb(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t==`string`&&t.length!==32&&W&&D.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t==`string`?t:``}function Bb(e,t,n,r){if(r.type!==`transaction`)throw TypeError(`Profiling events may only be attached to transactions, this should never occur.`);if(n==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=zb(r),a=Rb(n),o=t||(typeof r.start_timestamp==`number`?r.start_timestamp*1e3:Date.now()),s=typeof r.timestamp==`number`?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(o).toISOString(),platform:`javascript`,version:`1`,release:r.release||``,environment:r.environment||`production`,runtime:{name:`javascript`,version:U.navigator.userAgent},os:{name:kb,version:Ab,build_number:Mb},device:{locale:Pb,model:Nb,manufacturer:Mb,architecture:jb,is_emulator:!1},debug_meta:{images:Kb(n.resources)},profile:a,transactions:[{name:r.transaction||``,id:r.event_id||A(),trace_id:i,active_thread_id:Db,relative_start_ns:`0`,relative_end_ns:((s-o)*1e6).toFixed(0)}]}}function Vb(e){return e.op===`pageload`}function Hb(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[Db]:{name:Ob}}};if(!e.samples.length)return r;let i=e.samples[0].timestamp,a=typeof performance.timeOrigin==`number`?performance.timeOrigin:j||0,o=a-(j||a);for(let a=0;a<e.samples.length;a++){let s=e.samples[a];if(s.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((s.timestamp+o-i)*Eb).toFixed(0),stack_id:t,thread_id:Db};continue}let c=e.stacks[s.stackId],l=[];for(;c;){l.push(c.frameId);let t=e.frames[c.frameId];r.frames[c.frameId]===void 0&&(r.frames[c.frameId]={function:t.name,abs_path:typeof t.resourceId==`number`?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),c=c.parentId===void 0?void 0:e.stacks[c.parentId]}let u={elapsed_since_start_ns:((s.timestamp+o-i)*Eb).toFixed(0),stack_id:n,thread_id:Db};r.stacks[n]=l,r.samples[a]=u,n++}return r}function Ub(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:`profile`},n]);return e}function Wb(e){let t=[];return zn(e,(e,n)=>{if(n===`transaction`)for(let n=1;n<e.length;n++){let r=e[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&t.push(e[n])}}),t}var Gb=new WeakMap;function Kb(e){let t=E._sentryDebugIds;if(!t)return[];let n=P(),r=n&&n.getOptions(),i=r&&r.stackParser;if(!i)return[];let a,o=Gb.get(i);o?a=o:(a=new Map,Gb.set(i,a));let s=Object.keys(t).reduce((e,n)=>{let r,o=a.get(n);o?r=o:(r=i(n),a.set(n,r));for(let i=r.length-1;i>=0;i--){let a=r[i],o=a&&a.filename;if(a&&o){e[o]=t[n];break}}return e},{}),c=[];for(let t of e)t&&s[t]&&c.push({type:`sourcemap`,code_file:t,debug_id:s[t]});return c}function qb(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?(W&&D.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(W&&D.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Jb(e){return e.samples.length<2?(W&&D.log(`[Profiling] Discarding profile because it contains less than 2 samples`),!1):e.frames.length?!0:(W&&D.log(`[Profiling] Discarding profile because it contains no frames`),!1)}var Yb=!1,Xb=3e4;function Zb(e){return typeof e==`function`}function Qb(){let e=U.Profiler;if(!Zb(e)){W&&D.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(Xb/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{W&&(D.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),D.log(`[Profiling] Disabling profiling for current user session.`)),Yb=!0}}function $b(e){if(Yb)return W&&D.log(`[Profiling] Profiling has been disabled for the duration of the current user session.`),!1;if(!e.isRecording())return W&&D.log(`[Profiling] Discarding profile because transaction was not sampled.`),!1;let t=P(),n=t&&t.getOptions();if(!n)return W&&D.log(`[Profiling] Profiling disabled, no options foun
345d.`),!1;let r=n.profilesSampleRate;return qb(r)?r?r===!0||Math.random()<r?!0:(W&&D.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(W&&D.log(`[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0`),!1):(W&&D.warn(`[Profiling] Discarding profile because of invalid sample rate.`),!1)}function ex(e,t,n,r){return Jb(n)?Bb(e,t,n,r):null}var tx=new Map;function nx(){return tx.size}function rx(e){let t=tx.get(e);return t&&tx.delete(e),t}function ix(e,t){if(tx.set(e,t),tx.size>30){let e=tx.keys().next().value;tx.delete(e)}}function ax(e){return e?$b(e)?ox(e):e:(W&&D.log(`[Profiling] Transaction is undefined, skipping profiling`),e)}function ox(e){let t;Vb(e)&&(t=wn()*1e3);let n=Qb();if(!n)return e;W&&D.log(`[Profiling] started profiling transaction: ${N(e).description}`);let r=A();async function i(){return!e||!n?null:n.stop().then(t=>(a&&=(U.clearTimeout(a),void 0),W&&D.log(`[Profiling] stopped profiling of transaction: ${N(e).description}`),t?(ix(r,t),null):(W&&D.log(`[Profiling] profiler returned null profile for: ${N(e).description}`,`this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started`),null))).catch(e=>(W&&D.log(`[Profiling] error while stopping profiler:`,e),null))}let a=U.setTimeout(()=>{W&&D.log(`[Profiling] max profile duration elapsed, stopping profiling for:`,N(e).description),i()},Xb),o=e.end.bind(e);function s(){return e?(i().then(()=>{e.setContext(`profile`,{profile_id:r,start_timestamp:t}),o()},()=>{o()}),e):o()}return e.end=s,e}var sx=`BrowserProfiling`,cx=R((()=>({name:sx,setupOnce(){},setup(e){let t=F().getTransaction();if(t&&Vb(t)&&$b(t)&&ox(t),typeof e.on!=`function`){D.warn(`[Profiling] Client does not support hooks, profiling will be disabled`);return}e.on(`startTransaction`,e=>{$b(e)&&ox(e)}),e.on(`beforeEnvelope`,e=>{if(!nx())return;let t=Wb(e);if(!t.length)return;let n=[];for(let e of t){let t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id,i=t&&t.profile&&t.profile.start_timestamp;if(typeof r!=`string`){W&&D.log(`[Profiling] cannot find profile for a transaction without a profile context`);continue}if(!r){W&&D.log(`[Profiling] cannot find profile for a transaction without a profile context`);continue}t&&t.profile&&delete t.profile;let a=rx(r);if(!a){W&&D.log(`[Profiling] Could not retrieve profile for transaction: ${r}`);continue}let o=ex(r,i,a,e);o&&n.push(o)}Ub(e,n)})}}))),lx=L(sx,cx),ux=e({Breadcrumbs:()=>ku,BrowserClient:()=>Zl,BrowserProfilingIntegration:()=>lx,BrowserTracing:()=>_l,Dedupe:()=>zu,Feedback:()=>Sy,FunctionToString:()=>is,GlobalHandlers:()=>Yu,HttpContext:()=>od,Hub:()=>bi,InboundFilters:()=>Uo,Integrations:()=>fx,LinkedErrors:()=>dd,ModuleMetadata:()=>Ro,Replay:()=>P_,ReplayCanvas:()=>wv,SDK_VERSION:()=>_i,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>aa,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>oa,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>ia,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>ra,Scope:()=>mi,TryCatch:()=>hd,WINDOW:()=>U,addBreadcrumb:()=>Ir,addEventProcessor:()=>io,addGlobalEventProcessor:()=>cr,addIntegration:()=>Ra,addTracingExtensions:()=>xa,breadcrumbsIntegration:()=>Ou,browserApiErrorsIntegration:()=>md,browserProfilingIntegration:()=>cx,browserTracingIntegration:()=>Cl,captureConsoleIntegration:()=>wy,captureEvent:()=>Pr,captureException:()=>Mr,captureMessage:()=>Nr,captureSession:()=>ei,captureUserFeedback:()=>Od,chromeStackLineParser:()=>pu,close:()=>Jr,configureScope:()=>Fr,contextLinesIntegration:()=>hb,continueTrace:()=>Ki,createTransport:()=>uo,createUserFeedbackEnvelope:()=>Yl,debugIntegration:()=>Dy,dedupeIntegration:()=>Ay,defaultIntegrations:()=>bd,defaultRequestInstrumentationOptions:()=>nl,defaultStackLineParsers:()=>Cu,defaultStackParser:()=>wu,endSession:()=>Qr,eventFromException:()=>Ul,eventFromMessage:()=>Wl,exceptionFromError:()=>Il,extraErrorDataIntegration:()=>zy,extractTraceparentData:()=>Ai,feedbackIntegration:()=>xy,flush:()=>qr,forceLoad:()=>wd,functionToStringIntegration:()=>rs,geckoStackLineParser:()=>gu,getActiveSpan:()=>Gi,getActiveTransaction:()=>ki,getClient:()=>P,getCurrentHub:()=>I,getCurrentScope:()=>F,getDefaultIntegrations:()=>xd,getHubFromCarrier:()=>Di,getReplay:()=>L_,getSpanStatusFromHttpCode:()=>Fi,globalHandlersIntegration:()=>Ju,httpClientIntegration:()=>Zy,httpContextIntegration:()=>ad,inboundFiltersIntegration:()=>Ho,init:()=>Sd,instrumentOutgoingRequests:()=>rl,isInitialized:()=>Xr,lastEventId:()=>Yr,linkedErrorsIntegration:()=>ud,makeBrowserOfflineTransport:()=>Tb,makeFetchTransport:()=>tu,makeMain:()=>Si,makeMultiplexedTransport:()=>bo,makeXHRTransport:()=>ru,metrics:()=>ys,moduleMetadataIntegration:()=>Lo,onLoad:()=>Td,onProfilingStartRouteTransaction:()=>ax,opera10StackLineParser:()=>bu,opera11StackLineParser:()=>Su,parameterize:()=>Oo,replayCanvasIntegration:()=>Cv,replayIntegration:()=>N_,reportingObserverIntegration:()=>Gy,rewriteFramesIntegration:()=>qy,sendFeedback:()=>qv,sessionTimingIntegration:()=>Yy,setContext:()=>Lr,setCurrentClient:()=>co,setExtra:()=>zr,setExtras:()=>Rr,setHttpStatus:()=>Li,setMeasurement:()=>Sa,setTag:()=>Vr,setTags:()=>Br,setUser:()=>Hr,showReportDialog:()=>Cd,spanStatusfromHttpCode:()=>Ii,startBrowserTracingNavigationSpan:()=>Tl,startBrowserTracingPageLoadSpan:()=>wl,startInactiveSpan:()=>Wi,startSession:()=>Zr,startSpan:()=>Hi,startSpanManual:()=>Ui,startTransaction:()=>Kr,trace:()=>Vi,winjsStackLineParser:()=>
345vu,withActiveSpan:()=>Gr,withIsolationScope:()=>Wr,withScope:()=>Ur,wrap:()=>Ed}),dx={};U.Sentry&&U.Sentry.Integrations&&(dx=U.Sentry.Integrations);var fx={...dx,...bs,...kd},px={Sentry:ux,installSentry(e){Sd(Object.assign({},{dsn:`https://[email protected]/41079`},e))}};window.Sentry===void 0&&(window.Sentry=window.Sentry||px.Sentry,px.installSentry({environment:`production`,release:``,ignoreErrors:[/twttr.*defined/,/undefined is not an object \(evaluating '__gCrWeb\.autofill\.extractForms'\)/,/Blocked a frame with origin.*from accessing a (cross-origin frame|frame with origin)/,/null is not an object \(evaluating 'elt\.parentNode'\)/,/Exception thrown and not caught/,/Can't find variable: inf/,/Access is denied\./,/androidInterface is not defined/,/undefined is not an object \(evaluating 'this.ui.form\[0\].submit'\)/,/undefined is not an object \(evaluating 'buttonsNav.children'\)/,/Cannot read properties of undefined \(reading 'submit'\)/,/undefined is not an object \(evaluating 'this.ui.submit\[0\].disabled=!0'\)/,/Cannot set properties of undefined \(setting 'disabled'\)/,/Cannot read property 'children' of undefined/,/Cannot read properties of undefined \(reading 'children'\)/,/Cannot read properties of undefined \(reading 'Linker'\)/,/undefined is not an object \(evaluating 'new window.gaplugins.Linker'\)/,/Cannot read property 'length' of undefined/,/this.hostIndex.push is not a function/,/The string did not match the expected pattern./,/undefined is not an object \(evaluating 'n.x'\)/,/userInput is not defined/,/Can't find variable: userInput/,/Cannot read properties of null \(reading 'parentNode'\)/,/Cannot read properties of null \(reading 'removeChild'\)/,/UnknownError/,/Your focus-trap must have at least one container with at least one tabbable node in it at all times/,/Cannot read properties of null \(reading 'contentWindow'\)/,/buttonsNav is undefined/,/DOM Exception 12: An invalid or illegal string was specified./,/null is not an object \(evaluating 't.addEventListener'\)/,/Cannot read properties of null \(reading 'style'\)/,/Cannot read properties of null \(reading 'contentWindow'\)/,/Permission denied to access property "call"/,/Permission denied to access property "dispatchEvent" on cross-origin object/,/DOM Exception 22: An attempt was made to add something to storage that exceeded the quota./,/null is not an object \(evaluating 'e.parentNode'\)/,/The quota has been exceeded./,/Cannot read properties of null \(reading 'classList'\)/,/Maximum call stack size exceeded./,/AudioEye is not defined/,/xiFrame is null/,/null is not an object \(evaluating 'xiFrame.contentWindow'\)/,/Unable to get property 'addEventListener' of undefined or null reference/,/Cannot read properties of undefined \(reading 'planRemediations'\)/,/Cannot read property 'toString' of undefined/]}));export{n as t}; 346//# sourceMappingURL=sentry-DJeAX3LE.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.