PageSourceSearch

https://octopusenergy.es/_next/static/chunks/3422.b1414c288a0b9587.js

js octopusenergy.es collected 2026-09-26 00:00:49 UTC 243,364 bytes, 452 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3ce9171d-bc3d-4b00-abab-da896155c896",e._sentryDebugIdIdentifier="sentry-dbid-3ce9171d-bc3d-4b00-abab-da896155c896")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{35947:(e,t,r)=>{e.exports=r(89996)},73422:(e,t,r)=>{"use strict";let n,i,o,a,s,l,c,u,d,h,p,f;r.r(t),r.d(t,{BrowserClient:()=>e7.y,ErrorBoundary:()=>sO.tH,OpenFeatureIntegrationHook:()=>sS,Profiler:()=>sA,SDK_VERSION:()=>e_.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>Q.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>Q.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>Q.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>Q.i_,Scope:()=>G.H,WINDOW:()=>e4.jf,addBreadcrumb:()=>ey.Z,addEventProcessor:()=>E.SA,addIntegration:()=>ev.Q8,addTracingExtensions:()=>ew,breadcrumbsIntegration:()=>tn.F,browserApiErrorsIntegration:()=>ts.G,browserProfilingIntegration:()=>sp,browserSessionIntegration:()=>sm.p,browserTracingIntegration:()=>R.d,buildLaunchDarklyFlagUsedHandler:()=>sb,captureConsoleIntegration:()=>ex,captureEvent:()=>E.r,captureException:()=>E.Cp,captureFeedback:()=>eM,captureMessage:()=>E.wd,captureRequestError:()=>em,captureSession:()=>E.J5,captureUnderscoreErrorException:()=>T,captureUserFeedback:()=>tr.lo,chromeStackLineParser:()=>e9.Yj,close:()=>E.VN,contextLinesIntegration:()=>tI,continueTrace:()=>X.V4,createReduxEnhancer:()=>sL,createTransport:()=>eI.o,createUserFeedbackEnvelope:()=>tt.L,debugIntegration:()=>eT,dedupeIntegration:()=>eR.s,defaultRequestInstrumentationOptions:()=>a2.h$,defaultStackLineParsers:()=>e9.c9,defaultStackParser:()=>e9.lG,endSession:()=>E.ky,eventFromException:()=>te.u,eventFromMessage:()=>te.qv,exceptionFromError:()=>te.K8,experimental_captureRequestError:()=>eg,extraErrorDataIntegration:()=>eO,featureFlagsIntegration:()=>sy,feedbackAsyncIntegration:()=>aj,feedbackIntegration:()=>aH,feedbackSyncIntegration:()=>aH,flush:()=>E.bX,forceLoad:()=>tr.w7,functionToStringIntegration:()=>eP.Z,geckoStackLineParser:()=>e9.dY,getActiveSpan:()=>O.Bk,getClient:()=>g.KU,getCurrentHub:()=>eL,getCurrentScope:()=>g.o5,getDefaultIntegrations:()=>tr.nI,getFeedback:()=>oI,getGlobalScope:()=>g.m6,getIsolationScope:()=>g.rm,getReplay:()=>iU,getRootSpan:()=>O.zU,getSpanDescendants:()=>O.xO,getSpanStatusFromHttpCode:()=>ee.AJ,globalHandlersIntegration:()=>ti.L,httpClientIntegration:()=>tb,httpContextIntegration:()=>to.M,inboundFiltersIntegration:()=>eF.D,init:()=>m.Ts,instrumentOutgoingRequests:()=>a2.Qb,isInitialized:()=>E.Dp,lastEventId:()=>E.Q,launchDarklyIntegration:()=>sv,lazyLoadIntegration:()=>tu,linkedErrorsIntegration:()=>ta.p,makeBrowserOfflineTransport:()=>a7,makeFetchTransport:()=>e8._,makeMultiplexedTransport:()=>ej,metrics:()=>a1,moduleMetadataIntegration:()=>eY,onLoad:()=>tr.kF,openFeatureIntegration:()=>sw,opera10StackLineParser:()=>e9.Q_,opera11StackLineParser:()=>e9.Vv,parameterize:()=>eJ,reactErrorHandler:()=>sx.yL,reactRouterV3BrowserTracingIntegration:()=>sF,reactRouterV4BrowserTracingIntegration:()=>s$,reactRouterV5BrowserTracingIntegration:()=>sj,reactRouterV6BrowserTracingIntegration:()=>lr,reactRouterV7BrowserTracingIntegration:()=>lc,registerSpanErrorInstrumentation:()=>eb.s,replayCanvasIntegration:()=>oe,replayIntegration:()=>iP,reportingObserverIntegration:()=>tf,rewriteFramesIntegration:()=>eK.D,sendFeedback:()=>ov,sessionTimingIntegration:()=>eX,setContext:()=>E.o,setCurrentClient:()=>eQ.B,setExtra:()=>E.l7,setExtras:()=>E.cx,setHttpStatus:()=>ee.N8,setMeasurement:()=>eZ.X,setTag:()=>E.NA,setTags:()=>E.Wt,setUser:()=>E.gV,showReportDialog:()=>tr.mn,spanToBaggageHeader:()=>e0.HW,spanToJSON:()=>O.et,spanToTraceHeader:()=>O.Qh,spotlightBrowserIntegration:()=>sf,startBrowserTracingNavigationSpan:()=>a3.Nt,startBrowserTracingPageLoadSpan:()=>a3.Sx,startInactiveSpan:()=>X.Uk,startNewTrace:()=>X.Y7,startSession:()=>E.J0,startSpan:()=>X.Lk,startSpanManual:()=>X.nV,statsigIntegration:()=>sC,suppressTracing:()=>X.M1,tanstackRouterBrowserTracingIntegration:()=>sB,thirdPartyErrorFilterIntegration:()=>e2,unleashIntegration:()=>sk,updateSpanName:()=>O.zQ,useProfiler:()=>sN,winjsStackLineParser:()=>e9.$2,withActiveSpan:()=>X.hb,withErrorBoundary:()=>sO.Xc,withIsolationScope:()=>g.rB,withProfiler:()=>sD,withScope:()=>g.v4,withSentryConfig:()=>m.wF,withSentryReactRouterV6Routing:()=>ll,withSentryReactRouterV7Routing:()=>
1lu,withSentryRouting:()=>sW,withServerActionInstrumentation:()=>ep,wrapApiHandlerWithSentryVercelCrons:()=>es,wrapAppGetInitialPropsWithSentry:()=>W,wrapCreateBrowserRouter:()=>la,wrapCreateBrowserRouterV6:()=>lo,wrapCreateBrowserRouterV7:()=>ld,wrapCreateMemoryRouterV6:()=>ls,wrapCreateMemoryRouterV7:()=>lh,wrapDocumentGetInitialPropsWithSentry:()=>q,wrapErrorGetInitialPropsWithSentry:()=>V,wrapGenerationFunctionWithSentry:()=>eh,wrapGetInitialPropsWithSentry:()=>H,wrapGetServerSidePropsWithSentry:()=>Y,wrapGetStaticPropsWithSentry:()=>z,wrapMiddlewareWithSentry:()=>el,wrapPageComponentWithSentry:()=>eu,wrapRouteHandlerWithSentry:()=>ea,wrapServerComponentWithSentry:()=>eo,wrapUseRoutes:()=>li,wrapUseRoutesV6:()=>ln,wrapUseRoutesV7:()=>lp,zodErrorsIntegration:()=>e6});var m=r(20693),g=r(8415),_=r(49633),y=r(41609),v=r(47166);function b(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch(e){_.T&&y.vF.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}function w(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&(t[e]=r)})}catch(e){_.T&&y.vF.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}function S(e){let t=e.headers||{},r=t.host||"<no host>",n=e.socket&&e.socket.encrypted?"https":"http",i=e.url||"",o=i.startsWith(n)?i:`${n}://${r}${i}`,a=e.body||void 0,s=e.cookies;return(0,v.Ce)({url:o,method:e.method,query_string:k(i),headers:w(t),cookies:s,data:a})}function k(e){if(e)try{let t=new URL(e,"http://dogs.are.great").search.slice(1);return t.length?t:void 0}catch(e){return}}var E=r(20140),C=r(30916);function x(e){let t=C.O[Symbol.for("@vercel/request-context")],r=t&&t.get&&t.get()?t.get():{};r&&r.waitUntil&&r.waitUntil(e)}var M=r(80413);async function I(){try{M.T&&y.vF.log("Flushing events..."),await (0,E.bX)(2e3),M.T&&y.vF.log("Done flushing events")}catch(e){M.T&&y.vF.log("Error while flushing events:\n",e)}}async function T(e){let{req:t,res:r,err:n}=e,i=r&&r.statusCode||e.statusCode;if(i&&i<500||!e.pathname)return Promise.resolve();(0,g.v4)(e=>{if(t){let r=S(t);e.setSDKProcessingMetadata({normalizedRequest:r})}(0,E.Cp)(n||`_error.js called with falsy error (${n})`,{mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}})}),x(I())}var R=r(89601),A=r(35947),D=r(20940);function N(){return D.env.NEXT_PHASE===A.PHASE_PRODUCTION_BUILD}var O=r(97684),P=r(93352);let L="sentry.sentry_trace_backfill";function F(e){return async function(...t){try{return await e.apply(this,t)}catch(e){throw(0,E.Cp)(e,{mechanism:{handled:!1}}),e}}}function U(e,t,r,n){return async function(...r){let i=S(t);(0,g.o5)().setTransactionName(`${n.dataFetchingMethodName} (${n.dataFetcherRouteName})`),(0,g.rm)().setSDKProcessingMetadata({normalizedRequest:i});let o=(0,O.Bk)();o&&"/_error"!==n.requestedRouteName&&(0,O.zU)(o).setAttribute("sentry.route_backfill",n.requestedRouteName);let{"sentry-trace":a,baggage:s}=(0,P.i)();return{sentryTrace:a,baggage:s,data:await e.apply(this,r)}}}async function B(e,t){try{return await e(...t)}catch(e){throw(0,E.Cp)(e,{mechanism:{handled:!1}}),e}}function z(e,t){return new Proxy(e,{apply:async(e,t,r)=>N()?e.apply(t,r):B(F(e),r)})}var $=r(782);async function j(e,t){return(0,$.S)(e,t)}function H(e){return new Proxy(e,{apply:async(e,t,r)=>{if(N())return e.apply(t,r);let[n]=r,{req:i,res:o}=n,a=F(e);if(!i||!o)return a.apply(t,r);{let e=U(a,i,o,{dataFetcherRouteName:n.pathname,requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:c}=await j(await e.apply(t,r),async()=>({}));return"object"==typeof s&&null!==s&&(c&&(s._sentryTraceData=c),l&&(s._sentryBaggage=l)),s}}})}function W(e){return new Proxy(e,{apply:async(e,t,r)=>{if(N())return e.apply(t,r);let[n]=r,{req:i,res:o}=n.ctx,a=F(e);if(!i||!o)return a.apply(t,r);{let e=U(a,i,o,{dataFetcherRouteName:"/_app",requestedRouteName:n.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:c}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),c&&(s.pageProps._sentryBaggage=c)),s}}})}function q(e){return new Proxy(e,{apply:async(e,t,r)=>{if(N())return e.apply(t,r);let[n]=r,{req:i,res:o}=n,a=F(e);if(!i||!o)return a.apply(t,r);{let e=U(a,i,o,{dataFetcherRouteName:"/_document",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,r);return s}}})}function V(e){return new Proxy(e,{apply:async(e,t,r)=>{if(N())return e.apply(t,r);let[n]=r,{req:i,res:o}=n,a=F(e);if(!i||!o)return a.apply(t,r);{let e=U(a,i,o,{dataFetcherRouteName:"/_error",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:c}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(c&&(s._sentryTraceData=c),l&&(s._sentryBaggage=l)),s}}})}function Y(e,t){return new Proxy(e,{apply:async(e,r,n)=>{if(N())return e.apply(r,n);let[i]=n,{req:o,res:a}=i,s=U(F(e),o,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:c,sentryTrace:u}=await s.apply(r,n);return"object"==typeof l&&null!==l&&"props"in l&&(u&&(l.props._sentryTraceData=u),c&&(l.props._sentryBaggage=c)),l}})}var J=r(85076),K=r(50287),G=r(27767),X=r(7694),Q=r(38300),Z=r(32141),ee=r(96020),et=r(90117);let er=new WeakMap,en=new WeakMap;function ei(e){if("object"!=typeof e||!e)return new G.H;{let t=en.get(e);if(t)return t;{let t=new G.H;return en.set(e,t),t}}}
1function eo(e,t){let{componentRoute:r,componentType:n}=t;return new Proxy(e,{apply:(e,i,o)=>{(0,J.z)([O.Bk,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);let a=ei(t.headers),s=(0,O.Bk)();if(s){let e=(0,O.zU)(s),{scope:t}=(0,K.L)(e);(0,K.d)(e,(0,$.S)(t,()=>new G.H),a)}let l=t.headers?b(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:l}}),(0,g.rB)(a,()=>(0,g.v4)(t=>{t.setTransactionName(`${n} Server Component (${r})`);let a=(0,O.Bk)();if(a){let e=(0,O.zU)(a),t=(0,J.z)([l,"optionalAccess",e=>e["sentry-trace"]]);t&&e.setAttribute(L,t)}return(0,X.nV)({op:"function.nextjs",name:`${n} Server Component (${r})`,attributes:{[Q.i_]:"component",[Q.JD]:"auto.function.nextjs"}},t=>(0,Z.x)(()=>e.apply(i,o),e=>{(0,et.Y)(e)?t.setStatus({code:ee.TJ,message:"not_found"}):(0,et.V)(e)?t.setStatus({code:ee.F3}):(t.setStatus({code:ee.TJ,message:"internal_error"}),(0,E.Cp)(e,{mechanism:{handled:!1}}))},()=>{t.end(),x(I())}))}))}})}function ea(e,t){let{method:r,parameterizedRoute:n,headers:i}=t;return new Proxy(e,{apply:async(e,t,i)=>{let o=(0,O.Bk)(),a=o?(0,O.zU)(o):void 0;return(0,g.rB)((0,g.rm)(),()=>(0,g.v4)(async s=>{s.setTransactionName(`${r} ${n}`);let l=await (0,Z.x)(()=>e.apply(t,i),e=>{(0,et.V)(e)||((0,et.Y)(e)?(o&&(0,ee.N8)(o,404),a&&(0,ee.N8)(a,404)):(0,E.Cp)(e,{mechanism:{handled:!1}}))});try{l.status&&(o&&(0,ee.N8)(o,l.status),a&&(0,ee.N8)(a,l.status))}catch(e){}return l}))}})}function es(e,t){return new Proxy(e,{apply:(e,r,n)=>{let i;if(!n||!n[0])return e.apply(r,n);let[o]=n,a="nextUrl"in o?o.nextUrl.pathname:o.url,s="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!(0,J.z)([s,"optionalAccess",e=>e.includes,"call",e=>e("vercel-cron")]))return e.apply(r,n);let l=t.find(e=>e.path===a);if(!l||!l.path||!l.schedule)return e.apply(r,n);let c=l.path,u=(0,E.SE)({monitorSlug:c,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=Date.now()/1e3,h=()=>{(0,E.SE)({checkInId:u,monitorSlug:c,status:"error",duration:Date.now()/1e3-d})};try{i=e.apply(r,n)}catch(e){throw h(),e}return"object"==typeof i&&null!==i&&"then"in i?Promise.resolve(i).then(()=>{(0,E.SE)({checkInId:u,monitorSlug:c,status:"ok",duration:Date.now()/1e3-d})},()=>{h()}):(0,E.SE)({checkInId:u,monitorSlug:c,status:"ok",duration:Date.now()/1e3-d}),i}})}function el(e){return new Proxy(e,{apply:async(e,t,r)=>(0,g.rB)(n=>{let i,o,a=r[0],s=(0,g.o5)();a instanceof Request?(n.setSDKProcessingMetadata({normalizedRequest:function(e){let t=b(e.headers);return{method:e.method,url:e.url,query_string:k(e.url),headers:t}}(a)}),i=`middleware ${a.method} ${new URL(a.url).pathname}`,o="url"):(i="middleware",o="component"),s.setTransactionName(i);let l=(0,O.Bk)();if(l){i="middleware",o="component";let e=(0,O.zU)(l);e&&(0,K.d)(e,s,n)}return(0,X.Lk)({name:i,op:"http.server.middleware",attributes:{[Q.i_]:o,[Q.JD]:"auto.function.nextjs.wrapMiddlewareWithSentry"}},()=>(0,Z.x)(()=>e.apply(t,r),e=>{(0,E.Cp)(e,{mechanism:{type:"instrument",handled:!1}})},()=>{x(I())}))})})}var ec=r(90961);function eu(e){return"function"==typeof e&&(0,J.z)([e,"optionalAccess",e=>e.prototype,"optionalAccess",e=>e.isReactComponent])?class extends e{render(...e){return(0,g.rB)(()=>{let t=(0,g.o5)(),r="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(r){let e=(0,ec.nc)(r);t.setContext("trace",{span_id:(0,J.z)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,J.z)([e,"optionalAccess",e=>e.traceId])})}try{return super.render(...e)}catch(e){throw(0,E.Cp)(e,{mechanism:{handled:!1}}),e}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,r)=>(0,g.rB)(()=>{let n=(0,g.o5)(),i=(0,J.z)([r,"optionalAccess",e=>e[0],"optionalAccess",e=>e._sentryTraceData]);if(i){let e=(0,ec.nc)(i);n.setContext("trace",{span_id:(0,J.z)([e,"optionalAccess",e=>e.parentSpanId]),trace_id:(0,J.z)([e,"optionalAccess",e=>e.traceId])})}try{return e.apply(t,r)}catch(e){throw(0,E.Cp)(e,{mechanism:{handled:!1}}),e}})}):e}var ed=r(26980);function eh(e,t){let{requestAsyncStorage:r,componentRoute:n,componentType:i,generationFunctionIdentifier:o}=t;return new Proxy(e,{apply:(e,t,a)=>{let s,l,c=(0,J.z)([O.Bk,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);try{s=(0,J.z)([r,"optionalAccess",e=>e.getStore,"call",e=>e(),"optionalAccess",e=>e.headers])}catch(e){}let u=ei(s),d=(0,O.Bk)();if(d){let e=(0,O.zU)(d),{scope:t}=(0,K.L)(e);(0,K.d)(e,(0,$.S)(t,()=>new G.H),u)}if((0,J.z)([g.KU,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii])){let e=a[0];l={params:e&&"object"==typeof e&&"params"in e?e.params:void 0,searchParams:e&&"object"==typeof e&&"searchParams"in e?e.searchParams:void 0}}let h=s?b(s):void 0;return(0,g.rB)(u,()=>(0,g.v4)(r=>{r.setTransactionName(`${i}.${o} (${n})`),u.setSDKProcessingMetadata({normalizedRequest:{headers:h}});let d=(0,O.Bk)();if(d){let e=(0,O.zU)(d),t=(0,J.z)([h,"optionalAccess",e=>e["sentry-trace"]]);t&&e.setAttribute(L,t)}let p=function(e,t){if("object"!=typeof e||!e)return t;{let r=er.get(e);return r||(er.set(e,t),t)}}(s,(0,J.z)([h,"optionalAccess",e=>e["sentry-trace"]])?(0,ec.kM)(h["sentry-trace"],h.baggage):{traceId:c||(0,ed.el)(),spanId:(0,ed.ZF)()});return r.setPropagationContext(p),r.setExtra("route_data",l),(0,X.nV)({op:"function.nextjs",name:`${i}.${o} (${n})`,attributes:{[Q.i_]:"route",[Q.JD]:"auto.function.nextjs"}},r=>(0,Z.x)(()=>e.apply(t,a),e=>{(0,et.Y)(e)?(r.setStatus({code:ee.TJ,message:"not_found"}),(0,O.zU)(r).setStatus({code:ee.TJ,message:"not_found"})):(0,et.V)(e)?r.setStatus({code:ee.F3}):(r.setStatus({code:ee.TJ,message:"internal_error"}),(0,O.zU)(r).setStatus({code:ee.TJ,message:"internal_error"}),(0,E.Cp)(e,{mechanism:{handled:!1}}))},()=>{r.end()}))}))}})}function ep(...e){if("function"==typeof e[1]){let[t,r]=e;return ef(t,{},r)}{let[t,r,n]=e;return ef(t,r,n)}}async function ef(e,t,r){return(0,g.rB)(async n=>{let i,o,a=(0,J.z)([g.KU,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]),s={};try{let e=await t.headers;i=(0,$.S)((0,J.z)([e,"optionalAccess",e=>e.get,"call",e=>e("sentry-trace")]),()=>void 0),o=(0,J.z)([e,"optionalAccess",e=>e.get,"call",e=>e("baggage")]),(0,J.z)([e,"optionalAccess",e=>e.forEach,"call",e=>e((e,t)=>
1{s[t]=e})])}catch(e){M.T&&y.vF.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return n.setTransactionName(`serverAction/${e}`),n.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,O.Bk)()?(e,t)=>t():X.V4)({sentryTrace:i,baggage:o},async()=>{try{return await (0,X.Lk)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[Q.i_]:"route"}},async e=>{let n=await (0,Z.x)(r,t=>{(0,et.Y)(t)?e.setStatus({code:ee.TJ,message:"not_found"}):(0,et.V)(t)||(e.setStatus({code:ee.TJ,message:"internal_error"}),(0,E.Cp)(t,{mechanism:{handled:!1}}))});return(void 0!==t.recordResponse?t.recordResponse:a)&&(0,g.rm)().setExtra("server_action_result",n),t.formData&&t.formData.forEach((e,t)=>{(0,g.rm)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),n})}finally{x(I())}})})}function em(e,t,r){(0,g.v4)(n=>{n.setSDKProcessingMetadata({normalizedRequest:{headers:w(t.headers),method:t.method}}),n.setContext("nextjs",{request_path:t.path,router_kind:r.routerKind,router_path:r.routePath,route_type:r.routeType}),n.setTransactionName(r.routePath),(0,E.Cp)(e,{mechanism:{handled:!1}})})}let eg=em;var e_=r(24715),ey=r(81181),ev=r(18769),eb=r(22065);function ew(){(0,eb.s)()}var eS=r(70958),ek=r(44917),eE=r(4218),eC=r(98420);let ex=(0,ev._C)((e={})=>{let t=e.levels||y.Ow,r=!!e.handled;return{name:"CaptureConsole",setup(e){"console"in C.O&&(0,eS.P)(({args:n,level:i})=>{(0,g.KU)()===e&&t.includes(i)&&function(e,t,r){let n={level:(0,eE.t)(t),extra:{arguments:e}};(0,g.v4)(i=>{if(i.addEventProcessor(e=>(e.logger="console",(0,ek.M6)(e,{handled:r,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${(0,eC.gt)(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),(0,E.wd)(t,n)}return}let o=e.find(e=>e instanceof Error);if(o)return void(0,E.Cp)(o,n);let a=(0,eC.gt)(e," ");(0,E.wd)(a,n)})}(n,i,r)})}}});function eM(e,t={},r=(0,g.o5)()){let{message:n,name:i,email:o,url:a,source:s,associatedEventId:l,tags:c}=e,u={contexts:{feedback:(0,v.Ce)({contact_email:o,name:i,message:n,url:a,source:s,associated_event_id:l})},type:"feedback",level:"info",tags:c},d=r&&r.getClient()||(0,g.KU)();return d&&d.emit("beforeSendFeedback",u,t),r.captureEvent(u,t)}var eI=r(27839);let eT=(0,ev._C)((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,r)=>{t.debugger,(0,y.pq)(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),r&&Object.keys(r).length&&console.log(JSON.stringify(r,null,2))):(console.log(e),r&&Object.keys(r).length&&console.log(r))})})}}});var eR=r(59764),eA=r(23681),eD=r(4597),eN=r(11358);let eO=(0,ev._C)((e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,i){let{maxValueLength:o=250}=i.getOptions();return function(e,t={},r,n,i){if(!t.originalException||!(0,eD.bJ)(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,a=function(e,t,r){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(let t of Object.keys(e)){if(-1!==n.indexOf(t))continue;let o=e[t];i[t]=(0,eD.bJ)(o)||"string"==typeof o?(0,eC.xv)(`${o}`,r):o}if(t&&void 0!==e.cause&&(i.cause=(0,eD.bJ)(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let r=t[e];i[e]=(0,eD.bJ)(r)?r.toString():r}}return i}catch(e){eA.T&&y.vF.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n,i);if(a){let t={...e.contexts},n=(0,eN.S8)(a,r);return(0,eD.Qd)(n)&&((0,v.my)(n,"__sentry_skip_normalization__",!0),t[o]=n),{...e,contexts:t}}return e}(e,n,t,r,o)}}});var eP=r(95399);let eL=function(){return{bindClient(e){(0,g.o5)().setClient(e)},withScope:g.v4,getClient:()=>(0,g.KU)(),getScope:g.o5,getIsolationScope:g.rm,captureException:(e,t)=>(0,g.o5)().captureException(e,t),captureMessage:(e,t,r)=>(0,g.o5)().captureMessage(e,t,r),captureEvent:E.r,addBreadcrumb:ey.Z,setUser:E.gV,setTags:E.Wt,setTag:E.NA,setExtra:E.l7,setExtras:E.cx,setContext:E.o,getIntegration(e){let t=(0,g.KU)();return t&&t.getIntegrationByName(e.id)||null},startSession:E.J0,endSession:E.ky,captureSession(e){if(e)return(0,E.ky)();let t=(0,g.o5)(),r=(0,g.KU)(),n=t.getSession();r&&n&&r.captureSession(n)}}};var eF=r(79183),eU=r(55679),eB=r(32474),ez=r(39645);function e$(e,t){let r;return(0,ez.yH)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function ej(e,t){return r=>{let n=e(r),i=new Map;function o(t,n){let o=n?`${t}:${n}`:t,a=i.get(o);if(!a){let s=(0,eB.hH)(t);if(!s)return;let l=(0,eU.Z)(s,r.tunnel);a=n?(t=>{let r=e(t);return{...r,send:async e=>{let t=e$(e,["event","transaction","profile","replay_event"]);return t&&(t.release=n),r.send(e)}}})({...r,url:l}):e({...r,url:l}),i.set(o,a)}return[t,a]}return{send:async function(e){let r=t({envelope:e,getEvent:function(t){return e$(e,t&&t.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),i=r.length?r:[["",n]];return(await Promise.all(i.map(([t,r])=>r.send((0,ez.h4)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...i.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}let eH=new Map,eW=new Set;
1function eq(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let r of t.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;let t=function(e,t){if(C.O._sentryModuleMetadata)for(let t of Object.keys(C.O._sentryModuleMetadata)){let r=C.O._sentryModuleMetadata[t];if(!eW.has(t)){for(let n of(eW.add(t),e(t).reverse()))if(n.filename){eH.set(n.filename,r);break}}}return eH.get(t)}(e,r.filename);t&&(r.module_metadata=t)}})}catch(e){}}function eV(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}}let eY=(0,ev._C)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,ez.yH)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(eV(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||eq(e.getOptions().stackParser,t)})}}));function eJ(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}var eK=r(27512),eG=r(92936);let eX=(0,ev._C)(()=>{let e=1e3*(0,eG.zf)();return{name:"SessionTiming",processEvent(t){let r=1e3*(0,eG.zf)();return{...t,extra:{...t.extra,"session:start":e,"session:duration":r-e,"session:end":r}}}}});var eQ=r(97267),eZ=r(57942),e0=r(84577),e1=r(67244);let e2=(0,ev._C)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,ez.yH)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(eV(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||eq(e.getOptions().stackParser,t)})},processEvent(t){let r=function(e){let t=(0,e1.RV)(e);if(t)return t.filter(e=>!!e.filename).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(e3)).map(e=>e.slice(e3.length)):[])}(t);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),e3="_sentryBundlerPluginAppKey:";function e5(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let e6=(0,ev._C)((e={})=>{let t=void 0===e.limit?10:e.limit;return{name:"ZodErrors",processEvent:(r,n)=>(function(e,t=!1,r,n){var i;if(!r.exception||!r.exception.values||!n||!n.originalException||(i=n.originalException,!((0,eD.bJ)(i)&&"ZodError"===i.name&&Array.isArray(i.issues)))||0===n.originalException.issues.length)return r;try{let i=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(e5);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:function(e){let t=new Set;for(let r of e.issues){let e=r.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,eC.xv)(r.join(", "),100)}`}(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
2${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,r,n)}});var e4=r(94622),e7=r(60371),e8=r(1944),e9=r(2742),te=r(44974),tt=r(77505),tr=r(47343),tn=r(72333),ti=r(99537),to=r(62478),ta=r(9299),ts=r(75064);let tl={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},tc=e4.jf;async function tu(e,t){let r=tl[e],n=tc.Sentry=tc.Sentry||{};if(!r)throw Error(`Cannot lazy load integration: ${e}`);let i=n[e];if("function"==typeof i&&!("_isShim"in i))return i;let o=function(e){let t=(0,g.KU)(),r=t&&t.getOptions(),n=r&&r.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e_.M}/${e}.min.js`,n).toString()}(r),a=e4.jf.document.createElement("script");a.src=o,a.crossOrigin="anonymous",a.referrerPolicy="origin",t&&a.setAttribute("nonce",t);let s=new Promise((e,t)=>
2{a.addEventListener("load",()=>e()),a.addEventListener("error",t)}),l=e4.jf.document.currentScript,c=e4.jf.document.body||e4.jf.document.head||l&&l.parentElement;if(c)c.appendChild(a);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch(t){throw Error(`Error when loading integration: ${e}`)}let u=n[e];if("function"!=typeof u)throw Error(`Could not load integration: ${e}`);return u}var td=r(83589);let th=C.O,tp=new WeakMap,tf=(0,ev._C)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(tp.has((0,g.KU)()))for(let t of e)(0,g.v4)(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,n="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=t.body.message||n}(0,E.wd)(`${r}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){(0,td.vQ)()&&new th.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){tp.set(e,!0)}}});var tm=r(59963),tg=r(5371);function t_(e,t){var r,n,i,o;let a=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return r=e,!!(n=a)&&r.includes(n.host)||(i=e,!!(o=s)&&ty(i)===ty(o))}function ty(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var tv=r(70485);let tb=(0,ev._C)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,i,o;r=e,n=t,(0,td.m7)()&&(0,tg.ur)(e=>{if((0,g.KU)()!==r)return;let{response:t,args:i,error:o,virtualError:a}=e,[s,l]=i;t&&function(e,t,r,n,i){if(tk(e,r.status,r.url)){var o,a;let e,s,l,c,u=(o=t,!(a=n)&&o instanceof Request||o instanceof Request&&o.bodyUsed?o:new Request(o,a));tC()&&([e,l]=tw("Cookie",u),[s,c]=tw("Set-Cookie",r));let d=tE({url:u.url,method:u.method,status:r.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:c,error:i});(0,E.r)(d)}}(n,s,t,l,o||a)},!1),i=e,o=t,"XMLHttpRequest"in C.O&&(0,tm.Mn)(e=>{if((0,g.KU)()!==i)return;let{error:t,virtualError:r}=e,n=e.xhr,a=n[tm.Er];if(!a)return;let{method:s,request_headers:l}=a;try{!function(e,t,r,n,i){if(tk(e,t.status,t.responseURL)){let e,o,a;if(tC()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=tS(e))}catch(e){}try{a=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}(t)}catch(e){}e=n}let s=tE({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:o,error:i});(0,E.r)(s)}}(o,n,s,l,t||r)}catch(e){tv.T&&y.vF.warn("Error while extracting response event form XHR response",e)}})}}});function tw(e,t){let r,n=function(e){let t={};return e.forEach((e,r)=>{t[r]=e}),t}(t.headers);try{let t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=tS(t))}catch(e){}return[n,r]}function tS(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function tk(e,t,r){var n,i;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!t_(r,(0,g.KU)())}function tE(e){let t=(0,g.KU)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,o={message:i,exception:{values:[{type:"Error",value:i,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,ek.M6)(o,{type:"http.client",handled:!1}),o}function tC(){let e=(0,g.KU)();return!!e&&!!e.getOptions().sendDefaultPii}var tx=r(25706);let tM=C.O,tI=(0,ev._C)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=tM.document,n=tM.location&&(0,tx.f)(tM.location.href);if(!r||!n)return e;let i=e.exception&&e.exception.values;if(!i||!i.length)return e;let o=r.documentElement.innerHTML;if(!o)return e;let a=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];
2return i.forEach(e=>{let r=e.stacktrace;r&&r.frames&&(r.frames=r.frames.map(e=>{var r,i,o,s;return r=e,i=a,o=n,s=t,r.filename===o&&r.lineno&&i.length&&(0,ek.db)(i,r,s),r}))}),e})(e,t)}});var tT=r(33479),tR=r(9831),tA=r(74283),tD=r(43022),tN=r(62228),tO=r(20940);function tP(){return"undefined"!=typeof window&&(!(!(0,tN.Z)()&&"[object process]"===Object.prototype.toString.call(void 0!==tO?tO:0))||function(){let e=C.O.process;return!!e&&"renderer"===e.type}())}var tL=r(52390),tF=r(96908),tU=r(61248),tB=r(34393),tz=r(44220);let t$=C.O,tj="sentryReplaySession",tH="Unable to send Replay";function tW(e,t){return null!=e?e:t()}function tq(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}function tV(e){let t=tq([e,"optionalAccess",e=>e.host]);return tq([t,"optionalAccess",e=>e.shadowRoot])===e}function tY(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tJ(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,tK).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function tK(e){let t;if("styleSheet"in e)try{t=tJ(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],o=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(oT||(oT={}));class tG{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?tW(tq([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function tX({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function tQ({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function tZ(e){return e.toLowerCase()}function t0(e){return e.toUpperCase()}let t1="__rrweb_original__";function t2(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?tZ(t):null}function t3(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function t5(e,t){let r;try{r=new URL(e,tW(t,()=>window.location.href))}catch(e){return null}return tW(tq([r.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let t6={};function t4(e){let t=t6[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return t6[e]=n.bind(window)}function t7(...e){return t4("setTimeout")(...e)}
2function t8(...e){return t4("clearTimeout")(...e)}function t9(e){try{return e.contentDocument}catch(e){}}let re=1,rt=RegExp("[^a-z0-9-_:]");function rr(){return re++}let rn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ri=/^(?:[a-z+]+:)?\/\//i,ro=/^www\..*/i,ra=/^(data:)([^,]*),(.*)/i;function rs(e,t){return(e||"").replace(rn,(e,r,n,i,o,a)=>{let s=n||o||a,l=r||i||"";if(!s)return e;if(ri.test(s)||ro.test(s)||ra.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let c=t.split("/"),u=s.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let rl=/^[^ \t\n\r\u000c]+/,rc=/^[, \t\n\r\u000c]+/,ru=new WeakMap;function rd(e,t){return t&&""!==t.trim()?rh(e,t):t}function rh(e,t){let r=ru.get(e);if(r||(r=e.createElement("a"),ru.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function rp(e,t,r,n,i,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return rd(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return rd(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(rc),!(r>=t.length);){let o=n(rl);if(","===o.slice(-1))o=rd(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=rd(e,o);let a=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(a)")"===e&&(a=!1);else if(","===e){r+=1,i.push((o+n).trim());break}else"("===e&&(a=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return rs(n,rh(e));else if("object"===t&&"data"===r)return rd(e,n);return"function"==typeof o?o(r,n,i):n}function rf(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function rm(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:rm(e.parentNode,t,r,n+1)}function rg(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}function r_(e,t,r,n,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if((l=rm(a,rg(n,i)))<0)return!0;s=rm(a,rg(t,r),l>=0?l:1/0)}else{if((s=rm(a,rg(t,r)))<0)return!1;l=rm(a,rg(n,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function ry(e){return null==e?"":e.toLowerCase()}function rv(e,t){let r,{doc:o,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:S={},inlineImages:k=!1,recordCanvas:E=!1,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:M=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:A=!1}=t,{preserveWhiteSpace:D=!0}=t,N=function(e,t){let{doc:r,mirror:o,blockClass:a,blockSelector:s,unblockSelector:l,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:v={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:S,newlyAddedElement:k=!1}=t,E=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:oT.Document,childNodes:[],compatMode:e.compatMode};return{type:oT.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oT.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){let r,{doc:o,blockClass:a,blockSelector:s,unblockSelector:l,inlineStylesheet:c,maskInputOptions:u={},maskAttributeFn:d,maskInputFn:h,dataURLOptions:p={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskAllText:v,maskTextClass:b,unmaskTextClass:w,maskTextSelector:S,unmaskTextSelector:k}=t,E=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,s,l),C=function(e){if(e instanceof HTMLFormElement)return"form";let t=tZ(e.tagName);return rt.test(t)?"div":t}(e),x={},M=e.attributes.length;for(let t=0;t<M;t++){let r=e.attributes[t];r.name&&!rf(C,r.name,r.value)&&(x[r.name]=rp(o,C,tZ(r.name),r.value,e,d))}if("link"===C&&c){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=tJ(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=rs(r,t.href))}if("style"===C&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=tJ(e.sheet);t&&(x._cssText=rs(t,rh(o)))}if("input"===C||"textarea"===C||"select"===C||"option"===C){let t=t2(e),r=t3(e,t0(C),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=r_(e,b,S,w,k,tX({type:t,tagName:t0(C),maskInputOptions:u}));x.value=tQ({isMasked:n,element:e,value:r,maskInputFn:h})}n&&(x.checked=n)}if("option"===C&&(e.selected&&!u.select?x.selected=!0:delete x.selected),"canvas"===C&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;
2if(new Uint32Array((t1 in i?i[t1]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){let t=e.toDataURL(p.type,p.quality),r=o.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(p.type,p.quality)&&(x.rr_dataURL=t)}}if("img"===C&&f){n||(i=(n=o.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{n.width=e.naturalWidth,n.height=e.naturalHeight,i.drawImage(e,0,0),x.rr_dataURL=n.toDataURL(p.type,p.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?x.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===C||"video"===C)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),E){let{width:t,height:r}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==C||g(x.src)||(E||t9(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(C)&&(r=!0)}catch(e){}return{type:oT.Element,tagName:C,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:s,unblockSelector:l,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:S,newlyAddedElement:k,rootId:E,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||tq([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=tJ(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=rs(h,rh(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");let g=r_(e,n,o,i,a,r);return p||f||m||!h||!g||(h=s?s(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(l.textarea||g)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=tQ({isMasked:r_(e,n,o,i,a,tX({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:c})),{type:oT.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:r,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:oT.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:oT.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:o,mirror:a,blockClass:s,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,dataURLOptions:S,inlineImages:k,recordCanvas:E,keepIframeSrcFn:R,newlyAddedElement:A});if(!N)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===oT.Comment)return!0;if(e.type===oT.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===t5(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ry(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ry(e.attributes.name)||"icon"===ry(e.attributes.rel)||"apple-touch-icon"===ry(e.attributes.rel)||"shortcut icon"===ry(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ry(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ry(e.attributes.property).match(/^(og|twitter|fb):/)||ry(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ry(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ry(e.attributes.name)||"googlebot"===ry(e.attributes.name)||"bingbot"===ry(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ry(e.attributes.name)||"generator"===ry(e.attributes.name)||"framework"===ry(e.attributes.name)||"publisher"===ry(e.attributes.name)||"progid"===ry(e.attributes.name)||ry(e.attributes.property).match(/^article:/)||ry(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ry(e.attributes.name)||"yandex-verification"===ry(e.attributes.name)||"csrf-token"===ry(e.attributes.name)||"p:domain_verify"===ry(e.attributes.name)||"verify-v1"===ry(e.attributes.name)||"verification"===ry(e.attributes.name)||"shopify-checkout-api-token"===ry(e.attributes.name)))return!0}}return!1}(N,w)&&(D||N.type!==oT.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?rr():-2;let O=Object.assign(N,{id:r});if(a.add(e,O),-2===r)return null;C&&C(e);let P=!m;if(O.type===oT.Element){P=P&&!O.needBlock,delete O.needBlock;let t=e.shadowRoot;t&&tY(t)&&(O.isShadowHost=!0)}if((O.type===oT.Document||O.type===oT.Element)&&P){w.headWhitespace&&O.type===oT.Element&&"head"===O.tagName&&(D=!1);let t={doc:o,mirror:a,blockClass:s,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:S,inlineImages:k,recordCanvas:E,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R};for(let r of Array.from(e.childNodes)){let e=rv(r,t);e&&O.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=rv(r,t);n&&(tY(e.shadowRoot)&&(n.isShadow=!0),O.childNodes.push(n))}}return e.parentNode&&tV(e.parentNode)&&tY(e.parentNode)&&(O.isShadow=!0),O.type===oT.Element&&"iframe"===O.tagName&&function(e,t,r){let n,i=e.contentWindow;if(!i)return;let o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=t7(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{t8(n),o=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return t7(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=t9(e);
2if(t&&x){let r=rv(t,{doc:t,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:S,inlineImages:k,recordCanvas:E,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});r&&x(e,r)}},M),O.type===oT.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===t5(O.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let o=t7(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{t8(o),i=!0,t()})}(e,()=>{if(I){let t=rv(e,{doc:o,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:S,inlineImages:k,recordCanvas:E,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:M,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});t&&I(e,t)}},T),O}function rb(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}function rw(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let rS="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",rk={map:{},getId:()=>(console.error(rS),-1),getNode:()=>(console.error(rS),null),removeNodeFromMap(){console.error(rS)},has:()=>(console.error(rS),!1),reset(){console.error(rS)}};function rE(e,t,r={}){let n=null,i=0;return function(...o){let a=Date.now();i||!1!==r.leading||(i=a);let s=t-(a-i),l=this;s<=0||s>t?(n&&(function(...e){r$("clearTimeout")(...e)}(n),n=null),i=a,e.apply(l,o)):n||!1===r.trailing||(n=rj(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},s))}}function rC(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rk=new Proxy(rk,{get:(e,t,r)=>("map"===t&&console.error(rS),Reflect.get(e,t,r))}));let rx=Date.now;function rM(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:rb([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||rb([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||rb([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:rb([t,"optionalAccess",e=>e.documentElement,"access",e=>
2e.scrollTop])||rb([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||rb([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function rI(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rR(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function rA(e,t,r,n,i){if(!e)return!1;let o=rR(e);if(!o)return!1;let a=rg(t,r);if(!i){let e=n&&o.matches(n);return a(o)&&!e}let s=rm(o,a),l=-1;return!(s<0)&&(n&&(l=rm(o,rg(null,n))),s>-1&&l<0||s<l)}function rD(e,t){return -2===t.getId(e)}function rN(e){return!!e.changedTouches}function rO(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function rP(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function rL(e){return!!rb([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(rx=()=>new Date().getTime());class rF{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,$.S)(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}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 rU(e){let t=null;return rb([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function rB(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=rU(r);)r=t;return r}(e);return t.contains(r)}(e))}let rz={};function r$(e){let t=rz[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return rz[e]=n.bind(window)}function rj(...e){return r$("setTimeout")(...e)}var rH=(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))(rH||{}),rW=(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))(rW||{}),rq=(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))(rq||{}),rV=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rV||{});function rY(e){try{return e.contentDocument}catch(e){}}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(oR||(oR={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(oA||(oA={}));class rJ{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=function(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
2this.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--)}}let rK=(e,t)=>`${e}@${t}`;class rG{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new rJ,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!rB(i))return;let o=tV(i.parentNode)?this.mirror.getId(rU(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);let s=rv(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{rO(e,this.mirror)&&!rA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),rP(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),rL(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{rA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!rQ(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)rZ(this.droppedSet,e)||rQ(this.removes,e,this.mirror)?rZ(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.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(a))},this.processMutation=e=>{if(!rD(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;rA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:r_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,rR(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=t2(t),i=t.tagName;n=t3(t,i,r);let o=tX({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=tQ({isMasked:r_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(rA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
2if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(rY(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!rf(t.tagName,r)&&(i.attributes[r]=rp(this.doc,tZ(t.tagName),tZ(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),o=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||o!==r.style.getPropertyPriority(n)?""===o?i.styleDiff[n]=e:i.styleDiff[n]=[e,o]:i._unchangedStyles[n]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(rA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=tV(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||rD(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(rX(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(tV(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[rK(r,n)]?rX(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(tV(e.target)&&tY(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(rD(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[rK(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!rA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),rL(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].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 rX(e,t){e.delete(t),t.childNodes.forEach(t=>rX(e,t))}function rQ(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function rZ(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let r0=e=>o?(...t)=>{try{return e(...t)}catch(e){if(o&&!0===o(e))return()=>{};throw e}}:e;function r1(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}let r2=[];function r3(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function r5(e,t){let r=new rG;r2.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=r1([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(n=window[i]);let o=new n(r0(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function r6({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return rw("scroll",r0(rE(r0(a=>{let s=r3(a);if(!s||rA(s,n,i,o,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=rM(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}let r4=["INPUT","TEXTAREA","SELECT"],r7=new WeakMap;function r8(e){var t=[];if(nr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||nr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||nr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||nr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function r9(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function ne({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r1([r,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):r1([r,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=r1([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(r1([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return r1([o,"access",e=>
2e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let r=r1([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),r0(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function nt(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=r5(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=rE(r0(t=>{let r=Date.now()-i;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],i=null}),a),c=r0(rE(r0(e=>{let t=r3(e),{clientX:r,clientY:o}=rN(e)?e.changedTouches[0]:e;i||(i=rx()),s.push({x:r,y:o,id:n.getId(t),timeOffset:rx()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?rW.Drag:e instanceof MouseEvent?rW.MouseMove:rW.TouchMove)}),o,{trailing:!1})),u=[rw("mousemove",c,r),rw("touchmove",c,r),rw("drag",c,r)];return r0(()=>{u.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],c=null;return Object.keys(rq).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(a=>{let s=tZ(a),u=t=>{let s=r3(t);if(rA(s,n,i,o,!0))return;let l=null,u=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=rV.Mouse;break;case"touch":l=rV.Touch;break;case"pen":l=rV.Pen}l===rV.Touch?rq[a]===rq.MouseDown?u="TouchStart":rq[a]===rq.MouseUp&&(u="TouchEnd"):rV.Pen}else rN(t)&&(l=rV.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===rV.Touch||u.startsWith("Mouse")&&l===rV.Mouse)&&(l=null)):rq[a]===rq.Click&&(l=c,c=null);let d=rN(t)?t.changedTouches[0]:t;if(!d)return;let h=r.getId(s),{clientX:p,clientY:f}=d;r0(e)({type:rq[u],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(rq[a]){case rq.MouseDown:case rq.MouseUp:s=s.replace("mouse","pointer");break;case rq.TouchStart:case rq.TouchEnd:return}l.push(rw(s,u,t))}),r0(()=>{l.forEach(e=>e())})}(e),a=r6(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return rw("resize",r0(rE(r0(()=>{let t=rI(),i=rT();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=r3(e),u=e.isTrusted,g=r&&t0(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>r4.indexOf(g)||rA(r,n,i,o,!0))return;let y=r;if(y.classList.contains(a)||s&&y.matches(s))return;let v=t2(r),b=t3(y,g,v),w=!1,S=tX({maskInputOptions:l,tagName:g,type:v}),k=r_(r,h,f,p,m,S);("radio"===v||"checkbox"===v)&&(w=r.checked),b=tQ({isMasked:k,element:r,value:b,maskInputFn:c}),_(r,d?{text:b,isChecked:w,userTriggered:u}:{text:b,isChecked:w});let E=r.name;"radio"===v&&E&&w&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==r){let t=tQ({isMasked:k,element:e,value:t3(e,g,v),maskInputFn:c});_(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function _(t,n){let i=r7.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){r7.set(t,n);let i=r.getId(t);r0(e)({...n,id:i})}}let y=("last"===u.input?["change"]:["input","change"]).map(e=>rw(e,r0(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),w=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...w.map(e=>(function e(t,r,n,i,o=window){let a=o.Object.getOwnPropertyDescriptor(t,r);return o.Object.defineProperty(t,r,i?n:{set(e){rj(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,r,a||{},!0)})(e[0],e[1],{set(){r0(g)({target:this,isTrusted:!1})}},!1,v))),r0(()=>
2{y.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){let s=r0(a=>rE(r0(o=>{let s=r3(o);if(!s||rA(s,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),o.media||500)),l=[rw("play",s(0),a),rw("pause",s(1),a),rw("seeked",s(2),a),rw("volumechange",s(3),a),rw("ratechange",s(4),a)];return r0(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:r0((n,i,o)=>{let[a,s]=o,{id:l,styleId:c}=r9(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),n.apply(i,o)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:r0((n,i,o)=>{let[a]=o,{id:s,styleId:l}=r9(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:r0((n,i,o)=>{let[a]=o,{id:s,styleId:l}=r9(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:r0((n,i,o)=>{let[a]=o,{id:s,styleId:l}=r9(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(i,o)})}));let l={};nn("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(nn("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),nn("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),nn("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:r0((n,i,o)=>{let[a,s]=o,{id:l,styleId:c}=r9(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...r8(i),s||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:r0((n,i,o)=>{let[a]=o,{id:s,styleId:l}=r9(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...r8(i),a]}]}),n.apply(i,o)})})}),r0(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=ne(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:r0((i,a,s)=>{let[l,c,u]=s;if(r.has(l))return o.apply(a,[l,c,u]);let{id:d,styleId:h}=r9(r1([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:c,priority:u},index:r8(a.parentRule)}),i.apply(a,s)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:r0((i,o,s)=>{let[l]=s;if(r.has(l))return a.apply(o,[l]);let{id:c,styleId:u}=r9(r1([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:r8(o.parentRule)}),i.apply(o,s)})}),r0(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let a=rC(t.fonts,"add",function(t){return function(r){return rj(r0(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(a),r0(()=>
2{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,l=r0(()=>{let e=t.getSelection();if(!e||s&&r1([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);rA(a,n,i,o,!0)||rA(c,n,i,o,!0)||l.push({start:r.getId(a),startOffset:s,end:r.getId(c),endOffset:u})}a({ranges:l})});return l(),rw("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?rC(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return r0(()=>{r2.forEach(e=>e.reset()),r1([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),o(),a(),s(),l(),c(),u(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function nr(e){return void 0!==window[e]}function nn(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ni{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function no(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}class na{constructor(){this.crossOriginIframeMirror=new ni(rr),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ns{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ni(rr),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ni(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}),no([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);let r=rY(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case rH.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:rH.IncrementalSnapshot,data:{source:rW.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case rH.Meta:case rH.Load:case rH.DomContentLoaded:break;case rH.Plugin:return t;case rH.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case rH.IncrementalSnapshot:switch(t.data.source){case rW.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
2),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case rW.Drag:case rW.TouchMove:case rW.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case rW.ViewportResize:return!1;case rW.MediaInteraction:case rW.MouseInteraction:case rW.Scroll:case rW.CanvasMutation:case rW.Input:return this.replaceIds(t.data,e,["id"]),t;case rW.StyleSheetRule:case rW.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rW.Font:return t;case rW.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case rW.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),no([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===oT.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class nl{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class nc{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(!tY(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=r5({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(r6({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),rj(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ne({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=rY(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(rC(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&rB(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class nu{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class nd{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new rF,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(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:tK(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class nh{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){r$("requestAnimationFrame")(...e)}
2(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(0,J.z)([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let np=new tG;function nf(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:l="rr-block",blockSelector:c=null,unblockSelector:u=null,ignoreClass:d="rr-ignore",ignoreSelector:h=null,maskAllText:p=!1,maskTextClass:f="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:_=null,inlineStylesheet:y=!0,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:S,maskInputFn:k,maskTextFn:E,maxCanvasSize:C=null,packFn:x,sampling:M={},dataURLOptions:I={},mousemoveWait:T,recordDOM:R=!0,recordCanvas:A=!1,recordCrossOriginIframes:D=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:O=!1,collectFonts:P=!1,inlineImages:L=!1,plugins:F,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:z,onMutation:$,getCanvasManager:j}=e;o=z;let H=!D||window.parent===window,W=!1;if(!H)try{window.parent.document&&(W=!1)}catch(e){W=!0}if(H&&!r)throw Error("emit function is required");if(!H&&!W)return()=>{};void 0!==T&&void 0===M.mousemove&&(M.mousemove=T),np.reset();let q=!0===v?{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!==b?b:{},V=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let Y=0,K=e=>{for(let t of F||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!W&&(e=x(e)),e};a=(e,o)=>{if(e.timestamp=rx(),(0,J.z)([r2,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==rH.FullSnapshot&&(e.type!==rH.IncrementalSnapshot||e.data.source!==rW.Mutation)&&r2.forEach(e=>e.unfreeze()),H)(0,J.z)([r,"optionalCall",t=>t(K(e),o)]);else if(W){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===rH.FullSnapshot)t=e,Y=0;else if(e.type===rH.IncrementalSnapshot){if(e.data.source===rW.Mutation&&e.data.isAttachIframe)return;Y++;let r=i&&Y>=i,o=n&&t&&e.timestamp-t.timestamp>n;(r||o)&&ei(!0)}};let G=e=>{a({type:rH.IncrementalSnapshot,data:{source:rW.Mutation,...e}})},X=e=>a({type:rH.IncrementalSnapshot,data:{source:rW.Scroll,...e}}),Q=e=>a({type:rH.IncrementalSnapshot,data:{source:rW.CanvasMutation,...e}}),Z=new nd({mutationCb:G,adoptedStyleSheetCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new na:new ns({mirror:np,mutationCb:G,stylesheetManager:Z,recordCrossOriginIframes:D,wrappedEmit:a});for(let e of F||[])e.getMirror&&e.getMirror({nodeMirror:np,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let et=new nh,er=function(e,t){try{return e?e(t):new nu}catch(e){return console.warn("Unable to initialize CanvasManager"),new nu}}(j,{mirror:np,win:window,mutationCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.CanvasMutation,...e}}),recordCanvas:A,blockClass:l,blockSelector:c,unblockSelector:u,maxCanvasSize:C,sampling:M.canvas,dataURLOptions:I,errorHandler:z}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nl:new nc({mutationCb:G,scrollCb:X,bypassOptions:{onMutation:$,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:y,maskInputOptions:q,dataURLOptions:I,maskAttributeFn:S,maskTextFn:E,maskInputFn:k,recordCanvas:A,inlineImages:L,sampling:M,slimDOMOptions:V,iframeManager:ee,stylesheetManager:Z,canvasManager:er,keepIframeSrcFn:U,processedNodeManager:et},mirror:np}),ei=(e=!1)=>
2{if(!R)return;a({type:rH.Meta,data:{href:window.location.href,width:rT(),height:rI()}},e),Z.reset(),en.init(),r2.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new tG,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:x=()=>!1}=t||{};return rv(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:np,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:y,maskAllInputs:q,maskAttributeFn:S,maskInputFn:k,maskTextFn:E,slimDOM:V,dataURLOptions:I,recordCanvas:A,inlineImages:L,onSerialize:e=>{rO(e,np)&&ee.addIframe(e),rP(e,np)&&Z.trackLinkElement(e),rL(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},keepIframeSrcFn:U});if(!t)return console.warn("Failed to snapshot the document");a({type:rH.FullSnapshot,data:{node:t,initialOffset:rM(window)}}),r2.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,np.getId(document))};s=ei;try{let e=[],t=e=>r0(nt)({onMutation:$,mutationCb:G,mousemoveCb:(e,t)=>a({type:rH.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.ViewportResize,...e}}),inputCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.Input,...e}}),mediaInteractionCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.MediaInteraction,...e}}),styleSheetRuleCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.StyleSheetRule,...e}}),styleDeclarationCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>a({type:rH.IncrementalSnapshot,data:{source:rW.Font,...e}}),selectionCb:e=>{a({type:rH.IncrementalSnapshot,data:{source:rW.Selection,...e}})},customElementCb:e=>{a({type:rH.IncrementalSnapshot,data:{source:rW.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:h,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,maskInputOptions:q,inlineStylesheet:y,sampling:M,recordDOM:R,recordCanvas:A,inlineImages:L,userTriggeredOnInput:O,collectFonts:P,doc:e,maskAttributeFn:S,maskInputFn:k,maskTextFn:E,keepIframeSrcFn:U,blockSelector:c,unblockSelector:u,slimDOMOptions:V,dataURLOptions:I,mirror:np,iframeManager:ee,stylesheetManager:Z,shadowDomManager:en,processedNodeManager:et,canvasManager:er,ignoreCSSAttributes:B,plugins:(0,J.z)([F,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>a({type:rH.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});ee.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(rw("DOMContentLoaded",()=>{a({type:rH.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(rw("load",()=>{a({type:rH.Load,data:{}}),"load"===N&&r()}
2,window))),()=>{e.forEach(e=>e()),et.destroy(),s=void 0,o=void 0}}catch(e){console.warn(e)}}function nm(e){return e>0x2540be3ff?e:1e3*e}function ng(e){return e>0x2540be3ff?e/1e3:e}function n_(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:rH.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eN.S8)(t,10,1e3)}}),"console"===t.category)))}function ny(e){return e.closest("button,a")||e}function nv(e){let t=nb(e);return t&&t instanceof Element?ny(t):t}function nb(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}nf.mirror=np,nf.takeFullSnapshot=function(e){if(!s)throw Error("please take full snapshot after start recording");s(e)};let nw=new Set([rW.Mutation,rW.StyleSheetRule,rW.StyleDeclaration,rW.AdoptedStyleSheet,rW.CanvasMutation,rW.Selection,rW.MediaInteraction]);class nS{constructor(e,t,r=n_){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=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=nE()},l||(l=[],(0,v.GS)(t$,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch(e){}return e.apply(t$,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!nk.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let o={timestamp:ng(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===o.node&&1>Math.abs(e.timestamp-o.timestamp))||(this._clicks.push(o),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ng(e)}registerScroll(e=Date.now()){this._lastScroll=ng(e)}registerClick(e){let t=ny(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=nE();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:t$.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:t$.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,tF.wg)(()=>this._checkClicks(),1e3)}}let nk=["A","BUTTON","INPUT"];function nE(){return Date.now()/1e3}function nC(e){return{timestamp:Date.now()/1e3,type:"default",...e}}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(oD||(oD={}));let nx=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function nM(e,t){let r=nf.mirror.getId(e),n=r&&nf.mirror.getNode(r),i=n&&nf.mirror.getMeta(n),o=i&&i.type===oD.Element?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
2e.type===oD.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(nx.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(o.attributes)}}:{}}}let nI={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:nA(o),end:nA(i),name:n,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,o=nA(i);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:nA(p),end:nA(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function nT(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function nR(e){let t=nI[e.entryType];return t?t(e):null}function nA(e){return((eG.k3||t$.performance.timeOrigin)+e)/1e3}function nD(e){let t=e.entries[e.entries.length-1];return nL(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function nN(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=nf.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return nL(e,"cumulative-layout-shift",r,t)}function nO(e){let t=e.entries[e.entries.length-1];return nL(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function nP(e){let t=e.entries[e.entries.length-1];return nL(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function nL(e,t,r,n){let i=e.value,o=e.rating,a=nA(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>nf.mirror.getId(e)):void 0,attributions:n}}}let nF="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nU=["info","warn","error","log"],nB="[Replay] ";function nz(e,t="info"){(0,ey.Z)({category:"console",data:{logger:"replay"},level:t,message:`${nB}${e}`},{level:t})}let n$=function(){let e=!1,t=!1,r={exception:()=>void 0,infoTick:()=>void 0,setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return nF?(nU.forEach(e=>{r[e]=(...r)=>{y.vF[e](nB,...r),t&&nz(r.join(""),(0,eE.t)(e))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),y.vF.error(nB,n),e?(0,E.Cp)(n):t&&nz(n,"error")},r.infoTick=(...e)=>{y.vF.info(nB,...e),t&&setTimeout(()=>nz(e[0]),0)}):nU.forEach(e=>{r[e]=()=>void 0}),r}();
2class nj extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class nH{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new nj;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?nm(e):null}}class nW{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){nF&&n$.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",o),!t.success){nF&&n$.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class nq{constructor(e){this._worker=new nW(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=nm(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new nj):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{nF&&n$.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class nV{constructor(e){this._fallback=new nH,this._compression=new nq(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)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){nF&&n$.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){nF&&n$.exception(e,"Failed to add events when switching buffers.")}}}function nY(){try{return"sessionStorage"in t$&&!!t$.sessionStorage}catch(e){return!1}}function nJ(e){return void 0!==e&&Math.random()<e}function nK(e){let t=Date.now(),r=e.id||(0,ek.eJ)(),n=e.started||t,i=e.lastActivity||t,o=e.segmentId||0;return{id:r,started:n,lastActivity:i,segmentId:o,sampled:e.sampled,previousSessionId:e.previousSessionId}}function nG(e){if(nY())try{t$.sessionStorage.setItem(tj,JSON.stringify(e))}catch(e){}}function nX({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=nK({sampled:nJ(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&nG(i),i}function nQ(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function nZ(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return nQ(e.started,t,n)||nQ(e.lastActivity,r,n)}function n0(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!nZ(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function n1({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!nY())return null;try{let e=t$.sessionStorage.getItem(tj);if(!e)return null;let t=JSON.parse(e);return nF&&n$.infoTick("Loading existing session"),nK(t)}catch(e){return null}}();return i?n0(i,{sessionIdleExpire:e,maxReplayDuration:t})?(nF&&n$.infoTick("Session in sessionStorage is expired, creating new one..."),nX(n,{previousSessionId:i.id})):i:(nF&&n$.infoTick("Creating new session"),nX(n,{previousSessionId:r}))}function n2(e,t,r){return!!n5(e,t)&&(n3(e,t,r),!0)}async function n3(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let o=e.getOptions(),a=function(e,t){try{if("function"==typeof t&&e.type===rH.Custom)return t(e)}catch(e){return nF&&n$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,o.beforeAddRecordingEvent);if(!a)return;return await n.addEvent(a)}
2catch(o){let t=o&&o instanceof nj;if(t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let r=(0,g.KU)();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function n5(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=nm(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(nF&&n$.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function n6(e){return"transaction"===e.type}function n4(e){return"feedback"===e.type}function n7(e){return!!e.category}function n8(){let e=(0,g.o5)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,O.Bk)();if(t){let e=(0,e0.k1)(t);delete e.replay_id}}function n9(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{let a=e.throttledAddEvent({type:rH.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function ie(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!nF||!e.getOptions()._experiments.traceInternals)&&t_(r,(0,g.KU)())||e.addUpdate(()=>(n9(e,[t]),!0)))}function it(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=iu(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function ir(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ii(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iu(e)];if(!e)return[void 0]}catch(t){return nF&&n$.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return nF&&n$.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function io(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function ia(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,v.Ce)({method:o,statusCode:a,request:s,response:l})}}function is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function il(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r);return n.body=i,o&&o.length>0&&(n._meta={warnings:o}),n}function ic(e,t){return Object.entries(e).reduce((r,[n,i])=>{let o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=i),r},{})}function iu(e){return new URLSearchParams(e).toString()}function id(e,t){let r=function(e,t=t$.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(t$.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,eC.Xr)(r,t)}async function ih(e,t,r){try{let n=await ip(e,t,r),i=ia("resource.fetch",n);ie(r.replay,i)}catch(e){nF&&n$.exception(e,"Failed to capture fetch breadcrumb")}}async function ip(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=id(a,r.networkDetailAllowUrls)&&!id(a,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,o;let a=r?(i=r,o=t,1===i.length&&"string"!=typeof i[0]?iv(i[0],o):2===i.length?iv(i[1],o):{}):{};if(!e)return il(a,n,void 0);let[s,l]=ii(i_(r)),c=il(a,n,s);return l?io(c,l):c}(r,t.input,c):is(c),response:await im(d,r,t.response,u)}}async function im(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return is(i);let o=n?iy(n.headers,r):{};if(!n||!t&&void 0!==i)return il(o,i,void 0);let[a,s]=await ig(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let o=e&&e.length&&void 0===r?it(e):r;if(!n)return is(o);if(t)return il(i,o,e);return il(i,o,void 0)}catch(e){return nF&&n$.exception(e,"Failed to serialize response body"),il(i,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});
2return s?io(l,s):l}async function ig(e){let t=function(e){try{return e.clone()}catch(e){nF&&n$.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=(0,tF.wg)(()=>t(Error("Timeout while trying to read response body")),500);ib(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return nF&&n$.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return nF&&n$.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function i_(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function iy(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function iv(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?iy(r,t):Array.isArray(r)?{}:ic(r,t):{}}async function ib(e){return await e.text()}async function iw(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!s||!id(l,r.networkDetailAllowUrls)||id(l,r.networkDetailDenyUrls)){let e=is(d);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:e,response:is(h)}}let p=s[tm.Er],f=p?ic(p.request_headers,r.networkRequestHeaders):{},m=ic(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}(s),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?ii(a):[void 0],[y,v]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return nF&&n$.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return nF&&n$.info("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return nF&&n$.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],b=il(f,d,g),w=il(m,h,y);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:_?io(b,_):b,response:v?io(w,v):w}}(e,t,r),i=ia("resource.xhr",n);ie(r.replay,i)}catch(e){nF&&n$.exception(e,"Failed to capture xhr breadcrumb")}}async function iS(e){try{return Promise.all(n9(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(t$.performance.memory)]))}catch(e){return[]}}let ik=C.O.navigator;async function iE({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let o=await (0,tR.mG)(e.getOptions(),n,i,t,e,(0,g.rm)());if(!o)return null;o.platform=o.platform||"javascript";let a=e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},o}async function iC({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){var a;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
3`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=n,p=(0,g.KU)(),f=(0,g.o5)(),m=p&&p.getTransport(),_=p&&p.getDsn();if(!p||!m||!_||!o.sampled)return(0,tA.XW)({});let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:o.sampled},v=await iE({scope:f,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay",y),nF&&n$.info("An event processor returned `null`, will not send event."),(0,tA.XW)({});delete v.sdkProcessingMetadata;let b=(a=p.getOptions().tunnel,(0,ez.h4)((0,ez.n2)(v,(0,ez.Cj)(v),a,_),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(b)}catch(t){let e=Error(tH);try{e.cause=t}catch(e){}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new ix(s.statusCode);let w=(0,tD.wq)({},s);if((0,tD.Jz)(w,"replay"))throw new iM(w);return s}
3class ix extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class iM extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function iI(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await iC(e),!0}catch(r){if(r instanceof ix||r instanceof iM)throw r;if((0,E.o)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${tH} - max retries exceeded`);try{e.cause=r}catch(e){}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,tF.wg)(async()=>{try{await iI(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let iT="__THROTTLED";class iR{constructor({options:e,recordingOptions:t}){iR.prototype.__init.call(this),iR.prototype.__init2.call(this),iR.prototype.__init3.call(this),iR.prototype.__init4.call(this),iR.prototype.__init5.call(this),iR.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},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=function(e,t,r){let n,i,o,a=r&&r.maxWait?Math.max(r.maxWait,t):0;function s(){return l(),n=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=(0,tF.wg)(s,t),a&&void 0===o&&(o=(0,tF.wg)(s,a)),n}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():n},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3),o=r-5;if(n.forEach((e,t)=>{t<o&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":iT}i=!1;let a=n.get(r)||0;return n.set(r,a+1),e(...t)}}((e,t)=>(function(e,t,r){return n5(e,t)?n3(e,t,r):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new nS(this,i)),nF){let t=e._experiments;n$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){nF&&n$.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){nF&&n$.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",nF&&n$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){nF&&n$.info("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){nF&&n$.info("Buffering is in progress, call `flush()` to save the replay");return}nF&&n$.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=n1({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled){nF&&n$.info("Buffering is in progress, call `flush()` to save the replay");return}nF&&n$.infoTick("Starting replay in buffer mode");let e=n1({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{var e;let t,r=this._canvas;this._stopRecording=nf({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){nF&&n$.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(nw.has(n)&&e.registerMutation(t.timestamp),n===rW.Scroll&&e.registerScroll(t.timestamp),t.data.source===rW.MouseInteraction){let{type:r,id:n}=t.data,i=nf.mirror.getNode(n);i instanceof HTMLElement&&r===rq.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,r),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&i&&e.setInitialState(),!n2(e,r,i))return!0;
3if(!i)return!1;let n=e.session;if(t=e,i&&t.session&&0===t.session.segmentId&&n2(t,function(e){let t=e.getOptions();return{type:rH.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&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(t),!1),"buffer"===e.recordingMode&&n&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(nF&&n$.info(`Updating session start time to earliest event in buffer to ${new Date(t)}`),n.started=t,e.getOptions().stickySession&&nG(n))}return!!n&&!!n.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(ik&&ik.userAgent||"")||/Macintosh/i.test(ik&&ik.userAgent||"")&&ik&&ik.maxTouchPoints&&ik.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.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;try{nF&&n$.info(`Stopping Replay${t?` triggered by ${t}`:""}`),n8(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(nY())try{t$.sessionStorage.removeItem(tj)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),nF&&n$.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),nF&&n$.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();nF&&n$.info("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&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"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){return this._lastActivity&&nQ(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${t$.location.pathname}${t$.location.hash}${t$.location.search}`,t=`${t$.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===iT){let e=nC({category:"replay.throttled"});this.addUpdate(()=>!n2(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,O.Bk)(),t=e&&(0,O.zU)(e),r=(t&&(0,O.et)(t).data||{})[Q.i_];if(t&&r&&["route","custom"].includes(r))return(0,O.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,457 bytes, line 3
3},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==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=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,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[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,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[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-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(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
3++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|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});']);return URL.createObjectURL(e)}return""}();if(!t)return;nF&&n$.info(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new nV(r)}catch(e){nF&&n$.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return nF&&n$.info("Using simple buffer"),new nH}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=n1({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!n0(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{t$.document.addEventListener("visibilitychange",this._handleVisibilityChange),t$.addEventListener("blur",this._handleWindowBlur),t$.addEventListener("focus",this._handleWindowFocus),t$.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t=(0,g.KU)();(0,tB.i)(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?nv(e.event):nb(e.event),t=(0,tT.Hd)(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(e);return nC({category:`ui.${e.name}`,...nM(t,r)}
3)}(t);if(!i)return;let o="click"===t.name,a=o?t.event:void 0;o&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(r=e.clickDetector,n=nv(t.event),r.handleClick(i,n)),n_(e,i)}),(0,tz._)(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(n9(e,[r]),!1)))});let r=(0,g.KU)();r&&r.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!n7(t))return;let n=(r=t,!n7(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return nC(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,eN.S8)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return nC({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):nC(r));n&&n_(e,n)})(e,t));let n=(0,g.KU)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,o,a;if(n=t,"xhr"===n.category&&(i=r)&&i.xhr&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=it(n),o=r.getResponseHeader("content-length")?ir(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return it(r)}catch(e){return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),iw(t,r,e)),o=t,"fetch"===o.category&&(a=r)&&a.response){let{input:n,response:i}=r,o=it(n?i_(n):void 0),a=i?ir(i.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==a&&(t.data.response_body_size=a),ih(t,r,e)}}catch(e){nF&&n$.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch(e){}let i=Object.assign((t,r)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||n6(t)||n4(t)?e.checkAndHandleExpiredSession()?n4(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:rH.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&r.originalException&&r.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?(nF&&n$.log("Ignoring error from rrweb internals",t),null):(("buffer"===e.recordingMode&&t.message!==tH&&t.exception&&!t.type&&nJ(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(n8(),t):t,{id:"Replay"});(0,E.SA)(i),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&n_(e,nC({category:"replay.hydrate-error",data:{url:(0,tT.$N)()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!n6(t))return;let n=r&&r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(n6(t))return void function(e,t){let r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t);!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&(0,tF.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,r)=>{let n=e.getSessionId();r&&r.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];
3return["navigation","paint","resource"].forEach(e=>{n.push((0,tU.wv)(e,r))}),n.push((0,tU.Pt)(nT(nD,e)),(0,tU.a9)(nT(nN,e)),(0,tU.T5)(nT(nO,e)),(0,tU.hT)(nT(nP,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{t$.document.removeEventListener("visibilitychange",this._handleVisibilityChange),t$.removeEventListener("blur",this._handleWindowBlur),t$.removeEventListener("focus",this._handleWindowFocus),t$.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===t$.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=nC({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=nC({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=r||i||o,c=1===a.length;if(!l&&c)return null;let u=(0,tT.Hd)(s,{maxStringLength:200})||"<unknown>",d=nM(s,u);return nC({category:"ui.keyDown",message:u,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:a}})}(t);r&&n_(e,r)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(nZ(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){nF&&n$.info("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:rH.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(nR).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(n9(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
3_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){nF&&n$.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents){if((await iS(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await iI({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,g.KU)();e&&e.recordDroppedEvent(t instanceof iM?"ratelimit_backoff":"send_error","replay")}}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){nF&&n$.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){nF&&n$.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&nF&&n$.info("Flushing initial segment without checkout.");let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&nG(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,r=this._options.mutationLimit,n=this._options.mutationBreadcrumbLimit,i=r&&t>r;if(t>n||i){let e=nC({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function iA(e,t){return[...e,...t].join(",")}let iD='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',iN=["content-length","content-type","accept"],iO=!1,iP=e=>new iL(e);class iL{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:w=["title","placeholder"],unmask:S=[],block:k=[],unblock:E=[],ignore:C=[],maskFn:x,beforeAddRecordingEvent:M,beforeErrorSampling:I,onError:T}={}){this.name=iL.id;let R=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:iA(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:iA(t,[]),blockSelector:iA(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:iA(n,[]),ignoreSelector:iA(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:S,block:k,unblock:E,ignore:C});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:w,maskAllText:l,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,
3networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:iF(y),networkResponseHeaders:iF(v),beforeAddRecordingEvent:M,beforeErrorSampling:I,onError:T,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${iD}`:iD),this._isInitialized&&tP())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return iO}set _isInitialized(e){iO=e}afterAllSetup(e){tP()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,v.Ce)(e)},i=(0,tL.i)(r.replaysSessionSampleRate),o=(0,tL.i)(r.replaysOnErrorSampleRate);return null==i&&null==o&&(0,y.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=o&&(n.errorSampleRate=o),n}(this._initialOptions,e);this._replay=new iR({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function iF(e){return[...iN,...e.map(e=>e.toLowerCase())]}function iU(){let e=(0,g.KU)();return e&&e.getIntegrationByName("Replay")}function iB(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:iB(e.parentNode,t,r,n+1)}function iz(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}iL.__initStatic(),!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(oN||(oN={}));let i$="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ij={map:{},getId:()=>(console.error(i$),-1),getNode:()=>(console.error(i$),null),removeNodeFromMap(){console.error(i$)},has:()=>(console.error(i$),!1),reset(){console.error(i$)}};function iH(e,t,r,n,i=window){let o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){iK(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>iH(e,t,o||{},!0)}function iW(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}function iq(e,t,r,n,i){if(!e)return!1;let o=e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null;if(!o)return!1;let a=iB(o,iz(t,r)),s=-1;return!(a<0)&&(n&&(s=iB(o,iz(null,n))),a>-1&&s<0||a<s)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ij=new Proxy(ij,{get:(e,t,r)=>("map"===t&&console.error(i$),Reflect.get(e,t,r))})),/[1-9][0-9]{12}/.test(Date.now().toString());let iV={};function iY(e){let t=iV[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return iV[e]=n.bind(window)}function iJ(...e){return iY("requestAnimationFrame")(...e)}
3function iK(...e){return iY("setTimeout")(...e)}var iG=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(iG||{});let iX=e=>c?(...t)=>{try{return e(...t)}catch(e){if(c&&!0===c(e))return()=>{};throw e}}:e;for(var iQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iZ="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i0=0;i0<iQ.length;i0++)iZ[iQ.charCodeAt(i0)]=i0;var i1=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=iQ[r[t]>>2],i+=iQ[(3&r[t])<<4|r[t+1]>>4],i+=iQ[(15&r[t+1])<<2|r[t+2]>>6],i+=iQ[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let i2=new Map,i3=(e,t,r)=>{if(!e||!(i6(e,t)||"object"==typeof e))return;let n=function(e,t){let r=i2.get(e);return r||(r=new Map,i2.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return -1===i&&(i=n.length,n.push(e)),i},i5=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:i1(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(i6(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:i3(t,r,n)};return t})(e,t,r)),i6=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function i4(e,t,r,n,i){let o=[];try{let a=iW(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!iq(this,t,r,n,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){let e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}});o.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function i7(e,t,r,n,i,o,a,s){let l=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let c=iW(e,a,function(e){return function(...l){let c=e.apply(this,l);if(i3(c,s,this),"tagName"in this.canvas&&!iq(this.canvas,n,i,o,!0)){let e=i5(l,s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return c}});l.push(c)}catch(i){let n=iH(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(n)}return l}class i8{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,(0,J.z)([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:r,blockClass:n,blockSelector:i,unblockSelector:o,maxCanvasSize:a,recordCanvas:s,dataURLOptions:l,errorHandler:u}=e;if(this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&(c=u),(s&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),e.enableManualSnapshot)return;iX(()=>{s&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,o,a,{dataURLOptions:l})})()}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;
3if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}iX(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,r,n,i),o&&"number"==typeof t){let t=i4(e,r,n,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){let e=new Worker(function(){let e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:i,width:o,height:a}=t;this.mutationCb({id:r,type:iG["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,o,a]}]})},e}initCanvasFPSObserver(e,t,r,n,i,o){let a=this.takeSnapshot(!1,e,t,r,n,i,o.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(e,t,r,n){let i=i4(e,t,r,n,!1),o=function(e,t,r,n,i){let o=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let s=iW(t.CanvasRenderingContext2D.prototype,a,function(o){return function(...s){return iq(this.canvas,r,n,i,!0)||iK(()=>{let r=i5(s,t,this);e(this.canvas,{type:iG["2D"],property:a,args:r})},0),o.apply(this,s)}});o.push(s)}catch(n){let r=iH(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:iG["2D"],property:a,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,i,o){let a=[];return a.push(...i7(t.WebGLRenderingContext.prototype,iG.WebGL,e,r,n,i,o,t)),void 0!==t.WebGL2RenderingContext&&a.push(...i7(t.WebGL2RenderingContext.prototype,iG.WebGL2,e,r,n,i,o,t)),()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{i(),o(),a()})}snapshot(e){let{options:t}=this,r=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(e,t,r,n,i,o,a,s){let l=1e3/t,c=0,u=e=>{if(e)return[e];let t=[],o=e=>{e.querySelectorAll("canvas").forEach(e=>{iq(e,r,n,i)||t.push(e)})};for(let e of this.windows){let t=e.deref();t&&o(t.document)}for(let e of this.shadowDoms){let t=e.deref();t&&o(t)}return t},d=t=>{if(this.windows.length){if(c&&t-c<l)return void iJ(d);
3c=t,u(s).forEach(t=>{if(!this.mirror.hasNode(t))return;let r=this.mirror.getId(t);if(!this.snapshotInProgressMap.get(r)&&t.width&&t.height){if(this.snapshotInProgressMap.set(r,!0),!e&&["webgl","webgl2"].includes(t.__context)){let e=t.getContext(t.__context);!1===(0,J.z)([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{(0,J.z)([this,"access",e=>e.worker,"optionalAccess",e=>e.postMessage,"call",n=>n({id:r,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:o},[e])])}).catch(e=>{iX(()=>{throw e})()})}}),e||iJ(d)}};return iJ(d)}startPendingCanvasMutationFlusher(){iJ(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,iJ(e)};iJ(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),iJ(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}let i9={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},oe=(0,ev._C)((e={})=>{let t,[r,n]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,n?Math.min(n,1280):1280]},o=new Promise(e=>t=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:n}=i;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let i=new i8({...e,enableManualSnapshot:r,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return t(i),i},...i9[e||"medium"]||i9.medium}},async snapshot(e){(await o).snapshot(e)}}}),ot=C.O,or=ot.document,on=ot.navigator,oi="Report a Bug",oo="Cancel",oa="Send Bug Report",os="Confirm",ol="Report a Bug",oc="[email protected]",ou="Email",od="What's the bug? What did you expect?",oh="Description",op="Your Name",of="Name",om="Thank you for your report!",og="(required)",o_="Add a screenshot",oy="Remove screenshot",ov=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let r=(0,g.KU)();if(!r)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,g.o5)().setTags(e.tags);let n=eM({source:"api",url:(0,tT.$N)(),...e},t);return new Promise((e,t)=>{let i=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),5e3),o=r.on("afterSendEvent",(r,a)=>{if(r.event_id===n)return(clearTimeout(i),o(),a&&"number"==typeof a.statusCode&&a.statusCode>=200&&a.statusCode<300)?e(n):a&&"number"==typeof a.statusCode&&0===a.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):a&&"number"==typeof a.statusCode&&403===a.statusCode?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},ob="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ow(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:r=>{t.onSubmitSuccess&&t.onSubmitSuccess(r),e.onSubmitSuccess&&e.onSubmitSuccess(r)},onSubmitError:r=>{t.onSubmitError&&t.onSubmitError(r),e.onSubmitError&&e.onSubmitError(r)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function oS(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let ok="rgba(88, 74, 192, 1)",oE={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackgroun
3d:ok,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},oC={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ok,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function ox(e){return`
4  --foreground: ${e.foreground};
5  --background: ${e.background};
6  --accent-foreground: ${e.accentForeground};
7  --accent-background: ${e.accentBackground};
8  --success-color: ${e.successColor};
9  --error-color: ${e.errorColor};
10  --border: ${e.border};
11  --box-shadow: ${e.boxShadow};
12  --outline: ${e.outline};
13  --interactive-filter: ${e.interactiveFilter};
14  `}let oM=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:s=!1,showEmail:l=!0,showName:c=!0,enableScreenshot:u=!0,useSentryUser:d={email:"email",name:"username"},tags:h,styleNonce:p,scriptNonce:f,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:v=o_,cancelButtonLabel:b=oo,confirmButtonLabel:w=os,emailLabel:S=ou,emailPlaceholder:k=oc,formTitle:E=ol,isRequiredLabel:C=og,messageLabel:x=oh,messagePlaceholder:M=od,nameLabel:I=of,namePlaceholder:T=op,removeScreenshotButtonLabel:R=oy,submitButtonLabel:A=oa,successMessageText:D=om,triggerLabel:N=oi,triggerAriaLabel:O="",onFormOpen:P,onFormClose:L,onSubmitSuccess:F,onSubmitError:U,onFormSubmitted:B}={})=>{let z={id:n,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:s,showEmail:l,showName:c,enableScreenshot:u,useSentryUser:d,tags:h,styleNonce:p,scriptNonce:f,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:N,triggerAriaLabel:O,cancelButtonLabel:b,submitButtonLabel:A,confirmButtonLabel:w,formTitle:E,emailLabel:S,emailPlaceholder:k,messageLabel:x,messagePlaceholder:M,nameLabel:I,namePlaceholder:T,successMessageText:D,isRequiredLabel:C,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:R,onFormClose:L,onFormOpen:P,onSubmitError:U,onSubmitSuccess:F,onFormSubmitted:B},$=null,j=[],H=e=>{if(!$){let t=or.createElement("div");t.id=String(e.id),or.body.appendChild(t),($=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let i=or.createElement("style");return i.textContent=`
15:host {
16  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
17  --font-size: 14px;
18  --z-index: 100000;
19
20  --page-margin: 16px;
21  --inset: auto 0 0 auto;
22  --actor-inset: var(--inset);
23
24  font-family: var(--font-family);
25  font-size: var(--font-size);
26
27  ${"system"!==e?"color-scheme: only light;":""}
28
29  ${ox("dark"===e?{...oC,...t}:{...oE,...r})}
30}
31
32${"system"===e?`
33@media (prefers-color-scheme: dark) {
34  :host {
35    ${ox({...oC,...t})}
36  }
37}`:""}
38}
39`,n&&i.setAttribute("nonce",n),i}(e))}return $},W=async n=>{let i,o,a=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(on.userAgent)||/Macintosh/i.test(on.userAgent)&&on.maxTouchPoints&&on.maxTouchPoints>1)&&!!isSecureContext;try{i=(t?t():await e("feedbackModalIntegration",f))(),(0,ev.Q8)(i)}catch(e){throw ob&&y.vF.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let t=a?r?r():await e("feedbackScreenshotIntegration",f):void 0;t&&(o=t(),(0,ev.Q8)(o))}catch(e){ob&&y.vF.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s=i.createDialog({options:{...n,onFormClose:()=>{s&&s.close(),n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.close(),n.onFormSubmitted&&n.onFormSubmitted()}},screenshotIntegration:o,sendFeedback:ov,shadow:H(n)});return s},q=(e,t={})=>{let r=ow(z,t),n="string"==typeof e?or.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw ob&&y.vF.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let i=null,o=async()=>{i||(i=await W({...r,onFormSubmitted:()=>{i&&i.removeFromDom(),r.onFormSubmitted&&r.onFormSubmitted()}})),i.appendToDom(),i.open()};n.addEventListener("click",o);let a=()=>{j=j.filter(e=>e!==a),i&&i.removeFromDom(),i=null,n.removeEventListener("click",o)};return j.push(a),a},V=(e={})=>
39{let t=ow(z,e),r=H(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let i=or.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||oi,i.appendChild(function(){let e=e=>ot.document.createElementNS("http://www.w3.org/2000/svg",e),t=oS(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),r=oS(e("g"),{clipPath:"url(#clip0_57_80)"}),n=oS(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(n);let i=e("defs"),o=oS(e("clipPath"),{id:"clip0_57_80"}),a=oS(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}()),e){let t=or.createElement("span");t.appendChild(or.createTextNode(e)),i.appendChild(t)}let o=function(e){let t=or.createElement("style");return t.textContent=`
40.widget__actor {
41  position: fixed;
42  z-index: var(--z-index);
43  margin: var(--page-margin);
44  inset: var(--actor-inset);
45
46  display: flex;
47  align-items: center;
48  gap: 8px;
49  padding: 16px;
50
51  font-family: inherit;
52  font-size: var(--font-size);
53  font-weight: 600;
54  line-height: 1.14em;
55  text-decoration: none;
56
57  background: var(--actor-background, var(--background));
58  border-radius: var(--actor-border-radius, 1.7em/50%);
59  border: var(--actor-border, var(--border));
60  box-shadow: var(--actor-box-shadow, var(--box-shadow));
61  color: var(--actor-color, var(--foreground));
62  fill: var(--actor-color, var(--foreground));
63  cursor: pointer;
64  opacity: 1;
65  transition: transform 0.2s ease-in-out;
66  transform: translate(0, 0) scale(1);
67}
68.widget__actor[aria-hidden="true"] {
69  opacity: 0;
70  pointer-events: none;
71  visibility: hidden;
72  transform: translate(0, 16px) scale(0.98);
73}
74
75.widget__actor:hover {
76  background: var(--actor-hover-background, var(--background));
77  filter: var(--interactive-filter);
78}
79
80.widget__actor svg {
81  width: 1.14em;
82  height: 1.14em;
83}
84
85@media (max-width: 600px) {
86  .widget__actor span {
87    display: none;
88  }
89}
90`,e&&t.setAttribute("nonce",e),t}(n);return{el:i,appendToDom(){r.appendChild(o),r.appendChild(i)},removeFromDom(){r.removeChild(i),r.removeChild(o)},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:p});return q(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){tP()&&z.autoInject&&("loading"===or.readyState?or.addEventListener("DOMContentLoaded",()=>V().appendToDom()):V().appendToDom())},attachTo:q,createWidget(e={}){let t=V(ow(z,e));return t.appendToDom(),t},createForm:async(e={})=>W(ow(z,e)),remove(){$&&($.parentElement&&$.parentElement.remove(),$=null),j.forEach(e=>e()),j=[]}}};function oI(){let e=(0,g.KU)();return e&&e.getIntegrationByName("Feedback")}var oT,oR,oA,oD,oN,oO,oP,oL,oF,oU,oB,oz,o$={},oj=[],oH=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,oW=Array.isArray;function oq(e,t){for(var r in t)e[r]=t[r];return e}function oV(e){var t=e.parentNode;t&&t.removeChild(e)}function oY(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?oO.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return oJ(e,a,n,i,null)}function oJ(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++oL:i,__i:-1,__u:0};return null==i&&null!=oP.vnode&&oP.vnode(o),o}function oK(e){return e.children}function oG(e,t){this.props=e,this.context=t}function oX(e,t){if(null==t)return e.__?oX(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?oX(e):null}function oQ(e){(!e.__d&&(e.__d=!0)&&oF.push(e)&&!oZ.__r++||oU!==oP.debounceRendering)&&((oU=oP.debounceRendering)||oB)(oZ)}function oZ(){var e,t,r,n=[],i=[];for(oF.sort(oz);e=oF.shift();)e.__d&&(r=oF.length,t=function(e,t,r){var n,i=e.__v,o=i.__e,a=e.__P;if(a)return(n=oq({},i)).__v=i.__v+1,oP.vnode&&oP.vnode(n),o6(a,n,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,t,null==o?oX(i):o,!!(32&i.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=o&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,i)||t,0===r||oF.length>r?(o4(n,t,i),i.length=n.length=0,t=void 0,oF.sort(oz)):t&&oP.__c&&oP.__c(t,oj));t&&o4(n,t,i),oZ.__r=0}function o0(e,t,r,n,i,o,a,s,l,c,u){var d,h,p,f,m,g=n&&n.__k||oj,_=t.length;for(r.__d=l,function(e,t,r){var n,i,o,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?oJ(null,i,null,null,i):oW(i)?oJ(oK,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?oJ(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&o===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return -1}(i,r,a=n+d,u),i.__i=s,o=null,-1!==s&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==n+d&&(i.__u|=65536))):(o=r[n])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=oX(o)),o8(o,o,!1),r[n]=null,u--);if(u)for(n=0;n<c;n++)null!=(o=r[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=oX(o)),o8(o,o))}(r,t,g),l=r.__d,d=0;d<_;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?o$:g[p.__i]||o$,p.__i=d,o6(e,p,h,i,o,a,s,l,c,u),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&o7(h.ref,null,p),u.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?l=function e(t,r,n){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,r=e(i[o],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;
vendor: 4,808 bytes, line 90
90while(null!=r&&8===r.nodeType);return r}(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=l,r.__e=m}function o1(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||oH.test(t)?r:r+"px"}function o2(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||o1(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||o1(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?o5:o3,o)):e.removeEventListener(t,o?o5:o3,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function o3(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(oP.event?oP.event(e):e)}}function o5(e){if(this.l)return this.l[e.type+!0](oP.event?oP.event(e):e)}function o6(e,t,r,n,i,o,a,s,l,c){var u,d,h,p,f,m,g,_,y,v,b,w,S,k,E,C=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=oP.__b)&&u(t);e:if("function"==typeof C)try{if(_=t.props,y=(u=C.contextType)&&n[u.__c],v=u?y?y.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in C&&C.prototype.render?t.__c=d=new C(_,v):(t.__c=d=new oG(_,v),d.constructor=C,d.render=o9),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=oq({},d.__s)),oq(d.__s,C.getDerivedStateFromProps(_,d.__s))),p=d.props,f=d.state,d.__v=t,h)null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==C.getDerivedStateFromProps&&_!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,f,m)})}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,w=oP.__r,S=0,"prototype"in C&&C.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(n=oq(oq({},n),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,f)),o0(e,oW(E=null!=u&&u.type===oK&&null==u.key?u.props.children:u)?E:[E],t,r,n,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),oP.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,a,s,l){var c,u,d,h,p,f,m,g=r.props,_=t.props,y=t.type;if("svg"===y&&(i=!0),null!=o){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,o[c]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),o=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(o=o&&oO.call(e.childNodes),g=r.props||o$,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=p:"key"===c||c in _||o2(e,c,null,p,i));for(c in _)p=_[c],"children"==c?h=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?f=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||o2(e,c,p,g[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),o0(e,oW(h)?h:[h],t,r,n,i&&"foreignObject"!==y,o,a,o?o[0]:r.__k&&oX(r,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&oV(o[c]);s||(c="value",void 0===f||f===e[c]&&("progress"!==y||f)&&("option"!==y||f===g[c])||o2(e,c,f,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&o2(e,c,m,g[c],!1))}return e}(r.__e,t,r,n,i,o,a,l,c);(u=oP.diffed)&&u(t)}
vendor: 1,399 bytes, line 90
90function o4(e,t,r){for(var n=0;n<r.length;n++)o7(r[n],r[++n],r[++n]);oP.__c&&oP.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){oP.__e(e,t.__v)}})}function o7(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){oP.__e(e,r)}}function o8(e,t,r){var n,i;if(oP.unmount&&oP.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||o7(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){oP.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&o8(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||oV(e.__e),e.__=e.__e=e.__d=void 0}function o9(e,t,r){return this.constructor(e,r)}oO=oj.slice,oP={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},oL=0,oG.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=oq({},this.state),"function"==typeof e&&(e=e(oq({},r),this.props)),e&&oq(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),oQ(this))},oG.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oQ(this))},oG.prototype.render=oK,oF=[],oB="function"==typeof Promise?Promise.prototype.then.bind(Prom
90ise.resolve()):setTimeout,oz=function(e,t){return e.__v.__b-t.__v.__b},oZ.__r=0;var ae,at,ar,an,ai=0,ao=[],aa=[],as=oP,al=as.__b,ac=as.__r,au=as.diffed,ad=as.__c,ah=as.unmount,ap=as.__;function af(e,t){as.__h&&as.__h(at,e,ai||t),ai=0;var r=at.__H||(at.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:aa}),r.__[e]}function am(e){return ai=1,ag(aC,e)}function ag(e,t,r){var n=af(ae++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):aC(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=at,!at.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};at.u=!0;var o=at.shouldComponentUpdate,a=at.componentWillUpdate;at.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},at.shouldComponentUpdate=i}return n.__N||n.__}function a_(e,t){var r=af(ae++,4);!as.__s&&aE(r.__H,t)&&(r.__=e,r.i=t,at.__h.push(r))}function ay(e,t){var r=af(ae++,7);return aE(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function av(e,t){return ai=8,ay(function(){return e},t)}function ab(){for(var e;e=ao.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(aS),e.__H.__h.forEach(ak),e.__H.__h=[]}catch(t){e.__H.__h=[],as.__e(t,e.__v)}}as.__b=function(e){at=null,al&&al(e)},as.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ap&&ap(e,t)},as.__r=function(e){ac&&ac(e),ae=0;var t=(at=e.__c).__H;t&&(ar===at?(t.__h=[],at.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=aa,e.__N=e.i=void 0})):(t.__h.forEach(aS),t.__h.forEach(ak),t.__h=[],ae=0)),ar=at},as.diffed=function(e){au&&au(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ao.push(t)&&an===as.requestAnimationFrame||((an=as.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),aw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);aw&&(t=requestAnimationFrame(r))})(ab)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==aa&&(e.__=e.__V),e.i=void 0,e.__V=aa})),ar=at=null},as.__c=function(e,t){t.some(function(e){try{e.__h.forEach(aS),e.__h=e.__h.filter(function(e){return!e.__||ak(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],as.__e(r,e.__v)}}),ad&&ad(e,t)},as.unmount=function(e){ah&&ah(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{aS(e)}catch(e){t=e}}),r.__H=void 0,t&&as.__e(t,r.__v))};var aw="function"==typeof requestAnimationFrame;function aS(e){var t=at,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),at=t}function ak(e){var t=at;e.__c=e.__(),at=t}function aE(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function aC(e,t){return"function"==typeof t?t(e):t}let ax={__proto__:null,useCallback:av,useContext:function(e){var t=at.context[e.__c],r=af(ae++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(at)),t.props.value):e.__},useDebugValue:function(e,t){as.useDebugValue&&as.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=af(ae++,3);!as.__s&&aE(r.__H,t)&&(r.__=e,r.i=t,at.__H.__h.push(r))},useErrorBoundary:function(e){var t=af(ae++,10),r=am();return t.__=e,at.componentDidCatch||(at.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=af(ae++,11);if(!e.__){for(var t=at.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){ai=6,a_(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:a_,useMemo:ay,useReducer:ag,useRef:function(e){return ai=5,ay(function(){return{current:e}},[])},useState:am};function aM({options:e}){let t=ay(()=>({__html:function(){let e=e=>or.createElementNS("http://www.w3.org/2000/svg",e),t=oS(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),r=oS(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(r),t}().outerHTML}),[]);return oY("h2",{class:"dialog__header"},oY("span",{class:"dialog__title"},e.formTitle),e.showBranding?oY("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function aI(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function aT({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail
90:s,showName:l,screenshotInput:c}){let{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:h,cancelButtonLabel:p,emailLabel:f,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,messagePlaceholder:b,nameLabel:w,namePlaceholder:S,submitButtonLabel:k,isRequiredLabel:E}=e,[C,x]=am(null),[M,I]=am(!1),T=c&&c.input,[R,A]=am(null),D=av(e=>{A(e),I(!1)},[]),N=av(e=>{let t=function(e,t){let r=[];return t.isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r}(e,{emailLabel:f,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:w});return t.length>0?x(`Please enter in the following required fields: ${t.join(", ")}`):x(null),0===t.length},[f,g,_,v,w]);return oY("form",{class:"form",onSubmit:av(async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (c&&M?c.value():void 0),n={name:aI(t,"name"),email:aI(t,"email"),message:aI(t,"message"),attachments:r?[r]:void 0};if(!N(n))return;try{await i({name:n.name,email:n.email,message:n.message,source:"widget",tags:u},{attachments:n.attachments}),o(n)}catch(e){ob&&y.vF.error(e),x(e),a(e)}}catch(e){}},[c&&M,o,a])},T&&M?oY(T,{onError:D}):null,oY("div",{class:"form__right","data-sentry-feedback":!0},oY("div",{class:"form__top"},C?oY("div",{class:"form__error-container"}
90,C):null,l?oY("label",{for:"name",class:"form__label"},oY(aR,{label:w,isRequiredLabel:E,isRequired:_}),oY("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:S,required:_,type:"text"})):oY("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?oY("label",{for:"email",class:"form__label"},oY(aR,{label:f,isRequiredLabel:E,isRequired:g}),oY("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):oY("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),oY("label",{for:"message",class:"form__label"},oY(aR,{label:v,isRequiredLabel:E,isRequired:!0}),oY("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),T?oY("label",{for:"screenshot",class:"form__label"},oY("button",{class:"btn btn--default",type:"button",onClick:()=>{A(null),I(e=>!e)}},M?h:d),R?oY("div",{class:"form__error-container"},R.message):null):null),oY("div",{class:"btn-group"},oY("button",{class:"btn btn--primary",type:"submit"},k),oY("button",{class:"btn btn--default",type:"button",onClick:n},p))))}function aR({label:e,isRequired:t,isRequiredLabel:r}){return oY("span",{class:"form__label__text"},e,t&&oY("span",{class:"form__label__text--required"},r))}function aA({open:e,onFormSubmitted:t,...r}){let n=r.options,i=ay(()=>({__html:function(){let e=e=>ot.document.createElementNS("http://www.w3.org/2000/svg",e),t=oS(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=oS(e("g"),{clipPath:"url(#clip0_57_156)"}),n=oS(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=oS(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(i,n);let o=e("defs"),a=oS(e("clipPath"),{id:"clip0_57_156"}),s=oS(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t}().outerHTML}),[]),[o,a]=am(null),s=av(()=>{o&&(clearTimeout(o),a(null)),t()},[o]),l=av(e=>{r.onSubmitSuccess(e),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return oY(oK,null,o?oY("div",{class:"success__position",onClick:s},oY("div",{class:"success__content"},n.successMessageText,oY("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):oY("dialog",{class:"dialog",onClick:n.onFormClose,open:e},oY("div",{class:"dialog__position"},oY("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},oY(aM,{options:n}),oY(aT,{...r,onSubmitSuccess:l})))))}let aD=
vendor: 1,489 bytes, lines 90-160
90`
91.dialog {
92  position: fixed;
93  z-index: var(--z-index);
94  margin: 0;
95  inset: 0;
96
97  display: flex;
98  align-items: center;
99  justify-content: center;
100  padding: 0;
101  height: 100vh;
102  width: 100vw;
103
104  color: var(--dialog-color, var(--foreground));
105  fill: var(--dialog-color, var(--foreground));
106  line-height: 1.75em;
107
108  background-color: rgba(0, 0, 0, 0.05);
109  border: none;
110  inset: 0;
111  opacity: 1;
112  transition: opacity 0.2s ease-in-out;
113}
114
115.dialog__position {
116  position: fixed;
117  z-index: var(--z-index);
118  inset: var(--dialog-inset);
119  padding: var(--page-margin);
120  display: flex;
121  max-height: calc(100vh - (2 * var(--page-margin)));
122}
123@media (max-width: 600px) {
124  .dialog__position {
125    inset: var(--page-margin);
126    padding: 0;
127  }
128}
129
130.dialog__position:has(.editor) {
131  inset: var(--page-margin);
132  padding: 0;
133}
134
135.dialog:not([open]) {
136  opacity: 0;
137  pointer-events: none;
138  visibility: hidden;
139}
140.dialog:not([open]) .dialog__content {
141  transform: translate(0, -16px) scale(0.98);
142}
143
144.dialog__content {
145  display: flex;
146  flex-direction: column;
147  gap: 16px;
148  padding: var(--dialog-padding, 24px);
149  max-width: 100%;
150  width: 100%;
151  max-height: 100%;
152  overflow: auto;
153
154  background: var(--dialog-background, var(--background));
155  border-radius: var(--dialog-border-radius, 20px);
156  border: var(--dialog-border, var(--border));
157  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
158  transform: translate(0, 0) scale(1);
159  transition: transform 0.2s ease-in-out;
160}
161
162`,aN=`
163.dialog__header {
164  display: flex;
165  gap: 4px;
166  justify-content: space-between;
167  font-weight: var(--dialog-header-weight, 600);
168  margin: 0;
169}
170.dialog__title {
171  align-self: center;
172  width: var(--form-width, 272px);
173}
174
175@media (max-width: 600px) {
176  .dialog__title {
177    width: auto;
178  }
179}
180
181.dialog__position:has(.editor) .dialog__title {
182  width: auto;
183}
184
185
186.brand-link {
187  display: inline-flex;
188}
189.brand-link:focus-visible {
190  outline: var(--outline);
191}
192`,aO=`
193.form {
194  display: flex;
195  overflow: auto;
196  flex-direction: row;
197  gap: 16px;
198  flex: 1 0;
199}
200
201.form__right {
202  flex: 0 0 auto;
203  display: flex;
204  overflow: auto;
205  flex-direction: column;
206  justify-content: space-between;
207  gap: 20px;
208  width: var(--form-width, 100%);
209}
210
211.dialog__position:has(.editor) .form__right {
212  width: var(--form-width, 272px);
213}
214
215.form__top {
216  display: flex;
217  flex-direction: column;
218  gap: 8px;
219}
220
221.form__error-container {
222  color: var(--error-color);
223  fill: var(--error-color);
224}
225
226.form__label {
227  display: flex;
228  flex-direction: column;
229  gap: 4px;
230  margin: 0px;
231}
232
233.form__label__text {
234  display: flex;
235  gap: 4px;
236  align-items: center;
237}
238
239.form__label__text--required {
240  font-size: 0.85em;
241}
242
243.form__input {
244  font-family: inherit;
245  line-height: inherit;
246  background: transparent;
247  box-sizing: border-box;
248  border: var(--input-border, var(--border));
249  border-radius: var(--input-border-radius, 6px);
250  color: var(--input-color, inherit);
251  fill: var(--input-color, inherit);
252  font-size: var(--input-font-size, inherit);
253  font-weight: var(--input-font-weight, 500);
254  padding: 6px 12px;
255}
256
257.form__input::placeholder {
258  opacity: 0.65;
259  color: var(--input-placeholder-color, inherit);
260  filter: var(--interactive-filter);
261}
262
263.form__input:focus-visible {
264  outline: var(--input-focus-outline, var(--outline));
265}
266
267.form__input--textarea {
268  font-family: inherit;
269  resize: vertical;
270}
271
272.error {
273  color: var(--error-color);
274  fill: var(--error-color);
275}
276`,aP=`
277.btn-group {
278  display: grid;
279  gap: 8px;
280}
281
282.btn {
283  line-height: inherit;
284  border: var(--button-border, var(--border));
285  border-radius: var(--button-border-radius, 6px);
286  cursor: pointer;
287  font-family: inherit;
288  font-size: var(--button-font-size, inherit);
289  font-weight: var(--button-font-weight, 600);
290  padding: var(--button-padding, 6px 16px);
291}
292.btn[disabled] {
293  opacity: 0.6;
294  pointer-events: none;
295}
296
297.btn--primary {
298  color: var(--button-primary-color, var(--accent-foreground));
299  fill: var(--button-primary-color, var(--accent-foreground));
300  background: var(--button-primary-background, var(--accent-background));
301  border: var(--button-primary-border, var(--border));
302  border-radius: var(--button-primary-border-radius, 6px);
303  font-weight: var(--button-primary-font-weight, 500);
304}
305.btn--primary:hover {
306  color: var(--button-primary-hover-color, var(--accent-foreground));
307  fill: var(--button-primary-hover-color, var(--accent-foreground));
308  background: var(--button-primary-hover-background, var(--accent-background));
309  filter: var(--interactive-filter);
310}
311.btn--primary:focus-visible {
312  background: var(--button-primary-hover-background, var(--accent-background));
313  filter: var(--interactive-filter);
314  outline: var(--button-primary-focus-outline, var(--outline));
315}
316
317.btn--default {
318  color: var(--button-color, var(--foreground));
319  fill: var(--button-color, var(--foreground));
320  background: var(--button-background, var(--background));
321  border: var(--button-border, var(--border));
322  border-radius: var(--button-border-radius, 6px);
323  font-weight: var(--button-font-weight, 500);
324}
325.btn--default:hover {
326  color: var(--button-color, var(--foreground));
327  fill: var(--button-color, var(--foreground));
328  background: var(--button-hover-background, var(--background));
329  filter: var(--interactive-filter);
330}
331.btn--default:focus-visible {
332  background: var(--button-hover-background, var(--background));
333  filter: var(--interactive-filter);
334  outline: var(--button-focus-outline, var(--outline));
335}
336`,aL=`
337.success__position {
338  position: fixed;
339  inset: var(--dialog-inset);
340  padding: var(--page-margin);
341  z-index: var(--z-index);
342}
343.success__content {
344  background: var(--success-background, var(--background));
345  border: var(--success-border, var(--border));
346  border-radius: var(--success-border-radius, 1.7em/50%);
347  box-shadow: var(--success-box-shadow, var(--box-shadow));
348  font-weight: var(--success-font-weight, 600);
349  color: var(--success-color);
350  fill: var(--success-color);
351  padding: 12px 24px;
352  line-height: 1.75em;
353
354  display: grid;
355  align-items: center;
356  grid-auto-flow: column;
357  gap: 6px;
358  cursor: default;
359}
360
361.success__icon {
362  display: flex;
363}
364`,aF=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:n})=>{let i=e.useSentryUser,o=function(){let e=(0,g.o5)().getUser(),t=(0,g.rm)().getUser(),r=(0,g.m6)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:r}(),a=or.createElement("div"),s=function(e){let t=or.createElement("style");return t.textContent=`
365:host {
366  --dialog-inset: var(--inset);
367}
368
369${aD}
370${aN}
371${aO}
372${aP}
373${aL}
374`,e&&t.setAttribute("nonce",e),t}(e.styleNonce),l="",c={get el(){return a},appendToDom(){n.contains(s)||n.contains(a)||(n.appendChild(s),n.appendChild(a))},removeFromDom(){n.removeChild(a),n.removeChild(s),or.body.style.overflow=l},open(){d(!0),e.onFormOpen&&e.onFormOpen(),l=or.body.style.overflow,or.body.style.overflow="hidden"},close(){d(!1),or.body.style.overflow=l}},u=t&&t.createInput({h:oY,hooks:ax,dialog:c,options:e}),d=t=>{!function(e,t,r){var n,i,o;oP.__&&oP.__(e,t),n=t.__k,i=[],o=[],o6(t,e=t.__k=oY(oK,null,[e]),n||o$,o$,void 0!==t.ownerSVGElement,r?[r]:n?null:t.firstChild?oO.call(t.childNodes):null,i,r?r:n?n.__e:t.firstChild,!1,o),e.__d=void 0,o4(i,e,o)}(oY(aA,{options:e,screenshotInput:u,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:i&&o&&o[i.name]||"",defaultEmail:i&&o&&o[i.email]||"",onFormClose:()=>{d(!1),e.onFormClose&&e.onFormClose()},onSubmit:r,onSubmitSuccess:t=>{d(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t}),a)};return c}}),aU=ot.devicePixelRatio,aB=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),az=e=>{let t=e.clientHeight,r=e.clientWidth,n=e.width/e.height,i=t*n,o=t;i>r&&(i=r,o=r/n);let a=(r-i)/2,s=(t-o)/2;return{startX:a,startY:s,endX:i+a,endY:o+s}},a$=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let i=or.createElement("canvas");return{input:function({h:e,hooks:t,imageBuffer:r,dialog:n,options:i}){let o=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:i}){e.useEffect(()=>{(async()=>{t();let e=await on.mediaDevices.getDisplayMedia({video:{width:ot.innerWidth*ot.devicePixelRatio,height:ot.innerHeight*ot.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=or.createElement("video");await new Promise((t,n)=>{i.srcObject=e,i.onloadedmetadata=()=>{r(i),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(n)}),n()})().catch(i)},[])}}({hooks:t});return function({onError:a}){let s=t.useMemo(()=>({__html:function(e){let t=or.createElement("style"),r="#1A141F",n="#302735";return t.textContent=`
375.editor {
376  padding: 10px;
377  padding-top: 65px;
378  padding-bottom: 65px;
379  flex-grow: 1;
380
381  background-color: ${r};
382  background-image: repeating-linear-gradient(
383      -145deg,
384      transparent,
385      transparent 8px,
386      ${r} 8px,
387      ${r} 11px
388    ),
389    repeating-linear-gradient(
390      -45deg,
391      transparent,
392      transparent 15px,
393      ${n} 15px,
394      ${n} 16px
395    );
396}
397
398.editor__canvas-container {
399  width: 100%;
400  height: 100%;
401  position: relative;
402  display: flex;
403  align-items: center;
404  justify-content: center;
405}
406
407.editor__canvas-container canvas {
408  object-fit: contain;
409  position: relative;
410}
411
412.editor__crop-btn-group {
413  padding: 8px;
414  gap: 8px;
415  border-radius: var(--menu-border-radius, 6px);
416  background: var(--button-primary-background, var(--background));
417  width: 175px;
418  position: absolute;
419}
420
421.editor__crop-corner {
422  width: 30px;
423  height: 30px;
424  position: absolute;
425  background: none;
426  border: 3px solid #ffffff;
427}
428
429.editor__crop-corner--top-left {
430  cursor: nwse-resize;
431  border-right: none;
432  border-bottom: none;
433}
434.editor__crop-corner--top-right {
435  cursor: nesw-resize;
436  border-left: none;
437  border-bottom: none;
438}
439.editor__crop-corner--bottom-left {
440  cursor: nesw-resize;
441  border-right: none;
442  border-top: none;
443}
444.editor__crop-corner--bottom-right {
445  cursor: nwse-resize;
446  border-left: none;
447  border-top: none;
448}
449`,e&&t.setAttribute("nonce",e),t}(i.styleNonce).innerText}),[]),l=function({h:e}){return function({top:t,left:r,corner:n,onGrabButton:i}){return e("button",{class:`editor__crop-corner editor__crop-corner--${n} `,style:{top:t,left:r},onMouseDown:e=>{e.preventDefault(),i(e,n)},onClick:e=>{e.preventDefault()}})}}({h:e}),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null),[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0}),[f,m]=t.useState(!1),[g,_]=t.useState(!1);function y(){let e=d.current,t=aB(az(r));if(e){e.width=t.width*aU,e.height=t.height*aU,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;let r=e.getContext("2d");r&&r.scale(aU,aU)}let n=u.current;n&&(n.style.width=`${t.width}px`,n.style.height=`${t.height}px`),p({startX:0,startY:0,endX:t.width,endY:t.height})}function v(e,t){m(!1),_(!0);let r=b(t),n=()=>{or.removeEventListener("mousemove",r),or.removeEventListener("mouseup",n),m(!0),_(!1)};or.addEventListener("mouseup",n),or.addEventListener("mousemove",r)}t.useEffect(()=>{ot.addEventListener("resize",y,!1)},[]),t.useEffect(()=>{let e=d.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let n=aB(az(r)),i=aB(h);t.clearRect(0,0,n.width,n.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,n.width,n.height),t.clearRect(i.x,i.y,i.width,i.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(i.x+1,i.y+1,i.width-2,i.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(i.x+3,i.y+3,i.width-6,i.height-6)},[h]);let b=t.useCallback(e=>function(t){if(!d.current)return;let r=d.current,n=r.getBoundingClientRect(),i=t.clientX-n.x,o=t.clientY-n.y;switch(e){case"top-left":p(e=>({...e,startX:Math.min(Math.max(0,i),e.endX-33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"top-right":p(e=>({...e,endX:Math.max(Math.min(i,r.width/aU),e.startX+33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"bottom-left":p(e=>({...e,startX:Math.min(Math.max(0,i),e.endX-33),endY:Math.max(Math.min(o,r.height/aU),e.startY+33)}));break;case"bottom-right":p(e=>({...e,endX:Math.max(Math.min(i,r.width/aU),e.startX+33),endY:Math.max(Math.min(o,r.height/aU),e.startY+33)}))}},[]),w=t.useRef({initialX:0,initialY:0});return o({onBeforeScreenshot:t.useCallback(()=>{n.el.style.display="none"},[]),onScreenshot:t.useCallback(e=>{let t=r.getContext("2d");if(!t)throw Error("Could not get canvas context");r.width=e.videoWidth,r.height=e.videoHeight,r.style.width="100%",r.style.height="100%",t.drawImage(e,0,0)},[r]),onAfterScreenshot:t.useCallback(()=>{n.el.style.display="block";let e=c.current;e&&e.appendChild(r),y()},[]),onError:t.useCallback(e=>{n.el.style.display="block",a(e)},[])}),e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:s}),e("div",{class:"editor__canvas-container",ref:c},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:u},e("canvas",{onMouseDown:function(e){if(g)return;w.current={initialX:e.clientX,initialY:e.clientY};let t=e=>{let t=d.current;if(!t)return;let r=e.clientX-w.current.initialX,n=e.clientY-w.current.initialY;p(i=>{let o=Math.max(0,Math.min(i.startX+r,t.width/aU-(i.endX-i.startX))),a=Math.max(0,Math.min(i.startY+n,t.height/aU-(i.endY-i.startY))),s=o+(i.endX-i.startX),l=a+(i.endY-i.startY);return w.current.initialX=e.clientX,w.current.initialY=e.clientY,{startX:o,startY:a,endX:s,endY:l}})},r=()=>{or.removeEventListener("mousemove",t),or.removeEventListener("mouseup",r)};or.addEventListener("mousemove",t),or.addEventListener("mouseup",r)},style:{position:"absolute",cursor:f?"move":"auto"},ref:d}),e(l,{left:h.startX-3,top:h.startY-3,onGrabButton:v,corner:"top-left"}
449),e(l,{left:h.endX-30+3,top:h.startY-3,onGrabButton:v,corner:"top-right"}),e(l,{left:h.startX-3,top:h.endY-30+3,onGrabButton:v,corner:"bottom-left"}),e(l,{left:h.endX-30+3,top:h.endY-30+3,onGrabButton:v,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:f?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:e=>{e.preventDefault(),d.current&&p({startX:0,startY:0,endX:d.current.width/aU,endY:d.current.height/aU}),m(!1)},class:"btn btn--default"},i.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){let e=or.createElement("canvas"),t=aB(az(r)),n=aB(h);e.width=n.width*aU,e.height=n.height*aU;let i=e.getContext("2d");i&&r&&i.drawImage(r,n.x/t.width*r.width,n.y/t.height*r.height,n.width/t.width*r.width,n.height/t.height*r.height,0,0,e.width,e.height);let o=r.getContext("2d");o&&(o.clearRect(0,0,r.width,r.height),r.width=e.width,r.height=e.height,r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,o.drawImage(e,0,0),y())}(),m(!1)},class:"btn btn--primary"},i.confirmButtonLabel)))))}}({h:e,hooks:t,imageBuffer:i,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),aj=oM({lazyLoadIntegration:tu}),aH=oM({getModalIntegration:()=>aF,getScreenshotIntegration:()=>a$});function aW(e,t,r,n,i={}){let o=i.client||(0,g.KU)();if(!o)return;let a=(0,O.Bk)(),s=a?(0,O.zU)(a):void 0,l=s&&(0,O.et)(s).description,{unit:c,tags:u,timestamp:d}=i,{release:h,environment:p}=o.getOptions(),f={};h&&(f.release=h),p&&(f.environment=p),l&&(f.transaction=l),eA.T&&y.vF.log(`Adding value of ${n} to ${t} metric ${r}`),(function(e,t){let r=(0,C.B)("globalMetricsAggregators",()=>new WeakMap),n=r.get(e);if(n)return n;let i=new t(e);return e.on("flush",()=>i.flush()),e.on("close",()=>i.close()),r.set(e,i),i})(o,e).add(t,r,n,c,{...f,...u},d)}function aq(e,t,r,n){aW(e,"d",t,aY(r),n)}let aV={increment:function(e,t,r=1,n){aW(e,"c",t,aY(r),n)},distribution:aq,set:function(e,t,r,n){aW(e,"s",t,r,n)},gauge:function(e,t,r,n){aW(e,"g",t,aY(r),n)},timing:function(e,t,r,n="second",i){if("function"==typeof r){let n=(0,eG.zf)();return(0,X.nV)({op:"metrics.timing",name:t,startTime:n,onlyIfParent:!0},o=>(0,Z.x)(()=>r(),()=>{},()=>{let r=(0,eG.zf)();aq(e,t,r-n,{...i,unit:"second"}),o.end(r)}))}aq(e,t,r,{...i,unit:n})}};function aY(e){return"string"==typeof e?parseInt(e):e}let aJ=[["\n","\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];class aK{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class aG{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class aX{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class aQ{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t>>>0}(e):e).join(":")}}let aZ={c:aK,g:aG,d:aX,s:aQ};class a0{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),5e3)}add(e,t,r,n="none",i={},o=(0,eG.zf)()){let a=Math.floor(o),s=t.replace(/[^\w\-.]+/gi,"_"),l=function(e){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r.replace(/[^\w\-./]+/gi,"")]=[...String(e[r])].reduce((e,t)=>e+function(e){for(let[t,r]of aJ)if(e===t)return r;return e}(t),""));return t}(i),c=n.replace(/[^\w]+/gi,"_"),u=function(e,t,r,n){let i=Object.entries((0,v.Ce)(n)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${r}${i}`}(e,s,c,l),d=this._buckets.get(u),h=d&&"s"===e?d.metric.weight:0;d?(d.metric.add(r),d.timestamp<a&&(d.timestamp=a)):(d={metric:new aZ[e](r),timestamp:a,metricType:e,name:s,unit:c,tags:l},this._buckets.set(u,d));
449let p="string"==typeof r?d.metric.weight-h:r;(0,O.r2)(e,s,p,c,i,u)}flush(){if(0===this._buckets.size)return;let e=Array.from(this._buckets.values());!function(e,t){y.vF.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let r=e.getDsn(),n=function(e,t,r,n){let i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=(0,eB.SB)(t));let o=function(e){let t=function(e){let t="";for(let r of e){let e=Object.entries(r.tags),n=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp}
450`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return(0,ez.h4)(i,[o])}(t,r,e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)}(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}let a1={increment:function(e,t=1,r){aV.increment(a0,e,t,r)},distribution:function(e,t,r){aV.distribution(a0,e,t,r)},set:function(e,t,r){aV.set(a0,e,t,r)},gauge:function(e,t,r){aV.gauge(a0,e,t,r)},timing:function(e,t,r="second",n){return aV.timing(a0,e,t,r,n)}};var a2=r(162),a3=r(66888);function a5(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function a6(e){return a5(e.getAllKeys())}function a4(e){let t;function r(){return void 0==t&&(t=function(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=a5(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{var n,i;let o=await (0,ez.bN)(t);await (n=r(),i=e.maxQueueSize||30,n(e=>a6(e).then(t=>{if(!(t.length>=i))return e.put(o,Math.max(...t,0)+1),a5(e.transaction)})))}catch(e){}},unshift:async t=>{try{var n,i;let o=await (0,ez.bN)(t);await (n=r(),i=e.maxQueueSize||30,n(e=>a6(e).then(t=>{if(!(t.length>=i))return e.put(o,Math.min(...t,0)-1),a5(e.transaction)})))}catch(e){}},shift:async()=>{try{let e=await r()(e=>a6(e).then(t=>{let r=t[0];if(null!=r)return a5(e.get(r)).then(t=>(e.delete(r),a5(e.transaction).then(()=>t)))}));if(e)return(0,ez.mE)(e)}catch(e){}}}}function a7(e=e8._){var t;return t=function(e){function t(...e){eA.T&&y.vF.info("[Offline]:",...e)}return r=>{let n,i=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let o=r.createStore(r),a=5e3;function s(e){n&&clearTimeout(n),"number"!=typeof(n=setTimeout(async()=>{n=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&n.unref&&n.unref()}function l(){n||(s(a),a=Math.min(2*a,36e5))}async function c(e,n=!1){if(!n&&(0,ez.hP)(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};try{let t=await i.send(e),r=100;if(t){if(t.headers&&t.headers["retry-after"])r=(0,tD.FA)(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),a=5e3,t}catch(i){var u;if(await (u=a,!(0,ez.hP)(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,i,u))))return n?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",i),{};throw i}}return r.flushAtStartup&&l(),{send:c,flush:e=>(void 0===e&&(a=5e3,s(100)),i.flush(e))}}}(e),e=>{let r=t({...e,createStore:a4});return e4.jf.addEventListener("online",async e=>{await r.flush()}),r}}var a8=r(93474),a9=r(14711);let se=String(0),st="",sr="",sn="",si=e4.jf.navigator&&e4.jf.navigator.userAgent||"",so="",sa=e4.jf.navigator&&e4.jf.navigator.language||e4.jf.navigator&&e4.jf.navigator.languages&&e4.jf.navigator.languages[0]||"",ss=e4.jf.navigator&&e4.jf.navigator.userAgentData;function sl(e){return"pageload"===(0,O.et)(e).op}(function(e){return"object"==typeof e&&null!==e&&"getHighEntropyValues"in e})(ss)&&ss.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(st=e.platform||"",sn=e.architecture||"",so=e.model||"",sr=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];si=`${t.brand} ${t.version}`}}).catch(e=>void 0);let sc=!1;function su(e){if(sc)return tv.T&&y.vF.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return tv.T&&y.vF.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=(0,g.KU)(),r=t&&t.getOptions();if(!r)return tv.T&&y.vF.log("[Profiling] Profiling disabled, no options foun
450d."),!1;let n=r.profilesSampleRate;return("number"!=typeof n&&"boolean"!=typeof n||"number"==typeof n&&isNaN(n)?(tv.T&&y.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),1):!0!==n&&!1!==n&&(n<0||n>1)&&(tv.T&&y.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${n}.`),1))?(tv.T&&y.vF.warn("[Profiling] Discarding profile because of invalid sample rate."),!1):n?!!(!0===n||Math.random()<n)||(tv.T&&y.vF.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):(tv.T&&y.vF.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1)}let sd=new Map;function sh(e){let t;sl(e)&&(t=1e3*(0,eG.zf)());let r=function(){let e=e4.jf.Profiler;if("function"!=typeof e){tv.T&&y.vF.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){tv.T&&(y.vF.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),y.vF.log("[Profiling] Disabling profiling for current user session.")),sc=!0}}();if(!r)return;tv.T&&y.vF.log(`[Profiling] started profiling span: ${(0,O.et)(e).description}`);let n=(0,ek.eJ)();async function i(){if(e&&r)return r.stop().then(t=>{if(o&&(e4.jf.clearTimeout(o),o=void 0),tv.T&&y.vF.log(`[Profiling] stopped profiling of span: ${(0,O.et)(e).description}`),!t){tv.T&&y.vF.log(`[Profiling] profiler returned null profile for: ${(0,O.et)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}if(sd.set(n,t),sd.size>30){let e=sd.keys().next().value;sd.delete(e)}}).catch(e=>{tv.T&&y.vF.log("[Profiling] error while stopping profiler:",e)})}(0,g.o5)().setContext("profile",{profile_id:n,start_timestamp:t});let o=e4.jf.setTimeout(()=>{tv.T&&y.vF.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,O.et)(e).description),i()},3e4),a=e.end.bind(e);e.end=function(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}}let sp=(0,ev._C)(()=>({name:"BrowserProfiling",setup(e){let t=(0,O.Bk)(),r=t&&(0,O.zU)(t);r&&sl(r)&&su(r)&&sh(r),e.on("spanStart",e=>{e===(0,O.zU)(e)&&su(e)&&sh(e)}),e.on("beforeEnvelope",e=>{if(!sd.size)return;let t=function(e){let t=[];return(0,ez.yH)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&t.push(e[r])}}),t}(e);if(!t.length)return;let r=[];for(let e of t){let t=e&&e.contexts,n=t&&t.profile&&t.profile.profile_id,i=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof n||!n){tv.T&&y.vF.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;let o=function(e){let t=sd.get(e);return t&&sd.delete(e),t}(n);if(!o){tv.T&&y.vF.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}let a=function(e,t,r,n){var i;if(!(r.samples.length<2?(tv.T&&y.vF.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!r.frames.length||(tv.T&&y.vF.log("[Profiling] Discarding profile because it contains no frames"),!1)))return null;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let o=function(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return("string"==typeof t&&32!==t.length&&tv.T&&y.vF.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(n),a="thread_metadata"in(i=r)?i:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[se]:{name:"main"}}},i=e.samples[0];if(!i)return n;let o=i.timestamp,a="number"==typeof performance.timeOrigin?performance.timeOrigin:eG.k3||0,s=a-(eG.k3||a);
450return e.samples.forEach((i,a)=>{if(void 0===i.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[a]={elapsed_since_start_ns:((i.timestamp+s-o)*1e6).toFixed(0),stack_id:t,thread_id:se};return}let l=e.stacks[i.stackId],c=[];for(;l;){c.push(l.frameId);let t=e.frames[l.frameId];t&&void 0===n.frames[l.frameId]&&(n.frames[l.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),l=void 0===l.parentId?void 0:e.stacks[l.parentId]}let u={elapsed_since_start_ns:((i.timestamp+s-o)*1e6).toFixed(0),stack_id:r,thread_id:se};n.stacks[r]=c,n.samples[a]=u,r++}),n}(i),s=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,eG.zf)()),l="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,eG.zf)();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||a8.U,runtime:{name:"javascript",version:e4.jf.navigator.userAgent},os:{name:st,version:sr,build_number:si},device:{locale:sa,model:so,manufacturer:si,architecture:sn,is_emulator:!1},debug_meta:{images:function(e){let t=(0,g.KU)(),r=t&&t.getOptions(),n=r&&r.stackParser;return n?(0,a9.i)(n,e):[]}(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||(0,ek.eJ)(),trace_id:o,active_thread_id:se,relative_start_ns:"0",relative_end_ns:((l-s)*1e6).toFixed(0)}]}}(n,i,o,e);a&&r.push(a)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,r)})}})),sf=(0,ev._C)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{tv.T&&y.vF.log("Using Sidecar URL",t)},processEvent:e=>!function(e){return!!("transaction"===e.type&&e.spans&&e.contexts&&e.contexts.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e&&e.includes("#sentry-spotlight")))}(e)?e:null,afterAllSetup:e=>{!function(e,t){let r=(0,tF.qd)("fetch"),n=0;e.on("beforeEnvelope",e=>{if(n>3)return void y.vF.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",n);r(t,{method:"POST",body:(0,ez.bN)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(n=0)},e=>{n++,y.vF.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});var sm=r(37795);function sg(e){let t=(0,g.o5)().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function s_(e,t,r=100){let n=(0,g.o5)().getScopeData().contexts;n.flags||(n.flags={values:[]}),function(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n){tv.T&&y.vF.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}(n.flags.values,e,t,r)}let sy=(0,ev._C)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>sg(e),addFeatureFlag(e,t){s_(e,t)}})),sv=(0,ev._C)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>sg(e)}));function sb(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{s_(e,t.value)}}}let sw=(0,ev._C)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>sg(e)}));class sS{after(e,t){s_(t.flagKey,t.value)}error(e,t,r){s_(e.flagKey,e.defaultValue)}}let sk=(0,ev._C)(({unleashClientClass:e})=>({name:"Unleash",processEvent:(e,t,r)=>sg(e),setupOnce(){let t=e.prototype;(0,v.GS)(t,"isEnabled",sE)}}));function sE(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?s_(r,n):tv.T&&y.vF.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}let sC=(0,ev._C)(({featureFlagClient:e})=>({name:"Statsig",processEvent:(e,t,r)=>sg(e),setup(){e.on("gate_evaluation",e=>{s_(e.gate.name,e.gate.value)})}}));var sx=r(9714),sM=r(78910),sI=r(41695);let sT="ui.react.render",sR="ui.react.mount";class sA extends sI.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e);let{name:t,disabled:r=!1}=this.props;if(r)return;this._mountSpan=(0,X.Uk)({name:`<${t}>`,onlyIfParent:!0,op:sR,attributes:{[Q.JD]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,eG.zf)();this._updateSpan=(0,X.hb)(this._mountSpan,()=>(0,X.Uk)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[Q.JD]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,eG.zf)(),{name:t,includeRender:r=!0}=this.props;if(this._mountSpan&&r){let r=(0,O.et)(this._mountSpan).timestamp;(0,X.hb)(this._mountSpan,()=>{let n=(0,X.Uk)({onlyIfParent:!0,name:`<${t}>`,op:sT,startTime:r,attributes:{[Q.JD]:"auto.ui.react.profiler","ui.component_name":t}});n&&n.end(e)})}}render(){return this.props.children}}function sD(e,t){let r=t&&t.name||e.displayName||e.name||"unknown",n=n=>sI.createElement(sA,{...t,name:r,updateProps:n},sI.createElement(e,{...n}));return n.displayName=`profiler(${r})`,sM(n,e),n}function sN(e,t={disabled:!1,hasRenderSpan:!0}
450){let[r]=sI.useState(()=>{if(!t||!t.disabled)return(0,X.Uk)({name:`<${e}>`,onlyIfParent:!0,op:sR,attributes:{[Q.JD]:"auto.ui.react.profiler","ui.component_name":e}})});sI.useEffect(()=>(r&&r.end(),()=>{if(r&&t.hasRenderSpan){let t=(0,O.et)(r).timestamp,n=(0,eG.zf)(),i=(0,X.Uk)({name:`<${e}>`,onlyIfParent:!0,op:sT,startTime:t,attributes:{[Q.JD]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(n)}}),[])}sA.__initStatic();var sO=r(68528);let sP={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function sL(e){let t={...sP,...e};return e=>(r,n)=>(t.attachReduxState&&(0,g.m6)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch(e){}return e}),e((e,n)=>{let i=r(e,n),o=(0,g.o5)(),a=t.actionTransformer(n);null!=a&&(0,ey.Z)({category:"redux.action",data:a,type:"info"});let s=t.stateTransformer(i);if(null!=s){let e=(0,g.KU)(),t=e&&e.getOptions(),r=t&&t.normalizeDepth||3,n={state:{type:"redux",value:s}};(0,v.my)(n,"__sentry_override_normalization_depth__",3+r),o.setContext("state",n)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,i),i},n))}function sF(e){let t=(0,a3.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,match:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&e4.jf&&e4.jf.location&&sU(n,e4.jf.location,i,(t,r="url")=>{(0,a3.Sx)(e,{name:t,attributes:{[Q.uT]:"pageload",[Q.JD]:"auto.pageload.react.reactrouter_v3",[Q.i_]:r}})}),a&&r.listen&&r.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&sU(n,t,i,(t,r="url")=>{(0,a3.Nt)(e,{name:t,attributes:{[Q.uT]:"navigation",[Q.JD]:"auto.navigation.react.reactrouter_v3",[Q.i_]:r}})})})}}}function sU(e,t,r,n){let i=t.pathname;r({location:t,routes:e},(e,t,r)=>{if(e||!r)return n(i);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),r=-1;for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.path&&n.path.startsWith("/")){r=e;break}}return t.slice(r).filter(({path:e})=>!!e).map(({path:e})=>e).join("")}(r.routes||[]);return 0===o.length||"/*"===o?n(i):n(i=o,"route")})}function sB(e,t={}){let r=(0,a3.dp)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:i=!0}=t;return{...r,afterAllSetup(t){r.afterAllSetup(t);let o=e4.jf.location;if(n&&o){let r=e.matchRoutes(o.pathname,e.options.parseSearch(o.search),{preload:!1,throwOnError:!1}),n=r[r.length-1];(0,a3.Sx)(t,{name:n?n.routeId:o.pathname,attributes:{[Q.uT]:"pageload",[Q.JD]:"auto.pageload.react.tanstack_router",[Q.i_]:n?"route":"url",...sz(n)}})}i&&e.subscribe("onBeforeNavigate",r=>{let n=r.fromLocation&&r.fromLocation.state;if(r.toLocation.state===n)return;let i=e.matchRoutes(r.toLocation.pathname,r.toLocation.search,{preload:!1,throwOnError:!1}),o=i[i.length-1],a=e4.jf.location,s=(0,a3.Nt)(t,{name:o?o.routeId:a.pathname,attributes:{[Q.uT]:"navigation",[Q.JD]:"auto.navigation.react.tanstack_router",[Q.i_]:o?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let r=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),n=r[r.length-1];n&&(s.updateName(n.routeId),s.setAttribute(Q.i_,"route"),s.setAttributes(sz(n)))}})})}}}function sz(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,r])=>{t[`url.path.params.${e}`]=r}),t}function s$(e){let t=(0,a3.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),sH(e,o,a,r,"reactrouter_v4",n,i)}}}function sj(e){let t=(0,a3.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),sH(e,o,a,r,"reactrouter_v5",n,i)}}}function sH(e,t,r,n,i,o=[],a){function s(e){if(0===o.length||!a)return[e,"url"];for(let t of function e(t,r,n,i=[]){return t.some(t=>{let o=t.path?n(r,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===r};return o&&(i.push({route:t,match:o}),t.routes&&e(t.routes,r,n,i)),!!o}),i}(o,e,a))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=n&&n.location?n.location.pathname:e4.jf&&e4.jf.location?e4.jf.location.pathname:void 0;if(t){let[r,n]=s(t);(0,a3.Sx)(e,{name:r,attributes:{[Q.uT]:"pageload",[Q.JD]:`auto.pageload.react.${i}`,[Q.i_]:n}})}}r&&n.listen&&n.listen((t,r)=>{if(r&&("PUSH"===r||"POP"===r)){let[r,n]=s(t.pathname);(0,a3.Nt)(e,{name:r,attributes:{[Q.uT]:"navigation",[Q.JD]:`auto.navigation.react.${i}`,[Q.i_]:n}})}})}
450function sW(e){let t=e.displayName||e.name,r=t=>{if(t&&t.computedMatch&&t.computedMatch.isExact){let e=t.computedMatch.path,r=function(){let e=(0,O.Bk)(),t=e&&(0,O.zU)(e);if(!t)return;let r=(0,O.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}();(0,g.o5)().setTransactionName(e),r&&(r.updateName(e),r.setAttribute(Q.i_,"route"))}return sI.createElement(e,{...t})};return r.displayName=`sentryRoute(${t})`,sM(r,e),r}var sq=r(7686);let sV=!1,sY=new WeakSet,sJ=new Set;function sK(e,t){return u&&d&&h&&f?function(r,n){r.forEach(e=>{sJ.add(e)});let i=e(r,n),o=n&&n.basename,a=lt();return"POP"===i.state.historyAction&&a&&s9(a,i.state.location,r,void 0,o,Array.from(sJ)),i.subscribe(e=>{("PUSH"===e.historyAction||"POP"===e.historyAction)&&("idle"!==e.navigation.state?requestAnimationFrame(()=>{sZ({location:e.location,routes:r,navigationType:e.historyAction,version:t,basename:o,allRoutes:Array.from(sJ)})}):sZ({location:e.location,routes:r,navigationType:e.historyAction,version:t,basename:o,allRoutes:Array.from(sJ)}))}),i}:(sq.T&&y.vF.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function sG(e,t){return u&&d&&h&&f?function(r,n){let i;r.forEach(e=>{sJ.add(e)});let o=e(r,n),a=n?n.basename:void 0,s=lt(),l=n?n.initialEntries:void 0,c=n?n.initialIndex:void 0,u=l&&1===l.length,d=void 0!==c&&l&&l[c],h=(i=u?l[0]:d?l[c]:void 0)?"string"==typeof i?{pathname:i}:i:o.state.location;return"POP"===o.state.historyAction&&s&&s9(s,h,r,void 0,a,Array.from(sJ)),o.subscribe(e=>{let n=e.location;("PUSH"===e.historyAction||"POP"===e.historyAction)&&sZ({location:n,routes:r,navigationType:e.historyAction,version:t,basename:a,allRoutes:Array.from(sJ)})}),o}:(sq.T&&y.vF.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function sX(e,t){let r=(0,a3.dp)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:i,useNavigationType:o,createRoutesFromChildren:a,matchRoutes:s,stripBasename:l,instrumentPageLoad:c=!0,instrumentNavigation:m=!0}=e;return{...r,setup(){u=n,d=i,h=o,f=s,p=a,sV=l||!1},afterAllSetup(e){r.afterAllSetup(e);let n=e4.jf&&e4.jf.location&&e4.jf.location.pathname;c&&n&&(0,a3.Sx)(e,{name:n,attributes:{[Q.i_]:"url",[Q.uT]:"pageload",[Q.JD]:`auto.pageload.react.reactrouter_v${t}`}}),m&&sY.add(e)}}}function sQ(e,t){if(!u||!d||!h||!f)return sq.T&&y.vF.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let r=r=>{let n=sI.useRef(!0),{routes:i,locationArg:o}=r,a=e(i,o),s=d(),l=h(),c="string"==typeof o||o&&o.pathname?o:s;return u(()=>{let e="string"==typeof c?{pathname:c}:c;n.current?(i.forEach(e=>{s5(e).forEach(e=>{sJ.add(e)})}),s9(lt(),e,i,void 0,void 0,Array.from(sJ)),n.current=!1):sZ({location:e,routes:i,navigationType:l,version:t,allRoutes:Array.from(sJ)})},[l,c]),a};return(e,t)=>sI.createElement(r,{routes:e,locationArg:t})}function sZ(e){let{location:t,routes:r,navigationType:n,version:i,matches:o,basename:a,allRoutes:s}=e,l=Array.isArray(o)?o:f(r,t,a),c=(0,g.KU)();if(c&&sY.has(c)&&("PUSH"===n||"POP"===n)&&l){let e,n="url",o=s3(t,s||r);o&&(e=s4(s7(s||r,t)),n="route"),o&&e||([e,n]=s8(r,t,l,a)),(0,a3.Nt)(c,{name:e,attributes:{[Q.i_]:n,[Q.uT]:"navigation",[Q.JD]:`auto.navigation.react.reactrouter_v${i}`}})}}function s0(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}function s1(e){return e.endsWith("*")}function s2(e,t){return s1(e)&&t.route.children&&t.route.children.length>0||!1}function s3(e,t){let r=f(t,e);if(r)for(let e of r){var n;if(!(n=e.route).children&&n.element&&n.path&&n.path.endsWith("/*")&&e.params["*"])return!0}return!1}function s5(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(e=>{s5(e,t).forEach(e=>t.add(e))})),t}function s6(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function s4(e){return"/"===e[0]?e:`/${e}`}function s7(e,t){let r=f(e,t);if(!r||0===r.length)return"";for(let i of r)if(i.route.path&&"*"!==i.route.path){var n;let r="*"===(n=i.route.path||"")[n.length-1]?n.slice(0,-1):n,o=s0(t.pathname,s4(i.pathnameBase));return s6(s6(r||"")+s4(s7(e.filter(e=>e!==i.route),{pathname:o})))}return""}function s8(e,t,r,n=""){if(!e||0===e.length)return[sV?s0(t.pathname,n):t.pathname,"url"];let i="";if(r)for(let e of r){let r=e.route;if(r){if(r.index){var o=i,a=e.pathname;let t=o||sV?s0(a,n):a;return["/"===t[t.length-1]||"/*"===t.slice(-2)?t.slice(0,-1):t,"route"]}let s=r.path;if(s&&!s2(s,e)){let r="/"===s[0]||"/"===i[i.length-1]?s:`/${s}`;if(i=s6(i)+s4(r),s6(t.pathname)===s6(n+e.pathname)){if((0,tx.c4)(i)!==(0,tx.c4)(e.pathname)&&!s1(i))return[(sV?"":n)+r,"route"];return s2(i,e)&&(i=i.slice(0,-1)),[(sV?"":n)+i,"route"]}}}}return[sV?s0(t.pathname,n):t.pathname||"/","url"]}function s9(e,t,r,n,i,o){let a=Array.isArray(n)?n:f(o||r,t,i);if(a){let n,s="url",l=s3(t,o||r);l&&(n=s4(s7(o||r,t)),s="route"),l&&n||([n,s]=s8(r,t,a,i)),(0,g.o5)().setTransactionName(n||"/"),e&&(e.updateName(n),e.setAttribute(Q.i_,s))}}function le(e,t){if(!u||!d||!h||!p||!f)return sq.T&&y.vF.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
451      useEffect: ${u}. useLocation: ${d}. useNavigationType: ${h}.
452      createRoutesFromChildren: ${p}. matchRoutes: ${f}.`),e;let r=r=>{let n=sI.useRef(!0),i=d(),o=h();return u(()=>{let e=p(r.children);
452n.current?(e.forEach(e=>{s5(e).forEach(e=>{sJ.add(e)})}),s9(lt(),i,e,void 0,void 0,Array.from(sJ)),n.current=!1):sZ({location:i,routes:e,navigationType:o,version:t,allRoutes:Array.from(sJ)})},[i,o]),sI.createElement(e,{...r})};return sM(r,e),r}function lt(){let e=(0,O.Bk)(),t=e?(0,O.zU)(e):void 0;if(!t)return;let r=(0,O.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}function lr(e){return sX(e,"6")}function ln(e){return sQ(e,"6")}let li=ln;function lo(e){return sK(e,"6")}let la=lo;function ls(e){return sG(e,"6")}function ll(e){return le(e,"6")}function lc(e){return sX(e,"7")}function lu(e){return le(e,"7")}function ld(e){return sK(e,"7")}function lh(e){return sG(e,"7")}function lp(e){return sQ(e,"7")}}}]);

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.