PageSourceSearch

https://www.winterparkescapes.com/_astro/init.bbx9iDzC.js

js winterparkescapes.com collected 2026-10-08 06:48:47 UTC 218,952 bytes, 19 lines download raw bytes

1import{a as hc}from"./locale.CPcgLjBS.js";import{n as mc}from"./boot.BU1VC0wp.js";import{$ as Ht,$t as Pn,A as Bs,At as Ae,B as gc,Bt as Et,C as _c,Ct as ve,D as et,Dt as Ye,E as _e,Et as Us,F as yc,Ft as vc,G as Sc,Gt as oo,H as Jr,Ht as Hs,I as Ec,It as fe,J as Fn,Jt as ao,K as co,Kt as Qr,L as bc,Lt as Zr,M as Tc,Mt as es,N as se,Nt as wc,O as Jn,Ot as dt,P as Ic,Pt as pt,Q as ts,Qt as Mt,R as kc,Rt as Rc,S as Cc,St as $t,T as Pe,Tt as yr,U as Mc,Ut as xc,V as vr,Vt as ge,W as Ac,Wt as ns,X as En,Xt as ht,Y as Nc,Yt as Sr,Z as rs,Zt as ss,_ as Oc,_t as is,a as Lc,an as Wt,at as z,b as uo,bt as Er,c as Dc,cn as lo,ct as Ee,d as Pc,dn as ee,dt as Fc,en as Bc,et as ce,f as $s,fn as L,ft as Uc,g as xe,gt as Ws,h as Hc,ht as Qn,i as $c,in as Wc,it as zc,j as qc,jt as zs,k as jc,kt as qs,l as zt,ln as Gc,lt as Vc,m as Yc,mt as fo,n as Kc,nn as He,o as Xc,on as E,ot as Q,p as js,pt as po,q as Jc,qt as bn,r as Qc,rn as Zc,rt as Ke,s as eu,sn as Gs,st as tu,t as bt,tn as Vs,tt as nu,u as ru,un as Ys,ut as su,v as Tn,vt as iu,w as br,wt as mt,x as qt,xt as pe,y as ou,yt as au,z as cu,zt as ho}from"./trace.C84i4VwR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"9a5b4c67607c0e380ad47d24340266712bad30f0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="20258a2d-5a32-448c-8c54-178b70a5106f",e._sentryDebugIdIdentifier="sentry-dbid-20258a2d-5a32-448c-8c54-178b70a5106f")}catch{}})();globalThis.process??={};globalThis.process.env??={};var pn={},Ks={};function ze(e,t){pn[e]=pn[e]||[],pn[e].push(t)}function qe(e,t){if(!Ks[e]){Ks[e]=!0;try{t()}catch(n){L&&E.error(`Error while instrumenting ${e}`,n)}}}function Se(e,t){const n=e&&pn[e];if(n)for(const r of n)try{r(t)}catch(s){L&&E.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${He(r)}
4Error:`,s)}}var Zn=null;function mo(e){const t="error";ze(t,e),qe(t,uu)}function uu(){Zn=ee.onerror,ee.onerror=function(e,t,n,r,s){return Se("error",{column:r,error:s,line:n,msg:e,url:t}),Zn?Zn.apply(this,arguments):!1},ee.onerror.__SENTRY_INSTRUMENTED__=!0}var er=null;function go(e){const t="unhandledrejection";ze(t,e),qe(t,lu)}function lu(){er=ee.onunhandledrejection,ee.onunhandledrejection=function(e){return Se("unhandledrejection",e),er?er.apply(this,arguments):!0},ee.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Xs=!1;function du(){if(Xs)return;function e(){const t=_e(),n=t&&et(t);if(n){const r="internal_error";L&&E.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}e.tag="sentry_tracingErrorCallback",Xs=!0,mo(e),go(e)}var hn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},fu="heartbeatFailed",pu="idleTimeout",hu="finalTimeout",mu="externalFinish";function _o(e,t={}){const n=new Map;let r=!1,s,i=mu,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=hn.idleTimeout,finalTimeout:u=hn.finalTimeout,childSpanTimeout:d=hn.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:f=!0}=t,h=z();if(!h||!Pe()){const g=new Tn;return ou(g,{sample_rate:"0",sampled:"false",...qt(g)}),g}const p=Q(),m=_e(),_=gu(e);_.end=new Proxy(_.end,{apply(g,B,q){if(l&&l(_),B instanceof Tn)return;const[y,...T]=q,P=Tc(y||ve()),x=Jn(_).filter(W=>W!==_),ne=se(_);if(!x.length||!f)return b(P),Reflect.apply(g,B,[P,...T]);const Z=h.getOptions().ignoreSpans,j=x?.reduce((W,k)=>{const G=se(k);return!G.timestamp||Z&&br(G,Z)?W:W?Math.max(W,G.timestamp):G.timestamp},void 0),V=ne.start_timestamp,v=Math.min(V?V+u/1e3:1/0,Math.max(V||-1/0,Math.min(P,j||1/0)));return b(v),Reflect.apply(g,B,[v,...T])}});function S(){s&&(clearTimeout(s),s=void 0)}function R(g){S(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=pu,_.end(g))},c)}function A(g){s=setTimeout(()=>{!r&&o&&(i=fu,_.end(g))},d)}function $(g){S(),n.set(g,!0),A(ve()+d/1e3)}function X(g){n.has(g)&&n.delete(g),n.size===0&&R(ve()+c/1e3)}function b(g){r=!0,n.clear(),a.forEach(x=>x()),fo(p,m);const B=se(_),{start_timestamp:q}=B;if(!q)return;B.data["sentry.idle_span_finish_reason"]||_.setAttribute(En,i);const y=B.status;(!y||y==="unknown")&&_.setStatus({code:1}),E.log(`[Tracing] Idle span "${B.op}" finished`);const T=Jn(_).filter(x=>x!==_);let P=0;T.forEach(x=>{x.isRecording()&&(x.setStatus({code:2,message:"cancelled"}),x.end(g),L&&E.log("[Tracing] Cancelling span since span ended early",JSON.stringify(x,void 0,2)));const{timestamp:ne=0,start_timestamp:Z=0}=se(x),j=Z<=g,V=(u+c)/1e3,v=ne-Z<=V;if(L){const W=JSON.stringify(x,void 0,2);j?v||E.log("[Tracing] Discarding span since it finished after idle span final timeout",W):E.log("[Tracing] Discarding span since it happened after idle span was finished",W)}(!v||!j)&&(jc(_,x),P++)}),P>0&&_.setAttribute("sentry.idle_span_discarded_spans",P)}return a.push(h.on("spanStart",g=>{r||g===_||se(g).timestamp||g instanceof Qc&&g.isStandaloneSpan()||Jn(_).includes(g)&&$(g.spanContext().spanId)})),a.push(h.on("spanEnd",g=>{r||X(g.spanContext().spanId)})),a.push(h.on("idleSpanEnableAutoFinish",g=>{g===_&&(o=!0,R(),n.size&&A())})),t.disableAutoFinish||R(),setTimeout(()=>{r||(_.setStatus({code:2,message:"deadline_exceeded"}),i=hu,_.end())},u),_}function gu(e){const t=bt(e);
4return fo(Q(),t),L&&E.log("[Tracing] Started span is an idle span"),t}var tr=0,Js=1,Qs=2;function jt(e){return new yo(t=>{t(e)})}function os(e){return new yo((t,n)=>{n(e)})}var yo=class Tr{constructor(t){this._state=tr,this._handlers=[],this._runExecutor(t)}then(t,n){return new Tr((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Tr((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===tr)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Js&&n[1](this._value),this._state===Qs&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===tr){if(Pn(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Js,i)},s=i=>{n(Qs,i)};try{t(r,s)}catch(i){s(i)}}};function _u(e,t,n,r=0){try{const s=wr
4(t,n,e,r);return Pn(s)?s:jt(s)}catch(s){return os(s)}}function wr(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return L&&i===null&&E.log(`Event processor "${s.id||"?"}" dropped event`),Pn(i)?i.then(o=>wr(o,t,n,r+1)):wr(i,t,n,r+1)}var Ve,Zs,ei,Oe;function yu(e){const t=ee._sentryDebugIds,n=ee._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Oe&&r.length===Zs&&s.length===ei)return Oe;Zs=r.length,ei=s.length,Oe={},Ve||(Ve={});const i=(o,a)=>{for(const c of o){const u=a[c],d=Ve?.[c];if(d&&Oe&&u)Oe[d[0]]=u,Ve&&(Ve[c]=[d[0],u]);else if(u){const l=e(c);for(let f=l.length-1;f>=0;f--){const h=l[f]?.filename;if(h&&Oe&&Ve){Oe[h]=u,Ve[c]=[h,u];break}}}}};return t&&i(r,t),n&&i(s,n),Oe}function vu(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Su(e,t),r&&Tu(e,r),wu(e,n),Eu(e,s),bu(e,i)}function ti(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:f,propagationContext:h,transactionName:p,span:m}=t;Rt(e,"extra",n),Rt(e,"tags",r),Rt(e,"attributes",s),Rt(e,"user",i),Rt(e,"contexts",o),e.sdkProcessingMetadata=is(e.sdkProcessingMetadata,c,2),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function Rt(e,t,n){e[t]=is(e[t],n,1)}function vo(e,t){const n=tu().getScopeData();return e&&ti(n,e.getScopeData()),t&&ti(n,t.getScopeData()),n}function Su(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function Eu(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function bu(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tu(e,t){e.contexts={trace:Ic(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:qt(t),...e.sdkProcessingMetadata};const n=se(et(t)).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n)}function wu(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function So(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||dt(),timestamp:t.timestamp||$t()},u=n.integrations||e.integrations.map(m=>m.name);Iu(c,e),Cu(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&ku(c,e.stackParser);const d=xu(r,n.captureContext);n.mechanism&&mt(c,n.mechanism);const l=s?s.getEventProcessors():[],f=vo(i,d),h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),vu(c,f);const p=[...l,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?jt(c):_u(p,c,n)).then(m=>(m&&Ru(m),typeof o=="number"&&o>0?Mu(m,o,a):m))}function Iu(e,t){const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o?.url&&i&&(o.url=zs(o.url,i)),i&&e.exception?.values?.forEach(a=>{a.value&&(a.value=zs(a.value,i))})}function ku(e,t){const n=yu(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Ru(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Cu(e,t){t.length>0&&(e.sdk=e.sdk||{}
4,e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Mu(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:xe(s.data,t,n)}}))},...e.user&&{user:xe(e.user,t,n)},...e.contexts&&{contexts:xe(e.contexts,t,n)},...e.extra&&{extra:xe(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=xe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:xe(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=xe(e.contexts.flags,3,n)),r}function xu(e,t){if(!t)return e;const n=e?e.clone():new po;return n.update(t),n}function Au(e){if(e)return Nu(e)?{captureContext:e}:Lu(e)?{captureContext:e}:e}function Nu(e){return e instanceof po||typeof e=="function"}var Ou=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Lu(e){return Object.keys(e).some(t=>Ou.includes(t))}function as(e,t){return Q().captureException(e,Au(t))}function _y(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Q().captureMessage(e,n,r)}function Eo(e,t){return Q().captureEvent(e,t)}function Du(e,t){Ee().setContext(e,t)}function yy(e){Ee().setUser(e)}function Pu(){const e=z();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Fu(e){Ee().addEventProcessor(e)}function ni(e){const t=Ee(),{user:n}=vo(t,Q()),{userAgent:r}=ee.navigator||{},s=au({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Er(i,{status:"exited"}),bo(),t.setSession(s),s}function bo(){const e=Ee(),t=Q().getSession()||e.getSession();t&&iu(t),To(),e.setSession()}function To(){const e=Ee(),t=z(),n=e.getSession();n&&t&&t.captureSession(n)}function nr(e=!1){if(e){bo();return}To()}function Bu(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Uu(e){return`${Bu(e)}${e.projectId}/envelope/`}function Hu(e,t){const 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 $u(e,t,n){return t||`${Uu(e)}?${Hu(e,n)}`}var ri=[];function Wu(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function zu(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return Wu(r)}function qu(e,t){const n={};return t.forEach(r=>{r&&wo(e,r,n)}),n}function si(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function wo(e,t,n){if(n[t.name]){L&&E.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ri.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),ri.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}L&&E.log(`Integration installed: ${t.name}`)}function ju(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Gu(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Jr(r)),zt(s,[ju(e)])}function Ir(e,t){const n=t??Vu(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Gu(n,r._metadata,r.tunnel,e.getDsn());Io().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function Vu(e){return Io().get(e)}function Io(){return lo("clientToLogBufferMap",()=>new WeakMap)}function Yu(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Ku(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Jr(r)),zt(s,[Yu(e)])}function ko(e,t){const n=t??Xu(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Ku(n,r._metadata,r.tunnel,e.getDsn());Ro().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function Xu(e){return Ro().get(e)}function Ro(){return lo("clientToMetricBufferMap",()=>new WeakMap)}function Co(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var cs=Symbol.for("SentryBufferFullError");function us(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return os(cs);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(o){if(!t.size)return jt(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(u=>Co(setTimeout(()=>u(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}var Ju=60*1e3;function Qu(e,t=es()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ju:r-t}function Zu(e,t){return e[t]||e.all||0}function Mo(e,t,n=es()){return Zu(e,t)>n}function xo(e,{statusCode:t,headers:n},r=es()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const h of u.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[h]=r+f):s[h]=r+f}else o?s.all=r+Qu(o,r):t===429&&(s.all=r+60*1e3);return s}function el(e,t,n=us(e.bufferSize||64)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(js(o,(l,f)=>{const h=$s(f);
4Mo(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(l)}),a.length===0)return Promise.resolve({});const c=zt(o[0],a),u=l=>{if(Pc(c,["client_report"])){L&&E.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}js(c,(f,h)=>{e.recordDroppedEvent(l,$s(h))})},d=()=>t({body:Hc(c)}).then(l=>l.statusCode===413?(L&&E.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(L&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&E.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=xo(r,l),l),l=>{throw u("network_error"),L&&E.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===cs)return L&&E.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:i,flush:s}}function tl(e,t,n){const r=[{type:"client_report"},{timestamp:n||$t(),discarded_events:e}];return zt(t?{dsn:t}:{},[r])}function Ao(e){const t=[];e.message&&t.push(e.message);try{const 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 nl(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[Nc],exclusive_time:o?.[Fn],measurements:e.measurements,is_segment:!0}}function rl(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 ii="Not capturing exception because it's already been captured.",oi="Discarded session because of missing or non-string release",No=Symbol.for("SentryInternalError"),Oo=Symbol.for("SentryDoNotSendEventError"),sl=5e3;function mn(e){return{message:e,[No]:!0}}function rr(e){return{message:e,[Oo]:!0}}function ai(e){return!!e&&typeof e=="object"&&No in e}function ci(e){return!!e&&typeof e=="object"&&Oo in e}function ui(e,t,n,r,s){let i=0,o,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?s(e):a||(a=!0,o=Co(setTimeout(()=>{s(e)},sl)))}),e.on("flush",()=>{s(e)})}var il=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=us(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=Mc(e.dsn):L&&E.warn("No DSN provided, client will not send events."),this._dsn){const t=$u(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&&ui(this,"afterCaptureLog","flushLogs",ul,Ir),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ui(this,"afterCaptureMetric","flushMetrics",cl,ko)}captureException(e,t,n){const r=dt();if(Us(e))return L&&E.log(ii),r;const s={event_id:r,...t};return this._process(()=>this.eventFromException(e,s).then(i=>this._captureEvent(i,s,n)).then(i=>i),"error"),s.event_id}captureMessage(e,t,n,r){const s={event_id:dt(),...n},i=ao(e)?e:String(e),o=ht(e),a=o?this.eventFromMessage(i,t,s):this.eventFromException(e,s);return this._process(()=>a.then(c=>this._captureEvent(c,s,r)),o?"unknown":"error"),s.event_id}captureEvent(e,t,n){const r=dt();if(t?.originalException&&Us(t.originalException))return L&&E.log(ii),r;const s={event_id:r,...t},i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=li(e.type);return this._process(()=>this._captureEvent(e,s,o||n,a),c),s.event_id}captureSession(e){this.sendSession(e),Er(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;
4this.emit("flush");const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Ir(this);const 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]}addIntegration(e){const t=this._integrations[e.name];wo(this,e,this._integrations),t||si(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Lc(e,this._dsn,this._options._metadata,this._options.tunnel);for(const r of t.attachments||[])n=eu(n,Dc(r));this.sendEnvelope(n).then(r=>this.emit("afterSendEvent",e,r))}sendSession(e){const{release:t,environment:n=Cc}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!t){L&&E.warn(oi);return}s.release=s.release||t,s.environment=s.environment||n,e.attrs=s}else{if(!e.release&&!t){L&&E.warn(oi);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=Xc(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;L&&E.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...s)=>t(...s);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(r=>r(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return L&&E.error("Error while sending envelope:",t),{}}return L&&E.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=qu(this,e),si(this,e)}_updateSessionFromEvent(e,t){let n=t.level==="fatal",r=!1;const s=t.exception?.values;if(s){r=!0,n=!1;for(const o of s)if(o.mechanism?.handled===!1){n=!0;break}}const i=e.status==="ok";(i&&e.errors===0||i&&n)&&(Er(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(n=>setTimeout(n,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){const s=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),So(s,e,t,n,this,r).then(o=>
4(o===null||(this.emit("postprocessEvent",o,t),o.contexts={trace:{...o.contexts?.trace,...Vc(n)},...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:uo(this,n),...o.sdkProcessingMetadata}),o))}_captureEvent(e,t={},n=Q(),r=Ee()){return L&&kr(e)&&E.log(`Captured error event \`${Ao(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(s=>s.event_id,s=>{L&&(ci(s)?E.log(s.message):ai(s)?E.warn(s.message):E.warn(s))})}_processEvent(e,t,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=Lo(e),a=kr(e),c=`before send for type \`${e.type||"error"}\``,u=typeof i>"u"?void 0:vr(i);if(a&&typeof u=="number"&&wc()>u)return this.recordDroppedEvent("sample_rate","error"),os(rr(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d=li(e.type);return this._prepareEvent(e,t,n,r).then(l=>{if(l===null)throw this.recordDroppedEvent("event_processor",d),rr("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?l:ol(al(this,s,l,t),c)}).then(l=>{if(l===null){if(this.recordDroppedEvent("before_send",d),o){const p=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",p)}throw rr(`${c} returned \`null\`, will not send event.`)}const f=n.getSession()||r.getSession();if(a&&f&&this._updateSessionFromEvent(f,l),o){const p=(l.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(l.spans?l.spans.length:0);p>0&&this.recordDroppedEvent("before_send","span",p)}const h=l.transaction_info;if(o&&h&&l.transaction!==e.transaction){const p="custom";l.transaction_info={...h,source:p}}return this.sendEvent(l,t),l}).then(null,l=>{throw ci(l)||ai(l)?l:(this.captureException(l,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:l}),mn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
5Reason: ${l}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===cs&&this.recordDroppedEvent("queue_overflow",t),n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,n])=>{const[r,s]=t.split(":");return{reason:r,category:s,quantity:n}})}_flushOutcomes(){L&&E.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){L&&E.log("No outcomes to send");return}if(!this._dsn){L&&E.log("No dsn provided, will not send outcomes");return}L&&E.log("Sending outcomes:",e);const t=tl(e,this._options.tunnel&&Jr(this._dsn));this.sendEnvelope(t)}};function li(e){return e==="replay_event"?"replay":e||"error"}function ol(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Pn(e))return e.then(r=>{if(!Sr(r)&&r!==null)throw mn(n);return r},r=>{throw mn(`${t} rejected with ${r}`)});if(!Sr(e)&&e!==null)throw mn(n);return e}function al(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(kr(c)&&s)return s(c,r);if(Lo(c)){if(o||a){const u=nl(c);if(a?.length&&br(u,a))return null;if(o){const d=o(u);d?c=is(n,rl(d)):Bs()}if(c.spans){const d=[],l=c.spans;for(const h of l){if(a?.length&&br(h,a)){_c(l,h);continue}if(o){const p=o(h);p?d.push(p):(Bs(),d.push(h))}else d.push(h)}const f=c.spans.length-d.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=d}}if(i){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(c,r)}}return c}function kr(e){return e.type===void 0}function Lo(e){return e.type==="transaction"}function cl(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Do(e.attributes)}function ul(e){let t=0;return e.message&&(t+=e.message.length*2),t+Do(e.attributes)}function Do(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*di(n[0]):ht(n)?t+=di(n):t+=100}),t}function di(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function ll(e){return ns(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function fi(e){return ll(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function dl(e,t){t.debug===!0&&(L?E.enable():Wt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Q().update(t.initialScope);const n=new e(t);return fl(n),n.init(),n}function fl(e){Q().setClient(e)}var pl="thismessage:/";function ls(e){return"isRelative"in e}function ds(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?pl:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function hl(e){if(ls(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Qe(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 ml(e){return e.split(/[?#]/,1)[0]}function Fe(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const a=e.slice(i+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function gl(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return yl(e,n)||_l(e,r)}function _l(e,t){return t?pi(e)===pi(t):!1}function yl(e,t){const n=ds(e);return!n||ls(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function pi(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function vl(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 Po(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:Ys})),s.version=Ys)}function Fo(e={}){const t=e.client||z();if(!Pu()||!t)return{};const n=Uc(Gc());if(n.getTraceData)return n.getTraceData(e);const r=e.scope||Q(),s=e.span||_e();if(!s&&su())return{};const i=s?yc(s):Sl(r),o=Sc(s?qt(s):uo(t,r));if(!bc.test(i))return E.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const a={"sentry-trace":i,baggage:o};return e.propagateTraceparent&&(a.traceparent=s?Ec(s):El(r)),a}function Sl(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return kc(t,r,n)}function El(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return cu(t,r,n)}function bl(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?c():r}function l(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return l.cancel=u,l.flush=d,l}var Tl=100;function $e(e,t){const n=z(),r=Ee();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Tl}=n.getOptions();if(i<=0)return;const o={timestamp:$t(),...e},a=s?Wt(()=>s(o,t)):o;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
5)}var hi,wl="FunctionToString",mi=new WeakMap,Il=()=>({name:wl,setupOnce(){hi=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Zr(this),n=mi.has(z())&&t!==void 0?t:this;return hi.apply(n,e)}}catch{}},setup(e){mi.set(e,!0)}}),kl=Il,Rl=[/^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$/],Cl="EventFilters",Ml=(e={})=>{let t;return{name:Cl,setup(n){t=gi(e,n.getOptions())},processEvent(n,r,s){return t||(t=gi(e,s.getOptions())),Al(n,t)?null:n}}},xl=(e={})=>({...Ml(e),name:"InboundFilters"});function gi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Rl],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Al(e,t){if(e.type){if(e.type==="transaction"&&Ol(e,t.ignoreTransactions))return L&&E.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
6Event: ${Ye(e)}`),!0}else{if(Nl(e,t.ignoreErrors))return L&&E.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
7Event: ${Ye(e)}`),!0;if(Fl(e))return L&&E.warn(`Event dropped due to not having an error message, error type or stacktrace.
8Event: ${Ye(e)}`),!0;if(Ll(e,t.denyUrls))return L&&E.warn(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${Ye(e)}.
10Url: ${wn(e)}`),!0;if(!Dl(e,t.allowUrls))return L&&E.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11Event: ${Ye(e)}.
12Url: ${wn(e)}`),!0}return!1}function Nl(e,t){return t?.length?Ao(e).some(n=>Ae(n,t)):!1}function Ol(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Ae(n,t):!1}function Ll(e,t){if(!t?.length)return!1;const n=wn(e);return n?Ae(n,t):!1}function Dl(e,t){if(!t?.length)return!0;const n=wn(e);return n?Ae(n,t):!0}function Pl(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function wn(e){try{const t=[...e.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Pl(t):null}catch{return L&&E.error(`Cannot extract url for event ${Ye(e)}`),null}}function Fl(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Bl(e,t,n,r,s,i){if(!s.exception?.values||!i||!bn(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Rr(e,t,r,i.originalException,n,s.exception.values,o,0))}function Rr(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(bn(r[s],Error)){_i(o,a,r);const u=e(t,r[s]),d=c.length;yi(u,s,d,a),c=Rr(e,t,n,r[s],s,[u,...c],u,d)}return Bo(r)&&r.errors.forEach((u,d)=>{if(bn(u,Error)){_i(o,a,r);const l=e(t,u),f=c.length;yi(l,`errors[${d}]`,f,a),c=Rr(e,t,n,u,s,[l,...c],l,f)}}),c}function Bo(e){return Array.isArray(e.errors)}function _i(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Bo(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function yi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Ul(e){const t="console";ze(t,e),qe(t,Hl)}function Hl(){"console"in ee&&Wc.forEach(function(e){e in ee.console&&fe(ee.console,e,function(t){return Gs[e]=t,function(...n){Se("console",{args:n,level:e}),Gs[e]?.apply(ee.console,n)}})})}function Uo(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var $l="Dedupe",Wl=()=>{let e;return{name:$l,processEvent(t){if(t.type)return t;try{if(ql(t,e))return L&&E.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},zl=Wl;function ql(e,t){return t?!!(jl(e,t)||Gl(e,t)):!1}function jl(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!$o(e,t)||!Ho(e,t))}function Gl(e,t){const n=vi(t),r=vi(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!$o(e,t)||!Ho(e,t))}function Ho(e,t){let n=Vs(e),r=Vs(t);if(!n&&!r)return!0;
12if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function $o(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 vi(e){return e.exception?.values?.[0]}var Vl="ConversationId",Yl=()=>({name:Vl,setup(e){e.on("spanStart",t=>{const n=Q().getScopeData(),r=Ee().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(Jc,s)})}}),Kl=Yl;function Xl(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=Pe()&&t(o);if(e.endTimestamp){const h=e.fetchData.__span;if(!h)return;const p=r[h];p&&(a&&(Zl(p,e),Jl(p,e,s)),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!_e(),l=a&&d?bt(td(o,i,c)):new Tn;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const h=e.args[0],p={...e.args[1]||{}},m=Ql(h,p,Pe()&&d?l:void 0,u);m&&(e.args[1]=p,p.headers=m)}const f=z();if(f){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",l,h)}return l}function Jl(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Ql(e,t,n,r){const s=Fo({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(ss(e)?e.headers:void 0);if(c)if(ed(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),o){const d=u.get("baggage");d?nn(d)||u.set("baggage",`${d},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(c)){const u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&a&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);const d=c.find(l=>l[0]==="baggage"&&nn(l[1]));return o&&!d&&u.push(["baggage",o]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,f=l?Array.isArray(l)?[...l]:[l]:[],h=l&&(Array.isArray(l)?l.find(m=>nn(m)):nn(l));o&&!h&&f.push(o);const p={...c,"sentry-trace":u??i,baggage:f.length>0?f.join(","):void 0};return r&&a&&!d&&(p.traceparent=a),p}else return{...s}}function Zl(e,t){if(t.response){co(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function nn(e){return e.split(",").some(t=>t.trim().startsWith(Ac))}function ed(e){return typeof Headers<"u"&&bn(e,Headers)}function td(e,t,n){if(e.startsWith("data:"))return{name:`${t} ${Fe(e)}`,attributes:Si(e,void 0,t,n)};const r=ds(e);return{name:`${t} ${r?hl(r):e}`,attributes:Si(e,r,t,n)}}function Si(e,t,n,r){const s={url:Fe(e),type:"fetch","http.method":n,[ce]:r,[Ht]:"http.client"};return t&&(ls(t)||(s["http.url"]=Fe(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function Wo(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var Lt=ee;
12function nd(){return"history"in Lt&&!!Lt.history}function rd(){if(!("fetch"in Lt))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Cr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function sd(){if(typeof EdgeRuntime=="string")return!0;if(!rd())return!1;if(Cr(Lt.fetch))return!0;let e=!1;const t=Lt.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Cr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){L&&E.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function zo(e,t){const n="fetch";ze(n,e),qe(n,()=>qo(void 0,t))}function id(e){const t="fetch-body-resolved";ze(t,e),qe(t,()=>qo(ad))}function qo(e,t=!1){t&&!sd()||fe(ee,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=cd(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:ve()*1e3,virtualError:s,headers:ud(r)};return e||Se("fetch",{...a}),n.apply(ee,r).then(async c=>(e?e(c):Se("fetch",{...a,endTimestamp:ve()*1e3,response:c}),c),c=>{Se("fetch",{...a,endTimestamp:ve()*1e3,error:c}),ns(c)&&c.stack===void 0&&(c.stack=s.stack,pt(c,"framesToPop",1));const u=z()?.getOptions().enhanceFetchErrorMessages??"always";if(u!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(a.fetchData.url).host;u==="always"?c.message=`${c.message} (${d})`:pt(c,"__sentry_fetch_url_host__",d)}catch{}throw c})}})}async function od(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function ad(e){let t;try{t=e.clone()}catch{return}od(t,()=>{Se("fetch-body-resolved",{endTimestamp:ve()*1e3,response:e})})}function gn(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ei(e){return typeof e=="string"?e:e?gn(e,"url")?e.url:e.toString?e.toString():"":""}function cd(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ei(n),method:gn(r,"method")?String(r.method).toUpperCase():ss(n)&&gn(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ei(t),method:gn(t,"method")?String(t.method).toUpperCase():"GET"}}function ud(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ss(t))return new Headers(t.headers)}catch{}}function ld(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function dd(){return"npm"}function fd(){return!ld()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Mr(){return typeof window<"u"&&(!fd()||pd())}function pd(){return ee.process?.type==="renderer"}var O=ee,xr=0;function jo(){return xr>0}function hd(){xr++,setTimeout(()=>{xr--})}function gt(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Zr(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>gt(o,t));return e.apply(this,i)}catch(i){throw hd(),Fc(o=>{o.addEventProcessor(a=>(t.mechanism&&(yr(a,void 0,void 0),mt(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),as(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Rc(r,e),pt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function fs(){const e=Et(),{referrer:t}=O.document||{},{userAgent:n}=O.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function ps(e,t){const n=hs(e,t),r={type:vd(t),value:Sd(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function md(e,t,n,r){const s=z()?.getOptions().normalizeDepth,i=Id(t),o={__serialized__:Oc(t,s)};if(i)return{exception:{values:[ps(e,i)]},extra:o};const a={exception:{values:[{type:Qr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Td(t,{isUnhandledRejection:r})}]},extra:o};if(n){const c=hs(e,n);c.length&&(a.exception.values[0].stacktrace={frames:c})}return a}function sr(e,t){return{exception:{values:[ps(e,t)]}}}function hs(e,t){const n=t.stacktrace||t.stack||"",r=_d(t),s=yd(t);try{return e(n,r,s)}catch{}return[]}var gd=/Minified React error #\d+;/i;function _d(e){return e&&gd.test(e.message)?1:0}function yd(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Go(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function vd(e){const t=e?.name;return!t&&Go(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Sd(e){const t=e?.message;return Go(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?fi(t.error):fi(e):"No error message"}function Ed(e,t,n,r){const s=ms(e,t,n?.syntheticException||void 0,r);return mt(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),jt(s)}function bd(e,t,n="info",r,s){const i=Ar(e,t,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),jt(i)}
12function ms(e,t,n,r,s){let i;if(oo(t)&&t.error)return sr(e,t.error);if(Hs(t)||xc(t)){const o=t;if("stack"in t)i=sr(e,t);else{const a=o.name||(Hs(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=Ar(e,c,n,r),yr(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return ns(t)?sr(e,t):Sr(t)||Qr(t)?(i=md(e,t,n,s),mt(i,{synthetic:!0}),i):(i=Ar(e,t,n,r),yr(i,`${t}`,void 0),mt(i,{synthetic:!0}),i)}function Ar(e,t,n,r){const s={};if(r&&n){const i=hs(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),mt(s,{synthetic:!0})}if(ao(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function Td(e,{isUnhandledRejection:t}){const n=vc(e),r=t?"promise rejection":"exception";return oo(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Qr(e)?`Event \`${wd(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function wd(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Id(e){return Object.values(e).find(t=>t instanceof Error)}var kd=class extends il{constructor(e){const t=Rd(e);Po(t,"browser",["browser"],O.SENTRY_SDK_SOURCE||dd()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:n,sendClientReports:r,enableLogs:s,_experiments:i,enableMetrics:o}=this._options,a=o??i?.enableMetrics??!0;O.document&&(r||s||a)&&O.document.addEventListener("visibilitychange",()=>{O.document.visibilityState==="hidden"&&(r&&this._flushOutcomes(),s&&Ir(this),a&&ko(this))}),n&&this.on("beforeSendSession",vl)}eventFromException(e,t){return Ed(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return bd(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 Rd(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:O.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,M=ee,Cd=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Gt=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=Cd(t.value,n),e(t)))}},Vt=(e=!0)=>{const t=M.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Tt=()=>Vt()?.activationStart??0;function Be(e,t,n){M.document&&M.addEventListener(e,t,n)}function In(e,t,n){M.document&&M.removeEventListener(e,t,n)}var ft=-1,Vo=new Set,Md=()=>M.document?.visibilityState==="hidden"&&!M.document?.prerendering?0:1/0,_n=e=>{if(xd(e)&&ft>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Vo)t();isFinite(ft)||(ft=e.type==="visibilitychange"?e.timeStamp:0,In("prerenderingchange",_n,!0))}},Yt=()=>{if(M.document&&ft<0){const e=Tt();ft=(M.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>t.name==="hidden"&&t.startTime>e)[0]?.startTime)??Md(),Be("visibilitychange",_n,!0),Be("pagehide",_n,!0),Be("prerenderingchange",_n,!0)}return{get firstHiddenTime(){return ft},onHidden(e){Vo.add(e)}}};function xd(e){return e.type==="pagehide"||M.document?.visibilityState==="hidden"}var Ad=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`,Kt=(e,t=-1)=>{const n=Vt();let r="navigate";return n&&(M.document?.prerendering||Tt()>0?r="prerender":M.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Ad(),navigationType:r}},ir=new WeakMap;function gs(e,t){try{return ir.get(e)||ir.set(e,new t),ir.get(e)}catch{return new t}}var Nd=class Nr{constructor(){Nr.prototype.__init.call(this),Nr.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}},wt=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},_s=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Bn=e=>{M.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Od=[1800,3e3],Ld=(e,t={})=>{Bn(()=>{const n=Yt(),r=Kt("FCP");let s;const o=wt("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Tt(),0),r.entries.push(c),s(!0)))});o&&(s=Gt(e,r,Od,t.reportAllChanges))})},Dd=[.1,.25],Pd=(e,t={})=>{Ld(_s(()=>{const n=Kt("CLS",0);let r;const s=Yt(),i=gs(t,Nd),o=c=>{for(const u of c)i._processEntry(u);i._sessionValue>
12n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=wt("layout-shift",o);a&&(r=Gt(e,n,Dd,t.reportAllChanges),s.onHidden(()=>{o(a.takeRecords()),r(!0)}),M?.setTimeout?.(r))}))},Yo=0,or=1/0,rn=0,Fd=e=>{e.forEach(t=>{t.interactionId&&(or=Math.min(or,t.interactionId),rn=Math.max(rn,t.interactionId),Yo=rn?(rn-or)/7+1:0)})},Or,Ko=()=>Or?Yo:performance.interactionCount||0,Bd=()=>{"interactionCount"in performance||Or||(Or=wt("event",Fd,{type:"event",buffered:!0,durationThreshold:0}))},ar=10,Xo=0,Ud=()=>Ko()-Xo,Hd=class Lr{constructor(){Lr.prototype.__init.call(this),Lr.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Xo=Ko(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Ud()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<ar||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>ar){const s=this._longestInteractionList.splice(ar);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}},Jo=e=>{const t=M.requestIdleCallback||M.setTimeout;M.document?.visibilityState==="hidden"?e():(e=_s(e),Be("visibilitychange",e,{once:!0,capture:!0}),Be("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),In("visibilitychange",e,{capture:!0}),In("pagehide",e,{capture:!0})}))},$d=[200,500],Wd=40,zd=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Yt();Bn(()=>{Bd();const r=Kt("INP");let s;const i=gs(t,Hd),o=c=>{Jo(()=>{for(const d of c)i._processEntry(d);const u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},a=wt("event",o,{durationThreshold:t.durationThreshold??Wd});s=Gt(e,r,$d,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),s(!0)}))})},qd=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},jd=[2500,4e3],Gd=(e,t={})=>{Bn(()=>{const n=Yt(),r=Kt("LCP");let s;const i=gs(t,qd),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Tt(),0),r.entries=[u],s())},a=wt("largest-contentful-paint",o);if(a){s=Gt(e,r,jd,t.reportAllChanges);const c=_s(()=>{o(a.takeRecords()),a.disconnect(),s(!0)}),u=d=>{d.isTrusted&&(Jo(c),In(d.type,u,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Be(d,u,{capture:!0})}})},Vd=[800,1800],Dr=e=>{M.document?.prerendering?Bn(()=>Dr(e)):M.document?.readyState!=="complete"?addEventListener("load",()=>Dr(e),!0):setTimeout(e)},Yd=(e,t={})=>{const n=Kt("TTFB"),r=Gt(e,n,Vd,t.reportAllChanges);Dr(()=>{const s=Vt();s&&(n.value=Math.max(s.responseStart-Tt(),0),n.entries=[s],r(!0))})},xt={},kn={},Qo,Zo,ea,ta;function ys(e,t=!1){return Un("cls",e,Xd,Qo,t)}function vs(e,t=!1){return Un("lcp",e,Jd,Zo,t)}function Kd(e){return Un("ttfb",e,Qd,ea)}function na(e){return Un("inp",e,Zd,ta)}function _t(e,t){return ra(e,t),kn[e]||(ef(e),kn[e]=!0),sa(e,t)}function Xt(e,t){const n=xt[e];if(n?.length)for(const r of n)try{r(t)}catch(s){Ze&&E.error(`Error while triggering instrumentation handler.
13Type: ${e}
14Name: ${He(r)}
15Error:`,s)}}function Xd(){return Pd(e=>{Xt("cls",{metric:e}),Qo=e},{reportAllChanges:!0})}function Jd(){return Gd(e=>{Xt("lcp",{metric:e}),Zo=e},{reportAllChanges:!0})}function Qd(){return Yd(e=>{Xt("ttfb",{metric:e}),ea=e})}function Zd(){return zd(e=>{Xt("inp",{metric:e}),ta=e})}function Un(e,t,n,r,s=!1){ra(e,t);let i;return kn[e]||(i=n(),kn[e]=!0),r&&t({metric:r}),sa(e,t,s?i:void 0)}function ef(e){const t={};e==="event"&&(t.durationThreshold=0),wt(e,n=>{Xt(e,{entries:n})},t)}function ra(e,t){xt[e]=xt[e]||[],xt[e].push(t)}function sa(e,t,n){return()=>{n&&n();const r=xt[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function tf(e){return"duration"in e}var nf=e=>{const t=n=>{(n.type==="pagehide"||M.document?.visibilityState==="hidden")&&e(n)};Be("visibilitychange",t,{capture:!0,once:!0}),Be("pagehide",t,{capture:!0,once:!0})};function cr(e){return typeof e=="number"&&isFinite(e)}function We(e,t,n,{...r}){const s=se(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Kc(e,()=>{const i=bt({startTime:t,...r});return i&&i.end(n),i})}function Ss(e){const t=z();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),u=t.getIntegrationByName("Replay")?.getReplayId(),d=Q(),l=d.getUser(),f=l!==void 0?l.email||l.id||l.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}return bt({name:n,attributes:{release:o,environment:a,user:f||void 0,profile_id:h||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":M.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s},startTime:i,experimental:{standalone:!0}})}function Hn(){return M.addEventListener&&M.performance}function oe(e){return e/1e3}function rf(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}
15return r===e&&(t=r),{name:t,version:n}}function ia(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function oa(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}nf(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function sf(e){let t=0,n;if(!ia("layout-shift"))return;const r=ys(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);oa(e,(s,i)=>{of(t,n,i,s),r()})}function of(e,t,n,r){Ze&&E.log(`Sending CLS span (${e})`);const s=t?oe((pe()||0)+t.startTime):ve(),i=Q().getScopeData().transactionName,o=t?ge(t.sources[0]?.node):"Layout shift",a={[ce]:"auto.http.browser.cls",[Ht]:"ui.webvital.cls",[Fn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=ge(u.node)});const c=Ss({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[rs]:"",[ts]:e}),c.end(s))}function af(e){let t=0,n;if(!ia("largest-contentful-paint"))return;const r=vs(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);oa(e,(s,i)=>{cf(t,n,i,s),r()})}function cf(e,t,n,r){Ze&&E.log(`Sending LCP span (${e})`);const s=oe((pe()||0)+(t?.startTime||0)),i=Q().getScopeData().transactionName,o=t?ge(t.element):"Largest contentful paint",a={[ce]:"auto.http.browser.lcp",[Ht]:"ui.webvital.lcp",[Fn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=ge(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Ss({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[rs]:"millisecond",[ts]:e}),c.end(s))}function ye(e){return e&&((pe()||performance.timeOrigin)+e)/1e3}function aa(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=rf(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return pe()||Hn()?.timeOrigin?uf({...t,"http.request.redirect_start":ye(e.redirectStart),"http.request.redirect_end":ye(e.redirectEnd),"http.request.worker_start":ye(e.workerStart),"http.request.fetch_start":ye(e.fetchStart),"http.request.domain_lookup_start":ye(e.domainLookupStart),"http.request.domain_lookup_end":ye(e.domainLookupEnd),"http.request.connect_start":ye(e.connectStart),"http.request.secure_connection_start":ye(e.secureConnectionStart),"http.request.connection_end":ye(e.connectEnd),"http.request.request_start":ye(e.requestStart),"http.request.response_start":ye(e.responseStart),"http.request.response_end":ye(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function uf(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var lf=2147483647,bi=0,Ie={},de,Rn;function df({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Hn();if(r&&pe()){r.mark&&M.performance.mark("sentry-tracing-init");const s=t?af(n):gf(),i=_f(),o=e?sf(n):mf();return()=>{s?.(),i(),o?.()}}return()=>{}}function ff(){_t("longtask",({entries:e})=>{const t=_e();if(!t)return;const{op:n,start_timestamp:r}=se(t);for(const s of e){const i=oe(pe()+s.startTime),o=oe(s.duration);n==="navigation"&&r&&i<r||We(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ce]:"auto.ui.browser.metrics"}})}})}function pf(){new PerformanceObserver(e=>{const t=_e();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const r=oe(pe()+n.startTime),{start_timestamp:s,op:i}=se(t);if(i==="navigation"&&s&&r<s)continue;const o=oe(n.duration),a={[ce]:"auto.ui.browser.metrics"},{invoker:c,invokerType:u,sourceURL:d,sourceFunctionName:l,sourceCharPosition:f}=n.scripts[0];a["browser.script.invoker"]=c,a["browser.script.invoker_type"]=u,d&&(a["code.filepath"]=d),l&&(a["code.function"]=l),f!==-1&&(a["browser.script.source_char_position"]=f),We(t,r,r+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function hf(){_t("event",({entries:e})=>{const t=_e();if(t){for(const n of e)if(n.name==="click"){const r=oe(pe()+n.startTime),s=oe(n.duration),i={name:ge(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[ce]:"auto.ui.browser.metrics"}},o=ho(n.target);o&&(i.attributes["ui.component_name"]=o),We(t,r,r+s,i)}}})}function mf(){return ys(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ie.cls={value:e.value,unit:""},Rn=t)},!0)}function gf(){return vs(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ie.lcp={value:e.value,unit:"millisecond"},de=t)},!0)}function _f(){return Kd(({metric:e})=>{e.entries[e.entries.length-1]&&(Ie.ttfb={value:e.value,unit:"millisecond"})})}function yf(e,t){const n=Hn(),r=pe();if(!n?.getEntries||!r)return;const s=oe(r),i=n.getEntries(),{op:o,start_timestamp:a}=se(e);
15i.slice(bi).forEach(c=>{const u=oe(c.startTime),d=oe(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+u<a))switch(c.entryType){case"navigation":bf(e,c,s);break;case"mark":case"paint":case"measure":{Sf(e,c,u,d,s,t.ignorePerformanceApiSpans);const l=Yt(),f=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&f&&(Ie.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&f&&(Ie.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":If(e,c,c.name,u,d,s,t.ignoreResourceSpans);break}}),bi=Math.max(i.length-1,0),kf(e),o==="pageload"&&(Mf(Ie),t.recordClsOnPageloadSpan||delete Ie.cls,t.recordLcpOnPageloadSpan||delete Ie.lcp,Object.entries(Ie).forEach(([c,u])=>{$c(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Tt()),Rf(e,t)),de=void 0,Rn=void 0,Ie={}}function vf(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function Sf(e,t,n,r,s,i){if(vf(t)||["mark","measure"].includes(t.entryType)&&Ae(t.name,i))return;const o=Vt(!1),a=oe(o?o.requestStart:0),c=s+Math.max(n,a),u=s+n,d=u+r,l={[ce]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),Ef(l,t),c<=d&&We(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function Ef(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&ht(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(ht(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function bf(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{sn(e,t,r,n)}),sn(e,t,"secureConnection",n,"TLS/SSL"),sn(e,t,"fetch",n,"cache"),sn(e,t,"domainLookup",n,"DNS"),wf(e,t,n)}function sn(e,t,n,r,s=n){const i=t[Tf(n)],o=t[`${n}Start`];!o||!i||We(e,r+oe(o),r+oe(i),{op:`browser.${s}`,name:t.name,attributes:{[ce]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Tf(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function wf(e,t,n){const r=n+oe(t.requestStart),s=n+oe(t.responseEnd),i=n+oe(t.responseStart);t.responseEnd&&(We(e,r,s,{op:"browser.request",name:t.name,attributes:{[ce]:"auto.ui.browser.metrics"}}),We(e,i,s,{op:"browser.response",name:t.name,attributes:{[ce]:"auto.ui.browser.metrics"}}))}function If(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(a))return;const c={[ce]:"auto.resource.browser.metrics"},u=Qe(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(M.location.origin),Cf(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...aa(t)},l=i+r;We(e,l,l+s,{name:n.replace(M.location.origin,""),op:a,attributes:d})}function kf(e){const t=M.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),cr(n.rtt)&&(Ie["connection.rtt"]={value:n.rtt,unit:"millisecond"})),cr(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),cr(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Rf(e,t){de&&t.recordLcpOnPageloadSpan&&(de.element&&e.setAttribute("lcp.element",ge(de.element)),de.id&&e.setAttribute("lcp.id",de.id),de.url&&e.setAttribute("lcp.url",de.url.trim().slice(0,200)),de.loadTime!=null&&e.setAttribute("lcp.loadTime",de.loadTime),de.renderTime!=null&&e.setAttribute("lcp.renderTime",de.renderTime),e.setAttribute("lcp.size",de.size)),Rn?.sources&&t.recordClsOnPageloadSpan&&Rn.sources.forEac
15h((n,r)=>e.setAttribute(`cls.source.${r+1}`,ge(n.node)))}function Cf(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<lf||typeof i=="string")&&(t[s]=i)})}function Mf(e){const t=Vt(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}var xf=1e3,Ti,Pr,Fr;function ca(e){ze("dom",e),qe("dom",Af)}function Af(){if(!M.document)return;const e=Se.bind(null,"dom"),t=wi(e,!0);M.document.addEventListener("click",t,!1),M.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=M[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(fe(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=c[i]=c[i]||{refCount:0};if(!u.handler){const d=wi(e);u.handler=d,s.call(this,i,d,a)}u.refCount++}catch{}return s.call(this,i,o,a)}}),fe(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this.__sentry_instrumentation_handlers__||{},u=c[i];u&&(u.refCount--,u.refCount<=0&&(s.call(this,i,u.handler,a),u.handler=void 0,delete c[i]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,o,a)}}))})}function Nf(e){if(e.type!==Pr)return!1;try{if(!e.target||e.target._sentryId!==Fr)return!1}catch{}return!0}function Of(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function wi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Lf(n);if(Of(n.type,r))return;pt(n,"_sentryCaptured",!0),r&&!r._sentryId&&pt(r,"_sentryId",dt());
15const s=n.type==="keypress"?"input":n.type;Nf(n)||(e({event:n,name:s,global:t}),Pr=n.type,Fr=r?r._sentryId:void 0),clearTimeout(Ti),Ti=M.setTimeout(()=>{Fr=void 0,Pr=void 0},xf)}}function Lf(e){try{return e.target}catch{return null}}var on;function $n(e){const t="history";ze(t,e),qe(t,Df)}function Df(){if(M.addEventListener("popstate",()=>{const t=M.location.href,n=on;on=t,n!==t&&Se("history",{from:n,to:t})}),!nd())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=on,i=Pf(String(r));if(on=i,s===i)return t.apply(this,n);Se("history",{from:s,to:i})}return t.apply(this,n)}}fe(M.history,"pushState",e),fe(M.history,"replaceState",e)}function Pf(e){try{return new URL(e,M.location.origin).toString()}catch{return e}}var yn={};function ua(e){const t=yn[e];if(t)return t;let n=M[e];if(Cr(n))return yn[e]=n.bind(M);const r=M.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){Ze&&E.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(yn[e]=n.bind(M))}function Ff(e){yn[e]=void 0}function Jt(...e){return ua("setTimeout")(...e)}var Xe="__sentry_xhr_v3__";function la(e){ze("xhr",e),qe("xhr",Bf)}function Bf(){if(!M.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=ve()*1e3,o=Mt(r[0])?r[0].toUpperCase():void 0,a=Uf(r[1]);if(!o||!a)return t.apply(n,r);n[Xe]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Xe];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}Se("xhr",{endTimestamp:ve()*1e3,startTimestamp:i,xhr:n,virtualError:s})}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[f,h]=l,p=d[Xe];return p&&Mt(f)&&Mt(h)&&(p.request_headers[f.toLowerCase()]=h),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Xe];return s&&(r[0]!==void 0&&(s.body=r[0]),Se("xhr",{startTimestamp:ve()*1e3,xhr:n})),t.apply(n,r)}})}function Uf(e){if(Mt(e))return e;try{return e.toString()}catch{}}var Hf=Symbol.for("sentry__originalRequestBody");function da(e){return new URLSearchParams(e).toString()}function fa(e,t=E){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[da(e)];if(!e)return[void 0]}catch(n){return Ze&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ze&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function pa(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){const t=e[0][Hf];return t!==void 0?t:void 0}}function ha(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Ze&&E.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
16`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}var ur=[],vn=new Map,rt=new Map,$f=60;function Wf(){if(Hn()&&pe()){const e=zf();return()=>{e()}}return()=>{}}var Br={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function zf(){return na(qf)}var qf=({metric:e})=>{if(e.value==null)return;const t=oe(e.value);if(t>$f)return;const n=e.entries.find(f=>f.duration===e.value&&Br[f.name]);if(!n)return;const{interactionId:r}=n,s=Br[n.name],i=oe(pe()+n.startTime),o=_e(),a=o?et(o):void 0,c=r!=null?vn.get(r):void 0,u=c?.span||a,d=u?se(u).description:Q().getScopeData().transactionName,l=Ss({n
16ame:c?.elementName||ge(n.target),transaction:d,attributes:{[ce]:"auto.http.browser.inp",[Ht]:`ui.interaction.${s}`,[Fn]:n.duration},startTime:i});l&&(l.addEvent("inp",{[rs]:"millisecond",[ts]:e.value}),l.end(i+t))};function jf(){const e=Object.keys(Br);Mr()&&e.forEach(s=>{M.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=ge(i),a=Math.round(s.timeStamp);if(rt.set(a,o),rt.size>50){const c=rt.keys().next().value;c!==void 0&&rt.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=rt.get(i);if(!o)for(let a=-5;a<=5;a++){const c=rt.get(i+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=_e(),o=i&&et(i);s.forEach(a=>{if(!tf(a))return;const c=a.interactionId;if(c==null||vn.has(c))return;const u=a.target?ge(a.target):n(a);if(ur.length>10){const d=ur.shift();vn.delete(d)}ur.push(c),vn.set(c,{span:o,elementName:u})})};_t("event",r),_t("first-input",r)}var Gf=40;function Vf(e,t=ua("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Ff("fetch"),c}finally{n-=o,r--}}return el(e,s,us(e.bufferSize||Gf))}var me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yf=30,Kf=50;function Ur(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}var Xf=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Jf=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Qf=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zf=/at (.+?) ?\(data:(.+?),/,ep=e=>{const t=e.match(Zf);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Xf.exec(e);if(n){const[,s,i,o]=n;return Ur(s,"?",+i,+o)}const r=Jf.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const o=Qf.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}const[s,i]=ma(r[1]||"?",r[2]);return Ur(i,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},tp=[Yf,ep],np=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sp=e=>{const t=np.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=rp.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let n=t[3],r=t[1]||"?";return[r,n]=ma(r,n),Ur(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ip=[Kf,sp],op=[tp,ip],ap=Bc(...op),ma=(e,t)=>{const 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]},an=1024,cp="Breadcrumbs",up=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:cp,setup(n){t.console&&Ul(pp(n)),t.dom&&ca(fp(n,t.dom)),t.xhr&&la(hp(n)),t.fetch&&zo(mp(n)),t.history&&$n(gp(n)),t.sentry&&n.on("beforeSendEvent",dp(n))}}},lp=up;function dp(e){return function(n){z()===e&&$e({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ye(n)},{event:n})}}function fp(e,t){return function(r){if(z()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>an&&(me&&E.warn(`\`dom.maxStringLength\` cannot exceed ${an}, but a value of ${a} was configured. Sentry will use ${an} instead.`),a=an),typeof o=="string"&&(o=[o]);try{const u=r.event,d=_p(u)?u.target:u;s=ge(d,{keyAttrs:o,maxStringLength:a}),i=ho(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),$e(c,{event:r.event,name:r.name,global:r.global})}}function pp(e){return function(n){if(z()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Uo(n.level),message:qs(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${qs(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;$e(r,{input:n.args,level:n.level})}}function hp(e){return function(n){if(z()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[Xe];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,d={method:o,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:Wo(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,l),$e(f,l)}}function mp(e){return function(n){if(z()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
16if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},o={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,i),$e(o,i)}else{const i=n.response,o={...n.fetchData,status_code:i?.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:Wo(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),$e(c,a)}}}function gp(e){return function(n){if(z()!==e)return;let r=n.from,s=n.to;const i=Qe(O.location.href);let o=r?Qe(r):void 0;const a=Qe(s);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),$e({category:"navigation",data:{from:r,to:s}})}}function _p(e){return!!e&&!!e.target}var yp="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(","),vp="BrowserApiErrors",Sp=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:vp,setupOnce(){t.setTimeout&&fe(O,"setTimeout",Ii),t.setInterval&&fe(O,"setInterval",Ii),t.requestAnimationFrame&&fe(O,"requestAnimationFrame",bp),t.XMLHttpRequest&&"XMLHttpRequest"in O&&fe(XMLHttpRequest.prototype,"send",Tp);const n=t.eventTarget;n&&(Array.isArray(n)?n:yp).forEach(r=>wp(r,t))}}},Ep=Sp;function Ii(e){return function(...t){const n=t[0];return t[0]=gt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${He(e)}`}}),e.apply(this,t)}}function bp(e){return function(t){return e.apply(this,[gt(t,{mechanism:{data:{handler:He(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Tp(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&fe(n,r,function(s){const i={mechanism:{data:{handler:He(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},o=Zr(s);return o&&(i.mechanism.data.handler=He(o)),gt(s,i)})}),e.apply(this,t)}}function wp(e,t){const n=O[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(fe(n,"addEventListener",function(r){return function(s,i,o){try{Ip(i)&&(i.handleEvent=gt(i.handleEvent,{mechanism:{data:{handler:He(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&kp(this,s,i),r.apply(this,[s,gt(i,{mechanism:{data:{handler:He(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),fe(n,"removeEventListener",function(r){return function(s,i,o){try{const a=i.__sentry_wrapped__;a&&r.call(this,s,a,o)}catch{}return r.call(this,s,i,o)}}))}function Ip(e){return typeof e.handleEvent=="function"}function kp(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}var Rp=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof O.document>"u"){me&&E.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ni({ignoreDuration:!0}),nr();const n=Ee();let r=n.getUser();n.addScopeListener(s=>{const i=s.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(nr(),r=i)}),t==="route"&&$n(({from:s,to:i})=>{s!==i&&(ni({ignoreDuration:!0}),nr())})}}},Cp="CultureContext",Mp=()=>({name:Cp,preprocessEvent(e){const t=Ap();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}}),xp=Mp;function Ap(){try{const e=O.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Np="GlobalHandlers",Op=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Np,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Dp(n),ki("onerror")),t.onunhandledrejection&&(Pp(n),ki("onunhandledrejection"))}}},Lp=Op;function Dp(e){mo(t=>{const{stackParser:n,attachStacktrace:r}=ga();if(z()!==e||jo())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=Up(ms(n,c||s,void 0,r,!1),i,o,a);u.level="error",Eo(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Pp(e){go(t=>{const{stackParser:n,attachStacktrace:r}=ga();if(z()!==e||jo())return;const s=Fp(t),i=ht(s)?Bp(s):ms(n,s,void 0,r,!0);i.level="error",Eo(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Fp(e){if(ht(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 Bp(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Up(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];
16return c.length===0&&c.push({colno:r,lineno:n,filename:Hp(t)??Et(),function:"?",in_app:!0}),e}function ki(e){me&&E.log(`Global Handler attached: ${e}`)}function ga(){return z()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Hp(e){if(!(!Mt(e)||e.length===0))return e.startsWith("data:")?`<${Fe(e,!1)}>`:e}var $p=()=>({name:"HttpContext",preprocessEvent(e){if(!O.navigator&&!O.location&&!O.document)return;const t=fs(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Wp="cause",zp=5,qp="LinkedErrors",jp=(e={})=>{const t=e.limit||zp,n=e.key||Wp;return{name:qp,preprocessEvent(r,s,i){Bl(ps,i.getOptions().stackParser,n,t,r,s)}}},Gp=jp;function Vp(){return Yp()?(me&&Wt(()=>{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 Yp(){if(typeof O.window>"u")return!1;const e=O;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const t=Et();return!(O===O.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Hr(e){return[xl(),kl(),Kl(),Ep(),lp(),Lp(),Gp(),zl(),$p(),xp(),Rp()]}function Kp(e={}){const t=!e.skipBrowserExtensionCheck&&Vp();let n=e.defaultIntegrations==null?Hr():e.defaultIntegrations;return dl(kd,{...e,enabled:t?!1:e.enabled,stackParser:Zc(e.stackParser||ap),integrations:zu({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Vf})}var K=ee,Es="sentryReplaySession",Xp="replay_event",bs="Unable to send Replay",Jp=3e5,Qp=9e5,Zp=5e3,eh=5500,th=6e4,nh=5e3,rh=3,Ri=15e4,cn=5e3,sh=3e3,ih=300,Ts=2e7,oh=4999,ah=5e4,Ci=36e5,ch=Object.defineProperty,uh=(e,t,n)=>t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mi=(e,t,n)=>uh(e,typeof t!="symbol"?t+"":t,n),re=(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))(re||{});function lh(e){return e.nodeType===e.ELEMENT_NODE}function At(e){return e?.host?.shadowRoot===e}function Nt(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function dh(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 fh(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const 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 Cn(e){try{const t=e.rules||e.cssRules;return t?dh(Array.from(t,_a).join("")):null}catch{return null}}function ph(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function _a(e){let t;if(mh(e))try{t=Cn(e.styleSheet)||fh(e)}catch{}else if(gh(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=ph(e)),r&&(n=hh(n)),r||s)return n}return t||e.cssText}function hh(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function mh(e){return"styleSheet"in e}function gh(e){return"selectorText"in e}var ya=class{constructor(){Mi(this,"idNodeMap",new Map),Mi(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){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function _h(){return new ya}function Wn({maskInputOptions:e,tagName:t,type:n}
16){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Dt({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function yt(e){return e.toLowerCase()}function $r(e){return e.toUpperCase()}var xi="__rrweb_original__";function yh(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=xi in i?i[xi]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function ws(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?yt(t):null}function Mn(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function va(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 Ai={};function Sa(e){const t=Ai[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Ai[e]=r.bind(window)}function Wr(...e){return Sa("setTimeout")(...e)}function Ea(...e){return Sa("clearTimeout")(...e)}function ba(e){try{return e.contentDocument}catch{}}var vh=1,Sh=new RegExp("[^a-z0-9-_:]"),Pt=-2;function Is(){return vh++}function Eh(e){if(e instanceof HTMLFormElement)return"form";const t=yt(e.tagName);return Sh.test(t)?"div":t}function bh(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var st,Ni,Th=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wh=/^(?:[a-z+]+:)?\/\//i,Ih=/^www\..*/i,kh=/^(data:)([^,]*),(.*)/i;function Rh(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function xn(e,t){return(e||"").replace(Th,(n,r,s,i,o,a)=>{const c=s||o||a,u=r||i||"";if(!c)return n;if(wh.test(c)||Ih.test(c))return`url(${u}${c}${u})`;if(kh.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${bh(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const f of l)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}var Ch=/^[^ \t\n\r\u000c]+/,Mh=/^[, \t\n\r\u000c]+/;function xh(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(Mh),!(n>=t.length);){let i=r(Ch);if(i.slice(-1)===",")i=at(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=at(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}var Oi=new WeakMap;function at(e,t){return!t||t.trim()===""?t:zn(e,t)}function Ah(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function zn(e,t){let n=Oi.get(e);if(n||(n=e.createElement("a"),Oi.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Ta(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return at(e,r);if(n==="xlink:href"&&r[0]!=="#")return at(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return at(e,r);if(n==="srcset")return xh(e,r);if(n==="style"){let a=xn(r,zn(e));return o&&o.size>0&&(a=Rh(a,o)),a}else if(t==="object"&&n==="data")return at(e,r);return typeof i=="function"?i(n,r,s):r}function wa(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Nh(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 s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function Oh(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Je(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Je(e.parentNode,t,n,r+1)}function ct(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Oh(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function vt(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(i){if(c=Je(o,ct(r,s)),c<0)return!0;a=Je(o,ct(t,n),c>=0?c:1/0)}else{if(a=Je(o,ct(t,n)),a<0)return!1;c=Je(o,ct(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}
16function Lh(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=Wr(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Ea(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Wr(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Dh(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Wr(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Ea(i),r=!0,t()})}function Ph(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:_,dataURLOptions:S={},inlineImages:R,recordCanvas:A,keepIframeSrcFn:$,newlyAddedElement:X=!1,ignoreCSSAttributes:b}=t,g=Fh(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Uh(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:_,dataURLOptions:S,inlineImages:R,recordCanvas:A,keepIframeSrcFn:$,newlyAddedElement:X,rootId:g,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,ignoreCSSAttributes:b});case e.TEXT_NODE:return Bh(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:_,rootId:g});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:re.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}function Fh(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Bh(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=l==="STYLE"?!0:void 0,p=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Cn(e.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,e)}f=xn(f,zn(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");const _=vt(e,r,i,s,o,n);return!h&&!p&&!m&&f&&_&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||_)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f&&(f=Dt({isMasked:vt(e,r,i,s,o,Wn({type:null,tagName:l,maskInputOptions:c})),element:e,value:f,maskInputFn:u})),{type:re.Text,textContent:f||"",isStyle:h,rootId:d}}function Uh(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:_,unmaskTextClass:S,maskTextSelector:R,unmaskTextSelector:A,ignoreCSSAttributes:$}=t,X=Nh(e,r,s,i),b=Eh(e);let g={};const B=e.attributes.length;for(let y=0;y<B;y++){const T=e.attributes[y];T.name&&!wa(b,T.name,T.value)&&(g[T.name]=Ta(n,b,yt(T.name),T.value,e,c,$))}if(b==="link"&&o){const y=Array.from(n.styleSheets).find(P=>P.href===e.href);let T=null;y&&(T=Cn(y)),T&&(g.rel=null,g.href=null,g.crossorigin=null,g._cssText=xn(T,y.href))}if(b==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const y=Cn(e.sheet);y&&(g._cssText=xn(y,zn(n)))}if(b==="input"||b==="textarea"||b==="select"||b==="option"){const y=e,T=ws(y),P=Mn(y,$r(b),T),x=y.checked;if(T!=="submit"&&T!=="button"&&P){const ne=vt(y,_,R,S,A,Wn({type:T,tagName:$r(b),maskInputOptions:a}));g.value=Dt({isMasked:ne,element:y,value:P,maskInputFn:u})}x&&(g.checked=x)}if(b==="option"&&(e.selected&&!a.select?g.selected=!0:delete g.selected),b==="canvas"&&f){if(e.__context==="2d")yh(e)||(g.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const y=e.toDataURL(d.type,d.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height,y!==T.toDataURL(d.type,d.quality)&&(g.rr_dataURL=y)}}if(b==="img"&&l){st||(st=n.createElement("canvas"),Ni=st.getContext("2d"));const y=e,T=y.currentSrc||y.getAttribute("src")||"<unknown-src>",P=y.crossOrigin,x=()=>{y.removeEventListener("load",x);
16try{st.width=y.naturalWidth,st.height=y.naturalHeight,Ni.drawImage(y,0,0),g.rr_dataURL=st.toDataURL(d.type,d.quality)}catch(ne){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?x():y.addEventListener("load",x);return}else console.warn(`Cannot inline img src=${T}! Error: ${ne}`)}y.crossOrigin==="anonymous"&&(P?g.crossOrigin=P:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?x():y.addEventListener("load",x)}if((b==="audio"||b==="video")&&(g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),X){const{width:y,height:T}=e.getBoundingClientRect();g={class:g.class,rr_width:`${y}px`,rr_height:`${T}px`}}b==="iframe"&&!h(g.src)&&(!X&&!ba(e)&&(g.rr_src=g.src),delete g.src);let q;try{customElements.get(b)&&(q=!0)}catch{}return{type:re.Element,tagName:b,attributes:g,childNodes:[],isSVG:Ah(e)||void 0,needBlock:X,rootId:m,isCustom:q}}function Y(e){return e==null?"":e.toLowerCase()}function Hh(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(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"&&va(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(e.attributes.name)==="application-name"||Y(e.attributes.rel)==="icon"||Y(e.attributes.rel)==="apple-touch-icon"||Y(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||Y(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Y(e.attributes.name)==="robots"||Y(e.attributes.name)==="googlebot"||Y(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Y(e.attributes.name)==="author"||Y(e.attributes.name)==="generator"||Y(e.attributes.name)==="framework"||Y(e.attributes.name)==="publisher"||Y(e.attributes.name)==="progid"||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Y(e.attributes.name)==="google-site-verification"||Y(e.attributes.name)==="yandex-verification"||Y(e.attributes.name)==="csrf-token"||Y(e.attributes.name)==="p:domain_verify"||Y(e.attributes.name)==="verify-v1"||Y(e.attributes.name)==="verification"||Y(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ut(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOMOptions:R,dataURLOptions:A={},inlineImages:$=!1,recordCanvas:X=!1,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:B=5e3,onBlockedImageLoad:q,onStylesheetLoad:y,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:P=()=>!1,newlyAddedElement:x=!1,ignoreCSSAttributes:ne}=t;let{preserveWhiteSpace:Z=!0}=t;const j=Ph(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,dataURLOptions:A,inlineImages:$,recordCanvas:X,keepIframeSrcFn:P,newlyAddedElement:x,ignoreCSSAttributes:ne});if(!j)return console.warn(e,"not serialized"),null;let V;r.hasNode(e)?V=r.getId(e):Hh(j,R)||!Z&&j.type===re.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?V=Pt:V=Is();const v=Object.assign(j,{id:V});if(r.add(e,v),V===Pt)return null;b&&b(e);let W=!f;if(v.type===re.Element){W=W&&!v.needBlock;const k=e.shadowRoot;k&&Nt(k)&&(v.isShadowHost=!0)}if((v.type===re.Document||v.type===re.Element)&&W){R.headWhitespace&&v.type===re.Element&&v.tagName==="head"&&(Z=!1);const k={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOMOptions:R,dataURLOptions:A,inlineImages:$,recordCanvas:X,preserveWhiteSpace:Z,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:B,onBlockedImageLoad:q,onStylesheetLoad:y,stylesheetLoadTimeout:T,keepIframeSrcFn:P,ignoreCSSAttributes:ne},G=e.childNodes?Array.from(e.childNodes):[];for(const ie of G){const J=ut(ie,k);J&&v.childNodes.push(J)}if(lh(e)&&e.shadowRoot)for(const ie of Array.from(e.shadowRoot.childNodes)){const J=ut(ie,k);J&&(Nt(e.shadowRoot)&&(J.isShadow=!0),v.childNodes.push(J))}}if(e.parentNode&&At(e.parentNode)&&Nt(e.parentNode)&&(v.isShadow=!0),v.type===re.Element&&v.tagName==="iframe"&&!v.needBlock&&Lh(e,()=>{const k=ba(e);if(k&&g){const G=ut(k,{doc:k,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOMOptions:R,dataURLOptions:A,inlineImages:$,recordCanvas:X,preserveWhiteSpace:Z,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:B,onStylesheetLoad:y,stylesheetLoadTimeout:T,keepIframeSrcFn:P,ignoreCSSAttributes:ne});G&&g(e,G)}},B),v.type===re.Element&&v.tagName==="img"&&!e.complete&&v.needBlock){const k=e,G=()=>{if(k.isConnected&&!k.complete&&q)try{const ie=k.getBoundingClientRect();ie.width>0&&ie.height>0&&q(k,v,ie)}catch{}k.removeEventListener("load",G)};k.isConnected&&k.addEventListener("load",G)}return v.type===re.Element&&v.tagName==="link"&&typeof v.attributes.rel=="string"&&(v.attributes.rel==="stylesheet"||v.attributes.rel==="preload"&&typeof v.attributes.href=="string"&&va(v.attributes.href)==="css")&&Dh(e,()=>{if(y){const k=ut(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOMOptions:R,dataURLOptions:A,inlineImages:$,recordCanvas:X,preserveWhiteSpace:Z,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:B,onStylesheetLoad:y,stylesheetLoadTimeout:T,keepIframeSrcFn:P,ignoreCSSAttributes:ne});k&&y(e,k)}},T),v.type===re.Element&&delete v.needBlock,v}function $h(e,t){const{mirror:n=new ya,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOM:R=!1,dataURLOptions:A,preserveWhiteSpace:$,onSerialize:X,onIframeLoad:b,iframeLoadTimeout:g,onBlockedImageLoad:B,onStylesheetLoad:q,stylesheetLoadTimeout:y,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:P=new Set([])}=t||{};return ut(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:p===!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}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:_,maskInputFn:S,slimDOMOptions:R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
16:R===!1?{}:R,dataURLOptions:A,inlineImages:f,recordCanvas:h,preserveWhiteSpace:$,onSerialize:X,onIframeLoad:b,iframeLoadTimeout:g,onBlockedImageLoad:B,onStylesheetLoad:q,stylesheetLoadTimeout:y,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:P})}function le(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var it=`Please stop import mirror directly. Instead of that,\r
17now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
18or you can use record.mirror to access the mirror instance during recording.`,Li={map:{},getId(){return console.error(it),-1},getNode(){return console.error(it),null},removeNodeFromMap(){console.error(it)},has(){return console.error(it),!1},reset(){console.error(it)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Li=new Proxy(Li,{get(e,t,n){return t==="map"&&console.error(it),Reflect.get(e,t,n)}}));function Ft(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(Yh(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=qn(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function Ia(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){qn(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Ia(e,t,i||{},!0)}function ks(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}var An=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(An=()=>new Date().getTime());function ka(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Ra(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ca(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ma(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function he(e,t,n,r,s){if(!e)return!1;const i=Ma(e);if(!i)return!1;const o=ct(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const a=Je(i,o);let c=-1;return a<0?!1:(r&&(c=Je(i,ct(null,r))),a>-1&&c<0?!0:a<c)}function Wh(e,t){return t.getId(e)!==-1}function lr(e,t){return t.getId(e)===Pt}function xa(e,t){if(At(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?xa(e.parentNode,t):!0:!0}function zr(e){return!!e.changedTouches}function zh(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=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Aa(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Na(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function qr(e){return!!e?.shadowRoot}var qh=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 t===void 0?n=this.id++:n=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 Oa(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function jh(e){let t=e,n;for(;n=Oa(t);)t=n;return t}function Gh(e){const t=e.ownerDocument;if(!t)return!1;const n=jh(e);return t.contains(n)}function La(e){const t=e.ownerDocument;return t?t.contains(e)||Gh(e):!1}var Di={};function Rs(e){const t=Di[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Di[e]=r.bind(window)}function Vh(...e){return Rs("requestAnimationFrame")(...e)}
18function qn(...e){return Rs("setTimeout")(...e)}function Yh(...e){return Rs("clearTimeout")(...e)}var N=(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))(N||{}),C=(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))(C||{}),ue=(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))(ue||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),ot=(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))(ot||{});function Cs(e){try{return e.contentDocument}catch{}}function Kh(e){try{return e.contentWindow}catch{}}function Pi(e){return"__ln"in e}var Xh=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new 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){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Pi(e.previousSibling)){const 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&&Pi(e.nextSibling)&&e.nextSibling.__ln.previous){const 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){const 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--)}},Fi=(e,t)=>`${e}@${t}`,Jh=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;const e=[],t=new Set,n=new Xh,r=a=>{let c=a,u=Pt;for(;u===Pt;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=a=>{if(!a.parentNode||!La(a))return;const c=At(a.parentNode)?this.mirror.getId(Oa(a)):this.mirror.getId(a.parentNode),u=r(a);if(c===-1||u===-1)return n.addNode(a);const d=ut(a,{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:l=>{Aa(l,this.mirror)&&!he(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(l),Na(l,this.mirror)&&this.stylesheetManager.trackLinkElement(l),qr(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(l,f)=>{he(l,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(l,f),l.contentWindow&&this.canvasManager.addWindow(l.contentWindow),this.shadowDomManager.observeAttachShadow(l))},onStylesheetLoad:(l,f)=>{this.stylesheetManager.attachLinkElement(l,f)},onBlockedImageLoad:(l,f,{width:h,height:p})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:f.id,attributes:{style:{width:`${h}px`,height:`${p}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(e.push({parentId:c,nextId:u,node:d}),t.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Bi(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||s(a);for(const a of this.addedSet)!Ui(this.droppedSet,a)&&!Bi(this.removes,a,this.mirror)||Ui(this.movedSet,a)?s(a):this.droppedSet.add(a);let i=null;for(;n.length;){let a=null;if(i){const c=this.mirror.getId(i.value.parentNode),u=r(i.value);c!==-1&&u!==-1&&(a=i)}if(!a){let c=n.tail;for(;c;){const u=c;if(c=c.previous,u){const d=this.mirror.getId(u.value.parentNode);
18if(r(u.value)===-1)continue;if(d!==-1){a=u;break}else{const l=u.value;if(l.parentNode&&l.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const f=l.parentNode.host;if(this.mirror.getId(f)!==-1){a=u;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}i=a.previous,n.removeNode(a.value),s(a.value)}const o={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:c}=a;if(typeof c.style=="string"){const u=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);u.length<c.style.length&&(u+d).split("var(").length===c.style.split("var(").length&&(c.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:c}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.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(!lr(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!he(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:vt(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ma(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if(n==="value"){const i=ws(t),o=t.tagName;r=Mn(t,o,i);const a=Wn({maskInputOptions:this.maskInputOptions,tagName:o,type:i});r=Dt({isMasked:vt(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(he(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(r))if(!Cs(t))n="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),n==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!wa(t.tagName,n)&&(s.attributes[n]=Ta(this.doc,yt(t.tagName),yt(n),r,t,this.maskAttributeFn),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const o of Array.from(t.style)){const a=t.style.getPropertyValue(o),c=t.style.getPropertyPriority(o);a!==i.style.getPropertyValue(o)||c!==i.style.getPropertyPriority(o)?c===""?s.styleDiff[o]=a:s.styleDiff[o]=[a,c]:s._unchangedStyles[o]=[a,c]}for(const o of Array.from(i.style))t.style.getPropertyValue(o)===""&&(s.styleDiff[o]=!1)}break}case"childList":if(he(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=At(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);he(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||lr(t,this.mirror)||!Wh(t,this.mirror)||(this.addedSet.has(t)?(jr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||xa(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Fi(n,r)]?jr(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:At(e.target)&&Nt(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(lr(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[Fi(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);he(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEac
18h(n=>this.genAdds(n)),qr(e)&&e.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,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"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function jr(e,t){e.delete(t),t.childNodes?.forEach(n=>jr(e,n))}function Bi(e,t,n){return e.length===0?!1:Qh(e,t,n)}function Qh(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function Ui(e,t){return e.size===0?!1:Da(e,t)}function Da(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Da(e,n):!1}var Ot;function Zh(e){Ot=e}function em(){Ot=void 0}var F=e=>Ot?(...n)=>{try{return e(...n)}catch(r){if(Ot&&Ot(r)===!0)return()=>{};throw r}}:e,lt=[];function Qt(e){try{if("composedPath"in e){const 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 Pa(e,t){const n=new Jh;lt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(F(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function tm({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Ft(F(l=>{const f=Date.now()-a;e(o.map(h=>(h.timeOffset-=f,h)),l),o=[],a=null}),i),u=F(Ft(F(l=>{const f=Qt(l),{clientX:h,clientY:p}=zr(l)?l.changedTouches[0]:l;a||(a=An()),o.push({x:h,y:p,id:r.getId(f),timeOffset:An()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?C.Drag:l instanceof MouseEvent?C.MouseMove:C.TouchMove)}),s,{trailing:!1})),d=[le("mousemove",u,n),le("touchmove",u,n),le("drag",u,n)];return F(()=>{d.forEach(l=>l())})}function nm({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let u=null;const d=l=>f=>{const h=Qt(f);if(he(h,r,s,i,!0))return;let p=null,m=l;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Me.Mouse;break;case"touch":p=Me.Touch;break;case"pen":p=Me.Pen;break}p===Me.Touch?ue[l]===ue.MouseDown?m="TouchStart":ue[l]===ue.MouseUp&&(m="TouchEnd"):Me.Pen}else zr(f)&&(p=Me.Touch);p!==null?(u=p,(m.startsWith("Touch")&&p===Me.Touch||m.startsWith("Mouse")&&p===Me.Mouse)&&(p=null)):ue[l]===ue.Click&&(p=u,u=null);const _=zr(f)?f.changedTouches[0]:f;if(!_)return;const S=n.getId(h),{clientX:R,clientY:A}=_;F(e)({type:ue[m],id:S,x:R,y:A,...p!==null&&{pointerType:p}})};return Object.keys(ue).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let f=yt(l);const h=d(l);if(window.PointerEvent)switch(ue[l]){case ue.MouseDown:case ue.MouseUp:f=f.replace("mouse","pointer");break;case ue.TouchStart:case ue.TouchEnd:return}c.push(le(f,h,t))}),F(()=>{c.forEach(l=>l())})}function Fa({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){return le("scroll",F(Ft(F(a=>{const c=Qt(a);if(!c||he(c,r,s,i,!0))return;const u=n.getId(c);if(c===t&&t.defaultView){const d=ka(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:c.scrollLeft,y:c.scrollTop})}),o.scroll||100)),t)}function rm({viewportResizeCb:e},{win:t}){let n=-1,r=-1;
18return le("resize",F(Ft(F(()=>{const s=Ra(),i=Ca();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200)),t)}var sm=["INPUT","TEXTAREA","SELECT"],Hi=new WeakMap;function im({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function _(b){let g=Qt(b);const B=b.isTrusted,q=g&&$r(g.tagName);if(q==="OPTION"&&(g=g.parentElement),!g||!q||sm.indexOf(q)<0||he(g,r,s,i,!0))return;const y=g;if(y.classList.contains(o)||a&&y.matches(a))return;const T=ws(g);let P=Mn(y,q,T),x=!1;const ne=Wn({maskInputOptions:c,tagName:q,type:T}),Z=vt(g,f,p,h,m,ne);(T==="radio"||T==="checkbox")&&(x=g.checked),P=Dt({isMasked:Z,element:g,value:P,maskInputFn:u}),S(g,l?{text:P,isChecked:x,userTriggered:B}:{text:P,isChecked:x});const j=g.name;T==="radio"&&j&&x&&t.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach(V=>{if(V!==g){const v=Dt({isMasked:Z,element:V,value:Mn(V,q,T),maskInputFn:u});S(V,l?{text:v,isChecked:!x,userTriggered:!1}:{text:v,isChecked:!x})}})}function S(b,g){const B=Hi.get(b);if(!B||B.text!==g.text||B.isChecked!==g.isChecked){Hi.set(b,g);const q=n.getId(b);F(e)({...g,id:q})}}const R=(d.input==="last"?["change"]:["input","change"]).map(b=>le(b,F(_),t)),A=t.defaultView;if(!A)return()=>{R.forEach(b=>b())};const $=A.Object.getOwnPropertyDescriptor(A.HTMLInputElement.prototype,"value"),X=[[A.HTMLInputElement.prototype,"value"],[A.HTMLInputElement.prototype,"checked"],[A.HTMLSelectElement.prototype,"value"],[A.HTMLTextAreaElement.prototype,"value"],[A.HTMLSelectElement.prototype,"selectedIndex"],[A.HTMLOptionElement.prototype,"selected"]];return $&&$.set&&R.push(...X.map(b=>Ia(b[0],b[1],{set(){F(_)({target:this,isTrusted:!1})}},!1,A))),F(()=>{R.forEach(b=>b())})}function Nn(e){const t=[];function n(r,s){if(un("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||un("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||un("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||un("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function Le(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function om({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:F((d,l,f)=>{const[h,p]=f,{id:m,styleId:_}=Le(l,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,adds:[{rule:h,index:p}]}),d.apply(l,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:F((d,l,f)=>{const[h]=f,{id:p,styleId:m}=Le(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),d.apply(l,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:F((d,l,f)=>{const[h]=f,{id:p,styleId:m}=Le(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),d.apply(l,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:F((d,l,f)=>{const[h]=f,{id:p,styleId:m}=Le(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),d.apply(l,f)})}));const c={};ln("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ln("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ln("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ln("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:F((f,h,p)=>{const[m,_]=p,{id:S,styleId:R}=Le(h.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||R&&R!==-1)&&e({id:S,styleId:R,adds:[{rule:m,index:[...Nn(h),_||0]}]}),f.apply(h,p)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:F((f,h,p)=>{const[m]=p,{id:_,styleId:S}=Le(h.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||S&&S!==-1)&&e({id:_,styleId:S,removes:[{index:[...Nn(h),m]}]}),f.apply(h,p)})})}),F(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
18h(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function Ba({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(o){const a=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),F(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function am({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:F((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return i.apply(c,[d,l,f]);const{id:h,styleId:p}=Le(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:d,value:l,priority:f},index:Nn(c.parentRule)}),a.apply(c,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:F((a,c,u)=>{const[d]=u;if(n.has(d))return o.apply(c,[d]);const{id:l,styleId:f}=Le(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||f&&f!==-1)&&e({id:l,styleId:f,remove:{property:d},index:Nn(c.parentRule)}),a.apply(c,u)})}),F(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function cm({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=F(u=>Ft(F(d=>{const l=Qt(d);if(!l||he(l,t,n,r,!0))return;const{currentTime:f,volume:h,muted:p,playbackRate:m}=l;e({type:u,id:s.getId(l),currentTime:f,volume:h,muted:p,playbackRate:m})}),i.media||500)),c=[le("play",a(ot.Play),o),le("pause",a(ot.Pause),o),le("seeked",a(ot.Seeked),o),le("volumechange",a(ot.VolumeChange),o),le("ratechange",a(ot.RateChange),o)];return F(()=>{c.forEach(u=>u())})}function um({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const l=new i(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const o=ks(t.fonts,"add",function(a){return function(c){return qn(F(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),F(()=>{r.forEach(a=>a())})}function lm(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=F(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let f=0;f<l;f++){const{startContainer:h,startOffset:p,endContainer:m,endOffset:_}=u.getRangeAt(f);he(h,r,s,i,!0)||he(m,r,s,i,!0)||d.push({start:n.getId(h),startOffset:p,end:n.getId(m),endOffset:_})}o({ranges:d})});return c(),le("selectionchange",c)}function dm({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ks(n.customElements,"define",function(r){return function(s,i,o){try{t({define:{name:s}})}catch{}return r.apply(this,[s,i,o])}})}function fm(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Pa(e,e.doc));const s=tm(e),i=nm(e),o=Fa(e),a=rm(e,{win:n}),c=im(e),u=cm(e);let d=()=>{},l=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(d=om(e,{win:n}),l=Ba(e,e.doc),f=am(e,{win:n}),e.collectFonts&&(h=um(e)));const p=lm(e),m=dm(e),_=[];for(const S of e.plugins)_.push(S.observer(S.callback,n,S.options));return F(()=>{lt.forEach(S=>S.reset()),r?.disconnect(),s(),i(),o(),a(),c(),u(),d(),l(),f(),h(),p(),m(),_.forEach(S=>S())})}function un(e){return typeof window[e]<"u"}function ln(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Gr=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(s=>this.getId(e,s,n,r))}
18getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(r=>this.getRemoteId(e,r,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}},pm=class{constructor(){this.crossOriginIframeMirror=new Gr(Is),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},hm=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Gr(Is),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=Cs(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case N.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:N.IncrementalSnapshot,data:{source:C.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case N.Meta:case N.Load:case N.DomContentLoaded:return!1;case N.Plugin:return t;case N.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case N.IncrementalSnapshot:switch(t.data.source){case C.Mutation:return t.data.adds.forEach(n=>{this.replaceIds(n,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(n.node,r)}),t.data.removes.forEach(n=>{this.replaceIds(n,e,["parentId","id"])}),t.data.attributes.forEach(n=>{this.replaceIds(n,e,["id"])}),t.data.texts.forEach(n=>{this.replaceIds(n,e,["id"])}),t;case C.Drag:case C.TouchMove:case C.MouseMove:return t.data.positions.forEach(n=>{this.replaceIds(n,e,["id"])}),t;case C.ViewportResize:return!1;case C.MediaInteraction:case C.MouseInteraction:case C.Scroll:case C.CanvasMutation:case C.Input:return this.replaceIds(t.data,e,["id"]),t;case C.StyleSheetRule:case C.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case C.Font:return t;case C.Selection:return t.data.ranges.forEach(n=>{this.replaceIds(n,e,["start","end"])}),t;case C.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(n=>{this.replaceStyleIds(n,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const s of r)!Array.isArray(t[s])&&typeof t[s]!="number"||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));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
18h(n=>{this.replaceIdOnNode(n,t)})}patchRootIdOnNode(e,t){e.type!==re.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t)})}},mm=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},gm=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(!Nt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Pa({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Fa({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),qn(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Ba({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=Cs(e),n=Kh(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(ks(e.prototype,"attachShadow",function(r){return function(s){const i=r.call(this,s);return this.shadowRoot&&La(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()}},$i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_m=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var dn=0;dn<$i.length;
18dn++)_m[$i.charCodeAt(dn)]=dn;var Wi=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},ym=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qh,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;const n={id:t,styleIds:[]},r=[];for(const s of e){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),r.push({styleId:i,rules:Array.from(s.rules||CSSRule,(o,a)=>({rule:_a(o),index:a}))})),n.styleIds.push(i)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},vm=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(r=>r!==t)}add(e,t){this.active||(this.active=!0,Vh(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},te,On;try{if(Array.from([1],e=>e*2)[0]!==2){const 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 we=_h();function Ne(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:_,slimDOMOptions:S,maskAttributeFn:R,maskInputFn:A,maskTextFn:$,maxCanvasSize:X=null,packFn:b,sampling:g={},dataURLOptions:B={},mousemoveWait:q,recordDOM:y=!0,recordCanvas:T=!1,recordCrossOriginIframes:P=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:ne=!1,collectFonts:Z=!1,inlineImages:j=!1,plugins:V,keepIframeSrcFn:v=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:k,onMutation:G,getCanvasManager:ie}=e;Zh(k);const J=P?window.parent===window:!0;let be=!1;if(!J)try{window.parent.document&&(be=!1)}catch{be=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!be)return()=>{};q!==void 0&&g.mousemove===void 0&&(g.mousemove=q),we.reset();const Re=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,radio:!0,checkbox:!0}:_!==void 0?_:{},tt=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};zh();let Ce,nt=0;const en=U=>{for(const Te of V||[])Te.eventProcessor&&(U=Te.eventProcessor(U));return b&&!be&&(U=b(U)),U};te=(U,Te)=>{const D=U;if(D.timestamp=An(),lt[0]?.isFrozen()&&D.type!==N.FullSnapshot&&!(D.type===N.IncrementalSnapshot&&D.data.source===C.Mutation)&&lt.forEach(ae=>ae.unfreeze()),J)t?.(en(D),Te);else if(be){const ae={type:"rrweb",event:en(D),origin:window.location.origin,isCheckout:Te};window.parent.postMessage(ae,"*")}if(D.type===N.FullSnapshot)Ce=D,nt=0;else if(D.type===N.IncrementalSnapshot){if(D.data.source===C.Mutation&&D.data.isAttachIframe)return;nt++;const ae=r&&nt>=r,H=n&&Ce&&D.timestamp-Ce.timestamp>n;(ae||H)&&Xn(!0)}};const It=U=>{te({type:N.IncrementalSnapshot,data:{source:C.Mutation,...U}})},Fs=U=>te({type:N.IncrementalSnapshot,data:{source:C.Scroll,...U}}),fc=U=>te({type:N.IncrementalSnapshot,data:{source:C.CanvasMutation,...U}}),pc=U=>te({type:N.IncrementalSnapshot,data:{source:C.AdoptedStyleSheet,...U}}),je=new ym({mutationCb:It,adoptedStyleSheetCb:pc}),Ge=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new pm:new hm({mirror:we,mutationCb:It,stylesheetManager:je,recordCrossOriginIframes:P,wrappedEmit:te});for(const U of V||[])U.getMirror&&U.getMirror({nodeMirror:we,crossOriginIframeMirror:Ge.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ge.crossOriginIframeStyleMirror});const Yn=new vm,Kn=Em(ie,{mirror:we,win:window,mutationCb:U=>
18te({type:N.IncrementalSnapshot,data:{source:C.CanvasMutation,...U}}),recordCanvas:T,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:X,sampling:g.canvas,dataURLOptions:B,errorHandler:k}),tn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new mm:new gm({mutationCb:It,scrollCb:Fs,bypassOptions:{onMutation:G,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Re,dataURLOptions:B,maskAttributeFn:R,maskTextFn:$,maskInputFn:A,recordCanvas:T,inlineImages:j,sampling:g,slimDOMOptions:tt,iframeManager:Ge,stylesheetManager:je,canvasManager:Kn,keepIframeSrcFn:v,processedNodeManager:Yn,ignoreCSSAttributes:W},mirror:we}),Xn=(U=!1)=>{if(!y)return;te({type:N.Meta,data:{href:window.location.href,width:Ca(),height:Ra()}},U),je.reset(),tn.init(),lt.forEach(D=>D.lock());const Te=$h(document,{mirror:we,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Re,maskAttributeFn:R,maskInputFn:A,maskTextFn:$,slimDOM:tt,dataURLOptions:B,recordCanvas:T,inlineImages:j,onSerialize:D=>{Aa(D,we)&&Ge.addIframe(D),Na(D,we)&&je.trackLinkElement(D),qr(D)&&tn.addShadowRoot(D.shadowRoot,document)},onIframeLoad:(D,ae)=>{Ge.attachIframe(D,ae),D.contentWindow&&Kn.addWindow(D.contentWindow),tn.observeAttachShadow(D)},onStylesheetLoad:(D,ae)=>{je.attachLinkElement(D,ae)},onBlockedImageLoad:(D,ae,{width:H,height:kt})=>{It({adds:[],removes:[],texts:[],attributes:[{id:ae.id,attributes:{style:{width:`${H}px`,height:`${kt}px`}}}]})},keepIframeSrcFn:v,ignoreCSSAttributes:W});if(!Te)return console.warn("Failed to snapshot the document");te({type:N.FullSnapshot,data:{node:Te,initialOffset:ka(window)}}),lt.forEach(D=>D.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&je.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};On=Xn;try{const U=[],Te=ae=>F(fm)({onMutation:G,mutationCb:It,mousemoveCb:(H,kt)=>te({type:N.IncrementalSnapshot,data:{source:kt,positions:H}}),mouseInteractionCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.MouseInteraction,...H}}),scrollCb:Fs,viewportResizeCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.ViewportResize,...H}}),inputCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.Input,...H}}),mediaInteractionCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.MediaInteraction,...H}}),styleSheetRuleCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.StyleSheetRule,...H}}),styleDeclarationCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.StyleDeclaration,...H}}),canvasMutationCb:fc,fontCb:H=>te({type:N.IncrementalSnapshot,data:{source:C.Font,...H}}),selectionCb:H=>{te({type:N.IncrementalSnapshot,data:{source:C.Selection,...H}})},customElementCb:H=>{te({type:N.IncrementalSnapshot,data:{source:C.CustomElement,...H}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Re,inlineStylesheet:p,sampling:g,recordDOM:y,recordCanvas:T,inlineImages:j,userTriggeredOnInput:ne,collectFonts:Z,doc:ae,maskAttributeFn:R,maskInputFn:A,maskTextFn:$,keepIframeSrcFn:v,blockSelector:i,unblockSelector:o,slimDOMOptions:tt,dataURLOptions:B,mirror:we,iframeManager:Ge,stylesheetManager:je,shadowDomManager:tn,processedNodeManager:Yn,canvasManager:Kn,ignoreCSSAttributes:W,plugins:V?.filter(H=>H.observer)?.map(H=>({observer:H.observer,options:H.options,callback:kt=>te({type:N.Plugin,data:{plugin:H.name,payload:kt}})}))||[]},{});Ge.addLoadListener(ae=>{try{U.push(Te(ae.contentDocument))}catch(H){console.warn(H)}});const D=()=>{Xn(),U.push(Te(document))};return document.readyState==="interactive"||document.readyState==="complete"?D():(U.push(le("DOMContentLoaded",()=>{te({type:N.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&D()})),U.push(le("load",()=>{te({type:N.Load,data:{}}),x==="load"&&D()},window))),()=>{U.forEach(ae=>ae()),Yn.destroy(),On=void 0,em()}}catch(U){console.warn(U)}}function Sm(e){if(!On)throw new Error("please take full snapshot after start recording");On(e)}Ne.mirror=we;Ne.takeFullSnapshot=Sm;function Em(e,t){try{return e?e(t):new Wi}catch{return console.warn("Unable to initialize CanvasManager"),new Wi}}var zi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(zi||(zi={}));var bm=3,Tm=5;function Ms(e){return e>9999999999?e:e*1e3}function dr(e){return e>9999999999?e/1e3:e}function Zt(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>
18(e.throttledAddEvent({type:N.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:xe(t,10,1e3)}}),t.category==="console")))}var wm="button,a";function Ua(e){return e.closest(wm)||e}function Ha(e){const t=$a(e);return!t||!(t instanceof Element)?t:Ua(t)}function $a(e){return Im(e)?e.target:e}function Im(e){return typeof e=="object"&&!!e&&"target"in e}var De;function km(e){return De||(De=[],Rm()),De.push(e),()=>{const t=De?De.indexOf(e):-1;t>-1&&De.splice(t,1)}}function Rm(){fe(K,"open",function(e){return function(...t){if(De)try{De.forEach(n=>n())}catch{}return e.apply(K,t)}})}var Cm=new Set([C.Mutation,C.StyleSheetRule,C.StyleDeclaration,C.AdoptedStyleSheet,C.CanvasMutation,C.Selection,C.MediaInteraction]);function Mm(e,t,n){e.handleClick(t,n)}var xm=class{constructor(e,t,n=Zt){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(){const e=km(()=>{this._lastMutation=qi()});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(Nm(t,this._ignoreSelector)||!Om(e))return;const n={timestamp:dr(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(r=>r.node===n.node&&Math.abs(r.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=dr(e)}registerScroll(e=Date.now()){this._lastScroll=dr(e)}registerClick(e){const t=Ua(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(t=>{t.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=qi();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(const n of e){const r=this._clicks.indexOf(n);r>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(r,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:i,clickBreadcrumb:o}=e;if(s){const a=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,c=a<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:K.location.href,route:t.getCurrentRoute(),timeAfterClickMs:a,endReason:c,clickCount:i||1}};this._addBreadcrumbEvent(t,u);return}if(i>1){const a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:K.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,a)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Jt(()=>this._checkClicks(),1e3)}},Am=["A","BUTTON","INPUT"];function Nm(e,t){return!!(!Am.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))}function Om(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function qi(){return Date.now()/1e3}function Lm(e,t){try{if(!Dm(t))return;const{source:n}=t.data;if(Cm.has(n)&&e.registerMutation(t.timestamp),n===C.Scroll&&e.registerScroll(t.timestamp),Pm(t)){const{type:r,id:s}=t.data,i=Ne.mirror.getNode(s);i instanceof HTMLElement&&r===ue.Click&&e.registerClick(i)}}catch{}}function Dm(e){return e.type===bm}function Pm(e){return e.data.source===C.MouseInteraction}function ke(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var xs=(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))(xs||{}),Fm=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Bm(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Fm.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var Um=e=>t=>{if(!e.isEnabled())return;const n=Hm(t);if(!n)return;
18const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Mm(e.clickDetector,n,Ha(t.event)),Zt(e,n)};function Wa(e,t){const n=Ne.mirror.getId(e),r=n&&Ne.mirror.getNode(n),s=r&&Ne.mirror.getMeta(r),i=s&&Wm(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===xs.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:Bm(i.attributes)}}:{}}}function Hm(e){const{target:t,message:n}=$m(e);return ke({category:`ui.${e.name}`,...Wa(t,n)})}function $m(e){const t=e.name==="click";let n,r=null;try{r=t?Ha(e.event):$a(e.event),n=ge(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Wm(e){return e.type===xs.Element}function zm(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=qm(t);n&&Zt(e,n)}function qm(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||jm(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const u=ge(o,{maxStringLength:200})||"<unknown>";return ke({category:"ui.keyDown",message:u,data:{...Wa(o,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function jm(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var Gm={resource:Jm,paint:Km,navigation:Xm};function fr(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Vm(e){return e.map(Ym).filter(Boolean)}function Ym(e){const t=Gm[e.entryType];return t?t(e):null}function St(e){return((pe()||K.performance.timeOrigin)+e)/1e3}function Km(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=St(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function Xm(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:St(h),end:St(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:i,redirectCount:f}}}function Jm(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:St(i),end:St(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function Qm(e){const t=e.entries[e.entries.length-1];return As(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Zm(e){return e.sources!==void 0}function eg(e){const t=[],n=[];for(const r of e.entries)if(Zm(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=Ne.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return As(e,"cumulative-layout-shift",n,t)}function tg(e){const t=e.entries[e.entries.length-1];return As(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function As(e,t,n,r){const s=e.value,i=e.rating,o=St(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>Ne.mirror.getId(a)):void 0,attributions:r}}}function ng(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(_t(s,n))}),r.push(vs(fr(Qm,e)),ys(fr(eg,e)),na(fr(tg,e))),()=>{r.forEach(s=>s())}}var w=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rg='
vendor: 10,329 bytes, line 18
18var 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});
18';function sg(){const e=new Blob([rg]);return URL.createObjectURL(e)}var ji=["log","warn","error"],Sn="[Replay] ";function pr(e,t="info"){$e({category:"console",data:{logger:"replay"},level:t,message:`${Sn}${e}`},{level:t})}function ig(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return w?(ji.forEach(r=>{n[r]=(...s)=>{E[r](Sn,...s),t&&pr(s.join(""),Uo(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),E.error(Sn,r),e?as(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&pr(r,"error")},n.infoTick=(...r)=>{E.log(Sn,...r),t&&setTimeout(()=>pr(r[0]),0)}):ji.forEach(r=>{n[r]=()=>{}}),n}var I=ig(),Ns=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Ts}.`)}},za=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){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Ts)throw new Ns;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(const{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:Ms(e)}},og=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(w&&I.warn("Received worker message with unsuccessful status",n),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",n=>{w&&I.warn("Failed to load Replay compression worker",n),t(new Error(`Failed to load Replay compression worker: ${n instanceof ErrorEvent&&n.message?n.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(){w&&I.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,s)=>{const i=({data:o})=>{const a=o;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",i),!a.success){w&&I.error("Error in compression worker: ",a.response),s(new Error("Error in compression worker"));return}r(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},ag=class{constructor(e){this._worker=new og(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){const t=Ms(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Ts?Promise.reject(new Ns):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{w&&I.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}},cg=class{constructor(e){this._fallback=new za,this._compression=new ag(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)}
18async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){w&&I.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const s of e)r.push(this._compression.addEvent(s));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(s){w&&I.exception(s,"Failed to add events when switching buffers.")}}};function ug({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=lg(t);if(n)return n}return w&&I.log("Using simple buffer"),new za}function lg(e){try{const t=e||dg();return t?(w&&I.log(`Using compression worker${e?` from ${e}`:""}`),new cg(new Worker(t))):void 0}catch(t){w&&I.exception(t,"Failed to create compression worker")}}function dg(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?sg():""}function Os(){try{return"sessionStorage"in K&&!!K.sessionStorage}catch{return!1}}function fg(e){pg(),e.session=void 0}function pg(){if(Os())try{K.sessionStorage.removeItem(Es)}catch{}}function qa(e){return e===void 0?!1:Math.random()<e}function jn(e){if(Os())try{K.sessionStorage.setItem(Es,JSON.stringify(e))}catch{}}function ja(e){const t=Date.now();return{id:e.id||dt(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function hg(e,t){return qa(e)?"session":t?"buffer":!1}function Gi({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=ja({sampled:hg(e,t),previousSessionId:r});return n&&jn(s),s}function mg(){if(!Os())return null;try{const e=K.sessionStorage.getItem(Es);if(!e)return null;const t=JSON.parse(e);return w&&I.infoTick("Loading existing session"),ja(t)}catch{return null}}function Vr(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Ga(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Vr(e.started,t,r)||Vr(e.lastActivity,n,r)}function Va(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Ga(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function hr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&mg();return s?Va(s,{sessionIdleExpire:e,maxReplayDuration:t})?(w&&I.infoTick("Session in sessionStorage is expired, creating new one..."),Gi(r,{previousSessionId:s.id})):s:(w&&I.infoTick("Creating new session"),Gi(r,{previousSessionId:n}))}function gg(e){return e.type===N.Custom}function Ls(e,t,n){return Ka(e,t)?(Ya(e,t,n),!0):!1}function _g(e,t,n){return Ka(e,t)?Ya(e,t,n):Promise.resolve(null)}async function Ya(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=yg(t,e.getOptions().beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(i){const o=i&&i instanceof Ns,a=o?"addEventSizeExceeded":"addEvent",c=z();if(c){const u=o?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function Ka(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Ms(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(w&&I.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function yg(e,t){try{if(typeof t=="function"&&gg(e))return t(e)}catch(n){return w&&I.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Ds(e){return!e.type}function Yr(e){return e.type==="transaction"}function vg(e){return e.type==="replay_event"}function Vi(e){return e.type==="feedback"}function Sg(e){return(t,n)=>{if(!e.isEnabled()||!Ds(t)&&!Yr(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Yr(t)){Eg(e,t);return}bg(e,t)}}}function Eg(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function bg(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Jt(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function Tg(e){return t=>{!e.isEnabled()||!Ds(t)||wg(e,t)}}function wg(e,t){const 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))&&Zt(e,ke({category:"replay.hydrate-error",data:{url:Et()}}))}function Ig(e){const t=z();t&&t.on("beforeAddBreadcrumb",n=>kg(e,n))}function kg(e,t){if(!e.isEnabled()||!Xa(t))return;const n=Rg(t);n&&Zt(e,n)}function Rg(e){return!Xa(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Cg(e):ke(e)}function Cg(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return ke(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>cn?(n=!0,`${s.slice(0,cn)}…`):s;if(typeof s=="object")try{const i=xe(s,7);return JSON.stringify(i).length>cn?(n=!0,`${JSON.stringify(i,null,2).slice(0,cn)}…`):i}catch{}return s});return ke({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Xa(e){return!!e.category}function Mg(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function Ja(){const e=Q().getPropagationContext().dsc;e&&delete e.replay_id;const t=_e();if(t){const n=qt(t);delete n.replay_id}}function xg(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:N.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Ag(e,t){return e.recordingMode!=="buffer"||t.message===bs||!t.exception||t.type?!1:qa(e.getOptions().errorSampleRate)}function Ng(e){return Object.assign((t,n)=>
18{if(!e.isEnabled()||e.isPaused())return t;if(vg(t))return delete t.breadcrumbs,t;if(!Ds(t)&&!Yr(t)&&!Vi(t))return t;if(!e.checkAndHandleExpiredSession())return Ja(),t;if(Vi(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),xg(e,t),t;if(Mg(t,n)&&!e.getOptions()._experiments.captureExceptions)return w&&I.log("Ignoring error from rrweb internals",t),null;const r=Ag(e,t);if((r||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const s=e.session;s.dirty=!0,e.getOptions().stickySession&&jn(s)}return t},{id:"Replay"})}function Gn(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:N.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function Og(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Lg(e){return t=>{if(!e.isEnabled())return;const n=Og(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Gn(e,[n]),!1)))}}function Dg(e,t){return w&&e.getOptions()._experiments.traceInternals?!1:gl(t,z())}function Qa(e,t){e.isEnabled()&&t!==null&&(Dg(e,t.name)||e.addUpdate(()=>(Gn(e,[t]),!0)))}function Vn(e){if(!e)return;const 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){const n=da(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Za(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ln(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function ec(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Bt(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Ue(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=Pg(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function Kr(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function Pg(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Ri,n=Fg(e);if(t){const r=e.slice(0,Ri);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Fg(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Dn(e,t){return Ae(Bg(e),t)}function Bg(e,t=K.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(K.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Ug(e,t,n){try{const r=ec("resource.fetch",await $g(e,t,n));Qa(n.replay,r)}catch(r){w&&I.exception(r,"Failed to capture fetch breadcrumb")}}function Hg(e,t){const{input:n,response:r}=t,s=Vn(n?pa(n):void 0),i=r?Za(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}async function $g(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Dn(o,n.networkDetailAllowUrls)&&!Dn(o,n.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:l?Wg(n,t.input,u):Bt(u),response:await zg(l,n,t.response,d)}}function Wg({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?Gg(n,t):{};if(!e)return Ue(s,r,void 0);const[i,o]=fa(pa(n),I),a=Ue(s,r,i);return o?Ln(a,o):a}async function zg(e,{networkCaptureBodies:t,networkResponseHeaders:n}
18,r,s){if(!e&&s!==void 0)return Bt(s);const i=r?tc(r.headers,n):{};if(!r||!t&&s!==void 0)return Ue(i,s,void 0);const[o,a]=await jg(r),c=qg(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?Ln(c,a):c}function qg(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?Vn(e):n;return r?t?Ue(s,i,e):Ue(s,i,void 0):Bt(i)}catch(i){return w&&I.exception(i,"Failed to serialize response body"),Ue(s,n,void 0)}}async function jg(e){const t=Vg(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Yg(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(w&&I.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(w&&I.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function tc(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function Gg(e,t){return e.length===1&&typeof e[0]!="string"?Yi(e[0],t):e.length===2?Yi(e[1],t):{}}function Yi(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?tc(n,t):Array.isArray(n)?{}:Kr(n,t):{}}function Vg(e){try{return e.clone()}catch(t){w&&I.exception(t,"Failed to clone response body")}}function Yg(e){return new Promise((t,n)=>{const r=Jt(()=>n(new Error("Timeout while trying to read response body")),500);Kg(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function Kg(e){return await e.text()}async function Xg(e,t,n){try{const r=ec("resource.xhr",Qg(e,t,n));Qa(n.replay,r)}catch(r){w&&I.exception(r,"Failed to capture xhr breadcrumb")}}function Jg(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Vn(r),i=n.getResponseHeader("content-length")?Za(n.getResponseHeader("content-length")):t_(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function Qg(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:f}=e.data;if(!c)return null;if(!a||!Dn(c,n.networkDetailAllowUrls)||Dn(c,n.networkDetailDenyUrls))return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:d,request:Bt(l),response:Bt(f)};const h=a[Xe],p=h?Kr(h.request_headers,n.networkRequestHeaders):{},m=Kr(ha(a),n.networkResponseHeaders),[_,S]=n.networkCaptureBodies?fa(o,I):[void 0],[R,A]=n.networkCaptureBodies?Zg(a):[void 0],$=Ue(p,l,_),X=Ue(m,f,R);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:d,request:S?Ln($,S):$,response:A?Ln(X,A):X}}function Zg(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return e_(e.response,e.responseType)}catch(n){t.push(n)}return w&&I.warn("Failed to get xhr response body",...t),[void 0]}function e_(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return w&&I.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return w&&I.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function t_(e,t){try{return Vn(t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e)}catch{return}}function n_(e){const t=z();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,u)=>r_(a,c,u))}catch{}}function r_(e,t,n){if(t.data)try{s_(t)&&o_(n)&&(Jg(t,n),Xg(t,n,e)),i_(t)&&a_(n)&&(Hg(t,n),Ug(t,n,e))}catch(r){w&&I.exception(r,"Error when enriching network breadcrumb")}}function s_(e){return e.category==="xhr"}function i_(e){return e.category==="fetch"}function o_(e){return e?.xhr}function a_(e){return e?.response}function c_(e){const t=z();ca(Um(e)),$n(Lg(e)),Ig(e),n_(e),Fu(Ng(e)),t&&(t.on("beforeSendEvent",Tg(e)),t.on("afterSendEvent",Sg(e)),t.on("createDsc",n=>{const r=e.getSessionId();r&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(n.replay_id=r)}),t.on("spanStart",n=>{e.lastActiveSpan=n}),t.on("spanEnd",n=>{e.lastActiveSpan=n}),t.on("beforeSendFeedback",async(n,r)=>{const s=e.getSessionId();r?.includeReplay&&e.isEnabled()&&s&&n.contexts?.feedback&&(n.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),n.contexts.feedback.replay_id=s)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function u_(e){try{return Promise.all(Gn(e,[l_(K.performance.memory)]))}catch{return[]}}function l_(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function d_(e,t,n){return bl(e,t,{...n,setTimeoutImpl:Jt})}var fn=ee.navigator;function f_(){return/iPhone|iPad|iPod/i.test(fn?.userAgent??"")||/Macintosh/i.test(fn?.userAgent??"")&&fn?.maxTouchPoints&&fn?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function p_(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){w&&I.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&Lm(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Ls(e,n,s))return!0;
18if(!s)return!1;const i=e.session;if(m_(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(w&&I.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&jn(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function h_(e){const t=e.getOptions();return{type:N.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 m_(e,t){!t||e.session?.segmentId!==0||Ls(e,h_(e),!1)}function g_(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function __(e,t,n,r){return zt(ru(e,Yc(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function y_({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
19`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function v_({client:e,scope:t,replayId:n,event:r}){const s={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,s);const i=await So(e.getOptions(),r,s,t,e,Ee());if(!i)return null;e.emit("postprocessEvent",i,s),i.platform=i.platform||"javascript";const{name:o,version:a,settings:c}=e.getSdkMetadata()?.sdk||{};return i.sdk={...i.sdk,name:o||"sentry.javascript.unknown",version:a||"0.0.0",settings:c},i}async function S_({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=y_({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=z(),f=Q(),h=l?.getTransport(),p=l?.getDsn();if(!l||!h||!p||!i.sampled)return Promise.resolve({});const m=await v_({scope:f,client:l,replayId:t,event:{type:Xp,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled}});if(!m)return l.recordDroppedEvent("event_processor","replay"),w&&I.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete m.sdkProcessingMetadata;const _=__(m,o,p,l.getOptions().tunnel);let S;try{S=await h.send(_)}catch(A){const $=new Error(bs);try{$.cause=A}catch{}throw $}const R=xo({},S);if(Mo(R,"replay"))throw new Ps(R);if(typeof S.statusCode=="number"&&(S.statusCode<200||S.statusCode>=300))throw new nc(S.statusCode);return S}var nc=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Ps=class extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}},Ki=class extends Error{constructor(){super("Session is too long, not sending replay")}};async function rc(e,t={count:0,interval:nh}){const{recordingData:n,onError:r}=e;if(n.length)try{return await S_(e),!0}catch(s){if(s instanceof nc||s instanceof Ps)throw s;if(Du("Replays",{_retryCount:t.count}),r&&r(s),t.count>=rh){const i=new Error(`${bs} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Jt(async()=>{try{await rc(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}var sc="__THROTTLED",E_="__SKIPPED";function b_(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const d=o;return o=!0,d?E_:sc}o=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var T_=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Jp,sessionIdleExpire:Qp},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=d_(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=b_((i,o)=>_g(this,i,o),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(sh,n),timeout:n,scrollTimeout:ih,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new xm(this,s)),w){const i=e._experiments;I.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{K.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
19dTasks()},this._handleWindowBlur=()=>{const i=ke({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=ke({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{zm(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){w&&I.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){w&&I.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",w&&I.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){w&&I.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){w&&I.log("Buffering is in progress, call `flush()` to save the replay");return}w&&I.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=hr({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){w&&I.log("Buffering is in progress, call `flush()` to save the replay");return}w&&I.infoTick("Starting replay in buffer mode");const e=hr({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{const e=this._canvas;this._stopRecording=Ne({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:th}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:p_(this),...f_(),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(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{w&&I.log(`Stopping Replay${t?` triggered by ${t}`:""}`),Ja(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,fg(this)}catch(n){this.handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),w&&I.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),w&&I.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const t=Date.now();w&&I.log("Converting buffer to session"),await this.flushImmediate();const 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()),this.startRecording())}addUpdate(e){const 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}
19checkAndHandleExpiredSession(){if(this._lastActivity&&Vr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${K.location.pathname}${K.location.hash}${K.location.search}`,t=`${K.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){const n=this._throttledAddEvent(e,t);if(n===sc){const r=ke({category:"replay.throttled"});this.addUpdate(()=>!Ls(this,{type:Tm,timestamp:r.timestamp||0,data:{tag:"breadcrumb",payload:r,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||_e(),t=e&&et(e),n=(t&&se(t).data||{})[Ke];if(!(!t||!n||!["route","custom"].includes(n)))return se(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ug({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=hr({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;const e=this.session;return Va(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{K.document.addEventListener("visibilitychange",this._handleVisibilityChange),K.addEventListener("blur",this._handleWindowBlur),K.addEventListener("focus",this._handleWindowFocus),K.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(c_(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=ng(this)}_removeListeners(){try{K.document.removeEventListener("visibilitychange",this._handleVisibilityChange),K.removeEventListener("blur",this._handleWindowBlur),K.removeEventListener("focus",this._handleWindowFocus),K.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(Ga(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){w&&I.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:N.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=Vm(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(n=>n.start>=t)}return Promise.all(Gn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
19_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){w&&I.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await u_(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Ki;const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await rc({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:s=>this.handleException(s)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const n=z();if(n){let r;t instanceof Ps?r="ratelimit_backoff":t instanceof Ki?r="invalid":r="send_error",n.recordDroppedEvent(r,"replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){w&&I.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s){w&&I.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}const i=this.eventBuffer;i&&this.session.segmentId===0&&!i.hasCheckout&&w&&I.log("Flushing initial segment without checkout.");const o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(a){this.handleException(a)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&jn(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(o=>{const a=g_(o.target),c=t.join(",");return a?.matches(c)}))return!1;const n=e.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>s||i){const o=ke({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(o)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};function Ct(e,t){return[...e,...t].join(",")}function w_({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:Ct(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Ct(t,[]),blockSelector:Ct(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Ct(r,[]),ignoreSelector:Ct(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function I_({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var Xi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',k_=["content-length","content-type","accept"],R_=Symbol.for("sentry__originalRequestBody"),Ji=!1,Qi=!1;function C_(){if(typeof Request>"u"||Qi)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[R_]=r.body),s};t.prototype=e.prototype,ee.Request=t,Qi=!0}catch{}}var M_=e=>new x_(e),x_=class{constructor({flushMinDelay:e=Zp,flushMaxDelay:t=eh,minReplayDuration:n=oh,maxReplayDuration:r=Ci,stickySession:s=!0,useCompression:i=!0,workerUrl:o,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:l=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:_=[],networkCaptureBodies:S=!0,networkRequestHeaders:R=[],networkResponseHeaders:A=[],mask:$=[],maskAttributes:X=["title","placeholder","aria-label"],unmask:b=[],block:g=[],unblock:B=[],ignore:q=[],maskFn:y,beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:x,attachRawBodyFromRequest:ne=!1}={}){this.name="Replay";const Z=w_({mask:$,unmask:b,block:g,unblock:B,ignore:q});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:y,maskInputFn:y,maskAttributeFn:(j,V,v)=>I_({maskAttributes:X,maskAllText:c,privacyOptions:Z,key:j,value:V,el:v}),...Z,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:j=>{try{j.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,ah),maxReplayDuration:Math.min(r,Ci),stickySession:s,useCompression:i,workerUrl:o,blockAllMedia:d,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:l,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:_,networkCaptureBodies:S,networkRequestHeaders:Zi(R),networkResponseHeaders:Zi(A),beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:x,attachRawBodyFromRequest:ne,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Xi}`:Xi,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Mr())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ji}set _isInitialized(e){Ji=e}afterAllSetup(e){!Mr()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&C_(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
19startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?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}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=A_(this._initialOptions,e);this._replay=new T_({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function A_(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=vr(n.replaysSessionSampleRate),i=vr(n.replaysOnErrorSampleRate);return s==null&&i==null&&Wt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function Zi(e){return[...k_,...e.map(t=>t.toLowerCase())]}function N_(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function ic(e){try{return new URL(e,O.location.origin).href}catch{return}}function O_(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function oc(e){try{return new Headers(e)}catch{return}}var eo=new WeakMap,mr=new Map,ac={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function L_(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...ac,...t},d=typeof i=="function"?i:p=>!0,l=p=>D_(p,a),f={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const _=mr.get(m.span_id);_&&(m.timestamp=_/1e3,mr.delete(m.span_id))}}),p)),s&&id(p=>{if(p.response){const m=eo.get(p.response);m&&p.endTimestamp&&mr.set(m,p.endTimestamp)}}),zo(p=>{const m=Xl(p,d,l,f,{propagateTraceparent:h,onRequestSpanEnd:u});if(p.response&&p.fetchData.__span&&eo.set(p.response,p.fetchData.__span),m){const _=ic(p.fetchData.url),S=_?Qe(_).host:void 0;m.setAttributes({"http.url":_?Fe(_):void 0,"server.address":S}),o&&to(m),c?.(m,{headers:p.headers})}})),r&&la(p=>{const m=P_(p,d,l,f,h,u);m&&(o&&to(m),c?.(m,{headers:oc(p.xhr.__sentry_xhr_v3__?.request_headers)}))})}function to(e){const{url:t}=se(e).data;if(!t||typeof t!="string")return;const n=_t("resource",({entries:r})=>{r.forEach(s=>{O_(s)&&s.name.endsWith(t)&&(e.setAttributes(aa(s)),setTimeout(n))})})}function D_(e,t){const n=Et();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?Ae(r.toString(),t)||i&&Ae(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?Ae(e,t):r}}function P_(e,t,n,r,s,i){const o=e.xhr,a=o?.[Xe];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:u}=a,d=Pe()&&t(c);if(e.endTimestamp){const S=o.__sentry_xhr_span_id__;if(!S)return;const R=r[S];R&&(d&&a.status_code!==void 0&&(co(R,a.status_code),R.end(),i?.(R,{headers:oc(ha(o)),error:e.error})),delete r[S]);return}const l=ic(c),f=Qe(l||c),h=Fe(ml(c)),p=!!_e(),m=d&&p?bt({name:`${u} ${h}`,attributes:{url:Fe(c),type:"xhr","http.method":u,"http.url":l?Fe(l):void 0,"server.address":f?.host,[ce]:"auto.http.browser",[Ht]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Tn;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(c)&&F_(o,Pe()&&p?m:void 0,s);const _=z();return _&&_.emit("beforeOutgoingRequestSpan",m,e),m}function F_(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=Fo({span:t,propagateTraceparent:n});r&&B_(e,r,s,i)}function B_(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=s?.baggage;(!i||!N_(i))&&e.setRequestHeader("baggage",n)}}catch{}}function U_(){O.document?O.document.addEventListener("visibilitychange",()=>{const e=_e();if(!e)return;const t=et(e);if(O.document.hidden&&t){const n="cancelled",{op:r,status:s}=se(t);me&&E.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):me&&E.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var cc="sentry_previous_trace",H_="sentry.previous_trace";function $_(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?q_():void 0;e.on("spanStart",o=>{if(et(o)!==o)return;const a=Q().getPropagationContext();s=W_(s,o,a),r&&z_(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=Q(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(Xr(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=Xr(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[nu]:s.sampleRate}})}function W_(e,t,n){const r=se(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.["sentry.sample_rate"])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(me&&E.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[zc]:"previous_trace"}}),t.setAttribute(H_,`${o.traceId}-${o.spanId}-${Xr(o)?1:0}`)),i)}function z_(e){try{O.sessionStorage.setItem(cc,JSON.stringify(e))}catch(t){me&&E.warn("Could not store previous trace in sessionStorage",t)}}function q_(){try{const e=O.sessionStorage?.getItem(cc);return JSON.parse(e)}catch{return}}function Xr(e){return e.traceFlags===1}var j_="BrowserTracing",G_=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function V_(){const e=O.navigator;return e?.userAgent?G_.test(e.userAgent):!1}var Y_={...hn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
19dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ac},K_=(e={})=>{"enableElementTiming"in e&&Wt(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=O.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:i,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:d,finalTimeout:l,childSpanTimeout:f,markBackgroundSpan:h,traceFetch:p,traceXHR:m,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:S,enableHTTPTimings:R,ignoreResourceSpans:A,ignorePerformanceApiSpans:$,instrumentPageLoad:X,instrumentNavigation:b,detectRedirects:g,linkPreviousTrace:B,consistentTraceSampling:q,enableReportPageLoaded:y,onRequestSpanStart:T,onRequestSpanEnd:P}={...Y_,...e},x=V_();let ne,Z,j;function V(v,W,k=!0){const G=W.op==="pageload",ie=W.name,J=u?u(W):W,be=J.attributes||{};if(ie!==J.name&&(be[Ke]="custom",J.attributes=be),!k){const Ce=$t();bt({...J,startTime:Ce}).end(Ce);return}t.name=J.name,t.source=be[Ke];const Re=_o(J,{idleTimeout:d,finalTimeout:l,childSpanTimeout:f,disableAutoFinish:G,beforeSpanEnd:Ce=>{ne?.(),yf(Ce,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:A,ignorePerformanceApiSpans:$}),so(v,void 0);const nt=Q(),en=nt.getPropagationContext();nt.setPropagationContext({...en,traceId:Re.spanContext().traceId,sampled:qc(Re),dsc:qt(Ce)}),G&&(j=void 0)},trimIdleSpanEndTimestamp:!y});G&&y&&(j=Re),so(v,Re);function tt(){n&&["interactive","complete"].includes(n.readyState)&&v.emit("idleSpanEnableAutoFinish",Re)}G&&!y&&n&&(n.addEventListener("readystatechange",()=>{tt()}),tt())}return{name:j_,setup(v){if(x){me&&E.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(du(),ne=df({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:c||!1,client:v}),r&&Wf(),i&&ee.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?pf():s&&ff(),o&&hf(),g&&n){const k=()=>{Z=ve()};addEventListener("click",k,{capture:!0}),addEventListener("keydown",k,{capture:!0,passive:!0})}function W(){const k=Ut(v);k&&!se(k).timestamp&&(me&&E.log(`[Tracing] Finishing current active span with op: ${se(k).op}`),k.setAttribute(En,"cancelled"),k.end())}v.on("startNavigationSpan",(k,G)=>{if(z()!==v)return;if(G?.isRedirect){me&&E.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),V(v,{op:"navigation.redirect",...k},!1);return}Z=void 0,W(),Ee().setPropagationContext({traceId:Ws(),sampleRand:Math.random(),propagationSpanId:Pe()?void 0:Qn()});const ie=Q();ie.setPropagationContext({traceId:Ws(),sampleRand:Math.random(),propagationSpanId:Pe()?void 0:Qn()}),ie.setSDKProcessingMetadata({normalizedRequest:void 0}),V(v,{op:"navigation",...k,parentSpan:null,forceTransaction:!0})}),v.on("startPageLoadSpan",(k,G={})=>{if(z()!==v)return;W();const ie=gc(G.sentryTrace||no("sentry-trace")||ro("sentry-trace"),G.baggage||no("baggage")||ro("baggage")),J=Q();J.setPropagationContext(ie),Pe()||(J.getPropagationContext().propagationSpanId=Qn()),J.setSDKProcessingMetadata({normalizedRequest:fs()}),V(v,{op:"pageload",...k})}),v.on("endPageloadSpan",()=>{y&&j&&(j.setAttribute(En,"reportPageLoaded"),j.end())})},afterAllSetup(v){if(x)return;let W=Et();if(B!=="off"&&$_(v,{linkPreviousTrace:B,consistentTraceSampling:q}),O.location){if(X){const k=pe();uc(v,{name:O.location.pathname,startTime:k?k/1e3:void 0,attributes:{[Ke]:"url",[ce]:"auto.pageload.browser"}})}b&&$n(({to:k,from:G})=>{if(G===void 0&&W?.indexOf(k)!==-1){W=void 0;return}W=void 0;const ie=ds(k),J=Ut(v),be=J&&g&&Q_(J,Z);X_(v,{name:ie?.pathname||O.location.pathname,attributes:{[Ke]:"url",[ce]:"auto.navigation.browser"}},{url:k,isRedirect:be})})}h&&U_(),o&&J_(v,d,l,f,t),r&&jf(),L_(v,{traceFetch:p,traceXHR:m,trackFetchStreamPerformance:_,tracePropagationTargets:v.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:R,onRequestSpanStart:T,onRequestSpanEnd:P})}}};function uc(e,t,n){e.emit("startPageLoadSpan",t,n),Q().setTransactionName(t.name);const r=Ut(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function X_(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=Q();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...fs(),url:r}}),Ut(e)}function no(e){return O.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function ro(e){return O.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(t=>t.name===e)?.description}
19function J_(e,t,n,r,s){const i=O.document;let o;const a=()=>{const c="ui.action.click",u=Ut(e);if(u){const d=se(u).op;if(["navigation","pageload"].includes(d)){me&&E.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(En,"interactionInterrupted"),o.end(),o=void 0),!s.name){me&&E.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=_o({name:s.name,op:c,attributes:{[Ke]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}var lc="_sentry_idleSpan";function Ut(e){return e[lc]}function so(e,t){pt(e,lc,t)}var io=1.5;function Q_(e,t){const n=se(e),r=$t();return!(r-n.start_timestamp>io||t&&r-t<=io)}var Z_=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ey(e){return O.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function dc(e={}){const t=K_({...e,instrumentPageLoad:!1});return{...t,afterAllSetup(n){if(t.afterAllSetup?.(n),O.location&&e.instrumentPageLoad!=!1){const r=pe(),{name:s,source:i}=ty();uc(n,{name:s,startTime:r?r/1e3:void 0,attributes:{[Ke]:i,[ce]:"auto.pageload.astro"}})}}}}function ty(){try{const e=ey("sentry-route-name");if(e){const t=decodeURIComponent(e);return Z_&&E.log(`[Tracing] Using route name from Sentry HTML meta-tag: ${t}`),{name:t,source:"route"}}}catch{}return{name:O.location.pathname,source:"url"}}function ny(e){const t={defaultIntegrations:ry(e),...e};return Po(t,"astro",["astro","browser"]),Kp(t)}function ry(e){return typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__?[...Hr(e),dc()]:Hr(e)}var sy="https://[email protected]/4509791132975104",iy="perf-debug",gr="sentry-perf-debug",oy=()=>{try{const e=new URLSearchParams(window.location.search).get(iy),t=window.sessionStorage;return e==="1"?t.setItem(gr,"1"):e==="0"&&t.removeItem(gr),t.getItem(gr)==="1"}catch{return!1}},ay=["/property/[id]/[slug].md","/property/[id]/[slug]"],cy=e=>new RegExp(`^${e.replace(/\./g,"\\.").replace(/\[[^\]]+\]/g,"[^/]+")}$`),uy=ay.map(e=>({pattern:e,matches:cy(e)})),ly=e=>{const{pathWithoutLocale:t}=hc(e);return uy.find(n=>n.matches.test(t))?.pattern},dy=e=>{const t=ly(e.name);return t?{...e,name:t}:e},fy="production",_r=oy();ny({dsn:sy,environment:fy,enabled:!0,sendDefaultPii:!0,integrations:[dc({beforeStartSpan:dy}),M_()],ignoreErrors:["Transition was skipped","Skipping view transition because skipTransition() was called."],enableLogs:!0,sampleRate:1,tracesSampler:({name:e,inheritOrSampleWith:t})=>navigator.webdriver?0:_r||e.startsWith("/book/")?1:t(.05),replaysSessionSampleRate:_r?1:0,replaysOnErrorSampleRate:.25,initialScope:_r?{tags:{perf_debug:"1"}}:void 0});mc(as);export{as as captureException,_y as captureMessage,yy as setUser,bt as startInactiveSpan};

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.