PageSourceSearch

https://www.lily-burger.de/_next/static/immutable/chunks/1xi0jcfs2k8bj.js

js lily-burger.de collected 2026-10-08 10:59:17 UTC 281,998 bytes, 52 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7dec5d3f-3008-ef2e-ec91-d86bc5b63120")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[396517,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"appBootstrap",{enumerable:!0,get:function(){return o}});let n=e.r(974575),i=e.r(922737);function o(e){var t,r;let o=(0,n.getAssetPrefix)();t=self.__next_s,r=()=>{e(o)},t&&t.length?t.reduce((e,[t,r])=>e.then(()=>new Promise((e,n)=>{let o=document.createElement("script");r&&(0,i.setAttributesFromProps)(o,r),t?(o.src=t,o.onload=()=>e(),o.onerror=n):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)})),Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}window.next={version:"16.4.0",appDir:!0},("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},523911,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),e.r(966849),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},198569,(e,t,r)=>{let n,i,o,s;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hydrate",{enumerable:!0,get:function(){return U}});let a=e.r(555682),l=e.r(843476);e.r(523911);let u=a._(e.r(88014)),c=a._(e.r(271645)),d=e.r(235326),p=e.r(742732),h=e.r(597238),f=e.r(851323),m=e.r(132120),g=e.r(92245),y=e.r(699781),_=a._(e.r(875530)),v=e.r(665716);e.r(8372);let b=e.r(450590),S=e.r(543369),w=e.r(732992),E=e.r(76138),x=d.createFromReadableStream,k=d.createFromFetch,T=document,R=self.__next_instant_test?self.__next_instant_test:void 0,C=new TextEncoder,M=!1,I=!1,O=null;function A(e){if(0===e[0])o=[];else if(1===e[0]){if(!o)throw Error("Unexpected server data: missing bootstrap script.");s?s.enqueue(C.encode(e[1])):o.push(e[1])}else if(2===e[0])O=e[1];else if(3===e[0]){if(!o)throw Error("Unexpected server data: missing bootstrap script.");let r=atob(e[1]),n=new Uint8Array(r.length);for(var t=0;t<r.length;t++)n[t]=r.charCodeAt(t);s?s.enqueue(n):o.push(n)}}let N=function(){s&&!I&&(s.close(),I=!0,o=void 0),M=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",N,!1):setTimeout(N);let P=self.__next_f=self.__next_f||[];P.forEach(A),P.length=0,P.push=A;let D=new ReadableStream({start(e){o&&(o.forEach(t=>{e.enqueue("string"==typeof t?C.encode(t):t)}),M&&!I)&&(null===e.desiredSize||e.desiredSize<0?R||e.error(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.")):e.close(),I=!0,o=void 0),s=e}});if(R)i=Promise.resolve(k(R,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n,unstable_allowPartialStream:!0})).then(async e=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await R,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;i=Promise.resolve(k(e,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n})).then(async t=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else i=x(D,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n,startTime:0});function L({initialRSCPayload:e,actionQueue:t,webSocket:r,staticIndicatorState:n}){return(0,l.jsx)(_.default,{actionQueue:t,globalErrorState:e.G,webSocket:r,staticIndicatorState:n})}let j=c.default.StrictMode;function $({children:e}){return e}let F={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:h.onRecoverableError,onCaughtError:f.onCaughtError,onUncaughtError:f.onUncaughtError};async function U(e,t){let r,n,o=await i;o.b?(0,w.setNavigationBuildId)(o.b):(0,w.setNavigationBuildId)((0,S.getDeploymentId)()),(0,E.initializeRouterTransitionModules)(e);let s=Date.now(),a=(0,y.createMutableActionQueue)((0,v.createInitialRouterState)({navigatedAt:s,initialRSCPayload:o,initialFlightStreamForCache:null,location:window.location})),d=(0,l.jsx)(j,{children:(0,l.jsx)(p.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,l.jsx)($,{children:(0,l.jsx)(L,{initialRSCPayload:o,actionQueue:a,webSocket:n,staticIndicatorState:r})})})});"__next_error__"===document.documentElement.id?u.default.createRoot(T,F).render(d):c.default.startTransition(()=>{u.default.hydrateRoot(T,d,{...F,formState:O})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
2dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},494553,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),e.r(423755);let n=e.r(396517);e.r(597238),window.next.turbopack=!0,self.__webpack_hash__="";let i=e.r(5526);(0,n.appBootstrap)(t=>{let{hydrate:r}=e.r(198569);r(i,t)}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},974575,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getAssetPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(312718);function i(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw new n.InvariantError(`Expected document.currentScript to be a <script> element. Received ${e} instead.`);let{pathname:t}=new URL(e.src),r=t.indexOf("/_next/");if(-1===r)throw new n.InvariantError(`Expected document.currentScript src to contain '/_next/'. Received ${e.src} instead.`);return t.slice(0,r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},522701,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"AppRouterAnnouncer",{enumerable:!0,get:function(){return s}});let n=e.r(271645),i=e.r(174080),o="next-route-announcer";function s({tree:e}){let[t,r]=(0,n.useState)(null);(0,n.useEffect)(()=>(r(function(){let e=document.getElementsByName(o)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(o)[0];e?.isConnected&&document.body.removeChild(e)}),[]);
2let[a,l]=(0,n.useState)(""),u=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==u.current&&u.current!==e&&l(e),u.current=e},[e]),t?(0,i.createPortal)(a,t):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},875530,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return j}});let n=e.r(555682),i=e.r(190809),o=e.r(843476),s=i._(e.r(271645)),a=e.r(8372),l=e.r(451191),u=e.r(127828),c=e.r(261994),d=e.r(941538),p=e.r(494272),h=e.r(522701),f=e.r(358442),m=e.r(201244),g=e.r(387250),y=e.r(652817),_=e.r(734727),v=e.r(178377),b=e.r(699781),S=e.r(132916),w=e.r(124063),E=e.r(968391),x=e.r(91949),k=n._(e.r(794109)),T=n._(e.r(168027)),R=e.r(897367);e.r(543369);let C={};function M(){if(void 0===window.navigation)return!1;let e=window.navigation.activation?.entry,t=window.navigation.currentEntry;return null!=e&&null!=t&&e.key!==t.key&&window.history.state?.__NA===!0}let I=!1,O=!1;function A(e){if(e){if(!e.__NA)return void window.location.reload();(0,S.traverse)(window.location.href,e.__PRIVATE_NEXTJS_INTERNALS_TREE)}}function N({appRouterState:e}){return(0,s.useInsertionEffect)(()=>{let{tree:t,pushRef:r,canonicalUrl:n,renderedSearch:i}=e;if(!I&&(I=!0,M()))return void(0,p.setLastCommittedTree)(t);let o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:i}};r.pendingPush&&(0,l.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(o,"",n)):window.history.replaceState(o,"",n),(0,p.setLastCommittedTree)(t)},[e]),(0,s.useEffect)(()=>{(0,x.pingVisibleLinks)(e.nextUrl,e.root)},[e.nextUrl,e.root]),null}function P(e){null==e&&(e={});let t=window.history.state,r=t?.__NA;r&&(e.__NA=r);let n=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function D({headRenderTree:e}){let t=e.data.rsc,r=e.data.prefetchRsc,n=null!==r?r:t;return(0,s.useDeferredValue)(t,n)}function L({actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n}){let i=(0,d.useActionQueue)(e),{canonicalUrl:l}=i,{searchParams:p,pathname:v}=(0,s.useMemo)(()=>{let e=new URL(l,"u"<typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,y.hasBasePath)(e.pathname)?(0,g.removeBasePath)(e.pathname):e.pathname}},[l]);(0,s.useEffect)(()=>{let e=(0,_.extractSourcePageFromFlightRouterState)(i.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[i.tree]),(0,s.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(C.pendingMpaPath=void 0,(0,S.restore)(new URL(window.location.href),window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,s.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,E.isRedirectError)(t)){e.preventDefault();let r=(0,w.getURLFromRedirectError)(t);"push"===(0,w.getRedirectTypeFromError)(t)?b.publicAppRouterInstance.push(r,{}):b.publicAppRouterInstance.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:x}=i;if(x.mpaNavigation){if(C.pendingMpaPath!==l){let e=window.location;x.pendingPush?e.assign(l):e.replace(l),C.pendingMpaPath=l}throw m.unresolvedThenable}(0,s.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{let t=window.location.href,r=window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,S.restore)(new URL(e??t,t),r)};window.history.pushState=function(t,n,i){return t?.__NA||t?._N||(t=P(t),i&&r(i)),e(t,n,i)},window.history.replaceState=function(e,n,i){return e?.__NA||e?._N||(e=P(e),i&&r(i)),t(e,n,i)};let n=e=>A(e.state);return window.addEventListener("popstate",n),!O&&(O=!0,M()&&A(window.history.state)),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[]);let{root:T,tree:I,nextUrl:j,scrollRef:$,previousNextUrl:F}=i,U=(0,s.useMemo)(()=>(0,_.getSelectedParams)(I),[I]),B=(0,s.useMemo)(()=>({parentTree:I,parentRenderTree:T.tree,parentSegmentPath:null,parentParam
2s:{},parentLoadingData:null,debugNameContext:"/",url:l,isActive:!0}),[I,T,l]),z=(0,s.useMemo)(()=>({tree:I,scrollRef:$,nextUrl:j,previousNextUrl:F}),[I,$,j,F]),W=(0,o.jsx)(D,{headRenderTree:T.head},(0,u.createHeadKey)(T.head.varyPath)),q=(0,o.jsxs)(f.RedirectBoundary,{children:[W,(0,o.jsx)(R.RootLayoutBoundary,{children:T.tree.data.rsc}),(0,o.jsx)(h.AppRouterAnnouncer,{tree:I})]});return q=(0,o.jsx)(k.default,{errorComponent:t[0],errorStyles:t[1],children:q}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N,{appRouterState:i}),null,(0,o.jsx)(c.NavigationPromisesContext.Provider,{value:null,children:(0,o.jsx)(c.PathParamsContext.Provider,{value:U,children:(0,o.jsx)(c.PathnameContext.Provider,{value:v,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:p,children:(0,o.jsx)(a.GlobalLayoutRouterContext.Provider,{value:z,children:(0,o.jsx)(a.AppRouterContext.Provider,{value:b.publicAppRouterInstance,children:(0,o.jsx)(a.LayoutRouterContext.Provider,{value:B,children:q})})})})})})})]})}function j({actionQueue:e,globalErrorState:t,webSocket:r,staticIndicatorState:n}){(0,v.useNavFailureHandler)();let i=(0,o.jsx)(L,{actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n});return(0,o.jsx)(k.default,{errorComponent:T.default,children:i})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18576,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return l},errorStyles:function(){return s},errorThemeCss:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});e.r(555682);let o=e.r(843476);e.r(271645);let s={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},a=`
3:root {
4  --next-error-bg: #fff;
5  --next-error-text: #171717;
6  --next-error-title: #171717;
7  --next-error-message: #171717;
8  --next-error-digest: #666666;
9  --next-error-btn-text: #fff;
10  --next-error-btn-bg: #171717;
11  --next-error-btn-border: none;
12  --next-error-btn-secondary-text: #171717;
13  --next-error-btn-secondary-bg: transparent;
14  --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
15}
16@media (prefers-color-scheme: dark) {
17  :root {
18    --next-error-bg: #0a0a0a;
19    --next-error-text: #ededed;
20    --next-error-title: #ededed;
21    --next-error-message: #ededed;
22    --next-error-digest: #a0a0a0;
23    --next-error-btn-text: #0a0a0a;
24    --next-error-btn-bg: #ededed;
25    --next-error-btn-border: none;
26    --next-error-btn-secondary-text: #ededed;
27    --next-error-btn-secondary-bg: transparent;
28    --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
29  }
30}
31body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
32`.replace(/\n\s*/g,"");function l(){return(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:s.icon,children:(0,o.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
32dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},168027,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}}),e.r(555682);let n=e.r(843476);e.r(271645);let i=e.r(912354),o=e.r(18576),s=function({error:e}){let t=e?.digest,r=!!t;return(0,i.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:o.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:o.errorStyles.container,children:(0,n.jsxs)("div",{style:o.errorStyles.card,children:[(0,n.jsx)(o.WarningIcon,{}),(0,n.jsx)("h1",{style:o.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:o.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:o.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:o.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:o.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:o.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:o.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},241624,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={GracefulDegradeBoundary:function(){return a},default:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(843476),s=e.r(271645);class a extends s.Component{constructor(e){super(e),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,s.createRef)()}static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(([t,r])=>{e.setAttribute(t,r)})}render(){let{hasError:e}=this.state;return("u">typeof window&&!this.rootHtml&&(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}(document.documentElement)),e)?(0,o.jsx)("html",{ref:this.htmlRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:this.rootHtml}}):this.props.children}}let l=a;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},794109,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(555682),i=e.r(843476);e.r(271645);let o=n._(e.r(241624)),s=e.r(972383),a=e.r(82604),l="u">typeof window&&(0,a.isBot)(window.navigator.userAgent);function u({children:e,errorComponent:t,errorStyles:r,errorScripts:n}){return l?(0,i.jsx)(o.default,{children:e}):(0,i.jsx)(s.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},665716,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInitialRouterState",{enumerable:!0,get:function(){return p}});let n=e.r(451191),i=e.r(734727),o=e.r(174064),s=e.r(924988),a=e.r(620896),l=e.r(712085),u=e.r(179027),c=e.r(787288),d=e.r(496167);function p({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:r,location:h}){let{c:f,t:m,q:g,i:y,S:_,s:v,l:b,r:S,p:w,d:E}=t,x=f.join("/"),k=(0,o.transportNodeToFlightRouterState)(m.t,g),T=h?(0,n.createHrefFromUrl)(h):x,R=(0,l.createNavigationSeed)(e,null,m,null,!0,null,g,null,E??u.UnknownDynamicStaleTime),C=R.root,M=(0,s.createInitialRenderTreeForHydration)(e,C,R.dynamicStaleAt);return null!==h&&((0,d.discoverKnownRoute)(Date.now(),h.pathname,h.search,null,null,C,y,T,R.renderedSearch,_,!1),void 0!==v?void 0!==b&&null!=r?Promise.resolve(b).then(async e=>{if(0===e)return void r.cancel();let t=await (0,c.decodeStageUntilBoundary)(r,e,void 0);null!==t&&(0,a.spawnStaticStageCacheWrite)(Date.now(),t,!0,null,k,g,a.segmentCacheMap)}).catch(()=>{}):((0,a.spawnStaticStageCacheWrite)(Date.now(),{t:m,r:S,s:v},!1,null,k,g,a.segmentCacheMap),r?.cancel()):r?.cancel(),null!=w&&(0,a.writeRuntimePrefetchStreamIntoCache)(Date.now(),w,k,g,a.segmentCacheMap).catch(()=>{})),{tree:M.tree.route,root:(0,a.createRootRouteTree)(M.tree.node,M.head.node),pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},scrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:T,renderedSearch:g,nextUrl:((0,i.extractPathFromFlightRouterState)(k)||h?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
32dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},851323,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={onCaughtError:function(){return p},onUncaughtError:function(){return h}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(555682),s=e.r(265713),a=e.r(132061),l=e.r(528279),u=e.r(972383),c=o._(e.r(168027)),d={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function p(e,t){let r,n,i=t.errorBoundary?.constructor;if(r=r||i===u.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return f(e,n);(0,a.isBailoutToCSRError)(e)||(0,s.isNextRouterError)(e)||d.originConsoleError(e)}function h(e){f(e)}function f(e,t){(0,a.isBailoutToCSRError)(e)||(0,s.isNextRouterError)(e)||(0,l.reportGlobalError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},597238,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={isRecoverableError:function(){return c},onRecoverableError:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(555682),s=e.r(132061),a=o._(e.r(302023)),l=e.r(528279),u=new WeakSet;function c(e){return u.has(e)}let d=e=>{let t=(0,a.default)(e)&&"cause"in e?e.cause:e;(0,s.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},528279,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reportGlobalError",{enumerable:!0,get:function(){return n}});let n="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},423755,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});let n=(0,e.r(543369).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=n,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},302023,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return s},getProperError:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(816565);function s(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){let t;return s(e)?e:Error((0,o.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})):e+"")}},5526,(e,t,r)=>{{let r=e.r(83793);t.exports=Array.isArray(r)?r:[r]}},816565,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={getObjectClassLabel:function(){return o},isPlainObject:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function o(e){return Object.prototype.toString.call(e)}function s(e){if("[object Object]"!==o(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},617742,e=>{let t,r,n,i,o,s,a,l,u,c,d,p,h,f,m,g,y,_,v,b,S,w,E,x;var k,T,R,C,M,I,O,A,N,P=e.i(247167),D=e.i(519988),L=e.i(225304),j=e.i(605394),$=e.i(250804);let F=["forwarded","-ip","remote-","via","-user"],U=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function B(e,t){if(e&&!1!==t)return e.split("&").map(e=>{let r=e.indexOf("="),n=-1===r?e:e.slice(0,r),i=new URLSearchParams(`${n}=`).keys().next().value;return void 0!==i&&function(e,t){if(!1===t)return!0;let r=e.toLowerCase();if(U.some(e=>r.includes(e)))return!0;
32if(!0===t)return!1;let n=("deny"in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return"deny"in t?n:!n}(i,t)?`${n}=[Filtered]`:e}).join("&")}function z(e){return(e??(0,$.l)())?.getDataCollectionOptions().urlQueryParams??!0}function W(e,t){return void 0===e?void 0:function(e,t){let r=e.indexOf("#"),n=-1===r?e.length:r,i=e.indexOf("?");if(-1===i||i>n)return e;let o=e.slice(0,i),s=e.slice(i+1,n),a=e.slice(n),l=B(s,t);return l?`${o}?${l}${a}`:`${o}${a}`}(e,z(t))}function q(e,t){if(!e)return e;let r=e.startsWith("?"),n=B(r?e.slice(1):e,z(t));return n&&r?`?${n}`:n}var H=e.i(951497),V=e.i(682564),G=e.i(662537),J=e.i(453288);let Y=L.f;function Q(){try{return Y.document.location.href}catch{return""}}function X(e,t=5){if(!Y.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}let K=L.f,Z=0;function ee(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,H.R)(e))return e}catch{return e}let r=function(...r){L.f._sentryWrappedDepth=(L.f._sentryWrappedDepth||0)+1;try{let n=r.map(e=>ee(e,t));return e.apply(this,n)}catch(e){throw Z++,setTimeout(()=>{Z--}),(0,$.h)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,V.T)(e,void 0,void 0),(0,V.o)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,G.y)(e)}),e}finally{L.f._sentryWrappedDepth=(L.f._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,H.u)(r,e),(0,H.O)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function et(){let e=Q(),{referrer:t}=K.document||{},{userAgent:r}=K.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}
32var er=e.i(901020),en=e.i(272598),ei=e.i(10008),eo=e.i(821593);function es(e){en.h.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ea(e,t){if(!t?.length)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if(e.description&&(0,eo.w)(e.description,n))return er.f&&es(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let i=!n.name||e.description&&(0,eo.w)(e.description,n.name),o=!n.op||e.op&&(0,eo.w)(e.op,n.op),s=!n.attributes||Object.entries(n.attributes).every(([t,r])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,eo.w)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t})(e.attributes?.[t],r));if(i&&o&&s)return er.f&&es(e),!0}return!1}var el=e.i(821061),eu=e.i(304661),ec=e.i(728469),ed=e.i(473753);function ep(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}var eh=e.i(339435),ef=e.i(923288),em=e.i(45968),eg=e.i(111139);function ey(e,t=[]){return[e,t]}function e_(e,t){let[r,n]=e;return[r,[...n,t]]}function ev(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function eb(e){let t=(0,ef.y)(L.f);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let eS={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ew(e){return e in eS?eS[e]:e}function eE(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function ex(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,eg.D)()).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,eh._)(n)},...i&&{trace:i}}}var ek=e.i(373382);function eT(e,t,r,n=(0,eu.j)()){let i=n&&(0,eu.e)(n);i&&(er.f&&en.h.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[D.x]:t,[D.B]:r}))}function eR(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[D.B],i=r[D.x];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}function eC(){return(0,ef.y)((0,ef.t)()).segmentSpanCaptureStrategy}function eM(e){return"stream"===e.getOptions().traceLifecycle}var eI=e.i(242222);class eO{constructor(e={}){this._traceId=e.traceId||(0,ek.u)(),this._spanId=e.spanId||(0,ek.d)(),this._startTime=e.startTimestamp||(0,j.R)(),this._links=e.links,this._attributes={},this.setAttributes({[D.u]:"manual",[D.o]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?eu.n:eu.i}}setAttribute(e,t){return this._frozen||(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===D.U&&void 0!==t&&(0,eI.E)(this)&&(0,eI.a)(this)),this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=(0,eu.k)(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen||(this._name=e,(0,eI.E)(this)||this.setAttribute(D.U,"custom")),this}end(e){if(this._endTime){this._frozen=(0,eI.I)(this);return}this._endTime=(0,eu.k)(e),function(e){if(!er.f)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,eu.l)(e),{spanId:n}=e.spanContext(),i=(0,eu.e)(e)===e,o=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;en.h.log(o)}(this),this._onSpanEnded(),this._frozen=(0,eI.I)(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[D.o],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eu.M)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[D.u],profile_id:this._attributes[D.q],exclusive_time:this._attributes[D._],measurements:eR(this._events),is_segment:this._isStandaloneSpan&&(0,eu.e)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eu.e)(this).spanContext().spanId:void 0,links:(0,eu.Q)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,eu.e)(this),status:(0,eu.X)(this._status),attributes:(0,eu.t)(this._attributes,this._status),links:(0,eu.D)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){if(this._frozen)return this;er.f&&en.h.log("[Tracing] Adding an event to span:",e);let n=eA(t)?t:r||(0,j.R)(),i=eA(t)?{}:t||{},o={name:e,time:(0,eu.k)(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,$.l)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=(0,eu.e)(this),r=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,$.l)();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let r=(0,ed.O)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date((0,eg.D)()).toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,eh._)(n)}},{beforeSendSpan:s,ignoreSpans:a}=t?.getOptions()||{},l=a?.length?e.filter(e=>{let t=(0,eu.l)(e);return!ea({description:t.description,op:t.op,attributes:t.data},a)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=s?e=>{let t=(0,eu.l)(e),r=ep(s)?t:s(t);return r||((0,eu.x)(),t)}:eu.l,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return ey(o,d)}([this],e)):(er.f&&en.h.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!r){let e=eC();if(e){let r=(0,eI.C)(this).scope||(0,$.d)();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),r)}return}if(e&&eM(e))return void e.emit("afterSegmentSpanEnd",this);let n=(0,eI.C)(this).scope||(0,$.d)(),i=eC();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),n);else{let e=this._convertSpanToTransaction();e&&n.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!eN((0,eu.l)(this)))return;this._name||(er.f&&en.h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:r}=(0,eI.C)(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of(0,eu.C)(this)){var o;if(t===this||(o=t)instanceof eO&&o.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let r=(0,eu.l)(t);eN(r)&&(e.onSpanCaptured?.(t),i.push(r))}let s=this._attributes[D.U];delete this._attributes[D.j];let a=!1;
32i.forEach(e=>{delete e.data[D.j],e.op?.startsWith("gen_ai.")&&(a=!0)});let l={contexts:{trace:(0,eu.K)(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,dynamicSamplingContext:(0,ed.O)(this),hasGenAiSpans:a},request:n,...s&&{transaction_info:{source:s}}},u=eR(this._events);return u&&Object.keys(u).length&&(er.f&&en.h.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function eA(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function eN(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var eP=e.i(776710),eD=e.i(301263),eL=e.i(602309);e.i(450574);var ej=e.i(170637),e$=e.i(132584);function eF(e){let t=ez();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,eu.k)(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:r,parentSpan:n}=e;return(e.scope?t=>(0,$.h)(e.scope,t):void 0!==n?e=>eU(n,e):e=>e())(()=>{var i,o;let s,a=(0,$.d)(),l=function(e,t){if(t)return t;if(null===t)return;let r=(0,el.c)(e);if(!r)return;let n=(0,$.l)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,eu.e)(r):r}(a,n),u=(0,$.l)();return e.onlyIfParent&&!l?(i=a,o=u,o?.recordDroppedEvent("no_parent_span","span"),s=new ec.f({traceId:i.getPropagationContext().traceId}),(0,eI.q)(s,i,(0,$.V)()),s):function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var i,o;let s,a,l=(0,$.V)();if(!(0,ei.f)()){let t=n.getPropagationContext(),i=e?e.spanContext().traceId:t.traceId,o=new ec.f({traceId:i});return e&&!r&&(0,eu.P)(e,o),(0,eI.q)(o,n,l),o}let u=(0,$.l)();if(i=u,o=t,s=i?.getOptions().ignoreSpans,i&&eM(i)&&s?.length&&ea({description:o.name||"",op:o.attributes?.[D.o]||o.op,attributes:o.attributes},s)){eB(n)||u?.recordDroppedEvent("ignored","span");let t=new ec.f({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});return e&&!r&&(0,eu.P)(e,t),(0,eI.q)(t,n,l),t}if(e&&!r)a=function(e,t,r,n){let{spanId:i,traceId:o}=e.spanContext(),s=eB(t),a=!s&&(0,eu.S)(e),l=a?new eO({...r,parentSpanId:i,traceId:o,sampled:a}):new ec.f({traceId:o});(0,eu.P)(e,l),(0,eI.q)(l,t,n);let u=(0,$.l)();return u&&(eM(u)&&(0,ec.p)(l)&&((0,ec.p)(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),r.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,n,t,l),(0,eu.P)(e,a);else if(e){let r=(0,ed.O)(e),{traceId:i,spanId:o}=e.spanContext(),s=(0,eu.S)(e);a=eW({traceId:i,parentSpanId:o,...t},n,l,s),(0,ed.m)(a,r)}else{let{traceId:e,dsc:r,parentSpanId:i,sampled:o}=n.getPropagationContext();a=eW({traceId:e,parentSpanId:i,...t},n,l,o),r&&(0,ed.m)(a,r)}return!function(e){if(!er.f)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,eu.l)(e),{spanId:i}=e.spanContext(),o=(0,eu.S)(e),s=(0,eu.e)(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!a){let{op:e,description:t}=(0,eu.l)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}en.h.log(`${l}
33  ${u.join("\n  ")}`)}(a),a}({parentSpan:l,spanArguments:t,forceTransaction:r,scope:a})})}(e)}function eU(e,t){let r=ez();return r.withActiveSpan?r.withActiveSpan(e,t):(0,$.h)(r=>((0,el._)(r,e||void 0),t(r)))}function eB(e=(0,$.d)()){let t=ez();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function ez(){let e=(0,ef.t)();return(0,eD.f)(e)}function eW(e,t,r,n){let i=(0,$.l)(),o=i?.getOptions()||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};i?.emit("beforeSampling",a,{decision:!1});let l=a.parentSampled??n,u=a.spanAttributes,c=t.getPropagationContext(),d=eB(t),[p,h,f]=d?[!1]:function(e,t,r){let n,i;if(!(0,ei.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let o=(0,ej.f)(n);if(void 0===o)return er.f&&en.h.warn(`[Tracing] Discarding root span because of 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];if(!o)return er.f&&en.h.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,i];let s=r<o;return!s&&er.f&&en.h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,o,i]}(o,{name:s,parentSampled:l,attributes:u,normalizedRequest:r.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,ej.f)(c.dsc?.sample_rate)},c.sampleRand),m=new eO({...e,attributes:{[D.U]:"custom",[D.s]:void 0!==h&&f?h:void 0,...u},sampled:p});return p||!i||d||(er.f&&en.h.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",eM(i)?"span":"transaction")),(0,eI.q)(m,t,r),i&&i.emit("spanStart",m),m}function eq(e){return(0,ec.p)(e)&&"ignored"===e.dropReason}let eH={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function eV(e,t={}){let r,n,i,o=new Map,s=!1,a="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=eH.idleTimeout,finalTimeout:d=eH.finalTimeout,childSpanTimeout:p=eH.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:f=!0}=t,m=(0,$.l)(),g=(0,$.d)();if(!m||!(0,ei.f)()){let e=new ec.f({traceId:g.getPropagationContext().traceId});return(0,eI.q)(e,g,(0,$.V)()),e}let y=(0,eu.j)(),_=(r=eF(e),(0,el._)((0,$.d)(),r),er.f&&en.h.log("[Tracing] Started span is an i
33dle span"),r);function v(){n&&(clearTimeout(n),n=void 0)}function b(){i&&(clearTimeout(i),i=void 0)}function S(e){v(),n=setTimeout(()=>{!s&&0===o.size&&l&&(a="idleTimeout",_.end(e))},c)}function w(e){b(),i=setTimeout(()=>{!s&&l&&(a="heartbeatFailed",_.end(e))},p)}function E(e){s=!0,o.clear(),u.forEach(e=>e()),(0,el._)(g,y);let t=(0,eu.l)(_),{start_timestamp:r}=t;if(!r)return;t.data[D.i]||_.setAttribute(D.i,a);let n=t.status;n&&"unknown"!==n||_.setStatus({code:eP.b}),en.h.log(`[Tracing] Idle span "${t.op}" finished`);let i=(0,eu.C)(_).filter(e=>e!==_),l=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:eP.r,message:"cancelled"}),t.end(e),er.f&&en.h.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eu.l)(t),i=n<=e,o=r-n<=(d+c)/1e3;if(er.f){let e=JSON.stringify(t,void 0,2);i?o||en.h.log("[Tracing] Discarding span since it finished after idle span final timeout",e):en.h.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,eu.V)(_,t),l++)}),l>0&&_.setAttribute("sentry.idle_span_discarded_spans",l)}return _.end=new Proxy(_.end,{apply(e,t,r){if(h&&h(_),(0,ec.p)(t))return;let[n,...i]=r,o=n||(0,j.R)(),s=(0,eu.k)(o),a=(0,eu.C)(_).filter(e=>e!==_),l=(0,eu.l)(_);if(!a.length||!f)return E(s),Reflect.apply(e,t,[s,...i]);let u=m.getOptions().ignoreSpans,c=a?.reduce((e,t)=>{let r=(0,eu.l)(t);return!r.timestamp||u&&ea({description:r.description,op:r.op,attributes:r.data},u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),p=l.start_timestamp,g=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(s,c||1/0)));return E(g),Reflect.apply(e,t,[g,...i])}}),u.push(m.on("spanStart",e=>{var t;!(s||e===_||(0,eu.l)(e).timestamp||e instanceof eO&&e.isStandaloneSpan())&&(0,eu.C)(_).includes(e)&&(t=e.spanContext().spanId,v(),o.set(t,!0),w((0,j.R)()+p/1e3))})),u.push(m.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,o.has(t)&&o.delete(t),0===o.size&&(S((0,j.R)()+c/1e3),b())}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===_&&(l=!0,S(),o.size&&w())})),t.disableAutoFinish||S(),setTimeout(()=>{s||(_.setStatus({code:eP.r,message:"deadline_exceeded"}),a="finalTimeout",_.end())},d),_}let eG="http.url",eJ="sentry.segment.name",eY="sentry.transaction",eQ="url.full",eX="url.path",eK="url.template";function eZ(e){return"isRelative"in e}function e0(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function e1(e){if(eZ(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function e2(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function e3(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(","),s="";if(t&&-1!==o){let t=e.slice(o+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${s?`,${s}`:""}`}return e}var e5=e.i(936032);let e6={},e8={};function e4(e,t){return e6[e]=e6[e]||[],e6[e].push(t),()=>{let r=e6[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function e7(e,t){if(!e8[e]){e8[e]=!0;try{t()}catch(t){er.f&&en.h.error(`Error while instrumenting ${e}`,t)}}}function e9(e,t){let r=e&&e6[e];if(r)for(let n of r)try{n(t)}catch(t){er.f&&en.h.error(`Error while triggering instrumentation handler.
34Type: ${e}
35Name: ${(0,e5.n)(n)}
36Error:`,t)}}let te=null;function tt(e){let t="error";e4(t,e),e7(t,tr)}function tr(){te=L.f.onerror,L.f.onerror=function(e,t,r,n,i){return e9("error",{column:n,error:i,line:r,msg:e,url:t}),!!te&&te.apply(this,arguments)},L.f.onerror.__SENTRY_INSTRUMENTED__=!0}let tn=null;function ti(e){let t="unhandledrejection";e4(t,e),e7(t,to)}function to(){tn=L.f.onunhandledrejection,L.f.onunhandledrejection=function(e){return e9("unhandledrejection",e),!tn||tn.apply(this,arguments)},L.f.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let ts=!1,ta=L.f;function tl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let tu=L.f;function tc(e){let t="history";e4(t,e),e7(t,td)}function td(){function e(e){return function(...r){let n=r.length>2?r[2]:void 0;if(n){let i=t,o=function(e){try{return new URL(e,tu.location.origin).toString()}catch{return e}}(String(n));if(t=o,i===o)return e.apply(this,r);e9("history",{from:i,to:o})}return e.apply(this,r)}}tu.addEventListener("popstate",()=>{let e=tu.location.href,r=t;t=e,r===e||e9("history",{from:r,to:e})}),"history"in ta&&ta.history&&((0,H.Q)(tu.history,"pushState",e),(0,H.Q)(tu.history,"replaceState",e))}let tp={};try{"u">typeof Node&&(tp.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(tp.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,tp.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,tp.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,tp.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(tp.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function th(e,t,r){let n=tp[t];if(n)try{return n.call(e,r)}catch{}let i=e[t];return"function"==typeof i?i.call(e,r):i}function tf(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=[],o=0,s=0,a=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<5&&(r=function(e,t){let r=[],n=th(e,"tagName");if(!n)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=th(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(t=>th(e,"getAttribute",t)).map(t=>[t,th(e,"getAttribute",t)]):null;
36if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{let t=th(e,"id");t&&r.push(`#${t}`);let n=th(e,"className");if(n&&(0,J.Z)(n))for(let e of n.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=th(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,a),"html"!==r&&(!(o>1)||!(s+3*i.length+r.length>=l)));)i.push(r),s+=r.length,n=th(n,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let tm="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tg=(e,t,r,n)=>{let i,o;return s=>{if(t.value>=0&&(s||n)&&((o=t.value-(i??0))||void 0===i)){var a;i=t.value,t.delta=o,a=t.value,t.rating=a>r[1]?"poor":a>r[0]?"needs-improvement":"good",e(t)}}},ty=(e=!0)=>{let t=tu.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},t_=()=>{let e=ty();return e?.activationStart??0};function tv(e,t,r){tu.document&&tu.addEventListener(e,t,r)}function tb(e,t,r){tu.document&&tu.removeEventListener(e,t,r)}let tS=-1,tw=new Set,tE=e=>{if(("pagehide"===e.type||tu.document?.visibilityState==="hidden")&&tS>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of tw)e();isFinite(tS)||(tS="visibilitychange"===e.type?e.timeStamp:0,tb("prerenderingchange",tE,!0))}},tx=()=>{if(tu.document&&tS<0){let e=t_();tS=(tu.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(tu.document?.visibilityState!=="hidden"||tu.document?.prerendering?1/0:0),tv("visibilitychange",tE,!0),tv("pagehide",tE,!0),tv("prerenderingchange",tE,!0)}return{get firstHiddenTime(){return tS},onHidden(e){tw.add(e)}}},tk=(e,t=-1)=>{let r=ty(),n="navigate";return r&&(tu.document?.prerendering||t_()>0?n="prerender":tu.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},tT=new WeakMap;function tR(e,t){try{return tT.get(e)||tT.set(e,new t),tT.get(e)}catch(e){return new t}}class tC{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let tM=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},tI=e=>{let t=!1;return()=>{t||(e(),t=!0)}},tO=e=>{tu.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},tA=[1800,3e3],tN=[.1,.25],tP=0,tD=1/0,tL=0,tj=e=>{e.forEach(e=>{e.interactionId&&(tD=Math.min(tD,e.interactionId),tP=(tL=Math.max(tL,e.interactionId))?(tL-tD)/7+1:0)})},t$=()=>r?tP:performance.interactionCount||0,tF=0;class tU{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){tF=t$(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((t$()-tF)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let tB=e=>{let t=tu.requestIdleCallback||tu.setTimeout;tu.document?.visibilityState==="hidden"?e():(tv("visibilitychange",e=tI(e),{once:!0,capture:!0}),tv("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),tb("visibilitychange",e,{capture:!0}),tb("pagehide",e,{capture:!0})}
36))},tz=[200,500];class tW{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let tq=[2500,4e3],tH=[800,1800],tV=e=>{tu.document?.prerendering?tO(()=>tV(e)):tu.document?.readyState!=="complete"?addEventListener("load",()=>tV(e),!0):setTimeout(e)},tG={},tJ={};function tY(e,t=!1){return t5("cls",e,t0,n,t)}function tQ(e,t=!1){return t5("lcp",e,t1,i,t)}function tX(e){return t5("inp",e,t3,s)}function tK(e,t){var r;let n;return t6(e,t),tJ[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),tM(r,e=>{tZ(r,{entries:e})},n),tJ[e]=!0),t8(e,t)}function tZ(e,t){let r=tG[e];if(r?.length)for(let n of r)try{n(t)}catch(t){tm&&en.h.error(`Error while triggering instrumentation handler.
37Type: ${e}
38Name: ${(0,e5.n)(n)}
39Error:`,t)}}function t0(){return((e,t={})=>{((e,t={})=>{tO(()=>{let r,n=tx(),i=tk("FCP"),o=tM("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-t_(),0),i.entries.push(t),r(!0)))});o&&(r=tg(e,i,tA,t.reportAllChanges))})})(tI(()=>{let r,n=tk("CLS",0),i=tx(),o=tR(t,tC),s=e=>{for(let t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=tM("layout-shift",s);a&&(r=tg(e,n,tN,t.reportAllChanges),i.onHidden(()=>{s(a.takeRecords()),r(!0)}),tu?.setTimeout?.(r))}))})(e=>{tZ("cls",{metric:e}),n=e},{reportAllChanges:!0})}function t1(){return((e,t={})=>{tO(()=>{let r,n=tx(),i=tk("LCP"),o=tR(t,tW),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))s&&(o._processEntry(s),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-t_(),0),i.entries=[s],r()))},a=tM("largest-contentful-paint",s);if(a){r=tg(e,i,tq,t.reportAllChanges);let n=tI(()=>{s(a.takeRecords()),a.disconnect(),r(!0)}),o=e=>{e.isTrusted&&(tB(n),tb(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])tv(e,o,{capture:!0})}})})(e=>{tZ("lcp",{metric:e}),i=e},{reportAllChanges:!0})}function t2(){return((e,t={})=>{let r=tk("TTFB"),n=tg(e,r,tH,t.reportAllChanges);tV(()=>{let e=ty();e&&(r.value=Math.max(e.responseStart-t_(),0),r.entries=[e],n(!0))})})(e=>{tZ("ttfb",{metric:e}),o=e})}function t3(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=tx();tO(()=>{let i;"interactionCount"in performance||r||(r=tM("event",tj,{type:"event",buffered:!0,durationThreshold:0}));let o=tk("INP"),s=tR(t,tU),a=e=>{tB(()=>{for(let t of e)s._processEntry(t);let t=s._estimateP98LongestInteraction();t&&t._latency!==o.value&&(o.value=t._latency,o.entries=t.entries,i())})},l=tM("event",a,{durationThreshold:t.durationThreshold??40});i=tg(e,o,tz,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(l.takeRecords()),i(!0)}))})})(e=>{tZ("inp",{metric:e}),s=e})}function t5(e,t,r,n,i=!1){let o;return t6(e,t),tJ[e]||(o=r(),tJ[e]=!0),n&&t({metric:n}),t8(e,t,i?o:void 0)}function t6(e,t){tG[e]=tG[e]||[],tG[e].push(t)}function t8(e,t,r){return()=>{r&&r();let n=tG[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function t4(e){return"number"==typeof e&&isFinite(e)}function t7(e,t,r,{...n}){let i=(0,eu.l)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),eU(e,()=>{let e=eF({startTime:t,...n});return e&&e.end(r),e})}function t9(e){let t,r=(0,$.l)();if(!r)return;let{name:n,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:l}=r.getOptions(),{userInfo:u}=r.getDataCollectionOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,$.d)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return eF({name:n,attributes:{release:a,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":tu.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function re(){return tu.addEventListener&&tu.performance}function rt(e){return e/1e3}function rr(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function rn(e,t){let r,n,i=!1;function o(e){!i&&n&&t(e,n.spanContext().spanId,n),i=!0}tv("visibilitychange",r=e=>{("pagehide"===e.type||tu.document?.visibilityState==="hidden")&&(()=>{o("pagehide")})()},{capture:!0,once:!0}),tv("pagehide",r,{capture:!0,once:!0});let s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),s(),a())}),a=e.on("afterStartPageLoadSpan",e=>{n=e,a()})}function ri(e){return null!=e&&e>0&&e<=6e4}function ro(e){return e?(((0,j.D)()||performance.timeOrigin)+e)/1e3:e}function rs(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
39return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,j.D)()||re()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":ro(e.redirectStart),"http.request.redirect_end":ro(e.redirectEnd),"http.request.worker_start":ro(e.workerStart),"http.request.fetch_start":ro(e.fetchStart),"http.request.domain_lookup_start":ro(e.domainLookupStart),"http.request.domain_lookup_end":ro(e.domainLookupEnd),"http.request.connect_start":ro(e.connectStart),"http.request.secure_connection_start":ro(e.secureConnectionStart),"http.request.connection_end":ro(e.connectEnd),"http.request.request_start":ro(e.requestStart),"http.request.response_start":ro(e.responseStart),"http.request.response_end":ro(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let ra=0,rl={};function ru(){a=void 0,l=void 0,rl={}}function rc(e,t,r,n,i=r){var o;let s=t["secureConnection"===(o=r)?"connectEnd":"fetch"===o?"domainLookupStart":`${o}End`],a=t[`${r}Start`];a&&s&&t7(e,n+rt(a),n+rt(s),{op:`browser.${i}`,name:t.name,attributes:{[D.u]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let rd="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rp=[];function rh(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function rf(e,t,r){if(r[t.name]){er.f&&en.h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,rp.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),rp.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),er.f&&en.h.log(`Integration installed: ${t.name}`)}function rm(e,t){let r="fetch",n=e4(r,e);return e7(r,()=>rg(void 0,t)),n}function rg(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ta))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tl(ta.fetch))return!0;let e=!1,t=ta.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tl(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){er.f&&en.h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,H.Q)(L.f,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:rb(t),method:rv(r,"method")?String(r.method).toUpperCase():(0,J.G)(t)&&rv(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:rb(t),method:rv(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:1e3*(0,j.R)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,J.G)(t))return new Headers(t.headers)}catch{}}(r)};return e||e9("fetch",{...s}),t.apply(L.f,r).then(async t=>(e?e(t):e9("fetch",{...s,endTimestamp:1e3*(0,j.R)(),response:t}),t),e=>{e9("fetch",{...s,endTimestamp:1e3*(0,j.R)(),error:e}),(0,J.b)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,H.O)(e,"framesToPop",1));let t=(0,$.l)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&(0,J.b)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,H.O)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function ry(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}
39finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function r_(e){let t;try{t=e.clone()}catch{return}ry(t,()=>{e9("fetch-body-resolved",{endTimestamp:1e3*(0,j.R)(),response:e})})}function rv(e,t){return(0,J.t)(e)&&!!e[t]}function rb(e){return"string"==typeof e?e:e?rv(e,"url")?e.url:e.toString?e.toString():"":""}let rS=new WeakMap,rw=new WeakMap,rE=["text/event-stream","application/x-ndjson","application/stream+json"];function rx(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==P.default?P.default:0))||(e=L.f.process,e?.type==="renderer"))}let rk=[],rT=new Map,rR=new Map,rC={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},rM=({metric:e})=>{if(void 0==e.value)return;let t=rt(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&rC[t.name]);if(!r)return;let{interactionId:n}=r,i=rC[r.name],o=rt((0,j.D)()+r.startTime),s=(0,eu.j)(),a=s?(0,eu.e)(s):void 0,l=null!=n?rT.get(n):void 0,u=l?.span||a,c=u?(0,eu.l)(u).description:(0,$.d)().getScopeData().transactionName,d=t9({name:l?.elementName||tf(r.target),transaction:c,attributes:{[D.u]:"auto.http.browser.inp",[D.o]:`ui.interaction.${i}`,[D._]:r.duration},startTime:o});d&&(d.addEvent("inp",{[D.B]:"millisecond",[D.x]:e.value}),d.end(o+t))};function rI(e){let{name:t,op:r,origin:n,metricName:i,value:o,attributes:s,parentSpan:a,reportEvent:l,startTime:u,endTime:c}=e,d=(0,$.d)().getScopeData().transactionName,p={[D.u]:n,[D.o]:r,[D._]:0,[`browser.web_vital.${i}.value`]:o,[eY]:d,[eJ]:d,"user_agent.original":tu.navigator?.userAgent,...s};a&&(0,eu.Z)(a).attributes?.[D.o]==="pageload"&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),l&&(p[`browser.web_vital.${i}.report_event`]=l);let h=eF({name:t,attributes:p,startTime:u,parentSpan:a});h&&h.end(c??u)}let rO="WebVitals",rA="sentry_previous_trace";function rN(e){return 1===e.traceFlags}function rP(e={}){let t=e.client||(0,$.l)();if(!(0,G.B)()||!t)return{};let r=(0,ef.t)(),n=(0,eD.f)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,$.d)(),o=e.span||(0,eu.j)(),s=(0,ec.p)(o)&&!(0,ei.f)(t.getOptions());if(!o&&(0,$.K)())return{};let a=o&&!s?(0,eu.N)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,e$.J)(t,n,r)}(i),l=o?(0,ed.O)(o):(0,ed.H)(t,i),u=(0,eL.N)(l);if(!e$.v.test(a))return en.h.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":a,baggage:u};return e.propagateTraceparent&&(c.traceparent=o&&!s?(0,eu.o)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,e$.z)(t,n,r)}(i)),c}function rD(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(eL.p))}function rL(e,t,r,n,i){let o={url:W(e3(e),i),type:"fetch","http.method":r,[D.u]:n,[D.o]:"http.client"};return t&&(eZ(t)||(o[eG]=W(e3(t.href),i),o[eQ]=W(e3(t.href),i),o["server.address"]=t.host),t.search&&(o["http.query"]=q(t.search,i)),t.hash&&(o["http.fragment"]=t.hash)),o}let rj="__sentry_xhr_v3__";function r$(e){e4("xhr",e),e7("xhr",rF)}function rF(){if(!tu.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,j.R)(),o=(0,J.Z)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,J.Z)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!s)return e.apply(t,r);t[rj]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[rj];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}e9("xhr",{endTimestamp:1e3*(0,j.R)(),startTimestamp:i,xhr:t,virtualError:n}),n=void 0,t.removeEventListener("readystatechange",a)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(a(),e.apply(t,r))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,o=t[rj];return o&&(0,J.Z)(n)&&(0,J.Z)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[rj];return n&&(void 0!==r[0]&&(n.body=r[0]),e9("xhr",{startTimestamp:1e3*(0,j.R)(),xhr:t})),e.apply(t,r)}})}let rU=Symbol.for("sentry__originalRequestBody");function rB(e){return new URLSearchParams(e).toString()}function rz(e,t=en.h){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[rB(e)];if(!e)return[void 0]}catch(r){return tm&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tm&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function rW(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][rU];if(void 0!==t)return t}}function rq(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return tm&&en.h.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
39{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function rH(e){try{return new URL(e,K.location.origin).href}catch{return}}function rV(e){try{return new Headers(e)}catch{return}}let rG={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rJ(e,t){let{url:r}=(0,eu.l)(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(i);if(eM(t)){let t=e.end.bind(e);e.end=e=>{let r=e??(0,j.R)(),o=!1,s=()=>{o||(o=!0,setTimeout(i),t(r),clearTimeout(a))};n=s;let a=setTimeout(s,300)}}let i=tK("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(rs(t)),n())})})}let rY=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function rQ(){let e=K.navigator;return!!e?.userAgent&&rY.test(e.userAgent)}let rX={...eH,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...rG};function rK(e,t,r){e.emit("startPageLoadSpan",t,r),(0,$.d)().setTransactionName(t.name);let n=e[r2];return n&&e.emit("afterStartPageLoadSpan",n),n}function rZ(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:n}),e.emit("startNavigationSpan",t,{isRedirect:i,url:n});let o=(0,$.d)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...et(),url:n}}),e[r2]}function r0(e){let t=K.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function r1(e){let t=K.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let r2="_sentry_idleSpan";function r3(e){try{return new URL(e,tu.location.origin).toString()}catch{return e}}let r5="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,r6=L.f,r8=null,r4=new Map,r7=new Map;function r9(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function ne(e){if(r4.has(e))return r4.get(e)??null;try{let t=new RegExp(e);return r4.set(e,t),t}catch(t){return r5&&en.h.warn("Could not compile regex",{regexString:e,error:t}),null}}function nt(){if(!r6?._sentryRouteManifest||"string"!=typeof r6._sentryRouteManifest)return null;let e=r6._sentryRouteManifest;if(r8&&v===e)return r8;r4.clear(),r7.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return r8=t,v=e,t}catch{return r5&&en.h.warn("Could not extract route manifest"),null}}let nr=e=>{let t=nt();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(r7.has(r))return r7.get(r);let{staticRoutes:n,dynamicRoutes:i}=t;if(!Array.isArray(n)||!Array.isArray(i))return;let o=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=ne(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=ne(t.regex);i?.test(r)&&n.push(t.path)}}return n})(r,n,i).sort((e,t)=>r9(e)-r9(t))[0];return r7.set(r,o),o};function nn(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function ni(e,t,r){e.setAttributes({[eX]:t,[eQ]:W(r3(r))})}let no="incomplete-app-router-transaction",ns="router-patch",na={current:void 0},nl=L.f,nu=L.f;function nc(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let nd=new WeakSet;function np(e,t,r){nd.has(t)||(nd.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,o){if("router-patch"!==ns)return t.apply(i,o);let s=no,a={[D.o]:"navigation",[D.u]:"auto.navigation.nextjs.app_router_instrumentation",[D.U]:"url"},l=o[0],u=P.default.env._sentryBasePath??nu._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(s=nn(nc(c)),a["navigation.type"]="router.push"):"replace"===n?(s=nn(nc(c)),a["navigation.type"]="router.replace"):"back"===n?a["navigation.type"]="router.back":"forward"===n&&(a["navigation.type"]="router.forward");let d=nr(s),p="back"===n||"forward"===n?void 0:r3(c);return r.current=rZ(e,{name:d??s,attributes:{...a,[D.U]:d?"route":"url",...d&&{[eK]:d}}},p?{url:p}:void 0),t.apply(i,o)}}))}))}var nh=e.i(88619),nf=e.i(591401);function nm(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:nf.f})),i.version=nf.f)}function ng(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}let ny=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/];function n_(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ny],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nv(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return er.f&&en.h.error(`Cannot extract url for event ${(0,V.N)(e)}`),null}}let nb=new WeakMap;function nS(e,t){let r=(0,e5.s)(e),n=(0,e5.s)(t);if(!r&&!n)return!0;
39if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function nw(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function nE(e){return e.exception?.values?.[0]}var nx=e.i(373250),nk=e.i(759075),nT=e.i(571993);let nR=0,nC={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function nM(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function nI(e,t){var r,n,i,o,s;let a,l,u=t??(s=e,nO().get(s))??[];if(0===u.length)return;let c=e.getOptions(),d=(r=c._metadata,n=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,a={},r?.sdk&&(a.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(a.dsn=(0,eh._)(i)),ey(a,[(l=o?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...rx()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nO().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}function nO(){return(0,ef.u)("clientToLogBufferMap",()=>new WeakMap)}function nA(e){let t=Object(e),r=t.isWellFormed,n=t.toWellFormed;return"function"==typeof r&&"function"==typeof n?r.call(e)?e:n.call(e):e}function nN(e,t){var r,n,i,o,s;let a,l,u=t??(s=e,nP().get(s))??[];if(0===u.length)return;let c=e.getOptions(),d=(r=c._metadata,n=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,a={},r?.sdk&&(a.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(a.dsn=(0,eh._)(i)),ey(a,[(l=o?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...rx()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nP().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}function nP(){return(0,ef.u)("clientToMetricBufferMap",()=>new WeakMap)}var nD=e.i(341041),nL=e.i(580611);function nj(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let n$=Symbol.for("SentryBufferFullError");function nF(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,nL.K)(n$);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,nL.Y)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>nj(setTimeout(()=>t(!1),e)))]):r}}}function nU(e,t,r=(0,eg.D)()){return(e[t]||e.all||0)>r}function nB(e,{statusCode:t,headers:r},n=(0,eg.D)()){let i={...e},o=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=(0,eg.D)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}var nz=e.i(318746),nW=e.i(213186);let nq={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},nH="Not capturing exception because it's already been captured.",nV="Discarded session because of missing or non-string release",nG=Symbol.for("SentryInternalError"),nJ=Symbol.for("SentryDoNotSendEventError");function nY(e){return{message:e,[nG]:!0}}function nQ(e){return{message:e,[nJ]:!0}}function nX(e){return(0,J.t)(e)&&nG in e}function nK(e){return(0,J.t)(e)&&nJ in e}function nZ(e,t,r,n,i){let o,s=0,a=!1;e.on(r,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,t=>{if((s+=n(t))>=8e5)i(e);else if(!a){let t=e.getOptions()._flushInterval??5e3;t>0&&(a=!0,o=nj(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class n0{constructor(e){var t,r,n,i;let o,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nF(e.transportOptions?.bufferSize??64),this._dataCollection=(o=null!=(t=e).dataCollection?nq:!0===t.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
39,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:F},httpHeaders:{request:{deny:F},response:{deny:F}},httpBodies:[],urlQueryParams:{deny:F},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},{userInfo:(s=t.dataCollection??{}).userInfo??o.userInfo,cookies:s.cookies??o.cookies,httpHeaders:function(e,t){return void 0===e?{...t.httpHeaders}:"boolean"==typeof e||"allow"in e||"deny"in e?{request:e,response:e}:{request:e.request??t.httpHeaders.request,response:e.response??t.httpHeaders.response}}(s.httpHeaders,o),httpBodies:s.httpBodies??o.httpBodies,urlQueryParams:s.urlQueryParams??s.queryParams??o.urlQueryParams,graphQL:{document:s.graphQL?.document??o.graphQL.document,variables:s.graphQL?.variables??o.graphQL.variables},genAI:{inputs:s.genAI?.inputs??o.genAI.inputs,outputs:s.genAI?.outputs??o.genAI.outputs},databaseQueryData:s.databaseQueryData??o.databaseQueryData,stackFrameVariables:s.stackFrameVariables??o.stackFrameVariables,frameContextLines:s.frameContextLines??o.frameContextLines}),e.dsn?this._dsn=(0,eh.p)(e.dsn):er.f&&en.h.warn("No DSN provided, client will not send events."),this._dsn){let t,o,s,a=(r=this._dsn,n=e.tunnel,i=e._metadata?e._metadata.sdk:void 0,n||`${t=r.protocol?`${r.protocol}:`:"",o=r.port?`:${r.port}`:"",`${t}//${r.host}${o}${r.path?`/${r.path}`:""}/api/`}${r.projectId}/envelope/?${s={sentry_version:"7"},r.publicKey&&(s.sentry_key=r.publicKey),i&&(s.sentry_client=`${i.name}/${i.version}`),new URLSearchParams(s).toString()}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:a})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&nZ(this,"afterCaptureLog","flushLogs",n6,nI),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&nZ(this,"afterCaptureMetric","flushMetrics",n5,nN)}captureException(e,t,r){let n=(0,V.c)();if((0,V.n)(e))return er.f&&en.h.log(nH),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,V.c)(),...r},o=(0,J.S)(e)?e:String(e),s=(0,J.n)(e),a=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>a.then(e=>this._captureEvent(e,i,n)),s?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,V.c)();if(t?.originalException&&(0,V.n)(t.originalException))return er.f&&en.h.log(nH),n;let i={event_id:n,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,a=o.capturedSpanIsolationScope,l=n1(e.type);return this._process(()=>this._captureEvent(e,i,s||r,a),l),i.event_id}captureSession(e){this.sendSession(e),(0,nD.d)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),rf(this,e,this._integrations),t||rh(this,[e])}sendEvent(e,t={}){var r,n,i;let o,s,a;this.emit("beforeSendEvent",e,t);let l=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||eM(t))return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,eu.g)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...rx()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:r}]}(e,this),u=(r=this._dsn,n=this._options._metadata,i=this._options.tunnel,o=eE(n),s=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk),a=ex(e,o,i,r),delete e.sdkProcessingMetadata,ey(a,[[{type:s},e]]));for(let e of t.attachments||[])u=e_(u,function(e){let t="string"==typeof e.data?eb(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));l&&(u=e_(u,l)),this.sendEnvelope(u).then(t=>
39this.emit("afterSendEvent",e,t))}sendSession(e){var t,r,n;let i,{release:o,environment:s=nx.f}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!o){er.f&&en.h.warn(nV);return}t.release=t.release||o,t.environment=t.environment||s,e.attrs=t}else{if(!e.release&&!o){er.f&&en.h.warn(nV);return}e.release=e.release||o,e.environment=e.environment||s}this.emit("beforeSendSession",e);let a=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,i=eE(r),ey({sent_at:new Date((0,eg.D)()).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,eh._)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(a)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;er.f&&en.h.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return er.f&&en.h.error("Error while sending envelope:",e),{}}return er.f&&en.h.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),r.forEach(r=>{r&&rf(e,r,t)}),t),rh(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,nD.d)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),o=this.getIntegrationNames();return!t.integrations&&o.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,nW.H)(i,e,t,r,this,n).then(e=>
39(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,$.i)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ed.H)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,$.d)(),n=(0,$.V)()){return er.f&&n2(e)&&en.h.log(`Captured error event \`${ng(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{er.f&&(nK(e)?en.h.log(e.message):nX(e)?en.h.warn(e.message):en.h.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:o}=i,s=n3(e),a=n2(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:(0,ej.f)(o),d=n1(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),nQ("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,J.l)(e))return e.then(e=>{if(!(0,J.d)(e)&&null!==e)throw nY(r);return e},e=>{throw nY(`${t} rejected with ${e}`)});if(!(0,J.d)(e)&&null!==e)throw nY(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,ignoreSpans:s}=t,a=!ep(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(n2(l)&&i)return i(l,n);if(n3(l)){if(a||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[D.q],exclusive_time:s?.[D._],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&ea({description:t.description,op:t.op,attributes:t.data},s))return null;if(a){let e=a(t);if(e)l=(0,nz.f)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[D.q]:e.profile_id},...e.exclusive_time&&{[D._]:e.exclusive_time}}}},measurements:e.measurements});else(0,eu.x)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&ea({description:e.description,op:e.op,attributes:e.data},s)){!function(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}(r,e);continue}if(a){let r=a(e);r?t.push(r):((0,eu.x)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(o){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw nQ(`${u} returned \`null\`, will not send event.`)}let l=r.getSession()||n.getSession();if(a&&l&&this._updateSessionFromEvent(l,i),a&&"number"==typeof c&&(0,eg.T)()>c)throw this.recordDroppedEvent("sample_rate","error"),nQ(`Discarding event because it's not included in the random sample (sampling rate = ${o})`);if(s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let p=i.transaction_info;return s&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(nK(e)||nX(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),nY(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
40Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===n$&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;er.f&&en.h.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){er.f&&en.h.log("No outcomes to send");return}if(!this._dsn){er.f&&en.h.log("No dsn provided, will not send outcomes");return}er.f&&en.h.log("Sending outcomes:",t);let r=ey((e=this._options.tunnel&&(0,eh._)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,j.i)(),discarded_events:t}]]);this.sendEnvelope(r)}}function n1(e){return"replay_event"===e?"replay":e||"error"}function n2(e){return void 0===e.type}function n3(e){return"transaction"===e.type}function n5(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+n8(e.attributes)}function n6(e){let t=0;return e.message&&(t+=2*e.message.length),t+n8(e.attributes)}function n8(e){if(!e)return 0;let t=0;
40return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*n4(e[0]):(0,J.n)(e)?t+=n4(e):t+=100}),t}function n4(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function n7(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function n9(e){return(0,J.b)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ie(e,t){var r,n;let i,o,s=ir(e,t),a={type:(r=t,!(i=r?.name)&&io(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":i),value:(n=t,o=n?.message,io(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":o?o.error&&"string"==typeof o.error.message?n9(o.error):n9(n):"No error message")};return s.length&&(a.stacktrace={frames:s}),void 0===a.type&&""===a.value&&(a.value="Unrecoverable error caught"),a}function it(e,t){return{exception:{values:[ie(e,t)]}}}function ir(e,t){var r,n;let i=t.stacktrace||t.stack||"",o=(r=t)&&ii.test(r.message)?1:0,s="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,o,s)}catch{}return[]}let ii=/Minified React error #\d+;/i;function io(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function is(e,t,r,n,i){let o;if((0,J.u)(t)&&t.error)return it(e,t.error);if((0,J.U)(t)||(0,J.a)(t)){if("stack"in t){o=it(e,t);let i=o.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){let t=ir(e,r);t.length&&(i.stacktrace={frames:t},(0,V.o)(o,{synthetic:!0}))}}else{let i=t.name||((0,J.U)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=ia(e,s,r,n),(0,V.T)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,J.b)(t)?it(e,t):((0,J.d)(t)||(0,J.z)(t)?o=function(e,t,r,n){let i=(0,$.l)(),o=i?.getOptions().normalizeDepth,s=Object.values(t).find(J.b),a={__serialized__:(0,em.B)(t,o)};if(s)return{exception:{values:[ie(e,s)]},extra:a};let l={exception:{values:[{type:(0,J.z)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,H.v)(e),n=t?"promise rejection":"exception";if((0,J.u)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,J.z)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=ir(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(o=ia(e,t,r,n),(0,V.T)(o,`${t}`,void 0)),(0,V.o)(o,{synthetic:!0}),o)}function ia(e,t,r,n){let i={};if(n&&r){let n=ir(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,V.o)(i,{synthetic:!0})}if((0,J.S)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}class il extends n0{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:K.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});nm(r,"browser",["browser"],K.SENTRY_SDK_SOURCE||"npm"),super(r);let{userInfo:n}=this.getDataCollectionOptions();r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:n?"auto":"never",...r._metadata.sdk.settings});let{sendClientReports:i}=this._options;K.document&&K.document.addEventListener("visibilitychange",()=>{"hidden"===K.document.visibilityState&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",n7)}eventFromException(e,t){var r,n;let i;return r=this._options.stackParser,n=this._options.attachStacktrace,i=is(r,e,t?.syntheticException||void 0,n),(0,V.o)(i),i.level="error",t?.event_id&&(i.event_id=t.event_id),(0,nL.Y)(i)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=ia(e,t,n?.syntheticException||void 0,i);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,nL.Y)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let iu=new Set([]),ic=new Set;function id(){"console"in L.f&&en.u.forEach(function(e){!ic.has(e)&&e in L.f.console&&(ic.add(e),(0,H.Q)(L.f.console,e,function(t){return en.r[e]=t,function(...t){let r=t[0],n=en.r[e],i=iu.size&&"string"==typeof r&&(0,eo.$)(r,iu);i||e9("console",{args:t,level:e}),(!i||er.f&&en.h.isEnabled())&&n?.apply(L.f.console,t)}}))})}function ip(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function ih(e,t){let r=(0,$.l)(),n=(0,$.V)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:(0,j.i)(),...e},a=i?(0,en.D)(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,o))}function im(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function ig(e){e4("dom",e),e7("dom",iy)}function iy(){if(!tu.document)return;let e=e9.bind(null,"dom"),t=i_(e,!0);tu.document.addEventListener("click",t,!1),tu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tu[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,H.Q)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=i_(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,H.Q)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function i_(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;(0,H.O)(r,"_sentryCaptured",!0),i&&!i._sentryId&&(0,H.O)(i,"_sentryId",(0,V.c)());let o="keypress"===r.type?"input":r.type;!function(e){if(e.type!==d)return!1;try{if(!e.target||e.target._sentryId!==p)return!1}catch{}return!0}(r)&&(e({event:r,name:o,global:t}),d=r.type,p=i?i._sentryId:void 0),clearTimeout(c),c=tu.setTimeout(()=>{p=void 0,d=void 0},1e3)}}let iv="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
40Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function ib(e){return function(...t){let r=t[0];return t[0]=ee(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,e5.n)(e)}`}}),e.apply(this,t)}}function iS(e){return function(t){return e.apply(this,[ee(t,{mechanism:{data:{handler:(0,e5.n)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function iw(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,H.Q)(r,e,function(t){let r={mechanism:{data:{handler:(0,e5.n)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,H.R)(t);return n&&(r.mechanism.data.handler=(0,e5.n)(n)),ee(t,r)})}),e.apply(this,t)}}function iE(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function ix(){try{let e=K.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}function ik(e){rd&&en.h.log(`Global Handler attached: ${e}`)}function iT(){let e=(0,$.l)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function iR(e){return Array.isArray(e.errors)}function iC(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...iR(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function iM(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function iI(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?e5.z:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let iO=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,iA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iN=/\((\S*)(?::(\d+))(?::(\d+))\)/,iP=/at (.+?) ?\(data:(.+?),/,iD=[30,e=>{let t=e.match(iP);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=iO.exec(e);if(r){let[,e,t,n]=r;return iI(e,e5.z,+t,+n)}let n=iA.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=iN.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=iU(n[1]||e5.z,n[2]);return iI(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],iL=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ij=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,i$=[50,e=>{let t=iL.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ij.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||e5.z;return[r,e]=iU(r,e),iI(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],iF=(0,e5.O)(iD,i$),iU=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:e5.z,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},iB={};function iz(e){let t=iB[e];if(t)return t;let r=tu[e];if(tl(r))return iB[e]=r.bind(tu);let n=tu.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){tm&&en.h.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?iB[e]=r.bind(tu):r}function iW(...e){try{return iz("setTimeout")(...e)}catch(r){tm&&en.h.warn("Could not use native setTimeout implementation, falling back to window.setTimeout: ",r);let t=tu.setTimeout.bind(tu);return iB.setTimeout=t,t(...e)}}function iq(e,t=iz("fetch")){let r=0,n=0;async function i(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw iB.fetch=void 0,e}finally{r-=o,n--}}return function(e,t,r=nF(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(ev(i,(t,r)=>{let i=ew(r);nU(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return Promise.resolve({});let s=ey(i[0],o),a=t=>{var r;if(r=["client_report"],ev(s,(e,t)=>r.includes(t))){er.f&&en.h.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}ev(s,(r,n)=>{e.recordDroppedEvent(t,ew(n))})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[eb(n),e]:n.push("string"==typeof e?eb(e):e)}for(let e of r){let[t,r]=e;if(i(`
41${JSON.stringify(t)}
42`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,em.S)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>
42e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(413===e.statusCode?(er.f&&en.h.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error")):(er.f&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&en.h.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=nB(n,e)),e),e=>{throw a("network_error"),er.f&&en.h.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===n$)return er.f&&en.h.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,nF(e.bufferSize||40))}let iH=/^HTML(\w*)Element$/;function iV(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,r=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(iH.test(r))return`[HTMLElement: ${tf(e)}]`}}function iG(e){let t;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=n_(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=n_(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,eo.$)(r,t)}(e,t.ignoreTransactions))return er.f&&en.h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
43Event: ${(0,V.N)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&ng(r).some(e=>(0,eo.$)(e,n)))return er.f&&en.h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
44Event: ${(0,V.N)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return er.f&&en.h.warn(`Event dropped due to not having an error message, error type or stacktrace.
45Event: ${(0,V.N)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=nv(e);return!!r&&(0,eo.$)(r,t)}(e,t.denyUrls))return er.f&&en.h.warn(`Event dropped due to being matched by \`denyUrls\` option.
46Event: ${(0,V.N)(e)}.
47Url: ${nv(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=nv(e);return!r||(0,eo.$)(r,t)}(e,t.allowUrls))return er.f&&en.h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
48Event: ${(0,V.N)(e)}.
49Url: ${nv(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r,n=(0,H.R)(this);try{nb.has((0,$.l)())&&void 0!==n&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){nb.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,$.d)().getScopeData(),r=(0,$.V)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:i}=(0,eu.l)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(D.E,n)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,H.Q)(K,"setTimeout",ib),t.setInterval&&(0,H.Q)(K,"setInterval",ib),t.requestAnimationFrame&&(0,H.Q)(K,"requestAnimationFrame",iS),t.XMLHttpRequest&&"XMLHttpRequest"in K&&(0,H.Q)(XMLHttpRequest.prototype,"send",iw);let e=t.eventTarget;e&&(Array.isArray(e)?e:iv).forEach(e=>{var r,n;let i;return r=e,n=t,i=K[r]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,H.Q)(i,"addEventListener",function(e){return function(t,i,o){var s,a,l,u;try{s=i,"function"==typeof s.handleEvent&&(i.handleEvent=ee(i.handleEvent,{mechanism:{data:{handler:(0,e5.n)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(a=this,l=t,u=i,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(l,u)),e.apply(this,[t,ee(i,{mechanism:{data:{handler:(0,e5.n)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,H.Q)(i,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}}catch{}return e.call(this,t,r,n)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,o,s,a,l;let u;t.console&&(r=e,e4(u="console",function(e){if((0,$.l)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:ip(e.level),message:(0,eo.c)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,eo.c)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);ih(t,{input:e.args,level:e.level})}),e7(u,id)),t.dom&&ig((n=e,i=t.dom,function(e){let t,r;if((0,$.l)()!==n)return;let o="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(rd&&en.h.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{var a;let n=e.event,i=(a=n)&&a.target?n.target:n;t=tf(i,{keyAttrs:o,maxStringLength:s}),r=X(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),ih(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&r$((o=e,function(e){if((0,$.l)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[rj];if(!t||!r||!n)return;let{method:i,url:s,status_code:a,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:i,url:s,status_code:a},type:"http",level:im(a)};o.emit("beforeOutgoingRequestBreadcrumb",c,u),ih(c,u)})),t.fetch&&rm((s=e,function(e){if((0,$.l)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;
49if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",i,n),ih(i,n)}else{let n=e.response,i={...e.fetchData,status_code:n?.status},o={input:e.args,response:n,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:im(i.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",a,o),ih(a,o)}})),t.history&&tc((a=e,function(e){if((0,$.l)()!==a)return;let t=e.from,r=e.to,n=e2(K.location.href),i=t?e2(t):void 0,o=e2(r);i?.path||(i=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),ih({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,$.l)()===l&&ih({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,V.N)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,tt(e=>{var t,n,i,o;let s,a,l,u,c,{stackParser:d,attachStacktrace:p}=iT();if((0,$.l)()!==r||Z>0)return;let{msg:h,url:f,line:m,column:g,error:y}=e,_=(t=is(d,y||h,void 0,p,!1),n=f,i=m,o=g,0===(c=(u=(l=(a=(s=t.exception=t.exception||{}).values=s.values||[])[0]=a[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:o,lineno:i,filename:function(e){if((0,J.Z)(e)&&0!==e.length)return e.startsWith("data:")?`<${e3(e,!1)}>`:e}(n)??Q(),function:e5.z,in_app:!0}),t);_.level="error",(0,G.f)(_,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),ik("onerror")),t.onunhandledrejection&&(n=e,ti(e=>{var t;let{stackParser:r,attachStacktrace:i}=iT();if((0,$.l)()!==n||Z>0)return;let o=function(e){if((0,J.n)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),s=(0,J.n)(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):is(r,o,void 0,i,!0);s.level="error",(0,G.f)(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),ik("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,o){if(!i.exception?.values||!o||!(0,J.b)(o.originalException))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,r,n,i,o,s,a,l){if(s.length>=n+1)return s;let u=[...s];if((0,J.b)(i[o])){iC(a,l,i);let s=t(r,i[o]),c=u.length;iM(s,o,c,l),u=e(t,r,n,i[o],o,[s,...u],s,c)}return iR(i)&&i.errors.forEach((s,c)=>{if((0,J.b)(s)){iC(a,l,i);let d=t(r,s),p=u.length;iM(d,`errors[${c}]`,p,l),u=e(t,r,n,s,o,[d,...u],d,p)}}),u}(e,t,n,o.originalException,r,i.exception.values,s,0))}(ie,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var r,n,i,o,s,a;let l,u,c,d;if(r=e,(n=t)&&(i=r,o=n,l=i.message,u=o.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&nw(i,o)&&nS(i,o)&&1||(s=r,c=nE(a=n),d=nE(s),c&&d&&c.type===d.type&&c.value===d.value&&nw(s,a)&&nS(s,a))))return er.f&&en.h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!K.navigator&&!K.location&&!K.document)return;let t=et(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSpan(e){if(!K.navigator&&!K.location&&!K.document)return;let t=et();iE(e,{"user_agent.original":t.headers["User-Agent"],...e.is_segment&&{[eQ]:e.attributes?.["sentry.op"]!=="http.client"?W(t.url):void 0,"http.request.header.referer":t.headers.Referer}})}},{name:"CultureContext",preprocessEvent(e){let t=ix();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=ix();t&&iE(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===K.document){rd&&en.h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,G.M)({ignoreDuration:!0});let e=!1;tB(()=>{e||((0,G.L)(),e=!0)});let r=(0,$.V)(),n=r.getUser();r.addScopeListener(t=>{let r=t.getUser();
49(n?.id!==r?.id||n?.ip_address!==r?.ip_address)&&(n=r,e&&(0,G.L)())}),"route"===t&&tc(({from:t,to:r})=>{t!==r&&((0,G.M)({ignoreDuration:!0}),(0,G.L)(),e=!0)})}}})()]}var iJ=e.i(271645);function iY(e){return(0,J.d)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":iV(e)}function iQ(e={}){let t=((e={})=>{let t,r;"enableElementTiming"in e&&(0,en.D)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let n={name:void 0,source:void 0},i=K.document,{enableInp:s,enableLongTask:u,enableLongAnimationFrame:c,_experiments:{enableInteractions:d,enableStandaloneClsSpans:p,enableStandaloneLcpSpans:h},beforeStartSpan:f,idleTimeout:m,finalTimeout:g,childSpanTimeout:y,markBackgroundSpan:_,traceFetch:v,traceXHR:b,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:w,enableHTTPTimings:E,ignoreResourceSpans:x,ignorePerformanceApiSpans:k,instrumentPageLoad:T,instrumentNavigation:R,detectRedirects:C,linkPreviousTrace:M,consistentTraceSampling:I,enableReportPageLoaded:O,onRequestSpanStart:A,onRequestSpanEnd:N}={...rX,...e},P=rQ();function F(e,t,o=!0,s){var a,l;let u="pageload"===t.op,c=t.name,d=f?f(t):t,p=e0(s||Q()),h={...p?.pathname&&{[eX]:p.pathname},...p&&!eZ(p)&&{[eQ]:W(p.href)},...d.attributes};if(c!==d.name&&(h[D.U]="custom"),d.attributes=h,!o){let e=(0,j.i)();eF({...d,startTime:e}).end(e);return}n.name=d.name,n.source=h[D.U];let _=eV(d,{idleTimeout:m,finalTimeout:g,childSpanTimeout:y,disableAutoFinish:u,beforeSpanEnd:t=>{var n,i;!function(e,t){let r=re(),n=(0,j.D)();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:o,ignoreResourceSpans:s}=t,a=rt(n),l=r.getEntries(),{op:u,start_timestamp:c}=(0,eu.l)(e);l.slice(ra).forEach(t=>{let r=rt(t.startTime),n=rt(Math.max(0,t.duration));if("navigation"!==u||!c||!(a+r<c))switch(t.entryType){case"navigation":var i,l,d,p,h,f;let m,g,y;i=e,l=t,d=a,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{rc(i,l,e,d)}),rc(i,l,"secureConnection",d,"TLS/SSL"),rc(i,l,"fetch",d,"cache"),rc(i,l,"domainLookup",d,"DNS"),p=i,h=l,m=(f=d)+rt(h.requestStart),g=f+rt(h.responseEnd),y=f+rt(h.responseStart),h.responseEnd&&(t7(p,m,g,{op:"browser.request",name:h.name,attributes:{[D.u]:"auto.ui.browser.metrics"}}),t7(p,y,g,{op:"browser.response",name:h.name,attributes:{[D.u]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,r,n,i,o){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,eo.$)(t.name,o))return;let s=ty(!1),a=i+Math.max(r,rt(s?s.requestStart:0)),l=i+r,u=l+n,c={[D.u]:"auto.resource.browser.metrics"};a!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=a),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,J.n)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,J.n)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),a<=u&&t7(e,a,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,r,n,a,o);break;case"resource":!function(e,t,r,n,i,o,s){var a,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(u))return;let c={[D.u]:"auto.resource.browser.metrics"},d=e2(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(tu.location.origin),c[eQ]=W(r),a=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
49h(([e,t])=>{let r=a[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...c,...rs(t)},h=o+n;t7(e,h,h+i,{name:r.replace(tu.location.origin,""),op:u,attributes:p})}(e,t,t.name,r,n,a,s)}}),ra=Math.max(l.length-1,0),function(e,t){let r=tu.navigator;if(!r)return;let n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),t4(n.rtt)&&(t?e.setAttribute("network.connection.rtt",n.rtt):"pageload"===(0,eu.l)(e).op&&eT("connection.rtt",n.rtt,"millisecond"))),t4(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),t4(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:x,ignorePerformanceApiSpans:k,spanStreamingEnabled:eM(e)}),n=e,i=void 0,(0,H.O)(n,r2,i);let o=(0,$.d)(),s=o.getPropagationContext();o.setPropagationContext({...s,traceId:_.spanContext().traceId,sampled:(0,eu.S)(_),dsc:(0,ed.O)(t)}),u&&(r=void 0)},trimIdleSpanEndTimestamp:!O});function v(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",_),i.removeEventListener("readystatechange",v))}u&&O&&(r=_),a=e,l=_,(0,H.O)(a,r2,l),u&&!O&&i&&(i.addEventListener("readystatechange",v),v())}return{name:"BrowserTracing",setup(e){if(P){rd&&en.h.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function n(){let e=(0,eu.j)(),t=e&&(0,eu.e)(e);if(t){let e="internal_error";er.f&&en.h.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:eP.r,message:e})}}if(ts||(ts=!0,tt(n),ti(n)),c&&L.f.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,eu.j)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=rt((0,j.D)()+r.startTime),{start_timestamp:n,op:i}=(0,eu.l)(t);if("navigation"===i&&n&&e<n)continue;let o=rt(r.duration),s={[D.u]:"auto.ui.browser.metrics"},{invoker:a,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==d&&(s["browser.script.source_char_position"]=d),t7(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):u&&tK("longtask",({entries:e})=>{let t=(0,eu.j)();if(!t)return;let{op:r,start_timestamp:n}=(0,eu.l)(t);for(let i of e){let e=rt((0,j.D)()+i.startTime),o=rt(i.duration);"navigation"===r&&n&&e<n||t7(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[D.u]:"auto.ui.browser.metrics"}})}}),d&&tK("event",({entries:e})=>{let t=(0,eu.j)();
49if(t){for(let r of e)if("click"===r.name){let e=rt((0,j.D)()+r.startTime),n=rt(r.duration),i={name:tf(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[D.u]:"auto.ui.browser.metrics"}},o=X(r.target);o&&(i.attributes["ui.component_name"]=o),t7(t,e,e+n,i)}}}),C&&i){let e=()=>{t=(0,j.R)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function o(){let t=e[r2];t&&!(0,eu.l)(t).timestamp&&(rd&&en.h.log(`[Tracing] Finishing current active span with op: ${(0,eu.l)(t).op}`),t.setAttribute(D.i,"cancelled"),t.end())}e.on("startNavigationSpan",(r,n)=>{if((0,$.l)()!==e)return;if(n?.isRedirect){rd&&en.h.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),F(e,{op:"navigation.redirect",...r},!1,n.url);return}t=void 0,o();let i=(0,$.d)();i.setPropagationContext({traceId:(0,ek.u)(),sampleRand:Math.random(),propagationSpanId:(0,ei.f)()?void 0:(0,ek.d)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),F(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0},!0,n?.url)}),e.on("startPageLoadSpan",(t,r={})=>{if((0,$.l)()!==e)return;o();let n=r.sentryTrace||r0("sentry-trace")||r1("sentry-trace"),i=r.baggage||r0("baggage")||r1("baggage"),s=(0,e$.C)(n,i),a=(0,$.d)();a.setPropagationContext(s),(0,ei.f)()||(a.getPropagationContext().propagationSpanId=(0,ek.d)()),a.setSDKProcessingMetadata({normalizedRequest:et()}),F(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{O&&r&&(r.setAttribute(D.i,"reportPageLoaded"),r.end())})},afterAllSetup(e){var r,i,u,c,f;let x;if(P)return;e.addIntegration&&!e.getIntegrationByName?.(rO)&&e.addIntegration(((e={})=>{let t=new Set(e.ignore??[]);return{name:rO,setup(r){let n=eM(r),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:s}=e._experiments??{},u=n||t.has("cls")?void 0:i||!1,c=n||t.has("lcp")?void 0:s||!1,d=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=re();if(n&&(0,j.D)()){n.mark&&tu.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!rr("largest-contentful-paint"))return;let n=tQ(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&ri(e.value)&&(r=e.value,t=n)},!0);rn(e,(e,i)=>{(function(e,t,r,n){if(!ri(e))return;tm&&en.h.log(`Sending LCP span (${e})`);let i=rt(((0,j.D)()||0)+(t?.startTime||0)),o=(0,$.d)().getScopeData().transactionName,s=t?tf(t.element):"Largest contentful paint",a={[D.u]:"auto.http.browser.lcp",[D.o]:"ui.webvital.lcp",[D._]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(a["lcp.element"]=tf(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));let l=t9({name:s,transaction:o,attributes:a,startTime:i});l&&(l.addEvent("lcp",{[D.B]:"millisecond",[D.x]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===t?tQ(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&ri(e.value)&&(rl.lcp={value:e.value,unit:"millisecond"},a=t)},!0):void 0,s=e?function(e){let t,r=0;if(!rr("layout-shift"))return;let n=tY(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rn(e,(e,i)=>{var o,s,a,l;let u,c,d,p,h;o=r,s=t,a=i,l=e,tm&&en.h.log(`Sending CLS span (${o})`),u=s?rt(((0,j.D)()||0)+s.startTime):(0,j.R)(),c=(0,$.d)().getScopeData().transactionName,d=s?tf(s.sources[0]?.node):"Layout shift",p={[D.u]:"auto.http.browser.cls",[D.o]:"ui.webvital.cls",[D._]:0,"sentry.pageload.span_id":a,"sentry.report_event":l},s?.sources&&s.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=tf(e.node)}),(h=t9({name:d,transaction:c,attributes:p,startTime:u}))&&(h.addEvent("cls",{[D.B]:"",[D.x]:o}),h.end(u)),n()})}(r):!1===e?tY(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rl.cls={value:e.value,unit:""},l=t)},!0):void 0,u=t5("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rl.ttfb={value:e.value,unit:"millisecond"})},t2,o),c=tK("paint",({entries:e})=>{let t=tx();for(let r of e){let e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(rl.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(rl.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{u(),c(),i?.(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:u,recordLcpStandaloneSpans:c,client:r}),p=new WeakSet;r.on("afterStartPageLoadSpan",e=>{p.add(e)}),r.on("spanEnd",e=>{p.delete(e)&&(d(),function(e,t){let r=(0,j.D)();if(!re()?.getEntries||!r)return ru();let{spanStreamingEnabled:n,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:o}=t,s=rt(r);if("pageload"===(0,eu.l)(e).op){if(function(e){let t=ty(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(rl),n){let t=(t,r,n)=>{let i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r),tm&&en.h.log("Setting web vital attribute",{[i]:r},"on pageload span")};
49["ttfb","fp","fcp"].forEach(e=>{rl[e]&&t(e,rl[e].value)}),rl["ttfb.requestTime"]&&t("ttfb.requestTime",rl["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var u,c;i||delete rl.cls,o||delete rl.lcp,Object.entries(rl).forEach(([t,r])=>{eT(t,r.value,r.unit,e)}),u=e,c=t,a&&c.recordLcpOnPageloadSpan&&(a.element&&u.setAttribute("lcp.element",tf(a.element)),a.id&&u.setAttribute("lcp.id",a.id),a.url&&u.setAttribute("lcp.url",a.url.trim().slice(0,200)),null!=a.loadTime&&u.setAttribute("lcp.loadTime",a.loadTime),null!=a.renderTime&&u.setAttribute("lcp.renderTime",a.renderTime),u.setAttribute("lcp.size",a.size)),l?.sources&&c.recordClsOnPageloadSpan&&l.sources.forEach((e,t)=>u.setAttribute(`cls.source.${t+1}`,tf(e.node)))}e.setAttribute(n?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(n?"browser.performance.navigation.activation_start":"performance.activationStart",t_())}ru()}(e,{recordClsOnPageloadSpan:!1===u,recordLcpOnPageloadSpan:!1===c,spanStreamingEnabled:n}))}),n?(t.has("lcp")||function(e){let t,r=0;if(!rr("largest-contentful-paint"))return;let n=tQ(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&ri(e.value)&&(r=e.value,t=n)},!0);rn(e,(e,i,o)=>{(function(e,t,r,n){if(!ri(e))return;tm&&en.h.log(`Sending LCP span (${e})`);let i=(0,j.D)()||0,o=rt(i),s=rt(i+(t?.startTime||0)),a=t?tf(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=tf(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),rI({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:o,endTime:s})})(r,t,o,e),n()})}(r),t.has("cls")||function(e){let t,r=0;if(!rr("layout-shift"))return;let n=tY(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rn(e,(e,i,o)=>{var s,a,l,u;let c,d,p;s=r,a=t,l=o,u=e,tm&&en.h.log(`Sending CLS span (${s})`),c=a?rt(((0,j.D)()||0)+a.startTime):(0,j.R)(),d=a?tf(a.sources[0]?.node):"Layout shift",p={},a?.sources&&a.sources.forEach((e,t)=>{p[`browser.web_vital.cls.source.${t+1}`]=tf(e.node)}),rI({name:d,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:s,attributes:p,parentSpan:l,reportEvent:u,startTime:c}),n()})}(r),!t.has("inp")&&re()&&(0,j.D)()&&tX(({metric:e})=>{var t,r,n;let i,o,s,a,l,u,c,d;if(null==e.value||rt(e.value)>60)return;let p=e.entries.find(t=>t.duration===e.value&&rC[t.name]);p&&(t=e.value,r=p,tm&&en.h.log(`Sending INP span (${t})`),i=rt((0,j.D)()+r.startTime),o=rt(t),s=rC[r.name],a=null!=(n=r.interactionId)?rT.get(n):void 0,u=(l=(0,eu.j)())?(0,eu.e)(l):void 0,d=(c=a?.span||u)?(0,eu.Z)(c).name:(0,$.d)().getScopeData().transactionName,rI({name:a?.elementName||tf(r.target),op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[D._]:r.duration,[eY]:d,[eJ]:d},startTime:i,endTime:i+o,parentSpan:c}))})):t.has("inp")||function(){if(re()&&(0,j.D)()){let e=tX(rM);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(rC);function t(e){let t=e.target;if(!t)return;let r=tf(t),n=Math.round(e.timeStamp);if(rR.set(n,r),rR.size>50){let e=rR.keys().next().value;void 0!==e&&rR.delete(e)}}rx()&&e.forEach(e=>{tu.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,eu.j)(),r=t&&(0,eu.e)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||rT.has(t))return;let n=e.target?tf(e.target):function(e){let t=Math.round(e.startTime),r=rR.get(t);if(!r)for(let e=-5;e<=5;e++){let n=rR.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(rk.length>10){let e=rk.shift();rT.delete(e)}rk.push(t),rT.set(t,{span:r,elementName:n})})};tK("event",r),tK("first-input",r)}()}}})({ignore:s?[]:["inp"],_experiments:{enableStandaloneClsSpans:p,enableStandaloneLcpSpans:h}}));let k=Q();if("off"!==M&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=K.sessionStorage?.getItem(rA);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,eu.e)(e)!==e)return;let t=(0,$.d)().getPropagationContext();i=function(e,t,r){let n=(0,eu.l)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{let e=Number(n.data?.[D.s]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let o=e.spanContext;return o.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(rd&&en.h.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:n.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[D.S]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${+!!rN(o)}`)),i)}(i,e,t),n&&function(e){try{K.sessionStorage.setItem(rA,JSON.stringify(e))}catch(e){rd&&en.h.warn("Could not store previous trace in sessionStorage",e)}}(i)});let o=!0;r&&e.on("beforeSampling",e=>
49{if(!i)return;let t=(0,$.d)(),r=t.getPropagationContext();if(o&&r.parentSpanId){o=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(rN(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=rN(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[D.t]:i.sampleRate}})}(e,{linkPreviousTrace:M,consistentTraceSampling:I}),K.location){if(T){let t=(0,j.D)();rK(e,{name:K.location.pathname,startTime:t?t/1e3:void 0,attributes:{[D.U]:"url",[D.u]:"auto.pageload.browser"}})}R&&tc(({to:r,from:n})=>{var i,o;let s,a;if(void 0===n&&k?.indexOf(r)!==-1){k=void 0;return}k=void 0;let l=e0(r),u=e[r2],c=u&&C&&(i=u,o=t,s=(0,eu.l)(i),!((a=(0,j.i)())-s.start_timestamp>1.5)&&(!o||!(a-o<=1.5)));rZ(e,{name:l?.pathname||K.location.pathname,attributes:{[D.U]:"url",[D.u]:"auto.navigation.browser"}},{url:r,isRedirect:c})})}_&&(K.document?K.document.addEventListener("visibilitychange",()=>{let e=(0,eu.j)();if(!e)return;let t=(0,eu.e)(e);if(K.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eu.l)(t);rd&&en.h.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:eP.r,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):rd&&en.h.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d&&(r=e,i=m,u=g,c=y,f=n,K.document&&addEventListener("click",()=>{let e="ui.action.click",t=r[r2];if(t&&["navigation","pageload"].includes((0,eu.l)(t).op)){rd&&en.h.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(x&&(x.setAttribute(D.i,"interactionInterrupted"),x.end(),x=void 0),!f.name){rd&&en.h.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}x=eV({name:f.name,op:e,attributes:{[D.U]:f.source||"url"}},{idleTimeout:i,finalTimeout:u,childSpanTimeout:c})},{capture:!0})),function(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:a,onRequestSpanEnd:l}={...rG,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let r=Q();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let o=n.origin===i;return t?(0,eo.$)(n.toString(),t)||o&&(0,eo.$)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,eo.$)(e,t):r}})(e,s),d={},p=e.getOptions().propagateTraceparent;r&&rm(t=>{let r=function(e,t,r,n,i){if(!e.fetchData)return;let{method:o,url:s}=e.fetchData,a=(0,ei.f)()&&t(s);if(e.endTimestamp){var l,u,c;let t,r=e.fetchData.__span;if(!r)return;let o=n[r];o&&(a&&(function(e,t){if(t.response){(0,eP.x)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:eP.r,message:"internal_error"});e.end()}(o,e),l=o,u=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete n[r]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof i?i:{spanOrigin:i},h=(0,$.l)(),f=!!(0,eu.j)(),m=f||!!h&&eM(h),g=a&&m?eF(function(e,t,r,n){if(e.startsWith("data:")){let i=e3(e);return{name:`${t} ${i}`,attributes:rL(e,void 0,t,r,n)}}let i=e0(e),o=i?e1(i):e;return{name:`${t} ${o}`,attributes:rL(e,i,t,r,n)}}(s,o,d,h)):new ec.f,y=eq(g)&&f?void 0:g;if(a&&!m&&h?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=g.spanContext().spanId,n[g.spanContext().spanId]=g,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var i,o;let s=rP({span:r,propagateTraceparent:n}),a=s["sentry-trace"],l=s.baggage,u=s.traceparent;if(!a)return;let c=t.headers||((0,J.G)(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...l&&{baggage:l},...u&&{traceparent:u}};if(i=c,"u">typeof Headers&&(0,J.v)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",a),n&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?rD(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(o=c)&&o.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",a]),n&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&rD(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],o=r&&(Array.isArray(r)?r.find(e=>rD(e)):rD(r));l&&!o&&i.push(l);let s=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(",")}});return n&&u&&!t&&(s.traceparent=u),s}}(t,r,(0,ei.f)()&&m?y:void 0,p);n&&(e.args[1]=r,r.headers=n)}if(h){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};h.emit("beforeOutgoingRequestSpan",g,t)}return g}(t,u,c,d,{propagateTraceparent:p,onRequestSpanEnd:l});if(r){let n=rH(t.fetchData.url),i=n?e2(n).host:void 0,s=n?e3(n):void 0;r.setAttributes({[eG]:W(s),[eQ]:W(s),"server.address":i}),o&&rJ(r,e),a?.(r,{headers:t.headers})}}),n&&r$(t=>{let r=function(e,t,r,n,i,o){let s=e.xhr,a=s?.[rj];if(!s||s.__sentry_own_request__||!a)return;let{url:l,method:u}=a,c=(0,ei.f)()&&t(l);if(e.endTimestamp){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==a.status_code&&((0,eP.x)(r,a.status_code),r.end(),o?.(r,{headers:rV(rq(s)),error:e.error})),delete n[t]);return}let d=rH(l),p=d?e2(d):e2(l),h=d?e3(d):void 0,f=e3(l.split(/[?#]/,1)[0]),m=(0,$.l)(),g=!!(0,eu.j)(),y=g||!!m&&eM(m),_=c&&y?eF({name:`${u} ${f}`,attributes:{url:W(e3(l)),type:"xhr","http.method":u,"http.url":W(h),[eQ]:W(h),"server.address":p?.host,[D.u]:"auto.http.browser",[D.o]:"http.client",...p?.search&&{"http.query":q(p?.search)},...p?.hash&&{"http.fragment":p?.hash}}}):new ec.f,v=eq(_)&&g?void 0:_;return c&&!y&&m?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=_.spanContext().spanId,n[s.__sentry_xhr_span_id__]=_,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:o}=rP({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,o)}(s,(0,ei.f)()&&y?v:void 0,i),m&&m.emit("beforeOutgoingRequestSpan",_,e),_}(t,u,c,d,p,l);r&&(o&&rJ(r,e),a?.(r,{headers:rV(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:v,traceXHR:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:E,onRequestSpanStart:A,onRequestSpanEnd:N}),S&&e.addIntegration({name:"FetchStreamPerformance",setup(){let e;e4(e="fetch-body-resolved",e=>{if(e.response){let t=rS.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let r=rw.get(e.response);r&&clearTimeout(r)}}}),e7(e,()=>rg(r_)),rm(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!rE.some(e=>
49t.startsWith(e)))return;let r=e.fetchData?.url||"",n=e.fetchData?.method||"GET",i=e0(r),o=r.startsWith("data:")?e3(r):i?e1(i):r,s=eF({name:`${n} ${o}`,startTime:e.endTimestamp,attributes:{url:W(e3(r)),"http.method":n,type:"fetch",[D.o]:"http.client.stream",[D.u]:"auto.http.browser.stream"}});rS.set(e.response,s);let a=setTimeout(()=>{s.isRecording()&&s.end()},9e4);rw.set(e.response,a)}})}})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){!rQ()&&(n&&function(e){if(!K.document.getElementById("__NEXT_DATA__")){let t,r,n;b=(t,r)=>{let n=P.default.env._sentryBasePath??nu._sentryBasePath,i=n&&!t.startsWith(n)?`${n}${t}`:t,o=nn(new URL(i,K.location.href).pathname),s=nr(o),a=s??o;"router-patch"===ns&&(ns="transition-start-hook");let l=na.current;l?(l.updateName(a),l.setAttributes({"navigation.type":`router.${r}`,[D.U]:s?"route":"url",...s&&{[eK]:s}}),ni(l,o,i),na.current=void 0):rZ(e,{name:a,attributes:{[D.o]:"navigation",[D.u]:"auto.navigation.nextjs.app_router_instrumentation",[D.U]:s?"route":"url","navigation.type":`router.${r}`,...s&&{[eK]:s}}},{url:r3(i)})},K.addEventListener("popstate",()=>{let t=nn(K.location.pathname),r=nr(t);na.current?.isRecording()?(na.current.updateName(r??t),na.current.setAttribute(D.U,r?"route":"url"),r&&na.current.setAttribute(eK,r),ni(na.current,t,K.location.href)):na.current=rZ(e,{name:r??t,attributes:{[D.u]:"auto.navigation.nextjs.app_router_instrumentation",[D.U]:r?"route":"url","navigation.type":"browser.popstate",...r&&{[eK]:r}}},{url:r3(t)})}),t=!1,r=0,n=setInterval(()=>{r++;let i=nl?.next?.router??nl?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,np(e,i,na),["nd","next"].forEach(t=>{let r=nl[t];r&&(nl[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&np(e,n,na),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(K.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=K.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{r5&&en.h.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,eL.O)(i),s=t||K.location.pathname;o?.["sentry-transaction"]&&"/_error"===s&&(s=(s=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let a=(0,j.D)();rK(e,{name:s,startTime:a?a/1e3:void 0,attributes:{[D.o]:"pageload",[D.u]:"auto.pageload.nextjs.pages_router_instrumentation",[D.U]:t?"route":"url",...t&&{[eK]:t},...r&&{...r}}},{sentryTrace:n,baggage:i})}(e);else{let t,r,n;r=nr(t=nn(K.location.pathname)),rK(e,{name:r??t,startTime:(n=(0,j.D)())?n/1e3:void 0,attributes:{[D.o]:"pageload",[D.u]:"auto.pageload.nextjs.app_router_instrumentation",[D.U]:r?"route":"url",...r&&{[eK]:r}}})}}(e))}}}let iX=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function iK(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function iZ(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let i0=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,i1=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),i2=L.f,i3=!1,i5=L.f;function i6(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let i8=L.f,i4="sentryReplaySession",i7="Unable to send Replay";var i9=Object.defineProperty,oe=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?i9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ot=((k=ot||{})[k.Document=0]="Document",k[k.DocumentType=1]="DocumentType",k[k.Element=2]="Element",k[k.Text=3]="Text",k[k.CDATA=4]="CDATA",k[k.Comment=5]="Comment",k);
49function or(e){return e.nodeType===e.ELEMENT_NODE}function on(e){let t=e?.host;return t?.shadowRoot===e}function oi(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function oo(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,os).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 os(e){let t;if("styleSheet"in e)try{t=oo(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}class oa{constructor(){oe(this,"idNodeMap",new Map),oe(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e)),or(e)&&e.shadowRoot&&this.removeNodeFromMap(e.shadowRoot)}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 ol({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 ou({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function oc(e){return e.toLowerCase()}function od(e){return e.toUpperCase()}let op="__rrweb_original__";function oh(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?oc(t):null}function of(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function om(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let og={};function oy(e){let t=og[e];if(t)return t;let r=window[e].bind(window),n=r,i=window.document;if(i&&"function"==typeof i.createElement)try{let t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);let o=t.contentWindow;if(o&&o[e]){let t=o[e].bind(window);n=(...n)=>{try{return t(...n)}catch{return og[e]=r,r(...n)}}}i.head.removeChild(t)}catch(e){}return og[e]=n}function o_(...e){return oy("setTimeout")(...e)}function ov(...e){return oy("clearTimeout")(...e)}function ob(e){try{return e.contentDocument}catch{}}let oS=1,ow=RegExp("[^a-z0-9-_:]");function oE(){return oS++}let ox=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ok=/^(?:[a-z+]+:)?\/\//i,oT=/^www\..*/i,oR=/^(data:)([^,]*),(.*)/i;function oC(e,t){return(e||"").replace(ox,(e,r,n,i,o,s)=>{let a=n||o||s,l=r||i||"";if(!a)return e;if(ok.test(a)||oT.test(a)||oR.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let oM=/^[^ \t\n\r\u000c]+/,oI=/^[, \t\n\r\u000c]+/,oO=new WeakMap;function oA(e,t){return t&&""!==t.trim()?oN(e,t):t}function oN(e,t){let r=oO.get(e);if(r||(r=e.createElement("a"),oO.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}
49function oP(e,t,r,n,i,o,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return oA(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return oA(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(oI),!(r>=t.length);){let o=n(oM);if(","===o.slice(-1))o=oA(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=oA(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,i.push((o+n).trim());break}else"("===e&&(s=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=oC(n,oN(e));return s&&s.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}else if("object"===t&&"data"===r)return oA(e,n);return"function"==typeof o?o(r,n,i):n}function oD(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function oL(e,t,r=1/0,n=0){return e?on(e)?oL(e.host,t,r,n+1):e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:oL(e.parentNode,t,r,n+1):-1}function oj(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{return!1}}}function o$(e,t,r,n,i,o){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(o){if((l=oL(s,oj(n,i)))<0)return!0;a=oL(s,oj(t,r),l>=0?l:1/0)}else{if((a=oL(s,oj(t,r)))<0)return!1;l=oL(s,oj(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!o}catch(e){}return!!o}function oF(e){return null==e?"":e.toLowerCase()}function oU(e,t){let r,{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:y={},maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={}
49,inlineImages:E=!1,recordCanvas:x=!1,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:R=5e3,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:A=!1,ignoreCSSAttributes:N}=t,{preserveWhiteSpace:P=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:y,maskInputFn:_,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E=!1,ignoreCSSAttributes:x}=t,k=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);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:k};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1,rootId:_,maskTextClass:v,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:w,ignoreCSSAttributes:E}=t,x=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,i,o,s),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=oc(e.tagName);return ow.test(t)?"div":t}(e),T={},R=e.attributes.length;for(let t=0;t<R;t++){let r=e.attributes[t];r.name&&!oD(k,r.name,r.value)&&(T[r.name]=oP(n,k,oc(r.name),r.value,e,u,E))}if("link"===k&&a){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=oo(t)),r&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=oC(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=oo(e.sheet);t&&(T._cssText=oC(t,oN(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=oh(e),r=of(e,od(k),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=o$(e,v,S,b,w,ol({type:t,tagName:od(k),maskInputOptions:l}));T.value=ou({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(T.checked=n)}if("option"===k&&(e.selected&&!l.select?T.selected=!0:delete T.selected),"canvas"===k&&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;if(new Uint32Array((op in i?i[op]: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)&&(T.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(T.rr_dataURL=t)}}if("img"===k&&p){h||(f=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{h.width=e.naturalWidth,h.height=e.naturalHeight,f.drawImage(e,0,0),T.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?T.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===k||"video"===k)&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),x){let{width:t,height:r}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==k||g(T.src)||(x||ob(e)||(T.rr_src=T.src),delete T.src);try{customElements.get(k)&&(r=!0)}catch(e){}return{type:ot.Element,tagName:k,attributes:T,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:x,rootId:_,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:l,maskInputOptions:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E,rootId:k,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:x});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=oo(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=oC(p,oN(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=o$(e,n,o,i,s,r);return h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=ou({isMasked:o$(e,n,o,i,s,ol({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:ot.Text,textContent:p||"",isStyle:h,rootId:c}}(e,{doc:r,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:g,maskInputFn:_,rootId:k});case e.CDATA_SECTION_NODE:return{type:ot.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:ot.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,dataURLOptions:w,inlineImages:E,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:A,ignoreCSSAttributes:N});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===ot.Comment)return!0;
49if(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"===om(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(oF(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===oF(e.attributes.name)||"icon"===oF(e.attributes.rel)||"apple-touch-icon"===oF(e.attributes.rel)||"shortcut icon"===oF(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&oF(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(oF(e.attributes.property).match(/^(og|twitter|fb):/)||oF(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===oF(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===oF(e.attributes.name)||"googlebot"===oF(e.attributes.name)||"bingbot"===oF(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===oF(e.attributes.name)||"generator"===oF(e.attributes.name)||"framework"===oF(e.attributes.name)||"publisher"===oF(e.attributes.name)||"progid"===oF(e.attributes.name)||oF(e.attributes.property).match(/^article:/)||oF(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===oF(e.attributes.name)||"yandex-verification"===oF(e.attributes.name)||"csrf-token"===oF(e.attributes.name)||"p:domain_verify"===oF(e.attributes.name)||"verify-v1"===oF(e.attributes.name)||"verification"===oF(e.attributes.name)||"shopify-checkout-api-token"===oF(e.attributes.name)))return!0}}return!1}(D,S)&&(P||D.type!==ot.Text||D.isStyle||D.textContent.trim().length)?oE():-2;let L=Object.assign(D,{id:r});if(i.add(e,L),-2===r)return null;k&&k(e);let j=!m;if(L.type===ot.Element){j=j&&!L.needBlock;let t=e.shadowRoot;t&&oi(t)&&(L.isShadowHost=!0)}if((L.type===ot.Document||L.type===ot.Element)&&j){S.headWhitespace&&L.type===ot.Element&&"head"===L.tagName&&(P=!1);let t={doc:n,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:x,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:R,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:O,ignoreCSSAttributes:N};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=oU(r,t);e&&L.childNodes.push(e)}if(or(e)&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=oU(r,t);n&&(oi(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}if(e.parentNode&&on(e.parentNode)&&oi(e.parentNode)&&(L.isShadow=!0),L.type!==ot.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,r){let n,i=function(e){try{return e.contentWindow}catch{}}(e);if(!i)return;let o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=o_(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{ov(n),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return o_(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ob(e);if(t&&T){let r=oU(t,{doc:t,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:x,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:R,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:O,ignoreCSSAttributes:N});r&&T(e,r)}},R),L.type===ot.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===ot.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===om(L.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){n=null}if(n)return;let o=o_(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{ov(o),i=!0,t()})}(e,()=>
49{if(M){let t=oU(e,{doc:n,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:x,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:R,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:O,ignoreCSSAttributes:N});t&&M(e,t)}},I),L.type===ot.Element&&delete L.needBlock,L}function oB(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let oz="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.",oW={map:{},getId:()=>(console.error(oz),-1),getNode:()=>(console.error(oz),null),removeNodeFromMap(){console.error(oz)},has:()=>(console.error(oz),!1),reset(){console.error(oz)}};function oq(e,t,r={}){let n=null,i=0;return function(...o){let s=Date.now();i||!1!==r.leading||(i=s);let a=t-(s-i),l=this;a<=0||a>t?(n&&(function(...e){o4("clearTimeout")(...e)}(n),n=null),i=s,e.apply(l,o)):n||!1===r.trailing||(n=o7(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},a))}}function oH(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{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(oW=new Proxy(oW,{get:(e,t,r)=>("map"===t&&console.error(oz),Reflect.get(e,t,r))}));let oV=Date.now;function oG(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function oJ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oY(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oQ(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function oX(e,t,r,n,i){if(!e)return!1;let o=oQ(e);if(!o)return!1;let s=oj(t,r);if(!i){let e=n&&o.matches(n);return s(o)&&!e}let a=oL(o,s),l=-1;return!(a<0)&&(n&&(l=oL(o,oj(null,n))),a>-1&&l<0||a<l)}function oK(e,t){return -2===t.getId(e)}function oZ(e){return!!e.changedTouches}function o0(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function o1(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function o2(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(oV=()=>(new Date).getTime());class o3{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){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 o5(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function o6(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=o5(r);)r=t;return r}(e);return t.contains(r)}(e))}let o8={};function o4(e){let t=o8[e];if(t)return t;let r=window[e].bind(window),n=r,i=window.document;if(i&&"function"==typeof i.createElement)try{let t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);let o=t.contentWindow;
49if(o&&o[e]){let t=o[e].bind(window);n=(...n)=>{try{return t(...n)}catch{return o8[e]=r,r(...n)}}}i.head.removeChild(t)}catch(e){}return o8[e]=n}function o7(...e){return o4("setTimeout")(...e)}var o9=((T=o9||{})[T.DomContentLoaded=0]="DomContentLoaded",T[T.Load=1]="Load",T[T.FullSnapshot=2]="FullSnapshot",T[T.IncrementalSnapshot=3]="IncrementalSnapshot",T[T.Meta=4]="Meta",T[T.Custom=5]="Custom",T[T.Plugin=6]="Plugin",T),se=((R=se||{})[R.Mutation=0]="Mutation",R[R.MouseMove=1]="MouseMove",R[R.MouseInteraction=2]="MouseInteraction",R[R.Scroll=3]="Scroll",R[R.ViewportResize=4]="ViewportResize",R[R.Input=5]="Input",R[R.TouchMove=6]="TouchMove",R[R.MediaInteraction=7]="MediaInteraction",R[R.StyleSheetRule=8]="StyleSheetRule",R[R.CanvasMutation=9]="CanvasMutation",R[R.Font=10]="Font",R[R.Log=11]="Log",R[R.Drag=12]="Drag",R[R.StyleDeclaration=13]="StyleDeclaration",R[R.Selection=14]="Selection",R[R.AdoptedStyleSheet=15]="AdoptedStyleSheet",R[R.CustomElement=16]="CustomElement",R),st=((C=st||{})[C.MouseUp=0]="MouseUp",C[C.MouseDown=1]="MouseDown",C[C.Click=2]="Click",C[C.ContextMenu=3]="ContextMenu",C[C.DblClick=4]="DblClick",C[C.Focus=5]="Focus",C[C.Blur=6]="Blur",C[C.TouchStart=7]="TouchStart",C[C.TouchMove_Departed=8]="TouchMove_Departed",C[C.TouchEnd=9]="TouchEnd",C[C.TouchCancel=10]="TouchCancel",C),sr=((M=sr||{})[M.Mouse=0]="Mouse",M[M.Pen=1]="Pen",M[M.Touch=2]="Touch",M),sn=((I=sn||{})[I.Play=0]="Play",I[I.Pause=1]="Pause",I[I.Seeked=2]="Seeked",I[I.VolumeChange=3]="VolumeChange",I[I.RateChange=4]="RateChange",I);let si=e=>m?(...t)=>{try{return e(...t)}catch(e){if(m&&!0===m(e))return()=>{};throw e}}:e;for(var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ss="u"<typeof Uint8Array?[]:new Uint8Array(256),sa=0;sa<so.length;sa++)ss[so.charCodeAt(sa)]=sa;class sl{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function su(e){try{return e.contentDocument}catch(e){}}function sc(e){try{return e.contentWindow}catch(e){}}class sd{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("u"<typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class sp{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=t?.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;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let sh=(e,t)=>`${e}@${t}`;class sf{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 sp,n=e=>{let t=e,r=-2;
49for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!o6(i))return;let o=on(i.parentNode)?this.mirror.getId(o5(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===o||-1===s)return r.addNode(i);let a=oU(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=>{o0(e,this.mirror)&&!oX(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),o1(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),o2(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(oX(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let r=sc(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!sg(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)sy(this.droppedSet,e)||sg(this.removes,e,this.mirror)?sy(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 s={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};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))},this.processMutation=e=>{if(!oK(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;oX(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:o$(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,oQ(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=oh(t),i=t.tagName;n=of(t,i,r);let o=ol({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=ou({isMasked:o$(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(oX(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
49if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(su(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"),!oD(t.tagName,r)&&(i.attributes[r]=oP(this.doc,oc(t.tagName),oc(r),n,t,this.maskAttributeFn),"style"===r)){let r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let n=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||o!==(r?.getPropertyPriority(e)||"")?""===o?i.styleDiff[e]=n:i.styleDiff[e]=[n,o]:i._unchangedStyles[e]=[n,o]}if(r)for(let e of Array.from(r))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(oX(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=on(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);oX(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||oK(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(sm(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(on(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[sh(r,n)]?sm(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(on(e.target)&&oi(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(oK(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[sh(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!oX(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),o2(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new sd(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function sm(e,t){e.delete(t),t.childNodes?.forEach(t=>sm(e,t))}function sg(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 sy(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 s_=[];function sv(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sb(e,t){let r=new sf;s_.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let o=new n(si(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 sS({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){return oB("scroll",si(oq(si(s=>{let a=sv(s);if(!a||oX(a,n,i,o,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=oG(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}let sw=["INPUT","TEXTAREA","SELECT"],sE=new WeakMap;function sx(e){var t=[];if(sC("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sC("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sC("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sC("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 sk(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function sT({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){let r=o.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),si(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function sR(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=sb(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,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=oq(si(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),s),u=si(oq(si(e=>{let t=sv(e),{clientX:r,clientY:o}=oZ(e)?e.changedTouches[0]:e;i||(i=oV()),a.push({x:r,y:o,id:n.getId(t),timeOffset:oV()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?se.Drag:e instanceof MouseEvent?se.MouseMove:se.TouchMove)}),o,{trailing:!1})),c=[oB("mousemove",u,r),oB("touchmove",u,r),oB("drag",u,r)];return si(()=>
49{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=null;return Object.keys(st).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(s=>{let a=oc(s),c=t=>{let a=sv(t);if(oX(a,n,i,o,!0))return;let l=null,c=s;if("pointerType"in t){switch(t.pointerType){case"mouse":l=sr.Mouse;break;case"touch":l=sr.Touch;break;case"pen":l=sr.Pen}l===sr.Touch?st[s]===st.MouseDown?c="TouchStart":st[s]===st.MouseUp&&(c="TouchEnd"):sr.Pen}else oZ(t)&&(l=sr.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===sr.Touch||c.startsWith("Mouse")&&l===sr.Mouse)&&(l=null)):st[s]===st.Click&&(l=u,u=null);let d=oZ(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(a),{clientX:h,clientY:f}=d;si(e)({type:st[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(st[s]){case st.MouseDown:case st.MouseUp:a=a.replace("mouse","pointer");break;case st.TouchStart:case st.TouchEnd:return}l.push(oB(a,c,t))}),si(()=>{l.forEach(e=>e())})}(e),s=sS(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return oB("resize",si(oq(si(()=>
49{let t=oJ(),i=oY();(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:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=sv(e),c=e.isTrusted,g=r&&od(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>sw.indexOf(g)||oX(r,n,i,o,!0))return;let _=r;if(_.classList.contains(s)||a&&_.matches(a))return;let v=oh(r),b=of(_,g,v),S=!1,w=ol({maskInputOptions:l,tagName:g,type:v}),E=o$(r,p,f,h,m,w);("radio"===v||"checkbox"===v)&&(S=r.checked),b=ou({isMasked:E,element:r,value:b,maskInputFn:u}),y(r,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let x=r.name;"radio"===v&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach(e=>{if(e!==r){let t=ou({isMasked:E,element:e,value:of(e,g,v),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,n){let i=sE.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){sE.set(t,n);let i=r.getId(t);si(e)({...n,id:i})}}let _=("last"===c.input?["change"]:["input","change"]).map(e=>oB(e,si(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[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&&_.push(...S.map(e=>(function e(t,r,n,i,o=window){let s=o.Object.getOwnPropertyDescriptor(t,r);return o.Object.defineProperty(t,r,i?n:{set(e){o7(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){si(g)({target:this,isTrusted:!1})}},!1,v))),si(()=>{_.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:s}){let a=si(s=>oq(si(o=>{let a=sv(o);if(!a||oX(a,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:l,volume:u,muted:c,playbackRate:d})}),o.media||500)),l=[oB("play",a(sn.Play),s),oB("pause",a(sn.Pause),s),oB("seeked",a(sn.Seeked),s),oB("volumechange",a(sn.VolumeChange),s),oB("ratechange",a(sn.RateChange),s)];return si(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:si((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=sk(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:a}]}),n.apply(i,o)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:si((n,i,o)=>{let[s]=o,{id:a,styleId:l}=sk(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:si((n,i,o)=>{let[s]=o,{id:a,styleId:l}=sk(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:si((n,i,o)=>{let[s]=o,{id:a,styleId:l}=sk(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),n.apply(i,o)})}));let l={};sM("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(sM("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),sM("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),sM("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:si((n,i,o)=>{let[s,a]=o,{id:l,styleId:u}=sk(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...sx(i),a||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:si((n,i,o)=>{let[s]=o,{id:a,styleId:l}=sk(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...sx(i),s]}]}),n.apply(i,o)})})}),si(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=sT(e,e.doc),p=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:si((i,s,a)=>{let[l,u,c]=a;if(r.has(l))return o.apply(s,[l,u,c]);let{id:d,styleId:p}=sk(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:sx(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:si((i,o,a)=>{let[l]=a;if(r.has(l))return s.apply(o,[l]);let{id:u,styleId:c}=sk(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:sx(o.parentRule)}),i.apply(o,a)})}),si(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(h=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 s=oH(t.fonts,"add",function(t){return function(r){return o7(si(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(s),si(()=>
49{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:s}=e,a=!0,l=si(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:s,startOffset:a,endContainer:u,endOffset:c}=e.getRangeAt(t);oX(s,n,i,o,!0)||oX(u,n,i,o,!0)||l.push({start:r.getId(s),startOffset:a,end:r.getId(u),endOffset:c})}s({ranges:l})});return l(),oB("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?oH(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 si(()=>{s_.forEach(e=>e.reset()),r?.disconnect(),i(),o(),s(),a(),l(),u(),c(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function sC(e){return void 0!==window[e]}function sM(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class sI{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),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}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}}class sO{constructor(){this.crossOriginIframeMirror=new sI(oE),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class sA{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sI(oE),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=sc(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&sc(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=su(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 o9.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:o9.IncrementalSnapshot,data:{source:se.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case o9.Meta:case o9.Load:case o9.DomContentLoaded:break;case o9.Plugin:return t;case o9.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case o9.IncrementalSnapshot:switch(t.data.source){case se.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)}
49),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 se.Drag:case se.TouchMove:case se.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case se.ViewportResize:return!1;case se.MediaInteraction:case se.MouseInteraction:case se.Scroll:case se.CanvasMutation:case se.Input:return this.replaceIds(t.data,e,["id"]),t;case se.StyleSheetRule:case se.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case se.Font:return t;case se.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case se.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,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 sN{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sP{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(!oi(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=sb({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(sS({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),o7(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(sT({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t,r=su(e),n=sc(e);if(r&&n){try{t=n.Element}catch(e){return}t&&this.patchAttachShadow(t,r)}}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(oH(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&o6(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 sD{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new o3,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:os(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 sL{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){o4("requestAnimationFrame")(...e)}
49(()=>{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=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let sj=new oa;function s$(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:_=!0,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:w,maskInputFn:E,maskTextFn:x,maxCanvasSize:k=null,packFn:T,sampling:R={},dataURLOptions:C={},mousemoveWait:M,recordDOM:I=!0,recordCanvas:O=!1,recordCrossOriginIframes:A=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:z}=e;m=U;let W=!A||window.parent===window,q=!1;if(!W)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!q)return()=>{};void 0!==M&&void 0===R.mousemove&&(R.mousemove=M),sj.reset();let H=!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===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!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 G=0,J=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!q&&(e=T(e)),e};g=(e,o)=>{if(e.timestamp=oV(),s_[0]?.isFrozen()&&e.type!==o9.FullSnapshot&&(e.type!==o9.IncrementalSnapshot||e.data.source!==se.Mutation)&&s_.forEach(e=>e.unfreeze()),W)r?.(J(e),o);else if(q){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===o9.FullSnapshot)t=e,G=0;else if(e.type===o9.IncrementalSnapshot){if(e.data.source===se.Mutation&&e.data.isAttachIframe)return;G++;let r=i&&G>=i,o=n&&t&&e.timestamp-t.timestamp>n;(r||o)&&en(!0)}};let Y=e=>{g({type:o9.IncrementalSnapshot,data:{source:se.Mutation,...e}})},Q=e=>g({type:o9.IncrementalSnapshot,data:{source:se.Scroll,...e}}),X=e=>g({type:o9.IncrementalSnapshot,data:{source:se.CanvasMutation,...e}}),K=new sD({mutationCb:Y,adoptedStyleSheetCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new sO:new sA({mirror:sj,mutationCb:Y,stylesheetManager:K,recordCrossOriginIframes:A,wrappedEmit:g});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:sj,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new sL,et=function(e,t){try{return e?e(t):new sl}catch{return console.warn("Unable to initialize CanvasManager"),new sl}}(z,{mirror:sj,win:window,mutationCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.CanvasMutation,...e}}),recordCanvas:O,blockClass:o,blockSelector:s,unblockSelector:a,maxCanvasSize:k,sampling:R.canvas,dataURLOptions:C,errorHandler:U}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sN:new sP({mutationCb:Y,scrollCb:Q,bypassOptions:{onMutation:B,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:_,maskInputOptions:H,dataURLOptions:C,maskAttributeFn:w,maskTextFn:x,maskInputFn:E,recordCanvas:O,inlineImages:L,sampling:R,slimDOMOptions:V,iframeManager:Z,stylesheetManager:K,
49canvasManager:et,keepIframeSrcFn:$,processedNodeManager:ee,ignoreCSSAttributes:F},mirror:sj}),en=(e=!1)=>{if(!I)return;g({type:o9.Meta,data:{href:window.location.href,width:oY(),height:oJ()}},e),K.reset(),er.init(),s_.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new oa,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:x,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return oU(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,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:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:x,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:sj,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:_,maskAllInputs:H,maskAttributeFn:w,maskInputFn:E,maskTextFn:x,slimDOM:V,dataURLOptions:C,recordCanvas:O,inlineImages:L,onSerialize:e=>{o0(e,sj)&&Z.addIframe(e),o1(e,sj)&&K.trackLinkElement(e),o2(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t);let r=sc(e);r&&et.addWindow(r),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{Y({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:$,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");g({type:o9.FullSnapshot,data:{node:t,initialOffset:oG(window)}}),s_.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,sj.getId(document))};y=en;try{let e=[],t=e=>si(sR)({onMutation:B,mutationCb:Y,mousemoveCb:(e,t)=>g({type:o9.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.MouseInteraction,...e}}),scrollCb:Q,viewportResizeCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.ViewportResize,...e}}),inputCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.Input,...e}}),mediaInteractionCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.MediaInteraction,...e}}),styleSheetRuleCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.StyleSheetRule,...e}}),styleDeclarationCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>g({type:o9.IncrementalSnapshot,data:{source:se.Font,...e}}),selectionCb:e=>{g({type:o9.IncrementalSnapshot,data:{source:se.Selection,...e}})},customElementCb:e=>{g({type:o9.IncrementalSnapshot,data:{source:se.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:_,sampling:R,recordDOM:I,recordCanvas:O,inlineImages:L,userTriggeredOnInput:P,collectFonts:D,doc:e,maskAttributeFn:w,maskInputFn:E,maskTextFn:x,keepIframeSrcFn:$,blockSelector:s,unblockSelector:a,slimDOMOptions:V,dataURLOptions:C,mirror:sj,iframeManager:Z,stylesheetManager:K,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>g({type:o9.Plugin,data:{plugin:e.name,payload:t}}
49)}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(oB("DOMContentLoaded",()=>{g({type:o9.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(oB("load",()=>{g({type:o9.Load,data:{}}),"load"===N&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),y=void 0,m=void 0}}catch(e){console.warn(e)}}function sF(e){return e>0x2540be3ff?e:1e3*e}function sU(e){return e>0x2540be3ff?e/1e3:e}function sB(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:o9.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,em.S)(t,10,1e3)}}),"console"===t.category)))}function sz(e){return e.closest("button,a")||e}function sW(e){let t=sq(e);return t&&t instanceof Element?sz(t):t}function sq(e){var t;return(t=e,(0,J.t)(t)&&"target"in t)?e.target:e}s$.mirror=sj,s$.takeFullSnapshot=function(e){if(!y)throw Error("please take full snapshot after start recording");y(e)},(O=N||(N={}))[O.NotStarted=0]="NotStarted",O[O.Running=1]="Running",O[O.Stopped=2]="Stopped";let sH=new Set([se.Mutation,se.StyleSheetRule,se.StyleDeclaration,se.AdoptedStyleSheet,se.CanvasMutation,se.Selection,se.MediaInteraction]);class sV{constructor(e,t,r=sB){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=sJ()},_||(_=[],(0,H.Q)(i8,"open",function(e){return function(...t){if(_)try{_.forEach(e=>e())}catch{}return e.apply(i8,t)}})),_.push(e),()=>{let t=_?_.indexOf(e):-1;t>-1&&_.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,!sG.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:sU(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=sU(e)}registerScroll(e=Date.now()){this._lastScroll=sU(e)}registerClick(e){let t=sz(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=sJ();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",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:i8.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:i8.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=iW(()=>this._checkClicks(),1e3)}}let sG=["A","BUTTON","INPUT"];function sJ(){return Date.now()/1e3}function sY(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var sQ=((A=sQ||{})[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment",A);let sX=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),sK=new Set([...sX,"data-sentry-element"]);function sZ(e,t){let r=s$.mirror.getId(e),n=r&&s$.mirror.getNode(r),i=n&&s$.mirror.getMeta(n),o=i&&i.type===sQ.Element?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
49e.type===sQ.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in e)if(sX.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return!t["data-sentry-component"]&&e["data-sentry-element"]&&(t["data-sentry-component"]=e["data-sentry-element"]),t}(o.attributes)}}:{}}}let s0={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:s3(o),end:s3(i),name:n,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,o=s3(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:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:s3(h),end:s3(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function s1(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function s2(e){let t=s0[e.entryType];return t?t(e):null}function s3(e){return(((0,j.D)()||i8.performance.timeOrigin)+e)/1e3}function s5(e){let t=e.entries[e.entries.length-1];return s4(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function s6(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=s$.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return s4(e,"cumulative-layout-shift",r,t)}function s8(e){let t=e.entries[e.entries.length-1];return s4(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function s4(e,t,r,n){let i=e.value,o=e.rating,s=s3(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>s$.mirror.getId(e)):void 0,attributions:n}}}let s7="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,s9=["log","warn","error"],ae="[Replay] ";function at(e,t="info"){ih({category:"console",data:{logger:"replay"},level:t,message:`${ae}${e}`},{level:t})}let ar=(S=!1,w=!1,E={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{S=!!e.captureExceptions,w=!!e.traceInternals}},s7?(s9.forEach(e=>{E[e]=(...t)=>{en.h[e](ae,...t),w&&at(t.join(""),ip(e))}}),E.exception=(e,...t)=>{t.length&&E.error&&E.error(...t),en.h.error(ae,e),S?(0,G.y)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):w&&at(e,"error")},E.infoTick=(...e)=>{en.h.log(ae,...e),w&&setTimeout(()=>at(e[0]),0)}):s9.forEach(e=>{E[e]=()=>void 0}),E);class an extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ai extends Error{constructor(){super("Worker destroyed")}}class ao{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 an;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:sF(e)}}class as{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success){s7&&ar.error("Error in compression worker: ",e.response),t.reject(Error("Error in compression worker"));return}t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>
49{this._worker.addEventListener("message",({data:r})=>{r.success?e():(s7&&ar.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{s7&&ar.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){s7&&ar.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new ai)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}}class aa{constructor(e){this._worker=new as(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=sF(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 an):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{s7&&ar.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 al{constructor(e){this._fallback=new ao,this._compression=new aa(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){s7&&ar.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){if(e instanceof ai)return;s7&&ar.exception(e,"Failed to add events when switching buffers.")}}}function au(){try{return"sessionStorage"in i8&&!!i8.sessionStorage}catch{return!1}}function ac(e){return void 0!==e&&Math.random()<e}function ad(e){if(au())try{i8.sessionStorage.setItem(i4,JSON.stringify(e))}catch{}}function ap(e){let t=Date.now(),r=e.id||(0,V.c)(),n=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,s=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:o,sampled:s,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function ah({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=ap({sampled:ac(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&ad(i),i}function af(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function am(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return af(e.started,t,n)||af(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function ag({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!au())return null;try{let e=i8.sessionStorage.getItem(i4);if(!e)return null;let t=JSON.parse(e);return s7&&ar.infoTick("Loading existing session"),ap(t)}catch{return null}}();return i?am(i,{sessionIdleExpire:e,maxReplayDuration:t})?(s7&&ar.infoTick("Session in sessionStorage is expired, creating new one..."),ah(n,{previousSessionId:i.id})):i:(s7&&ar.infoTick("Creating new session"),ah(n,{previousSessionId:r}))}function ay(e,t,r){return!!av(e,t)&&(a_(e,t,r),!0)}async function a_(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(),s=function(e,t){try{if("function"==typeof t&&e.type===o9.Custom)return t(e)}catch(e){return s7&&ar.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,o.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(o){if(!e.isEnabled())return e.handleException(o),null;let t=o&&o instanceof an,r=(0,$.l)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}
49function av(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=sF(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(s7&&ar.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function ab(e,t,r){let n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function aS(e){return"transaction"===e.type}function aw(e){return"feedback"===e.type}function aE(e){return!!e.category}function ax(){let e=(0,$.d)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eu.j)();if(t){let e=(0,ed.O)(t);delete e.replay_id}}function ak(e){let t=(0,$.d)().getPropagationContext().dsc;t&&(t.replay_id=e);let r=(0,eu.j)();r&&((0,ed.O)(r).replay_id=e)}function aT(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{let s=e.throttledAddEvent({type:o9.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function aR(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,i,o,s,a,l;let u,c,d;if(s7&&e.getOptions()._experiments.traceInternals)return!1;return r=(0,$.l)(),u=r?.getDsn(),c=r?.getOptions().tunnel,n=t,i=u,!(!(d=e0(n))||eZ(d))&&!!i&&(o=d.hostname,o===(s=i.host)||s.length>0&&o.endsWith(`.${s}`))&&/(^|&|\?)sentry_key=/.test(d.search)||(a=t,!!(l=c)&&i6(a)===i6(l))}(e,t.name)&&e.addUpdate(()=>(aT(e,[t]),!0))}function aC(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=rB(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function aM(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function aI(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 aO(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:s,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:o,statusCode:s,request:a,response:l}}}function aA(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function aN(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){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,o=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return o?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(o)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,o?.length&&(n._meta={warnings:o}),n}function aP(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 aD(e,t){let r=function(e,t=i8.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(i8.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,eo.$)(r,t)}async function aL(e,t,r){try{let n=await aj(e,t,r),i=aO("resource.fetch",n);aR(r.replay,i)}catch(e){s7&&ar.exception(e,"Failed to capture fetch breadcrumb")}}async function aj(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:s,method:a,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=aD(s,r.networkDetailAllowUrls)&&!aD(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,o;let s=r?(i=r,o=t,1===i.length&&"string"!=typeof i[0]?aB(i[0],o):2===i.length?aB(i[1],o):{}):{};if(!e)return aN(s,n,void 0);let[a,l]=rz(rW(r),ar),u=aN(s,n,a);return l?aI(u,l):u}(r,t.input,u):aA(u),response:await a$(d,r,t.response,c)}}async function a$(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return aA(i);let o=n?aU(n.headers,r):{};if(!n||!t&&void 0!==i)return aN(o,i,void 0);let[s,a]=await aF(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let o=e?.length&&void 0===r?aC(e):r;if(!n)return aA(o);if(t)return aN(i,o,e);return aN(i,o,void 0)}catch(e){return s7&&ar.exception(e,"Failed to serialize response body"),aN(i,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?aI(l,a):l}async function aF(e){let t=function(e){try{return e.clone()}catch(e){s7&&ar.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)=>
49{let n=iW(()=>t(Error("Timeout while trying to read response body")),500);az(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return s7&&ar.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return s7&&ar.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function aU(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function aB(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?aU(r,t):Array.isArray(r)?{}:aP(r,t):{}}async function az(e){return await e.text()}async function aW(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:s,xhr:a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!a||!aD(l,r.networkDetailAllowUrls)||aD(l,r.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:aA(d),response:aA(p)};let h=a[rj],f=h?aP(h.request_headers,r.networkRequestHeaders):{},m=aP(rq(a),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?rz(s,ar):[void 0],[_,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&&(0,J.t)(r))return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return s7&&ar.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return s7&&ar.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return s7&&ar.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=aN(f,d,g),S=aN(m,p,_);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:y?aI(b,y):b,response:v?aI(S,v):S}}(e,t,r),i=aO("resource.xhr",n);aR(r.replay,i)}catch(e){s7&&ar.exception(e,"Failed to capture xhr breadcrumb")}}async function aq(e){try{return Promise.all(aT(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}}}}(i8.performance.memory)]))}catch{return[]}}let aH=L.f.navigator;async function aV({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,nW.H)(e.getOptions(),n,i,t,e,(0,$.V)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";let s=e.getSdkMetadata(),{name:a,version:l,settings:u}=s?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function aG({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){var s;let a,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
50`;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:u,errorIds:c,traceIds:d,segmentNames:p,initialTimestamp:h}=n,f=(0,$.l)(),m=(0,$.d)(),g=f?.getTransport(),y=f?.getDsn();if(!f||!g||!y||!o.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,segment_names:p,urls:u,replay_id:t,segment_id:r,replay_type:o.sampled},v=await aV({scope:m,client:f,replayId:t,event:_});if(!v)return f.recordDroppedEvent("event_processor","replay"),s7&&ar.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;let b=(s=f.getOptions().tunnel,ey(ex(v,eE(v),s,y),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await g.send(b)}catch(t){let e=Error(i7);try{e.cause=t}catch{}throw e}let S=nB({},a);if(nU(S,"replay"))throw new aY(S);if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new aJ(a.statusCode);return a}
50class aJ extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class aY extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class aQ extends Error{constructor(){super("Session is too long, not sending replay")}}async function aX(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await aG(e),!0}catch(r){if(r instanceof aJ||r instanceof aY)throw r;if((0,G.g)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${i7} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{iW(async()=>{try{await aX(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let aK="__THROTTLED";class aZ{constructor({options:e,recordingOptions:t}){var r;let n,i;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,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,o,s=r?.maxWait?Math.max(r.maxWait,t):0,a=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=a(l,t),s&&void 0===o&&(o=a(l,s)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:iW}),this._throttledAddEvent=(r=(e,t)=>av(this,e)?a_(this,e,t):Promise.resolve(null),n=new Map,i=!1,(...e)=>{let t,o=Math.floor(Date.now()/1e3);if(t=o-5,n.forEach((e,r)=>{r<t&&n.delete(r)}),[...n.values()].reduce((e,t)=>e+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":aK}i=!1;let s=n.get(o)||0;return n.set(o,s+1),r(...e)});let{slowClickTimeout:o,slowClickIgnoreSelectors:s}=this.getOptions(),a=o?{threshold:Math.min(3e3,o),timeout:o,scrollTimeout:300,ignoreSelector:s?s.join(","):""}:void 0;if(a&&(this.clickDetector=new sV(this,a)),s7){let t=e._experiments;ar.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===i8.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=sY({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=sY({category:"ui.focus"});this._doChangeToForegroundTasks(e)},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:s,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||i||o,u=1===s.length;if(!l&&u)return null;let c=tf(a,{maxStringLength:200})||"<unknown>",d=sZ(a,c);return sY({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:s}})}(t);r&&sB(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){s7&&ar.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){s7&&ar.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",s7&&ar.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){s7&&ar.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){s7&&ar.log("Buffering is in progress, call `flush()` to save the replay");return}s7&&ar.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=ag({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
50startBuffering(){if(this._isEnabled){s7&&ar.log("Buffering is in progress, call `flush()` to save the replay");return}s7&&ar.infoTick("Starting replay in buffer mode");let e=ag({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=s$({...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)=>{try{if(!e.checkAndHandleExpiredSession()){s7&&ar.warn("Received replay event after session expired.");return}let i=n||!t;t=!0,function(e){let t=e.data;if(e.type===o9.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===se.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=s$.mirror.getNode(e.id),r=t&&s$.mirror.getMeta(t);if(!t||r?.type!==sQ.Element)continue;let n={...r.attributes},i=!1;for(let[t,r]of Object.entries(e.attributes))sK.has(t)&&(null===r?delete n[t]:n[t]=r,i=!0);i&&s$.mirror.add(t,{...r,attributes:n})}}(r),e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(sH.has(n)&&e.registerMutation(t.timestamp),n===se.Scroll&&e.registerScroll(t.timestamp),t.data.source===se.MouseInteraction){let{type:r,id:n}=t.data,i=s$.mirror.getNode(n);i instanceof HTMLElement&&r===st.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!ay(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;ay(e,(t=e.getOptions(),{type:o9.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}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(s7&&ar.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&ad(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}}),.../iPhone|iPad|iPod/i.test(aH?.userAgent??"")||/Macintosh/i.test(aH?.userAgent??"")&&aH?.maxTouchPoints&&aH?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...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)return;this._isEnabled=!1,this.recordingMode="buffer";let r=t??"manual";(0,$.l)()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{s7&&ar.log(`Stopping Replay triggered by ${r}`),ax(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(au())try{i8.sessionStorage.removeItem(i4)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),s7&&ar.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),s7&&ar.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();s7&&ar.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),ak(this.session.id)),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!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(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
50checkAndHandleExpiredSession(){return this._lastActivity&&af(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${i8.location.pathname}${i8.location.hash}${i8.location.search}`,t=`${i8.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===aK){let e=sY({category:"replay.throttled"});this.addUpdate(()=>!ay(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,eu.j)(),t=e&&(0,eu.e)(e),r=(t&&(0,eu.l)(t).data||{})[D.U];if(t&&r&&["route","custom"].includes(r))return(0,eu.l)(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("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 50
50var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
50'],{type:"text/javascript"}),URL.createObjectURL(e)}return""}();if(!t)return;s7&&ar.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new al(r)}catch(e){s7&&ar.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return s7&&ar.log("Using simple buffer"),new ao}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,$.l)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&ak(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=ag({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!am(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{i8.document.addEventListener("visibilitychange",this._handleVisibilityChange),i8.addEventListener("blur",this._handleWindowBlur),i8.addEventListener("focus",this._handleWindowFocus),i8.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,$.l)();ig(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?sW(e.event):sq(e.event),t=tf(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return sY({category:`ui.${e.name}`,...sZ(t,r)})}(t);if(!i)return;let o="click"===t.name,s=o?t.event:void 0;o&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&(r=e.clickDetector,n=sW(t.event),r.handleClick(i,n)),sB(e,i)}),tc(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(()=>(aT(e,[r]),!1)))}),(t=(0,$.l)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!aE(t))return;let n=!aE(r=t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return sY(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,em.S)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return sY({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):sY(r);n&&sB(e,n)})(e,t));let n=(0,$.l)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,o,s;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=aC(n),o=r.getResponseHeader("content-length")?aM(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&(0,J.t)(e)?JSON.stringify(e):e;return aC(r)}catch{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),aW(t,r,e)),o=t,"fetch"===o.category&&(s=r,s?.input!==void 0)&&(!function(e,t){let{input:r,response:n}=t,i=aC(r?rW(r):void 0),o=n?aM(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),aL(t,r,e))}
50catch(e){s7&&ar.exception(e,"Error when enriching network breadcrumb")}})(a,e,t))}catch{}let i=Object.assign((t,r)=>{if(e.session&&am(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&ax(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!aS(t)&&!aw(t))return t;if(!e.checkAndHandleExpiredSession())return ax(),t;if(aw(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:o9.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return s7&&ar.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==i7&&!!t.exception&&!t.type&&ac(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&ad(t)}return t},{id:"Replay"});(0,G.A)(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,"string"==typeof(i=n.exception?.values?.[0]?.value)&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&sB(r,sY({category:"replay.hydrate-error",data:{url:Q()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!aS(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(aS(t)){var i,o;return void(i=e,o=t,ab(i,o.contexts?.trace?.trace_id,o.transaction))}!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?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&iW(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("processSegmentSpan",t=>{e.isEnabled()&&ab(e,t.trace_id,t.name||void 0)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(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=[];return["navigation","paint","resource"].forEach(e=>{n.push(tK(e,r))}),n.push(tQ(s1(s5,e)),tY(s1(s6,e)),tX(s1(s8,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{i8.document.removeEventListener("visibilitychange",this._handleVisibilityChange),i8.removeEventListener("blur",this._handleWindowBlur),i8.removeEventListener("focus",this._handleWindowFocus),i8.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(am(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?ax():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){s7&&ar.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:o9.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(s2).filter(
50Boolean).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(aT(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){s7&&ar.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await aq(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new aQ;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await aX({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:"sendError"});let e=(0,$.l)();e&&e.recordDroppedEvent(t instanceof aY?"ratelimit_backoff":t instanceof aQ?"invali
50d":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){s7&&ar.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){s7&&ar.log(`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&&s7&&ar.log("Flushing initial segment without checkout.");let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&ad(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=n&&r>n;if(r>i||o){let e=sY({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function a0(e,t){return[...e,...t].join(",")}let a1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',a2=["content-length","content-type","accept"],a3=Symbol.for("sentry__originalRequestBody"),a5=!1,a6=!1;function a8(e){return[...a2,...e.map(e=>e.toLowerCase())]}let a4=/bot|crawl|spider|slurp|headless|lighthouse|pagespeed|phantomjs|puppeteer|playwright|selenium|prerender|facebookexternalhit|bingpreview/i,a7=/^(chrome|moz|safari(-web)?)-extension:\/\//,a9=/^auto\.browser\.browserapierrors\./,le=/The object can not be found here|Failed to execute '(removeChild|insertBefore)' on 'Node'|The node to be removed is not a child of this node/,lt=/styled-components\/.*errors\.md#17\b/;function lr(e){let t=e.filename??"";return t.startsWith("app:///")&&!ln(e)||a7.test(t)}function ln({filename:e=""}){return/\/_next\/|\/\.next\//.test(e)}let li="https://07f2c884b16536aaa24c379df97b5a39@o4508086263021568.ingest.de.sentry.io/4512175582019665";function lo(e,t,r,n,i){!function(e,t=(0,$.d)(),r=function(e,t){var r;let n=nO(),i=(r=e,nO().get(r));void 0===i?n.set(e,[t]):i.length>=100?(nI(e,i),n.set(e,[t])):n.set(e,[...i,t])}){let n,i,o=t?.getClient()??(0,$.l)();if(!o){er.f&&en.h.warn("No client available to capture log.");return}let{release:s,environment:a,enableLogs:l=!0,beforeSendLog:c}=o.getOptions();if(!l){er.f&&en.h.warn("logging option not enabled, log will not be captured.");return}let[,d]=t?(0,$.h)(t,()=>{let e=(0,eu.j)(),r=e?(0,eu.m)(e):(0,$.i)(t);return[e?(0,ed.O)(e):(0,ed.H)(o,t),r]}):[void 0,void 0],p={...e.attributes},{user:{id:h,email:f,username:m},attributes:g={}}=(0,nT.Z)((0,$.V)(),t);nM(p,"user.id",h,!1),nM(p,"user.email",f,!1),nM(p,"user.name",m,!1),nM(p,"sentry.release",s),nM(p,"sentry.environment",a);let{name:y,version:_}=o.getSdkMetadata()?.sdk??{};nM(p,"sentry.sdk.name",y),nM(p,"sentry.sdk.version",_);let v=o.getIntegrationByName("Replay"),b=v?.getReplayId(!0);nM(p,"sentry.replay_id",b),b&&v?.getRecordingMode()==="buffer"&&nM(p,"sentry._internal.replay_is_buffering",!0);let S=e.message;if((0,J.S)(S)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=S;t?.length&&(p["sentry.message.template"]=e),t.forEach((e,t)=>{p[`sentry.message.parameter.${t}`]=e})}let w=(0,el.c)(t);nM(p,"sentry.trace.parent_span_id",w?.spanContext().spanId);let E={...e,attributes:p};o.emit("beforeCaptureLog",E);let x=c?(0,en.D)(()=>c(E)):E;if(!x){o.recordDroppedEvent("before_send","log_item",1),er.f&&en.h.warn("beforeSendLog returned null, log will not be captured.");return}let{level:k,message:T,attributes:R={},severityNumber:C}=x,M=(0,j.R)(),I=(n=Math.floor(1e3*M),void 0!==u&&n!==u&&(nR=0),i=nR,nR++,u=n,{key:"sentry.timestamp.sequence",value:{value:i,type:"integer"}});r(o,{timestamp:M,level:k,body:nA(String(T)),trace_id:d?.trace_id,severity_number:C??nC[k],attributes:function(e){let t={};for(let[r,n]of Object.entries(e)){let e=nA(r);"string"===n.type?t[e]={...n,value:nA(n.value)}:t[e]=n}return t}({...(0,nk.f)(g),...(0,nk.f)(R,!0),[I.key]:I.value})}),o.emit("afterCaptureLog",x)}({level:e,message:t,attributes:r,severityNumber:i},n)}!function(e){let t,r,n,i,o,s,a,l;i3&&(0,en.D)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),i3=!0,!r5&&e.debug&&(0,en.D)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){K.document&&function(e){let t=nr(e)||e,r=i1.get(t);if(void 0!==r)return r;
50let n=nt();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return i1.set(t,!1),!1;let i=n.isrRoutes.includes(t);return i1.set(t,i),i}(K.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=K.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let u={environment:e.environment||P.default.env.SENTRY_ENVIRONMENT||(t="production",`vercel-${t}`)||"production",defaultIntegrations:(i=iG(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&i.push(iQ()),o=i5._sentryRewriteFramesAssetPrefixPath||"",s=P.default.env._sentryAssetPrefix||i5._sentryAssetPrefix,a=P.default.env._sentryBasePath||i5._sentryBasePath,l="true"===P.default.env._experimentalThirdPartyOriginStackFrames||"true"===i5._experimentalThirdPartyOriginStackFrames,i.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in L.f&&!!L.f.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){let e,o,s=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?function(e,t){e=iK(e).slice(1),t=iK(t).slice(1);let r=iZ(e.split("/")),n=iZ(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let s=[];for(let e=o;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(o))).join("/")}(t,s):(e=s.length>1024?`<truncated>${s.slice(-1024)}`:s,(o=iX.exec(e))?o.slice(1):[])[2]||"";n.filename=`${r}${a}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:i=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(i0)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:s,basePath:a,rewriteFramesAssetPrefixPath:o,experimentalThirdPartyOriginStackFrames:l})),i),release:"b8cc831c5d99ede18a4783d32a0193cd9b30f199",...e};!function(e){let t=P.default.env._sentryRewritesTunnelPath||i2._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,eh.o)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],s=`${t}?o=${i}&p=${r.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,r5&&en.h.log(`Tunneling events to "${s}"`)}else r5&&en.h.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(u),nm(u,"nextjs",["nextjs","react"]),u.ignoreSpans=[...u.ignoreSpans||[],/^\/404$/,RegExp(`^${no}$`)],nm(r={...u},"react"),(0,G.g)("react",{version:iJ.version}),n=function(e={}){var t;let r,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===K.window||K.nw)return!1;let e=K.chrome||K.browser;if(!e?.runtime?.id)return!1;let t=Q();return!(K===K.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(rd&&(0,en.D)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),i=null==e.defaultIntegrations?iG():e.defaultIntegrations,o={...e,enabled:!n&&e.enabled,stackParser:(0,e5.E)(e.stackParser||iF),integrations:function(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;
50if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}({integrations:e.integrations,defaultIntegrations:i}),transport:e.transport||iq};return(0,em.Q)(iV),!0===o.debug&&(er.f?en.h.enable():(0,en.D)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,$.d)().update(o.initialScope),t=r=new il(o),(0,$.d)().setClient(t),r.init(),r}(r),(0,em.Q)(iY);let c=(e,t)=>{var r;return(r=t?.originalException,(0,J.b)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};c.id="NextRedirectErrorFilter",(0,G.A)(c);try{(0,$.J)().setTag("turbopack",!0)}catch{}}({dsn:li,environment:"production",enabled:!!li&&("Production"===nh.tH.PROD||"Production"===nh.tH.STAGING),tracesSampleRate:Number.isFinite(x=parseFloat("0.01"))&&x>=0&&x<=1?x:.02,tracePropagationTargets:["https://storefront.foodamigos.io/api","https://storefront.foodamigos.io/mail","https://reservation.foodamigos.io/api","https://app.foodamigos.io/api"].flatMap(e=>{try{let{origin:t}=new URL(e??"");return[RegExp(`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(/|$)`)]}catch{return[]}}),debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:0,integrations:[iQ({ignoreResourceSpans:["resource.script","resource.css","resource.img","resource.link","resource.font","resource.video","resource.iframe","resource.other","resource.fetch","resource.xmlhttprequest","resource.beacon"],ignorePerformanceApiSpans:[/.*/],enableLongAnimationFrame:!1,enableLongTask:!1}),new class e{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:E=[],unblock:x=[],ignore:k=[],maskFn:T,beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:M,attachRawBodyFromRequest:I=!1}={}){this.name="Replay";let O=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:a0(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:a0(t,[]),blockSelector:a0(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:a0(n,[]),ignoreSelector:a0(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:E,unblock:x,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;let s=r.includes(t),a=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return s||a?o.replace(/[\S]/g,"*"):o})({maskAttributes:S,maskAllText:l,privacyOptions:O,key:e,value:t,el:r}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:a8(_),networkResponseHeaders:a8(v),beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:M,attachRawBodyFromRequest:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${a1}`:a1,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&rx())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return a5}set _isInitialized(e){a5=e}afterAllSetup(e){rx()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||a6)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[a3]=r.body),n};t.prototype=e.prototype,L.f.Request=t,a6=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
50startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(iE(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&iE(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,i,o,s=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,ej.f)(r.replaysSessionSampleRate),o=(0,ej.f)(r.replaysOnErrorSampleRate),null==i&&null==o&&(0,en.D)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=o&&(n.errorSampleRate=o),n);this._replay=new aZ({options:s,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}({maskAllText:!0,blockAllMedia:!0,beforeErrorSampling:e=>(function(e="u"<typeof navigator?void 0:navigator){return!e||!e.webdriver&&!a4.test(e.userAgent??"")})()})],ignoreErrors:["Object captured as promise rejection with keys: errorFields, outOfDate, values","Load failed","TypeError: Failed to fetch","TypeError: NetworkError when attempting to fetch resource.","TypeError: Error in input stream","Failed to connect to MetaMask",/Object Not Found Matching Id:\d+, MethodName:update, ParamCount:4/,"ReferenceError: globalThis is not defined","Argument 1 ('other') to Node.contains must be an instance of Node","The router state header was sent but could not be parsed."],beforeSend:function(e){var t;let r=e.exception?.values?.[0],n=r?.value||"",i=r?.stacktrace?.frames??[];return r?.type==="SecurityError"&&(n.includes("Blocked a frame with origin")||n.includes("Failed to read a named property 'document' from 'Window'"))||function(e,t=""){let r=a9.test(t)?e.slice(1):e;return r.length>0&&r.every(lr)}(i,r?.mechanism?.type)||n.includes("Invalid call to runtime.sendMessage(). Tab not found")&&!i.some(ln)||n.includes("Maximum call stack size exceeded")&&!i.some(ln)||le.test(n)&&function(){try{return"u">typeof document&&null!==document.querySelector("chrome_annotation, html.translated-ltr, html.translated-rtl")}catch{return!1}}()||lt.test(n)&&!function(){if("u"<typeof document)return!0;try{let e=document.createElement("style");document.head.appendChild(e);let t=null!==e.sheet;return e.remove(),t}catch{return!0}}()||n.includes("Failed to find Server Action")&&(t=e,!Object.keys({...t.sdkProcessingMetadata?.normalizedRequest?.headers,...t.request?.headers}).some(e=>"next-action"===e.toLowerCase()))?null:e}}),e.s(["debug",0,function(e,t,{scope:r}={}){lo("debug",e,t,r)},"error",0,function(e,t,{scope:r}={}){lo("error",e,t,r)},"fatal",0,function(e,t,{scope:r}={}){lo("fatal",e,t,r)},"fmt",0,function(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},"info",0,function(e,t,{scope:r}={}){lo("info",e,t,r)},"trace",0,function(e,t,{scope:r}={}){lo("trace",e,t,r)},"warn",0,function(e,t,{scope:r}={}){lo("warn",e,t,r)}],160443);var ls=e.i(160443),ls=ls;globalThis._sentryRouteManifest='{"dynamicRoutes":[{"path":"/:slug","regex":"^/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/location-and-hours/:slug*","regex":"^/location-and-hours/(.+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/menu/:slug","regex":"^/menu/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false}],"staticRoutes":[{"path":"/"},{"path":"/cookie-policy"},{"path":"/impressum"},{"path":"/privacy-policy"},{"path":"/catering"},{"path":"/events"},{"path":"/gift-cards"},{"path":"/location-and-hours"},{"path":"/menu"},{"path":"/reservations"},{"path":"/rewards"}],"isrRoutes":[]}',globalThis._sentryNextJsVersion="16.4.0",function(){if("function"!=typeof Node||!Node.prototype)return;let e=Node.prototype.removeChild,t=Node.prototype.insertBefore;if(e.__domMutationGuard)return;let r=(e,t,r)=>{let n={operation:e,parent:t.nodeName,child:r?.nodeName??null};ih({category:"dom.guard",level:"warning",data:n}),ls?.warn("dom_mutation_guard",n)},n=function(t){return t.parentNode!==this?(r("removeChild",this,t),t):e.call(this,t)};n.__domMutationGuard=!0,Node.prototype.removeChild=n,Node.prototype.insertBefore=function(e,n){return n&&n.parentNode!==this?(r("insertBefore",this,n),e):t.call(this,e,n)}}(),e.s(["onRouterTransitionStart",0,function(e,t){b&&b(e,t)}],617742)}],462826,(e,t,r)=>{if(/(?:^|;\s)__vercel_toolbar=1(?:;|$)/.test(document.cookie)){var n=document.createElement("script");n.src="https://vercel.live/_next-live/feedback/feedback.js",n.setAttribute("data-explicit-opt-in","true"),n.setAttribute("data-cookie-opt-in","true"),n.setAttribute("data-deployment-id",globalThis.NEXT_DEPLOYMENT_ID),(document.head||document.documentElement).appendChild(n)}},83793,(e,t,r)=>{t.exports=[e.r(462826),e.f({"private-next-instrumentation-client-user":{id:()=>617742,module:()=>e.r(617742)}})("private-next-instrumentation-client-user")]},966849,(e,t,r)=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Ob
50ject.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})}]);
51
52//# debugId=7dec5d3f-3008-ef2e-ec91-d86bc5b63120

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.