!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6b36c753-e1d8-4f87-8fff-6b5f0e61414e",e._sentryDebugIdIdentifier="sentry-dbid-6b36c753-e1d8-4f87-8fff-6b5f0e61414e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5480],{65157:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},91572:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.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(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),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}})},1634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let r=n(68498),i=n(33068);function o(e,t){return(0,i.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}});let r=n(33068),i=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return(0,r.normalizePathTrailingSlash)(n(87571).addLocale(e,...i))};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75266:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let i=document.createElement("script");if(r)for(let e in r)"children"!==e&&i.setAttribute(e,r[e]);n?(i.src=n,i.onload=()=>e(),i.onerror=t):r&&(i.innerHTML=r.children,setTimeout(e)),document.head.appendChild(i)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.16",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return i}});let r=n(12846);async function i(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,i)=>{n({actionId:e,actionArgs:t,resolve:r,reject:i})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92304:function(e,t,n){"use strict";let r,i;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return j}});let o=n(60917),s=n(52140),a=n(57437);n(91572);let l=o._(n(34040)),u=s._(n(2265)),c=n(6671),d=n(48701),f=o._(n(61404)),p=n(83079),h=n(89721),g=n(2103);n(70647);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,h.isNextRouterError)(t[0])||_.apply(window.console,t)},window.addEventListener("error",e=>{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let m=document,v=new TextEncoder,y=!1,b=!1,w=null;function S(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");i?i.enqueue(v.encode(e[1])):r.push(e[1])}else 2===e[0]&&(w=e[1])}let E=function(){i&&!b&&(i.close(),b=!0,r=void 0),y=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",E,!1):E();let P=self.__next_f=self.__next_f||[];P.forEach(S),P.push=S;let R=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(v.encode(t))}),y&&!b&&(e.close(),b=!0,r=void 0)),i=e}}),x=(0,c.createFromReadableStream)(R,{callServer:p.callServer});function O(){return(0,u.use)(x)}let T=u.default.StrictMode;function k(e){let{children:t}=e;return t}function j(){let e=(0,g.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(d.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(g.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(k,{children:(0,a.jsx)(O,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),i={onRecoverableError:f.default};"__next_error__"===document.documentElement.id||r?l.default.createRoot(m,i).render(t):u.default.startTransition(()=>l.default.hydrateRoot(m,t,{...i,formState:w}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(19506),(0,n(75266).appBootstrap)(()=>{let{hydrate:e}=n(92304);n(12846),n(4707),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(65157);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return encodeURI(e(...n))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(47149);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6495:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return s}});let r=n(2265),i=n(54887),o="next-route-announcer";function s(e){let{tree:t}=e,[n,s]=(0,r.useState)(null);(0,r.useEffect)(()=>(s(function(){var e;let t=document.getElementsByName(o)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(o)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,l]=(0,r.useState)(""),u=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==u.current&&u.current!==e&&l(e),u.current=e},[t]),n?(0,i.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return l},NEXT_DID_POSTPONE_HEADER:function(){return c},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_STATE_TREE:function(){return i},NEXT_RSC_UNION_QUERY:function(){return u},NEXT_URL:function(){return s},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",i="Next-Router-State-Tree",o="Next-Router-Prefetch",s="Next-Url",a="text/x-component",l=[[n],[i],[o]],u="_rsc",c="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12846:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return L},getServerActionDispatcher:function(){return x},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(52140),i=n(57437),o=r._(n(2265)),s=n(61956),a=n(24673),l=n(33456),u=n(79060),c=n(47744),d=n(61060),f=n(82952),p=n(86146),h=n(1634),g=n(6495),_=n(4123),m=n(39320),v=n(38137),y=n(6866),b=n(35076),w=n(11283),S=n(84541),E="undefined"==typeof window,P=E?null:new Map,R=null;function x(){return R}let O={};function T(e){let t=new URL(e,location.origin);return t.searchParams.delete(y.NEXT_RSC_UNION_QUERY),t}function k(e){return e.origin!==window.location.origin}function j(e){let{appRouterState:t,sync:n}=e;return(0,o.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:i}=t,o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,l.createHrefFromUrl)(new URL(window.location.href))!==i?(r.pendingPush=!1,window.history.pushState(o,"",i)):window.history.replaceState(o,"",i),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function I(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function A(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,i=null!==r?r:n;return(0,o.useDeferredValue)(n,i)}function M(e){let t,{buildId:n,initialHead:r,initialTree:l,urlParts:d,initialSeedData:y,couldBeIntercepted:x,assetPrefix:T,missingSlots:C}=e,M=(0,o.useMemo)(()=>(0,f.createInitialRouterState)({buildId:n,initialSeedData:y,urlParts:d,initialTree:l,initialParallelRoutes:P,location:E?null:window.location,initialHead:r,couldBeIntercepted:x}),[n,y,d,l,r,x]),[L,N,D]=(0,c.useReducerWithReduxDevtools)(M);(0,o.useEffect)(()=>{P=null},[]);let{canonicalUrl:$}=(0,c.useUnwrapState)(L),{searchParams:F,pathname:U}=(0,o.useMemo)(()=>{let e=new URL($,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,w.hasBasePath)(e.pathname)?(0,b.removeBasePath)(e.pathname):e.pathname}},[$]),H=(0,o.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,o.startTransition)(()=>{N({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[N]),B=(0,o.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return N({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:k(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[N]);R=(0,o.useCallback)(e=>{(0,o.startTransition)(()=>{N({...e,type:a.ACTION_SERVER_ACTION})})},[N]);let q=(0,o.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}k(n)||(0,o.startTransition)(()=>{var e;N({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,o.startTransition)(()=>{var n;B(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,o.startTransition)(()=>{var n;B(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,o.startTransition)(()=>{N({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[N,B]);(0,o.useEffect)(()=>{window.next&&(window.next.router=q)},[q]),(0,o.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(O.pendingMpaPath=void 0,N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[N]);let{pushRef:G}=(0,c.useUnwrapState)(L);if(G.mpaNavigation){if(O.pendingMpaPath!==$){let e=window.location;G.pendingPush?e.assign($):e.replace($),O.pendingMpaPath=$}(0,o.use)(v.unresolvedThenable)}(0,o.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,o.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,i){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=I(t),i&&n(i)),e(t,r,i)},window.history.replaceState=function(e,r,i){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=I(e),i&&n(i)),t(e,r,i)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,o.startTransition)(()=>{N({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[N]);let{cache:W,tree:z,nextUrl:X,focusAndScrollRef:J}=(0,c.useUnwrapState)(L),V=(0,o.useMemo)(()=>(0,m.findHeadInCache)(W,z[1]),[W,z]),K=(0,o.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],i=Array.isArray(t),o=i?t[1]:t;!o||o.startsWith(S.PAGE_SEGMENT_KEY)||(i&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):i&&(n[t[0]]=t[1]),n=e(r,n))}return n})(z),[z]);if(null!==V){let[e,n]=V;t=(0,i.jsx)(A,{headCacheNode:e},n)}else t=null;let Y=(0,i.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,i.jsx)(g.AppRouterAnnouncer,{tree:z})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j,{appRouterState:(0,c.useUnwrapState)(L),sync:D}),(0,i.jsx)(u.PathParamsContext.Provider,{value:K,children:(0,i.jsx)(u.PathnameContext.Provider,{value:U,children:(0,i.jsx)(u.SearchParamsContext.Provider,{value:F,children:(0,i.jsx)(s.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:H,tree:z,focusAndScrollRef:J,nextUrl:X},children:(0,i.jsx)(s.AppRouterContext.Provider,{value:q,children:(0,i.jsx)(s.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:z,url:$,loading:W.loading},children:Y})})})})})})]})}function L(e){let{globalErrorComponent:t,...n}=e;return(0,i.jsx)(d.ErrorBoundary,{errorComponent:t,children:(0,i.jsx)(M,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return o}});let r=n(18993),i=n(51845);function o(e){let t=i.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return o}});let r=n(57437),i=n(54535);function o(e){let{Component:t,props:n}=e;return n.searchParams=(0,i.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return d},GlobalError:function(){return f},default:function(){return p}});let r=n(60917),i=n(57437),o=r._(n(2265)),s=n(35475),a=n(89721),l=n(51845),u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function c(e){let{error:t}=e,n=l.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class d extends o.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,i.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,i.jsxs)("html",{id:"__next_error__",children:[(0,i.jsx)("head",{}),(0,i.jsxs)("body",{children:[(0,i.jsx)(c,{error:t}),(0,i.jsx)("div",{style:u.error,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{style:u.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,i.jsx)("p",{style:u.text,children:"Digest: "+n}):null]})})]})]})}let p=f;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:o}=e,a=(0,s.usePathname)();return t?(0,i.jsx)(d,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:o}):(0,i.jsx)(i.Fragment,{children:o})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46177:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return i}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return o}});let r=n(98200),i=n(88968);function o(e){return e&&e.digest&&((0,i.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return R}});let r=n(60917),i=n(52140),o=n(57437),s=i._(n(2265)),a=r._(n(54887)),l=n(61956),u=n(44848),c=n(38137),d=n(61060),f=n(76015),p=n(7092),h=n(4123),g=n(80),_=n(73171),m=n(78505),v=n(28077),y=["bottom","height","left","right","top","width","x","y"];function b(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class w extends s.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,f.matchSegment)(t,e[n]))))return;let r=null,i=e.hashFragment;if(i&&(r="top"===i?document.body:null!=(n=document.getElementById(i))?n:document.getElementsByName(i)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return y.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(i){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!b(r,t)&&(e.scrollTop=0,b(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function S(e){let{segmentPath:t,children:n}=e,r=(0,s.useContext)(l.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,o.jsx)(w,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function E(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:i,tree:a,cacheKey:d}=e,p=(0,s.useContext)(l.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:g,tree:_}=p,m=r.get(d);if(void 0===m){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};m=e,r.set(d,e)}let y=null!==m.prefetchRsc?m.prefetchRsc:m.rsc,b=(0,s.useDeferredValue)(m.rsc,y),w="object"==typeof b&&null!==b&&"function"==typeof b.then?(0,s.use)(b):b;if(!w){let e=m.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,i]=t,o=2===t.length;if((0,f.matchSegment)(n[0],r)&&n[1].hasOwnProperty(i)){if(o){let t=e(void 0,n[1][i]);return[n[0],{...n[1],[i]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[i]:e(t.slice(2),n[1][i])}]}}return n}(["",...i],_),r=(0,v.hasInterceptionRouteInCurrentTree)(_);m.lazyData=e=(0,u.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),m.lazyDataResolved=!1}let t=(0,s.use)(e);m.lazyDataResolved||(setTimeout(()=>{(0,s.startTransition)(()=>{g({previousTree:_,serverResponse:t})})}),m.lazyDataResolved=!0),(0,s.use)(c.unresolvedThenable)}return(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:m.parallelRoutes,url:n,loading:m.loading},children:w})}function P(e){let{children:t,hasLoading:n,loading:r,loadingStyles:i,loadingScripts:a}=e;return n?(0,o.jsx)(s.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[i,a,r]}),children:t}):(0,o.jsx)(o.Fragment,{children:t})}function R(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:i,errorScripts:a,templateStyles:u,templateScripts:c,template:f,notFound:p,notFoundStyles:v}=e,y=(0,s.useContext)(l.LayoutRouterContext);if(!y)throw Error("invariant expected layout router to be mounted");let{childNodes:b,tree:w,url:R,loading:x}=y,O=b.get(t);O||(O=new Map,b.set(t,O));let T=w[1][t][0],k=(0,_.getSegmentValue)(T),j=[T];return(0,o.jsx)(o.Fragment,{children:j.map(e=>{let s=(0,_.getSegmentValue)(e),y=(0,m.createRouterCacheKey)(e);return(0,o.jsxs)(l.TemplateContext.Provider,{value:(0,o.jsx)(S,{segmentPath:n,children:(0,o.jsx)(d.ErrorBoundary,{errorComponent:r,errorStyles:i,errorScripts:a,children:(0,o.jsx)(P,{hasLoading:!!x,loading:null==x?void 0:x[0],loadingStyles:null==x?void 0:x[1],loadingScripts:null==x?void 0:x[2],children:(0,o.jsx)(g.NotFoundBoundary,{notFound:p,notFoundStyles:v,children:(0,o.jsx)(h.RedirectBoundary,{children:(0,o.jsx)(E,{parallelRouterKey:t,url:R,tree:w,childNodes:O,segmentPath:n,cacheKey:y,isActive:k===s})})})})})}),children:[u,c,f]},(0,m.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return o},matchSegment:function(){return i}});let r=n(87417),i=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],o=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35475:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return p},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let r=n(2265),i=n(61956),o=n(79060),s=n(73171),a=n(84541),l=n(52646),u=n(55501);function c(){let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(96149);e("useSearchParams()")}return t}function d(){return(0,r.useContext)(o.PathnameContext)}function f(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(o.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(i.LayoutRouterContext);return t?function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,s.getSegmentValue)(u);return!c||c.startsWith(a.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,n,!1,i))}(t.tree,e):null}function g(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return r.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(88968),i=n(98200);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return c}});let r=n(52140),i=n(57437),o=r._(n(2265)),s=n(35475),a=n(98200);n(31765);let l=n(61956);class u extends o.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function c(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,c=(0,s.usePathname)(),d=(0,o.useContext)(l.MissingSlotContext);return t?(0,i.jsx)(u,{pathname:c,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:d,children:a}):(0,i.jsx)(i.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98200:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return i},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return u}});let r=n(74441),i=n(70483);var o=i._("_maxConcurrency"),s=i._("_runningCount"),a=i._("_queue"),l=i._("_processNext");class u{enqueue(e){let t,n;let i=new Promise((e,r)=>{t=e,n=r}),o=async()=>{try{r._(this,s)[s]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,s)[s]--,r._(this,l)[l]()}};return r._(this,a)[a].push({promiseFn:i,task:o}),r._(this,l)[l](),i}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,l)[l](!0)}}constructor(e=5){Object.defineProperty(this,l,{value:c}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,o)[o]=e,r._(this,s)[s]=0,r._(this,a)[a]=[]}}function c(e){if(void 0===e&&(e=!1),(r._(this,s)[s]<r._(this,o)[o]||e)&&r._(this,a)[a].length>0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return c},RedirectErrorBoundary:function(){return u}});let r=n(52140),i=n(57437),o=r._(n(2265)),s=n(35475),a=n(88968);function l(e){let{redirect:t,reset:n,redirectType:r}=e,i=(0,s.useRouter)();return(0,o.useEffect)(()=>{o.default.startTransition(()=>{r===a.RedirectType.push?i.push(t,{}):i.replace(t,{}),n()})},[t,r,n,i]),null}class u extends o.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,i.jsx)(l,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function c(e){let{children:t}=e,n=(0,s.useRouter)();return(0,i.jsx)(u,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5001:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88968:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return g},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let o=n(20544),s=n(90295),a=n(5001),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(o)&&o in a.RedirectStatusCode}function p(e){return f(e)?e.digest.split(";",3)[2]:null}function h(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function g(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(52140),i=n(57437),o=r._(n(2265)),s=n(61956);function a(){let e=(0,o.useContext)(s.TemplateContext);return(0,i.jsx)(i.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20544:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(25575);function i(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22356:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return o}});let r=n(27420),i=n(92576);function o(e,t,n,o){let[s,a,l]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],i=a[3];t.loading=i,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,s,a,l,o)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,i.fillCacheWithNewSubTreeData)(t,e,n,o);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81935:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let l;let[u,c,d,f,p]=n;if(1===t.length){let e=s(n,r,t);return(0,o.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,g]=t;if(!(0,i.matchSegment)(h,u))return null;if(2===t.length)l=s(c[g],r,t);else if(null===(l=e(t.slice(2),c[g],r,a)))return null;let _=[t[0],{...c,[g]:l},d,f];return p&&(_[4]=!0),(0,o.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(84541),i=n(76015),o=n(50232);function s(e,t,n){let[o,a]=e,[l,u]=t;if(l===r.DEFAULT_SEGMENT_KEY&&o!==r.DEFAULT_SEGMENT_KEY)return e;if((0,i.matchSegment)(o,l)){let t={};for(let e in a)void 0!==u[e]?t[e]=s(a[e],u[e],n):t[e]=a[e];for(let e in u)t[e]||(t[e]=u[e]);let r=[o,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65556:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,i){let o=i.length<=2,[s,a]=i,l=(0,r.createRouterCacheKey)(a),u=n.parallelRoutes.get(s),c=t.parallelRoutes.get(s);c&&c!==u||(c=new Map(u),t.parallelRoutes.set(s,c));let d=null==u?void 0:u.get(l),f=c.get(l);if(o){f&&f.lazyData&&f!==d||c.set(l,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!f||!d){f||c.set(l,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return f===d&&(f={lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,head:f.head,prefetchHead:f.prefetchHead,parallelRoutes:new Map(f.parallelRoutes),lazyDataResolved:f.lazyDataResolved,loading:f.loading},c.set(l,f)),e(f,d,i.slice(2))}}});let r=n(78505);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return u}});let r=n(91182),i=n(84541),o=n(76015),s=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function l(e){return e.reduce((e,t)=>""===(t=s(t))||(0,i.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function u(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===i.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(i.PAGE_SEGMENT_KEY))return"";let o=[a(n)],s=null!=(t=e[1])?t:{},c=s.children?u(s.children):void 0;if(void 0!==c)o.push(c);else for(let[e,t]of Object.entries(s)){if("children"===e)continue;let n=u(t);void 0!==n&&o.push(n)}return l(o)}function c(e,t){let n=function e(t,n){let[i,s]=t,[l,c]=n,d=a(i),f=a(l);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)||f.startsWith(e)))return"";if(!(0,o.matchSegment)(i,l)){var p;return null!=(p=u(n))?p:""}for(let t in s)if(c[t]){let n=e(s[t],c[t]);if(null!==n)return a(l)+"/"+n}return null}(e,t);return null==n||"/"===n?n:l(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33456:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82952:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return u}});let r=n(33456),i=n(27420),o=n(5410),s=n(60305),a=n(24673),l=n(50232);function u(e){var t;let{buildId:n,initialTree:u,initialSeedData:c,urlParts:d,initialParallelRoutes:f,location:p,initialHead:h,couldBeIntercepted:g}=e,_=d.join("/"),m=!p,v={lazyData:null,rsc:c[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:m?new Map:f,lazyDataResolved:!1,loading:c[3]},y=p?(0,r.createHrefFromUrl)(p):_;(0,l.addRefreshMarkerToActiveParallelSegments)(u,y);let b=new Map;(null===f||0===f.size)&&(0,i.fillLazyItemsTillLeafWithHead)(v,void 0,u,c,h);let w={buildId:n,tree:u,cache:v,prefetchCache:b,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:y,nextUrl:null!=(t=(0,o.extractPathFromFlightRouterState)(u)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin),t=[["",u,null,null]];(0,s.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,g],tree:w.tree,prefetchCache:w.prefetchCache,nextUrl:w.nextUrl})}return w}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return i}});let r=n(84541);function i(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return c}});let r=n(6866),i=n(12846),o=n(83079),s=n(24673),a=n(37207),{createFromFetch:l}=n(6671);function u(e){return[(0,i.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function c(e,t,n,c,d){let f={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};d===s.PrefetchKind.AUTO&&(f[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(f[r.NEXT_URL]=n);let p=(0,a.hexHash)([f[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",f[r.NEXT_ROUTER_STATE_TREE],f[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:f}),s=(0,i.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?s:void 0,d=n.headers.get("content-type")||"",g=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL));if(d!==r.RSC_CONTENT_TYPE_HEADER||!n.ok)return e.hash&&(s.hash=e.hash),u(s.toString());let[m,v]=await l(Promise.resolve(n),{callServer:o.callServer});if(c!==m)return u(n.url);return[v,a,g,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,s,a){let l=s.length<=5,[u,c]=s,d=(0,o.createRouterCacheKey)(c),f=n.parallelRoutes.get(u);if(!f)return;let p=t.parallelRoutes.get(u);p&&p!==f||(p=new Map(f),t.parallelRoutes.set(u,p));let h=f.get(d),g=p.get(d);if(l){if(!g||!g.lazyData||g===h){let e=s[3];g={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(g,h,s[2]),(0,i.fillLazyItemsTillLeafWithHead)(g,h,s[2],e,s[4],a),p.set(d,g)}return}g&&h&&(g===h&&(g={lazyData:g.lazyData,rsc:g.rsc,prefetchRsc:g.prefetchRsc,head:g.head,prefetchHead:g.prefetchHead,parallelRoutes:new Map(g.parallelRoutes),lazyDataResolved:!1,loading:g.loading},p.set(d,g)),e(g,h,s.slice(2),a))}}});let r=n(94377),i=n(27420),o=n(78505);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,o,s,a,l){if(0===Object.keys(o[1]).length){t.head=a;return}for(let u in o[1]){let c;let d=o[1][u],f=d[0],p=(0,r.createRouterCacheKey)(f),h=null!==s&&void 0!==s[1][u]?s[1][u]:null;if(n){let r=n.parallelRoutes.get(u);if(r){let n;let o=(null==l?void 0:l.kind)==="auto"&&l.status===i.PrefetchCacheEntryStatus.reusable,s=new Map(r),c=s.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),lazyDataResolved:!1}:o&&c?{lazyData:c.lazyData,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,parallelRoutes:new Map(c.parallelRoutes),lazyDataResolved:c.lazyDataResolved,loading:c.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),lazyDataResolved:!1,loading:null},s.set(p,n),e(n,c,d,h||null,a,l),t.parallelRoutes.set(u,s);continue}}if(null!==h){let e=h[2],t=h[3];c={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let g=t.parallelRoutes.get(u);g?g.set(p,c):t.parallelRoutes.set(u,new Map([[p,c]])),e(c,void 0,d,h,a,l)}}}});let r=n(78505),i=n(24673);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return o}});let r=n(5410);function i(e){return void 0!==e}function o(e,t){var n,o,s;let a=null==(o=t.shouldScroll)||o,l=e.nextUrl;if(i(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?l=n:l||(l=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:i(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:i(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:i(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:i(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!i(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(s=null==t?void 0:t.scrollableSegments)?s:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:i(t.patchedTree)?t.patchedTree:e.tree,nextUrl:l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return i}});let r=n(95967);function i(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77058:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,i){let o=i.length<=2,[s,a]=i,l=(0,r.createRouterCacheKey)(a),u=n.parallelRoutes.get(s);if(!u)return;let c=t.parallelRoutes.get(s);if(c&&c!==u||(c=new Map(u),t.parallelRoutes.set(s,c)),o){c.delete(l);return}let d=u.get(l),f=c.get(l);f&&d&&(f===d&&(f={lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,head:f.head,prefetchHead:f.prefetchHead,parallelRoutes:new Map(f.parallelRoutes),lazyDataResolved:f.lazyDataResolved},c.set(l,f)),e(f,d,i.slice(2)))}}});let r=n(78505);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94377:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return i}});let r=n(78505);function i(e,t,n){for(let i in n[1]){let o=n[1][i][0],s=(0,r.createRouterCacheKey)(o),a=t.parallelRoutes.get(i);if(a){let t=new Map(a);t.delete(s),e.parallelRoutes.set(i,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63237:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],i=n[0];if(Array.isArray(r)&&Array.isArray(i)){if(r[0]!==i[0]||r[2]!==i[2])return!0}else if(r!==i)return!0;if(t[4])return!n[4];if(n[4])return!0;let o=Object.values(t[1])[0],s=Object.values(n[1])[0];return!o||!s||e(o,s)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return u},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,u,c){let d=n[1],f=a[1],p=u[1],h=t.parallelRoutes,g=new Map(h),_={},m=null;for(let t in f){let n;let a=f[t],u=d[t],v=h.get(t),y=p[t],b=a[0],w=(0,o.createRouterCacheKey)(b),S=void 0!==u?u[0]:void 0,E=void 0!==v?v.get(w):void 0;if(null!==(n=b===r.PAGE_SEGMENT_KEY?s(a,void 0!==y?y:null,c):b===r.DEFAULT_SEGMENT_KEY?void 0!==u?{route:u,node:null,children:null}:s(a,void 0!==y?y:null,c):void 0!==S&&(0,i.matchSegment)(b,S)&&void 0!==E&&void 0!==u?null!=y?e(E,u,a,y,c):function(e){let t=l(e,null,null);return{route:e,node:t,children:null}}(a):s(a,void 0!==y?y:null,c))){null===m&&(m=new Map),m.set(t,n);let e=n.node;if(null!==e){let n=new Map(v);n.set(w,e),g.set(t,n)}_[t]=n.route}else _[t]=a}if(null===m)return null;let v={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:g,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:v,children:m}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],i=t.parallelRoutes,s=new Map(i);for(let t in r){let n=r[t],a=n[0],l=(0,o.createRouterCacheKey)(a),u=i.get(t);if(void 0!==u){let r=u.get(l);if(void 0!==r){let i=e(r,n),o=new Map(u);o.set(l,i),s.set(t,o)}}}let a=t.rsc,l=f(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:l?t.prefetchHead:null,prefetchRsc:l?t.prefetchRsc:null,loading:l?t.loading:null,parallelRoutes:s,lazyDataResolved:!1}}}});let r=n(84541),i=n(76015),o=n(78505);function s(e,t,n){let r=l(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],s=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,s){let a=e;for(let e=0;e<t.length;e+=2){let n=t[e],r=t[e+1],o=a.children;if(null!==o){let e=o.get(n);if(void 0!==e){let t=e.route[0];if((0,i.matchSegment)(r,t)){a=e;continue}}}return}(function e(t,n,r,s){let a=t.children,l=t.node;if(null===a){null!==l&&(function e(t,n,r,s,a){let l=n[1],u=r[1],d=s[1],p=t.parallelRoutes;for(let t in l){let n=l[t],r=u[t],s=d[t],f=p.get(t),h=n[0],g=(0,o.createRouterCacheKey)(h),_=void 0!==f?f.get(g):void 0;void 0!==_&&(void 0!==r&&(0,i.matchSegment)(h,r[0])&&null!=s?e(_,n,r,s,a):c(n,_,null))}let h=t.rsc,g=s[2];null===h?t.rsc=g:f(h)&&h.resolve(g);let _=t.head;f(_)&&_.resolve(a)}(l,t.route,n,r,s),t.node=null);return}let u=n[1],d=r[1];for(let t in n){let n=u[t],r=d[t],o=a.get(t);if(void 0!==o){let t=o.route[0];if((0,i.matchSegment)(n[0],t)&&null!=r)return e(o,n,r,s)}}})(a,n,r,s)}(e,t,r,s,a)}u(e,null)},t=>{u(e,t)})}function l(e,t,n){let r=e[1],i=null!==t?t[1]:null,s=new Map;for(let e in r){let t=r[e],a=null!==i?i[e]:null,u=t[0],c=(0,o.createRouterCacheKey)(u),d=l(t,void 0===a?null:a,n),f=new Map;f.set(c,d),s.set(e,f)}let a=0===s.size,u=null!==t?t[2]:null,c=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:s,prefetchRsc:void 0!==u?u:null,prefetchHead:a?n:null,loading:void 0!==c?c:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function u(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)c(e.route,n,t);else for(let e of r.values())u(e,t);e.node=null}function c(e,t,n){let r=e[1],i=t.parallelRoutes;for(let e in r){let t=r[e],s=i.get(e);if(void 0===s)continue;let a=t[0],l=(0,o.createRouterCacheKey)(a),u=s.get(l);void 0!==u&&c(t,u,n)}let s=t.rsc;f(s)&&(null===n?s.resolve(null):s.reject(n));let a=t.head;f(a)&&a.resolve(null)}let d=Symbol();function f(e){return e&&e.tag===d}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=d,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return u},getOrCreatePrefetchCacheEntry:function(){return l},prunePrefetchCache:function(){return d}});let r=n(33456),i=n(44848),o=n(24673),s=n(24819);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function l(e){let t,{url:n,nextUrl:r,tree:i,buildId:s,prefetchCache:l,kind:u}=e,d=a(n,r),f=l.get(d);if(f)t=f;else{let e=a(n),r=l.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==o.PrefetchKind.FULL&&u===o.PrefetchKind.FULL)?c({tree:i,url:n,buildId:s,nextUrl:r,prefetchCache:l,kind:null!=u?u:o.PrefetchKind.TEMPORARY}):(u&&t.kind===o.PrefetchKind.TEMPORARY&&(t.kind=u),t):c({tree:i,url:n,buildId:s,nextUrl:r,prefetchCache:l,kind:u||o.PrefetchKind.TEMPORARY})}function u(e){let{nextUrl:t,tree:n,prefetchCache:r,url:i,kind:s,data:l}=e,[,,,u]=l,c=u?a(i,t):a(i),d={treeAtTimeOfPrefetch:n,data:Promise.resolve(l),kind:s,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:c,status:o.PrefetchCacheEntryStatus.fresh};return r.set(c,d),d}function c(e){let{url:t,kind:n,tree:r,nextUrl:l,buildId:u,prefetchCache:c}=e,d=a(t),f=s.prefetchQueue.enqueue(()=>(0,i.fetchServerResponse)(t,r,l,u,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,i=a(t),o=r.get(i);if(!o)return;let s=a(t,n);r.set(s,o),r.delete(i)}({url:t,nextUrl:l,prefetchCache:c}),e})),p={treeAtTimeOfPrefetch:r,data:f,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:d,status:o.PrefetchCacheEntryStatus.fresh};return c.set(d,p),p}function d(e){for(let[t,n]of e)h(n)===o.PrefetchCacheEntryStatus.expired&&e.delete(t)}let f=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+f?r?o.PrefetchCacheEntryStatus.reusable:o.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now()<n+p?o.PrefetchCacheEntryStatus.stale:"full"===t&&Date.now()<n+p?o.PrefetchCacheEntryStatus.reusable:o.PrefetchCacheEntryStatus.expired}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fastRefreshReducer",{enumerable:!0,get:function(){return r}}),n(44848),n(33456),n(81935),n(63237),n(95967),n(44510),n(22356),n(12846),n(77831),n(28077);let r=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39320:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return i}});let r=n(78505);function i(e,t){return function e(t,n,i){if(0===Object.keys(n).length)return[t,i];for(let o in n){let[s,a]=n[o],l=t.parallelRoutes.get(o);if(!l)continue;let u=(0,r.createRouterCacheKey)(s),c=l.get(u);if(!c)continue;let d=e(c,a,i+"/"+u);if(d)return d}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73171:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28077:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[n,i]=t;if(Array.isArray(n)&&("di"===n[2]||"ci"===n[2])||"string"==typeof n&&(0,r.isInterceptionRouteAppPath)(n))return!0;if(i){for(let t in i)if(e(i[t]))return!0}return!1}}});let r=n(91182);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95967:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{handleExternalUrl:function(){return _},navigateReducer:function(){return v}}),n(44848);let r=n(33456),i=n(77058),o=n(81935),s=n(53728),a=n(63237),l=n(24673),u=n(44510),c=n(22356),d=n(24819),f=n(12846),p=n(84541);n(56118);let h=n(60305),g=n(65556);function _(e,t,n,r){return t.mpaNavigation=!0,t.canonicalUrl=n,t.pendingPush=r,t.scrollableSegments=void 0,(0,u.handleMutable)(e,t)}function m(e){let t=[],[n,r]=e;if(0===Object.keys(r).length)return[[n]];for(let[e,i]of Object.entries(r))for(let r of m(i))""===n?t.push([e,...r]):t.push([n,e,...r]);return t}let v=function(e,t){let{url:n,isExternalUrl:v,navigateType:y,shouldScroll:b}=t,w={},{hash:S}=n,E=(0,r.createHrefFromUrl)(n),P="push"===y;if((0,h.prunePrefetchCache)(e.prefetchCache),w.preserveCustomHistoryState=!1,v)return _(e,w,n.toString(),P);let R=(0,h.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,tree:e.tree,buildId:e.buildId,prefetchCache:e.prefetchCache}),{treeAtTimeOfPrefetch:x,data:O}=R;return d.prefetchQueue.bump(O),O.then(t=>{let[n,d]=t,h=!1;if(R.lastUsedTime||(R.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,w,n,P);if(document.getElementById("__next-page-redirect"))return _(e,w,E,P);let v=e.tree,y=e.cache,O=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],u=["",...n],d=(0,o.applyRouterStatePatchToTree)(u,v,r,E);if(null===d&&(d=(0,o.applyRouterStatePatchToTree)(u,x,r,E)),null!==d){if((0,a.isNavigatingToNewRootLayout)(v,d))return _(e,w,E,P);let o=(0,f.createEmptyCacheNode)(),b=!1;for(let e of(R.status!==l.PrefetchCacheEntryStatus.stale||h?b=(0,c.applyFlightData)(y,o,t,R):(b=function(e,t,n,r){let i=!1;for(let o of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(r).map(e=>[...n,...e])))(0,g.clearCacheNodeDataForSegmentPath)(e,t,o),i=!0;return i}(o,y,n,r),R.lastUsedTime=Date.now()),(0,s.shouldHardNavigate)(u,v)?(o.rsc=y.rsc,o.prefetchRsc=y.prefetchRsc,(0,i.invalidateCacheBelowFlightSegmentPath)(o,y,n),w.cache=o):b&&(w.cache=o,y=o),v=d,m(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&O.push(t)}}}return w.patchedTree=v,w.canonicalUrl=d?(0,r.createHrefFromUrl)(d):E,w.pendingPush=P,w.scrollableSegments=O,w.hashFragment=S,w.shouldScroll=b,(0,u.handleMutable)(e,w)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24819:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return s},prefetchReducer:function(){return a}});let r=n(6866),i=n(29744),o=n(60305),s=new i.PromiseQueue(5);function a(e,t){(0,o.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,o.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99601:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(44848),i=n(33456),o=n(81935),s=n(63237),a=n(95967),l=n(44510),u=n(27420),c=n(12846),d=n(77831),f=n(28077),p=n(50232);function h(e,t){let{origin:n}=t,h={},g=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let m=(0,c.createEmptyCacheNode)(),v=(0,f.hasInterceptionRouteInCurrentTree)(e.tree);return m.lazyData=(0,r.fetchServerResponse)(new URL(g,n),[_[0],_[1],_[2],"refetch"],v?e.nextUrl:null,e.buildId),m.lazyData.then(async n=>{let[r,c]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(m.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,l=(0,o.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===l)return(0,d.handleSegmentMismatch)(e,t,r);if((0,s.isNavigatingToNewRootLayout)(_,l))return(0,a.handleExternalUrl)(e,h,g,e.pushRef.pendingPush);let f=c?(0,i.createHrefFromUrl)(c):void 0;c&&(h.canonicalUrl=f);let[y,b]=n.slice(-2);if(null!==y){let e=y[2];m.rsc=e,m.prefetchRsc=null,(0,u.fillLazyItemsTillLeafWithHead)(m,void 0,r,y,b),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:l,updatedCache:m,includeNextUrl:v,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=m,h.patchedTree=l,h.canonicalUrl=g,_=l}return(0,l.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return o}});let r=n(33456),i=n(5410);function o(e,t){var n;let{url:o,tree:s}=t,a=(0,r.createHrefFromUrl)(o),l=s||e.tree,u=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:u,prefetchCache:e.prefetchCache,tree:l,nextUrl:null!=(n=(0,i.extractPathFromFlightRouterState)(l))?n:o.pathname}}n(56118),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13722:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return y}});let r=n(83079),i=n(6866),o=n(1634),s=n(33456),a=n(95967),l=n(81935),u=n(63237),c=n(44510),d=n(27420),f=n(12846),p=n(28077),h=n(77831),g=n(50232),{createFromFetch:_,encodeReply:m}=n(6671);async function v(e,t,n){let s,{actionId:a,actionArgs:l}=n,u=await m(l),c=await fetch("",{method:"POST",headers:{Accept:i.RSC_CONTENT_TYPE_HEADER,[i.ACTION]:a,[i.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[i.NEXT_URL]:t}:{}},body:u}),d=c.headers.get("x-action-redirect");try{let e=JSON.parse(c.headers.get("x-action-revalidated")||"[[],0,0]");s={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){s={paths:[],tag:!1,cookie:!1}}let f=d?new URL((0,o.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(c.headers.get("content-type")===i.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(c),{callServer:r.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:f,revalidatedParts:s}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:f,revalidatedParts:s}}return{redirectLocation:f,revalidatedParts:s}}function y(e,t){let{resolve:n,reject:r}=t,i={},o=e.canonicalUrl,_=e.tree;i.preserveCustomHistoryState=!1;let m=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return i.inFlightServerAction=v(e,m,t),i.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:v,redirectLocation:y}=r;if(y&&(e.pushRef.pendingPush=!0,i.pendingPush=!0),!v)return(n(p),y)?(0,a.handleExternalUrl)(e,i,y.href,e.pushRef.pendingPush):e;if("string"==typeof v)return(0,a.handleExternalUrl)(e,i,v,e.pushRef.pendingPush);if(i.inFlightServerAction=null,y){let e=(0,s.createHrefFromUrl)(y,!1);i.canonicalUrl=e}for(let n of v){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,c=(0,l.applyRouterStatePatchToTree)([""],_,r,y?(0,s.createHrefFromUrl)(y):e.canonicalUrl);if(null===c)return(0,h.handleSegmentMismatch)(e,t,r);if((0,u.isNavigatingToNewRootLayout)(_,c))return(0,a.handleExternalUrl)(e,i,o,e.pushRef.pendingPush);let[p,v]=n.slice(-2),b=null!==p?p[2]:null;if(null!==b){let t=(0,f.createEmptyCacheNode)();t.rsc=b,t.prefetchRsc=null,(0,d.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,v),await (0,g.refreshInactiveParallelSegments)({state:e,updatedTree:c,updatedCache:t,includeNextUrl:!!m,canonicalUrl:i.canonicalUrl||e.canonicalUrl}),i.cache=t,i.prefetchCache=new Map}i.patchedTree=c,_=c}return n(p),(0,c.handleMutable)(e,i)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68448:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return d}});let r=n(33456),i=n(81935),o=n(63237),s=n(95967),a=n(22356),l=n(44510),u=n(12846),c=n(77831);function d(e,t){let{serverResponse:n}=t,[d,f]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof d)return(0,s.handleExternalUrl)(e,p,d,e.pushRef.pendingPush);let h=e.tree,g=e.cache;for(let n of d){let l=n.slice(0,-4),[d]=n.slice(-3,-2),_=(0,i.applyRouterStatePatchToTree)(["",...l],h,d,e.canonicalUrl);if(null===_)return(0,c.handleSegmentMismatch)(e,t,d);if((0,o.isNavigatingToNewRootLayout)(h,_))return(0,s.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let m=f?(0,r.createHrefFromUrl)(f):void 0;m&&(p.canonicalUrl=m);let v=(0,u.createEmptyCacheNode)();(0,a.applyFlightData)(g,v,n),p.patchedTree=_,p.cache=v,g=v,h=_}return(0,l.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50232:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,i,,s]=t;for(let a in r.includes(o.PAGE_SEGMENT_KEY)&&"refresh"!==s&&(t[2]=n,t[3]="refresh"),i)e(i[a],n)}},refreshInactiveParallelSegments:function(){return s}});let r=n(22356),i=n(44848),o=n(84541);async function s(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:o,includeNextUrl:s,fetchedSegments:l,rootTree:u=n,canonicalUrl:c}=e,[,d,f,p]=n,h=[];if(f&&f!==c&&"refresh"===p&&!l.has(f)){l.add(f);let e=(0,i.fetchServerResponse)(new URL(f,location.origin),[u[0],u[1],u[2],"refetch"],s?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(o,o,e)});h.push(e)}for(let e in d){let n=a({state:t,updatedTree:d[e],updatedCache:o,includeNextUrl:s,fetchedSegments:l,rootTree:u,canonicalUrl:c});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24673:function(e,t){"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let s="refresh",a="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=r||(r={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return d}});let r=n(24673),i=n(95967),o=n(68448),s=n(77784),a=n(99601),l=n(24819),u=n(44529),c=n(13722),d="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,i.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,o.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,s.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,u.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,l.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,c.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[i,o]=n,[s,a]=t;return(0,r.matchSegment)(s,i)?!(t.length<=2)&&e(t.slice(2),o[a]):!!Array.isArray(s)}}});let r=n(76015);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return s}});let r=n(51845),i=n(86999),o=n(30650);function s(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,i.trackDynamicDataAccessed)(t,"searchParams."+n),o.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,i.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,i.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51845:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(20030);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36864:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return i}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38137:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return l},useUnwrapState:function(){return a}});let r=n(52140)._(n(2265)),i=n(24673),o=n(2103);function s(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=s(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=s(r)}return t}return Array.isArray(e)?e.map(s):e}function a(e){return(0,i.isThenable)(e)?(0,r.use)(e):e}let l="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),i=(0,r.useContext)(o.ActionQueueContext);if(!i)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),l=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==l.current){if(void 0===l.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){l.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(s(e)),i&&(i.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,i]),[t,(0,r.useCallback)(t=>{i.state||(i.state=e),i.dispatch(t,n)},[i,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},s(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11235:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n(4068).D(...t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let r=n(10580);function i(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8221:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return r},default:function(){return s},isEqualNode:function(){return o}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(e){let{type:t,props:n}=e,i=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let o=r[e]||e.toLowerCase();"script"===t&&("async"===o||"defer"===o||"noModule"===o)?i[o]=!!n[e]:i.setAttribute(o,n[e])}let{children:o,dangerouslySetInnerHTML:s}=n;return s?i.innerHTML=s.__html||"":o&&(i.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),i}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function s(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,i="";if(r){let{children:e}=r.props;i="string"==typeof e?e:Array.isArray(e)?e.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),s=Number(r.content),a=[];for(let t=0,n=r.previousElementSibling;t<s;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&a.push(n)}let u=t.map(i).filter(e=>{for(let t=0,n=a.length;t<n;t++)if(o(a[t],e))return a.splice(t,1),!1;return!0});a.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>n.insertBefore(e,r)),r.content=(s-a.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});let r=n(26674),i=n(63381),o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:o}=(0,i.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+o};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(18993);function i(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35076:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(11283),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71154:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return i}});let r=n(63381);function i(e,t){{let{pathname:n}=(0,r.parsePath)(e),i=n.toLowerCase(),o=null==t?void 0:t.toLowerCase();return t&&(i.startsWith("/"+o+"/")||i==="/"+o)?(n.length===t.length+1?"/":"")+e.slice(t.length+1):e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(48637),i=n(57497),o=n(17053),s=n(3987),a=n(33068),l=n(53552),u=n(86279),c=n(37205);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.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)(h);f=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:s,params:a}=(0,c.interpolateAs)(e.pathname,e.pathname,n);s&&(t=(0,i.formatWithValidation)({pathname:s,hash:e.hash,query:(0,o.omit)(n,a)}))}let s=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[s,t||s]:s}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6680:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createRouteLoader:function(){return g},getClientBuildManifest:function(){return p},isAssetError:function(){return u},markAssetError:function(){return l}}),n(60917),n(96899);let r=n(36390),i=n(63515),o=n(65157);function s(e,t,n){let r,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let o=new Promise(e=>{r=e});return t.set(e,i={resolve:r,future:o}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):o}let a=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,a,{})}function u(e){return e&&a in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,o.getDeploymentIdQueryOrEmptyString)();function f(e,t,n){return new Promise((r,o)=>{let s=!1;e.then(e=>{s=!0,r(e)}).catch(o),(0,i.requestIdleCallback)(()=>setTimeout(()=>{s||o(n)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):f(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function h(e,t){return p().then(n=>{if(!(t in n))throw l(Error("Failed to lookup route: "+t));let i=n[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:i.filter(e=>e.endsWith(".js")).map(e=>(0,r.__unsafeCreateTrustedScriptURL)(e)+d()),css:i.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function g(e){let t=new Map,n=new Map,r=new Map,o=new Map;function a(e){{var t;let r=n.get(e.toString());return r||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r))}}function u(e){let t=r.get(e);return t||r.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>s(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),o.delete(e))})},loadRoute(n,r){return s(n,o,()=>{let i;return f(h(e,n).then(e=>{let{scripts:r,css:i}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(a)),Promise.all(i.map(u))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+n))).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(r)throw e;return{error:e}}).finally(()=>null==i?void 0:i())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,i)=>{if(document.querySelector('\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]'))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>i(l(Error("Failed to prefetch: "+t))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,i.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27325:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return o.default},createRouter:function(){return g},default:function(){return p},makePublicRouterInstance:function(){return _},useRouter:function(){return h},withRouter:function(){return l.default}});let r=n(60917),i=r._(n(2265)),o=r._(n(28384)),s=n(25523),a=r._(n(2467)),l=r._(n(36146)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>o.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get:()=>f()[e]})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f()[e](...n)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{u.ready(()=>{o.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i="on"+e.charAt(0).toUpperCase()+e.substring(1);if(u[i])try{u[i](...n)}catch(e){console.error("Error when running the Router event: "+i),console.error((0,a.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=u;function h(){let e=i.default.useContext(s.RouterContext);if(!e)throw Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function g(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.router=new o.default(...t),u.readyCallbacks.forEach(e=>e()),u.readyCallbacks=[],u.router}function _(e){let t={};for(let n of c){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=o.default.events,d.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e[n](...r)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let r=n(60917),i=n(52140),o=n(57437),s=r._(n(54887)),a=i._(n(2265)),l=n(48701),u=n(8221),c=n(63515),d=new Map,f=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=e=>{if(s.default.preinit){e.forEach(e=>{s.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},g=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:s="",strategy:a="afterInteractive",onError:l,stylesheets:c}=e,g=n||t;if(g&&f.has(g))return;if(d.has(t)){f.add(g),d.get(t).then(r,l);return}let _=()=>{i&&i(),f.add(g)},m=document.createElement("script"),v=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),r&&r.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[n,r]of(o?(m.innerHTML=o.__html||"",_()):s?(m.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",_()):t&&(m.src=t,d.set(t,v)),Object.entries(e))){if(void 0===r||p.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();m.setAttribute(e,r)}"worker"===a&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",a),c&&h(c),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))}):g(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function v(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:d,stylesheets:p,...h}=e,{updateScripts:_,scripts:m,getIsSsr:v,appDir:y,nonce:b}=(0,a.useContext)(l.HeadManagerContext),w=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||n;w.current||(i&&e&&f.has(e)&&i(),w.current=!0)},[i,t,n]);let S=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{!S.current&&("afterInteractive"===u?g(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))})),S.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(_?(m[u]=(m[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:d,...h}]),_(m)):v&&v()?f.add(t||n):v&&!v()&&g(e)),y){if(p&&p.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return n?(s.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===u&&n&&s.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36390:function(e,t){"use strict";let n;function r(e){var t;return(null==(t=function(){if(void 0===n&&"undefined"!=typeof window){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36146:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}}),n(60917);let r=n(57437);n(2265);let i=n(27325);function o(e){function t(t){return(0,r.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12010:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,i=e[r];if(0<o(i,t))e[r]=t,e[n]=i,n=r;else break}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else if(u<i&&0>o(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s,a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],d=[],f=1,p=null,h=3,g=!1,_=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(d);null!==t;){if(null===t.callback)i(d);else if(t.startTime<=e)i(d),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(d)}}function S(e){if(m=!1,w(e),!_){if(null!==r(c))_=!0,C();else{var t=r(d);null!==t&&I(S,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,P=-1,R=5,x=-1;function O(){return!(t.unstable_now()-x<R)}function T(){if(E){var e=t.unstable_now();x=e;var n=!0;try{e:{_=!1,m&&(m=!1,y(P),P=-1),g=!0;var o=h;try{t:{for(w(e),p=r(c);null!==p&&!(p.expirationTime>e&&O());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var l=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof l){p.callback=l,w(e),n=!0;break t}p===r(c)&&i(c),w(e)}else i(c);p=r(c)}if(null!==p)n=!0;else{var u=r(d);null!==u&&I(S,u.startTime-e),n=!1}}break e}finally{p=null,h=o,g=!1}n=void 0}}finally{n?s():E=!1}}}if("function"==typeof b)s=function(){b(T)};else if("undefined"!=typeof MessageChannel){var k=new MessageChannel,j=k.port2;k.port1.onmessage=T,s=function(){j.postMessage(null)}}else s=function(){v(T,0)};function C(){E||(E=!0,s())}function I(e,n){P=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||g||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=o+a,e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:a,sortIndex:-1},o>s?(e.sortIndex=o,n(d,e),null===r(c)&&e===r(d)&&(m?(y(P),P=-1):m=!0,I(S,o-s))):(e.sortIndex=a,n(c,e),_||g||(_=!0,C())),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},71767:function(e,t,n){"use strict";e.exports=n(12010)},61875:function(e,t){"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return n}})},2467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return i},getProperError:function(){return o}});let r=n(99832);function i(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return i(e)?e:Error((0,r.isPlainObject)(e)?JSON.stringify(e):e+"")}},60934:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return r},isFullStringUrl:function(){return i},parseUrl:function(){return o}});let n="http://n";function r(e){return new URL(e,n).pathname}function i(e){return/https?:\/\//.test(e)}function o(e){let t;try{t=new URL(e,n)}catch{}return t}},86999:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return f},createPostponedAbortSignal:function(){return v},createPrerenderState:function(){return u},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return c},trackDynamicDataAccessed:function(){return d},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return g}});let i=(r=n(2265))&&r.__esModule?r:{default:r},o=n(46177),s=n(36864),a=n(60934),l="function"==typeof i.default.unstable_postpone;function u(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function c(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new s.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new o.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function d(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new s.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new o.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function f({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){m();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),i.default.unstable_postpone(r)}function g(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
${t}`))}function m(){if(!l)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function v(e){m();let t=new AbortController;try{i.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},87417:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return i}});let r=n(91182);function i(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},70647:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},91182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return i},extractInterceptionRouteInformation:function(){return s},isInterceptionRouteAppPath:function(){return o}});let r=n(20926),i=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function s(e){let t,n,o;for(let r of e.split("/"))if(n=i.find(e=>r.startsWith(e))){[t,o]=e.split(n,2);break}if(!t||!n||!o)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let s=t.split("/");if(s.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=s.slice(0,-2).concat(o).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},30650:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},61956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return s},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return l},TemplateContext:function(){return a}});let r=n(60917)._(n(2265)),i=r.default.createContext(null),o=r.default.createContext(null),s=r.default.createContext(null),a=r.default.createContext(null),l=r.default.createContext(new Set)},74574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return n}});class n{static from(e,t){void 0===t&&(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 n=1;n<=this.numHashes;n++){let r=function(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+n)%this.numBits;t.push(r)}return t}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)}}},90042:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},37207:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)&4294967295;return t>>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},48701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(60917)._(n(2265)).default.createContext({})},79060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return s},PathnameContext:function(){return o},SearchParamsContext:function(){return i}});let r=n(2265),i=(0,r.createContext)(null),o=(0,r.createContext)(null),s=(0,r.createContext)(null)},4068:function(e,t){"use strict";function n(e,t,n){if(e)for(let o of(n&&(n=n.toLowerCase()),e)){var r,i;if(t===(null==(r=o.domain)?void 0:r.split(":",1)[0].toLowerCase())||n===o.defaultLocale.toLowerCase()||(null==(i=o.locales)?void 0:i.some(e=>e.toLowerCase()===n)))return o}}Object.defineProperty(t,"D",{enumerable:!0,get:function(){return n}})},43579:function(e,t){"use strict";function n(e,t){let n;let r=e.split("/");return(t||[]).some(t=>!!r[1]&&r[1].toLowerCase()===t.toLowerCase()&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},99832:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},18993:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return i}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},29081:function(e,t){"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},8645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});let r=n(86279),i=n(27524);function o(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},78162:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},27524:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},25523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(60917)._(n(2265)).default.createContext(null)},2103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return c}});let r=n(52140),i=n(24673),o=n(91450),s=r._(n(2265)),a=s.default.createContext(null);function l(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?u({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:i.ACTION_REFRESH,origin:window.location.origin},t)))}async function u(e){let{actionQueue:t,action:n,setState:r}=e,o=t.state;if(!o)throw Error("Invariant: Router state not initialized");t.pending=n;let s=n.payload,a=t.action(o,s);function u(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(s,e),l(t,r),n.resolve(e))}(0,i.isThenable)(a)?a.then(u,e=>{l(t,r),n.reject(e)}):u(a)}function c(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==i.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,s.startTransition)(()=>{n(e)})}let o={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=o,u({actionQueue:e,action:o,setState:n})):t.type===i.ACTION_NAVIGATE||t.type===i.ACTION_RESTORE?(e.pending.discarded=!0,e.last=o,e.pending.payload.type===i.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),u({actionQueue:e,action:o,setState:n})):(null!==e.last&&(e.last.next=o),e.last=o)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,o.reducer)(e,t)},pending:null,last:null};return e}},28384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createKey:function(){return G},default:function(){return X},matchesMiddleware:function(){return N}});let r=n(60917),i=n(52140),o=n(26674),s=n(6680),a=n(88003),l=i._(n(2467)),u=n(8645),c=n(43579),d=r._(n(29081)),f=n(3987),p=n(38104),h=n(85907);n(72431);let g=n(4199),_=n(9964),m=n(57497),v=n(11235),y=n(63381),b=n(55449),w=n(71154),S=n(35076),E=n(1634),P=n(11283),R=n(25246),x=n(61875),O=n(93331),T=n(79114),k=n(75902),j=n(53552),C=n(86146),I=n(17053),A=n(37205),M=n(7092);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function N(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,y.parsePath)(e.asPath),r=(0,P.hasBasePath)(n)?(0,S.removeBasePath)(n):n,i=(0,E.addBasePath)((0,b.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function D(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,n){let[r,i]=(0,R.resolveHref)(e,t,!0),o=(0,f.getLocationOrigin)(),s=r.startsWith(o),a=i&&i.startsWith(o);r=D(r),i=i?D(i):i;let l=s?r:(0,E.addBasePath)(r),u=n?D((0,R.resolveHref)(e,n)):i||r;return{url:l,as:a?u:(0,E.addBasePath)(u)}}function F(e,t){let n=(0,o.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,_.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,o.removeTrailingSlash)(e))}async function U(e){if(!await N(e)||!e.fetchData)return null;let t=await e.fetchData(),n=await function(e,t,n){let r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),a=i||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||a||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(a=l),a){if(a.startsWith("/")){let t=(0,h.parseRelativeUrl)(a),l=(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),u=(0,o.removeTrailingSlash)(l.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,s.getClientBuildManifest)()]).then(o=>{let[s,{__rewrites:a}]=o,d=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(d)||!i&&s.includes((0,c.normalizeLocalePath)((0,S.removeBasePath)(d),n.router.locales).pathname)){let n=(0,O.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:r,parseData:!0});d=(0,E.addBasePath)(n.pathname),t.pathname=d}if(!s.includes(u)){let e=F(u,s);e!==u&&(u=e)}let f=s.includes(u)?u:F((0,c.normalizeLocalePath)((0,S.removeBasePath)(t.pathname),n.router.locales).pathname,s);if((0,p.isDynamicRoute)(f)){let e=(0,g.getRouteMatcher)((0,_.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,T.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""})+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,T.formatNextPathnameInfo)({...(0,O.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.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:n}}let H=Symbol("SSG_DATA_NOT_FOUND");function B(e){try{return JSON.parse(e)}catch(e){return null}}function q(e){let{dataHref:t,inflightCache:n,isPrefetch:r,hasMiddleware:i,isServerRender:o,parseJSON:a,persistCache:l,isBackground:u,unstable_skipClientCache:c}=e,{href:d}=new URL(t,window.location.href),f=e=>{var u;return(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(i=>!i.ok&&n>1&&i.status>=500?e(t,n-1,r):i)})(t,o?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&i?{"x-middleware-prefetch":"1"}:{}),method:null!=(u=null==e?void 0:e.method)?u:"GET"}).then(n=>n.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:n,text:"",json:{},cacheKey:d}:n.text().then(e=>{if(!n.ok){if(i&&[301,302,307,308].includes(n.status))return{dataHref:t,response:n,text:e,json:{},cacheKey:d};if(404===n.status){var r;if(null==(r=B(e))?void 0:r.notFound)return{dataHref:t,json:{notFound:H},response:n,text:e,cacheKey:d}}let a=Error("Failed to load static props");throw o||(0,s.markAssetError)(a),a}return{dataHref:t,json:a?B(e):null,response:n,text:e,cacheKey:d}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[d],e)).catch(e=>{throw c||delete n[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,s.markAssetError)(e),e})};return c&&l?f({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(n[d]=Promise.resolve(e)),e)):void 0!==n[d]?n[d]:n[d]=f(u?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function W(e){let{url:t,router:n}=e;if(t===(0,E.addBasePath)((0,b.addLocale)(n.asPath,n.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let z=e=>{let{route:t,router:n}=e,r=!1,i=n.clc=()=>{r=!0};return()=>{if(r){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}i===n.clc&&(n.clc=null)}};class X{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,n,r){{let l=!1,u=!1;for(let c of[e,t])if(c){let t=(0,o.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,E.addBasePath)((0,b.addLocale)(t,n||this.locale));if(t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var i,s,a;for(let e of(l=l||!!(null==(i=this._bfl_s)?void 0:i.contains(t))||!!(null==(s=this._bfl_s)?void 0:s.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e<t.length+1;e++){let n=t.slice(0,e).join("/");if(n&&(null==(a=this._bfl_d)?void 0:a.contains(n))){u=!0;break}}}if(l||u){if(r)return!0;return W({url:(0,E.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,n,r,i){var u,d,R,x,O,T,C,M,D,U;let B,q;if(!(0,j.isLocalURL)(t))return W({url:t,router:this}),!1;let G=1===r._h;G||r.shallow||await this._bfl(n,void 0,r.locale);let z=G||r._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(n).pathname,J={...this.state},V=!0!==this.isReady;this.isReady=!0;let K=this.isSsr;if(G||(this.isSsr=!1),G&&this.clc)return!1;let Y=J.locale;{J.locale=!1===r.locale?this.defaultLocale:r.locale||J.locale,void 0===r.locale&&(r.locale=J.locale);let e=(0,h.parseRelativeUrl)((0,P.hasBasePath)(n)?(0,S.removeBasePath)(n):n),i=(0,c.normalizeLocalePath)(e.pathname,this.locales);i.detectedLocale&&(J.locale=i.detectedLocale,e.pathname=(0,E.addBasePath)(e.pathname),n=(0,m.formatWithValidation)(e),t=(0,E.addBasePath)((0,c.normalizeLocalePath)((0,P.hasBasePath)(t)?(0,S.removeBasePath)(t):t,this.locales).pathname));let o=!1;(null==(d=this.locales)?void 0:d.includes(J.locale))||(e.pathname=(0,b.addLocale)(e.pathname,J.locale),W({url:(0,m.formatWithValidation)(e),router:this}),o=!0);let s=(0,v.detectDomainLocale)(this.domainLocales,void 0,J.locale);if(!o&&s&&this.isLocaleDomain&&self.location.hostname!==s.domain){let e=(0,S.removeBasePath)(n);W({url:"http"+(s.http?"":"s")+"://"+s.domain+(0,E.addBasePath)((J.locale===s.defaultLocale?"":"/"+J.locale)+("/"===e?"":e)||"/"),router:this}),o=!0}if(o)return new Promise(()=>{})}f.ST&&performance.mark("routeChange");let{shallow:Q=!1,scroll:Z=!0}=r,ee={shallow:Q};this._inFlightRoute&&this.clc&&(K||X.events.emit("routeChangeError",L(),this._inFlightRoute,ee),this.clc(),this.clc=null),n=(0,E.addBasePath)((0,b.addLocale)((0,P.hasBasePath)(n)?(0,S.removeBasePath)(n):n,r.locale,this.defaultLocale));let et=(0,w.removeLocale)((0,P.hasBasePath)(n)?(0,S.removeBasePath)(n):n,J.locale);this._inFlightRoute=n;let en=Y!==J.locale;if(!G&&this.onlyAHashChange(et)&&!en){J.asPath=et,X.events.emit("hashChangeStart",n,ee),this.changeState(e,t,n,{...r,scroll:!1}),Z&&this.scrollToHash(et);try{await this.set(J,this.components[J.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,et,ee),e}return X.events.emit("hashChangeComplete",n,ee),!0}let er=(0,h.parseRelativeUrl)(t),{pathname:ei,query:eo}=er;try{[B,{__rewrites:q}]=await Promise.all([this.pageLoader.getPageList(),(0,s.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return W({url:n,router:this}),!1}this.urlIsNew(et)||en||(e="replaceState");let es=n;ei=ei?(0,o.removeTrailingSlash)((0,S.removeBasePath)(ei)):ei;let ea=(0,o.removeTrailingSlash)(ei),el=n.startsWith("/")&&(0,h.parseRelativeUrl)(n).pathname;if(null==(u=this.components[ei])?void 0:u.__appRouter)return W({url:n,router:this}),new Promise(()=>{});let eu=!!(el&&ea!==el&&(!(0,p.isDynamicRoute)(ea)||!(0,g.getRouteMatcher)((0,_.getRouteRegex)(ea))(el))),ec=!r.shallow&&await N({asPath:n,locale:J.locale,router:this});if(G&&ec&&(z=!1),z&&"/_error"!==ei&&(r._shouldResolveHref=!0,er.pathname=F(ei,B),er.pathname===ei||(ei=er.pathname,er.pathname=(0,E.addBasePath)(ei),ec||(t=(0,m.formatWithValidation)(er)))),!(0,j.isLocalURL)(n))return W({url:n,router:this}),!1;es=(0,w.removeLocale)((0,S.removeBasePath)(es),J.locale),ea=(0,o.removeTrailingSlash)(ei);let ed=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,h.parseRelativeUrl)(es),r=e.pathname,i=(0,_.getRouteRegex)(ea);ed=(0,g.getRouteMatcher)(i)(r);let o=ea===r,s=o?(0,A.interpolateAs)(ea,r,eo):{};if(ed&&(!o||s.result))o?n=(0,m.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,I.omit)(eo,s.params)})):Object.assign(eo,ed);else{let e=Object.keys(i.groups).filter(e=>!eo[e]&&!i.groups[e].optional);if(e.length>0&&!ec)throw Error((o?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+ea+"). ")+"Read more: https://nextjs.org/docs/messages/"+(o?"href-interpolation-failed":"incompatible-href-as"))}}G||X.events.emit("routeChangeStart",n,ee);let ef="/404"===this.pathname||"/_error"===this.pathname;try{let o=await this.getRouteInfo({route:ea,pathname:ei,query:eo,as:n,resolvedAs:es,routeProps:ee,locale:J.locale,isPreview:J.isPreview,hasMiddleware:ec,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:G&&!this.isFallback,isMiddlewareRewrite:eu});if(G||r.shallow||await this._bfl(n,"resolvedAs"in o?o.resolvedAs:void 0,J.locale),"route"in o&&ec){ea=ei=o.route||ea,ee.shallow||(eo=Object.assign({},o.query||{},eo));let e=(0,P.hasBasePath)(er.pathname)?(0,S.removeBasePath)(er.pathname):er.pathname;if(ed&&ei!==e&&Object.keys(ed).forEach(e=>{ed&&eo[e]===ed[e]&&delete eo[e]}),(0,p.isDynamicRoute)(ei)){let e=!ee.shallow&&o.resolvedAs?o.resolvedAs:(0,E.addBasePath)((0,b.addLocale)(new URL(n,location.href).pathname,J.locale),!0);(0,P.hasBasePath)(e)&&(e=(0,S.removeBasePath)(e));{let t=(0,c.normalizeLocalePath)(e,this.locales);J.locale=t.detectedLocale||J.locale,e=t.pathname}let t=(0,_.getRouteRegex)(ei),r=(0,g.getRouteMatcher)(t)(new URL(e,location.href).pathname);r&&Object.assign(eo,r)}}if("type"in o){if("redirect-internal"===o.type)return this.change(e,o.newUrl,o.newAs,r);return W({url:o.destination,router:this}),new Promise(()=>{})}let s=o.Component;if(s&&s.unstable_scriptLoader&&[].concat(s.unstable_scriptLoader()).forEach(e=>{(0,a.handleClientScriptLoad)(e.props)}),(o.__N_SSG||o.__N_SSP)&&o.props){if(o.props.pageProps&&o.props.pageProps.__N_REDIRECT){r.locale=!1;let t=o.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==o.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,h.parseRelativeUrl)(t);n.pathname=F(n.pathname,B);let{url:i,as:o}=$(this,t,t);return this.change(e,i,o,r)}return W({url:t,router:this}),new Promise(()=>{})}if(J.isPreview=!!o.props.__N_PREVIEW,o.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(o=await this.getRouteInfo({route:e,pathname:e,query:eo,as:n,resolvedAs:es,routeProps:{shallow:!1},locale:J.locale,isPreview:J.isPreview,isNotFound:!0}),"type"in o)throw Error("Unexpected middleware effect on /404")}}G&&"/_error"===this.pathname&&(null==(x=self.__NEXT_DATA__.props)?void 0:null==(R=x.pageProps)?void 0:R.statusCode)===500&&(null==(O=o.props)?void 0:O.pageProps)&&(o.props.pageProps.statusCode=500);let u=r.shallow&&J.route===(null!=(T=o.route)?T:ea),d=null!=(C=r.scroll)?C:!G&&!u,f=null!=i?i:d?{x:0,y:0}:null,m={...J,route:ea,pathname:ei,query:eo,asPath:et,isFallback:!1};if(G&&ef){if(o=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:eo,as:n,resolvedAs:es,routeProps:{shallow:!1},locale:J.locale,isPreview:J.isPreview,isQueryUpdating:G&&!this.isFallback}),"type"in o)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(D=self.__NEXT_DATA__.props)?void 0:null==(M=D.pageProps)?void 0:M.statusCode)===500&&(null==(U=o.props)?void 0:U.pageProps)&&(o.props.pageProps.statusCode=500);try{await this.set(m,o,f)}catch(e){throw(0,l.default)(e)&&e.cancelled&&X.events.emit("routeChangeError",e,et,ee),e}return!0}if(X.events.emit("beforeHistoryChange",n,ee),this.changeState(e,t,n,r),!(G&&!f&&!V&&!en&&(0,k.compareRouterStates)(m,this.state))){try{await this.set(m,o,f)}catch(e){if(e.cancelled)o.error=o.error||e;else throw e}if(o.error)throw G||X.events.emit("routeChangeError",o.error,et,ee),o.error;J.locale&&(document.documentElement.lang=J.locale),G||X.events.emit("routeChangeComplete",n,ee),d&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r){void 0===r&&(r={}),("pushState"!==e||(0,f.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",n))}async handleRouteInfoError(e,t,n,r,i,o){if(console.error(e),e.cancelled)throw e;if((0,s.isAssetError)(e)||o)throw X.events.emit("routeChangeError",e,r,i),W({url:r,router:this}),L();try{let r;let{page:i,styleSheets:o}=await this.fetchComponent("/_error"),s={props:r,Component:i,styleSheets:o,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(i,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,n,r,i,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:i,resolvedAs:s,routeProps:a,locale:u,hasMiddleware:d,isPreview:f,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:g,isNotFound:_}=e,v=t;try{var y,b,w,E;let e=this.components[v];if(a.shallow&&e&&this.route===v)return e;let t=z({route:v,router:this});d&&(e=void 0);let l=!e||"initial"in e?void 0:e,P={dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:_?"/404":s,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},R=h&&!g?null:await U({fetchData:()=>q(P),asPath:_?"/404":s,locale:u,router:this}).catch(e=>{if(h)return null;throw e});if(R&&("/_error"===n||"/404"===n)&&(R.effect=void 0),h&&(R?R.json=self.__NEXT_DATA__.props:R={json:self.__NEXT_DATA__.props}),t(),(null==R?void 0:null==(y=R.effect)?void 0:y.type)==="redirect-internal"||(null==R?void 0:null==(b=R.effect)?void 0:b.type)==="redirect-external")return R.effect;if((null==R?void 0:null==(w=R.effect)?void 0:w.type)==="rewrite"){let t=(0,o.removeTrailingSlash)(R.effect.resolvedHref),i=await this.pageLoader.getPageList();if((!h||i.includes(t))&&(v=t,n=R.effect.resolvedHref,r={...r,...R.effect.parsedAs.query},s=(0,S.removeBasePath)((0,c.normalizeLocalePath)(R.effect.parsedAs.pathname,this.locales).pathname),e=this.components[v],a.shallow&&e&&this.route===v&&!d))return{...e,route:v}}if((0,x.isAPIRoute)(v))return W({url:i,router:this}),new Promise(()=>{});let O=l||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=null==R?void 0:null==(E=R.response)?void 0:E.headers.get("x-middleware-skip"),k=O.__N_SSG||O.__N_SSP;T&&(null==R?void 0:R.dataHref)&&delete this.sdc[R.dataHref];let{props:j,cacheKey:C}=await this._getData(async()=>{if(k){if((null==R?void 0:R.json)&&!T)return{cacheKey:R.cacheKey,props:R.json};let e=(null==R?void 0:R.dataHref)?R.dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:n,query:r}),asPath:s,locale:u}),t=await q({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(O.Component,{pathname:n,query:r,asPath:i,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return O.__N_SSP&&P.dataHref&&C&&delete this.sdc[C],this.isPreview||!O.__N_SSG||h||q(Object.assign({},P,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),j.pageProps=Object.assign({},j.pageProps),O.props=j,O.route=v,O.query=r,O.resolvedAs=s,this.components[v]=O,O}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),n,r,i,a)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#",2),[r,i]=e.split("#",2);return!!i&&t===r&&n===i||t===r&&n!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,M.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),n=document.getElementById(e);if(n){n.scrollIntoView();return}let r=document.getElementsByName(e)[0];r&&r.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),"undefined"!=typeof window&&(0,C.isBot)(window.navigator.userAgent))return;let r=(0,h.parseRelativeUrl)(e),i=r.pathname,{pathname:s,query:a}=r,l=s;if(!1===n.locale){s=(0,c.normalizeLocalePath)(s,this.locales).pathname,r.pathname=s,e=(0,m.formatWithValidation)(r);let i=(0,h.parseRelativeUrl)(t),o=(0,c.normalizeLocalePath)(i.pathname,this.locales);i.pathname=o.pathname,n.locale=o.detectedLocale||this.defaultLocale,t=(0,m.formatWithValidation)(i)}let u=await this.pageLoader.getPageList(),d=t,f=void 0!==n.locale?n.locale||void 0:this.locale,v=await N({asPath:t,locale:f,router:this});r.pathname=F(r.pathname,u),(0,p.isDynamicRoute)(r.pathname)&&(s=r.pathname,r.pathname=s,Object.assign(a,(0,g.getRouteMatcher)((0,_.getRouteRegex)(r.pathname))((0,y.parsePath)(t).pathname)||{}),v||(e=(0,m.formatWithValidation)(r)));let b=await U({fetchData:()=>q({dataHref:this.pageLoader.getDataHref({href:(0,m.formatWithValidation)({pathname:l,query:a}),skipInterpolation:!0,asPath:d,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(r.pathname=b.effect.resolvedHref,s=b.effect.resolvedHref,a={...a,...b.effect.parsedAs.query},d=b.effect.parsedAs.pathname,e=(0,m.formatWithValidation)(r)),(null==b?void 0:b.effect.type)==="redirect-external")return;let w=(0,o.removeTrailingSlash)(s);await this._bfl(t,d,n.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&q({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:d,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=z({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return q({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,f.loadGetInitialProps)(n,{AppTree:r,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}constructor(e,t,r,{initialProps:i,pageLoader:s,App:a,wrapApp:l,Component:u,err:c,subscription:d,isFallback:g,locale:_,locales:y,defaultLocale:b,domainLocales:w,isPreview:S}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,m.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),(0,f.getURL)());return}if(r.__NA){window.location.reload();return}if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:i,as:o,options:s,key:a}=r;this._key=a;let{pathname:l}=(0,h.parseRelativeUrl)(i);(!this.isSsr||o!==(0,E.addBasePath)(this.asPath)||l!==(0,E.addBasePath)(this.pathname))&&(!this._bps||this._bps(r))&&this.change("replaceState",i,o,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};let P=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:u,initial:!0,props:i,err:c,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]};{let{BloomFilter:e}=n(74574),t={numItems:16,errorRate:1e-4,numBits:307,numHashes:14,bitArray:[0,1,1,1,0,1,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,1,0,1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,0,0,0,1,0,1,0,0,1,1,1,1,0,0,1,0,1,1,0,0,0,1,1,0,1,0,1,1,0,1,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,1,1,1,0,1,1,0,0,1,1,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,1,1,0,0,0,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,1,0,1,1,1,0,0,0,1,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,0,0,1,0,1,0,1,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,0,0,1,0,1,0,1,0,0,1,1,0,1,0,0,0,1,1,0,1,0,0,1,0,0,0,0,1,1,0,0,0,1]},r={numItems:2,errorRate:1e-4,numBits:39,numHashes:14,bitArray:[0,0,1,0,0,0,0,1,1,1,1,1,1,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,1,0,1,0,0,1,1,1,0,1,0]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==r?void 0:r.numHashes)&&(this._bfl_d=new e(r.numItems,r.errorRate),this._bfl_d.import(r))}this.events=X.events,this.pageLoader=s;let R=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=l,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||!R&&!self.location.search),this.locales=y,this.defaultLocale=b,this.domainLocales=w,this.isLocaleDomain=!!(0,v.detectDomainLocale)(w,self.location.hostname),this.state={route:P,pathname:e,query:t,asPath:R?e:r,isPreview:!!S,locale:_,isFallback:g},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"undefined"!=typeof window){if(!r.startsWith("//")){let n={locale:_},i=(0,f.getURL)();this._initialMatchesMiddlewarePromise=N({router:this,locale:_,asPath:i}).then(o=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",o?i:(0,m.formatWithValidation)({pathname:(0,E.addBasePath)(e),query:t}),i,n),o))}window.addEventListener("popstate",this.onPopState)}}}X.events=(0,d.default)()},87571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});let r=n(68498),i=n(10580);function o(e,t,n,o){if(!t||t===n)return e;let s=e.toLowerCase();return!o&&((0,i.pathHasPrefix)(s,"/api")||(0,i.pathHasPrefix)(s,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},68498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return i}});let r=n(63381);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:i,hash:o}=(0,r.parsePath)(e);return""+t+n+i+o}},99235:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let r=n(63381);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:i,hash:o}=(0,r.parsePath)(e);return""+n+t+i+o}},20926:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return s}});let r=n(78162),i=n(84541);function o(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},75902:function(e,t){"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let i=n[r];if("query"===i){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let i=n[r];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},79114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return a}});let r=n(26674),i=n(68498),o=n(99235),s=n(87571);function a(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,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,i.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},57497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return a},urlObjectKeys:function(){return s}});let r=n(52140)._(n(48637)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return o(e)}},96899:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},93331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let r=n(43579),i=n(2133),o=n(10580);function s(e,t){var n,s;let{basePath:a,i18n:l,trailingSlash:u}=null!=(n=t.nextConfig)?n:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};a&&(0,o.pathHasPrefix)(c.pathname,a)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,a),c.basePath=a);let d=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),n=e[0];c.buildId=n,d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=d)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,r.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(s=e.pathname)?s:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,r.normalizeLocalePath)(d,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},7092:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},86279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(14777),i=n(38104)},37205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(4199),i=n(9964);function o(e,t,n){let o="",s=(0,i.getRouteRegex)(e),a=s.groups,l=(t!==e?(0,r.getRouteMatcher)(s)(t):"")||n;o=e;let u=Object.keys(a);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=a[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},86146:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},38104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(91182),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},53552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(3987),i=n(11283);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},17053:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},63381:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},85907:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let r=n(3987),i=n(48637);function o(e,t){let n=new URL("undefined"==typeof window?"http://n":(0,r.getLocationOrigin)()),o=t?new URL(t,n):e.startsWith(".")?new URL("undefined"==typeof window?"http://n":window.location.href):n,{pathname:s,searchParams:a,search:l,hash:u,href:c,origin:d}=new URL(e,o);if(d!==n.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:s,query:(0,i.searchParamsToUrlQuery)(a),search:l,hash:u,href:c.slice(n.origin.length)}}},10580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let r=n(63381);function i(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},48637:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},2133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let r=n(10580);function i(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},26674:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},4199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(3987);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},s={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(s[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),s}}},9964:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l},parseParameter:function(){return s}});let r=n(91182),i=n(90042),o=n(26674);function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function a(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},a=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:r,repeat:l}=s(o[1]);return n[e]={pos:a++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=s(o[1]);return n[e]={pos:a++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:a}=e,{key:l,optional:u,repeat:c}=s(r),d=l.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?o[d]=""+a+l:o[d]=l;let p=t?(0,i.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),a=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=e.split(o[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return o?u({getSafeRouteKey:a,segment:o[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function d(e,t){let n=c(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=a(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},14777:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(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 n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},84541:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",i="__DEFAULT__"},55501:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(52140)._(n(2265)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},3987:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return m},NormalizeError:function(){return g},PageNotFoundError:function(){return _},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return s},getURL:function(){return a},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class g extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},31765:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},46214:function(e,t,n){"use strict";let r,i,o,s,a,l,u,c;n.d(t,{ZP:function(){return iu}});let d="undefined"!=typeof window?window:void 0,f="undefined"!=typeof globalThis?globalThis:d,p=Array.prototype,h=p.forEach,g=p.indexOf,_=null==f?void 0:f.navigator,m=null==f?void 0:f.document,v=null==f?void 0:f.location,y=null==f?void 0:f.fetch,b=null!=f&&f.XMLHttpRequest&&"withCredentials"in new f.XMLHttpRequest?f.XMLHttpRequest:void 0,w=null==f?void 0:f.AbortController,S=null==_?void 0:_.userAgent,E=null!=d?d:{},P={DEBUG:!1,LIB_VERSION:"1.174.3"},R=Array.isArray,x=Object.prototype,O=x.hasOwnProperty,T=x.toString,k=R||function(e){return"[object Array]"===T.call(e)},j=function(e){return"function"==typeof e},C=function(e){return e===Object(e)&&!k(e)},I=function(e){if(C(e)){for(let t in e)if(O.call(e,t))return!1;return!0}return!1},A=function(e){return void 0===e},M=function(e){return"[object String]"==T.call(e)},L=function(e){return M(e)&&0===e.trim().length},N=function(e){return null===e},D=function(e){return A(e)||N(e)},$=function(e){return"[object Number]"==T.call(e)},F=function(e){return"[object Boolean]"===T.call(e)},U=e=>e instanceof FormData,H="[PostHog.js]",B={_log:function(e){if(d&&(P.DEBUG||E.POSTHOG_DEBUG)&&!A(d.console)&&d.console){let i="__rrweb_original__"in d.console[e]?d.console[e].__rrweb_original__:d.console[e];for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i(H,...n)}},info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];B._log("log",...t)},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];B._log("warn",...t)},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];B._log("error",...t)},critical:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error(H,...t)},uninitializedWarning:e=>{B.error(`You must initialize PostHog before calling ${e}`)}},q=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return B.warn(`${t} was requested but loading of external scripts is disabled.`),n("Loading of external scripts is disabled");let r=()=>{var e;if(!m)return n("document not found");let r=m.createElement("script");r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=e=>n(void 0,e),r.onerror=e=>n(e);let i=m.querySelectorAll("body > script");i.length>0?null===(e=i[0].parentNode)||void 0===e||e.insertBefore(r,i[0]):m.body.appendChild(r)};null!=m&&m.body?r():null==m||m.addEventListener("DOMContentLoaded",r)};E.__PosthogExtensions__=E.__PosthogExtensions__||{},E.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{let r=`/static/${t}.js?v=${e.version}`;"toolbar"===t&&(r=`${r}?&=${3e5*Math.floor(Date.now()/3e5)}`);let i=e.requestRouter.endpointFor("assets",r);q(e,i,n)},E.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{let r=e.requestRouter.endpointFor("api",t);q(e,r,n)};let G={},W=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function z(e,t,n){if(k(e)){if(h&&e.forEach===h)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(let r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===G)return}}}function X(e,t,n){if(!D(e)){if(k(e))return z(e,t,n);if(U(e)){for(let r of e.entries())if(t.call(n,r[1],r[0])===G)return}else for(let r in e)if(O.call(e,r)&&t.call(n,e[r],r)===G)return}}let J=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return z(n,function(t){for(let n in t)void 0!==t[n]&&(e[n]=t[n])}),e};function V(e,t){return -1!==e.indexOf(t)}function K(e){let t=Object.keys(e),n=t.length,r=Array(n);for(;n--;)r[n]=[t[n],e[t[n]]];return r}let Y=function(e){try{return e()}catch{return}},Q=function(e){return function(){try{for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){B.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),B.critical(e)}}},Z=function(e){let t={};return X(e,function(e,n){M(e)&&e.length>0&&(t[n]=e)}),t},ee=function(e){return e.replace(/^\$/,"")},et=function(e){let t,n,r,i="",o=0;for(t=n=0,o=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,r=0;r<o;r++){let o=e.charCodeAt(r),s=null;o<128?n++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),N(s)||(n>t&&(i+=e.substring(t,n)),i+=s,t=n=r+1)}return n>t&&(i+=e.substring(t,e.length)),i},en=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t){if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{let i="on"+n,o=t[i];t[i]=function(n){if(!(n=n||e(null==d?void 0:d.event)))return;let i,s=!0;j(o)&&(i=o(n));let a=r.call(t,n);return!1!==i&&!1!==a||(s=!1),s}}}else B.error("No valid element provided to register_event")}}();function er(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}(nt=r||(r={})).GZipJS="gzip-js",nt.Base64="base64";let ei="$people_distinct_id",eo="__alias",es="__timers",ea="$autocapture_disabled_server_side",el="$heatmaps_enabled_server_side",eu="$exception_capture_enabled_server_side",ec="$exception_capture_endpoint_suffix",ed="$web_vitals_enabled_server_side",ef="$web_vitals_allowed_metrics",ep="$session_recording_enabled_server_side",eh="$console_log_recording_enabled_server_side",eg="$session_recording_network_payload_capture",e_="$session_recording_canvas_recording",em="$replay_sample_rate",ev="$replay_minimum_duration",ey="$sesid",eb="$session_is_sampled",ew="$session_recording_url_trigger_activated_session",eS="$session_recording_url_trigger_status",eE="$enabled_feature_flags",eP="$early_access_features",eR="$stored_person_properties",ex="$stored_group_properties",eO="$surveys",eT="$surveys_activated",ek="$flag_call_reported",ej="$user_state",eC="$client_session_props",eI="$capture_rate_limit",eA="$initial_campaign_params",eM="$initial_referrer_info",eL="$initial_person_info",eN="$epp",eD="__POSTHOG_TOOLBAR__",e$=[ei,eo,"__cmpns",es,ep,el,ey,eE,ej,eP,ex,eR,eO,ek,eC,eI,eA,eM,eN],eF="$active_feature_flags",eU="$override_feature_flags",eH="$feature_flag_payloads",eB=e=>{let t={};for(let[n,r]of K(e||{}))r&&(t[n]=r);return t};class eq{constructor(e){this.instance=e,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}getFlags(){return Object.keys(this.getFlagVariants())}getFlagVariants(){let e=this.instance.get_property(eE),t=this.instance.get_property(eU);if(!t)return e||{};let n=J({},e),r=Object.keys(t);for(let e=0;e<r.length;e++)n[r[e]]=t[r[e]];return this._override_warning||(B.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}getFlagPayloads(){return this.instance.get_property(eH)||{}}reloadFeatureFlags(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.reloadFeatureFlagsInAction=e}resetRequestQueue(){this.reloadFeatureFlagsQueued=!1}_startReloadTimer(){this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(()=>{!this.reloadFeatureFlagsInAction&&this.reloadFeatureFlagsQueued&&(this.reloadFeatureFlagsQueued=!1,this._reloadFeatureFlagsRequest())},5)}_reloadFeatureFlagsRequest(){if(this.instance.config.advanced_disable_feature_flags)return;this.setReloadingPaused(!0);let e=this.instance.config.token,t=this.instance.get_property(eR),n=this.instance.get_property(ex),i={token:e,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:t,group_properties:n,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:i,compression:this.instance.config.disable_compression?void 0:r.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:e=>{var t;this.setReloadingPaused(!1);let n=!0;200===e.statusCode&&(this.$anon_distinct_id=void 0,n=!1),this.receivedFeatureFlags(null!==(t=e.json)&&void 0!==t?t:{},n),this._startReloadTimer()}})}getFeatureFlag(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0))return void B.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.");let r=this.getFlagVariants()[e],i=`${r}`,o=this.instance.get_property(ek)||{};return!n.send_event&&"send_event"in n||e in o&&o[e].includes(i)||(k(o[e])?o[e].push(i):o[e]=[i],null===(t=this.instance.persistence)||void 0===t||t.register({[ek]:o}),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r})),r}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}isFeatureEnabled(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);B.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(!this.instance.persistence)return;this.instance.decideEndpointWasHit=!0;let n=this.getFlagVariants(),r=this.getFlagPayloads();(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.featureFlags,o=e.featureFlagPayloads;if(!i)return;if(k(i)){let e={};if(i)for(let t=0;t<i.length;t++)e[i[t]]=!0;return void(t&&t.register({[eF]:i,[eE]:e}))}let s=i,a=o;e.errorsWhileComputingFlags&&(s={...n,...s},a={...r,...a}),t&&t.register({[eF]:Object.keys(eB(s)),[eE]:s||{},[eH]:a||{}})})(e,this.instance.persistence,n,r),this._fireFeatureFlagsCallbacks(t)}override(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.instance.__loaded||!this.instance.persistence)return B.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=t,!1===e)this.instance.persistence.unregister(eU);else if(k(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=!0;this.instance.persistence.register({[eU]:t})}else this.instance.persistence.register({[eU]:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){let{flags:t,flagVariants:n}=this._prepareFeatureFlagsForCallbacks();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t){var n;let r={[`$feature_enrollment/${e}`]:t};this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:r}),this.setPersonPropertiesForFlags(r,!1);let i={...this.getFlagVariants(),[e]:t};null===(n=this.instance.persistence)||void 0===n||n.register({[eF]:Object.keys(eB(i)),[eE]:i}),this._fireFeatureFlagsCallbacks()}getEarlyAccessFeatures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.get_property(eP);if(n&&!t)return e(n);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api",`/api/early_access_features/?token=${this.instance.config.token}`),method:"GET",callback:t=>{var n;if(!t.json)return;let r=t.json.earlyAccessFeatures;return null===(n=this.instance.persistence)||void 0===n||n.register({[eP]:r}),e(r)}})}_prepareFeatureFlagsForCallbacks(){let e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,n)=>(e[n]=t[n],e),{})}}_fireFeatureFlagsCallbacks(e){let{flags:t,flagVariants:n}=this._prepareFeatureFlagsForCallbacks();this.featureFlagEventHandlers.forEach(r=>r(t,n,{errorsLoading:e}))}setPersonPropertiesForFlags(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(eR)||{};this.instance.register({[eR]:{...n,...e}}),t&&this.instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this.instance.unregister(eR)}setGroupPropertiesForFlags(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(ex)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(t=>{n[t]={...n[t],...e[t]},delete e[t]}),this.instance.register({[ex]:{...n,...e}}),t&&this.instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){let t=this.instance.get_property(ex)||{};this.instance.register({[ex]:{...t,[e]:{}}})}else this.instance.unregister(ex)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return $(e)&&isFinite(e)&&Math.floor(e)===e});let eG="0123456789abcdef";class eW{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||e<0||t<0||n<0||r<0||e>0xffffffffffff||t>4095||n>1073741823||r>4294967295)throw RangeError("invalid field value");let i=new Uint8Array(16);return i[0]=e/1099511627776,i[1]=e/4294967296,i[2]=e/16777216,i[3]=e/65536,i[4]=e/256,i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new eW(i)}toString(){let e="";for(let t=0;t<this.bytes.length;t++)e=e+eG.charAt(this.bytes[t]>>>4)+eG.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new eW(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(let t=0;t<16;t++){let n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}class ez{timestamp=0;counter=0;random=new eV;generate(){let e=this.generateOrAbort();if(A(e)){this.timestamp=0;let e=this.generateOrAbort();if(A(e))throw Error("Could not generate UUID after timestamp reset");return e}return e}generateOrAbort(){let e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return eW.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),this.counter&1073741824-1,this.random.nextUint32())}resetCounter(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}let eX,eJ=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(let t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};d&&!A(d.crypto)&&crypto.getRandomValues&&(eJ=e=>crypto.getRandomValues(e));class eV{buffer=new Uint32Array(8);cursor=1/0;nextUint32(){return this.cursor>=this.buffer.length&&(eJ(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}let eK=()=>eY().toString(),eY=()=>(eX||(eX=new ez)).generate(),eQ="",eZ=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,e0={is_supported:()=>!!m,error:function(e){B.error("cookieStore error: "+e)},get:function(e){if(m){try{let t=e+"=",n=m.cookie.split(";").filter(e=>e.length);for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return decodeURIComponent(r.substring(t.length,r.length))}}catch{}return null}},parse:function(e){let t;try{t=JSON.parse(e0.get(e))||{}}catch{}return t},set:function(e,t,n,r,i){if(m)try{let o="",s="",a=function(e,t){if(t){let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;if(eQ)return eQ;if(!t||["localhost","127.0.0.1"].includes(e))return"";let n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+eK(),o=RegExp("(^|;)\\s*"+i+"=1");for(;!eQ&&r--;){let e=n.slice(r).join("."),s=i+"=1;domain=."+e;t.cookie=s,o.test(t.cookie)&&(t.cookie=s+";expires=Thu, 01 Jan 1970 00:00:00 GMT",eQ=e)}return eQ}(e);if(!t){let n=(e=>{let t=e.match(eZ);return t?t[0]:""})(e);n!==t&&B.info("Warning: cookie subdomain discovery mismatch",n,t),t=n}return t?"; domain=."+t:""}return""}(m.location.hostname,r);if(n){let e=new Date;e.setTime(e.getTime()+24*n*36e5),o="; expires="+e.toUTCString()}i&&(s="; secure");let l=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+a+s;return l.length>3686.4&&B.warn("cookieStore warning: large cookie, len="+l.length),m.cookie=l,l}catch{return}},remove:function(e,t){try{e0.set(e,"",-1,t)}catch{return}}},e1=null,e2={is_supported:function(){if(!N(e1))return e1;let e=!0;if(A(d))e=!1;else try{let t="__mplssupport__";e2.set(t,"xyz"),'"xyz"'!==e2.get(t)&&(e=!1),e2.remove(t)}catch{e=!1}return e||B.error("localStorage unsupported; falling back to cookie store"),e1=e,e},error:function(e){B.error("localStorage error: "+e)},get:function(e){try{return null==d?void 0:d.localStorage.getItem(e)}catch(e){e2.error(e)}return null},parse:function(e){try{return JSON.parse(e2.get(e))||{}}catch{}return null},set:function(e,t){try{null==d||d.localStorage.setItem(e,JSON.stringify(t))}catch(e){e2.error(e)}},remove:function(e){try{null==d||d.localStorage.removeItem(e)}catch(e){e2.error(e)}}},e3=["distinct_id",ey,eb,eN],e5={...e2,parse:function(e){try{let t={};try{t=e0.parse(e)||{}}catch{}let n=J(t,JSON.parse(e2.get(e)||"{}"));return e2.set(e,n),n}catch{}return null},set:function(e,t,n,r,i,o){try{e2.set(e,t,void 0,void 0,o);let s={};e3.forEach(e=>{t[e]&&(s[e]=t[e])}),Object.keys(s).length&&e0.set(e,s,n,r,i,o)}catch(e){e2.error(e)}},remove:function(e,t){try{null==d||d.localStorage.removeItem(e),e0.remove(e,t)}catch(e){e2.error(e)}}},e4={},e6={is_supported:function(){return!0},error:function(e){B.error("memoryStorage error: "+e)},get:function(e){return e4[e]||null},parse:function(e){return e4[e]||null},set:function(e,t){e4[e]=t},remove:function(e){delete e4[e]}},e8=null,e7={is_supported:function(){if(!N(e8))return e8;if(e8=!0,A(d))e8=!1;else try{let e="__support__";e7.set(e,"xyz"),'"xyz"'!==e7.get(e)&&(e8=!1),e7.remove(e)}catch{e8=!1}return e8},error:function(e){B.error("sessionStorage error: ",e)},get:function(e){try{return null==d?void 0:d.sessionStorage.getItem(e)}catch(e){e7.error(e)}return null},parse:function(e){try{return JSON.parse(e7.get(e))||null}catch{}return null},set:function(e,t){try{null==d||d.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){e7.error(e)}},remove:function(e){try{null==d||d.sessionStorage.removeItem(e)}catch(e){e7.error(e)}}},e9=["localhost","127.0.0.1"],te=e=>{let t=null==m?void 0:m.createElement("a");return A(t)?null:(t.href=e,t)},tt=function(e,t){return!!function(e){try{new RegExp(e)}catch{return!1}return!0}(t)&&new RegExp(t).test(e)},tn=function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return X(e,function(e,r){A(e)||A(r)||"undefined"===r||(t=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(r),i[i.length]=n+"="+t)}),i.join(r)},tr=function(e,t){let n;let r=((e.split("#")[0]||"").split("?")[1]||"").split("&");for(let e=0;e<r.length;e++){let i=r[e].split("=");if(i[0]===t){n=i;break}}if(!k(n)||n.length<2)return"";{let e=n[1];try{e=decodeURIComponent(e)}catch{B.error("Skipping decoding for malformed query param: "+e)}return e.replace(/\+/g," ")}},ti=function(e,t){let n=e.match(RegExp(t+"=([^&]*)"));return n?n[1]:null},to="Mobile",ts="Android",ta="Tablet",tl=ts+" "+ta,tu="iPad",tc="Apple",td=tc+" Watch",tf="Safari",tp="BlackBerry",th="Samsung",tg=th+"Browser",t_=th+" Internet",tm="Chrome",tv=tm+" OS",ty=tm+" iOS",tb="Internet Explorer",tw=tb+" "+to,tS="Opera",tE=tS+" Mini",tP="Edge",tR="Microsoft "+tP,tx="Firefox",tO=tx+" iOS",tT="Nintendo",tk="PlayStation",tj="Xbox",tC=ts+" "+to,tI=to+" "+tf,tA="Windows",tM=tA+" Phone",tL="Nokia",tN="Ouya",tD="Generic",t$=tD+" "+to.toLowerCase(),tF=tD+" "+ta.toLowerCase(),tU="Konqueror",tH="(\\d+(\\.\\d+)?)",tB=RegExp("Version/"+tH),tq=RegExp(tj,"i"),tG=RegExp(tk+" \\w+","i"),tW=RegExp(tT+" \\w+","i"),tz=RegExp(tp+"|PlayBook|BB10","i"),tX={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tJ=(e,t)=>t&&V(t,tc)||V(e,tf)&&!V(e,tm)&&!V(e,ts),tV=function(e,t){return t=t||"",V(e," OPR/")&&V(e,"Mini")?tE:V(e," OPR/")?tS:tz.test(e)?tp:V(e,"IE"+to)||V(e,"WPDesktop")?tw:V(e,tg)?t_:V(e,tP)||V(e,"Edg/")?tR:V(e,"FBIOS")?"Facebook "+to:V(e,"UCWEB")||V(e,"UCBrowser")?"UC Browser":V(e,"CriOS")?ty:V(e,"CrMo")?tm:V(e,ts)&&V(e,tf)?tC:V(e,tm)?tm:V(e,"FxiOS")?tO:V(e.toLowerCase(),tU.toLowerCase())?tU:tJ(e,t)?V(e,to)?tI:tf:V(e,tx)?tx:V(e,"MSIE")||V(e,"Trident/")?tb:V(e,"Gecko")?tx:""},tK={[tw]:[RegExp("rv:"+tH)],[tR]:[RegExp(tP+"?\\/"+tH)],[tm]:[RegExp("("+tm+"|CrMo)\\/"+tH)],[ty]:[RegExp("CriOS\\/"+tH)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+tH)],[tf]:[tB],[tI]:[tB],[tS]:[RegExp("(Opera|OPR)\\/"+tH)],[tx]:[RegExp(tx+"\\/"+tH)],[tO]:[RegExp("FxiOS\\/"+tH)],[tU]:[RegExp("Konqueror[:/]?"+tH,"i")],[tp]:[RegExp(tp+" "+tH),tB],[tC]:[RegExp("android\\s"+tH,"i")],[t_]:[RegExp(tg+"\\/"+tH)],[tb]:[RegExp("(rv:|MSIE )"+tH)],Mozilla:[RegExp("rv:"+tH)]},tY=[[RegExp(tj+"; "+tj+" (.*?)[);]","i"),e=>[tj,e&&e[1]||""]],[RegExp(tT,"i"),[tT,""]],[RegExp(tk,"i"),[tk,""]],[tz,[tp,""]],[RegExp(tA,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[tM,""];if(new RegExp(to).test(t)&&!/IEMobile\b/.test(t))return[tA+" "+to,""];let n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){let e=tX[n[1]]||"";return/arm/i.test(t)&&(e="RT"),[tA,e]}return[tA,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{let t="";return e&&e.length>=3&&(t=A(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+ts+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ts+")","i"),e=>e&&e[2]?[ts,[e[2],e[3],e[4]||"0"].join(".")]:[ts,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{let t=["Mac OS X",""];if(e&&e[1]){let n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[tv,""]],[/Linux|debian/i,["Linux",""]]],tQ=function(e){return tW.test(e)?tT:tG.test(e)?tk:tq.test(e)?tj:RegExp(tN,"i").test(e)?tN:RegExp("("+tM+"|WPDesktop)","i").test(e)?tM:/iPad/.test(e)?tu:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?td:tz.test(e)?tp:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(tL,"i").test(e)?tL:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(to).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ts:tl:ts:RegExp("(pda|"+to+")","i").test(e)?t$:RegExp(ta,"i").test(e)&&!RegExp(ta+" pc","i").test(e)?tF:""},tZ="https?://(.*)",t0=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid","rdt_cid"],t1={campaignParams:function(e){return m?this._campaignParamsFromUrl(m.URL,e):{}},_campaignParamsFromUrl:function(e,t){let n=t0.concat(t||[]),r={};return X(n,function(t){let n=tr(e,t);r[t]=n||null}),r},_searchEngine:function(e){return e?0===e.search(tZ+"google.([^/?]*)")?"google":0===e.search(tZ+"bing.com")?"bing":0===e.search(tZ+"yahoo.com")?"yahoo":0===e.search(tZ+"duckduckgo.com")?"duckduckgo":null:null},_searchInfoFromReferrer:function(e){let t=t1._searchEngine(e),n={};if(!N(t)){n.$search_engine=t;let e=m?tr(m.referrer,"yahoo"!=t?"q":"p"):"";e.length&&(n.ph_keyword=e)}return n},searchInfo:function(){let e=null==m?void 0:m.referrer;return e?this._searchInfoFromReferrer(e):{}},browser:tV,browserVersion:function(e,t){let n=tK[tV(e,t)];if(A(n))return null;for(let t=0;t<n.length;t++){let r=n[t],i=e.match(r);if(i)return parseFloat(i[i.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(let t=0;t<tY.length;t++){let[n,r]=tY[t],i=n.exec(e),o=i&&(j(r)?r(i,e):r);if(o)return o}return["",""]},device:tQ,deviceType:function(e){let t=tQ(e);return t===tu||t===tl||"Kobo"===t||"Kindle Fire"===t||t===tF?ta:t===tT||t===tj||t===tk||t===tN?"Console":t===td?"Wearable":t?to:"Desktop"},referrer:function(){return(null==m?void 0:m.referrer)||"$direct"},referringDomain:function(){var e;return null!=m&&m.referrer&&(null===(e=te(m.referrer))||void 0===e?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},initialPersonInfo:function(){return{r:this.referrer(),u:null==v?void 0:v.href}},initialPersonPropsFromInfo:function(e){var t;let{r:n,u:r}=e,i={$initial_referrer:n,$initial_referring_domain:null==n?void 0:"$direct"==n?"$direct":null===(t=te(n))||void 0===t?void 0:t.host};if(r){i.$initial_current_url=r;let e=te(r);i.$initial_host=null==e?void 0:e.host,i.$initial_pathname=null==e?void 0:e.pathname,X(this._campaignParamsFromUrl(r),function(e,t){i["$initial_"+ee(t)]=e})}return n&&X(this._searchInfoFromReferrer(n),function(e,t){i["$initial_"+ee(t)]=e}),i},properties:function(){if(!S)return{};let[e,t]=t1.os(S);return J(Z({$os:e,$os_version:t,$browser:t1.browser(S,navigator.vendor),$device:t1.device(S),$device_type:t1.deviceType(S)}),{$current_url:null==v?void 0:v.href,$host:null==v?void 0:v.host,$pathname:null==v?void 0:v.pathname,$raw_user_agent:S.length>1e3?S.substring(0,997)+"...":S,$browser_version:t1.browserVersion(S,navigator.vendor),$browser_language:t1.browserLanguage(),$screen_height:null==d?void 0:d.screen.height,$screen_width:null==d?void 0:d.screen.width,$viewport_height:null==d?void 0:d.innerHeight,$viewport_width:null==d?void 0:d.innerWidth,$lib:"web",$lib_version:P.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})},people_properties:function(){if(!S)return{};let[e,t]=t1.os(S);return J(Z({$os:e,$os_version:t,$browser:t1.browser(S,navigator.vendor)}),{$browser_version:t1.browserVersion(S,navigator.vendor)})}},t2=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class t3{constructor(e){let t;this.config=e,this.props={},this.campaign_params_saved=!1,this.name=(t="",e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"),this.storage=this.buildStorage(e),this.load(),e.debug&&B.info("Persistence loaded",e.persistence,{...this.props}),this.update_config(e,e),this.save()}buildStorage(e){-1===t2.indexOf(e.persistence.toLowerCase())&&(B.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");let t=e.persistence.toLowerCase();return"localstorage"===t&&e2.is_supported()?e2:"localstorage+cookie"===t&&e5.is_supported()?e5:"sessionstorage"===t&&e7.is_supported()?e7:"memory"===t?e6:"cookie"===t?e0:e5.is_supported()?e5:e0}properties(){let e={};return X(this.props,function(t,n){if(n===eE&&C(t)){let n=Object.keys(t);for(let r=0;r<n.length;r++)e[`$feature/${n[r]}`]=t[n[r]]}else{let r;r=!1,(N(e$)?r:g&&e$.indexOf===g?-1!=e$.indexOf(n):(X(e$,function(e){if(r||(r=e===n))return G}),r))||(e[n]=t)}}),e}load(){if(this.disabled)return;let e=this.storage.parse(this.name);e&&(this.props=J({},e))}save(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure,this.config.debug)}remove(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(C(e)){A(t)&&(t="None"),this.expire_days=A(n)?this.default_expiry:n;let r=!1;if(X(e,(e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e,r=!0)}),r)return this.save(),!0}return!1}register(e,t){if(C(e)){this.expire_days=A(t)?this.default_expiry:t;let n=!1;if(X(e,(t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.props[r]=t,n=!0)}),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){this.campaign_params_saved||(this.register(t1.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}update_search_keyword(){this.register(t1.searchInfo())}update_referrer_info(){this.register_once(t1.referrerInfo(),void 0)}set_initial_person_info(){this.props[eA]||this.props[eM]||this.register_once({[eL]:t1.initialPersonInfo()},void 0)}get_referrer_info(){return Z({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}get_initial_props(){let e={};X([eM,eA],t=>{let n=this.props[t];n&&X(n,function(t,n){e["$initial_"+ee(n)]=t})});let t=this.props[eL];return t&&J(e,t1.initialPersonPropsFromInfo(t)),e}safe_merge(e){return X(this.props,function(t,n){n in e||(e[n]=t)}),e}update_config(e,t){if(this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){let t=this.buildStorage(e),n=this.props;this.clear(),this.storage=t,this.props=n,this.save()}}set_disabled(e){this.disabled=e,this.disabled?this.remove():this.save()}set_cross_subdomain(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}get_cross_subdomain(){return!!this.cross_subdomain}set_secure(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}set_event_timer(e,t){let n=this.props[es]||{};n[e]=t,this.props[es]=n,this.save()}remove_event_timer(e){let t=(this.props[es]||{})[e];return A(t)||(delete this.props[es][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}function t5(e){var t;return(null===(t=JSON.stringify(e,function(){let e=[];return function(t,n){if(C(n)){for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}return n}}()))||void 0===t?void 0:t.length)||0}var t4,t6,t8,t7,t9,ne,nt,nn,nr=((u=nr||{})[u.DomContentLoaded=0]="DomContentLoaded",u[u.Load=1]="Load",u[u.FullSnapshot=2]="FullSnapshot",u[u.IncrementalSnapshot=3]="IncrementalSnapshot",u[u.Meta=4]="Meta",u[u.Custom=5]="Custom",u[u.Plugin=6]="Plugin",u),ni=((c=ni||{})[c.Mutation=0]="Mutation",c[c.MouseMove=1]="MouseMove",c[c.MouseInteraction=2]="MouseInteraction",c[c.Scroll=3]="Scroll",c[c.ViewportResize=4]="ViewportResize",c[c.Input=5]="Input",c[c.TouchMove=6]="TouchMove",c[c.MediaInteraction=7]="MediaInteraction",c[c.StyleSheetRule=8]="StyleSheetRule",c[c.CanvasMutation=9]="CanvasMutation",c[c.Font=10]="Font",c[c.Log=11]="Log",c[c.Drag=12]="Drag",c[c.StyleDeclaration=13]="StyleDeclaration",c[c.Selection=14]="Selection",c[c.AdoptedStyleSheet=15]="AdoptedStyleSheet",c[c.CustomElement=16]="CustomElement",c);function no(e){return e?W(e).split(/\s+/):[]}function ns(e){let t=null==d?void 0:d.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function na(e){let t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return no(t)}function nl(e){return D(e)?null:W(e).split(/(\s+)/).filter(e=>nR(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function nu(e){let t="";return nm(e)&&!nv(e)&&e.childNodes&&e.childNodes.length&&X(e.childNodes,function(e){var n;np(e)&&e.textContent&&(t+=null!==(n=nl(e.textContent))&&void 0!==n?n:"")}),W(t)}function nc(e){var t;return A(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}function nd(e){return!!e&&1===e.nodeType}function nf(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function np(e){return!!e&&3===e.nodeType}function nh(e){return!!e&&11===e.nodeType}let ng=["a","button","form","input","select","textarea","label"];function n_(e){let t=e.parentNode;return!(!t||!nd(t))&&t}function nm(e){for(let t=e;t.parentNode&&!nf(t,"body");t=t.parentNode){let e=na(t);if(V(e,"ph-sensitive")||V(e,"ph-no-capture"))return!1}if(V(na(e),"ph-include"))return!0;let t=e.type||"";if(M(t))switch(t.toLowerCase()){case"hidden":case"password":return!1}let n=e.name||e.id||"";return!(M(n)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function nv(e){return!!(nf(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||nf(e,"select")||nf(e,"textarea")||"true"===e.getAttribute("contenteditable"))}let ny="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",nb=RegExp(`^(?:${ny})$`),nw=new RegExp(ny),nS="\\d{3}-?\\d{2}-?\\d{4}",nE=RegExp(`^(${nS})$`),nP=RegExp(`(${nS})`);function nR(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(D(e)||M(e)&&(e=W(e),(t?nb:nw).test((e||"").replace(/[- ]/g,""))||(t?nE:nP).test(e)))}function nx(e){let t=nu(e);return nR(t=`${t} ${(function e(t){let n="";return t&&t.childNodes&&t.childNodes.length&&X(t.childNodes,function(t){var r;if(t&&"span"===(null===(r=t.tagName)||void 0===r?void 0:r.toLowerCase()))try{let r=nu(t);n=`${n} ${r}`.trim(),t.childNodes&&t.childNodes.length&&(n=`${n} ${e(t)}`.trim())}catch(e){B.error(e)}}),n})(e)}`.trim())?t:""}function nO(e){return e.replace(/"|\\"/g,'\\"')}let nT="[SessionRecording]",nk="redacted",nj={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:e=>e,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io"]},nC=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],nI=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],nA=["/s/","/e/","/i/"];function nM(e,t,n,r){if(D(e))return e;let i=(null==t?void 0:t["content-length"])||new Blob([e]).size;return M(i)&&(i=parseInt(i)),i>n?nT+` ${r} body too large to record (${i} bytes)`:e}function nL(e,t){if(D(e))return e;let n=e;return nR(n,!1)||(n=nT+" "+t+" body "+nk),X(nI,e=>{var r,i;null!==(r=n)&&void 0!==r&&r.length&&-1!==(null===(i=n)||void 0===i?void 0:i.indexOf(e))&&(n=nT+" "+t+" body "+nk+" as might contain: "+e)}),n}let nN=(e,t)=>{let n={payloadSizeLimitBytes:nj.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...nj.performanceEntryTypeToObserve],payloadHostDenyList:[...t.payloadHostDenyList||[],...nj.payloadHostDenyList]},r=!1!==e.session_recording.recordHeaders&&t.recordHeaders,i=!1!==e.session_recording.recordBody&&t.recordBody,o=!1!==e.capture_performance&&t.recordPerformance,s=(e=>{var t;let n=Math.min(1e6,null!==(t=e.payloadSizeLimitBytes)&&void 0!==t?t:1e6);return e=>(null!=e&&e.requestBody&&(e.requestBody=nM(e.requestBody,e.requestHeaders,n,"Request")),null!=e&&e.responseBody&&(e.responseBody=nM(e.responseBody,e.responseHeaders,n,"Response")),e)})(n),a=e=>s((e=>{let t=te(e.name);if(!(t&&t.pathname&&nA.some(e=>0===t.pathname.indexOf(e))))return e})((e=>{let t=e.requestHeaders;return D(t)||X(Object.keys(null!=t?t:{}),e=>{nC.includes(e.toLowerCase())&&(t[e]=nk)}),e})(e))),l=j(e.session_recording.maskNetworkRequestFn);return l&&j(e.session_recording.maskCapturedNetworkRequestFn)&&B.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),l&&(e.session_recording.maskCapturedNetworkRequestFn=t=>{let n=e.session_recording.maskNetworkRequestFn({url:t.name});return{...t,name:null==n?void 0:n.url}}),n.maskRequestFn=j(e.session_recording.maskCapturedNetworkRequestFn)?t=>{var n,r,i;let o=a(t);return o&&null!==(n=null===(r=(i=e.session_recording).maskCapturedNetworkRequestFn)||void 0===r?void 0:r.call(i,o))&&void 0!==n?n:void 0}:e=>(function(e){if(!A(e))return e.requestBody=nL(e.requestBody,"Request"),e.responseBody=nL(e.responseBody,"Response"),e})(a(e)),{...nj,...n,recordHeaders:r,recordBody:i,recordPerformance:o,recordInitialRequests:o}};class nD{bucketSize=100;refillRate=10;mutationBuckets={};loggedTracker={};constructor(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.rrweb=e,this.options=r,this.refillRate=null!==(t=this.options.refillRate)&&void 0!==t?t:this.refillRate,this.bucketSize=null!==(n=this.options.bucketSize)&&void 0!==n?n:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}refillBuckets=()=>{Object.keys(this.mutationBuckets).forEach(e=>{this.mutationBuckets[e]=this.mutationBuckets[e]+this.refillRate,this.mutationBuckets[e]>=this.bucketSize&&delete this.mutationBuckets[e]})};getNodeOrRelevantParent=e=>{let t=this.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){let e=t.closest("svg");if(e)return[this.rrweb.mirror.getId(e),e]}return[e,t]};numberOfChanges=e=>{var t,n,r,i,o,s,a,l;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(r=null===(i=e.attributes)||void 0===i?void 0:i.length)&&void 0!==r?r:0)+(null!==(o=null===(s=e.texts)||void 0===s?void 0:s.length)&&void 0!==o?o:0)+(null!==(a=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==a?a:0)};throttleMutations=e=>{if(3!==e.type||0!==e.data.source)return e;let t=e.data,n=this.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(e=>{var t,n,r;let[i,o]=this.getNodeOrRelevantParent(e.id);return 0!==this.mutationBuckets[i]&&(this.mutationBuckets[i]=null!==(t=this.mutationBuckets[i])&&void 0!==t?t:this.bucketSize,this.mutationBuckets[i]=Math.max(this.mutationBuckets[i]-1,0),0===this.mutationBuckets[i]&&(this.loggedTracker[i]||(this.loggedTracker[i]=!0,null===(n=(r=this.options).onBlockedNode)||void 0===n||n.call(r,i,o))),e)}));let r=this.numberOfChanges(t);return 0!==r||n===r?e:void 0}}var n$=Uint8Array,nF=Uint16Array,nU=Uint32Array,nH=new n$([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]),nB=new n$([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]),nq=new n$([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nG=function(e,t){for(var n=new nF(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new nU(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},nW=nG(nH,2),nz=nW[0],nX=nW[1];nz[28]=258,nX[258]=28;for(var nJ=nG(nB,0)[1],nV=new nF(32768),nK=0;nK<32768;++nK){var nY=(43690&nK)>>>1|(21845&nK)<<1;nY=(61680&(nY=(52428&nY)>>>2|(13107&nY)<<2))>>>4|(3855&nY)<<4,nV[nK]=((65280&nY)>>>8|(255&nY)<<8)>>>1}var nQ=function(e,t,n){for(var r=e.length,i=0,o=new nF(t);i<r;++i)++o[e[i]-1];var s,a=new nF(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new nF(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=a[e[i]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)s[nV[d]>>>l]=u}else for(s=new nF(r),i=0;i<r;++i)s[i]=nV[a[e[i]-1]++]>>>15-e[i];return s},nZ=new n$(288);for(nK=0;nK<144;++nK)nZ[nK]=8;for(nK=144;nK<256;++nK)nZ[nK]=9;for(nK=256;nK<280;++nK)nZ[nK]=7;for(nK=280;nK<288;++nK)nZ[nK]=8;var n0=new n$(32);for(nK=0;nK<32;++nK)n0[nK]=5;var n1=nQ(nZ,9,0),n2=nQ(n0,5,0),n3=function(e){return(e/8>>0)+(7&e&&1)},n5=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof nF?nF:e instanceof nU?nU:n$)(n-t);return r.set(e.subarray(t,n)),r},n4=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},n6=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},n8=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new n$(0),0];if(1==i){var s=new n$(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};var f=o[0].s;for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var p=new nF(f+1),h=n7(n[c-1],p,0);if(h>t){r=0;var g=0,_=h-t,m=1<<_;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var v=o[r].s;if(!(p[v]>t))break;g+=m-(1<<h-p[v]),p[v]=t}for(g>>>=_;g>0;){var y=o[r].s;p[y]<t?g-=1<<t-p[y]++-1:++r}for(;r>=0&&g;--r){var b=o[r].s;p[b]==t&&(--p[b],++g)}h=t}return[new n$(p),h]},n7=function(e,t,n){return -1==e.s?Math.max(n7(e.l,t,n+1),n7(e.r,t,n+1)):t[e.s]=n},n9=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new nF(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},re=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},rt=function(e,t,n){var r=n.length,i=n3(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},rn=function(e,t,n,r,i,o,s,a,l,u,c){n4(t,c++,n),++i[256];for(var d=n8(i,15),f=d[0],p=d[1],h=n8(o,15),g=h[0],_=h[1],m=n9(f),v=m[0],y=m[1],b=n9(g),w=b[0],S=b[1],E=new nF(19),P=0;P<v.length;++P)E[31&v[P]]++;for(P=0;P<w.length;++P)E[31&w[P]]++;for(var R=n8(E,7),x=R[0],O=R[1],T=19;T>4&&!x[nq[T-1]];--T);var k,j,C,I,A=u+5<<3,M=re(i,nZ)+re(o,n0)+s,L=re(i,f)+re(o,g)+s+14+3*T+re(E,x)+(2*E[16]+3*E[17]+7*E[18]);if(A<=M&&A<=L)return rt(t,c,e.subarray(l,l+u));if(n4(t,c,1+(L<M)),c+=2,L<M){k=nQ(f,p,0),j=f,C=nQ(g,_,0),I=g;var N=nQ(x,O,0);for(n4(t,c,y-257),n4(t,c+5,S-1),n4(t,c+10,T-4),c+=14,P=0;P<T;++P)n4(t,c+3*P,x[nq[P]]);c+=3*T;for(var D=[v,w],$=0;$<2;++$){var F=D[$];for(P=0;P<F.length;++P){var U=31&F[P];n4(t,c,N[U]),c+=x[U],U>15&&(n4(t,c,F[P]>>>5&127),c+=F[P]>>>12)}}}else k=n1,j=nZ,C=n2,I=n0;for(P=0;P<a;++P)if(r[P]>255){n6(t,c,k[(U=r[P]>>>18&31)+257]),c+=j[U+257],U>7&&(n4(t,c,r[P]>>>23&31),c+=nH[U]);var H=31&r[P];n6(t,c,C[H]),c+=I[H],H>3&&(n6(t,c,r[P]>>>5&8191),c+=nB[H])}else n6(t,c,k[r[P]]),c+=j[r[P]];return n6(t,c,k[256]),c+j[256]},rr=new nU([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ri=function(){for(var e=new nU(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ro=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=ri[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}},rs=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ra=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&rs(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}};function rl(e,t){void 0===t&&(t={});var n,r,i,o=ro(),s=e.length;o.p(e);var a=(r=t,i=10+((n=t).filename&&n.filename.length+1||0),function(e,t,n,r,i,o){var s=e.length,a=new n$(r+s+5*(1+Math.floor(s/7e3))+8),l=a.subarray(r,a.length-8),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=rt(l,u,e.subarray(c,d)):(l[c]=o,u=rt(l,u,e.subarray(c,s)))}else{for(var f=rr[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,_=new nF(32768),m=new nF(g+1),v=Math.ceil(n/3),y=2*v,b=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&g},w=new nU(25e3),S=new nF(288),E=new nF(32),P=0,R=0,x=(c=0,0),O=0,T=0;c<s;++c){var k=b(c),j=32767&c,C=m[k];if(_[j]=C,m[k]=j,O<=c){var I=s-c;if((P>7e3||x>24576)&&I>423){u=rn(e,l,0,w,S,E,R,x,T,c-T,u),x=P=R=0,T=c;for(var A=0;A<286;++A)S[A]=0;for(A=0;A<30;++A)E[A]=0}var M=2,L=0,N=h,D=j-C&32767;if(I>2&&k==b(c-D))for(var $=Math.min(p,I)-1,F=Math.min(32767,c),U=Math.min(258,I);D<=F&&--N&&j!=C;){if(e[c+M]==e[c+M-D]){for(var H=0;H<U&&e[c+H]==e[c+H-D];++H);if(H>M){if(M=H,L=D,H>$)break;var B=Math.min(D,H-2),q=0;for(A=0;A<B;++A){var G=c-D+A+32768&32767,W=G-_[G]+32768&32767;W>q&&(q=W,C=G)}}}D+=(j=C)-(C=_[j])+32768&32767}if(L){w[x++]=268435456|nX[M]<<18|nJ[L];var z=31&nX[M],X=31&nJ[L];R+=nH[z]+nB[X],++S[257+z],++E[X],O=c+M,++P}else w[x++]=e[c],++S[e[c]]}}u=rn(e,l,o,w,S,E,R,x,T,c-T,u)}return n5(a,0,r+n3(u)+i)}(e,null==r.level?6:r.level,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+r.mem,i,8,!0)),l=a.length;return ra(a,t),rs(a,l-8,o.d()),rs(a,l-4,s),a}function ru(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new n$(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},s=0;s<n;++s){if(i+5>r.length){var a=new n$(i+8+(n-s<<1));a.set(r),r=a}var l=e.charCodeAt(s);l<128||t?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return n5(r,0,i)}let rc=[ni.MouseMove,ni.MouseInteraction,ni.Scroll,ni.ViewportResize,ni.Input,ni.TouchMove,ni.MediaInteraction,ni.Drag],rd=["trigger_activated","trigger_pending","trigger_disabled"],rf=e=>({rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}),rp="[SessionRecording]";function rh(e){return function(e,t){for(var n="",r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}(rl(ru(JSON.stringify(e))),!0)}function rg(e){return e.type===nr.Custom&&"sessionIdle"===e.data.tag}class r_{queuedRRWebEvents=[];isIdle=!1;_linkedFlagSeen=!1;_lastActivityTimestamp=Date.now();_linkedFlag=null;_removePageViewCaptureHook=void 0;_onSessionIdListener=void 0;_persistDecideOnSessionListener=void 0;_samplingSessionListener=void 0;_urlTriggers=[];_forceAllowLocalhostNetworkCapture=!1;get sessionIdleThresholdMilliseconds(){return this.instance.config.session_recording.session_idle_threshold_ms||3e5}get rrwebRecord(){var e,t;return null==E||null===(e=E.__PosthogExtensions__)||void 0===e||null===(t=e.rrweb)||void 0===t?void 0:t.record}get started(){return this._captureStarted}get sessionManager(){if(!this.instance.sessionManager)throw Error(rp+" must be started with a valid sessionManager.");return this.instance.sessionManager}get fullSnapshotIntervalMillis(){var e,t;return"trigger_pending"===this.urlTriggerStatus?6e4:null!==(e=null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.full_snapshot_interval_millis)&&void 0!==e?e:3e5}get isSampled(){let e=this.instance.get_property(eb);return F(e)?e:null}get sessionDuration(){var e,t;let n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],{sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0);return n?n.timestamp-r:null}get isRecordingEnabled(){let e=!!this.instance.get_property(ep),t=!this.instance.config.disable_session_recording;return d&&e&&t}get isConsoleLogCaptureEnabled(){let e=!!this.instance.get_property(eh),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}get canvasRecording(){let e=this.instance.get_property(e_);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}get networkPayloadCapture(){var e,t;let n=this.instance.get_property(eg),r={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},i=(null==r?void 0:r.recordHeaders)||(null==n?void 0:n.recordHeaders),o=(null==r?void 0:r.recordBody)||(null==n?void 0:n.recordBody),s=C(this.instance.config.capture_performance)?this.instance.config.capture_performance.network_timing:this.instance.config.capture_performance,a=!!(F(s)?s:null==n?void 0:n.capturePerformance);return i||o||a?{recordHeaders:i,recordBody:o,recordPerformance:a}:void 0}get sampleRate(){let e=this.instance.get_property(em);return $(e)?e:null}get minimumDuration(){let e=this.instance.get_property(ev);return $(e)?e:null}get status(){return this.receivedDecide?this.isRecordingEnabled?D(this._linkedFlag)||this._linkedFlagSeen?"trigger_pending"===this.urlTriggerStatus?"buffering":F(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}get urlTriggerStatus(){var e,t,n,r,i,o;if(this.receivedDecide&&0===this._urlTriggers.length)return"trigger_disabled";let s=null===(e=this.instance)||void 0===e?void 0:e.get_property(eS);return(null===(t=this.instance)||void 0===t?void 0:t.get_property(ew))!==this.sessionId?(null===(n=this.instance)||void 0===n||null===(r=n.persistence)||void 0===r||r.unregister(ew),null===(i=this.instance)||void 0===i||null===(o=i.persistence)||void 0===o||o.unregister(eS),"trigger_pending"):rd.includes(s)?s:"trigger_pending"}set urlTriggerStatus(e){var t,n;null===(t=this.instance)||void 0===t||null===(n=t.persistence)||void 0===n||n.register({[ew]:this.sessionId,[eS]:e})}constructor(e){if(this.instance=e,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,!this.instance.sessionManager)throw B.error(rp+" started without valid sessionManager"),Error(rp+" started without valid sessionManager. This is a bug.");let{sessionId:t,windowId:n}=this.sessionManager.checkAndGetSessionAndWindowId();this.sessionId=t,this.windowId=n,this.buffer=this.clearBuffer(),this.sessionIdleThresholdMilliseconds>=this.sessionManager.sessionTimeoutMs&&B.warn(rp+` session_idle_threshold_ms (${this.sessionIdleThresholdMilliseconds}) is greater than the session timeout (${this.sessionManager.sessionTimeoutMs}). Session will never be detected as idle`)}_onBeforeUnload=()=>{this._flushBuffer()};_onOffline=()=>{this._tryAddCustomEvent("browser offline",{})};_onOnline=()=>{this._tryAddCustomEvent("browser online",{})};_onVisibilityChange=()=>{if(null!=m&&m.visibilityState){let e="window "+m.visibilityState;this._tryAddCustomEvent(e,{})}};startIfEnabledOrStop(e){this.isRecordingEnabled?(this._startCapture(e),null==d||d.addEventListener("beforeunload",this._onBeforeUnload),null==d||d.addEventListener("offline",this._onOffline),null==d||d.addEventListener("online",this._onOnline),null==d||d.addEventListener("visibilitychange",this._onVisibilityChange),this._setupSampling(),D(this._removePageViewCaptureHook)&&(this._removePageViewCaptureHook=this.instance._addCaptureHook(e=>{try{if("$pageview"===e){let e=d?this._maskUrl(d.location.href):"";if(!e)return;this._tryAddCustomEvent("$pageview",{href:e})}}catch(e){B.error("Could not add $pageview to rrweb session",e)}})),this._onSessionIdListener||(this._onSessionIdListener=this.sessionManager.onSessionId((e,t,n)=>{var r,i,o,s;n&&(this._tryAddCustomEvent("$session_id_change",{sessionId:e,windowId:t,changeReason:n}),null===(r=this.instance)||void 0===r||null===(i=r.persistence)||void 0===i||i.unregister(ew),null===(o=this.instance)||void 0===o||null===(s=o.persistence)||void 0===s||s.unregister(eS))}))):this.stopRecording()}stopRecording(){var e,t,n;this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,null==d||d.removeEventListener("beforeunload",this._onBeforeUnload),null==d||d.removeEventListener("offline",this._onOffline),null==d||d.removeEventListener("online",this._onOnline),null==d||d.removeEventListener("visibilitychange",this._onVisibilityChange),this.clearBuffer(),clearInterval(this._fullSnapshotTimer),null===(e=this._removePageViewCaptureHook)||void 0===e||e.call(this),this._removePageViewCaptureHook=void 0,null===(t=this._onSessionIdListener)||void 0===t||t.call(this),this._onSessionIdListener=void 0,null===(n=this._samplingSessionListener)||void 0===n||n.call(this),this._samplingSessionListener=void 0,B.info(rp+" stopped"))}makeSamplingDecision(e){var t,n;let r;let i=this.sessionId!==e,o=this.sampleRate;if(!$(o))return void(null===(n=this.instance.persistence)||void 0===n||n.register({[eb]:null}));let s=this.isSampled,a=i||!F(s);r=a?Math.random()<o:s,a&&(r?this._reportStarted("sampling"):B.warn(rp+` Sample rate (${o}) has determined that this sessionId (${e}) will not be sent to the server.`),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:o,isSampled:r})),null===(t=this.instance.persistence)||void 0===t||t.register({[eb]:r})}afterDecideResponse(e){var t,n,r,i;if(this._persistDecideResponse(e),this._linkedFlag=(null===(t=e.sessionRecording)||void 0===t?void 0:t.linkedFlag)||null,null!==(n=e.sessionRecording)&&void 0!==n&&n.endpoint&&(this._endpoint=null===(i=e.sessionRecording)||void 0===i?void 0:i.endpoint),this._setupSampling(),!D(this._linkedFlag)&&!this._linkedFlagSeen){let e=M(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,t=M(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags((n,r)=>{let i=C(r)&&e in r,o=t?r[e]===t:i;if(o){let n={linkedFlag:e,linkedVariant:t},r="linked flag matched";B.info(rp+" "+r,n),this._tryAddCustomEvent(r,n),this._reportStarted("linked_flag_match")}this._linkedFlagSeen=o})}null!==(r=e.sessionRecording)&&void 0!==r&&r.urlTriggers&&(this._urlTriggers=e.sessionRecording.urlTriggers),this.receivedDecide=!0,this.startIfEnabledOrStop()}_setupSampling(){$(this.sampleRate)&&D(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(e=>{this.makeSamplingDecision(e)}))}_persistDecideResponse(e){if(this.instance.persistence){var t;let n=this.instance.persistence,r=()=>{var t,r,i,o,s,a,l;let u=null===(t=e.sessionRecording)||void 0===t?void 0:t.sampleRate,c=D(u)?null:parseFloat(u),d=null===(r=e.sessionRecording)||void 0===r?void 0:r.minimumDurationMilliseconds;n.register({[ep]:!!e.sessionRecording,[eh]:null===(i=e.sessionRecording)||void 0===i?void 0:i.consoleLogRecordingEnabled,[eg]:{capturePerformance:e.capturePerformance,...null===(o=e.sessionRecording)||void 0===o?void 0:o.networkPayloadCapture},[e_]:{enabled:null===(s=e.sessionRecording)||void 0===s?void 0:s.recordCanvas,fps:null===(a=e.sessionRecording)||void 0===a?void 0:a.canvasFps,quality:null===(l=e.sessionRecording)||void 0===l?void 0:l.canvasQuality},[em]:c,[ev]:A(d)?null:d})};r(),null===(t=this._persistDecideOnSessionListener)||void 0===t||t.call(this),this._persistDecideOnSessionListener=this.sessionManager.onSessionId(r)}}log(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:Date.now()})}_startCapture(e){if(!A(Object.assign)&&!A(Array.from)&&!(this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut())){var t,n;(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord)?this._onScriptLoaded():null===(t=E.__PosthogExtensions__)||void 0===t||null===(n=t.loadExternalDependency)||void 0===n||n.call(t,this.instance,"recorder",e=>{if(e)return B.error(rp+" could not load recorder",e);this._onScriptLoaded()}),B.info(rp+" starting"),"active"===this.status&&this._reportStarted(e||"recording_initialized")}}isInteractiveEvent(e){var t;return 3===e.type&&-1!==rc.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}_updateWindowAndSessionIds(e){let t=this.isInteractiveEvent(e);t||this.isIdle||!(e.timestamp-this._lastActivityTimestamp>this.sessionIdleThresholdMilliseconds)||(this.isIdle=!0,clearInterval(this._fullSnapshotTimer),this._tryAddCustomEvent("sessionIdle",{eventTimestamp:e.timestamp,lastActivityTimestamp:this._lastActivityTimestamp,threshold:this.sessionIdleThresholdMilliseconds,bufferLength:this.buffer.data.length,bufferSize:this.buffer.size}),this._flushBuffer());let n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),this.isIdle)return;let{windowId:r,sessionId:i}=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),o=this.sessionId!==i,s=this.windowId!==r;this.windowId=r,this.sessionId=i,o||s?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):n&&this._scheduleFullSnapshot()}_tryRRWebMethod(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):B.warn(rp+" could not emit queued rrweb event.",t,e),!1}}_tryAddCustomEvent(e,t){return this._tryRRWebMethod(rf(()=>this.rrwebRecord.addCustomEvent(e,t)))}_tryTakeFullSnapshot(){return this._tryRRWebMethod(rf(()=>this.rrwebRecord.takeFullSnapshot()))}_onScriptLoaded(){var e;let t={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};for(let[e,n]of Object.entries(this.instance.config.session_recording||{}))e in t&&("maskInputOptions"===e?t.maskInputOptions={password:!0,...n}:t[e]=n);if(this.canvasRecording&&this.canvasRecording.enabled&&(t.recordCanvas=!0,t.sampling={canvas:this.canvasRecording.fps},t.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),!this.rrwebRecord)return void B.error(rp+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.");this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new nD(this.rrwebRecord,{onBlockedNode:(e,t)=>{let n=`Too many mutations on node '${e}'. Rate limiting. This could be due to SVG animations or something similar`;B.info(n,{node:t}),this.log(rp+" "+n,"warn")}});let n=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord({emit:e=>{this.onRRwebEmit(e)},plugins:n,...t}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:t,activePlugins:n.map(e=>null==e?void 0:e.name)}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}_scheduleFullSnapshot(){if(this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),this.isIdle)return;let e=this.fullSnapshotIntervalMillis;e&&(this._fullSnapshotTimer=setInterval(()=>{this._tryTakeFullSnapshot()},e))}_gatherRRWebPlugins(){var e,t,n,r;let i=[],o=null===(e=E.__PosthogExtensions__)||void 0===e||null===(t=e.rrwebPlugins)||void 0===t?void 0:t.getRecordConsolePlugin;o&&this.isConsoleLogCaptureEnabled&&i.push(o());let s=null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=n.rrwebPlugins)||void 0===r?void 0:r.getRecordNetworkPlugin;return this.networkPayloadCapture&&j(s)&&(!e9.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?i.push(s(nN(this.instance.config,this.networkPayloadCapture))):B.info(rp+" NetworkCapture not started because we are on localhost.")),i}onRRwebEmit(e){var t;if(this._processQueuedEvents(),!e||!C(e))return;if(e.type===nr.Meta){let t=this._maskUrl(e.data.href);if(this._lastHref=t,!t)return;e.data.href=t}else this._pageViewFallBack();this._checkUrlTrigger(),e.type===nr.FullSnapshot&&this._scheduleFullSnapshot(),e.type===nr.FullSnapshot&&"trigger_pending"===this.urlTriggerStatus&&this.clearBuffer();let n=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(!n)return;let r=function(e){if(e&&C(e)&&6===e.type&&C(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));let t=[];for(let n=0;n<e.data.payload.payload.length;n++)e.data.payload.payload[n]&&e.data.payload.payload[n].length>2e3?t.push(e.data.payload.payload[n].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[n]);return e.data.payload.payload=t,e}return e}(n);if(this._updateWindowAndSessionIds(r),this.isIdle&&!rg(r))return;if(rg(r)){let e=r.data.payload;if(e){let t=e.lastActivityTimestamp,n=e.threshold;r.timestamp=t+n}}let i=null===(t=this.instance.config.session_recording.compress_events)||void 0===t||t?function(e){if(1024>t5(e))return e;try{if(e.type===nr.FullSnapshot)return{...e,data:rh(e.data),cv:"2024-10"};if(e.type===nr.IncrementalSnapshot&&e.data.source===ni.Mutation)return{...e,cv:"2024-10",data:{...e.data,texts:rh(e.data.texts),attributes:rh(e.data.attributes),removes:rh(e.data.removes),adds:rh(e.data.adds)}};if(e.type===nr.IncrementalSnapshot&&e.data.source===ni.StyleSheetRule)return{...e,cv:"2024-10",data:{...e.data,adds:rh(e.data.adds),removes:rh(e.data.removes)}}}catch(e){B.error(rp+" could not compress event - will use uncompressed event",e)}return e}(r):r,o={$snapshot_bytes:t5(i),$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(o):this.clearBuffer()}_pageViewFallBack(){if(this.instance.config.capture_pageview||!d)return;let e=this._maskUrl(d.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}_processQueuedEvents(){if(this.queuedRRWebEvents.length){let e=[...this.queuedRRWebEvents];this.queuedRRWebEvents=[],e.forEach(e=>{Date.now()-e.enqueuedAt<=2e3&&this._tryRRWebMethod(e)})}}_maskUrl(e){let t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n;let r={url:e};return null===(n=r=t.maskNetworkRequestFn(r))||void 0===n?void 0:n.url}return e}clearBuffer(){return this.buffer={size:0,data:[],sessionId:this.sessionId,windowId:this.windowId},this.buffer}_flushBuffer(){this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);let e=this.minimumDuration,t=this.sessionDuration,n=$(t)&&t>=0,r=$(e)&&n&&t<e;return"buffering"===this.status||r?(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3),this.buffer):(this.buffer.data.length>0&&(function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6606028.8;if(t.size>=n&&t.data.length>1){let n=Math.floor(t.data.length/2),r=t.data.slice(0,n),i=t.data.slice(n);return[e({size:t5(r),data:r,sessionId:t.sessionId,windowId:t.windowId}),e({size:t5(i),data:i,sessionId:t.sessionId,windowId:t.windowId})].flatMap(e=>e)}return[t]})(this.buffer).forEach(e=>{this._captureSnapshot({$snapshot_bytes:e.size,$snapshot_data:e.data,$session_id:e.sessionId,$window_id:e.windowId})}),this.clearBuffer())}_captureSnapshotBuffered(e){var t;let n=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);!this.isIdle&&(this.buffer.size+e.$snapshot_bytes+n>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||this.isIdle||(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3))}_captureSnapshot(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}_checkUrlTrigger(){if(void 0===d||!d.location.href)return;let e=d.location.href;this._urlTriggers.some(t=>"regex"===t.matching&&new RegExp(t.url).test(e))&&this._activateUrlTrigger()}_activateUrlTrigger(){"trigger_pending"===this.urlTriggerStatus&&(this.urlTriggerStatus="trigger_activated",this._tryAddCustomEvent("url trigger activated",{}),this._flushBuffer(),B.info(rp+" recording triggered by URL pattern match"))}overrideLinkedFlag(){this._linkedFlagSeen=!0,this._reportStarted("linked_flag_override")}overrideSampling(){var e;null===(e=this.instance.persistence)||void 0===e||e.register({[eb]:!0}),this._reportStarted("sampling_override")}_reportStarted(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0)()&&this.instance.register_for_session({$session_recording_start_reason:e})}}class rm{constructor(e){this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}call(){let e={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(eR),group_properties:this.instance.get_property(ex),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:e,compression:this.instance.config.disable_compression?void 0:r.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:e=>this.parseDecideResponse(e.json)})}parseDecideResponse(e){this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();let t=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},t),t)B.error("Failed to fetch feature flags from PostHog.");else{if(!m||!m.body)return B.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.parseDecideResponse(e)},500);if(this.instance._afterDecideResponse(e),e.siteApps){if(this.instance.config.opt_in_site_apps)for(let{id:t,url:o}of e.siteApps){var n,r,i;E[`__$$ph_site_app_${t}`]=this.instance,null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=(i=n).loadSiteApp)||void 0===r||r.call(i,this.instance,o,e=>{if(e)return B.error(`Error while initializing PostHog app with config id ${t}`,e)})}else e.siteApps.length>0&&B.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}}let rv=null!=d&&d.location?ti(d.location.hash,"__posthog")||ti(location.hash,"state"):null,ry="_postHogToolbarParams";(t4=nn||(nn={}))[t4.UNINITIALIZED=0]="UNINITIALIZED",t4[t4.LOADING=1]="LOADING",t4[t4.LOADED=2]="LOADED";class rb{constructor(e){this.instance=e}setToolbarState(e){E.ph_toolbar_state=e}getToolbarState(){var e;return null!==(e=E.ph_toolbar_state)&&void 0!==e?e:nn.UNINITIALIZED}maybeLoadToolbar(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!d||!m)return!1;n=null!==(e=n)&&void 0!==e?e:d.location,i=null!==(t=i)&&void 0!==t?t:d.history;try{let e;if(!r){try{d.localStorage.setItem("test","test"),d.localStorage.removeItem("test")}catch{return!1}r=null==d?void 0:d.localStorage}let t=rv||ti(n.hash,"__posthog")||ti(n.hash,"state"),o=t?Y(()=>JSON.parse(atob(decodeURIComponent(t))))||Y(()=>JSON.parse(decodeURIComponent(t))):null;return o&&"ph_authorize"===o.action?((e=o).source="url",e&&Object.keys(e).length>0&&(o.desiredHash?n.hash=o.desiredHash:i?i.replaceState(i.state,"",n.pathname+n.search):n.hash="")):((e=JSON.parse(r.getItem(ry)||"{}")).source="localstorage",delete e.userIntent),!(!e.token||this.instance.config.token!==e.token)&&(this.loadToolbar(e),!0)}catch{return!1}}_callLoadToolbar(e){(E.ph_load_toolbar||E.ph_load_editor)(e,this.instance)}loadToolbar(e){let t=!(null==m||!m.getElementById(eD));if(!d||t)return!1;let n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r={token:this.instance.config.token,...e,apiURL:this.instance.requestRouter.endpointFor("ui"),...n?{instrument:!1}:{}};if(d.localStorage.setItem(ry,JSON.stringify({...r,source:void 0})),this.getToolbarState()===nn.LOADED)this._callLoadToolbar(r);else if(this.getToolbarState()===nn.UNINITIALIZED){var i,o;this.setToolbarState(nn.LOADING),null===(i=E.__PosthogExtensions__)||void 0===i||null===(o=i.loadExternalDependency)||void 0===o||o.call(i,this.instance,"toolbar",e=>{if(e)return B.error("Failed to load toolbar",e),void this.setToolbarState(nn.UNINITIALIZED);this.setToolbarState(nn.LOADED),this._callLoadToolbar(r)}),en(d,"turbolinks:load",()=>{this.setToolbarState(nn.UNINITIALIZED),this.loadToolbar(r)})}return!0}_loadEditor(e){return this.loadToolbar(e)}maybeLoadEditor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}class rw{isPaused=!0;queue=[];flushTimeoutMs=3e3;constructor(e){this.sendRequest=e}enqueue(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}unload(){this.clearFlushTimeout();let e=Object.values(this.queue.length>0?this.formatQueue():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.sendRequest({...e,transport:"sendBeacon"})})}enable(){this.isPaused=!1,this.setFlushTimeout()}setFlushTimeout(){this.isPaused||(this.flushTimeout=setTimeout(()=>{if(this.clearFlushTimeout(),this.queue.length>0){let e=this.formatQueue();for(let t in e){let n=e[t],r=(new Date).getTime();n.data&&k(n.data)&&X(n.data,e=>{e.offset=Math.abs(e.timestamp-r),delete e.timestamp}),this.sendRequest(n)}}},this.flushTimeoutMs))}clearFlushTimeout(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}formatQueue(){let e={};return X(this.queue,t=>{var n;let r=(t?t.batchKey:null)||t.url;A(e[r])&&(e[r]={...t,data:[]}),null===(n=e[r].data)||void 0===n||n.push(t.data)}),this.queue=[],e}}let rS=!!b||!!y,rE="text/plain",rP=(e,t)=>{let[n,r]=e.split("?"),i={...t};null==r||r.split("&").forEach(e=>{let[t]=e.split("=");delete i[t]});let o=tn(i);return o=o?(r?r+"&":"")+o:r,`${n}?${o}`},rR=e=>{let{data:t,compression:n}=e;if(!t)return;if(n===r.GZipJS){let e=new Blob([rl(ru(JSON.stringify(t)),{mtime:0})],{type:rE});return{contentType:rE,body:e,estimatedSize:e.size}}if(n===r.Base64){let e;let n="data="+encodeURIComponent("string"==typeof(e=function(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,i,o,s,a=0,l=0,u="",c=[];if(!e)return e;e=et(e);do n=(s=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=s>>12&63,i=s>>6&63,o=63&s,c[l++]=t.charAt(n)+t.charAt(r)+t.charAt(i)+t.charAt(o);while(a<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}(JSON.stringify(t)))?e:JSON.stringify(e));return{contentType:"application/x-www-form-urlencoded",body:n,estimatedSize:new Blob([n]).size}}let i=JSON.stringify(t);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}},rx=[];b&&rx.push({transport:"XHR",method:e=>{var t;let n=new b;n.open(e.method||"GET",e.url,!0);let{contentType:r,body:i}=null!==(t=rR(e))&&void 0!==t?t:{};X(e.headers,function(e,t){n.setRequestHeader(t,e)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=()=>{if(4===n.readyState){var t;let r={statusCode:n.status,text:n.responseText};if(200===n.status)try{r.json=JSON.parse(n.responseText)}catch{}null===(t=e.callback)||void 0===t||t.call(e,r)}},n.send(i)}}),y&&rx.push({transport:"fetch",method:e=>{var t,n;let{contentType:r,body:i,estimatedSize:o}=null!==(t=rR(e))&&void 0!==t?t:{},s=new Headers;X(e.headers,function(e,t){s.append(t,e)}),r&&s.append("Content-Type",r);let a=e.url,l=null;if(w){let t=new w;l={signal:t.signal,timeout:setTimeout(()=>t.abort(),e.timeout)}}y(a,{method:(null==e?void 0:e.method)||"GET",headers:s,keepalive:"POST"===e.method&&65536>(o||0),body:i,signal:null===(n=l)||void 0===n?void 0:n.signal}).then(t=>t.text().then(n=>{var r;let i={statusCode:t.status,text:n};if(200===t.status)try{i.json=JSON.parse(n)}catch(e){B.error(e)}null===(r=e.callback)||void 0===r||r.call(e,i)})).catch(t=>{var n;B.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),null!=_&&_.sendBeacon&&rx.push({transport:"sendBeacon",method:e=>{let t=rP(e.url,{beacon:"1"});try{var n;let{contentType:r,body:i}=null!==(n=rR(e))&&void 0!==n?n:{},o="string"==typeof i?new Blob([i],{type:r}):i;_.sendBeacon(t,o)}catch{}}});class rO{isPolling=!1;pollIntervalMs=3e3;queue=[];constructor(e){this.instance=e,this.queue=[],this.areWeOnline=!0,!A(d)&&"onLine"in d.navigator&&(this.areWeOnline=d.navigator.onLine,d.addEventListener("online",()=>{this.areWeOnline=!0,this.flush()}),d.addEventListener("offline",()=>{this.areWeOnline=!1}))}retriableRequest(e){let{retriesPerformedSoFar:t,...n}=e;$(t)&&t>0&&(n.url=rP(n.url,{retry_count:t})),this.instance._send_request({...n,callback:e=>{var r;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.enqueue({retriesPerformedSoFar:t,...n}):null===(r=n.callback)||void 0===r||r.call(n,e)}})}enqueue(e){let t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;let n=function(e){let t=3e3*2**e,n=Math.min(18e5,t),r=(Math.random()-.5)*(n-t/2);return Math.ceil(n+r)}(t),r=Date.now()+n;this.queue.push({retryAt:r,requestOptions:e});let i=`Enqueued failed request for retry in ${n}`;navigator.onLine||(i+=" (Browser is offline)"),B.warn(i),this.isPolling||(this.isPolling=!0,this.poll())}poll(){this.poller&&clearTimeout(this.poller),this.poller=setTimeout(()=>{this.areWeOnline&&this.queue.length>0&&this.flush(),this.poll()},this.pollIntervalMs)}flush(){let e=Date.now(),t=[],n=this.queue.filter(n=>n.retryAt<e||(t.push(n),!1));if(this.queue=t,n.length>0)for(let{requestOptions:e}of n)this.retriableRequest(e)}unload(){for(let{requestOptions:e}of(this.poller&&(clearTimeout(this.poller),this.poller=void 0),this.queue))try{this.instance._send_request({...e,transport:"sendBeacon"})}catch(e){B.error(e)}this.queue=[]}}class rT{_sessionIdChangedHandlers=[];constructor(e,t,n,r){var i;this.config=e,this.persistence=t,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=n||eK,this._windowIdGenerator=r||eK;let o=e.persistence_name||e.token,s=e.session_idle_timeout_seconds||1800;if($(s)?s>1800?B.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):s<60&&B.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(B.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),s=1800),this._sessionTimeoutMs=1e3*Math.min(Math.max(s,60),1800),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){let e=e7.parse(this._window_id_storage_key),t=e7.parse(this._primary_window_exists_storage_key);e&&!t?this._windowId=e:e7.remove(this._window_id_storage_key),e7.set(this._primary_window_exists_storage_key,!0)}if(null!==(i=this.config.bootstrap)&&void 0!==i&&i.sessionID)try{let e=(e=>{let t=e.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})(this.config.bootstrap.sessionID);this._setSessionId(this.config.bootstrap.sessionID,(new Date).getTime(),e)}catch(e){B.error("Invalid sessionID in bootstrap",e)}this._listenToReloadWindow()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return A(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),()=>{this._sessionIdChangedHandlers=this._sessionIdChangedHandlers.filter(t=>t!==e)}}_canUseSessionStorage(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&e7.is_supported()}_setWindowId(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&e7.set(this._window_id_storage_key,e))}_getWindowId(){return this._windowId?this._windowId:this._canUseSessionStorage()?e7.parse(this._window_id_storage_key):null}_setSessionId(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register({[ey]:[t,e,n]}))}_getSessionId(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];let e=this.persistence.props[ey];return k(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this._setSessionId(null,null,null)}_listenToReloadWindow(){null==d||d.addEventListener("beforeunload",()=>{this._canUseSessionStorage()&&e7.remove(this._primary_window_exists_storage_key)})}checkAndGetSessionAndWindowId(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),[n,r,i]=this._getSessionId(),o=this._getWindowId(),s=$(i)&&i>0&&Math.abs(t-i)>864e5,a=!1,l=!r,u=!e&&Math.abs(t-n)>this.sessionTimeoutMs;l||u||s?(r=this._sessionIdGenerator(),o=this._windowIdGenerator(),B.info("[SessionId] new session ID generated",{sessionId:r,windowId:o,changeReason:{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}}),i=t,a=!0):o||(o=this._windowIdGenerator(),a=!0);let c=0===n||!e||s?t:n,d=0===i?(new Date).getTime():i;return this._setWindowId(o),this._setSessionId(r,c,d),a&&this._sessionIdChangedHandlers.forEach(e=>e(r,o,a?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0)),{sessionId:r,windowId:o,sessionStartTimestamp:d,changeReason:a?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0}}}(t6=i||(i={})).US="us",t6.EU="eu",t6.CUSTOM="custom";let rk="i.posthog.com";class rj{_regionCache={};constructor(e){this.instance=e}get apiHost(){let e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get uiHost(){var e;let t=null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace(`.${rk}`,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=i.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=i.EU:this._regionCache[this.apiHost]=i.CUSTOM),this._regionCache[this.apiHost]}endpointFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:`/${t}`),"ui"===e)return this.uiHost+t;if(this.region===i.CUSTOM)return this.apiHost+t;let n=rk+t;switch(e){case"assets":return`https://${this.region}-assets.${n}`;case"api":return`https://${this.region}.${n}`}}}let rC="posthog-js";function rI(e){let{organization:t,projectId:n,prefix:r,severityAllowList:i=["error"]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o=>{var s,a,l,u,c;if(!("*"===i||i.includes(o.level))||!e.__loaded)return o;o.tags||(o.tags={});let d=e.requestRouter.endpointFor("ui",`/project/${e.config.token}/person/${e.get_distinct_id()}`);o.tags["PostHog Person URL"]=d,e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));let f=(null===(s=o.exception)||void 0===s?void 0:s.values)||[],p={$exception_message:(null===(a=f[0])||void 0===a?void 0:a.value)||o.message,$exception_type:null===(l=f[0])||void 0===l?void 0:l.type,$exception_personURL:d,$exception_level:o.level,$exception_list:f,$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(null===(u=f[0])||void 0===u?void 0:u.value)||o.message,$sentry_exception_type:null===(c=f[0])||void 0===c?void 0:c.type,$sentry_tags:o.tags,$level:o.level};return t&&n&&(p.$sentry_url=(r||"https://sentry.io/organizations/")+t+"/issues/?project="+n+"&query="+o.event_id),e.exceptions.sendExceptionEvent(p),o}}class rA{constructor(e,t,n,r,i){this.name=rC,this.setupOnce=function(o){o(rI(e,{organization:t,projectId:n,prefix:r,severityAllowList:i}))}}}class rM{constructor(e){this._instance=e}doPageView(e){var t;let n=this._previousPageViewProperties(e);return this._currentPath=null!==(t=null==d?void 0:d.location.pathname)&&void 0!==t?t:"",this._instance.scrollManager.resetContext(),this._prevPageviewTimestamp=e,n}doPageLeave(e){return this._previousPageViewProperties(e)}_previousPageViewProperties(e){let t=this._currentPath,n=this._prevPageviewTimestamp,r=this._instance.scrollManager.getContext();if(!n)return{};let i={};if(r){let{maxScrollHeight:e,lastScrollY:t,maxScrollY:n,maxContentHeight:o,lastContentY:s,maxContentY:a}=r;A(e)||A(t)||A(n)||A(o)||A(s)||A(a)||(e=Math.ceil(e),t=Math.ceil(t),n=Math.ceil(n),o=Math.ceil(o),s=Math.ceil(s),a=Math.ceil(a),i={$prev_pageview_last_scroll:t,$prev_pageview_last_scroll_percentage:e<=1?1:rL(t/e,0,1),$prev_pageview_max_scroll:n,$prev_pageview_max_scroll_percentage:e<=1?1:rL(n/e,0,1),$prev_pageview_last_content:s,$prev_pageview_last_content_percentage:o<=1?1:rL(s/o,0,1),$prev_pageview_max_content:a,$prev_pageview_max_content_percentage:o<=1?1:rL(a/o,0,1)})}return t&&(i.$prev_pageview_pathname=t),n&&(i.$prev_pageview_duration=(e.getTime()-n.getTime())/1e3),i}}function rL(e,t,n){return Math.max(t,Math.min(e,n))}(t8=o||(o={})).Popover="popover",t8.API="api",t8.Widget="widget",(t7=s||(s={})).Open="open",t7.MultipleChoice="multiple_choice",t7.SingleChoice="single_choice",t7.Rating="rating",t7.Link="link",(t9=a||(a={})).NextQuestion="next_question",t9.End="end",t9.ResponseBased="response_based",t9.SpecificQuestion="specific_question";class rN{events={};constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),()=>{this.events[e]=this.events[e].filter(e=>e!==t)}}emit(e,t){for(let n of this.events[e]||[])n(t);for(let n of this.events["*"]||[])n(e,t)}}class rD{_debugEventEmitter=new rN;constructor(e){this.instance=e,this.actionEvents=new Set,this.actionRegistry=new Set}init(){var e,t;A(null===(e=this.instance)||void 0===e?void 0:e._addCaptureHook)||null===(t=this.instance)||void 0===t||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,n,r;if(!A(null===(t=this.instance)||void 0===t?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,n;null===(t=this.actionRegistry)||void 0===t||t.add(e),null===(n=e.steps)||void 0===n||n.forEach(e=>{var t;null===(t=this.actionEvents)||void 0===t||t.add((null==e?void 0:e.event)||"")})}),null!==(n=this.instance)&&void 0!==n&&n.autocapture)){let t=new Set;e.forEach(e=>{var n;null===(n=e.steps)||void 0===n||n.forEach(e=>{null!=e&&e.selector&&t.add(null==e?void 0:e.selector)})}),null===(r=this.instance)||void 0===r||r.autocapture.setElementSelectors(t)}}on(e,t){var n;null!=t&&0!=e.length&&(this.actionEvents.has(e)||this.actionEvents.has(null==t?void 0:t.event))&&this.actionRegistry&&(null===(n=this.actionRegistry)||void 0===n?void 0:n.size)>0&&this.actionRegistry.forEach(e=>{this.checkAction(t,e)&&this._debugEventEmitter.emit("actionCaptured",e.name)})}_addActionHook(e){this.onAction("actionCaptured",t=>e(t))}checkAction(e,t){if(null==(null==t?void 0:t.steps))return!1;for(let n of t.steps)if(this.checkStep(e,n))return!0;return!1}onAction(e,t){return this._debugEventEmitter.on(e,t)}checkStep=(e,t)=>this.checkStepEvent(e,t)&&this.checkStepUrl(e,t)&&this.checkStepElement(e,t);checkStepEvent=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event);checkStepUrl(e,t){if(null!=t&&t.url){var n;let r=null==e||null===(n=e.properties)||void 0===n?void 0:n.$current_url;if(!r||"string"!=typeof r||!rD.matchString(r,null==t?void 0:t.url,(null==t?void 0:t.url_matching)||"contains"))return!1}return!0}static matchString(e,t,n){switch(n){case"regex":return!!d&&tt(e,t);case"exact":return t===e;case"contains":return tt(e,rD.escapeStringRegexp(t).replace(/_/g,".").replace(/%/g,".*"));default:return!1}}static escapeStringRegexp(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}checkStepElement(e,t){if((null!=t&&t.href||null!=t&&t.tag_name||null!=t&&t.text)&&!this.getElementsList(e).some(e=>!(null!=t&&t.href&&!rD.matchString(e.href||"",null==t?void 0:t.href,(null==t?void 0:t.href_matching)||"exact"))&&(null==t||!t.tag_name||e.tag_name===(null==t?void 0:t.tag_name))&&!(null!=t&&t.text&&!rD.matchString(e.text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact")&&!rD.matchString(e.$el_text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact"))))return!1;if(null!=t&&t.selector){var n;let r=null==e||null===(n=e.properties)||void 0===n?void 0:n.$element_selectors;if(!r||!r.includes(null==t?void 0:t.selector))return!1}return!0}getElementsList(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}class r${static SURVEY_SHOWN_EVENT_NAME="survey shown";constructor(e){this.instance=e,this.eventToSurveys=new Map,this.actionToSurveys=new Map}register(e){var t;A(null===(t=this.instance)||void 0===t?void 0:t._addCaptureHook)||(this.setupEventBasedSurveys(e),this.setupActionBasedSurveys(e))}setupActionBasedSurveys(e){let t=e.filter(e=>{var t,n,r,i;return(null===(t=e.conditions)||void 0===t?void 0:t.actions)&&(null===(n=e.conditions)||void 0===n||null===(r=n.actions)||void 0===r||null===(i=r.values)||void 0===i?void 0:i.length)>0});0!==t.length&&(null==this.actionMatcher&&(this.actionMatcher=new rD(this.instance),this.actionMatcher.init(),this.actionMatcher._addActionHook(e=>{this.onAction(e)})),t.forEach(e=>{var t,n,r,i,o,s,a,l,u,c;e.conditions&&null!==(t=e.conditions)&&void 0!==t&&t.actions&&null!==(n=e.conditions)&&void 0!==n&&null!==(r=n.actions)&&void 0!==r&&r.values&&(null===(i=e.conditions)||void 0===i||null===(o=i.actions)||void 0===o||null===(s=o.values)||void 0===s?void 0:s.length)>0&&(null===(a=this.actionMatcher)||void 0===a||a.register(e.conditions.actions.values),null===(l=e.conditions)||void 0===l||null===(u=l.actions)||void 0===u||null===(c=u.values)||void 0===c||c.forEach(t=>{if(t&&t.name){let n=this.actionToSurveys.get(t.name);n&&n.push(e.id),this.actionToSurveys.set(t.name,n||[e.id])}}))}))}setupEventBasedSurveys(e){var t;0!==e.filter(e=>{var t,n,r,i;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(r=n.events)||void 0===r||null===(i=r.values)||void 0===i?void 0:i.length)>0}).length&&(null===(t=this.instance)||void 0===t||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),e.forEach(e=>{var t,n,r;null===(t=e.conditions)||void 0===t||null===(n=t.events)||void 0===n||null===(r=n.values)||void 0===r||r.forEach(t=>{if(t&&t.name){let n=this.eventToSurveys.get(t.name);n&&n.push(e.id),this.eventToSurveys.set(t.name,n||[e.id])}})}))}onEvent(e,t){var n,r,i;let o=(null===(n=this.instance)||void 0===n||null===(r=n.persistence)||void 0===r?void 0:r.props[eT])||[];if(r$.SURVEY_SHOWN_EVENT_NAME==e&&t&&o.length>0){let e=null==t||null===(i=t.properties)||void 0===i?void 0:i.$survey_id;if(e){let t=o.indexOf(e);t>=0&&(o.splice(t,1),this._updateActivatedSurveys(o))}}else this.eventToSurveys.has(e)&&this._updateActivatedSurveys(o.concat(this.eventToSurveys.get(e)||[]))}onAction(e){var t,n;let r=(null===(t=this.instance)||void 0===t||null===(n=t.persistence)||void 0===n?void 0:n.props[eT])||[];this.actionToSurveys.has(e)&&this._updateActivatedSurveys(r.concat(this.actionToSurveys.get(e)||[]))}_updateActivatedSurveys(e){var t,n;null===(t=this.instance)||void 0===t||null===(n=t.persistence)||void 0===n||n.register({[eT]:[...new Set(e)]})}getSurveys(){var e,t;return(null===(e=this.instance)||void 0===e||null===(t=e.persistence)||void 0===t?void 0:t.props[eT])||[]}getEventToSurveys(){return this.eventToSurveys}_getActionMatcher(){return this.actionMatcher}}let rF="[Surveys]",rU={icontains:e=>!!d&&d.location.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:e=>!!d&&-1===d.location.href.toLowerCase().indexOf(e.toLowerCase()),regex:e=>!!d&&tt(d.location.href,e),not_regex:e=>!!d&&!tt(d.location.href,e),exact:e=>(null==d?void 0:d.location.href)===e,is_not:e=>(null==d?void 0:d.location.href)!==e};class rH{constructor(e){this.instance=e,this._surveyEventReceiver=null}afterDecideResponse(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}loadIfEnabled(){var e,t,n;let r=null==E||null===(e=E.__PosthogExtensions__)||void 0===e?void 0:e.generateSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||r||(null==this._surveyEventReceiver&&(this._surveyEventReceiver=new r$(this.instance)),null===(t=E.__PosthogExtensions__)||void 0===t||null===(n=t.loadExternalDependency)||void 0===n||n.call(t,this.instance,"surveys",e=>{var t,n;if(e)return B.error(rF,"Could not load surveys script",e);this._surveyManager=null===(t=E.__PosthogExtensions__)||void 0===t||null===(n=t.generateSurveys)||void 0===n?void 0:n.call(t,this.instance)}))}getSurveys(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);null==this._surveyEventReceiver&&(this._surveyEventReceiver=new r$(this.instance));let n=this.instance.get_property(eO);if(n&&!t)return e(n);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api",`/api/surveys/?token=${this.instance.config.token}`),method:"GET",transport:"XHR",callback:t=>{var n,r;if(200!==t.statusCode||!t.json)return e([]);let i=t.json.surveys||[],o=i.filter(e=>{var t,n,r,i,o,s,a,l,u,c,d,f;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(r=n.events)||void 0===r?void 0:r.values)&&(null===(i=e.conditions)||void 0===i||null===(o=i.events)||void 0===o||null===(s=o.values)||void 0===s?void 0:s.length)>0||(null===(a=e.conditions)||void 0===a?void 0:a.actions)&&(null===(l=e.conditions)||void 0===l||null===(u=l.actions)||void 0===u?void 0:u.values)&&(null===(c=e.conditions)||void 0===c||null===(d=c.actions)||void 0===d||null===(f=d.values)||void 0===f?void 0:f.length)>0});return o.length>0&&(null===(r=this._surveyEventReceiver)||void 0===r||r.register(o)),null===(n=this.instance.persistence)||void 0===n||n.register({[eO]:i}),e(i)}})}getActiveMatchingSurveys(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys(t=>{var n;let r=t.filter(e=>!(!e.start_date||e.end_date)).filter(e=>{var t,n,r,i;if(!e.conditions)return!0;let o=null===(t=e.conditions)||void 0===t||!t.url||rU[null!==(n=null===(r=e.conditions)||void 0===r?void 0:r.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),s=null===(i=e.conditions)||void 0===i||!i.selector||(null==m?void 0:m.querySelector(e.conditions.selector));return o&&s}),i=null===(n=this._surveyEventReceiver)||void 0===n?void 0:n.getSurveys();return e(r.filter(e=>{var t,n,r,o,s,a,l,u,c,d;if(!e.linked_flag_key&&!e.targeting_flag_key&&!e.internal_targeting_flag_key)return!0;let f=!e.linked_flag_key||this.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),p=!e.targeting_flag_key||this.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),h=(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(r=n.events)||void 0===r?void 0:r.values)&&(null===(o=e.conditions)||void 0===o||null===(s=o.events)||void 0===s?void 0:s.values.length)>0,g=(null===(a=e.conditions)||void 0===a?void 0:a.actions)&&(null===(l=e.conditions)||void 0===l||null===(u=l.actions)||void 0===u?void 0:u.values)&&(null===(c=e.conditions)||void 0===c||null===(d=c.actions)||void 0===d?void 0:d.values.length)>0,_=!h&&!g||(null==i?void 0:i.includes(e.id)),m=this._canActivateRepeatedly(e),v=!(e.internal_targeting_flag_key&&!m)||this.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key);return f&&p&&v&&_}))},t)}getNextSurveyStep(e,t,n){var r,i,o,l,u;let c=e.questions[t],d=t+1;if(null===(r=c.branching)||void 0===r||!r.type)return t===e.questions.length-1?a.End:d;if(c.branching.type===a.End)return a.End;if(c.branching.type===a.SpecificQuestion){if(Number.isInteger(c.branching.index))return c.branching.index}else if(c.branching.type===a.ResponseBased){if(c.type===s.SingleChoice){let e=c.choices.indexOf(`${n}`);if(null!==(i=c.branching)&&void 0!==i&&null!==(o=i.responseValues)&&void 0!==o&&o.hasOwnProperty(e)){let t=c.branching.responseValues[e];return Number.isInteger(t)?t:t===a.End?a.End:d}}else if(c.type===s.Rating){if("number"!=typeof n||!Number.isInteger(n))throw Error("The response type must be an integer");let e=function(e,t){if(3===t){if(e<1||e>3)throw Error("The response must be in range 1-3");return 1===e?"negative":2===e?"neutral":"positive"}if(5===t){if(e<1||e>5)throw Error("The response must be in range 1-5");return e<=2?"negative":3===e?"neutral":"positive"}if(7===t){if(e<1||e>7)throw Error("The response must be in range 1-7");return e<=3?"negative":4===e?"neutral":"positive"}if(10===t){if(e<0||e>10)throw Error("The response must be in range 0-10");return e<=6?"detractors":e<=8?"passives":"promoters"}throw Error("The scale must be one of: 3, 5, 7, 10")}(n,c.scale);if(null!==(l=c.branching)&&void 0!==l&&null!==(u=l.responseValues)&&void 0!==u&&u.hasOwnProperty(e)){let t=c.branching.responseValues[e];return Number.isInteger(t)?t:t===a.End?a.End:d}}return d}return B.warn(rF,"Falling back to next question index due to unexpected branching type"),d}_canActivateRepeatedly(e){var t;return D(null===(t=E.__PosthogExtensions__)||void 0===t?void 0:t.canActivateRepeatedly)?(B.warn(rF,"canActivateRepeatedly is not defined, must init before calling"),!1):E.__PosthogExtensions__.canActivateRepeatedly(e)}canRenderSurvey(e){D(this._surveyManager)?B.warn(rF,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(t=>{let n=t.filter(t=>t.id===e)[0];this._surveyManager.canRenderSurvey(n)})}renderSurvey(e,t){D(this._surveyManager)?B.warn(rF,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(n=>{let r=n.filter(t=>t.id===e)[0];this._surveyManager.renderSurvey(r,null==m?void 0:m.querySelector(t))})}}class rB{serverLimits={};lastEventRateLimited=!1;constructor(e){var t,n;this.instance=e,this.captureEventsPerSecond=(null===(t=e.config.rate_limiting)||void 0===t?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(n=e.config.rate_limiting)||void 0===n?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(){var e,t,n;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(new Date).getTime(),o=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(eI))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);let s=o.tokens<1;return s||r||(o.tokens=Math.max(0,o.tokens-1)),!s||this.lastEventRateLimited||r||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:`posthog-js client rate limited. Config is set to ${this.captureEventsPerSecond} events per second and ${this.captureEventsBurstLimit} events burst limit.`},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=s,null===(n=this.instance.persistence)||void 0===n||n.set_property(eI,o),{isRateLimited:s,remainingTokens:o.tokens}}isServerRateLimited(e){let t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}checkForLimiting=e=>{let t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{B.info(`[RateLimiter] ${e||"events"} is quota limited.`),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void B.warn(`[RateLimiter] could not rate limit - continuing. Error: "${null==e?void 0:e.message}"`,{text:t})}}}let rq=()=>({initialPathName:(null==v?void 0:v.pathname)||"",referringDomain:t1.referringDomain(),...t1.campaignParams()});class rG{constructor(e,t,n){this._sessionIdManager=e,this._persistence=t,this._sessionSourceParamGenerator=n||rq,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}_getStoredProps(){return this._persistence.props[eC]}_onSessionIdCallback=e=>{let t=this._getStoredProps();if(t&&t.sessionId===e)return;let n={sessionId:e,props:this._sessionSourceParamGenerator()};this._persistence.register({[eC]:n})};getSessionProps(){var e;let t=null===(e=this._getStoredProps())||void 0===e?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}let rW=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","headlesschrome","cypress","Google-HotelAdsVerifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],rz=function(e,t){if(!e)return!1;let n=e.toLowerCase();return rW.concat(t||[]).some(e=>{let t=e.toLowerCase();return -1!==n.indexOf(t)})},rX=function(e,t){if(!e)return!1;let n=e.userAgent;if(n&&rz(n,t))return!0;try{let n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>rz(null==e?void 0:e.brand,t)))return!0}catch{}return!!e.webdriver};class rJ{constructor(){this.clicks=[]}isRageClick(e,t,n){let r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}function rV(e){var t;return e.id===eD||!(null===(t=e.closest)||void 0===t||!t.call(e,"#"+eD))}class rK{rageclicks=new rJ;_enabledServerSide=!1;_initialized=!1;_flushInterval=null;constructor(e){var t;this.instance=e,this._enabledServerSide=!(null===(t=this.instance.persistence)||void 0===t||!t.props[el]),null==d||d.addEventListener("beforeunload",()=>{this.flush()})}get flushIntervalMilliseconds(){let e=5e3;return C(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return A(this.instance.config.capture_heatmaps)?A(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this._initialized||(B.info("[heatmaps] starting..."),this._setupListeners(),this._flushInterval=setInterval(this.flush.bind(this),this.flushIntervalMilliseconds));else{var e;clearInterval(null!==(e=this._flushInterval)&&void 0!==e?e:void 0),this.getAndClearBuffer()}}afterDecideResponse(e){let t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[el]:t}),this._enabledServerSide=t,this.startIfEnabled()}getAndClearBuffer(){let e=this.buffer;return this.buffer=void 0,e}_setupListeners(){d&&m&&(en(m,"click",e=>this._onClick(e||(null==d?void 0:d.event)),!1,!0),en(m,"mousemove",e=>this._onMouseMove(e||(null==d?void 0:d.event)),!1,!0),this._initialized=!0)}_getProperties(e,t){let n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(e,t,n){let r=e;for(;r&&nd(r)&&!nf(r,"body")&&r!==n;){if(V(t,null==d?void 0:d.getComputedStyle(r).position))return!0;r=n_(r)}return!1}(nc(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:r),y:e.clientY+(o?0:n),target_fixed:o,type:t}}_onClick(e){var t;if(rV(e.target))return;let n=this._getProperties(e,"click");null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._capture({...n,type:"rageclick"}),this._capture(n)}_onMouseMove(e){rV(e.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(()=>{this._capture(this._getProperties(e,"mousemove"))},500))}_capture(e){if(!d)return;let t=d.location.href;this.buffer=this.buffer||{},this.buffer[t]||(this.buffer[t]=[]),this.buffer[t].push(e)}flush(){this.buffer&&!I(this.buffer)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class rY{constructor(e){this.instance=e}getContext(){return this.context}resetContext(){let e=this.context;return setTimeout(this._updateScrollData,0),e}_updateScrollData=()=>{var e,t,n,r;this.context||(this.context={});let i=this.scrollElement(),o=this.scrollY(),s=i?Math.max(0,i.scrollHeight-i.clientHeight):0,a=o+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.context.lastScrollY=Math.ceil(o),this.context.maxScrollY=Math.max(o,null!==(e=this.context.maxScrollY)&&void 0!==e?e:0),this.context.maxScrollHeight=Math.max(s,null!==(t=this.context.maxScrollHeight)&&void 0!==t?t:0),this.context.lastContentY=a,this.context.maxContentY=Math.max(a,null!==(n=this.context.maxContentY)&&void 0!==n?n:0),this.context.maxContentHeight=Math.max(l,null!==(r=this.context.maxContentHeight)&&void 0!==r?r:0)};startMeasuringScrollPosition(){null==d||d.addEventListener("scroll",this._updateScrollData,!0),null==d||d.addEventListener("scrollend",this._updateScrollData,!0),null==d||d.addEventListener("resize",this._updateScrollData)}scrollElement(){if(!this.instance.config.scroll_root_selector)return null==d?void 0:d.document.documentElement;for(let e of k(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]){let t=null==d?void 0:d.document.querySelector(e);if(t)return t}}scrollY(){if(this.instance.config.scroll_root_selector){let e=this.scrollElement();return e&&e.scrollTop||0}return d&&(d.scrollY||d.pageYOffset||d.document.documentElement.scrollTop)||0}scrollX(){if(this.instance.config.scroll_root_selector){let e=this.scrollElement();return e&&e.scrollLeft||0}return d&&(d.scrollX||d.pageXOffset||d.document.documentElement.scrollLeft)||0}}let rQ="$copy_autocapture";function rZ(e,t){return t.length>e?t.slice(0,e)+"...":t}class r0{_initialized=!1;_isDisabledServerSide=null;rageclicks=new rJ;_elementsChainAsString=!1;constructor(e){this.instance=e,this._elementSelectors=null}get config(){var e,t;let n=C(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null===(e=n.url_allowlist)||void 0===e?void 0:e.map(e=>new RegExp(e)),n.url_ignorelist=null===(t=n.url_ignorelist)||void 0===t?void 0:t.map(e=>new RegExp(e)),n}_addDomEventHandlers(){if(!this.isBrowserSupported())return void B.info("Disabling Automatic Event Collection because this browser is not supported");if(!d||!m)return;let e=e=>{e=e||(null==d?void 0:d.event);try{this._captureEvent(e)}catch(e){B.error("Failed to capture event",e)}},t=e=>{e=e||(null==d?void 0:d.event),this._captureEvent(e,rQ)};en(m,"submit",e,!1,!0),en(m,"change",e,!1,!0),en(m,"click",e,!1,!0),this.config.capture_copied_text&&(en(m,"copy",t,!1,!0),en(m,"cut",t,!1,!0))}startIfEnabled(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}afterDecideResponse(e){e.elementsChainAsString&&(this._elementsChainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[ea]:!!e.autocapture_opt_out}),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this._elementSelectors=e}getElementSelectors(e){var t;let n=[];return null===(t=this._elementSelectors)||void 0===t||t.forEach(t=>{let r=null==m?void 0:m.querySelectorAll(t);null==r||r.forEach(r=>{e===r&&n.push(t)})}),n}get isEnabled(){var e,t;let n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[ea];if(N(this._isDisabledServerSide)&&!F(n)&&!this.instance.config.advanced_disable_decide)return!1;let r=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!r}_previousElementSibling(e){if(e.previousElementSibling)return e.previousElementSibling;let t=e;do t=t.previousSibling;while(t&&!nd(t));return t}_getAugmentPropertiesFromElement(e){if(!nm(e))return{};let t={};return X(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){let n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&nR(r)&&(t[n]=r)}}),t}_getPropertiesFromElement(e,t,n){var r;let i=e.tagName.toLowerCase(),o={tag_name:i};ng.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=rZ(1024,nx(e)):o.$el_text=rZ(1024,nu(e)));let s=na(e);s.length>0&&(o.classes=s.filter(function(e){return""!==e}));let a=null===(r=this.config)||void 0===r?void 0:r.element_attribute_ignorelist;X(e.attributes,function(n){var r;if((!nv(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==a||!a.includes(n.name))&&!t&&nR(n.value)&&(!M(r=n.name)||"_ngcontent"!==r.substring(0,10)&&"_nghost"!==r.substring(0,7))){let e=n.value;"class"===n.name&&(e=no(e).join(" ")),o["attr__"+n.name]=rZ(1024,e)}});let l=1,u=1,c=e;for(;c=this._previousElementSibling(c);)l++,c.tagName===e.tagName&&u++;return o.nth_child=l,o.nth_of_type=u,o}_getDefaultProperties(e){return{$event_type:e,$ce_version:1}}_captureEvent(e){var t,n,r,i,o,s;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(!this.isEnabled)return;let l=nc(e);np(l)&&(l=l.parentNode||null),"$autocapture"===a&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,"$rageclick");let u=a===rQ;if(l&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!d||!e||nf(e,"html")||!nd(e)||null!=n&&n.url_allowlist&&!ns(n.url_allowlist)||null!=n&&n.url_ignorelist&&ns(n.url_ignorelist))return!1;if(null!=n&&n.dom_event_allowlist){let e=n.dom_event_allowlist;if(e&&!e.some(e=>t.type===e))return!1}let o=!1,s=[e],a=!0,l=e;for(;l.parentNode&&!nf(l,"body");)if(nh(l.parentNode))s.push(l.parentNode.host),l=l.parentNode.host;else{if(!(a=n_(l)))break;if(r||ng.indexOf(a.tagName.toLowerCase())>-1)o=!0;else{let e=d.getComputedStyle(a);e&&"pointer"===e.getPropertyValue("cursor")&&(o=!0)}s.push(a),l=a}if(!function(e,t){let n=null==t?void 0:t.element_allowlist;if(A(n))return!0;for(let t of e)if(n.some(e=>t.tagName.toLowerCase()===e))return!0;return!1}(s,n)||!function(e,t){let n=null==t?void 0:t.css_selector_allowlist;if(A(n))return!0;for(let t of e)if(n.some(e=>t.matches(e)))return!0;return!1}(s,n))return!1;let u=d.getComputedStyle(e);if(u&&"pointer"===u.getPropertyValue("cursor")&&"click"===t.type)return!0;let c=e.tagName.toLowerCase();switch(c){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return o?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(ng.indexOf(c)>-1||"true"===e.getAttribute("contenteditable"))}}(l,e,this.config,u,u?["copy","cut"]:void 0)){let t=[l],u=l;for(;u.parentNode&&!nf(u,"body");)nh(u.parentNode)?(t.push(u.parentNode.host),u=u.parentNode.host):(t.push(u.parentNode),u=u.parentNode);let c=[],f={},p,h,g=!1;if(X(t,e=>{let t=nm(e);"a"===e.tagName.toLowerCase()&&(p=e.getAttribute("href"),p=t&&nR(p)&&p),V(na(e),"ph-no-capture")&&(g=!0),c.push(this._getPropertiesFromElement(e,this.instance.config.mask_all_element_attributes,this.instance.config.mask_all_text)),J(f,this._getAugmentPropertiesFromElement(e))}),this.instance.config.mask_all_text||("a"===l.tagName.toLowerCase()||"button"===l.tagName.toLowerCase()?c[0].$el_text=nx(l):c[0].$el_text=nu(l)),p){c[0].attr__href=p;let e=null===(i=te(p))||void 0===i?void 0:i.host,t=null==d||null===(o=d.location)||void 0===o?void 0:o.host;e&&t&&e!==t&&(h=p)}if(g)return!1;let _=J(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:c.map(e=>{var t,n;let r={text:null===(t=e.$el_text)||void 0===t?void 0:t.slice(0,400),tag_name:e.tag_name,href:null===(n=e.attr__href)||void 0===n?void 0:n.slice(0,2048),attr_class:function(e){let t=e.attr__class;return t?k(t)?t:no(t):void 0}(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return K(e).filter(e=>{let[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{let[t,n]=e;return r.attributes[t]=n}),r}).map(e=>{var t,n;let r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class)for(let t of(e.attr_class.sort(),e.attr_class))r+=`.${t.replace(/"/g,"")}`;let i={...e.text?{text:e.text}:{},"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0,...e.href?{href:e.href}:{},...e.attr_id?{attr_id:e.attr_id}:{},...e.attributes},o={};return K(i).sort((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)}).forEach(e=>{let[t,n]=e;return o[nO(t.toString())]=nO(n.toString())}),r+=":"+K(i).map(e=>{let[t,n]=e;return`${t}="${n}"`}).join("")}).join(";")}:{$elements:c},null!==(n=c[0])&&void 0!==n&&n.$el_text?{$el_text:null===(r=c[0])||void 0===r?void 0:r.$el_text}:{},h&&"click"===e.type?{$external_click_url:h}:{},f),m=this.getElementSelectors(l);if(m&&m.length>0&&(_.$element_selectors=m),a===rQ){let t=nl(null==d||null===(s=d.getSelection())||void 0===s?void 0:s.toString()),n=e.type||"clipboard";if(!t)return!1;_.$selected_content=t,_.$copy_type=n}return this.instance.capture(a,_),!0}}isBrowserSupported(){return j(null==m?void 0:m.querySelectorAll)}}class r1{_restoreXHRPatch=void 0;_restoreFetchPatch=void 0;constructor(e){this.instance=e}_loadScript(e){var t,n,r;null!==(t=E.__PosthogExtensions__)&&void 0!==t&&t.tracingHeadersPatchFns&&e(),null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=n.loadExternalDependency)||void 0===r||r.call(n,this.instance,"tracing-headers",t=>{if(t)return B.error("[TRACING-HEADERS] failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):(null===(e=this._restoreXHRPatch)||void 0===e||e.call(this),null===(t=this._restoreFetchPatch)||void 0===t||t.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}_startCapturing=()=>{var e,t,n,r;A(this._restoreXHRPatch)&&(null===(e=E.__PosthogExtensions__)||void 0===e||null===(t=e.tracingHeadersPatchFns)||void 0===t||t._patchXHR(this.instance.sessionManager)),A(this._restoreFetchPatch)&&(null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=n.tracingHeadersPatchFns)||void 0===r||r._patchFetch(this.instance.sessionManager))}}(ne=l||(l={}))[ne.PENDING=-1]="PENDING",ne[ne.DENIED=0]="DENIED",ne[ne.GRANTED=1]="GRANTED";class r2{constructor(e){this.instance=e}get config(){return this.instance.config}get consent(){return this.getDnt()?l.DENIED:this.storedConsent}isOptedOut(){return this.consent===l.DENIED||this.consent===l.PENDING&&this.config.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(e){this.storage.set(this.storageKey,e?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}reset(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}get storageKey(){let{token:e,opt_out_capturing_cookie_prefix:t}=this.instance.config;return(t||"__ph_opt_in_out_")+e}get storedConsent(){let e=this.storage.get(this.storageKey);return"1"===e?l.GRANTED:"0"===e?l.DENIED:l.PENDING}get storage(){if(!this._storage){let e=this.config.opt_out_capturing_persistence_type;this._storage="localStorage"===e?e2:e0;let t="localStorage"===e?e0:e2;t.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut("1"===t.get(this.storageKey)),t.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}getDnt(){return!!this.config.respect_dnt&&!!er([null==_?void 0:_.doNotTrack,null==_?void 0:_.msDoNotTrack,E.doNotTrack],e=>V([!0,1,"1","yes"],e))}}let r3="[Exception Autocapture]";class r5{originalOnUnhandledRejectionHandler=void 0;constructor(e){var t;this.instance=e,this.remoteEnabled=!(null===(t=this.instance.persistence)||void 0===t||!t.props[eu]),this.startIfEnabled()}get isEnabled(){var e;return null!==(e=this.remoteEnabled)&&void 0!==e&&e}get isCapturing(){var e;return!(null==d||null===(e=d.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)}get hasHandlers(){return this.originalOnUnhandledRejectionHandler||this.unwrapOnError}startIfEnabled(){this.isEnabled&&!this.isCapturing&&(B.info(r3+" enabled, starting..."),this.loadScript(this.startCapturing))}loadScript(e){var t,n;this.hasHandlers&&e(),null===(t=E.__PosthogExtensions__)||void 0===t||null===(n=t.loadExternalDependency)||void 0===n||n.call(t,this.instance,"exception-autocapture",t=>{if(t)return B.error(r3+" failed to load script",t);e()})}startCapturing=()=>{var e,t,n,r;if(!d||!this.isEnabled||this.hasHandlers||this.isCapturing)return;let i=null===(e=E.__PosthogExtensions__)||void 0===e||null===(t=e.errorWrappingFunctions)||void 0===t?void 0:t.wrapOnError,o=null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=n.errorWrappingFunctions)||void 0===r?void 0:r.wrapUnhandledRejection;if(i&&o)try{this.unwrapOnError=i(this.captureException.bind(this)),this.unwrapUnhandledRejection=o(this.captureException.bind(this))}catch(e){B.error(r3+" failed to start",e),this.stopCapturing()}else B.error(r3+" failed to load error wrapping functions - cannot start")};stopCapturing(){var e,t;null===(e=this.unwrapOnError)||void 0===e||e.call(this),null===(t=this.unwrapUnhandledRejection)||void 0===t||t.call(this)}afterDecideResponse(e){let t=e.autocaptureExceptions;this.remoteEnabled=!!t,this.instance.persistence&&this.instance.persistence.register({[eu]:this.remoteEnabled}),this.startIfEnabled()}captureException(e){let t=this.instance.requestRouter.endpointFor("ui");e.$exception_personURL=`${t}/project/${this.instance.config.token}/person/${this.instance.get_distinct_id()}`,this.instance.exceptions.sendExceptionEvent(e)}}let r4="[Web Vitals]";class r6{_enabledServerSide=!1;_initialized=!1;buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0};constructor(e){var t;this.instance=e,this._enabledServerSide=!(null===(t=this.instance.persistence)||void 0===t||!t.props[ed]),this.startIfEnabled()}get allowedMetrics(){var e,t;let n=C(this.instance.config.capture_performance)?null===(e=this.instance.config.capture_performance)||void 0===e?void 0:e.web_vitals_allowed_metrics:void 0;return A(n)?(null===(t=this.instance.persistence)||void 0===t?void 0:t.props[ef])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(C(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get _maxAllowedValue(){let e=C(this.instance.config.capture_performance)&&$(this.instance.config.capture_performance.__web_vitals_max_value)?this.instance.config.capture_performance.__web_vitals_max_value:9e5;return 0<e&&e<=6e4?9e5:e}get isEnabled(){let e=C(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals:void 0;return F(e)?e:this._enabledServerSide}startIfEnabled(){this.isEnabled&&!this._initialized&&(B.info(r4+" enabled, starting..."),this.loadScript(this._startCapturing))}afterDecideResponse(e){let t=C(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=C(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this.instance.persistence&&(this.instance.persistence.register({[ed]:t}),this.instance.persistence.register({[ef]:n})),this._enabledServerSide=t,this.startIfEnabled()}loadScript(e){var t,n,r;null!==(t=E.__PosthogExtensions__)&&void 0!==t&&t.postHogWebVitalsCallbacks&&e(),null===(n=E.__PosthogExtensions__)||void 0===n||null===(r=n.loadExternalDependency)||void 0===r||r.call(n,this.instance,"web-vitals",t=>{t?B.error(r4+" failed to load script",t):e()})}_currentURL(){let e=d?d.location.href:void 0;return e||B.error(r4+"Could not determine current URL"),e}_flushToCapture=()=>{clearTimeout(this._delayedFlushTimer),0!==this.buffer.metrics.length&&(this.instance.capture("$web_vitals",this.buffer.metrics.reduce((e,t)=>({...e,[`$web_vitals_${t.name}_event`]:{...t},[`$web_vitals_${t.name}_value`]:t.value}),{})),this.buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})};_addToBuffer=e=>{var t;let n=null===(t=this.instance.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0);if(A(n))return void B.error(r4+"Could not read session ID. Dropping metrics!");this.buffer=this.buffer||{url:void 0,metrics:[],firstMetricTimestamp:void 0};let r=this._currentURL();if(!A(r)){if(D(null==e?void 0:e.name)||D(null==e?void 0:e.value))return void B.error(r4+"Invalid metric received",e);if(this._maxAllowedValue&&e.value>=this._maxAllowedValue)return void B.error(r4+"Ignoring metric with value >= "+this._maxAllowedValue,e);this.buffer.url!==r&&(this._flushToCapture(),this._delayedFlushTimer=setTimeout(this._flushToCapture,this.flushToCaptureTimeoutMs)),A(this.buffer.url)&&(this.buffer.url=r),this.buffer.firstMetricTimestamp=A(this.buffer.firstMetricTimestamp)?Date.now():this.buffer.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.buffer.metrics.push({...e,$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()}),this.buffer.metrics.length===this.allowedMetrics.length&&this._flushToCapture()}};_startCapturing=()=>{let e,t,n,r;let i=E.__PosthogExtensions__;A(i)||A(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&e(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this._addToBuffer.bind(this)),this._initialized=!0):B.error(r4+"web vitals callbacks not loaded - not starting")}}let r8={icontains:(e,t)=>!!d&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!d&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!d&&tt(t.href,e),not_regex:(e,t)=>!!d&&!tt(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class r7{constructor(e){this.instance=e,this.instance.onFeatureFlags&&this.instance.onFeatureFlags(e=>{this.applyFeatureFlagChanges(e)}),this._flagToExperiments=new Map}applyFeatureFlagChanges(e){D(this._flagToExperiments)||this.instance.config.disable_web_experiments||(r7.logInfo("applying feature flags",e),e.forEach(e=>{var t,n;if(this._flagToExperiments&&null!==(t=this._flagToExperiments)&&void 0!==t&&t.has(e)){let t=this.instance.getFeatureFlag(e),r=null===(n=this._flagToExperiments)||void 0===n?void 0:n.get(e);t&&null!=r&&r.variants[t]&&this.applyTransforms(r.name,t,r.variants[t].transforms)}}))}afterDecideResponse(e){this._is_bot()?r7.logInfo("Refusing to render web experiment since the viewer is a likely bot"):(this._featureFlags=e.featureFlags,this.loadIfEnabled(),this.previewWebExperiment())}previewWebExperiment(){let e=r7.getWindowLocation();if(null!=e&&e.search){let t=tr(null==e?void 0:e.search,"__experiment_id"),n=tr(null==e?void 0:e.search,"__experiment_variant");t&&n&&(r7.logInfo(`previewing web experiments ${t} && ${n}`),this.getWebExperiments(e=>{this.showPreviewWebExperiment(parseInt(t),n,e)},!1,!0))}}loadIfEnabled(){this.instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperimentsAndEvaluateDisplayLogic=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.getWebExperiments(t=>{r7.logInfo("retrieved web experiments from the server"),e._flagToExperiments=new Map,t.forEach(t=>{if(t.feature_flag_key&&e._featureFlags&&e._featureFlags[t.feature_flag_key]){var n;e._flagToExperiments&&(r7.logInfo("setting flag key ",t.feature_flag_key," to web experiment ",t),null===(n=e._flagToExperiments)||void 0===n||n.set(t.feature_flag_key,t));let r=e._featureFlags[t.feature_flag_key];r&&t.variants[r]&&e.applyTransforms(t.name,r,t.variants[r].transforms)}else if(t.variants)for(let n in t.variants){let r=t.variants[n];r7.matchesTestVariant(r)&&e.applyTransforms(t.name,n,r.transforms)}})},t)}})();getWebExperiments(e,t,n){if(this.instance.config.disable_web_experiments&&!n)return e([]);let r=this.instance.get_property("$web_experiments");if(r&&!t)return e(r);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api",`/api/web_experiments/?token=${this.instance.config.token}`),method:"GET",transport:"XHR",callback:t=>200===t.statusCode&&t.json?e(t.json.experiments||[]):e([])})}showPreviewWebExperiment(e,t,n){let r=n.filter(t=>t.id===e);r&&r.length>0&&(r7.logInfo(`Previewing web experiment [${r[0].name}] with variant [${t}]`),this.applyTransforms(r[0].name,t,r[0].variants[t].transforms,!0))}static matchesTestVariant(e){return!D(e.conditions)&&r7.matchUrlConditions(e)&&r7.matchUTMConditions(e)}static matchUrlConditions(e){var t,n,r,i;if(D(e.conditions)||D(null===(t=e.conditions)||void 0===t?void 0:t.url))return!0;let o=r7.getWindowLocation();return!!o&&(null===(n=e.conditions)||void 0===n||!n.url||r8[null!==(r=null===(i=e.conditions)||void 0===i?void 0:i.urlMatchType)&&void 0!==r?r:"icontains"](e.conditions.url,o))}static getWindowLocation(){return null==d?void 0:d.location}static matchUTMConditions(e){var t,n,r,i,o,s,a,l,u,c,d,f,p,h,g,_,m;if(D(e.conditions)||D(null===(t=e.conditions)||void 0===t?void 0:t.utm))return!0;let v=t1.campaignParams();if(v.utm_source){let t=null===(n=e.conditions)||void 0===n||null===(r=n.utm)||void 0===r||!r.utm_campaign||(null===(i=e.conditions)||void 0===i||null===(o=i.utm)||void 0===o?void 0:o.utm_campaign)==v.utm_campaign,y=null===(s=e.conditions)||void 0===s||null===(a=s.utm)||void 0===a||!a.utm_source||(null===(l=e.conditions)||void 0===l||null===(u=l.utm)||void 0===u?void 0:u.utm_source)==v.utm_source,b=null===(c=e.conditions)||void 0===c||null===(d=c.utm)||void 0===d||!d.utm_medium||(null===(f=e.conditions)||void 0===f||null===(p=f.utm)||void 0===p?void 0:p.utm_medium)==v.utm_medium,w=null===(h=e.conditions)||void 0===h||null===(g=h.utm)||void 0===g||!g.utm_term||(null===(_=e.conditions)||void 0===_||null===(m=_.utm)||void 0===m?void 0:m.utm_term)==v.utm_term;return t&&b&&w&&y}return!1}static logInfo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];B.info(`[WebExperiments] ${e}`,n)}applyTransforms(e,t,n,r){var i;this._is_bot()?r7.logInfo("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?n.forEach(n=>{if(n.selector){var i,o;r7.logInfo(`applying transform of variant ${t} for experiment ${e} `,n);let s=0,a=null===(i=document)||void 0===i?void 0:i.querySelectorAll(n.selector);null==a||a.forEach(e=>{s+=1,n.attributes&&n.attributes.forEach(t=>{switch(t.name){case"text":e.innerText=t.value;break;case"html":e.innerHTML=t.value;break;case"cssClass":e.className=t.value;break;default:e.setAttribute(t.name,t.value)}}),n.text&&(e.innerText=n.text),n.html&&(e.parentElement?e.parentElement.innerHTML=n.html:e.innerHTML=n.html),n.css&&e.setAttribute("style",n.css)}),this.instance&&this.instance.capture&&this.instance.capture("$web_experiment_applied",{$web_experiment_name:e,$web_experiment_variant:t,$web_experiment_preview:r,$web_experiment_document_url:null===(o=r7.getWindowLocation())||void 0===o?void 0:o.href,$web_experiment_elements_modified:s})}}):(r7.logInfo("Control variants leave the page unmodified."),this.instance&&this.instance.capture&&this.instance.capture("$web_experiment_applied",{$web_experiment_name:e,$web_experiment_preview:r,$web_experiment_variant:t,$web_experiment_document_url:null===(i=r7.getWindowLocation())||void 0===i?void 0:i.href,$web_experiment_elements_modified:0}))}_is_bot(){return _&&this.instance?rX(_,this.instance.config.custom_blocked_useragents):void 0}}class r9{constructor(e){var t;this.instance=e,this._endpointSuffix=(null===(t=this.instance.persistence)||void 0===t?void 0:t.props[ec])||"/e/"}get endpoint(){return this.instance.requestRouter.endpointFor("api",this._endpointSuffix)}afterDecideResponse(e){let t=e.autocaptureExceptions;this._endpointSuffix=C(t)&&t.endpoint||"/e/",this.instance.persistence&&this.instance.persistence.register({[ec]:this._endpointSuffix})}sendExceptionEvent(e){this.instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent",_url:this.endpoint})}}let ie={},it=()=>{},ir="posthog",ii=!rS&&-1===(null==S?void 0:S.indexOf("MSIE"))&&-1===(null==S?void 0:S.indexOf("Mozilla")),io=()=>{var e;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:function(e){let t=null==e?void 0:e.hostname;return!!M(t)&&"herokuapp.com"!==t.split(".").slice(-2).join(".")}(null==m?void 0:m.location),persistence:"localStorage+cookie",persistence_name:"",loaded:it,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:v&&M(null==v?void 0:v.search)&&-1!==v.search.indexOf("__posthog_debug=true")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==d||null===(e=d.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:e=>{let t="Bad HTTP status: "+e.statusCode+" "+e.text;B.error(t)},get_device_id:e=>e,_onCapture:it,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",__add_tracing_headers:!1}},is=e=>{let t={};A(e.process_person)||(t.person_profiles=e.process_person),A(e.xhr_headers)||(t.request_headers=e.xhr_headers),A(e.cookie_name)||(t.persistence_name=e.cookie_name),A(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);let n=J({},t,e);return k(e.property_blacklist)&&(A(e.property_denylist)?n.property_denylist=e.property_blacklist:k(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:B.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class ia{get _forceAllowLocalhost(){return this.__forceAllowLocalhost}set _forceAllowLocalhost(e){B.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}__forceAllowLocalhost=!1}class il{webPerformance=new ia;version=P.LIB_VERSION;_internalEventEmitter=new rN;constructor(){this.config=io(),this.decideEndpointWasHit=!1,this.SentryIntegration=rA,this.sentryIntegration=e=>(function(e,t){let n=rI(e,t);return{name:rC,processEvent:e=>n(e)}})(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this._initialPageviewCaptured=!1,this._initialPersonProfilesConfig=null,this.featureFlags=new eq(this),this.toolbar=new rb(this),this.scrollManager=new rY(this),this.pageViewManager=new rM(this),this.surveys=new rH(this),this.experiments=new r7(this),this.exceptions=new r9(this),this.rateLimiter=new rB(this),this.requestRouter=new rj(this),this.consent=new r2(this),this.people={set:(e,t,n)=>{let r=M(e)?{[e]:t}:e;this.setPersonProperties(r),null==n||n({})},set_once:(e,t,n)=>{let r=M(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),null==n||n({})}},this.on("eventCaptured",e=>B.info(`send "${null==e?void 0:e.event}"`,e))}init(e,t,n){if(n&&n!==ir){var r;let i=null!==(r=ie[n])&&void 0!==r?r:new il;return i._init(e,t,n),ie[n]=i,ie[ir][n]=i,i}return this._init(e,t,n)}_init(e){var t,n,i,o,s,a;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2?arguments[2]:void 0;if(A(e)||L(e))return B.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return B.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this._triggered_notifs=[],l.person_profiles&&(this._initialPersonProfilesConfig=l.person_profiles),this.set_config(J({},io(),is(l),{name:u,token:e})),this.config.on_xhr_error&&B.error("[posthog] on_xhr_error is deprecated. Use on_request_error instead"),this.compression=l.disable_compression?void 0:r.GZipJS,this.persistence=new t3(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new t3({...this.config,persistence:"sessionStorage"});let c={...this.persistence.props},f={...this.sessionPersistence.props};if(this._requestQueue=new rw(e=>this._send_retriable_request(e)),this._retryQueue=new rO(this),this.__request_queue=[],this.sessionManager=new rT(this.config,this.persistence),this.sessionPropsManager=new rG(this.sessionManager,this.persistence),new r1(this).startIfEnabledOrStop(),this.sessionRecording=new r_(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new r0(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new rK(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new r6(this),this.exceptionObserver=new r5(this),this.exceptionObserver.startIfEnabled(),P.DEBUG=P.DEBUG||this.config.debug,P.DEBUG&&B.info("Starting in debug mode",{this:this,config:l,thisC:{...this.config},p:c,s:f}),this._sync_opt_out_with_persistence(),void 0!==(null===(t=l.bootstrap)||void 0===t?void 0:t.distinctID)){let e=this.config.get_device_id(eK()),t=null!==(i=l.bootstrap)&&void 0!==i&&i.isIdentifiedID?e:l.bootstrap.distinctID;this.persistence.set_property(ej,null!==(o=l.bootstrap)&&void 0!==o&&o.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:l.bootstrap.distinctID,$device_id:t})}if(this._hasBootstrappedFeatureFlags()){let e=Object.keys((null===(s=l.bootstrap)||void 0===s?void 0:s.featureFlags)||{}).filter(e=>{var t,n;return!(null===(t=l.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])}).reduce((e,t)=>{var n,r;return e[t]=(null===(n=l.bootstrap)||void 0===n||null===(r=n.featureFlags)||void 0===r?void 0:r[t])||!1,e},{}),t=Object.keys((null===(a=l.bootstrap)||void 0===a?void 0:a.featureFlagPayloads)||{}).filter(t=>e[t]).reduce((e,t)=>{var n,r,i,o;return null!==(n=l.bootstrap)&&void 0!==n&&null!==(r=n.featureFlagPayloads)&&void 0!==r&&r[t]&&(e[t]=null===(i=l.bootstrap)||void 0===i||null===(o=i.featureFlagPayloads)||void 0===o?void 0:o[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:e,featureFlagPayloads:t})}if(!this.get_distinct_id()){let e=this.config.get_device_id(eK());this.register_once({distinct_id:e,$device_id:e},""),this.persistence.set_property(ej,"anonymous")}return null==d||null===(n=d.addEventListener)||void 0===n||n.call(d,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),l.segment?function(e,t){let n=e.config.segment;if(!n)return t();!function(e,t){let n=e.config.segment;if(!n)return t();let r=n=>{let r=()=>n.anonymousId()||eK();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(ej,"identified")),t()},i=n.user();"then"in i&&j(i.then)?i.then(e=>r(e)):r(i)}(e,()=>{n.register((e=>{Promise&&Promise.resolve||B.warn("This browser does not have Promise support, and can not use the segment integration");let t=(t,n)=>{var r;if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(B.info("Segment integration does not have a userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(B.info("Segment integration has a userId set, identifying with PostHog"),e.identify(t.event.userId));let i=e._calculate_event_properties(n,null!==(r=t.event.properties)&&void 0!==r?r:{},new Date);return t.event.properties=Object.assign({},i,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this._loaded()):this._loaded(),j(this.config._onCapture)&&this.on("eventCaptured",e=>this.config._onCapture(e.event,e)),this}_afterDecideResponse(e){var t,n,i,o,s,a,l,u,c;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=V(e.supportedCompression,r.GZipJS)?r.GZipJS:V(e.supportedCompression,r.Base64)?r.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this._initialPersonProfilesConfig?this._initialPersonProfilesConfig:e.defaultIdentifiedOnly?"identified_only":"always"}),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(i=this.autocapture)||void 0===i||i.afterDecideResponse(e),null===(o=this.heatmaps)||void 0===o||o.afterDecideResponse(e),null===(s=this.experiments)||void 0===s||s.afterDecideResponse(e),null===(a=this.surveys)||void 0===a||a.afterDecideResponse(e),null===(l=this.webVitalsAutocapture)||void 0===l||l.afterDecideResponse(e),null===(u=this.exceptions)||void 0===u||u.afterDecideResponse(e),null===(c=this.exceptionObserver)||void 0===c||c.afterDecideResponse(e)}_loaded(){let e=this.config.advanced_disable_decide;e||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){B.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this._captureInitialPageview()},1),e||(new rm(this).call(),this.featureFlags.resetRequestQueue())}_start_queue_if_opted_in(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}_dom_loaded(){this.has_opted_out_capturing()||z(this.__request_queue,e=>this._send_retriable_request(e)),this.__request_queue=[],this._start_queue_if_opted_in()}_handle_unload(){var e,t;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(ii?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=rP(e.url,{ip:this.config.ip?1:0}),e.headers={...this.config.request_headers},e.compression="best-available"===e.compression?this.compression:e.compression,(e=>{var t,n,r;let i={...e};i.timeout=i.timeout||6e4,i.url=rP(i.url,{_:(new Date).getTime().toString(),ver:P.LIB_VERSION,compression:i.compression});let o=null!==(t=i.transport)&&void 0!==t?t:"XHR",s=null!==(n=null===(r=er(rx,e=>e.transport===o))||void 0===r?void 0:r.method)&&void 0!==n?n:rx[0].method;if(!s)throw Error("No available transport method");s(i)})({...e,callback:t=>{var n,r,i;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null===(r=(i=this.config).on_request_error)||void 0===r||r.call(i,t)),null===(n=e.callback)||void 0===n||n.call(e,t)}})))}_send_retriable_request(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}_execute_array(e){let t;let n=[],r=[],i=[];z(e,e=>{e&&(k(t=e[0])?i.push(e):j(e)?e.call(this):k(e)&&"alias"===t?n.push(e):k(e)&&-1!==t.indexOf("capture")&&j(this[t])?i.push(e):r.push(e))});let o=function(e,t){z(e,function(e){if(k(e[0])){let n=t;X(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(n,this),o(r,this),o(i,this)}_hasBootstrappedFeatureFlags(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,n){var r,i,o;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return void B.uninitializedWarning("posthog.capture");if(this.consent.isOptedOut())return;if(A(e)||!M(e))return void B.error("No event name provided to posthog.capture");if(!this.config.opt_out_useragent_filter&&this._is_bot())return;let s=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null!=s&&s.isRateLimited)return void B.critical("This capture call is ignored due to client rate limiting.");this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.store_google||this.config.save_referrer)&&this.persistence.set_initial_person_info();let a=new Date,l=(null==n?void 0:n.timestamp)||a,u={uuid:eK(),event:e,properties:this._calculate_event_properties(e,t||{},l)};s&&(u.properties.$lib_rate_limit_remaining_tokens=s.remainingTokens),(null==n?void 0:n.$set)&&(u.$set=null==n?void 0:n.$set);let c=this._calculate_set_once_properties(null==n?void 0:n.$set_once);c&&(u.$set_once=c),i=u,o=null!=n&&n._noTruncate?null:this.config.properties_string_max_length,(u=function(e,t){let n=new Set;return function e(r,i){let o;return r!==Object(r)?t?t(r,i):r:n.has(r)?void 0:(n.add(r),k(r)?(o=[],z(r,t=>{o.push(e(t))})):(o={},X(r,(t,r)=>{n.has(t)||(o[r]=e(t,r))})),o)}(e)}(i,e=>M(e)&&!N(o)?e.slice(0,o):e)).timestamp=l,A(null==n?void 0:n.timestamp)||(u.properties.$event_time_override_provided=!0,u.properties.$event_time_override_system_time=a);let d={...u.properties.$set,...u.$set};I(d)||this.setPersonPropertiesForFlags(d),this._internalEventEmitter.emit("eventCaptured",u);let f={method:"POST",url:null!==(r=null==n?void 0:n._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:u,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(f):this._requestQueue.enqueue(f),u}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}_calculate_event_properties(e,t,n){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;let r=this.persistence.remove_event_timer(e),o={...t};if(o.token=this.config.token,"$snapshot"===e){let e={...this.persistence.properties(),...this.sessionPersistence.properties()};return o.distinct_id=e.distinct_id,(!M(o.distinct_id)&&!$(o.distinct_id)||L(o.distinct_id))&&B.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}let s=t1.properties();if(this.sessionManager){let{sessionId:e,windowId:t}=this.sessionManager.checkAndGetSessionAndWindowId();o.$session_id=e,o.$window_id=t}if(this.requestRouter.region===i.CUSTOM&&(o.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){let e=this.sessionPropsManager.getSessionProps();o=J(o,e)}if(!this.config.disable_scroll_properties){let t={};"$pageview"===e?t=this.pageViewManager.doPageView(n):"$pageleave"===e&&(t=this.pageViewManager.doPageLeave(n)),o=J(o,t)}if("$pageview"===e&&m&&(o.title=m.title),!A(r)){let e=n.getTime()-r;o.$duration=parseFloat((e/1e3).toFixed(3))}S&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=J({},s,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),k(this.config.property_denylist)?X(this.config.property_denylist,function(e){delete o[e]}):B.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);let a=this.config.sanitize_properties;a&&(o=a(o,e));let l=this._hasPersonProcessing();return o.$process_person_profile=l,l&&this._requirePersonProcessing("_calculate_event_properties"),o}_calculate_set_once_properties(e){if(!this.persistence||!this._hasPersonProcessing())return e;let t=J({},this.persistence.get_initial_props(),e||{}),n=this.config.sanitize_properties;return n&&(t=n(t,"$set_once")),I(t)?void 0:t}register(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}register_once(e,t,n){var r;null===(r=this.persistence)||void 0===r||r.register_once(e,t,n)}register_for_session(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}unregister(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}unregister_for_session(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}_register_single(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){let t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch{return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}getEarlyAccessFeatures(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}on(e,t){return this._internalEventEmitter.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSessionId(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}canRenderSurvey(e){this.surveys.canRenderSurvey(e)}getNextSurveyStep(e,t,n){return this.surveys.getNextSurveyStep(e,t,n)}identify(e,t,n){if(!this.__loaded||!this.persistence)return B.uninitializedWarning("posthog.identify");if($(e)&&(e=e.toString(),B.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),!e)return void B.error("Unique user id has not been set in posthog.identify");if(["distinct_id","distinctid"].includes(e.toLowerCase()))return void B.critical(`The string "${e}" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.`);if(!this._requirePersonProcessing("posthog.identify"))return;let r=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),e!==r&&e!==this.get_property(eo)&&(this.unregister(eo),this.register({distinct_id:e}));let i="anonymous"===(this.persistence.get_property(ej)||"anonymous");e!==r&&i?(this.persistence.set_property(ej,"identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(ek))}setPersonProperties(e,t){(e||t)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}group(e,t,n){if(!e||!t)return void B.error("posthog.group requires a group type and group key");if(!this._requirePersonProcessing("posthog.group"))return;let r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:{...r,[e]:t}}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),r[e]===t||n||this.reloadFeatureFlags()}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i;if(B.info("reset"),!this.__loaded)return B.uninitializedWarning("posthog.reset");let o=this.get_property("$device_id");this.consent.reset(),null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(r=this.persistence)||void 0===r||r.set_property(ej,"anonymous"),null===(i=this.sessionManager)||void 0===i||i.resetSessionId();let s=this.config.get_device_id(eK());this.register_once({distinct_id:s,$device_id:e?s:o},"")}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";let{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui",`/project/${this.config.token}/replay/${t}`);if(null!=e&&e.withTimestamp&&n){var i;let t=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!n)return r;r+=`?t=${Math.max(Math.floor(((new Date).getTime()-n)/1e3)-t,0)}`}return r}alias(e,t){return e===this.get_property(ei)?(B.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(A(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(eo,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(B.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t,n,r,i;let o={...this.config};C(e)&&(J(this.config,is(e)),null===(t=this.persistence)||void 0===t||t.update_config(this.config,o),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new t3({...this.config,persistence:"sessionStorage"}),e2.is_supported()&&"true"===e2.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(P.DEBUG=!0,B.info("set_config",{config:e,oldConfig:o,newConfig:{...this.config}})),null===(n=this.sessionRecording)||void 0===n||n.startIfEnabledOrStop(),null===(r=this.autocapture)||void 0===r||r.startIfEnabled(),null===(i=this.heatmaps)||void 0===i||i.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}startSessionRecording(e){let t=F(e)&&e;if(t||null!=e&&e.sampling||null!=e&&e.linked_flag){var n,r,i;let o=null===(n=this.sessionManager)||void 0===n?void 0:n.checkAndGetSessionAndWindowId();(t||null!=e&&e.sampling)&&(null===(r=this.sessionRecording)||void 0===r||r.overrideSampling(),B.info("Session recording started with sampling override for session: ",null==o?void 0:o.sessionId)),(t||null!=e&&e.linked_flag)&&(null===(i=this.sessionRecording)||void 0===i||i.overrideLinkedFlag(),B.info("Session recording started with linked_flags override"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}captureException(e,t){var n;let r=Error("PostHog syntheticException"),i=j(null===(n=E.__PosthogExtensions__)||void 0===n?void 0:n.parseErrorAsProperties)?E.__PosthogExtensions__.parseErrorAsProperties([e.message,void 0,void 0,void 0,e],{syntheticException:r}):{$exception_level:"error",$exception_list:[{type:e.name,value:e.message,mechanism:{handled:!0,synthetic:!1}}],...t};this.exceptions.sendExceptionEvent(i)}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}getSessionProperty(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}toString(){var e;let t=null!==(e=this.config.name)&&void 0!==e?e:ir;return t!==ir&&(t=ir+"."+t),t}_isIdentified(){var e,t;return"identified"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(ej))||"identified"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(ej))}_hasPersonProcessing(){var e,t,n,r;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&I(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[eo])&&(null===(n=this.persistence)||void 0===n||null===(r=n.props)||void 0===r||!r[eN]))}_shouldCapturePageleave(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}createPersonProfile(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}_requirePersonProcessing(e){return"never"===this.config.person_profiles?(B.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(eN,!0),!0)}_sync_opt_out_with_persistence(){var e,t,n,r;let i=this.consent.isOptedOut(),o=this.config.opt_out_persistence_by_default,s=this.config.disable_persistence||i&&!!o;(null===(e=this.persistence)||void 0===e?void 0:e.disabled)!==s&&(null===(n=this.persistence)||void 0===n||n.set_disabled(s)),(null===(t=this.sessionPersistence)||void 0===t?void 0:t.disabled)!==s&&(null===(r=this.sessionPersistence)||void 0===r||r.set_disabled(s))}opt_in_capturing(e){var t;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),(A(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(t=null==e?void 0:e.captureEventName)&&void 0!==t?t:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this._captureInitialPageview()}opt_out_capturing(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this._sync_opt_out_with_persistence()}_is_bot(){return _?rX(_,this.config.custom_blocked_useragents):void 0}_captureInitialPageview(){m&&!this._initialPageviewCaptured&&(this._initialPageviewCaptured=!0,this.capture("$pageview",{title:m.title},{send_instantly:!0}))}debug(e){!1===e?(null==d||d.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==d||d.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}!function(e,t){for(let n=0;n<t.length;n++)e.prototype[t[n]]=Q(e.prototype[t[n]])}(il,["identify"]);let iu=function(){let e=ie[ir]=new il;return function(){function e(){e.done||(e.done=!0,ii=!1,X(ie,function(e){e._dom_loaded()}))}null!=m&&m.addEventListener&&("complete"===m.readyState?e():m.addEventListener("DOMContentLoaded",e,!1)),d&&en(d,"load",e,!0)}(),e}()},47149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(54832).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54832:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25575:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(54832).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20030:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(54832).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34040:function(e,t,n){"use strict";var r=n(54887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54887:function(e,t,n){"use strict";(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),e.exports=n(84417)},97950:function(e,t,n){"use strict";var r=n(54887),i={stream:!0},o=new Map;function s(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var l=new Map,u=n.u;n.u=function(e){var t=l.get(e);return void 0!==t?t:u(e)};var c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,d=Symbol.for("react.element"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,g=Object.getPrototypeOf,_=Object.prototype,m=new WeakMap;function v(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function y(e){switch(e.status){case"resolved_model":x(e);break;case"resolved_module":O(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function b(e,t){for(var n=0;n<e.length;n++)(0,e[n])(t)}function w(e,t,n){switch(e.status){case"fulfilled":b(t,e.value);break;case"pending":case"blocked":case"cyclic":e.value=t,e.reason=n;break;case"rejected":n&&b(n,e.reason)}}function S(e,t){if("pending"===e.status||"blocked"===e.status){var n=e.reason;e.status="rejected",e.reason=t,null!==n&&b(n,t)}}function E(e,t){if("pending"===e.status||"blocked"===e.status){var n=e.value,r=e.reason;e.status="resolved_module",e.value=t,null!==n&&(O(e),w(e,n,r))}}v.prototype=Object.create(Promise.prototype),v.prototype.then=function(e,t){switch(this.status){case"resolved_model":x(this);break;case"resolved_module":O(this)}switch(this.status){case"fulfilled":e(this.value);break;case"pending":case"blocked":case"cyclic":e&&(null===this.value&&(this.value=[]),this.value.push(e)),t&&(null===this.reason&&(this.reason=[]),this.reason.push(t));break;default:t(this.reason)}};var P=null,R=null;function x(e){var t=P,n=R;P=e,R=null;var r=e.value;e.status="cyclic",e.value=null,e.reason=null;try{var i=JSON.parse(r,e._response._fromJSON);if(null!==R&&0<R.deps)R.value=i,e.status="blocked",e.value=null,e.reason=null;else{var o=e.value;e.status="fulfilled",e.value=i,null!==o&&b(o,i)}}catch(t){e.status="rejected",e.reason=t}finally{P=t,R=n}}function O(e){try{var t=e.value,r=n(t[0]);if(4===t.length&&"function"==typeof r.then){if("fulfilled"===r.status)r=r.value;else throw r.reason}var i="*"===t[2]?r:""===t[2]?r.__esModule?r.default:r:r[t[2]];e.status="fulfilled",e.value=i}catch(t){e.status="rejected",e.reason=t}}function T(e,t){e._chunks.forEach(function(e){"pending"===e.status&&S(e,t)})}function k(e,t){var n=e._chunks,r=n.get(t);return r||(r=new v("pending",null,null,e),n.set(t,r)),r}function j(e,t){if("resolved_model"===(e=k(e,t)).status&&x(e),"fulfilled"===e.status)return e.value;throw e.reason}function C(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.')}function I(e,t,n,r,i){var o;return(e={_bundlerConfig:e,_moduleLoading:t,_callServer:void 0!==n?n:C,_encodeFormAction:r,_nonce:i,_chunks:new Map,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]})._fromJSON=(o=e,function(e,t){return"string"==typeof t?function(e,t,n,r){if("$"===r[0]){if("$"===r)return d;switch(r[1]){case"$":return r.slice(1);case"L":return{$$typeof:f,_payload:e=k(e,t=parseInt(r.slice(2),16)),_init:y};case"@":if(2===r.length)return new Promise(function(){});return k(e,t=parseInt(r.slice(2),16));case"S":return Symbol.for(r.slice(2));case"F":return t=j(e,t=parseInt(r.slice(2),16)),function(e,t){function n(){var e=Array.prototype.slice.call(arguments),n=t.bound;return n?"fulfilled"===n.status?r(t.id,n.value.concat(e)):Promise.resolve(n).then(function(n){return r(t.id,n.concat(e))}):r(t.id,e)}var r=e._callServer;return m.set(n,t),n}(e,t);case"Q":return new Map(e=j(e,t=parseInt(r.slice(2),16)));case"W":return new Set(e=j(e,t=parseInt(r.slice(2),16)));case"I":return 1/0;case"-":return"$-0"===r?-0:-1/0;case"N":return NaN;case"u":return;case"D":return new Date(Date.parse(r.slice(2)));case"n":return BigInt(r.slice(2));default:switch((e=k(e,r=parseInt(r.slice(1),16))).status){case"resolved_model":x(e);break;case"resolved_module":O(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":var i;return r=P,e.then(function(e,t,n,r){if(R){var i=R;r||i.deps++}else i=R={deps:r?0:1,value:null};return function(r){t[n]=r,i.deps--,0===i.deps&&"blocked"===e.status&&(r=e.value,e.status="fulfilled",e.value=i.value,null!==r&&b(r,i.value))}}(r,t,n,"cyclic"===e.status),(i=r,function(e){return S(i,e)})),null;default:throw e.reason}}}return r}(o,this,e,t):"object"==typeof t&&null!==t?e=t[0]===d?{$$typeof:d,type:t[1],key:t[2],ref:null,props:t[3],_owner:null}:t:t}),e}function A(e,t){function r(t){T(e,t)}var u=t.getReader();u.read().then(function t(d){var f=d.value;if(d.done)T(e,Error("Connection closed."));else{var p=0,h=e._rowState,g=e._rowID,_=e._rowTag,m=e._rowLength;d=e._buffer;for(var y=f.length;p<y;){var b=-1;switch(h){case 0:58===(b=f[p++])?h=1:g=g<<4|(96<b?b-87:b-48);continue;case 1:84===(h=f[p])?(_=h,h=2,p++):64<h&&91>h?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(b=f[p++])?h=4:m=m<<4|(96<b?b-87:b-48);continue;case 3:b=f.indexOf(10,p);break;case 4:(b=p+m)>f.length&&(b=-1)}var P=f.byteOffset+p;if(-1<b){p=new Uint8Array(f.buffer,P,b-p),m=e,P=_;var R=m._stringDecoder;_="";for(var O=0;O<d.length;O++)_+=R.decode(d[O],i);switch(_+=R.decode(p),P){case 73:!function(e,t,r){var i=e._chunks,u=i.get(t);r=JSON.parse(r,e._fromJSON);var c=function(e,t){if(e){var n=e[t[0]];if(e=n[t[2]])n=e.name;else{if(!(e=n["*"]))throw Error('Could not find the module "'+t[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=t[2]}return 4===t.length?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}(e._bundlerConfig,r);if(r=function(e){for(var t=e[1],r=[],i=0;i<t.length;){var u=t[i++],c=t[i++],d=o.get(u);void 0===d?(l.set(u,c),c=n.e(u),r.push(c),d=o.set.bind(o,u,null),c.then(d,a),o.set(u,c)):null!==d&&r.push(d)}return 4===e.length?0===r.length?s(e[0]):Promise.all(r).then(function(){return s(e[0])}):0<r.length?Promise.all(r):null}(c)){if(u){var d=u;d.status="blocked"}else d=new v("blocked",null,null,e),i.set(t,d);r.then(function(){return E(d,c)},function(e){return S(d,e)})}else u?E(u,c):i.set(t,new v("resolved_module",c,null,e))}(m,g,_);break;case 72:if(g=_[0],m=JSON.parse(_=_.slice(1),m._fromJSON),_=c.current)switch(g){case"D":_.prefetchDNS(m);break;case"C":"string"==typeof m?_.preconnect(m):_.preconnect(m[0],m[1]);break;case"L":g=m[0],p=m[1],3===m.length?_.preload(g,p,m[2]):_.preload(g,p);break;case"m":"string"==typeof m?_.preloadModule(m):_.preloadModule(m[0],m[1]);break;case"S":"string"==typeof m?_.preinitStyle(m):_.preinitStyle(m[0],0===m[1]?void 0:m[1],3===m.length?m[2]:void 0);break;case"X":"string"==typeof m?_.preinitScript(m):_.preinitScript(m[0],m[1]);break;case"M":"string"==typeof m?_.preinitModuleScript(m):_.preinitModuleScript(m[0],m[1])}break;case 69:p=(_=JSON.parse(_)).digest,(_=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.")).stack="Error: "+_.message,_.digest=p,(P=(p=m._chunks).get(g))?S(P,_):p.set(g,new v("rejected",null,_,m));break;case 84:m._chunks.set(g,new v("fulfilled",_,null,m));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");default:(P=(p=m._chunks).get(g))?(m=P,g=_,"pending"===m.status&&(_=m.value,p=m.reason,m.status="resolved_model",m.value=g,null!==_&&(x(m),w(m,_,p)))):p.set(g,new v("resolved_model",_,null,m))}p=b,3===h&&p++,m=g=_=h=0,d.length=0}else{f=new Uint8Array(f.buffer,P,f.byteLength-p),d.push(f),m-=f.byteLength;break}}return e._rowState=h,e._rowID=g,e._rowTag=_,e._rowLength=m,u.read().then(t).catch(r)}}).catch(r)}t.createFromFetch=function(e,t){var n=I(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0);return e.then(function(e){A(n,e.body)},function(e){T(n,e)}),k(n,0)},t.createFromReadableStream=function(e,t){return A(t=I(null,null,t&&t.callServer?t.callServer:void 0,void 0,void 0),e),k(t,0)},t.createServerReference=function(e,t){var n;function r(){var n=Array.prototype.slice.call(arguments);return t(e,n)}return n={id:e,bound:null},m.set(r,n),r},t.encodeReply=function(e){return new Promise(function(t,n){var r,i,o,s;i=1,o=0,s=null,r=JSON.stringify(r=e,function e(r,a){if(null===a)return null;if("object"==typeof a){if("function"==typeof a.then){null===s&&(s=new FormData),o++;var l,u,c=i++;return a.then(function(n){n=JSON.stringify(n,e);var r=s;r.append(""+c,n),0==--o&&t(r)},function(e){n(e)}),"$@"+c.toString(16)}if(h(a))return a;if(a instanceof FormData){null===s&&(s=new FormData);var d=s,f=""+(r=i++)+"_";return a.forEach(function(e,t){d.append(f+t,e)}),"$K"+r.toString(16)}if(a instanceof Map)return a=JSON.stringify(Array.from(a),e),null===s&&(s=new FormData),r=i++,s.append(""+r,a),"$Q"+r.toString(16);if(a instanceof Set)return a=JSON.stringify(Array.from(a),e),null===s&&(s=new FormData),r=i++,s.append(""+r,a),"$W"+r.toString(16);if(null===(u=a)||"object"!=typeof u?null:"function"==typeof(u=p&&u[p]||u["@@iterator"])?u:null)return Array.from(a);if((r=g(a))!==_&&(null===r||null!==g(r)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return a}if("string"==typeof a)return"Z"===a[a.length-1]&&this[r]instanceof Date?"$D"+a:a="$"===a[0]?"$"+a:a;if("boolean"==typeof a)return a;if("number"==typeof a)return Number.isFinite(l=a)?0===l&&-1/0==1/l?"$-0":l:1/0===l?"$Infinity":-1/0===l?"$-Infinity":"$NaN";if(void 0===a)return"$undefined";if("function"==typeof a){if(void 0!==(a=m.get(a)))return a=JSON.stringify(a,e),null===s&&(s=new FormData),r=i++,s.set(""+r,a),"$F"+r.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof a){if(Symbol.for(r=a.description)!==a)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+a.description+") cannot be found among global symbols.");return"$S"+r}if("bigint"==typeof a)return"$n"+a.toString(10);throw Error("Type "+typeof a+" is not supported as an argument to a Server Function.")}),null===s?t(r):(s.set("0",r),0===o&&t(s))})}},16703:function(e,t,n){"use strict";e.exports=n(97950)},6671:function(e,t,n){"use strict";e.exports=n(16703)},30622:function(e,t,n){"use strict";var r=n(2265),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;function l(e,t,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&"key"!==r&&"ref"!==r&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},17869:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function m(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,g(b,m.prototype),b.isPureReactComponent=!0;var w=Array.isArray,S={current:null},E={current:null},P={transition:null},R={ReactCurrentDispatcher:S,ReactCurrentCache:E,ReactCurrentBatchConfig:P,ReactCurrentOwner:{current:null}},x=Object.prototype.hasOwnProperty,O=R.ReactCurrentOwner;function T(e,t,r){var i,o={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,i)&&"key"!==i&&"ref"!==i&&"__self"!==i&&"__source"!==i&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:a,props:o,_owner:O.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function C(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function I(){}function A(e,t,i){if(null==e)return e;var o=[],s=0;return function e(t,i,o,s,a){var l,u,c,d=typeof t;("undefined"===d||"boolean"===d)&&(t=null);var h=!1;if(null===t)h=!0;else switch(d){case"string":case"number":h=!0;break;case"object":switch(t.$$typeof){case n:case r:h=!0;break;case f:return e((h=t._init)(t._payload),i,o,s,a)}}if(h)return a=a(t),h=""===s?"."+C(t,0):s,w(a)?(o="",null!=h&&(o=h.replace(j,"$&/")+"/"),e(a,i,o,"",function(e){return e})):null!=a&&(k(a)&&(l=a,u=o+(!a.key||t&&t.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+h,a={$$typeof:n,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),i.push(a)),1;h=0;var g=""===s?".":s+":";if(w(t))for(var _=0;_<t.length;_++)d=g+C(s=t[_],_),h+=e(s,i,o,d,a);else if("function"==typeof(_=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=p&&c[p]||c["@@iterator"])?c:null))for(t=_.call(t),_=0;!(s=t.next()).done;)d=g+C(s=s.value,_++),h+=e(s,i,o,d,a);else if("object"===d){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(I,I):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),i,o,s,a);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return h}(e,o,"","",function(e){return t.call(i,e,s++)}),o}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function L(){return new WeakMap}function N(){return{s:0,v:void 0,o:null,p:null}}function D(){}var $="function"==typeof reportError?reportError:function(e){console.error(e)};t.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=s,t.PureComponent=y,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){var t=E.current;if(!t)return e.apply(null,arguments);var n=t.getCacheForType(L);void 0===(t=n.get(e))&&(t=N(),n.set(e,t)),n=0;for(var r=arguments.length;n<r;n++){var i=arguments[n];if("function"==typeof i||"object"==typeof i&&null!==i){var o=t.o;null===o&&(t.o=o=new WeakMap),void 0===(t=o.get(i))&&(t=N(),o.set(i,t))}else null===(o=t.p)&&(t.p=o=new Map),void 0===(t=o.get(i))&&(t=N(),o.set(i,t))}if(1===t.s)return t.v;if(2===t.s)throw t.v;try{var s=e.apply(null,arguments);return(n=t).s=1,n.v=s}catch(e){throw(s=t).s=2,s.v=e,e}}},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&"key"!==u&&"ref"!==u&&"__self"!==u&&"__source"!==u&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:i,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition,n=new Set;P.transition={_callbacks:n};var r=P.transition;try{var i=e();"object"==typeof i&&null!==i&&"function"==typeof i.then&&(n.forEach(function(e){return e(r,i)}),i.then(D,$))}catch(e){$(e)}finally{P.transition=t}},t.unstable_useCacheRefresh=function(){return S.current.useCacheRefresh()},t.use=function(e){return S.current.use(e)},t.useCallback=function(e,t){return S.current.useCallback(e,t)},t.useContext=function(e){return S.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return S.current.useDeferredValue(e,t)},t.useEffect=function(e,t){return S.current.useEffect(e,t)},t.useId=function(){return S.current.useId()},t.useImperativeHandle=function(e,t,n){return S.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return S.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return S.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return S.current.useMemo(e,t)},t.useOptimistic=function(e,t){return S.current.useOptimistic(e,t)},t.useReducer=function(e,t,n){return S.current.useReducer(e,t,n)},t.useRef=function(e){return S.current.useRef(e)},t.useState=function(e){return S.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return S.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return S.current.useTransition()},t.version="18.3.0-canary-14898b6a9-20240318"},2265:function(e,t,n){"use strict";e.exports=n(17869)},57437:function(e,t,n){"use strict";e.exports=n(30622)},25566:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},40620:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},34353:function(e,t,n){"use strict";n.d(t,{L2:function(){return l},_6:function(){return u},iK:function(){return c}});var r=n(72417),i=n(16839),o=n(40620),s=n(2688);let a={};function l(e){let t=a[e];if(t)return t;let n=s.m[e];if((0,r.QC)(n))return a[e]=n.bind(s.m);let l=s.m.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){o.X&&i.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(s.m):n}function u(e){a[e]=void 0}function c(...e){return l("setTimeout")(...e)}},9718:function(e,t,n){"use strict";let r,i,o;n.d(t,{O:function(){return c}});var s=n(1640),a=n(32311),l=n(34722),u=n(2688);function c(e){(0,s.Hj)("dom",e),(0,s.D2)("dom",d)}function d(){if(!u.m.document)return;let e=s.rK.bind(null,"dom"),t=f(e,!0);u.m.document.addEventListener("click",t,!1),u.m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=u.m[t]&&u.m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,a.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=f(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,a.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function f(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let s=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!s||!s.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable))return;(0,a.xp)(n,"_sentryCaptured",!0),s&&!s._sentryId&&(0,a.xp)(s,"_sentryId",(0,l.DM)());let c="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:c,global:t}),i=n.type,o=s?s._sentryId:void 0),clearTimeout(r),r=u.m.setTimeout(()=>{o=void 0,i=void 0},1e3)}}},23638:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return l}});var i=n(1640);let o=n(98564).GLOBAL_OBJ;var s=n(32311),a=n(2688);function l(e){let t="history";(0,i.Hj)(t,e),(0,i.D2)(t,u)}function u(){if(!function(){let e=o.chrome,t=e&&e.app&&e.app.runtime,n="history"in o&&!!o.history.pushState&&!!o.history.replaceState;return!t&&n}())return;let e=a.m.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,(0,i.rK)("history",{from:e,to:t})}return e.apply(this,t)}}a.m.onpopstate=function(...t){let n=a.m.location.href,o=r;if(r=n,(0,i.rK)("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,s.hl)(a.m.history,"pushState",t),(0,s.hl)(a.m.history,"replaceState",t)}},97831:function(e,t,n){"use strict";n.d(t,{UK:function(){return l},xU:function(){return a}});var r=n(1640),i=n(62122),o=n(37170),s=n(2688);let a="__sentry_xhr_v3__";function l(e){(0,r.Hj)("xhr",e),(0,r.D2)("xhr",u)}function u(){if(!s.m.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let s=1e3*(0,i.ph)(),l=(0,o.HD)(n[0])?n[0].toUpperCase():void 0,u=function(e){if((0,o.HD)(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!l||!u)return e.apply(t,n);t[a]={method:l,url:u,request_headers:{}},"POST"===l&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let c=()=>{let e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}let n={endTimestamp:1e3*(0,i.ph)(),startTimestamp:s,xhr:t};(0,r.rK)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(c(),e.apply(t,n))}):t.addEventListener("readystatechange",c),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,s=t[a];return s&&(0,o.HD)(r)&&(0,o.HD)(i)&&(s.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let o=t[a];if(!o)return e.apply(t,n);void 0!==n[0]&&(o.body=n[0]);let s={startTimestamp:1e3*(0,i.ph)(),xhr:t};return(0,r.rK)("xhr",s),e.apply(t,n)}})}},56152:function(e,t,n){"use strict";let r,i,o,s,a,l;n.d(t,{PR:function(){return Y},to:function(){return Z},YF:function(){return et},$A:function(){return Q},_j:function(){return en},_4:function(){return ee},cN:function(){return ef}});var u=n(16839),c=n(69657),d=n(40620);let f=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",p=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=f(t.value,n),e(t))}};var h=n(2688);let g=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;var _=n(1777),m=n(1143);let v=(e,t)=>{let n=(0,m.W)(),r="navigate";return n&&(h.m.document&&h.m.document.prerendering||(0,_.A)()>0?r="prerender":h.m.document&&h.m.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:g(),navigationType:r}},y=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}};var b=n(9001);let w=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};var S=n(85395);let E=e=>{h.m.document&&h.m.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},P=[1800,3e3],R=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=v("FCP"),o=y("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-(0,_.A)(),0),i.entries.push(e),n(!0)))})});o&&(n=p(e,i,P,t.reportAllChanges))})},x=[.1,.25],O=(e,t={})=>{R(w(()=>{let n;let r=v("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],n=o[o.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>r.value&&(r.value=i,r.entries=o,n())},a=y("layout-shift",s);a&&(n=p(e,r,x,t.reportAllChanges),(0,b.u)(()=>{s(a.takeRecords()),n(!0)}),setTimeout(n,0))}))},T=[100,300],k=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=v("FID"),o=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=e=>{e.forEach(o)},a=y("first-input",s);n=p(e,i,T,t.reportAllChanges),a&&(0,b.u)(w(()=>{s(a.takeRecords()),a.disconnect()}))})},j=0,C=1/0,I=0,A=e=>{e.forEach(e=>{e.interactionId&&(C=Math.min(C,e.interactionId),j=(I=Math.max(I,e.interactionId))?(I-C)/7+1:0)})},M=()=>r?j:performance.interactionCount||0,L=()=>{"interactionCount"in performance||r||(r=y("event",A,{type:"event",buffered:!0,durationThreshold:0}))},N=[200,500],D=()=>M()-0,$=[],F={},U=e=>{let t=$[$.length-1],n=F[e.interactionId];if(n||$.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};F[t.id]=t,$.push(t)}$.sort((e,t)=>t.latency-e.latency),$.splice(10).forEach(e=>{delete F[e.id]})}},H=()=>{let e=Math.min($.length-1,Math.floor(D()/50));return $[e]},B=(e,t={})=>{E(()=>{let n;L();let r=v("INP"),i=e=>{e.forEach(e=>{e.interactionId&&U(e),"first-input"!==e.entryType||$.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||U(e)});let t=H();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=y("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=p(e,r,N,t.reportAllChanges),o&&("PerformanceEventTiming"in h.m&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),(0,b.u)(()=>{i(o.takeRecords()),r.value<0&&D()>0&&(r.value=0,r.entries=[]),n(!0)}))})},q=[2500,4e3],G={},W=(e,t={})=>{E(()=>{let n;let r=(0,S.Y)(),i=v("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-(0,_.A)(),0),i.entries=[t],n())},s=y("largest-contentful-paint",o);if(s){n=p(e,i,q,t.reportAllChanges);let r=w(()=>{G[i.id]||(o(s.takeRecords()),s.disconnect(),G[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{h.m.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),(0,b.u)(r)}})},z=[800,1800],X=e=>{h.m.document&&h.m.document.prerendering?E(()=>X(e)):h.m.document&&"complete"!==h.m.document.readyState?addEventListener("load",()=>X(e),!0):setTimeout(e,0)},J=(e,t={})=>{let n=v("TTFB"),r=p(e,n,z,t.reportAllChanges);X(()=>{let e=(0,m.W)();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-(0,_.A)(),0),n.entries=[e],r(!0)}})},V={},K={};function Y(e,t=!1){return eu("cls",e,ei,i,t)}function Q(e,t=!1){return eu("lcp",e,es,s,t)}function Z(e){return eu("fid",e,eo,o)}function ee(e){return eu("ttfb",e,ea,a)}function et(e){return eu("inp",e,el,l)}function en(e,t){return ec(e,t),K[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),y(e,t=>{er(e,{entries:t})},t)}(e),K[e]=!0),ed(e,t)}function er(e,t){let n=V[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){d.X&&u.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,c.$P)(r)}
Error:`,t)}}function ei(){return O(e=>{er("cls",{metric:e}),i=e},{reportAllChanges:!0})}function eo(){return k(e=>{er("fid",{metric:e}),o=e})}function es(){return W(e=>{er("lcp",{metric:e}),s=e},{reportAllChanges:!0})}function ea(){return J(e=>{er("ttfb",{metric:e}),a=e})}function el(){return B(e=>{er("inp",{metric:e}),l=e})}function eu(e,t,n,r,i=!1){let o;return ec(e,t),K[e]||(o=n(),K[e]=!0),r&&t({metric:r}),ed(e,t,i?o:void 0)}function ec(e,t){V[e]=V[e]||[],V[e].push(t)}function ed(e,t,n){return()=>{n&&n();let r=V[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ef(e){return"duration"in e}},1777:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(1143);let i=()=>{let e=(0,r.W)();return e&&e.activationStart||0}},1143:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2688);let i=()=>r.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},85395:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(2688);let i=-1,o=()=>{i="hidden"!==r.m.document.visibilityState||r.m.document.prerendering?1/0:0},s=e=>{"hidden"===r.m.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",s,!0),removeEventListener("prerenderingchange",s,!0))},a=()=>{addEventListener("visibilitychange",s,!0),addEventListener("prerenderingchange",s,!0)},l=()=>(r.m.document&&i<0&&(o(),a()),{get firstHiddenTime(){return i}})},9001:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(2688);let i=e=>{let t=t=>{("pagehide"===t.type||r.m.document&&"hidden"===r.m.document.visibilityState)&&e(t)};r.m.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},2688:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});let r=n(98564).GLOBAL_OBJ},49279:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},36325:function(e,t,n){"use strict";n.d(t,{Wz:function(){return c},m9:function(){return l},re:function(){return function e(t,n={},o){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,s.HK)(t))return t}catch(e){return t}let l=function(){let s=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);let r=s.map(t=>e(t,n));return t.apply(this,r)}catch(e){throw u++,setTimeout(()=>{u--}),(0,r.$e)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,n.mechanism)),e.extra={...e.extra,arguments:s},e)),(0,i.Tb)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l[e]=t[e])}catch(e){}(0,s.$Q)(l,t),(0,s.xp)(t,"__sentry_wrapped__",l);try{Object.getOwnPropertyDescriptor(l,"name").configurable&&Object.defineProperty(l,"name",{get:()=>t.name})}catch(e){}return l}}});var r=n(26250),i=n(22048),o=n(98564),s=n(32311),a=n(34722);let l=o.GLOBAL_OBJ,u=0;function c(){return u>0}},8106:function(e,t,n){"use strict";let r;n.d(t,{nV:function(){return eU},S1:function(){return eH},jp:function(){return eB}});var i=n(16839),o=n(34722),s=n(60714),a=n(83115),l=n(20126);let u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],c=(0,l._I)((e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>{var l,c;return((l=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(a.X&&i.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,o.jH)(t)}`),0):(c=l.ignoreErrors,!t.type&&c&&c.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>(0,s.U0)(e,c)))?(a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,o.jH)(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,s.U0)(n,t)}(t,l.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=d(e);return!!n&&(0,s.U0)(n,t)}(t,l.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=d(e);return!n||(0,s.U0)(n,t)}(t,l.allowUrls)||(a.X&&i.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,o.jH)(t)}.
Url: ${d(t)}`),0):(a.X&&i.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,o.jH)(t)}.
Url: ${d(t)}`),0):(a.X&&i.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,o.jH)(t)}`),0):(a.X&&i.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${(0,o.jH)(t)}`),0))?t:null}}));function d(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return a.X&&i.kg.error(`Cannot extract url for event ${(0,o.jH)(e)}`),null}}var f=n(32311),p=n(26250);let h=new WeakMap,g=(0,l._I)(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,f.HK)(this),n=h.has((0,p.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){h.set(e,!0)}}));var _=n(69657);let m=(0,l._I)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&y(e,t)&&v(e,t))}(t,n)||function(e,t){let n=b(t),r=b(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&y(e,t)&&v(e,t))}(t,n)))return a.X&&i.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function v(e,t){let n=(0,_.Fr)(e),r=(0,_.Fr)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function y(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function b(e){return e.exception&&e.exception.values&&e.exception.values[0]}var w=n(22048),S=n(65119);function E(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}var P=n(72417),R=n(23638),x=n(37170),O=n(89453),T=n(47182);class k extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var j=n(62122),C=n(28017),I=n(8471),A=n(21034),M=n(42816),L=n(84401);let N="Not capturing exception because it's already been captured.";class D{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,S.vK)(e.dsn):a.X&&i.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${E(t)}${t.projectId}/envelope/?${(0,f._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,o.DM)();if((0,o.YO)(e))return a.X&&i.kg.log(N),r;let s={event_id:r,...t};return this._process(this.eventFromException(e,s).then(e=>this._captureEvent(e,s,n))),s.event_id}captureMessage(e,t,n,r){let i={event_id:(0,o.DM)(),...n},s=(0,x.Le)(e)?e:String(e),a=(0,x.pt)(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,o.DM)();if(t&&t.originalException&&(0,o.YO)(t.originalException))return a.X&&i.kg.log(N),r;let s={event_id:r,...t},l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,s,l||n)),s.event_id}captureSession(e){"string"!=typeof e.release?a.X&&i.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,I.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,O.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];(0,l.m7)(this,e,this._integrations),t||(0,l.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,C.Mq)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,T.BO)(n,(0,T.zQ)(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=(0,C.Q3)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,o=`${e}:${t}`;a.X&&i.kg.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(a.X&&i.kg.error("Error while sending event:",e),e)):(a.X&&i.kg.error("Transport disabled"),(0,O.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,l.q4)(this,e),(0,l.uf)(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,I.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new O.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,p.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,L.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,f.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};let s=o||(0,A._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{a.X&&("log"===e.logLevel?i.kg.log(e.message):i.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=F(e),s=$(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===i?void 0:(0,M.o)(i);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),(0,O.$2)(new k(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new k("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,x.J8)(e))return e.then(e=>{if(!(0,x.PO)(e)&&null!==e)throw new k(n);return e},e=>{throw new k(`${t} rejected with ${e}`)});if(!(0,x.PO)(e)&&null!==e)throw new k(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if($(n)&&i)return i(n,r);if(F(n)){if(n.spans&&s){let t=[];for(let r of n.spans){let n=s(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new k(`${l} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=r.transaction_info;return o&&s&&r.transaction!==e.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof k)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new k(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){a.X&&i.kg.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){a.X&&i.kg.log("No outcomes to send");return}if(!this._dsn){a.X&&i.kg.log("No dsn provided, will not send outcomes");return}a.X&&i.kg.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,j.yW)(),discarded_events:e}];return(0,T.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,S.RA)(this._dsn));this.sendEnvelope(t)}}function $(e){return void 0===e.type}function F(e){return"transaction"===e.type}var U=n(59578),H=n(41615),B=n(49279),q=n(44952);function G(e,t){let n=z(e,t),r={type:function(e){let t=e&&e.name;return!t&&J(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:J(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function W(e,t){return{exception:{values:[G(e,t)]}}}function z(e,t){let n=t.stacktrace||t.stack||"",r=t&&X.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let X=/Minified React error #\d+;/i;function J(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function V(e,t,n,r,i){let s;if((0,x.VW)(t)&&t.error)return W(e,t.error);if((0,x.TX)(t)||(0,x.fm)(t)){if("stack"in t)s=W(e,t);else{let i=t.name||((0,x.TX)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;s=K(e,a,n,r),(0,o.Db)(s,a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,x.VZ)(t)?W(e,t):((0,x.PO)(t)||(0,x.cO)(t)?s=function(e,t,n,r){let i=(0,p.s3)(),o=i&&i.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,q.Qy)(t,o)};if(s)return{exception:{values:[G(e,s)]},extra:a};let l={exception:{values:[{type:(0,x.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,f.zf)(e),r=t?"promise rejection":"exception";if((0,x.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,x.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=z(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(s=K(e,t,n,r),(0,o.Db)(s,`${t}`,void 0)),(0,o.EG)(s,{synthetic:!0}),s)}function K(e,t,n,r){let i={};if(r&&n){let r=z(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,x.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var Y=n(36325);class Q extends D{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=Y.m9.SENTRY_SDK_SOURCE||(0,H.S)();(0,U.V)(t,"browser",["browser"],n),super(t),t.sendClientReports&&Y.m9.document&&Y.m9.document.addEventListener("visibilitychange",()=>{"hidden"===Y.m9.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=V(e,t,n&&n.syntheticException||void 0,r);return(0,o.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,O.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=K(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,O.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){B.X&&i.kg.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,S.RA)(r)}};return(0,T.Jd)(i,[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}var Z=n(9718),ee=n(97831),et=n(83688),en=n(98564),er=n(1640);function ei(){"console"in en.GLOBAL_OBJ&&i.RU.forEach(function(e){e in en.GLOBAL_OBJ.console&&(0,f.hl)(en.GLOBAL_OBJ.console,e,function(t){return i.LD[e]=t,function(...t){(0,er.rK)("console",{args:t,level:e});let n=i.LD[e];n&&n.apply(en.GLOBAL_OBJ.console,t)}})})}var eo=n(32886),es=n(62011),ea=n(12066);function el(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}var eu=n(32855);let ec=(0,l._I)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";(0,er.Hj)(t,e),(0,er.D2)(t,ei)}(function(t){if((0,p.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,ea.V)(t.level),message:(0,s.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,s.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,et.n)(n,{input:t.args,level:t.level})}),t.dom&&(0,Z.O)((n=t.dom,function(t){let r,o;if((0,p.s3)()!==e)return;let s="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(B.X&&i.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,es.Rt)(n,{keyAttrs:s,maxStringLength:a}),o=(0,es.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let l={category:`ui.${t.name}`,message:r};o&&(l.data={"ui.component_name":o}),(0,et.n)(l,{event:t.event,name:t.name,global:t.global})})),t.xhr&&(0,ee.UK)(function(t){if((0,p.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[ee.xU];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i,u={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},c=el(a);(0,et.n)({category:"xhr",data:{method:o,url:s,status_code:a},type:"http",level:c},u)}),t.fetch&&(0,eo.Uf)(function(t){if((0,p.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,et.n)({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r},s=el(i.status_code);(0,et.n)({category:"fetch",data:i,type:"http",level:s},o)}}}),t.history&&(0,R.a)(function(t){if((0,p.s3)()!==e)return;let n=t.from,r=t.to,i=(0,eu.en)(Y.m9.location.href),o=n?(0,eu.en)(n):void 0,s=(0,eu.en)(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,et.n)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,p.s3)()===e&&(0,et.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,o.jH)(t)},{event:t})})}}}),ed=["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"],ef=(0,l._I)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,f.hl)(Y.m9,"setTimeout",ep),t.setInterval&&(0,f.hl)(Y.m9,"setInterval",ep),t.requestAnimationFrame&&(0,f.hl)(Y.m9,"requestAnimationFrame",eh),t.XMLHttpRequest&&"XMLHttpRequest"in Y.m9&&(0,f.hl)(XMLHttpRequest.prototype,"send",eg);let e=t.eventTarget;e&&(Array.isArray(e)?e:ed).forEach(e_)}}});function ep(e){return function(...t){let n=t[0];return t[0]=(0,Y.re)(n,{mechanism:{data:{function:(0,_.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function eh(e){return function(t){return e.apply(this,[(0,Y.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,_.$P)(e)},handled:!1,type:"instrument"}})])}}function eg(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,f.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,_.$P)(t)},handled:!1,type:"instrument"}},r=(0,f.HK)(t);return r&&(n.mechanism.data.handler=(0,_.$P)(r)),(0,Y.re)(t,n)})}),e.apply(this,t)}}function e_(e){let t=Y.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.hl)(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,Y.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,_.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,Y.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,_.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,f.hl)(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}var em=n(30072),ev=n(58258);let ey=(0,l._I)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&((0,em.V)(t=>{let{stackParser:n,attachStacktrace:r}=ew();if((0,p.s3)()!==e||(0,Y.Wz)())return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=(0,x.HD)(t)&&t.length>0?t:(0,es.l4)();return 0===l.length&&l.push({colno:u,filename:d,function:_.Fi,in_app:!0,lineno:c}),e}(V(n,l||i,void 0,r,!1),o,s,a);u.level="error",(0,w.eN)(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),eb("onerror")),t.onunhandledrejection&&((0,ev.h)(t=>{let{stackParser:n,attachStacktrace:r}=ew();if((0,p.s3)()!==e||(0,Y.Wz)())return;let i=function(e){if((0,x.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=(0,x.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:V(n,i,void 0,r,!0);o.level="error",(0,w.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),eb("onunhandledrejection"))}}});function eb(e){B.X&&i.kg.log(`Global Handler attached: ${e}`)}function ew(){let e=(0,p.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let eS=(0,l._I)(()=>({name:"HttpContext",preprocessEvent(e){if(!Y.m9.navigator&&!Y.m9.location&&!Y.m9.document)return;let t=e.request&&e.request.url||Y.m9.location&&Y.m9.location.href,{referrer:n}=Y.m9.document||{},{userAgent:r}=Y.m9.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}));function eE(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function eP(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let eR=(0,l._I)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!(0,x.V9)(a.originalException,Error))return;let l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=(function e(t,n,r,i,o,s,a,l){if(s.length>=r+1)return s;let u=[...s];if((0,x.V9)(i[o],Error)){eE(a,l);let s=t(n,i[o]),c=u.length;eP(s,o,c,l),u=e(t,n,r,i[o],o,[s,...u],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,x.V9)(i,Error)){eE(a,l);let c=t(n,i),d=u.length;eP(c,`errors[${s}]`,d,l),u=e(t,n,r,i,o,[c,...u],c,d)}}),u})(e,t,i,a.originalException,r,o.exception.values,l,0).map(e=>(e.value&&(e.value=(0,s.$G)(e.value,n)),e)))}(G,o.stackParser,o.maxValueLength,n,t,e,r)}}});function ex(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?_.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let eO=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,eT=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ek=/\((\S*)(?::(\d+))(?::(\d+))\)/,ej=[30,e=>{let t=eO.exec(e);if(t){let[,e,n,r]=t;return ex(e,_.Fi,+n,+r)}let n=eT.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=ek.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=eL(n[1]||_.Fi,n[2]);return ex(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],eC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eA=[50,e=>{let t=eC.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=eI.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||_.Fi;return[n,e]=eL(n,e),ex(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],eM=(0,_.pE)(ej,eA),eL=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:_.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var eN=n(34353),eD=n(79663);function e$(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function eF(e,t=(0,eN.L2)("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,O.$2)(new k("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new O.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,O.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(o){let s=[];if((0,T.gv)(o,(t,n)=>{let i=(0,T.mL)(n);if((0,eD.Q)(r,i)){let r=e$(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)}),0===s.length)return(0,O.WD)({});let l=(0,T.Jd)(o[0],s),u=t=>{(0,T.gv)(l,(n,r)=>{let i=e$(n,r);e.recordDroppedEvent(t,(0,T.mL)(r),i)})};return n.add(()=>t({body:(0,T.V$)(l)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&a.X&&i.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=(0,eD.WG)(r,e),e),e=>{throw u("network_error"),e})).then(e=>e,e=>{if(e instanceof k)return a.X&&i.kg.error("Skipped sending event because buffer is full."),u("queue_overflow"),(0,O.WD)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let o=i.body.length;n+=o,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return(0,eN._6)("fetch"),(0,O.$2)("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return(0,eN._6)("fetch"),n-=o,r--,(0,O.$2)(e)}})}function eU(e){return[c(),g(),ef(),ec(),ey(),eR(),m(),eS()]}function eH(e={}){let t=function(e={}){let t={defaultIntegrations:eU(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Y.m9.SENTRY_RELEASE&&Y.m9.SENTRY_RELEASE.id?Y.m9.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){let e=void 0!==Y.m9.window&&Y.m9;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=Y.m9.location&&Y.m9.location.href||"",o=!!r&&Y.m9===Y.m9.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),s=void 0!==e.nw;return!!r&&!o&&!s}()){(0,i.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}B.X&&!(0,P.Ak)()&&i.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let n=function(e,t){!0===t.debug&&(a.X?i.kg.enable():(0,i.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,p.nZ)().update(t.initialScope);let n=new e(t);return(0,p.nZ)().setClient(n),n.init(),n}(Q,{...t,stackParser:(0,_.Sq)(t.stackParser||eM),integrations:(0,l.m8)(t),transport:t.transport||eF});return t.autoSessionTracking&&function(){if(void 0===Y.m9.document){B.X&&i.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,w.yj)({ignoreDuration:!0}),(0,w.cg)(),(0,R.a)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,w.yj)({ignoreDuration:!0}),(0,w.cg)())})}(),n}function eB(e={}){if(!Y.m9.document){B.X&&i.kg.error("Global document not defined in showReportDialog call");return}let t=(0,p.nZ)(),n=t.getClient(),r=n&&n.getDsn();if(!r){B.X&&i.kg.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){let t=(0,w.eW)();t&&(e.eventId=t)}let o=Y.m9.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){let n=(0,S.vK)(e);if(!n)return"";let r=`${E(n)}embed/error-page/`,i=`dsn=${(0,S.RA)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}(r,e),e.onLoad&&(o.onload=e.onLoad);let{onClose:s}=e;if(s){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{Y.m9.removeEventListener("message",e)}};Y.m9.addEventListener("message",e)}let a=Y.m9.document.head||Y.m9.document.body;a?a.appendChild(o):B.X&&i.kg.error("Not injecting report dialog. No injection point found in HTML")}},98512:function(e,t,n){"use strict";n.d(t,{G:function(){return f}});var r=n(32987),i=n(37170),o=n(98564),s=n(52818);class a{constructor(e,t){let n,r;n=e||new s.s,r=t||new s.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,i.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(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 l(){let e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new a((0,o.Y)("defaultCurrentScope",()=>new s.s),(0,o.Y)("defaultIsolationScope",()=>new s.s))}function u(e){return l().withScope(e)}function c(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function f(e){let t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:u,withSetScope:c,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},83688:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(62122),i=n(16839),o=n(26250);function s(e,t){let n=(0,o.s3)(),s=(0,o.aF)();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let u={timestamp:(0,r.yW)(),...e},c=a?(0,i.Cf)(()=>a(u,t)):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),s.addBreadcrumb(c,l))}},32987:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return s}});var r=n(98564),i=n(98555);function o(){return s(r.GLOBAL_OBJ),r.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},82503:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},26250:function(e,t,n){"use strict";n.d(t,{$e:function(){return c},aF:function(){return l},lW:function(){return u},nZ:function(){return a},s3:function(){return d}});var r=n(98564),i=n(98512),o=n(32987),s=n(52818);function a(){let e=(0,o.c)();return(0,i.G)(e).getCurrentScope()}function l(){let e=(0,o.c)();return(0,i.G)(e).getIsolationScope()}function u(){return(0,r.Y)("globalScope",()=>new s.s)}function c(...e){let t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return a().getClient()}},83115:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},28017:function(e,t,n){"use strict";n.d(t,{Mq:function(){return l},Q3:function(){return a},uE:function(){return u}});var r=n(47182),i=n(65119),o=n(21034),s=n(48365);function a(e,t,n,o){let s=(0,r.HY)(n),a={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!o&&t&&{dsn:(0,i.RA)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,r.Jd)(a,[l])}function l(e,t,n,i){var o;let s=(0,r.HY)(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]);let l=(0,r.Cd)(e,s,i,t);delete e.sdkProcessingMetadata;let u=[{type:a},e];return(0,r.Jd)(l,[u])}function u(e,t){let n=(0,o.jC)(e[0]),a=t&&t.getDsn(),l=t&&t.getOptions().tunnel,u={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!l&&a&&{dsn:(0,i.RA)(a)}},c=t&&t.getOptions().beforeSendSpan,d=c?e=>c((0,s.XU)(e)):e=>(0,s.XU)(e),f=[];for(let t of e){let e=d(t);e&&f.push((0,r.KQ)(e))}return(0,r.Jd)(u,f)}},22048:function(e,t,n){"use strict";n.d(t,{Qy:function(){return f},Tb:function(){return l},cg:function(){return _},eN:function(){return u},eW:function(){return d},v:function(){return c},yj:function(){return p}});var r=n(98564),i=n(82503),o=n(26250),s=n(8471),a=n(84401);function l(e,t){return(0,o.nZ)().captureException(e,(0,a.U0)(t))}function u(e,t){return(0,o.nZ)().captureEvent(e,t)}function c(e,t){(0,o.aF)().setContext(e,t)}function d(){return(0,o.aF)().lastEventId()}function f(e){(0,o.aF)().addEventProcessor(e)}function p(e){let t=(0,o.s3)(),n=(0,o.aF)(),a=(0,o.nZ)(),{release:l,environment:u=i.J}=t&&t.getOptions()||{},{userAgent:c}=r.GLOBAL_OBJ.navigator||{},d=(0,s.Hv)({release:l,environment:u,user:a.getUser()||n.getUser(),...c&&{userAgent:c},...e}),f=n.getSession();return f&&"ok"===f.status&&(0,s.CT)(f,{status:"exited"}),h(),n.setSession(d),a.setSession(d),d}function h(){let e=(0,o.aF)(),t=(0,o.nZ)(),n=t.getSession()||e.getSession();n&&(0,s.RJ)(n),g(),e.setSession(),t.setSession()}function g(){let e=(0,o.aF)(),t=(0,o.nZ)(),n=(0,o.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function _(e=!1){if(e){h();return}g()}},20126:function(e,t,n){"use strict";n.d(t,{_I:function(){return d},m7:function(){return c},m8:function(){return a},q4:function(){return l},uf:function(){return u}});var r=n(34722),i=n(16839),o=n(83115);let s=[];function a(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,r.lE)(n(t)):t),o=i.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=i.splice(o,1);i.push(e)}return i}function l(e,t){let n={};return t.forEach(t=>{t&&c(e,t,n)}),n}function u(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function c(e,t,n){if(n[t.name]){o.X&&i.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}o.X&&i.kg.log(`Integration installed: ${t.name}`)}function d(e){return e}},51287:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(32311);function i(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,i]]of t)(n[e]||(n[e]=[])).push((0,r.Jr)(i));return n}},52818:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(66042),i=n(37170),o=n(62122),s=n(34722),a=n(16839),l=n(8471),u=n(60775);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.Q)()}clone(){let e=new c;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},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._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,u.D)(e,(0,u.Y)(this)),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&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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,[n,r]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:u,fingerprint:c=[],propagationContext:f}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),f&&(this._propagationContext=f),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,u.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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,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:(0,u.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,s.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):a.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let d=c},73095:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return l},JQ:function(){return d},S3:function(){return s},TE:function(){return i},Wb:function(){return u},Zj:function(){return r},ju:function(){return a},p6:function(){return c}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",l="sentry.measurement_unit",u="sentry.measurement_value",c="sentry.profile_id",d="sentry.exclusive_time"},8471:function(e,t,n){"use strict";n.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return l}});var r=n(62122),i=n(34722),o=n(32311);function s(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&a(n,e),n}function a(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||(0,r.ph)(),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:(0,i.DM)()),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)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},21034:function(e,t,n){"use strict";n.d(t,{Lh:function(){return d},_l:function(){return f},jC:function(){return p}});var r=n(32311),i=n(85228),o=n(82503),s=n(26250),a=n(73095),l=n(31157),u=n(48365);let c="_frozenDsc";function d(e,t){(0,r.xp)(e,c,t)}function f(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},s=(0,r.Jr)({environment:n.environment||o.J,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",s),s}function p(e){let t=(0,s.s3)();if(!t)return{};let n=f((0,u.XU)(e).trace_id||"",t),r=(0,u.Gx)(e),o=r[c];if(o)return o;let d=r.spanContext().traceState,p=d&&d.get("sentry.dsc"),h=p&&(0,i.EN)(p);if(h)return h;let g=(0,u.XU)(r),_=g.data||{},m=_[a.TE];null!=m&&(n.sample_rate=`${m}`);let v=_[a.Zj],y=g.description;return"url"!==v&&y&&(n.transaction=y),(0,l.z)()&&(n.sampled=String((0,u.Tt)(r))),t.emit("createDsc",n,r),n}},40127:function(e,t,n){"use strict";n.d(t,{l:function(){return s},o:function(){return o}});var r=n(73095),i=n(48365);function o(e,t,n,o=(0,i.HN)()){let s=o&&(0,i.Gx)(o);s&&s.addEvent(e,{[r.Wb]:t,[r.E1]:n})}function s(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},i=n[r.E1],o=n[r.Wb];"string"==typeof i&&"number"==typeof o&&(t[e.name]={value:o,unit:i})}),t}},72117:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(34722),i=n(48365);class o{constructor(e={}){this._traceId=e.traceId||(0,r.DM)(),this._spanId=e.spanId||(0,r.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.ve}}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,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},7571:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return o},pq:function(){return r}});let r=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},62497:function(e,t,n){"use strict";n.d(t,{qp:function(){return C},GK:function(){return j},_d:function(){return I}});var r=n(32987),i=n(26250),o=n(98512),s=n(73095),a=n(37170),l=n(31157),u=n(60775),c=n(48365),d=n(21034),f=n(16839),p=n(83115),h=n(42816),g=n(72117),_=n(34722),m=n(62122),v=n(32311),y=n(28017),b=n(51287),w=n(40127);let S="_sentryScope",E="_sentryIsolationScope";function P(e){return{scope:e[S],isolationScope:e[E]}}class R{constructor(e={}){this._traceId=e.traceId||(0,_.DM)(),this._spanId=e.spanId||(0,_.DM)().substring(16),this._startTime=e.startTimestamp||(0,m.ph)(),this._attributes={},this.setAttributes({[s.S3]:"manual",[s.$J]: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}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?c.i0:c.ve}}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=(0,c.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,c.$k)(e),function(e){if(!p.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,c.XU)(e),{spanId:r}=e.spanContext(),i=(0,c.Gx)(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;f.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,v.Jr)({data:this._attributes,description:this._name,op:this._attributes[s.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,c._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.S3],_metrics_summary:(0,b.y)(this),profile_id:this._attributes[s.p6],exclusive_time:this._attributes[s.JQ],measurements:(0,w.l)(this._events),is_segment:this._isStandaloneSpan&&(0,c.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,c.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){p.X&&f.kg.log("[Tracing] Adding an event to span:",e);let r=x(t)?t:n||(0,m.ph)(),i=x(t)?{}:t||{},o={name:e,time:(0,c.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,i.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,c.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,i.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let r=t.getTransport();r&&r.send(e).then(null,e=>{p.X&&f.kg.error("Error while sending span:",e)})}((0,y.uE)([this],e)):(p.X&&f.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(P(this).scope||(0,i.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!O((0,c.XU)(this)))return;this._name||(p.X&&f.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=P(this),n=(e||(0,i.nZ)()).getClient()||(0,i.s3)();if(!0!==this._sampled){p.X&&f.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=(0,c.Dp)(this).filter(e=>e!==this&&!(e instanceof R&&e.isStandaloneSpan())).map(e=>(0,c.XU)(e)).filter(O),o=this._attributes[s.Zj],a={contexts:{trace:(0,c.HR)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,v.Jr)({dynamicSamplingContext:(0,d.jC)(this)})},_metrics_summary:(0,b.y)(this),...o&&{transaction_info:{source:o}}},l=(0,w.l)(this._events);return l&&Object.keys(l).length&&(p.X&&f.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),a.measurements=l),a}}function x(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function O(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var T=n(7571);let k="__SENTRY_SUPPRESS_TRACING__";function j(e,t){let n=L();if(n.startSpan)return n.startSpan(e,t);let r=M(e),{forceTransaction:o,parentSpan:s}=e;return(0,i.$e)(e.scope,()=>(void 0!==s?e=>I(s,e):e=>e())(()=>{let n=(0,i.nZ)(),s=D(n),l=e.onlyIfParent&&!s?new g.b:A({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return(0,u.D)(n,l),function(e,t,n=()=>{}){var r;let i;try{i=e()}catch(e){throw t(e),n(),e}return r=i,(0,a.J8)(r)?r.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),r)}(()=>t(l),()=>{let{status:e}=(0,c.XU)(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:T.jt,message:"internal_error"})},()=>l.end())}))}function C(e){let t=L();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=M(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>(0,i.$e)(e.scope,t):void 0!==o?e=>I(o,e):e=>e())(()=>{let t=(0,i.nZ)(),o=D(t);return e.onlyIfParent&&!o?new g.b:A({parentSpan:o,spanArguments:n,forceTransaction:r,scope:t})})}function I(e,t){let n=L();return n.withActiveSpan?n.withActiveSpan(e,t):(0,i.$e)(n=>((0,u.D)(n,e||void 0),t(n)))}function A({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var o;let s;if(!(0,l.z)())return new g.b;let a=(0,i.aF)();if(e&&!n)s=function(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[k]&&(0,c.Tt)(e),a=s?new R({...n,parentSpanId:r,traceId:o,sampled:s}):new g.b({traceId:o});(0,c.j5)(e,a);let l=(0,i.s3)();return l&&(l.emit("spanStart",a),n.endTimestamp&&l.emit("spanEnd",a)),a}(e,r,t),(0,c.j5)(e,s);else if(e){let n=(0,d.jC)(e),{traceId:i,spanId:o}=e.spanContext(),a=(0,c.Tt)(e);s=N({traceId:i,parentSpanId:o,...t},r,a),(0,d.Lh)(s,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...r.getPropagationContext()};s=N({traceId:e,parentSpanId:i,...t},r,o),n&&(0,d.Lh)(s,n)}return function(e){if(!p.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,c.XU)(e),{spanId:i}=e.spanContext(),o=(0,c.Tt)(e),s=(0,c.Gx)(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){let{op:e,description:t}=(0,c.XU)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}f.kg.log(`${l}
  ${u.join("\n  ")}`)}(s),(o=s)&&((0,v.xp)(o,E,a),(0,v.xp)(o,S,r)),s}function M(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,c.$k)(e.startTime),delete n.startTime,n}return t}function L(){let e=(0,r.c)();return(0,o.G)(e)}function N(e,t,n){let r=(0,i.s3)(),o=r&&r.getOptions()||{},{name:a="",attributes:u}=e,[c,d]=t.getScopeData().sdkProcessingMetadata[k]?[!1]:function(e,t){let n;if(!(0,l.z)(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let r=(0,h.o)(n);return void 0===r?(p.X&&f.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(p.X&&f.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(p.X&&f.kg.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,r])}(o,{name:a,parentSampled:n,attributes:u,transactionContext:{name:a,parentSampled:n}}),g=new R({...e,attributes:{[s.Zj]:"custom",...e.attributes},sampled:c});return void 0!==d&&g.setAttribute(s.TE,d),r&&r.emit("spanStart",g),g}function D(e){let t=(0,u.Y)(e);if(!t)return;let n=(0,i.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,c.Gx)(t):t}},31157:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(26250);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,r.s3)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},7412:function(e,t,n){"use strict";function r(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&i(e)===i(r)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}n.d(t,{W:function(){return r}})},42816:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(16839),i=n(83115);function o(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){i.X&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}},84401:function(e,t,n){"use strict";n.d(t,{U0:function(){return S},R:function(){return b}});var r=n(34722),i=n(62122),o=n(60714),s=n(98564),a=n(44952),l=n(82503),u=n(26250),c=n(89453),d=n(16839),f=n(37170),p=n(83115),h=n(52818),g=n(32311),_=n(21034),m=n(48365);function v(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:p,span:h}=t;y(e,"extra",n),y(e,"tags",r),y(e,"user",i),y(e,"contexts",o),y(e,"sdkProcessingMetadata",a),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function y(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}function b(e,t,n,y,b,S){let{normalizeDepth:E=3,normalizeMaxBreadth:P=1e3}=e,R={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},x=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.$G)(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,o.$G)(a.value,s));let u=e.request;u&&u.url&&(u.url=(0,o.$G)(u.url,s))})(R,e),x.length>0&&(R.sdk=R.sdk||{},R.sdk.integrations=[...R.sdk.integrations||[],...x]),b&&b.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n;let r=s.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=w.get(t);i?n=i:(n=new Map,w.set(t,n));let o=Object.entries(r).reduce((e,[r,i])=>{let o;let s=n.get(r);s?o=s:(o=t(r),n.set(r,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=i;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(R,e.stackParser);let O=function(e,t){if(!t)return e;let n=e?e.clone():new h.s;return n.update(t),n}(y,n.captureContext);n.mechanism&&(0,r.EG)(R,n.mechanism);let T=b?b.getEventProcessors():[],k=(0,u.lW)().getScopeData();S&&v(k,S.getScopeData()),O&&v(k,O.getScopeData());let j=[...n.attachments||[],...k.attachments];return j.length&&(n.attachments=j),function(e,t){let{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=(0,g.Jr)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=(0,g.Jr)(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=(0,g.Jr)(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=(0,g.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),i&&function(e,t){e.contexts={trace:(0,m.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,_.jC)(t),...e.sdkProcessingMetadata};let n=(0,m.Gx)(t),r=(0,m.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),e.fingerprint=e.fingerprint?(0,r.lE)(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...s}}(R,k),(function e(t,n,r,i=0){return new c.cW((o,s)=>{let a=t[i];if(null===n||"function"!=typeof a)o(n);else{let l=a({...n},r);p.X&&a.id&&null===l&&d.kg.log(`Event processor "${a.id}" dropped event`),(0,f.J8)(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,s):e(t,l,r,i+1).then(o).then(null,s)}})})([...T,...k.eventProcessors],R,n).then(e=>(e&&function(e){let t={};try{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)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof E&&E>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,a.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,a.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,a.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,a.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,a.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,a.Fv)(e.data,t,n)}}))),r}(e,E,P):e)}let w=new WeakMap;function S(e){return e?e instanceof h.s||"function"==typeof e||Object.keys(e).some(e=>E.includes(e))?{captureContext:e}:e:void 0}let E=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},59578:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(98555);function i(e,t,n=[t],i="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${i}:@sentry/${e}`,version:r.J})),version:r.J}),e._metadata=o}},60775:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return s}});var r=n(32311);let i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function s(e){return e[i]}},48365:function(e,t,n){"use strict";n.d(t,{$k:function(){return v},Dp:function(){return O},Gx:function(){return T},HN:function(){return k},HR:function(){return g},Hb:function(){return m},Tt:function(){return w},XU:function(){return b},_4:function(){return S},ed:function(){return x},i0:function(){return h},j5:function(){return R},ve:function(){return p},wy:function(){return _}});var r=n(32311),i=n(97274),o=n(62122),s=n(98512),a=n(32987),l=n(26250),u=n(51287),c=n(73095),d=n(7571),f=n(60775);let p=0,h=1;function g(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:s,status:a,origin:l}=b(e);return(0,r.Jr)({parent_span_id:s,span_id:t,trace_id:n,data:i,op:o,status:a,origin:l})}function _(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=b(e);return(0,r.Jr)({parent_span_id:i,span_id:t,trace_id:n})}function m(e){let{traceId:t,spanId:n}=e.spanContext(),r=w(e);return(0,i.$p)(t,n,r)}function v(e){return"number"==typeof e?y(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?y(e.getTime()):(0,o.ph)()}function y(e){return e>9999999999?e/1e3:e}function b(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:i,startTime:o,name:s,endTime:a,parentSpanId:l,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:s,parent_span_id:l,start_timestamp:v(o),timestamp:v(a)||void 0,status:S(d),op:i[c.$J],origin:i[c.S3],_metrics_summary:(0,u.y)(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function w(e){let{traceFlags:t}=e.spanContext();return t===h}function S(e){return e&&e.code!==d.pq?e.code===d.OP?"ok":e.message||"unknown_error":void 0}let E="_sentryChildSpans",P="_sentryRootSpan";function R(e,t){let n=e[P]||e;(0,r.xp)(t,P,n),e[E]?e[E].add(t):(0,r.xp)(e,E,new Set([t]))}function x(e,t){e[E]&&e[E].delete(t)}function O(e){let t=new Set;return function e(n){if(!t.has(n)&&w(n))for(let r of(t.add(n),n[E]?Array.from(n[E]):[]))e(r)}(e),Array.from(t)}function T(e){return e[P]||e}function k(){let e=(0,a.c)(),t=(0,s.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.Y)((0,l.nZ)())}},4827:function(e,t,n){"use strict";let r,i;n.d(t,{S1:function(){return eF}});var o=n(59578),s=n(22048),a=n(8106),l=n(2265),u=n(98564),c=n(25566),d=n(48365),f=n(62497),p=n(73095),h=n(40127),g=n(62122),_=n(62011),m=n(16839),v=n(32855),y=n(40620),b=n(2688),w=n(6701),S=n(26250),E=n(32311),P=n(56152);function R(e){return"number"==typeof e&&isFinite(e)}function x(e,t,n,{...r}){let i=(0,d.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,f._d)(e,()=>{let e=(0,f.qp)({startTime:t,...r});return e&&e.end(n),e})}function O(e){let t;let n=(0,S.s3)();if(!n)return;let{name:r,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:l}=n.getOptions(),u=n.getIntegrationByName("Replay"),c=u&&u.getReplayId(),d=(0,S.nZ)(),p=d.getUser(),h=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch(e){}let g={release:a,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:c||void 0,transaction:i,"user_agent.original":b.m.navigator&&b.m.navigator.userAgent,...o};return(0,f.qp)({name:r,attributes:g,startTime:s,experimental:{standalone:!0}})}function T(){return b.m&&b.m.addEventListener&&b.m.performance}function k(e){return e/1e3}var j=n(9001),C=n(1777),I=n(1143),A=n(85395);let M=0,L={};function N(e,t,n,r,i,o){let s=o?t[o]:t[`${n}End`],a=t[`${n}Start`];a&&s&&x(e,r+k(a),r+k(s),{op:`browser.${i||n}`,name:t.name,attributes:{[p.S3]:"auto.ui.browser.metrics"}})}function D(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let $=[],F=new Map,U={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"};var H=n(23638),B=n(83115),q=n(31157),G=n(60775),W=n(72117),z=n(7571);let X={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function J(e,t={}){let n;let r=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:l=X.idleTimeout,finalTimeout:u=X.finalTimeout,childSpanTimeout:c=X.childSpanTimeout,beforeSpanEnd:h}=t,_=(0,S.s3)();if(!_||!(0,q.z)())return new W.b;let v=(0,S.nZ)(),y=(0,d.HN)(),b=function(e){let t=(0,f.qp)(e);return(0,G.D)((0,S.nZ)(),t),B.X&&m.kg.log("[Tracing] Started span is an idle span"),t}(e);function w(){n&&(clearTimeout(n),n=void 0)}function E(e){w(),n=setTimeout(()=>{!i&&0===r.size&&s&&(o="idleTimeout",b.end(e))},l)}function P(e){n=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",b.end(e))},c)}function R(e){i=!0,r.clear(),a.forEach(e=>e()),(0,G.D)(v,y);let t=(0,d.XU)(b),{start_timestamp:n}=t;if(!n)return;(t.data||{})[p.ju]||b.setAttribute(p.ju,o),m.kg.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,d.Dp)(b).filter(e=>e!==b),c=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:z.jt,message:"cancelled"}),t.end(e),B.X&&m.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,d.XU)(t),i=r<=e,o=n-r<=(u+l)/1e3;if(B.X){let e=JSON.stringify(t,void 0,2);i?o||m.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):m.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,d.ed)(b,t),c++)}),c>0&&b.setAttribute("sentry.idle_span_discarded_spans",c)}return b.end=new Proxy(b.end,{apply(e,t,n){h&&h(b);let[r,...i]=n,o=r||(0,g.ph)(),s=(0,d.$k)(o),a=(0,d.Dp)(b).filter(e=>e!==b);if(!a.length)return R(s),Reflect.apply(e,t,[s,...i]);let l=a.map(e=>(0,d.XU)(e).timestamp).filter(e=>!!e),c=l.length?Math.max(...l):void 0,f=(0,d.XU)(b).start_timestamp,p=Math.min(f?f+u/1e3:1/0,Math.max(f||-1/0,Math.min(s,c||1/0)));return R(p),Reflect.apply(e,t,[p,...i])}}),a.push(_.on("spanStart",e=>{if(!i&&e!==b&&!(0,d.XU)(e).timestamp&&(0,d.Dp)(b).includes(e)){var t;t=e.spanContext().spanId,w(),r.set(t,!0),P((0,g.ph)()+c/1e3)}})),a.push(_.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&E((0,g.ph)()+l/1e3))})),a.push(_.on("idleSpanEnableAutoFinish",e=>{e===b&&(s=!0,E(),r.size&&P())})),t.disableAutoFinish||E(),setTimeout(()=>{i||(b.setStatus({code:z.jt,message:"deadline_exceeded"}),o="finalTimeout",b.end())},u),b}var V=n(30072),K=n(58258);let Y=!1;function Q(){let e=(0,d.HN)(),t=e&&(0,d.Gx)(e);if(t){let e="internal_error";B.X&&m.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:z.jt,message:e})}}Q.tag="sentry_tracingErrorCallback";var Z=n(21034),ee=n(97274),et=n(66042),en=n(49279),er=n(36325),ei=n(97831),eo=n(85228),es=n(37170);function ea(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(eo.lq)).join(",")}var el=n(32886),eu=n(60714);let ec=new WeakMap,ed=new Map,ef={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ep(e){let{url:t}=(0,d.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=(0,P._j)("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),g.Z1)?[...r,["http.request.redirect_start",eh(e.redirectStart)],["http.request.fetch_start",eh(e.fetchStart)],["http.request.domain_lookup_start",eh(e.domainLookupStart)],["http.request.domain_lookup_end",eh(e.domainLookupEnd)],["http.request.connect_start",eh(e.connectStart)],["http.request.secure_connection_start",eh(e.secureConnectionStart)],["http.request.connection_end",eh(e.connectEnd)],["http.request.request_start",eh(e.requestStart)],["http.request.response_start",eh(e.responseStart)],["http.request.response_end",eh(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function eh(e=0){return((g.Z1||performance.timeOrigin)+e)/1e3}function eg(e){try{return new URL(e,er.m9.location.origin).href}catch(e){return}}let e_={...X,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...ef},em=(e={})=>{Y||(Y=!0,(0,V.V)(Q),(0,K.h)(Q));let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a},beforeStartSpan:l,idleTimeout:c,finalTimeout:B,childSpanTimeout:G,markBackgroundSpan:X,traceFetch:et,traceXHR:eh,trackFetchStreamPerformance:em,shouldCreateSpanForRequest:ew,enableHTTPTimings:eS,instrumentPageLoad:eE,instrumentNavigation:eP}={...e_,...e},eR=function({recordClsStandaloneSpans:e}){let t=T();if(t&&g.Z1){t.mark&&b.m.performance.mark("sentry-tracing-init");let n=(0,P.to)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=k(g.Z1),r=k(t.startTime);y.X&&m.kg.log("[Measurements] Adding FID"),L.fid={value:e.value,unit:"millisecond"},L["mark.fid"]={value:n+r,unit:"second"}}),o=(0,P.$A)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(y.X&&m.kg.log("[Measurements] Adding LCP"),L.lcp={value:e.value,unit:"millisecond"},r=t)},!0),s=(0,P._4)(({metric:e})=>{e.entries[e.entries.length-1]&&(y.X&&m.kg.log("[Measurements] Adding TTFB"),L.ttfb={value:e.value,unit:"millisecond"})}),a=e?function(){let e,t,n=0;if(!function(){try{return(0,w.x)([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){y.X&&m.kg.log(`Sending CLS span (${e})`);let r=k((g.Z1||0)+((0,w.x)([t,"optionalAccess",e=>e.startTime])||0)),i=(0,S.nZ)().getScopeData().transactionName,o=O({name:t?(0,_.Rt)((0,w.x)([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:i,attributes:(0,E.Jr)({[p.S3]:"auto.http.browser.cls",[p.$J]:"ui.webvital.cls",[p.JQ]:(0,w.x)([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),startTime:r});(0,w.x)([o,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[p.E1]:"",[p.Wb]:e})]),(0,w.x)([o,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),o())}let o=(0,P.PR)(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);(0,j.u)(()=>{i()}),setTimeout(()=>{let e=(0,S.s3)(),n=(0,w.x)([e,"optionalAccess",e=>e.on,"call",e=>e("startNavigationSpan",()=>{i(),n&&n()})]),r=(0,d.HN)(),o=r&&(0,d.Gx)(r),s=o&&(0,d.XU)(o);s&&"pageload"===s.op&&(t=o.spanContext().spanId)},0)}():(0,P.PR)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(y.X&&m.kg.log(`[Measurements] Adding CLS ${e.value}`),L.cls={value:e.value,unit:""},i=t)},!0);return()=>{n(),o(),s(),a&&a()}}return()=>void 0}({recordClsStandaloneSpans:a||!1});t&&function(){if(T()&&g.Z1){let e=(0,P.YF)(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&U[t.name]);if(!t)return;let{interactionId:n}=t,r=U[t.name],i=k(g.Z1+t.startTime),o=k(e.value),s=(0,d.HN)(),a=s?(0,d.Gx)(s):void 0,l=(null!=n?F.get(n):void 0)||a,u=l?(0,d.XU)(l).description:(0,S.nZ)().getScopeData().transactionName,c=O({name:(0,_.Rt)(t.target),transaction:u,attributes:(0,E.Jr)({[p.S3]:"auto.http.browser.inp",[p.$J]:`ui.interaction.${r}`,[p.JQ]:t.duration}),startTime:i});(0,w.x)([c,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[p.E1]:"millisecond",[p.Wb]:e.value})]),(0,w.x)([c,"optionalAccess",e=>e.end,"call",e=>e(i+o)])})}}(),o&&u.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{if((0,d.HN)())for(let t of e.getEntries()){if(!t.scripts[0])continue;let e=k(g.Z1+t.startTime),n=k(t.duration),r={[p.S3]:"auto.ui.browser.metrics"},{invoker:i,invokerType:o,sourceURL:s,sourceFunctionName:a,sourceCharPosition:l}=t.scripts[0];r["browser.script.invoker"]=i,r["browser.script.invoker_type"]=o,s&&(r["code.filepath"]=s),a&&(r["code.function"]=a),-1!==l&&(r["browser.script.source_char_position"]=l);let u=(0,f.qp)({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r});u&&u.end(e+n)}}).observe({type:"long-animation-frame",buffered:!0}):n&&(0,P._j)("longtask",({entries:e})=>{if((0,d.HN)())for(let t of e){let e=k(g.Z1+t.startTime),n=k(t.duration),r=(0,f.qp)({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[p.S3]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}}),s&&(0,P._j)("event",({entries:e})=>{if((0,d.HN)()){for(let t of e)if("click"===t.name){let e=k(g.Z1+t.startTime),n=k(t.duration),r={name:(0,_.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[p.S3]:"auto.ui.browser.metrics"}},i=(0,_.iY)(t.target);i&&(r.attributes["ui.component_name"]=i);let o=(0,f.qp)(r);o&&o.end(e+n)}}});let ex={name:void 0,source:void 0};function eO(e,t){let n="pageload"===t.op,o=l?l(t):t,s=o.attributes||{};t.name!==o.name&&(s[p.Zj]="custom",o.attributes=s),ex.name=o.name,ex.source=s[p.Zj];let u=J(o,{idleTimeout:c,finalTimeout:B,childSpanTimeout:G,disableAutoFinish:n,beforeSpanEnd:e=>{eR(),function(e,t){let n=T();if(!n||!b.m.performance.getEntries||!g.Z1)return;y.X&&m.kg.log("[Tracing] Adding & adjusting spans using Performance API");let o=k(g.Z1),s=n.getEntries(),{op:a,start_timestamp:l}=(0,d.XU)(e);if(s.slice(M).forEach(t=>{let n=k(t.startTime),r=k(Math.max(0,t.duration));if("navigation"!==a||!l||!(o+n<l))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{N(e,t,n,o)}),N(e,t,"secureConnection",o,"TLS/SSL","connectEnd"),N(e,t,"fetch",o,"cache","domainLookupStart"),N(e,t,"domainLookup",o,"DNS"),function(e,t,n){let r=n+k(t.requestStart),i=n+k(t.responseEnd),o=n+k(t.responseStart);t.responseEnd&&(x(e,r,i,{op:"browser.request",name:t.name,attributes:{[p.S3]:"auto.ui.browser.metrics"}}),x(e,o,i,{op:"browser.response",name:t.name,attributes:{[p.S3]:"auto.ui.browser.metrics"}}))}(e,t,o);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=(0,I.W)(),s=i+Math.max(n,k(o?o.requestStart:0)),a=i+n,l={[p.S3]:"auto.resource.browser.metrics"};s!==a&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=s),x(e,s,a+r,{name:t.name,op:t.entryType,attributes:l})})(e,t,n,r,o);let i=(0,A.Y)(),s=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&s&&(y.X&&m.kg.log("[Measurements] Adding FP"),L.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(y.X&&m.kg.log("[Measurements] Adding FCP"),L.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=(0,v.en)(n),a={[p.S3]:"auto.resource.browser.metrics"};D(a,t,"transferSize","http.response_transfer_size"),D(a,t,"encodedBodySize","http.response_content_length"),D(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(b.m.location.origin);let l=o+r;x(e,l,l+i,{name:n.replace(b.m.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})})(e,t,t.name,n,r,o)}}),M=Math.max(s.length-1,0),function(e){let t=b.m.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),R(n.rtt)&&(L["connection.rtt"]={value:n.rtt,unit:"millisecond"})),R(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),R(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===a){(function(e){let t=(0,I.W)();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(y.X&&m.kg.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(L);let n=L["mark.fid"];n&&L.fid&&(x(e,n.value,n.value+k(L.fid.value),{name:"first input delay",op:"ui.action",attributes:{[p.S3]:"auto.ui.browser.metrics"}}),delete L["mark.fid"]),"fcp"in L&&t.recordClsOnPageloadSpan||delete L.cls,Object.entries(L).forEach(([e,t])=>{(0,h.o)(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",(0,C.A)()),r&&(y.X&&m.kg.log("[Measurements] Adding LCP Data"),r.element&&e.setAttribute("lcp.element",(0,_.Rt)(r.element)),r.id&&e.setAttribute("lcp.id",r.id),r.url&&e.setAttribute("lcp.url",r.url.trim().slice(0,200)),e.setAttribute("lcp.size",r.size)),i&&i.sources&&(y.X&&m.kg.log("[Measurements] Adding CLS Data"),i.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,_.Rt)(t.node))))}r=void 0,i=void 0,L={}}(e,{recordClsOnPageloadSpan:!a})}});function f(){["interactive","complete"].includes(er.m9.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&er.m9.document&&(er.m9.document.addEventListener("readystatechange",()=>{f()}),f()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,r;let i=er.m9.location&&er.m9.location.href;e.on("startNavigationSpan",t=>{(0,S.s3)()===e&&(n&&!(0,d.XU)(n).timestamp&&(en.X&&m.kg.log(`[Tracing] Finishing current root span with op: ${(0,d.XU)(n).op}`),n.end()),n=eO(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if((0,S.s3)()!==e)return;n&&!(0,d.XU)(n).timestamp&&(en.X&&m.kg.log(`[Tracing] Finishing current root span with op: ${(0,d.XU)(n).op}`),n.end());let i=r.sentryTrace||eb("sentry-trace"),o=r.baggage||eb("baggage"),s=(0,ee.pT)(i,o);(0,S.nZ)().setPropagationContext(s),n=eO(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,d.XU)(e).op;if(e!==(0,d.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,S.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,d.Tt)(e),dsc:r.dsc||(0,Z.jC)(e)})}),er.m9.location&&(eE&&ev(e,{name:er.m9.location.pathname,startTime:g.Z1?g.Z1/1e3:void 0,attributes:{[p.Zj]:"url",[p.S3]:"auto.pageload.browser"}}),eP&&(0,H.a)(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,ey(e,{name:er.m9.location.pathname,attributes:{[p.Zj]:"url",[p.S3]:"auto.navigation.browser"}}))})),X&&(er.m9&&er.m9.document?er.m9.document.addEventListener("visibilitychange",()=>{let e=(0,d.HN)();if(!e)return;let t=(0,d.Gx)(e);if(er.m9.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,d.XU)(t);en.X&&m.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:z.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):en.X&&m.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),s&&er.m9.document&&addEventListener("click",()=>{let e="ui.action.click",t=(0,d.HN)(),n=t&&(0,d.Gx)(t);if(n&&["navigation","pageload"].includes((0,d.XU)(n).op)){en.X&&m.kg.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(r&&(r.setAttribute(p.ju,"interactionInterrupted"),r.end(),r=void 0),!ex.name){en.X&&m.kg.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}r=J({name:ex.name,op:e,attributes:{[p.Zj]:ex.source||"url"}},{idleTimeout:c,finalTimeout:B,childSpanTimeout:G})},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=(0,d.HN)(),n=t&&(0,d.Gx)(t);e.forEach(e=>{if(!(0,P.cN)(e)||!n)return;let t=e.interactionId;if(!(null==t||F.has(t))){if($.length>10){let e=$.shift();F.delete(e)}$.push(t),F.set(t,n)}})};(0,P._j)("event",e),(0,P._j)("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:ef.traceFetch,traceXHR:ef.traceXHR,trackFetchStreamPerformance:ef.trackFetchStreamPerformance,...t},l="function"==typeof o?o:e=>!0,u=e=>(function(e,t){let n=er.m9.location&&er.m9.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let o=r.origin===i;return t?(0,eu.U0)(r.toString(),t)||o&&(0,eu.U0)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,eu.U0)(e,t):n}})(e,a),c={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=ed.get(e.span_id);t&&(e.timestamp=t/1e3,ed.delete(e.span_id))}}),e)),i&&(0,el.cf)(e=>{if(e.response){let t=ec.get(e.response);t&&e.endTimestamp&&ed.set(t,e.endTimestamp)}}),(0,el.Uf)(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let o=(0,q.z)()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,z.Q0)(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:z.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let s=(0,S.nZ)(),a=(0,S.s3)(),{method:l,url:u}=e.fetchData,c=function(e){try{return new URL(e).href}catch(e){return}}(u),h=c?(0,v.en)(c).host:void 0,g=!!(0,d.HN)(),_=o&&g?(0,f.qp)({name:`${l} ${u}`,attributes:{url:u,type:"fetch","http.method":l,"http.url":c,"server.address":h,[p.S3]:i,[p.$J]:"http.client"}}):new W.b;if(e.fetchData.__span=_.spanContext().spanId,r[_.spanContext().spanId]=_,n(e.fetchData.url)&&a){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let{traceId:o,spanId:s,sampled:a,dsc:l}={...(0,S.aF)().getPropagationContext(),...n.getPropagationContext()},u=i?(0,d.Hb)(i):(0,ee.$p)(o,s,a),c=(0,eo.IQ)(l||(i?(0,Z.jC)(i):(0,Z._l)(o,t))),f=r.headers||("undefined"!=typeof Request&&(0,es.V9)(e,Request)?e.headers:void 0);if(!f)return{"sentry-trace":u,baggage:c};if("undefined"!=typeof Headers&&(0,es.V9)(f,Headers)){let e=new Headers(f);if(e.set("sentry-trace",u),c){let t=e.get(eo.bU);if(t){let n=ea(t);e.set(eo.bU,n?`${n},${c}`:c)}else e.set(eo.bU,c)}return e}if(Array.isArray(f)){let e=[...f.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||e[0]!==eo.bU||"string"!=typeof e[1])return e;{let[t,n,...r]=e;return[t,ea(n),...r]}}),["sentry-trace",u]];return c&&e.push([eo.bU,c]),e}{let e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?ea(e):e).filter(e=>""===e):e&&t.push(ea(e)),c&&t.push(c),{...f,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}(t,a,s,n,(0,q.z)()&&g?_:void 0)}return _}(e,l,u,c);if(e.response&&e.fetchData.__span&&ec.set(e.response,e.fetchData.__span),t){let n=eg(e.fetchData.url),r=n?(0,v.en)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&ep(t)})),r&&(0,ei.UK)(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[ei.xU];if(!i||i.__sentry_own_request__||!o)return;let s=(0,q.z)()&&t(o.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&((0,z.Q0)(t,o.status_code),t.end(),delete r[e]);return}let a=eg(o.url),l=a?(0,v.en)(a).host:void 0,u=!!(0,d.HN)(),c=s&&u?(0,f.qp)({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":l,[p.S3]:"auto.http.browser",[p.$J]:"http.client"}}):new W.b;i.__sentry_xhr_span_id__=c.spanContext().spanId,r[i.__sentry_xhr_span_id__]=c;let h=(0,S.s3)();return i.setRequestHeader&&n(o.url)&&h&&function(e,t,n){let r=(0,S.nZ)(),{traceId:i,spanId:o,sampled:s,dsc:a}={...(0,S.aF)().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(eo.bU,n)}catch(e){}})(e,n&&(0,q.z)()?(0,d.Hb)(n):(0,ee.$p)(i,o,s),(0,eo.IQ)(a||(n?(0,Z.jC)(n):(0,Z._l)(i,t))))}(i,h,(0,q.z)()&&u?c:void 0),c}(e,l,u,c);s&&t&&ep(t)})}(e,{traceFetch:et,traceXHR:eh,trackFetchStreamPerformance:em,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:ew,enableHTTPTimings:eS})}}};function ev(e,t,n){e.emit("startPageLoadSpan",t,n),(0,S.nZ)().setTransactionName(t.name);let r=(0,d.HN)();return"pageload"===(r&&(0,d.XU)(r).op)?r:void 0}function ey(e,t){(0,S.aF)().setPropagationContext((0,et.Q)()),(0,S.nZ)().setPropagationContext((0,et.Q)()),e.emit("startNavigationSpan",t),(0,S.nZ)().setTransactionName(t.name);let n=(0,d.HN)();return"navigation"===(n&&(0,d.XU)(n).op)?n:void 0}function eb(e){let t=(0,_.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var ew=n(35572);let eS="incomplete-app-router-transaction",eE=u.GLOBAL_OBJ;function eP(e){try{return new URL(e,"http://some-random-base.com/").pathname}catch(e){return"/"}}var eR=n(27325),ex=n.n(eR);let eO="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eT=ex().events?ex():ex().default,ek=er.m9;var ej=n(20126);let eC=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function eI(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function eA(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let eM=(0,ej._I)((e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in u.GLOBAL_OBJ&&void 0!==u.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e;let o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=eI(e).slice(1),t=eI(t).slice(1);let n=eA(e.split("/")),r=eA(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let s=[];for(let e=o;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}(t,o):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=eC.exec(t);return n?n.slice(1):[]}(o)[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});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&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}}),eL=(0,ej._I)(({assetPrefixPath:e})=>({...eM({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=(0,w.x)([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}}),name:"NextjsClientStackFrameNormalization"}));var eN=n(65119);let eD=u.GLOBAL_OBJ,e$=u.GLOBAL_OBJ;function eF(e){let t={environment:function(e){let t=e?"production":c.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=(0,a.nV)(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=em({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;r&&(i=e,er.m9.document.getElementById("__NEXT_DATA__")?eT.events.on("routeChangeStart",e=>{let t,n;let r=(0,v.rt)(e),o=function(e){let t=(ek.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";(0,w.x)([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);o?(t=o,n="route"):(t=r,n="url"),ey(i,{name:t,attributes:{[p.$J]:"navigation",[p.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[p.Zj]:n}})}):function(e){let t;er.m9.addEventListener("popstate",()=>{t&&t.isRecording()?t.updateName(er.m9.location.pathname):t=ey(e,{name:er.m9.location.pathname,attributes:{[p.$J]:"navigation",[p.S3]:"auto.navigation.nextjs.app_router_instrumentation",[p.Zj]:"url","navigation.type":"browser.popstate"}})});let n=!1,r=0,i=setInterval(()=>{r++;let o=(0,ew.h)((0,w.x)([eE,"optionalAccess",e=>e.next,"optionalAccess",e=>e.router]),()=>(0,w.x)([eE,"optionalAccess",e=>e.nd,"optionalAccess",e=>e.router]));n||r>500?clearInterval(i):o&&(clearInterval(i),n=!0,["back","forward","push","replace"].forEach(n=>{(0,w.x)([o,"optionalAccess",e=>e[n]])&&(o[n]=new Proxy(o[n],{apply(r,i,o){let s=ey(e,{name:eS,attributes:{[p.$J]:"navigation",[p.S3]:"auto.navigation.nextjs.app_router_instrumentation",[p.Zj]:"url"}});return t=s,"push"===n?((0,w.x)([s,"optionalAccess",e=>e.updateName,"call",e=>e(eP(o[0]))]),(0,w.x)([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.push")])):"replace"===n?((0,w.x)([s,"optionalAccess",e=>e.updateName,"call",e=>e(eP(o[0]))]),(0,w.x)([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.replace")])):"back"===n?(0,w.x)([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.back")]):"forward"===n&&(0,w.x)([s,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.forward")]),r.apply(i,o)}}))}))},20)}(i)),t.afterAllSetup(e),n&&(er.m9.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=ek.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){eO&&m.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}();ev(e,{name:t||ek.location.pathname,startTime:g.Z1?g.Z1/1e3:void 0,attributes:{[p.$J]:"pageload",[p.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[p.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):ev(e,{name:er.m9.location.pathname,startTime:g.Z1?g.Z1/1e3:void 0,attributes:{[p.$J]:"pageload",[p.S3]:"auto.pageload.nextjs.app_router_instrumentation",[p.Zj]:"url"}}))}}}());let n=e$.__rewriteFramesAssetPrefixPath__||"";return t.push(eL({assetPrefixPath:n})),t}(e),...e};(function(e){let t=eD.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=(0,eN.U4)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],s=`${t}?o=${i}&p=${n.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,eO&&m.kg.info(`Tunneling events to "${s}"`)}else eO&&m.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),(0,o.V)(t,"nextjs",["nextjs","react"]);let n=function(e){let t={...e};return(0,o.V)(t,"react"),(0,s.v)("react",{version:l.version}),(0,a.S1)(t)}(t),r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,s.Qy)(r);let i=e=>"transaction"===e.type&&e.transaction===eS?null:e;return i.id="IncompleteTransactionFilter",(0,s.Qy)(i),n}},85228:function(e,t,n){"use strict";n.d(t,{EN:function(){return u},IQ:function(){return c},bU:function(){return s},lq:function(){return a}});var r=n(53294),i=n(37170),o=n(16839);let s="baggage",a="sentry-",l=/^sentry-/;function u(e){let t=e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,n])=>{e[t]=n}),e),{}):d(e):void 0;if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(l)&&(e[t.slice(a.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function c(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${a}${t}`]=n),e),{}))}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},62011:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},iY:function(){return l},l4:function(){return s},qT:function(){return a}});var r=n(37170);let i=n(98564).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let n,o=e,s=[],a=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o&&o.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.HD)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,u),"html"!==n&&(!(a>1)||!(l+3*s.length+n.length>=c)));)s.push(n),l+=n.length,o=o.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function a(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},35572:function(e,t,n){"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:function(){return r}})},6701:function(e,t,n){"use strict";function r(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}n.d(t,{x:function(){return r}})},53294:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},65119:function(e,t,n){"use strict";n.d(t,{RA:function(){return s},U4:function(){return a},vK:function(){return u}});var r=n(53294),i=n(16839);let o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function a(e){let t=o.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,s="",a="",u="",c=""]=t.slice(1),d="",f=c,p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){let e=f.match(/^\d+/);e&&(f=e[0])}return l({host:a,pass:s,path:d,projectId:f,port:u,protocol:n,publicKey:r})}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t="string"==typeof e?a(e):l(e);if(t&&function(e){if(!r.X)return!0;let{port:t,projectId:n,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===o||"https"===o?!(t&&isNaN(parseInt(t,10)))||(i.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},41615:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},47182:function(e,t,n){"use strict";n.d(t,{BO:function(){return l},Cd:function(){return m},HY:function(){return _},Jd:function(){return a},KQ:function(){return f},V$:function(){return d},gv:function(){return u},mL:function(){return g},zQ:function(){return p}});var r=n(65119),i=n(44952),o=n(32311),s=n(98564);function a(e,t=[]){return[e,t]}function l(e,t){let[n,r]=e;return[n,[...r,t]]}function u(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function c(e){return s.GLOBAL_OBJ.__SENTRY__&&s.GLOBAL_OBJ.__SENTRY__.encodePolyfill?s.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function d(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(let e of n){let[t,n]=e;if(o(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,i.Fv)(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function f(e){return[{type:"span"},e]}function p(e){let t="string"==typeof e.data?c(e.data):e.data;return[(0,o.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}let h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function g(e){return h[e]}function _(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,i){let s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:(0,r.RA)(i)},...s&&{trace:(0,o.Jr)({...s})}}}},32886:function(e,t,n){"use strict";n.d(t,{Uf:function(){return u},cf:function(){return c}});var r=n(37170),i=n(32311),o=n(72417),s=n(62122),a=n(98564),l=n(1640);function u(e,t){let n="fetch";(0,l.Hj)(n,e),(0,l.D2)(n,()=>d(void 0,t))}function c(e){let t="fetch-body-resolved";(0,l.Hj)(t,e),(0,l.D2)(t,()=>d(p))}function d(e,t=!1){(!t||(0,o.t$)())&&(0,i.hl)(a.GLOBAL_OBJ,"fetch",function(t){return function(...n){let{method:o,url:u}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:g(t),method:h(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:g(t),method:h(t,"method")?String(t.method).toUpperCase():"GET"}}(n),c={args:n,fetchData:{method:o,url:u},startTimestamp:1e3*(0,s.ph)()};e||(0,l.rK)("fetch",{...c});let d=Error().stack;return t.apply(a.GLOBAL_OBJ,n).then(async t=>(e?e(t):(0,l.rK)("fetch",{...c,endTimestamp:1e3*(0,s.ph)(),response:t}),t),e=>{throw(0,l.rK)("fetch",{...c,endTimestamp:1e3*(0,s.ph)(),error:e}),(0,r.VZ)(e)&&void 0===e.stack&&(e.stack=d,(0,i.xp)(e,"framesToPop",1)),e})}})}async function f(e,t){if(e&&e.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function p(e){let t;try{t=e.clone()}catch(e){return}f(t,()=>{(0,l.rK)("fetch-body-resolved",{endTimestamp:1e3*(0,s.ph)(),response:e})})}function h(e,t){return!!e&&"object"==typeof e&&!!e[t]}function g(e){return"string"==typeof e?e:e?h(e,"url")?e.url:e.toString?e.toString():"":""}},30072:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(98564),i=n(1640);let o=null;function s(e){let t="error";(0,i.Hj)(t,e),(0,i.D2)(t,a)}function a(){o=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,s){return(0,i.rK)("error",{column:r,error:s,line:n,msg:e,url:t}),!!o&&!o.__SENTRY_LOADER__&&o.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},58258:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(98564),i=n(1640);let o=null;function s(e){let t="unhandledrejection";(0,i.Hj)(t,e),(0,i.D2)(t,a)}function a(){o=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){return(0,i.rK)("unhandledrejection",e),!o||!!o.__SENTRY_LOADER__||o.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},1640:function(e,t,n){"use strict";n.d(t,{D2:function(){return u},Hj:function(){return l},rK:function(){return c}});var r=n(53294),i=n(16839),o=n(69657);let s={},a={};function l(e,t){s[e]=s[e]||[],s[e].push(t)}function u(e,t){a[e]||(t(),a[e]=!0)}function c(e,t){let n=e&&s[e];if(n)for(let s of n)try{s(t)}catch(t){r.X&&i.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,o.$P)(s)}
Error:`,t)}}},37170:function(e,t,n){"use strict";n.d(t,{Cy:function(){return m},HD:function(){return u},J8:function(){return _},Kj:function(){return g},Le:function(){return c},PO:function(){return f},TX:function(){return a},V9:function(){return v},VW:function(){return s},VZ:function(){return i},cO:function(){return p},fm:function(){return l},kK:function(){return h},pt:function(){return d},y1:function(){return y}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function g(e){return o(e,"RegExp")}function _(e){return!!(e&&e.then&&"function"==typeof e.then)}function m(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},60902:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(41615),i=n(25566),o=n(98564);function s(){return"undefined"!=typeof window&&(!(!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0))||void 0!==o.GLOBAL_OBJ.process&&"renderer"===o.GLOBAL_OBJ.process.type)}},16839:function(e,t,n){"use strict";n.d(t,{Cf:function(){return a},LD:function(){return s},RU:function(){return o},kg:function(){return l}});var r=n(53294),i=n(98564);let o=["debug","info","warn","error","log","assert","trace"],s={};function a(e){if(!("console"in i.GLOBAL_OBJ))return e();let t=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(e=>{let r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=(0,i.Y)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach(n=>{t[n]=(...t)=>{e&&a(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t})},34722:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return u},YO:function(){return c},jH:function(){return a},lE:function(){return d}});var r=n(32311),i=n(98564);function o(){let e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function a(e){let{message:t,event_id:n}=e;if(t)return t;let r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function u(e,t){let n=s(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},44952:function(e,t,n){"use strict";n.d(t,{Fv:function(){return s},Qy:function(){return function e(t,n=3,r=102400){let i=s(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(37170),i=n(32311),o=n(69657);function s(e,t=100,n=Infinity){try{return function e(t,n,s=Infinity,a=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[u,c]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let f="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:s;if(0===f)return d.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,f-1,a,l)}catch(e){}let p=Array.isArray(n)?[]:{},h=0,g=(0,i.Sh)(n);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(h>=a){p[t]="[MaxProperties ~]";break}let n=g[t];p[t]=e(t,n,f-1,a,l),h++}return c(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},32311:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},HK:function(){return d},Jr:function(){return m},Sh:function(){return p},_j:function(){return f},hl:function(){return l},xp:function(){return u},zf:function(){return _}});var r=n(62011),i=n(53294),o=n(37170),s=n(16839),a=n(60714);function l(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&c(i,r),e[t]=i}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&s.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function f(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...g(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...g(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function g(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function _(e,t=40){let n=Object.keys(p(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,a.$G)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,a.$G)(r,t)}}return""}function m(e){return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},66042:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(34722);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},79663:function(e,t,n){"use strict";function r(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function i(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+a):i[e]=r+a;else i.all=r+a}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}n.d(t,{Q:function(){return r},WG:function(){return i}})},12066:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});let r=["fatal","error","warning","log","info","debug"];function i(e){return"warn"===e?"warning":r.includes(e)?e:"log"}},69657:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Fi:function(){return r},Fr:function(){return d},Sq:function(){return a},pE:function(){return s}});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,s=0)=>{let a=[],u=e.split("\n");for(let e=n;e<u.length;e++){let n=u[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){a.push(t);break}}if(a.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),o.test(l(t).function||"")&&(t.pop(),o.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||r}))}(a.slice(s))}}function a(e){return Array.isArray(e)?s(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch(e){return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},60714:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var r=n(37170);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},72417:function(e,t,n){"use strict";n.d(t,{Ak:function(){return s},QC:function(){return a},t$:function(){return l}});var r=n(53294),i=n(16839);let o=n(98564).GLOBAL_OBJ;function s(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if("string"==typeof EdgeRuntime)return!0;if(!s())return!1;if(a(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},89453:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return s},cW:function(){return l}});var r,i,o=n(37170);function s(e){return new l(t=>{t(e)})}function a(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},62122:function(e,t,n){"use strict";n.d(t,{Z1:function(){return s},ph:function(){return o},yW:function(){return i}});var r=n(98564);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),s=(()=>{let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||s<36e5?i<=s?e.timeOrigin:o:n})()},97274:function(e,t,n){"use strict";n.d(t,{$p:function(){return a},pT:function(){return s}});var r=n(85228),i=n(34722);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),s=(0,r.EN)(t),{traceId:a,parentSpanId:l,parentSampled:u}=n||{};return n?{traceId:a||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:s||{}}:{traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function a(e=(0,i.DM)(),t=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},32855:function(e,t,n){"use strict";function r(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function i(e){return e.split(/[?#]/,1)[0]}n.d(t,{en:function(){return r},rt:function(){return i}})},98555:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="8.35.0"},98564:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return i},Y:function(){return o}});var r=n(98555);let i=globalThis;function o(e,t,n){let o=n||i,s=o.__SENTRY__=o.__SENTRY__||{},a=s[r.J]=s[r.J]||{};return a[e]||(a[e]=t())}},74441:function(e,t,n){"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}n.r(t),n.d(t,{_:function(){return r},_class_private_field_loose_base:function(){return r}})},70483:function(e,t,n){"use strict";n.r(t),n.d(t,{_:function(){return i},_class_private_field_loose_key:function(){return i}});var r=0;function i(e){return"__private_"+r+++"_"+e}},60917:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.r(t),n.d(t,{_:function(){return r},_interop_require_default:function(){return r}})},52140:function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}n.r(t),n.d(t,{_:function(){return i},_interop_require_wildcard:function(){return i}})}}]);