1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="16e6da26-b52b-5a81-b732-8b319abcecb5")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d67118247fd4c6cd14976b17c5b313d268ac5186`}}catch{}})();import{s as e,t}from"./react-C8RDpAiq.js";import{$ as n,A as r,B as i,C as a,Ct as o,D as s,E as c,Et as l,F as u,G as d,H as f,I as p,J as m,K as h,L as g,M as _,N as v,O as y,P as b,Q as x,R as S,S as C,St as w,T as ee,Tt as T,U as E,V as D,W as O,X as k,Y as te,Z as ne,_ as re,_t as A,at as ie,b as ae,bt as j,c as oe,ct as se,d as ce,dt as le,et as ue,f as de,ft as fe,g as pe,gt as M,h as me,ht as he,i as ge,it as _e,j as ve,k as ye,l as be,lt as xe,m as Se,mt as Ce,n as we,nt as Te,o as Ee,ot as De,p as Oe,pt as ke,q as Ae,r as je,rt as Me,s as Ne,st as Pe,t as Fe,tt as Ie,u as Le,ut as Re,v as ze,vt as Be,w as Ve,wt as He,x as Ue,xt as We,y as Ge,yt as Ke,z as qe}from"./exports-BoDa4nq8.js";import{t as Je}from"./react-dom-B2w462Tc.js";import{t as Ye}from"./client-DK-XcYXq.js";import{N as Xe,P as Ze,V as Qe,Y as $e,Z as et,a as tt,s as nt}from"./components-iB9UCfkn.js";import{d as rt,f as it,h as at,l as ot,m as st,n as ct,p as lt,t as ut,u as dt}from"./errorBoundaries-BSTke7XJ.js";import{o as ft,s as pt,t as mt}from"./env-CJiKMPBZ.js";import{t as ht}from"./host-DKNVZeON.js";import{t as gt}from"./officeReady-BuG8HCbC.js";import{t as _t}from"./jsx-runtime-BorPB8V4.js";var vt={},yt={};function bt(e,t){return vt[e]=vt[e]||[],vt[e].push(t),()=>{let n=vt[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function xt(e,t){if(!yt[e]){yt[e]=!0;try{t()}catch(t){l&&j.error(`Error while instrumenting ${e}`,t)}}}function N(e,t){let n=e&&vt[e];if(n)for(let r of n)try{r(t)}catch(t){l&&j.error(`Error while triggering instrumentation handler. 4Type: ${e} 5Name: ${M(r)} 6Error:`,t)}}var St=null;function Ct(e){let t=`error`;bt(t,e),xt(t,wt)}function wt(){St=T.onerror,T.onerror=function(e,t,n,r,i){return N(`error`,{column:r,error:i,line:n,msg:e,url:t}),St?St.apply(this,arguments):!1},T.onerror.__SENTRY_INSTRUMENTED__=!0}var Tt=null;function Et(e){let t=`unhandledrejection`;bt(t,e),xt(t,Dt)}function Dt(){Tt=T.onunhandledrejection,T.onunhandledrejection=function(e){return N(`unhandledrejection`,e),!Tt||Tt.apply(this,arguments)},T.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Ot(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}function kt(e){j.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function At(e,t){if(!t?.length)return!1;for(let n of t){if(Nt(n)){if(e.description&&f(e.description,n))return l&&kt(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&f(e.description,n.name),i=!n.op||e.op&&f(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>jt(e.attributes?.[t],n));if(r&&i&&a)return l&&kt(e),!0}return!1}function jt(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?f(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Mt(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Nt(e){return typeof e==`string`||e instanceof RegExp}function Pt(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function Ft(e,t=[]){return[e,t]}function It(e,t){let[n,r]=e;return[n,[...r,t]]}function Lt(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 Rt(e,t){return Lt(e,(e,n)=>t.includes(n))}function zt(e){let t=o(T);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Bt(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[zt(r),e]:r.push(typeof e==`string`?zt(e):e)}for(let e of n){let[t,n]=e;if(i(` 7${JSON.stringify(t)} 8`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(d(n))}i(e)}}return typeof r==`string`?r:Vt(r)}function Vt(e){let t=e.reduce((e,t)=>
8e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Ht(e){let t=typeof e.data==`string`?zt(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Ut={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Wt(e){return e in Ut}function Gt(e){return Wt(e)?Ut[e]:e}function Kt(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function qt(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(m()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ae(r)},...i&&{trace:i}}}function Jt(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Yt(e,t,n,r){let i=Kt(n);return Ft({sent_at:new Date(m()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ae(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Xt(e,t,n,r){let i=Kt(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Jt(e,n?.sdk);let o=qt(e,i,r,t);return delete e.sdkProcessingMetadata,Ft(o,[[{type:a},e]])}function Zt(e){return e.getOptions().traceLifecycle===`stream`}function Qt(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var $t=`url.full`;function en(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function tn(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function nn(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function rn(e){return`${nn(e)}${e.projectId}/envelope/`}function an(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function on(e,t,n){return t||`${rn(e)}?${an(e,n)}`}var sn=[];function cn(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function ln(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return cn(r)}function un(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&fn(e,t,n)}),n}function dn(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function fn(e,t,n){if(n[t.name]){l&&j.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!sn.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),sn.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(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)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),l&&j.log(`Integration installed: ${t.name}`)}function P(e){return e}function pn(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function mn(){return`npm`}function hn(){return!pn()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function gn(){return typeof window<`u`&&(!hn()||_n())}function _n(){return T.process?.type===`renderer`}function vn(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...gn()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function yn(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ae(r)),Ft(a,[vn(e,i)])}function bn(e,t){let n=t??xn(e)??[];if(n.length===0)return;let r=e.getOptions(),i=yn(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Sn().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function xn(e){return Sn().get(e)}function Sn(){return w(`clientToLogBufferMap`,()=>new WeakMap)}function Cn(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...gn()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function wn(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ae(r)),Ft(a,[Cn(e,i)])}function Tn(e,t){let n=t??En(e)??[];if(n.length===0)return;let r=e.getOptions(),i=wn(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Dn().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function En(e){return Dn().get(e)}function Dn(){return w(`clientToMetricBufferMap`,()=>new WeakMap)}function On(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links};return Ge(t)}function kn(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||Zt(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(On(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...gn()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}var An=Symbol.for(`SentryBufferFullError`);function jn(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Le(An);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ce(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>tn(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Mn=6e4;function Nn(e,t=m()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Mn:r-t}function Pn(e,t){return e[t]||e.all||0}function Fn(e,t,n=m()){return Pn(e,t)>n}function In(e,{statusCode:t,headers:n},r=m()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=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+Nn(o,r):t===429&&(i.all=r+6e4);return i}function Ln(e,t,n=jn(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Lt(i,(t,n)=>{let i=Gt(n);Fn(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=Ft(i[0],a),s=t=>{if(Rt(o,[`client_report`])){l&&j.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Lt(o,(n,r)=>{e.recordDroppedEvent(t,Gt(r))})};return n.add(()=>t({body:Bt(o)}).then(e=>e.statusCode===413?(l&&j.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(l&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&j.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=In(r,e),e),e=>{throw s(`network_error`),l&&j.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
8{if(e===An)return l&&j.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Rn(e,t,n){let r=[{type:`client_report`},{timestamp:n||u(),discarded_events:e}];return Ft(t?{dsn:t}:{},[r])}function zn(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Bn(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:c}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:o,profile_id:s?.[Ve],exclusive_time:s?.[a],measurements:e.measurements,is_segment:!0}}function Vn(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Hn=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function Un(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Hn},httpHeaders:{request:{deny:Hn},response:{deny:Hn}},httpBodies:[],urlQueryParams:{deny:Hn},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var Wn={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function Gn(e){let t=e.dataCollection==null?Un(e.sendDefaultPii):Wn,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var Kn=`Not capturing exception because it's already been captured.`,qn=`Discarded session because of missing or non-string release`,Jn=Symbol.for(`SentryInternalError`),Yn=Symbol.for(`SentryDoNotSendEventError`),Xn=5e3;function Zn(e){return{message:e,[Jn]:!0}}function Qn(e){return{message:e,[Yn]:!0}}function $n(e){return Pe(e)&&Jn in e}function er(e){return Pe(e)&&Yn in e}function tr(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??Xn;t>0&&(s=!0,o=tn(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var nr=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=jn(e.transportOptions?.bufferSize??64),this._dataCollection=Gn(e),e.dsn?this._dsn=Ue(e.dsn):l&&j.warn(`No DSN provided, client will not send events.`),this._dsn){let t=on(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&tr(this,`afterCaptureLog`,`flushLogs`,lr,bn),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&tr(this,`afterCaptureMetric`,`flushMetrics`,cr,Tn)}captureException(e,t,n){let r=D();if(qe(e))return l&&j.log(Kn),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:D(),...n}
8,a=se(e)?e:String(e),o=Re(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=D();if(t?.originalException&&qe(t.originalException))return l&&j.log(Kn),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=rr(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),v(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),fn(this,e,this._integrations),t||dn(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=kn(e,this),r=Xt(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=It(r,Ht(e));n&&(r=It(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Se}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){l&&j.warn(qn);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){l&&j.warn(qn);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Yt(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;l&&j.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return l&&j.error(`Error while sending envelope:`,e),{}}return l&&j.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=un(this,e),dn(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(v(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,i){let a=this.getOptions(),o=this.getIntegrationNames();return!t.integrations&&o.length&&(t.integrations=o),this.emit(`preprocessEvent`,e,t),e.type||i.setLastEventId(e.event_id||t.event_id),be(a,e,t,n,this,i).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...r(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:de(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=y(),r=ye()){return l&&or(e)&&j.log(`Captured error event \`${zn(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{l&&(er(e)?j.log(e.message):$n(e)?j.warn(e.message):j.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=sr(e),s=or(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Ot(a);if(s&&typeof l==`number`&&te()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Le(Qn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=rr(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Qn("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:ir(ar(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Qn(`${c} returned \`null\`, will not send event.`)}
8let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw er(e)||$n(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Zn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 9Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===An&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){l&&j.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){l&&j.log(`No outcomes to send`);return}if(!this._dsn){l&&j.log(`No dsn provided, will not send outcomes`);return}l&&j.log(`Sending outcomes:`,e);let t=Rn(e,this._options.tunnel&&ae(this._dsn));this.sendEnvelope(t)}};function rr(e){return e===`replay_event`?`replay`:e||`error`}function ir(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ke(e))return e.then(e=>{if(!xe(e)&&e!==null)throw Zn(n);return e},e=>{throw Zn(`${t} rejected with ${e}`)});if(!xe(e)&&e!==null)throw Zn(n);return e}function ar(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Pt(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(or(c)&&i)return i(c,r);if(sr(c)){if(s||o){let t=Bn(c);if(o?.length&&At({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=_(n,Vn(e)):re()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&At({description:e.description,op:e.op,attributes:e.data},o)){Mt(n,e);continue}if(s){let n=s(e);n?t.push(n):(re(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function or(e){return e.type===void 0}function sr(e){return e.type===`transaction`}function cr(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+ur(e.attributes)}function lr(e){let t=0;return e.message&&(t+=e.message.length*2),t+ur(e.attributes)}function ur(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*dr(e[0]):Re(e)?t+=dr(e):t+=100}),t}function dr(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function fr(e,t){t.debug===!0&&(l?j.enable():Ke(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),y().update(t.initialScope);let n=new e(t);return pr(n),n.init(),n}function pr(e){y().setClient(e)}var mr=`thismessage:/`;function hr(e){return`isRelative`in e}function gr(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?mr:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function _r(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 vr(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function yr(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return xr(e,n)||br(e,r)}function br(e,t){return t?Cr(e)===Cr(t):!1}function xr(e,t){let n=gr(e);return!n||hr(n)||!t?!1:Sr(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function Sr(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Cr(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function wr(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Tr(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:He})),i.version=He)}var Er=100;function Dr(e,t){let n=s(),r=ye();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Er}=n.getOptions();if(a<=0)return;let o={timestamp:u(),...e},c=i?Ke(()=>i(o,t)):o;c!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,c,t),r.addBreadcrumb(c,a))}var Or=`FunctionToString`,kr=new WeakMap,Ar=P((()=>({name:Or,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r=n(this),i;try{kr.has(s())&&r!==void 0&&(i=r)}catch{}return e.apply(i??this,t)}}catch{}},setup(e){kr.set(e,!0)}}))),jr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Mr=`EventFilters`,Nr=P((e={})=>{let t;return{name:Mr,setup(n){t=Fr(e,n.getOptions())},processEvent(n,r,i){return t||=Fr(e,i.getOptions()),Ir(n,t)?null:n}}}),Pr=P(((e={})=>({...Nr(e),name:`InboundFilters`})));function Fr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jr],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ir(e,t){if(!e.type){if(Lr(e,t.ignoreErrors))return l&&j.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 10Event: ${i(e)}`),!0;if(Ur(e))return l&&j.warn(`Event dropped due to not having an error message, error type or stacktrace. 11Event: ${i(e)}`),!0;if(zr(e,t.denyUrls))return l&&j.warn(`Event dropped due to being matched by \`denyUrls\` option. 12Event: ${i(e)}. 13Url: ${Hr(e)}`),!0;if(!Br(e,t.allowUrls))return l&&j.warn(`Event dropped due to not being matched by \`allowUrls\` option. 14Event: ${i(e)}. 15Url: ${Hr(e)}`),!0}else if(e.type===`transaction`&&Rr(e,t.ignoreTransactions))return l&&j.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 16Event: ${i(e)}`),!0;return!1}function Lr(e,t){return t?.length?zn(e).some(e=>O(e,t)):!1}function Rr(e,t){if(!t?.length)return!1;let n=e.transaction;return n?O(n,t):!1}function zr(e,t){if(!t?.length)return!1;let n=Hr(e);return n?O(n,t):!1}function Br(e,t){if(!t?.length)return!0;let n=Hr(e);return!n||O(n,t)}function Vr(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 Hr(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Vr(t):null}catch{return l&&j.error(`Cannot extract url for event ${i(e)}`),null}}function Ur(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Wr(e,t,n,r,i,a){if(!i.exception?.values||!a||!De(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Gr(e,t,r,a.originalException,n,i.exception.values,o,0))}
16function Gr(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(De(r[i],Error)){qr(o,s,r);let a=e(t,r[i]),l=c.length;Jr(a,i,l,s),c=Gr(e,t,n,r[i],i,[a,...c],a,l)}return Kr(r)&&r.errors.forEach((a,l)=>{if(De(a,Error)){qr(o,s,r);let u=e(t,a),d=c.length;Jr(u,`errors[${l}]`,d,s),c=Gr(e,t,n,a,i,[u,...c],u,d)}}),c}function Kr(e){return Array.isArray(e.errors)}function qr(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Kr(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Jr(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Yr(e){return Me(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Xr(e){return Yr(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Zr=new Set([]);function Qr(e){let t=`console`,n=bt(t,e);return xt(t,ei),n}var $r=new Set;function ei(){`console`in T&&Be.forEach(function(e){!$r.has(e)&&e in T.console&&($r.add(e),x(T.console,e,function(t){return We[e]=t,function(...t){let n=t[0],r=We[e],i=Zr.size&&typeof n==`string`&&O(n,Zr);i||N(`console`,{args:t,level:e}),(!i||l&&j.isEnabled())&&r?.apply(T.console,t)}}))})}function ti(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var ni=`Dedupe`,ri=P((()=>{let e;return{name:ni,processEvent(t){if(t.type)return t;try{if(ii(t,e))return l&&j.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function ii(e,t){return t?!!(ai(e,t)||oi(e,t)):!1}function ai(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ci(e,t)||!si(e,t))}function oi(e,t){let n=li(t),r=li(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ci(e,t)||!si(e,t))}function si(e,t){let n=he(e),r=he(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 ci(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 li(e){return e.exception?.values?.[0]}var ui=`ConversationId`,di=P((()=>({name:ui,setup(e){e.on(`spanStart`,e=>{let t=y().getScopeData(),n=ye().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ze(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(C,r)}})}})));function fi(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var pi=T;function mi(){return`history`in pi&&!!pi.history}function hi(){if(!(`fetch`in pi))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function gi(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function _i(){if(typeof EdgeRuntime==`string`)return!0;if(!hi())return!1;if(gi(pi.fetch))return!0;let e=!1,t=pi.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=gi(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){l&&j.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function vi(e,t){let n=`fetch`,r=bt(n,e);return xt(n,()=>yi(void 0,t)),r}function yi(e,t=!1){(!t||_i())&&x(T,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Si(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:p()*1e3,virtualError:r,headers:Ci(n)};return e||N(`fetch`,{...o}),t.apply(T,n).then(async t=>(e?e(t):N(`fetch`,{...o,endTimestamp:p()*1e3,response:t}),t),e=>{N(`fetch`,{...o,endTimestamp:p()*1e3,error:e}),Me(e)&&e.stack===void 0&&(e.stack=r.stack,k(e,`framesToPop`,1));let t=s()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:k(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function bi(e,t){return Pe(e)&&!!e[t]}function xi(e){return typeof e==`string`?e:e?bi(e,`url`)?e.url:e.toString?e.toString():``:``}function Si(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:xi(t),method:bi(n,`method`)?String(n.method).toUpperCase():le(t)&&bi(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:xi(t),method:bi(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ci(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(le(t))return new Headers(t.headers)}catch{}}var wi=T;function Ti(){try{return wi.document.location.href}catch{return``}}function Ei(e,t=5){if(!wi.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var F=T,Di=0;function Oi(){return Di>0}function ki(){Di++,setTimeout(()=>{Di--})}function Ai(e,t={}){function r(e){return typeof e==`function`}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(n(e))return e}catch{return e}let i=function(...n){T._sentryWrappedDepth=(T._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Ai(e,t));return e.apply(this,r)}catch(e){throw ki(),ve(r=>{r.addEventProcessor(e=>(t.mechanism&&(S(e,void 0,void 0),g(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),je(e)}),e}finally{T._sentryWrappedDepth=(T._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch{}ue(i,e),k(e,`__sentry_wrapped__`,i);try{Object.getOwnPropertyDescriptor(i,`name`).configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function ji(){let e=Ti(),{referrer:t}=F.document||{},{userAgent:n}
16=F.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Mi(e,t){let n=Fi(e,t),r={type:Bi(t),value:Vi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ni(e,t,n,r){let i=s()?.getOptions().normalizeDepth,a=Ji(t),o={__serialized__:h(t,i)};if(a)return{exception:{values:[Mi(e,a)]},extra:o};let c={exception:{values:[{type:ie(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Ki(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Fi(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Pi(e,t){return{exception:{values:[Mi(e,t)]}}}function Fi(e,t){let n=t.stacktrace||t.stack||``,r=Li(t),i=Ri(t);try{return e(n,r,i)}catch{}return[]}var Ii=/Minified React error #\d+;/i;function Li(e){return e&&Ii.test(e.message)?1:0}function Ri(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function zi(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Bi(e){let t=e?.name;return!t&&zi(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Vi(e){let t=e?.message;return zi(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Xr(t.error):Xr(e):`No error message`}function Hi(e,t,n,r){let i=Wi(e,t,n?.syntheticException||void 0,r);return g(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ce(i)}function Ui(e,t,n=`info`,r,i){let a=Gi(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ce(a)}function Wi(e,t,n,r,i){let a;if(_e(t)&&t.error)return Pi(e,t.error);if(Ie(t)||Te(t)){let i=t;if(`stack`in t){a=Pi(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Fi(e,n);t.length&&(i.stacktrace={frames:t},g(a,{synthetic:!0}))}}else{let t=i.name||(Ie(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Gi(e,o,n,r),S(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Me(t)?Pi(e,t):xe(t)||ie(t)?(a=Ni(e,t,n,i),g(a,{synthetic:!0}),a):(a=Gi(e,t,n,r),S(a,`${t}`,void 0),g(a,{synthetic:!0}),a)}function Gi(e,t,n,r){let i={};if(r&&n){let r=Fi(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),g(i,{synthetic:!0})}if(se(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 Ki(e,{isUnhandledRejection:t}){let n=ne(e),r=t?`promise rejection`:`exception`;return _e(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ie(e)?`Event \`${qi(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qi(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ji(e){return Object.values(e).find(e=>e instanceof Error)}var Yi=class extends nr{constructor(e){let t=Xi(e);Tr(t,`browser`,[`browser`],F.SENTRY_SDK_SOURCE||mn()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;F.document&&F.document.addEventListener(`visibilitychange`,()=>{F.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,wr)}eventFromException(e,t){return Hi(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Ui(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Xi(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:F.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Zi=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,I=T,Qi=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,$i=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=Qi(t.value,n),e(t)))}},ea=(e=!0)=>{let t=I.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ta=()=>ea()?.activationStart??0;function na(e,t,n){I.document&&I.addEventListener(e,t,n)}function ra(e,t,n){I.document&&I.removeEventListener(e,t,n)}var ia=-1,aa=new Set,oa=()=>I.document?.visibilityState===`hidden`&&!I.document?.prerendering?0:1/0,sa=e=>{if(la(e)&&ia>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of aa)e();
16isFinite(ia)||(ia=e.type===`visibilitychange`?e.timeStamp:0,ra(`prerenderingchange`,sa,!0))}},ca=()=>{if(I.document&&ia<0){let e=ta();ia=(I.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??oa(),na(`visibilitychange`,sa,!0),na(`pagehide`,sa,!0),na(`prerenderingchange`,sa,!0)}return{get firstHiddenTime(){return ia},onHidden(e){aa.add(e)}}};function la(e){return e.type===`pagehide`||I.document?.visibilityState===`hidden`}var ua=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,da=(e,t=-1)=>{let n=ea(),r=`navigate`;return n&&(I.document?.prerendering||ta()>0?r=`prerender`:I.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:ua(),navigationType:r}},fa=new WeakMap;function pa(e,t){try{return fa.get(e)||fa.set(e,new t),fa.get(e)}catch{return new t}}var ma=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},ha=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},ga=e=>{let t=!1;return()=>{t||=(e(),!0)}},_a=e=>{I.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},va=[1800,3e3],ya=(e,t={})=>{_a(()=>{let n=ca(),r=da(`FCP`),i,a=ha(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-ta(),0),r.entries.push(t),i(!0)))});a&&(i=$i(e,r,va,t.reportAllChanges))})},ba=[.1,.25],xa=(e,t={})=>{ya(ga(()=>{let n=da(`CLS`,0),r,i=ca(),a=pa(t,ma),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=ha(`layout-shift`,o);s&&(r=$i(e,n,ba,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),I?.setTimeout?.(r))}))},Sa=0,Ca=1/0,wa=0,Ta=e=>{e.forEach(e=>{e.interactionId&&(Ca=Math.min(Ca,e.interactionId),wa=Math.max(wa,e.interactionId),Sa=wa?(wa-Ca)/7+1:0)})},Ea,Da=()=>Ea?Sa:performance.interactionCount||0,Oa=()=>{`interactionCount`in performance||Ea||(Ea=ha(`event`,Ta,{type:`event`,buffered:!0,durationThreshold:0}))},ka=10,Aa=0,ja=()=>Da()-Aa,Ma=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Aa=Da(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(ja()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<ka||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>ka){let e=this._longestInteractionList.splice(ka);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Na=e=>{let t=I.requestIdleCallback||I.setTimeout;I.document?.visibilityState===`hidden`?e():(e=ga(e),na(`visibilitychange`,e,{once:!0,capture:!0}),na(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),ra(`visibilitychange`,e,{capture:!0}),ra(`pagehide`,e,{capture:!0})}))},Pa=[200,500],Fa=40,Ia=(e,t={})=>
16{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=ca();_a(()=>{Oa();let r=da(`INP`),i,a=pa(t,Ma),o=e=>{Na(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=ha(`event`,o,{durationThreshold:t.durationThreshold??Fa});i=$i(e,r,Pa,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},La=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Ra=[2500,4e3],za=(e,t={})=>{_a(()=>{let n=ca(),r=da(`LCP`),i,a=pa(t,La),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-ta(),0),r.entries=[t],i())},s=ha(`largest-contentful-paint`,o);if(s){i=$i(e,r,Ra,t.reportAllChanges);let n=ga(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Na(n),ra(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])na(e,a,{capture:!0})}})},Ba={},Va={},Ha,Ua,Wa;function Ga(e,t=!1){return $a(`cls`,e,Xa,Ha,t)}function Ka(e,t=!1){return $a(`lcp`,e,Za,Ua,t)}function qa(e){return $a(`inp`,e,Qa,Wa)}function Ja(e,t){return to(e,t),Va[e]||(eo(e),Va[e]=!0),no(e,t)}function Ya(e,t){let n=Ba[e];if(n?.length)for(let r of n)try{r(t)}catch(t){Zi&&j.error(`Error while triggering instrumentation handler. 17Type: ${e} 18Name: ${M(r)} 19Error:`,t)}}function Xa(){return xa(e=>{Ya(`cls`,{metric:e}),Ha=e},{reportAllChanges:!0})}function Za(){return za(e=>{Ya(`lcp`,{metric:e}),Ua=e},{reportAllChanges:!0})}function Qa(){return Ia(e=>{Ya(`inp`,{metric:e}),Wa=e})}function $a(e,t,n,r,i=!1){to(e,t);let a;return Va[e]||(a=n(),Va[e]=!0),r&&t({metric:r}),no(e,t,i?a:void 0)}function eo(e){let t={};e===`event`&&(t.durationThreshold=0),ha(e,t=>{Ya(e,{entries:t})},t)}function to(e,t){Ba[e]=Ba[e]||[],Ba[e].push(t)}function no(e,t,n){return()=>{n&&n();let r=Ba[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}var ro=80,io={};try{typeof Node<`u`&&(io.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(io.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,io.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,io.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,io.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(io.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function ao(e,t,n){let r=io[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function oo(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||ro;for(;n&&i++<5&&(o=so(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=ao(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function so(e,t){let n=[],r=ao(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=ao(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>ao(e,`getAttribute`,t)).map(t=>[t,ao(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=ao(e,`id`);t&&n.push(`#${t}`);let r=ao(e,`className`);if(r&&fe(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=ao(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var co=1e3,lo,uo,fo;function po(e){bt(`dom`,e),xt(`dom`,mo)}function mo(){if(!I.document)return;let e=N.bind(null,`dom`),t=_o(e,!0);I.document.addEventListener(`click`,t,!1),I.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=I[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(x(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=_o(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),x(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function ho(e){if(e.type!==uo)return!1;try{if(!e.target||e.target._sentryId!==fo)return!1}catch{}return!0}function go(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function _o(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=vo(n);if(go(n.type,r))return;k(n,`_sentryCaptured`,!0),r&&!r._sentryId&&k(r,`_sentryId`,D());let i=n.type===`keypress`?`input`:n.type;ho(n)||(e({event:n,name:i,global:t}),uo=n.type,fo=r?r._sentryId:void 0),clearTimeout(lo),lo=I.setTimeout(()=>{fo=void 0,uo=void 0},co)}}function vo(e){try{return e.target}catch{return null}}var yo;function bo(e){let t=`history`;bt(t,e),xt(t,xo)}function xo(){if(I.addEventListener(`popstate`,()=>{let e=I.location.href,t=yo;yo=e,t!==e&&N(`history`,{from:t,to:e})}),!mi())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=yo,i=So(String(n));if(yo=i,r===i)return e.apply(this,t);N(`history`,{from:r,to:i})}return e.apply(this,t)}}x(I.history,`pushState`,e),x(I.history,`replaceState`,e)}function So(e){try{return new URL(e,I.location.origin).toString()}catch{return e}}var Co={};function wo(e){let t=Co[e];if(t)return t;let n=I[e];if(gi(n))return Co[e]=n.bind(I);let r=I.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){Zi&&j.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Co[e]=n.bind(I))}function To(e){Co[e]=void 0}function Eo(...e){return wo(`setTimeout`)(...e)}var Do=`__sentry_xhr_v3__`;function Oo(e){bt(`xhr`,e),xt(`xhr`,ko)}function ko(){if(!I.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=p()*1e3,a=fe(n[0])?n[0].toUpperCase():void 0,o=Ao(n[1]);if(!a||!o)return e.apply(t,n);t[Do]={method:a,url:o,request_headers:{}}
19,a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Do];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}N(`xhr`,{endTimestamp:p()*1e3,startTimestamp:i,xhr:t,virtualError:r}),t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Do];return a&&fe(r)&&fe(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Do];return r?(n[0]!==void 0&&(r.body=n[0]),N(`xhr`,{startTimestamp:p()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Ao(e){if(fe(e))return e;try{return e.toString()}catch{}}var jo=Symbol.for(`sentry__originalRequestBody`);function Mo(e){return new URLSearchParams(e).toString()}function No(e,t=j){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Mo(e)];if(!e)return[void 0]}catch(n){return Zi&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Zi&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Po(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][jo];return t===void 0?void 0:t}}function Fo(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return Zi&&j.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 20`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function Io(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var Lo=40;function Ro(e,t=wo(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw To(`fetch`),e}finally{n-=a,r--}}return Ln(e,i,jn(e.bufferSize||Lo))}var zo=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Bo=30,Vo=50;function Ho(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Uo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Wo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Go=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ko=/at (.+?) ?\(data:(.+?),/,qo=[Bo,e=>{let t=e.match(Ko);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Uo.exec(e);if(n){let[,e,t,r]=n;return Ho(e,`?`,+t,+r)}let r=Wo.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Go.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Zo(r[1]||`?`,r[2]);return Ho(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Jo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xo=Ce(qo,[Vo,e=>{let t=Jo.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Yo.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]||`?`;return[n,e]=Zo(n,e),Ho(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Zo=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Qo=1024,$o=`Breadcrumbs`,es=P(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:$o,setup(e){t.console&&Qr(rs(e)),t.dom&&po(ns(e,t.dom)),t.xhr&&Oo(is(e)),t.fetch&&vi(as(e)),t.history&&bo(os(e)),t.sentry&&e.on(`beforeSendEvent`,ts(e))}}}));function ts(e){return function(t){s()===e&&Dr({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:i(t)},{event:t})}}function ns(e,t){return function(n){if(s()!==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>Qo&&(zo&&j.warn(`\`dom.maxStringLength\` cannot exceed ${Qo}, but a value of ${o} was configured. Sentry will use ${Qo} instead.`),o=Qo),typeof a==`string`&&(a=[a]);try{let e=n.event,t=ss(e)?e.target:e;r=oo(t,{keyAttrs:a,maxStringLength:o}),i=Ei(t)}catch{r=`<unknown>`}if(r.length===0)return;let c={category:`ui.${n.name}`,message:r};
20i&&(c.data={"ui.component_name":i}),Dr(c,{event:n.event,name:n.name,global:n.global})}}function rs(e){return function(t){if(s()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:ti(t.level),message:E(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${E(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}Dr(n,{input:t.args,level:t.level})}}function is(e){return function(t){if(s()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Do];if(!n||!r||!i)return;let{method:a,url:o,status_code:c,body:l}=i,u={method:a,url:o,status_code:c},d={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},f={category:`xhr`,data:u,type:`http`,level:fi(c)};e.emit(`beforeOutgoingRequestBreadcrumb`,f,d),Dr(f,d)}}function as(e){return function(t){if(s()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Dr(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:fi(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Dr(s,o)}}}}function os(e){return function(t){if(s()!==e)return;let n=t.from,r=t.to,i=_r(F.location.href),a=n?_r(n):void 0,o=_r(r);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),Dr({category:`navigation`,data:{from:n,to:r}})}}function ss(e){return!!e&&!!e.target}var cs=`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(`,`),ls=`BrowserApiErrors`,us=P(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:ls,setupOnce(){t.setTimeout&&x(F,`setTimeout`,ds),t.setInterval&&x(F,`setInterval`,ds),t.requestAnimationFrame&&x(F,`requestAnimationFrame`,fs),t.XMLHttpRequest&&`XMLHttpRequest`in F&&x(XMLHttpRequest.prototype,`send`,ps);let e=t.eventTarget;e&&(Array.isArray(e)?e:cs).forEach(e=>ms(e,t))}}}));function ds(e){return function(...t){let n=t[0];return t[0]=Ai(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${M(e)}`}}),e.apply(this,t)}}function fs(e){return function(t){return e.apply(this,[Ai(t,{mechanism:{data:{handler:M(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function ps(e){return function(...t){let r=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in r&&typeof r[e]==`function`&&x(r,e,function(t){let r={mechanism:{data:{handler:M(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=n(t);return i&&(r.mechanism.data.handler=M(i)),Ai(t,r)})}),e.apply(this,t)}}function ms(e,t){let n=F[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(x(n,`addEventListener`,function(n){return function(r,i,a){try{hs(i)&&(i.handleEvent=Ai(i.handleEvent,{mechanism:{data:{handler:M(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&gs(this,r,i),n.apply(this,[r,Ai(i,{mechanism:{data:{handler:M(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),x(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function hs(e){return typeof e.handleEvent==`function`}function gs(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var _s=P((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(F.document===void 0){zo&&j.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}oe({ignoreDuration:!0});let e=!1;Na(()=>{e||=(ge(),!0)});let n=ye(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&ge())}),t===`route`&&bo(({from:t,to:n})=>{t!==n&&(oe({ignoreDuration:!0}),ge(),e=!0)})}}}),vs=`CultureContext`,ys=P((()=>({name:vs,preprocessEvent(e){let t=bs();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=bs();t&&en(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function bs(){try{let e=F.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var xs=`GlobalHandlers`,Ss=P(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:xs,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Cs(e),Os(`onerror`)),t.onunhandledrejection&&(ws(e),Os(`onunhandledrejection`))}}}));function Cs(e){Ct(t=>{let{stackParser:n,attachStacktrace:r}=ks();if(s()!==e||Oi())return;let{msg:i,url:a,line:o,column:c,error:l}=t,u=Ds(Wi(n,l||i,void 0,r,!1),a,o,c);u.level=`error`,we(u,{originalException:l,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function ws(e){Et(t=>{let{stackParser:n,attachStacktrace:r}=ks();if(s()!==e||Oi())return;let i=Ts(t),a=Re(i)?Es(i):Wi(n,i,void 0,r,!0);a.level=`error`,we(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Ts(e){if(Re(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Es(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ds(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||[];
20return c.length===0&&c.push({colno:r,lineno:n,filename:As(t)??Ti(),function:`?`,in_app:!0}),e}function Os(e){zo&&j.log(`Global Handler attached: ${e}`)}function ks(){return s()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function As(e){if(fe(e)&&e.length!==0)return e.startsWith(`data:`)?`<${vr(e,!1)}>`:e}var js=P(()=>({name:`HttpContext`,preprocessEvent(e){if(!F.navigator&&!F.location&&!F.document)return;let t=ji(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[ee];if(!F.navigator&&!F.location&&!F.document)return;let n=ji();en(e,{[$t]:t===`http.client`?void 0:n.url,"http.request.header.user_agent":n.headers[`User-Agent`],"http.request.header.referer":n.headers.Referer})}})),Ms=`cause`,Ns=5,Ps=`LinkedErrors`,Fs=P(((e={})=>{let t=e.limit||Ns,n=e.key||Ms;return{name:Ps,preprocessEvent(e,r,i){Wr(Mi,i.getOptions().stackParser,n,t,e,r)}}})),Is=/^HTML(\w*)Element$/;function Ls(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(Io(e)){let t=Rs(e);if(Is.test(t))return`[HTMLElement: ${oo(e)}]`}}function Rs(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function zs(){return Bs()?(zo&&Ke(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Bs(){if(F.window===void 0)return!1;let e=F;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Ti();return!(F===F.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Vs(e){return[Pr(),Ar(),di(),us(),es(),Ss(),Fs(),ri(),js(),ys(),_s()]}function Hs(e={}){let t=!e.skipBrowserExtensionCheck&&zs(),n=e.defaultIntegrations==null?Vs():e.defaultIntegrations,r={...e,enabled:!t&&e.enabled,stackParser:A(e.stackParser||Xo),integrations:ln({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Ro};return Ae(Ls),fr(Yi,r)}var L=T,Us=`sentryReplaySession`,Ws=`replay_event`,Gs=`Unable to send Replay`,Ks=3e5,qs=9e5,Js=5e3,Ys=5500,Xs=6e4,Zs=5e3,Qs=3,$s=15e4,ec=5e3,tc=3e3,nc=300,rc=2e7,ic=4999,ac=5e4,oc=36e5,sc=Object.defineProperty,cc=(e,t,n)=>t in e?sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lc=(e,t,n)=>cc(e,typeof t==`symbol`?t:t+``,n),R=(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`,e))(R||{});function uc(e){return e.nodeType===e.ELEMENT_NODE}function dc(e){return e?.host?.shadowRoot===e}function fc(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function pc(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function mc(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 hc(e){try{let t=e.rules||e.cssRules;return t?pc(Array.from(t,_c).join(``)):null}catch{return null}}function gc(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function _c(e){let t;if(yc(e))try{t=hc(e.styleSheet)||mc(e)}catch{}else if(bc(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=gc(e)),n&&(t=vc(t)),n||r)return t}return t||e.cssText}function vc(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function yc(e){return`styleSheet`in e}function bc(e){return`selectorText`in e}var xc=class{constructor(){lc(this,`idNodeMap`,new Map),lc(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(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);
20this.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 Sc(){return new xc}function Cc({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 wc({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function Tc(e){return e.toLowerCase()}function Ec(e){return e.toUpperCase()}var Dc=`__rrweb_original__`;function Oc(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=Dc in i?i[Dc]: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 kc(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Tc(t):null}function Ac(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function jc(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var Mc={};function Nc(e){let t=Mc[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 Mc[e]=r.bind(window)}function Pc(...e){return Nc(`setTimeout`)(...e)}function Fc(...e){return Nc(`clearTimeout`)(...e)}function Ic(e){try{return e.contentDocument}catch{}}function Lc(e){try{return e.contentWindow}catch{}}var Rc=1,zc=RegExp(`[^a-z0-9-_:]`),Bc=-2;function Vc(){return Rc++}function Hc(e){if(e instanceof HTMLFormElement)return`form`;let t=Tc(e.tagName);return zc.test(t)?`div`:t}function Uc(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Wc,Gc,Kc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,qc=/^(?:[a-z+]+:)?\/\//i,Jc=/^www\..*/i,Yc=/^(data:)([^,]*),(.*)/i;function Xc(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function Zc(e,t){return(e||``).replace(Kc,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(qc.test(s)||Jc.test(s)||Yc.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${Uc(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 Qc=/^[^ \t\n\r\u000c]+/,$c=/^[, \t\n\r\u000c]+/;function el(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($c),!(n>=t.length);){let a=r(Qc);if(a.slice(-1)===`,`)a=nl(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=nl(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var tl=new WeakMap;function nl(e,t){return!t||t.trim()===``?t:il(e,t)}function rl(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function il(e,t){let n=tl.get(e);if(n||(n=e.createElement(`a`),tl.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function al(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return nl(e,r);if(n===`srcset`)return el(e,r);if(n===`style`){let t=Zc(r,il(e));return o&&o.size>0&&(t=Xc(t,o)),t}return t===`object`&&n===`data`?nl(e,r):typeof a==`function`?a(n,r,i):r}function ol(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function sl(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 cl(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function ll(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ll(e.parentNode,t,n,r+1)}function ul(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(cl(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function dl(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=ll(o,ul(r,i)),c<0)return!0;s=ll(o,ul(t,n),c>=0?c:1/0)}else{if(s=ll(o,ul(t,n)),s<0)return!1;c=ll(o,ul(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function fl(e,t,n){let r=Lc(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Pc(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{Fc(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Pc(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function pl(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=Pc(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{Fc(a),r=!0,t()})}function ml(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={}
20,maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=hl(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:R.Document,childNodes:[]}:{type:R.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return _l(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:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return gl(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:R.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function hl(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function gl(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||e.parentNode.sheet?.cssRules&&(f=hc(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=Zc(f,il(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=dl(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=wc({isMasked:dl(e,r,a,i,o,Cc({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:R.Text,textContent:f||``,isStyle:p,rootId:u}}function _l(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,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=sl(e,r,i,a),S=Hc(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!ol(S,r.name,r.value)&&(C[r.name]=al(n,S,Tc(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=hc(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Zc(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=hc(e.sheet);t&&(C._cssText=Zc(t,il(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=kc(t),r=Ac(t,Ec(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=dl(t,g,v,_,y,Cc({type:n,tagName:Ec(S),maskInputOptions:s}));C.value=wc({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`)Oc(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){Wc||(Wc=n.createElement(`canvas`),Gc=Wc.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{Wc.width=t.naturalWidth,Wc.height=t.naturalHeight,Gc.drawImage(t,0,0),C.rr_dataURL=Wc.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};
20t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}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)&&(!x&&!Ic(e)&&(C.rr_src=C.src),delete C.src);let ee;try{customElements.get(S)&&(ee=!0)}catch{}return{type:R.Element,tagName:S,attributes:C,childNodes:[],isSVG:rl(e)||void 0,needBlock:x,rootId:h,isCustom:ee}}function z(e){return e==null?``:e.toLowerCase()}function vl(e,t){return!!(t.comment&&e.type===R.Comment||e.type===R.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&jc(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||z(e.attributes.name)===`application-name`||z(e.attributes.rel)===`icon`||z(e.attributes.rel)===`apple-touch-icon`||z(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||z(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(z(e.attributes.name)===`robots`||z(e.attributes.name)===`googlebot`||z(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(z(e.attributes.name)===`author`||z(e.attributes.name)===`generator`||z(e.attributes.name)===`framework`||z(e.attributes.name)===`publisher`||z(e.attributes.name)===`progid`||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(z(e.attributes.name)===`google-site-verification`||z(e.attributes.name)===`yandex-verification`||z(e.attributes.name)===`csrf-token`||z(e.attributes.name)===`p:domain_verify`||z(e.attributes.name)===`verify-v1`||z(e.attributes.name)===`verification`||z(e.attributes.name)===`shopify-checkout-api-token`))))}function yl(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,onBlockedImageLoad:ee,onStylesheetLoad:T,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:O=!1,ignoreCSSAttributes:k}=t,{preserveWhiteSpace:te=!0}=t,ne=ml(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:D,newlyAddedElement:O,ignoreCSSAttributes:k});if(!ne)return console.warn(e,`not serialized`),null;let re;re=r.hasNode(e)?r.getId(e):vl(ne,v)||!te&&ne.type===R.Text&&!ne.isStyle&&!ne.textContent.trim().length?Bc:Vc();let A=Object.assign(ne,{id:re});if(r.add(e,A),re===Bc)return null;S&&S(e);let ie=!f;if(A.type===R.Element){ie&&=!A.needBlock;let t=e.shadowRoot;t&&fc(t)&&(A.isShadowHost=!0)}if((A.type===R.Document||A.type===R.Element)&&ie){v.headWhitespace&&A.type===R.Element&&A.tagName===`head`&&(te=!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:te,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:ee,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:k},O=e.childNodes?Array.from(e.childNodes):[];for(let e of O){let n=yl(e,t);n&&A.childNodes.push(n)}if(uc(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=yl(n,t);r&&(fc(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}if(e.parentNode&&dc(e.parentNode)&&fc(e.parentNode)&&(A.isShadow=!0),A.type===R.Element&&A.tagName===`iframe`&&!A.needBlock&&fl(e,()=>{let t=Ic(e);if(t&&C){let n=yl(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:te,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:k});n&&C(e,n)}},w),A.type===R.Element&&A.tagName===`img`&&!e.complete&&A.needBlock){let t=e,n=()=>
20{if(t.isConnected&&!t.complete&&ee)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&ee(t,A,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return A.type===R.Element&&A.tagName===`link`&&typeof A.attributes.rel==`string`&&(A.attributes.rel===`stylesheet`||A.attributes.rel===`preload`&&typeof A.attributes.href==`string`&&jc(A.attributes.href)===`css`)&&pl(e,()=>{if(T){let t=yl(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:te,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:k});t&&T(e,t)}},E),A.type===R.Element&&delete A.needBlock,A}function bl(e,t){let{mirror:n=new xc,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,inlineImages: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,onBlockedImageLoad:w,onStylesheetLoad:ee,stylesheetLoadTimeout:T,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:D=new Set([])}=t||{};return yl(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,onBlockedImageLoad:w,onStylesheetLoad:ee,stylesheetLoadTimeout:T,keepIframeSrcFn:E,newlyAddedElement:!1,ignoreCSSAttributes:D})}function B(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var xl=`Please stop import mirror directly. Instead of that,\r 21now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 22or you can use record.mirror to access the mirror instance during recording.`,Sl={map:{},getId(){return console.error(xl),-1},getNode(){return console.error(xl),null},removeNodeFromMap(){console.error(xl)},has(){return console.error(xl),!1},reset(){console.error(xl)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Sl=new Proxy(Sl,{get(e,t,n){return t===`map`&&console.error(xl),Reflect.get(e,t,n)}}));function Cl(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&&=(Jl(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=ql(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function wl(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){ql(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>wl(e,t,a||{},!0)}function Tl(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 El=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(El=()=>new Date().getTime());function Dl(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Ol(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function kl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Al(e){if(!e)return null;
22try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function V(e,t,n,r,i){if(!e)return!1;let a=Al(e);if(!a)return!1;let o=ul(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=ll(a,o),c=-1;return s<0?!1:(r&&(c=ll(a,ul(null,r))),s>-1&&c<0||s<c)}function jl(e,t){return t.getId(e)!==-1}function Ml(e,t){return t.getId(e)===Bc}function Nl(e,t){if(dc(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||Nl(e.parentNode,t):!0}function Pl(e){return!!e.changedTouches}function Fl(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 Il(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function Ll(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function Rl(e){return!!e?.shadowRoot}var zl=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return 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 Bl(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Vl(e){let t=e,n;for(;n=Bl(t);)t=n;return t}function Hl(e){let t=e.ownerDocument;if(!t)return!1;let n=Vl(e);return t.contains(n)}function Ul(e){let t=e.ownerDocument;return t?t.contains(e)||Hl(e):!1}var Wl={};function Gl(e){let t=Wl[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 Wl[e]=r.bind(window)}function Kl(...e){return Gl(`requestAnimationFrame`)(...e)}function ql(...e){return Gl(`setTimeout`)(...e)}function Jl(...e){return Gl(`clearTimeout`)(...e)}var H=(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))(H||{}),U=(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))(U||{}),W=(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))(W||{}),Yl=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(Yl||{}),Xl=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(Xl||{}),Zl;function Ql(e){Zl=e}function $l(){Zl=void 0}for(var G=e=>Zl?((...t)=>{try{return e(...t)}catch(e){if(Zl&&Zl(e)===!0)return()=>{};throw e}}):e,eu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,tu=typeof Uint8Array>`u`?[]:new Uint8Array(256),nu=0;nu<eu.length;nu++)tu[eu.charCodeAt(nu)]=nu;var ru=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function iu(e){try{return e.contentDocument}catch{}}function au(e){try{return e.contentWindow}catch{}}var ou=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];
22return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function su(e){return`__ln`in e}var cu=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=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&su(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&su(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--)}},lu=(e,t)=>`${e}@${t}`,uu=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 cu,r=e=>{let t=e,n=Bc;for(;n===Bc;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Ul(i))return;let a=dc(i.parentNode)?this.mirror.getId(Bl(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=yl(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=>{Il(e,this.mirror)&&!V(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ll(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Rl(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(V(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=au(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});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)(!fu(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)!mu(this.droppedSet,e)&&!fu(this.removes,e,this.mirror)||mu(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}{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=>
22({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(!Ml(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!V(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:dl(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Al(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=kc(t),i=t.tagName;r=Ac(t,i,n);let a=Cc({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=wc({isMasked:dl(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(V(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(!iu(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
22,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`),!ol(t.tagName,n)&&(i.attributes[n]=al(this.doc,Tc(t.tagName),Tc(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(V(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=dc(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);V(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ml(t,this.mirror)||!jl(t,this.mirror)||(this.addedSet.has(t)?(du(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||Nl(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[lu(n,r)]?du(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:dc(e.target)&&fc(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Ml(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[lu(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);V(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),Rl(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.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new ou(this.doc)}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 du(e,t){e.delete(t),t.childNodes?.forEach(t=>du(e,t))}function fu(e,t,n){return e.length!==0&&pu(e,t,n)}function pu(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function mu(e,t){return e.size!==0&&hu(e,t)}function hu(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:hu(e,n):!1}var gu=[];function _u(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 vu(e,t){let n=new uu;gu.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(G(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 yu({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=Cl(G(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=G(Cl(G(e=>{let t=_u(e),{clientX:n,clientY:i}=Pl(e)?e.changedTouches[0]:e;s||=El(),o.push({x:n,y:i,id:r.getId(t),timeOffset:El()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?U.Drag:e instanceof MouseEvent?U.MouseMove:U.TouchMove)}),i,{trailing:!1})),u=[B(`mousemove`,l,n),B(`touchmove`,l,n),B(`drag`,l,n)];return G(()=>
22{u.forEach(e=>e())})}function bu({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=_u(o);if(V(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=Yl.Mouse;break;case`touch`:c=Yl.Touch;break;case`pen`:c=Yl.Pen}c===Yl.Touch?W[t]===W.MouseDown?u=`TouchStart`:W[t]===W.MouseUp&&(u=`TouchEnd`):Yl.Pen}else Pl(o)&&(c=Yl.Touch);c===null?W[t]===W.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===Yl.Touch||u.startsWith(`Mouse`)&&c===Yl.Mouse)&&(c=null));let d=Pl(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;G(e)({type:W[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(W).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=Tc(e),r=u(e);if(window.PointerEvent)switch(W[e]){case W.MouseDown:case W.MouseUp:n=n.replace(`mouse`,`pointer`);break;case W.TouchStart:case W.TouchEnd:return}c.push(B(n,r,t))}),G(()=>{c.forEach(e=>e())})}function xu({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return B(`scroll`,G(Cl(G(o=>{let s=_u(o);if(!s||V(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=Dl(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 Su({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return B(`resize`,G(Cl(G(()=>{let t=Ol(),i=kl();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Cu=[`INPUT`,`TEXTAREA`,`SELECT`],wu=new WeakMap;function Tu({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=_u(e),u=e.isTrusted,g=n&&Ec(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Cu.indexOf(g)<0||V(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=kc(n),b=Ac(v,g,y),x=!1,S=Cc({maskInputOptions:c,tagName:g,type:y}),C=dl(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=wc({isMasked:C,element:n,value:b,maskInputFn:l}),_(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=wc({isMasked:C,element:e,value:Ac(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=wu.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){wu.set(t,r);let i=n.getId(t);G(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>B(e,G(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=>wl(e[0],e[1],{set(){G(g)({target:this,isTrusted:!1})}},!1,y))),G(()=>{v.forEach(e=>e())})}function Eu(e){let t=[];function n(e,t){if(Iu(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||Iu(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||Iu(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||Iu(`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 Du(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Ou({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:G((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Du(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:G((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Du(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;
22r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:G((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Du(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:G((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Du(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};Lu(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(Lu(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),Lu(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),Lu(`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:G((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Du(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...Eu(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:G((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Du(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...Eu(i),o]}]}),r.apply(i,a)})})}),G(()=>{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 ku({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),G(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Au({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:G((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Du(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:Eu(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:G((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Du(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:Eu(a.parentRule)}),i.apply(a,s)})}),G(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function ju({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=G(o=>Cl(G(a=>{let s=_u(a);if(!s||V(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=[B(`play`,s(Xl.Play),o),B(`pause`,s(Xl.Pause),o),B(`seeked`,s(Xl.Seeked),o),B(`volumechange`,s(Xl.VolumeChange),o),B(`ratechange`,s(Xl.RateChange),o)];return G(()=>{c.forEach(e=>e())})}function Mu({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=Tl(t.fonts,`add`,function(t){return function(n){return ql(G(()=>{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),G(()=>
22{r.forEach(e=>e())})}function Nu(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=G(()=>{let e=t.getSelection();if(!e||s&&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);V(o,r,i,a,!0)||V(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),B(`selectionchange`,c)}function Pu({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:Tl(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function Fu(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=vu(e,e.doc));let i=yu(e),a=bu(e),o=xu(e),s=Su(e,{win:n}),c=Tu(e),l=ju(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=Ou(e,{win:n}),d=ku(e,e.doc),f=Au(e,{win:n}),e.collectFonts&&(p=Mu(e)));let m=Nu(e),h=Pu(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return G(()=>{gu.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function Iu(e){return window[e]!==void 0}function Lu(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var Ru=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))}
22getRemoteId(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}},zu=class{constructor(){this.crossOriginIframeMirror=new Ru(Vc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Bu=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ru(Vc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ru(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);let t=au(e);t&&this.crossOriginIframeMap.set(t,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}),this.recordCrossOriginIframes&&au(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=iu(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}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 H.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:H.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case H.Meta:case H.Load:case H.DomContentLoaded:return!1;case H.Plugin:return t;case H.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case H.IncrementalSnapshot:switch(t.data.source){case U.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 U.Drag:case U.TouchMove:case U.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(t.data,e,[`id`]),t;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case U.Font:return t;case U.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case U.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(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`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,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
22h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==R.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},Vu=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},Hu=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(!fc(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=vu({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(xu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ql(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ku({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=iu(e),n=au(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(Tl(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&Ul(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},Uu=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new zl,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:_c(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){}},Wu=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,Kl(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},K,Gu;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var q=Sc();function J(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:ee,recordDOM:T=!0,recordCanvas:E=!1,recordCrossOriginIframes:D=!1,recordAfter:O=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:k=!1,collectFonts:te=!1,inlineImages:ne=!1,plugins:re,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:ie=new Set([]),errorHandler:ae,onMutation:j,getCanvasManager:oe}=e;Ql(ae);let se=!D||window.parent===window,ce=!1;if(!se)try{window.parent.document&&(ce=!1)}catch{ce=!0}if(se&&!t)throw Error(`emit function is required`);if(!se&&!ce)return()=>{};
22ee!==void 0&&C.mousemove===void 0&&(C.mousemove=ee),q.reset();let le=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,ue=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};Fl();let de,fe=0,pe=e=>{for(let t of re||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!ce&&(e=S(e)),e};K=(e,i)=>{let a=e;if(a.timestamp=El(),gu[0]?.isFrozen()&&a.type!==H.FullSnapshot&&(a.type!==H.IncrementalSnapshot||a.data.source!==U.Mutation)&&gu.forEach(e=>e.unfreeze()),se)t?.(pe(a),i);else if(ce){let e={type:`rrweb`,event:pe(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===H.FullSnapshot)de=a,fe=0;else if(a.type===H.IncrementalSnapshot){if(a.data.source===U.Mutation&&a.data.isAttachIframe)return;fe++;let e=r&&fe>=r,t=n&&de&&a.timestamp-de.timestamp>n;(e||t)&&xe(!0)}};let M=e=>{K({type:H.IncrementalSnapshot,data:{source:U.Mutation,...e}})},me=e=>K({type:H.IncrementalSnapshot,data:{source:U.Scroll,...e}}),he=e=>K({type:H.IncrementalSnapshot,data:{source:U.CanvasMutation,...e}}),ge=new Uu({mutationCb:M,adoptedStyleSheetCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.AdoptedStyleSheet,...e}})}),_e=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new zu:new Bu({mirror:q,mutationCb:M,stylesheetManager:ge,recordCrossOriginIframes:D,wrappedEmit:K});for(let e of re||[])e.getMirror&&e.getMirror({nodeMirror:q,crossOriginIframeMirror:_e.crossOriginIframeMirror,crossOriginIframeStyleMirror:_e.crossOriginIframeStyleMirror});let ve=new Wu,ye=qu(oe,{mirror:q,win:window,mutationCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.CanvasMutation,...e}}),recordCanvas:E,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:ae}),be=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Vu:new Hu({mutationCb:M,scrollCb:me,bypassOptions:{onMutation:j,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:le,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:E,inlineImages:ne,sampling:C,slimDOMOptions:ue,iframeManager:_e,stylesheetManager:ge,canvasManager:ye,keepIframeSrcFn:A,processedNodeManager:ve,ignoreCSSAttributes:ie},mirror:q}),xe=(e=!1)=>{if(!T)return;K({type:H.Meta,data:{href:window.location.href,width:kl(),height:Ol()}},e),ge.reset(),be.init(),gu.forEach(e=>e.lock());let t=bl(document,{mirror:q,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:le,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:ue,dataURLOptions:w,recordCanvas:E,inlineImages:ne,onSerialize:e=>{Il(e,q)&&_e.addIframe(e),Ll(e,q)&&ge.trackLinkElement(e),Rl(e)&&be.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{_e.attachIframe(e,t);let n=au(e);n&&ye.addWindow(n),be.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{ge.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{M({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:A,ignoreCSSAttributes:ie});if(!t)return console.warn(`Failed to snapshot the document`);K({type:H.FullSnapshot,data:{node:t,initialOffset:Dl(window)}}),gu.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ge.adoptStyleSheets(document.adoptedStyleSheets,q.getId(document))};Gu=xe;try{let e=[],t=e=>G(Fu)({onMutation:j,mutationCb:M,mousemoveCb:(e,t)=>K({type:H.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.MouseInteraction,...e}}),scrollCb:me,viewportResizeCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.ViewportResize,...e}}),inputCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.Input,...e}}),mediaInteractionCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.MediaInteraction,...e}}),styleSheetRuleCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.StyleSheetRule,...e}}),styleDeclarationCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.StyleDeclaration,...e}}),canvasMutationCb:he,fontCb:e=>K({type:H.IncrementalSnapshot,data:{source:U.Font,...e}}),selectionCb:e=>{K({type:H.IncrementalSnapshot,data:{source:U.Selection,...e}})},customElementCb:e=>{K({type:H.IncrementalSnapshot,data:{source:U.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:le,inlineStylesheet:m,sampling:C,recordDOM:T,recordCanvas:E,inlineImages:ne,userTriggeredOnInput:k,collectFonts:te,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:A,blockSelector:a,unblockSelector:o,slimDOMOptions:ue,dataURLOptions:w,mirror:q,iframeManager:_e,stylesheetManager:ge,shadowDomManager:be,processedNodeManager:ve,canvasManager:ye,ignoreCSSAttributes:ie,plugins:re?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>K({type:H.Plugin,data:{plugin:e.name,payload:t}}
22)}))||[]},{});_e.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{xe(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(B(`DOMContentLoaded`,()=>{K({type:H.DomContentLoaded,data:{}}),O===`DOMContentLoaded`&&n()})),e.push(B(`load`,()=>{K({type:H.Load,data:{}}),O===`load`&&n()},window))),()=>{e.forEach(e=>e()),ve.destroy(),Gu=void 0,$l()}}catch(e){console.warn(e)}}function Ku(e){if(!Gu)throw Error(`please take full snapshot after start recording`);Gu(e)}J.mirror=q,J.takeFullSnapshot=Ku;function qu(e,t){try{return e?e(t):new ru}catch{return console.warn(`Unable to initialize CanvasManager`),new ru}}var Ju;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(Ju||={});var Yu=3,Xu=5;function Zu(e){return e>9999999999?e:e*1e3}function Qu(e){return e>9999999999?e/1e3:e}function $u(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:H.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:d(t,10,1e3)}}),t.category===`console`)))}var ed=`button,a`;function td(e){return e.closest(ed)||e}function nd(e){let t=rd(e);return!t||!(t instanceof Element)?t:td(t)}function rd(e){return id(e)?e.target:e}function id(e){return Pe(e)&&`target`in e}var ad;function od(e){return ad||(ad=[],sd()),ad.push(e),()=>{let t=ad?ad.indexOf(e):-1;t>-1&&ad.splice(t,1)}}function sd(){x(L,`open`,function(e){return function(...t){if(ad)try{ad.forEach(e=>e())}catch{}return e.apply(L,t)}})}var cd=new Set([U.Mutation,U.StyleSheetRule,U.StyleDeclaration,U.AdoptedStyleSheet,U.CanvasMutation,U.Selection,U.MediaInteraction]);function ld(e,t,n){e.handleClick(t,n)}var ud=class{constructor(e,t,n=$u){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=od(()=>{this._lastMutation=md()});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(fd(t,this._ignoreSelector)||!pd(e))return;let n={timestamp:Qu(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=Qu(e)}registerScroll(e=Date.now()){this._lastScroll=Qu(e)}registerClick(e){let t=td(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=md();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._scrollTimeout,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:L.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:L.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Eo(()=>this._checkClicks(),1e3)}},dd=[`A`,`BUTTON`,`INPUT`];function fd(e,t){return!!(!dd.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))}
22function pd(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function md(){return Date.now()/1e3}function hd(e,t){try{if(!gd(t))return;let{source:n}=t.data;if(cd.has(n)&&e.registerMutation(t.timestamp),n===U.Scroll&&e.registerScroll(t.timestamp),_d(t)){let{type:n,id:r}=t.data,i=J.mirror.getNode(r);i instanceof HTMLElement&&n===W.Click&&e.registerClick(i)}}catch{}}function gd(e){return e.type===Yu}function _d(e){return e.data.source===U.MouseInteraction}function Y(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var vd=(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`,e))(vd||{}),yd=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function bd(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(yd.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var xd=e=>t=>{if(!e.isEnabled())return;let n=Cd(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&ld(e.clickDetector,n,nd(t.event)),$u(e,n)};function Sd(e,t){let n=J.mirror.getId(e),r=n&&J.mirror.getNode(n),i=r&&J.mirror.getMeta(r),a=i&&Td(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===vd.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:bd(a.attributes)}}:{}}}function Cd(e){let{target:t,message:n}=wd(e);return Y({category:`ui.${e.name}`,...Sd(t,n)})}function wd(e){let t=e.name===`click`,n,r=null;try{r=t?nd(e.event):rd(e.event),n=oo(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function Td(e){return e.type===vd.Element}function Ed(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=Dd(t);n&&$u(e,n)}function Dd(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||Od(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=oo(o,{maxStringLength:200})||`<unknown>`;return Y({category:`ui.keyDown`,message:l,data:{...Sd(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function Od(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var kd={resource:Id,paint:Pd,navigation:Fd};function Ad(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function jd(e){return e.map(Md).filter(Boolean)}function Md(e){let t=kd[e.entryType];return t?t(e):null}function Nd(e){return((b()||L.performance.timeOrigin)+e)/1e3}function Pd(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=Nd(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function Fd(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:Nd(p),end:Nd(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 Id(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:Nd(a),end:Nd(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function Ld(e){let t=e.entries[e.entries.length-1];return Vd(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function Rd(e){return e.sources!==void 0}function zd(e){let t=[],n=[];for(let r of e.entries)if(Rd(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=J.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Vd(e,`cumulative-layout-shift`,n,t)}function Bd(e){let t=e.entries[e.entries.length-1];return Vd(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function Vd(e,t,n,r){let i=e.value,a=e.rating,o=Nd(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>J.mirror.getId(e)):void 0,attributions:r}}}function Hd(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
22return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(Ja(e,n))}),r.push(Ka(Ad(Ld,e)),Ga(Ad(zd,e)),qa(Ad(Bd,e))),()=>{r.forEach(e=>e())}}var X=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Ud=
vendor: 10,332 bytes, line 22
22`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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(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},_=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},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+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(U,C,0),R=U;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[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}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.prototype.flush=function(){j.prototype.flush.call(this)},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(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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(const r of t)n+=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});`;
22function Wd(){let e=new Blob([Ud],{type:`text/javascript`});return URL.createObjectURL(e)}var Gd=[`log`,`warn`,`error`],Kd=`[Replay] `;function qd(e,t=`info`){Dr({category:`console`,data:{logger:`replay`},level:t,message:`${Kd}${e}`},{level:t})}function Jd(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return X?(Gd.forEach(e=>{n[e]=(...n)=>{j[e](Kd,...n),t&&qd(n.join(``),ti(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),j.error(Kd,r),e?je(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&qd(r,`error`)},n.infoTick=(...e)=>{j.log(Kd,...e),t&&setTimeout(()=>qd(e[0]),0)}):Gd.forEach(e=>{n[e]=()=>void 0}),n}var Z=Jd(),Yd=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${rc}.`)}},Xd=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!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>rc)throw new Yd;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=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:Zu(e)}},Zd=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success){X&&Z.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(X&&Z.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{X&&Z.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){X&&Z.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(Error(`Worker destroyed`))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},Qd=class{constructor(e){this._worker=new Zd(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=Zu(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>rc?Promise.reject(new Yd):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{X&&Z.exception(e,`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}},$d=class{constructor(e){this._fallback=new Xd,this._compression=new Qd(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(e){this._used.waitForCheckout=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)}
22async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){X&&Z.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){X&&Z.exception(e,`Failed to add events when switching buffers.`)}}};function ef({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=tf(t);if(e)return e}return X&&Z.log(`Using simple buffer`),new Xd}function tf(e){try{let t=e||nf();return t?(X&&Z.log(`Using compression worker${e?` from ${e}`:``}`),new $d(new Worker(t))):void 0}catch(e){X&&Z.exception(e,`Failed to create compression worker`)}}function nf(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Wd():``}function rf(){try{return`sessionStorage`in L&&!!L.sessionStorage}catch{return!1}}function af(e){of(),e.session=void 0}function of(){if(rf())try{L.sessionStorage.removeItem(Us)}catch{}}function sf(e){return e!==void 0&&Math.random()<e}function cf(e){if(rf())try{L.sessionStorage.setItem(Us,JSON.stringify(e))}catch{}}function lf(e){let t=Date.now();return{id:e.id||D(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function uf(e,t){return sf(e)?`session`:t?`buffer`:!1}function df({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=lf({sampled:uf(e,t),previousSessionId:r});return n&&cf(i),i}function ff(){if(!rf())return null;try{let e=L.sessionStorage.getItem(Us);if(!e)return null;let t=JSON.parse(e);return X&&Z.infoTick(`Loading existing session`),lf(t)}catch{return null}}function pf(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function mf(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return pf(e.started,t,r)||pf(e.lastActivity,n,r)}function hf(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!mf(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function gf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&ff();return i?hf(i,{sessionIdleExpire:e,maxReplayDuration:t})?(X&&Z.infoTick(`Session in sessionStorage is expired, creating new one...`),df(r,{previousSessionId:i.id})):i:(X&&Z.infoTick(`Creating new session`),df(r,{previousSessionId:n}))}function _f(e){return e.type===H.Custom}function vf(e,t,n){return xf(e,t)?(bf(e,t,n),!0):!1}function yf(e,t,n){return xf(e,t)?bf(e,t,n):Promise.resolve(null)}async function bf(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=Sf(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){if(!e.isEnabled())return e.handleException(t),null;let n=t&&t instanceof Yd,a=n?`eventBufferOverflow`:`eventBufferError`,o=s();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}function xf(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=Zu(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(X&&Z.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Sf(e,t){try{if(typeof t==`function`&&_f(e))return t(e)}catch(e){return X&&Z.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var Cf=100;function wf(e,t,n){let r=e.getContext();t&&r.traceIds.size<Cf&&r.traceIds.add(t),n&&r.segmentNames.size<Cf&&r.segmentNames.add(n)}function Tf(e){return t=>{e.isEnabled()&&wf(e,t.trace_id,t.name||void 0)}}function Ef(e){return!e.type}function Df(e){return e.type===`transaction`}function Of(e){return e.type===`replay_event`}function kf(e){return e.type===`feedback`}function Af(e){return(t,n)=>{if(!e.isEnabled()||!Ef(t)&&!Df(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(Df(t)){jf(e,t);return}Mf(e,t)}}}function jf(e,t){wf(e,t.contexts?.trace?.trace_id,t.transaction)}function Mf(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?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();(typeof r!=`function`||r(t))&&Eo(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function Nf(e){return t=>{e.isEnabled()&&Ef(t)&&Pf(e,t)}}function Pf(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&$u(e,Y({category:`replay.hydrate-error`,data:{url:Ti()}}))}function Ff(e){let t=s();t&&t.on(`beforeAddBreadcrumb`,t=>If(e,t))}function If(e,t){if(!e.isEnabled()||!zf(t))return;let n=Lf(t);n&&$u(e,n)}function Lf(e){return!zf(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?Rf(e):Y(e)}function Rf(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Y(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>ec?(n=!0,`${e.slice(0,ec)}\u2026`):e;if(typeof e==`object`)try{let t=d(e,7);return JSON.stringify(t).length>ec?(n=!0,`${JSON.stringify(t,null,2).slice(0,ec)}\u2026`):t}catch{}return e});return Y({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function zf(e){return!!e.category}function Bf(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function Vf(){let e=y().getPropagationContext().dsc;e&&delete e.replay_id;let t=me();if(t){let e=Oe(t);delete e.replay_id}}function Hf(e){let t=y().getPropagationContext().dsc;t&&(t.replay_id=e);let n=me();if(n){let t=Oe(n);t.replay_id=e}}function Uf(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:H.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function Wf(e,t){return e.recordingMode!==`buffer`||t.message===Gs||!t.exception||t.type?!1:sf(e.getOptions().errorSampleRate)}function Gf(e){return Object.assign((t,n)=>{if(e.session&&hf(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
22)&&Vf(),!e.isEnabled()||e.isPaused())return t;if(Of(t))return delete t.breadcrumbs,t;if(!Ef(t)&&!Df(t)&&!kf(t))return t;if(!e.checkAndHandleExpiredSession())return Vf(),t;if(kf(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Uf(e,t),t;if(Bf(t,n)&&!e.getOptions()._experiments.captureExceptions)return X&&Z.log(`Ignoring error from rrweb internals`,t),null;let r=Wf(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&cf(t)}return t},{id:`Replay`})}function Kf(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:H.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 qf(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 Jf(e){return t=>{if(!e.isEnabled())return;let n=qf(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Kf(e,[n]),!1)))}}function Yf(e,t){return X&&e.getOptions()._experiments.traceInternals?!1:yr(t,s())}function Xf(e,t){e.isEnabled()&&t!==null&&(Yf(e,t.name)||e.addUpdate(()=>(Kf(e,[t]),!0)))}function Zf(e){if(!e)return;let t=new TextEncoder;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=Mo(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Qf(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function $f(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 ep(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:{method:a,statusCode:o,request:s,response:c}}}function tp(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}
22function np(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}=ip(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function rp(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function ip(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>$s,n=ap(e);if(t){let t=e.slice(0,$s);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function ap(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function op(e,t){let n=sp(e);return O(n,t)}function sp(e,t=L.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(L.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 cp(e,t,n){try{let r=ep(`resource.fetch`,await up(e,t,n));Xf(n.replay,r)}catch(e){X&&Z.exception(e,`Failed to capture fetch breadcrumb`)}}function lp(e,t){let{input:n,response:r}=t,i=Zf(n?Po(n):void 0),a=r?Qf(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function up(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=op(o,n.networkDetailAllowUrls)&&!op(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?dp(n,t.input,l):tp(l),response:await fp(d,n,t.response,u)}}function dp({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?gp(n,t):{};if(!e)return np(i,r,void 0);let[a,o]=No(Po(n),Z),s=np(i,r,a);return o?$f(s,o):s}async function fp(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return tp(i);let a=r?hp(r.headers,n):{};if(!r||!t&&i!==void 0)return np(a,i,void 0);let[o,s]=await mp(r),c=pp(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?$f(c,s):c}function pp(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?Zf(e):n;return r?t?np(i,a,e):np(i,a,void 0):tp(a)}catch(e){return X&&Z.exception(e,`Failed to serialize response body`),np(i,n,void 0)}}async function mp(e){let t=vp(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await yp(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(X&&Z.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(X&&Z.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function hp(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function gp(e,t){return e.length===1&&typeof e[0]!=`string`?_p(e[0],t):e.length===2?_p(e[1],t):{}}function _p(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?hp(n,t):Array.isArray(n)?{}:rp(n,t):{}}function vp(e){try{return e.clone()}catch(e){X&&Z.exception(e,`Failed to clone response body`)}}function yp(e){return new Promise((t,n)=>{let r=Eo(()=>n(Error(`Timeout while trying to read response body`)),500);bp(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function bp(e){return await e.text()}async function xp(e,t,n){try{let r=ep(`resource.xhr`,Cp(e,t,n));Xf(n.replay,r)}catch(e){X&&Z.exception(e,`Failed to capture xhr breadcrumb`)}}function Sp(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=Zf(r),a=n.getResponseHeader(`content-length`)?Qf(n.getResponseHeader(`content-length`)):Ep(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function Cp(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||!op(c,n.networkDetailAllowUrls)||op(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:tp(d),response:tp(f)};let p=s[Do],m=p?rp(p.request_headers,n.networkRequestHeaders):{},h=rp(Fo(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?No(o,Z):[void 0],[v,y]=n.networkCaptureBodies?wp(s):[void 0],b=np(m,d,g),x=np(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?$f(b,_):b,response:y?$f(x,y):x}}function wp(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Tp(e.response,e.responseType)}catch(e){t.push(e)}return X&&Z.warn(`Failed to get xhr response body`,...t),[void 0]}function Tp(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&Pe(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return X&&Z.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return X&&Z.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Ep(e,t){try{return Zf(t===`json`&&Pe(e)?JSON.stringify(e):e)}catch{return}}function Dp(e){let t=s();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>Op(s,e,t))}catch{}}function Op(e,t,n){if(t.data)try{kp(t)&&jp(n)&&(Sp(t,n),xp(t,n,e)),Ap(t)&&Mp(n)&&(lp(t,n),cp(t,n,e))}catch(e){X&&Z.exception(e,`Error when enriching network breadcrumb`)}}function kp(e){return e.category===`xhr`}function Ap(e){return e.category===`fetch`}function jp(e){return e?.xhr}function Mp(e){return e?.input!==void 0}function Np(e){let t=s();po(xd(e)),bo(Jf(e)),Ff(e),Dp(e);let n=Gf(e);Fe(n),t&&(t.on(`beforeSendEvent`,Nf(e)),t.on(`afterSendEvent`,Af(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,Tf(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function Pp(e){try{return Promise.all(Kf(e,[Fp(L.performance.memory)]))}catch{return[]}}function Fp(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 Ip(e,t,n){return Qt(e,t,{...n,setTimeoutImpl:Eo})}var Lp=T.navigator;function Rp(){return/iPhone|iPad|iPod/i.test(Lp?.userAgent??``)||/Macintosh/i.test(Lp?.userAgent??``)&&Lp?.maxTouchPoints&&Lp?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function zp(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){X&&Z.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,Bp(n),e.clickDetector&&hd(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!vf(e,n,i)
22)return!0;if(!i)return!1;let t=e.session;if(Hp(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(X&&Z.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&cf(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function Bp(e){let t=e.data;if(e.type===H.IncrementalSnapshot&&t&&typeof t==`object`&&`source`in t&&t.source===U.Mutation&&`attributes`in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=J.mirror.getNode(e.id),n=t&&J.mirror.getMeta(t);if(n?.type===vd.Element)for(let[t,r]of Object.entries(e.attributes))r===null?delete n.attributes[t]:n.attributes[t]=r}}function Vp(e){let t=e.getOptions();return{type:H.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 Hp(e,t){t&&e.session?.segmentId===0&&vf(e,Vp(e),!1)}function Up(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Wp(e,t,n,r){return Ft(qt(e,Kt(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function Gp({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 23`;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 Kp({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(`preprocessEvent`,r,i);let a=await be(e.getOptions(),r,i,t,e,ye());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function qp({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=Gp({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:u,segmentNames:d,initialTimestamp:f}=r,p=s(),m=y(),h=p?.getTransport(),g=p?.getDsn();if(!p||!h||!g||!a.sampled)return Promise.resolve({});let _=await Kp({scope:m,client:p,replayId:t,event:{type:Ws,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,segment_names:d,urls:c,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!_)return p.recordDroppedEvent(`event_processor`,`replay`),X&&Z.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;let v=Wp(_,o,g,p.getOptions().tunnel),b;try{b=await h.send(v)}catch(e){let t=Error(Gs);try{t.cause=e}catch{}throw t}let x=In({},b);if(Fn(x,`replay`))throw new Yp(x);if(typeof b.statusCode==`number`&&(b.statusCode<200||b.statusCode>=300))throw new Jp(b.statusCode);return b}var Jp=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Yp=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},Xp=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function Zp(e,t={count:0,interval:Zs}){let{recordingData:n,onError:r}=e;if(n.length)try{return await qp(e),!0}catch(n){if(n instanceof Jp||n instanceof Yp)throw n;if(Ee(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=Qs){let e=Error(`${Gs} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Eo(async()=>{try{await Zp(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var Qp=`__THROTTLED`,$p=`__SKIPPED`;function em(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)=>
23e+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?$p:Qp}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var tm=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:Ks,sessionIdleExpire:qs},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=Ip(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=em((e,t)=>yf(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(tc,n),timeout:n,scrollTimeout:nc,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new ud(this,i)),X){let t=e._experiments;Z.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{L.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=Y({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=Y({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Ed(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){X&&Z.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){X&&Z.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,X&&Z.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){X&&Z.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){X&&Z.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Z.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=gf({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){X&&Z.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Z.infoTick(`Starting replay in buffer mode`);let e=gf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=J({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:Xs}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:zp(this),...Rp(),onMutation:this._onMutationHandler.bind(this),...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)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;s()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{X&&Z.log(`Stopping Replay triggered by ${n}`),Vf(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,af(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),X&&Z.log(`Pausing replay`))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),X&&Z.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();
23X&&Z.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();e&&n&&this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),Hf(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&this._isEnabled&&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(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&pf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${L.location.pathname}${L.location.hash}${L.location.search}`,t=`${L.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===Qp){let e=Y({category:`replay.throttled`});this.addUpdate(()=>!vf(this,{type:Xu,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||me(),t=e&&pe(e),n=(t&&ze(t).data||{})[c];if(t&&n&&[`route`,`custom`].includes(n))return ze(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ef({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&s()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&Hf(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=gf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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!hf(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{L.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),L.addEventListener(`blur`,this._handleWindowBlur),L.addEventListener(`focus`,this._handleWindowFocus),L.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(Np(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Hd(this)}_removeListeners(){try{L.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),L.removeEventListener(`blur`,this._handleWindowBlur),L.removeEventListener(`focus`,this._handleWindowFocus),L.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(hf(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){Vf();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){X&&Z.log(`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:H.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=jd(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.
23initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(Kf(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){X&&Z.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await Pp(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Xp;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await Zp({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=s();if(t){let n;n=e instanceof Yp?`ratelimit_backoff`:e instanceof Xp?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){X&&Z.error(`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){X&&Z.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&X&&Z.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&cf(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=Up(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=Y({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function nm(e,t){return[...e,...t].join(`,`)}function rm({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:nm(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:nm(t,[]),blockSelector:nm(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:nm(r,[]),ignoreSelector:nm(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function im({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var am=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,om=[`content-length`,`content-type`,`accept`],sm=Symbol.for(`sentry__originalRequestBody`),cm=!1,lm=!1;function um(){if(typeof Request>`u`||lm)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[sm]=n.body),r};t.prototype=e.prototype,T.Request=t,lm=!0}catch{}}var dm=(e=>new fm(e)),fm=class{constructor({flushMinDelay:e=Js,flushMaxDelay:t=Ys,minReplayDuration:n=ic,maxReplayDuration:r=oc,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:ee=[],maskFn:T,beforeAddRecordingEvent:E,beforeErrorSampling:D,onError:O,attachRawBodyFromRequest:k=!1}={}){this.name=`Replay`;let te=rm({mask:b,unmask:S,block:C,unblock:w,ignore:ee});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>im({maskAttributes:x,maskAllText:c,privacyOptions:te,key:e,value:t,el:n}),...te,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,ac),maxReplayDuration:Math.min(r,oc),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:mm(v),networkResponseHeaders:mm(y),beforeAddRecordingEvent:E,beforeErrorSampling:D,onError:O,attachRawBodyFromRequest:k,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${am}`:am,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&gn())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return cm}set _isInitialized(e){cm=e}afterAllSetup(e){gn()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&um(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
23startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(en(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&en(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=pm(this._initialOptions,e);this._replay=new tm({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function pm(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Ot(n.replaysSessionSampleRate),a=Ot(n.replaysOnErrorSampleRate);return i==null&&a==null&&Ke(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function mm(e){return[...om,...e.map(e=>e.toLowerCase())]}var hm=`BrowserTracing`;function gm(e){e.integrations&&Array.isArray(e.integrations)&&e.integrations.some(e=>e.name===hm)&&Ke(()=>{console.warn(`browserTracingIntegration is not fully compatible with @sentry/react-router. Please use reactRouterTracingIntegration instead.`)}),Tr(e,`react-router`,[`react-router`,`browser`]);let t=Hs(e);return Ne(`runtime`,`browser`),t}function _m({state:e,routes:t,getRouteInfo:n,location:r,basename:i,future:a,isSpaMode:o}){let s={...e,loaderData:{...e.loaderData}},c=Xe(a,i||`/`);c.update(t);let l=c.match(r);if(l)for(let e of l){let t=e.route.id,r=n(t);lt(t,r.clientLoader,r.hasLoader,o)&&(r.hasHydrateFallback||!r.hasLoader)?delete s.loaderData[t]:r.hasLoader||(s.loaderData[t]=null)}return s}var Q=e(t(),1),vm=e(Je(),1);function ym(e){return Q.createElement(tt,{flushSync:vm.flushSync,...e})}var $=null,bm=null;function xm(){if(!$&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}$={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function Sm({getContext:e,instrumentations:t}){if(xm(),!$)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=$;if(!$.stateDecodingPromise){let e=$.context.stream;et(e,`No stream found for single fetch decoding`),$.context.stream=void 0,$.stateDecodingPromise=st(e,window).then(e=>{$.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if($.stateDecodingPromise.error)throw $.stateDecodingPromise.error;if(!$.stateDecodingPromise.value)throw $.stateDecodingPromise;let r=rt($.manifest.routes,$.routeModules,$.context.state,$.context.ssr,$.context.isSpaMode),i;if($.context.isSpaMode){let{loaderData:e}=$.context.state;$.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=_m({state:$.context.state,routes:r,getRouteInfo:e=>({clientLoader:$.routeModules[e]?.clientLoader,hasLoader:$.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:$.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,future:$.context.future,isSpaMode:$.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=Ze({routes:r,history:$e(),basename:$.context.basename,getContext:e,hydrationData:i,mapRouteProperties:Qe,hydrationRouteProperties:nt,instrumentations:t,dataStrategy:at(()=>a,$.manifest,$.routeModules,$.context.ssr),patchRoutesOnNavigation:ot(()=>a,$.manifest,$.routeModules,$.context.ssr,$.context.routeDiscovery,$.context.
23isSpaMode,$.context.basename)});return $.router=a,a.state.initialized&&($.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=it,window.__reactRouterDataRouter=a,a}function Cm(e){bm||=Sm({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=Q.useState(void 0);Q.useEffect(()=>{},[]),Q.useEffect(()=>{},[t]);let[r,i]=Q.useState(bm.state.location);return Q.useLayoutEffect(()=>{$&&$.router&&!$.routerInitialized&&($.routerInitialized=!0,$.router.initialize())},[]),Q.useLayoutEffect(()=>{if($&&$.router)return $.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),et($,`ssrInfo unavailable for HydratedRouter`),dt(bm,$.manifest,$.routeModules,$.context.ssr,$.context.routeDiscovery,$.context.isSpaMode),Q.createElement(Q.Fragment,null,Q.createElement(ct.Provider,{value:{manifest:$.manifest,routeModules:$.routeModules,future:$.context.future,criticalCss:t,ssr:$.context.ssr,isSpaMode:$.context.isSpaMode,routeDiscovery:$.context.routeDiscovery}},Q.createElement(ut,{location:r},Q.createElement(ym,{router:bm,useTransitions:e.useTransitions,onError:e.onError}))),Q.createElement(Q.Fragment,null))}var wm=Ye(),Tm=_t();async function Em(){ht(window.location.pathname)&&typeof Office<`u`&&await gt(),gm({enabled:window.location.pathname!==`/app/settings/mcp/callback`,dsn:`https://a62a2c5974d439d6f7b184d4a6ac2cf2@o4510194098110464.ingest.us.sentry.io/4510195380584448`,sendDefaultPii:!0,environment:mt,release:pt,dist:ft,integrations:[dm()],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1}),(0,Q.startTransition)(()=>{(0,wm.hydrateRoot)(document,(0,Tm.jsx)(Q.StrictMode,{children:(0,Tm.jsx)(Cm,{})}))})}Em(); 24//# debugId=16e6da26-b52b-5a81-b732-8b319abcecb5
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.