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]="a18a6a3f-14ef-9df7-bcee-bfd77715d9b0")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,535192,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return n}}),e.r(82823);let n=(e,...t)=>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)},827018,(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return n}}),e.r(572463),("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)},396517,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"appBootstrap",{enumerable:!0,get:function(){return i}});let n=e.r(140170),a=e.r(922737);function i(e){var t,r;let i=(0,n.getAssetPrefix)();t=self.__next_s,r=()=>{e(i)},t&&t.length?t.reduce((e,[t,r])=>e.then(()=>new Promise((e,n)=>{let i=document.createElement("script");r&&(0,a.setAttributesFromProps)(i,r),t?(i.src=t,i.onload=()=>e(),i.onerror=n):r&&(i.innerHTML=r.children,setTimeout(e)),document.head.appendChild(i)})),Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}window.next={version:"16.3.6",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)},198569,(e,t,r)=>{"use strict";let n,a,i,s;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hydrate",{enumerable:!0,get:function(){return B}});let o=e.r(555682),l=e.r(843476);e.r(523911);let c=o._(e.r(88014)),u=o._(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),_=e.r(699781),y=o._(e.r(875530)),v=e.r(665716);e.r(8372);let b=e.r(450590),S=e.r(543369),E=e.r(732992),w=e.r(76138),x=d.createFromReadableStream,R=d.createFromFetch,T=document,O=self.__next_instant_test?self.__next_instant_test:void 0,P=new TextEncoder,I=!1,C=!1,k=null;function N(e){if(0===e[0])i=[];else if(1===e[0]){if(!i)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});s?s.enqueue(P.encode(e[1])):i.push(e[1])}else if(2===e[0])k=e[1];else if(3===e[0]){if(!i)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});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):i.push(n)}}let A=function(){s&&!C&&(s.close(),C=!0,i=void 0),I=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",A,!1):setTimeout(A);let M=self.__next_f=self.__next_f||[];M.forEach(N),M.length=0,M.push=N;let D=new ReadableStream({start(e){i&&(i.forEach(t=>{e.enqueue("string"==typeof t?P.encode(t):t)}),I&&!C)&&(null===e.desiredSize||e.desiredSize<0?O||e.error(Object.defineProperty(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."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),C=!0,i=void 0),s=e}});if(O)a=Promise.resolve(R(O,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n,unstable_allowPartialStream:!0})).then(async e=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await O,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;a=Promise.resolve(R(e,{callServer:m.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:n})).then(async t=>(0,b.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else a=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)(y.default,{actionQueue:t,globalErrorState:e.G,webSocket:r,staticIndicatorState:n})}let j=u.default.StrictMode;function $({children:e}){return e}let U={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:h.onRecoverableError,onCaughtError:f.onCaughtError,onUncaughtError:f.onUncaughtError};async function B(e,t){let r,n,i=await a;i.b?(0,E.setNavigationBuildId)(i.b):(0,E.setNavigationBuildId)((0,S.getDeploymentId)()),(0,w.initializeRouterTransitionModules)(e);let s=Date.now(),o=(0,_.createMutableActionQueue)((0,v.createInitialRouterState)({navigatedAt:s,initialRSCPayload:i,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:i,actionQueue:o,webSocket:n,staticIndicatorState:r})})})});"__next_error__"===document.documentElement.id?c.default.createRoot(T,U).render(d):u.default.startTransition(()=>{c.default.hydrateRoot(T,d,{...U,formState:k})})}("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)=>{"use strict";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 a=e.r(5526);(0,n.appBootstrap)(t=>{let{hydrate:r}=e.r(198569);r(a,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)},140170,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getAssetPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(312718);function a(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new n.InvariantError(`Expected document.currentScript to be a <script> element. Received ${e} instead.`),"__NEXT_ERROR_CODE",{value:"E783",enumerable:!1,configurable:!0});let{pathname:t}=new URL(e.src),r=t.indexOf("/_next/");if(-1===r)throw Object.defineProperty(new n.InvariantError(`Expected document.currentScript src to contain '/_next/'. Received ${e.src} instead.`),"__NEXT_ERROR_CODE",{value:"E784",enumerable:!1,configurable:!0});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)},762634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"AppRouterAnnouncer",{enumerable:!0,get:function(){return s}});let n=e.r(271645),a=e.r(174080),i="next-route-announcer";function s({tree:e}){let[t,r]=(0,n.useState)(null);(0,n.useEffect)(()=>(r(function(){let e=document.getElementsByName(i)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(i);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(i)[0];e?.isConnected&&document.body.removeChild(e)}),[]);
2let[o,l]=(0,n.useState)(""),c=(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!==c.current&&c.current!==e&&l(e),c.current=e},[e]),t?(0,a.createPortal)(o,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)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return A}});let n=e.r(555682),a=e.r(190809),i=e.r(843476),s=a._(e.r(271645)),o=e.r(8372),l=e.r(388540),c=e.r(451191),u=e.r(261994),d=e.r(941538),p=e.r(494272),h=e.r(762634),f=e.r(358442),m=e.r(425018),g=e.r(201244),_=e.r(387250),y=e.r(652817),v=e.r(734727),b=e.r(178377),S=e.r(699781),E=e.r(124063),w=e.r(968391),x=e.r(91949),R=n._(e.r(732237)),T=n._(e.r(168027)),O=e.r(897367);e.r(543369);let P={};function I({appRouterState:e}){return(0,s.useInsertionEffect)(()=>{let{tree:t,pushRef:r,canonicalUrl:n,renderedSearch:a}=e,i={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:a}};r.pendingPush&&(0,c.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(i,"",n)):window.history.replaceState(i,"",n),(0,p.setLastCommittedTree)(t)},[e]),(0,s.useEffect)(()=>{(0,x.pingVisibleLinks)(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function C(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 k({headCacheNode:e}){let t=null!==e?e.head:null,r=null!==e?e.prefetchHead:null,n=null!==r?r:t;return(0,s.useDeferredValue)(t,n)}function N({actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n}){let a,c=(0,d.useActionQueue)(e),{canonicalUrl:p}=c,{searchParams:b,pathname:x}=(0,s.useMemo)(()=>{let e=new URL(p,"u"<typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,y.hasBasePath)(e.pathname)?(0,_.removeBasePath)(e.pathname):e.pathname}},[p]);(0,s.useEffect)(()=>{let e=(0,v.extractSourcePageFromFlightRouterState)(c.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[c.tree]),(0,s.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(P.pendingMpaPath=void 0,(0,d.dispatchAppRouterAction)({type:l.ACTION_RESTORE,url:new URL(window.location.href),historyState: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,w.isRedirectError)(t)){e.preventDefault();let r=(0,E.getURLFromRedirectError)(t);"push"===(0,E.getRedirectTypeFromError)(t)?S.publicAppRouterInstance.push(r,{}):S.publicAppRouterInstance.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:T}=c;if(T.mpaNavigation){if(P.pendingMpaPath!==p){let e=window.location;
2T.pendingPush?e.assign(p):e.replace(p),P.pendingMpaPath=p}throw g.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.startTransition)(()=>{(0,d.dispatchAppRouterAction)({type:l.ACTION_RESTORE,url:new URL(e??t,t),historyState:r})})};window.history.pushState=function(t,n,a){return t?.__NA||t?._N||(t=C(t),a&&r(a)),e(t,n,a)},window.history.replaceState=function(e,n,a){return e?.__NA||e?._N||(e=C(e),a&&r(a)),t(e,n,a)};let n=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,s.startTransition)(()=>{(0,S.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[]);let{cache:A,tree:M,nextUrl:D,focusAndScrollRef:L,previousNextUrl:j}=c,$=(0,s.useMemo)(()=>(0,m.findHeadInCache)(A,M[1]),[A,M]),U=(0,s.useMemo)(()=>(0,v.getSelectedParams)(M),[M]),B=(0,s.useMemo)(()=>({parentTree:M,parentCacheNode:A,parentSegmentPath:null,parentParams:{},parentLoadingData:null,debugNameContext:"/",url:p,isActive:!0}),[M,A,p]),F=(0,s.useMemo)(()=>({tree:M,focusAndScrollRef:L,nextUrl:D,previousNextUrl:j}),[M,L,D,j]);if(null!==$){let[e,t,r]=$;a=(0,i.jsx)(k,{headCacheNode:e},"u"<typeof window?r:t)}else a=null;let W=(0,i.jsxs)(f.RedirectBoundary,{children:[a,(0,i.jsx)(O.RootLayoutBoundary,{children:A.rsc}),(0,i.jsx)(h.AppRouterAnnouncer,{tree:M})]});return W=(0,i.jsx)(R.default,{errorComponent:t[0],errorStyles:t[1],children:W}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I,{appRouterState:c}),null,(0,i.jsx)(u.NavigationPromisesContext.Provider,{value:null,children:(0,i.jsx)(u.PathParamsContext.Provider,{value:U,children:(0,i.jsx)(u.PathnameContext.Provider,{value:x,children:(0,i.jsx)(u.SearchParamsContext.Provider,{value:b,children:(0,i.jsx)(o.GlobalLayoutRouterContext.Provider,{value:F,children:(0,i.jsx)(o.AppRouterContext.Provider,{value:S.publicAppRouterInstance,children:(0,i.jsx)(o.LayoutRouterContext.Provider,{value:B,children:W})})})})})})})]})}function A({actionQueue:e,globalErrorState:t,webSocket:r,staticIndicatorState:n}){(0,b.useNavFailureHandler)();let a=(0,i.jsx)(N,{actionQueue:e,globalError:t,webSocket:r,staticIndicatorState:n});return(0,i.jsx)(R.default,{errorComponent:T.default,children: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)},18576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return l},errorStyles:function(){return s},errorThemeCss:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(555682);let i=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)"}},o=` 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,i.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:s.icon,children:(0,i.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)=>{"use strict";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 a=e.r(912354),i=e.r(18576),s=function({error:e}){let t=e?.digest,r=!!t;return(0,a.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:i.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:i.errorStyles.container,children:(0,n.jsxs)("div",{style:i.errorStyles.card,children:[(0,n.jsx)(i.WarningIcon,{}),(0,n.jsx)("h1",{style:i.errorStyles.title,children:"This page couldnât load"}),(0,n.jsx)("p",{style:i.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:i.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:i.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:i.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:i.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:i.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)},851323,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={onCaughtError:function(){return p},onUncaughtError:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(555682),s=e.r(265713),o=e.r(132061),l=e.r(528279),c=e.r(972383),u=i._(e.r(168027)),d={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function p(e,t){let r,n=t.errorBoundary?.constructor;if(r=r||n===c.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===u.default)return h(e);(0,o.isBailoutToCSRError)(e)||(0,s.isNextRouterError)(e)||d.originConsoleError(e)}function h(e){(0,o.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)},241624,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={GracefulDegradeBoundary:function(){return o},default:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(843476),s=e.r(271645);class o 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,i.jsx)("html",{ref:this.htmlRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:this.rootHtml}}):this.props.children}}let l=o;("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)},732237,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(555682),a=e.r(843476);e.r(271645);let i=n._(e.r(241624)),s=e.r(972383),o=e.r(82604),l="u">typeof window&&(0,o.isBot)(window.navigator.userAgent);function c({children:e,errorComponent:t,errorStyles:r,errorScripts:n}){return l?(0,a.jsx)(i.default,{children:e}):(0,a.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,"__esMo
32dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},665716,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInitialRouterState",{enumerable:!0,get:function(){return p}});let n=e.r(451191),a=e.r(734727),i=e.r(450590),s=e.r(595871),o=e.r(620896),l=e.r(509396),c=e.r(179027),u=e.r(787288),d=e.r(496167);function p({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:r,location:h}){let{c:f,f:m,q:g,i:_,S:y,s:v,l:b,h:S,r:E,p:w,d:x}=t,R=f.join("/"),{tree:T,seedData:O,head:P}=(0,i.getFlightDataPartsFromPath)(m[0]),I=h?(0,n.createHrefFromUrl)(h):R,C={metadataVaryPath:null,treeDivergedFromBase:!1},k=(0,o.convertRootFlightRouterStateToRouteTree)(T,g,C),N=C.metadataVaryPath,A=(0,s.createInitialCacheNodeForHydration)(e,k,O,P,(0,c.computeDynamicStaleAt)(e,x??c.UnknownDynamicStaleTime));if(null!==h&&null!==N){if((0,d.discoverKnownRoute)(Date.now(),h.pathname,h.search,null,null,k,N,_,I,y,!1),null!==O&&void 0!==v)if(void 0!==b&&null!=r)Promise.resolve(b).then(async e=>{let t=await (0,u.decodeStageUntilBoundary)(r,e,void 0),n=Date.now(),a=await (0,o.resolveStaleAt)(n,t.s);(0,o.writePrerenderResponseIntoCache)(n,l.FetchStrategy.PPR,t.f,void 0,t.h,t.r??null,a,T,g,!0,o.segmentCacheMap)}).catch(()=>{});else{let e=Date.now();(0,o.resolveStaleAt)(e,v).then(t=>{(0,o.writePrerenderResponseIntoCache)(e,l.FetchStrategy.PPR,m,void 0,S,E??null,t,T,g,!1,o.segmentCacheMap)}).catch(()=>{}),r?.cancel()}else r?.cancel();null!=w&&(0,o.processRuntimePrefetchStream)(Date.now(),w,T,g).then(e=>{null!==e&&(0,o.writeDynamicRenderResponseIntoCache)(Date.now(),l.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.rootVaryParamsIterable,e.staleAt,e.navigationSeed,null,o.segmentCacheMap)}).catch(()=>{})}return{tree:A.route,cache:A.node,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:I,renderedSearch:g,nextUrl:((0,a.extractPathFromFlightRouterState)(T)||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,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},425018,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findHeadInCache",{enumerable:!0,get:function(){return i}});let n=e.r(813258),a=e.r(270725);function i(e,t){return function e(t,r,i,s){if(0===Object.keys(r).length)return[t,i,s];let o=Object.keys(r).filter(e=>"children"!==e);"children"in r&&o.unshift("children");let l=t.slots;if(null!==l)for(let t of o){let[s,o]=r[t];if(s===n.DEFAULT_SEGMENT_KEY)continue;let c=l[t];if(!c)continue;let u=e(c,o,i+"/"+(0,a.createRouterCacheKey)(s),i+"/"+(0,a.createRouterCacheKey)(s,!0));if(u)return u}return null}(e,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)},885305,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}});let n=(...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)},741961,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return a}});let n=e.r(808341);function a(e,t,r){return new Promise((r,a)=>{let i=!1;e.then(e=>{i=!0,r(e)}).catch(a),(0,n.requestIdleCallback)(()=>setTimeout(()=>{i||a(t)},3800))})}("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)},490758,(e,t,r)=>{"use strict";let n;
32Object.defineProperty(r,"__esModule",{value:!0});var a={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return f},markAssetError:function(){return h}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});e.r(555682),e.r(957473);let s=e.r(87831),o=e.r(808341),l=e.r(543369),c=e.r(309885),u=e.r(741961);function d(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let i=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:i}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):i}let p=Symbol("ASSET_LOAD_ERROR");function h(e){return Object.defineProperty(e,p,{})}function f(e){return e&&p in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,u.resolvePromiseWithTimeout)(e,h(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function _(e,t){return g().then(r=>{if(!(t in r))throw h(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,c.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,s.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function y(e){let t=new Map,r=new Map,a=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(h(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=a.get(e);return t||a.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw h(e)})),t}return{whenEntrypoint:e=>d(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,a){return d(r,i,()=>{let i;return(0,u.resolvePromiseWithTimeout)(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(s)).then(e=>e),Promise.all(n.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),h(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(a)throw e;return{error:e}}).finally(()=>i?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let i=` 33 link[rel="prefetch"][href^="${t}"], 34 link[rel="preload"][href^="${t}"], 35 script[src^="${t}"]`;if(document.querySelector(i))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>a(h(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
35dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},423755,(e,t,r)=>{"use strict";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)},767978,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(555682);let n=e.r(843476);e.r(271645);let a=e.r(90558);function i(e){function t(t){return(0,n.jsx)(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,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)},90558,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Router:function(){return o.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return u.default}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(555682),s=i._(e.r(271645)),o=i._(e.r(509793)),l=e.r(65856),c=i._(e.r(302023)),u=i._(e.r(767978)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],h=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>o.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>f()[e]})}),h.forEach(e=>{d[e]=(...t)=>f()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{o.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,c.default)(e)?`${e.message} 36${e.stack}`:e+"")}})})});let m=d;function g(){let e=s.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(...e){return d.router=new o.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function y(e){let t={};for(let r of p){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,h.forEach(r=>{t[r]=(...t)=>e[r](...t)}),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)},565909,(e,t,r)=>{t.exports=e.r(90558)},471217,e=>{"use strict";let t,r,n,a,i,s,o,l,c,u,d,p,h,f,m,g,_,y,v,b,S,E,w,x,R,T,O,P,I,C,k,N,A,M;var D,L,j,$,U,B,F,W,H,q=e.i(247167),z=e.i(711410),G=e.i(47958),Y=e.i(221700);function X(e,t,r=[t],n="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:Y.SDK_VERSION})),a.version=Y.SDK_VERSION)}var J=e.i(328431),V=e.i(585885),K=e.i(733727);let Q=[];function Z(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function ee(e,t,r){if(r[t.name]){K.DEBUG_BUILD&&z.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,Q.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Q.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))}),K.DEBUG_BUILD&&z.debug.log(`Integration installed: ${t.name}`)}function et(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}var er=e.i(673845),en=e.i(157800);let ea=[/^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$/];function ei(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ea],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function es(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 K.DEBUG_BUILD&&z.debug.error(`Cannot extract url for event ${(0,er.getEventDescription)(e)}`),null}}var eo=e.i(290543);let el=new WeakMap;var ec=e.i(299626),eu=e.i(166856),ed=e.i(360113);function ep(e,t){let r=(0,ed.getFramesFromEvent)(e),n=(0,ed.getFramesFromEvent)(t);
36if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function eh(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 ef(e){return e.exception?.values?.[0]}var em=e.i(402176),eg=e.i(86128),e_=e.i(602122),ey=e.i(175286);e.i(295512);var ev=e.i(54826),eb=e.i(32795);e.i(391607);var eS=e.i(255830),eE=e.i(105242),ew=e.i(322835),ex=e.i(16495);function eR(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==q.default?q.default:0))||(e=G.GLOBAL_OBJ.process,e?.type==="renderer"))}function eT(e,t){var r,n,a,i,s;let o,l,c=t??(s=e,eO().get(s))??[];if(0===c.length)return;let u=e.getOptions(),d=(r=u._metadata,n=u.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(o.dsn=(0,eg.dsnToString)(a)),(0,ex.createEnvelope)(o,[(l=i?"auto":"never",[{type:"log",item_count:c.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...eR()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:c}])]));eO().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}function eO(){return(0,ev.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eP(e,t){var r,n,a,i,s;let o,l,c=t??(s=e,eI().get(s))??[];if(0===c.length)return;let u=e.getOptions(),d=(r=u._metadata,n=u.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&a&&(o.dsn=(0,eg.dsnToString)(a)),(0,ex.createEnvelope)(o,[(l=i?"auto":"never",[{type:"trace_metric",item_count:c.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...eR()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:c}])]));eI().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}function eI(){return(0,ev.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var eC=e.i(363681),ek=e.i(566794),eN=e.i(925034),eA=e.i(529089);function eM(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let eD=Symbol.for("SentryBufferFullError");function eL(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eA.rejectedSyncPromise)(eD);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eA.resolvedSyncPromise)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>eM(setTimeout(()=>t(!1),e)))]):r}}}var ej=e.i(284591),e$=e.i(928566),eU=e.i(905687),eB=e.i(644415),eF=e.i(163850);let eW=["forwarded","-ip","remote-","via","-user"],eH={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5},eq="Not capturing exception because it's already been captured.",ez="Discarded session because of missing or non-string release",eG=Symbol.for("SentryInternalError"),eY=Symbol.for("SentryDoNotSendEventError");function eX(e){return{message:e,[eG]:!0}}function eJ(e){return{message:e,[eY]:!0}}function eV(e){return!!e&&"object"==typeof e&&eG in e}function eK(e){return!!e&&"object"==typeof e&&eY in e}function eQ(e,t,r,n,a){let i,s=0,o=!1;e.on(r,()=>{s=0,clearTimeout(i),o=!1}),e.on(t,t=>{if((s+=n(t))>=8e5)a(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,i=eM(setTimeout(()=>{a(e)},t)))}}),e.on("flush",()=>{a(e)})}class eZ{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eL(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?eH:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0}
36,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:eW},httpHeaders:{request:{deny:eW},response:{deny:eW}},httpBodies:[],queryParams:{deny:eW},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7},r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,queryParams:r.queryParams??t.queryParams,genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},stackFrameVariables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,eg.makeDsn)(e.dsn):K.DEBUG_BUILD&&z.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,r){let n,a,i;return t||`${n=e.protocol?`${e.protocol}:`:"",a=e.port?`:${e.port}`:"",`${n}//${e.host}${a}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${i={sentry_version:"7"},e.publicKey&&(i.sentry_key=e.publicKey),r&&(i.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(i).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eQ(this,"afterCaptureLog","flushLogs",e3,eT),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eQ(this,"afterCaptureMetric","flushMetrics",e5,eP)}captureException(e,t,r){let n=(0,er.uuid4)();if((0,er.checkOrSetAlreadyCaught)(e))return K.DEBUG_BUILD&&z.debug.log(eq),n;let a={event_id:n,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),"error"),a.event_id}captureMessage(e,t,r,n){let a={event_id:(0,er.uuid4)(),...r},i=(0,eb.isParameterizedString)(e)?e:String(e),s=(0,eb.isPrimitive)(e),o=s?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(()=>o.then(e=>this._captureEvent(e,a,n)),s?"unknown":"error"),a.event_id}captureEvent(e,t,r){let n=(0,er.uuid4)();if(t?.originalException&&(0,er.checkOrSetAlreadyCaught)(t.originalException))return K.DEBUG_BUILD&&z.debug.log(eq),n;let a={event_id:n,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,o=i.capturedSpanIsolationScope,l=e0(e.type);return this._process(()=>this._captureEvent(e,a,s||r,o),l),a.event_id}captureSession(e){this.sendSession(e),(0,eC.updateSession)(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){eT(this);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),ee(this,e,this._integrations),t||Z(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,eN.hasSpanStreamingEnabled)(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.streamedSpanJsonToSerializedSpan)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let a=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...eR()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:r}]}(e,this),n=(0,ey.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,ex.addItemToEnvelope)(n,(0,ex.createAttachmentEnvelopeItem)(e));r&&(n=(0,ex.addItemToEnvelope)(n,r)),this.sendEnvelope(n).then(t=>
36this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=e_.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){K.DEBUG_BUILD&&z.debug.warn(ez);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){K.DEBUG_BUILD&&z.debug.warn(ez);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=(0,ey.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;K.DEBUG_BUILD&&z.debug.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 K.DEBUG_BUILD&&z.debug.error("Error while sending envelope:",e),{}}return K.DEBUG_BUILD&&z.debug.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&&ee(e,r,t)}),t),Z(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,a=t.exception?.values;if(a){for(let e of(n=!0,r=!1,a))if(e.mechanism?.handled===!1){r=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,eC.updateSession)(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 a=this.getOptions(),i=this.getIntegrationNames();return!t.integrations&&i.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eB.prepareEvent)(a,e,t,r,this,n).then(e=>
36(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,V.getTraceContextFromScope)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ew.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,V.getCurrentScope)(),n=(0,V.getIsolationScope)()){return K.DEBUG_BUILD&&e1(e)&&z.debug.log(`Captured error event \`${et(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{K.DEBUG_BUILD&&(eK(e)?z.debug.log(e.message):eV(e)?z.debug.warn(e.message):z.debug.warn(e))})}_processEvent(e,t,r,n){let a=this.getOptions(),{sampleRate:i}=a,s=e2(e),o=e1(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===i?void 0:(0,eU.parseSampleRate)(i);if(o&&"number"==typeof u&&(0,ej.safeMathRandom)()>u)return this.recordDroppedEvent("sample_rate","error"),(0,eA.rejectedSyncPromise)(eJ(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let d=e0(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),eJ("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,eb.isThenable)(e))return e.then(e=>{if(!(0,eb.isPlainObject)(e)&&null!==e)throw eX(r);return e},e=>{throw eX(`${t} rejected with ${e}`)});if(!(0,eb.isPlainObject)(e)&&null!==e)throw eX(r);return e}(function(e,t,r,n){let{beforeSend:a,beforeSendTransaction:i,ignoreSpans:s}=t,o=!(0,ek.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(e1(l)&&a)return a(l,n);if(e2(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:i,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[ec.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[ec.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&(0,eF.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},s))return null;if(o){let e=o(t);if(e)l=(0,e$.merge)(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&&{[ec.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[ec.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,eu.showSpanDropWarning)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&(0,eF.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},s)){(0,eF.reparentChildSpans)(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,eu.showSpanDropWarning)(),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(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,n)}}return l}(this,a,e,t),c)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eJ(`${c} returned \`null\`, will not send event.`)}let i=r.getSession()||n.getSession();if(o&&i&&this._updateSessionFromEvent(i,a),s){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=a.transaction_info;return s&&l&&a.transaction!==e.transaction&&(a.transaction_info={...l,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(eK(e)||eV(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eX(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 37Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eD&&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;let t;K.DEBUG_BUILD&&z.debug.log("Flushing outcomes...");let r=this._clearOutcomes();if(0===r.length){K.DEBUG_BUILD&&z.debug.log("No outcomes to send");return}if(!this._dsn){K.DEBUG_BUILD&&z.debug.log("No dsn provided, will not send outcomes");return}K.DEBUG_BUILD&&z.debug.log("Sending outcomes:",r);let n=(e=this._options.tunnel&&(0,eg.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,eE.dateTimestampInSeconds)(),discarded_events:r}],(0,ex.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}function e0(e){return"replay_event"===e?"replay":e||"error"}function e1(e){return void 0===e.type}function e2(e){return"transaction"===e.type}function e5(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+e8(e.attributes)}function e3(e){let t=0;return e.message&&(t+=2*e.message.length),t+e8(e.attributes)}function e8(e){if(!e)return 0;let t=0;
37return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*e4(e[0]):(0,eb.isPrimitive)(e)?t+=e4(e):t+=100}),t}function e4(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function e6(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 e7(e){return(0,eb.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function e9(e,t){var r,n;let a,i,s=tt(e,t),o={type:(r=t,!(a=r?.name)&&tn(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":a),value:(n=t,i=n?.message,tn(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?e7(i.error):e7(n):"No error message")};return s.length&&(o.stacktrace={frames:s}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function te(e,t){return{exception:{values:[e9(e,t)]}}}function tt(e,t){var r,n;let a=t.stacktrace||t.stack||"",i=(r=t)&&tr.test(r.message)?1:0,s="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,i,s)}catch{}return[]}let tr=/Minified React error #\d+;/i;function tn(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ta(e,t,r,n,a){let i;if((0,eb.isErrorEvent)(t)&&t.error)return te(e,t.error);if((0,eb.isDOMError)(t)||(0,eb.isDOMException)(t)){if("stack"in t){i=te(e,t);let a=i.exception?.values?.[0];if(n&&r&&a&&!a.stacktrace){let t=tt(e,r);t.length&&(a.stacktrace={frames:t},(0,er.addExceptionMechanism)(i,{synthetic:!0}))}}else{let a=t.name||((0,eb.isDOMError)(t)?"DOMError":"DOMException"),s=t.message?`${a}: ${t.message}`:a;i=ti(e,s,r,n),(0,er.addExceptionTypeValue)(i,s)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,eb.isError)(t)?te(e,t):((0,eb.isPlainObject)(t)||(0,eb.isEvent)(t)?i=function(e,t,r,n){let a=(0,V.getClient)(),i=a?.getOptions().normalizeDepth,s=Object.values(t).find(e=>e instanceof Error),o={__serialized__:(0,em.normalizeToSize)(t,i)};if(s)return{exception:{values:[e9(e,s)]},extra:o};let l={exception:{values:[{type:(0,eb.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,eo.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,eb.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eb.isEvent)(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:o};if(r){let t=tt(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a):(i=ti(e,t,r,n),(0,er.addExceptionTypeValue)(i,`${t}`,void 0)),(0,er.addExceptionMechanism)(i,{synthetic:!0}),i)}function ti(e,t,r,n){let a={};if(n&&r){let n=tt(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,er.addExceptionMechanism)(a,{synthetic:!0})}if((0,eb.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}let ts=G.GLOBAL_OBJ;function to(){try{return ts.document.location.href}catch{return""}}let tl=G.GLOBAL_OBJ,tc=0;function tu(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,eo.getOriginalFunction)(e))return e}catch{return e}let r=function(...r){G.GLOBAL_OBJ._sentryWrappedDepth=(G.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let n=r.map(e=>tu(e,t));return e.apply(this,n)}catch(e){throw tc++,setTimeout(()=>{tc--}),(0,V.withScope)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,er.addExceptionTypeValue)(e,void 0,void 0),(0,er.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,J.captureException)(e)}),e}finally{G.GLOBAL_OBJ._sentryWrappedDepth=(G.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,eo.markFunctionWrapped)(r,e),(0,eo.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function td(){let e=to(),{referrer:t}=tl.document||{},{userAgent:r}=tl.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class tp extends eZ{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tl.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);X(t,"browser",["browser"],tl.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:n,enableLogs:a,_experiments:i,enableMetrics:s}=this._options,o=s??i?.enableMetrics??!0;tl.document&&(n||a||o)&&tl.document.addEventListener("visibilitychange",()=>{"hidden"===tl.document.visibilityState&&(n&&this._flushOutcomes(),a&&eT(this),o&&eP(this))}),r&&this.on("beforeSendSession",e6)}eventFromException(e,t){var r,n;let a;return r=this._options.stackParser,n=this._options.attachStacktrace,a=ta(r,e,t?.
37syntheticException||void 0,n),(0,er.addExceptionMechanism)(a),a.level="error",t?.event_id&&(a.event_id=t.event_id),(0,eA.resolvedSyncPromise)(a)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,a){let i=ti(e,t,n?.syntheticException||void 0,a);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,eA.resolvedSyncPromise)(i)}(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 th={},tf={};function tm(e,t){return th[e]=th[e]||[],th[e].push(t),()=>{let r=th[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function tg(e,t){if(!tf[e]){tf[e]=!0;try{t()}catch(t){K.DEBUG_BUILD&&z.debug.error(`Error while instrumenting ${e}`,t)}}}function t_(e,t){let r=e&&th[e];if(r)for(let n of r)try{n(t)}catch(t){K.DEBUG_BUILD&&z.debug.error(`Error while triggering instrumentation handler. 38Type: ${e} 39Name: ${(0,ed.getFunctionName)(n)} 40Error:`,t)}}let ty=new Set([]);function tv(){"console"in G.GLOBAL_OBJ&&z.CONSOLE_LEVELS.forEach(function(e){e in G.GLOBAL_OBJ.console&&(0,eo.fill)(G.GLOBAL_OBJ.console,e,function(t){return z.originalConsoleMethods[e]=t,function(...t){let r=t[0],n=z.originalConsoleMethods[e],a=ty.size&&"string"==typeof r&&(0,en.stringMatchesSomePattern)(r,ty);a||t_("console",{args:t,level:e}),(!a||K.DEBUG_BUILD&&z.debug.isEnabled())&&n?.apply(G.GLOBAL_OBJ.console,t)}})})}let tb=G.GLOBAL_OBJ;function tS(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tE(e,t){let r="fetch",n=tm(r,e);return tg(r,()=>tw(void 0,t)),n}function tw(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in tb))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tS(tb.fetch))return!0;let e=!1,t=tb.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tS(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){K.DEBUG_BUILD&&z.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,eo.fill)(G.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tO(t),method:tT(r,"method")?String(r.method).toUpperCase():(0,eb.isRequest)(t)&&tT(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tO(t),method:tT(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:a,url:i},startTimestamp:1e3*(0,eE.timestampInSeconds)(),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,eb.isRequest)(t))return new Headers(t.headers)}catch{}}(r)};return e||t_("fetch",{...s}),t.apply(G.GLOBAL_OBJ,r).then(async t=>(e?e(t):t_("fetch",{...s,endTimestamp:1e3*(0,eE.timestampInSeconds)(),response:t}),t),e=>{t_("fetch",{...s,endTimestamp:1e3*(0,eE.timestampInSeconds)(),error:e}),(0,eb.isError)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,eo.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,V.getClient)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&e instanceof TypeError&&("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,eo.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tx(e,t){if(e?.body){let r=e.body,n=r.getReader(),a=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),n.releaseLock(),r.cancel().then(null,()=>{})}}function tR(e){let t;try{t=e.clone()}catch{return}tx(t,()=>{t_("fetch-body-resolved",{endTimestamp:1e3*(0,eE.timestampInSeconds)(),response:e})})}function tT(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tO(e){return"string"==typeof e?e:e?tT(e,"url")?e.url:e.toString?e.toString():"":""}function tP(e,t){let r=(0,V.getClient)(),n=(0,V.getIsolationScope)();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=r.getOptions();if(i<=0)return;let s={timestamp:(0,eE.dateTimestampInSeconds)(),...e},o=a?(0,z.consoleSandbox)(()=>a(s,t)):s;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,i))}function tI(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tC(e){return"isRelative"in e}function tk(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 tN(e){if(tC(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 tA(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 tM(e){return e.split(/[?#]/,1)[0]}function tD(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),s="";if(t&&-1!==i){let t=e.slice(i+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${a?",base64":""}${s?`,${s}`:""}`}return e}let tL="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tj="10.63.0",t$=globalThis;function tU(){return tB(t$),t$}function tB(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||tj,t[tj]=t[tj]||{}}function tF(e,t,r=t$){let n=r.__SENTRY__=r.__SENTRY__||{},a=n[tj]=n[tj]||{};return a[e]||(a[e]=t())}let tW={};function tH(e){if(!("console"in t$))return e();let t=t$.console,r={},n=Object.keys(tW);
40n.forEach(e=>{let n=tW[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function tq(){return tG().enabled}function tz(e,...t){tL&&tq()&&tH(()=>{t$.console[e](`Sentry Logger [${e}]:`,...t)})}function tG(){return tL?tF("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let tY={enable:function(){tG().enabled=!0},disable:function(){tG().enabled=!1},isEnabled:tq,log:function(...e){tz("log",...e)},warn:function(...e){tz("warn",...e)},error:function(...e){tz("error",...e)}},tX="<anonymous>";function tJ(e){try{if(!e||"function"!=typeof e)return tX;return e.name||tX}catch{return tX}}let tV={},tK={};function tQ(e,t){return tV[e]=tV[e]||[],tV[e].push(t),()=>{let r=tV[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function tZ(e,t){if(!tK[e]){tK[e]=!0;try{t()}catch(t){tL&&tY.error(`Error while instrumenting ${e}`,t)}}}function t0(e,t){let r=e&&tV[e];if(r)for(let n of r)try{n(t)}catch(t){tL&&tY.error(`Error while triggering instrumentation handler. 41Type: ${e} 42Name: ${tJ(n)} 43Error:`,t)}}let t1=Object.prototype.toString;function t2(e,t){return t1.call(e)===`[object ${t}]`}function t5(e){return t2(e,"String")}function t3(e){return null===e||"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e||"object"!=typeof e&&"function"!=typeof e}function t8(e,t,r){if(!(t in e))return;let n=e[t];if("function"!=typeof n)return;let a=r(n);"function"==typeof a&&function(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,t4(e,"__sentry_original__",t)}catch{}}(a,n);try{e[t]=a}catch{tL&&tY.log(`Failed to replace method "${t}" in object`,e)}}function t4(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{tL&&tY.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function t6(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in t$&&"function"==typeof t$[t]?(r=t$[t])(e):(r=null,e())}function t7(){return t6(()=>Math.random())}function t9(){return t6(()=>Date.now())}function re(e,t,r=!1){return!!t5(e)&&(t2(t,"RegExp")?t.test(e):t5(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}function rt(e=t$.crypto||t$.msCrypto){try{if(e?.randomUUID)return t6(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*t7())>>e/4).toString(16))}function rr(e){tQ("dom",e),tZ("dom",rn)}function rn(){if(!t$.document)return;let e=t0.bind(null,"dom"),t=ra(e,!0);t$.document.addEventListener("click",t,!1),t$.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=t$[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(t8(r,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){let n=ra(e);i.handler=n,t.call(this,r,n,a)}i.refCount++}catch{}return t.call(this,r,n,a)}}),t8(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.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 ra(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;t4(r,"_sentryCaptured",!0),o&&!o._sentryId&&t4(o,"_sentryId",rt());let l="keypress"===r.type?"input":r.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(r)&&(e({event:r,name:l,global:t}),i=r.type,s=o?o._sentryId:void 0),clearTimeout(a),a=t$.setTimeout(()=>{s=void 0,i=void 0},1e3)}}function ri(){return t9()/1e3}function rs(){return(o??(o=function(){let{performance:e}=t$;if(!e?.now||!e.timeOrigin)return ri;let t=e.timeOrigin;return()=>(t+t6(()=>e.now()))/1e3}()))()}let ro=null;function rl(){return null===ro&&(ro=function(){let{performance:e}=t$;if(!e?.now)return;let t=t6(()=>e.now()),r=t9(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-r)?a:r-t}()),ro}let rc="__sentry_xhr_v3__";function ru(e){tQ("xhr",e),tZ("xhr",rd)}function rd(){if(!t$.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),a=1e3*rs(),i=t5(r[0])?r[0].toUpperCase():void 0,s=function(e){if(t5(e))return e;try{return e.toString()}catch{}}(r[1]);if(!i||!s)return e.apply(t,r);t[rc]={method:i,url:s,request_headers:{}}
43,"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[rc];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}t0("xhr",{endTimestamp:1e3*rs(),startTimestamp:a,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(o(),e.apply(t,r))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,a]=r,i=t[rc];return i&&t5(n)&&t5(a)&&(i.request_headers[n.toLowerCase()]=a),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[rc];return n&&(void 0!==r[0]&&(n.body=r[0]),t0("xhr",{startTimestamp:1e3*rs(),xhr:t})),e.apply(t,r)}})}function rp(e){let t="history";tQ(t,e),tZ(t,rh)}function rh(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=l,a=function(e){try{return new URL(e,t$.location.origin).toString()}catch{return e}}(String(r));if(l=a,n===a)return e.apply(this,t);t0("history",{from:n,to:a})}return e.apply(this,t)}}t$.addEventListener("popstate",()=>{let e=t$.location.href,t=l;l=e,t===e||t0("history",{from:t,to:e})}),"history"in t$&&t$.history&&(t8(t$.history,"pushState",e),t8(t$.history,"replaceState",e))}let rf={};try{"u">typeof Node&&(rf.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(rf.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,rf.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,rf.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,rf.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(rf.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function rm(e,t,r){let n=rf[t];if(n)try{return n.call(e,r)}catch{}let a=e[t];return"function"==typeof a?a.call(e,r):a}function rg(e,t={}){if(!e)return"<unknown>";try{let r,n=e,a=[],i=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<5&&(r=function(e,t){let r=[],n=rm(e,"tagName");if(!n)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=rm(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(n.toLowerCase());let a=t?.length?t.filter(t=>rm(e,"getAttribute",t)).map(t=>[t,rm(e,"getAttribute",t)]):null;if(a?.length)a.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{let t=rm(e,"id");t&&r.push(`#${t}`);let n=rm(e,"className");if(n&&t5(n))for(let e of n.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=rm(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,o),"html"!==r&&(!(i>1)||!(s+3*a.length+r.length>=l)));)a.push(r),s+=r.length,n=rm(n,"parentNode");return a.reverse().join(" > ")}catch{return"<unknown>"}}let r_="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ry="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function rv(e){return function(...t){let r=t[0];return t[0]=tu(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,ed.getFunctionName)(e)}`}}),e.apply(this,t)}}function rb(e){return function(t){return e.apply(this,[tu(t,{mechanism:{data:{handler:(0,ed.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rS(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,eo.fill)(r,e,function(t){let r={mechanism:{data:{handler:(0,ed.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,eo.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,ed.getFunctionName)(n)),tu(t,r)})}),e.apply(this,t)}}function rE(e,t,r){t$.document&&t$.addEventListener(e,t,r)}function rw(e,t,r){t$.document&&t$.removeEventListener(e,t,r)}let rx=e=>{let t=!1;return()=>{t||(e(),t=!0)}}
43,rR=e=>{let t=t$.requestIdleCallback||t$.setTimeout;t$.document?.visibilityState==="hidden"?e():(rE("visibilitychange",e=rx(e),{once:!0,capture:!0}),rE("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),rw("visibilitychange",e,{capture:!0}),rw("pagehide",e,{capture:!0})}))};var rT=e.i(321087);function rO(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function rP(){try{let e=tl.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let rI=null;function rC(e){let t="error";tm(t,e),tg(t,rk)}function rk(){rI=G.GLOBAL_OBJ.onerror,G.GLOBAL_OBJ.onerror=function(e,t,r,n,a){return t_("error",{column:n,error:a,line:r,msg:e,url:t}),!!rI&&rI.apply(this,arguments)},G.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let rN=null;function rA(e){let t="unhandledrejection";tm(t,e),tg(t,rM)}function rM(){rN=G.GLOBAL_OBJ.onunhandledrejection,G.GLOBAL_OBJ.onunhandledrejection=function(e){return t_("unhandledrejection",e),!rN||rN.apply(this,arguments)},G.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function rD(e){r_&&z.debug.log(`Global Handler attached: ${e}`)}function rL(){let e=(0,V.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function rj(e){return Array.isArray(e.errors)}function r$(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rj(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rU(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function rB(e,t,r,n){let a={filename:e,function:"<anonymous>"===t?ed.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}let rF=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rH=/\((\S*)(?::(\d+))(?::(\d+))\)/,rq=/at (.+?) ?\(data:(.+?),/,rz=[30,e=>{let t=e.match(rq);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rF.exec(e);if(r){let[,e,t,n]=r;return rB(e,ed.UNKNOWN_FUNCTION,+t,+n)}let n=rW.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=rH.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=rV(n[1]||ed.UNKNOWN_FUNCTION,n[2]);return rB(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rG=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rY=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rX=[50,e=>{let t=rG.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rY.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]||ed.UNKNOWN_FUNCTION;return[r,e]=rV(r,e),rB(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rJ=(0,ed.createStackParser)(rz,rX),rV=(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]:ed.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rK="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rQ={};function rZ(e){var t;let r=rQ[e];if(r)return r;let n=t$[e];if((t=n)&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString()))return rQ[e]=n.bind(t$);let a=t$.document;if(a&&"function"==typeof a.createElement)try{let t=a.createElement("iframe");t.hidden=!0,a.head.appendChild(t);let r=t.contentWindow;r?.[e]&&(n=r[e]),a.head.removeChild(t)}catch(t){rK&&tY.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?rQ[e]=n.bind(t$):n}function r0(...e){return rZ("setTimeout")(...e)}function r1(e,t=rZ("fetch")){let r=0,n=0;async function a(a){let i=a.body.length;r+=i,n++;let s={body:a.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 rQ.fetch=void 0,e}finally{r-=i,n--}}return function(e,t,r=eL(e.bufferSize||64)){let n={};return{send:function(a){let i=[];if((0,ex.forEachEnvelopeItem)(a,(t,r)=>{let a=(0,ex.envelopeItemTypeToDataCategory)(r);!function(e,t,r=(0,ej.safeDateNow)()){return(e[t]||e.all||0)>r}(n,a)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",a)}),0===i.length)return Promise.resolve({});let s=(0,ex.createEnvelope)(a[0],i),o=t=>{if((0,ex.envelopeContainsItemType)(s,["client_report"])){K.DEBUG_BUILD&&z.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}
43(0,ex.forEachEnvelopeItem)(s,(r,n)=>{e.recordDroppedEvent(t,(0,ex.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,ex.serializeEnvelope)(s)}).then(e=>(413===e.statusCode?(K.DEBUG_BUILD&&z.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error")):(K.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&z.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=(0,ej.safeDateNow)()){let a={...e},i=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,r,,,i]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=n+o):a[e]=n+o;else a.all=n+o}else s?a.all=n+function(e,t=(0,ej.safeDateNow)()){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&&(a.all=n+6e4);return a}(n,e)),e),e=>{throw o("network_error"),K.DEBUG_BUILD&&z.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===eD)return K.DEBUG_BUILD&&z.debug.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,a,eL(e.bufferSize||40))}let r2=/^HTML(\w*)Element$/;function r5(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(r2.test(r))return`[HTMLElement: ${rg(e)}]`}}function r3(e){let r;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=ei(e,r.getOptions())},processEvent:(r,n,a)=>(t||(t=ei(e,a.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,en.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return K.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 44Event: ${(0,er.getEventDescription)(e)}`),!0}else{var r,n,a;if(r=e,n=t.ignoreErrors,n?.length&&et(r).some(e=>(0,en.stringMatchesSomePattern)(e,n)))return K.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 45Event: ${(0,er.getEventDescription)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return K.DEBUG_BUILD&&z.debug.warn(`Event dropped due to not having an error message, error type or stacktrace. 46Event: ${(0,er.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=es(e);return!!r&&(0,en.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return K.DEBUG_BUILD&&z.debug.warn(`Event dropped due to being matched by \`denyUrls\` option. 47Event: ${(0,er.getEventDescription)(e)}. 48Url: ${es(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=es(e);return!r||(0,en.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return K.DEBUG_BUILD&&z.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option. 49Event: ${(0,er.getEventDescription)(e)}. 50Url: ${es(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let r=(0,eo.getOriginalFunction)(this),n=el.has((0,V.getClient)())&&void 0!==r?r:this;return t.apply(n,e)}}catch{}},setup(e){el.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,V.getCurrentScope)().getScopeData(),r=(0,V.getIsolationScope)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:a}=(0,eu.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!a?.startsWith("ai."))return;e.setAttribute(ec.GEN_AI_CONVERSATION_ID_ATTRIBUTE,n)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,eo.fill)(tl,"setTimeout",rv),t.setInterval&&(0,eo.fill)(tl,"setInterval",rv),t.requestAnimationFrame&&(0,eo.fill)(tl,"requestAnimationFrame",rb),t.XMLHttpRequest&&"XMLHttpRequest"in tl&&(0,eo.fill)(XMLHttpRequest.prototype,"send",rS);let e=t.eventTarget;
50e&&(Array.isArray(e)?e:ry).forEach(e=>{var r,n;let a;return r=e,n=t,a=tl[r]?.prototype,void(a?.hasOwnProperty?.("addEventListener")&&((0,eo.fill)(a,"addEventListener",function(e){return function(t,a,i){var s,o,l,c;try{s=a,"function"==typeof s.handleEvent&&(a.handleEvent=tu(a.handleEvent,{mechanism:{data:{handler:(0,ed.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(o=this,l=t,c=a,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,c)),e.apply(this,[t,tu(a,{mechanism:{data:{handler:(0,ed.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,eo.fill)(a,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let a=r.__sentry_wrapped__;a&&e.call(this,t,a,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,a,i,s,o,l;let c;t.console&&(r=e,tm(c="console",function(e){var t;if((0,V.getClient)()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,en.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,en.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);tP(n,{input:e.args,level:e.level})}),tg(c,tv)),t.dom&&rr((n=e,a=t.dom,function(e){let t,r;if((0,V.getClient)()!==n)return;let i="object"==typeof a?a.serializeAttribute:void 0,s="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;s&&s>1024&&(r_&&z.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{var o;let n=e.event,a=(o=n)&&o.target?n.target:n;t=rg(a,{keyAttrs:i,maxStringLength:s}),r=function(e,t=5){if(!ts.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}(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),tP(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&ru((i=e,function(e){if((0,V.getClient)()!==i)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[rc];if(!t||!r||!n)return;let{method:a,url:s,status_code:o,body:l}=n,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},u={category:"xhr",data:{method:a,url:s,status_code:o},type:"http",level:tI(o)};i.emit("beforeOutgoingRequestBreadcrumb",u,c),tP(u,c)})),t.fetch&&tE((s=e,function(e){if((0,V.getClient)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;if(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},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",a,n),tP(a,n)}else{let n=e.response,a={...e.fetchData,status_code:n?.status},i={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:a,type:"http",level:tI(a.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",o,i),tP(o,i)}})),t.history&&rp((o=e,function(e){if((0,V.getClient)()!==o)return;let t=e.from,r=e.to,n=tA(tl.location.href),a=t?tA(t):void 0,i=tA(r);a?.path||(a=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),tP({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,V.getClient)()===l&&tP({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,er.getEventDescription)(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,rC(e=>{var t,n,a,i;let s,o,l,c,u,{stackParser:d,attachStacktrace:p}=rL();if((0,V.getClient)()!==r||tc>0)return;let{msg:h,url:f,line:m,column:g,error:_}=e,y=(t=ta(d,_||h,void 0,p,!1),n=f,a=m,i=g,0===(u=(c=(l=(o=(s=t.exception=t.exception||{}).values=s.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=c.frames||[]).length&&u.push({colno:i,lineno:a,filename:function(e){if((0,eb.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${tD(e,!1)}>`:e}(n)??to(),function:ed.UNKNOWN_FUNCTION,in_app:!0}),t);y.level="error",(0,J.captureEvent)(y,{originalException:_,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rD("onerror")),t.onunhandledrejection&&(n=e,rA(e=>{var t;let{stackParser:r,attachStacktrace:a}=rL();if((0,V.getClient)()!==n||tc>0)return;let i=function(e){if((0,eb.isPrimitive)(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,eb.isPrimitive)(i)?(t=i,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):ta(r,i,void 0,a,!0);s.level="error",(0,J.captureEvent)(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rD("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){!function(e,t,r,n,a,i){if(!a.exception?.values||!i||!(0,eb.isInstanceOf)(i.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=function e(t,r,n,a,i,s,o,l){if(s.length>=n+1)return s;let c=[...s];if((0,eb.isInstanceOf)(a[i],Error)){r$(o,l,a);let s=t(r,a[i]),u=c.length;rU(s,i,u,l),c=e(t,r,n,a[i],i,[s,...c],s,u)}
50return rj(a)&&a.errors.forEach((s,u)=>{if((0,eb.isInstanceOf)(s,Error)){r$(o,l,a);let d=t(r,s),p=c.length;rU(d,`errors[${u}]`,p,l),c=e(t,r,n,s,i,[d,...c],d,p)}}),c}(e,t,n,i.originalException,r,a.exception.values,s,0))}(e9,a.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,a,i,s,o;let l,c,u,d;if(t=e,(n=r)&&(a=t,i=n,l=a.message,c=i.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&eh(a,i)&&ep(a,i)&&1||(s=t,o=n,u=ef(o),d=ef(s),u&&d&&u.type===d.type&&u.value===d.value&&eh(s,o)&&ep(s,o))))return K.DEBUG_BUILD&&z.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return r=e}},{name:"HttpContext",preprocessEvent(e){if(!tl.navigator&&!tl.location&&!tl.document)return;let t=td(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){let t=e.attributes?.[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!tl.navigator&&!tl.location&&!tl.document)return;let r=td();rO(e,{"url.full":"http.client"!==t?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}},{name:"CultureContext",preprocessEvent(e){let t=rP();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=rP();t&&rO(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===tl.document){r_&&z.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,J.startSession)({ignoreDuration:!0});let e=!1;rR(()=>{e||((0,J.captureSession)(),e=!0)});let r=(0,V.getIsolationScope)(),n=r.getUser();r.addScopeListener(t=>{let r=t.getUser();(n?.id!==r?.id||n?.ip_address!==r?.ip_address)&&(n=r,e&&(0,J.captureSession)())}),"route"===t&&rp(({from:t,to:r})=>{t!==r&&((0,J.startSession)({ignoreDuration:!0}),(0,J.captureSession)(),e=!0)})}}})()]}var r8=e.i(271645);function r4(e){return(0,eb.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":r5(e)}let r6="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var r7=e.i(372244),r9=e.i(514412),ne=e.i(420509),nt=e.i(297652),nr=e.i(969538);let nn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function na(e,t={}){var r;let n,a,i=new Map,s=!1,o="externalFinish",l=!t.disableAutoFinish,c=[],{idleTimeout:u=nn.idleTimeout,finalTimeout:d=nn.finalTimeout,childSpanTimeout:p=nn.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:f=!0}=t,m=(0,V.getClient)(),g=(0,V.getCurrentScope)();if(!m||!(0,r7.hasSpansEnabled)()){let e=new r9.SentryNonRecordingSpan({traceId:g.getPropagationContext().traceId});return(0,rT.setCapturedScopesOnSpan)(e,g,(0,V.getIsolationScope)()),e}let _=(0,eu.getActiveSpan)(),y=(r=e,n=(0,nr.startInactiveSpan)(r),(0,eS._setSpanForScope)((0,V.getCurrentScope)(),n),K.DEBUG_BUILD&&z.debug.log("[Tracing] Started span is an idle span"),n);function v(){a&&(clearTimeout(a),a=void 0)}function b(e){v(),a=setTimeout(()=>{!s&&0===i.size&&l&&(o="idleTimeout",y.end(e))},u)}function S(e){a=setTimeout(()=>{!s&&l&&(o="heartbeatFailed",y.end(e))},p)}function E(e){s=!0,i.clear(),c.forEach(e=>e()),(0,eS._setSpanForScope)(g,_);let t=(0,eu.spanToJSON)(y),{start_timestamp:r}=t;if(!r)return;t.data[ec.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||y.setAttribute(ec.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,o);let n=t.status;n&&"unknown"!==n||y.setStatus({code:nt.SPAN_STATUS_OK}),z.debug.log(`[Tracing] Idle span "${t.op}" finished`);let a=(0,eu.getSpanDescendants)(y).filter(e=>e!==y),l=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:nt.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),K.DEBUG_BUILD&&z.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,eu.spanToJSON)(t),a=n<=e,i=r-n<=(d+u)/1e3;if(K.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?i||z.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):z.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!i||!a)&&((0,eu.removeChildSpanFromSpan)(y,t),l++)}),l>0&&y.setAttribute("sentry.idle_span_discarded_spans",l)}return y.end=new Proxy(y.end,{apply(e,t,r){if(h&&h(y),(0,r9.spanIsNonRecordingSpan)(t))return;let[n,...a]=r,i=n||(0,eE.timestampInSeconds)(),s=(0,eu.spanTimeInputToSeconds)(i),o=(0,eu.getSpanDescendants)(y).filter(e=>e!==y),l=(0,eu.spanToJSON)(y);if(!o.length||!f)return E(s),Reflect.apply(e,t,[s,...a]);let c=m.getOptions().ignoreSpans,u=o?.reduce((e,t)=>
50{let r=(0,eu.spanToJSON)(t);return!r.timestamp||c&&(0,eF.shouldIgnoreSpan)({description:r.description,op:r.op,attributes:r.data},c)?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,u||1/0)));return E(g),Reflect.apply(e,t,[g,...a])}}),c.push(m.on("spanStart",e=>{var t;!(s||e===y||(0,eu.spanToJSON)(e).timestamp||e instanceof ne.SentrySpan&&e.isStandaloneSpan())&&(0,eu.getSpanDescendants)(y).includes(e)&&(t=e.spanContext().spanId,v(),i.set(t,!0),S((0,eE.timestampInSeconds)()+p/1e3))})),c.push(m.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&b((0,eE.timestampInSeconds)()+u/1e3)}})),c.push(m.on("idleSpanEnableAutoFinish",e=>{e===y&&(l=!0,b(),i.size&&S())})),t.disableAutoFinish||b(),setTimeout(()=>{s||(y.setStatus({code:nt.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),o="finalTimeout",y.end())},d),y}let ni=!1;var ns=e.i(701302),no=e.i(861125);function nl(){return rt().substring(16)}function nc(e){try{let t=t$.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function nu(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let nd="_sentrySpan";function np(e,t){t?t4(e,nd,nc(t)):delete e[nd]}class nh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:rt(),sampleRand:t7()}}clone(){let e=new nh;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,np(e,nu(this[nd])),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||rs(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:rt()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:a,user:i,contexts:s,level:o,fingerprint:l=[],propagationContext:c,conversationId:u}=(t instanceof nh?t.getScopeData():t2(t,"Object")?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),o&&(this._level=o),l.length&&(this._fingerprint=l),c&&
50(this._propagationContext=c),u&&(this._conversationId=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,np(this,void 0),this._attachments=[],this.setPropagationContext({traceId:rt(),sampleRand:t7()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:ri(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nu(this[nd]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let a={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(a[t]=e(a[t],r[t],n-1));return a}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||rt();if(!this._client)return tL&&tY.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||rt();if(!this._client)return tL&&tY.warn("No client configured on scope - will not capture message!"),n;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:n},this),n}captureEvent(e,t){let r=e.event_id||t?.event_id||rt();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):tL&&tY.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let nf=e=>e instanceof Promise&&!e[nm],nm=Symbol("chained PromiseLike");class ng{constructor(e,t){let r,n;r=e||new nh,n=t||new nh,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){var t,r,n,a;let i,s=this._pushScope();try{i=e(s)}catch(e){throw this._popScope(),e}if(t=i,t?.then&&"function"==typeof t.then){let e;return r=i,n=()=>this._popScope(),a=()=>this._popScope(),nf(e=r.then(e=>(n(),e),e=>{throw a(),e}))&&nf(r)?e:((e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let a=e[n];"function"==typeof a?Object.defineProperty(t,n,{value:(...t)=>a.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=a}return r&&Object.assign(t,{[nm]:!0}),t})(r,e)}return this._popScope(),i}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function n_(){let e=tB(tU());return e.stack=e.stack||new ng(tF("defaultCurrentScope",()=>new nh),tF("defaultIsolationScope",()=>new nh))}function ny(e){return n_().withScope(e)}function nv(e,t){let r=n_();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function nb(e){return n_().withScope(()=>e(n_().getIsolationScope()))}function nS(e){let t=tB(e);return t.acs?t.acs:{withIsolationScope:nb,withScope:ny,withSetScope:nv,withSetIsolationScope:(e,t)=>nb(t),getCurrentScope:()=>n_().getScope(),getIsolationScope:()=>n_().getIsolationScope()}}function nE(){return nS(tU()).getCurrentScope()}function nw(){return nS(tU()).getIsolationScope()}function nx(...e){let t=nS(tU());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function nR(){return nE().getClient()}let nT="sentry.source",nO="sentry.sample_rate",nP="sentry.op",nI="sentry.origin",nC="sentry.measurement_unit",nk="sentry.measurement_value",nN="sentry.custom_span_name",nA="sentry.exclusive_time",nM="_sentryScope",nD="_sentryIsolationScope",nL=Symbol.for("sentry.otelSourceInference");function nj(e,t,r){e&&(t4(e,nD,nc(r)),t4(e,nM,t))}function n$(e){return{scope:e[nM],isolationScope:nu(e[nD])}}let nU="sentry-";function nB(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}let nF=/^o(\d+)\./;function nW(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let nH=!1;function nq(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:a})=>({span_id:e,trace_id:t,sampled:1===r,attributes:a,...n})):void 0}function nz(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n}
50)=>({span_id:e,trace_id:t,sampled:1===r,attributes:n})):void 0}function nG(e){return"number"==typeof e?nY(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nY(e.getTime()):rs()}function nY(e){return e>0x2540be3ff?e/1e3:e}function nX(e){if(nQ(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(nK(e)){let{attributes:n,startTime:a,name:i,endTime:s,status:o,links:l}=e;return{span_id:t,trace_id:r,data:n,description:i,parent_span_id:nV(e),start_timestamp:nG(a),timestamp:nG(s)||void 0,status:n0(o),op:n[nP],origin:n[nI],links:nq(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function nJ(e){if(nQ(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(nK(e)){let{attributes:n,startTime:a,name:i,endTime:s,status:o,links:l}=e;return{name:i,span_id:t,trace_id:r,parent_span_id:nV(e),start_timestamp:nG(a),end_timestamp:nG(s),is_segment:e===n6(e),status:n1(o),attributes:n2(n,o),links:nz(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===n6(e)}}function nV(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function nK(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function nQ(e){return"function"==typeof e.getSpanJSON}function nZ(e){let{traceFlags:t}=e.spanContext();return 1===t}function n0(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function n1(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function n2(e,t){let r="error"===n1(t)?t?.message:void 0;return{...r&&{"sentry.status.message":r},...e}}let n5="_sentryChildSpans",n3="_sentryRootSpan";function n8(e,t){let r=e[n3]||e;t4(t,n3,r),e[n5]?e[n5].add(t):t4(e,n5,new Set([t]))}let n4=n6;function n6(e){return e[n3]||e}function n7(){let e=nS(tU());return e.getActiveSpan?e.getActiveSpan():nu(nE()[nd])}function n9(e,t,r,n=n7()){let a=n&&n4(n);a&&(tL&&tY.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),a.addEvent(e,{[nk]:t,[nC]:r}))}function ae(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[nC],a=r[nk];"string"==typeof n&&"number"==typeof a&&(t[e.name]={value:a,unit:n})}),t}let at=(e,t,r,n)=>{let a,i;return s=>{if(t.value>=0&&(s||n)&&((i=t.value-(a??0))||void 0===a)){var o;a=t.value,t.delta=i,o=t.value,t.rating=o>r[1]?"poor":o>r[0]?"needs-improvement":"good",e(t)}}},ar=(e=!0)=>{let t=t$.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},an=()=>{let e=ar();return e?.activationStart??0},aa=-1,ai=new Set,as=e=>{if(("pagehide"===e.type||t$.document?.visibilityState==="hidden")&&aa>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of ai)e();isFinite(aa)||(aa="visibilitychange"===e.type?e.timeStamp:0,rw("prerenderingchange",as,!0))}},ao=()=>{if(t$.document&&aa<0){let e=an();aa=(t$.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(t$.document?.visibilityState!=="hidden"||t$.document?.prerendering?1/0:0),rE("visibilitychange",as,!0),rE("pagehide",as,!0),rE("prerenderingchange",as,!0)}return{get firstHiddenTime(){return aa},onHidden(e){ai.add(e)}}},al=(e,t=-1)=>{let r=ar(),n="navigate";return r&&(t$.document?.prerendering||an()>0?n="prerender":t$.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}},ac=new WeakMap;function au(e,t){try{return ac.get(e)||ac.set(e,new t),ac.get(e)}catch(e){return new t}}class ad{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 ap=(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{}},ah=e=>{t$.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},af=[1800,3e3],am=[.1,.25],ag=0,a_=1/0,ay=0,av=e=>
50{e.forEach(e=>{e.interactionId&&(a_=Math.min(a_,e.interactionId),ag=(ay=Math.max(ay,e.interactionId))?(ay-a_)/7+1:0)})},ab=()=>c?ag:performance.interactionCount||0,aS=0;class aE{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){aS=ab(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((ab()-aS)/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 aw=[200,500];class ax{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let aR=[2500,4e3],aT=[800,1800],aO=e=>{t$.document?.prerendering?ah(()=>aO(e)):t$.document?.readyState!=="complete"?addEventListener("load",()=>aO(e),!0):setTimeout(e)},aP={},aI={};function aC(e,t=!1){return aU("cls",e,aD,u,t)}function ak(e,t=!1){return aU("lcp",e,aL,d,t)}function aN(e){return aU("inp",e,a$,h)}function aA(e,t){var r;let n;return aB(e,t),aI[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),ap(r,e=>{aM(r,{entries:e})},n),aI[e]=!0),aF(e,t)}function aM(e,t){let r=aP[e];if(r?.length)for(let n of r)try{n(t)}catch(t){rK&&tY.error(`Error while triggering instrumentation handler. 51Type: ${e} 52Name: ${tJ(n)} 53Error:`,t)}}function aD(){return((e,t={})=>{((e,t={})=>{ah(()=>{let r,n=ao(),a=al("FCP"),i=ap("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(a.value=Math.max(t.startTime-an(),0),a.entries.push(t),r(!0)))});i&&(r=at(e,a,af,t.reportAllChanges))})})(rx(()=>{let r,n=al("CLS",0),a=ao(),i=au(t,ad),s=e=>{for(let t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},o=ap("layout-shift",s);o&&(r=at(e,n,am,t.reportAllChanges),a.onHidden(()=>{s(o.takeRecords()),r(!0)}),t$?.setTimeout?.(r))}))})(e=>{aM("cls",{metric:e}),u=e},{reportAllChanges:!0})}function aL(){return((e,t={})=>{ah(()=>{let r,n=ao(),a=al("LCP"),i=au(t,ax),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(s),s.startTime<n.firstHiddenTime&&(a.value=Math.max(s.startTime-an(),0),a.entries=[s],r())},o=ap("largest-contentful-paint",s);if(o){r=at(e,a,aR,t.reportAllChanges);let n=rx(()=>{s(o.takeRecords()),o.disconnect(),r(!0)}),i=e=>{e.isTrusted&&(rR(n),rw(e.type,i,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])rE(e,i,{capture:!0})}})})(e=>{aM("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function aj(){return((e,t={})=>{let r=al("TTFB"),n=at(e,r,aT,t.reportAllChanges);aO(()=>{let e=ar();e&&(r.value=Math.max(e.responseStart-an(),0),r.entries=[e],n(!0))})})(e=>{aM("ttfb",{metric:e}),p=e})}function a$(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=ao();ah(()=>{let n;"interactionCount"in performance||c||(c=ap("event",av,{type:"event",buffered:!0,durationThreshold:0}));let a=al("INP"),i=au(t,aE),s=e=>{rR(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,n())})},o=ap("event",s,{durationThreshold:t.durationThreshold??40});n=at(e,a,aw,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(o.takeRecords()),n(!0)}))})})(e=>{aM("inp",{metric:e}),h=e})}function aU(e,t,r,n,a=!1){let i;return aB(e,t),aI[e]||(i=r(),aI[e]=!0),n&&t({metric:n}),aF(e,t,a?i:void 0)}function aB(e,t){aP[e]=aP[e]||[],aP[e].push(t)}function aF(e,t,r){return()=>{r&&r();let n=aP[e];if(!n)return;let a=n.indexOf(t);-1!==a&&n.splice(a,1)}}function aW(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||nR()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function aH(e){tY.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function aq(e,t){if(!t?.length)return!1;for(let n of t){var r;
53if("string"==typeof(r=n)||r instanceof RegExp){if(e.description&&re(e.description,n))return tL&&aH(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let a=!n.name||e.description&&re(e.description,n.name),i=!n.op||e.op&&re(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)?re(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(a&&i&&s)return tL&&aH(e),!0}return!1}function az(e){return"stream"===e.getOptions().traceLifecycle}let aG=Symbol.for("sentry.nonRecordingSpan");class aY{constructor(e={}){this._traceId=e.traceId||rt(),this._spanId=e.spanId||nl(),this.dropReason=e.dropReason,t4(this,aG,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function aX(e){return!!e&&!0===e[aG]}let aJ="_frozenDsc";function aV(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},a={environment:r.environment||"production",release:r.release,public_key:n,trace_id:e,org_id:function(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};if(r.orgId)t=String(r.orgId);else{let e;n&&(e=n.match(nF),t=e?.[1])}return t}(t)};return t.emit("createDsc",a),a}function aK(e){let t=nR();if(!t)return{};let r=n4(e),n=nX(r),a=n.data,i=r.spanContext().traceState,s=i?.get("sentry.sample_rate")??a[nO]??a["sentry.previous_trace_sample_rate"];function o(e){return("number"==typeof s||"string"==typeof s)&&(e.sample_rate=`${s}`),e}let l=r[aJ];if(l)return o(l);if(aX(r)&&!aW(t.getOptions())){let e=n$(r).scope;if(e){let r;return o({...(r=e.getPropagationContext()).dsc||aV(r.traceId,t)})}}let c=i?.get("sentry.dsc"),u=c&&function(e){let t=function(e){if(e&&(t5(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(nB(t)).forEach(([t,r])=>{e[t]=r}),e),{}):nB(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(nU)&&(e[t.slice(nU.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}(c);if(u)return o(u);let d=aV(e.spanContext().traceId,t),p=a[nT]??a["sentry.span.source"],h=n.description;return"url"!==p&&h&&(d.transaction=h),aW()&&(d.sampled=String(nZ(r)),d.sample_rand=i?.get("sentry.sample_rand")??n$(r).scope?.getPropagationContext().sampleRand.toString()),o(d),t.emit("createDsc",d,r),d}class aQ{constructor(e={}){this._traceId=e.traceId||rt(),this._spanId=e.spanId||nl(),this._startTime=e.startTimestamp||rs(),this._links=e.links,this._attributes={},this.setAttributes({[nI]:"manual",[nP]: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._links?this._links.push(e):this._links=[e],this}addLinks(e){return 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}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=nG(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,!0!==this[nL]&&this.setAttribute(nT,"custom"),this}end(e){this._endTime||(this._endTime=nG(e),function(e){if(!tL)return;let{description:t="< unknown name >",op:r="< unknown op >"}=nX(e),{spanId:n}=e.spanContext(),a=n4(e)===e,i=`[Tracing] Finishing "${r}" ${a?"root ":""}span "${t}" with ID ${n}`;tY.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[nP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:n0(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[nI],profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[nA],measurements:ae(this._events),is_segment:this._isStandaloneSpan&&n4(this)===this||void 0,segment_id:this._isStandaloneSpan?n4(this).spanContext().spanId:void 0,links:nq(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===n4(this),status:n1(this._status),attributes:n2(this._attributes,this._status),links:nz(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){tL&&tY.log("[Tracing] Adding an event to span:",e);let n=aZ(t)?t:r||rs(),a=aZ(t)?{}:t||{},i={name:e,time:nG(n),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=nR();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===n4(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=nR();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let r=aK(e[0]),n=t?.getDsn(),a=t?.getOptions().tunnel,i={sent_at:new Date(t9()).toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!a&&n&&{dsn:function(e,t=!1){let{host:r,path:n,pass:a,port:i,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&a?`:${a}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}(n)}},{beforeSendSpan:s,ignoreSpans:o}=t?.getOptions()||{},l=o?.length?e.filter(e=>{let t=nX(e);return!aq({description:t.description,op:t.op,attributes:t.data},o)}):e,c=e.length-l.length;
53c&&t?.recordDroppedEvent("before_send","span",c);let u=s?e=>{let t=nX(e),r=s&&"function"==typeof s&&"_streamed"in s&&s._streamed?t:s(t);return r||(nH||(tH(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),nH=!0),t)}:nX,d=[];for(let e of l){let t=u(e);t&&d.push([{type:"span"},t])}return function(e,t=[]){return[e,t]}(i,d)}([this],e)):(tL&&tY.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&az(e))return void e.emit("afterSegmentSpanEnd",this);let t=this._convertSpanToTransaction();t&&(n$(this).scope||nE()).captureEvent(t)}_convertSpanToTransaction(){let e;if(!a0(nX(this)))return;this._name||(tL&&tY.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:r}=n$(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let a=(e=new Set,!function t(r){if(!e.has(r)&&nZ(r))for(let n of(e.add(r),r[n5]?Array.from(r[n5]):[]))t(n)}(this),Array.from(e)).filter(e=>{var t;return e!==this&&!((t=e)instanceof aQ&&t.isStandaloneSpan())}).map(e=>nX(e)).filter(a0),i=this._attributes[nT];delete this._attributes[nN];let s=!1;a.forEach(e=>{delete e.data[nN],e.op?.startsWith("gen_ai.")&&(s=!0)});let o={contexts:{trace:function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:a,parent_span_id:i,status:s,origin:o,links:l}=nX(e);return{parent_span_id:i,span_id:t,trace_id:r,data:n,op:a,status:s,origin:o,links:l}}(this)},spans:a.length>1e3?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,dynamicSamplingContext:aK(this),hasGenAiSpans:s},request:n,...i&&{transaction_info:{source:i}}},l=ae(this._events);return l&&Object.keys(l).length&&(tL&&tY.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function aZ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function a0(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function a1(e){let t=nS(tU());if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=nG(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:n,parentSpan:a}=e;return(e.scope?t=>nx(e.scope,t):void 0!==a?e=>a2(a,e):e=>e())(()=>{var t,i;let s,o=nE(),l=function(e,t){if(t)return t;if(null===t)return;let r=nu(e[nd]);if(!r)return;let n=nR();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?n4(r):r}(o,a),c=nR();return e.onlyIfParent&&!l?(t=o,i=c,i?.recordDroppedEvent("no_parent_span","span"),nj(s=new aY({traceId:t.getPropagationContext().traceId}),t,nw()),s):function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var a,i;let s,o,l=nw();if(!aW()){let t={...l.getPropagationContext(),...n.getPropagationContext()},a=new aY({traceId:e?e.spanContext().traceId:t.traceId});return e&&!r&&n8(e,a),nj(a,n,l),a}let c=nR();if(a=c,i=t,s=a?.getOptions().ignoreSpans,a&&az(a)&&s?.length&&aq({description:i.name||"",op:i.attributes?.[nP]||i.op,attributes:i.attributes},s)){a5(n)||c?.recordDroppedEvent("ignored","span");let t=new aY({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});return nj(t,n,l),t}if(e&&!r)o=function(e,t,r,n){let{spanId:a,traceId:i}=e.spanContext(),s=a5(t),o=!s&&nZ(e),l=o?new aQ({...r,parentSpanId:a,traceId:i,sampled:o}):new aY({traceId:i});n8(e,l),nj(l,t,n);let c=nR();return c&&(az(c)&&aX(l)&&(aX(e)&&e.dropReason?(l.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",l),r.endTimestamp&&(c.emit("spanEnd",l),c.emit("afterSpanEnd",l))),l}(e,n,t,l),n8(e,o);else if(e){let r=aK(e),{traceId:a,spanId:i}=e.spanContext(),s=nZ(e);t4(o=a3({traceId:a,parentSpanId:i,...t},n,l,s),aJ,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:i}={...l.getPropagationContext(),...n.getPropagationContext()};o=a3({traceId:e,parentSpanId:a,...t},n,l,i),r&&t4(o,aJ,r)}return!function(e){if(!tL)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=nX(e),{spanId:a}=e.spanContext(),i=nZ(e),s=n4(e),o=s===e,l=`[Tracing] Starting ${i?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(n&&c.push(`parent ID: ${n}`),!o){let{op:e,description:t}=nX(s);c.push(`root ID: ${s.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}tY.log(`${l} 54 ${c.join("\n ")}`)}(o),o}({parentSpan:l,spanArguments:r,forceTransaction:n,scope:o})})}function a2(e,t){let r=nS(tU());return r.withActiveSpan?r.withActiveSpan(e,t):nx(r=>(np(r,e||void 0),t(r)))}function a5(e=nE()){let t=nS(tU());return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function a3(e,t,r,n){let a=nR(),i=a?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};a?.emit("beforeSampling",o,{decision:!1});let l=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),d=a5(t),[p,h,f]=d?[!1]:function(e,t,r){let n,a;if(!aW(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}),a=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,a=!0);let i=nW(n);if(void 0===i)return tL&&tY.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(!i)return tL&&tY.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,i,a];let s=r<i;return!s&&tL&&tY.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,i,a]}(i,{name:s,parentSampled:l,attributes:c,normalizedRequest:r.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:nW(u.dsc?.sample_rate)},u.sampleRand),m=new aQ({...e,attributes:{[nT]:"custom",[nO]:void 0!==h&&f?h:void 0,...c},sampled:p});return p||!a||d||(tL&&tY.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",az(a)?"span":"transaction")),nj(m,t,r),a&&a.emit("spanStart",m),m}function a8(e){return"number"==typeof e&&isFinite(e)}function a4(e,t,r,{...n}){let a=nX(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),a2(e,()=>{let e=a1({startTime:t,...n});return e&&e.end(r),e})}function a6(e){let t,r=nR();if(!r)return;let{name:n,transaction:a,attributes:i,startTime:s}=e,{release:o,environment:l}=r.getOptions(),{userInfo:c}=r.getDataCollectionOptions(),u=r.getIntegrationByName("Replay"),d=u?.getReplayId(),p=nE(),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 a1({name:n,attributes:{release:o,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":t$.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...i},startTime:s,experimental:{standalone:!0}})}function a7(){return t$.addEventListener&&t$.performance}function a9(e){return e/1e3}function ie(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function it(e,t){let r,n,a=!1;function i(e){!a&&n&&t(e,n.spanContext().spanId,n),a=!0}rE("visibilitychange",r=e=>{("pagehide"===e.type||t$.document?.visibilityState==="hidden")&&(()=>{i("pagehide")})()},{capture:!0,once:!0}),rE("pagehide",r,{capture:!0,once:!0});let s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",e=>{n=e,o()})}function ir(e){return null!=e&&e>0&&e<=6e4}function ia(e){return e?((rl()||performance.timeOrigin)+e)/1e3:e}function ii(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let a of e){if("/"===a){[t,r]=e.split("/");break}if(!isNaN(Number(a))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=a}
54return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return rl()||a7()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":ia(e.redirectStart),"http.request.redirect_end":ia(e.redirectEnd),"http.request.worker_start":ia(e.workerStart),"http.request.fetch_start":ia(e.fetchStart),"http.request.domain_lookup_start":ia(e.domainLookupStart),"http.request.domain_lookup_end":ia(e.domainLookupEnd),"http.request.connect_start":ia(e.connectStart),"http.request.secure_connection_start":ia(e.secureConnectionStart),"http.request.connection_end":ia(e.connectEnd),"http.request.request_start":ia(e.requestStart),"http.request.response_start":ia(e.responseStart),"http.request.response_end":ia(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let is=0,io={};function il(){f=void 0,m=void 0,io={}}function ic(e,t,r,n,a=r){var i;let s=t["secureConnection"===(i=r)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],o=t[`${r}Start`];o&&s&&a4(e,n+a9(o),n+a9(s),{op:`browser.${a}`,name:t.name,attributes:{[nI]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let iu=new WeakMap,id=new WeakMap,ip=["text/event-stream","application/x-ndjson","application/stream+json"],ih=[],im=new Map,ig=new Map,i_={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"},iy=({metric:e})=>{if(void 0==e.value)return;let t=a9(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&i_[t.name]);if(!r)return;let{interactionId:n}=r,a=i_[r.name],i=a9(rl()+r.startTime),s=n7(),o=s?n4(s):void 0,l=null!=n?im.get(n):void 0,c=l?.span||o,u=c?nX(c).description:nE().getScopeData().transactionName,d=a6({name:l?.elementName||rg(r.target),transaction:u,attributes:{[nI]:"auto.http.browser.inp",[nP]:`ui.interaction.${a}`,[nA]:r.duration},startTime:i});d&&(d.addEvent("inp",{[nC]:"millisecond",[nk]:e.value}),d.end(i+t))};function iv(e){let{name:t,op:r,origin:n,metricName:a,value:i,attributes:s,parentSpan:o,reportEvent:l,startTime:c,endTime:u}=e,d={[nI]:n,[nP]:r,[nA]:0,[`browser.web_vital.${a}.value`]:i,"sentry.transaction":nE().getScopeData().transactionName,"user_agent.original":t$.navigator?.userAgent,...s};o&&nJ(o).attributes?.[nP]==="pageload"&&(d["sentry.pageload.span_id"]=o.spanContext().spanId),l&&(d[`browser.web_vital.${a}.report_event`]=l);let p=a1({name:t,attributes:d,startTime:c,parentSpan:o});p&&p.end(u??c)}let ib="WebVitals",iS="sentry_previous_trace";function iE(e){return 1===e.traceFlags}var iw=e.i(729635),ix=e.i(779506);function iR(e={}){let t=e.client||(0,V.getClient)();if(!(0,J.isEnabled)()||!t)return{};let r=(0,ev.getMainCarrier)(),n=(0,ix.getAsyncContextStrategy)(r);if(n.getTraceData)return n.getTraceData(e);let a=e.scope||(0,V.getCurrentScope)(),i=e.span||(0,eu.getActiveSpan)(),s=(0,r9.spanIsNonRecordingSpan)(i)&&!(0,r7.hasSpansEnabled)(t.getOptions());if(!i&&(0,V.hasExternalPropagationContext)())return{};let o=i&&!s?(0,eu.spanToTraceHeader)(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,no.generateSentryTraceHeader)(t,n,r)}(a),l=i?(0,ew.getDynamicSamplingContextFromSpan)(i):(0,ew.getDynamicSamplingContextFromScope)(t,a),c=(0,iw.dynamicSamplingContextToSentryBaggageHeader)(l);if(!no.TRACEPARENT_REGEXP.test(o))return z.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(u.traceparent=i&&!s?(0,eu.spanToTraceparentHeader)(i):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,no.generateTraceparentHeader)(t,n,r)}(a)),u}function iT(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(iw.SENTRY_BAGGAGE_KEY_PREFIX))}function iO(e,t,r,n){let a={url:tD(e),type:"fetch","http.method":r,[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(tC(t)||(a["http.url"]=tD(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}let iP=Symbol.for("sentry__originalRequestBody");function iI(e){return new URLSearchParams(e).toString()}function iC(e,t=tY){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iI(e)];if(!e)return[void 0]}catch(r){return rK&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return rK&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ik(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][iP];if(void 0!==t)return t}}function iN(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return rK&&tY.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
54{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function iA(e){try{return new URL(e,tl.location.origin).href}catch{return}}function iM(e){try{return new Headers(e)}catch{return}}let iD={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iL(e,t){let{url:r}=(0,eu.spanToJSON)(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(a);if((0,eN.hasSpanStreamingEnabled)(t)){let t=e.end.bind(e);e.end=e=>{let r=e??(0,eE.timestampInSeconds)(),i=!1,s=()=>{i||(i=!0,setTimeout(a),t(r),clearTimeout(o))};n=s;let o=setTimeout(s,300)}}let a=aA("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(ii(t)),n())})})}let ij=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function i$(){let e=tl.navigator;return!!e?.userAgent&&ij.test(e.userAgent)}let iU={...nn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...iD};function iB(e,t,r){e.emit("startPageLoadSpan",t,r),(0,V.getCurrentScope)().setTransactionName(t.name);let n=e[iq];return n&&e.emit("afterStartPageLoadSpan",n),n}function iF(e,t,r){let{url:n,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});let i=(0,V.getCurrentScope)();return i.setTransactionName(t.name),n&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...td(),url:n}}),e[iq]}function iW(e){let t=tl.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function iH(e){let t=tl.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let iq="_sentry_idleSpan";function iz(e,t){(0,eo.addNonEnumerableProperty)(e,iq,t)}let iG=G.GLOBAL_OBJ,iY=null,iX=new Map,iJ=new Map;function iV(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 iK(e){if(iX.has(e))return iX.get(e)??null;try{let t=new RegExp(e);return iX.set(e,t),t}catch(t){return r6&&z.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function iQ(){if(!iG?._sentryRouteManifest||"string"!=typeof iG._sentryRouteManifest)return null;let e=iG._sentryRouteManifest;if(iY&&C===e)return iY;iX.clear(),iJ.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return iY=t,C=e,t}catch{return r6&&z.debug.warn("Could not extract route manifest"),null}}let iZ=e=>{let t=iQ();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(iJ.has(r))return iJ.get(r);let{staticRoutes:n,dynamicRoutes:a}=t;if(!Array.isArray(n)||!Array.isArray(a))return;let i=(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=iK(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}`,a=iK(t.regex);a?.test(r)&&n.push(t.path)}}return n})(r,n,a).sort((e,t)=>iV(e)-iV(t))[0];return iJ.set(r,i),i};function i0(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let i1="incomplete-app-router-transaction",i2="router-patch",i5={current:void 0},i3=G.GLOBAL_OBJ,i8=G.GLOBAL_OBJ;function i4(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let i6=new WeakSet;function i7(e,t,r){i6.has(t)||(i6.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,a,i){if("router-patch"!==i2)return t.apply(a,i);let s=i1,o={[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=i[0],c=q.default.env._sentryBasePath??i8._sentryBasePath,u=c&&"string"==typeof l&&!l.startsWith(c)?`${c}${l}`:l;"push"===n?(s=i0(i4(u)),o["navigation.type"]="router.push"):"replace"===n?(s=i0(i4(u)),o["navigation.type"]="router.replace"):"back"===n?o["navigation.type"]="router.back":"forward"===n&&(o["navigation.type"]="router.forward");
54let d=iZ(s);return r.current=iF(e,{name:d??s,attributes:{...o,[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url"}}),t.apply(a,i)}}))}))}var i9=e.i(565909);let se=i9.default.events?i9.default:i9.default.default,st=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sr(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let a=n>=0?e[n]:"/";a&&(t=`${a}/${t}`,r="/"===a.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 sn(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 sa=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);G.GLOBAL_OBJ;let si=!1,ss=G.GLOBAL_OBJ,so=globalThis,sl="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,sc="10.63.0";function su(){return sd(so),so}function sd(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||sc,t[sc]=t[sc]||{}}function sp(e,t,r=so){let n=r.__SENTRY__=r.__SENTRY__||{},a=n[sc]=n[sc]||{};return a[e]||(a[e]=t())}let sh={};function sf(e){if(!("console"in so))return e();let t=so.console,r={},n=Object.keys(sh);n.forEach(e=>{let n=sh[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function sm(){return s_().enabled}function sg(e,...t){sl&&sm()&&sf(()=>{so.console[e](`Sentry Logger [${e}]:`,...t)})}function s_(){return sl?sp("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let sy={enable:function(){s_().enabled=!0},disable:function(){s_().enabled=!1},isEnabled:sm,log:function(...e){sg("log",...e)},warn:function(...e){sg("warn",...e)},error:function(...e){sg("error",...e)}},sv=Object.prototype.toString;function sb(e,t){return sv.call(e)===`[object ${t}]`}function sS(e){return sb(e,"String")}function sE(e){return!!(e?.then&&"function"==typeof e.then)}function sw(e,t){try{return e instanceof t}catch{return!1}}function sx(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{sl&&sy.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function sR(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}let sT=Symbol.for("sentry.skipNormalization"),sO=Symbol.for("sentry.overrideNormalizationDepth"),sP="<anonymous>";function sI(t,r=100,n=1/0){try{return function t(r,n,a=1/0,i=1/0,s=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let o,[l,c]=s;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let u=function(t){try{var r;let n;if(g){let e=g(t);if(e)return e}if(t===e.g)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${function(e){try{if(!e||"function"!=typeof e)return sP;return e.name||sP}catch{return sP}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let a=(r=t,n=Object.getPrototypeOf(r),n?.constructor?n.constructor.name:"null prototype");return`[object ${a}]`}catch(e){return`**non-serializable** (${e})`}}(n);if(!u.startsWith("[object "))return u;if(n[sT])return n;let d=(o=n[sO],"number"==typeof o?o:void 0),p=void 0!==d?d:a;if(0===p)return u.replace("object ","");if(l(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,p-1,i,s)}catch{}let h=Array.isArray(n)?[]:{},f=0,m=function(e){if(function(e){switch(sv.call(e)){case"[object Error]":case"[object E
54xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return sw(e,Error)}}(e))return{message:e.message,name:e.name,stack:e.stack,...sR(e)};if("u">typeof Event&&sw(e,Event)){let{type:t,target:r,currentTarget:n,detail:a}=e;return{type:t,target:r,currentTarget:n,...a?{detail:a}:{},...sR(e)}}return e}(n);for(let e in m){if(!Object.prototype.hasOwnProperty.call(m,e))continue;if(f>=i){h[e]="[MaxProperties ~]";break}let r=m[e];h[e]=t(e,r,p-1,i,s),f++}return c(n),h}("",t,r,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function sC(e){if(void 0!==_)return _?_(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in so&&"function"==typeof so[t]?(_=so[t])(e):(_=null,e())}function sk(){return sC(()=>Math.random())}function sN(){return sC(()=>Date.now())}function sA(){return sN()/1e3}function sM(){return(y??(y=function(){let{performance:e}=so;if(!e?.now||!e.timeOrigin)return sA;let t=e.timeOrigin;return()=>(t+sC(()=>e.now()))/1e3}()))()}let sD=null;function sL(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function sj(e=so.crypto||so.msCrypto){try{if(e?.randomUUID)return sC(()=>e.randomUUID()).replace(/-/g,"")}catch{}return v||(v="10000000100040008000100000000000"),v.replace(/[018]/g,e=>(e^(15&16*sk())>>e/4).toString(16))}function s$(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let n={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=s$(n[e],t[e],r-1));return n}function sU(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let sB="_sentrySpan";function sF(e,t){t?sx(e,sB,function(e){try{let t=so.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[sB]}class sW{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:sj(),sampleRand:sk()}}clone(){let e=new sW;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,sF(e,sU(this[sB])),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||sM(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:sj()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:a,user:i,contexts:s,level:o,fingerprint:l=[],propagationContext:c,conversationId:u}=(t instanceof sW?t.getScopeData():sb(t,"Object")?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),o&&(this._level=o),l.length&&(this._fingerprint=l),c&&
54(this._propagationContext=c),u&&(this._conversationId=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,sF(this,void 0),this._attachments=[],this.setPropagationContext({traceId:sj(),sampleRand:sk()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:sA(),...e,message:e.message?sL(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:sU(this[sB]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=s$(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||sj();if(!this._client)return sl&&sy.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||sj();if(!this._client)return sl&&sy.warn("No client configured on scope - will not capture message!"),n;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:n},this),n}captureEvent(e,t){let r=e.event_id||t?.event_id||sj();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):sl&&sy.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let sH=e=>e instanceof Promise&&!e[sq],sq=Symbol("chained PromiseLike");class sz{constructor(e,t){let r,n;r=e||new sW,n=t||new sW,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}if(sE(t)){var n,a,i;let e;return n=t,a=()=>this._popScope(),i=()=>this._popScope(),sH(e=n.then(e=>(a(),e),e=>{throw i(),e}))&&sH(n)?e:((e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let a=e[n];"function"==typeof a?Object.defineProperty(t,n,{value:(...t)=>a.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=a}return r&&Object.assign(t,{[sq]:!0}),t})(n,e)}return this._popScope(),t}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function sG(){let e=sd(su());return e.stack=e.stack||new sz(sp("defaultCurrentScope",()=>new sW),sp("defaultIsolationScope",()=>new sW))}function sY(e){return sG().withScope(e)}function sX(e,t){let r=sG();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function sJ(e){return sG().withScope(()=>e(sG().getIsolationScope()))}function sV(e){let t=sd(e);return t.acs?t.acs:{withIsolationScope:sJ,withScope:sY,withSetScope:sX,withSetIsolationScope:(e,t)=>sJ(t),getCurrentScope:()=>sG().getScope(),getIsolationScope:()=>sG().getIsolationScope()}}function sK(){return sV(su()).getCurrentScope()}function sQ(){return sV(su()).getIsolationScope()}function sZ(){return sK().getClient()}let s0="sentry.source",s1="sentry-";function s2(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function s5(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||sZ()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function s3(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}function s8(e){return{scope:e._sentryScope,isolationScope:sU(e._sentryIsolationScope)}}let s4=/^o(\d+)\./;function s6(e){return"number"==typeof e?s7(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?s7(e.getTime()):sM()}function s7(e){return e>0x2540be3ff?e/1e3:e}function s9(e){var t,r;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:n,traceId:a}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:s,endTime:o,status:l,links:c}=e;return{span_id:n,trace_id:a,data:t,description:s,parent_span_id:"parentSpanId"in(r=e)?r.parentSpanId:"parentSpanContext"in r?r.parentSpanContext?.spanId:void 0,start_timestamp:s6(i),timestamp:s6(o)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}
54(l),op:t["sentry.op"],origin:t["sentry.origin"],links:c&&c.length>0?c.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:a})=>({span_id:e,trace_id:t,sampled:1===r,attributes:a,...n})):void 0}}return{span_id:n,trace_id:a,start_timestamp:0,data:{}}}function oe(e){let{traceFlags:t}=e.spanContext();return 1===t}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let ot=function(e){return e._sentryRootSpan||e};function or(){let e=sV(su());return e.getActiveSpan?e.getActiveSpan():sU(sK()[sB])}let on="production",oa=Symbol.for("sentry.nonRecordingSpan");function oi(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},a={environment:r.environment||on,release:r.release,public_key:n,trace_id:e,org_id:function(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};if(r.orgId)t=String(r.orgId);else{let e;n&&(e=n.match(s4),t=e?.[1])}return t}(t)};return t.emit("createDsc",a),a}function os(e){let t=sZ();if(!t)return{};let r=ot(e),n=s9(r),a=n.data,i=r.spanContext().traceState,s=i?.get("sentry.sample_rate")??a["sentry.sample_rate"]??a["sentry.previous_trace_sample_rate"];function o(e){return("number"==typeof s||"string"==typeof s)&&(e.sample_rate=`${s}`),e}let l=r._frozenDsc;if(l)return o(l);if(r&&!0===r[oa]&&!s5(t.getOptions())){let e=s8(r).scope;if(e){let r;return o({...(r=e.getPropagationContext()).dsc||oi(r.traceId,t)})}}let c=i?.get("sentry.dsc"),u=c&&function(e){let t=function(e){if(e&&(sS(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(s2(t)).forEach(([t,r])=>{e[t]=r}),e),{}):s2(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(s1)&&(e[t.slice(s1.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}(c);if(u)return o(u);let d=oi(e.spanContext().traceId,t),p=a[s0]??a["sentry.span.source"],h=n.description;return"url"!==p&&h&&(d.transaction=h),s5()&&(d.sampled=String(oe(r)),d.sample_rand=i?.get("sentry.sample_rand")??s8(r).scope?.getPropagationContext().sampleRand.toString()),o(d),t.emit("createDsc",d,r),d}function oo(e){return new ol(t=>{t(e)})}class ol{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new ol((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new ol((t,r)=>{let n,a;return this.then(t=>{a=!1,n=t,e&&e()},t=>{a=!0,n=t,e&&e()}).then(()=>{a?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(sE(t))return void t.then(r,n);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},n=e=>{t(2,e)};try{e(r,n)}catch(e){n(e)}}}function oc(e,t){let{extra:r,tags:n,attributes:a,user:i,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:h,transactionName:f,span:m}=t;ou(e,"extra",r),ou(e,"tags",n),ou(e,"attributes",a),ou(e,"user",i),ou(e,"contexts",s),e.sdkProcessingMetadata=s$(e.sdkProcessingMetadata,l,2),o&&(e.level=o),f&&(e.transactionName=f),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function ou(e,t,r){e[t]=s$(e[t],r,1)}let od=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function op(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function oh(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==q.default?q.default:0))||(e=so.process,e?.type==="renderer"))}function of(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}let om="sentryReplaySession",og="Unable to send Replay";var o_=Object.defineProperty,oy=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?o_(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ov=((D=ov||{})[D.Document=0]="Document",D[D.DocumentType=1]="DocumentType",D[D.Element=2]="Element",D[D.Text=3]="Text",D[D.CDATA=4]="CDATA",D[D.Comment=5]="Comment",D);function ob(e){let t=e?.host;return t?.shadowRoot===e}function oS(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function oE(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,ow).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 ow(e){let t;if("styleSheet"in e)try{t=oE(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,a=n[r],i=n.getPropertyPriority(a);t+=`${a}:${n.getPropertyValue(a)}
54${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class ox{constructor(){oy(this,"idNodeMap",new Map),oy(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))}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 oR({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 oT({isMasked:e,element:t,value:r,maskInputFn:n}){let a=r||"";return e?(n&&(a=n(a,t)),"*".repeat(a.length)):a}function oO(e){return e.toLowerCase()}function oP(e){return e.toUpperCase()}let oI="__rrweb_original__";function oC(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?oO(t):null}function ok(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function oN(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 oA={};function oM(e){let t=oA[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return oA[e]=n.bind(window)}function oD(...e){return oM("setTimeout")(...e)}function oL(...e){return oM("clearTimeout")(...e)}function oj(e){try{return e.contentDocument}catch{}}let o$=1,oU=RegExp("[^a-z0-9-_:]");function oB(){return o$++}let oF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oW=/^(?:[a-z+]+:)?\/\//i,oH=/^www\..*/i,oq=/^(data:)([^,]*),(.*)/i;function oz(e,t){return(e||"").replace(oF,(e,r,n,a,i,s)=>{let o=n||i||s,l=r||a||"";if(!o)return e;if(oW.test(o)||oH.test(o)||oq.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let c=t.split("/"),u=o.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let oG=/^[^ \t\n\r\u000c]+/,oY=/^[, \t\n\r\u000c]+/,oX=new WeakMap;function oJ(e,t){return t&&""!==t.trim()?oV(e,t):t}function oV(e,t){let r=oX.get(e);if(r||(r=e.createElement("a"),oX.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function oK(e,t,r,n,a,i,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return oJ(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return oJ(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}let a=[];for(;n(oY),!(r>=t.length);){let i=n(oG);if(","===i.slice(-1))i=oJ(e,i.substring(0,i.length-1)),a.push(i);else{let n="";i=oJ(e,i);let s=!1;for(;;){let e=t.charAt(r);if(""===e){a.push((i+n).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,a.push((i+n).trim());break}else"("===e&&(s=!0);n+=e,r+=1}}}return a.join(", ")}(e,n);if("style"===r){let t=oz(n,oV(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 a=e.slice(0,r).trim();t.has(a)||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 oJ(e,n);return"function"==typeof i?i(r,n,a):n}function oQ(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function oZ(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:oZ(e.parentNode,t,r,n+1)}function o0(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 o1(e,t,r,n,a,i){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 o=-1,l=-1;if(i){if((l=oZ(s,o0(n,a)))<0)return!0;o=oZ(s,o0(t,r),l>=0?l:1/0)}else{if((o=oZ(s,o0(t,r)))<0)return!1;l=oZ(s,o0(n,a),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!i}catch(e){}return!!i}function o2(e){return null==e?"":e.toLowerCase()}function o5(e,t){let r,{doc:n,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h=!1,inl
54ineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:S=!1,recordCanvas:E=!1,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:O=5e3,onBlockedImageLoad:P,onStylesheetLoad:I,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:N=!1,ignoreCSSAttributes:A}=t,{preserveWhiteSpace:M=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:i,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1,ignoreCSSAttributes:E}=t,w=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:ov.Document,childNodes:[],compatMode:e.compatMode};return{type:ov.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ov.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:a,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b,ignoreCSSAttributes:S}=t,E=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,i,s),w=function(e){if(e instanceof HTMLFormElement)return"form";let t=oO(e.tagName);return oU.test(t)?"div":t}(e),T={},O=e.attributes.length;for(let t=0;t<O;t++){let r=e.attributes[t];r.name&&!oQ(w,r.name,r.value)&&(T[r.name]=oK(n,w,oO(r.name),r.value,e,c,S))}if("link"===w&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=oE(t)),r&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=oz(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=oE(e.sheet);t&&(T._cssText=oz(t,oV(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){let t=oC(e),r=ok(e,oP(w),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=o1(e,_,v,y,b,oR({type:t,tagName:oP(w),maskInputOptions:l}));T.value=oT({isMasked:n,element:e,value:r,maskInputFn:u})}n&&(T.checked=n)}if("option"===w&&(e.selected&&!l.select?T.selected=!0:delete T.selected),"canvas"===w&&h){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 a=t.getImageData;if(new Uint32Array((oI in a?a[oI]:a).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"===w&&p){x||(R=(x=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{x.width=e.naturalWidth,x.height=e.naturalHeight,R.drawImage(e,0,0),T.rr_dataURL=x.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?T.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===w||"video"===w)&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),E){let{width:t,height:r}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||f(T.src)||(E||oj(e)||(T.rr_src=T.src),delete T.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:ov.Element,tagName:w,attributes:T,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:g,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:i,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:E});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:u}=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=oE(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=oz(p,oV(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=o1(e,n,i,a,s,r);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=oT({isMasked:o1(e,n,i,a,s,oR({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:ov.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{doc:r,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:ov.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:ov.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(e,{doc:n,mirror:a,blockClass:i,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,dataURLOptions:b,inlineImages:S,recordCanvas:E,keepIframeSrcFn:k,newlyAddedElement:N,ignoreCSSAttributes:A});if(!D)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===ov.Comment)return!0;
54if(e.type===ov.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"===oN(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(o2(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===o2(e.attributes.name)||"icon"===o2(e.attributes.rel)||"apple-touch-icon"===o2(e.attributes.rel)||"shortcut icon"===o2(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&o2(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(o2(e.attributes.property).match(/^(og|twitter|fb):/)||o2(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===o2(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===o2(e.attributes.name)||"googlebot"===o2(e.attributes.name)||"bingbot"===o2(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===o2(e.attributes.name)||"generator"===o2(e.attributes.name)||"framework"===o2(e.attributes.name)||"publisher"===o2(e.attributes.name)||"progid"===o2(e.attributes.name)||o2(e.attributes.property).match(/^article:/)||o2(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===o2(e.attributes.name)||"yandex-verification"===o2(e.attributes.name)||"csrf-token"===o2(e.attributes.name)||"p:domain_verify"===o2(e.attributes.name)||"verify-v1"===o2(e.attributes.name)||"verification"===o2(e.attributes.name)||"shopify-checkout-api-token"===o2(e.attributes.name)))return!0}}return!1}(D,v)&&(M||D.type!==ov.Text||D.isStyle||D.textContent.trim().length)?oB():-2;let L=Object.assign(D,{id:r});if(a.add(e,L),-2===r)return null;w&&w(e);let j=!h;if(L.type===ov.Element){j=j&&!L.needBlock;let t=e.shadowRoot;t&&oS(t)&&(L.isShadowHost=!0)}if((L.type===ov.Document||L.type===ov.Element)&&j){v.headWhitespace&&L.type===ov.Element&&"head"===L.tagName&&(M=!1);let t={doc:n,mirror:a,blockClass:i,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:E,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:O,onBlockedImageLoad:P,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:k,ignoreCSSAttributes:A};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=o5(r,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=o5(r,t);n&&(oS(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}if(e.parentNode&&ob(e.parentNode)&&oS(e.parentNode)&&(L.isShadow=!0),L.type!==ov.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,r){let n,a=function(e){try{return e.contentWindow}catch{}}(e);if(!a)return;let i=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){let n=oD(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{oL(n),i=!0,t()});return}let s="about:blank";if(a.location.href!==s||e.src===s||""===e.src)return oD(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=oj(e);if(t&&T){let r=o5(t,{doc:t,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:E,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:k,ignoreCSSAttributes:A});r&&T(e,r)}},O),L.type===ov.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&P)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&P(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===ov.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===oN(L.attributes.href))&&function(e,t,r){let n,a=!1;try{n=e.sheet}catch(e){n=null}if(n)return;let i=oD(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{oL(i),a=!0,t()})}(e,()=>
54{if(I){let t=o5(e,{doc:n,mirror:a,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:E,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:k,ignoreCSSAttributes:A});t&&I(e,t)}},C),L.type===ov.Element&&delete L.needBlock,L}function o3(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let o8="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.",o4={map:{},getId:()=>(console.error(o8),-1),getNode:()=>(console.error(o8),null),removeNodeFromMap(){console.error(o8)},has:()=>(console.error(o8),!1),reset(){console.error(o8)}};function o6(e,t,r={}){let n=null,a=0;return function(...i){let s=Date.now();a||!1!==r.leading||(a=s);let o=t-(s-a),l=this;o<=0||o>t?(n&&(function(...e){lf("clearTimeout")(...e)}(n),n=null),a=s,e.apply(l,i)):n||!1===r.trailing||(n=lm(()=>{a=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},o))}}function o7(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(o4=new Proxy(o4,{get:(e,t,r)=>("map"===t&&console.error(o8),Reflect.get(e,t,r))}));let o9=Date.now;function le(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 lt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ln(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function la(e,t,r,n,a){if(!e)return!1;let i=ln(e);if(!i)return!1;let s=o0(t,r);if(!a){let e=n&&i.matches(n);return s(i)&&!e}let o=oZ(i,s),l=-1;return!(o<0)&&(n&&(l=oZ(i,o0(null,n))),o>-1&&l<0||o<l)}function li(e,t){return -2===t.getId(e)}function ls(e){return!!e.changedTouches}function lo(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ll(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function lc(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(o9=()=>new Date().getTime());class lu{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 ld(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function lp(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=ld(r);)r=t;return r}(e);return t.contains(r)}(e))}let lh={};function lf(e){let t=lh[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return lh[e]=n.bind(window)}function lm(...e){return lf("setTimeout")(...e)}
54var lg=((L=lg||{})[L.DomContentLoaded=0]="DomContentLoaded",L[L.Load=1]="Load",L[L.FullSnapshot=2]="FullSnapshot",L[L.IncrementalSnapshot=3]="IncrementalSnapshot",L[L.Meta=4]="Meta",L[L.Custom=5]="Custom",L[L.Plugin=6]="Plugin",L),l_=((j=l_||{})[j.Mutation=0]="Mutation",j[j.MouseMove=1]="MouseMove",j[j.MouseInteraction=2]="MouseInteraction",j[j.Scroll=3]="Scroll",j[j.ViewportResize=4]="ViewportResize",j[j.Input=5]="Input",j[j.TouchMove=6]="TouchMove",j[j.MediaInteraction=7]="MediaInteraction",j[j.StyleSheetRule=8]="StyleSheetRule",j[j.CanvasMutation=9]="CanvasMutation",j[j.Font=10]="Font",j[j.Log=11]="Log",j[j.Drag=12]="Drag",j[j.StyleDeclaration=13]="StyleDeclaration",j[j.Selection=14]="Selection",j[j.AdoptedStyleSheet=15]="AdoptedStyleSheet",j[j.CustomElement=16]="CustomElement",j),ly=(($=ly||{})[$.MouseUp=0]="MouseUp",$[$.MouseDown=1]="MouseDown",$[$.Click=2]="Click",$[$.ContextMenu=3]="ContextMenu",$[$.DblClick=4]="DblClick",$[$.Focus=5]="Focus",$[$.Blur=6]="Blur",$[$.TouchStart=7]="TouchStart",$[$.TouchMove_Departed=8]="TouchMove_Departed",$[$.TouchEnd=9]="TouchEnd",$[$.TouchCancel=10]="TouchCancel",$),lv=((U=lv||{})[U.Mouse=0]="Mouse",U[U.Pen=1]="Pen",U[U.Touch=2]="Touch",U),lb=((B=lb||{})[B.Play=0]="Play",B[B.Pause=1]="Pause",B[B.Seeked=2]="Seeked",B[B.VolumeChange=3]="VolumeChange",B[B.RateChange=4]="RateChange",B);let lS=e=>T?(...t)=>{try{return e(...t)}catch(e){if(T&&!0===T(e))return()=>{};throw e}}:e;for(var lE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lw="u"<typeof Uint8Array?[]:new Uint8Array(256),lx=0;lx<lE.length;lx++)lw[lE.charCodeAt(lx)]=lx;class lR{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function lT(e){try{return e.contentDocument}catch(e){}}function lO(e){try{return e.contentWindow}catch(e){}}class lP{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 lI{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 lC=(e,t)=>`${e}@${t}`;class lk{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 lI,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},a=a=>{if(!a.parentNode||!lp(a))return;let i=ob(a.parentNode)?this.mirror.getId(ld(a)):this.mirror.getId(a.parentNode),s=n(a);if(-1===i||-1===s)return r.addNode(a);let o=o5(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
54ineStylesheet,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=>{lo(e,this.mirror)&&!la(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ll(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),lc(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(la(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let r=lO(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});o&&(e.push({parentId:i,nextId:s,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!lA(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)lM(this.droppedSet,e)||lA(this.removes,e,this.mirror)?lM(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}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}i=e.previous,r.removeNode(e.value),a(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(!li(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;la(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:o1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ln(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=oC(t),a=t.tagName;n=ok(t,a,r);let i=oR({maskInputOptions:this.maskInputOptions,tagName:a,type:r});n=oT({isMasked:o1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(la(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(lT(t))return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!oQ(t.tagName,r)&&(a.attributes[r]=oK(this.doc,oO(t.tagName),oO(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),i=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||i!==(r?.getPropertyPriority(e)||"")?""
54===i?a.styleDiff[e]=n:a.styleDiff[e]=[n,i]:a._unchangedStyles[e]=[n,i]}if(r)for(let e of Array.from(r))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(la(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=ob(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);la(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||li(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(lN(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ob(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[lC(r,n)]?lN(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(ob(e.target)&&oS(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(li(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[lC(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!la(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),lc(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 lP(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 lN(e,t){e.delete(t),t.childNodes?.forEach(t=>lN(e,t))}function lA(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 lM(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 lD=[];function lL(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 lj(e,t){let r=new lk;lD.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(n=window[a]);let i=new n(lS(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function l$({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:s}){return o3("scroll",lS(o6(lS(s=>{let o=lL(s);if(!o||la(o,n,a,i,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=le(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),t)}let lU=["INPUT","TEXTAREA","SELECT"],lB=new WeakMap;function lF(e){var t=[];if(lz("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||lz("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||lz("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||lz("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 lW(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function lH({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&a&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),lS(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}
54function lq(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=lj(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let a;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=o6(lS(t=>{let r=Date.now()-a;e(o.map(e=>(e.timeOffset-=r,e)),t),o=[],a=null}),s),c=lS(o6(lS(e=>{let t=lL(e),{clientX:r,clientY:i}=ls(e)?e.changedTouches[0]:e;a||(a=o9()),o.push({x:r,y:i,id:n.getId(t),timeOffset:o9()-a}),l("u">typeof DragEvent&&e instanceof DragEvent?l_.Drag:e instanceof MouseEvent?l_.MouseMove:l_.TouchMove)}),i,{trailing:!1})),u=[o3("mousemove",c,r),o3("touchmove",c,r),o3("drag",c,r)];return lS(()=>{u.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null;return Object.keys(ly).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(s=>{let o=oO(s),u=t=>{let o=lL(t);if(la(o,n,a,i,!0))return;let l=null,u=s;if("pointerType"in t){switch(t.pointerType){case"mouse":l=lv.Mouse;break;case"touch":l=lv.Touch;break;case"pen":l=lv.Pen}l===lv.Touch?ly[s]===ly.MouseDown?u="TouchStart":ly[s]===ly.MouseUp&&(u="TouchEnd"):lv.Pen}else ls(t)&&(l=lv.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===lv.Touch||u.startsWith("Mouse")&&l===lv.Mouse)&&(l=null)):ly[s]===ly.Click&&(l=c,c=null);let d=ls(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(o),{clientX:h,clientY:f}=d;lS(e)({type:ly[u],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(ly[s]){case ly.MouseDown:case ly.MouseUp:o=o.replace("mouse","pointer");break;case ly.TouchStart:case ly.TouchEnd:return}l.push(o3(o,u,t))}),lS(()=>{l.forEach(e=>e())})}(e),s=l$(e),o=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return o3("resize",lS(o6(lS(()=>{let t=lt(),a=lr();(r!==t||n!==a)&&(e({width:Number(a),height:Number(t)}),r=t,n=a)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=lL(e),u=e.isTrusted,g=r&&oP(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>lU.indexOf(g)||la(r,n,a,i,!0))return;let y=r;if(y.classList.contains(s)||o&&y.matches(o))return;let v=oC(r),b=ok(y,g,v),S=!1,E=oR({maskInputOptions:l,tagName:g,type:v}),w=o1(r,p,f,h,m,E);("radio"===v||"checkbox"===v)&&(S=r.checked),b=oT({isMasked:w,element:r,value:b,maskInputFn:c}),_(r,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});
54let x=r.name;"radio"===v&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach(e=>{if(e!==r){let t=oT({isMasked:w,element:e,value:ok(e,g,v),maskInputFn:c});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function _(t,n){let a=lB.get(t);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){lB.set(t,n);let a=r.getId(t);lS(e)({...n,id:a})}}let y=("last"===u.input?["change"]:["input","change"]).map(e=>o3(e,lS(g),t)),v=t.defaultView;if(!v)return()=>{y.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&&y.push(...S.map(e=>(function e(t,r,n,a,i=window){let s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,a?n:{set(e){lm(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){lS(g)({target:this,isTrusted:!1})}},!1,v))),lS(()=>{y.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:a,sampling:i,doc:s}){let o=lS(s=>o6(lS(i=>{let o=lL(i);if(!o||la(o,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=o;e({type:s,id:a.getId(o),currentTime:l,volume:c,muted:u,playbackRate:d})}),i.media||500)),l=[o3("play",o(lb.Play),s),o3("pause",o(lb.Pause),s),o3("seeked",o(lb.Seeked),s),o3("volumechange",o(lb.VolumeChange),s),o3("ratechange",o(lb.RateChange),s)];return lS(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let a,i;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:lS((n,a,i)=>{let[s,o]=i,{id:l,styleId:c}=lW(a,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:o}]}),n.apply(a,i)})});let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:lS((n,a,i)=>{let[s]=i,{id:o,styleId:l}=lW(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:s}]}),n.apply(a,i)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:lS((n,a,i)=>{let[s]=i,{id:o,styleId:l}=lW(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:s}),n.apply(a,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:lS((n,a,i)=>{let[s]=i,{id:o,styleId:l}=lW(a,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:s}),n.apply(a,i)})}));let l={};lG("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(lG("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),lG("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),lG("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,a])=>{c[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(c[n].insertRule,{apply:lS((n,a,i)=>{let[s,o]=i,{id:l,styleId:c}=lW(a.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:[...lF(a),o||0]}]}),n.apply(a,i)})}),a.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:lS((n,a,i)=>{let[s]=i,{id:o,styleId:l}=lW(a.parentStyleSheet,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...lF(a),s]}]}),n.apply(a,i)})})}),lS(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=lH(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let i=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:lS((a,s,o)=>{let[l,c,u]=o;if(r.has(l))return i.apply(s,[l,c,u]);let{id:d,styleId:p}=lW(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:lF(s.parentRule)}),a.apply(s,o)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:lS((a,i,o)=>{let[l]=o;if(r.has(l))return s.apply(i,[l]);let{id:c,styleId:u}=lW(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:lF(i.parentRule)}),a.apply(i,o)})}),lS(()=>{a.CSSStyleDeclaration.prototype.setProperty=i,a.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return a.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=o7(t.fonts,"add",function(t){return function(r){return lm(lS(()=>{let t=a.get(r);t&&(e(t),a.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(s),lS(()=>
54{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,selectionCb:s}=e,o=!0,l=lS(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:s,startOffset:o,endContainer:c,endOffset:u}=e.getRangeAt(t);la(s,n,a,i,!0)||la(c,n,a,i,!0)||l.push({start:r.getId(s),startOffset:o,end:r.getId(c),endOffset:u})}s({ranges:l})});return l(),o3("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?o7(r.customElements,"define",function(e){return function(r,n,a){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,a])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return lS(()=>{lD.forEach(e=>e.reset()),r?.disconnect(),a(),i(),s(),o(),l(),c(),u(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function lz(e){return void 0!==window[e]}function lG(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class lY{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let a=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),s=a.get(t);return s||(s=this.generateIdFn(),a.set(t,s),i.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 a=n.get(t);return a||-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 lX{constructor(){this.crossOriginIframeMirror=new lY(oB),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class lJ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new lY(oB),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new lY(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=lO(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&&lO(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=lT(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 lg.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:lg.IncrementalSnapshot,data:{source:l_.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case lg.Meta:case lg.Load:case lg.DomContentLoaded:break;case lg.Plugin:return t;case lg.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case lg.IncrementalSnapshot:switch(t.data.source){case l_.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)}
54),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 l_.Drag:case l_.TouchMove:case l_.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case l_.ViewportResize:return!1;case l_.MediaInteraction:case l_.MouseInteraction:case l_.Scroll:case l_.CanvasMutation:case l_.Input:return this.replaceIds(t.data,e,["id"]),t;case l_.StyleSheetRule:case l_.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case l_.Font:return t;case l_.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case l_.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 a of n)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]));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===ov.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class lV{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class lK{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(!oS(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=lj({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(l$({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),lm(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(lH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=lT(e),r=lO(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(o7(e.prototype,"attachShadow",function(e){return function(n){let a=e.call(this,n);return this.shadowRoot&&lp(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class lQ{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new lu,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:ow(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 lZ{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){lf("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}
54try{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 l0=new ox;function l1(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:E=null,packFn:w,sampling:x={},dataURLOptions:R={},mousemoveWait:I,recordDOM:C=!0,recordCanvas:k=!1,recordCrossOriginIframes:N=!1,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:j,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:B,onMutation:F,getCanvasManager:W}=e;T=B;let H=!N||window.parent===window,q=!1;if(!H)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(H&&!r)throw Error("emit function is required");if(!H&&!q)return()=>{};void 0!==I&&void 0===x.mousemove&&(x.mousemove=I),l0.reset();let z=!0===g?{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!==_?_:{},G=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let Y=0,X=e=>{for(let t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!q&&(e=w(e)),e};O=(e,i)=>{if(e.timestamp=o9(),lD[0]?.isFrozen()&&e.type!==lg.FullSnapshot&&(e.type!==lg.IncrementalSnapshot||e.data.source!==l_.Mutation)&&lD.forEach(e=>e.unfreeze()),H)r?.(X(e),i);else if(q){let t={type:"rrweb",event:X(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===lg.FullSnapshot)t=e,Y=0;else if(e.type===lg.IncrementalSnapshot){if(e.data.source===l_.Mutation&&e.data.isAttachIframe)return;Y++;let r=a&&Y>=a,i=n&&t&&e.timestamp-t.timestamp>n;(r||i)&&en(!0)}};let J=e=>{O({type:lg.IncrementalSnapshot,data:{source:l_.Mutation,...e}})},V=e=>O({type:lg.IncrementalSnapshot,data:{source:l_.Scroll,...e}}),K=e=>O({type:lg.IncrementalSnapshot,data:{source:l_.CanvasMutation,...e}}),Q=new lQ({mutationCb:J,adoptedStyleSheetCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new lX:new lJ({mirror:l0,mutationCb:J,stylesheetManager:Q,recordCrossOriginIframes:N,wrappedEmit:O});for(let e of j||[])e.getMirror&&e.getMirror({nodeMirror:l0,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new lZ,et=function(e,t){try{return e?e(t):new lR}catch{return console.warn("Unable to initialize CanvasManager"),new lR}}(W,{mirror:l0,win:window,mutationCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.CanvasMutation,...e}}),recordCanvas:k,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:E,sampling:x.canvas,dataURLOptions:R,errorHandler:B}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new lV:new lK({mutationCb:J,scrollCb:V,bypassOptions:{onMutation:F,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:z,dataURLOptions:R,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:k,inlineImages:L,sampling:x,slimDOMOptions:G,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:$,processedNodeManager:ee,ignoreCSSAttributes:U},mirror:l0}),en=(e=!1)=>
54{if(!C)return;O({type:lg.Meta,data:{href:window.location.href,width:lr(),height:lt()}},e),Q.reset(),er.init(),lD.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new ox,blockClass:n="rr-block",blockSelector:a=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:x,onStylesheetLoad:R,stylesheetLoadTimeout:T,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:P=new Set([])}=t||{};return o5(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:x,onStylesheetLoad:R,stylesheetLoadTimeout:T,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:P})}(document,{mirror:l0,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:z,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:G,dataURLOptions:R,recordCanvas:k,inlineImages:L,onSerialize:e=>{lo(e,l0)&&Z.addIframe(e),ll(e,l0)&&Q.trackLinkElement(e),lc(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t);let r=lO(e);r&&et.addWindow(r),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{J({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:$,ignoreCSSAttributes:U});if(!t)return console.warn("Failed to snapshot the document");O({type:lg.FullSnapshot,data:{node:t,initialOffset:le(window)}}),lD.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,l0.getId(document))};P=en;try{let e=[],t=e=>lS(lq)({onMutation:F,mutationCb:J,mousemoveCb:(e,t)=>O({type:lg.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.ViewportResize,...e}}),inputCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.Input,...e}}),mediaInteractionCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.MediaInteraction,...e}}),styleSheetRuleCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.StyleSheetRule,...e}}),styleDeclarationCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>O({type:lg.IncrementalSnapshot,data:{source:l_.Font,...e}}),selectionCb:e=>{O({type:lg.IncrementalSnapshot,data:{source:l_.Selection,...e}})},customElementCb:e=>{O({type:lg.IncrementalSnapshot,data:{source:l_.CustomElement,...e}})},blockClass:i,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:z,inlineStylesheet:m,sampling:x,recordDOM:C,recordCanvas:k,inlineImages:L,userTriggeredOnInput:M,collectFonts:D,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:$,blockSelector:s,unblockSelector:o,slimDOMOptions:G,dataURLOptions:R,mirror:l0,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:U,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>O({type:lg.Plugin,data:{plugin:e.name,payload:t}}
54)}))||[]},{});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(o3("DOMContentLoaded",()=>{O({type:lg.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&r()})),e.push(o3("load",()=>{O({type:lg.Load,data:{}}),"load"===A&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),P=void 0,T=void 0}}catch(e){console.warn(e)}}function l2(e){return e>0x2540be3ff?e:1e3*e}function l5(e){return e>0x2540be3ff?e/1e3:e}function l3(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:lg.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:sI(t,10,1e3)}}),"console"===t.category)))}function l8(e){return e.closest("button,a")||e}function l4(e){let t=l6(e);return t&&t instanceof Element?l8(t):t}function l6(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}l1.mirror=l0,l1.takeFullSnapshot=function(e){if(!P)throw Error("please take full snapshot after start recording");P(e)},(F=H||(H={}))[F.NotStarted=0]="NotStarted",F[F.Running=1]="Running",F[F.Stopped=2]="Stopped";let l7=new Set([l_.Mutation,l_.StyleSheetRule,l_.StyleDeclaration,l_.AdoptedStyleSheet,l_.CanvasMutation,l_.Selection,l_.MediaInteraction]);class l9{constructor(e,t,r=l3){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=ct()},I||(I=[],!function(e,t,r){if(!(t in e))return;let n=e[t];if("function"!=typeof n)return;let a=r(n);"function"==typeof a&&function(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,sx(e,"__sentry_original__",t)}catch{}}(a,n);try{e[t]=a}catch{sl&&sy.log(`Failed to replace method "${t}" in object`,e)}}(so,"open",function(e){return function(...t){if(I)try{I.forEach(e=>e())}catch{}return e.apply(so,t)}})),I.push(e),()=>{let t=I?I.indexOf(e):-1;t>-1&&I.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,a;if(r=t,n=this._ignoreSelector,!ce.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)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let i={timestamp:l5(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=l5(e)}registerScroll(e=Date.now()){this._lastScroll=l5(e)}registerClick(e){let t=l8(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=ct();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:a,clickBreadcrumb:i}=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:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:so.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,s);return}if(a>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:so.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=r0(()=>this._checkClicks(),1e3)}}let ce=["A","BUTTON","INPUT"];function ct(){return Date.now()/1e3}function cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var cn=((W=cn||{})[W.Document=0]="Document",W[W.DocumentType=1]="DocumentType",W[W.Element=2]="Element",W[W.Text=3]="Text",W[W.CDATA=4]="CDATA",W[W.Comment=5]="Comment",W);let ca=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ci(e,t){let r=l1.mirror.getId(e),n=r&&l1.mirror.getNode(r),a=n&&l1.mirror.getMeta(n),i=a&&a.type===cn.Element?a:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>
54e.type===cn.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(ca.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(i.attributes)}}:{}}}let cs={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:a,startTime:i,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:cc(i),end:cc(a),name:n,data:{size:c,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:a}=e,i=cc(a);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:a,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:cc(h),end:cc(i),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:a,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function co(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function cl(e){let t=cs[e.entryType];return t?t(e):null}function cc(e){return null===sD&&(sD=function(){let{performance:e}=so;if(!e?.now)return;let t=sC(()=>e.now()),r=sN(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-r)?a:r-t}()),((sD||so.performance.timeOrigin)+e)/1e3}function cu(e){let t=e.entries[e.entries.length-1];return ch(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function cd(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=l1.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return ch(e,"cumulative-layout-shift",r,t)}function cp(e){let t=e.entries[e.entries.length-1];return ch(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function ch(e,t,r,n){let a=e.value,i=e.rating,s=cc(a);return{type:"web-vital",name:t,start:s,end:s,data:{value:a,size:a,rating:i,nodeIds:r?r.map(e=>l1.mirror.getId(e)):void 0,attributions:n}}}let cf="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,cm=["log","warn","error"],cg="[Replay] ";function c_(e,t="info"){!function(e,t){let r=sZ(),n=sQ();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=r.getOptions();if(i<=0)return;let s={timestamp:sA(),...e},o=a?sf(()=>a(s,t)):s;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,i))}({category:"console",data:{logger:"replay"},level:t,message:`${cg}${e}`},{level:t})}let cy=(N=!1,A=!1,M={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{N=!!e.captureExceptions,A=!!e.traceInternals}},cf?(cm.forEach(e=>{M[e]=(...t)=>{sy[e](cg,...t),A&&c_(t.join(""),"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log")}}),M.exception=(e,...t)=>{if(t.length&&M.error&&M.error(...t),sy.error(cg,e),N)sK().captureException(e,function(e){if(e){var t;return(t=e)instanceof sW||"function"==typeof t||Object.keys(e).some(e=>od.includes(e))?{captureContext:e}:e}}({mechanism:{handled:!0,type:"auto.function.replay.debug"}}));else A&&c_(e,"error")},M.infoTick=(...e)=>{sy.log(cg,...e),A&&setTimeout(()=>c_(e[0]),0)}):cm.forEach(e=>{M[e]=()=>void 0}),M);class cv extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class cb{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 cv;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:l2(e)}}class cS{constructor(e){this._onMessage=({data:e})=>
54{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){cf&&cy.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)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(cf&&cy.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{cf&&cy.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(){cf&&cy.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,a)=>{this._pending.set(r,{method:e,resolve:n,reject:a});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),a(e)}})}_getAndIncrementId(){return this._id++}}class cE{constructor(e){this._worker=new cS(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=l2(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 cv):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{cf&&cy.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 cw{constructor(e){this._fallback=new cb,this._compression=new cE(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){cf&&cy.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){cf&&cy.exception(e,"Failed to add events when switching buffers.")}}}function cx(){try{return"sessionStorage"in so&&!!so.sessionStorage}catch{return!1}}function cR(e){return void 0!==e&&Math.random()<e}function cT(e){if(cx())try{so.sessionStorage.setItem(om,JSON.stringify(e))}catch{}}function cO(e){let t=Date.now(),r=e.id||sj(),n=e.started||t,a=e.lastActivity||t,i=e.segmentId||0,s=e.sampled;return{id:r,started:n,lastActivity:a,segmentId:i,sampled:s,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function cP({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let a=cO({sampled:cR(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&cT(a),a}function cI(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function cC(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return cI(e.started,t,n)||cI(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function ck({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let a=n.stickySession&&function(){if(!cx())return null;try{let e=so.sessionStorage.getItem(om);if(!e)return null;let t=JSON.parse(e);return cf&&cy.infoTick("Loading existing session"),cO(t)}catch{return null}}();return a?cC(a,{sessionIdleExpire:e,maxReplayDuration:t})?(cf&&cy.infoTick("Session in sessionStorage is expired, creating new one..."),cP(n,{previousSessionId:a.id})):a:(cf&&cy.infoTick("Creating new session"),cP(n,{previousSessionId:r}))}function cN(e,t,r){return!!cM(e,t)&&(cA(e,t,r),!0)}async function cA(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let a="buffer"===e.recordingMode;try{r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let i=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===lg.Custom)return t(e)}catch(e){return cf&&cy.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,i.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(i){let t=i&&i instanceof cv,r=sZ();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&a)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}
54function cM(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=l2(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(cf&&cy.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function cD(e,t){let r=e.getContext();r.traceIds.size<100&&r.traceIds.add(t)}function cL(e){return"transaction"===e.type}function cj(e){return"feedback"===e.type}function c$(e){return!!e.category}function cU(){let e=sK().getPropagationContext().dsc;e&&delete e.replay_id;let t=or();if(t){let e=os(t);delete e.replay_id}}function cB(e){let t=sK().getPropagationContext().dsc;t&&(t.replay_id=e);let r=or();r&&(os(r).replay_id=e)}function cF(e,t){return t.map(({type:t,start:r,end:n,name:a,data:i})=>{let s=e.throttledAddEvent({type:lg.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function cW(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,a,i,s,o,l;let c,u,d;if(cf&&e.getOptions()._experiments.traceInternals)return!1;return r=sZ(),c=r?.getDsn(),u=r?.getOptions().tunnel,n=t,a=c,!!(d=function(e){let t=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=(void 0)??(t?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let n=new URL(e,r);if(t)return{isRelative:t,pathname:n.pathname,search:n.search,hash:n.hash};return n}catch{}}(n))&&!("isRelative"in d)&&!!a&&(i=d.hostname,i===(s=a.host)||s.length>0&&i.endsWith(`.${s}`))&&/(^|&|\?)sentry_key=/.test(d.search)||(o=t,!!(l=u)&&op(o)===op(l))}(e,t.name)&&e.addUpdate(()=>(cF(e,[t]),!0))}function cH(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=iI(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function cq(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function cz(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 cG(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:a,method:i,statusCode:s,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:a,data:{method:i,statusCode:s,request:o,response:l}}}function cY(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function cX(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:a,warnings:i}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let a=e.length>15e4,i=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(a){let t=e.slice(0,15e4);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=a,i?.length&&(n._meta={warnings:i}),n}function cJ(e,t){return Object.entries(e).reduce((r,[n,a])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=a),r},{})}function cV(e,t){return function(e,t=[],r=!1){for(let n of t)if(function(e,t,r=!1){return!!sS(e)&&(sb(t,"RegExp")?t.test(e):sS(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}(e,n,r))return!0;return!1}(function(e,t=so.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(so.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),t)}async function cK(e,t,r){try{let n=await cQ(e,t,r),a=cG("resource.fetch",n);cW(r.replay,a)}catch(e){cf&&cy.exception(e,"Failed to capture fetch breadcrumb")}}async function cQ(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:i=n}=t,{url:s,method:o,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=cV(s,r.networkDetailAllowUrls)&&!cV(s,r.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:i,url:s,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var a,i;
54let s=r?(a=r,i=t,1===a.length&&"string"!=typeof a[0]?c2(a[0],i):2===a.length?c2(a[1],i):{}):{};if(!e)return cX(s,n,void 0);let[o,l]=iC(ik(r),cy),c=cX(s,n,o);return l?cz(c,l):c}(r,t.input,c):cY(c),response:await cZ(d,r,t.response,u)}}async function cZ(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,a){if(!e&&void 0!==a)return cY(a);let i=n?c1(n.headers,r):{};if(!n||!t&&void 0!==a)return cX(i,a,void 0);let[s,o]=await c0(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:a}){try{let i=e?.length&&void 0===r?cH(e):r;if(!n)return cY(i);if(t)return cX(a,i,e);return cX(a,i,void 0)}catch(e){return cf&&cy.exception(e,"Failed to serialize response body"),cX(a,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:i});return o?cz(l,o):l}async function c0(e){let t=function(e){try{return e.clone()}catch(e){cf&&cy.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=r0(()=>t(Error("Timeout while trying to read response body")),500);c5(r).then(t=>e(t),e=>
54t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return cf&&cy.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return cf&&cy.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function c1(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function c2(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?c1(r,t):Array.isArray(r)?{}:cJ(r,t):{}}async function c5(e){return await e.text()}async function c3(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:i=n,input:s,xhr:o}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!cV(l,r.networkDetailAllowUrls)||cV(l,r.networkDetailDenyUrls)){let e=cY(d);return{startTimestamp:a,endTimestamp:i,url:l,method:c,statusCode:u,request:e,response:cY(p)}}let h=o[rc],f=h?cJ(h.request_headers,r.networkRequestHeaders):{},m=cJ(iN(o),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?iC(s,cy):[void 0],[y,v]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return cf&&cy.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return cf&&cy.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return cf&&cy.warn("Failed to get xhr response body",...t),[void 0]}(o):[void 0],b=cX(f,d,g),S=cX(m,p,y);return{startTimestamp:a,endTimestamp:i,url:l,method:c,statusCode:u,request:_?cz(b,_):b,response:v?cz(S,v):S}}(e,t,r),a=cG("resource.xhr",n);cW(r.replay,a)}catch(e){cf&&cy.exception(e,"Failed to capture xhr breadcrumb")}}async function c8(e){try{return Promise.all(cF(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(so.performance.memory)]))}catch{return[]}}let c4=so.navigator;async function c6({client:e,scope:t,replayId:r,event:n}){let a={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,a);let i=await function(e,t,r,n,a,i){var s,o,l;let c,u,{normalizeDepth:d=3,normalizeMaxBreadth:p=1e3}=e,h={...t,event_id:t.event_id||r.event_id||sj(),timestamp:t.timestamp||sA()},f=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:a,maxValueLength:i}=t;e.environment=e.environment||r||on,!e.release&&n&&(e.release=n),!e.dist&&a&&(e.dist=a);let s=e.request;s?.url&&i&&(s.url=sL(s.url,i)),i&&e.exception?.values?.forEach(e=>{e.value&&(e.value=sL(e.value,i))})})(h,e),s=h,(o=f).length>0&&(s.sdk=s.sdk||{},s.sdk.integrations=[...s.sdk.integrations||[],...o]),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&(l=h,c=function(e){let t=so._sentryDebugIds,r=so._debugIds;if(!t&&!r)return{};let n=t?Object.keys(t):[],a=r?Object.keys(r):[];if(w&&n.length===S&&a.length===E)return w;S=n.length,E=a.length,w={},b||(b={});let i=(t,r)=>{for(let n of t){let t=r[n],a=b?.[n];if(a&&w&&t)w[a[0]]=t,b&&(b[n]=[a[0],t]);else if(t){let r=e(n);for(let e=r.length-1;e>=0;e--){let a=r[e],i=a?.filename;if(i&&w&&b){w[i]=t,b[n]=[i,t];break}}}}};return t&&i(n,t),r&&i(a,r),w}(e.stackParser),l.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=c[e.filename])})}));let m=function(e,t){if(!t)return e;let r=e?e.clone():new sW;return r.update(t),r}(n,r.captureContext);r.mechanism&&function(e,t){let r=e.exception?.values?.[0];if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}(h,r.mechanism);let g=a?a.getEventProcessors():[],_=(u=sp("globalScope",()=>new sW).getScopeData(),i&&oc(u,i.getScopeData()),m&&oc(u,m.getScopeData()),u),y=[...r.attachments||[],..._.attachments];y.length&&(r.attachments=y),function(e,t){var r,n,a,i,s,o,l,c;
54let u,d,{fingerprint:p,span:h,breadcrumbs:f,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:r,tags:n,user:a,contexts:i,level:s,transactionName:o}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(a).length&&(e.user={...a,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),h&&((r=e).contexts={trace:function(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),a=n?t:s9(e).parent_span_id,i=s8(e).scope;return{parent_span_id:a,span_id:n?i?.getPropagationContext().propagationSpanId||sj().substring(16):t,trace_id:r}}(n=h),...r.contexts},r.sdkProcessingMetadata={dynamicSamplingContext:os(n),...r.sdkProcessingMetadata},(u=s9(ot(n)).description)&&!r.transaction&&"transaction"===r.type&&(r.transaction=u)),a=e,i=p,a.fingerprint=a.fingerprint?Array.isArray(a.fingerprint)?a.fingerprint:[a.fingerprint]:[],i&&(a.fingerprint=a.fingerprint.concat(i)),a.fingerprint.length||delete a.fingerprint,s=e,o=f,d=[...s.breadcrumbs||[],...o],s.breadcrumbs=d.length?d:void 0,l=e,c=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...c}}(h,_);let v=[...g,..._.eventProcessors];return(r.data&&!0===r.data.__sentry__?oo(h):function(e,t,r,n=0){try{let a=function e(t,r,n,a){let i=n[a];if(!t||!i)return t;let s=i({...t},r);return(sl&&null===s&&sy.log(`Event processor "${i.id||"?"}" dropped event`),sE(s))?s.then(t=>e(t,r,n,a+1)):e(s,r,n,a+1)}(t,r,e,n);return sE(a)?a:oo(a)}catch(e){return new ol((t,r)=>{r(e)})}}(v,h,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof d&&d>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:sI(e.data,t,r)}}))},...e.user&&{user:sI(e.user,t,r)},...e.contexts&&{contexts:sI(e.contexts,t,r)},...e.extra&&{extra:sI(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=sI(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:sI(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=sI(e.contexts.flags,3,r)),n}(e,d,p):e)}(e.getOptions(),n,a,t,e,sQ());if(!i)return null;e.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let s=e.getSdkMetadata(),{name:o,version:l,settings:c}=s?.sdk||{};return i.sdk={...i.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0",settings:c},i}async function c7({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:a,session:i}){var s,o;let l,c,u=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)} 55`;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:d,errorIds:p,traceIds:h,initialTimestamp:f}=n,m=sZ(),g=sK(),_=m?.getTransport(),y=m?.getDsn();if(!m||!_||!y||!i.sampled)return Promise.resolve({});let v={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:a/1e3,error_ids:p,trace_ids:h,urls:d,replay_id:t,segment_id:r,replay_type:i.sampled},b=await c6({scope:g,client:m,replayId:t,event:v});if(!b)return m.recordDroppedEvent("event_processor","replay"),cf&&cy.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete b.sdkProcessingMetadata;let S=(s=m.getOptions().tunnel,function(e,t=[]){return[e,t]}((o=function(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}(b),c=b.sdkProcessingMetadata?.dynamicSamplingContext,{event_id:b.event_id,sent_at:new Date(sN()).toISOString(),...o&&{sdk:o},...!!s&&y&&{dsn:function(e,t=!1){let{host:r,path:n,pass:a,port:i,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&a?`:${a}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}(y)},...c&&{trace:c}}),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{l=await _.send(S)}catch(t){let e=Error(og);try{e.cause=t}catch{}throw e}let E=function(e,{statusCode:t,headers:r},n=sN()){let a={...e},i=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,r,,,i]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=n+o):a[e]=n+o;else a.all=n+o}else s?a.all=n+function(e,t=sN()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}
55(s,n):429===t&&(a.all=n+6e4);return a}({},l);if(function(e,t,r=sN()){return(e[t]||e.all||0)>r}(E,"replay"))throw new ue(E);if("number"==typeof l.statusCode&&(l.statusCode<200||l.statusCode>=300))throw new c9(l.statusCode);return l}class c9 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ue extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class ut extends Error{constructor(){super("Session is too long, not sending replay")}}async function ur(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await c7(e),!0}catch(r){var a;if(r instanceof c9||r instanceof ue)throw r;if(a={_retryCount:t.count},sQ().setContext("Replays",a),n&&n(r),t.count>=3){let e=Error(`${og} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{r0(async()=>{try{await ur(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let un="__THROTTLED";class ua{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return function(e,t,r){let n,a,i,s=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e()}function c(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function u(){return a&&clearTimeout(a),a=o(l,t),s&&void 0===i&&(i=o(l,s)),n}return u.cancel=c,u.flush=function(){return void 0!==a||void 0!==i?l():n},u}(e,t,{...r,setTimeoutImpl:r0})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let a,i=Math.floor(Date.now()/1e3);if(a=i-5,t.forEach((e,r)=>{r<a&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":un}r=!1;let s=t.get(i)||0;return t.set(i,s+1),e(...n)}}((e,t)=>cM(this,e)?cA(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),a=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(a&&(this.clickDetector=new l9(this,a)),cf){const t=e._experiments;cy.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===so.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=cr({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=cr({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:a,altKey:i,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||a||i,c=1===s.length;if(!l&&c)return null;let u=rg(o,{maxStringLength:200})||"<unknown>",d=ci(o,u);return cr({category:"ui.keyDown",message:u,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:s}})}(t);r&&l3(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){cf&&cy.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){cf&&cy.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",cf&&cy.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
55start(){if(this._isEnabled&&"session"===this.recordingMode){cf&&cy.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){cf&&cy.log("Buffering is in progress, call `flush()` to save the replay");return}cf&&cy.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=ck({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){cf&&cy.log("Buffering is in progress, call `flush()` to save the replay");return}cf&&cy.infoTick("Starting replay in buffer mode");let e=ck({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=l1({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){cf&&cy.warn("Received replay event after session expired.");return}let a=n||!t;t=!0,function(e){let t=e.data;if(e.type===lg.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===l_.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=l1.mirror.getNode(e.id),r=t&&l1.mirror.getMeta(t);if(r?.type===cn.Element)for(let[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(l7.has(n)&&e.registerMutation(t.timestamp),n===l_.Scroll&&e.registerScroll(t.timestamp),t.data.source===l_.MouseInteraction){let{type:r,id:n}=t.data,a=l1.mirror.getNode(n);a instanceof HTMLElement&&r===ly.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!cN(e,r,a))return!0;if(!a)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;cN(e,(t=e.getOptions(),{type:lg.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,a),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(cf&&cy.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&cT(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(c4?.userAgent??"")||/Macintosh/i.test(c4?.userAgent??"")&&c4?.maxTouchPoints&&c4?.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";sZ()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{cf&&cy.log(`Stopping Replay triggered by ${r}`),cU(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(cx())try{so.sessionStorage.removeItem(om)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),cf&&cy.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),cf&&cy.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();cf&&cy.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(),cB(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}
55checkAndHandleExpiredSession(){return this._lastActivity&&cI(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${so.location.pathname}${so.location.hash}${so.location.search}`,t=`${so.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===un){let e=cr({category:"replay.throttled"});this.addUpdate(()=>!cN(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||or(),t=e&&ot(e),r=(t&&s9(t).data||{})[s0];if(t&&r&&["route","custom"].includes(r))return s9(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 55
55var 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});
55']),URL.createObjectURL(e)}return""}();if(!t)return;cf&&cy.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new cw(r)}catch(e){cf&&cy.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return cf&&cy.log("Using simple buffer"),new cb}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&sZ()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&cB(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=ck({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!cC(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{so.document.addEventListener("visibilitychange",this._handleVisibilityChange),so.addEventListener("blur",this._handleWindowBlur),so.addEventListener("focus",this._handleWindowFocus),so.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t;let r,n=sZ();rr(t=>{var r,n;if(!e.isEnabled())return;let a=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?l4(e.event):l6(e.event),t=rg(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return cr({category:`ui.${e.name}`,...ci(t,r)})}(t);if(!a)return;let i="click"===t.name,s=i?t.event:void 0;i&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&(r=e.clickDetector,n=l4(t.event),r.handleClick(a,n)),l3(e,a)}),rp(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(()=>(cF(e,[r]),!1)))}),(r=sZ())&&r.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!c$(t))return;let n=(r=t,!c$(r)||["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 cr(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)}\u2026`):e;if("object"==typeof e)try{let t=sI(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return cr({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):cr(r));n&&l3(e,n)})(e,t));let a=sZ();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:n,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:n,networkRequestHeaders:i,networkResponseHeaders:s};a&&a.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,a,i,s;n=t,"xhr"===n.category&&(a=r,a?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let a=cH(n),i=r.getResponseHeader("content-length")?cq(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return cH(r)}catch{return}}(r.response,r.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),c3(t,r,e)),i=t,"fetch"===i.category&&(s=r,s?.input!==void 0)&&(!function(e,t){let{input:r,response:n}=t,a=cH(r?ik(r):void 0),i=n?cq(n.headers.get("content-length")):void 0;
55void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),cK(t,r,e))}catch(e){cf&&cy.exception(e,"Error when enriching network breadcrumb")}})(o,e,t))}catch{}t=Object.assign((t,r)=>{if(e.session&&cC(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&cU(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!cL(t)&&!cj(t))return t;if(!e.checkAndHandleExpiredSession())return cU(),t;if(cj(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:lg.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 cf&&cy.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==og&&!!t.exception&&!t.type&&cR(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&&cT(t)}return t},{id:"Replay"}),sQ().addEventProcessor(t),n&&(n.on("beforeSendEvent",t=>{var r,n;let a;e.isEnabled()&&!t.type&&(r=e,n=t,a=n.exception?.values?.[0]?.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&l3(r,cr({category:"replay.hydrate-error",data:{url:function(){try{return so.document.location.href}catch{return""}}()}})))}),n.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!cL(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(cL(t)){var a,i;let r;return void(a=e,i=t,(r=i.contexts?.trace?.trace_id)&&cD(a,r))}!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))&&r0(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),n.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),n.on("afterSegmentSpanEnd",t=>{if(!e.isEnabled()||!oe(t))return;let r=t.spanContext().traceId;r&&cD(e,r)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.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)}),n.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(aA(e,r))}),n.push(ak(co(cu,e)),aC(co(cd,e)),aN(co(cp,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{so.document.removeEventListener("visibilitychange",this._handleVisibilityChange),so.removeEventListener("blur",this._handleWindowBlur),so.removeEventListener("focus",this._handleWindowFocus),so.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(cC(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?cU():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){cf&&cy.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:lg.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(cl).filter(
55Boolean).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(cF(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){cf&&cy.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await c8(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new ut;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await ur({replayId:e,recordingData:a,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=sZ();e&&e.recordDroppedEvent(t instanceof ue?"ratelimit_backoff":t instanceof ut?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){cf&&cy.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,a=r>this._options.maxReplayDuration+5e3;if(n||a){cf&&cy.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&cf&&cy.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&&cT(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,a=this._options.mutationBreadcrumbLimit,i=n&&r>n;if(r>a||i){let e=cr({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function ui(e,t){return[...e,...t].join(",")}let us='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',uo=["content-length","content-type","accept"],ul=Symbol.for("sentry__originalRequestBody"),uc=!1,uu=!1;function ud(e){return[...uo,...e.map(e=>e.toLowerCase())]}globalThis._sentryRouteManifest='{"dynamicRoutes":[{"path":"/accounting/nexus/:state","regex":"^/accounting/nexus/([^/]+)$","paramNames":["state"],"hasOptionalPrefix":false},{"path":"/accounting/reports/:state","regex":"^/accounting/reports/([^/]+)$","paramNames":["state"],"hasOptionalPrefix":false},{"path":"/admin/accounts/:accountId","regex":"^/admin/accounts/([^/]+)$","paramNames":["accountId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/:accountId/tax-documents/:documentId","regex":"^/admin/accounts/([^/]+)/tax-documents/([^/]+)$","paramNames":["accountId","documentId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/checkout-attempts/:reference","regex":"^/admin/accounts/checkout-attempts/([^/]+)$","paramNames":["reference"],"hasOptionalPrefix":false},{"path":"/admin/accounts/credit/applications/:id","regex":"^/admin/accounts/credit/applications/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/accounts/people/:personId","regex":"^/admin/accounts/people/([^/]+)$","paramNames":["personId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/people/:personId/favorites","regex":"^/admin/accounts/people/([^/]+)/favorites$","paramNames":["personId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/people/:personId/merge","regex":"^/admin/accounts/people/([^/]+)/merge$","paramNames":["personId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/people/:personId/projects/:projectId","regex":"^/admin/accounts/people/([^/]+)/projects/([^/]+)$","paramNames":["personId","projectId"],"hasOptionalPrefix":false},{"path":"/admin/accounts/tax-documents/odoo/:id","regex":"^/admin/accounts/tax-documents/odoo/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/announcements/:announcementId","regex":"^/admin/announcements/([^/]+)$","paramNames":["announcementId"],"hasOptionalPrefix":false},{"path":"/admin/announcements/:announcementId/preview","regex":"^/admin/announcements/([^/]+)/preview$","paramNames":["announcementId"],"hasOptionalPrefix":false},{"path":"/admin/artwork/:submissionId","regex":"^/admin/artwork/([^/]+)$","paramNames":["submissionId"],"hasOptionalPrefix":false},{"path":"/admin/artwork/panel-designs/:id","regex":"^/admin/artwork/panel-designs/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/artwork/production/:orderId/:lineId","regex":"^/admin/artwork/production/([^/]+)/([^/]+)$","paramNames":["orderId","lineId"],"hasOptionalPrefix":false},{"path":"/admin/dealer-program/applications/:id","regex":"^/admin/dealer-program/applications/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/dealer-program/legacy/:id","regex":"^/admin/dealer-program/legacy/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/dealer-program/locations/:id","regex":"^/admin/dealer-program/locations/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/guide/:slug","regex":"^/admin/guide/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/admin/guide/onboarding/:role","regex":"^/admin/guide/onboarding/([^/]+)$","paramNames":["role"],"hasOptionalPrefix":false},{"path":"/admin/label-maker/preview/:handle/:variant","regex":"^/admin/label-maker/preview/([^/]+)/([^/]+)$","paramNames":["handle","variant"],"hasOptionalPrefix":false},{"path":"/admin/project-registration/:id","regex":"^/admin/project-registration/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/projects/:id","regex":"^/admin/projects/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/quotes/:id","regex":"^/admin/quotes/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/admin/returns/:key","regex":"^/admin/returns/([^/]+)$","paramNames":["key"],"hasOptionalPrefix":false},{"path":"/admin/systems/email/:deliveryId","regex":"^/admin/systems/email/([^/]+)$","paramNames":["deliveryId"],"hasOptionalPrefix":false},{"path":"/admin/systems/sync/partner-domains/groups/:groupId","regex":"^/admin/systems/sync/partner-domains/groups/([^/]+)$","paramNames":["groupId"],"hasOptionalPrefix":false},{"path":"/sign-in/:sign-in*?","regex":"^/sign-in(?:/(.*))?$","paramNames":["sign-in"],"hasOptionalPrefix":false},{"path":"/sign-up/:sign-up*?","regex":"^/sign-up(?:/(.*))?$","paramNames":["sign-up"],"hasOptionalPrefix":false},{"path":"/internal/label-render/:handle/:variant","regex":"^/internal/label-render/([^/]+)/([^/]+)$","paramNames":["handle","variant"],"hasOptionalPrefix":false},{"path":"/operations/guide/:slug","regex":"^/operations/guide/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/:slug","regex":"^/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/collections/:collection/products/:handle","regex":"^/collections/([^/]+)/products/([^/]+)$","paramNames":["collection","handle"],"hasOptionalPrefix":false},{"path":"/component-lab/:path*","regex":"^/component-lab/(.+)$","paramNames":["path"],"hasOptionalPrefix":false},{"path":"/dealers/:slug","regex":"^/dealers/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/dealers/country/:country","regex":"^/dealers/country/([^/]+)$","paramNames":["country"],"hasOptionalPrefix":false},{"path":"/devtools/dealer-company-cleanup/:docId","regex":"^/devtools/dealer-company-cleanup/([^/]+)$","paramNames":["docId"],"hasOptionalPrefix":false},{"path":"/devtools/labels/products/:handle/variants/:variant","regex":"^/devtools/labels/products/([^/]+)/variants/([^/]+)$","paramNames":["handle","variant"],"hasOptionalPrefix":false},{"path":"/journal/:slug","regex":"^/journal/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/labels/:path*","regex":"^/labels/(.+)$","paramNames":["path"],"hasOptionalPrefix":false},{"path":"/library/:slug","regex":"^/library/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/products/:handle","regex":"^/products/([^/]+)$","paramNames":["handle"],"hasOptionalPrefix":false},{"path":"/products/:handle/review","regex":"^/products/([^/]+)/review$","paramNames":["handle"],"hasOptionalPrefix":false},{"path":"/r/:shortSlug","regex":"^/r/([^/]+)$","paramNames":["shortSlug"],"hasOptionalPrefix":false},{"path":"/s/:token","regex":"^/s/([^/]+)$","paramNames":["token"],"hasOptionalPrefix":false},{"path":"/solutions/:slug","regex":"^/solutions/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/spaces/:slug","regex":"^/spaces/([^/]+)$","paramNames":["slug"],"hasOptionalPrefix":false},{"path":"/studio/:index*?","regex":"^/studio(?:/(.*))?$","paramNames":["index"],"hasOptionalPrefix":false},{"path":"/account/ai-actions/:id","regex":"^/account/ai-actions/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/artwork/:submissionId","regex":"^/account/artwork/([^/]+)$","paramNames":["submissionId"],"hasOptionalPrefix":false},{"path":"/account/invoices/:id","regex":"^/account/invoices/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/invoices/:id/pay","regex":"^/account/invoices/([^/]+)/pay$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/orders/:id","regex":"^/account/orders/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/orders/:id/return","regex":"^/account/orders/([^/]+)/return$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/project-registration/:id","regex":"^/account/project-registration/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/projects/:id","regex":"^/account/projects/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/projects/:id/sites","regex":"^/account/projects/([^/]+)/sites$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/projects/:id/sites/:siteId","regex":"^/account/projects/([^/]+)/sites/([^/]+)$","paramNames":["id","siteId"],"hasOptionalPrefix":false},{"path":"/account/quotes/:id","regex":"^/account/quotes/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/quotes/:id/accept","regex":"^/account/quotes/([^/]+)/accept$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/quotes/drafts/:id","regex":"^/account/quotes/drafts/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/return-reviews/:id","regex":"^/account/return-reviews/([^/]+)$","paramNames":["id"],"hasOptionalPrefix":false},{"path":"/account/returns/:key","regex":"^/account/returns/([^/]+)$","paramNames":["key"],"hasOptionalPrefix":false}],"staticRoutes":[{"path":"/accounting"},{"path":"/accounting/checks"},{"path":"/accounting/filings"},{"path":"/accounting/nexus"},{"path":"/accounting/reports"},{"path":"/admin"},{"path":"/admin/accounts"},{"path":"/admin/accounts/attention"},{"path":"/admin/accounts/audit"},{"path":"/admin/accounts/checkout-attempts"},{"path":"/admin/accounts/company-requests"},{"path":"/admin/accounts/credit"},{"path":"/admin/accounts/groups"},{"path":"/admin/accounts/new"},{"path":"/admin/accounts/people"},{"path":"/admin/accounts/representatives"},{"path":"/admin/accounts/tax-documents"},{"path":"/admin/accounts/tax-documents/ai-review"},{"path":"/admin/accounts/tax-documents/health"},{"path":"/admin/accounts/tax-documents/shadow"},{"path":"/admin/accounts/tax-documents/shadow/observations"},{"path":"/admin/announcements"},{"path":"/admin/announcements/new"},{"path":"/admin/artwork"},{"path":"/admin/brands"},{"path":"/admin/cache"}
55,{"path":"/admin/cad-thumbnails"},{"path":"/admin/commercial-invoices"},{"path":"/admin/dealer-program/applications"},{"path":"/admin/dealer-program/history"},{"path":"/admin/dealer-program/legacy"},{"path":"/admin/dealer-program/locations"},{"path":"/admin/dealer-program/preview"},{"path":"/admin/dealer-program/reconciliation"},{"path":"/admin/dealer-program/settings"},{"path":"/admin/favorites"},{"path":"/admin/front-plugin"},{"path":"/admin/guide"},{"path":"/admin/guide/health"},{"path":"/admin/guide/search"},{"path":"/admin/guide/testing"},{"path":"/admin/label-maker"},{"path":"/admin/lead-time"},{"path":"/admin/pricing"},{"path":"/admin/project-registration"},{"path":"/admin/projects"},{"path":"/admin/quotes"},{"path":"/admin/returns"},{"path":"/admin/shipping-holds"},{"path":"/admin/shipping-messages"},{"path":"/admin/shipping-packages"},{"path":"/admin/shipping-rates"},{"path":"/admin/systems/access"},{"path":"/admin/systems/access/roles"},{"path":"/admin/systems/email"},{"path":"/admin/systems/sync/company-groups"},{"path":"/admin/systems/sync/company-groups/manage"},{"path":"/admin/systems/sync/partner-domains"},{"path":"/admin/systems/sync/price-drift"},{"path":"/admin/systems/sync/product-prices"},{"path":"/admin/systems/work-overview-usage"},{"path":"/admin/website-feedback"},{"path":"/admin/website-feedback/features"},{"path":"/analytics"},{"path":"/analytics/ar"},{"path":"/analytics/gross-profit"},{"path":"/analytics/heckler-display"},{"path":"/analytics/manufacturing"},{"path":"/analytics/sales"},{"path":"/analytics/shipping"},{"path":"/analytics/trends"},{"path":"/sign-in/company"},{"path":"/sign-in/profile"},{"path":"/sign-in/profile/photo"},{"path":"/sign-in/sso-callback"},{"path":"/front-plugin"},{"path":"/front-plugin/connect"},{"path":"/invoice-lab"},{"path":"/lab"},{"path":"/lab/self-quote"},{"path":"/lab/self-quote/webmcp-test"},{"path":"/operations"},{"path":"/operations/backorders"},{"path":"/operations/earned-hours"},{"path":"/operations/guide"},{"path":"/operations/guide/health"},{"path":"/operations/guide/search"},{"path":"/operations/lead-time-issues"},{"path":"/operations/manufacturing-planning"},{"path":"/operations/planning-metrics"},{"path":"/operations/reordering"},{"path":"/configurator/render/framework"},{"path":"/configurator/render/lectern"},{"path":"/"},{"path":"/about"},{"path":"/accessibility-statement"},{"path":"/av-wall"},{"path":"/become-an-authorized-dealer"},{"path":"/brand-guidelines"},{"path":"/cart"},{"path":"/carts"},{"path":"/checkout/location"},{"path":"/checkout/prepare"},{"path":"/company"},{"path":"/component-lab"},{"path":"/configurator/brochure"},{"path":"/configurator/framework"},{"path":"/configurator/lectern"},{"path":"/connect"},{"path":"/contact"},{"path":"/credenzas"},{"path":"/dealer-agreement"},{"path":"/dealers"},{"path":"/devtools"},{"path":"/devtools/brand-logo-wall"},{"path":"/devtools/component-lab"},{"path":"/devtools/component-lab/account-upload"},{"path":"/devtools/component-lab/avatars"},{"path":"/devtools/component-lab/dealer-requirements"},{"path":"/devtools/component-lab/feature-symbols"},{"path":"/devtools/component-lab/marketing-ui"},{"path":"/devtools/component-lab/marketing-ui/actions"},{"path":"/devtools/component-lab/marketing-ui/disclosure"},{"path":"/devtools/component-lab/marketing-ui/feedback"},{"path":"/devtools/component-lab/marketing-ui/forms"},{"path":"/devtools/component-lab/marketing-ui/overlays"},{"path":"/devtools/component-lab/marketing-ui/patterns"},{"path":"/devtools/component-lab/marketing-ui/patterns/advanced"},{"path":"/devtools/component-lab/marketing-ui/popups"},{"path":"/devtools/component-lab/marketing-ui/review"},{"path":"/devtools/component-lab/marketing-ui/selection"},{"path":"/devtools/component-lab/pdp-merchandising"},{"path":"/devtools/component-lab/profile-photo"},{"path":"/devtools/component-lab/quote-artwork"},{"path":"/devtools/component-lab/quote-tax-estimate"},{"path":"/devtools/component-lab/registration-credential"},{"path":"/devtools/component-lab/return-entry"},{"path":"/devtools/component-lab/return-timeline"}
55,{"path":"/devtools/component-lab/symbols"},{"path":"/devtools/component-lab/tax-certificate-check"},{"path":"/devtools/component-lab/testimonials"},{"path":"/devtools/component-lab/workflow-progress"},{"path":"/devtools/custom-label"},{"path":"/devtools/data-table-probe"},{"path":"/devtools/dealer-company-cleanup"},{"path":"/devtools/dealer-company-cleanup/log"},{"path":"/devtools/dealer-company-cleanup/orphans"},{"path":"/devtools/dealer-locator-maintenance"},{"path":"/devtools/labels"},{"path":"/devtools/product-links"},{"path":"/devtools/product-seo"},{"path":"/devtools/rate-quote"},{"path":"/devtools/shipping-data"},{"path":"/devtools/shop-categories"},{"path":"/devtools/shop-products"},{"path":"/devtools/shop-sections"},{"path":"/devtools/tailwind-probe"},{"path":"/devtools/website-feedback"},{"path":"/distributors"},{"path":"/feedback-preferences"},{"path":"/framework"},{"path":"/framework/configurator"},{"path":"/framework/configure"},{"path":"/h910-preview"},{"path":"/h919-preview"},{"path":"/journal"},{"path":"/labels"},{"path":"/labs/av-wall-configurator"},{"path":"/labs/configurator"},{"path":"/labs/insert-placement"},{"path":"/labs/lectern-configurator"},{"path":"/lecterns"},{"path":"/lecterns/configurator"},{"path":"/library"},{"path":"/library/audit"},{"path":"/logitech"},{"path":"/map-policy"},{"path":"/mounts"},{"path":"/neat"},{"path":"/patents"},{"path":"/privacy-policy"},{"path":"/products"},{"path":"/products/links"},{"path":"/quote"},{"path":"/reseller-policy"},{"path":"/return-policy"},{"path":"/search"},{"path":"/shipping-delivery-policy"},{"path":"/shop"},{"path":"/sitemap"},{"path":"/support"},{"path":"/terms-of-service"},{"path":"/walls"},{"path":"/warranty-policy"},{"path":"/account"},{"path":"/account/artwork"},{"path":"/account/company"},{"path":"/account/company/locations"},{"path":"/account/company/members"},{"path":"/account/company/settings"},{"path":"/account/company/start"},{"path":"/account/credit-terms"},{"path":"/account/dealer-program"},{"path":"/account/dealer-program/apply"},{"path":"/account/dealer-program/locations"},{"path":"/account/dealer-program/requirements"},{"path":"/account/favorites"},{"path":"/account/invoices"},{"path":"/account/online"},{"path":"/account/online/locations"},{"path":"/account/online/profile"},{"path":"/account/orders"},{"path":"/account/price-list"},{"path":"/account/project-registration"},{"path":"/account/project-registration/new"},{"path":"/account/projects"},{"path":"/account/quotes"},{"path":"/account/quotes/new"},{"path":"/account/returns"},{"path":"/account/shared-links"},{"path":"/account/shipping-accounts"},{"path":"/account/tax-exemption"},{"path":"/account/tax-exemption/attest"}],"isrRoutes":["/admin/guide/:slug","/admin/guide/onboarding/:role","/operations/guide/:slug","/journal/:slug","/solutions/:slug","/spaces/:slug"]}',globalThis._sentryNextJsVersion="16.3.6",globalThis._sentryRewritesTunnelPath="/monitoring",!function(e){let t,r,n,a,i,s,o,l;si&&(0,z.consoleSandbox)(()=>{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`.")}),si=!0,!r6&&e.debug&&(0,z.consoleSandbox)(()=>{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(){tl.document&&function(e){let t=iZ(e)||e,r=sa.get(t);if(void 0!==r)return r;let n=iQ();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return sa.set(t,!1),!1;let a=n.isrRoutes.includes(t);return sa.set(t,a),a}(tl.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tl.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let c={environment:e.environment||q.default.env.SENTRY_ENVIRONMENT||(t="production",`vercel-${t}`)||"production",defaultIntegrations:(a=r3(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&a.push(function(e={}){let t=((e={})=>{let t,r;"enableElementTiming"in e&&(0,z.consoleSandbox)(()=>{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},a=tl.document,{enableInp:i,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:h,finalTimeout:g,childSpanTimeout:_,markBackgroun
55dSpan:y,traceFetch:v,traceXHR:b,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:E,enableHTTPTimings:w,ignoreResourceSpans:x,ignorePerformanceApiSpans:R,instrumentPageLoad:T,instrumentNavigation:O,detectRedirects:P,linkPreviousTrace:I,consistentTraceSampling:C,enableReportPageLoaded:k,onRequestSpanStart:N,onRequestSpanEnd:A}={...iU,...e},M=i$();function D(e,t,i=!0){let s="pageload"===t.op,o=t.name,l=d?d(t):t,c=l.attributes||{};if(o!==l.name&&(c[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",l.attributes=c),!i){let e=(0,eE.dateTimestampInSeconds)();(0,nr.startInactiveSpan)({...l,startTime:e}).end(e);return}n.name=l.name,n.source=c[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let u=na(l,{idleTimeout:h,finalTimeout:g,childSpanTimeout:_,disableAutoFinish:s,beforeSpanEnd:t=>{!function(e,t){let r=a7(),n=rl();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:a,ignorePerformanceApiSpans:i,ignoreResourceSpans:s}=t,o=a9(n),l=r.getEntries(),{op:c,start_timestamp:u}=nX(e);l.slice(is).forEach(t=>{let r=a9(t.startTime),n=a9(Math.max(0,t.duration));if("navigation"!==c||!u||!(o+r<u))switch(t.entryType){case"navigation":var a,l,d,p,h,f;let m,g,_;a=e,l=t,d=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{ic(a,l,e,d)}),ic(a,l,"secureConnection",d,"TLS/SSL"),ic(a,l,"fetch",d,"cache"),ic(a,l,"domainLookup",d,"DNS"),p=a,h=l,m=(f=d)+a9(h.requestStart),g=f+a9(h.responseEnd),_=f+a9(h.responseStart),h.responseEnd&&(a4(p,m,g,{op:"browser.request",name:h.name,attributes:{[nI]:"auto.ui.browser.metrics"}}),a4(p,_,g,{op:"browser.response",name:h.name,attributes:{[nI]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,r,n,a,i){if(function(e){if(e?.entryType==="measure")try{return"Components â"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&function(e,t=[],r=!1){for(let n of t)if(re(e,n,r))return!0;return!1}(t.name,i))return;let s=ar(!1),o=a+Math.max(r,a9(s?s.requestStart:0)),l=a+r,c=l+n,u={[nI]:"auto.resource.browser.metrics"};o!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=o),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&&t3(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(t3(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(u,t),o<=c&&a4(e,o,c,{name:t.name,op:t.entryType,attributes:u})}(e,t,r,n,o,i);break;case"resource":!function(e,t,r,n,a,i,s){var o,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(c))return;let u={[nI]:"auto.resource.browser.metrics"},d=function(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}}(r);d.protocol&&(u["url.scheme"]=d.protocol.split(":").pop()),d.host&&(u["server.address"]=d.host),u["url.same_origin"]=r.includes(t$.location.origin),u["url.full"]=r,o=t,l=u,[["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"]].forEach(([e,t])=>{let r=o[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...u,...ii(t)},h=i+n;a4(e,h,h+a,{name:r.replace(t$.location.origin,""),op:c,attributes:p})}(e,t,t.name,r,n,o,s)}}),is=Math.max(l.length-1,0),function(e,t){let r=t$.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),a8(n.rtt)&&(t?e.setAttribute("network.connection.rtt",n.rtt):"pageload"===nX(e).op&&n9("connection.rtt",n.rtt,"millisecond"))),a8(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),a8(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,a)}(t,{ignoreResourceSpans:x,ignorePerformanceApiSpans:R,spanStreamingEnabled:(0,eN.hasSpanStreamingEnabled)(e)}),iz(e,void 0);let n=(0,V.getCurrentScope)(),a=n.getPropagationContext();n.setPropagationContext({...a,traceId:u.spanContext().traceId,sampled:(0,eu.spanIsSampled)(u),dsc:(0,ew.getDynamicSamplingContextFromSpan)(t)}),s&&(r=void 0)},trimIdleSpanEndTimestamp:!k});function p(){a&&["interactive","complete"].includes(a.readyState)&&(e.emit("idleSpanEnableAutoFinish",u),a.removeEventListener("readystatechange",p))}s&&k&&(r=u),iz(e,u),s&&!k&&a&&(a.addEventListener("readystatechange",p),p())}return{name:"BrowserTracing",setup(e){if(M){r_&&z.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function n(){let e=(0,eu.getActiveSpan)(),t=e&&(0,eu.getRootSpan)(e);if(t){let e="internal_error";K.DEBUG_BUILD&&z.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:nt.SPAN_STATUS_ERROR,message:e})}}if(ni||(ni=!0,rC(n),rA(n)),o&&G.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=n7();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=a9(rl()+r.startTime),{start_timestamp:n,op:a}=nX(t);if("navigation"===a&&n&&e<n)continue;let i=a9(r.duration),s={[nI]:"auto.ui.browser.metrics"}
55,{invoker:o,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=o,s["browser.script.invoker_type"]=l,c&&(s["code.filepath"]=c),u&&(s["code.function"]=u),-1!==d&&(s["browser.script.source_char_position"]=d),a4(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):s&&aA("longtask",({entries:e})=>{let t=n7();if(!t)return;let{op:r,start_timestamp:n}=nX(t);for(let a of e){let e=a9(rl()+a.startTime),i=a9(a.duration);"navigation"===r&&n&&e<n||a4(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[nI]:"auto.ui.browser.metrics"}})}}),l&&aA("event",({entries:e})=>{let t=n7();if(t){for(let r of e)if("click"===r.name){let e=a9(rl()+r.startTime),n=a9(r.duration),a={name:rg(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[nI]:"auto.ui.browser.metrics"}},i=function(e,t=5){if(!t$.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}(r.target);i&&(a.attributes["ui.component_name"]=i),a4(t,e,e+n,a)}}}),P&&a){let e=()=>{t=(0,eE.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function i(){let t=e[iq];t&&!(0,eu.spanToJSON)(t).timestamp&&(r_&&z.debug.log(`[Tracing] Finishing current active span with op: ${(0,eu.spanToJSON)(t).op}`),t.setAttribute(ec.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(r,n)=>{if((0,V.getClient)()!==e)return;if(n?.isRedirect){r_&&z.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),D(e,{op:"navigation.redirect",...r},!1);return}t=void 0,i(),(0,V.getIsolationScope)().setPropagationContext({traceId:(0,ns.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,r7.hasSpansEnabled)()?void 0:(0,ns.generateSpanId)()});let a=(0,V.getCurrentScope)();a.setPropagationContext({traceId:(0,ns.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,r7.hasSpansEnabled)()?void 0:(0,ns.generateSpanId)()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),D(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,V.getClient)()!==e)return;i();let n=r.sentryTrace||iW("sentry-trace")||iH("sentry-trace"),a=r.baggage||iW("baggage")||iH("baggage"),s=(0,no.propagationContextFromHeaders)(n,a),o=(0,V.getCurrentScope)();o.setPropagationContext(s),(0,r7.hasSpansEnabled)()||(o.getPropagationContext().propagationSpanId=(0,ns.generateSpanId)()),o.setSDKProcessingMetadata({normalizedRequest:td()}),D(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{k&&r&&(r.setAttribute(ec.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),r.end())})},afterAllSetup(e){var r,a,s,o,d;let x;
55if(M)return;e.addIntegration&&!e.getIntegrationByName?.(ib)&&e.addIntegration(((e={})=>{let t=new Set(e.ignore??[]);return{name:ib,setup(r){let n=(0,eN.hasSpanStreamingEnabled)(r),{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:i}=e._experiments??{},s=n||t.has("cls")?void 0:a||!1,o=n||t.has("lcp")?void 0:i||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=a7();if(n&&rl()){n.mark&&t$.performance.mark("sentry-tracing-init");let a=t?function(e){let t,r=0;if(!ie("largest-contentful-paint"))return;let n=ak(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&ir(e.value)&&(r=e.value,t=n)},!0);it(e,(e,a)=>{(function(e,t,r,n){if(!ir(e))return;rK&&tY.log(`Sending LCP span (${e})`);let a=a9((rl()||0)+(t?.startTime||0)),i=nE().getScopeData().transactionName,s=t?rg(t.element):"Largest contentful paint",o={[nI]:"auto.http.browser.lcp",[nP]:"ui.webvital.lcp",[nA]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(o["lcp.element"]=rg(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),null!=t.loadTime&&(o["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(o["lcp.renderTime"]=t.renderTime),null!=t.size&&(o["lcp.size"]=t.size));let l=a6({name:s,transaction:i,attributes:o,startTime:a});l&&(l.addEvent("lcp",{[nC]:"millisecond",[nk]:e}),l.end(a))})(r,t,a,e),n()})}(r):!1===t?ak(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&ir(e.value)&&(io.lcp={value:e.value,unit:"millisecond"},f=t)},!0):void 0,i=e?function(e){let t,r=0;if(!ie("layout-shift"))return;let n=aC(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);it(e,(e,a)=>{var i,s,o,l;let c,u,d,p,h;i=r,s=t,o=a,l=e,rK&&tY.log(`Sending CLS span (${i})`),c=s?a9((rl()||0)+s.startTime):rs(),u=nE().getScopeData().transactionName,d=s?rg(s.sources[0]?.node):"Layout shift",p={[nI]:"auto.http.browser.cls",[nP]:"ui.webvital.cls",[nA]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},s?.sources&&s.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=rg(e.node)}),(h=a6({name:d,transaction:u,attributes:p,startTime:c}))&&(h.addEvent("cls",{[nC]:"",[nk]:i}),h.end(c)),n()})}(r):!1===e?aC(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(io.cls={value:e.value,unit:""},m=t)},!0):void 0,s=aU("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(io.ttfb={value:e.value,unit:"millisecond"})},aj,p),o=aA("paint",({entries:e})=>{let t=ao();for(let r of e){let e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(io.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(io.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{s(),o(),a?.(),i?.()}}return()=>void 0}({recordClsStandaloneSpans:s,recordLcpStandaloneSpans:o,client:r}),c=new WeakSet;r.on("afterStartPageLoadSpan",e=>{c.add(e)}),r.on("spanEnd",e=>{c.delete(e)&&(l(),function(e,t){let r=rl();if(!a7()?.getEntries||!r)return il();let{spanStreamingEnabled:n,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:i}=t,s=a9(r);if("pageload"===nX(e).op){if(function(e){let t=ar(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(io),n){let t=(t,r,n)=>{let a=n??`browser.web_vital.${t}.value`;e.setAttribute(a,r),rK&&tY.log("Setting web vital attribute",{[a]:r},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{io[e]&&t(e,io[e].value)}),io["ttfb.requestTime"]&&t("ttfb.requestTime",io["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var o,l;a||delete io.cls,i||delete io.lcp,Object.entries(io).forEach(([t,r])=>{n9(t,r.value,r.unit,e)}),o=e,l=t,f&&l.recordLcpOnPageloadSpan&&(f.element&&o.setAttribute("lcp.element",rg(f.element)),f.id&&o.setAttribute("lcp.id",f.id),f.url&&o.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&o.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&o.setAttribute("lcp.renderTime",f.renderTime),o.setAttribute("lcp.size",f.size)),m?.sources&&l.recordClsOnPageloadSpan&&m.sources.forEach((e,t)=>o.setAttribute(`cls.source.${t+1}`,rg(e.node)))}e.setAttribute(n?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(n?"browser.performance.navigation.activation_start":"performance.activationStart",an())}il()}(e,{recordClsOnPageloadSpan:!1===s,recordLcpOnPageloadSpan:!1===o,spanStreamingEnabled:n}))}),n?(t.has("lcp")||function(e){let t,r=0;if(!ie("largest-contentful-paint"))return;let n=ak(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&ir(e.value)&&(r=e.value,t=n)},!0);it(e,(e,a,i)=>{(function(e,t,r,n){if(!ir(e))return;rK&&tY.log(`Sending LCP span (${e})`);let a=rl()||0,i=a9(a),s=a9(a+(t?.startTime||0)),o=t?rg(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=rg(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),iv({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:i,endTime:s})})(r,t,i,e),n()})}(r),t.has("cls")||function(e){let t,r=0;if(!ie("layout-shift"))return;let n=aC(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);it(e,(e,a,i)=>{var s,o,l,c;let u,d,p;s=r,o=t,l=i,c=e,rK&&tY.log(`Sending CLS span (${s})`),u=o?a9((rl()||0)+o.startTime):rs(),d=o?rg(o.sources[0]?.node):"Layout shift",p={}
55,o?.sources&&o.sources.forEach((e,t)=>{p[`browser.web_vital.cls.source.${t+1}`]=rg(e.node)}),iv({name:d,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:s,attributes:p,parentSpan:l,reportEvent:c,startTime:u}),n()})}(r),!t.has("inp")&&a7()&&rl()&&aN(({metric:e})=>{var t,r,n;let a,i,s,o,l,c,u,d;if(null==e.value||a9(e.value)>60)return;let p=e.entries.find(t=>t.duration===e.value&&i_[t.name]);p&&(t=e.value,r=p,rK&&tY.log(`Sending INP span (${t})`),a=a9(rl()+r.startTime),i=a9(t),s=i_[r.name],o=null!=(n=r.interactionId)?im.get(n):void 0,c=(l=n7())?n4(l):void 0,d=(u=o?.span||c)?nJ(u).name:nE().getScopeData().transactionName,iv({name:o?.elementName||rg(r.target),op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[nA]:r.duration,"sentry.transaction":d},startTime:a,endTime:a+i,parentSpan:u}))})):t.has("inp")||function(){if(a7()&&rl()){let e=aN(iy);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e,t=Object.keys(i_);function r(e){let t=e.target;if(!t)return;let r=rg(t),n=Math.round(e.timeStamp);if(ig.set(n,r),ig.size>50){let e=ig.keys().next().value;void 0!==e&&ig.delete(e)}}"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==q.default?q.default:0))||(e=t$.process,e?.type==="renderer"))&&t.forEach(e=>{t$.addEventListener(e,r,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=n7(),r=t&&n4(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||im.has(t))return;let n=e.target?rg(e.target):function(e){let t=Math.round(e.startTime),r=ig.get(t);if(!r)for(let e=-5;e<=5;e++){let n=ig.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(ih.length>10){let e=ih.shift();im.delete(e)}ih.push(t),im.set(t,{span:r,elementName:n})})};aA("event",n),aA("first-input",n)}()}}})({ignore:i?[]:["inp"],_experiments:{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u}}));let R=to();if("off"!==I&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,a=n?function(){try{let e=tl.sessionStorage?.getItem(iS);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,eu.getRootSpan)(e)!==e)return;let t=(0,V.getCurrentScope)().getPropagationContext();a=function(e,t,r){let n=(0,eu.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{let e=Number(n.data?.[ec.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(r_&&z.debug.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:n.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[ec.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!iE(i)}`)),a)}(a,e,t),n&&function(e){try{tl.sessionStorage.setItem(iS,JSON.stringify(e))}catch(e){r_&&z.debug.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;r&&e.on("beforeSampling",e=>{if(!a)return;let t=(0,V.getCurrentScope)(),r=t.getPropagationContext();if(i&&r.parentSpanId){i=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(a.sampleRate),sampled:String(iE(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=iE(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[ec.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})}(e,{linkPreviousTrace:I,consistentTraceSampling:C}),tl.location){if(T){let t=(0,eE.browserPerformanceTimeOrigin)();iB(e,{name:tl.location.pathname,startTime:t?t/1e3:void 0,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}O&&rp(({to:r,from:n})=>{var a,i;let s,o;if(void 0===n&&R?.indexOf(r)!==-1){R=void 0;return}R=void 0;let l=tk(r),c=e[iq],u=c&&P&&(a=c,i=t,s=(0,eu.spanToJSON)(a),!((o=(0,eE.dateTimestampInSeconds)())-s.start_timestamp>1.5)&&(!i||!(o-i<=1.5)));iF(e,{name:l?.pathname||tl.location.pathname,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:r,isRedirect:u})})}y&&(tl.document?tl.document.addEventListener("visibilitychange",()=>{let e=(0,eu.getActiveSpan)();if(!e)return;let t=(0,eu.getRootSpan)(e);if(tl.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,eu.spanToJSON)(t);r_&&z.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:nt.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):r_&&z.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(r=e,a=h,s=g,o=_,d=n,tl.document&&addEventListener("click",()=>{let e="ui.action.click",t=r[iq];if(t&&["navigation","pageload"].includes((0,eu.spanToJSON)(t).op
55)){r_&&z.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(x&&(x.setAttribute(ec.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),x.end(),x=void 0),!d.name){r_&&z.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}x=na({name:d.name,op:e,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d.source||"url"}},{idleTimeout:a,finalTimeout:s,childSpanTimeout:o})},{capture:!0})),function(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:s,onRequestSpanStart:o,onRequestSpanEnd:l}={...iD,...t},c="function"==typeof a?a:e=>!0,u=e=>(function(e,t){let r=to();if(r){let n,a;try{n=new URL(e,r),a=new URL(r).origin}catch{return!1}let i=n.origin===a;return t?(0,en.stringMatchesSomePattern)(n.toString(),t)||i&&(0,en.stringMatchesSomePattern)(n.pathname,t):i}{let r=!!e.match(/^\/(?!\/)/);return t?(0,en.stringMatchesSomePattern)(e,t):r}})(e,s),d={},p=e.getOptions().propagateTraceparent;r&&tE(t=>{let r=function(e,t,r,n,a){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,o=(0,r7.hasSpansEnabled)()&&t(s);if(e.endTimestamp){var l,c,u;let t,r=e.fetchData.__span;if(!r)return;let i=n[r];i&&(o&&(function(e,t){if(t.response){(0,nt.setHttpStatus)(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:nt.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(i,e),l=i,c=e,t="object"==typeof(u=a)&&null!==u?u.onRequestSpanEnd:void 0,t?.(l,{headers:c.response?.headers,error:c.error})),delete n[r]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof a?a:{spanOrigin:a},h=(0,V.getClient)(),f=!!(0,eu.getActiveSpan)()||!!h&&(0,eN.hasSpanStreamingEnabled)(h),m=o&&f?(0,nr.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){let n=tD(e);return{name:`${t} ${n}`,attributes:iO(e,void 0,t,r)}}let n=tk(e),a=n?tN(n):e;return{name:`${t} ${a}`,attributes:iO(e,n,t,r)}}(s,i,d)):new r9.SentryNonRecordingSpan;if(o&&!f&&h?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=m.spanContext().spanId,n[m.spanContext().spanId]=m,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var a,i;let s=iR({span:r,propagateTraceparent:n}),o=s["sentry-trace"],l=s.baggage,c=s.traceparent;if(!o)return;let u=t.headers||((0,eb.isRequest)(e)?e.headers:void 0);if(!u)return{...s};if(a=u,"u">typeof Headers&&(0,eb.isInstanceOf)(a,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&c&&!e.get("traceparent")&&e.set("traceparent",c),l){let t=e.get("baggage");t?iT(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(i=u)&&i.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...u];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&c&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);let t=u.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&iT(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,r="baggage"in u?u.baggage:void 0,a=r?Array.isArray(r)?[...r]:[r]:[],i=r&&(Array.isArray(r)?r.find(e=>iT(e)):iT(r));l&&!i&&a.push(l);let s=Object.assign({},u,{"sentry-trace":e??o,baggage:a.length>0?a.join(","):void 0});return n&&c&&!t&&(s.traceparent=c),s}}(t,r,(0,r7.hasSpansEnabled)()&&f?m: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",m,t)}return m}(t,c,u,d,{propagateTraceparent:p,onRequestSpanEnd:l});if(r){let n=iA(t.fetchData.url),a=n?tA(n).host:void 0,s=n?tD(n):void 0;r.setAttributes({"http.url":s,"url.full":s,"server.address":a}),i&&iL(r,e),o?.(r,{headers:t.headers})}}),n&&ru(t=>{let r=function(e,t,r,n,a,i){let s=e.xhr,o=s?.[rc];if(!s||s.__sentry_own_request__||!o)return;let{url:l,method:c}=o,u=(0,r7.hasSpansEnabled)()&&t(l);if(e.endTimestamp){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];
55r&&(u&&void 0!==o.status_code&&((0,nt.setHttpStatus)(r,o.status_code),r.end(),i?.(r,{headers:iM(iN(s)),error:e.error})),delete n[t]);return}let d=iA(l),p=d?tA(d):tA(l),h=d?tD(d):void 0,f=tD(tM(l)),m=(0,V.getClient)(),g=!!(0,eu.getActiveSpan)()||!!m&&(0,eN.hasSpanStreamingEnabled)(m),_=u&&g?(0,nr.startInactiveSpan)({name:`${c} ${f}`,attributes:{url:tD(l),type:"xhr","http.method":c,"http.url":h,"url.full":h,"server.address":p?.host,[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new r9.SentryNonRecordingSpan;return u&&!g&&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:a,traceparent:i}=iR({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!a?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=a?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,a,i)}(s,(0,r7.hasSpansEnabled)()&&g?_:void 0,a),m&&m.emit("beforeOutgoingRequestSpan",_,e),_}(t,c,u,d,p,l);r&&(i&&iL(r,e),o?.(r,{headers:iM(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:v,traceXHR:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:w,onRequestSpanStart:N,onRequestSpanEnd:A}),S&&e.addIntegration({name:"FetchStreamPerformance",setup(){let e;tm(e="fetch-body-resolved",e=>{if(e.response){let t=iu.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let r=id.get(e.response);r&&clearTimeout(r)}}}),tg(e,()=>tw(tR)),tE(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!ip.some(e=>t.startsWith(e)))return;let r=e.fetchData?.url||"",n=e.fetchData?.method||"GET",a=tk(r),i=r.startsWith("data:")?tD(r):a?tN(a):r,s=(0,nr.startInactiveSpan)({name:`${n} ${i}`,startTime:e.endTimestamp,attributes:{url:tD(r),"http.method":n,type:"fetch",[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});iu.set(e.response,s);let o=setTimeout(()=>{s.isRecording()&&s.end()},9e4);id.set(e.response,o)}})}})}}})({...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){!i$()&&(n&&function(e){if(tl.document.getElementById("__NEXT_DATA__"))se.events.on("routeChangeStart",t=>{let r,n,a=tM(t),i=function(e){let t=tl.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,a,i=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${n}(?:/)?$`));return e.match(i)})}(a);i?(r=i,n="route"):(r=a,n="url"),iF(e,{name:r,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})});else{let t,r,n;k=(t,r)=>{let n=q.default.env._sentryBasePath??i8._sentryBasePath,a=i0(new URL(n&&!t.startsWith(n)?`${n}${t}`:t,tl.location.href).pathname),i=iZ(a),s=i??a;"router-patch"===i2&&(i2="transition-start-hook");let o=i5.current;o?(o.updateName(s),o.setAttributes({"navigation.type":`router.${r}`,[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i?"route":"url"}),i5.current=void 0):iF(e,{name:s,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i?"route":"url","navigation.type":`router.${r}`}})},tl.addEventListener("popstate",()=>{let t=i0(tl.location.pathname),r=iZ(t);i5.current?.isRecording()?(i5.current.updateName(r??t),i5.current.setAttribute(ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,r?"route":"url")):i5.current=iF(e,{name:r??t,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let a=i3?.next?.router??i3?.nd?.router;t||r>500?clearInterval(n):a&&(clearInterval(n),t=!0,i7(e,a,i5),["nd","next"].forEach(t=>{let r=i3[t];r&&(i3[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&i7(e,n,i5),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(tl.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:a}=function(){let e,t=tl.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{r6&&z.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:a,props:i}=e;return r.route=n,r.params=a,i?.pageProps&&(r.sentryTrace=i.pageProps._sentryTraceData,r.baggage=i.pageProps._sentryBaggage),r}(),i=(0,iw.parseBaggageHeader)(a),s=t||tl.location.pathname;i?.["sentry-transaction"]&&"/_error"===s&&(s=(s=i["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=(0,eE.browserPerformanceTimeOrigin)();iB(e,{name:s,startTime:o?o/1e3:void 0,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...r&&{...r}}},{sentryTrace:n,baggage:a})}(e);else{let t,r,n;r=iZ(t=i0(tl.location.pathname)),iB(e,{name:r??t,startTime:(n=(0,eE.browserPerformanceTimeOrigin)())?n/1e3:void 0,attributes:{[ec.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[ec.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[ec.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url"}})}}(e))}}}()),i=ss._sentryRewriteFramesAssetPrefixPath||"",s=q.default.env._sentryAssetPrefix||ss._sentryAssetPrefix,o=q.default.env._sentryBasePath||ss._sentryBasePath,l="true"===q.default.env._experimentalThirdPartyOriginStackFrames||"true"===ss._experimentalThirdPartyOriginStackFrames,a.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in G.GLOBAL_OBJ&&!!G.GLOBAL_OBJ.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let a=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(a||i){let e,i,s=a?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?function(e,t){e=sr(e).slice(1),t=sr(t).slice(1);let r=sn(e.split("/")),n=sn(t.split("/")),a=Math.min(r.length,n.length),i=a;for(let e=0;e<a;e++)if(r[e]!==n[e]){i=e;break}let s=[];for(let e=i;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(i))).join("/")}(t,s):(e=s.length>1024?`<truncated>${s.slice(-1024)}`:s,(i=st.exec(e))?i.slice(1):[])[2]||"";n.filename=`${r}${o}`}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=>a(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:a=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(r)&&!a.filename.endsWith(".js"))return a;
55if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===r&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)):(a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)),a}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:s,basePath:o,rewriteFramesAssetPrefixPath:i,experimentalThirdPartyOriginStackFrames:l})),a),release:"104eea5572ddb84d3fb9a452bb87396ffef6e476",...e};!function(e){let t="/monitoring";if(t&&e.dsn){let r=(0,eg.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let a=n[1],i=n[2],s=`${t}?o=${a}&p=${r.projectId}`;i&&(s+=`&r=${i}`),e.tunnel=s,r6&&z.debug.log(`Tunneling events to "${s}"`)}else r6&&z.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(c),X(c,"nextjs",["nextjs","react"]),c.ignoreSpans=[...c.ignoreSpans||[],/^\/404$/,RegExp(`^${i1}$`)],X(r={...c},"react"),(0,J.setContext)("react",{version:r8.version}),n=function(e={}){var t;let r,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tl.window||tl.nw)return!1;let e=tl.chrome||tl.browser;if(!e?.runtime?.id)return!1;let t=to();return!(tl===tl.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(r_&&(0,z.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),a=null==e.defaultIntegrations?r3():e.defaultIntegrations,i={...e,enabled:!n&&e.enabled,stackParser:(0,ed.stackParserFromStackParserOptions)(e.stackParser||rJ),integrations:function(e){let t,r,n=e.defaultIntegrations||[],a=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(a))t=[...n,...a];else if("function"==typeof a){let e=a(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:a}),transport:e.transport||r1};return(0,em.setNormalizeStringifier)(r5),!0===i.debug&&(K.DEBUG_BUILD?z.debug.enable():(0,z.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,V.getCurrentScope)().update(i.initialScope),t=r=new tp(i),(0,V.getCurrentScope)().setClient(t),r.init(),r}(r),(0,em.setNormalizeStringifier)(r4);let u=(e,t)=>{var r;return(r=t?.originalException,(0,eb.isError)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};u.id="NextRedirectErrorFilter",(0,J.addEventProcessor)(u);try{(0,V.getGlobalScope)().setTag("turbopack",!0)}catch{}}({dsn:"https://84163d8a1657d9ae87e1d15df9c70b79@o4511689483616256.ingest.us.sentry.io/4511689489580032",sendDefaultPii:!1,tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[new class e{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:o={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:w=[],unblock:x=[],ignore:R=[],maskFn:T,beforeAddRecordingEvent:O,beforeErrorSampling:P,onError:I,attachRawBodyFromRequest:C=!1}
55={}){this.name="Replay";const k=function({mask:e,unmask:t,block:r,unblock:n,ignore:a}){return{maskTextSelector:ui(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ui(t,[]),blockSelector:ui(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:ui(n,[]),ignoreSelector:ui(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:w,unblock:x,ignore:R});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:a,value:i}){if(a.unmaskTextSelector&&e.matches(a.unmaskTextSelector))return i;let s=r.includes(t),o=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return s||o?i.replace(/[\S]/g,"*"):i})({maskAttributes:S,maskAllText:l,privacyOptions:k,key:e,value:t,el:r}),...k,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:ud(y),networkResponseHeaders:ud(v),beforeAddRecordingEvent:O,beforeErrorSampling:P,onError:I,attachRawBodyFromRequest:C,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${us}`:us,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&oh())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return uc}set _isInitialized(e){uc=e}afterAllSetup(e){oh()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||uu)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[ul]=r.body),n};t.prototype=e.prototype,so.Request=t,uu=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,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&&(of(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&of(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,a,i,s=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},a=s3(r.replaysSessionSampleRate),i=s3(r.replaysOnErrorSampleRate),null==a&&null==i&&sf(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=i&&(n.errorSampleRate=i),n);this._replay=new ua({options:s,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0})]}),e.s(["onRouterTransitionStart",0,function(e,t){k&&k(e,t)}],471217)},83793,(e,t,r)=>{t.exports=[e.r(462826),e.f({"private-next-instrumentation-client-user":{id:()=>471217,module:()=>e.r(471217)}})("private-next-instrumentation-client-user")]},5526,(e,t,r)=>{"use strict";{let r=e.r(83793);t.exports=Array.isArray(r)?r:[r]}},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
55ject.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}})},523911,(e,t,r)=>{"use strict";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)},849575,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new n(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},2160,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,a=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(a,"\\$&"):e}},816565,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getObjectClassLabel:function(){return i},isPlainObject:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function i(e){return Object.prototype.toString.call(e)}function s(e){if("[object Object]"!==i(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},302023,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return s},getProperError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(816565);function s(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){let t;return s(e)?e:Object.defineProperty(Error((0,i.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+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},528279,(e,t,r)=>{"use strict";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,"__esMo
55dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},597238,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRecoverableError:function(){return u},onRecoverableError:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(555682),s=e.r(132061),o=i._(e.r(302023)),l=e.r(528279),c=new WeakSet;function u(e){return c.has(e)}let d=e=>{let t=(0,o.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)},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)}},152539,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return a}});let n=e.r(572463);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:i}=(0,n.parsePath)(e);return`${r}${t}${a}${i}`}},95524,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}});let n=e.r(541858),a=e.r(59084);function i(e,t,r,i){if(!t||t===r)return e;let s=e.toLowerCase();return!i&&((0,a.pathHasPrefix)(s,"/api")||(0,a.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},230283,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(938281),a=e.r(541858),i=e.r(152539),s=e.r(95524);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,a.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},865941,(e,t,r)=>{"use strict";function n(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let a=r[n];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},957473,(e,t,r)=>{"use strict";function n(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},87831,(e,t,r)=>{"use strict";let n;function a(e){return(void 0===n&&"u">typeof window&&(n=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),n)?.createScriptURL(e)||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return 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)},51506,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});let n=e.r(841820),a=e.r(239254);function i(e,t,r){let i="",s=(0,a.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,n.getRouteMatcher)(s)(t):"")||r;i=e;let c=Object.keys(o);return c.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=o[e],a=`[${r?"...":""}${e}]`;return n&&(a=`${!t?"/":""}[${a}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(i=i.replace(a,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:c,result:i}}},57192,(e,t,r)=>{"use strict";
55Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return h}});let n=e.r(287248),a=e.r(195057),i=e.r(18556),s=e.r(718967),o=e.r(82823),l=e.r(573668),c=e.r(660180),u=e.r(51506),d=e.r(239254),p=e.r(841820);function h(e,t,r){let h,f="string"==typeof t?t:(0,a.formatWithValidation)(t),m=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?f.slice(m[0].length):f;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${f}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,s.normalizeRepeatedSlashes)(g);f=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{let t=f.startsWith("#")?e.asPath:e.pathname;if(f.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}h=new URL(t,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(f,h);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,u.interpolateAs)(e.pathname,e.pathname,r);s&&(t=(0,a.formatWithValidation)({pathname:s,hash:e.hash,query:(0,i.omit)(r,o)}))}let s=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return r?[s,t||s]:s}catch(e){return r?[f]:f}}("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)},210648,(e,t,r)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return n}})},285777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let n=e.r(591463),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function s(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):a.test(e)}},660180,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(95284),s=e.r(285777)},572263,(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return n}})},881672,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let n=e.r(660180),a=e.r(572263);function i(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},927711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e,t){let r;if(!t)return{pathname:e};let a=n.get(t);a||(a=t.map(e=>e.toLowerCase()),n.set(t,a));let i=e.split("/",2);if(!i[1])return{pathname:e};let s=i[1].toLowerCase(),o=a.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},226098,(e,t,r)=>{"use strict";function n(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},18556,(e,t,r)=>{"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}
55Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return n}})},370422,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return a}});let n=e.r(813258);function a(e){let[t,r,a,i]=e,{layout:s,template:o}=a,{page:l}=a;l=t===n.DEFAULT_SEGMENT_KEY?a.defaultPage:l;let c=s?.[1]||o?.[1]||l?.[1];return{page:l,segment:t,modules:a,conventionPath:c,parallelRoutes:r,staticSiblings:i}}},401643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return s},isCatchAll:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(591463);function s(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function o(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},31027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return u},isNormalizedAppRoute:function(){return c},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return h},parseNormalizedAppRoute:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(312718),s=e.r(401643),o=e.r(591463);function l(e){if(""===e)return null;let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,s.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function c(e){return e.normalized}function u(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){let r,n,a,o=e.split("/").filter(Boolean),c=[];for(let u of o){let o=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,s.getSegmentParam)(t)?t:e}catch{return e}}(u));if(o){if("route-group"===o.type&&!(2&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===o.type&&!(1&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(c.push(o),o.interceptionMarker){let i=e.split(o.interceptionMarker);if(2!==i.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});n=d(i[0],t),a=d(i[1],t),r=o.interceptionMarker}}}let u=c.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:c,dynamicSegments:u,interceptionMarker:r,interceptingRoute:n,interceptedRoute:a}}function p(e){return d(e,0)}function h(e){return d(e,1)}},254395,(e,t,r)=>{"use strict";function n(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}
55Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return n}})},746857,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return i}});let n=e.r(312718),a=e.r(254395);function i(e,t,r,i,s){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let o=[];for(let e=r;e<i.segments.length;e++){let n=i.segments[e];if("static"===n.type){let i=n.name,s=(0,a.interceptionPrefixFromParamType)(t);s&&e===r&&s===n.interceptionMarker&&(i=i.replace(n.interceptionMarker,"")),o.push(i)}else{if(!s.hasOwnProperty(n.param.paramName)){if("optional-catchall"===n.param.paramType)break;return}let e=s[n.param.paramName];Array.isArray(e)?o.push(...e):o.push(e)}}if(o.length>0)return o;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<i.segments.length){let e=i.segments[r];if("dynamic"===e.type&&!s.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?s[e.param.paramName]:(0,a.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},753015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return c},parseMatchedParameter:function(){return h},parseParameter:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(312718),s=e.r(370422),o=e.r(31027),l=e.r(746857);function c(e,t,r,n){let a=structuredClone(t),c=[{tree:e,depth:0}],u=(0,o.parseNormalizedAppRoute)(r);for(;c.length>0;){let{tree:e,depth:t}=c.pop(),{segment:r,parallelRoutes:d}=(0,s.parseLoaderTree)(e),p=(0,o.parseAppRouteSegment)(r);if(p?.type==="dynamic"&&!a.hasOwnProperty(p.param.paramName)&&!n?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,l.resolveParamValue)(e,r,t,u,a);if(void 0!==n)a[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new i.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let h=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&h++,Object.values(d)))c.push({tree:e,depth:h})}return a}function u(e,t,r,n,a){let s=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!s||0===s.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,a]};throw Object.defineProperty(new i.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let o=Array.isArray(s)?s.join("/"):s;return{param:t,value:s,treeSegment:[t,o,r,a],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?h(t[2]):h(e)}function h(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},239254,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(663416),s=e.r(591463),o=e.r(2160),l=e.r(938281),c=e.r(753015);function u(e,t,r){let n={},a=1,i=[];for(let u of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),l=u.match(c.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:s}=(0,c.parseMatchedParameter)(l[2]);n[t]={pos:a++,repeat:s,optional:r},i.push(`/${(0,o.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:s}=(0,c.parseMatchedParameter)(l[2]);n[e]={pos:a++,repeat:t,optional:s},r&&l[1]&&i.push(`/${(0,o.escapeStringRegexp)(l[1])}`);let u=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(u=u.substring(1)),i.push(u)}else i.push(`/${(0,o.escapeStringRegexp)(u)}`);t&&l&&l[3]&&i.push((0,o.escapeStringRegexp)(l[3]))}return{parameterizedRoute:i.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:a,groups:i}=u(e,t,r),s=a;return n||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:i}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:a,backreferenceDuplicateKeys:i}){let s,{key:l,optional:u,repeat:d}=(0,c.parseMatchedParameter)(r),h=l.replace(/\W/g,"");a&&(h=`${a}${h}`);let f=!1;(0===h.length||h.length>30)&&(f=!0),isNaN(parseInt(h.slice(0,1)))||(f=!0),f&&(h=t());let m=h in n;a?n[h]=`${a}${l}`:n[h]=l;let g=e?(0,o.escapeStringRegexp)(e):"";return s=m&&i?`\\k<${h}>`:d?`(?<${h}>.+?)`:`(?<${h}>[^/]+?)`,{key:l,pattern:u?`(?:/${g}${s})?`:`/${g}${s}`,cleanedKey:h,optional:u,repeat:d}}function h(e,t,r,n,a,u={names:{},intercepted:{}}){let d,f=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],_=[];for(let d of(u=structuredClone(u),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=s.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),h=d.match(c.PARAMETER_PATTERN),y=l?h?.[1]:void 0;if(y&&h?.[2]?(e=t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,u.intercepted[h[2]]=y):e=h?.[2]&&u.intercepted[h[2]]?t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?i.NEXT_QUERY_PARAM_PREFIX:void 0,y&&h&&h[2]){let{key:t,pattern:r,cleanedKey:n,repeat:i,optional:s}=p({getSafeRouteKey:f,interceptionMarker:y,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a});g.push(r),_.push(`/${h[1]}:${u.names[t]??n}${i?s?"*":"+":""}`),u.names[t]??=n}else if(h&&h[2]){n&&h[1]&&(g.push(`/${(0,o.escapeStringRegexp)(h[1])}`),_.push(`/${h[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:s,optional:l}=p({getSafeRouteKey:f,segment:h[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:a}),c=r;
55n&&h[1]&&(c=c.substring(1)),g.push(c),_.push(`/:${u.names[t]??i}${s?l?"*":"+":""}`),u.names[t]??=i}else g.push(`/${(0,o.escapeStringRegexp)(d)}`),_.push(`/${d}`);r&&h&&h[3]&&(g.push((0,o.escapeStringRegexp)(h[3])),_.push(h[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:u}}function f(e,t){let r=h(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...d(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=u(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:a}=h(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${a}${n?"(?:(/.*)?)":""}$`}}},795640,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_FILTER_PLACEHOLDER:function(){return i},hasDynamicFilterCandidate:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="[]";function s(e,t,r){let n=e.split("/"),a=t.split("/"),s=n[n.length-1]??"";if(!(s.startsWith("[...")||s.startsWith("[[..."))&&n.length!==a.length)return!1;let o=[];for(let e=1;e<a.length;e++){if(""===a[e])continue;let t=n[e];(void 0===t||t.startsWith("["))&&o.push(e)}if(0===o.length||o.length>8)return!1;let l=(1<<o.length)-1;for(let e=0;e<l;e++){let t=a.slice();for(let r=0;r<o.length;r++)(e&1<<r)==0&&(t[o[r]]=i);if(r(t.join("/")))return!0}return!1}},722783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});let n=e.r(718967),a=e.r(287248);function i(e,t,r=!0){let s=new URL("u"<typeof window?"http://n":(0,n.getLocationOrigin)()),o=t?new URL(t,s):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):s,{pathname:l,searchParams:c,search:u,hash:d,href:p,origin:h}=e.startsWith("/")?new URL(`${o.protocol}//${o.host}${e}`):new URL(e,o);if(h!==s.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:l,port:null,protocol:null,query:r?(0,a.searchParamsToUrlQuery)(c):void 0,search:u,hash:d,href:p.slice(h.length),slashes:null}}},873423,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var a="",i=r+1;i<e.length;){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===n){var o=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){l+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--o){i++;break}}else if("("===e[i]&&(o++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(o)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,s=t.delimiter,o=void 0===s?"/#?":s,l=[],c=0,u=0,d="",p=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},h=function(e){var t=p(e);if(void 0!==t)return t;var n=r[u],a=n.type,i=n.index;throw TypeError("Unexpected ".concat(a," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");
55if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(a(o),"]+?"):"(?:(?!".concat(a(r),")[^").concat(a(o),"])+?")};u<r.length;){var _=p("CHAR"),y=p("NAME"),v=p("PATTERN");if(y||v){var b=_||"";-1===i.indexOf(b)&&(d+=b,b=""),d&&(l.push(d),d=""),l.push({name:y||c++,prefix:b,suffix:"",pattern:v||g(b),modifier:p("MODIFIER")||""});continue}var S=_||p("ESCAPED_CHAR");if(S){d+=S;continue}if(d&&(l.push(d),d=""),p("OPEN")){var b=f(),E=p("NAME")||"",w=p("PATTERN")||"",x=f();h("CLOSE"),l.push({name:E||(w?c++:""),pattern:E&&!w?g(b):w,prefix:b,suffix:x,modifier:p("MODIFIER")||""});continue}h("END")}return l}function r(e,t){void 0===t&&(t={});var r=i(t),n=t.encode,a=void 0===n?function(e){return e}:n,s=t.validate,o=void 0===s||s,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var i=e[n];if("string"==typeof i){r+=i;continue}var s=t?t[i.name]:void 0,c="?"===i.modifier||"*"===i.modifier,u="*"===i.modifier||"+"===i.modifier;if(Array.isArray(s)){if(!u)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===s.length){if(c)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var p=a(s[d],i);if(o&&!l[n].test(p))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix}continue}if("string"==typeof s||"number"==typeof s){var p=a(String(s),i);if(o&&!l[n].test(p))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(p,'"'));r+=i.prefix+p+i.suffix;continue}if(!c){var h=u?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(h))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,a=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],s=n.index,o=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?o[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):o[r.name]=a(n[e],r)}}(l);return{path:i,index:s,params:o}}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,o=r.start,l=r.end,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,p=r.endsWith,h="[".concat(a(void 0===p?"":p),"]|$"),f="[".concat(a(void 0===d?"/#?":d),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=a(u(_));else{var y=a(u(_.prefix)),v=a(u(_.suffix));if(_.pattern)if(t&&t.push(_),y||v)if("+"===_.modifier||"*"===_.modifier){var b="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(v).concat(y,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(b)}else m+="(?:".concat(y,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));m+="(".concat(_.pattern,")").concat(_.modifier)}else m+="(?:".concat(y).concat(v,")").concat(_.modifier)}}if(void 0===l||l)s||(m+="".concat(f,"?")),m+=r.endsWith?"(?=".concat(h,")"):"$";else{var S=e[e.length-1],E="string"==typeof S?f.indexOf(S[S.length-1])>-1:void 0===S;s||(m+="(?:".concat(f,"(?=").concat(h,"))?")),E||(m+="(?=".concat(f,"|").concat(h,")"))}return new RegExp(m,i(r))}function o(e,r,n){if(e instanceof RegExp){var a;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(e.source);u;)r.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(e.source);return e}return Array.isArray(e)?(a=e.map(function(e){return o(e,r,n).source}),new RegExp("(?:".concat(a.join("|"),")"),i(n))):s(t(e,n),r,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,n){return r(t(e,n),n)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return n(o(e,r,t),r,t)},e.regexpToFunction=n,e.tokensToRegexp=s,e.pathToRegexp=o})(),t.exports=e})()},268280,(e,t,r)=>{"use strict";
55Object.defineProperty(r,"__esModule",{value:!0});var n={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return c},stripParameterSeparators:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="_NEXTSEP_";function s(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function c(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function u(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${i}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=n;return t}},475957,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return c},safeRouteMatcher:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(873423),s=e.r(268280);function o(e,t,r){if("string"!=typeof e)return(0,i.pathToRegexp)(e,t,r);let n=(0,s.hasAdjacentParameterIssues)(e),a=n?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,i.pathToRegexp)(a,t,r)}catch(a){if(!n)try{let n=(0,s.normalizeAdjacentParameters)(e);return(0,i.pathToRegexp)(n,t,r)}catch(e){}throw a}}function l(e,t){let r=(0,s.hasAdjacentParameterIssues)(e),n=r?(0,s.normalizeAdjacentParameters)(e):e;try{let e=(0,i.compile)(n,t);if(r)return t=>(0,s.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e),n=(0,i.compile)(r,t);return e=>(0,s.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function c(e,t){let r=(0,i.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let r=e(t);return!!r&&(0,s.stripParameterSeparators)(r)}}},841820,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=e.r(718967),a=e.r(475957);function i({re:e,groups:t}){return(0,a.safeRouteMatcher)(r=>{let a=e.exec(r);if(!a)return!1;let i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},s={};for(let[e,r]of Object.entries(t)){let t=a[r.pos];void 0!==t&&(r.repeat?s[e]=t.split("/").map(e=>i(e)):s[e]=i(t))}return s})}},341257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return a}});let n=e.r(873423);function a(e,t){let r=[],a=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),i=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(a.source),a.flags):a,r);return(e,n)=>{if("string"!=typeof e)return!1;let a=i(e);if(!a)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete a.params[e.name];return{...n,...a.params}}}},106346,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});let n=e.r(287248),a=e.r(722783);function i(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);let t=new URL(e),r=t.username,i=t.password,s=r?i?`${r}:${i}`:r:null,o=t.pathname,l=t.search;return{auth:s,hash:t.hash,hostname:t.hostname,href:t.href,pathname:o,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},619573,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/cookie/");var e,r,n,a,i={};i.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var a={},i=t.split(n),s=(r||{}).decode||e,o=0;o<i.length;o++){var l=i[o],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==a[u]&&(a[u]=function(e,t){try{return t(e)}catch(t){return e}}
55(d,s))}}return a},i.serialize=function(e,t,n){var i=n||{},s=i.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!a.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!a.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(i.domain){if(!a.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!a.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},e=decodeURIComponent,r=encodeURIComponent,n=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=i})()},989557,(e,t,r)=>{"use strict";function n(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(619573);return n(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},631423,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return h},prepareDestination:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(2160),s=e.r(106346),o=e.r(591463),l=e.r(989557),c=e.r(475957);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let a={},i=r=>{let n,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),n=e.headers[i];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[i];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return a[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(i)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{a[e]=t.groups[e]}):"host"===r.type&&t[0]&&(a.host=t[0])),!0}return!1};return!(!r.every(e=>i(e))||n.some(e=>i(e)))&&a}function p(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,c.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function h(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,i.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,s.parseUrl)(t),n=r.pathname;n&&(n=u(n));let a=r.href;a&&(a=u(a));let o=r.hostname;o&&(o=u(o));let l=r.hash;l&&(l=u(l));let c=r.search;c&&(c=u(c));let d=r.origin;return d&&(d=u(d)),{...r,pathname:n,hostname:o,href:a,hash:l,search:c,origin:d}}function f(e){let t,r,n=h(e),{hostname:a,query:i,search:s}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],f=[];for(let e of((0,c.safePathToRegexp)(l,f),f))d.push(e.name);if(a){let e=[];for(let t of((0,c.safePathToRegexp)(a,e),e))d.push(t.name)}let m=(0,c.safeCompile)(l,{validate:!1});for(let[r,n]of(a&&(t=(0,c.safeCompile)(a,{validate:!1,encode:encodeURIComponent})),Object.entries(i)))Array.isArray(n)?i[r]=n.map(t=>p(u(t),e.params)):"string"==typeof n&&(i[r]=p(u(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in i||(i[t]=e.params[t]);if((0,o.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=o.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[a,i]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=a,n.hash=`${i?"#":""}${i||""}`,n.search=s?p(s,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,
55configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:i,parsedDestination:n}}},291534,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(341257),a=e.r(631423),i=e.r(938281),s=e.r(927711),o=e.r(387250),l=e.r(722783);function c(e,t,r,c,u,d){let p,h=!1,f=!1,m=(0,l.parseRelativeUrl)(e),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(m.pathname),d).pathname),_=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,a.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return f=!0,!0;let n=(0,a.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:c});if(m=n.parsedDestination,e=n.newUrl,Object.assign(c,n.parsedDestination.query),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(e),d).pathname),t.includes(g))return h=!0,p=g,!0;if((p=u(g))!==e&&t.includes(p))return h=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(h=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(p=u(g),y=h=t.includes(p)),!y){for(let e=0;e<r.fallback.length;e++)if(_(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:h,resolvedHref:p,externalDest:f}}},509793,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createKey:function(){return V},default:function(){return Z},matchesMiddleware:function(){return W}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let s=e.r(555682),o=e.r(190809),l=e.r(938281),c=e.r(490758),u=e.r(479520),d=o._(e.r(302023)),p=e.r(881672),h=e.r(927711),f=s._(e.r(226098)),m=e.r(718967),g=e.r(285777),_=e.r(722783),y=e.r(841820),v=e.r(239254),b=e.r(795640),S=e.r(195057);e.r(885305);let E=e.r(572463),w=e.r(535192),x=e.r(827018),R=e.r(387250),T=e.r(405550),O=e.r(652817),P=e.r(57192),I=e.r(210648),C=e.r(283605),k=e.r(230283),N=e.r(865941),A=e.r(573668),M=e.r(82604),D=e.r(18556),L=e.r(51506),j=e.r(491915),$=e.r(663416),U=e.r(543369),B=e.r(948277);function F(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function W(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,O.hasBasePath)(r)?(0,R.removeBasePath)(r):r,a=(0,T.addBasePath)((0,w.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function H(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function q(e,t,r){let[n,a]=(0,P.resolveHref)(e,t,!0),i=(0,m.getLocationOrigin)(),s=n.startsWith(i),o=a&&a.startsWith(i);n=H(n),a=a?H(a):a;let l=s?n:(0,T.addBasePath)(n),c=r?H((0,P.resolveHref)(e,r)):a||n;return{url:l,as:o?c:(0,T.addBasePath)(c)}}function z(e,t){let r=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,v.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function G(e){if(!await W(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),s=i||t.headers.get("x-nextjs-matched-path"),o=t.headers.get($.MATCHED_PATH_HEADER);if(!o||s||o.includes("__next_data_catchall")||o.includes("/_error")||o.includes("/404")||(s=o),s){if(s.startsWith("/")){let t=(0,_.parseRelativeUrl)(s),o=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),u=(0,l.removeTrailingSlash)(o.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,c.getClientBuildManifest)()]).then(([s,{__rewrites:l}])=>{let c=(0,w.addLocale)(o.pathname,o.locale);if((0,g.isDynamicRoute)(c)||!i&&s.includes((0,h.normalizeLocalePath)((0,R.removeBasePath)(c),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:a.basePath,trailingSlash:a.trailingSlash},parseData:!0}
55);t.pathname=c=(0,T.addBasePath)(r.pathname)}{let e=n(c,s,l,t.query,e=>z(e,s),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,c=t.pathname,Object.assign(t.query,e.parsedAs.query))}let d=s.includes(u)?u:z((0,h.normalizeLocalePath)((0,R.removeBasePath)(t.pathname),r.router.locales).pathname,s);if((0,g.isDynamicRoute)(d)){let e=(0,y.getRouteMatcher)((0,v.getRouteRegex)(d))(c);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,E.parsePath)(e),o=(0,k.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${o}${t.query}${t.hash}`})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,E.parsePath)(u),t=(0,k.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:a,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=e.r(291534).default;let Y=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function J({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:a,parseJSON:i,persistCache:s,isBackground:o,unstable_skipClientCache:l}){let{href:u}=new URL(e,window.location.href),d=(0,U.getDeploymentId)(),p=o=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(e,a?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:o?.method??"GET"}).then(t=>t.ok&&o?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:u}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:u};if(404===t.status&&X(r)?.notFound)return{dataHref:e,json:{notFound:Y},response:t,text:r,cacheKey:u};let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,c.markAssetError)(i),i}let s=t.headers.get($.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=s&&s!==d){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw a||(0,c.markAssetError)(e),e}return{dataHref:e,json:i?X(r):null,response:t,text:r,cacheKey:u}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[u],e)).catch(e=>{throw l||delete t[u],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,c.markAssetError)(e),e});return l&&s?p({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[u]=Promise.resolve(e)),e)):void 0!==t[u]?t[u]:t[u]=p(o?{method:"HEAD"}:{})}function V(){return Math.random().toString(36).slice(2,10)}function K({url:e,router:t}){if(e===(0,T.addBasePath)((0,w.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let Q=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class Z{static{this.events=(0,f.default)()}constructor(e,t,r,{initialProps:n,pageLoader:a,App:i,wrapApp:s,Component:o,err:c,subscription:u,isFallback:d,locale:p,locales:h,defaultLocale:f,domainLocales:y,isPreview:v}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=V(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,S.formatWithValidation)({pathname:(0,T.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:a,as:i,options:s,key:o}=n;this._key=o;let{pathname:l}=(0,_.parseRelativeUrl)(a);this.isSsr&&i===(0,T.addBasePath)(this.asPath)&&l===(0,T.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",a,i,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};const b=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[b]={Component:o,initial:!0,props:n,err:c,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=Z.events,this.pageLoader=a;const E=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search&&0),this.state={route:b,pathname:e,query:t,asPath:E?e:r,isPreview:!!v,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const n={locale:p},a=(0,m.getURL)();this._initialMatchesMiddlewarePromise=W({router:this,locale:p,asPath:a}).then(i=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",i?a:(0,S.formatWithValidation)({pathname:(0,T.addBasePath)(e),query:t}
55),a,n),i))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,B.isJavaScriptURLString)(e.toString())||t&&(0,B.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=q(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,B.isJavaScriptURLString)(e.toString())||t&&(0,B.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=q(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,n,a){{if(!this._bfl_s&&!this._bfl_d){let r,i,{BloomFilter:s}=e.r(849575);try{({__routerFilterStatic:r,__routerFilterDynamic:i}=await (0,c.getClientBuildManifest)())}catch(e){if(console.error(e),a)return!0;return K({url:(0,T.addBasePath)((0,w.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let o={numItems:406,errorRate:1e-4,numBits:7784,numHashes:14,bitArray:[1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,0,1,0,1,0,0,0,0,1,0,1,1,1,1,1,1,0,0,0,1,1,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,0,0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,1,1,1,0,1,1,1,1,1,0,1,0,0,1,0,1,1,0,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,0,1,0,1,0,1,1,1,0,1,1,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,0,0,1,1,1,0,1,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,1,0,1,0,0,0,0,1,1,1,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1,1,0,0,1,1,0,0,0,1,0,0,0,0,1,1,0,1,1,0,1,1,0,0,0,1,1,0,0,1,1,0,1,0,0,1,1,0,1,1,0,1,0,0,1,1,0,0,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,1,1,1,0,0,1,1,1,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,1,0,1,1,1,1,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,0,1,1,0,0,1,0,1,1,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,0,0,0,1,1,0,0,1,1,1,0,1,1,1,1,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,1,0,1,1,0,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,0,0,0,0,0,0,1,1,0,1,1,0,1,1,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,0,1,1,1,1,1,0,0,1,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,0,1,0,1,0,1,0,0,0,0,0,1,1,0,1,1,1,0,1,1,1,0,0,1,0,1,1,1,1,1,1,0,0,1,0,1,1,1,1,0,1,1,1,1,1,0,0,0,1,1,0,1,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,0,0,1,1,1,0,1,0,1,0,1,0,0,0,0,0,1,1,0,0,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,1,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,1,0,0,1,0,1,1,1,0,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,1,1,1,0,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,0,0,1,0,0,1,0,1,1,1,1,1,0,1,0,1,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,0,1,1,1,1,1,0,1,0,0,1,0,0,0,0,1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,0,1,0,0,1,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,1,0,0,1,1,0,1,0,0,0,0,1,0,0,0,1,1,0,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,0,1,1,1,0,0,0,0,1,1,0,1,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0,0,0,1,0,0,1,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,0,1,0,1,1,1,1,1,0,1,1,0,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,1,1,1,1,1,0,1,1,0,0,1,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,0,1,1,0,0,1,1,0,1,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,0,1,0,0,1,0,1,0,0,0,0,0,1,1,1,0,1,1,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,1,1,1,0,0,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,0,0,1,0,1,1,1,0,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,1,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,1,0,0,1,0,0,1,1,1,1,1,0,1,1,1,0,0,1,1,1,0,0,0,1,0,0,1,0,0,1,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,0,0,1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,0,1,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,0,0,1,1,0,0,0,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,0,1,0,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,0,0,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,1,1,0,1,1,1,0,0,0,1,1,0,0,0,1,1,1,0,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,1,0,1,1,1,1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,1,1,0,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,0,0,1,0,0,0,1,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,1,1,0,1,0,0,1,1,1,1,1,0,1,0,0,1,1,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,1,0,1,0,1,0,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,0,0,1,1,0,0,0,1,0,0,0,0,0,1,0,0,1,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,1,0,1,1,1,0,0,1,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,1,1,1,0,0,1,0,1,1,1,1,1,1,1,0,0,1,1,0,1,1,0,0,1,1,1,0,1,0,1,1,1,1,0,0,0,0,0,1,0,1,1,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,1,0,1,1,0,0,1,1,0,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,1,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,0,1,1,1,0,1,1,0,1,0,0,0,1,0,1,0,1,1,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,0,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,1,0,0,1,0,1,0,1,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,1,0,1,1,0,0,1,1,0,1,1,0,0,0,0,1,1,0,1,0,0,1,0,0,1,1,1,1,1,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,1,0,1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,0,1,0,0,1,0,0,0,1,1,1,1,1,1,1,0,1,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,0,0,0,0,1,1,1,0,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,1,0,1,1,1,1,1,1,0,1,1,0,1,0,0,1,1,1,0,1,1,1,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,0,1,0,0,0,1,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,0,1,1,1,0,1,0,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,1,0,1,0,0,1,1,1,1,1,0,1,0,0,1,1,0,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,1,1,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,0,0,1,0,0,0,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,0,1,0,0,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,0,0,1,1,0,1,0,1,0,0,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,1,0,0,0,0,1,1,0,1,0,0,1,1,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,1,1,0,1,0,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,0,0,0,0,1,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,0,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,1,0,1,0,0,1,0,0,1,1,0,0,0,0,1,1,0,1,1,1,1,0,0,0,1,0,1,1,0,0,1,1,1,1,0,0,1,0,1,1,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,1,1,0,1,0,1,1,1,0,1,1,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,1,1,1,0,1,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,1,0,0,1,1,1,0,1,1,1,0,0,0,0,1,1,0,1,1,1,1,0,0,1,0,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,1,0,1,0,1,1,0,1,1,1,0,1,0,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,0,0,1,1,0,1,1,1,1,1,0,1,1,0,1,0,0,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,0,1,1,1,1,0,1,0,1,1,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,1,0,1,1,1,0,0,1,1,0,1,0,0,0,0,0,1,1,0,1,1,0,0,1,1,1,0,1,1,0,1,1,1,1,1,1,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,1,1,0,0,1,0,0,1,0,0,0,0,0,0,1,1,0,1,1,1,0,1,0,0,1,1,1,1,1,0,1,0,0,0,1,0,1,0,1,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,1,1,0,1,1,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,0,0,1,1,0,0,0,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,1,1,0,0,1,1,1,1,0,1,0,1,1,0,0,0,1,1,1,0,1,1,0,1,0,1,1,1,0,1,0,0,1,0,0,1,0,0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,1,1,0,1,0,1,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,0,0,0,1,1,0,1,0,0,1,1,0,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,1,0,1,0,1,1,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,0,1,0,1,0,0,0,1,1,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1,0,0,1,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,0,0,1,1,0,1,0,0,1,0,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,1,0,1,0,0,1,0,1,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,0,0,0,1,1,0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,1,0,0,0,0,0,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,0,1,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,1,0,1,0,0,0,1,0,0,1,1,0,0,1,1,1,1,0,1,1,0,1,1,0,0,1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,0,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,1,0,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,0,0,1,1,0,1,0,0,0,1,1,1,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,1,1,1,1,1,0,0,1,0,1,0,0,0,0,1,1,1,0,0,0,1,0,1,1,1,0,0,1,0,1,1,0,0,1,0,0,1,1,1,0,1,1,1,0,1,0,1,1,0,1,0,1,1,1,0,1,0,0,1,1,1,0,0,0,1,1,1,0,1,0,0,0,1,0,0,1,0,1,1,1,0,0,1,0,1,0,0,0,1,1,1,1,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,1,1,0,1,0,1,1,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,0,1,0,0,1,1,0,0,1,0,0,1,1,0,0,0,0,1,1,0,1,0,1,0,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,1,0,0,1,1,0,1,0,0,1,1,0,1,1,1,1,0,0,0,0,1,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,1,1,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1,0,1,1,1,1,1,0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,1,0,0,0,0,1,1,1,0,0,0,1,0,1,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,0,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,0,1,0,1,1,1,0,0,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,0,1,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,0,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,1,0,0,1,0,1,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,1,1,1,0,1,0,0,1,0,1,0,1,1,1,0,1,0,1,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0,1,1,1,0,0,1,0,0,0,1,1,0,1,0,0,0,1,0,1,0,0,0,1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,1,1,0,1,1,1,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,0,1,1,0,1,0,0,0,1,1,0,1,1,0,0,1,1,0,0,1,0,0,1,0,1,0,0,0,1,1,1,0,1,0,1,0,1,1,1,1,0,0,1,1,0,0,1,0,0,0,1,0,0,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0,1,1,1,0,1,0,0,0,0,1,0,1,1,0,0,1,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,1,0,0,0,0,0,1,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,1,1,0,0,1,0,1,1,1,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,1,1,0,1,0,1,1,1,1,1,0,1,0,0,0,0,1,1,0,1,0,0,1,0,0,1,1,1,0,1,0,1,1,0,0,0,0,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,1,0,0,1,0,1,0,1,0,1,0,0,0,1,0,0,1,0,1,1,0,0,1,1,1,0,0,0,0,0,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,1,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,0,0,0,1,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0,1,0,1,0,0,1,1,1,1,0,0,0,0,0,1,1,0,1,0,1,0,1,1,1,1,0,1,0,0,0,0,0,1,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,0,1,1,0,1,0,1,1,1,1,1,1,0,1,0,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,0,1,0,0,0,0,0,1,1,0,1,1,0,1,1,1,1,1,1,0,0,1,0,1,1,1,1,0,1,0,1,1,0,0,0,0,1,1,0,1,1,1,0,1,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,1,1,0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,1,0,1,0,0,0,1,0,0,0,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,0,1,1,0,1,0,1,1,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,1,0,1,0,0,1,0,0,1,0,1,1,1,1,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,0,1,0,1,0,0,0,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,1,1,0,0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,0,0,0,0,1,1,1,0,1,1,0,1,0,1,1,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,1,1,1,0,0,0,1,0,0,1,0,1,0,1,0,1,1,0,1,1,0,0,1,0,0,0,1,0,0,1,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,1,0,0,1,1,0,0,1,0,0,1,1,1,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,1,0,0,0,1,0,0,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,0,1,1,0,1,0,0,1,0,0,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,1,1,1,1,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,1,0,1,0,1,1,0,0,1,0,0,1,0,1,1,1,0,1,0,1,0,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,1,1,1,1,1,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,1,0,0,1,1,1,1,1,1,0,1,0,1,1,0,1,0,1,1,1,0,1,1,1,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,1,1,0,1,0,1,1,0,0,1,0,1,1,1,1,0,1,0,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,1,0,0,0,0,1,0,1,1,1,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,1,0,1,1,0,1,1,1,1,1,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,1,0,0,1,1,1,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,0,0,1,0,0,1,1,0,1,1,1,0,1,0,0,0,0,1,0,0,1,1,1,0,1,0,1,1,1,1,0,1,1,0,1,0,0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,0,0,1,1,0,1,1,0,1,1,1,0,0,0,0,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,0,0,0,1,0,1,1,0,1,1,1,0,0,1,0,1,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,1,1,1,1,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,1,0,0,1,1,1,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,1,0,0,1,0,1,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,0,1,1,0,1,0,1,1,0,1,1,1,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,0,0,1,1,1,0,0,1,0,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,1,1,0,0,1,0,1,1,0,1,0,1,0,1,1,0,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,1,1,1,0,1,0,1,0,0,1,1,1,1,0,0,0,1,1,1,0,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,1,1,1,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1,0,0,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,1,1,0,1,0,1,0,0,0,0,1,1,1,0,0,1,0,1,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,1,1,0,0,1,0,1,1,0,0,1,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,1,0,1,0,1,0,1,1,1,0,0,1,0,0,1,0,0,0,0,1,1,1,0,0,1,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,1,1,1,1,0,0,1,0,1,0,0,0,1,1,0,0,1,0,1,0,1,0,1,0,0,0,1,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,0,1,0,1,1,0,1,1,0,1,0,0,1,1,0,1,0,0,1,0,0,1,1,1,1,0,1,0,0,1,1,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,1,1,1,1,0,0,1,1,1,1,1,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,1,1,1,0,1,1,1,1,1,0,0,1,1,0,1,0,1,1,1,0,1,0,1,0,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,0,0,1,1,0,1,0,1,0,0,0,1,1,1,0,1,0,1,1,1,1,0,1,0,0,1,0,0,1,1,1,0,0,0,1,1,0,0,0,0,1,1,1,0,1,1,0,1,1,0,1,1,1,0,1,0,1,1,1,1,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0,1,1,1,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,1,0,1,1,1,1,0,1,0,1,1,0,1,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,1,0,0,1,1,0,1,0,0,1,0,1,0,0,0,0,1,0,1,1,1,0,1,1,0,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,1,1,1,1,1
55,0,1,0,1,1,0,0,1,0,1,0,1,1,0,0,1,0,1,1,0,1,1,1,0,0,0,1,1,1,1,0,1,0,0,1,1,0,0,1,0,1,1,1,1,0,1,1,0,1,1,0,1,1,1,1,0,1,1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0,0,1,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,0,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,0,1,0,0,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0,0,1,0,1,0,0]};!r&&o&&(r=o||void 0);let l={numItems:80,errorRate:1e-4,numBits:1534,numHashes:14,bitArray:[1,1,0,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,0,0,1,1,0,0,0,0,0,0,1,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,1,1,0,1,0,1,0,0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,1,1,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,0,1,1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,1,0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,1,1,1,0,1,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,0,0,1,0,1,1,1,1,1,1,0,1,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,1,1,0,0,1,0,1,0,0,0,1,0,1,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,0,1,0,0,1,0,0,1,1,1,0,0,1,0,1,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,1,1,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0,0,1,1,0,1,0,0,1,0,1,1,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0,0,0,1,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,1,1,1,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,0,1,0,0,0,0,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,0,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,1,1,1,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,0,1,1,1,0,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,0,0,1,0,0,0,0,0,1,0,1,0,1,0,1,1,0,1,1,0,0,1,0,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,0,0,0,1,0,0,1,1,0,1,0,1,0,1,0,1,1,1,1,0,1,0,0,1,0,1,1,1,1,0,0,1,1,0,1,1,1,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,1,0,0,0,0,1,1,1,0,0,0,1,1,0,1,0,0,0,0,1,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,0,1,0,0,0,1,1,0,1,1,0,1,0,0,0,1,1,0,0,0,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,1,0,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,0,1,1,1,0,1,1,0,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,0,1,1,0,1,1,1,0,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,1,0,1,1,1,1,0,1,1,0,0,1,1,1,1,0,0,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,1,0,0,1,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,1,0,1,1,1,1,0,1,1,1,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,0,1,1,0,1,0,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,1,1,0,1,0,1,0,1,1,1,1,1,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,1,1,0,0,1,0,0,1,1,1,1,1,1,0,1,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0,0,1,0,1,1,1,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,1,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,1,0,1,0,0,1,1,1,1,1,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,1,0,0,0,0,0,1,1,1,0,1,0,1,1,0,1,0,0,1,1,1,1,1,0,1,1,0,1,0,1,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,1,1,0,1,0,0,0,0,1,1,1,1,1,1,1,0,1,1,0,1,1,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,1,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,1,1,0,0,1,1,0,1,1,1,0,0,0,1,1,0,0,1,0,1,0,0,1,0,1,1,0,1,0,1,1,1,0,1,0,1,0,0,1,1,1,1,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,0,1,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0,1,1,0,0,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,1,0,0,1,0,1,1,0,1,1,1,0,0,1,1,0,1,0,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,0,1,1,1,1,0,1,0,1,0,1,0]};!i&&l&&(i=l||void 0),r?.numHashes&&(this._bfl_s=new s(r.numItems,r.errorRate),this._bfl_s.import(r)),i?.numHashes&&(this._bfl_d=new s(i.numItems,i.errorRate),this._bfl_d.import(i))}let i=!1,s=!1;for(let{as:e,allowMatchCurrent:o}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),c=(0,T.addBasePath)((0,w.addLocale)(r,n||this.locale));if(o||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(i=i||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(c),[r,c])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){s=!0;break}}}
55if(i||s){if(a)return!0;return K({url:(0,T.addBasePath)((0,w.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,a,i){let s,o;if(!(0,A.isLocalURL)(t))return K({url:t,router:this}),!1;let p=1===a._h;p||a.shallow||await this._bfl(r,void 0,a.locale);let h=p||a._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,f={...this.state},P=!0!==this.isReady;this.isReady=!0;let I=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let C=f.locale;m.ST&&performance.mark("routeChange");let{shallow:k=!1,scroll:M=!0}=a,j={shallow:k};this._inFlightRoute&&this.clc&&(I||Z.events.emit("routeChangeError",F(),this._inFlightRoute,j),this.clc(),this.clc=null),r=(0,T.addBasePath)((0,w.addLocale)((0,O.hasBasePath)(r)?(0,R.removeBasePath)(r):r,a.locale,this.defaultLocale));let $=(0,x.removeLocale)((0,O.hasBasePath)(r)?(0,R.removeBasePath)(r):r,f.locale);this._inFlightRoute=r;let U=C!==f.locale;if(!p&&this.onlyAHashChange($)&&!U){f.asPath=$,Z.events.emit("hashChangeStart",r,j),this.changeState(e,t,r,{...a,scroll:!1}),M&&this.scrollToHash($);try{await this.set(f,this.components[f.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,$,j),e}return Z.events.emit("hashChangeComplete",r,j),!0}let B=(0,_.parseRelativeUrl)(t),{pathname:H,query:G}=B;try{[s,{__rewrites:o}]=await Promise.all([this.pageLoader.getPageList(),(0,c.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return K({url:r,router:this}),!1}this.urlIsNew($)||U||(e="replaceState");let X=r;H=H?(0,l.removeTrailingSlash)((0,R.removeBasePath)(H)):H;let J=(0,l.removeTrailingSlash)(H),V=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[H]?.__appRouter)return K({url:r,router:this}),new Promise(()=>{});let Q=!!(V&&J!==V&&(!(0,g.isDynamicRoute)(J)||!(0,y.getRouteMatcher)((0,v.getRouteRegex)(J))(V))),ee=!a.shallow&&await W({asPath:r,locale:f.locale,router:this});if(p&&ee&&(h=!1),h&&"/_error"!==H)if(a._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,T.addBasePath)((0,w.addLocale)($,f.locale),!0),s,o,G,e=>z(e,s),this.locales);if(e.externalDest)return K({url:r,router:this}),!0;ee||(X=e.asPath),e.matchedPage&&e.resolvedHref&&(H=e.resolvedHref,B.pathname=(0,T.addBasePath)(H),ee||(t=(0,S.formatWithValidation)(B)))}else B.pathname=z(H,s),B.pathname!==H&&(H=B.pathname,B.pathname=(0,T.addBasePath)(H),ee||(t=(0,S.formatWithValidation)(B)));if(!p&&!a.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(H)){let e=(0,l.removeTrailingSlash)((0,_.parseRelativeUrl)($).pathname);if((0,b.hasDynamicFilterCandidate)(H,e,e=>!!this._bfl_d?.contains(e)))return K({url:r,router:this}),new Promise(()=>{})}if(!(0,A.isLocalURL)(r))return K({url:r,router:this}),!1;X=(0,x.removeLocale)((0,R.removeBasePath)(X),f.locale),J=(0,l.removeTrailingSlash)(H);let et=!1;if((0,g.isDynamicRoute)(J)){let e=(0,_.parseRelativeUrl)(X),n=e.pathname,a=(0,v.getRouteRegex)(J);et=(0,y.getRouteMatcher)(a)(n);let i=J===n,s=i?(0,L.interpolateAs)(J,n,G):{};if(et&&(!i||s.result))i?r=(0,S.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,D.omit)(G,s.params)})):Object.assign(G,et);else{let e=Object.keys(a.groups).filter(e=>!G[e]&&!a.groups[e].optional);if(e.length>0&&!ee)throw Object.defineProperty(Error((i?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${J}). `)+`Read more: https://nextjs.org/docs/messages/${i?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||Z.events.emit("routeChangeStart",r,j);let er="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:J,pathname:H,query:G,as:r,resolvedAs:X,routeProps:j,locale:f.locale,isPreview:f.isPreview,hasMiddleware:ee,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:Q});if(p||a.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,f.locale),"route"in n&&ee){J=H=n.route||J,j.shallow||(G=Object.assign({},n.query||{},G));let e=(0,O.hasBasePath)(B.pathname)?(0,R.removeBasePath)(B.pathname):B.pathname;
55if(et&&H!==e&&Object.keys(et).forEach(e=>{et&&G[e]===et[e]&&delete G[e]}),(0,g.isDynamicRoute)(H)){let e=!j.shallow&&n.resolvedAs?n.resolvedAs:(0,T.addBasePath)((0,w.addLocale)(new URL(r,location.href).pathname,f.locale),!0);(0,O.hasBasePath)(e)&&(e=(0,R.removeBasePath)(e));let t=(0,v.getRouteRegex)(H),a=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);a&&Object.assign(G,a)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,a);else return K({url:n.destination,router:this}),new Promise(()=>{});let o=n.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){a.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,_.parseRelativeUrl)(t);r.pathname=z(r.pathname,s);let{url:n,as:i}=q(this,t,t);return this.change(e,n,i,a)}return K({url:t,router:this}),new Promise(()=>{})}if(f.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===Y){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:G,as:r,resolvedAs:X,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}p&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=a.shallow&&f.route===(n.route??J),c=a.scroll??(!p&&!l),h=i??(c?{x:0,y:0}:null),m={...f,route:J,pathname:H,query:G,asPath:$,isFallback:!1};if(p&&er){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:G,as:r,resolvedAs:X,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isQueryUpdating:p&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,h)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,$,j),e}return!0}if(Z.events.emit("beforeHistoryChange",r,j),this.changeState(e,t,r,a),!(p&&!h&&!P&&!U&&(0,N.compareRouterStates)(m,this.state))){try{await this.set(m,n,h)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||Z.events.emit("routeChangeError",n.error,$,j),n.error;p||Z.events.emit("routeChangeComplete",r,j),c&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:V()},"",r))}async handleRouteInfoError(e,t,r,n,a,i){if(e.cancelled)throw e;if((0,c.isAssetError)(e)||i)throw Z.events.emit("routeChangeError",e,n,a),K({url:n,router:this}),F();console.error(e);try{let n,{page:a,styleSheets:i}=await this.fetchComponent("/_error"),s={props:n,Component:a,styleSheets:i,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(a,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,a,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:a,routeProps:i,locale:s,hasMiddleware:o,isPreview:c,unstable_skipClientCache:u,isQueryUpdating:p,isMiddlewareRewrite:f,isNotFound:m}){let g=e;try{let e=this.components[g];if(i.shallow&&e&&this.route===g)return e;let d=Q({route:g,router:this});o&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":a,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persist
55Cache:!c,isPrefetch:!1,unstable_skipClientCache:u,isBackground:p},v=p&&!f?null:await G({fetchData:()=>J(y),asPath:m?"/404":a,locale:s,router:this}).catch(e=>{if(p)return null;throw e});if(v&&("/_error"===t||"/404"===t)&&(v.effect=void 0),p&&(v?v.json=self.__NEXT_DATA__.props:v={json:self.__NEXT_DATA__.props}),d(),v?.effect?.type==="redirect-internal"||v?.effect?.type==="redirect-external")return v.effect;if(v?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(v.effect.resolvedHref),s=await this.pageLoader.getPageList();if((!p||s.includes(n))&&(g=n,t=v.effect.resolvedHref,r={...r,...v.effect.parsedAs.query},a=(0,R.removeBasePath)((0,h.normalizeLocalePath)(v.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],i.shallow&&e&&this.route===g&&!o))return{...e,route:g}}if((0,I.isAPIRoute)(g))return K({url:n,router:this}),new Promise(()=>{});let b=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),E=v?.response?.headers.get("x-middleware-skip"),w=b.__N_SSG||b.__N_SSP;E&&v?.dataHref&&delete this.sdc[v.dataHref];let{props:x,cacheKey:T}=await this._getData(async()=>{if(w){if(v?.json&&!E)return{cacheKey:v.cacheKey,props:v.json};let e=v?.dataHref?v.dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:t,query:r}),asPath:a,locale:s}),n=await J({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?{}:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(b.Component,{pathname:t,query:r,asPath:n,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return b.__N_SSP&&y.dataHref&&T&&delete this.sdc[T],this.isPreview||!b.__N_SSG||p||J(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),x.pageProps=Object.assign({},x.pageProps),b.props=x,b.route=g,b.query=r,b.resolvedAs=a,this.components[g]=b,b}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,i)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,a]=e.split("#",2);return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#",2);(0,j.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("u">typeof window&&(0,M.isBot)(window.navigator.userAgent))return;let a=(0,_.parseRelativeUrl)(e),i=a.pathname,{pathname:s,query:o}=a,u=s,d=await this.pageLoader.getPageList(),p=t,h=void 0!==r.locale?r.locale||void 0:this.locale,f=await W({asPath:t,locale:h,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,c.getClientBuildManifest)());let i=n((0,T.addBasePath)((0,w.addLocale)(t,this.locale),!0),d,r,a.query,e=>z(e,d),this.locales);if(i.externalDest)return;f||(p=(0,x.removeLocale)((0,R.removeBasePath)(i.asPath),this.locale)),i.matchedPage&&i.resolvedHref&&(a.pathname=s=i.resolvedHref,f||(e=(0,S.formatWithValidation)(a)))}a.pathname=z(a.pathname,d),(0,g.isDynamicRoute)(a.pathname)&&(s=a.pathname,a.pathname=s,Object.assign(o,(0,y.getRouteMatcher)((0,v.getRouteRegex)(a.pathname))((0,E.parsePath)(t).pathname)||{}),f||(e=(0,S.formatWithValidation)(a)));let m=await G({fetchData:()=>J({dataHref:this.pageLoader.getDataHref({href:(0,S.formatWithValidation)({pathname:u,query:o}),skipInterpolation:!0,asPath:p,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:h,router:this});if(m?.effect.type==="rewrite"&&(a.pathname=m.effect.resolvedHref,s=m.effect.resolvedHref,o={...o,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,S.formatWithValidation)(a)),m?.effect.type==="redirect-external")return;let b=(0,l.removeTrailingSlash)(s);await this._bfl(t,p,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&J({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:h}
55),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=Q({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},657979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(59084);function a(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},283605,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(927711),a=e.r(657979),i=e.r(59084);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,i.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,a.removePathPrefix)(l.pathname,r),l.basePath=r);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],c="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,n.normalizeLocalePath)(c,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},95284,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let i=n.slice(1,-1),s=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),s=!0),i.startsWith("â¦"))throw Object.defineProperty(Error(`Detected a three-dot character ('â¦') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,
55configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(s){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,i),this.restSlugName=i,n="[...]"}else{if(s)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,i),this.slugName=i,n="[]"}}this.children.has(n)||this.children.set(n,new i),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},n=[];for(let a=0;a<e.length;a++){let i=t(e[a]);r[i]=a,n[a]=i}return s(n).map(t=>e[r[t]])}}]); 56 57//# debugId=a18a6a3f-14ef-9df7-bcee-bfd77715d9b0
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.